@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240505.0 → 0.0.0-nightly-20240506.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 _0x4d32e5,PendingActions as _0x3c234e,icons as _0x1abf50}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4926cb,ObservableMixin as _0x238325,uid as _0x51245d,insertToPriorityArray as _0x4cac34,priorities as _0x110481,logWarning as _0x75e7a3,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3b7991,View as _0xa8a3a2,ButtonView as _0x1c9e0c,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 _0x1c067c,hashObject as _0x524a26,surroundingMarkersDetector as _0x4e6831,trimHtml as _0x33fac0,UserView as _0x3f1e81,getDateTimeFormatter as _0x7fcc34,getAllMarkersDomElementsSorted as _0x2d0a4d,sanitizeEditorConfig as _0x3a99fa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x251353,LiveRange as _0x1ed262,LivePosition as _0x326423}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x49b737,toWidget as _0x3d1709}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x42c6ce,set as _0x3a0639,isEqual as _0xdd32d6,unset as _0x386faf,omit as Bt}from'lodash-es';import{Delete as _0x509374,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x280d01,ShiftEnter as _0x52b05a}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 _0x5dafa8 of this['editor']['commands']['commands']())_0x5dafa8['affectsData']&&!this['_enabledCommands']['has'](_0x5dafa8)&&_0x5dafa8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xbd3d01 of this['editor']['commands']['commands']())_0xbd3d01['affectsData']&&!this['_enabledCommands']['has'](_0xbd3d01)&&_0xbd3d01['clearForceDisabled']('TrackChangesCommand');}constructor(_0x9e25fc,_0x319278){super(_0x9e25fc),this['_enabledCommands']=_0x319278,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4dd217){const _0x3b2cb2=this['_suggestions']['get'](_0x4dd217);if(!_0x3b2cb2)throw new _0x4926cb('track-changes-accept-suggestion-not-found',this);const _0x3585d8=_0x3b2cb2['getRanges']();this['editor']['model']['canEditAt'](_0x3585d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b2cb2);}constructor(_0x34ebec,_0x27fc36){super(_0x34ebec),this['_suggestions']=_0x27fc36,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x769c62){const _0x296c0f=this['_suggestions']['get'](_0x769c62);if(!_0x296c0f)throw new _0x4926cb('track-changes-discard-suggestion-not-found',this);const _0xfe8de1=_0x296c0f['getRanges']();this['editor']['model']['canEditAt'](_0xfe8de1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x296c0f);}constructor(_0x393b05,_0x2b2607){super(_0x393b05),this['_suggestions']=_0x2b2607,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x2fa439){return _0x2fa439['sort']((_0x119c0c,_0x5b448a)=>'deletion'==_0x119c0c['type']&&'deletion'!=_0x5b448a['type']?-0x1:'deletion'!=_0x119c0c['type']&&'deletion'==_0x5b448a['type']?0x1:0x0);}function to(_0x145634,_0x573bdb){let _0x3ad298,_0x2cea0f=0x0;const _0x532684=[],_0x3579c2=_0x573bdb['schema'];for(;_0x2cea0f<_0x145634['length'];){const _0x11e068=_0x145634[_0x2cea0f],_0x302a7f=_0x145634[_0x2cea0f+0x1];_0x3ad298||(_0x3ad298=_0x573bdb['createPositionBefore'](_0x11e068)),co(_0x573bdb,_0x11e068,_0x302a7f)||(_0x532684['push'](_0x573bdb['createRange'](_0x3ad298,_0x3579c2['isObject'](_0x11e068)?_0x573bdb['createPositionAfter'](_0x11e068):_0x573bdb['createPositionAt'](_0x11e068,'end'))),_0x3ad298=null),_0x2cea0f++;}return _0x532684;}function co(_0x4bc93a,_0x304d67,_0x45c15a){if(!_0x45c15a)return!0x1;const _0x4f1cb8=_0x4bc93a['createPositionAfter'](_0x304d67),_0x324fbc=_0x4bc93a['createPositionBefore'](_0x45c15a);return _0x4f1cb8['isTouching'](_0x324fbc);}function rs(_0x5d1f92,_0x470617,_0xb23d0f){for(;_0xb23d0f['length'];){const _0x48ac71=_0xb23d0f['splice'](0x0,0x64);_0x5d1f92['change'](()=>{for(const _0x58278a of _0x48ac71)_0x58278a['isInContent']&&_0x470617['execute'](_0x58278a['id']);});}}class x extends ts{['refresh'](){const _0x10b256=Array['from'](this['_suggestions']['values']())['some'](_0x2d5979=>_0x2d5979['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x10b256;}['execute'](){const _0x1e801b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3fa0c7 of _0x1e801b){const _0x3573b3=_0x3fa0c7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3573b3))return;}rs(this['editor']['model'],this['_command'],_0x1e801b);}constructor(_0x3c8066,_0x2e8628,_0x1ab223){super(_0x3c8066),this['_command']=_0x2e8628,this['_suggestions']=_0x1ab223,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x598b00=this['editor']['model']['document']['selection'],_0x2cf78b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ab311,_0xa148eb){const _0x1c4e40=Array['from'](_0x1ab311['getRanges']()),_0x3105a7=new Set();for(const _0x15ae8f of _0xa148eb)if(_0x15ae8f['isInContent']){for(const _0x3e8230 of _0x1c4e40)for(const _0x4f1d46 of _0x15ae8f['getRanges']())(_0x3e8230['isIntersecting'](_0x4f1d46)||_0x1ab311['isCollapsed']&&!_0x15ae8f['isMultiRange']&&_0x15ae8f['next']&&_0x4f1d46['end']['isTouching'](_0x3e8230['start']))&&_0x3105a7['add'](_0x15ae8f);}return _0x3105a7;}(_0x598b00,_0x2cf78b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x11da46=ss(Array['from'](this['_selectedSuggestions']));for(const _0x596d66 of _0x11da46){const _0xdcaafb=_0x596d66['getRanges']();if(!this['editor']['model']['canEditAt'](_0xdcaafb))return;}rs(this['editor']['model'],this['_command'],_0x11da46);}constructor(_0x3583fb,_0x516e6e,_0x52a142){super(_0x3583fb),this['_command']=_0x516e6e,this['_suggestions']=_0x52a142,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x238325(){get['head'](){let _0x5d8e2b=this;for(;_0x5d8e2b['previous'];)_0x5d8e2b=_0x5d8e2b['previous'];return _0x5d8e2b;}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'](_0x233211){this['_markerNames']['add'](_0x233211);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x25faaf=>this['_model']['markers']['get'](_0x25faaf))['filter'](_0x4ba65d=>_0x4ba65d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54d4d6=>{for(const _0x56c16d of this['getMarkers']())_0x54d4d6['removeMarker'](_0x56c16d);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e3bee){this['_model']['change'](_0x524f48=>{_0x524f48['removeMarker'](_0x1e3bee);}),this['_markerNames']['delete'](_0x1e3bee);}['addRange'](_0x2f2434){const _0x46169b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x46169b),this['_model']['change'](_0x52b110=>{_0x52b110['addMarker'](_0x46169b,{'range':_0x2f2434,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1472b9){for(const _0x417aa0 of this['getRanges']())if(_0x417aa0['isIntersecting'](_0x1472b9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1ef1ab=>_0x1ef1ab['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x40634c,_0x4f28f5)=>[..._0x40634c,..._0x4f28f5['getItems']()],[]);}['getFirstRange'](){var _0x45a57f;return(null===(_0x45a57f=this['getFirstMarker']())||void 0x0===_0x45a57f?void 0x0:_0x45a57f['getRange']())||null;}['getContainedElement'](){const _0x37673f=this['getRanges']();if(0x1!=_0x37673f['length'])return null;const _0x5cdaa0=_0x37673f[0x0],_0x45d7d9=_0x5cdaa0['start']['nodeAfter'],_0x392347=_0x5cdaa0['end']['nodeBefore'];return _0x45d7d9 instanceof _0x251353?_0x45d7d9!=_0x392347?null:_0x45d7d9: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 _0x43cc92=[];let _0x35a76b=this['head'];for(;_0x35a76b;)_0x43cc92['push'](_0x35a76b),_0x35a76b=_0x35a76b['next'];return _0x43cc92;}['setAttribute'](_0x3af8c0,_0xcbf92b){const _0x1a5199=_0x42c6ce(this['attributes']);_0x3a0639(_0x1a5199,_0x3af8c0,_0xcbf92b),_0xdd32d6(_0x1a5199,this['attributes'])||(this['attributes']=_0x1a5199,this['_onAttributesChange'](_0x1a5199));}['removeAttribute'](_0x2b76cf){const _0xb0300=_0x42c6ce(this['attributes']);_0x386faf(_0xb0300,_0x2b76cf),_0xdd32d6(_0xb0300,this['attributes'])||(this['attributes']=_0xb0300,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 _0x51245d()['substr'](0x1,0x5);}constructor(_0x55ee6b,_0x6c2c5e){super(),this['_isDataLoaded']=!0x1,this['id']=_0x6c2c5e['id'],this['type']=_0x6c2c5e['type'],this['subType']=_0x6c2c5e['subType']||null,this['author']=_0x6c2c5e['author'],this['creator']=_0x6c2c5e['creator']||_0x6c2c5e['author'],this['isExternal']=Boolean(_0x6c2c5e['attributes']&&_0x6c2c5e['attributes']['@external']),this['data']=null,this['_model']=_0x55ee6b,this['_onAccept']=_0x6c2c5e['onAccept'],this['_onDiscard']=_0x6c2c5e['onDiscard'],this['_onAttributesChange']=_0x6c2c5e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6c2c5e['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(_0x101985,_0x4e7db9,_0x44eca8){const t=_0x101985['t'];switch(_0x4e7db9){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',_0x44eca8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44eca8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44eca8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44eca8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44eca8);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',_0x44eca8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44eca8);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',_0x44eca8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44eca8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44eca8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44eca8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44eca8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44eca8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44eca8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44eca8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44eca8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44eca8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44eca8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44eca8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44eca8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44eca8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44eca8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44eca8);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'},_0x44eca8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44eca8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44eca8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44eca8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44eca8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44eca8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44eca8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44eca8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44eca8);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'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44eca8);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'},_0x44eca8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44eca8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44eca8);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'},_0x44eca8);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'},_0x44eca8);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 _0x4e7db9;}}class f{['getDescriptions'](_0x2fea09){const _0x2bd90f=[],_0x5e9e48=new Set(),_0x39f5e8=new Set();for(let _0x510ae5=0x0;_0x510ae5<_0x2fea09['length'];_0x510ae5++){const _0x431df7=_0x2fea09[_0x510ae5];if(!_0x431df7['isInContent'])continue;const _0x174b0d=this['_handleCustomCallbackDescription'](_0x431df7);if(_0x174b0d){if(null!=_0x431df7['subType']){if(_0x5e9e48['has'](_0x431df7['subType']))continue;_0x5e9e48['add'](_0x431df7['subType']);}_0x2bd90f['push'](_0x174b0d);}else{if('attribute'!=_0x431df7['type'])'insertion'!=_0x431df7['type']&&'deletion'!=_0x431df7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2bd90f,_0x431df7,_0x2fea09[_0x510ae5+0x1]);else{const _0x1dd048=_0x431df7['data']['key'];if(_0x39f5e8['has'](_0x1dd048))continue;_0x39f5e8['add'](_0x431df7['data']['key']),_0x1dd048==m?this['_handleRenameSuggestionDescription'](_0x2bd90f,_0x431df7):this['_handleAttributeSuggestionDescription'](_0x2bd90f,_0x431df7);}}}return this['_resolveDescriptionItems'](_0x2bd90f);}['registerDescriptionCallback'](_0x1b3561){this['_customCallbacks']['push'](_0x1b3561);}['registerElementLabel'](_0x3e319a,_0x2d847f,_0xf1f098=_0x110481['normal']){'function'==typeof _0x3e319a?_0x4cac34(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e319a,'label':_0x2d847f,'priority':_0xf1f098}):this['_itemLabels']['set'](_0x3e319a,_0x2d847f);}['registerAttributeLabel'](_0x1f5dc3,_0xc833d0){this['_attributeLabels']['set'](_0x1f5dc3,_0xc833d0);}['getItemLabel'](_0x595e50,_0x421e64=0x1){let _0x4fc410;for(const _0x276fde of this['_itemLabelsCallbacks'])if(_0x276fde['matchingCallback'](_0x595e50)){_0x4fc410=_0x276fde['label'];break;}return _0x4fc410||(_0x4fc410=this['_itemLabels']['get'](_0x595e50['name'])),_0x4fc410?_0x4fc410(_0x421e64):0x1!==_0x421e64?_0x421e64+'\x20'+_0x595e50['name']+'s':''+_0x595e50['name'];}['_addDescriptionItems'](_0xf17f2,_0x291fbc){const _0x166b94=_0x291fbc['getFirstRange']()['getWalker'](),_0x4e9345='insertion'==_0x291fbc['type']?'add':'remove';for(const _0x58e999 of _0x166b94){const _0x1cf20e=_0x58e999['item'],_0x1f6586=_0xf17f2[_0xf17f2['length']-0x1];if(_0x1cf20e['is']('$textProxy'))_0x1f6586&&_0x1f6586['type']['indexOf']('Container')>-0x1&&_0xf17f2['pop'](),_0x1f6586&&'text'==_0x1f6586['type']?_0x1f6586[_0x4e9345]+=_0x1cf20e['data']:_0xf17f2['push']({'type':'text','add':'add'==_0x4e9345?_0x1cf20e['data']:'','remove':'remove'==_0x4e9345?_0x1cf20e['data']:''});else{if(this['_schema']['isObject'](_0x1cf20e)){const _0x2376ea=_0x1cf20e;if(_0x1f6586&&_0x1f6586['type']['indexOf']('Container')>-0x1&&_0xf17f2['pop'](),'elementEnd'==_0x58e999['type'])continue;_0x1f6586&&_0x1f6586['type']==_0x4e9345+'Object'&&_0x1f6586['element']['name']==_0x2376ea['name']?_0x1f6586['quantity']++:_0xf17f2['push']({'type':_0x4e9345+'Object','element':_0x2376ea,'quantity':0x1}),_0x166b94['skip'](_0xbe0e8d=>!('elementEnd'==_0xbe0e8d['type']&&_0xbe0e8d['item']==_0x1cf20e));}else{if(this['_schema']['checkChild'](_0x1cf20e,'$text')||_0x1cf20e['is']('element','softBreak')){const _0x7b434b=_0x1cf20e;if('add'==_0x4e9345&&'elementStart'==_0x58e999['type']||'remove'==_0x4e9345&&'elementEnd'==_0x58e999['type'])continue;if(_0x1f6586&&-0x1==_0x1f6586['type']['indexOf']('Container')){'text'==_0x1f6586['type']&&(_0x1f6586[_0x4e9345]+='\x0a');continue;}let _0x2e513a;if(_0x2e513a='add'==_0x4e9345?_0x7b434b['nextSibling']&&!this['_schema']['isObject'](_0x7b434b['nextSibling'])?_0x7b434b['nextSibling']:null:_0x7b434b['previousSibling']&&!this['_schema']['isObject'](_0x7b434b['previousSibling'])?_0x7b434b['previousSibling']:null,_0x7b434b['isEmpty']||_0x2e513a&&_0x2e513a['isEmpty']){const _0x510ed6=_0x2e513a&&_0x2e513a['isEmpty']?_0x2e513a:_0x7b434b;_0x1f6586&&_0x1f6586['type']==_0x4e9345+'EmptyContainer'&&_0x1f6586['element']['name']==_0x510ed6['name']?_0x1f6586['quantity']++:_0xf17f2['push']({'type':_0x4e9345+'EmptyContainer','element':_0x510ed6,'quantity':0x1});}else _0xf17f2['push']({'type':_0x4e9345+'Container','element':_0x7b434b});}}}}}['_resolveDescriptionItems'](_0x6d937c){const _0x489ae1=this['_locale'],_0x4437be=[],_0xe797b=[],_0x5c3f10=[];for(const _0x2452d4 of _0x6d937c)switch(_0x2452d4['type']){case'text':if(_0x2452d4['add']=_0x2452d4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2452d4['remove']=_0x2452d4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2452d4['add']&&''!=_0x2452d4['remove']){_0x4437be['push']({'type':'replace','content':o(_0x489ae1,'REPLACE_TEXT',['\x22'+_0x2452d4['remove']+'\x22','\x22'+_0x2452d4['add']+'\x22'])});continue;}if(null!=_0x2452d4['add']['match'](/^ +$/)){_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Insert:*\x20%0',o(_0x489ae1,'ELEMENT_SPACE',_0x2452d4['add']['length']))});continue;}if(null!=_0x2452d4['remove']['match'](/^ +$/)){_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Remove:*\x20%0',o(_0x489ae1,'ELEMENT_SPACE',_0x2452d4['remove']['length']))});continue;}if(''!=_0x2452d4['add']){_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Insert:*\x20%0','\x22'+_0x2452d4['add']+'\x22')});continue;}_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Remove:*\x20%0','\x22'+_0x2452d4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Insert:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Remove:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'addContainer':_0x4437be['push']({'type':'insertion','content':o(_0x489ae1,'*Split:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'removeContainer':_0x4437be['push']({'type':'deletion','content':o(_0x489ae1,'*Merge:*\x20%0',this['getItemLabel'](_0x2452d4['element'],_0x2452d4['quantity']))});continue;case'addFormat':_0xe797b['push'](_0x2452d4['key']);continue;case'removeFormat':_0x5c3f10['push'](_0x2452d4['key']);continue;default:_0x4437be['push'](_0x2452d4);}if(_0xe797b['length']){const _0x19929a=_0xe797b['map'](_0x2364a2=>this['_attributeLabels']['has'](_0x2364a2)?this['_attributeLabels']['get'](_0x2364a2):_0x2364a2)['join'](',\x20');_0x4437be['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x19929a)});}if(_0x5c3f10['length']){const _0x35c3c2=_0x5c3f10['map'](_0x2676a1=>this['_attributeLabels']['has'](_0x2676a1)?this['_attributeLabels']['get'](_0x2676a1):_0x2676a1)['join'](',\x20');_0x4437be['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x35c3c2)});}return _0x4437be;}['_handleCustomCallbackDescription'](_0x384443){for(const _0x30bac7 of this['_customCallbacks']){const _0xe7da5f=_0x30bac7(_0x384443);if(_0xe7da5f&&'type'in _0xe7da5f)return _0xe7da5f;}}['_handleAttributeSuggestionDescription'](_0x1fdb6f,_0x239b1c){const _0x113ed5=_0x239b1c['data'],_0x59593f=void 0x0===_0x113ed5['newValue']?'removeFormat':'addFormat';_0x1fdb6f['push']({'type':_0x59593f,'key':_0x113ed5['key']});}['_handleRenameSuggestionDescription'](_0x236124,_0xab12a0){_0x236124['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xab12a0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a5215,_0x2e333c,_0x55ceed){if(this['_addDescriptionItems'](_0x2a5215,_0x2e333c),_0x55ceed&&_0x55ceed['getFirstRange']()&&!_0x2e333c['getFirstRange']()['end']['isEqual'](_0x55ceed['getFirstRange']()['start'])){const _0x47c6e7=_0x2a5215[_0x2a5215['length']-0x1],_0x4c8962='insertion'==_0x2e333c['type']?'add':'remove';_0x47c6e7&&'text'==_0x47c6e7['type']&&(_0x47c6e7[_0x4c8962]+='\x0a');}}constructor(_0x262cd4,_0x2a5993){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x262cd4,this['_locale']=_0x2a5993;}}class E extends _0x4d32e5{['afterInit'](){const _0x11b65e=this['editor'],_0x47eb65=_0x11b65e['plugins']['get']('TrackChangesEditing');_0x11b65e['commands']['get']('showAIAssistant')&&_0x47eb65['enableCommand']('showAIAssistant');}}class V extends _0x4d32e5{['afterInit'](){const _0x57244d=this['editor'],_0x46a797=_0x57244d['locale'];if(!_0x57244d['plugins']['has']('AlignmentEditing'))return;const _0x3d37a4=_0x57244d['plugins']['get']('TrackChangesEditing');_0x3d37a4['enableDefaultAttributesIntegration']('alignment'),_0x3d37a4['registerBlockAttribute']('alignment'),_0x3d37a4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46a797,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cea4=this['editor'],_0x12bcdc=_0x56cea4['locale'];_0x56cea4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7b8e=>{if('formatBlock'!=_0x5e7b8e['type'])return;const {data:_0x5d1f21}=_0x5e7b8e;if(_0x5d1f21&&'alignment'==_0x5d1f21['commandName']){const _0x1f30e8=_0x5d1f21['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x12bcdc,'*Format:*\x20%0',function(_0xb991e2){switch(_0xb991e2){case'left':return o(_0x12bcdc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x12bcdc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x12bcdc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x12bcdc,'FORMAT_JUSTIFY_TEXT');}}(_0x1f30e8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4d32e5{['afterInit'](){const _0x5333ae=this['editor'],_0x45a886=_0x5333ae['plugins']['get']('TrackChangesEditing'),_0x297489=_0x5333ae['locale'];for(const _0xfa4083 of ti){if(!_0x5333ae['plugins']['has'](_0xfa4083))continue;const _0x4506ec=_0xfa4083['slice'](0x0,-0x7)['toLowerCase'](),_0x125d0a='FORMAT_'+_0x4506ec['toUpperCase']();_0x45a886['enableDefaultAttributesIntegration'](_0x4506ec),_0x45a886['registerInlineAttribute'](_0x4506ec),_0x45a886['descriptionFactory']['registerAttributeLabel'](_0x4506ec,o(_0x297489,_0x125d0a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4400db=this['editor'],_0x13b491=_0x4400db['locale'],_0x5cc993=_0x4400db['plugins']['get']('TrackChangesEditing');function _0x5b414e(_0x3e7545,_0x491f0d){_0x5cc993['descriptionFactory']['registerDescriptionCallback'](_0x5aac22=>{if('formatInline'!=_0x5aac22['type'])return;const {data:_0x19df1c}=_0x5aac22;return _0x19df1c&&_0x19df1c['commandName']===_0x3e7545?_0x19df1c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13b491,'*Format:*\x20%0',_0x491f0d)}:{'type':'format','content':o(_0x13b491,'*Remove\x20format:*\x20%0',_0x491f0d)}:void 0x0;});}_0x5b414e('bold',o(_0x13b491,'FORMAT_BOLD')),_0x5b414e('italic',o(_0x13b491,'FORMAT_ITALIC')),_0x5b414e('underline',o(_0x13b491,'FORMAT_UNDERLINE')),_0x5b414e('code',o(_0x13b491,'FORMAT_CODE')),_0x5b414e('strikethrough',o(_0x13b491,'FORMAT_STRIKETHROUGH')),_0x5b414e('subscript',o(_0x13b491,'FORMAT_SUBSCRIPT')),_0x5b414e('superscript',o(_0x13b491,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4d32e5{['afterInit'](){const _0x59c782=this['editor'],_0x518287=_0x59c782['locale'];if(!_0x59c782['plugins']['has']('BlockQuoteEditing'))return;const _0x4804e0=_0x59c782['plugins']['get']('TrackChangesEditing'),_0x4e891a=this['editor']['commands']['get']('blockQuote');_0x4804e0['enableCommand']('blockQuote',(_0x39d82b,_0x3302fa={})=>{const _0x15b3cf=this['editor']['model']['document']['selection'],_0x340a17=_0x3302fa&&void 0x0!==_0x3302fa['forceValue']?_0x3302fa['forceValue']:!_0x4e891a['value'];let _0x32e57f=[];if(_0x340a17){const _0x5e39ee=Array['from'](_0x15b3cf['getSelectedBlocks']())['filter'](_0x49b691=>oo(_0x49b691)||function(_0x2d9684,_0x15d139){const _0x1719d7=_0x15d139['checkChild'](_0x2d9684['parent'],'blockQuote'),_0x4e8d86=_0x15d139['checkChild'](['$root','blockQuote'],_0x2d9684);return _0x1719d7&&_0x4e8d86;}(_0x49b691,this['editor']['model']['schema']));_0x32e57f=to(_0x5e39ee,_0x59c782['model']);}else{const _0x1113c9=Array['from'](_0x15b3cf['getSelectedBlocks']())['filter'](_0x36d6b4=>oo(_0x36d6b4));_0x32e57f=to(_0x1113c9,_0x59c782['model']);}_0x59c782['model']['change'](()=>{for(const _0xf13f27 of _0x32e57f)_0x4804e0['markBlockFormat'](_0xf13f27,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x340a17}]});});}),_0x4804e0['descriptionFactory']['registerDescriptionCallback'](_0x492f2d=>{const {data:_0x7b7afe}=_0x492f2d;if(_0x7b7afe&&'blockQuote'==_0x7b7afe['commandName']){const _0x60626d=o(_0x518287,'ELEMENT_BLOCK_QUOTE');return _0x7b7afe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x518287,'*Set\x20format:*\x20%0',_0x60626d)}:{'type':'format','content':o(_0x518287,'*Remove\x20format:*\x20%0',_0x60626d)};}});}}function oo(_0x4890d0){return'blockQuote'==_0x4890d0['parent']['name'];}class F extends _0x4d32e5{['afterInit'](){const _0x425f4d=this['editor'];_0x425f4d['plugins']['has']('CaseChange')&&(_0x425f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x425f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x425f4d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x4d32e5{['afterInit'](){const _0xbfab96=this['editor'];_0xbfab96['commands']['get']('ckbox')&&_0xbfab96['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4d32e5{['afterInit'](){const _0x1d23ca=this['editor'];if(!_0x1d23ca['plugins']['has']('CodeBlock'))return;const _0x29317a=_0x1d23ca['plugins']['get']('TrackChangesEditing'),_0x5af1b8=_0x1d23ca['locale'],_0x27f0ef=_0x1d23ca['config']['get']('codeBlock')['languages'],_0x4e98ff=_0x1d23ca['commands']['get']('codeBlock');_0x29317a['enableCommand']('indentCodeBlock'),_0x29317a['enableCommand']('outdentCodeBlock'),_0x29317a['enableCommand']('codeBlock',(_0x5372ec,_0x1d142b={})=>{const _0xb9f5e6=_0x1d23ca['model'],_0x2ea039=_0x1d23ca['model']['document']['selection'],_0x50f0c8=_0x1d142b&&void 0x0!==_0x1d142b['forceValue']?_0x1d142b['forceValue']:!_0x4e98ff['value'];let _0x17e8bf;_0x1d142b['language']||(_0x1d142b['language']=_0x27f0ef[0x0]['language']),_0x17e8bf=_0x50f0c8?Array['from'](_0x2ea039['getSelectedBlocks']())['filter'](_0x23a2da=>eo(_0x23a2da)||function(_0x42a982,_0x132250){if(_0x42a982['is']('rootElement')||_0x132250['isLimit'](_0x42a982))return!0x1;return _0x132250['checkChild'](_0x42a982['parent'],'codeBlock');}(_0x23a2da,_0xb9f5e6['schema'])):Array['from'](_0x2ea039['getSelectedBlocks']())['filter'](_0x6f1a4b=>eo(_0x6f1a4b));const _0xdf8053=to(_0x17e8bf,_0xb9f5e6);_0xb9f5e6['change'](()=>{for(const _0xc045d3 of _0xdf8053)_0x29317a['markBlockFormat'](_0xc045d3,{'commandName':'codeBlock','commandParams':[{..._0x1d142b,'forceValue':_0x50f0c8}],'formatGroupId':'blockName'});});}),(_0x29317a['descriptionFactory']['registerElementLabel']('codeBlock',_0x170a64=>o(_0x5af1b8,'ELEMENT_CODE_BLOCK',_0x170a64)),_0x29317a['descriptionFactory']['registerDescriptionCallback'](_0x3e3e97=>{if('formatBlock'!=_0x3e3e97['type'])return;const _0x437171=_0x5af1b8['t'],{data:_0x5e4df4}=_0x3e3e97;if(!_0x5e4df4||'codeBlock'!=_0x5e4df4['commandName'])return;const _0x220a96=_0x5e4df4['commandParams'][0x0]['language'],_0x216dfa=_0x437171(_0x27f0ef['find'](_0x49998e=>_0x49998e['language']===_0x220a96)['label'])['toLowerCase']();return _0x5e4df4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5af1b8,'*Set\x20format:*\x20%0',o(_0x5af1b8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x216dfa+')')}:{'type':'format','content':o(_0x5af1b8,'*Remove\x20format:*\x20%0',o(_0x5af1b8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1bf39b){return'codeBlock'==_0x1bf39b['name'];}class H extends _0x4d32e5{['afterInit'](){const _0x12215b=this['editor'];if(!_0x12215b['plugins']['has']('CommentsEditing'))return;_0x12215b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3ee00f,_0xee2cae,_0x21b6e5){const _0x1fb100=[];for(const _0x6885a5 of _0xee2cae['getItems']())_0x6885a5['hasAttribute'](_0x3ee00f)&&_0x1fb100['push'](_0x21b6e5['createRangeOn'](_0x6885a5));return _0x1fb100;}function _e(_0xf6c3b2,_0x328cb6,{showActiveMarker:_0xd8ee61=!0x0}={}){const _0x20d06a=_0xf6c3b2['plugins']['get']('TrackChangesEditing');return(_0x19fb98,_0x439447,_0x4adf7f)=>{if(!_0x4adf7f['consumable']['test'](_0x439447['markerRange'],_0x19fb98['name']))return;const _0x57f254=_0x439447['markerRange']['getWalker'](),_0x4b3108=_0x439447['markerRange']['start'],_0x4d57e7=_0xf6c3b2['model']['schema'];let _0x47bae2=null,_0x5a0c7a=null,_0x16aafa=!0x1,_0x548612=!0x1;for(const _0x30cc4e of _0x57f254){const _0x127279=_0x30cc4e['item'];_0x16aafa=_0x16aafa||_0x4d57e7['isContent'](_0x127279);const _0x189e8c=_0x4adf7f['mapper']['toViewElement'](_0x127279);if(_0x189e8c&&_0x189e8c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30cc4e['type']&&(_0x4d57e7['isBlock'](_0x127279)&&!_0x4d57e7['isLimit'](_0x127279)&&(_0x127279['nextSibling']||_0x4b3108['isAtEnd']?_0x47bae2&&_0x47bae2['parent']==_0x127279||(_0x47bae2=_0x127279,_0x4dddc2(_0x30cc4e['previousPosition']),_0x548612=!0x0):_0x5a0c7a=_0x5a0c7a||_0x30cc4e['previousPosition']));}function _0x4dddc2(_0x4c61c0){const _0xe27b4a=_0x4adf7f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x328cb6}),_0x5b7355=_0x4adf7f['mapper']['toViewPosition'](_0x4c61c0);_0xd8ee61&&_0x20d06a['activeMarkers']['includes'](_0x439447['markerName'])&&_0x4adf7f['writer']['addClass']('ck-suggestion-marker--active',_0xe27b4a),_0x4adf7f['writer']['insert'](_0x5b7355,_0xe27b4a),_0x4adf7f['mapper']['bindElementToMarker'](_0xe27b4a,_0x439447['markerName']);}_0x16aafa||_0x548612||!_0x5a0c7a||_0x4dddc2(_0x5a0c7a);};}class q extends _0x4d32e5{static get['requires'](){return[_0x509374];}['init'](){const _0x1bd90b=this['editor'],_0x4ba208=_0x1bd90b['plugins']['get']('TrackChangesEditing');_0x4ba208['enableCommand']('delete');const _0x57d72d=_0x1bd90b['commands']['get']('deleteForward');_0x4ba208['enableCommand']('deleteForward',(_0x14de76,_0x985535={})=>{const _0x2af8e6=_0x1bd90b['model']['createSelection'](_0x1bd90b['model']['document']['selection']);_0x2af8e6['isCollapsed']&&_0x1bd90b['model']['modifySelection'](_0x2af8e6,{'direction':'forward','unit':_0x985535['unit']});const _0x2b7dad=_0x2af8e6['getFirstRange'](),_0x365296=_0x1ed262['fromRange'](_0x2b7dad);let _0x4d09f1;_0x14de76(_0x985535),_0x4d09f1='$graveyard'==_0x365296['root']['rootName']?_0x1bd90b['model']['createRange'](_0x2b7dad['start']):_0x1bd90b['model']['createRange'](_0x365296['start'],_0x365296['end']),_0x365296['detach'](),_0x1bd90b['model']['enqueueChange'](_0x57d72d['buffer']['batch'],_0x1c76a3=>{_0x57d72d['buffer']['lock'](),_0x1c76a3['setSelection'](_0x1c76a3['createRange'](_0x4d09f1['end'])),_0x57d72d['buffer']['unlock']();});}),_0x1bd90b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1bd90b,'merge'),{'priority':'high'}),_0x1bd90b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xc93429,_0x190999,_0x39840d)=>{_0x39840d['options']['showSuggestionHighlights']&&_e(_0x1bd90b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xc93429,_0x190999,_0x39840d);},{'priority':'high'}),_0x1bd90b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x40d0d7,_0x1a15a0,_0x8d496e)=>{const _0x3d52e0=_0x8d496e['mapper']['markerNameToElements'](_0x1a15a0['markerName']);if(_0x3d52e0){for(const _0x50d58c of _0x3d52e0)_0x50d58c['is']('uiElement')&&(_0x8d496e['mapper']['unbindElementFromMarkerName'](_0x50d58c,_0x1a15a0['markerName']),_0x8d496e['writer']['remove'](_0x50d58c));}},{'priority':'high'});}}class z extends _0x4d32e5{['afterInit'](){const _0x2d6d9b=this['editor'];if(!_0x2d6d9b['plugins']['has']('ListEditing'))return;const _0x4680bb=_0x2d6d9b['locale'],_0x1241e3=_0x2d6d9b['plugins']['get']('TrackChangesEditing'),_0x495eec=_0x2d6d9b['plugins']['has']('TodoListEditing'),_0x5c0f3c=!!_0x2d6d9b['config']['get']('list.multiBlock');function _0x377055(_0x42fb43){return{'type':'format','content':''+o(_0x4680bb,'*Set\x20format:*\x20%0',_0x42fb43)};}function _0x17824d(_0x3bb230){return{'type':'format','content':''+o(_0x4680bb,'*Remove\x20format:*\x20%0',_0x3bb230)};}_0x1241e3['enableDefaultAttributesIntegration']('numberedList'),_0x1241e3['enableDefaultAttributesIntegration']('bulletedList'),_0x1241e3['enableDefaultAttributesIntegration']('customNumberedList'),_0x1241e3['enableDefaultAttributesIntegration']('customBulletedList'),_0x1241e3['enableDefaultAttributesIntegration']('indentList'),_0x1241e3['enableDefaultAttributesIntegration']('outdentList'),_0x1241e3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1241e3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1241e3['registerBlockAttribute']('listItemId'),_0x1241e3['registerBlockAttribute']('listType'),_0x1241e3['registerBlockAttribute']('listIndent'),_0x5c0f3c&&(_0x1241e3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1241e3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x495eec&&(_0x1241e3['enableDefaultAttributesIntegration']('todoList'),_0x1241e3['enableDefaultAttributesIntegration']('checkTodoList'),_0x1241e3['registerBlockAttribute']('todoListChecked'),_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x279f75=>{const {data:_0x557594}=_0x279f75;if(_0x557594&&'todoListChecked'==_0x557594['key'])return{'type':'format','content':_0x557594['newValue']?o(_0x4680bb,'*Check\x20item*'):o(_0x4680bb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x150788=>{if(_0x150788['batch']['isUndo'])return!0x1;let _0x4f8814=!0x1;const _0x40ef53=_0x1241e3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x211dd6=>'todoListChecked'===_0x1241e3['_getAttributeKey'](_0x211dd6));for(const _0x51ead0 of _0x40ef53){'todo'!=_0x51ead0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1241e3['_findSuggestions'](_0x51ead0['getFirstRange'](),'attribute')['find'](_0x2dca94=>'listType'===_0x1241e3['_getAttributeKey'](_0x2dca94['suggestion']))||(_0x150788['removeMarker'](_0x51ead0['getFirstMarker']()),_0x4f8814=!0x0));}return _0x4f8814;})),_0x1241e3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4680bb,'FORMAT_INDENT'));const _0x547d03={'type':'format','content':''};_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x41a194=>{const {data:_0x23d14b}=_0x41a194;if(!_0x23d14b||'listType'!=_0x23d14b['key'])return;let _0x2d6326=_0x41a194['head'];for(;_0x2d6326;){if(_0x2d6326['data']&&(('listStyle'==_0x2d6326['data']['key']||'listMarkerStyle'==_0x2d6326['data']['key'])&&(_0x2d6326['data']['newValue']&&'default'!=_0x2d6326['data']['newValue']||'default'!=_0x2d6326['data']['oldValue']&&!_0x23d14b['newValue'])||!_0x5c0f3c&&_0x2d6326['data']['key']==m))return _0x547d03;_0x2d6326=_0x2d6326['next'];}if(null==_0x23d14b['newValue'])switch(_0x23d14b['oldValue']){case'bulleted':return _0x17824d(o(_0x4680bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17824d(o(_0x4680bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17824d(o(_0x4680bb,'ELEMENT_TODO_LIST'));}switch(_0x23d14b['newValue']){case'bulleted':return _0x377055(o(_0x4680bb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x377055(o(_0x4680bb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x377055(o(_0x4680bb,'ELEMENT_TODO_LIST'));}}),_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x30a35b=>{const {data:_0x3aa358}=_0x30a35b;if(_0x3aa358&&'listIndent'==_0x3aa358['key'])return null==_0x3aa358['newValue']||null==_0x3aa358['oldValue']&&0x0==_0x3aa358['newValue']?_0x547d03:void 0x0;}),_0x1241e3['descriptionFactory']['registerDescriptionCallback'](_0x3810b0=>{if('attribute'!=_0x3810b0['type'])return;const {data:_0x1d0545}=_0x3810b0;if(!_0x1d0545||'listItemId'!=_0x1d0545['key'])return;const _0x1b21f5=le(_0x3810b0);return'newValue'==_0x1b21f5?{'type':'format','content':o(_0x4680bb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1b21f5?{'type':'format','content':o(_0x4680bb,'*Split:*\x20list\x20item')}:_0x547d03;}),_0x2d6d9b['model']['document']['registerPostFixer'](_0x214464=>this['listItemIdFixer'](_0x214464)),_0x2d6d9b['model']['document']['registerPostFixer'](_0x3134d7=>this['noTrackChangesFixer'](_0x3134d7)),_0x2d6d9b['model']['document']['registerPostFixer'](_0x583422=>this['assureChains'](_0x583422)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x488f51){if(_0x488f51['batch']['isUndo']||!_0x488f51['batch']['isLocal'])return!0x1;let _0x53ae69=!0x1;const _0x4cd73c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c7c4=>_0x20c7c4['data']&&'listItemId'==_0x20c7c4['data']['key'])['filter'](_0x28eb30=>_0x28eb30['data']['newValue']&&_0x28eb30['data']['oldValue']);for(const _0x11a803 of _0x4cd73c)le(_0x11a803)||(_0x488f51['removeMarker'](_0x11a803['getFirstMarker']()),_0x53ae69=!0x0);return _0x53ae69;}['noTrackChangesFixer'](_0x288cb2){if(_0x288cb2['batch']['isUndo']||!_0x288cb2['batch']['isLocal'])return!0x1;const _0x1502bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1502bb['trackChangesCommand']['value'])return!0x1;let _0x59dd46=!0x1;const _0x122a64=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x58cf2b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xdfbdb0=>'attribute'==_0xdfbdb0['type'])['filter'](_0x1afb09=>_0x122a64['includes'](_0x1afb09['attributeKey']));if(0x0==_0x58cf2b['length'])return _0x59dd46;for(const _0x104e1b of _0x58cf2b){const _0x46736d=_0x1502bb['_findSuggestions'](_0x104e1b['range'],'attribute')['filter'](_0x372f5f=>!_0x372f5f['meta']['isNextTo'])['map'](_0xad1e79=>_0xad1e79['suggestion'])['filter'](_0x42ebca=>{const _0x5920e9=_0x1502bb['_getAttributeKey'](_0x42ebca);return _0x122a64['includes'](_0x5920e9);});if(_0x46736d['length']){for(const _0xd51fc7 of _0x46736d)_0x288cb2['removeMarker'](_0xd51fc7['getFirstMarker']());_0x59dd46=!0x0;}}return _0x59dd46;}['assureChains'](_0x333448){if(_0x333448['batch']['isUndo']||!_0x333448['batch']['isLocal'])return!0x1;const _0x2f5917=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5d1eb4=!0x1;const _0x4985fc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x783a45 of _0x2f5917['getSuggestions']({'skipNotAttached':!0x0})){const _0x177e00=_0x2f5917['_findSuggestions'](_0x783a45['getFirstRange'](),'attribute')['map'](_0x56d21d=>_0x56d21d['suggestion'])['filter'](_0x5d3d49=>_0x5d3d49['data']&&_0x4985fc['includes'](_0x5d3d49['data']['key']));if(!_0x177e00['length'])continue;const _0x1a93f7=_0x177e00[0x0]['head']['attributes']['groupId'];if(!_0x177e00['every'](_0x1825de=>_0x1825de['attributes']['groupId']===_0x1a93f7)){for(const _0x22b1d8 of _0x177e00)_0x4be920(_0x22b1d8,_0x1a93f7)&&(_0x5d1eb4=!0x0);}}return _0x5d1eb4;function _0x5332f3(_0x51e85b,_0x4dbd8d){for(const _0x271a02 of _0x2f5917['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8bd37=>'attribute'==_0xc8bd37['type']&&_0xc8bd37['attributes']['groupId']==_0x51e85b))_0x271a02['setAttribute']('groupId',_0x4dbd8d);}function _0x4be920(_0x38cecb,_0x3093b4){let _0x3e4f23=_0x38cecb['head'],_0x1e14aa=!0x1;for(;_0x3e4f23;)_0x3e4f23['attributes']['groupId']!=_0x3093b4&&(_0x5332f3(_0x3e4f23['attributes']['groupId'],_0x3093b4),_0x3e4f23['setAttribute']('groupId',_0x3093b4),_0x1e14aa=!0x0),_0x3e4f23=_0x3e4f23['next'];return _0x1e14aa;}}['_supportLegacySuggestions'](){const _0x325875=this['editor'],_0x53599d=_0x325875['locale'],_0x1fa1b6=_0x325875['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fa1b6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f00ff,_0x9810e1){const _0x50b88d=[];for(let _0x213993 of _0x2f00ff)_0x213993['start']['nodeAfter']===_0x213993['end']['parent']&&(_0x213993=_0x325875['model']['createRange'](_0x325875['model']['createPositionAt'](_0x213993['start']['nodeAfter'],0x0))),_0x50b88d['push'](_0x213993);_0x325875['model']['change'](_0x405922=>{const _0x1fbddf=_0x325875['model']['document']['selection'],_0x2ced8a=Array['from'](_0x1fbddf['getRanges']())['map'](_0x23c083=>_0x1ed262['fromRange'](_0x23c083));_0x405922['setSelection'](_0x50b88d),_0x325875['commands']['get'](_0x9810e1['commandName'])['refresh'](),_0x9810e1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x325875['execute'](_0x9810e1['commandName'],..._0x9810e1['commandParams']),_0x405922['setSelection'](_0x2ced8a);for(const _0x4dc472 of _0x2ced8a)_0x4dc472['detach']();});}),_0x1fa1b6['descriptionFactory']['registerElementLabel'](function(_0x30cafa){const _0xafefad=!_0x325875['model']['schema']['isObject'](_0x30cafa),_0x2390fc=_0x30cafa['previousSibling'],_0x5347e5=_0x30cafa['nextSibling'],_0x11d2be=_0x30cafa['getAttribute']('listItemId'),_0x764ef=!_0x2390fc||_0x2390fc['getAttribute']('listItemId')!==_0x11d2be,_0x2fb3e0=!_0x5347e5||_0x5347e5['getAttribute']('listItemId')!==_0x11d2be;return _0xafefad&&Boolean(_0x11d2be)&&_0x764ef&&_0x2fb3e0;},_0x25d276=>o(_0x53599d,'ELEMENT_LIST_ITEM',_0x25d276));}['_registerLegacyDescription'](){const _0x3a6b92=this['editor'],_0x3a59a8=_0x3a6b92['locale'];function _0x5a0a75(_0x575bff){const _0x4ca1c0=_0x3a6b92['commands']['get']('bulletedList')['value'],_0x5d5f67=_0x3a6b92['commands']['get']('numberedList')['value'];return'numberedList'===_0x575bff?_0x4ca1c0:_0x5d5f67;}_0x3a6b92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4910c2){if('formatBlock'!=_0x4910c2['type'])return;const {data:_0x1e51aa}=_0x4910c2;if(!_0x1e51aa)return;let _0x5a7d2a,_0x3b75fd,_0x1444aa,_0x981c78;switch(_0x1e51aa['commandName']){case'bulletedList':_0x1444aa=_0x1e51aa['commandParams'][0x0]['forceValue'],_0x981c78=_0x5a0a75(_0x1e51aa['commandName']),_0x5a7d2a=_0x1444aa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x981c78&&_0x3a6b92['config']['get']('list.multiBlock')||(_0x5a7d2a='*Change\x20to:*\x20%0'),_0x3b75fd={'type':'format','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1444aa=_0x1e51aa['commandParams'][0x0]['forceValue'],_0x981c78=_0x5a0a75(_0x1e51aa['commandName']),_0x5a7d2a=_0x1444aa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x981c78&&_0x3a6b92['config']['get']('list.multiBlock')||(_0x5a7d2a='*Change\x20to:*\x20%0'),_0x3b75fd={'type':'format','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5a7d2a='*Indent:*\x20%0',_0x3b75fd={'type':'format','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5a7d2a=function(_0x2cbb78){const _0x160ad7=_0x2cbb78['getFirstRange']();let _0x217bcf=_0x160ad7['start']['nodeAfter'];for(;_0x217bcf&&_0x160ad7['containsItem'](_0x217bcf);){if(_0x217bcf['getAttribute']('listIndent')>0x0)return!0x1;_0x217bcf=_0x217bcf['nextSibling'];}return!0x0;}(_0x4910c2)?o(_0x3a59a8,'*Format:*\x20remove\x20from\x20%0',o(_0x3a59a8,function(_0x6800bd){return'ELEMENT_'+_0x6800bd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4910c2))):o(_0x3a59a8,'*Outdent:*\x20%0',o(_0x3a59a8,'ELEMENT_LIST_ITEM')),_0x3b75fd={'type':'format','content':_0x5a7d2a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e51aa['multipleBlocks']&&(_0x5a7d2a='*Merge:*\x20%0',_0x3b75fd={'type':'deletion','content':o(_0x3a59a8,_0x5a7d2a,o(_0x3a59a8,'ELEMENT_LIST_ITEM'))});}return _0x3b75fd;});}}function le(_0xc392f4){let _0x3dd2df=_0xc392f4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3dd2df;){const _0x58a1ab=_0x3dd2df['getAttribute']('listItemId');if(!_0x58a1ab)return!0x1;if(_0x58a1ab==_0xc392f4['data']['newValue'])return'newValue';if(_0x58a1ab==_0xc392f4['data']['oldValue'])return'oldValue';_0x3dd2df=_0x3dd2df['previousSibling'];}return!0x1;}class ue extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x156848=this['editor']['config']['get']('list.properties'),_0x512877=this['editor']['plugins']['get']('TrackChangesEditing');_0x156848['styles']&&(_0x512877['enableDefaultAttributesIntegration']('listStyle'),_0x512877['registerBlockAttribute']('listStyle')),_0x156848['reversed']&&(_0x512877['enableDefaultAttributesIntegration']('listReversed'),_0x512877['registerBlockAttribute']('listReversed')),_0x156848['startIndex']&&(_0x512877['enableDefaultAttributesIntegration']('listStart'),_0x512877['registerBlockAttribute']('listStart'));const _0x438b00={'type':'format','content':''};_0x512877['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x40d538=this['editor']['locale'];_0x512877['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x40d538,'FORMAT_LIST_REVERSED')),_0x512877['descriptionFactory']['registerDescriptionCallback'](_0x32649a=>{const {data:_0x2354da}=_0x32649a;if(_0x2354da&&'listReversed'==_0x2354da['key'])return null==_0x2354da['newValue']||0x0==_0x2354da['newValue']&&null==_0x2354da['oldValue']?_0x438b00:void 0x0;}),_0x512877['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x40d538,'FORMAT_LIST_START')),_0x512877['descriptionFactory']['registerDescriptionCallback'](_0x53651f=>{const {data:_0x26133b}=_0x53651f;if(_0x26133b&&'listStart'==_0x26133b['key'])return null==_0x26133b['newValue']||0x1==_0x26133b['newValue']&&null==_0x26133b['oldValue']?_0x438b00:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa8f997=>{if(_0xa8f997['batch']['isUndo'])return!0x1;let _0x4ac25b=!0x1;const _0xb17439=_0x512877['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a739c=>{const _0x57c4f3=_0x512877['_getAttributeKey'](_0x2a739c);return'listStart'==_0x57c4f3||'listReversed'==_0x57c4f3;});for(const _0x138f63 of _0xb17439){const _0x4c98b2=_0x138f63['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c98b2||'customNumbered'==_0x4c98b2)continue;_0x512877['_findSuggestions'](_0x138f63['getFirstRange'](),'attribute')['find'](_0x5d013a=>'listType'==_0x512877['_getAttributeKey'](_0x5d013a['suggestion']))||(_0xa8f997['removeMarker'](_0x138f63['getFirstMarker']()),_0x4ac25b=!0x0);}return _0x4ac25b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ee399){const _0x5c9819=this['editor']['locale'],{data:_0x4bc147}=_0x5ee399,_0x23452a={'type':'format','content':''};if(!_0x4bc147||'listStyle'!=_0x4bc147['key'])return;if(!_0x4bc147['oldValue'])return'default'==_0x4bc147['newValue']?_0x23452a:{'type':'format','content':''+o(_0x5c9819,'*Set\x20format:*\x20%0',o(_0x5c9819,this['_getTranslationKeyForListStyle'](_0x4bc147['newValue'])))};if(!_0x4bc147['newValue']){if('default'==_0x4bc147['oldValue'])return _0x23452a;let _0x2af891=_0x5ee399['head'];for(;_0x2af891;){if(_0x2af891['data']&&'listType'==_0x2af891['data']['key']&&_0x2af891['data']['newValue'])return _0x23452a;_0x2af891=_0x2af891['next'];}return{'type':'format','content':''+o(_0x5c9819,'*Remove\x20format:*\x20%0',o(_0x5c9819,this['_getTranslationKeyForListStyle'](_0x4bc147['oldValue'])))};}if('default'!=_0x4bc147['newValue'])return{'type':'format','content':''+o(_0x5c9819,'*Set\x20format:*\x20%0',o(_0x5c9819,this['_getTranslationKeyForListStyle'](_0x4bc147['newValue'])))};let _0x240bb0=_0x5ee399['head'];for(;_0x240bb0;){if(_0x240bb0['data']&&'listType'==_0x240bb0['data']['key']&&_0x240bb0['data']['newValue']&&_0x240bb0['data']['oldValue'])return _0x23452a;_0x240bb0=_0x240bb0['next'];}return{'type':'format','content':o(_0x5c9819,'*Set\x20format:*\x20%0',o(_0x5c9819,'ELEMENT_'+_0x5ee399['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1dc423=this['editor'],_0x5995da=_0x1dc423['locale'];_0x1dc423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2241f6=>{if('formatBlock'!=_0x2241f6['type'])return;const {data:_0x24beab}=_0x2241f6;if(!_0x24beab)return;let _0x3857b9,_0x583dac;switch(_0x24beab['commandName']){case'listStyle':_0x3857b9='*Change\x20to:*\x20%0',_0x583dac={'type':'format','content':o(_0x5995da,_0x3857b9,o(_0x5995da,this['_getTranslationKeyForListStyle'](_0x24beab['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3857b9=_0x24beab['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x583dac={'type':'format','content':o(_0x5995da,_0x3857b9)};break;case'listStart':_0x3857b9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x583dac={'type':'format','content':o(_0x5995da,_0x3857b9,_0x24beab['commandParams'][0x0]['startIndex'])};}return _0x583dac;});}['_getTranslationKeyForListStyle'](_0x63f9af){return'ELEMENT_'+function(_0x16cf9c){if(pe['includes'](_0x16cf9c))return'bulleted';if(ye['includes'](_0x16cf9c))return'numbered';return null;}(_0x63f9af)['toUpperCase']()+'_LIST_'+_0x63f9af['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4d32e5{static get['requires'](){return[_0x280d01];}['init'](){const _0x186e7e=this['editor'],_0x2f49a0=_0x186e7e['plugins']['get']('TrackChangesEditing'),_0x76ef7f=_0x186e7e['commands']['get']('enter');_0x2f49a0['enableCommand']('enter',()=>{_0x186e7e['model']['change'](_0xe376bc=>{const _0x126887=_0x186e7e['model']['document']['selection'],_0x2a8f8f=_0x126887['getFirstPosition'](),_0x35b0d5=_0x1ed262['fromRange'](_0x126887['getFirstRange']());if(_0x76ef7f['enterBlock'](_0xe376bc)){const _0x525604=_0x186e7e['model']['createPositionAt'](_0x2a8f8f['parent']['nextSibling'],0x0),_0x31c59e=_0xe376bc['createRange'](_0x2a8f8f,_0x525604);_0x2f49a0['markInsertion'](_0x31c59e);}else _0xe376bc['setSelection'](_0xe376bc['createRange'](_0x35b0d5['end']));_0x35b0d5['detach'](),_0x76ef7f['fire']('afterExecute',{'writer':_0xe376bc});});}),_0x186e7e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x186e7e,'split'),{'priority':'high'}),_0x186e7e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3d004f,_0x3d27cb,_0x5955c7)=>{const _0x52f886=_0x5955c7['mapper']['markerNameToElements'](_0x3d27cb['markerName']);if(_0x52f886){for(const _0x53fed2 of _0x52f886)_0x53fed2['hasClass']('ck-suggestion-marker-split')&&(_0x5955c7['mapper']['unbindElementFromMarkerName'](_0x53fed2,_0x3d27cb['markerName']),_0x5955c7['writer']['remove'](_0x53fed2));}},{'priority':'high'}),_0x186e7e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4340d1,_0x59c2aa,_0x192a5d)=>{_0x192a5d['options']['showSuggestionHighlights']&&_e(_0x186e7e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4340d1,_0x59c2aa,_0x192a5d);},{'priority':'high'});}}class J extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x145ba2=this['editor']['plugins']['get']('TrackChangesEditing');_0x145ba2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x145ba2['enableCommand']('findNext'),_0x145ba2['enableCommand']('findPrevious'),_0x145ba2['enableCommand']('replace'),_0x145ba2['enableCommand']('replaceAll');}['handleFindCommand'](_0x146e48,_0x48b637,_0x6ea953={}){const _0x5686cf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x146e48(_0x43b6b8=>('string'==typeof _0x48b637?_0x5686cf['findByTextCallback'](_0x48b637,_0x6ea953):_0x48b637)(_0x43b6b8)['filter'](_0x5e277c=>!0x1===this['_isInDeletionRange'](_0x5e277c,_0x43b6b8['item'])),_0x6ea953);}['_isInDeletionRange'](_0x54bcd0,_0x3bb9d9){const _0x23a95e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bb9d9,_0x54bcd0['start']),this['editor']['model']['createPositionAt'](_0x3bb9d9,_0x54bcd0['end']));for(const _0x2b04cb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23a95e['getIntersection'](_0x2b04cb['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 _0x4d32e5{['afterInit'](){const _0x3b9573=this['editor']['locale'],_0x9be8ad=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x954640,commandName:_0x137e8f}of ro)this['editor']['plugins']['has'](_0x954640)&&(_0x9be8ad['enableDefaultAttributesIntegration'](_0x137e8f),_0x9be8ad['registerInlineAttribute'](_0x137e8f));_0x3b9573['t'],_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3b9573,'FORMAT_FONT_SIZE')),_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3b9573,'FORMAT_FONT_FAMILY')),_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3b9573,'FORMAT_FONT_COLOR')),_0x9be8ad['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3b9573,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x382a3f=this['editor'],_0x48b94b=_0x382a3f['locale'];_0x382a3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f81bb=>{const _0x4a9145=_0x48b94b['t'];if('formatInline'!=_0x9f81bb['type'])return;const {data:_0x1638a2}=_0x9f81bb;if(null!=_0x1638a2){if('fontSize'==_0x1638a2['commandName']){const _0x4db166=_0x1638a2['commandParams'][0x0]['value'];if(_0x4db166){const _0x2c550d=_0x4a9145(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2c41ff=>_0x2c41ff['model']==_0x4db166)['title'])['toLowerCase']();return{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20size:*\x20%0',_0x2c550d)};}return{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1638a2['commandName']){const _0x3dea77=_0x1638a2['commandParams'][0x0]['value'];return _0x3dea77?{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20family:*\x20%0',_0x3dea77)}:{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1638a2['commandName']){const _0x3cf590=_0x1638a2['commandParams'][0x0]['value'];if(_0x3cf590){const _0x5f53c0=_0x3b7991(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1de357=>_0x1de357['model']==_0x3cf590);let _0x20f49c=_0x3cf590,_0x261205='';return _0x5f53c0&&(_0x20f49c=_0x5f53c0['label'],_0x261205=_0x4a9145(_0x20f49c)['toLowerCase']()),{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20color:*\x20%0',_0x261205)['trim'](),'color':{'value':_0x3cf590,'title':_0x261205||_0x20f49c}};}return{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1638a2['commandName']){const _0x49dedd=_0x1638a2['commandParams'][0x0]['value'];if(_0x49dedd){const _0x761647=_0x3b7991(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x396697=>_0x396697['model']==_0x49dedd);let _0x4c3ac3=_0x49dedd,_0x40e2d5='';return _0x761647&&(_0x4c3ac3=_0x761647['label'],_0x40e2d5=_0x4a9145(_0x4c3ac3)['toLowerCase']()),{'type':'format','content':o(_0x48b94b,'*Set\x20font\x20background\x20color:*\x20%0',_0x40e2d5)['trim'](),'color':{'value':_0x49dedd,'title':_0x40e2d5||_0x4c3ac3}};}return{'type':'format','content':o(_0x48b94b,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4d32e5{['afterInit'](){const _0x3435b9=this['editor'],_0xb74511=_0x3435b9['plugins']['get']('TrackChangesEditing'),_0x729b4c=_0x3435b9['commands']['get']('copyFormat'),_0x3a847b=_0x3435b9['commands']['get']('pasteFormat');_0x729b4c&&_0x3a847b&&(_0xb74511['enableDefaultAttributesIntegration']('pasteFormat'),_0xb74511['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20996a=this['editor'],_0x25650e=_0x20996a['locale'];_0x20996a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ced2=>{if('formatBlock'!=_0x55ced2['type']&&'formatInline'!=_0x55ced2['type'])return;const {data:_0x12c799}=_0x55ced2;if(_0x12c799&&'pasteFormat'===_0x12c799['commandName']){const _0x276a6a=[],_0x4ab023=_0x12c799['commandParams'][0x0];for(const [_0x518980,_0x589f01]of Object['entries'](_0x4ab023))_0x276a6a['push'](so(_0x20996a,_0x518980,_0x589f01));return _0x276a6a['length']?{'type':'format','content':o(_0x25650e,'*Set\x20format\x20to:*\x20%0',_0x276a6a['join'](',\x20'))}:{'type':'format','content':o(_0x25650e,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa82ae,_0x527978,_0x233145){const _0x7bf129=_0xa82ae['locale']['t'],_0x2bdb7f=_0x527978['split'](/(?=[A-Z])/)['join']('\x20'),_0x264d28=_0x7bf129(_0x2bdb7f['charAt'](0x0)['toUpperCase']()+_0x2bdb7f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x233145)return _0x264d28;if('fontColor'===_0x527978||'fontBackgroundColor'===_0x527978){const _0x2fcb8d=_0x3b7991(_0xa82ae['config']['get']('fontColor.colors'))['find'](_0x326a53=>_0x326a53['model']==_0x233145);return _0x264d28+'\x20('+(_0x2fcb8d?_0x7bf129(_0x2fcb8d['label'])['toLowerCase']():_0x233145)+')';}if('fontSize'===_0x527978&&isNaN(parseFloat(_0x233145))){const _0xcbfa31=_0xa82ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa82ae['config']['get']('fontSize.options'))['find'](_0xbd639a=>_0xbd639a['model']==_0x233145);return _0x264d28+'\x20('+(_0xcbfa31?_0x7bf129(_0xcbfa31['title'])['toLowerCase']():_0x233145)+')';}return _0x264d28+'\x20('+_0x233145+')';}class Y extends _0x4d32e5{['afterInit'](){const _0x2f27b2=this['editor'];if(!_0x2f27b2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f27b2['config']['get']('heading.options');const _0x526a2b=_0x2f27b2['locale'],_0x5617cd=_0x2f27b2['plugins']['get']('TrackChangesEditing');_0x5617cd['enableDefaultAttributesIntegration']('heading');for(const _0x3cecc5 of this['_headingOptions'])'paragraph'!=_0x3cecc5['model']&&_0x5617cd['descriptionFactory']['registerElementLabel'](_0x3cecc5['model'],_0x401109=>{const _0x159853=this['_getHeadingLevel'](_0x3cecc5['model']);return null!==_0x159853?_0x50bf1a(_0x401109,_0x159853):_0x2d3b79(_0x401109,_0x3cecc5['title']);});function _0x50bf1a(_0x37eed7,_0x43d0b3){return o(_0x526a2b,'ELEMENT_HEADING',[_0x37eed7,_0x43d0b3]);}function _0x2d3b79(_0xca6039,_0x3cf68a){return o(_0x526a2b,'ELEMENT_HEADING_CUSTOM',[_0xca6039,_0x3cf68a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a335f=this['editor'],_0x3b80ca=_0x3a335f['locale'];function _0x3add7a(_0x54b255,_0x377305){return o(_0x3b80ca,'ELEMENT_HEADING_CUSTOM',[_0x54b255,_0x377305]);}_0x3a335f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x176f96=>{if('formatBlock'!=_0x176f96['type'])return;const {data:_0x2cc6cf}=_0x176f96;if(_0x2cc6cf&&'heading'==_0x2cc6cf['commandName']){const _0x38f093=_0x2cc6cf['commandParams'][0x0]['value'],_0x2c9b35=this['_getHeadingLevel'](_0x38f093);if(null!==_0x2c9b35)return{'type':'format','content':o(_0x3b80ca,'*Change\x20to:*\x20%0',(_0x31ee50=0x1,_0x250b95=_0x2c9b35,o(_0x3b80ca,'ELEMENT_HEADING',[_0x31ee50,_0x250b95])))};const _0x4d7a2d=this['_headingOptions']['find'](_0x414900=>_0x414900['model']===_0x38f093)['title'];return{'type':'format','content':o(_0x3b80ca,'*Change\x20to:*\x20%0',_0x3add7a(0x1,_0x4d7a2d))};}var _0x31ee50,_0x250b95;});}['_getHeadingLevel'](_0x2344f4){var _0x199dda,_0x152d92;const _0x3440c5=_0x2344f4['match'](/^heading(\d+)/);if(_0x3440c5)return _0x3440c5[0x1];const _0x462197=null===(_0x199dda=this['_headingOptions'])||void 0x0===_0x199dda?void 0x0:_0x199dda['find'](_0x3dfe44=>_0x3dfe44['model']==_0x2344f4);if(_0x462197&&_0x462197['view']){const _0x2ec91e=_0x462197['view'],_0x305f64=(null!==(_0x152d92=_0x2ec91e['name'])&&void 0x0!==_0x152d92?_0x152d92:_0x2ec91e)['match'](/^h(\d+)/);if(_0x305f64)return _0x305f64[0x1];}return null;}}class Z extends _0x4d32e5{['afterInit'](){const _0x397cef=this['editor'];if(!_0x397cef['plugins']['has']('HighlightEditing'))return;const _0xf98df2=_0x397cef['plugins']['get']('TrackChangesEditing'),_0x276cc1=_0x397cef['locale'];_0xf98df2['enableDefaultAttributesIntegration']('highlight'),_0xf98df2['registerInlineAttribute']('highlight'),_0xf98df2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x276cc1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x428a23=this['editor'],_0xc1a067=_0x428a23['locale'];_0x428a23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b925f=>{if('formatInline'!=_0x1b925f['type'])return;const {data:_0x2faacc}=_0x1b925f;if(_0x2faacc&&'highlight'==_0x2faacc['commandName']){const _0x38ad75=_0xc1a067['t'],_0x3590d0=_0x2faacc['commandParams'][0x0]['value'];if(_0x3590d0){const _0x46b102=_0x428a23['config']['get']('highlight.options')['find'](_0x43792a=>_0x43792a['model']==_0x3590d0),_0x45f1a8=_0x38ad75(_0x46b102['title'])['toLowerCase']();return{'type':'format','content':o(_0xc1a067,'*Set\x20highlight:*\x20%0',_0x45f1a8),'color':{'value':_0x46b102['color'],'title':_0x46b102['title']}};}return{'type':'format','content':o(_0xc1a067,'*Remove\x20highlight*',o(_0xc1a067,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4d32e5{['afterInit'](){const _0x98f694=this['editor'];if(!_0x98f694['plugins']['has']('HorizontalLineEditing'))return;_0x98f694['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xc8f995=_0x98f694['plugins']['get']('TrackChangesEditing'),_0x15d740=_0x98f694['locale'];_0xc8f995['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33f402=>o(_0x15d740,'ELEMENT_HORIZONTAL_LINE',_0x33f402)),_0x98f694['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x503514,{writer:_0x2a7185,options:_0x4acd58})=>{if(!_0x4acd58['showSuggestionHighlights'])return null;const _0x54b2b9=_0x2a7185['createContainerElement']('div'),_0x116e24=_0x2a7185['createEmptyElement']('hr');return _0x2a7185['addClass']('ck-horizontal-line',_0x54b2b9),_0x2a7185['insert'](_0x2a7185['createPositionAt'](_0x54b2b9,0x0),_0x116e24),_0x54b2b9;},'converterPriority':'high'});}}class et extends _0x4d32e5{['afterInit'](){const _0x2eaff7=this['editor'];if(!_0x2eaff7['plugins']['has']('HtmlEmbed'))return;const _0x28124e=_0x2eaff7['plugins']['get']('TrackChangesEditing'),_0x307613=_0x2eaff7['locale'];_0x28124e['descriptionFactory']['registerElementLabel']('rawHtml',_0x4047ed=>o(_0x307613,'ELEMENT_HTML_EMBED',_0x4047ed)),_0x28124e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x28124e['registerBlockAttribute']('value'),_0x28124e['descriptionFactory']['registerDescriptionCallback'](_0x361616=>{if('attribute'!=_0x361616['type'])return;const {data:_0x5d3e3b}=_0x361616;if(_0x5d3e3b&&'value'==_0x5d3e3b['key']&&_0x361616['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x229fc7=o(_0x307613,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x307613,'*Change\x20%0\x20content*',_0x229fc7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40702e=this['editor'],_0x1d5520=_0x40702e['locale'];_0x40702e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x931e93=>{if('formatBlock'!=_0x931e93['type'])return;const {data:_0x1872b7}=_0x931e93;if(_0x1872b7&&'htmlEmbed'==_0x1872b7['commandName']){const _0x5039f6=o(_0x1d5520,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d5520,'*Change\x20%0\x20content*',_0x5039f6)};}});}}class it extends _0x4d32e5{['afterInit'](){const _0x5c3b98=this['editor'];if(!_0x5c3b98['plugins']['has']('ImageEditing'))return;const _0x3ed622=_0x5c3b98['plugins']['get']('TrackChangesEditing'),_0x29faf4=_0x5c3b98['plugins']['get']('ImageUtils'),_0x7c0783=_0x5c3b98['locale'];_0x3ed622['enableCommand']('insertImage'),_0x3ed622['descriptionFactory']['registerElementLabel']('imageBlock',_0x5830a6=>o(_0x7c0783,'ELEMENT_IMAGE',_0x5830a6)),_0x3ed622['descriptionFactory']['registerElementLabel']('imageInline',_0xce1ec5=>o(_0x7c0783,'ELEMENT_INLINE_IMAGE',_0xce1ec5)),_0x3ed622['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7c0783,'ELEMENT_CAPTION')),_0x5c3b98['plugins']['has']('ImageUploadEditing')&&_0x3ed622['enableCommand']('uploadImage'),_0x5c3b98['plugins']['has']('ImageBlockEditing')&&_0x5c3b98['plugins']['has']('ImageInlineEditing')&&(_0x3ed622['enableCommand']('imageTypeInline',(_0x48fd52,_0x1eccec)=>{const _0x1eb0ed=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']);_0x5c3b98['model']['change'](()=>{_0x3ed622['markBlockFormat'](_0x1eb0ed,{'commandName':'imageTypeInline','commandParams':[_0x1eccec]},[],'convertBlockImageToInline');});}),_0x3ed622['enableCommand']('imageTypeBlock',(_0x2118a7,_0x2fc1a7)=>{_0x5c3b98['model']['change'](_0xed7df1=>{let _0x3fa4ae=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5ece7d=_0xed7df1['createRangeOn'](_0x3fa4ae);const _0x4eeadc=_0x326423['fromPosition'](_0x5ece7d['start'],'toPrevious'),_0x1c94f0=_0x326423['fromPosition'](_0x5ece7d['end'],'toNext');_0x3ed622['forceDefaultExecution'](()=>_0x2118a7(_0x2fc1a7)),_0x3fa4ae=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5ece7d=_0xed7df1['createRangeOn'](_0x3fa4ae);const _0x34efa9=_0xed7df1['createRange'](_0x4eeadc,_0x1c94f0);_0x4eeadc['detach'](),_0x1c94f0['detach'](),_0x3ed622['markBlockFormat'](_0x3fa4ae,{'commandName':'imageTypeInline','commandParams':[_0x2fc1a7]},[],'convertInlineImageToBlock'),_0x34efa9['start']['isBefore'](_0x5ece7d['start'])&&_0x3ed622['markInsertion'](_0xed7df1['createRange'](_0x34efa9['start'],_0x5ece7d['start']),'convertInlineImageToBlock'),_0x5ece7d['end']['isBefore'](_0x34efa9['end'])&&_0x3ed622['markInsertion'](_0xed7df1['createRange'](_0x5ece7d['end'],_0x34efa9['end']),'convertInlineImageToBlock');});}),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ed622['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbccd3c])=>{const _0x28f0ea=_0x3ed622['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2ee58b=_0xbccd3c['start'],_0x4c1932=_0xbccd3c['end'];const _0x4e7af2=_0x5c3b98['model']['schema']['getNearestSelectionRange'](_0x2ee58b,'backward'),_0xde3abf=_0x5c3b98['model']['schema']['getNearestSelectionRange'](_0x4c1932,'forward');_0x4e7af2['isCollapsed']&&(_0x2ee58b=_0x4e7af2['start']),_0xde3abf['isCollapsed']&&(_0x4c1932=_0xde3abf['end']),_0x28f0ea([_0x5c3b98['model']['createRange'](_0x2ee58b,_0x4c1932)]);}),_0x3ed622['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x10215f),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x10215f)),_0x5c3b98['plugins']['has']('ImageCaptionEditing')&&(_0x3ed622['enableCommand']('toggleImageCaption',(_0x17fa6e,_0x19a3c7)=>{const _0x3d37ce=_0x5c3b98['plugins']['get']('ImageCaptionUtils');let _0x5cbeed=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5d2720=_0x3d37ce['getCaptionFromImageModelElement'](_0x5cbeed);_0x5c3b98['model']['change'](()=>{if(_0x5d2720)return void _0x3ed622['markDeletion'](_0x5c3b98['model']['createRangeOn'](_0x5d2720));const _0x1390d7=_0x29faf4['isBlockImage'](_0x5cbeed);_0x17fa6e(_0x19a3c7),_0x5cbeed=_0x29faf4['getClosestSelectedImageElement'](_0x5c3b98['model']['document']['selection']),_0x5d2720=_0x3d37ce['getCaptionFromImageModelElement'](_0x5cbeed),_0x3ed622['markInsertion'](_0x5c3b98['model']['createRangeOn'](_0x5d2720),_0x1390d7?null:'imageCaption');});}),_0x3ed622['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x10215f));const _0x52e91c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ee8a7(_0x429edf,_0x5d2995){const _0x22baaf=_0x52e91c['findIndex'](({type:_0x224e6d,subType:_0x50b423})=>_0x429edf['type']==_0x224e6d&&_0x429edf['subType']==_0x50b423),_0x982e1c=_0x52e91c['findIndex'](({type:_0x149ce4,subType:_0x4c15f3})=>_0x5d2995['type']==_0x149ce4&&_0x5d2995['subType']==_0x4c15f3);if(_0x22baaf<0x0||_0x982e1c<0x0)return!0x1;const _0x49b004=_0x429edf['getFirstRange'](),_0x579b99=_0x5d2995['getFirstRange']();if((0x0==_0x22baaf||0x1==_0x22baaf)&&0x2==_0x982e1c&&_0x49b004['isIntersecting'](_0x579b99))return!0x0;if(0x2==_0x22baaf&&0x3==_0x982e1c){const _0x3ca190=_0x3ed622['_findSuggestions'](_0x49b004,'insertion')['filter'](({suggestion:_0xc8537c,meta:_0x5648ce})=>_0x5648ce['isOwn']&&'convertInlineImageToBlock'==_0xc8537c['subType']);if(_0x3ca190['length']>0x1&&_0x579b99['end']['isEqual'](_0x49b004['start']))return!0x0;if(0x1==_0x3ca190['length']&&(_0x49b004['start']['isEqual'](_0x579b99['end'])||_0x49b004['end']['isEqual'](_0x579b99['start'])))return!0x0;}if(0x3==_0x22baaf&&0x3==_0x982e1c&&_0x49b004['start']['isBefore'](_0x579b99['start'])){const _0xf6fe48=_0x49b004['end']['nodeAfter'],_0x56fe16=_0x579b99['start']['nodeBefore'];return _0x29faf4['isBlockImage'](_0xf6fe48)&&_0xf6fe48===_0x56fe16;}return!0x1;}function _0x10215f(_0x47b17f,_0x36fa7e){return _0x4ee8a7(_0x47b17f,_0x36fa7e)?[_0x47b17f,_0x36fa7e]:_0x4ee8a7(_0x36fa7e,_0x47b17f)?[_0x36fa7e,_0x47b17f]:null;}_0x5c3b98['plugins']['has']('ImageResize')&&(_0x3ed622['enableDefaultAttributesIntegration']('resizeImage'),_0x3ed622['registerBlockAttribute']('resizedWidth'),_0x3ed622['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7c0783,'FORMAT_IMAGE_SIZE'))),_0x5c3b98['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ed622['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ed622['registerBlockAttribute']('alt')),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x54d008=>{if(!!_0x52e91c['find'](({type:_0x290082,subType:_0x203886})=>_0x54d008['type']==_0x290082&&_0x54d008['subType']==_0x203886))return _0x54d008['previous']?{}:void 0x0;}),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x5d1f06=>{if('insertion'==_0x5d1f06['type']||'deletion'==_0x5d1f06['type']){const _0xe3e7a9=_0x5d1f06['getContainedElement']();if(_0xe3e7a9&&_0xe3e7a9['is']('element','caption'))return{'type':'insertion'==_0x5d1f06['type']?'addObject':'removeObject','element':_0xe3e7a9,'quantity':0x1};}}),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x5f242f=>'formatBlock'==_0x5f242f['type']&&'convertInlineImageToBlock'==_0x5f242f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f242f['type']&&'convertBlockImageToInline'==_0x5f242f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ed622['descriptionFactory']['registerDescriptionCallback'](_0x3c4078=>{if('attribute'!=_0x3c4078['type'])return;const {data:_0x25007f}=_0x3c4078;if(!_0x25007f||'alt'!=_0x25007f['key'])return;const _0x312fd9=_0x25007f['newValue'];return _0x312fd9?{'type':'format','content':o(_0x7c0783,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x312fd9+'\x22')}:{'type':'format','content':o(_0x7c0783,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5891ae=this['editor'],_0x4d6450=_0x5891ae['locale'];_0x5891ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c7fc=>{if('formatBlock'!=_0x20c7fc['type']&&'formatInline'!=_0x20c7fc['type'])return;const {data:_0x4b46ac}=_0x20c7fc;if(_0x4b46ac){if('imageTextAlternative'==_0x4b46ac['commandName']){const _0x27485c=_0x4b46ac['commandParams'][0x0]['newValue'];return _0x27485c?{'type':'format','content':o(_0x4d6450,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27485c+'\x22')}:{'type':'format','content':o(_0x4d6450,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b46ac['commandName']){const _0x66a90d=_0x4b46ac['commandParams'][0x0]['width'];return _0x66a90d?{'type':'format','content':o(_0x4d6450,'*Set\x20image\x20width:*\x20%0',_0x66a90d)}:{'type':'format','content':o(_0x4d6450,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x22d441=this['editor']['locale'],_0x4748a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4748a1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4748a1['registerBlockAttribute']('src'),_0x4748a1['descriptionFactory']['registerDescriptionCallback'](_0x4b3f24=>{if('attribute'!=_0x4b3f24['type'])return;const {data:_0x190e40}=_0x4b3f24;return _0x190e40&&'src'==_0x190e40['key']?_0x190e40['newValue']&&_0x190e40['oldValue']?{'type':'format','content':o(_0x22d441,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x29f731=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f731['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x29f731['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29f731['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x29f731['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5acde6=this['editor'],_0x4fc282=_0x5acde6['locale'];_0x5acde6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb577ac=>{if('formatBlock'!=_0xb577ac['type']&&'formatInline'!=_0xb577ac['type'])return;const {data:_0x3cdc57}=_0xb577ac;if(!_0x3cdc57||'replaceImageSource'!=_0x3cdc57['commandName'])return;return{'type':'format','content':o(_0x4fc282,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4d32e5{['afterInit'](){const _0x53d50a=this['editor'];if(!_0x53d50a['plugins']['has']('ImageStyleEditing'))return;const _0xe0b4f5=_0x53d50a['plugins']['get']('TrackChangesEditing'),_0x402058=_0x53d50a['plugins']['get']('ImageUtils'),_0xdd1f3b={};_0xe0b4f5['enableCommand']('imageStyle',(_0x588817,_0x2abeb6)=>{const _0x57a8f5=_0x53d50a['plugins']['get']('Users')['me'],_0x26090d=_0x53d50a['commands']['get']('imageStyle');let _0x54863d=_0x402058['getClosestSelectedImageElement'](_0x53d50a['model']['document']['selection']),_0x2c2b6c=_0x53d50a['model']['createRangeOn'](_0x54863d),_0x487cad=_0x26090d['value'];if(_0x487cad==_0x2abeb6['value'])return;const _0x2e8511={'commandName':'imageStyle','commandParams':[_0x2abeb6],'formatGroupId':_0x51245d()};_0x53d50a['model']['change'](()=>{if(_0xe0b4f5['getSuggestions']()['filter'](_0x275f85=>_0x275f85['isInContent']&&_0x57a8f5==_0x275f85['author']&&('formatBlock'==_0x275f85['type']||'formatInline'==_0x275f85['type'])&&('imageStylePreApply'==_0x275f85['subType']||'imageStylePostApply'==_0x275f85['subType'])&&_0x275f85['getFirstRange']()['isEqual'](_0x2c2b6c))['forEach'](_0x4745d3=>_0xe0b4f5['discardSuggestion'](_0x4745d3['head'])),_0x54863d=_0x402058['getClosestSelectedImageElement'](_0x53d50a['model']['document']['selection']),_0x2c2b6c=_0x53d50a['model']['createRangeOn'](_0x54863d),_0x26090d['refresh'](),_0x53d50a['commands']['get']('imageTypeInline')['refresh'](),_0x53d50a['commands']['get']('imageTypeBlock')['refresh'](),_0x487cad=_0x26090d['value'],_0x487cad!=_0x2abeb6['value'])return _0x402058['isInlineImage'](_0x54863d)&&_0x26090d['shouldConvertImageType'](_0x2abeb6['value'],_0x54863d)?(_0x588817({..._0x2abeb6,'setImageSizes':!0x1}),_0x54863d=_0x402058['getClosestSelectedImageElement'](_0x53d50a['model']['document']['selection']),void _0xe0b4f5['markBlockFormat'](_0x54863d,{..._0x2e8511,'commandReversedParams':[{'value':_0x487cad||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x402058['isBlockImage'](_0x54863d)?_0xe0b4f5['markBlockFormat'](_0x54863d,_0x2e8511,[],'imageStylePostApply'):_0xe0b4f5['markInlineFormat'](_0x2c2b6c,_0x2e8511,'imageStylePostApply'));});});for(const _0x294c59 of _0x53d50a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xdd1f3b[_0x294c59['name']]=_0x294c59['title']['toLowerCase']();_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1cf36d])=>{_0x402058['setImageNaturalSizeAttributes'](_0x1cf36d['getContainedElement']());}),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cea5e,_0x573901)=>{_0xe0b4f5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cea5e,{'commandName':_0x573901['commandName'],'commandParams':_0x573901['commandReversedParams']});}),_0xe0b4f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e5ab4,_0x16ae43){if(_0x2be257(_0x3e5ab4,_0x16ae43))return[_0x3e5ab4,_0x16ae43];if(_0x2be257(_0x16ae43,_0x3e5ab4))return[_0x16ae43,_0x3e5ab4];return null;});const _0x5d482e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2be257(_0x53f3fe,_0x3d64d7){const _0x3a3586=_0x5d482e['findIndex'](({type:_0x4b5304,subType:_0x5b1e96})=>_0x53f3fe['type']==_0x4b5304&&_0x53f3fe['subType']==_0x5b1e96),_0x338427=_0x5d482e['findIndex'](({type:_0x3c9532,subType:_0x29c8cb})=>_0x3d64d7['type']==_0x3c9532&&_0x3d64d7['subType']==_0x29c8cb);if(_0x3a3586<0x0||_0x338427<0x0)return!0x1;const _0x272ff4=_0x53f3fe['getFirstRange'](),_0x12584c=_0x3d64d7['getFirstRange']();if((0x0==_0x3a3586||0x1==_0x3a3586)&&0x2==_0x338427&&_0x272ff4['isIntersecting'](_0x12584c))return!0x0;if(0x2==_0x3a3586&&0x3==_0x338427){const _0x2f75e6=_0xe0b4f5['_findSuggestions'](_0x272ff4,'insertion')['filter'](({suggestion:_0x2674d7,meta:_0x53d020})=>_0x53d020['isOwn']&&'convertInlineImageToBlock'==_0x2674d7['subType']);if(_0x2f75e6['length']>0x1&&_0x12584c['end']['isEqual'](_0x272ff4['start']))return!0x0;if(0x1==_0x2f75e6['length']&&(_0x272ff4['start']['isEqual'](_0x12584c['end'])||_0x272ff4['end']['isEqual'](_0x12584c['start'])))return!0x0;}if(0x3==_0x3a3586&&0x3==_0x338427&&_0x272ff4['start']['isBefore'](_0x12584c['start'])){const _0xf72b4b=_0x272ff4['end']['nodeAfter'],_0x34f364=_0x12584c['start']['nodeBefore'];return _0x402058['isBlockImage'](_0xf72b4b)&&_0xf72b4b===_0x34f364;}return!0x1;}_0x53d50a['model']['document']['registerPostFixer'](()=>{let _0x18ee29=!0x1;const _0x2e513d=Array['from'](_0x53d50a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe46df6,data:_0x580999}of _0x2e513d){const {group:_0x192298,type:_0x4c615c,subType:_0xc0d92d,id:_0x5e5e81}=_0xe0b4f5['_splitMarkerName'](_0xe46df6);if('suggestion'==_0x192298&&_0xe0b4f5['hasSuggestion'](_0x5e5e81)){if('formatBlock'==_0x4c615c&&('imageStylePreApply'==_0xc0d92d||'imageStylePostApply'==_0xc0d92d)){const _0x5121e6=_0xe0b4f5['getSuggestion'](_0x5e5e81);if(_0x580999['newRange']){const _0x5a56d7=_0x5121e6['getFirstRange']()['getContainedElement']();if(_0x402058['isBlockImage'](_0x5a56d7))continue;_0xe0b4f5['discardSuggestion'](_0x5121e6),_0x18ee29=!0x0;}}if('insertion'==_0x4c615c&&'imageCaption'==_0xc0d92d&&!_0x580999['newRange']){const _0x4a4d34=_0xe0b4f5['getSuggestion'](_0x5e5e81);_0x4a4d34['next']&&_0x4a4d34['next']['isInContent']&&(_0xe0b4f5['discardSuggestion'](_0x4a4d34['next']),_0x18ee29=!0x0);}}}return _0x18ee29;}),this['_registerLegacyDescription'](_0xdd1f3b);}['_registerLegacyDescription'](_0x133abe){const _0x468d89=this['editor'],_0x1345bb=_0x468d89['locale'];_0x468d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2087ba=>{if('formatBlock'!=_0x2087ba['type']&&'formatInline'!=_0x2087ba['type'])return;const {data:_0x1c37e2}=_0x2087ba;if(!_0x1c37e2||'imageStyle'!=_0x1c37e2['commandName'])return;const _0x4aced0=_0x1c37e2['commandParams'][0x0]['value'];return _0x1adcc9('side'===_0x4aced0?o(_0x1345bb,'FORMAT_SIDE_IMAGE'):_0x133abe[_0x4aced0]||_0x4aced0);function _0x1adcc9(_0x1a5226){return{'type':'format','content':o(_0x1345bb,'*Format:*\x20%0',_0x1a5226)};}});}}class ot extends _0x4d32e5{['afterInit'](){const _0x2fa9be=this['editor'],_0x188ae1=_0x2fa9be['commands']['get']('importWord'),_0x31c500=_0x2fa9be['commands']['get']('trackChanges');_0x188ae1&&(_0x188ae1['on']('execute',(_0x2e98ae,[,_0x4dec8c])=>{this['_trackChangesValueDuringImport']=_0x31c500['value'],_0x4dec8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x188ae1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x188ae1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31c500['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fa9be['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c792d,_0x388eaf){const {suggestions:_0x419fe2}=_0x388eaf,_0x5b4bf6=this['editor']['commands']['get']('trackChanges'),_0x516fa7=_0x5b4bf6['value'];this['_trackChangesValueDuringImport']!==_0x516fa7&&(_0x5b4bf6['execute'](),this['_trackChangesExecuted']=!0x0),_0x419fe2&&_0x419fe2['forEach'](({id:_0x4d63f8,type:_0x18fb0a,author:_0x141653,created_at:_0x311f9c})=>{const _0x2851ac={'id':_0x4d63f8,'type':_0x18fb0a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x141653,'createdAt':_0x311f9c?new Date(_0x311f9c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2851ac);});}constructor(_0x2e5752){super(_0x2e5752),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x4d32e5{['afterInit'](){const _0x58f411=this['editor'],_0x2fa5a0=_0x58f411['plugins']['get']('TrackChangesEditing');if(_0x58f411['plugins']['has']('IndentEditing')&&(_0x2fa5a0['enableCommand']('indent'),_0x2fa5a0['enableCommand']('outdent')),_0x58f411['plugins']['has']('IndentBlock')){for(const _0x4f0dc0 of['indentBlock','outdentBlock'])_0x2fa5a0['enableDefaultAttributesIntegration'](_0x4f0dc0);}const _0xe7c346=_0x58f411['locale'];_0x2fa5a0['registerBlockAttribute']('blockIndent'),_0x2fa5a0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe7c346,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b2a4b=this['editor'],_0x27a2e0=_0x5b2a4b['locale'],_0x559bc2=_0x5b2a4b['plugins']['get']('TrackChangesEditing');_0x559bc2['descriptionFactory']['registerDescriptionCallback'](_0x23bb07=>{if('formatBlock'!=_0x23bb07['type'])return;const {data:_0x56ced9}=_0x23bb07;if(!_0x56ced9)return;if('indentBlock'!=_0x56ced9['commandName']&&'outdentBlock'!=_0x56ced9['commandName'])return;const _0x20aa8a=_0x23bb07['getItems']()[0x0],_0x48e5ab=_0x559bc2['descriptionFactory']['getItemLabel'](_0x20aa8a);return'indentBlock'==_0x56ced9['commandName']?{'type':'format','content':o(_0x27a2e0,'*Indent:*\x20%0',_0x48e5ab)}:'outdentBlock'==_0x56ced9['commandName']?{'type':'format','content':o(_0x27a2e0,'*Outdent:*\x20%0',_0x48e5ab)}:void 0x0;});}}class at extends _0x4d32e5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4d32e5{['afterInit'](){const _0x393504=this['editor'];if(!_0x393504['plugins']['has']('LinkEditing'))return;const _0x3f4ab7=_0x393504['plugins']['get']('TrackChangesEditing'),_0x53fb1b=_0x393504['commands']['get']('link');_0x3f4ab7['enableDefaultAttributesIntegration']('link'),_0x3f4ab7['enableDefaultAttributesIntegration']('unlink'),_0x3f4ab7['registerInlineAttribute']('linkHref');for(const _0x2bcda6 of _0x53fb1b['manualDecorators'])_0x3f4ab7['registerInlineAttribute'](_0x2bcda6['id']),_0x3f4ab7['descriptionFactory']['registerAttributeLabel'](_0x2bcda6['id'],'link\x20('+_0x2bcda6['label']['toLowerCase']()+')');_0x3f4ab7['descriptionFactory']['registerDescriptionCallback'](_0x53ee02=>{if('attribute'!=_0x53ee02['type'])return;const {data:_0x4ca1c5}=_0x53ee02;if(!_0x4ca1c5||'linkHref'!=_0x4ca1c5['key'])return;const _0x2909d9=_0x4ca1c5['newValue'],_0x59edbb=_0x393504['locale'];return{'type':'format','content':null==_0x2909d9?o(_0x59edbb,'*Remove\x20link*'):o(_0x59edbb,'*Set\x20link:*\x20%0','\x22'+_0x2909d9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x514635=this['editor'],_0x50e371=_0x514635['locale'];_0x514635['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344207=>{if('formatInline'!=_0x344207['type'])return;const {data:_0x480fd3}=_0x344207;if(_0x480fd3){if('link'==_0x480fd3['commandName']){const _0x211b51=_0x480fd3['commandParams'][0x0];return{'type':'format','content':o(_0x50e371,'*Set\x20link:*\x20%0','\x22'+_0x211b51+'\x22')};}return'unlink'==_0x480fd3['commandName']?{'type':'format','content':o(_0x50e371,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4d32e5{['afterInit'](){const _0x5a1806=this['editor'],_0x50602f=_0x5a1806['locale'];if(!_0x5a1806['plugins']['has']('LegacyListEditing'))return;const _0x2e289e=_0x5a1806['plugins']['get']('TrackChangesEditing'),_0x1fe48c=_0x5a1806['plugins']['has']('LegacyTodoListEditing');function _0x156083(_0x26f838){return()=>{const _0x53f715=_0x5a1806['model']['document']['selection'],_0x42608d=_0x5a1806['commands']['get'](_0x26f838);if(_0x42608d['value'])return void _0x5a1806['execute']('paragraph',{});const _0x25ec0c=_0x26f838['slice'](0x0,-0x4),_0x9b2798=function(_0x4ae6e0,_0x1f8adc,_0x1d7aa1){let _0x585b5d=Array['from'](_0x4ae6e0)['filter'](_0x34d3b0=>function(_0xea0f55,_0x105a8e){return _0x105a8e['checkChild'](_0xea0f55['parent'],'listItem')&&!_0x105a8e['isObject'](_0xea0f55);}(_0x34d3b0,_0x1d7aa1));_0x585b5d=_0x585b5d['filter'](_0x4920b1=>!_0x4920b1['is']('element','listItem')||_0x4920b1['getAttribute']('listType')!=_0x1f8adc);const _0x61c63d=new Set();for(const _0x4cfb8f of _0x585b5d)_0x4cfb8f['is']('element','listItem')?_0x61c63d['add'](me(_0x4cfb8f)):_0x61c63d['add'](_0x4cfb8f);return Array['from'](_0x61c63d);}(_0x53f715['getSelectedBlocks'](),_0x25ec0c,_0x5a1806['model']['schema']);_0x5a1806['model']['change'](()=>{for(const _0x536fc3 of _0x9b2798)_0x2e289e['markBlockFormat'](_0x536fc3,{'commandName':_0x26f838,'commandParams':[{'forceValue':!_0x42608d['value']}],'formatGroupId':'blockName'},fe(_0x536fc3));});};}function _0xc5d7d4(_0x57a292){return()=>{const _0x1981f4=function(_0x117cf8){let _0x930571=Array['from'](_0x117cf8);const _0x2b253c=_0x930571['findIndex'](_0x32c609=>'listItem'!=_0x32c609['name']);return _0x2b253c>-0x1&&(_0x930571=_0x930571['slice'](0x0,_0x2b253c)),_0x930571;}(_0x5a1806['model']['document']['selection']['getSelectedBlocks']()),_0x301562=_0x5a1806['model']['createRange'](_0x5a1806['model']['createPositionAt'](_0x1981f4[0x0],'before'),_0x5a1806['model']['createPositionAt'](_0x1981f4[_0x1981f4['length']-0x1],'end'));_0x5a1806['model']['change'](()=>{_0x2e289e['markBlockFormat'](_0x301562,{'commandName':_0x57a292,'commandParams':[],'formatGroupId':'listIndent'},function(_0x56462c){const _0x1160cc=new Set();for(const _0x2416e2 of _0x56462c){let _0xe0316a=_0x2416e2['nextSibling'];for(;_0xe0316a&&_0xe0316a['getAttribute']('listIndent')>_0x2416e2['getAttribute']('listIndent');)_0x1160cc['add'](_0xe0316a),_0xe0316a=_0xe0316a['nextSibling'];}return Array['from'](_0x1160cc);}(_0x1981f4));});};}_0x2e289e['enableCommand']('numberedList',_0x156083('numberedList')),_0x2e289e['enableCommand']('bulletedList',_0x156083('bulletedList')),_0x1fe48c&&_0x2e289e['enableCommand']('todoList',_0x156083('todoList')),_0x2e289e['enableCommand']('indentList',_0xc5d7d4('indentList')),_0x2e289e['enableCommand']('outdentList',_0xc5d7d4('outdentList')),_0x1fe48c&&_0x2e289e['enableCommand']('checkTodoList',()=>{const _0xab267f=_0x5a1806['commands']['get']('checkTodoList'),_0x3e27fd=Array['from'](_0xab267f['_selectedElements']);_0x3e27fd['filter'](_0x5ed21a=>_0x5ed21a['getAttribute']('todoListChecked')!=_0xab267f['value']),_0x5a1806['model']['change'](()=>{for(const _0x4b1721 of _0x3e27fd)_0x2e289e['markBlockFormat'](_0x4b1721,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xab267f['value']}]});});}),_0x2e289e['descriptionFactory']['registerElementLabel']('listItem',_0x237796=>o(_0x50602f,'ELEMENT_LIST_ITEM',_0x237796)),_0x2e289e['descriptionFactory']['registerDescriptionCallback'](_0x253a32=>{if('formatBlock'!=_0x253a32['type']&&'formatInline'!=_0x253a32['type'])return;const {data:_0xb4e934}=_0x253a32;if(_0xb4e934){if('numberedList'==_0xb4e934['commandName']||'bulletedList'==_0xb4e934['commandName']||'todoList'==_0xb4e934['commandName'])switch(_0xb4e934['commandName']['replace']('List','')){case'bulleted':return _0x184174(o(_0x50602f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x184174(o(_0x50602f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x184174(o(_0x50602f,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb4e934['commandName'])return{'type':'format','content':o(_0x50602f,'*Indent:*\x20%0',o(_0x50602f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb4e934['commandName'])return{'type':'format','content':o(_0x50602f,'*Outdent:*\x20%0',o(_0x50602f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb4e934['commandName'])return _0xb4e934['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50602f,'*Check\x20item*')}:{'type':'format','content':o(_0x50602f,'*Uncheck\x20item*')};}function _0x184174(_0x5f4f45){return{'type':'format','content':o(_0x50602f,'*Change\x20to:*\x20%0',_0x5f4f45)};}});}}function me(_0x565ea3){const _0x5196d6=_0x565ea3['getAttribute']('listIndent');if(0x0==_0x5196d6)return _0x565ea3;let _0x2b3962=_0x565ea3;for(;_0x565ea3['previousSibling']&&_0x565ea3['previousSibling']['is']('element','listItem');){const _0x40174e=_0x565ea3['previousSibling']['getAttribute']('listIndent');if(_0x40174e==_0x5196d6)_0x2b3962=_0x565ea3['previousSibling'];else{if(_0x40174e<_0x5196d6)break;}_0x565ea3=_0x565ea3['previousSibling'];}return _0x2b3962;}function fe(_0x19538e){const _0xd9f730=[];if(_0x19538e['is']('element','listItem')&&_0x19538e['getAttribute']('listIndent')>0x0){let _0x3abbd6=_0x19538e['nextSibling'];for(;_0x3abbd6&&'listItem'==_0x3abbd6['name']&&_0x3abbd6['getAttribute']('listIndent')==_0x19538e['getAttribute']('listIndent');)_0xd9f730['push'](_0x3abbd6),_0x3abbd6=_0x3abbd6['nextSibling'];}return _0xd9f730;}class K extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1fdb57=this['editor']['config']['get']('list.properties'),_0x264ed7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fdb57['styles']&&_0x264ed7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1fdb57['reversed']&&_0x264ed7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1fdb57['startIndex']&&_0x264ed7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x264ed7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x560316,_0x32c839={}){const _0x444920=this['editor']['plugins']['get']('TrackChangesEditing'),_0x370230=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x444920['markMultiRangeBlockFormat'](_0x370230,{'commandName':'listStyle','commandParams':[{'type':_0x32c839['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b5504,_0x3de0ec={}){const _0x2bd4f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43898a=this['_getSuggestionBlocks'](_0xb9148=>_0xb9148['is']('element','listItem')&&'numbered'===_0xb9148['getAttribute']('listType'));if(_0x43898a['length']<0x1)return;const _0x37bf0f=_0x43898a['map'](_0x486fcb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x486fcb,'before'),this['editor']['model']['createPositionAt'](_0x486fcb,0x0)));this['editor']['model']['change'](()=>{_0x2bd4f6['markMultiRangeBlockFormat'](_0x37bf0f,{'commandName':'listReversed','commandParams':[{'reversed':_0x3de0ec['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3c1dfa,_0x21d898={}){const _0x35160b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13628d=this['_getSuggestionBlocks'](_0xd88095=>_0xd88095['is']('element','listItem')&&'numbered'===_0xd88095['getAttribute']('listType'));if(_0x13628d['length']<0x1)return;const _0x3bded7=_0x13628d['map'](_0x5f5dab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f5dab,'before'),this['editor']['model']['createPositionAt'](_0x5f5dab,0x0)));this['editor']['model']['change'](()=>{_0x35160b['markMultiRangeBlockFormat'](_0x3bded7,{'commandName':'listStart','commandParams':[{'startIndex':_0x21d898['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xd7d9e3){if('formatBlock'!=_0xd7d9e3['type']&&'formatInline'!=_0xd7d9e3['type'])return;const _0xe81e48=this['editor']['locale'],{data:_0x340968}=_0xd7d9e3;if(!_0x340968)return;let _0x175e9c,_0x588e15;switch(_0x340968['commandName']){case'listStyle':_0x175e9c='*Change\x20to:*\x20%0',_0x588e15={'type':'format','content':o(_0xe81e48,_0x175e9c,o(_0xe81e48,this['_getTranslationKeyForListStyle'](_0x340968['commandParams'][0x0]['type'])))};break;case'listReversed':_0x175e9c=_0x340968['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x588e15={'type':'format','content':o(_0xe81e48,_0x175e9c)};break;case'listStart':_0x175e9c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x588e15={'type':'format','content':o(_0xe81e48,_0x175e9c,_0x340968['commandParams'][0x0]['startIndex'])};}return _0x588e15;}['_getSuggestionBlocksForListStyle'](){var _0x418bd4,_0x24b3f0,_0x165522,_0x23aab0;const _0x179c1a=this['editor']['plugins']['get']('LegacyListUtils');let _0x5dfb22=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x418bd4=_0x5dfb22[0x0])||void 0x0===_0x418bd4?void 0x0:_0x418bd4['is']('element','listItem'))&&_0x5dfb22['unshift'](..._0x179c1a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x24b3f0=_0x5dfb22[_0x5dfb22['length']-0x1])||void 0x0===_0x24b3f0?void 0x0:_0x24b3f0['is']('element','listItem'))&&_0x5dfb22['push'](..._0x179c1a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5dfb22=[...new Set(_0x5dfb22)],(null===(_0x23aab0=null===(_0x165522=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x165522?void 0x0:_0x165522['parent'])||void 0x0===_0x23aab0?void 0x0:_0x23aab0['is']('element','listItem'))&&(_0x5dfb22=_0x5dfb22['filter'](_0xe578a8=>_0xe578a8['is']('element','listItem'))),_0x5dfb22;}['_getSuggestionBlocks'](_0xfb1690){const _0x423ecc=this['editor']['plugins']['get']('LegacyListUtils');let _0x57292e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xfb1690)['map'](_0x122fa7=>{const _0x1a657d=this['editor']['model']['createPositionAt'](_0x122fa7,0x0);return[..._0x423ecc['getSiblingNodes'](_0x1a657d,'backward'),..._0x423ecc['getSiblingNodes'](_0x1a657d,'forward')];})['flat']();return _0x57292e=[...new Set(_0x57292e)],_0x57292e;}['_getTranslationKeyForListStyle'](_0x3a236e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3a236e)||'default')['toUpperCase']()+'_LIST_'+_0x3a236e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4d32e5{['afterInit'](){const _0x52222a=this['editor'];if(!_0x52222a['plugins']['has']('MediaEmbedEditing'))return;const _0x22a70e=_0x52222a['plugins']['get']('TrackChangesEditing'),_0x27be9a=_0x52222a['locale'];_0x22a70e['enableCommand']('mediaEmbed'),_0x22a70e['descriptionFactory']['registerElementLabel']('media',_0xc3b09b=>o(_0x27be9a,'ELEMENT_MEDIA',_0xc3b09b)),_0x52222a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d77de,{writer:_0x3760ea,options:_0x3894b4})=>{if(_0x3894b4['showSuggestionHighlights'])return _0x3760ea['createEmptyElement']('div');},'converterPriority':'high'}),_0x52222a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35f2d5,_0x48a6d7,_0x5c56f2)=>{_0x5c56f2['options']['showSuggestionHighlights']&&_0x35f2d5['stop']();},{'priority':'high'});}}class gt extends _0x4d32e5{['afterInit'](){const _0x452582=this['editor'];_0x452582['plugins']['has']('MentionEditing')&&_0x452582['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4d32e5{['afterInit'](){const _0x32fd80=this['editor'],_0x3566d0=_0x32fd80['plugins']['get']('TrackChangesEditing');_0x32fd80['plugins']['has']('MultiLevelList')&&(_0x3566d0['enableDefaultAttributesIntegration']('multiLevelList'),_0x3566d0['registerBlockAttribute']('listMarkerStyle'),_0x3566d0['descriptionFactory']['registerDescriptionCallback'](_0x36c333=>this['handleDescriptions'](_0x36c333)));}['handleDescriptions'](_0x3f3635){const _0x164d7f=this['editor']['locale'],{data:_0x40aab8}=_0x3f3635,_0x4d2ca9={'type':'format','content':''};if(_0x40aab8&&'listMarkerStyle'==_0x40aab8['key']){if(!_0x40aab8['oldValue'])return{'type':'format','content':o(_0x164d7f,'*Set\x20format:*\x20%0',o(_0x164d7f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x40aab8['newValue']+')'};if(!_0x40aab8['newValue']){let _0x33242f=_0x3f3635['head'];for(;_0x33242f;){if(_0x33242f['data']&&'listType'==_0x33242f['data']['key']&&_0x33242f['data']['newValue'])return _0x4d2ca9;_0x33242f=_0x33242f['next'];}return{'type':'format','content':o(_0x164d7f,'*Remove\x20format:*\x20%0',o(_0x164d7f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x40aab8['oldValue']+')'};}}}}class mt extends _0x4d32e5{['afterInit'](){const _0x132bfe=this['editor'];if(!_0x132bfe['plugins']['has']('PageBreakEditing'))return;_0x132bfe['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b5688=_0x132bfe['plugins']['get']('TrackChangesEditing'),_0x1adf91=_0x132bfe['locale'];_0x4b5688['descriptionFactory']['registerElementLabel']('pageBreak',_0x2d81fe=>o(_0x1adf91,'ELEMENT_PAGE_BREAK',_0x2d81fe));}}class dt extends _0x4d32e5{['afterInit'](){const _0x466d44=this['editor'];if(!_0x466d44['plugins']['has']('Paragraph'))return;const _0x24e2a7=_0x466d44['locale'],_0x5ca5ce=_0x466d44['plugins']['get']('TrackChangesEditing');_0x5ca5ce['descriptionFactory']['registerElementLabel']('paragraph',_0x235aca=>o(_0x24e2a7,'ELEMENT_PARAGRAPH',_0x235aca)),_0x5ca5ce['enableDefaultAttributesIntegration']('paragraph'),_0x5ca5ce['enableCommand']('insertParagraph'),_0x466d44['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x466d44),{'priority':'highest'}),_0x466d44['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37e244,_0x2cf29b,_0x5249e0)=>{_0x5249e0['options']['showSuggestionHighlights']&&nr(_0x466d44,{'showActiveMarker':!0x1})(_0x37e244,_0x2cf29b,_0x5249e0);},{'priority':'highest'});const _0x29a3e5=_0x5ca5ce['descriptionFactory'];_0x29a3e5['registerDescriptionCallback'](_0x24179f=>{if('insertion'!==_0x24179f['type'])return;const {start:_0x5945fb,end:_0x4d8297}=_0x24179f['getFirstRange']();if(!_0x5945fb['isTouching'](_0x4d8297)||!_0x5945fb['nodeAfter'])return;const _0x347398=_0x466d44['model']['schema'],_0x2ede7b=_0x5945fb['nodeAfter'];return _0x347398['isBlock'](_0x2ede7b)&&!_0x347398['isLimit'](_0x2ede7b)&&_0x347398['checkChild'](_0x2ede7b,'$text')?{'type':'insertion','content':o(_0x24e2a7,'*Insert:*\x20%0',_0x29a3e5['getItemLabel'](_0x2ede7b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37b28e=this['editor'],_0x15cbf=_0x37b28e['locale'];_0x37b28e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb56837=>{if('formatBlock'!=_0xb56837['type'])return;const {data:_0x53c8e9}=_0xb56837;return _0x53c8e9&&'paragraph'==_0x53c8e9['commandName']?{'type':'format','content':o(_0x15cbf,'*Change\x20to:*\x20%0',o(_0x15cbf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x54fb34,{showActiveMarker:_0x3f690e=!0x0}={}){return(_0x582764,_0x340ead,_0x484016)=>{const _0x1506d2=_0x54fb34['plugins']['get']('TrackChangesEditing'),_0x2583f1=_0x340ead['markerRange']['start'],_0xccac7a=_0x340ead['markerRange']['end'],_0x2e4ae5=_0x54fb34['model']['schema'];if(!_0x2583f1['isTouching'](_0xccac7a)||!_0x2583f1['nodeAfter'])return;const _0x56d22f=_0x2583f1['nodeAfter'];if(_0x2e4ae5['isBlock'](_0x56d22f)&&!_0x2e4ae5['isLimit'](_0x56d22f)&&_0x2e4ae5['checkChild'](_0x56d22f,'$text')){if(!_0x484016['consumable']['consume'](_0x340ead['markerRange'],_0x582764['name']))return;const _0x50fd67=_0x484016['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5f116b=_0x484016['mapper']['toViewPosition'](_0xccac7a);_0x3f690e&&_0x1506d2['activeMarkers']['includes'](_0x340ead['markerName'])&&_0x484016['writer']['addClass']('ck-suggestion-marker--active',_0x50fd67),_0x484016['writer']['insert'](_0x5f116b,_0x50fd67),_0x484016['mapper']['bindElementToMarker'](_0x50fd67,_0x340ead['markerName']);}};}class pt extends _0x4d32e5{['afterInit'](){const _0x5ae771=this['editor'];if(!_0x5ae771['plugins']['has']('RemoveFormatEditing'))return;_0x5ae771['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3814=this['editor'];_0x2c3814['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd57c=>{if('formatBlock'!=_0x2cd57c['type']&&'formatInline'!=_0x2cd57c['type'])return;const {data:_0x4a2f1a}=_0x2cd57c;return _0x4a2f1a&&'removeFormat'==_0x4a2f1a['commandName']?{'type':'format','content':o(_0x2c3814['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4d32e5{['afterInit'](){const _0x5e4d30=this['editor'];if(!_0x5e4d30['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x170734=_0x5e4d30['plugins']['get']('TrackChangesEditing');_0x170734['enableCommand']('goToPreviousRestrictedEditingException'),_0x170734['enableCommand']('goToNextRestrictedEditingException');const _0x780af1=_0x5e4d30['plugins']['get']('RestrictedEditingModeEditing');_0x780af1['enableCommand']('trackChanges'),_0x780af1['enableCommand']('acceptSuggestion'),_0x780af1['enableCommand']('discardSuggestion'),_0x780af1['enableCommand']('acceptAllSuggestions'),_0x780af1['enableCommand']('discardAllSuggestions'),_0x780af1['enableCommand']('acceptSelectedSuggestions'),_0x780af1['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4d32e5{static get['requires'](){return[_0x52b05a];}['init'](){const _0xe35cb=this['editor'],_0x5d9b0c=_0xe35cb['plugins']['get']('TrackChangesEditing');_0x5d9b0c['enableCommand']('shiftEnter'),_0xe35cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xe35cb),{'priority':'high'}),_0xe35cb['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xe35cb),{'priority':'high'}),_0xe35cb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b987a,_0x3f12aa,_0x22e167)=>{_0x22e167['options']['showSuggestionHighlights']&&de(_0xe35cb,{'showActiveMarker':!0x1})(_0x2b987a,_0x3f12aa,_0x22e167);}),_0x5d9b0c['descriptionFactory']['registerElementLabel']('softBreak',_0x519474=>o(_0xe35cb['locale'],'ELEMENT_LINE_BREAK',_0x519474));}}function de(_0x621ef0,{showActiveMarker:_0x375343=!0x0}={}){return(_0x924c56,_0x5804d4,_0x1b9f89)=>{const _0x192062=_0x621ef0['plugins']['get']('TrackChangesEditing');if(!_0x1b9f89['consumable']['test'](_0x5804d4['markerRange'],_0x924c56['name']))return;const _0x261f36=_0x621ef0['model'];for(const _0x219aa7 of _0x5804d4['markerRange']['getItems']()){if(!_0x219aa7['is']('element','softBreak'))continue;const _0x411c41='deletion'==_0x5804d4['markerName']['split'](':')[0x1]?'merge':'split',_0x5a796c=_0x1b9f89['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x411c41}),_0x3aa8d4=_0x1b9f89['mapper']['toViewPosition'](_0x261f36['createPositionBefore'](_0x219aa7));_0x375343&&_0x192062['activeMarkers']['includes'](_0x5804d4['markerName'])&&_0x1b9f89['writer']['addClass']('ck-suggestion-marker--active',_0x5a796c),_0x1b9f89['writer']['insert'](_0x3aa8d4,_0x5a796c),_0x1b9f89['mapper']['bindElementToMarker'](_0x5a796c,_0x5804d4['markerName']);}};}class wt extends _0x4d32e5{['afterInit'](){const _0x350991=this['editor'],_0x27eb42=_0x350991['model'],_0x69cc56=_0x350991['locale'];if(!_0x350991['plugins']['has']('StandardEditingModeEditing'))return;const _0x21481f=_0x350991['plugins']['get']('TrackChangesEditing'),_0x15dc73='restrictedEditingException',_0x3163a0=_0x350991['commands']['get'](_0x15dc73);_0x21481f['enableCommand'](_0x15dc73,(_0x51de62,_0xc6ae67={})=>{const _0x3ce2d1=_0x27eb42['document']['selection'];if(_0x3ce2d1['isCollapsed'])return void _0x51de62(_0xc6ae67);const _0x40f12f=void 0x0!==_0xc6ae67['forceValue']?_0xc6ae67['forceValue']:!_0x3163a0['value'];_0x27eb42['change'](()=>{const _0x143acb=Array['from'](_0x3ce2d1['getRanges']());for(const _0x437ea8 of _0x143acb){const _0x3b9fc0=_0x40f12f?[_0x437ea8]:io(_0x15dc73,_0x437ea8,_0x27eb42);for(const _0x42190f of _0x3b9fc0)_0x21481f['markInlineFormat'](_0x42190f,{'commandName':_0x15dc73,'commandParams':[{'forceValue':_0x40f12f}]});}});}),_0x21481f['descriptionFactory']['registerDescriptionCallback'](_0x17f61e=>{if('formatBlock'!=_0x17f61e['type']&&'formatInline'!=_0x17f61e['type'])return;const {data:_0x40764e}=_0x17f61e;return _0x40764e&&_0x40764e['commandName']==_0x15dc73?_0x40764e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x69cc56,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x69cc56,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4d32e5{['afterInit'](){const _0x58d950=this['editor'];if(!_0x58d950['plugins']['has']('Style')||!_0x58d950['plugins']['has']('DataSchema'))return;const _0x2f1bf3=_0x58d950['plugins']['get']('TrackChangesEditing'),_0x230b27=_0x58d950['locale'],_0x558424=_0x58d950['config']['get']('style')||{},_0x3d819c=_0x58d950['plugins']['get']('GeneralHtmlSupport'),_0x46c442=_0x58d950['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58d950['plugins']['get']('DataSchema'),_0x558424['definitions']);_0x2f1bf3['enableDefaultAttributesIntegration']('style');const _0x1e7e5d=new Set();for(const _0x155cef of _0x46c442['block']){const _0x553a44=_0x3d819c['getGhsAttributeNameForElement'](_0x155cef['element']);_0x1e7e5d['add'](_0x553a44);}const _0x11d263=new Set();for(const _0x574e7f of _0x46c442['inline']){const _0x580c79=_0x3d819c['getGhsAttributeNameForElement'](_0x574e7f['element']);_0x11d263['add'](_0x580c79);for(const _0x542cd5 of _0x574e7f['ghsAttributes'])_0x11d263['add'](_0x542cd5);}for(const _0x22a4c0 of _0x1e7e5d)_0x2f1bf3['registerBlockAttribute'](_0x22a4c0),_0x2f1bf3['descriptionFactory']['registerAttributeLabel'](_0x22a4c0,o(_0x230b27,'FORMAT_STYLE'));for(const _0x2d1252 of _0x11d263)_0x2f1bf3['registerInlineAttribute'](_0x2d1252),_0x2f1bf3['descriptionFactory']['registerAttributeLabel'](_0x2d1252,o(_0x230b27,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x493572=this['editor'],_0x3305d9=_0x493572['locale'];_0x493572['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb780=>{if('formatBlock'!=_0x2fb780['type']&&'formatInline'!=_0x2fb780['type'])return;const {data:_0x23f1b1}=_0x2fb780;return _0x23f1b1&&'style'===_0x23f1b1['commandName']?_0x23f1b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3305d9,'*Set\x20format:*\x20%0',_0x23f1b1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3305d9,'*Remove\x20format:*\x20%0',_0x23f1b1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4d32e5{['afterInit'](){const _0x234b11=this['editor'],_0x33b1dd=_0x234b11['model']['document']['selection'];if(!_0x234b11['plugins']['has']('TableEditing'))return;const _0x5dbd53=_0x234b11['locale'],_0x2f1960=_0x234b11['plugins']['get']('TrackChangesEditing'),_0x140dd7=_0x234b11['plugins']['get']('TableUtils');_0x2f1960['descriptionFactory']['registerElementLabel']('table',_0x4df90a=>o(_0x5dbd53,'ELEMENT_TABLE',_0x4df90a)),this['_setupColumnsRowsFixing'](),_0x2f1960['enableCommand']('insertTable'),_0x2f1960['enableCommand']('selectTableRow'),_0x2f1960['enableCommand']('selectTableColumn');for(const _0x3dee06 of['insertTableRowAbove','insertTableRowBelow']){const _0x1ae83e=_0x234b11['commands']['get'](_0x3dee06);_0x2f1960['enableCommand'](_0x3dee06,_0x2538ab=>{_0x234b11['model']['change'](_0x201a59=>{_0x2538ab();const _0x567ad2='above'===_0x1ae83e['order'],_0x2a2c83=_0x140dd7['getSelectionAffectedTableCells'](_0x33b1dd),_0x12147b=_0x140dd7['getRowIndexes'](_0x2a2c83),_0x4f5767=_0x567ad2?_0x12147b['first']-0x1:_0x12147b['last']+0x1,_0x540086=_0x2a2c83[0x0]['findAncestor']('table'),_0x3586ad=_0x140dd7['createTableWalker'](_0x540086,{'startRow':_0x4f5767,'endRow':_0x4f5767}),_0x2f4106=Array['from'](_0x3586ad)['map'](_0x582109=>_0x201a59['createRangeOn'](_0x582109['cell']));_0x2f1960['markMultiRangeInsertion'](_0x2f4106,'tableRow');});});}for(const _0x577832 of['insertTableColumnLeft','insertTableColumnRight']){const _0x524705=_0x234b11['commands']['get'](_0x577832);_0x2f1960['enableCommand'](_0x577832,_0x41cc3c=>{_0x234b11['model']['change'](_0x30bed8=>{_0x41cc3c();const _0x311887='left'===_0x524705['order'],_0x5247db=_0x140dd7['getSelectionAffectedTableCells'](_0x33b1dd),_0x5ea001=_0x140dd7['getColumnIndexes'](_0x5247db),_0xd766c9=_0x311887?_0x5ea001['first']-0x1:_0x5ea001['last']+0x1,_0xb4cf93=_0x5247db[0x0]['findAncestor']('table'),_0x4b5a81=_0x140dd7['createTableWalker'](_0xb4cf93,{'startRow':0x0,'column':_0xd766c9,'includeAllSlots':!0x1}),_0x449b82=Array['from'](_0x4b5a81)['map'](_0x5d8ead=>_0x30bed8['createRangeOn'](_0x5d8ead['cell']));_0x2f1960['markMultiRangeInsertion'](_0x449b82,'tableColumn');});});}for(const _0x13e477 of['removeTableRow','removeTableColumn']){const _0x5bf27c=_0x13e477['substr'](0xb),_0x191634=_0x5bf27c['toLowerCase'](),_0x15d234=_0x191634['substr'](0x0,0x3)+'span',_0xbdcdf8='table'+_0x5bf27c,_0x59252d='min'+_0x5bf27c,_0x2a5c6a='max'+_0x5bf27c;_0x2f1960['enableCommand'](_0x13e477,()=>{_0x234b11['model']['change'](_0x5e4f47=>{const _0x172603=_0x140dd7['getSelectionAffectedTableCells'](_0x33b1dd),_0x5c1207=_0x172603[0x0]['findAncestor']('table');let _0x34c600;if('removeTableRow'==_0x13e477){const _0x2e7db7=_0x140dd7['getRowIndexes'](_0x172603);_0x34c600={'startRow':_0x2e7db7['first'],'endRow':_0x2e7db7['last'],'includeAllSlots':!0x0};}else{const _0x5f426e=_0x140dd7['getColumnIndexes'](_0x172603);_0x34c600={'startColumn':_0x5f426e['first'],'endColumn':_0x5f426e['last'],'includeAllSlots':!0x0};}const _0x25cceb=_0x140dd7['createTableWalker'](_0x5c1207,_0x34c600),_0x48d8c6=Array['from'](_0x25cceb)['map'](({cell:_0x5e8013})=>_0x5e8013),_0x24e22=Ee(_0x48d8c6['filter'](_0x50661a=>_0x50661a['hasAttribute'](_0x15d234))),_0x52daba=Ee(_0x48d8c6['filter'](_0xcdba6c=>!_0xcdba6c['hasAttribute'](_0x15d234)))['map'](_0x1e94dc=>_0x5e4f47['createRangeOn'](_0x1e94dc)),_0xef89cf=_0x2f1960['markMultiRangeDeletion'](_0x52daba,_0xbdcdf8);if(_0xef89cf&&('tableRow'==_0xef89cf['subType']||'tableColumn'==_0xef89cf['subType'])){const _0x37cf05=this['_getSuggestionCoords'](_0xef89cf);for(const _0xfcbd34 of _0x24e22){const _0x4d9d64=_0x5e4f47['createRangeOn'](_0xfcbd34),_0x47722e=_0x140dd7['getCellLocation'](_0xfcbd34),_0x5a9cb5=_0xfcbd34['getAttribute'](_0x15d234)-0x1,_0x59b572=_0x37cf05[_0x59252d],_0x3c5227=_0x37cf05[_0x2a5c6a];_0x59b572<=_0x47722e[_0x191634]&&_0x47722e[_0x191634]+_0x5a9cb5<=_0x3c5227&&_0xef89cf['addRange'](_0x4d9d64);}}});});}function _0x9f9d5b(_0x24aaf5){const _0x42bc0c=Array['from'](_0x33b1dd['getRanges']())['map'](_0xaf0058=>_0x1ed262['fromRange'](_0xaf0058));_0x234b11['model']['change'](_0x1827fa=>{const _0x380248=_0x1827fa['batch'];_0x24aaf5=_0x24aaf5['filter'](_0x1fc836=>'$graveyard'!=_0x1fc836['root']['rootName']),_0x1827fa['setSelection'](_0x24aaf5),_0x234b11['commands']['get']('removeTableRow')['refresh'](),_0x234b11['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x234b11['model']['enqueueChange'](()=>{_0x234b11['model']['enqueueChange'](_0x380248,_0x5ba0f2=>{const _0x44a7e8=_0x42bc0c['filter'](_0x29a457=>'$graveyard'!=_0x29a457['root']['rootName']);_0x44a7e8['length']>0x0&&_0x5ba0f2['setSelection'](_0x44a7e8);for(const _0xa9c6c4 of _0x42bc0c)_0xa9c6c4['detach']();});});});}function _0xedbec(_0x53d5b3){_0x234b11['model']['change'](_0x417d17=>{const _0x35a5ea=Array['from'](_0x33b1dd['getRanges']())['map'](_0x15746d=>_0x1ed262['fromRange'](_0x15746d)),_0x163aa4=[];for(const _0x16748c of _0x53d5b3)for(const _0x5ecc0a of _0x16748c['getItems']({'shallow':!0x0}))_0x163aa4['push'](_0x5ecc0a);for(const _0x5411a4 of _0x163aa4)'$graveyard'!=_0x5411a4['root']['rootName']&&(_0x417d17['setSelection'](_0x417d17['createPositionAt'](_0x5411a4,0x0)),_0x234b11['commands']['get']('removeTableColumn')['refresh'](),_0x234b11['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x444197=_0x35a5ea['filter'](_0x31cced=>'$graveyard'!=_0x31cced['root']['rootName']);_0x444197['length']>0x0&&_0x417d17['setSelection'](_0x444197);for(const _0x32904c of _0x35a5ea)_0x32904c['detach']();});}function _0x5740fd(_0x428491,_0x3b9f79){return _0x3b9f79['every'](_0x3a5ea1=>_0x428491['some'](_0x5310f0=>_0x5310f0['end']['isEqual'](_0x3a5ea1['start'])||_0x3a5ea1['end']['isEqual'](_0x5310f0['start'])));}function _0x3e1600(_0x121ec6,_0x3720f3){return _0x121ec6['some'](_0x4a2c1f=>_0x3720f3['some'](_0x3f0698=>_0x4a2c1f['end']['isTouching'](_0x3f0698['start'])));}_0x234b11['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43e4bd,_0x385d1f,_0x42bfd2)=>{if(!_0x42bfd2['options']['showSuggestionHighlights'])return;const _0x4d59ed=_0x385d1f['item'];if(!_0x4d59ed)return;const _0x4d0f51=_0x42bfd2['mapper']['toViewElement'](_0x4d59ed);function _0x9315e7(_0x1c1c4d){return Array['isArray'](_0x1c1c4d)?_0x1c1c4d:[_0x1c1c4d];}_0x4d0f51&&'tableCell'===_0x4d59ed['name']&&_0x49b737(_0x4d0f51,_0x42bfd2['writer'],(_0x4e0603,_0x35f94e,_0x29e8c3)=>_0x29e8c3['addClass'](_0x9315e7(_0x35f94e['classes']),_0x4e0603),(_0x4908cb,_0x4274bc,_0x58951e)=>_0x58951e['removeClass'](_0x9315e7(_0x4274bc['classes']),_0x4908cb));},{'priority':'highest'}),_0x2f1960['descriptionFactory']['registerDescriptionCallback'](_0x30844c=>{if('insertion'!=_0x30844c['type']&&'deletion'!=_0x30844c['type'])return;const _0x20b643=_0x30844c['getContainedElement']();if(null!=_0x20b643&&_0x20b643['is']('element','table')){if('insertion'==_0x30844c['type']){const _0x1992fa=_0x30844c['getItems']()['filter'](_0x4fb894=>_0x4fb894['is']('$textProxy'))['map'](_0x46ba20=>_0x46ba20['data']);if(_0x1992fa['length'])return{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1992fa['join']('\x20')+'\x22'))};}if('deletion'==_0x30844c['type']){const _0x1ad559=_0x30844c['getItems']()['filter'](_0x4c1e4e=>_0x4c1e4e['is']('$textProxy'))['map'](_0x183bf6=>_0x183bf6['data']);if(_0x1ad559['length'])return{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1ad559['join']('\x20')+'\x22'))};}}}),_0x2f1960['descriptionFactory']['registerDescriptionCallback'](_0x28141d=>{if('tableRow'==_0x28141d['subType']){const _0x5023d0=_0x28141d['getItems']()['filter'](_0x59ddca=>_0x59ddca['is']('$textProxy'))['map'](_0x4b8624=>_0x4b8624['data']),_0x1ffcbf=this['_getSuggestionCoords'](_0x28141d),_0x2fc96f=_0x1ffcbf['maxRow']-_0x1ffcbf['minRow']+0x1;if('insertion'==_0x28141d['type'])return _0x5023d0['length']?{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fc96f,'\x22'+_0x5023d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW',_0x2fc96f))};if('deletion'==_0x28141d['type'])return _0x5023d0['length']?{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fc96f,'\x22'+_0x5023d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_ROW',_0x2fc96f))};}if('tableColumn'==_0x28141d['subType']){const _0x5bf804=_0x28141d['getItems']()['filter'](_0x3dd3d6=>_0x3dd3d6['is']('$textProxy'))['map'](_0x5c1098=>_0x5c1098['data']),_0x233eb5=this['_getSuggestionCoords'](_0x28141d),_0x12250a=_0x233eb5['maxColumn']-_0x233eb5['minColumn']+0x1;if('insertion'==_0x28141d['type'])return _0x5bf804['length']?{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12250a,'\x22'+_0x5bf804['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5dbd53,'*Insert:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN',_0x12250a))};if('deletion'==_0x28141d['type'])return _0x5bf804['length']?{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12250a,'\x22'+_0x5bf804['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5dbd53,'*Remove:*\x20%0',o(_0x5dbd53,'ELEMENT_TABLE_COLUMN',_0x12250a))};}}),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9f9d5b),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9f9d5b),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xedbec),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xedbec),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5740fd),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5740fd),_0x2f1960['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e1600),_0x2f1960['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e1600);}['_acceptFormatSuggestionCallbackFactory'](){const _0xfe78b4=this['editor'],_0x312381=_0xfe78b4['model']['document']['selection'];return(_0x2268b9,_0x106351)=>{_0xfe78b4['model']['change'](_0x527671=>{const {commandName:_0x4cc6e5,commandParams:_0x290e64}=_0x106351;let _0x29047c=_0x2268b9[0x0]['end']['nodeBefore'];_0x290e64&&_0x290e64[0x0]&&!0x1===_0x290e64[0x0]['forceValue']&&(_0x29047c=_0x2268b9[0x0]['start']['nodeAfter']);const _0x26db26=_0x527671['createRangeIn'](_0x29047c);if('$graveyard'==_0x26db26['root']['rootName'])return;const _0xb0795a=Array['from'](_0x312381['getRanges']())['map'](_0xe293bc=>_0x1ed262['fromRange'](_0xe293bc));_0x527671['setSelection'](_0x26db26),_0xfe78b4['commands']['get'](_0x4cc6e5)['refresh'](),_0x290e64['push']({'forceDefaultExecution':!0x0}),_0xfe78b4['execute'](_0x4cc6e5,..._0x290e64);const _0x38584d=_0xb0795a['filter'](_0x4f798d=>'$graveyard'!=_0x4f798d['root']['rootName']);_0x38584d['length']>0x0&&_0x527671['setSelection'](_0x38584d);for(const _0x8fceea of _0xb0795a)_0x8fceea['detach']();});};}['_getCoordsForCells'](_0xcdec5f){const _0x4dddc8=this['editor']['plugins']['get']('TableUtils');let _0x36514b=Number['MAX_SAFE_INTEGER'],_0x82d340=Number['MIN_SAFE_INTEGER'],_0x2977bb=Number['MAX_SAFE_INTEGER'],_0x34e26e=Number['MIN_SAFE_INTEGER'];for(const _0x103090 of _0xcdec5f){if('$graveyard'==_0x103090['root']['rootName'])continue;const {row:_0x52cec6,column:_0x589a91}=_0x4dddc8['getCellLocation'](_0x103090),_0xfe8ae7=_0x103090['hasAttribute']('rowspan')?_0x103090['getAttribute']('rowspan')-0x1:0x0,_0x1baf1f=_0x103090['hasAttribute']('colspan')?_0x103090['getAttribute']('colspan')-0x1:0x0;_0x36514b=_0x52cec6<_0x36514b?_0x52cec6:_0x36514b,_0x82d340=_0x52cec6+_0xfe8ae7>_0x82d340?_0x52cec6+_0xfe8ae7:_0x82d340,_0x2977bb=_0x589a91<_0x2977bb?_0x589a91:_0x2977bb,_0x34e26e=_0x589a91+_0x1baf1f>_0x34e26e?_0x589a91+_0x1baf1f:_0x34e26e;}return{'minRow':_0x36514b,'maxRow':_0x82d340,'minColumn':_0x2977bb,'maxColumn':_0x34e26e};}['_setupColumnsRowsFixing'](){const _0x318d40=this['editor'],_0x510188=_0x318d40['plugins']['get']('TrackChangesEditing'),_0x227012=_0x318d40['plugins']['get']('TableUtils');_0x318d40['model']['document']['on']('change:data',()=>{const _0x337318=Array['from'](_0x318d40['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31cc65,data:_0x1ec3d6}of _0x337318){const {group:_0x2bcbb7,id:_0x3cfef3,subType:_0xe73fb6}=_0x510188['_splitMarkerName'](_0x31cc65);if('suggestion'!=_0x2bcbb7)continue;if(null!=_0x1ec3d6['oldRange'])continue;const _0x364b75=_0x510188['getSuggestion'](_0x3cfef3);this['_tablePostFixingSubtypes']['includes'](_0xe73fb6)&&this['_tableSuggestions']['add'](_0x364b75);}},{'priority':'low'});const _0xd11cc7=(_0x250238,_0x372e7b)=>{let _0x3503b1=!0x1;const _0x2afeb4=_0x372e7b['createRangeOn'](_0x250238),_0x15e4e0=_0x250238['findAncestor']('table'),_0x63e2a4=_0x227012['getCellLocation'](_0x250238);for(const _0x5192fa of this['_tableSuggestions']){const _0x59e163=_0x5192fa['subType'],_0x592f30=_0x59e163['startsWith']('tablePaste'),_0x2cc3da=_0x59e163['substr'](_0x592f30?0xa:0x5),_0x103600=_0x2cc3da['toLowerCase'](),_0x18422f=_0x103600['substr'](0x0,0x3)+'span',_0x340329='min'+_0x2cc3da,_0x3d3542='max'+_0x2cc3da;if(!_0x5192fa['isInContent'])continue;if(_0x15e4e0!=_0x5192fa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5192fa['isIntersectingWithRange'](_0x2afeb4))continue;const _0x2cd5f2=_0x250238['hasAttribute'](_0x18422f)?_0x250238['getAttribute'](_0x18422f)-0x1:0x0,_0x44d02c=this['_getSuggestionCoords'](_0x5192fa),_0x404694=_0x44d02c[_0x340329],_0x11a15c=_0x44d02c[_0x3d3542];_0x404694<=_0x63e2a4[_0x103600]&&_0x63e2a4[_0x103600]+_0x2cd5f2<=_0x11a15c&&(_0x5192fa['addRange'](_0x2afeb4),_0x3503b1=!0x0);}return _0x3503b1;};_0x318d40['model']['document']['registerPostFixer'](_0x47b1fe=>{let _0x195a68=!0x1;for(const _0x46916a of _0x318d40['model']['document']['differ']['getChanges']())if('insert'==_0x46916a['type']){if('tableRow'==_0x46916a['name']){for(const _0x16640d of _0x46916a['position']['nodeAfter']['getChildren']())_0x195a68=_0x195a68||_0xd11cc7(_0x16640d,_0x47b1fe);}else'tableCell'==_0x46916a['name']&&(_0x195a68=_0x195a68||_0xd11cc7(_0x46916a['position']['nodeAfter'],_0x47b1fe));}return _0x195a68;});}['_getSuggestionCoords'](_0x4d8631){return this['_getCoordsForCells'](_0x4d8631['getRanges']()['map'](_0x24e8d0=>_0x24e8d0['start']['nodeAfter']));}constructor(_0x14d92e){super(_0x14d92e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x50839b){return Array['from'](new Set(_0x50839b)['values']());}class St extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x5992de=this['editor'],_0x264090=_0x5992de['model']['document']['selection'],_0x2f07eb=_0x5992de['locale'];if(!_0x5992de['plugins']['has']('TableEditing'))return;const _0x483378=_0x5992de['plugins']['get']('TrackChangesEditing'),_0x4131b0=_0x5992de['plugins']['get']('TableUtils'),_0x4cfa2d=_0x5992de['plugins']['get'](jt);_0x4cfa2d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x483378['enableCommand']('mergeTableCells',()=>{const _0x690198=_0x4131b0['getSelectionAffectedTableCells'](_0x5992de['model']['document']['selection']);_0x5992de['model']['change'](()=>{_0x483378['markMultiRangeBlockFormat'](_0x690198,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5992de['commands']['get']('mergeTableCells')['on']('execute',(_0x15b369,_0xb1491c)=>{_0x5992de['commands']['get']('trackChanges')['value']&&(_0xb1491c['length']>0x0&&_0xb1491c[_0xb1491c['length']-0x1]&&_0xb1491c[_0xb1491c['length']-0x1]['forceDefaultExecution']||_0x483378['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x15b369['stop']());},{'priority':'highest'});for(const _0x28709f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4a9e01=_0x5992de['commands']['get'](_0x28709f);_0x483378['enableCommand'](_0x28709f,()=>{const _0x9d27e3=_0x5992de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd7d98e=>_0xd7d98e['is']('element','tableCell')),_0x463bab=_0x4a9e01['value'];_0x5992de['model']['change'](()=>{_0x483378['markMultiRangeBlockFormat']([_0x9d27e3,_0x463bab],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x327ac7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2529cd=_0x5992de['commands']['get'](_0x327ac7);_0x483378['enableCommand'](_0x327ac7,()=>{const _0x13d899=_0x4131b0['getSelectionAffectedTableCells'](_0x5992de['model']['document']['selection'])[0x0],_0x2b9396=_0x13d899['findAncestor']('table'),{column:_0x5614fa,row:_0x282784}=_0x4131b0['getCellLocation'](_0x13d899);let _0x1f0eb8=[];if('horizontally'==_0x2529cd['direction']){const _0x9752cc=_0x4131b0['createTableWalker'](_0x2b9396,{'startRow':_0x282784,'endRow':_0x282784,'includeAllSlots':!0x0});_0x1f0eb8=Array['from'](_0x9752cc)['map'](_0x683848=>_0x683848['cell']);}else{const _0x480911=_0x4131b0['createTableWalker'](_0x2b9396,{'column':_0x5614fa,'includeAllSlots':!0x0});_0x1f0eb8=Array['from'](_0x480911)['map'](_0x1b503c=>_0x1b503c['cell']);}_0x5992de['model']['change'](_0x59a744=>{_0x483378['markBlockFormat'](_0x59a744['createRangeOn'](_0x13d899),{'commandName':_0x327ac7,'commandParams':[]},_0x1f0eb8,_0x327ac7);});});}_0x483378['descriptionFactory']['registerDescriptionCallback'](_0x5b24dd=>{if('formatBlock'!=_0x5b24dd['type']&&'formatInline'!=_0x5b24dd['type'])return;const {data:_0x53a3a1}=_0x5b24dd;return _0x53a3a1&&'mergeTableCells'==_0x53a3a1['commandName']?{'type':'format','content':o(_0x2f07eb,'*Merge\x20cells*')}:void 0x0;}),_0x483378['descriptionFactory']['registerDescriptionCallback'](_0x48d576=>{if('formatBlock'!=_0x48d576['type']&&'formatInline'!=_0x48d576['type'])return;const {data:_0x234fe7}=_0x48d576;return _0x234fe7?'splitTableCellVertically'==_0x234fe7['commandName']?{'type':'format','content':o(_0x2f07eb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x234fe7['commandName']?{'type':'format','content':o(_0x2f07eb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a58bb=_0x4cfa2d['_acceptFormatSuggestionCallbackFactory']();for(const _0x15a564 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x483378['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15a564,'accept',_0x2a58bb);for(const _0x280be2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x483378['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x280be2,'accept',_0x2a58bb);_0x483378['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35ea79=>{_0x5992de['model']['change'](_0x535af9=>{const _0x2431d8=Array['from'](_0x264090['getRanges']())['map'](_0x4d94a0=>_0x1ed262['fromRange'](_0x4d94a0));_0x535af9['setSelection'](_0x35ea79),_0x5992de['commands']['get']('mergeTableCells')['refresh'](),_0x5992de['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5f20f4=_0x2431d8['filter'](_0x137d5d=>'$graveyard'!=_0x137d5d['root']['rootName']);_0x5f20f4['length']>0x0&&_0x535af9['setSelection'](_0x5f20f4);for(const _0x589ca9 of _0x2431d8)_0x589ca9['detach']();});});for(const _0x3b172e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x499fcc=_0x5992de['commands']['get'](_0x3b172e);_0x499fcc['on']('set:isEnabled',(_0x3812ab,_0x30b5be,_0x255e8d)=>{if(_0x255e8d){const _0x38eec8=_0x5992de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10a582=>_0x10a582['is']('element','tableCell'));this['_areMergableCells'](_0x499fcc['value'],_0x38eec8)||(_0x3812ab['return']=!0x1,_0x3812ab['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf1c1c9=this['editor']['commands']['get']('mergeTableCells'),_0x3d514d=this['editor']['plugins']['get']('TableUtils');if(!_0xf1c1c9['isEnabled'])return!0x1;const _0xca46fb=_0x3d514d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5ab1a5 of _0xca46fb)for(const _0x5bf92f of _0xca46fb)if(_0x5ab1a5!=_0x5bf92f&&!this['_areMergableCells'](_0x5ab1a5,_0x5bf92f))return!0x1;return!0x0;}['_areMergableCells'](_0x1c1818,_0x5aebed){const _0x29ed64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20560c=this['editor']['model']['createRangeOn'](_0x1c1818),_0x1912d8=this['editor']['model']['createRangeOn'](_0x5aebed),_0x52ec92=new Set(),_0x17b3c3=new Set();for(const _0x13041d of _0x29ed64['getSuggestions']())if(('insertion'==_0x13041d['type']||'deletion'==_0x13041d['type']||'mergeTableCells'==_0x13041d['subType'])&&_0x13041d['isInContent']){for(const _0x3af621 of _0x13041d['getRanges']())_0x3af621['containsRange'](_0x20560c,!0x0)&&_0x52ec92['add'](_0x13041d['type']+':'+_0x13041d['author']['id']),_0x3af621['containsRange'](_0x1912d8,!0x0)&&_0x17b3c3['add'](_0x13041d['type']+':'+_0x13041d['author']['id']);}if(_0x52ec92['size']!=_0x17b3c3['size'])return!0x1;for(const _0x2074d4 of _0x52ec92)if(!_0x17b3c3['has'](_0x2074d4))return!0x1;return!0x0;}}class At extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x5cb438=this['editor'];if(!_0x5cb438['plugins']['has']('TableEditing'))return;const _0x148d98=_0x5cb438['locale'],_0x42f4cf=_0x5cb438['plugins']['get']('TrackChangesEditing');_0x42f4cf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x42f4cf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x42f4cf['registerBlockAttribute']('headingRows'),_0x42f4cf['registerBlockAttribute']('headingColumns'),_0x42f4cf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x148d98,'FORMAT_HEADER_ROW')),_0x42f4cf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x148d98,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11b5b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cd337=this['editor']['plugins']['get']('TableUtils'),_0x190be5=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x19c5b5({showActiveMarker:_0x4f6057=!0x0,setDataAttribute:_0x442843=!0x0}={}){return(_0x39251d,_0x12e01c,_0x3be55e)=>{const {type:_0x11b9d9,id:_0x8be8ca}=_0x11b5b9['_splitMarkerName'](_0x12e01c['markerName']),_0x1f94a5=_0x11b5b9['getSuggestion'](_0x8be8ca),_0x1d0739=_0x1f94a5['data'];if('formatBlock'!=_0x1f94a5['type']||!_0x1d0739||'setTableColumnHeader'!=_0x1d0739['commandName'])return;if(_0x12e01c['item'])return void _0x39251d['stop']();if(!_0x3be55e['consumable']['consume'](_0x12e01c['markerRange'],_0x39251d['name']))return;const _0x5c9271=_0x12e01c['markerRange']['start']['nodeAfter'],_0x48af4e=_0x12e01c['markerRange']['end']['nodeBefore'],_0x563952=_0x5c9271['parent']['parent'],{column:_0x4916b6}=_0x1cd337['getCellLocation'](_0x5c9271),{column:_0x5cafdc}=_0x1cd337['getCellLocation'](_0x48af4e);for(let _0xd42b13=_0x4916b6;_0xd42b13<=_0x5cafdc;_0xd42b13++){const _0x3ba2f1=_0x1cd337['createTableWalker'](_0x563952,{'column':_0xd42b13,'includeAllSlots':!0x1});for(const _0x140033 of _0x3ba2f1){const _0x4533b0=_0x140033['cell'],_0x2158e1=_0x3be55e['mapper']['toViewElement'](_0x4533b0);_0x3be55e['writer']['addClass']('ck-suggestion-marker-'+_0x11b9d9,_0x2158e1),_0x442843&&_0x3be55e['writer']['setAttribute']('data-suggestion',_0x8be8ca,_0x2158e1),_0x3be55e['mapper']['bindElementToMarker'](_0x2158e1,_0x12e01c['markerName']),_0x4f6057&&(_0x11b5b9['activeMarkers']['includes'](_0x12e01c['markerName'])?_0x3be55e['writer']['addClass']('ck-suggestion-marker--active',_0x2158e1):_0x3be55e['writer']['removeClass']('ck-suggestion-marker--active',_0x2158e1));}}};}_0x11b5b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x190be5),_0x11b5b9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x190be5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19c5b5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x99981a,_0x570a1f,_0x3a7ed8)=>{_0x3a7ed8['options']['showSuggestionHighlights']&&_0x19c5b5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x99981a,_0x570a1f,_0x3a7ed8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4fa4b5,_0x40b21d,_0x4475c2)=>{const {type:_0x2474a5,id:_0x150bde}=_0x11b5b9['_splitMarkerName'](_0x40b21d['markerName']),_0x57c19d=_0x11b5b9['getSuggestion'](_0x150bde),_0x25a923=_0x57c19d['data'];if('formatBlock'!=_0x57c19d['type']||!_0x25a923||'setTableColumnHeader'!=_0x25a923['commandName'])return;const _0x4c090c=_0x4475c2['mapper']['markerNameToElements'](_0x40b21d['markerName']);if(_0x4c090c){for(const _0x463198 of _0x4c090c)_0x4475c2['writer']['removeClass']('ck-suggestion-marker-'+_0x2474a5,_0x463198),_0x4475c2['writer']['removeClass']('ck-suggestion-marker--active',_0x463198),_0x4475c2['writer']['removeAttribute']('data-suggestion',_0x463198),_0x4475c2['mapper']['unbindElementFromMarkerName'](_0x463198,_0x40b21d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x771afc=this['editor'],_0x2cfd17=_0x771afc['locale'];function _0x258cc3(_0x47759c){return{'type':'format','content':o(_0x2cfd17,'*Format:*\x20%0',_0x47759c)};}_0x771afc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb35b9f=>{if('formatBlock'!=_0xb35b9f['type'])return;const {data:_0x41c783}=_0xb35b9f;if(_0x41c783){if('setTableRowHeader'==_0x41c783['commandName']){const _0x3eed2a=_0x41c783['commandParams'][0x0]['forceValue'];return _0x258cc3(o(_0x2cfd17,_0x3eed2a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41c783['commandName']){const _0x3e367c=_0x41c783['commandParams'][0x0]['forceValue'];return _0x258cc3(o(_0x2cfd17,_0x3e367c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3c3ace=>[_0x3c3ace,null]));class It extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x17ee05=this['editor'];if(!_0x17ee05['plugins']['has']('TableClipboard'))return;const _0x437544=_0x17ee05['plugins']['get']('TrackChangesEditing'),_0x45750f=_0x17ee05['plugins']['get']('TableUtils'),_0x42acc1=_0x17ee05['plugins']['get'](jt),_0x562321=_0x17ee05['plugins']['get']('TableClipboard');_0x42acc1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17ee05['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17ee05['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x423833=null;_0x17ee05['model']['on']('insertContent',(_0x2ba213,_0x21a6a0)=>{const [_0x57a00c,_0x43b85c]=_0x21a6a0,_0x3f4002=_0x21a6a0[_0x21a6a0['length']-0x1];_0x3f4002&&_0x3f4002['forceDefaultExecution']||_0x437544['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2390d1,_0x1a5aee,_0x17d49a,_0x4e9167,_0x5243ae){if(_0x1a5aee&&!_0x1a5aee['is']('documentSelection'))return!0x1;const _0x3da842=_0x5243ae['getTableIfOnlyTableInContent'](_0x2390d1,_0x17d49a);if(!_0x3da842||!he(_0x3da842,void 0x0,_0x4e9167))return!0x1;const _0x507967=_0x4e9167['getSelectionAffectedTableCells'](_0x17d49a['document']['selection']);if(!_0x507967['length'])return!0x1;const _0x1c1750=_0x507967[0x0]['findAncestor']('table'),_0x1e76ca=_0x4e9167['getRowIndexes'](_0x507967),_0x4b6a9c=_0x4e9167['getColumnIndexes'](_0x507967),_0x33bd78={'startRow':_0x1e76ca['first'],'endRow':_0x1e76ca['last'],'startColumn':_0x4b6a9c['first'],'endColumn':_0x4b6a9c['last']};return 0x1==_0x507967['length']&&(_0x33bd78['endRow']+=_0x4e9167['getRows'](_0x3da842)-0x1,_0x33bd78['endColumn']+=_0x4e9167['getColumns'](_0x3da842)-0x1),he(_0x1c1750,_0x33bd78,_0x4e9167);}(_0x57a00c,_0x43b85c,_0x17ee05['model'],_0x45750f,_0x562321)&&(_0x2ba213['stop'](),_0x423833={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17ee05['model']['change'](()=>{_0x17ee05['model']['insertContent'](_0x21a6a0[0x0],_0x21a6a0[0x1],_0x21a6a0[0x2],{'forceDefaultExecution':!0x0});const _0x360418=_0x51245d(),{rowInsertionRanges:_0x583684,columnInsertionRanges:_0xebe264,insertionRanges:_0x1f844c,deletionRanges:_0x5ae77a,cells:_0x241dd4}=_0x423833;_0x583684['length']&&_0x437544['markMultiRangeInsertion'](_0x583684,'tablePasteRow',{'tablePasteChainId':_0x360418}),_0xebe264['length']&&_0x437544['markMultiRangeInsertion'](_0xebe264,'tablePasteColumn',{'tablePasteChainId':_0x360418}),_0x1f844c['length']&&(_0x437544['markMultiRangeInsertion'](_0x1f844c,'tablePaste',{'tablePasteChainId':_0x360418,'skipNestingCheck':!0x0}),_0x1f844c['forEach'](_0x4a52b7=>{var _0x5ca3db;return null===(_0x5ca3db=_0x4a52b7['detach'])||void 0x0===_0x5ca3db?void 0x0:_0x5ca3db['call'](_0x4a52b7);})),_0x5ae77a['length']&&(_0x437544['markMultiRangeDeletion'](_0x5ae77a,'tablePaste',{'tablePasteChainId':_0x360418,'skipNestingCheck':!0x0}),_0x5ae77a['forEach'](_0x3315c2=>{var _0x3a4601;return null===(_0x3a4601=_0x3315c2['detach'])||void 0x0===_0x3a4601?void 0x0:_0x3a4601['call'](_0x3315c2);}));const _0x7a4869=_0x437544['markMultiRangeBlockFormat'](_0x241dd4['map'](({element:_0x5919e6})=>_0x5919e6),{'formatGroupId':_0x51245d()},[],'tablePasteCell',{'tablePasteChainId':_0x360418});if(_0x7a4869){const _0x3d26ff=_0x7a4869['getMarkers'](),_0xa57187=[];for(const {element:_0x1dd612,attributes:_0x216b6c}of _0x241dd4){if(!_0x216b6c)continue;const _0x538a18=_0x17ee05['model']['createRangeOn'](_0x1dd612),_0x840794=_0x3d26ff['find'](_0x1bc14f=>_0x1bc14f['getRange']()['isEqual'](_0x538a18));_0x840794&&_0xa57187['push']([_0x840794['name'],_0x216b6c]);}_0xa57187['length']&&_0x7a4869['setAttribute']('markerAttributes',Object['fromEntries'](_0xa57187));}_0x423833=null;}));},{'priority':_0x110481['high']+0xa}),_0x17ee05['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x386d63,_0x23f0b2)=>{const [_0x1ebb84,_0x46ef98,,_0x144ad2]=_0x23f0b2;if(!_0x423833)return;_0x386d63['stop']();const _0x1c6bf7=_0x1ebb84['cell'],_0x1d79e6=_0x46ef98,_0x648468=Pe(_0x1c6bf7),_0xb460b5=Pe(_0x1d79e6);_0x386d63['return']=_0x1c6bf7;let _0x52b561=null,_0x390d41=null;if(_0xb460b5||_0x648468){if(_0x648468&&!_0xb460b5){_0x144ad2['remove'](_0x1c6bf7['getChild'](0x0));for(const _0x2020ef of Array['from'](_0x1d79e6['getChildren']()))_0x144ad2['insert'](_0x2020ef,_0x1c6bf7,'end');const _0x5dfc55=_0x423833['rowInsertionIndexes']['includes'](_0x1ebb84['row']),_0x11a56f=_0x423833['columnInsertionIndexes']['includes'](_0x1ebb84['column']);_0x5dfc55||_0x11a56f||(_0x52b561=_0x1ed262['fromRange'](_0x144ad2['createRangeIn'](_0x1c6bf7)));}else _0xb460b5&&!_0x648468&&(_0x390d41=_0x144ad2['createRangeIn'](_0x1c6bf7));}else{const _0x437d82=_0x144ad2['createElement']('tableCellSuggestion'),_0x45aac6=_0x144ad2['createElement']('tableCellSuggestion');_0x144ad2['wrap'](_0x144ad2['createRangeIn'](_0x1c6bf7),_0x45aac6),_0x144ad2['insert'](_0x437d82,_0x1c6bf7,0x0);for(const _0x266a19 of Array['from'](_0x1d79e6['getChildren']()))_0x144ad2['insert'](_0x266a19,_0x437d82,'end');_0x52b561=_0x1ed262['fromRange'](_0x144ad2['createRangeOn'](_0x437d82)),_0x390d41=_0x1ed262['fromRange'](_0x144ad2['createRangeOn'](_0x45aac6));}const _0xf66186=Array['from'](_0x1d79e6['getAttributes']())['filter'](([_0x33584e])=>ge['includes'](_0x33584e));_0x423833['cells']['push']({'element':_0x1c6bf7,'attributes':_0xf66186['length']?Object['fromEntries'](_0xf66186):null}),_0x52b561&&_0x423833['insertionRanges']['push'](_0x52b561),_0x390d41&&_0x423833['deletionRanges']['push'](_0x390d41);},{'priority':'high'}),_0x45750f['on']('insertColumns',(_0x8ff11,_0x5dca18)=>{const [_0x4d6e7b,_0x56e421={}]=_0x5dca18;if(!_0x423833)return;const _0xacb01b=_0x56e421['at']||0x0,_0x782524=_0x56e421['columns']||0x1;_0x423833['columnInsertionIndexes']=new Array(_0x782524)['fill'](_0xacb01b)['map']((_0x26b696,_0x5608e7)=>_0x26b696+_0x5608e7);for(const {cell:_0x52175f}of _0x45750f['createTableWalker'](_0x4d6e7b,{'startColumn':_0xacb01b,'endColumn':_0xacb01b+_0x782524-0x1}))_0x423833['columnInsertionRanges']['push'](_0x17ee05['model']['createRangeOn'](_0x52175f));},{'priority':'low'}),_0x45750f['on']('insertRows',(_0x3a3c1c,_0x426fba)=>{const [_0x28c931,_0x4e0bc6={}]=_0x426fba;if(!_0x423833)return;const _0x40895c=_0x4e0bc6['at']||0x0,_0x216dc1=_0x4e0bc6['rows']||0x1;_0x423833['rowInsertionIndexes']=new Array(_0x216dc1)['fill'](_0x40895c)['map']((_0x127c04,_0x5e04a6)=>_0x127c04+_0x5e04a6);for(const {cell:_0x1bc2ee}of _0x45750f['createTableWalker'](_0x28c931,{'startRow':_0x40895c,'endRow':_0x40895c+_0x216dc1-0x1}))_0x423833['rowInsertionRanges']['push'](_0x17ee05['model']['createRangeOn'](_0x1bc2ee));},{'priority':'low'}),_0x437544['descriptionFactory']['registerDescriptionCallback'](_0x51c379=>{if(_0x51c379['subType']&&_0x51c379['subType']['startsWith']('tablePaste'))return _0x51c379['previous']?{}:{'type':'insertion','content':o(_0x17ee05['locale'],'*Replace\x20table\x20cells*')};});const _0xa3798=()=>!0x1;for(const _0x4f323c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x437544['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f323c,'join',_0xa3798),_0x437544['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f323c,'join',_0xa3798),_0x437544['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f323c,'join',_0xa3798);_0x437544['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xa3798),_0x437544['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x485a31,_0x25493c,_0x5886a2)=>{const _0x39c2a4=_0x485a31['map'](_0xbe9589=>_0xbe9589['getContainedElement']())['filter'](_0x1ce928=>_0x1ce928),_0x37203b=new Map(_0x39c2a4['map'](_0x57a84f=>[_0x57a84f,null]));if(_0x423833){for(const {element:_0x15c8ab,attributes:_0x167044}of _0x423833['cells'])_0x167044&&_0x37203b['set'](_0x15c8ab,_0x167044);}else{if(_0x5886a2&&_0x5886a2['markerAttributes'])for(const [_0x36d893,_0x1bc80e]of Object['entries'](_0x5886a2['markerAttributes'])){const _0x245e0a=_0x17ee05['model']['markers']['get'](_0x36d893),_0xd580ee=_0x245e0a?_0x245e0a['getRange']()['getContainedElement']():null;_0xd580ee&&_0x37203b['set'](_0xd580ee,_0x1bc80e);}}_0x17ee05['model']['change'](_0xa02c5e=>{for(const [_0x5ceb16,_0x50c540]of _0x37203b)_0xa02c5e['setAttributes']({...Ce,..._0x50c540},_0x5ceb16);});});const _0x3a1035=(_0x2db2c9,_0x5c3a1b)=>{_0x437544['_suggestionFactory']['registerCustomCallback'](_0x2db2c9,'tablePaste',_0x5c3a1b,(_0x392482,_0xd3afd8,_0x21ac0f)=>{_0x17ee05['model']['change'](_0x431374=>{const _0x230b0d=[];for(const _0xa997e9 of _0x392482){const _0x367cdb=_0xa997e9['start']['nodeAfter'];_0x367cdb['is']('element','tableCellSuggestion')&&_0x230b0d['push'](_0x367cdb);}_0x437544['_suggestionFactory']['getSuggestionCallback'](_0x2db2c9,null,_0x5c3a1b)(_0x392482,_0xd3afd8,_0x21ac0f);for(const _0x22a68c of _0x230b0d)'$graveyard'!=_0x22a68c['root']['rootName']&&_0x431374['unwrap'](_0x22a68c);});});};_0x3a1035('insertion','accept'),_0x3a1035('insertion','discard'),_0x3a1035('deletion','accept'),_0x3a1035('deletion','discard'),_0x437544['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x469206=>{const _0x237616=_0x469206['map'](_0x33122d=>_0x33122d['getContainedElement']()),_0x1571ca=_0x237616[0x0]['findAncestor']('table'),{minRow:_0x5be6bf,maxRow:_0x19b426}=_0x42acc1['_getCoordsForCells'](_0x237616);_0x45750f['removeRows'](_0x1571ca,{'at':_0x5be6bf,'rows':_0x19b426-_0x5be6bf+0x1});}),_0x437544['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x35dadf=>{const _0x663951=_0x35dadf['map'](_0x4a5fff=>_0x4a5fff['getContainedElement']()),_0x1e0396=_0x663951[0x0]['findAncestor']('table'),{minColumn:_0x9f0228,maxColumn:_0x4c599c}=_0x42acc1['_getCoordsForCells'](_0x663951);_0x45750f['removeColumns'](_0x1e0396,{'at':_0x9f0228,'columns':_0x4c599c-_0x9f0228+0x1});});const _0x47848f=(_0x5d0b8e,_0x18847a)=>{if(!_0x18847a['subType']||!_0x18847a['subType']['startsWith']('tablePaste'))return;const _0x3f8e12=_0x18847a['attributes']['tablePasteChainId'],_0x8dfe93=_0x437544['getSuggestions']()['filter'](_0x4b306c=>_0x4b306c['isInContent']&&_0x4b306c['attributes']&&_0x4b306c['attributes']['tablePasteChainId']==_0x3f8e12);_0x8dfe93['length']&&_0x18847a['getAllAdjacentSuggestions']()['length']!=_0x8dfe93['length']&&_0x8dfe93['reduce']((_0x5c300a,_0x23ed12)=>(_0x5c300a['next']=_0x23ed12,_0x23ed12['previous']=_0x5c300a,_0x23ed12));};function _0x300809(_0x265554,_0x201ee0=!0x0){const {id:_0x470ffe}=_0x437544['_splitMarkerName'](_0x265554['markerName']),_0x21545e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c76cf=_0x437544['activeMarkers']['includes'](_0x265554['markerName']);return _0x2c76cf&&_0x21545e['push']('ck-suggestion-marker--active'),{'classes':_0x21545e,'attributes':{'data-suggestion':_0x470ffe},'priority':_0x2c76cf&&_0x201ee0?0xbc2:0xbb8};}_0x437544['on']('suggestionLoaded',_0x47848f,{'priority':'high'}),_0x437544['on']('suggestionUnloaded',_0x47848f,{'priority':'high'}),_0x17ee05['model']['document']['registerPostFixer'](()=>{let _0x5b8ca2=!0x1;const _0x46d68c=Array['from'](_0x17ee05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a3492,data:_0x5ecf26}of _0x46d68c){const {group:_0x4d96d7,type:_0x5ea415,id:_0x181685}=_0x437544['_splitMarkerName'](_0x3a3492);if('suggestion'!=_0x4d96d7||'deletion'!=_0x5ea415||_0x5ecf26['oldRange'])continue;if(!_0x437544['hasSuggestion'](_0x181685))continue;const _0x25f829=_0x437544['getSuggestion'](_0x181685)['getRanges'](),_0x309678=_0x17ee05['plugins']['get']('Users')['me'];for(const _0x50e06f of _0x437544['getSuggestions']()){if(!_0x50e06f['isInContent']||_0x50e06f['author']!=_0x309678)continue;if('formatBlock'!=_0x50e06f['type']||'tablePasteCell'!=_0x50e06f['subType'])continue;if(_0x50e06f['getRanges']()['every'](_0x724537=>_0x25f829['some'](_0x1db547=>_0x1db547['containsRange'](_0x724537,!0x0)))){for(const _0x1631b5 of _0x50e06f['getAllAdjacentSuggestions']())_0x1631b5['isInContent']&&(_0x1631b5['discard'](),_0x5b8ca2=!0x0);}}}return _0x5b8ca2;}),_0x17ee05['model']['document']['registerPostFixer'](_0x1b4b52=>{const _0x18c679=_0x17ee05['commands']['get']('redo');if(!_0x18c679||!_0x18c679['_createdBatches']['has'](_0x1b4b52['batch']))return!0x1;let _0x47b40b=!0x1;const _0x281e85=_0x17ee05['plugins']['get']('Users')['me'],_0x25fa45=_0x17ee05['model']['document']['differ']['getChanges'](),_0x3a4b7e=Array['from'](_0x17ee05['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x564f33,data:_0x2be69c})=>{const {group:_0x47590f,subType:_0x59aeeb,authorId:_0x72a1c8}=_0x437544['_splitMarkerName'](_0x564f33);return'suggestion'==_0x47590f&&'tablePaste'==_0x59aeeb&&_0x72a1c8==_0x281e85['id']&&!_0x2be69c['oldRange'];});for(const _0x39035e of _0x25fa45){if('insert'!=_0x39035e['type']||'tableCellSuggestion'!=_0x39035e['name']||0x1!=_0x39035e['length'])continue;const _0x4f8957=_0x1b4b52['createRange'](_0x39035e['position'],_0x39035e['position']['getShiftedBy'](0x1));if(!_0x3a4b7e['find'](({data:_0x562cdb})=>_0x562cdb['newRange']['isEqual'](_0x4f8957))){for(const {name:_0x5473eb,data:_0x1c46a8}of _0x3a4b7e)if(_0x4f8957['containsRange'](_0x1c46a8['newRange'])){_0x1b4b52['updateMarker'](_0x5473eb,{'range':_0x4f8957}),_0x47b40b=!0x0;break;}}}return _0x47b40b;}),_0x17ee05['model']['document']['registerPostFixer'](_0x5c5b40=>{let _0x2f6260=!0x1;const _0x4ceaea=_0x17ee05['plugins']['get']('Users')['me'],_0x747399=_0x437544['getSuggestions']()['filter'](_0x2d412d=>_0x2d412d['isInContent']&&_0x2d412d['author']==_0x4ceaea),_0x29e48d=new Set(),_0x570cb9=new Set();for(const _0x392a7d of _0x747399)if('tablePaste'==_0x392a7d['subType'])for(const _0x531b2e of _0x392a7d['getMarkers']()){const _0x5eeee5=_0x531b2e['getRange']()['getContainedElement']();if(_0x5eeee5){if(_0x5eeee5['is']('element','tableCellSuggestion')&&Pe(_0x5eeee5)){_0x392a7d['removeMarker'](_0x531b2e['name']),_0x29e48d['add'](_0x5eeee5),_0x2f6260=!0x0;const _0x2d9403=_0x5eeee5['nextSibling'],_0x236566=_0x5eeee5['previousSibling'],_0x5ccbd5=_0x2d9403&&_0x2d9403['is']('element','tableCellSuggestion'),_0x1aa0d1=_0x236566&&_0x236566['is']('element','tableCellSuggestion');_0x5ccbd5&&!_0x29e48d['has'](_0x2d9403)&&_0x570cb9['add'](_0x2d9403),_0x1aa0d1&&!_0x29e48d['has'](_0x236566)&&_0x570cb9['add'](_0x236566);}else _0x5eeee5['is']('element','paragraph')&&_0x5eeee5['isEmpty']&&(_0x392a7d['removeMarker'](_0x531b2e['name']),_0x2f6260=!0x0);}}else{if('tablePasteCell'==_0x392a7d['subType']){if(!_0x392a7d['attributes']||!_0x392a7d['attributes']['tablePasteChainId'])continue;const _0x23dd0d=_0x392a7d['attributes']['markerAttributes'];if(_0x23dd0d&&Object['keys'](_0x23dd0d)['length'])continue;const _0x990fda=_0x392a7d['attributes']['tablePasteChainId'];let _0x264a30=!0x0,_0x2372f7=!0x0;for(const _0x2c38b2 of _0x747399)if(_0x2c38b2['subType']&&_0x2c38b2['subType']['startsWith']('tablePaste')){if(!_0x2c38b2['attributes']['tablePasteChainId']){_0x2372f7=!0x1;break;}if(_0x2c38b2['id']!=_0x392a7d['id']&&_0x2c38b2['attributes']['tablePasteChainId']==_0x990fda){_0x264a30=!0x1;break;}}_0x2372f7&&_0x264a30&&(_0x392a7d['removeMarkers'](),_0x2f6260=!0x0);}}for(const _0x84a098 of _0x29e48d)_0x5c5b40['remove'](_0x84a098);for(const _0x3e2ba9 of _0x570cb9)_0x5c5b40['unwrap'](_0x3e2ba9);return _0x2f6260;}),_0x17ee05['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2cc7e7,_0x40de2a)=>_0x300809(_0x2cc7e7),'converterPriority':'high'}),_0x17ee05['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x256173,_0x56f760)=>_0x56f760['options']['showSuggestionHighlights']?_0x300809(_0x256173,!0x1):null,'converterPriority':'high'});const _0x12c2e0=_0x17ee05['editing']['view'];this['listenTo'](_0x12c2e0['document'],'clipboardOutput',(_0x508edd,_0x3bbd02)=>{const _0x50ed91=[];for(const _0x1edd87 of _0x12c2e0['createRangeIn'](_0x3bbd02['content'])['getItems']())_0x1edd87['is']('element','suggestion-td')&&_0x50ed91['push'](_0x1edd87);_0x12c2e0['change'](_0x29be20=>{for(const _0x400768 of _0x50ed91)_0x29be20['move'](_0x29be20['createRangeIn'](_0x400768),_0x29be20['createPositionBefore'](_0x400768)),_0x29be20['remove'](_0x400768);});});}}function Pe(_0x26cbf4){if(_0x26cbf4['isEmpty'])return!0x0;const _0x2304fe=_0x26cbf4['getChild'](0x0);return _0x2304fe['is']('element','paragraph')&&_0x2304fe['isEmpty'];}function he(_0x5430ed,_0x302bfe={},_0x15c8d5){for(const {isAnchor:_0x436df5,cellHeight:_0xe1d783,cellWidth:_0x3e5f8d}of _0x15c8d5['createTableWalker'](_0x5430ed,{'includeAllSlots':!0x0,..._0x302bfe}))if(!_0x436df5||0x1!=_0xe1d783||0x1!=_0x3e5f8d)return!0x1;return!0x0;}class vt extends _0x4d32e5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4336c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4336c1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4336c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4336c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4336c1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4336c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4336c1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x29a7b9,_0x1826ae){const _0x4df499=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3151a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e635f=_0x1826ae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x53b8f6=_0x3151a6['getColumnGroupElement'](_0x1e635f);let _0x3e0cb3=_0x53b8f6?_0x3151a6['getTableColumnsWidths'](_0x53b8f6):null,_0x2ced59=_0x1e635f['getAttribute']('tableWidth')||null;const _0x1af8b9=_0x1826ae['tableWidth']||_0x2ced59,_0x26be8f=_0x1826ae['columnWidths']||_0x3e0cb3,_0xa3103b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1a1be0 of _0x4df499['getSuggestions']()){const _0x74f254=_0x1a1be0['getContainedElement']();if('resizeTable'===_0x1a1be0['subType']&&_0x74f254===_0x1e635f){_0x1a1be0['author']!==_0xa3103b&&_0x1a1be0['discard']();const _0xc8cd3e=_0x1a1be0['data']['commandParams'];_0x2ced59=_0xc8cd3e[0x0]['tableWidth'],_0x3e0cb3=_0xc8cd3e[0x0]['columnWidths'];break;}}_0x29a7b9({'table':_0x1e635f,'tableWidth':_0x1af8b9,'columnWidths':_0x26be8f}),_0x4df499['markBlockFormat'](_0x1e635f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2ced59,'columnWidths':_0x3e0cb3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x273722){if('formatBlock'!=_0x273722['type']&&'formatInline'!=_0x273722['type'])return;const {data:_0x50d625}=_0x273722;if(_0x50d625&&'resizeTable'===_0x50d625['formatGroupId']){const _0x393c0d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x393c0d)};}}}class _t extends _0x4d32e5{['afterInit'](){const _0x3ecd4b=this['editor'];_0x3ecd4b['plugins']['has']('Template')&&_0x3ecd4b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4d32e5{['afterInit'](){const _0x2200b3=this['editor'];if(!_0x2200b3['commands']['get']('insertTableOfContents'))return;_0x2200b3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x553e85=_0x2200b3['plugins']['get']('TrackChangesEditing'),_0x2aabe3=_0x2200b3['locale'];_0x553e85['descriptionFactory']['registerElementLabel']('tableOfContents',_0x43d654=>o(_0x2aabe3,'ELEMENT_TABLE_OF_CONTENTS',_0x43d654));}}class Dt extends _0x4d32e5{['afterInit'](){const _0x3776d2=this['editor'];if(!_0x3776d2['plugins']['has']('Title'))return;const _0x10d84f=_0x3776d2['plugins']['get']('TrackChangesEditing');_0x10d84f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3776d2['locale'],'ELEMENT_TITLE')),_0x3776d2['model']['document']['registerPostFixer'](_0xbff050=>{let _0x43faf1=!0x1;const _0x21576d=Array['from'](_0x3776d2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5df4cb,data:_0x21822b}of _0x21576d){const {group:_0xf63ce5}=_0x10d84f['_splitMarkerName'](_0x5df4cb);if('suggestion'!==_0xf63ce5||!_0x21822b['newRange'])continue;const _0x375f81=_0x21822b['newRange'],_0x17701e=_0x375f81['end']['nodeBefore'];if(!_0x17701e||!_0x17701e['is']('element','title-content'))continue;if(!_0x375f81['start']['isTouching'](_0x375f81['end']))continue;const _0x458a7a=_0x3776d2['model']['schema']['getNearestSelectionRange'](_0x375f81['end'],'forward');if(_0x458a7a&&_0x458a7a['isCollapsed']){const _0x3b36af=_0xbff050['createRange'](_0x375f81['start'],_0x458a7a['start']);_0x3b36af['isEqual'](_0x375f81)||(_0xbff050['updateMarker'](_0x5df4cb,{'range':_0x3b36af}),_0x43faf1=!0x0);}_0x43faf1||(_0xbff050['removeMarker'](_0x5df4cb),_0x43faf1=!0x0);}return _0x43faf1;});}}class Nt extends _0x4d32e5{['afterInit'](){const _0x1bca1e=this['editor'],_0x2639e7=_0x1bca1e['plugins']['get']('TrackChangesEditing');_0x1bca1e['plugins']['has']('UndoEditing')&&(_0x2639e7['enableCommand']('undo'),_0x2639e7['enableCommand']('redo'));}}class Mt extends _0x4d32e5{static get['requires'](){return[jt];}['afterInit'](){const _0x5424d6=this['editor'];if(!_0x5424d6['plugins']['has']('TableCaptionEditing'))return;_0x5424d6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4d32e5{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x159eab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x142d21 of this['tableProperties'])_0x159eab['enableCommand'](_0x142d21,(_0x1d68a8,_0x4076b1)=>{const _0x319d47=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x142d21,[_0x319d47],this['tableProperties'],'tableProperties',_0x1d68a8,_0x4076b1);});_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x159eab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c62d9,_0x3634dc)=>this['handleDiscardAction'](this['tableProperties'],_0x2c62d9,_0x3634dc)),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f659c of this['tableCellProperties'])_0x159eab['enableCommand'](_0x1f659c,(_0x1ab390,_0x5dc014)=>{const _0x5a253d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f659c,_0x5a253d,this['tableCellProperties'],'tableCellProperties',_0x1ab390,_0x5dc014);});_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x159eab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5ec5ff,_0x4aa1cb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5ec5ff,_0x4aa1cb)),_0x159eab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x159eab['descriptionFactory']['registerDescriptionCallback'](_0x59fee9=>this['handleSuggestionDescription'](_0x59fee9));}['_handlePropertyChange'](_0xfe8f3,_0x9bd429,_0x53e6e6,_0x2ffeb3,_0x32e3bc,_0x30d10a){const _0x1a2c55=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30d10a['batch'],()=>{for(const _0x17f847 of _0x9bd429){if(this['_getSuggestion'](_0x17f847,_0x2ffeb3))_0x32e3bc(_0x30d10a);else{const _0x5adcd8={};for(const _0x5a2aee of _0x53e6e6){const _0x19c50a=_0x17f847['getAttribute'](_0x5a2aee);void 0x0!==_0x19c50a&&(_0x5adcd8[_0x5a2aee]=_0x19c50a);}_0x32e3bc(_0x30d10a),_0x1a2c55['markBlockFormat'](_0x17f847,{'commandParams':[_0x5adcd8]},[],_0x2ffeb3);}}});}['handleDiscardAction'](_0x208644,_0x1934f4,_0x1e0de4){const _0x4ce08a=_0x1934f4[0x0]['start']['nodeAfter'],_0x4b4bad=_0x1e0de4['commandParams'][0x0];this['editor']['model']['change'](_0x200572=>{for(const _0x520653 of _0x208644)void 0x0!==_0x4b4bad[_0x520653]?_0x200572['setAttribute'](_0x520653,_0x4b4bad[_0x520653],_0x4ce08a):_0x200572['removeAttribute'](_0x520653,_0x4ce08a);});}['handleSuggestionDescription'](_0x1bfb5a){if(_0x1bfb5a['data'])switch(_0x1bfb5a['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'](_0x4db08d,_0x58bae5){const _0x2f8ab9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x598448 of _0x2f8ab9['getSuggestions']({'skipNotAttached':!0x0})){const _0x537661=_0x598448['getContainedElement']();if(_0x598448['subType']===_0x58bae5&&_0x537661===_0x4db08d)return _0x598448;}return null;}constructor(_0x3f4e5c){super(_0x3f4e5c),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 _0x4d32e5{static get['requires'](){return['CommentsRepository',_0x1c067c,_0x3c234e,E,V,U,O,G,F,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';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x22fbdc=this['editor'],_0x8b7d4=(_0x16c615,_0x4ae857)=>{if('attribute'!=_0x16c615)return'ck-suggestion-marker-'+_0x16c615;const _0x4883e6=_0x4ae857['split']('|')[0x0];return this['_isBlockAttribute'](_0x4883e6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x22fbdc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f6310=>{const {id:_0x573332,type:_0xf7ed11,subType:_0x49ffb5}=this['_splitMarkerName'](_0x1f6310['markerName']),_0x1d77f2=['ck-suggestion-marker',_0x8b7d4(_0xf7ed11,_0x49ffb5)];let _0x432588=0xbb8;return this['activeMarkers']['includes'](_0x1f6310['markerName'])&&(_0x1d77f2['push']('ck-suggestion-marker--active'),_0x432588=0xbc2),'deletion'==_0xf7ed11&&(_0x432588+=0x5),{'classes':_0x1d77f2,'attributes':{'data-suggestion':_0x573332},'priority':_0x432588};}}),_0x22fbdc['conversion']['for']('dataDowncast')['add'](_0x45b0fb=>{_0x45b0fb['on']('addMarker:suggestion',(_0x42eb21,_0xdd2ac9,_0xde4fe6)=>{if(!_0xde4fe6['options']['showSuggestionHighlights'])return;const _0x4f71f8=_0xdd2ac9['item'];if(!_0x4f71f8)return;const _0x44a096=_0xde4fe6['mapper']['toViewElement'](_0x4f71f8);_0x22fbdc['model']['schema']['isObject'](_0x4f71f8)&&_0x44a096&&!_0x44a096['getCustomProperty']('widget')&&_0x44a096['is']('containerElement')&&_0x3d1709(_0x44a096,_0xde4fe6['writer']);},{'priority':'high'});}),_0x22fbdc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5756df,_0x29fc07)=>{if(!_0x29fc07['options']['showSuggestionHighlights'])return null;const {type:_0x44c5fb,subType:_0x1e0bd4}=this['_splitMarkerName'](_0x5756df['markerName']);return{'classes':['ck-suggestion-marker',_0x8b7d4(_0x44c5fb,_0x1e0bd4)],'priority':0xbb8};}});const _0x2ed414=({showActiveMarkers:_0xb50abe=!0x0,isAttributeSuggestion:_0x3aceaf=!0x1}={})=>(_0x3e634d,_0x724c57,_0x1f4d85)=>{if(!_0x724c57['item'])return;const {id:_0x2af509}=this['_splitMarkerName'](_0x724c57['markerName']);if(_0x3aceaf){const _0x175752=this['_suggestions']['get'](_0x2af509),_0x3f20b7=this['_getAttributeKey'](_0x175752);if(!this['_isBlockAttribute'](_0x3f20b7))return;}if(_0x724c57['item']['is']('selection'))return void _0x1f4d85['consumable']['consume'](_0x724c57['item'],_0x3e634d['name']);const _0x565440=_0x1f4d85['mapper']['toViewElement'](_0x724c57['item']);if(_0x724c57['item']['is']('element')&&_0x22fbdc['model']['schema']['isBlock'](_0x724c57['item'])&&!_0x565440['getCustomProperty']('addHighlight')){_0x1f4d85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x565440),_0x1f4d85['writer']['setAttribute']('data-suggestion',_0x2af509,_0x565440),_0x1f4d85['mapper']['bindElementToMarker'](_0x565440,_0x724c57['markerName']),_0xb50abe&&(this['activeMarkers']['includes'](_0x724c57['markerName'])?_0x1f4d85['writer']['addClass']('ck-suggestion-marker--active',_0x565440):_0x1f4d85['writer']['removeClass']('ck-suggestion-marker--active',_0x565440));for(const _0x2b886a of _0x22fbdc['model']['createRangeIn'](_0x724c57['item'])['getItems']())_0x1f4d85['consumable']['consume'](_0x2b886a,_0x3e634d['name']);_0x1f4d85['consumable']['consume'](_0x724c57['item'],_0x3e634d['name']);}};_0x22fbdc['conversion']['for']('dataDowncast')['add'](_0x29e0d9=>{_0x29e0d9['on']('addMarker:suggestion:formatBlock',(_0x5c038f,_0x17f55c,_0x42dc00)=>{_0x42dc00['options']['showSuggestionHighlights']&&_0x2ed414({'showActiveMarkers':!0x1})(_0x5c038f,_0x17f55c,_0x42dc00);},{'priority':'highest'});}),_0x22fbdc['conversion']['for']('dataDowncast')['add'](_0xe44a5e=>{_0xe44a5e['on']('addMarker:suggestion:attribute',(_0x24d37b,_0x33fa3e,_0x951cc5)=>{_0x951cc5['options']['showSuggestionHighlights']&&_0x2ed414({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x24d37b,_0x33fa3e,_0x951cc5);},{'priority':'highest'});}),_0x22fbdc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24196b,_0x3f8555)=>_0x3f8555['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x24196b['substr'](0xb)}}),_0x22fbdc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ab321,{writer:_0x48ebaf})=>{let _0x4c778c='suggestion:'+_0x3ab321['getAttribute']('suggestion-type')+':'+_0x3ab321['getAttribute']('id');return _0x3ab321['getAttribute']('marker-count')&&(_0x4c778c+=':'+_0x3ab321['getAttribute']('marker-count')),_0x48ebaf['createElement']('$marker',{'data-name':_0x4c778c});}}),_0x22fbdc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0x4d8994=>{_0x4d8994['on']('addMarker:suggestion:formatBlock',_0x2ed414(),{'priority':'high'});}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0x35242f=>{_0x35242f['on']('addMarker:suggestion:attribute',_0x2ed414({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0x5b2e0b=>{_0x5b2e0b['on']('removeMarker:suggestion:formatBlock',(_0x4e4887,_0x3d33ce,_0x2d78a7)=>{const _0xc1d480=_0x2d78a7['mapper']['markerNameToElements'](_0x3d33ce['markerName']);if(_0xc1d480){for(const _0x362d20 of _0xc1d480)_0x362d20['getCustomProperty']('addHighlight')||(_0x2d78a7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x362d20),_0x2d78a7['writer']['removeAttribute']('data-suggestion',_0x362d20),_0x2d78a7['mapper']['unbindElementFromMarkerName'](_0x362d20,_0x3d33ce['markerName']));}},{'priority':'high'});}),_0x22fbdc['conversion']['for']('editingDowncast')['add'](_0xa2da27=>{_0xa2da27['on']('removeMarker:suggestion:attribute',(_0x31ba55,_0x1b319b,_0x1690dd)=>{const _0x1eab13=_0x1690dd['mapper']['markerNameToElements'](_0x1b319b['markerName']);if(!_0x1eab13)return;const {id:_0x1ce151}=this['_splitMarkerName'](_0x1b319b['markerName']),_0x2b9a27=this['_suggestions']['get'](_0x1ce151),_0x2609d7=this['_getAttributeKey'](_0x2b9a27);if(this['_isBlockAttribute'](_0x2609d7)){for(const _0x28f756 of _0x1eab13)_0x28f756['getCustomProperty']('addHighlight')||(_0x1690dd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28f756),_0x1690dd['writer']['removeAttribute']('data-suggestion',_0x28f756),_0x1690dd['mapper']['unbindElementFromMarkerName'](_0x28f756,_0x1b319b['markerName']));}},{'priority':'high'});}),_0x22fbdc['model']['document']['registerPostFixer'](_0x424210=>{let _0x21fd6e=!0x1;const _0x413f24=Array['from'](_0x22fbdc['model']['document']['differ']['getChangedMarkers']()),_0x18da5b=new Set();for(const {name:_0x51d5d0,data:_0x3823a6}of _0x413f24){const {group:_0xce70fe,type:_0x1374c2,subType:_0x1814cc,id:_0x2df5bd}=this['_splitMarkerName'](_0x51d5d0);if('suggestion'!==_0xce70fe)continue;const _0x5a3bdc=this['_suggestions']['get'](_0x2df5bd);if(null!=_0x3823a6['newRange']){'formatInline'==_0x1374c2&&(_0x21fd6e=_0x21fd6e||Et(_0x3823a6['newRange'],_0x51d5d0,_0x424210,_0x22fbdc['model']['schema']));const _0x2ba18e='attribute'==_0x1374c2&&this['_isBlockAttribute'](_0x1814cc['split']('|')[0x0]);if(_0x3823a6['newRange']['isCollapsed']||'$graveyard'==_0x3823a6['newRange']['root']['rootName']||'formatBlock'==_0x1374c2&&!Ut(_0x3823a6['newRange'])||_0x2ba18e&&!Ut(_0x3823a6['newRange'])||'deletion'==_0x1374c2&&!(!Tt(_0x448bc2=_0x3823a6['newRange'])&&!function(_0x1a7dce){return _0x1a7dce['start']['parent']==_0x1a7dce['end']['nodeBefore']&&_0x1a7dce['start']['isAtEnd'];}(_0x448bc2)))_0x424210['removeMarker'](_0x51d5d0),_0x21fd6e=!0x0;else{if(!_0x5a3bdc||!_0x5a3bdc['isInContent'])continue;_0x18da5b['add'](_0x5a3bdc);}}}var _0x448bc2;return _0x18da5b['size']>0x0&&(_0x21fd6e=!!this['_joinWithAdjacentSuggestions'](_0x18da5b)||_0x21fd6e),_0x21fd6e;}),_0x22fbdc['model']['document']['registerPostFixer'](_0x449ba8=>{let _0x2adf65=!0x1;for(const _0x48f3ea of _0x22fbdc['model']['document']['differ']['getChanges']())if('insert'==_0x48f3ea['type'])for(const _0x41d432 of this['_suggestions']['values']()){if(_0x41d432['isMultiRange']||!_0x41d432['isInContent'])continue;const _0x57631f='formatBlock'==_0x41d432['type'],_0xcf4bba=this['_getAttributeKey'](_0x41d432),_0x2ae068=_0xcf4bba&&this['_isBlockAttribute'](_0xcf4bba);if(!_0x57631f&&!_0x2ae068)continue;const _0xddc4a7=_0x41d432['getFirstRange']();if(_0xddc4a7['start']['parent']!=_0xddc4a7['end']['parent']&&!_0xddc4a7['end']['isAtEnd']){const _0x2b7daf=_0x22fbdc['model']['createPositionAt'](_0xddc4a7['start']['nodeAfter'],'end'),_0x4eecaf=_0x22fbdc['model']['createRange'](_0xddc4a7['start'],_0x2b7daf);_0x449ba8['updateMarker'](_0x41d432['getFirstMarker'](),{'range':_0x4eecaf}),_0x2adf65=!0x0;}}return _0x2adf65;}),_0x22fbdc['model']['document']['registerPostFixer'](_0x1cc5f7=>this['_processAttributeChanges'](_0x1cc5f7)),_0x22fbdc['model']['document']['registerPostFixer'](_0x35267f=>!_0x35267f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x35267f)),_0x22fbdc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x22fbdc['model']['document']['on']('change:data',(_0x4356a2,_0xdf3c23)=>{if(!_0xdf3c23['isLocal']||_0xdf3c23['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x28a8d8=_0x22fbdc['model']['document']['differ']['getChanges']();if(0x0==_0x28a8d8['length'])return;const _0x2308ce=[],_0x5c3698=_0x28a8d8['filter'](_0x5d159f=>'attribute'==_0x5d159f['type']),_0x32b1a1=_0x28a8d8['filter'](_0x11c6e7=>'insert'==_0x11c6e7['type']&&'$text'!=_0x11c6e7['name']),_0x4b8018=_0x28a8d8['filter'](_0xc8a688=>'remove'==_0xc8a688['type']&&'$text'!=_0xc8a688['name']);for(const _0x3ac369 of _0x5c3698)this['_isRegisteredAttribute'](_0x3ac369['attributeKey'])&&_0x2308ce['push']({'key':_0x3ac369['attributeKey'],'newValue':_0x3ac369['attributeNewValue'],'oldValue':_0x3ac369['attributeOldValue'],'range':Ot(_0x3ac369['range'],_0x22fbdc['model'])});for(const _0x42d14f of _0x32b1a1){const _0x52d54a=_0x4b8018['find'](_0xf0f922=>_0xf0f922['_element']===_0x42d14f['_element']);if(_0x52d54a){const _0xb67a3f=Ft(_0x42d14f['position']['nodeAfter'],_0x22fbdc['model']);_0x52d54a['name']!==_0x42d14f['name']&&_0x2308ce['push']({'key':m,'newValue':_0x42d14f['name'],'oldValue':_0x52d54a['name'],'range':_0xb67a3f});for(const [_0x4208a3,_0xd36e14]of _0x52d54a['attributes']){if(!this['_isRegisteredAttribute'](_0x4208a3))continue;const _0x5c9a0e=_0x42d14f['attributes']['get'](_0x4208a3);_0xd36e14!==_0x5c9a0e&&_0x2308ce['push']({'key':_0x4208a3,'newValue':_0x5c9a0e,'oldValue':_0xd36e14,'range':_0xb67a3f});}for(const [_0x67320,_0x522127]of _0x42d14f['attributes'])this['_isRegisteredAttribute'](_0x67320)&&(_0x52d54a['attributes']['has'](_0x67320)||_0x2308ce['push']({'key':_0x67320,'newValue':_0x522127,'oldValue':null,'range':_0xb67a3f}));}}0x0!=_0x2308ce['length']&&_0x22fbdc['model']['enqueueChange'](_0xdf3c23,_0x3ff9df=>{const _0x5e7df7=_0x51245d();for(const {range:_0x4ba628,key:_0x564a8f,oldValue:_0x3ec5e0,newValue:_0x33c219}of _0x2308ce)this['markAttributeChange'](_0x4ba628,_0x564a8f,_0x3ec5e0,_0x33c219,{'groupId':_0x5e7df7});this['_reduceExistingSuggestions'](_0x3ff9df,_0x2308ce);});},{'priority':'lowest'}),_0x22fbdc['model']['markers']['on']('update:suggestion',(_0x1746ea,_0x44bb8d,_0xf2b130)=>{if(null==_0xf2b130){const {id:_0x1a87d8}=this['_splitMarkerName'](_0x44bb8d['name']),_0x445260=this['_suggestions']['get'](_0x1a87d8);_0x445260&&_0x445260['addMarkerName'](_0x44bb8d['name']);}}),_0x22fbdc['model']['document']['on']('change:data',()=>{const _0x1fffc2=Array['from'](_0x22fbdc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a912a=>'suggestion'===this['_splitMarkerName'](_0x1a912a['name'])['group']);if(0x0===_0x1fffc2['length'])return;_0x1fffc2['sort']((_0x20c020,_0x5c241c)=>{const _0x1be23c=_0x20c020['data']['oldRange'],_0x28943a=_0x5c241c['data']['oldRange'];return null===_0x1be23c&&null===_0x28943a?0x0:null===_0x1be23c&&null!==_0x28943a?-0x1:null!==_0x1be23c&&null===_0x28943a?0x1:_0x1be23c['start']['isBefore'](_0x28943a['start'])?-0x1:0x1;});const _0x2861d3=new Set(),_0x56b814=new Set();for(const {name:_0x7da291,data:_0x501a79}of _0x1fffc2){const {id:_0x1a63b0}=this['_splitMarkerName'](_0x7da291);if(null===_0x501a79['oldRange']){const _0x2d2a54=this['_handleNewSuggestionMarker'](_0x7da291);_0x56b814['add'](_0x2d2a54);}else{const _0x3af356=this['_suggestions']['get'](_0x1a63b0);null!==_0x501a79['newRange']||_0x3af356['isInContent']?(_0x2861d3['add'](_0x3af356['head']),_0x56b814['add'](_0x3af356)):this['_removeSuggestion'](_0x3af356);}}_0x56b814['size']>0x0&&this['_refreshSuggestionsChain'](_0x56b814);for(const _0x4635b9 of _0x2861d3)this['fire']('suggestionChanged',_0x4635b9);}),_0x22fbdc['model']['on']('applyOperation',(_0x1b946d,_0x59ca84)=>{const _0x3990c1=_0x59ca84[0x0];if(!this['_suggestions']['size'])return;if(!_0x3990c1['isDocumentOperation'])return;if(_0x3990c1['batch']['isUndo']||!_0x3990c1['batch']['isLocal'])return;let _0x3b00cb,_0x1c1c48;switch(_0x3990c1['type']){case'insert':_0x3b00cb=_0x22fbdc['model']['createPositionAt'](_0x3990c1['position']),_0x1c1c48=_0x3b00cb['getShiftedBy'](_0x3990c1['howMany']);break;case'split':_0x3b00cb=_0x22fbdc['model']['createPositionAt'](_0x3990c1['splitPosition']),_0x1c1c48=_0x22fbdc['model']['createPositionAt'](_0x3990c1['moveTargetPosition']);break;case'move':_0x3b00cb=_0x22fbdc['model']['createPositionAt'](_0x3990c1['targetPosition']),_0x1c1c48=_0x3b00cb['getShiftedBy'](_0x3990c1['howMany']);break;default:return;}const _0x358df8=_0x22fbdc['model']['createRange'](_0x3b00cb,_0x1c1c48);_0x22fbdc['model']['change'](()=>{for(const {suggestion:_0x551944,meta:_0x408268}of this['_findSuggestions'](_0x358df8)){if(_0x551944['isMultiRange'])continue;if('formatInline'==_0x551944['type'])continue;const _0x87d935=this['_getAttributeKey'](_0x551944);if(_0x87d935&&this['_isBlockAttribute'](_0x87d935)&&'split'!=_0x3990c1['type'])continue;const _0x3e0b62=_0x551944['data']&&_0x551944['data']['multipleBlocks'];('formatBlock'!=_0x551944['type']||'split'==_0x3990c1['type']&&!_0x3e0b62)&&(_0x408268['containsRangeInObject']||'insertion'==_0x551944['type']&&_0x408268['isOwn']||_0x551944['getFirstRange']()['containsRange'](_0x358df8)&&this['_breakSuggestionMarker'](_0x551944,_0x3b00cb,_0x1c1c48));}});},{'priority':'lowest'}),_0x22fbdc['model']['on']('deleteContent',(_0x2b3ca5,_0x1e4c07)=>{const _0x466e42=_0x1e4c07[0x0],_0x2804dc=_0x1e4c07[0x1];if(_0x2804dc&&_0x2804dc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x466e42['isCollapsed'])return;const _0x3186dd=_0x22fbdc['model']['schema'],{start:_0xd46d5c,end:_0x17f171}=_0x466e42['getFirstRange'](),_0x333ea5=_0xd46d5c['nodeAfter']&&_0x3186dd['isLimit'](_0xd46d5c['nodeAfter'])?null:_0x3186dd['getNearestSelectionRange'](_0xd46d5c,'forward'),_0x2fe12a=_0x17f171['nodeBefore']&&_0x3186dd['isLimit'](_0x17f171['nodeBefore'])?null:_0x3186dd['getNearestSelectionRange'](_0x17f171,'backward'),_0x2f76da=_0x22fbdc['model']['createRange'](_0x333ea5?_0x333ea5['start']:_0xd46d5c,_0x2fe12a?_0x2fe12a['end']:_0x17f171);_0x22fbdc['model']['change'](_0xd7e083=>{this['markDeletion'](_0x2f76da);const _0x18a0fa=_0x22fbdc['model']['schema']['getNearestSelectionRange'](_0x2f76da['start']);_0x466e42['is']('documentSelection')?_0xd7e083['setSelection'](_0x18a0fa):_0x466e42['setTo'](_0x18a0fa);}),_0x2b3ca5['stop']();},{'priority':_0x110481['normal']+0xa}),_0x22fbdc['model']['on']('insertContent',(_0x49b4bc,_0x488006)=>{const _0x786bae=_0x488006[_0x488006['length']-0x1];_0x786bae&&_0x786bae['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x22fbdc['model']['change'](()=>{let _0x120b6d=_0x22fbdc['model']['insertContent'](_0x488006[0x0],_0x488006[0x1],_0x488006[0x2],{'forceDefaultExecution':!0x0});if(!_0x120b6d)return;_0x49b4bc['return']=_0x120b6d['clone']();const _0x487765=_0x120b6d['end']['nodeBefore'],_0xbb9075=_0x22fbdc['model']['schema'];_0x487765&&_0xbb9075['isBlock'](_0x487765)&&!_0xbb9075['isObject'](_0x487765)&&(_0x120b6d=_0x22fbdc['model']['createRange'](_0x120b6d['start'],_0x22fbdc['model']['createPositionAt'](_0x487765,'end'))),this['markInsertion'](_0x120b6d);}),_0x49b4bc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x29d5ec=new $(_0x22fbdc,this['_suggestions']);_0x22fbdc['commands']['add']('acceptSuggestion',_0x29d5ec),this['enableCommand']('acceptSuggestion');const _0xbed954=new B(_0x22fbdc,this['_suggestions']);_0x22fbdc['commands']['add']('discardSuggestion',_0xbed954),this['enableCommand']('discardSuggestion'),_0x22fbdc['commands']['add']('acceptAllSuggestions',new x(_0x22fbdc,_0x29d5ec,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x22fbdc['commands']['add']('discardAllSuggestions',new x(_0x22fbdc,_0xbed954,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x22fbdc['commands']['add']('acceptSelectedSuggestions',new R(_0x22fbdc,_0x29d5ec,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x22fbdc['commands']['add']('discardSelectedSuggestions',new R(_0x22fbdc,_0xbed954,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xffaf91=_0x22fbdc['plugins']['get']('CommentsRepository');this['listenTo'](_0xffaf91,'addComment',(_0x490d08,{threadId:_0x386666})=>{const _0x5e48b5=this['_suggestions']['get'](_0x386666);_0x5e48b5&&_0x5e48b5['commentThread']&&0x1===_0x5e48b5['commentThread']['length']&&this['_updateSuggestionData'](_0x386666,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xffaf91,'removeComment',(_0x5a7218,{threadId:_0x5b151a})=>{const _0x693779=this['_suggestions']['get'](_0x5b151a);_0x693779&&_0x693779['commentThread']&&!_0x693779['commentThread']['length']&&this['_updateSuggestionData'](_0x5b151a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x18c427){if(this['_adapter'])throw new _0x4926cb('track-changes-adapter-already-set',this);this['_adapter']=_0x18c427;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33fa41=!0x1,toJSON:_0x37e2d1=!0x1}={}){const _0x345eb8=[];for(const _0x4e278f of this['_suggestions']['values']())_0x33fa41&&!_0x4e278f['isInContent']||_0x345eb8['push'](_0x4e278f);return _0x37e2d1?_0x345eb8['map'](_0x1bec41=>_0x1bec41['toJSON']()):_0x345eb8;}['getSuggestion'](_0x300d19){const _0x898426=this['_suggestions']['get'](_0x300d19);if(!_0x898426)throw new _0x4926cb('track-changes-suggestion-not-found',this);return _0x898426;}['hasSuggestion'](_0x206eb5){return this['_suggestions']['has'](_0x206eb5);}['addSuggestionData'](_0x3bf48a){const {authorId:_0xde7cf1,id:_0x5dfb55,attributes:_0x509477}=_0x3bf48a,[_0x5bc596,_0x2b1ce6]=_0x3bf48a['type']['split'](':'),_0x43e334=this['_suggestions']['get'](_0x5dfb55)||this['_createSuggestion'](_0x5bc596,_0x2b1ce6,_0x5dfb55,_0xde7cf1,_0x509477);if(this['_addThreadToSuggestion'](_0x43e334),this['_checkSuggestionCorrectness'](_0x43e334,_0x5bc596,_0x2b1ce6||null,_0xde7cf1),_0x43e334['createdAt']=_0x3bf48a['createdAt'],_0x43e334['_isDataLoaded']=!0x0,_0x509477&&_0x509477['@external']){const _0x53afcc=_0x509477['@external'],_0x5ef778=this['_getExternalAuthor'](_0x53afcc['authorName']);_0x43e334['authoredAt']=_0x53afcc['createdAt'],_0x43e334['author']=_0x5ef778,_0x43e334['isExternal']=!0x0;}else _0x43e334['authoredAt']=_0x3bf48a['createdAt'];switch(_0x3bf48a['data']&&(_0x43e334['data']=_0x3bf48a['data']),_0x3bf48a['attributes']&&(_0x43e334['attributes']=_0x3bf48a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43e334['_saved']=!0x0),this['_suggestionState']['get'](_0x43e334)){case'notReady':this['_suggestionState']['set'](_0x43e334,'dataReady');break;case'markerReady':_0x43e334['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43e334])),this['_refreshSuggestionsChain'](new Set([_0x43e334])),this['_suggestionState']['set'](_0x43e334,'ready'),this['fire']('suggestionLoaded',_0x43e334)):this['_suggestionState']['set'](_0x43e334,'removed');}return _0x43e334;}['acceptSuggestion'](_0x203d6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x485890 of _0x203d6f['getAllAdjacentSuggestions']())_0x485890['accept']();});});}['discardSuggestion'](_0x4b39dd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c3119 of _0x4b39dd['getAllAdjacentSuggestions']())_0x1c3119['discard']();});});}['enableCommand'](_0x42b48c,_0x14a45c){const _0x302d4d=this['editor']['commands']['get'](_0x42b48c);if(!_0x302d4d)throw new _0x4926cb('track-changes-command-not-found',this,{'commandName':_0x42b48c});if(this['_enabledCommands']['has'](_0x302d4d))throw new _0x4926cb('track-changes-enable-command-twice',this,{'commandName':_0x42b48c});this['_enabledCommands']['add'](_0x302d4d),_0x14a45c&&_0x302d4d['on']('execute',(_0x454786,_0x28919c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x28919c['length']>0x0&&_0x28919c[_0x28919c['length']-0x1]&&_0x28919c[_0x28919c['length']-0x1]['forceDefaultExecution']?_0x28919c['pop']():(_0x454786['return']=_0x14a45c((..._0x1cce26)=>_0x302d4d['execute'](..._0x1cce26,{'forceDefaultExecution':!0x0}),..._0x28919c),_0x454786['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ba89d){let _0x37380a,_0x5847fe;const _0x3fb5f8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37380a=_0x2ba89d();}catch(_0x195fef){_0x5847fe=_0x195fef;}return _0x3fb5f8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5847fe&&_0x4926cb['rethrowUnexpectedError'](_0x5847fe,this),_0x37380a;}['markInsertion'](_0x3447a2,_0x2fbb1c=null,_0xd12f02={}){if(_0x3447a2['isCollapsed'])return null;const _0x5d671b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x466254,meta:_0x4cbaca}of this['_findSuggestions'](_0x3447a2,'insertion'))if(_0x4cbaca['isOwn']){if(!_0x4cbaca['isNextTo']){if(_0x4cbaca['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x466254,_0xd12f02))continue;return _0x466254;}if(Lt(_0x466254,_0xd12f02))return _0x466254;this['_breakSuggestionMarker'](_0x466254,_0x3447a2['start'],_0x3447a2['end']);break;}if(_0x2fbb1c==_0x466254['subType']&&Lt(_0x466254,_0xd12f02)){const _0x572dcd=_0x466254['getFirstRange']();return _0x572dcd['start']['isEqual'](_0x3447a2['end'])?this['_setSuggestionRange'](_0x466254,this['_model']['createRange'](_0x3447a2['start'],_0x572dcd['end'])):this['_setSuggestionRange'](_0x466254,this['_model']['createRange'](_0x572dcd['start'],_0x3447a2['end'])),_0x466254;}}const _0x321d44=_0x51245d(),_0x122c00=_0x5d671b['id'],_0x5821fb=_0x2fbb1c?'insertion:'+_0x2fbb1c:'insertion',_0x4ef9fc=this['_setSuggestionData']({'id':_0x321d44,'type':_0x5821fb,'createdAt':new Date(),'authorId':_0x122c00,'attributes':_0xd12f02});return this['_addSuggestionMarker'](_0x5821fb,_0x321d44,_0x122c00,_0x3447a2),_0x4ef9fc;}['markMultiRangeInsertion'](_0x33cbcd,_0x2cbdb8='multi',_0x2cdef4={}){const _0x3689fa=this['editor']['plugins']['get']('Users')['me'],_0x3cc60a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2cbdb8,'join');for(const _0x3cfaa4 of this['getSuggestions']())if(_0x3cfaa4['author']['id']==_0x3689fa['id']&&'insertion'==_0x3cfaa4['type']&&_0x3cfaa4['subType']==_0x2cbdb8&&Lt(_0x3cfaa4,_0x2cdef4)&&(_0x3cc60a(_0x3cfaa4['getRanges'](),_0x33cbcd)||_0x3cc60a(_0x33cbcd,_0x3cfaa4['getRanges']()))){for(const _0x54f7e9 of _0x33cbcd)_0x3cfaa4['addRange'](_0x54f7e9);return _0x3cfaa4;}for(const {suggestion:_0x4244a0,meta:_0x464dce}of this['_findSuggestions'](_0x33cbcd,'insertion')){if(!_0x464dce['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x464dce['containsRangeInObject'])continue;if(!Lt(_0x4244a0,_0x2cdef4))continue;let _0x25f8d9=!0x0;for(const _0x24493a of _0x4244a0['getRanges']())for(const _0x1968a9 of _0x33cbcd)if(!_0x24493a['containsRange'](_0x1968a9)){_0x25f8d9=!0x1;break;}if(_0x25f8d9)return _0x4244a0;}const _0x1901f9=_0x51245d(),_0x5efa3b=_0x3689fa['id'],_0x45454c='insertion:'+_0x2cbdb8,_0x3b481a=this['_setSuggestionData']({'id':_0x1901f9,'type':_0x45454c,'createdAt':new Date(),'authorId':_0x5efa3b,'attributes':_0x2cdef4});for(const _0x4a19a3 of _0x33cbcd)this['_addSuggestionMarker'](_0x45454c,_0x1901f9,_0x5efa3b,_0x4a19a3,u['getMultiRangeId']());return _0x3b481a;}['markInlineFormat'](_0x3b2266,_0x18e5b6,_0x229e8a=null,_0x1f9df4={}){if(_0x229e8a=_0x229e8a||Vt(_0x18e5b6),_0x3b2266['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x8fcbd6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x229e8a,'accept');return this['forceDefaultExecution'](()=>_0x8fcbd6([_0x3b2266],_0x18e5b6,_0x1f9df4)),null;}const _0x4efc4b=this['editor']['plugins']['get']('Users')['me'],_0x41040b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3240ba,meta:_0xe1ac94}of this['_findSuggestions'](_0x3b2266,'insertion'))_0xe1ac94['isOwn']&&!_0xe1ac94['isInsideObject']&&_0x41040b['push'](..._0x3240ba['getRanges']());}const _0x3a2e71=function(_0x5cc320,_0x413649){const _0x110f1f=[];for(const _0x261327 of _0x413649){const _0x3b22c=_0x5cc320['getIntersection'](_0x261327);_0x3b22c&&_0x110f1f['push'](_0x3b22c);}return _0x110f1f;}(_0x3b2266,_0x41040b),_0x124a3e=function(_0x235996,_0x1ba1cf){const _0x3837b9=[_0x235996];for(const _0x4d5d60 of _0x1ba1cf){let _0x3f1908=0x0;for(;_0x3f1908<_0x3837b9['length'];){const _0x39d9f8=_0x3837b9[_0x3f1908]['getDifference'](_0x4d5d60);_0x3837b9['splice'](_0x3f1908,0x1,..._0x39d9f8),_0x3f1908+=_0x39d9f8['length'];}}return _0x3837b9;}(_0x3b2266,_0x41040b);_0x3a2e71['length']&&this['_model']['change'](()=>{for(const _0x3bcab4 of _0x3a2e71){const _0x56920b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x229e8a,'accept');this['forceDefaultExecution'](()=>_0x56920b([_0x3bcab4],_0x18e5b6,_0x1f9df4));}});for(const _0x14691a of _0x124a3e){let _0x2eed92=null,_0x4ece72=_0x14691a['start'],_0x1a447b=_0x14691a['end'];for(const {suggestion:_0x208701,meta:_0x3f53a7}of this['_findSuggestions'](_0x14691a,'formatInline')){if(!_0x3f53a7['isOwn'])continue;if(_0x208701['subType']!=_0x229e8a)continue;if(!Lt(_0x208701,_0x1f9df4))continue;const _0x46187e=_0x208701['getFirstRange']();if(_0x46187e['containsRange'](_0x14691a,!0x0))return null;_0x4ece72=_0x4ece72['isBefore'](_0x46187e['start'])?_0x4ece72:_0x46187e['start'],_0x1a447b=_0x1a447b['isAfter'](_0x46187e['end'])?_0x1a447b:_0x46187e['end'],_0x2eed92?_0x46187e['start']['isBefore'](_0x2eed92['getFirstRange']()['start'])?(_0x2eed92['removeMarkers'](),_0x2eed92=_0x208701):_0x208701['removeMarkers']():_0x2eed92=_0x208701;}const _0x4d1c3e=this['_model']['createRange'](_0x4ece72,_0x1a447b);if(_0x2eed92)this['_setSuggestionRange'](_0x2eed92,_0x4d1c3e);else{const _0x2f2963=_0x51245d(),_0x53e5f1=_0x4efc4b['id'];this['_setSuggestionData']({'id':_0x2f2963,'type':'formatInline:'+_0x229e8a,'data':_0x18e5b6,'createdAt':new Date(),'authorId':_0x53e5f1,'attributes':_0x1f9df4}),this['_addSuggestionMarker']('formatInline:'+_0x229e8a,_0x2f2963,_0x53e5f1,_0x4d1c3e);}}return null;}['markBlockFormat'](_0x3c4b53,_0x3a23f7,_0x4a4d10=[],_0x365e32=null,_0x5d4848={}){_0x3a23f7['formatGroupId']||(_0x3a23f7['formatGroupId']=_0x3a23f7['commandName']),_0x3a23f7['multipleBlocks']=_0x3c4b53['is']('range'),_0x365e32=_0x365e32||Vt(_0x3a23f7);const _0x3e3ff0=_0x4a4d10['map'](_0x4af29a=>Ft(_0x4af29a,this['_model'])),_0x4afbdc=_0x3c4b53['is']('range')?_0x3c4b53:Ft(_0x3c4b53,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4961b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x365e32,'accept');return this['forceDefaultExecution'](()=>_0x4961b8([_0x4afbdc],_0x3a23f7,_0x5d4848)),null;}_0x3e3ff0['push'](_0x4afbdc);let _0x35857e=!0x0;for(const _0x18e6ff of _0x3e3ff0)if(!this['_rangeIsInLocalUserInsertion'](_0x18e6ff)){_0x35857e=!0x1;break;}if(_0x35857e&&'always'!==this['_trackFormatChanges']){const _0x1cbdf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x365e32,'accept');return this['forceDefaultExecution'](()=>_0x1cbdf7([_0x4afbdc],_0x3a23f7,_0x5d4848)),null;}let _0x4a405d=null,_0x5c963e=_0x4afbdc['start'],_0x502ef0=_0x4afbdc['end'];for(const {suggestion:_0x1df23d,meta:_0x3278da}of this['_findSuggestions'](_0x4afbdc,'formatBlock')){if(!_0x3278da['isOwn'])continue;if(_0x3278da['isNextTo']||_0x3278da['containsRangeInObject']||_0x3278da['isInsideObject'])continue;if(_0x1df23d['data']['formatGroupId']!=_0x3a23f7['formatGroupId'])continue;if(!Lt(_0x1df23d,_0x5d4848))continue;const _0xe0f36d=_0x1df23d['getFirstRange']();if(_0x1df23d['subType']==_0x365e32){if(_0xe0f36d['containsRange'](_0x4afbdc,!0x0))return null;_0x5c963e=_0x5c963e['isBefore'](_0xe0f36d['start'])?_0x5c963e:_0xe0f36d['start'],_0x502ef0=_0x502ef0['isAfter'](_0xe0f36d['end'])?_0x502ef0:_0xe0f36d['end'],_0x4a405d?_0xe0f36d['start']['isBefore'](_0x4a405d['getFirstRange']()['start'])?(_0x4a405d['removeMarkers'](),_0x4a405d=_0x1df23d):_0x1df23d['removeMarkers']():_0x4a405d=_0x1df23d;}else{const _0x35505d=_0x4afbdc['getIntersection'](_0xe0f36d);this['_cutOutSuggestionMarker'](_0x1df23d,_0x35505d);}}const _0x340418=this['editor']['plugins']['get']('Users')['me'],_0x4b13b0=_0x51245d(),_0x239979=_0x340418['id'];if(_0x4a405d)return this['_setSuggestionRange'](_0x4a405d,this['_model']['createRange'](_0x5c963e,_0x502ef0)),_0x4a405d;{const _0x4e5643=this['_setSuggestionData']({'id':_0x4b13b0,'type':'formatBlock:'+_0x365e32,'data':_0x3a23f7,'createdAt':new Date(),'authorId':_0x239979,'attributes':_0x5d4848});return this['_addSuggestionMarker']('formatBlock:'+_0x365e32,_0x4b13b0,_0x239979,this['_model']['createRange'](_0x5c963e,_0x502ef0)),_0x4e5643;}}['markMultiRangeBlockFormat'](_0x21453f,_0x2cb4a9,_0x19ebfa=[],_0x49318f=null,_0x1aec9e={}){_0x2cb4a9['formatGroupId']||(_0x2cb4a9['formatGroupId']=_0x2cb4a9['commandName']);const _0x49414e=_0x21453f[0x0];_0x2cb4a9['multipleBlocks']=_0x49414e['is']('range'),_0x49318f=_0x49318f||Vt(_0x2cb4a9);const _0x5026d6=_0x19ebfa['map'](_0x6039a0=>Ft(_0x6039a0,this['_model'])),_0xba52b4=_0x49414e['is']('range')?_0x21453f:_0x21453f['map'](_0x2263f4=>Ft(_0x2263f4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x49947f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49318f,'accept');return this['forceDefaultExecution'](()=>_0x49947f(_0xba52b4,_0x2cb4a9,_0x1aec9e)),null;}_0x5026d6['push'](..._0xba52b4);let _0x121e62=!0x0;for(const _0x493fe6 of _0x5026d6)if(!this['_rangeIsInLocalUserInsertion'](_0x493fe6)){_0x121e62=!0x1;break;}if(_0x121e62&&'always'!==this['_trackFormatChanges']){const _0x53ca32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49318f,'accept');return this['forceDefaultExecution'](()=>_0x53ca32(_0xba52b4,_0x2cb4a9,_0x1aec9e)),null;}const _0x50bd32=this['editor']['plugins']['get']('Users')['me'];for(const _0x131eea of this['getSuggestions']()){if(_0x131eea['author']['id']!=_0x50bd32['id'])continue;if('formatBlock'!=_0x131eea['type']||_0x131eea['data']['formatGroupId']!=_0x2cb4a9['formatGroupId'])continue;if(!Lt(_0x131eea,_0x1aec9e))continue;const _0x106075=_0x131eea['subType']==_0x49318f;for(let _0x1d9100=0x0;_0x1d9100<_0xba52b4['length'];_0x1d9100++){const _0x331b2a=_0xba52b4[_0x1d9100];for(const _0x5cdb15 of _0x131eea['getMarkers']()){const _0x50f881=_0x5cdb15['getRange']();if(_0x331b2a['isEqual'](_0x50f881)){_0x106075?(_0xba52b4['splice'](_0x1d9100,0x1),_0x1d9100--):_0x131eea['removeMarker'](_0x5cdb15['name']);break;}}}}if(0x0==_0xba52b4['length'])return null;const _0x4cb192=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49318f,'join');for(const _0x2723ad of this['getSuggestions']())if(_0x2723ad['author']['id']==_0x50bd32['id']&&'formatBlock'==_0x2723ad['type']&&_0x2723ad['data']['formatGroupId']==_0x2cb4a9['formatGroupId']&&_0x2723ad['subType']==_0x49318f&&Lt(_0x2723ad,_0x1aec9e)&&(_0x4cb192(_0x2723ad['getRanges'](),_0xba52b4)||_0x4cb192(_0xba52b4,_0x2723ad['getRanges']()))){for(const _0x3cebe3 of _0xba52b4)_0x2723ad['addRange'](_0x3cebe3);return _0x2723ad;}const _0x149aaa=_0x51245d(),_0x2d8a01=_0x50bd32['id'],_0x5590e6='formatBlock:'+_0x49318f,_0x3dbe0c=this['_setSuggestionData']({'id':_0x149aaa,'type':_0x5590e6,'data':_0x2cb4a9,'createdAt':new Date(),'authorId':_0x2d8a01,'attributes':_0x1aec9e});for(const _0x3d0e4c of _0xba52b4)this['_addSuggestionMarker'](_0x5590e6,_0x149aaa,_0x2d8a01,_0x3d0e4c,u['getMultiRangeId']());return _0x3dbe0c;}['markDeletion'](_0x12c385,_0x121096=null,_0x436002={}){if(_0x12c385['isCollapsed'])return null;const _0x16a219=this['editor']['plugins']['get']('Users')['me'],_0x77fb13=new _0x1ed262(_0x12c385['start'],_0x12c385['end']);for(const {suggestion:_0x3e9f65,meta:_0x4477c7}of this['_findSuggestions'](_0x77fb13,'insertion'))if(_0x4477c7['isOwn']&&!_0x4477c7['isNextTo']){if(_0x3e9f65['isMultiRange']){const _0x37b90b=_0x3e9f65['getRanges']()['filter'](_0x351899=>'$graveyard'!=_0x351899['root']['rootName']);_0x37b90b['every'](_0x2c6c18=>_0x77fb13['containsRange'](_0x2c6c18,!0x0))&&_0x3e9f65['discard']();if(_0x37b90b['some'](_0x24f7f3=>_0x24f7f3['containsRange'](_0x77fb13,!0x0))){const _0x884fd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121096,'accept');return this['forceDefaultExecution'](()=>_0x884fd2([_0x77fb13],null,_0x436002)),null;}}else{const _0x5a6345=_0x77fb13['getIntersection'](_0x3e9f65['getFirstRange']());null!==_0x5a6345&&_0x3e9f65['_onDiscard']([_0x5a6345],null,_0x436002);}}if(_0x77fb13['detach'](),_0x77fb13['isCollapsed']||'$graveyard'==_0x77fb13['root']['rootName'])return null;let _0x10fb7c=null,_0x3352e2=_0x77fb13['start'],_0xd018f7=_0x77fb13['end'];const _0x115f80=this['_findSuggestions'](_0x77fb13,'deletion');for(const {suggestion:_0x4cf883,meta:_0x37e742}of _0x115f80){const _0x2f427a=this['_model']['createRange'](_0x3352e2,_0xd018f7);if(_0x37e742['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37e742['containsRangeInObject']&&!_0x37e742['isInsideObject'])){if(_0x4cf883['isMultiRange']){if(!Lt(_0x4cf883,_0x436002))continue;let _0x5ed298=!0x0;for(const _0x269135 of _0x4cf883['getRanges']()){if(_0x269135['containsRange'](_0x2f427a,!0x0))return _0x4cf883;_0x2f427a['containsRange'](_0x269135)||(_0x5ed298=!0x1);}_0x5ed298&&_0x4cf883['discard']();}else{const _0x368311=_0x4cf883['getFirstRange']();if(_0x368311['containsRange'](_0x2f427a,!0x0))return _0x4cf883;if(!Lt(_0x4cf883,_0x436002)){_0x2f427a['containsRange'](_0x368311)?_0x4cf883['removeMarkers']():_0x368311['containsPosition'](_0x3352e2)?_0x3352e2=_0x368311['end']:_0x368311['containsPosition'](_0xd018f7)&&(_0xd018f7=_0x368311['start']);continue;}_0x3352e2=_0x3352e2['isBefore'](_0x368311['start'])?_0x3352e2:_0x368311['start'],_0xd018f7=_0xd018f7['isAfter'](_0x368311['end'])?_0xd018f7:_0x368311['end'],_0x436002=Object['assign']({},_0x4cf883['attributes']),_0x10fb7c?_0x368311['start']['isBefore'](_0x10fb7c['getFirstRange']()['start'])?(_0x10fb7c['removeMarkers'](),_0x10fb7c=_0x4cf883):_0x4cf883['removeMarkers']():_0x10fb7c=_0x4cf883;}}}if(_0x10fb7c)return this['_setSuggestionRange'](_0x10fb7c,this['_model']['createRange'](_0x3352e2,_0xd018f7)),_0x10fb7c;{const _0x16cdcc=_0x51245d(),_0x4eb38e=this['_model']['createRange'](_0x3352e2,_0xd018f7),_0x40e268=_0x16a219['id'],_0xf5f4ec=_0x121096?'deletion:'+_0x121096:'deletion',_0x230460=this['_setSuggestionData']({'id':_0x16cdcc,'type':_0xf5f4ec,'createdAt':new Date(),'authorId':_0x40e268,'attributes':_0x436002});return this['_addSuggestionMarker'](_0xf5f4ec,_0x16cdcc,_0x40e268,_0x4eb38e),_0x230460;}}['markMultiRangeDeletion'](_0x1f699a,_0x29dab8='multi',_0x46e780={}){const _0x595fa4=this['editor']['plugins']['get']('Users')['me'],_0xb270b3=_0x1f699a['map'](_0x5849a3=>new _0x1ed262(_0x5849a3['start'],_0x5849a3['end'])),_0x50110a=new Set();for(const {suggestion:_0x216dd2,meta:_0x3d495b}of this['_findSuggestions'](_0xb270b3,'insertion'))_0x3d495b['isOwn']&&!_0x3d495b['isNextTo']&&_0x50110a['add'](_0x216dd2);for(const _0x5cb273 of _0x50110a)if(_0x5cb273['isMultiRange']){const _0x5daee8=_0x5cb273['getRanges']();(!_0x5cb273['attributes']||!_0x5cb273['attributes']['skipNestingCheck'])&&(_0x5daee8['every'](_0x6ec01d=>_0xb270b3['some'](_0x599830=>_0x599830['containsRange'](_0x6ec01d,!0x0)))&&_0x5cb273['discard']());if(_0xb270b3['every'](_0x136a87=>_0x5daee8['some'](_0x2bc570=>_0x2bc570['containsRange'](_0x136a87,!0x0)))){const _0x4aca44=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29dab8,'accept');return this['forceDefaultExecution'](()=>_0x4aca44(_0x1f699a,null,_0x46e780)),null;}}else{const _0x50a269=_0x5cb273['getFirstRange']();_0xb270b3['some'](_0x384a1c=>_0x384a1c['containsRange'](_0x50a269,!0x0))&&_0x5cb273['discard']();if(_0xb270b3['every'](_0x47aacf=>_0x50a269['containsRange'](_0x47aacf,!0x0))){const _0x240c6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29dab8,'accept');return this['forceDefaultExecution'](()=>_0x240c6b(_0xb270b3,null,_0x46e780)),null;}}const _0x29fc7f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29dab8,'join');let _0x56b614=null;for(const _0x503476 of this['getSuggestions']())if(_0x503476['author']['id']==_0x595fa4['id']&&_0x503476['isInContent']&&'deletion'==_0x503476['type']&&_0x503476['subType']==_0x29dab8&&Lt(_0x503476,_0x46e780)&&(_0x29fc7f(_0x503476['getRanges'](),_0xb270b3)||_0x29fc7f(_0xb270b3,_0x503476['getRanges']()))){if(_0x56b614){if(_0x503476['commentThread']&&_0x503476['commentThread']['length'])continue;for(const _0x3a16ac of _0x503476['getRanges']())_0x56b614['isIntersectingWithRange'](_0x3a16ac)||_0x56b614['addRange'](_0x3a16ac);_0x503476['removeMarkers']();}else{_0x56b614=_0x503476;for(const _0x3b5d53 of _0xb270b3)_0x503476['isIntersectingWithRange'](_0x3b5d53)||_0x503476['addRange'](_0x3b5d53);}}if(_0x56b614)return _0x56b614;_0x50110a['clear']();for(const {suggestion:_0x1829b1,meta:_0x454494}of this['_findSuggestions'](_0xb270b3,'deletion'))_0x454494['isOwn']&&(this['_mergeNestedSuggestions']||!_0x454494['containsRangeInObject']&&!_0x454494['isInsideObject'])&&Lt(_0x1829b1,_0x46e780)&&_0x50110a['add'](_0x1829b1);for(const _0x58aad5 of _0x50110a){const _0x1b89fa=_0x58aad5['getRanges']();if(!_0x46e780||!_0x46e780['skipNestingCheck']){if(_0xb270b3['every'](_0x33c5a0=>_0x1b89fa['some'](_0x300ab6=>_0x300ab6['containsRange'](_0x33c5a0,!0x0))))return _0x58aad5;}(!_0x58aad5['attributes']||!_0x58aad5['attributes']['skipNestingCheck'])&&(_0x1b89fa['every'](_0x52fffa=>_0xb270b3['some'](_0x349645=>_0x349645['containsRange'](_0x52fffa,!0x0)))&&_0x58aad5['discard']());}const _0x165c48=_0x51245d(),_0x4905c8=_0x595fa4['id'],_0x56109e='deletion:'+_0x29dab8,_0x32e1f0=this['_setSuggestionData']({'id':_0x165c48,'type':_0x56109e,'createdAt':new Date(),'authorId':_0x4905c8,'attributes':_0x46e780});for(const _0x2e9f9e of _0xb270b3)_0x2e9f9e['detach'](),_0x2e9f9e['isCollapsed']||'$graveyard'==_0x2e9f9e['root']['rootName']||this['_addSuggestionMarker'](_0x56109e,_0x165c48,_0x4905c8,_0x2e9f9e,u['getMultiRangeId']());return _0x32e1f0;}['markAttributeChange'](_0x10e7ac,_0x239cb0,_0x324ca0,_0x59b339,_0x122127){if(_0x10e7ac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x815915=this['editor']['plugins']['get']('Users')['me']['id'],_0x5de9a1=Array['from'](this['_suggestions']['values']())['filter'](_0x4ffddf=>'attribute'==_0x4ffddf['type']&&_0x4ffddf['data']['key']==_0x239cb0&&_0x4ffddf['isIntersectingWithRange'](_0x10e7ac));if('default'===this['_trackFormatChanges']){const _0x23bff8=this['_findSuggestions'](_0x10e7ac,'insertion')['filter'](({meta:_0x16882f})=>_0x16882f['isOwn']&&!_0x16882f['isInsideObject']&&!_0x16882f['isNextTo'])['map'](({suggestion:_0x5af09e})=>_0x5af09e);_0x5de9a1['unshift'](..._0x23bff8);}const _0x41d2cc=new Map([[_0x10e7ac,_0x324ca0]]);for(const _0x363ac7 of _0x5de9a1){const _0x4118fd='attribute'==_0x363ac7['type']?_0x363ac7['data']['oldValue']:void 0x0,_0x4645ce=_0x363ac7['getFirstRange'](),_0x2aea1f=Array['from'](_0x41d2cc['keys']())['find'](_0x162abc=>_0x162abc['isIntersecting'](_0x4645ce));if(!_0x2aea1f)continue;const _0x29cc8a=_0x2aea1f['getDifference'](_0x4645ce);this['_isBlockAttribute'](_0x239cb0)&&'insertion'==_0x363ac7['type']&&0x0!=_0x29cc8a['length']||(_0x41d2cc['delete'](_0x2aea1f),_0x29cc8a['forEach'](_0x55f2ab=>{_0x41d2cc['set'](_0x55f2ab,_0x324ca0);}),'insertion'!=_0x363ac7['type']&&_0x4118fd!=_0x59b339&&_0x41d2cc['set'](_0x2aea1f['getIntersection'](_0x4645ce),_0x4118fd));}const _0x1be514=[];for(const [_0x370e16,_0x4d4bdb]of _0x41d2cc){const _0x48111a=_0x51245d(),_0x53a6f7={'key':_0x239cb0,'oldValue':_0x4d4bdb,'newValue':_0x59b339};_0x239cb0['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':_0x239cb0});const _0x85ba74=('attribute:'+(_0x239cb0+'|'+Vt({'newValue':_0x59b339})))['substring'](0x0,0x3c),_0x4c4a2e=this['_setSuggestionData']({'id':_0x48111a,'type':_0x85ba74,'data':_0x53a6f7,'createdAt':new Date(),'authorId':_0x815915,'attributes':_0x122127});_0x1be514['push'](_0x4c4a2e),this['_addSuggestionMarker'](_0x85ba74,_0x48111a,_0x815915,_0x370e16);}return _0x1be514;}['enableDefaultAttributesIntegration'](_0x3665fa){this['enableCommand'](_0x3665fa,(_0x1356b8,..._0x2b6442)=>{this['_recordAttributeChanges'](()=>{_0x1356b8(..._0x2b6442);});});}['registerBlockAttribute'](_0x196655){this['_blockAttributeKeys']['add'](_0x196655);}['registerInlineAttribute'](_0x1bd7bb){this['_inlineAttributeKeys']['add'](_0x1bd7bb);}['_getAttributeKey'](_0x32c2c9){return'attribute'==_0x32c2c9['type']?_0x32c2c9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1d9997,_0x194bfe){const _0x40b4a9=_0x1d9997['getFirstMarker']();this['_model']['change'](_0xf3d65e=>{_0xf3d65e['updateMarker'](_0x40b4a9,{'range':_0x194bfe});});}['_addThreadToSuggestion'](_0x2621c6){const _0x57af7b=_0x2621c6['id'],_0x54fb64=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57af7b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54fb64,'threadId':_0x57af7b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x324367=this['_commentsRepository']['getCommentThread'](_0x57af7b);_0x324367['unbind']('isRemovable'),_0x324367['isRemovable']=!0x1,_0x2621c6['commentThread']=_0x324367;}['_checkSuggestionCorrectness'](_0x921faf,_0xdd34f2,_0x2164da,_0x3a7c34){if(_0x921faf['type']!=_0xdd34f2||_0x921faf['subType']!=_0x2164da||_0x921faf['creator']['id']!=_0x3a7c34)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4926cb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5328af,_0x29e7ac){const _0x497395=_0x5328af['getFirstRange']();if(_0x29e7ac['isEqual'](_0x497395))_0x5328af['removeMarkers']();else{if(_0x497395['containsRange'](_0x29e7ac)){const _0x1db1a3=this['_model']['createPositionAt'](_0x29e7ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5328af,this['_model']['createRange'](_0x497395['start'],_0x1db1a3));const _0x384806=_0x51245d(),_0xa3c5a5=_0x5328af['creator']['id'],_0x49af77=_0x5328af['type']+':'+_0x5328af['subType'];this['_setSuggestionData']({'id':_0x384806,'type':_0x49af77,'createdAt':new Date(),'authorId':_0xa3c5a5,'data':_0x5328af['data'],'attributes':_0x5328af['attributes']});const _0x186f93=this['_model']['createPositionAt'](_0x29e7ac['end']['parent'],'after'),_0x2d4ffd=this['_model']['createRange'](_0x186f93,_0x497395['end']);this['_addSuggestionMarker'](_0x49af77,_0x384806,_0xa3c5a5,_0x2d4ffd);}else{if(_0x497395['containsPosition'](_0x29e7ac['start'])){const _0x3dbbef=this['_model']['createPositionAt'](_0x29e7ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5328af,this['_model']['createRange'](_0x497395['start'],_0x3dbbef));}else{const _0x16b953=this['_model']['createPositionAt'](_0x29e7ac['end']['parent'],'after');this['_setSuggestionRange'](_0x5328af,this['_model']['createRange'](_0x16b953,_0x497395['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1f4576){for(const {suggestion:_0x30d716,meta:_0xc8361c}of this['_findSuggestions'](_0x1f4576,'insertion')){if(!_0xc8361c['isOwn'])continue;const _0x33f580=_0x30d716['getRanges']();for(const _0x1d61fd of _0x33f580)if(!_0x1f4576['getDifference'](_0x1d61fd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x352948){const _0x1d9907=this['editor']['plugins']['get']('Users')['getUser'](_0x352948);if(!_0x1d9907)throw new _0x4926cb('track-changes-user-not-found',this);return _0x1d9907;}['_getExternalAuthor'](_0x3ca154){const _0x4be72b=this['editor']['plugins']['get']('Users'),_0x424073=_0x524a26('external:'+_0x3ca154),_0x20a5b2=_0x4be72b['getUser'](_0x424073);return _0x20a5b2||_0x4be72b['addUser']({'id':_0x424073,'name':_0x3ca154});}['_createSuggestion'](_0x3f4809,_0x1aac39,_0x10599a,_0x3c0ebb,_0x4668a7){const _0x1b9134=this['_getAuthorFromId'](_0x3c0ebb),_0x119cfe=this['_suggestionFactory']['buildSuggestion'](_0x3f4809,_0x1aac39,_0x10599a,_0x1b9134,_0x4668a7,_0x54cb4d=>{this['_updateSuggestionData'](_0x10599a,{'attributes':_0x54cb4d});const _0xbd0a22=this['getSuggestion'](_0x10599a);this['_joinWithAdjacentSuggestions'](new Set([_0xbd0a22])),this['_refreshSuggestionsChain'](new Set([_0xbd0a22]));});return this['listenTo'](_0x119cfe,'accept',()=>{this['_updateSuggestionData'](_0x10599a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x119cfe,'discard',()=>{this['_updateSuggestionData'](_0x10599a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x10599a,_0x119cfe),this['_suggestionState']['set'](_0x119cfe,'notReady'),_0x119cfe;}['_splitMarkerName'](_0x7a9351){const _0x2a7517=_0x7a9351['split'](':');return{'group':_0x2a7517[0x0],'type':_0x2a7517[0x1],'subType':_0x2a7517['length']>=0x5?_0x2a7517[0x2]:null,'id':_0x2a7517['length']<0x5?_0x2a7517[0x2]:_0x2a7517[0x3],'authorId':_0x2a7517['length']<0x5?_0x2a7517[0x3]:_0x2a7517[0x4],'markerCount':0x6==_0x2a7517['length']?_0x2a7517[0x5]:null};}['_breakSuggestionMarker'](_0x4d2832,_0x5d6c2f,_0x9ab538){const _0x1d8641=_0x4d2832['getFirstRange'](),_0x34e23c=_0x1d8641['start'],_0x3c4e52=_0x1d8641['end'];this['_setSuggestionRange'](_0x4d2832,this['_model']['createRange'](_0x34e23c,_0x5d6c2f));const _0x3de363=_0x51245d(),_0x1eb66c=_0x4d2832['creator']['id'],_0x3baee5=_0x4d2832['type']+(_0x4d2832['subType']?':'+_0x4d2832['subType']:'');this['_setSuggestionData']({'id':_0x3de363,'type':_0x3baee5,'createdAt':new Date(),'authorId':_0x1eb66c,'originalSuggestionId':_0x4d2832['id'],'attributes':_0x4d2832['attributes'],'data':_0x4d2832['data']});const _0x659a92=this['_getAttributeKey'](_0x4d2832);('formatBlock'==_0x4d2832['type']||_0x659a92&&this['_isBlockAttribute'](_0x659a92))&&(_0x9ab538=this['_model']['createPositionBefore'](_0x9ab538['parent'])),this['_addSuggestionMarker'](_0x3baee5,_0x3de363,_0x1eb66c,this['_model']['createRange'](_0x9ab538,_0x3c4e52));}['_findSuggestions'](_0x165ace,_0x2ee6f9=null){const _0x2447bb=[],_0x475e7b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x165ace)||(_0x165ace=[_0x165ace]);for(const _0x39c09a of this['getSuggestions']()){if(!_0x39c09a['isInContent'])continue;if(_0x2ee6f9&&_0x39c09a['type']!=_0x2ee6f9)continue;let _0x3d7c0a=!0x1;for(const _0x4bb469 of _0x39c09a['getRanges']()){for(const _0x115774 of _0x165ace){const _0x53aafd=_0x115774['start']['isEqual'](_0x4bb469['end'])||_0x115774['end']['isEqual'](_0x4bb469['start']);if(_0x53aafd||_0x115774['getIntersection'](_0x4bb469)){const _0x3cda9a=_0x115774['containsRange'](_0x4bb469)&&Rt(this['_model']['schema'],_0x4bb469['start'],_0x115774),_0x5e4e43=_0x4bb469['containsRange'](_0x115774)&&Rt(this['_model']['schema'],_0x115774['start'],_0x4bb469);_0x2447bb['push']({'suggestion':_0x39c09a,'meta':{'isOwn':_0x475e7b==_0x39c09a['author'],'isNextTo':_0x53aafd,'isInsideObject':_0x3cda9a,'containsRangeInObject':_0x5e4e43}}),_0x3d7c0a=!0x0;break;}}if(_0x3d7c0a)break;}}return _0x2447bb;}['_addSuggestionMarker'](_0x260ff3,_0x1cec49,_0x200daa,_0x5990d3,_0x5eeb00){this['_model']['change'](_0x5f2bf3=>{let _0x340aac='suggestion:'+_0x260ff3+':'+_0x1cec49+':'+_0x200daa;_0x5eeb00&&(_0x340aac=_0x340aac+':'+_0x5eeb00),_0x5f2bf3['addMarker'](_0x340aac,{'range':_0x5990d3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x402e48){const _0x5af276=_0x402e48['previous'],_0x109291=_0x402e48['next'];_0x402e48['previous']=null,_0x402e48['next']=null,null!=_0x5af276&&_0x5af276['next']==_0x402e48&&(_0x5af276['next']=_0x109291),null!=_0x109291&&_0x109291['previous']==_0x402e48&&(_0x109291['previous']=_0x5af276),'ready'==this['_suggestionState']['get'](_0x402e48)&&(this['_suggestionState']['set'](_0x402e48,'removed'),this['fire']('suggestionUnloaded',_0x402e48,_0x5af276,_0x109291));}['_setSuggestionData'](_0xf4a513){const _0x20b56b=_0xf4a513['id'],_0xb8c6c7=this['addSuggestionData'](_0xf4a513);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x11087c=this['editor']['plugins']['get']('PendingActions'),_0x3ac2ae=_0xb8c6c7['hasComments'],_0x579658=_0xb8c6c7['subType']?_0xb8c6c7['type']+':'+_0xb8c6c7['subType']:_0xb8c6c7['type'],_0x373879=this['editor']['locale'],_0x20183d=_0x11087c['add'](o(_0x373879,'PENDING_ACTION_SUGGESTION')),_0x50c0be={'id':_0x20b56b,'type':_0x579658,'hasComments':_0x3ac2ae,'data':_0xf4a513['data']||null,'originalSuggestionId':_0xf4a513['originalSuggestionId']||null,'attributes':_0xb8c6c7['attributes']};this['_adapter']['addSuggestion'](_0x50c0be)['then'](_0x32662f=>{_0xb8c6c7['_saved']=!0x0,_0x11087c['remove'](_0x20183d),_0x32662f&&_0x32662f['createdAt']&&(this['_suggestions']['get'](_0x20b56b)['createdAt']=_0x32662f['createdAt']);})['catch'](_0x3e3fd2=>{throw _0x75e7a3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb8c6c7['discard']();}),_0xb8c6c7['stopListening'](),this['_suggestions']['delete'](_0xb8c6c7['id']),this['_suggestionState']['delete'](_0xb8c6c7),_0x3e3fd2;});}return _0xb8c6c7;}['_isBlockAttribute'](_0x23c2ce){return this['_blockAttributeKeys']['has'](_0x23c2ce);}['_updateSuggestionData'](_0x59730e,_0x477929){const _0x2f5dbb=this['editor']['plugins']['get']('PendingActions'),_0x5808fc=this['getSuggestion'](_0x59730e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5808fc['_saved']){const _0x22f2b0=_0x2f5dbb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59730e,_0x477929)['then'](()=>{_0x2f5dbb['remove'](_0x22f2b0);});}else _0x5808fc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59730e,_0x477929);});}}['_getSuggestionData'](_0x446d2d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4926cb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x446d2d);}['_handleNewSuggestionMarker'](_0x29b62b){const {id:_0x15772f,type:_0x4f8a1e,subType:_0x4521f2,authorId:_0x4f53d1}=this['_splitMarkerName'](_0x29b62b),_0x2e713e=this['_suggestions']['get'](_0x15772f)||this['_createSuggestion'](_0x4f8a1e,_0x4521f2,_0x15772f,_0x4f53d1,{});switch(this['_checkSuggestionCorrectness'](_0x2e713e,_0x4f8a1e,_0x4521f2,_0x4f53d1),this['_suggestionState']['get'](_0x2e713e)){case'notReady':this['_getSuggestionData'](_0x15772f)['then'](_0x4ea64a=>{let _0x13e436=Promise['resolve']();_0x4ea64a['hasComments']&&(_0x13e436=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x15772f})),_0x13e436['then'](()=>{this['addSuggestionData'](_0x4ea64a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2e713e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x15772f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2e713e,'ready'),this['fire']('suggestionLoaded',_0x2e713e);break;case'ready':this['fire']('suggestionChanged',_0x2e713e);}return _0x2e713e['addMarkerName'](_0x29b62b),_0x2e713e;}['_refreshSuggestionsChain'](_0x368a28){const _0x2dc669=Array['from'](_0x368a28),_0x5cfd74=_0x2dc669['filter'](_0xa7caac=>'attribute'==_0xa7caac['type']);this['_refreshAttributeSuggestionsChain'](_0x5cfd74);const _0x54e1ce=_0x2dc669['filter'](_0x5a629d=>!_0x5a629d['isMultiRange']&&'attribute'!=_0x5a629d['type']),_0xc73ab9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a9157=>!_0x5a9157['isMultiRange']&&'attribute'!=_0x5a9157['type']),_0x50a298=_0xc73ab9['filter'](_0x22803c=>!_0x368a28['has'](_0x22803c)),_0x1781aa=new Map(_0xc73ab9['map'](_0x31f543=>[_0x31f543,this['_suggestionFactory']['getSuggestionCallback'](_0x31f543['type'],_0x31f543['subType'],'chain')])),_0x57906b=new Map(_0xc73ab9['map'](_0x4e517d=>[_0x4e517d,_0x4e517d['getFirstRange']()])),_0x5d22c8=new Set(),_0x5d281f=new Set();for(let _0xdf76d1=0x0;_0xdf76d1<_0x54e1ce['length'];_0xdf76d1++)_0x1888d6(_0x54e1ce[_0xdf76d1],_0x54e1ce,_0xdf76d1+0x1);for(let _0x392929=0x0;_0x392929<_0x54e1ce['length'];_0x392929++)_0x1888d6(_0x54e1ce[_0x392929],_0x50a298,0x0);const _0x11d6ff=new Set();for(let _0x546f15=0x0;_0x546f15<_0x54e1ce['length'];_0x546f15++){const _0x2da74b=_0x54e1ce[_0x546f15];!_0x5d281f['has'](_0x2da74b)&&_0x2da74b['previous']&&(_0x11d6ff['add'](_0x2da74b['previous']),_0x2da74b['previous']['next']===_0x2da74b&&(_0x2da74b['previous']['next']=null),_0x2da74b['previous']=null),!_0x5d22c8['has'](_0x2da74b)&&_0x2da74b['next']&&(_0x11d6ff['add'](_0x2da74b['next']),_0x2da74b['next']['previous']===_0x2da74b&&(_0x2da74b['next']['previous']=null),_0x2da74b['next']=null);}function _0x1888d6(_0x4c3af9,_0x223666,_0x50dd23){for(let _0x1e19dc=_0x50dd23;_0x1e19dc<_0x223666['length'];_0x1e19dc++){const _0x29ba89=_0x37fe49(_0x4c3af9,_0x223666[_0x1e19dc]);_0x29ba89&&(_0x29ba89[0x0]['next']=_0x29ba89[0x1],_0x29ba89[0x1]['previous']=_0x29ba89[0x0],_0x5d22c8['add'](_0x29ba89[0x0]),_0x5d281f['add'](_0x29ba89[0x1]));}}function _0x37fe49(_0x86fca4,_0x178c33){if(_0x86fca4['author']['id']!==_0x178c33['author']['id'])return null;const _0x39c540=_0x1781aa['get'](_0x86fca4)(_0x86fca4,_0x178c33,_0x57906b['get'](_0x86fca4),_0x57906b['get'](_0x178c33));if(!_0x39c540)return null;return _0x1781aa['get'](_0x178c33)(_0x86fca4,_0x178c33,_0x57906b['get'](_0x86fca4),_0x57906b['get'](_0x178c33))?_0x39c540[0x1]['commentThread']&&_0x39c540[0x1]['commentThread']['length']?null:_0x39c540:null;}_0x11d6ff['size']&&this['_refreshSuggestionsChain'](_0x11d6ff);}['_refreshAttributeSuggestionsChain'](_0x4612c0){if(0x0==_0x4612c0['length'])return;const _0x5af90e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4127a7=>'attribute'==_0x4127a7['type']&&_0x4127a7['_isDataLoaded']),_0x79e797=[],_0x3091de=new Map();for(const _0x3f0631 of _0x5af90e){const _0xd33cc8=_0x524a26(_0x3f0631['attributes']);_0x3091de['has'](_0xd33cc8)||(_0x3091de['set'](_0xd33cc8,_0x79e797['length']),_0x79e797['push']([]));const _0x57d126=_0x3091de['get'](_0xd33cc8);_0x79e797[_0x57d126]['push'](_0x3f0631);}!(function(){_0x79e797['sort']((_0x4fd6e6,_0x35c293)=>{const _0x5eb568=_0x4fd6e6[0x0]['createdAt'],_0x43f1fe=_0x35c293[0x0]['createdAt'];return _0x5eb568==_0x43f1fe?_0x4fd6e6[0x0]['attributes']['groupId']<_0x35c293[0x0]['attributes']['groupId']?-0x1:0x1:_0x5eb568<_0x43f1fe?-0x1:0x1;});for(const _0x1ca911 of _0x79e797)_0x1ca911['sort']((_0x595038,_0x2643c3)=>_0x595038['id']<_0x2643c3['id']?-0x1:0x1);}());for(let _0x452151=0x0;_0x452151<_0x79e797['length'];_0x452151++){if(0x0==_0x79e797[_0x452151]['length'])continue;const _0x359e3c=[];for(let _0x384f32=_0x452151+0x1;_0x384f32<_0x79e797['length'];_0x384f32++)0x0!=_0x79e797[_0x384f32]['length']&&_0x2d0208(_0x79e797[_0x452151],_0x79e797[_0x384f32])&&_0x359e3c['push'](_0x384f32);for(const _0x3bbdb4 of _0x359e3c)_0x79e797[_0x452151]=_0x79e797[_0x452151]['concat'](_0x79e797[_0x3bbdb4]),_0x79e797[_0x3bbdb4]=[];}for(const _0xd4efc1 of _0x79e797)for(let _0x372232=0x0;_0x372232<_0xd4efc1['length'];_0x372232++)_0xd4efc1[_0x372232]['next']=_0xd4efc1[_0x372232+0x1]||null;for(const _0x233278 of _0x79e797)for(let _0x4f4cbb=0x0;_0x4f4cbb<_0x233278['length'];_0x4f4cbb++)_0x233278[_0x4f4cbb]['previous']=_0x233278[_0x4f4cbb-0x1]||null;function _0x2d0208(_0x5b890e,_0x5ee61f){if(_0x5b890e[0x0]['attributes']['groupId']!==_0x5ee61f[0x0]['attributes']['groupId']&&_0x5b890e[0x0]['author']!==_0x5ee61f[0x0]['author'])return!0x1;if(!function(_0x5d51d7,_0x25d4e8){if(!_0x5d51d7['hasComments']&&!_0x25d4e8['hasComments'])return!0x0;if(_0x5d51d7['hasComments']&&_0x25d4e8['hasComments'])return!0x1;if(_0x5d51d7['hasComments']&&_0x25d4e8['createdAt']<_0x5d51d7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x25d4e8['hasComments']&&_0x5d51d7['createdAt']<_0x25d4e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b890e[0x0],_0x5ee61f[0x0]))return!0x1;const _0x50d8c3=Bt(_0x5b890e[0x0]['attributes'],'groupId'),_0x3a0208=Bt(_0x5ee61f[0x0]['attributes'],'groupId');if(!_0xdd32d6(_0x50d8c3,_0x3a0208))return!0x1;return!!_0x5b890e['every'](_0x3a37eb=>_0x5ee61f['some'](_0x1415cd=>_0x3a37eb['getFirstRange']()['isEqual'](_0x1415cd['getFirstRange']())))&&_0x5ee61f['every'](_0x295567=>_0x5b890e['some'](_0x2999cf=>_0x295567['getFirstRange']()['isEqual'](_0x2999cf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x95de4e){const _0x35f754=Array['from'](_0x95de4e),_0x251a5b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x314548=_0x251a5b['filter'](_0x404ffe=>!_0x95de4e['has'](_0x404ffe)),_0xb59ffc=new Map(_0x35f754['map'](_0x303a38=>[_0x303a38,this['_suggestionFactory']['getSuggestionCallback'](_0x303a38['type'],_0x303a38['subType'],'join')])),_0x43cb9f=new Map(_0x251a5b['map'](_0x33cb8b=>[_0x33cb8b,_0x33cb8b['getRanges']()]));for(let _0x6ce48=0x0;_0x6ce48<_0x35f754['length'];_0x6ce48++){if(_0x471149(this,_0x35f754[_0x6ce48],_0x35f754,_0x6ce48+0x1))return!0x0;}for(let _0x50f3e9=0x0;_0x50f3e9<_0x35f754['length'];_0x50f3e9++){if(_0x471149(this,_0x35f754[_0x50f3e9],_0x314548,0x0))return!0x0;}return!0x1;function _0x471149(_0x6972f4,_0x425263,_0x581ca5,_0x2ef61d){for(let _0x2f3914=_0x2ef61d;_0x2f3914<_0x581ca5['length'];_0x2f3914++){const _0x75b87=_0x581ca5[_0x2f3914];if(_0x75b87['type']!==_0x425263['type']||_0x75b87['author']['id']!==_0x425263['author']['id']||_0x75b87['subType']!==_0x425263['subType'])continue;if(!Pt(_0x425263,_0x75b87,['groupId']))continue;if('attribute'==_0x425263['type']&&_0x425263['data']['oldValue']!=_0x75b87['data']['oldValue'])continue;if('attribute'==_0x425263['type']&&_0x6972f4['_isBlockAttribute'](_0x425263['data']['key']))continue;if('formatBlock'==_0x425263['type']){const _0x203644=_0x6972f4['editor']['model'],_0x4b0cab=_0x425263['getContainedElement']();if(_0x4b0cab&&(_0x203644['schema']['isObject'](_0x4b0cab)||_0x203644['schema']['isLimit'](_0x4b0cab)))continue;}const _0x3ccd58=_0xb59ffc['get'](_0x425263),_0x4e98ae=_0x43cb9f['get'](_0x425263),_0x5b72ef=_0x43cb9f['get'](_0x75b87),_0x462e65=_0x425263['commentThread']&&_0x425263['commentThread']['length'],_0x975407=_0x75b87['commentThread']&&_0x75b87['commentThread']['length'];if(!_0x462e65&&_0x3ccd58(_0x5b72ef,_0x4e98ae))return _0x6972f4['_joinSuggestions'](_0x75b87,_0x425263),_0x43cb9f['delete'](_0x425263),!0x0;if(!_0x975407&&_0x3ccd58(_0x4e98ae,_0x5b72ef))return _0x6972f4['_joinSuggestions'](_0x425263,_0x75b87),_0x43cb9f['delete'](_0x75b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x401a0b,_0x468591){if(_0x401a0b['isMultiRange']){for(const _0x4311c2 of _0x468591['getRanges']())_0x401a0b['addRange'](_0x4311c2);}else{const _0x2cac7a=_0x468591['getFirstRange']()['end'];this['_setSuggestionRange'](_0x401a0b,this['_model']['createRange'](_0x401a0b['getFirstRange']()['start'],_0x2cac7a));}_0x468591['removeMarkers']();}['_getMarkerAnnouncementText'](_0x504af8,_0x506c68){const _0x2a11ab=_0x504af8['startsWith']('format')||_0x504af8['startsWith']('attribute')?'FORMATTING':_0x504af8['toUpperCase']();return o(this['editor']['locale'],_0x506c68+'_'+_0x2a11ab+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4c045a=this['editor'];if(!_0x4c045a['ui'])return;const {ariaLiveAnnouncer:_0x193b79}=_0x4c045a['ui'];_0x4e6831(this['_model'],({left:_0x1abe21,entered:_0x4b997d})=>{for(const _0x2bde9c of _0x1abe21){const {group:_0x745c8,type:_0x1992bd}=this['_splitMarkerName'](_0x2bde9c['name']);if('suggestion'===_0x745c8){_0x193b79['announce'](this['_getMarkerAnnouncementText'](_0x1992bd,'LEAVE'));break;}}for(const _0x27bc6f of _0x4b997d){const {group:_0x27d981,type:_0x1f194b}=this['_splitMarkerName'](_0x27bc6f['name']);if('suggestion'===_0x27d981){_0x193b79['announce'](this['_getMarkerAnnouncementText'](_0x1f194b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2f097c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x465bc0=this['editor'],_0x10ba83=_0x465bc0['model']['document']['differ']['getChanges']();if(0x0==_0x10ba83['length'])return!0x1;const _0x3955e5=[],_0x51827b=_0x10ba83['filter'](_0x125782=>'attribute'==_0x125782['type']),_0x12386e=_0x10ba83['filter'](_0x478021=>'insert'==_0x478021['type']&&'$text'!=_0x478021['name']),_0x317797=_0x10ba83['filter'](_0x577ef6=>'remove'==_0x577ef6['type']&&'$text'!=_0x577ef6['name']);for(const _0x15ad0a of _0x51827b)_0x3955e5['push']({'key':_0x15ad0a['attributeKey'],'newValue':_0x15ad0a['attributeNewValue'],'oldValue':_0x15ad0a['attributeOldValue'],'range':Ot(_0x15ad0a['range'],_0x465bc0['model'])});for(const _0x28c8f2 of _0x12386e){const _0x1cb14e=_0x317797['find'](_0x312cad=>_0x312cad['position']['isEqual'](_0x28c8f2['position']));_0x1cb14e&&_0x3955e5['push']({'key':m,'newValue':_0x28c8f2['name'],'oldValue':_0x1cb14e['name'],'range':_0x465bc0['model']['createRangeOn'](_0x28c8f2['position']['nodeAfter'])});}return 0x0!=_0x3955e5['length']&&this['_reduceExistingSuggestions'](_0x2f097c,_0x3955e5);}['_processAttributeSuggestions'](_0x2b9c2f){let _0x28d79e=!0x1;const _0x20adbd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd6b4f9=>_0xd6b4f9['data']['newRange']&&_0xd6b4f9['name']['startsWith']('suggestion:attribute:'));for(const _0x344992 of _0x20adbd){const {subType:_0x1ef41f,id:_0x29e2f3}=this['_splitMarkerName'](_0x344992['name']),_0x3ca14d=_0x1ef41f['split']('|')[0x0];for(const _0x4c194c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c194c['id']!=_0x29e2f3&&'attribute'==_0x4c194c['type']&&_0x4c194c['data']&&_0x4c194c['data']['key']==_0x3ca14d&&_0x4c194c['getFirstRange']()['isIntersecting'](_0x344992['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c194c,_0x344992['data']['newRange'],_0x2b9c2f),_0x28d79e=!0x0);}return _0x28d79e;}['_recordAttributeChanges'](_0x2f81b6){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2f81b6();}['_isRegisteredAttribute'](_0x2a918f){const _0xbee03b=this['_isBlockAttribute'](_0x2a918f),_0x5b7a16=this['_inlineAttributeKeys']['has'](_0x2a918f);return _0xbee03b||_0x5b7a16;}['_reduceExistingSuggestions'](_0x521ca3,_0x632fca){if(0x0==_0x632fca['length'])return!0x1;let _0x18abfc=!0x1;for(const _0x332b16 of _0x632fca){const _0x24e575=this['_findSuggestions'](_0x332b16['range'],'attribute')['filter'](_0x4d31a8=>!_0x4d31a8['meta']['isNextTo'])['map'](_0xa022ac=>_0xa022ac['suggestion']),_0x16e5d1=_0x524a26({'newValue':_0x332b16['newValue']});_0x24e575['filter'](_0xe4ba09=>{const [_0x1b0aee,_0xc04cfd]=_0xe4ba09['subType']['split']('|');return _0x1b0aee==_0x332b16['key']&&_0xc04cfd!=_0x16e5d1;})['forEach'](_0x4c247b=>{this['_reduceSuggestionAttributeRange'](_0x4c247b,_0x332b16['range'],_0x521ca3),_0x18abfc=!0x0;});}return _0x18abfc;}['_reduceSuggestionAttributeRange'](_0x5eaf5c,_0x1f0689,_0x39afce){const _0xaa3a70=_0x5eaf5c['getFirstRange']()['getDifference'](_0x1f0689);0x0!==_0xaa3a70['length']?0x1!==_0xaa3a70['length']?this['_breakSuggestionMarker'](_0x5eaf5c,_0x1f0689['start'],_0x1f0689['end']):this['_setSuggestionRange'](_0x5eaf5c,_0xaa3a70[0x0]):_0x39afce['removeMarker'](_0x5eaf5c['getFirstMarker']());}constructor(_0x1a5989){function _0x1d89c2(_0x1676f3){return _0x1676f3['map'](_0x19a390=>String['fromCharCode'](_0x19a390))['join']('');}super(_0x1a5989),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a4429,_0x42fbf7,_0x590ac0,_0x3294ad)=>{this['_model']['change'](()=>{for(const _0x4d6002 of[..._0x3294ad,..._0x590ac0])this['_model']['markers']['has'](_0x4d6002)&&_0x1a5989['editing']['reconvertMarker'](_0x4d6002);});}),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']=_0x1a5989['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(),_0x1a5989['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1a5989['config']['get']('trackChanges.trackFormatChanges'),_0x1a5989['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1a5989['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1a5989,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1d89c2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d89c2([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x30]);}}class xt{['buildSuggestion'](_0x5d8460,_0x375fca,_0x555eae,_0x4a2940,_0x54333a,_0x10bfe0){return new u(this['_model'],{'type':_0x5d8460,'subType':_0x375fca,'id':_0x555eae,'author':_0x4a2940,'creator':_0x4a2940,'attributes':_0x54333a,'onAttributesChange':_0x10bfe0,'onAccept':(..._0x52aa11)=>this['getSuggestionCallback'](_0x5d8460,_0x375fca,'accept')(..._0x52aa11),'onDiscard':(..._0x18e7e5)=>this['getSuggestionCallback'](_0x5d8460,_0x375fca,'discard')(..._0x18e7e5)});}['registerCustomCallback'](_0x1a152e,_0x39a390,_0x69e603,_0xc7d6cd){const _0x50e150=_0x1a152e+':'+_0x39a390+':'+_0x69e603;this['_customCallbacks']['set'](_0x50e150,_0xc7d6cd);}['getSuggestionCallback'](_0xc4914e,_0x3dc17f,_0x53808d){const _0x13dbfd=_0xc4914e+':'+_0x3dc17f+':'+_0x53808d;return this['_customCallbacks']['get'](_0x13dbfd)||this['_defaultCallbacks']['get'](_0xc4914e+':'+_0x53808d);}['_registerDefaultCallbacks'](){const _0x5623bd=()=>!0x1,_0x1682f7=_0x4b5fff=>{_0x4b5fff['sort']((_0x4d3e43,_0x1fd73a)=>_0x4d3e43['start']['isBefore'](_0x1fd73a['start'])?0x1:-0x1),this['_model']['change'](_0x2b47a2=>{for(const _0x5cae96 of _0x4b5fff){let _0x1f4289;_0x1f4289=_0x5cae96['end']['isAtEnd']&&_0x5cae96['end']['parent']==_0x5cae96['start']['nodeAfter']?_0x2b47a2['createSelection'](_0x5cae96['start']['nodeAfter'],'on'):_0x2b47a2['createSelection'](_0x5cae96),this['_model']['deleteContent'](_0x1f4289,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x40c731=(_0x56f4fe,_0xaaf4e7)=>{_0xaaf4e7&&this['_model']['change'](_0x3aa86e=>{const {commandName:_0x1c81b6,commandParams:_0x2cf68c=[]}=_0xaaf4e7,_0x2e89b0=_0x56f4fe['map'](_0x571666=>(Tt(_0x571666)&&(_0x571666=this['_model']['createRange'](_0x571666['end'])),_0x571666))['filter'](_0x3df48a=>'$graveyard'!==_0x3df48a['root']['rootName']);if(_0x2e89b0['length']<0x1)return;const _0x454e80=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x221c1c=>_0x1ed262['fromRange'](_0x221c1c));_0x3aa86e['setSelection'](_0x2e89b0);for(const _0x2075f3 of this['_editor']['commands']['commands']())_0x2075f3['refresh']();_0x2cf68c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c81b6,..._0x2cf68c);const _0x2d03ee=_0x454e80['filter'](_0xd637c9=>'$graveyard'!=_0xd637c9['root']['rootName']);_0x2d03ee['length']>0x0&&_0x3aa86e['setSelection'](_0x2d03ee);for(const _0x35d0b1 of _0x454e80)_0x35d0b1['detach']();});},_0x2d6ad5=(_0x4ddd60,_0x14a80e)=>0x1==_0x4ddd60['length']&&0x1==_0x14a80e['length']&&_0x4ddd60[0x0]['end']['isEqual'](_0x14a80e[0x0]['start']),_0x84d29e=(_0x51847a,_0xc04637,_0x3af8b5,_0x371b43)=>Gt(_0x51847a,_0xc04637,_0x3af8b5,_0x371b43,this['_model'])?[_0x51847a,_0xc04637]:Gt(_0xc04637,_0x51847a,_0x371b43,_0x3af8b5,this['_model'])?[_0xc04637,_0x51847a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5623bd),this['_defaultCallbacks']['set']('insertion:discard',_0x1682f7),this['_defaultCallbacks']['set']('insertion:join',_0x2d6ad5),this['_defaultCallbacks']['set']('insertion:chain',_0x84d29e),this['_defaultCallbacks']['set']('deletion:accept',_0x1682f7),this['_defaultCallbacks']['set']('deletion:discard',_0x5623bd),this['_defaultCallbacks']['set']('deletion:join',_0x2d6ad5),this['_defaultCallbacks']['set']('deletion:chain',_0x84d29e),this['_defaultCallbacks']['set']('formatInline:accept',_0x40c731),this['_defaultCallbacks']['set']('formatInline:discard',_0x5623bd),this['_defaultCallbacks']['set']('formatInline:join',_0x2d6ad5),this['_defaultCallbacks']['set']('formatInline:chain',_0x5623bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x40c731),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5623bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d6ad5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5623bd),this['_defaultCallbacks']['set']('attribute:accept',_0x5623bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x26e93c,_0x345e28)=>{if(!_0x345e28)return;const _0x479eb8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4a8358=>{if(_0x345e28['key']==m)for(const _0x176c95 of _0x26e93c){const _0x335e53=_0x176c95['start']['nodeAfter'],_0x1d6b06=_0x345e28['oldValue'];_0x4a8358['rename'](_0x335e53,_0x1d6b06);}else{if(_0x479eb8['_isBlockAttribute'](_0x345e28['key'])){for(const _0x46c3be of _0x26e93c)void 0x0!==_0x345e28['oldValue']?_0x4a8358['setAttribute'](_0x345e28['key'],_0x345e28['oldValue'],_0x46c3be['start']['nodeAfter']):_0x4a8358['removeAttribute'](_0x345e28['key'],_0x46c3be['start']['nodeAfter']);}else{for(const _0x43647c of _0x26e93c)_0x345e28['oldValue']?_0x4a8358['setAttribute'](_0x345e28['key'],_0x345e28['oldValue'],_0x43647c):_0x4a8358['removeAttribute'](_0x345e28['key'],_0x43647c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d6ad5);}constructor(_0x2f40e3){this['_editor']=_0x2f40e3,this['_model']=_0x2f40e3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x14b8d7,_0x3cf4e3,_0x237332){for(const _0x26d805 of _0x3cf4e3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26d805['root']==_0x26d805)return!0x1;if(!_0x237332['containsItem'](_0x26d805))return!0x1;if(_0x14b8d7['isObject'](_0x26d805)||_0x14b8d7['isLimit'](_0x26d805))return!0x0;}return!0x1;}function Tt(_0x52c4f9){return _0x52c4f9['end']['parent']==_0x52c4f9['start']['nodeAfter']&&_0x52c4f9['end']['isAtStart'];}function Et(_0x28ded0,_0x6d3f4,_0x31a184,_0x4f74a4){const _0x2e54ab=_0x549009=>!_0x549009['item']['is']('$textProxy')&&!_0x4f74a4['isObject'](_0x549009['item']),_0x5acc1c=_0x28ded0['start']['getLastMatchingPosition'](_0x2e54ab),_0x464f1d=_0x28ded0['end']['getLastMatchingPosition'](_0x2e54ab,{'direction':'backward'});return(!_0x28ded0['start']['isEqual'](_0x5acc1c)||!_0x28ded0['end']['isEqual'](_0x464f1d))&&(_0x5acc1c['isBefore'](_0x464f1d)?_0x31a184['updateMarker'](_0x6d3f4,{'range':_0x31a184['createRange'](_0x5acc1c,_0x464f1d)}):_0x31a184['removeMarker'](_0x6d3f4),!0x0);}function Vt(_0x449dac){return _0x524a26(_0x449dac);}function Ut(_0x25d02b){const _0x4767ab=_0x25d02b['start']['nodeAfter'];return _0x4767ab&&_0x4767ab['is']('element');}function Ot(_0x137df9,_0x21f32b){return null==_0x137df9['end']['nodeBefore']&&_0x137df9['end']['parent']==_0x137df9['start']['nodeAfter']?Ft(_0x137df9['start']['nodeAfter'],_0x21f32b):_0x137df9;}function Ft(_0x32413e,_0x28cc97){const _0x536bd5=_0x28cc97['schema']['isObject'](_0x32413e)||_0x28cc97['schema']['isSelectable'](_0x32413e);return _0x28cc97['createRange'](_0x28cc97['createPositionAt'](_0x32413e,'before'),_0x536bd5?_0x28cc97['createPositionAfter'](_0x32413e):_0x28cc97['createPositionAt'](_0x32413e,'end'));}function Gt(_0x90b23b,_0x483531,_0x1540d6,_0x13ae6b,_0x3a2c22){if(!Pt(_0x90b23b,_0x483531))return!0x1;if(_0x1540d6['end']['isEqual'](_0x13ae6b['start']))return!0x0;if(_0x90b23b['type']!=_0x483531['type'])return!0x1;if(!_0x1540d6['end']['isTouching'](_0x13ae6b['start']))return!0x1;const _0x19fd86=_0x3a2c22['createRange'](_0x1540d6['end'],_0x13ae6b['start'])['getWalker']();for(const _0x3772e2 of _0x19fd86)if(['elementStart','elementEnd']['includes'](_0x3772e2['type'])&&_0x3a2c22['schema']['isLimit'](_0x3772e2['item']))return!0x1;return!0x0;}function Pt(_0x2c6de3,_0x25ca6a,_0xa67801=[]){return!(!_0x2c6de3['_isDataLoaded']||!_0x25ca6a['_isDataLoaded'])&&_0xdd32d6(Bt(_0x2c6de3['attributes'],_0xa67801),Bt(_0x25ca6a['attributes'],_0xa67801));}function Lt(_0xa8b7bd,_0x30f806){const _0x21d52b=Ht(_0xa8b7bd['attributes']),_0x2575ca=Ht(_0x30f806);if(!_0xa8b7bd['_isDataLoaded'])return!0x1;for(const _0x460778 of Object['keys'](_0x2575ca))if(!_0xdd32d6(_0x21d52b[_0x460778],_0x2575ca[_0x460778]))return!0x1;return!0x0;}function Ht(_0x5ed3fd){const _0x45e93c=Object['assign']({},_0x5ed3fd);return delete _0x45e93c['skipNestingCheck'],delete _0x45e93c['tablePasteChainId'],_0x45e93c;}class oe extends _0x238325(){['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 _0x58a6ee=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58a6ee);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x50f8d7,_0x515c2c,_0x3edbef,_0x42aafc){super(),this['model']=_0x515c2c,this['view']=_0x3edbef,this['commentThreadController']=_0x42aafc,this['_editor']=_0x50f8d7,this['_acceptCommand']=_0x50f8d7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x50f8d7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3b2e37,_0x4bba93)=>_0x3b2e37||_0x4bba93),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x40c192=>_0x40c192&&this['_editor']['model']['canEditAt'](_0x515c2c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42090a=>_0x42090a&&this['_editor']['model']['canEditAt'](_0x515c2c['getRanges']())),this['_pendingAction']=null,_0x3edbef['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3edbef,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3edbef,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3edbef,'change:isDirty',()=>{_0x3edbef['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0xa8a3a2{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x557efc}=this['_config'];this['commentsListView']=new _0x557efc(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',_0x15bbca=>_0x15bbca+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xeed6f0,_0x58dd00)=>_0xeed6f0||!!_0x58dd00);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2e8bec}=this['_config'],_0x35340c=new _0x2e8bec(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfa6a71=_0x35340c['commentInputView'];return _0x35340c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfa6a71,'value',(_0xbe0ff0,_0x3b5aae,_0x1ed8c8)=>!!_0x1ed8c8||_0xbe0ff0&&!_0x3b5aae),_0xfa6a71['on']('submit',(_0xff2444,_0x2c7f14)=>{this['fire']('addComment',_0x2c7f14),_0xfa6a71['editor']['setData']('');}),_0xfa6a71['on']('cancel',()=>this['focus']()),_0xfa6a71['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x35340c;}constructor(_0x4473a8,_0x51717a,_0x2c97c0,_0x3224f4){super(_0x4473a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x51717a['authoredAt']),this['bind']('authoredAt')['to'](_0x51717a),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x51717a,this['_localUser']=_0x2c97c0,this['_config']=_0x3224f4,_0x3224f4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x206e53=this['bindTemplate'],_0x3c2004=[{'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':_0x206e53['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x206e53['to']('authoredAt',_0x3bae23=>this['_config']['formatDateTime'](_0x3bae23))}]}]},{'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']&&_0x3c2004['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4e3ea4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x206e53['if']('isActive','ck-suggestion-wrapper--active'),_0x206e53['to']('type',_0x3eb670=>'ck-suggestion-'+_0x3eb670),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':_0x3c2004}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4e3ea4['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)),_0x4e3ea4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xe11339,_0x374486,_0x137e5b)=>{this['_descriptionElement']['innerHTML']=_0x137e5b;});}['_createButton'](_0x2160cd,_0x3b334f,_0x469c7f,_0x1c5a65,_0x1f0678){const _0x4bcb1a=new _0x1c9e0c(this['locale']);return _0x4bcb1a['set']({'label':_0x2160cd,'icon':_0x3b334f,'tooltip':!0x0,'tooltipPosition':_0x1f0678}),_0x4bcb1a['extendTemplate']({'attributes':{'class':_0x469c7f}}),_0x4bcb1a['on']('execute',()=>{this['fire'](_0x1c5a65,this['_model']['id']);}),_0x4bcb1a;}['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(_0x2a2cb8,_0x4f71a7,_0x56ad5d,_0x457933){super(_0x2a2cb8,_0x4f71a7,_0x56ad5d,_0x457933),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36e68e=>_0x36e68e&&_0x36e68e[0x0]?_0x36e68e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1f25c7,_0x4aa698)=>{let _0x5671c1='';for(const _0x5059fa of _0x1f25c7)_0x5671c1+='<p>'+ds(_0x5059fa['content'],_0x5059fa['color'])+'</p>';return _0x4aa698?_0x5671c1:_0x33fac0(_0x5671c1,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2a2cb8,'Accept\x20suggestion'),_0x1abf50['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2a2cb8,'Discard\x20suggestion'),_0x1abf50['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3f1e81(_0x2a2cb8,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x5af9ab,_0x381f27){let _0x1f7aad='';return _0x1f7aad+=_0x5af9ab['split']('*')['map']((_0x3b9810,_0x5485d5)=>_0x5485d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3b9810)+'</span>':us(_0x3b9810))['join'](''),_0x381f27&&(_0x1f7aad+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x381f27['value']+'\x22\x20title=\x22'+_0x381f27['title']+'\x22></span>'),_0x1f7aad;}function us(_0x1df37f){const _0x424da0=document['createElement']('span');return _0x424da0['innerText']=_0x1df37f,_0x424da0['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 _0x4d32e5{static get['requires'](){return[p,_0x1c067c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x13de22,_0x24dd4c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2853ca,_0x181cfb]of this['_handleControllerBuffer']){const _0x43e9dc=this['_suggestionToController']['has'](_0x2853ca);_0x43e9dc||_0x181cfb?_0x43e9dc&&_0x181cfb&&this['_destroyController'](_0x2853ca):this['_initializeController'](_0x2853ca);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x13de22,_0x24dd4c);}['init'](){const _0x26b577=this['editor'],_0x19368a=_0x26b577['plugins']['get']('TrackChangesEditing'),_0x193b88=_0x26b577['plugins']['get']('Annotations'),_0x5e4487=_0x26b577['plugins']['get']('EditorAnnotations'),_0x4d2dea=_0x26b577['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5e4487['addSourceCollector'](()=>{const _0x2445d7=[];for(const [_0x1c6768,_0x444ef9]of Array['from'](this['_suggestionToController'])){const _0x2e6ba7=_0x1c6768['getAllAdjacentSuggestions'](),_0x2de589=[];for(const _0x2d3b4b of _0x2e6ba7){if(!_0x2d3b4b['isInContent'])continue;if(_0x2d3b4b['isMultiRange']){_0x2de589['push'](..._0x2d3b4b['getRanges']());continue;}const _0x4cc181=_0x2d3b4b['getFirstRange']();if(_0x2de589['length']>0x0){const _0x31692c=_0x2de589[0x0]['getJoined'](_0x4cc181);if(_0x31692c){_0x2de589[0x0]=_0x31692c;continue;}}_0x2de589['push'](_0x4cc181);}_0x2445d7['push']([_0x444ef9['view'],_0x2de589]);}return _0x2445d7;}),this['listenTo'](_0x19368a,'suggestionLoaded',(_0x58459a,_0x1d51c6)=>{this['listenTo'](_0x1d51c6,'change:previous',(_0x2905f5,_0x5009e4,_0x259e8a,_0x146dcb)=>{_0x1d51c6['isInContent']&&(null==_0x259e8a?(this['_updateController'](_0x146dcb['head']),this['_handleSuggestionControllerDelayed'](_0x1d51c6,!0x1)):(this['_updateController'](_0x259e8a['head']),null==_0x146dcb&&this['_handleSuggestionControllerDelayed'](_0x1d51c6,!0x0)));}),null!==_0x1d51c6['previous']?this['_updateController'](_0x1d51c6['head']):this['_handleSuggestionControllerDelayed'](_0x1d51c6,!0x1);}),this['listenTo'](_0x19368a,'suggestionUnloaded',(_0x3ccc15,_0x104ecf,_0xa83eaa)=>{this['stopListening'](_0x104ecf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x104ecf),this['_suggestionToController']['has'](_0x104ecf)&&this['_destroyController'](_0x104ecf),_0xa83eaa&&this['_updateController'](_0xa83eaa['head']);}),this['listenTo'](_0x19368a,'suggestionChanged',(_0x291a8f,_0x2000ca)=>{this['_updateController'](_0x2000ca);}),this['listenTo'](_0x193b88,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4d2dea,'addComment',(_0x589775,{threadId:_0x496b16,isFromAdapter:_0x52e925})=>{if(_0x52e925||!_0x19368a['hasSuggestion'](_0x496b16))return;const _0x6d912e=_0x19368a['getSuggestion'](_0x496b16);this['_suggestionToController']['get'](_0x6d912e)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x37886a=this['editor']['plugins']['get']('Annotations'),_0x3c2eb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac00b=Array['from'](_0x37886a['activeAnnotations'],_0x4a9129=>_0x4a9129['innerView'])['filter'](_0x891e9f=>this['_viewToController']['has'](_0x891e9f)),_0x4d858b=[];for(const _0x4b27b6 of _0xac00b){const _0x209e78=this['_viewToController']['get'](_0x4b27b6)['model']['getAllAdjacentSuggestions']();_0x4d858b['push'](..._0x209e78['reduce']((_0x1e0a89,_0x1ddc0a)=>[..._0x1e0a89,..._0x1ddc0a['getMarkerNames']()],[]));}_0x3c2eb8['activeMarkers']=_0x4d858b;}['_addUIComponentsToFactory'](){const _0x457df9=this['editor'],_0x325040=_0x457df9['locale'],_0x480e8b=o(_0x325040,'Track\x20changes'),_0x45bca8=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x480e8b,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x325040,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x57cef1 of _0x45bca8)if(ae(_0x57cef1)){const _0xe16181=_0x457df9['commands']['get'](_0x57cef1['model']['commandName']);_0x57cef1['model']['bind']('isOn','isEnabled')['to'](_0xe16181,'value','isEnabled');}_0x457df9['ui']['componentFactory']['add']('trackChanges',_0xbf0bac=>this['_createToolbarButton'](_0xbf0bac,_0x45bca8,_0x480e8b)),_0x457df9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2249da=>this['_createMenuBarMenu'](_0x2249da,_0x45bca8,_0x480e8b));}['_createToolbarButton'](_0x4a941b,_0x4fc671,_0x118405){const _0x553813=zt(_0x4a941b,Zt),_0x17274e=this['editor']['commands']['get']('trackChanges');_0x553813['buttonView']['set']({'tooltip':_0x118405,'label':_0x118405,'icon':ie}),_0x553813['buttonView']['bind']('isOn')['to'](_0x17274e,'value'),_0x553813['buttonView']['on']('execute',()=>{_0x17274e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x553813,_0x4fc671);const _0x13a2b5=[];for(const _0x3eae79 of _0x4fc671)ae(_0x3eae79)&&_0x13a2b5['push'](this['editor']['commands']['get'](_0x3eae79['model']['commandName']));const _0x72ba6f=_0x553813['buttonView'];return _0x72ba6f['actionView']['unbind']('isEnabled'),_0x72ba6f['arrowView']['unbind']('isEnabled'),_0x72ba6f['actionView']['bind']('isEnabled')['to'](_0x17274e,'isEnabled'),_0x72ba6f['arrowView']['bind']('isEnabled')['toMany'](_0x13a2b5,'isEnabled',(..._0x4fd753)=>_0x4fd753['some'](_0x4c5063=>_0x4c5063)),_0x553813['on']('execute',_0x4c751b=>{this['editor']['execute'](_0x4c751b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x553813;}['_createMenuBarMenu'](_0x36fe23,_0x2697e2,_0x54dec3){const _0x2c2f23=new Kt(_0x36fe23),_0x4fe091=this['editor']['commands']['get']('trackChanges');_0x2c2f23['buttonView']['set']({'label':_0x54dec3,'icon':ie});const _0x117086=new Qt(_0x36fe23);for(const _0x262df4 of _0x2697e2){if('separator'==_0x262df4['type']){_0x117086['items']['add'](new Jt(_0x36fe23));continue;}const _0x42e1ba=new Xt(_0x36fe23,_0x2c2f23),_0x2d8cc9=new Yt(_0x36fe23),_0x5bf4f7=_0x262df4['model'];_0x2d8cc9['bind'](...Object['keys'](_0x5bf4f7))['to'](_0x5bf4f7),_0x2d8cc9['delegate']('execute')['to'](_0x2c2f23),_0x2d8cc9['on']('execute',()=>{this['editor']['execute'](_0x5bf4f7['commandName']),this['editor']['editing']['view']['focus']();}),_0x42e1ba['children']['add'](_0x2d8cc9),_0x117086['items']['add'](_0x42e1ba);}return _0x2c2f23['bind']('isEnabled')['to'](_0x4fe091,'isEnabled'),_0x2c2f23['panelView']['children']['add'](_0x117086),_0x2c2f23;}['_initializeController'](_0xf3eb37){const _0x22a8ab=this['editor'],_0x43087e=_0x22a8ab['config'],_0x3ce7bb=_0x22a8ab['plugins']['get']('Annotations'),_0x260b87=_0x22a8ab['plugins']['get']('CommentsRepository'),_0x284b3a=_0x22a8ab['plugins']['get']('EditorAnnotations'),_0x161ed1=_0x22a8ab['plugins']['get'](_0x1c067c)['me'],_0x3d0a56=_0x43087e['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x20287f,CommentThreadInputView:_0x1ea258}=_0x22a8ab['plugins']['get']('CommentsUI');let _0x5c84e0,_0x2d569e;this['_annotationViews']['has'](_0xf3eb37['id'])?(_0x2d569e=this['_annotationViews']['get'](_0xf3eb37['id']),_0x5c84e0=_0x2d569e['mainView']):(_0x5c84e0=new _0x3d0a56(_0x22a8ab['locale'],_0xf3eb37,_0x161ed1,{'disableComments':this['_disableComments'],'editorConfig':_0x43087e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43087e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43087e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43087e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x7fcc34(_0x43087e['get']('locale')),'CommentView':_0x43087e['get']('comments')['CommentView'],'CommentsListView':_0x20287f,'CommentThreadInputView':_0x1ea258}),_0x5c84e0['acceptButton']['on']('execute',()=>{_0x22a8ab['editing']['view']['focus']();}),_0x5c84e0['discardButton']['on']('execute',()=>{_0x22a8ab['editing']['view']['focus']();}),_0x2d569e=_0x3ce7bb['createAnnotationView'](this['editor']['locale'],_0x5c84e0),_0x2d569e['bind']('isDirty')['to'](_0x5c84e0,'isDirty'),_0x2d569e['bind']('length')['to'](_0x5c84e0),_0x2d569e['bind']('type')['to'](_0x5c84e0,'type',_0x2dbe27=>'suggestion-'+_0x2dbe27),this['_annotationViews']['set'](_0xf3eb37['id'],_0x2d569e));const _0x21ef0c=_0x260b87['createCommentThreadController'](_0xf3eb37['commentThread'],_0x5c84e0),_0x139890=new oe(_0x22a8ab,_0xf3eb37,_0x5c84e0,_0x21ef0c),_0x1e1b20=_0xf3eb37['getAllAdjacentSuggestions']()['filter'](_0x3b9ff0=>_0x3b9ff0['isInContent']);_0x5c84e0['descriptionParts']=_0x22a8ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1e1b20),this['_suggestionToController']['set'](_0xf3eb37,_0x139890),this['_viewToController']['set'](_0x5c84e0,_0x139890);const _0x1389d6=_0x3ce7bb['createAnnotation']({'view':_0x2d569e,'target':()=>{const _0x5088ca=[],_0x49dffb=_0xf3eb37['getAllAdjacentSuggestions']()['filter'](_0x4f6844=>_0x4f6844['isInContent']);for(const _0x503a4c of _0x49dffb)_0x5088ca['push'](..._0x503a4c['getMarkers']());return _0x2d0a4d(_0x22a8ab['editing'],_0x5088ca);},'type':()=>'suggestion-'+_0x139890['view']['type']});_0x260b87['_bindAnnotationToEditors'](_0x5c84e0,_0x1389d6),_0x3ce7bb['add'](_0x1389d6),_0x284b3a['registerAnnotation'](_0x1389d6);}['_destroyController'](_0x51925a){const _0x79b581=this['editor']['plugins']['get']('CommentsRepository'),_0x5b7503=this['editor']['plugins']['get']('Annotations'),_0x2a5feb=this['_suggestionToController']['get'](_0x51925a),_0x4ac3d6=_0x2a5feb['view'],_0x4fbad2=_0x5b7503['getByInnerView'](_0x4ac3d6);_0x79b581['_unbindEditors'](_0x4ac3d6),_0x4fbad2&&_0x5b7503['remove'](_0x4fbad2),this['_suggestionToController']['delete'](_0x51925a),this['_viewToController']['delete'](_0x4ac3d6),_0x2a5feb['destroy']();}['_updateController'](_0x1e3346){if(!_0x1e3346['isInContent']||!this['_suggestionToController']['has'](_0x1e3346))return;const _0x287a7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c9478=this['_suggestionToController']['get'](_0x1e3346),_0x4e427e=_0x1e3346['getAllAdjacentSuggestions']();_0x1c9478['view']['descriptionParts']=_0x287a7f['descriptionFactory']['getDescriptions'](_0x4e427e);}['destroy'](){for(const _0x1d087a of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d087a);for(const _0x1367c4 of this['_annotationViews']['values']())_0x1367c4['mainView']['destroy']();super['destroy']();}constructor(_0x415e2f){super(_0x415e2f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xc50700=this['editor']['config'];_0xc50700['define']('trackChanges.SuggestionThreadView',ne),_0xc50700['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xc50700['get']('trackChanges.disableComments');}}function ae(_0x41f3e3){return'model'in _0x41f3e3;}class k extends _0x4d32e5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x27dda0){this['editor']['plugins']['get'](p)['adapter']=_0x27dda0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1a2902){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1a2902);}['getSuggestions']({skipNotAttached:_0x3e0d04=!0x1,toJSON:_0x435ccd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3e0d04,'toJSON':_0x435ccd});}['getSuggestion'](_0x3dbc48){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3dbc48);}}const T=['Pagination'];class P extends _0x4d32e5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x55bcd8=this['editor'];if(_0x55bcd8['config']['define']('trackChangesData.editorCreator',_0x53c3fa=>{const _0x38c035=_0x55bcd8['model']['document']['getRootNames']()['reduce']((_0x15ac21,_0x172ace)=>(_0x15ac21[_0x172ace]='',_0x15ac21),{});return _0x55bcd8['constructor']['create'](_0x38c035,_0x53c3fa);}),'function'!=typeof _0x55bcd8['config']['get']('trackChangesData')['editorCreator'])throw new _0x4926cb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x20ffa6){return N(this['editor'],!0x0,_0x20ffa6);}['getDataWithDiscardedSuggestions'](_0x58c4e2){return N(this['editor'],!0x1,_0x58c4e2);}}class D extends _0x4d32e5{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(_0x4d5cd0){super(_0x4d5cd0),this['result']='end';}}function v(_0x2e293b){return void 0x0!==_0x2e293b['getRootsAttributes'];}async function N(_0x206ef8,_0x3aac1d,_0x4f839e){const _0xc112d8=_0x3a99fa(_0x206ef8,T);_0xc112d8['plugins']['push'](p,D),_0xc112d8['rootsAttributes']=v(_0x206ef8)?_0x206ef8['getRootsAttributes']():void 0x0;const _0x3c71ca=document['createDocumentFragment'](),_0x393217=_0x206ef8['config']['get']('trackChangesData')['editorCreator'],_0x345bf9=await _0x393217(_0xc112d8,()=>function(_0x59e5e7){const _0x5a6985=document['createElement']('div');return _0x59e5e7['appendChild'](_0x5a6985),_0x5a6985;}(_0x3c71ca));!function(_0x21d06b,_0x41699d){const _0x220fe2=_0x21d06b['model']['document']['getRootNames']()['reduce']((_0x4bdc8d,_0x2cef6c)=>(_0x4bdc8d[_0x2cef6c]=_0x21d06b['data']['get']({'rootName':_0x2cef6c}),_0x4bdc8d),{}),_0x399129=_0x21d06b['plugins']['get']('Users')['users']['map'](_0x26a9c0=>({'id':_0x26a9c0['id'],'name':_0x26a9c0['name']})),_0x183bf2=_0x21d06b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29bd55=_0x21d06b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c50bd=_0x41699d['plugins']['get']('Users'),_0x166367=_0x41699d['plugins']['get']('TrackChangesEditing'),_0x3a0caa=_0x41699d['plugins']['get']('CommentsRepository');for(const _0x3fae5 of _0x399129)_0x2c50bd['getUser'](_0x3fae5['id'])||_0x2c50bd['addUser'](_0x3fae5);_0x2c50bd['me']||_0x2c50bd['useAnonymousUser']();for(const _0x5bbde2 of _0x183bf2)_0x166367['addSuggestionData'](_0x5bbde2);for(const _0x261a56 of _0x29bd55)_0x3a0caa['addCommentThread'](_0x261a56);_0x41699d['data']['set'](_0x220fe2);}(_0x206ef8,_0x345bf9),_0x345bf9['execute'](_0x3aac1d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ae56b=v(_0x345bf9)?_0x345bf9['getFullData'](_0x4f839e):_0x345bf9['data']['get'](_0x4f839e);return await _0x345bf9['destroy'](),_0x2ae56b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x5511a1,PendingActions as _0x1cf68b,icons as _0x22772e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a2cc3,ObservableMixin as _0x4cd08f,uid as _0x4c61b3,insertToPriorityArray as _0x50029c,priorities as _0x4b8876,logWarning as _0x396ae6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x20bde1,View as _0x299e5d,ButtonView as _0x58c753,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 _0xd07c79,hashObject as _0x18968b,surroundingMarkersDetector as _0x572aad,trimHtml as _0x2acff3,UserView as _0x4cc9e8,getDateTimeFormatter as _0x2638f4,getAllMarkersDomElementsSorted as _0x1f8725,sanitizeEditorConfig as _0x261009}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x524355,LiveRange as _0x2f3de9,LivePosition as _0x583a2a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4fc2c1,toWidget as _0x16e8d3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e6b1b,set as _0x1a7e69,isEqual as _0x2368d0,unset as _0xf2efe1,omit as Bt}from'lodash-es';import{Delete as _0x32994f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x33bee5,ShiftEnter as _0x1b9530}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 _0x3db13d of this['editor']['commands']['commands']())_0x3db13d['affectsData']&&!this['_enabledCommands']['has'](_0x3db13d)&&_0x3db13d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53898c of this['editor']['commands']['commands']())_0x53898c['affectsData']&&!this['_enabledCommands']['has'](_0x53898c)&&_0x53898c['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4ab4d1,_0x2b7f6e){super(_0x4ab4d1),this['_enabledCommands']=_0x2b7f6e,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4521b8){const _0x1a0ef1=this['_suggestions']['get'](_0x4521b8);if(!_0x1a0ef1)throw new _0x5a2cc3('track-changes-accept-suggestion-not-found',this);const _0x2f1b9e=_0x1a0ef1['getRanges']();this['editor']['model']['canEditAt'](_0x2f1b9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1a0ef1);}constructor(_0x4723c6,_0x54a7c4){super(_0x4723c6),this['_suggestions']=_0x54a7c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x498c29){const _0x5ad7f6=this['_suggestions']['get'](_0x498c29);if(!_0x5ad7f6)throw new _0x5a2cc3('track-changes-discard-suggestion-not-found',this);const _0x233759=_0x5ad7f6['getRanges']();this['editor']['model']['canEditAt'](_0x233759)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5ad7f6);}constructor(_0x290bc3,_0x5e69d1){super(_0x290bc3),this['_suggestions']=_0x5e69d1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x2a4e0c){return _0x2a4e0c['sort']((_0x2c62c9,_0x153a00)=>'deletion'==_0x2c62c9['type']&&'deletion'!=_0x153a00['type']?-0x1:'deletion'!=_0x2c62c9['type']&&'deletion'==_0x153a00['type']?0x1:0x0);}function to(_0x16b059,_0x4f0cc9){let _0x61168f,_0x13efbb=0x0;const _0x188f41=[],_0x153c54=_0x4f0cc9['schema'];for(;_0x13efbb<_0x16b059['length'];){const _0x2ad40e=_0x16b059[_0x13efbb],_0x2d2a57=_0x16b059[_0x13efbb+0x1];_0x61168f||(_0x61168f=_0x4f0cc9['createPositionBefore'](_0x2ad40e)),co(_0x4f0cc9,_0x2ad40e,_0x2d2a57)||(_0x188f41['push'](_0x4f0cc9['createRange'](_0x61168f,_0x153c54['isObject'](_0x2ad40e)?_0x4f0cc9['createPositionAfter'](_0x2ad40e):_0x4f0cc9['createPositionAt'](_0x2ad40e,'end'))),_0x61168f=null),_0x13efbb++;}return _0x188f41;}function co(_0x45779b,_0x18f08c,_0x443579){if(!_0x443579)return!0x1;const _0x6c753f=_0x45779b['createPositionAfter'](_0x18f08c),_0x4be965=_0x45779b['createPositionBefore'](_0x443579);return _0x6c753f['isTouching'](_0x4be965);}function rs(_0x458f13,_0x3e48db,_0x2de2c3){for(;_0x2de2c3['length'];){const _0x1c9937=_0x2de2c3['splice'](0x0,0x64);_0x458f13['change'](()=>{for(const _0x5bd924 of _0x1c9937)_0x5bd924['isInContent']&&_0x3e48db['execute'](_0x5bd924['id']);});}}class x extends ts{['refresh'](){const _0x1ddc33=Array['from'](this['_suggestions']['values']())['some'](_0x3ae50f=>_0x3ae50f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ddc33;}['execute'](){const _0x414204=ss(Array['from'](this['_suggestions']['values']()));for(const _0xe52605 of _0x414204){const _0x175fe7=_0xe52605['getRanges']();if(!this['editor']['model']['canEditAt'](_0x175fe7))return;}rs(this['editor']['model'],this['_command'],_0x414204);}constructor(_0x2a5d01,_0x5d1c54,_0x578e0b){super(_0x2a5d01),this['_command']=_0x5d1c54,this['_suggestions']=_0x578e0b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x4cbd27=this['editor']['model']['document']['selection'],_0x4d1e33=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2d9b8e,_0x2a7e71){const _0x1d83c9=Array['from'](_0x2d9b8e['getRanges']()),_0x839948=new Set();for(const _0x5ba49f of _0x2a7e71)if(_0x5ba49f['isInContent']){for(const _0x4f4a95 of _0x1d83c9)for(const _0x59181a of _0x5ba49f['getRanges']())(_0x4f4a95['isIntersecting'](_0x59181a)||_0x2d9b8e['isCollapsed']&&!_0x5ba49f['isMultiRange']&&_0x5ba49f['next']&&_0x59181a['end']['isTouching'](_0x4f4a95['start']))&&_0x839948['add'](_0x5ba49f);}return _0x839948;}(_0x4cbd27,_0x4d1e33),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x45e6b3=ss(Array['from'](this['_selectedSuggestions']));for(const _0x40d816 of _0x45e6b3){const _0x552b6a=_0x40d816['getRanges']();if(!this['editor']['model']['canEditAt'](_0x552b6a))return;}rs(this['editor']['model'],this['_command'],_0x45e6b3);}constructor(_0x46383d,_0x4ea2ad,_0x326a17){super(_0x46383d),this['_command']=_0x4ea2ad,this['_suggestions']=_0x326a17,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x4cd08f(){get['head'](){let _0x1cee3a=this;for(;_0x1cee3a['previous'];)_0x1cee3a=_0x1cee3a['previous'];return _0x1cee3a;}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'](_0x36b45f){this['_markerNames']['add'](_0x36b45f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x392526=>this['_model']['markers']['get'](_0x392526))['filter'](_0x4c8bcb=>_0x4c8bcb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3f97a3=>{for(const _0x406ab2 of this['getMarkers']())_0x3f97a3['removeMarker'](_0x406ab2);}),this['_markerNames']['clear']();}['removeMarker'](_0x44932a){this['_model']['change'](_0x5c6fe3=>{_0x5c6fe3['removeMarker'](_0x44932a);}),this['_markerNames']['delete'](_0x44932a);}['addRange'](_0x3887b8){const _0x514679='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x514679),this['_model']['change'](_0x5dcf46=>{_0x5dcf46['addMarker'](_0x514679,{'range':_0x3887b8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x267dbb){for(const _0x3582f0 of this['getRanges']())if(_0x3582f0['isIntersecting'](_0x267dbb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x463e54=>_0x463e54['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26f69f,_0x26dd3e)=>[..._0x26f69f,..._0x26dd3e['getItems']()],[]);}['getFirstRange'](){var _0x243308;return(null===(_0x243308=this['getFirstMarker']())||void 0x0===_0x243308?void 0x0:_0x243308['getRange']())||null;}['getContainedElement'](){const _0x180a73=this['getRanges']();if(0x1!=_0x180a73['length'])return null;const _0x1f5958=_0x180a73[0x0],_0xc1cc7f=_0x1f5958['start']['nodeAfter'],_0x2e0c01=_0x1f5958['end']['nodeBefore'];return _0xc1cc7f instanceof _0x524355?_0xc1cc7f!=_0x2e0c01?null:_0xc1cc7f: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 _0x19a6e6=[];let _0xee249c=this['head'];for(;_0xee249c;)_0x19a6e6['push'](_0xee249c),_0xee249c=_0xee249c['next'];return _0x19a6e6;}['setAttribute'](_0x2aa53c,_0x1cd880){const _0x3c7936=_0x3e6b1b(this['attributes']);_0x1a7e69(_0x3c7936,_0x2aa53c,_0x1cd880),_0x2368d0(_0x3c7936,this['attributes'])||(this['attributes']=_0x3c7936,this['_onAttributesChange'](_0x3c7936));}['removeAttribute'](_0x179880){const _0x5a2a7d=_0x3e6b1b(this['attributes']);_0xf2efe1(_0x5a2a7d,_0x179880),_0x2368d0(_0x5a2a7d,this['attributes'])||(this['attributes']=_0x5a2a7d,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 _0x4c61b3()['substr'](0x1,0x5);}constructor(_0x226597,_0x749121){super(),this['_isDataLoaded']=!0x1,this['id']=_0x749121['id'],this['type']=_0x749121['type'],this['subType']=_0x749121['subType']||null,this['author']=_0x749121['author'],this['creator']=_0x749121['creator']||_0x749121['author'],this['isExternal']=Boolean(_0x749121['attributes']&&_0x749121['attributes']['@external']),this['data']=null,this['_model']=_0x226597,this['_onAccept']=_0x749121['onAccept'],this['_onDiscard']=_0x749121['onDiscard'],this['_onAttributesChange']=_0x749121['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x749121['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(_0x430956,_0x2d2313,_0x5e60e1){const t=_0x430956['t'];switch(_0x2d2313){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',_0x5e60e1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e60e1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e60e1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e60e1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e60e1);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',_0x5e60e1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e60e1);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',_0x5e60e1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e60e1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e60e1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e60e1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e60e1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e60e1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e60e1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e60e1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e60e1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e60e1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e60e1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e60e1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e60e1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e60e1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e60e1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e60e1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e60e1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e60e1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e60e1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e60e1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e60e1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e60e1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e60e1);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'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e60e1);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'},_0x5e60e1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e60e1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e60e1);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'},_0x5e60e1);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'},_0x5e60e1);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 _0x2d2313;}}class f{['getDescriptions'](_0x479635){const _0x55fdcc=[],_0x39d5a0=new Set(),_0x600cae=new Set();for(let _0xf0abc7=0x0;_0xf0abc7<_0x479635['length'];_0xf0abc7++){const _0x5d4f34=_0x479635[_0xf0abc7];if(!_0x5d4f34['isInContent'])continue;const _0x391ecd=this['_handleCustomCallbackDescription'](_0x5d4f34);if(_0x391ecd){if(null!=_0x5d4f34['subType']){if(_0x39d5a0['has'](_0x5d4f34['subType']))continue;_0x39d5a0['add'](_0x5d4f34['subType']);}_0x55fdcc['push'](_0x391ecd);}else{if('attribute'!=_0x5d4f34['type'])'insertion'!=_0x5d4f34['type']&&'deletion'!=_0x5d4f34['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55fdcc,_0x5d4f34,_0x479635[_0xf0abc7+0x1]);else{const _0x56256d=_0x5d4f34['data']['key'];if(_0x600cae['has'](_0x56256d))continue;_0x600cae['add'](_0x5d4f34['data']['key']),_0x56256d==m?this['_handleRenameSuggestionDescription'](_0x55fdcc,_0x5d4f34):this['_handleAttributeSuggestionDescription'](_0x55fdcc,_0x5d4f34);}}}return this['_resolveDescriptionItems'](_0x55fdcc);}['registerDescriptionCallback'](_0x1fc493){this['_customCallbacks']['push'](_0x1fc493);}['registerElementLabel'](_0x224468,_0x103866,_0x3452b8=_0x4b8876['normal']){'function'==typeof _0x224468?_0x50029c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x224468,'label':_0x103866,'priority':_0x3452b8}):this['_itemLabels']['set'](_0x224468,_0x103866);}['registerAttributeLabel'](_0x122034,_0x15f6d0){this['_attributeLabels']['set'](_0x122034,_0x15f6d0);}['getItemLabel'](_0x3b2722,_0x4cbe98=0x1){let _0x127528;for(const _0x544df3 of this['_itemLabelsCallbacks'])if(_0x544df3['matchingCallback'](_0x3b2722)){_0x127528=_0x544df3['label'];break;}return _0x127528||(_0x127528=this['_itemLabels']['get'](_0x3b2722['name'])),_0x127528?_0x127528(_0x4cbe98):0x1!==_0x4cbe98?_0x4cbe98+'\x20'+_0x3b2722['name']+'s':''+_0x3b2722['name'];}['_addDescriptionItems'](_0x9b3b5c,_0xba20d7){const _0x1c4c05=_0xba20d7['getFirstRange']()['getWalker'](),_0x1a925f='insertion'==_0xba20d7['type']?'add':'remove';for(const _0x5dec66 of _0x1c4c05){const _0x4b2d66=_0x5dec66['item'],_0x3e09a1=_0x9b3b5c[_0x9b3b5c['length']-0x1];if(_0x4b2d66['is']('$textProxy'))_0x3e09a1&&_0x3e09a1['type']['indexOf']('Container')>-0x1&&_0x9b3b5c['pop'](),_0x3e09a1&&'text'==_0x3e09a1['type']?_0x3e09a1[_0x1a925f]+=_0x4b2d66['data']:_0x9b3b5c['push']({'type':'text','add':'add'==_0x1a925f?_0x4b2d66['data']:'','remove':'remove'==_0x1a925f?_0x4b2d66['data']:''});else{if(this['_schema']['isObject'](_0x4b2d66)){const _0x2b0fb9=_0x4b2d66;if(_0x3e09a1&&_0x3e09a1['type']['indexOf']('Container')>-0x1&&_0x9b3b5c['pop'](),'elementEnd'==_0x5dec66['type'])continue;_0x3e09a1&&_0x3e09a1['type']==_0x1a925f+'Object'&&_0x3e09a1['element']['name']==_0x2b0fb9['name']?_0x3e09a1['quantity']++:_0x9b3b5c['push']({'type':_0x1a925f+'Object','element':_0x2b0fb9,'quantity':0x1}),_0x1c4c05['skip'](_0xe619ac=>!('elementEnd'==_0xe619ac['type']&&_0xe619ac['item']==_0x4b2d66));}else{if(this['_schema']['checkChild'](_0x4b2d66,'$text')||_0x4b2d66['is']('element','softBreak')){const _0x2784b6=_0x4b2d66;if('add'==_0x1a925f&&'elementStart'==_0x5dec66['type']||'remove'==_0x1a925f&&'elementEnd'==_0x5dec66['type'])continue;if(_0x3e09a1&&-0x1==_0x3e09a1['type']['indexOf']('Container')){'text'==_0x3e09a1['type']&&(_0x3e09a1[_0x1a925f]+='\x0a');continue;}let _0x2d4076;if(_0x2d4076='add'==_0x1a925f?_0x2784b6['nextSibling']&&!this['_schema']['isObject'](_0x2784b6['nextSibling'])?_0x2784b6['nextSibling']:null:_0x2784b6['previousSibling']&&!this['_schema']['isObject'](_0x2784b6['previousSibling'])?_0x2784b6['previousSibling']:null,_0x2784b6['isEmpty']||_0x2d4076&&_0x2d4076['isEmpty']){const _0x370d22=_0x2d4076&&_0x2d4076['isEmpty']?_0x2d4076:_0x2784b6;_0x3e09a1&&_0x3e09a1['type']==_0x1a925f+'EmptyContainer'&&_0x3e09a1['element']['name']==_0x370d22['name']?_0x3e09a1['quantity']++:_0x9b3b5c['push']({'type':_0x1a925f+'EmptyContainer','element':_0x370d22,'quantity':0x1});}else _0x9b3b5c['push']({'type':_0x1a925f+'Container','element':_0x2784b6});}}}}}['_resolveDescriptionItems'](_0x87f4a8){const _0x527611=this['_locale'],_0x4a7cc9=[],_0x3d51b6=[],_0x1e50bb=[];for(const _0x3a5108 of _0x87f4a8)switch(_0x3a5108['type']){case'text':if(_0x3a5108['add']=_0x3a5108['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a5108['remove']=_0x3a5108['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a5108['add']&&''!=_0x3a5108['remove']){_0x4a7cc9['push']({'type':'replace','content':o(_0x527611,'REPLACE_TEXT',['\x22'+_0x3a5108['remove']+'\x22','\x22'+_0x3a5108['add']+'\x22'])});continue;}if(null!=_0x3a5108['add']['match'](/^ +$/)){_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0',o(_0x527611,'ELEMENT_SPACE',_0x3a5108['add']['length']))});continue;}if(null!=_0x3a5108['remove']['match'](/^ +$/)){_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0',o(_0x527611,'ELEMENT_SPACE',_0x3a5108['remove']['length']))});continue;}if(''!=_0x3a5108['add']){_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0','\x22'+_0x3a5108['add']+'\x22')});continue;}_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0','\x22'+_0x3a5108['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Insert:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Remove:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'addContainer':_0x4a7cc9['push']({'type':'insertion','content':o(_0x527611,'*Split:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'removeContainer':_0x4a7cc9['push']({'type':'deletion','content':o(_0x527611,'*Merge:*\x20%0',this['getItemLabel'](_0x3a5108['element'],_0x3a5108['quantity']))});continue;case'addFormat':_0x3d51b6['push'](_0x3a5108['key']);continue;case'removeFormat':_0x1e50bb['push'](_0x3a5108['key']);continue;default:_0x4a7cc9['push'](_0x3a5108);}if(_0x3d51b6['length']){const _0x456077=_0x3d51b6['map'](_0x40c4fa=>this['_attributeLabels']['has'](_0x40c4fa)?this['_attributeLabels']['get'](_0x40c4fa):_0x40c4fa)['join'](',\x20');_0x4a7cc9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x456077)});}if(_0x1e50bb['length']){const _0x4acd8a=_0x1e50bb['map'](_0x533e38=>this['_attributeLabels']['has'](_0x533e38)?this['_attributeLabels']['get'](_0x533e38):_0x533e38)['join'](',\x20');_0x4a7cc9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4acd8a)});}return _0x4a7cc9;}['_handleCustomCallbackDescription'](_0x2e6c09){for(const _0x4cee6f of this['_customCallbacks']){const _0x5e964b=_0x4cee6f(_0x2e6c09);if(_0x5e964b&&'type'in _0x5e964b)return _0x5e964b;}}['_handleAttributeSuggestionDescription'](_0x21a5d0,_0x2115f7){const _0x1bbb57=_0x2115f7['data'],_0x31d2e2=void 0x0===_0x1bbb57['newValue']?'removeFormat':'addFormat';_0x21a5d0['push']({'type':_0x31d2e2,'key':_0x1bbb57['key']});}['_handleRenameSuggestionDescription'](_0x364511,_0x39a94a){_0x364511['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x39a94a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x29fe84,_0x3cc961,_0x5479d1){if(this['_addDescriptionItems'](_0x29fe84,_0x3cc961),_0x5479d1&&_0x5479d1['getFirstRange']()&&!_0x3cc961['getFirstRange']()['end']['isEqual'](_0x5479d1['getFirstRange']()['start'])){const _0x486a3a=_0x29fe84[_0x29fe84['length']-0x1],_0x18b773='insertion'==_0x3cc961['type']?'add':'remove';_0x486a3a&&'text'==_0x486a3a['type']&&(_0x486a3a[_0x18b773]+='\x0a');}}constructor(_0x4410fe,_0x21bdad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4410fe,this['_locale']=_0x21bdad;}}class E extends _0x5511a1{['afterInit'](){const _0x4e40ae=this['editor'],_0x3fb47c=_0x4e40ae['plugins']['get']('TrackChangesEditing');_0x4e40ae['commands']['get']('showAIAssistant')&&_0x3fb47c['enableCommand']('showAIAssistant');}}class V extends _0x5511a1{['afterInit'](){const _0x299a4d=this['editor'],_0x49329b=_0x299a4d['locale'];if(!_0x299a4d['plugins']['has']('AlignmentEditing'))return;const _0x33e123=_0x299a4d['plugins']['get']('TrackChangesEditing');_0x33e123['enableDefaultAttributesIntegration']('alignment'),_0x33e123['registerBlockAttribute']('alignment'),_0x33e123['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x49329b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f4cb4=this['editor'],_0x61dc04=_0x2f4cb4['locale'];_0x2f4cb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da172=>{if('formatBlock'!=_0x5da172['type'])return;const {data:_0x10dca9}=_0x5da172;if(_0x10dca9&&'alignment'==_0x10dca9['commandName']){const _0x5ba70e=_0x10dca9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x61dc04,'*Format:*\x20%0',function(_0x1e52fd){switch(_0x1e52fd){case'left':return o(_0x61dc04,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x61dc04,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x61dc04,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x61dc04,'FORMAT_JUSTIFY_TEXT');}}(_0x5ba70e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5511a1{['afterInit'](){const _0x2368fd=this['editor'],_0x4d7128=_0x2368fd['plugins']['get']('TrackChangesEditing'),_0x1c447a=_0x2368fd['locale'];for(const _0x4d5eae of ti){if(!_0x2368fd['plugins']['has'](_0x4d5eae))continue;const _0x5019c7=_0x4d5eae['slice'](0x0,-0x7)['toLowerCase'](),_0x446d4d='FORMAT_'+_0x5019c7['toUpperCase']();_0x4d7128['enableDefaultAttributesIntegration'](_0x5019c7),_0x4d7128['registerInlineAttribute'](_0x5019c7),_0x4d7128['descriptionFactory']['registerAttributeLabel'](_0x5019c7,o(_0x1c447a,_0x446d4d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593186=this['editor'],_0x33c829=_0x593186['locale'],_0x5aab9e=_0x593186['plugins']['get']('TrackChangesEditing');function _0x22a9a(_0x49564d,_0x4a7ad9){_0x5aab9e['descriptionFactory']['registerDescriptionCallback'](_0x1d3101=>{if('formatInline'!=_0x1d3101['type'])return;const {data:_0x1b0617}=_0x1d3101;return _0x1b0617&&_0x1b0617['commandName']===_0x49564d?_0x1b0617['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33c829,'*Format:*\x20%0',_0x4a7ad9)}:{'type':'format','content':o(_0x33c829,'*Remove\x20format:*\x20%0',_0x4a7ad9)}:void 0x0;});}_0x22a9a('bold',o(_0x33c829,'FORMAT_BOLD')),_0x22a9a('italic',o(_0x33c829,'FORMAT_ITALIC')),_0x22a9a('underline',o(_0x33c829,'FORMAT_UNDERLINE')),_0x22a9a('code',o(_0x33c829,'FORMAT_CODE')),_0x22a9a('strikethrough',o(_0x33c829,'FORMAT_STRIKETHROUGH')),_0x22a9a('subscript',o(_0x33c829,'FORMAT_SUBSCRIPT')),_0x22a9a('superscript',o(_0x33c829,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5511a1{['afterInit'](){const _0x425ff1=this['editor'],_0x52207b=_0x425ff1['locale'];if(!_0x425ff1['plugins']['has']('BlockQuoteEditing'))return;const _0x5f2b19=_0x425ff1['plugins']['get']('TrackChangesEditing'),_0x1a6fb4=this['editor']['commands']['get']('blockQuote');_0x5f2b19['enableCommand']('blockQuote',(_0x2619f5,_0x4687b3={})=>{const _0x152241=this['editor']['model']['document']['selection'],_0x2b3069=_0x4687b3&&void 0x0!==_0x4687b3['forceValue']?_0x4687b3['forceValue']:!_0x1a6fb4['value'];let _0x1569f6=[];if(_0x2b3069){const _0x42abad=Array['from'](_0x152241['getSelectedBlocks']())['filter'](_0x33dd71=>oo(_0x33dd71)||function(_0x145682,_0x18f2e2){const _0x3720a9=_0x18f2e2['checkChild'](_0x145682['parent'],'blockQuote'),_0x334ac8=_0x18f2e2['checkChild'](['$root','blockQuote'],_0x145682);return _0x3720a9&&_0x334ac8;}(_0x33dd71,this['editor']['model']['schema']));_0x1569f6=to(_0x42abad,_0x425ff1['model']);}else{const _0xe15e96=Array['from'](_0x152241['getSelectedBlocks']())['filter'](_0x308be3=>oo(_0x308be3));_0x1569f6=to(_0xe15e96,_0x425ff1['model']);}_0x425ff1['model']['change'](()=>{for(const _0x39b104 of _0x1569f6)_0x5f2b19['markBlockFormat'](_0x39b104,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b3069}]});});}),_0x5f2b19['descriptionFactory']['registerDescriptionCallback'](_0x515cb2=>{const {data:_0x11d801}=_0x515cb2;if(_0x11d801&&'blockQuote'==_0x11d801['commandName']){const _0x418012=o(_0x52207b,'ELEMENT_BLOCK_QUOTE');return _0x11d801['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52207b,'*Set\x20format:*\x20%0',_0x418012)}:{'type':'format','content':o(_0x52207b,'*Remove\x20format:*\x20%0',_0x418012)};}});}}function oo(_0x57a8eb){return'blockQuote'==_0x57a8eb['parent']['name'];}class F extends _0x5511a1{['afterInit'](){const _0x29d1b8=this['editor'];_0x29d1b8['plugins']['has']('CaseChange')&&(_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x29d1b8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5511a1{['afterInit'](){const _0x98edb1=this['editor'];_0x98edb1['commands']['get']('ckbox')&&_0x98edb1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5511a1{['afterInit'](){const _0x5a81f0=this['editor'];if(!_0x5a81f0['plugins']['has']('CodeBlock'))return;const _0x1c51c3=_0x5a81f0['plugins']['get']('TrackChangesEditing'),_0x478b66=_0x5a81f0['locale'],_0x521db3=_0x5a81f0['config']['get']('codeBlock')['languages'],_0x1c7c6f=_0x5a81f0['commands']['get']('codeBlock');_0x1c51c3['enableCommand']('indentCodeBlock'),_0x1c51c3['enableCommand']('outdentCodeBlock'),_0x1c51c3['enableCommand']('codeBlock',(_0x3d3de7,_0x5dd070={})=>{const _0x4b725a=_0x5a81f0['model'],_0x415a29=_0x5a81f0['model']['document']['selection'],_0x371144=_0x5dd070&&void 0x0!==_0x5dd070['forceValue']?_0x5dd070['forceValue']:!_0x1c7c6f['value'];let _0x44e405;_0x5dd070['language']||(_0x5dd070['language']=_0x521db3[0x0]['language']),_0x44e405=_0x371144?Array['from'](_0x415a29['getSelectedBlocks']())['filter'](_0x297625=>eo(_0x297625)||function(_0x28126c,_0x2e09f6){if(_0x28126c['is']('rootElement')||_0x2e09f6['isLimit'](_0x28126c))return!0x1;return _0x2e09f6['checkChild'](_0x28126c['parent'],'codeBlock');}(_0x297625,_0x4b725a['schema'])):Array['from'](_0x415a29['getSelectedBlocks']())['filter'](_0x30b458=>eo(_0x30b458));const _0x5f102e=to(_0x44e405,_0x4b725a);_0x4b725a['change'](()=>{for(const _0x33915e of _0x5f102e)_0x1c51c3['markBlockFormat'](_0x33915e,{'commandName':'codeBlock','commandParams':[{..._0x5dd070,'forceValue':_0x371144}],'formatGroupId':'blockName'});});}),(_0x1c51c3['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a5bed=>o(_0x478b66,'ELEMENT_CODE_BLOCK',_0x2a5bed)),_0x1c51c3['descriptionFactory']['registerDescriptionCallback'](_0x712e99=>{if('formatBlock'!=_0x712e99['type'])return;const _0x3d5d81=_0x478b66['t'],{data:_0x4ef45c}=_0x712e99;if(!_0x4ef45c||'codeBlock'!=_0x4ef45c['commandName'])return;const _0x164002=_0x4ef45c['commandParams'][0x0]['language'],_0x2ead8d=_0x3d5d81(_0x521db3['find'](_0x2e32ba=>_0x2e32ba['language']===_0x164002)['label'])['toLowerCase']();return _0x4ef45c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x478b66,'*Set\x20format:*\x20%0',o(_0x478b66,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ead8d+')')}:{'type':'format','content':o(_0x478b66,'*Remove\x20format:*\x20%0',o(_0x478b66,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x23a829){return'codeBlock'==_0x23a829['name'];}class H extends _0x5511a1{['afterInit'](){const _0x5a4ce9=this['editor'];if(!_0x5a4ce9['plugins']['has']('CommentsEditing'))return;_0x5a4ce9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3429e9,_0x40ad51,_0x41b846){const _0x5920f=[];for(const _0x784484 of _0x40ad51['getItems']())_0x784484['hasAttribute'](_0x3429e9)&&_0x5920f['push'](_0x41b846['createRangeOn'](_0x784484));return _0x5920f;}function _e(_0xda879a,_0x295fdf,{showActiveMarker:_0x5c2a3b=!0x0}={}){const _0x5db7b6=_0xda879a['plugins']['get']('TrackChangesEditing');return(_0x4a992b,_0x854d5b,_0x21052c)=>{if(!_0x21052c['consumable']['test'](_0x854d5b['markerRange'],_0x4a992b['name']))return;const _0x278caf=_0x854d5b['markerRange']['getWalker'](),_0x294c0b=_0x854d5b['markerRange']['start'],_0x5505b1=_0xda879a['model']['schema'];let _0x44bf52=null,_0x11cb4b=null,_0x33d424=!0x1,_0x61d818=!0x1;for(const _0x16272b of _0x278caf){const _0x4031f1=_0x16272b['item'];_0x33d424=_0x33d424||_0x5505b1['isContent'](_0x4031f1);const _0x2bb75b=_0x21052c['mapper']['toViewElement'](_0x4031f1);if(_0x2bb75b&&_0x2bb75b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x16272b['type']&&(_0x5505b1['isBlock'](_0x4031f1)&&!_0x5505b1['isLimit'](_0x4031f1)&&(_0x4031f1['nextSibling']||_0x294c0b['isAtEnd']?_0x44bf52&&_0x44bf52['parent']==_0x4031f1||(_0x44bf52=_0x4031f1,_0x44f83a(_0x16272b['previousPosition']),_0x61d818=!0x0):_0x11cb4b=_0x11cb4b||_0x16272b['previousPosition']));}function _0x44f83a(_0x4f132f){const _0x2c7ce1=_0x21052c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x295fdf}),_0xa6ead2=_0x21052c['mapper']['toViewPosition'](_0x4f132f);_0x5c2a3b&&_0x5db7b6['activeMarkers']['includes'](_0x854d5b['markerName'])&&_0x21052c['writer']['addClass']('ck-suggestion-marker--active',_0x2c7ce1),_0x21052c['writer']['insert'](_0xa6ead2,_0x2c7ce1),_0x21052c['mapper']['bindElementToMarker'](_0x2c7ce1,_0x854d5b['markerName']);}_0x33d424||_0x61d818||!_0x11cb4b||_0x44f83a(_0x11cb4b);};}class q extends _0x5511a1{static get['requires'](){return[_0x32994f];}['init'](){const _0x166ad5=this['editor'],_0x5717b2=_0x166ad5['plugins']['get']('TrackChangesEditing');_0x5717b2['enableCommand']('delete');const _0x96ae31=_0x166ad5['commands']['get']('deleteForward');_0x5717b2['enableCommand']('deleteForward',(_0xd0927d,_0x142a9e={})=>{const _0xad4254=_0x166ad5['model']['createSelection'](_0x166ad5['model']['document']['selection']);_0xad4254['isCollapsed']&&_0x166ad5['model']['modifySelection'](_0xad4254,{'direction':'forward','unit':_0x142a9e['unit']});const _0x54b2c5=_0xad4254['getFirstRange'](),_0x4604f7=_0x2f3de9['fromRange'](_0x54b2c5);let _0x2f2efe;_0xd0927d(_0x142a9e),_0x2f2efe='$graveyard'==_0x4604f7['root']['rootName']?_0x166ad5['model']['createRange'](_0x54b2c5['start']):_0x166ad5['model']['createRange'](_0x4604f7['start'],_0x4604f7['end']),_0x4604f7['detach'](),_0x166ad5['model']['enqueueChange'](_0x96ae31['buffer']['batch'],_0x41741f=>{_0x96ae31['buffer']['lock'](),_0x41741f['setSelection'](_0x41741f['createRange'](_0x2f2efe['end'])),_0x96ae31['buffer']['unlock']();});}),_0x166ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x166ad5,'merge'),{'priority':'high'}),_0x166ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d040c,_0x4ab52d,_0x228cec)=>{_0x228cec['options']['showSuggestionHighlights']&&_e(_0x166ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d040c,_0x4ab52d,_0x228cec);},{'priority':'high'}),_0x166ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4dc142,_0x27b8fc,_0x4bf49e)=>{const _0x38aa71=_0x4bf49e['mapper']['markerNameToElements'](_0x27b8fc['markerName']);if(_0x38aa71){for(const _0x573cb8 of _0x38aa71)_0x573cb8['is']('uiElement')&&(_0x4bf49e['mapper']['unbindElementFromMarkerName'](_0x573cb8,_0x27b8fc['markerName']),_0x4bf49e['writer']['remove'](_0x573cb8));}},{'priority':'high'});}}class z extends _0x5511a1{['afterInit'](){const _0x569147=this['editor'];if(!_0x569147['plugins']['has']('ListEditing'))return;const _0x44962f=_0x569147['locale'],_0x156d10=_0x569147['plugins']['get']('TrackChangesEditing'),_0x2aac20=_0x569147['plugins']['has']('TodoListEditing'),_0xa86d0f=!!_0x569147['config']['get']('list.multiBlock');function _0x1653a7(_0x2c8622){return{'type':'format','content':''+o(_0x44962f,'*Set\x20format:*\x20%0',_0x2c8622)};}function _0x186401(_0x3c567a){return{'type':'format','content':''+o(_0x44962f,'*Remove\x20format:*\x20%0',_0x3c567a)};}_0x156d10['enableDefaultAttributesIntegration']('numberedList'),_0x156d10['enableDefaultAttributesIntegration']('bulletedList'),_0x156d10['enableDefaultAttributesIntegration']('customNumberedList'),_0x156d10['enableDefaultAttributesIntegration']('customBulletedList'),_0x156d10['enableDefaultAttributesIntegration']('indentList'),_0x156d10['enableDefaultAttributesIntegration']('outdentList'),_0x156d10['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x156d10['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x156d10['registerBlockAttribute']('listItemId'),_0x156d10['registerBlockAttribute']('listType'),_0x156d10['registerBlockAttribute']('listIndent'),_0xa86d0f&&(_0x156d10['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x156d10['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2aac20&&(_0x156d10['enableDefaultAttributesIntegration']('todoList'),_0x156d10['enableDefaultAttributesIntegration']('checkTodoList'),_0x156d10['registerBlockAttribute']('todoListChecked'),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x166427=>{const {data:_0x3a1c05}=_0x166427;if(_0x3a1c05&&'todoListChecked'==_0x3a1c05['key'])return{'type':'format','content':_0x3a1c05['newValue']?o(_0x44962f,'*Check\x20item*'):o(_0x44962f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x19abf3=>{if(_0x19abf3['batch']['isUndo'])return!0x1;let _0x58eba4=!0x1;const _0x5f120e=_0x156d10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dcb34=>'todoListChecked'===_0x156d10['_getAttributeKey'](_0x4dcb34));for(const _0x583b4b of _0x5f120e){'todo'!=_0x583b4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x156d10['_findSuggestions'](_0x583b4b['getFirstRange'](),'attribute')['find'](_0x12e77e=>'listType'===_0x156d10['_getAttributeKey'](_0x12e77e['suggestion']))||(_0x19abf3['removeMarker'](_0x583b4b['getFirstMarker']()),_0x58eba4=!0x0));}return _0x58eba4;})),_0x156d10['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44962f,'FORMAT_INDENT'));const _0x4aafd3={'type':'format','content':''};_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x3313a1=>{const {data:_0x443162}=_0x3313a1;if(!_0x443162||'listType'!=_0x443162['key'])return;let _0x3bfeb0=_0x3313a1['head'];for(;_0x3bfeb0;){if(_0x3bfeb0['data']&&(('listStyle'==_0x3bfeb0['data']['key']||'listMarkerStyle'==_0x3bfeb0['data']['key'])&&(_0x3bfeb0['data']['newValue']&&'default'!=_0x3bfeb0['data']['newValue']||'default'!=_0x3bfeb0['data']['oldValue']&&!_0x443162['newValue'])||!_0xa86d0f&&_0x3bfeb0['data']['key']==m))return _0x4aafd3;_0x3bfeb0=_0x3bfeb0['next'];}if(null==_0x443162['newValue'])switch(_0x443162['oldValue']){case'bulleted':return _0x186401(o(_0x44962f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x186401(o(_0x44962f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x186401(o(_0x44962f,'ELEMENT_TODO_LIST'));}switch(_0x443162['newValue']){case'bulleted':return _0x1653a7(o(_0x44962f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1653a7(o(_0x44962f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1653a7(o(_0x44962f,'ELEMENT_TODO_LIST'));}}),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x391e86=>{const {data:_0x452d40}=_0x391e86;if(_0x452d40&&'listIndent'==_0x452d40['key'])return null==_0x452d40['newValue']||null==_0x452d40['oldValue']&&0x0==_0x452d40['newValue']?_0x4aafd3:void 0x0;}),_0x156d10['descriptionFactory']['registerDescriptionCallback'](_0x288fbc=>{if('attribute'!=_0x288fbc['type'])return;const {data:_0x1d58d8}=_0x288fbc;if(!_0x1d58d8||'listItemId'!=_0x1d58d8['key'])return;const _0xaf391=le(_0x288fbc);return'newValue'==_0xaf391?{'type':'format','content':o(_0x44962f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xaf391?{'type':'format','content':o(_0x44962f,'*Split:*\x20list\x20item')}:_0x4aafd3;}),_0x569147['model']['document']['registerPostFixer'](_0x5da4c0=>this['listItemIdFixer'](_0x5da4c0)),_0x569147['model']['document']['registerPostFixer'](_0x158742=>this['noTrackChangesFixer'](_0x158742)),_0x569147['model']['document']['registerPostFixer'](_0x4c5484=>this['assureChains'](_0x4c5484)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15aab4){if(_0x15aab4['batch']['isUndo']||!_0x15aab4['batch']['isLocal'])return!0x1;let _0x3a6fef=!0x1;const _0x22f7c6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c4606=>_0x2c4606['data']&&'listItemId'==_0x2c4606['data']['key'])['filter'](_0x153e64=>_0x153e64['data']['newValue']&&_0x153e64['data']['oldValue']);for(const _0x1b3623 of _0x22f7c6)le(_0x1b3623)||(_0x15aab4['removeMarker'](_0x1b3623['getFirstMarker']()),_0x3a6fef=!0x0);return _0x3a6fef;}['noTrackChangesFixer'](_0x435358){if(_0x435358['batch']['isUndo']||!_0x435358['batch']['isLocal'])return!0x1;const _0x556384=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x556384['trackChangesCommand']['value'])return!0x1;let _0x14a43a=!0x1;const _0x2a4d7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf0c92c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x349a48=>'attribute'==_0x349a48['type'])['filter'](_0x45df4f=>_0x2a4d7f['includes'](_0x45df4f['attributeKey']));if(0x0==_0xf0c92c['length'])return _0x14a43a;for(const _0x28583b of _0xf0c92c){const _0x3771a0=_0x556384['_findSuggestions'](_0x28583b['range'],'attribute')['filter'](_0x17b58a=>!_0x17b58a['meta']['isNextTo'])['map'](_0x55174d=>_0x55174d['suggestion'])['filter'](_0x202f31=>{const _0x2e1db3=_0x556384['_getAttributeKey'](_0x202f31);return _0x2a4d7f['includes'](_0x2e1db3);});if(_0x3771a0['length']){for(const _0x41c3cd of _0x3771a0)_0x435358['removeMarker'](_0x41c3cd['getFirstMarker']());_0x14a43a=!0x0;}}return _0x14a43a;}['assureChains'](_0x4966c2){if(_0x4966c2['batch']['isUndo']||!_0x4966c2['batch']['isLocal'])return!0x1;const _0x2af4c6=this['editor']['plugins']['get']('TrackChangesEditing');let _0x388f19=!0x1;const _0x4cfb42=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x4282f8 of _0x2af4c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x329a36=_0x2af4c6['_findSuggestions'](_0x4282f8['getFirstRange'](),'attribute')['map'](_0x208bd8=>_0x208bd8['suggestion'])['filter'](_0x3eb400=>_0x3eb400['data']&&_0x4cfb42['includes'](_0x3eb400['data']['key']));if(!_0x329a36['length'])continue;const _0x1ba1d1=_0x329a36[0x0]['head']['attributes']['groupId'];if(!_0x329a36['every'](_0x2c2c45=>_0x2c2c45['attributes']['groupId']===_0x1ba1d1)){for(const _0x5cc05d of _0x329a36)_0x188a8e(_0x5cc05d,_0x1ba1d1)&&(_0x388f19=!0x0);}}return _0x388f19;function _0x2e461c(_0x56008d,_0x456436){for(const _0x36d89c of _0x2af4c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf52515=>'attribute'==_0xf52515['type']&&_0xf52515['attributes']['groupId']==_0x56008d))_0x36d89c['setAttribute']('groupId',_0x456436);}function _0x188a8e(_0x113e86,_0x4e7f5f){let _0x4838ad=_0x113e86['head'],_0x12aad2=!0x1;for(;_0x4838ad;)_0x4838ad['attributes']['groupId']!=_0x4e7f5f&&(_0x2e461c(_0x4838ad['attributes']['groupId'],_0x4e7f5f),_0x4838ad['setAttribute']('groupId',_0x4e7f5f),_0x12aad2=!0x0),_0x4838ad=_0x4838ad['next'];return _0x12aad2;}}['_supportLegacySuggestions'](){const _0x94b859=this['editor'],_0x528857=_0x94b859['locale'],_0x4b4f53=_0x94b859['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b4f53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b4f99,_0x1c27bd){const _0x150d0a=[];for(let _0x55103e of _0x1b4f99)_0x55103e['start']['nodeAfter']===_0x55103e['end']['parent']&&(_0x55103e=_0x94b859['model']['createRange'](_0x94b859['model']['createPositionAt'](_0x55103e['start']['nodeAfter'],0x0))),_0x150d0a['push'](_0x55103e);_0x94b859['model']['change'](_0x1fdfb4=>{const _0x31aa8b=_0x94b859['model']['document']['selection'],_0x4fef6b=Array['from'](_0x31aa8b['getRanges']())['map'](_0x2156f7=>_0x2f3de9['fromRange'](_0x2156f7));_0x1fdfb4['setSelection'](_0x150d0a),_0x94b859['commands']['get'](_0x1c27bd['commandName'])['refresh'](),_0x1c27bd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x94b859['execute'](_0x1c27bd['commandName'],..._0x1c27bd['commandParams']),_0x1fdfb4['setSelection'](_0x4fef6b);for(const _0x221617 of _0x4fef6b)_0x221617['detach']();});}),_0x4b4f53['descriptionFactory']['registerElementLabel'](function(_0x372b66){const _0x29f740=!_0x94b859['model']['schema']['isObject'](_0x372b66),_0x1dc035=_0x372b66['previousSibling'],_0x37f24a=_0x372b66['nextSibling'],_0x4fe1bd=_0x372b66['getAttribute']('listItemId'),_0x2bdea1=!_0x1dc035||_0x1dc035['getAttribute']('listItemId')!==_0x4fe1bd,_0x558cba=!_0x37f24a||_0x37f24a['getAttribute']('listItemId')!==_0x4fe1bd;return _0x29f740&&Boolean(_0x4fe1bd)&&_0x2bdea1&&_0x558cba;},_0x2abc25=>o(_0x528857,'ELEMENT_LIST_ITEM',_0x2abc25));}['_registerLegacyDescription'](){const _0x4b65fe=this['editor'],_0x2d364a=_0x4b65fe['locale'];function _0x265e3c(_0x2d5a20){const _0x237936=_0x4b65fe['commands']['get']('bulletedList')['value'],_0x5f5305=_0x4b65fe['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d5a20?_0x237936:_0x5f5305;}_0x4b65fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2bb670){if('formatBlock'!=_0x2bb670['type'])return;const {data:_0x4a4f0b}=_0x2bb670;if(!_0x4a4f0b)return;let _0x1c6c39,_0x848c3f,_0x2f208b,_0xac1e25;switch(_0x4a4f0b['commandName']){case'bulletedList':_0x2f208b=_0x4a4f0b['commandParams'][0x0]['forceValue'],_0xac1e25=_0x265e3c(_0x4a4f0b['commandName']),_0x1c6c39=_0x2f208b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xac1e25&&_0x4b65fe['config']['get']('list.multiBlock')||(_0x1c6c39='*Change\x20to:*\x20%0'),_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f208b=_0x4a4f0b['commandParams'][0x0]['forceValue'],_0xac1e25=_0x265e3c(_0x4a4f0b['commandName']),_0x1c6c39=_0x2f208b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xac1e25&&_0x4b65fe['config']['get']('list.multiBlock')||(_0x1c6c39='*Change\x20to:*\x20%0'),_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6c39='*Indent:*\x20%0',_0x848c3f={'type':'format','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6c39=function(_0x5e3dbf){const _0x50edf8=_0x5e3dbf['getFirstRange']();let _0x101f03=_0x50edf8['start']['nodeAfter'];for(;_0x101f03&&_0x50edf8['containsItem'](_0x101f03);){if(_0x101f03['getAttribute']('listIndent')>0x0)return!0x1;_0x101f03=_0x101f03['nextSibling'];}return!0x0;}(_0x2bb670)?o(_0x2d364a,'*Format:*\x20remove\x20from\x20%0',o(_0x2d364a,function(_0x5118dd){return'ELEMENT_'+_0x5118dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2bb670))):o(_0x2d364a,'*Outdent:*\x20%0',o(_0x2d364a,'ELEMENT_LIST_ITEM')),_0x848c3f={'type':'format','content':_0x1c6c39};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a4f0b['multipleBlocks']&&(_0x1c6c39='*Merge:*\x20%0',_0x848c3f={'type':'deletion','content':o(_0x2d364a,_0x1c6c39,o(_0x2d364a,'ELEMENT_LIST_ITEM'))});}return _0x848c3f;});}}function le(_0x355668){let _0x55f705=_0x355668['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x55f705;){const _0x3a5e73=_0x55f705['getAttribute']('listItemId');if(!_0x3a5e73)return!0x1;if(_0x3a5e73==_0x355668['data']['newValue'])return'newValue';if(_0x3a5e73==_0x355668['data']['oldValue'])return'oldValue';_0x55f705=_0x55f705['previousSibling'];}return!0x1;}class ue extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14ed68=this['editor']['config']['get']('list.properties'),_0x115ad0=this['editor']['plugins']['get']('TrackChangesEditing');_0x14ed68['styles']&&(_0x115ad0['enableDefaultAttributesIntegration']('listStyle'),_0x115ad0['registerBlockAttribute']('listStyle')),_0x14ed68['reversed']&&(_0x115ad0['enableDefaultAttributesIntegration']('listReversed'),_0x115ad0['registerBlockAttribute']('listReversed')),_0x14ed68['startIndex']&&(_0x115ad0['enableDefaultAttributesIntegration']('listStart'),_0x115ad0['registerBlockAttribute']('listStart'));const _0x1533cd={'type':'format','content':''};_0x115ad0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x79fe40=this['editor']['locale'];_0x115ad0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x79fe40,'FORMAT_LIST_REVERSED')),_0x115ad0['descriptionFactory']['registerDescriptionCallback'](_0x508cc6=>{const {data:_0x3cd550}=_0x508cc6;if(_0x3cd550&&'listReversed'==_0x3cd550['key'])return null==_0x3cd550['newValue']||0x0==_0x3cd550['newValue']&&null==_0x3cd550['oldValue']?_0x1533cd:void 0x0;}),_0x115ad0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x79fe40,'FORMAT_LIST_START')),_0x115ad0['descriptionFactory']['registerDescriptionCallback'](_0x4590a7=>{const {data:_0x4020a1}=_0x4590a7;if(_0x4020a1&&'listStart'==_0x4020a1['key'])return null==_0x4020a1['newValue']||0x1==_0x4020a1['newValue']&&null==_0x4020a1['oldValue']?_0x1533cd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x29a68f=>{if(_0x29a68f['batch']['isUndo'])return!0x1;let _0x2a719f=!0x1;const _0x38dda0=_0x115ad0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a0485=>{const _0x459a31=_0x115ad0['_getAttributeKey'](_0x5a0485);return'listStart'==_0x459a31||'listReversed'==_0x459a31;});for(const _0x2d6d26 of _0x38dda0){const _0x43208a=_0x2d6d26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x43208a||'customNumbered'==_0x43208a)continue;_0x115ad0['_findSuggestions'](_0x2d6d26['getFirstRange'](),'attribute')['find'](_0x1ae9c3=>'listType'==_0x115ad0['_getAttributeKey'](_0x1ae9c3['suggestion']))||(_0x29a68f['removeMarker'](_0x2d6d26['getFirstMarker']()),_0x2a719f=!0x0);}return _0x2a719f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x538481){const _0x1befb8=this['editor']['locale'],{data:_0xce6429}=_0x538481,_0x2e892f={'type':'format','content':''};if(!_0xce6429||'listStyle'!=_0xce6429['key'])return;if(!_0xce6429['oldValue'])return'default'==_0xce6429['newValue']?_0x2e892f:{'type':'format','content':''+o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['newValue'])))};if(!_0xce6429['newValue']){if('default'==_0xce6429['oldValue'])return _0x2e892f;let _0x52da54=_0x538481['head'];for(;_0x52da54;){if(_0x52da54['data']&&'listType'==_0x52da54['data']['key']&&_0x52da54['data']['newValue'])return _0x2e892f;_0x52da54=_0x52da54['next'];}return{'type':'format','content':''+o(_0x1befb8,'*Remove\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['oldValue'])))};}if('default'!=_0xce6429['newValue'])return{'type':'format','content':''+o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,this['_getTranslationKeyForListStyle'](_0xce6429['newValue'])))};let _0x4e63da=_0x538481['head'];for(;_0x4e63da;){if(_0x4e63da['data']&&'listType'==_0x4e63da['data']['key']&&_0x4e63da['data']['newValue']&&_0x4e63da['data']['oldValue'])return _0x2e892f;_0x4e63da=_0x4e63da['next'];}return{'type':'format','content':o(_0x1befb8,'*Set\x20format:*\x20%0',o(_0x1befb8,'ELEMENT_'+_0x538481['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x14ffeb=this['editor'],_0x6435a6=_0x14ffeb['locale'];_0x14ffeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x482cf9=>{if('formatBlock'!=_0x482cf9['type'])return;const {data:_0x313926}=_0x482cf9;if(!_0x313926)return;let _0x59d4b5,_0x4f308d;switch(_0x313926['commandName']){case'listStyle':_0x59d4b5='*Change\x20to:*\x20%0',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5,o(_0x6435a6,this['_getTranslationKeyForListStyle'](_0x313926['commandParams'][0x0]['type'])))};break;case'listReversed':_0x59d4b5=_0x313926['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5)};break;case'listStart':_0x59d4b5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f308d={'type':'format','content':o(_0x6435a6,_0x59d4b5,_0x313926['commandParams'][0x0]['startIndex'])};}return _0x4f308d;});}['_getTranslationKeyForListStyle'](_0x2f0cfc){return'ELEMENT_'+function(_0x5c3aed){if(pe['includes'](_0x5c3aed))return'bulleted';if(ye['includes'](_0x5c3aed))return'numbered';return null;}(_0x2f0cfc)['toUpperCase']()+'_LIST_'+_0x2f0cfc['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5511a1{static get['requires'](){return[_0x33bee5];}['init'](){const _0x5e4146=this['editor'],_0x32b4a4=_0x5e4146['plugins']['get']('TrackChangesEditing'),_0xb3002d=_0x5e4146['commands']['get']('enter');_0x32b4a4['enableCommand']('enter',()=>{_0x5e4146['model']['change'](_0x2888ee=>{const _0x3b8423=_0x5e4146['model']['document']['selection'],_0x1bbaa0=_0x3b8423['getFirstPosition'](),_0x224f3f=_0x2f3de9['fromRange'](_0x3b8423['getFirstRange']());if(_0xb3002d['enterBlock'](_0x2888ee)){const _0x54a5d3=_0x5e4146['model']['createPositionAt'](_0x1bbaa0['parent']['nextSibling'],0x0),_0x96ebf8=_0x2888ee['createRange'](_0x1bbaa0,_0x54a5d3);_0x32b4a4['markInsertion'](_0x96ebf8);}else _0x2888ee['setSelection'](_0x2888ee['createRange'](_0x224f3f['end']));_0x224f3f['detach'](),_0xb3002d['fire']('afterExecute',{'writer':_0x2888ee});});}),_0x5e4146['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5e4146,'split'),{'priority':'high'}),_0x5e4146['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b57ca,_0x46f980,_0xc9443c)=>{const _0x10bddb=_0xc9443c['mapper']['markerNameToElements'](_0x46f980['markerName']);if(_0x10bddb){for(const _0x1df3ce of _0x10bddb)_0x1df3ce['hasClass']('ck-suggestion-marker-split')&&(_0xc9443c['mapper']['unbindElementFromMarkerName'](_0x1df3ce,_0x46f980['markerName']),_0xc9443c['writer']['remove'](_0x1df3ce));}},{'priority':'high'}),_0x5e4146['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x178389,_0x278a63,_0xaa60f6)=>{_0xaa60f6['options']['showSuggestionHighlights']&&_e(_0x5e4146,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x178389,_0x278a63,_0xaa60f6);},{'priority':'high'});}}class J extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x47c8bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c8bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x47c8bf['enableCommand']('findNext'),_0x47c8bf['enableCommand']('findPrevious'),_0x47c8bf['enableCommand']('replace'),_0x47c8bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x2d306f,_0x34f28a,_0x299384={}){const _0x46ab04=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2d306f(_0x2ee991=>('string'==typeof _0x34f28a?_0x46ab04['findByTextCallback'](_0x34f28a,_0x299384):_0x34f28a)(_0x2ee991)['filter'](_0x37d5c0=>!0x1===this['_isInDeletionRange'](_0x37d5c0,_0x2ee991['item'])),_0x299384);}['_isInDeletionRange'](_0x37f11f,_0x92a81d){const _0x576c14=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x92a81d,_0x37f11f['start']),this['editor']['model']['createPositionAt'](_0x92a81d,_0x37f11f['end']));for(const _0x4412de of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x576c14['getIntersection'](_0x4412de['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 _0x5511a1{['afterInit'](){const _0x33d517=this['editor']['locale'],_0xac875e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4815b0,commandName:_0xa3b9f5}of ro)this['editor']['plugins']['has'](_0x4815b0)&&(_0xac875e['enableDefaultAttributesIntegration'](_0xa3b9f5),_0xac875e['registerInlineAttribute'](_0xa3b9f5));_0x33d517['t'],_0xac875e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x33d517,'FORMAT_FONT_SIZE')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x33d517,'FORMAT_FONT_FAMILY')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x33d517,'FORMAT_FONT_COLOR')),_0xac875e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x33d517,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e168f=this['editor'],_0x42ec48=_0x3e168f['locale'];_0x3e168f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4042cd=>{const _0x1241dc=_0x42ec48['t'];if('formatInline'!=_0x4042cd['type'])return;const {data:_0x352c23}=_0x4042cd;if(null!=_0x352c23){if('fontSize'==_0x352c23['commandName']){const _0x1fc363=_0x352c23['commandParams'][0x0]['value'];if(_0x1fc363){const _0x2fd924=_0x1241dc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2030df=>_0x2030df['model']==_0x1fc363)['title'])['toLowerCase']();return{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20size:*\x20%0',_0x2fd924)};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x352c23['commandName']){const _0xe7f3c2=_0x352c23['commandParams'][0x0]['value'];return _0xe7f3c2?{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20family:*\x20%0',_0xe7f3c2)}:{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x352c23['commandName']){const _0x25bbad=_0x352c23['commandParams'][0x0]['value'];if(_0x25bbad){const _0x50e293=_0x20bde1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x254e1d=>_0x254e1d['model']==_0x25bbad);let _0x5a26ec=_0x25bbad,_0x4f0bfd='';return _0x50e293&&(_0x5a26ec=_0x50e293['label'],_0x4f0bfd=_0x1241dc(_0x5a26ec)['toLowerCase']()),{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20color:*\x20%0',_0x4f0bfd)['trim'](),'color':{'value':_0x25bbad,'title':_0x4f0bfd||_0x5a26ec}};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x352c23['commandName']){const _0x3430d3=_0x352c23['commandParams'][0x0]['value'];if(_0x3430d3){const _0x2d835f=_0x20bde1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x33f514=>_0x33f514['model']==_0x3430d3);let _0x2da9c7=_0x3430d3,_0x3a7b99='';return _0x2d835f&&(_0x2da9c7=_0x2d835f['label'],_0x3a7b99=_0x1241dc(_0x2da9c7)['toLowerCase']()),{'type':'format','content':o(_0x42ec48,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a7b99)['trim'](),'color':{'value':_0x3430d3,'title':_0x3a7b99||_0x2da9c7}};}return{'type':'format','content':o(_0x42ec48,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5511a1{['afterInit'](){const _0x3a84b1=this['editor'],_0x42bce0=_0x3a84b1['plugins']['get']('TrackChangesEditing'),_0x29aa0a=_0x3a84b1['commands']['get']('copyFormat'),_0x1214de=_0x3a84b1['commands']['get']('pasteFormat');_0x29aa0a&&_0x1214de&&(_0x42bce0['enableDefaultAttributesIntegration']('pasteFormat'),_0x42bce0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c683d=this['editor'],_0x37637a=_0x2c683d['locale'];_0x2c683d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467ce1=>{if('formatBlock'!=_0x467ce1['type']&&'formatInline'!=_0x467ce1['type'])return;const {data:_0x55144b}=_0x467ce1;if(_0x55144b&&'pasteFormat'===_0x55144b['commandName']){const _0x3c0982=[],_0x3b5c6a=_0x55144b['commandParams'][0x0];for(const [_0x1c69e6,_0x131aa2]of Object['entries'](_0x3b5c6a))_0x3c0982['push'](so(_0x2c683d,_0x1c69e6,_0x131aa2));return _0x3c0982['length']?{'type':'format','content':o(_0x37637a,'*Set\x20format\x20to:*\x20%0',_0x3c0982['join'](',\x20'))}:{'type':'format','content':o(_0x37637a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x384d1c,_0x273ca2,_0x8ba308){const _0xc6dbc4=_0x384d1c['locale']['t'],_0x5d86c6=_0x273ca2['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b494f=_0xc6dbc4(_0x5d86c6['charAt'](0x0)['toUpperCase']()+_0x5d86c6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8ba308)return _0x4b494f;if('fontColor'===_0x273ca2||'fontBackgroundColor'===_0x273ca2){const _0x53bcab=_0x20bde1(_0x384d1c['config']['get']('fontColor.colors'))['find'](_0x4f74b4=>_0x4f74b4['model']==_0x8ba308);return _0x4b494f+'\x20('+(_0x53bcab?_0xc6dbc4(_0x53bcab['label'])['toLowerCase']():_0x8ba308)+')';}if('fontSize'===_0x273ca2&&isNaN(parseFloat(_0x8ba308))){const _0xea7580=_0x384d1c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x384d1c['config']['get']('fontSize.options'))['find'](_0xe01a38=>_0xe01a38['model']==_0x8ba308);return _0x4b494f+'\x20('+(_0xea7580?_0xc6dbc4(_0xea7580['title'])['toLowerCase']():_0x8ba308)+')';}return _0x4b494f+'\x20('+_0x8ba308+')';}class Y extends _0x5511a1{['afterInit'](){const _0xb764bf=this['editor'];if(!_0xb764bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb764bf['config']['get']('heading.options');const _0xd400bf=_0xb764bf['locale'],_0x4288ad=_0xb764bf['plugins']['get']('TrackChangesEditing');_0x4288ad['enableDefaultAttributesIntegration']('heading');for(const _0xc5f3df of this['_headingOptions'])'paragraph'!=_0xc5f3df['model']&&_0x4288ad['descriptionFactory']['registerElementLabel'](_0xc5f3df['model'],_0x55b9f5=>{const _0x31f41e=this['_getHeadingLevel'](_0xc5f3df['model']);return null!==_0x31f41e?_0x43f999(_0x55b9f5,_0x31f41e):_0x1e3f45(_0x55b9f5,_0xc5f3df['title']);});function _0x43f999(_0x2123b1,_0x3c850a){return o(_0xd400bf,'ELEMENT_HEADING',[_0x2123b1,_0x3c850a]);}function _0x1e3f45(_0x23a1fa,_0x2e0ba6){return o(_0xd400bf,'ELEMENT_HEADING_CUSTOM',[_0x23a1fa,_0x2e0ba6]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24e941=this['editor'],_0xbb386d=_0x24e941['locale'];function _0x9dec61(_0xd14bf7,_0x46eadb){return o(_0xbb386d,'ELEMENT_HEADING_CUSTOM',[_0xd14bf7,_0x46eadb]);}_0x24e941['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565dca=>{if('formatBlock'!=_0x565dca['type'])return;const {data:_0x5064ee}=_0x565dca;if(_0x5064ee&&'heading'==_0x5064ee['commandName']){const _0x47481a=_0x5064ee['commandParams'][0x0]['value'],_0x295a3f=this['_getHeadingLevel'](_0x47481a);if(null!==_0x295a3f)return{'type':'format','content':o(_0xbb386d,'*Change\x20to:*\x20%0',(_0x58fdc6=0x1,_0x2432be=_0x295a3f,o(_0xbb386d,'ELEMENT_HEADING',[_0x58fdc6,_0x2432be])))};const _0xe3d7aa=this['_headingOptions']['find'](_0x1649ca=>_0x1649ca['model']===_0x47481a)['title'];return{'type':'format','content':o(_0xbb386d,'*Change\x20to:*\x20%0',_0x9dec61(0x1,_0xe3d7aa))};}var _0x58fdc6,_0x2432be;});}['_getHeadingLevel'](_0xd49d9e){var _0x2714ce,_0x107c05;const _0x480313=_0xd49d9e['match'](/^heading(\d+)/);if(_0x480313)return _0x480313[0x1];const _0x25ed8e=null===(_0x2714ce=this['_headingOptions'])||void 0x0===_0x2714ce?void 0x0:_0x2714ce['find'](_0x29ee67=>_0x29ee67['model']==_0xd49d9e);if(_0x25ed8e&&_0x25ed8e['view']){const _0x407742=_0x25ed8e['view'],_0x176484=(null!==(_0x107c05=_0x407742['name'])&&void 0x0!==_0x107c05?_0x107c05:_0x407742)['match'](/^h(\d+)/);if(_0x176484)return _0x176484[0x1];}return null;}}class Z extends _0x5511a1{['afterInit'](){const _0x235956=this['editor'];if(!_0x235956['plugins']['has']('HighlightEditing'))return;const _0x244671=_0x235956['plugins']['get']('TrackChangesEditing'),_0x104793=_0x235956['locale'];_0x244671['enableDefaultAttributesIntegration']('highlight'),_0x244671['registerInlineAttribute']('highlight'),_0x244671['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x104793,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x340bd7=this['editor'],_0x2aa3a1=_0x340bd7['locale'];_0x340bd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd61f=>{if('formatInline'!=_0x2fd61f['type'])return;const {data:_0x39353f}=_0x2fd61f;if(_0x39353f&&'highlight'==_0x39353f['commandName']){const _0x10d808=_0x2aa3a1['t'],_0x466dcc=_0x39353f['commandParams'][0x0]['value'];if(_0x466dcc){const _0x2f4f15=_0x340bd7['config']['get']('highlight.options')['find'](_0x71ba8=>_0x71ba8['model']==_0x466dcc),_0x526429=_0x10d808(_0x2f4f15['title'])['toLowerCase']();return{'type':'format','content':o(_0x2aa3a1,'*Set\x20highlight:*\x20%0',_0x526429),'color':{'value':_0x2f4f15['color'],'title':_0x2f4f15['title']}};}return{'type':'format','content':o(_0x2aa3a1,'*Remove\x20highlight*',o(_0x2aa3a1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5511a1{['afterInit'](){const _0x2d6c18=this['editor'];if(!_0x2d6c18['plugins']['has']('HorizontalLineEditing'))return;_0x2d6c18['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3165ba=_0x2d6c18['plugins']['get']('TrackChangesEditing'),_0x348137=_0x2d6c18['locale'];_0x3165ba['descriptionFactory']['registerElementLabel']('horizontalLine',_0x21b25f=>o(_0x348137,'ELEMENT_HORIZONTAL_LINE',_0x21b25f)),_0x2d6c18['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x13928a,{writer:_0x3e080a,options:_0x1fb052})=>{if(!_0x1fb052['showSuggestionHighlights'])return null;const _0x4d049d=_0x3e080a['createContainerElement']('div'),_0x311164=_0x3e080a['createEmptyElement']('hr');return _0x3e080a['addClass']('ck-horizontal-line',_0x4d049d),_0x3e080a['insert'](_0x3e080a['createPositionAt'](_0x4d049d,0x0),_0x311164),_0x4d049d;},'converterPriority':'high'});}}class et extends _0x5511a1{['afterInit'](){const _0x48ef3e=this['editor'];if(!_0x48ef3e['plugins']['has']('HtmlEmbed'))return;const _0x36fc64=_0x48ef3e['plugins']['get']('TrackChangesEditing'),_0x2bd7b6=_0x48ef3e['locale'];_0x36fc64['descriptionFactory']['registerElementLabel']('rawHtml',_0x4178fd=>o(_0x2bd7b6,'ELEMENT_HTML_EMBED',_0x4178fd)),_0x36fc64['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36fc64['registerBlockAttribute']('value'),_0x36fc64['descriptionFactory']['registerDescriptionCallback'](_0x58f5c3=>{if('attribute'!=_0x58f5c3['type'])return;const {data:_0x13107e}=_0x58f5c3;if(_0x13107e&&'value'==_0x13107e['key']&&_0x58f5c3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a3e42=o(_0x2bd7b6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2bd7b6,'*Change\x20%0\x20content*',_0x2a3e42)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1961d0=this['editor'],_0x3fd874=_0x1961d0['locale'];_0x1961d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354ec2=>{if('formatBlock'!=_0x354ec2['type'])return;const {data:_0x10ed08}=_0x354ec2;if(_0x10ed08&&'htmlEmbed'==_0x10ed08['commandName']){const _0x3242cd=o(_0x3fd874,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3fd874,'*Change\x20%0\x20content*',_0x3242cd)};}});}}class it extends _0x5511a1{['afterInit'](){const _0x52239e=this['editor'];if(!_0x52239e['plugins']['has']('ImageEditing'))return;const _0x55ae94=_0x52239e['plugins']['get']('TrackChangesEditing'),_0x3da80f=_0x52239e['plugins']['get']('ImageUtils'),_0x7edb00=_0x52239e['locale'];_0x55ae94['enableCommand']('insertImage'),_0x55ae94['descriptionFactory']['registerElementLabel']('imageBlock',_0x36bd3f=>o(_0x7edb00,'ELEMENT_IMAGE',_0x36bd3f)),_0x55ae94['descriptionFactory']['registerElementLabel']('imageInline',_0x4b1e0c=>o(_0x7edb00,'ELEMENT_INLINE_IMAGE',_0x4b1e0c)),_0x55ae94['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7edb00,'ELEMENT_CAPTION')),_0x52239e['plugins']['has']('ImageUploadEditing')&&_0x55ae94['enableCommand']('uploadImage'),_0x52239e['plugins']['has']('ImageBlockEditing')&&_0x52239e['plugins']['has']('ImageInlineEditing')&&(_0x55ae94['enableCommand']('imageTypeInline',(_0x26de56,_0x48e355)=>{const _0x21ec83=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']);_0x52239e['model']['change'](()=>{_0x55ae94['markBlockFormat'](_0x21ec83,{'commandName':'imageTypeInline','commandParams':[_0x48e355]},[],'convertBlockImageToInline');});}),_0x55ae94['enableCommand']('imageTypeBlock',(_0x46918b,_0x2bfcd2)=>{_0x52239e['model']['change'](_0x588acb=>{let _0x3d0356=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x2e969c=_0x588acb['createRangeOn'](_0x3d0356);const _0x5b60b1=_0x583a2a['fromPosition'](_0x2e969c['start'],'toPrevious'),_0x1fd151=_0x583a2a['fromPosition'](_0x2e969c['end'],'toNext');_0x55ae94['forceDefaultExecution'](()=>_0x46918b(_0x2bfcd2)),_0x3d0356=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x2e969c=_0x588acb['createRangeOn'](_0x3d0356);const _0x218a23=_0x588acb['createRange'](_0x5b60b1,_0x1fd151);_0x5b60b1['detach'](),_0x1fd151['detach'](),_0x55ae94['markBlockFormat'](_0x3d0356,{'commandName':'imageTypeInline','commandParams':[_0x2bfcd2]},[],'convertInlineImageToBlock'),_0x218a23['start']['isBefore'](_0x2e969c['start'])&&_0x55ae94['markInsertion'](_0x588acb['createRange'](_0x218a23['start'],_0x2e969c['start']),'convertInlineImageToBlock'),_0x2e969c['end']['isBefore'](_0x218a23['end'])&&_0x55ae94['markInsertion'](_0x588acb['createRange'](_0x2e969c['end'],_0x218a23['end']),'convertInlineImageToBlock');});}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x55ae94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37adcb])=>{const _0x35dc8c=_0x55ae94['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xa6049e=_0x37adcb['start'],_0x1d89ce=_0x37adcb['end'];const _0x5ce5a8=_0x52239e['model']['schema']['getNearestSelectionRange'](_0xa6049e,'backward'),_0x151475=_0x52239e['model']['schema']['getNearestSelectionRange'](_0x1d89ce,'forward');_0x5ce5a8['isCollapsed']&&(_0xa6049e=_0x5ce5a8['start']),_0x151475['isCollapsed']&&(_0x1d89ce=_0x151475['end']),_0x35dc8c([_0x52239e['model']['createRange'](_0xa6049e,_0x1d89ce)]);}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x51f9bc),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x51f9bc)),_0x52239e['plugins']['has']('ImageCaptionEditing')&&(_0x55ae94['enableCommand']('toggleImageCaption',(_0x12190d,_0x1e8741)=>{const _0x4a8d30=_0x52239e['plugins']['get']('ImageCaptionUtils');let _0x5f58db=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x87b824=_0x4a8d30['getCaptionFromImageModelElement'](_0x5f58db);_0x52239e['model']['change'](()=>{if(_0x87b824)return void _0x55ae94['markDeletion'](_0x52239e['model']['createRangeOn'](_0x87b824));const _0x14c3a1=_0x3da80f['isBlockImage'](_0x5f58db);_0x12190d(_0x1e8741),_0x5f58db=_0x3da80f['getClosestSelectedImageElement'](_0x52239e['model']['document']['selection']),_0x87b824=_0x4a8d30['getCaptionFromImageModelElement'](_0x5f58db),_0x55ae94['markInsertion'](_0x52239e['model']['createRangeOn'](_0x87b824),_0x14c3a1?null:'imageCaption');});}),_0x55ae94['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x51f9bc));const _0x3b12f0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ca580(_0x1de827,_0x51866d){const _0x44552e=_0x3b12f0['findIndex'](({type:_0x34c79b,subType:_0x376e18})=>_0x1de827['type']==_0x34c79b&&_0x1de827['subType']==_0x376e18),_0x115c82=_0x3b12f0['findIndex'](({type:_0x87127a,subType:_0x406bd4})=>_0x51866d['type']==_0x87127a&&_0x51866d['subType']==_0x406bd4);if(_0x44552e<0x0||_0x115c82<0x0)return!0x1;const _0x8e5bf0=_0x1de827['getFirstRange'](),_0x13061d=_0x51866d['getFirstRange']();if((0x0==_0x44552e||0x1==_0x44552e)&&0x2==_0x115c82&&_0x8e5bf0['isIntersecting'](_0x13061d))return!0x0;if(0x2==_0x44552e&&0x3==_0x115c82){const _0x389c0a=_0x55ae94['_findSuggestions'](_0x8e5bf0,'insertion')['filter'](({suggestion:_0x33cff6,meta:_0x29236b})=>_0x29236b['isOwn']&&'convertInlineImageToBlock'==_0x33cff6['subType']);if(_0x389c0a['length']>0x1&&_0x13061d['end']['isEqual'](_0x8e5bf0['start']))return!0x0;if(0x1==_0x389c0a['length']&&(_0x8e5bf0['start']['isEqual'](_0x13061d['end'])||_0x8e5bf0['end']['isEqual'](_0x13061d['start'])))return!0x0;}if(0x3==_0x44552e&&0x3==_0x115c82&&_0x8e5bf0['start']['isBefore'](_0x13061d['start'])){const _0x1bda57=_0x8e5bf0['end']['nodeAfter'],_0x517ff4=_0x13061d['start']['nodeBefore'];return _0x3da80f['isBlockImage'](_0x1bda57)&&_0x1bda57===_0x517ff4;}return!0x1;}function _0x51f9bc(_0x3af3f6,_0x37fc7d){return _0x5ca580(_0x3af3f6,_0x37fc7d)?[_0x3af3f6,_0x37fc7d]:_0x5ca580(_0x37fc7d,_0x3af3f6)?[_0x37fc7d,_0x3af3f6]:null;}_0x52239e['plugins']['has']('ImageResize')&&(_0x55ae94['enableDefaultAttributesIntegration']('resizeImage'),_0x55ae94['registerBlockAttribute']('resizedWidth'),_0x55ae94['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7edb00,'FORMAT_IMAGE_SIZE'))),_0x52239e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x55ae94['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x55ae94['registerBlockAttribute']('alt')),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x1bb726=>{if(!!_0x3b12f0['find'](({type:_0x41843a,subType:_0x1250a9})=>_0x1bb726['type']==_0x41843a&&_0x1bb726['subType']==_0x1250a9))return _0x1bb726['previous']?{}:void 0x0;}),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x5d0bfe=>{if('insertion'==_0x5d0bfe['type']||'deletion'==_0x5d0bfe['type']){const _0x53f63c=_0x5d0bfe['getContainedElement']();if(_0x53f63c&&_0x53f63c['is']('element','caption'))return{'type':'insertion'==_0x5d0bfe['type']?'addObject':'removeObject','element':_0x53f63c,'quantity':0x1};}}),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0x37bdd0=>'formatBlock'==_0x37bdd0['type']&&'convertInlineImageToBlock'==_0x37bdd0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37bdd0['type']&&'convertBlockImageToInline'==_0x37bdd0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x55ae94['descriptionFactory']['registerDescriptionCallback'](_0xb20704=>{if('attribute'!=_0xb20704['type'])return;const {data:_0x767885}=_0xb20704;if(!_0x767885||'alt'!=_0x767885['key'])return;const _0x55d11f=_0x767885['newValue'];return _0x55d11f?{'type':'format','content':o(_0x7edb00,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55d11f+'\x22')}:{'type':'format','content':o(_0x7edb00,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcaa416=this['editor'],_0x562ccb=_0xcaa416['locale'];_0xcaa416['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x345c9d=>{if('formatBlock'!=_0x345c9d['type']&&'formatInline'!=_0x345c9d['type'])return;const {data:_0x1b6173}=_0x345c9d;if(_0x1b6173){if('imageTextAlternative'==_0x1b6173['commandName']){const _0x2324c8=_0x1b6173['commandParams'][0x0]['newValue'];return _0x2324c8?{'type':'format','content':o(_0x562ccb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2324c8+'\x22')}:{'type':'format','content':o(_0x562ccb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b6173['commandName']){const _0xe07230=_0x1b6173['commandParams'][0x0]['width'];return _0xe07230?{'type':'format','content':o(_0x562ccb,'*Set\x20image\x20width:*\x20%0',_0xe07230)}:{'type':'format','content':o(_0x562ccb,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ba99c=this['editor']['locale'],_0x461a91=this['editor']['plugins']['get']('TrackChangesEditing');_0x461a91['enableDefaultAttributesIntegration']('replaceImageSource'),_0x461a91['registerBlockAttribute']('src'),_0x461a91['descriptionFactory']['registerDescriptionCallback'](_0x1d4366=>{if('attribute'!=_0x1d4366['type'])return;const {data:_0x48b4cf}=_0x1d4366;return _0x48b4cf&&'src'==_0x48b4cf['key']?_0x48b4cf['newValue']&&_0x48b4cf['oldValue']?{'type':'format','content':o(_0x2ba99c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x210169=this['editor']['plugins']['get']('TrackChangesEditing');_0x210169['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x210169['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210169['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x210169['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1381=this['editor'],_0x149b5e=_0x4d1381['locale'];_0x4d1381['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc9b3bc=>{if('formatBlock'!=_0xc9b3bc['type']&&'formatInline'!=_0xc9b3bc['type'])return;const {data:_0x521c30}=_0xc9b3bc;if(!_0x521c30||'replaceImageSource'!=_0x521c30['commandName'])return;return{'type':'format','content':o(_0x149b5e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5511a1{['afterInit'](){const _0x2acd7a=this['editor'];if(!_0x2acd7a['plugins']['has']('ImageStyleEditing'))return;const _0x327d32=_0x2acd7a['plugins']['get']('TrackChangesEditing'),_0x6e8eb6=_0x2acd7a['plugins']['get']('ImageUtils'),_0x3d7013={};_0x327d32['enableCommand']('imageStyle',(_0x14f7c6,_0x51b880)=>{const _0x1b8fb4=_0x2acd7a['plugins']['get']('Users')['me'],_0x547242=_0x2acd7a['commands']['get']('imageStyle');let _0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),_0xfd1178=_0x2acd7a['model']['createRangeOn'](_0x4f4d7e),_0x5aa104=_0x547242['value'];if(_0x5aa104==_0x51b880['value'])return;const _0xecc462={'commandName':'imageStyle','commandParams':[_0x51b880],'formatGroupId':_0x4c61b3()};_0x2acd7a['model']['change'](()=>{if(_0x327d32['getSuggestions']()['filter'](_0x26c927=>_0x26c927['isInContent']&&_0x1b8fb4==_0x26c927['author']&&('formatBlock'==_0x26c927['type']||'formatInline'==_0x26c927['type'])&&('imageStylePreApply'==_0x26c927['subType']||'imageStylePostApply'==_0x26c927['subType'])&&_0x26c927['getFirstRange']()['isEqual'](_0xfd1178))['forEach'](_0x4f1a99=>_0x327d32['discardSuggestion'](_0x4f1a99['head'])),_0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),_0xfd1178=_0x2acd7a['model']['createRangeOn'](_0x4f4d7e),_0x547242['refresh'](),_0x2acd7a['commands']['get']('imageTypeInline')['refresh'](),_0x2acd7a['commands']['get']('imageTypeBlock')['refresh'](),_0x5aa104=_0x547242['value'],_0x5aa104!=_0x51b880['value'])return _0x6e8eb6['isInlineImage'](_0x4f4d7e)&&_0x547242['shouldConvertImageType'](_0x51b880['value'],_0x4f4d7e)?(_0x14f7c6({..._0x51b880,'setImageSizes':!0x1}),_0x4f4d7e=_0x6e8eb6['getClosestSelectedImageElement'](_0x2acd7a['model']['document']['selection']),void _0x327d32['markBlockFormat'](_0x4f4d7e,{..._0xecc462,'commandReversedParams':[{'value':_0x5aa104||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6e8eb6['isBlockImage'](_0x4f4d7e)?_0x327d32['markBlockFormat'](_0x4f4d7e,_0xecc462,[],'imageStylePostApply'):_0x327d32['markInlineFormat'](_0xfd1178,_0xecc462,'imageStylePostApply'));});});for(const _0x44e1b0 of _0x2acd7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3d7013[_0x44e1b0['name']]=_0x44e1b0['title']['toLowerCase']();_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2500af])=>{_0x6e8eb6['setImageNaturalSizeAttributes'](_0x2500af['getContainedElement']());}),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5e872c,_0x39bcc7)=>{_0x327d32['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5e872c,{'commandName':_0x39bcc7['commandName'],'commandParams':_0x39bcc7['commandReversedParams']});}),_0x327d32['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x448d11,_0x1acad3){if(_0x49d171(_0x448d11,_0x1acad3))return[_0x448d11,_0x1acad3];if(_0x49d171(_0x1acad3,_0x448d11))return[_0x1acad3,_0x448d11];return null;});const _0x29923f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49d171(_0x4ff797,_0x1a09b1){const _0x30d7b0=_0x29923f['findIndex'](({type:_0x5f24f5,subType:_0x23a42b})=>_0x4ff797['type']==_0x5f24f5&&_0x4ff797['subType']==_0x23a42b),_0x4b2c75=_0x29923f['findIndex'](({type:_0x4e9260,subType:_0xcfa0d8})=>_0x1a09b1['type']==_0x4e9260&&_0x1a09b1['subType']==_0xcfa0d8);if(_0x30d7b0<0x0||_0x4b2c75<0x0)return!0x1;const _0x5ba18e=_0x4ff797['getFirstRange'](),_0x1e9b5e=_0x1a09b1['getFirstRange']();if((0x0==_0x30d7b0||0x1==_0x30d7b0)&&0x2==_0x4b2c75&&_0x5ba18e['isIntersecting'](_0x1e9b5e))return!0x0;if(0x2==_0x30d7b0&&0x3==_0x4b2c75){const _0x29f9d6=_0x327d32['_findSuggestions'](_0x5ba18e,'insertion')['filter'](({suggestion:_0x419156,meta:_0x242739})=>_0x242739['isOwn']&&'convertInlineImageToBlock'==_0x419156['subType']);if(_0x29f9d6['length']>0x1&&_0x1e9b5e['end']['isEqual'](_0x5ba18e['start']))return!0x0;if(0x1==_0x29f9d6['length']&&(_0x5ba18e['start']['isEqual'](_0x1e9b5e['end'])||_0x5ba18e['end']['isEqual'](_0x1e9b5e['start'])))return!0x0;}if(0x3==_0x30d7b0&&0x3==_0x4b2c75&&_0x5ba18e['start']['isBefore'](_0x1e9b5e['start'])){const _0x1bf495=_0x5ba18e['end']['nodeAfter'],_0x2ba605=_0x1e9b5e['start']['nodeBefore'];return _0x6e8eb6['isBlockImage'](_0x1bf495)&&_0x1bf495===_0x2ba605;}return!0x1;}_0x2acd7a['model']['document']['registerPostFixer'](()=>{let _0x2e9a47=!0x1;const _0x5653ae=Array['from'](_0x2acd7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42e985,data:_0x5b75b7}of _0x5653ae){const {group:_0x2116be,type:_0xc55033,subType:_0x44ab84,id:_0x11bb31}=_0x327d32['_splitMarkerName'](_0x42e985);if('suggestion'==_0x2116be&&_0x327d32['hasSuggestion'](_0x11bb31)){if('formatBlock'==_0xc55033&&('imageStylePreApply'==_0x44ab84||'imageStylePostApply'==_0x44ab84)){const _0x11670e=_0x327d32['getSuggestion'](_0x11bb31);if(_0x5b75b7['newRange']){const _0xc92ea9=_0x11670e['getFirstRange']()['getContainedElement']();if(_0x6e8eb6['isBlockImage'](_0xc92ea9))continue;_0x327d32['discardSuggestion'](_0x11670e),_0x2e9a47=!0x0;}}if('insertion'==_0xc55033&&'imageCaption'==_0x44ab84&&!_0x5b75b7['newRange']){const _0x392e54=_0x327d32['getSuggestion'](_0x11bb31);_0x392e54['next']&&_0x392e54['next']['isInContent']&&(_0x327d32['discardSuggestion'](_0x392e54['next']),_0x2e9a47=!0x0);}}}return _0x2e9a47;}),this['_registerLegacyDescription'](_0x3d7013);}['_registerLegacyDescription'](_0x2fc5d2){const _0x538a1b=this['editor'],_0xc227e0=_0x538a1b['locale'];_0x538a1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x403d33=>{if('formatBlock'!=_0x403d33['type']&&'formatInline'!=_0x403d33['type'])return;const {data:_0x54a6f6}=_0x403d33;if(!_0x54a6f6||'imageStyle'!=_0x54a6f6['commandName'])return;const _0x2fc860=_0x54a6f6['commandParams'][0x0]['value'];return _0xfdcd7c('side'===_0x2fc860?o(_0xc227e0,'FORMAT_SIDE_IMAGE'):_0x2fc5d2[_0x2fc860]||_0x2fc860);function _0xfdcd7c(_0x52a241){return{'type':'format','content':o(_0xc227e0,'*Format:*\x20%0',_0x52a241)};}});}}class ot extends _0x5511a1{['afterInit'](){const _0x1279b4=this['editor'],_0x35d88c=_0x1279b4['commands']['get']('importWord'),_0xe009b7=_0x1279b4['commands']['get']('trackChanges');_0x35d88c&&(_0x35d88c['on']('execute',(_0x119b96,[,_0x436c65])=>{this['_trackChangesValueDuringImport']=_0xe009b7['value'],_0x436c65['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x35d88c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x35d88c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe009b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1279b4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ecbab,_0x1ec81f){const {suggestions:_0x118274}=_0x1ec81f,_0x1d9a21=this['editor']['commands']['get']('trackChanges'),_0x200753=_0x1d9a21['value'];this['_trackChangesValueDuringImport']!==_0x200753&&(_0x1d9a21['execute'](),this['_trackChangesExecuted']=!0x0),_0x118274&&_0x118274['forEach'](({id:_0x3d6a3c,type:_0x180ff6,author:_0x536f03,created_at:_0x391884})=>{const _0x29dd49={'id':_0x3d6a3c,'type':_0x180ff6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x536f03,'createdAt':_0x391884?new Date(_0x391884):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29dd49);});}constructor(_0x5bee70){super(_0x5bee70),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x5511a1{['afterInit'](){const _0x57ce29=this['editor'],_0x44587f=_0x57ce29['plugins']['get']('TrackChangesEditing');if(_0x57ce29['plugins']['has']('IndentEditing')&&(_0x44587f['enableCommand']('indent'),_0x44587f['enableCommand']('outdent')),_0x57ce29['plugins']['has']('IndentBlock')){for(const _0x1ccfdf of['indentBlock','outdentBlock'])_0x44587f['enableDefaultAttributesIntegration'](_0x1ccfdf);}const _0x1148e1=_0x57ce29['locale'];_0x44587f['registerBlockAttribute']('blockIndent'),_0x44587f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1148e1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d754=this['editor'],_0x295222=_0x52d754['locale'],_0x24a2f6=_0x52d754['plugins']['get']('TrackChangesEditing');_0x24a2f6['descriptionFactory']['registerDescriptionCallback'](_0x2c3f45=>{if('formatBlock'!=_0x2c3f45['type'])return;const {data:_0x101b98}=_0x2c3f45;if(!_0x101b98)return;if('indentBlock'!=_0x101b98['commandName']&&'outdentBlock'!=_0x101b98['commandName'])return;const _0x38a0f1=_0x2c3f45['getItems']()[0x0],_0x9d1e0d=_0x24a2f6['descriptionFactory']['getItemLabel'](_0x38a0f1);return'indentBlock'==_0x101b98['commandName']?{'type':'format','content':o(_0x295222,'*Indent:*\x20%0',_0x9d1e0d)}:'outdentBlock'==_0x101b98['commandName']?{'type':'format','content':o(_0x295222,'*Outdent:*\x20%0',_0x9d1e0d)}:void 0x0;});}}class at extends _0x5511a1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5511a1{['afterInit'](){const _0x2224d6=this['editor'];if(!_0x2224d6['plugins']['has']('LinkEditing'))return;const _0x3d3cd4=_0x2224d6['plugins']['get']('TrackChangesEditing'),_0x35cdce=_0x2224d6['commands']['get']('link');_0x3d3cd4['enableDefaultAttributesIntegration']('link'),_0x3d3cd4['enableDefaultAttributesIntegration']('unlink'),_0x3d3cd4['registerInlineAttribute']('linkHref');for(const _0x67bd1c of _0x35cdce['manualDecorators'])_0x3d3cd4['registerInlineAttribute'](_0x67bd1c['id']),_0x3d3cd4['descriptionFactory']['registerAttributeLabel'](_0x67bd1c['id'],'link\x20('+_0x67bd1c['label']['toLowerCase']()+')');_0x3d3cd4['descriptionFactory']['registerDescriptionCallback'](_0x15dff9=>{if('attribute'!=_0x15dff9['type'])return;const {data:_0x4fba36}=_0x15dff9;if(!_0x4fba36||'linkHref'!=_0x4fba36['key'])return;const _0x4775b5=_0x4fba36['newValue'],_0x4e1414=_0x2224d6['locale'];return{'type':'format','content':null==_0x4775b5?o(_0x4e1414,'*Remove\x20link*'):o(_0x4e1414,'*Set\x20link:*\x20%0','\x22'+_0x4775b5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c28de=this['editor'],_0x19fa15=_0x3c28de['locale'];_0x3c28de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42c871=>{if('formatInline'!=_0x42c871['type'])return;const {data:_0x5046b1}=_0x42c871;if(_0x5046b1){if('link'==_0x5046b1['commandName']){const _0x4e0359=_0x5046b1['commandParams'][0x0];return{'type':'format','content':o(_0x19fa15,'*Set\x20link:*\x20%0','\x22'+_0x4e0359+'\x22')};}return'unlink'==_0x5046b1['commandName']?{'type':'format','content':o(_0x19fa15,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5511a1{['afterInit'](){const _0x1dce58=this['editor'],_0x1671e6=_0x1dce58['locale'];if(!_0x1dce58['plugins']['has']('LegacyListEditing'))return;const _0x43ec4=_0x1dce58['plugins']['get']('TrackChangesEditing'),_0x1abc8b=_0x1dce58['plugins']['has']('LegacyTodoListEditing');function _0x65483d(_0x209299){return()=>{const _0x980e2c=_0x1dce58['model']['document']['selection'],_0x460fcb=_0x1dce58['commands']['get'](_0x209299);if(_0x460fcb['value'])return void _0x1dce58['execute']('paragraph',{});const _0x3dcfdc=_0x209299['slice'](0x0,-0x4),_0x10b5de=function(_0x4ac60d,_0x10d80c,_0x2be87c){let _0x139640=Array['from'](_0x4ac60d)['filter'](_0xa347a=>function(_0x3206bd,_0x438619){return _0x438619['checkChild'](_0x3206bd['parent'],'listItem')&&!_0x438619['isObject'](_0x3206bd);}(_0xa347a,_0x2be87c));_0x139640=_0x139640['filter'](_0x3381c7=>!_0x3381c7['is']('element','listItem')||_0x3381c7['getAttribute']('listType')!=_0x10d80c);const _0x433966=new Set();for(const _0x5b77bc of _0x139640)_0x5b77bc['is']('element','listItem')?_0x433966['add'](me(_0x5b77bc)):_0x433966['add'](_0x5b77bc);return Array['from'](_0x433966);}(_0x980e2c['getSelectedBlocks'](),_0x3dcfdc,_0x1dce58['model']['schema']);_0x1dce58['model']['change'](()=>{for(const _0x5a136e of _0x10b5de)_0x43ec4['markBlockFormat'](_0x5a136e,{'commandName':_0x209299,'commandParams':[{'forceValue':!_0x460fcb['value']}],'formatGroupId':'blockName'},fe(_0x5a136e));});};}function _0x227ffb(_0x6d1215){return()=>{const _0x5ca401=function(_0x148fb5){let _0x503503=Array['from'](_0x148fb5);const _0x6985c7=_0x503503['findIndex'](_0x4b097e=>'listItem'!=_0x4b097e['name']);return _0x6985c7>-0x1&&(_0x503503=_0x503503['slice'](0x0,_0x6985c7)),_0x503503;}(_0x1dce58['model']['document']['selection']['getSelectedBlocks']()),_0x4bd84d=_0x1dce58['model']['createRange'](_0x1dce58['model']['createPositionAt'](_0x5ca401[0x0],'before'),_0x1dce58['model']['createPositionAt'](_0x5ca401[_0x5ca401['length']-0x1],'end'));_0x1dce58['model']['change'](()=>{_0x43ec4['markBlockFormat'](_0x4bd84d,{'commandName':_0x6d1215,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2aa335){const _0x2d8a97=new Set();for(const _0xf20893 of _0x2aa335){let _0x4c4c32=_0xf20893['nextSibling'];for(;_0x4c4c32&&_0x4c4c32['getAttribute']('listIndent')>_0xf20893['getAttribute']('listIndent');)_0x2d8a97['add'](_0x4c4c32),_0x4c4c32=_0x4c4c32['nextSibling'];}return Array['from'](_0x2d8a97);}(_0x5ca401));});};}_0x43ec4['enableCommand']('numberedList',_0x65483d('numberedList')),_0x43ec4['enableCommand']('bulletedList',_0x65483d('bulletedList')),_0x1abc8b&&_0x43ec4['enableCommand']('todoList',_0x65483d('todoList')),_0x43ec4['enableCommand']('indentList',_0x227ffb('indentList')),_0x43ec4['enableCommand']('outdentList',_0x227ffb('outdentList')),_0x1abc8b&&_0x43ec4['enableCommand']('checkTodoList',()=>{const _0x21b4f5=_0x1dce58['commands']['get']('checkTodoList'),_0x4b6535=Array['from'](_0x21b4f5['_selectedElements']);_0x4b6535['filter'](_0x132293=>_0x132293['getAttribute']('todoListChecked')!=_0x21b4f5['value']),_0x1dce58['model']['change'](()=>{for(const _0x3acba2 of _0x4b6535)_0x43ec4['markBlockFormat'](_0x3acba2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x21b4f5['value']}]});});}),_0x43ec4['descriptionFactory']['registerElementLabel']('listItem',_0x23c11d=>o(_0x1671e6,'ELEMENT_LIST_ITEM',_0x23c11d)),_0x43ec4['descriptionFactory']['registerDescriptionCallback'](_0x3bfffa=>{if('formatBlock'!=_0x3bfffa['type']&&'formatInline'!=_0x3bfffa['type'])return;const {data:_0x117ade}=_0x3bfffa;if(_0x117ade){if('numberedList'==_0x117ade['commandName']||'bulletedList'==_0x117ade['commandName']||'todoList'==_0x117ade['commandName'])switch(_0x117ade['commandName']['replace']('List','')){case'bulleted':return _0x1c42df(o(_0x1671e6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c42df(o(_0x1671e6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c42df(o(_0x1671e6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x117ade['commandName'])return{'type':'format','content':o(_0x1671e6,'*Indent:*\x20%0',o(_0x1671e6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x117ade['commandName'])return{'type':'format','content':o(_0x1671e6,'*Outdent:*\x20%0',o(_0x1671e6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x117ade['commandName'])return _0x117ade['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1671e6,'*Check\x20item*')}:{'type':'format','content':o(_0x1671e6,'*Uncheck\x20item*')};}function _0x1c42df(_0xfe3321){return{'type':'format','content':o(_0x1671e6,'*Change\x20to:*\x20%0',_0xfe3321)};}});}}function me(_0x263fdb){const _0x1e7343=_0x263fdb['getAttribute']('listIndent');if(0x0==_0x1e7343)return _0x263fdb;let _0xd311a8=_0x263fdb;for(;_0x263fdb['previousSibling']&&_0x263fdb['previousSibling']['is']('element','listItem');){const _0x46dfc6=_0x263fdb['previousSibling']['getAttribute']('listIndent');if(_0x46dfc6==_0x1e7343)_0xd311a8=_0x263fdb['previousSibling'];else{if(_0x46dfc6<_0x1e7343)break;}_0x263fdb=_0x263fdb['previousSibling'];}return _0xd311a8;}function fe(_0x4c9c7a){const _0xae9fb1=[];if(_0x4c9c7a['is']('element','listItem')&&_0x4c9c7a['getAttribute']('listIndent')>0x0){let _0xb47aaf=_0x4c9c7a['nextSibling'];for(;_0xb47aaf&&'listItem'==_0xb47aaf['name']&&_0xb47aaf['getAttribute']('listIndent')==_0x4c9c7a['getAttribute']('listIndent');)_0xae9fb1['push'](_0xb47aaf),_0xb47aaf=_0xb47aaf['nextSibling'];}return _0xae9fb1;}class K extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2668f2=this['editor']['config']['get']('list.properties'),_0xbe715=this['editor']['plugins']['get']('TrackChangesEditing');_0x2668f2['styles']&&_0xbe715['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2668f2['reversed']&&_0xbe715['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2668f2['startIndex']&&_0xbe715['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xbe715['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x298138,_0x5ccdc5={}){const _0x2a1ac3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eadaf=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a1ac3['markMultiRangeBlockFormat'](_0x5eadaf,{'commandName':'listStyle','commandParams':[{'type':_0x5ccdc5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x547ee7,_0x1a3d0a={}){const _0x25c6be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c4c0=this['_getSuggestionBlocks'](_0x1fafee=>_0x1fafee['is']('element','listItem')&&'numbered'===_0x1fafee['getAttribute']('listType'));if(_0x13c4c0['length']<0x1)return;const _0x155685=_0x13c4c0['map'](_0x4dd7f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dd7f4,'before'),this['editor']['model']['createPositionAt'](_0x4dd7f4,0x0)));this['editor']['model']['change'](()=>{_0x25c6be['markMultiRangeBlockFormat'](_0x155685,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a3d0a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x29890f,_0x1cf98c={}){const _0xfbcc74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3936d2=this['_getSuggestionBlocks'](_0x4cc55a=>_0x4cc55a['is']('element','listItem')&&'numbered'===_0x4cc55a['getAttribute']('listType'));if(_0x3936d2['length']<0x1)return;const _0x300c0e=_0x3936d2['map'](_0x1e5b8d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5b8d,'before'),this['editor']['model']['createPositionAt'](_0x1e5b8d,0x0)));this['editor']['model']['change'](()=>{_0xfbcc74['markMultiRangeBlockFormat'](_0x300c0e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1cf98c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3911e9){if('formatBlock'!=_0x3911e9['type']&&'formatInline'!=_0x3911e9['type'])return;const _0x4ee327=this['editor']['locale'],{data:_0x57f716}=_0x3911e9;if(!_0x57f716)return;let _0x18068a,_0x14e427;switch(_0x57f716['commandName']){case'listStyle':_0x18068a='*Change\x20to:*\x20%0',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a,o(_0x4ee327,this['_getTranslationKeyForListStyle'](_0x57f716['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18068a=_0x57f716['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a)};break;case'listStart':_0x18068a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14e427={'type':'format','content':o(_0x4ee327,_0x18068a,_0x57f716['commandParams'][0x0]['startIndex'])};}return _0x14e427;}['_getSuggestionBlocksForListStyle'](){var _0x54c1f7,_0x256584,_0x17568a,_0x54bb3d;const _0x42d8ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x4103b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x54c1f7=_0x4103b4[0x0])||void 0x0===_0x54c1f7?void 0x0:_0x54c1f7['is']('element','listItem'))&&_0x4103b4['unshift'](..._0x42d8ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x256584=_0x4103b4[_0x4103b4['length']-0x1])||void 0x0===_0x256584?void 0x0:_0x256584['is']('element','listItem'))&&_0x4103b4['push'](..._0x42d8ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4103b4=[...new Set(_0x4103b4)],(null===(_0x54bb3d=null===(_0x17568a=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x17568a?void 0x0:_0x17568a['parent'])||void 0x0===_0x54bb3d?void 0x0:_0x54bb3d['is']('element','listItem'))&&(_0x4103b4=_0x4103b4['filter'](_0x4c6466=>_0x4c6466['is']('element','listItem'))),_0x4103b4;}['_getSuggestionBlocks'](_0x875eff){const _0x1569a5=this['editor']['plugins']['get']('LegacyListUtils');let _0x21dd89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x875eff)['map'](_0x3be3d4=>{const _0x506a3d=this['editor']['model']['createPositionAt'](_0x3be3d4,0x0);return[..._0x1569a5['getSiblingNodes'](_0x506a3d,'backward'),..._0x1569a5['getSiblingNodes'](_0x506a3d,'forward')];})['flat']();return _0x21dd89=[...new Set(_0x21dd89)],_0x21dd89;}['_getTranslationKeyForListStyle'](_0x4576e1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4576e1)||'default')['toUpperCase']()+'_LIST_'+_0x4576e1['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5511a1{['afterInit'](){const _0x3c85b4=this['editor'];if(!_0x3c85b4['plugins']['has']('MediaEmbedEditing'))return;const _0x3f32d8=_0x3c85b4['plugins']['get']('TrackChangesEditing'),_0x5541c6=_0x3c85b4['locale'];_0x3f32d8['enableCommand']('mediaEmbed'),_0x3f32d8['descriptionFactory']['registerElementLabel']('media',_0x27a474=>o(_0x5541c6,'ELEMENT_MEDIA',_0x27a474)),_0x3c85b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4118bf,{writer:_0x547dea,options:_0x56f935})=>{if(_0x56f935['showSuggestionHighlights'])return _0x547dea['createEmptyElement']('div');},'converterPriority':'high'}),_0x3c85b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26a8fe,_0x448fd8,_0x4a2bb5)=>{_0x4a2bb5['options']['showSuggestionHighlights']&&_0x26a8fe['stop']();},{'priority':'high'});}}class gt extends _0x5511a1{['afterInit'](){const _0x374e66=this['editor'];_0x374e66['plugins']['has']('MentionEditing')&&_0x374e66['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5511a1{['afterInit'](){const _0x1fbe80=this['editor'],_0x592b1e=_0x1fbe80['plugins']['get']('TrackChangesEditing');_0x1fbe80['plugins']['has']('MultiLevelList')&&(_0x592b1e['enableDefaultAttributesIntegration']('multiLevelList'),_0x592b1e['registerBlockAttribute']('listMarkerStyle'),_0x592b1e['descriptionFactory']['registerDescriptionCallback'](_0x2e1af3=>this['handleDescriptions'](_0x2e1af3)));}['handleDescriptions'](_0x247d9a){const _0x3f5c84=this['editor']['locale'],{data:_0x47b20e}=_0x247d9a,_0x2289e4={'type':'format','content':''};if(_0x47b20e&&'listMarkerStyle'==_0x47b20e['key']){if(!_0x47b20e['oldValue'])return{'type':'format','content':o(_0x3f5c84,'*Set\x20format:*\x20%0',o(_0x3f5c84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47b20e['newValue']+')'};if(!_0x47b20e['newValue']){let _0x25950e=_0x247d9a['head'];for(;_0x25950e;){if(_0x25950e['data']&&'listType'==_0x25950e['data']['key']&&_0x25950e['data']['newValue'])return _0x2289e4;_0x25950e=_0x25950e['next'];}return{'type':'format','content':o(_0x3f5c84,'*Remove\x20format:*\x20%0',o(_0x3f5c84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x47b20e['oldValue']+')'};}}}}class mt extends _0x5511a1{['afterInit'](){const _0x1f3118=this['editor'];if(!_0x1f3118['plugins']['has']('PageBreakEditing'))return;_0x1f3118['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2dc41c=_0x1f3118['plugins']['get']('TrackChangesEditing'),_0x1ee592=_0x1f3118['locale'];_0x2dc41c['descriptionFactory']['registerElementLabel']('pageBreak',_0x5670b4=>o(_0x1ee592,'ELEMENT_PAGE_BREAK',_0x5670b4));}}class dt extends _0x5511a1{['afterInit'](){const _0x287831=this['editor'];if(!_0x287831['plugins']['has']('Paragraph'))return;const _0x3c6516=_0x287831['locale'],_0x4b7044=_0x287831['plugins']['get']('TrackChangesEditing');_0x4b7044['descriptionFactory']['registerElementLabel']('paragraph',_0x39f8fa=>o(_0x3c6516,'ELEMENT_PARAGRAPH',_0x39f8fa)),_0x4b7044['enableDefaultAttributesIntegration']('paragraph'),_0x4b7044['enableCommand']('insertParagraph'),_0x287831['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x287831),{'priority':'highest'}),_0x287831['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43a3c1,_0x1f2c4c,_0xb721b0)=>{_0xb721b0['options']['showSuggestionHighlights']&&nr(_0x287831,{'showActiveMarker':!0x1})(_0x43a3c1,_0x1f2c4c,_0xb721b0);},{'priority':'highest'});const _0x47a9db=_0x4b7044['descriptionFactory'];_0x47a9db['registerDescriptionCallback'](_0x4016e3=>{if('insertion'!==_0x4016e3['type'])return;const {start:_0x16970b,end:_0x2f91b5}=_0x4016e3['getFirstRange']();if(!_0x16970b['isTouching'](_0x2f91b5)||!_0x16970b['nodeAfter'])return;const _0x1c7573=_0x287831['model']['schema'],_0x53e383=_0x16970b['nodeAfter'];return _0x1c7573['isBlock'](_0x53e383)&&!_0x1c7573['isLimit'](_0x53e383)&&_0x1c7573['checkChild'](_0x53e383,'$text')?{'type':'insertion','content':o(_0x3c6516,'*Insert:*\x20%0',_0x47a9db['getItemLabel'](_0x53e383,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x302132=this['editor'],_0x45f385=_0x302132['locale'];_0x302132['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32c92c=>{if('formatBlock'!=_0x32c92c['type'])return;const {data:_0x28c9d8}=_0x32c92c;return _0x28c9d8&&'paragraph'==_0x28c9d8['commandName']?{'type':'format','content':o(_0x45f385,'*Change\x20to:*\x20%0',o(_0x45f385,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c50d9,{showActiveMarker:_0x5cf783=!0x0}={}){return(_0x3d72d4,_0x174231,_0x4f57bf)=>{const _0x51b8f4=_0x3c50d9['plugins']['get']('TrackChangesEditing'),_0xc43e2a=_0x174231['markerRange']['start'],_0x413912=_0x174231['markerRange']['end'],_0x5744d1=_0x3c50d9['model']['schema'];if(!_0xc43e2a['isTouching'](_0x413912)||!_0xc43e2a['nodeAfter'])return;const _0x5877ec=_0xc43e2a['nodeAfter'];if(_0x5744d1['isBlock'](_0x5877ec)&&!_0x5744d1['isLimit'](_0x5877ec)&&_0x5744d1['checkChild'](_0x5877ec,'$text')){if(!_0x4f57bf['consumable']['consume'](_0x174231['markerRange'],_0x3d72d4['name']))return;const _0x1a10a7=_0x4f57bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18fa44=_0x4f57bf['mapper']['toViewPosition'](_0x413912);_0x5cf783&&_0x51b8f4['activeMarkers']['includes'](_0x174231['markerName'])&&_0x4f57bf['writer']['addClass']('ck-suggestion-marker--active',_0x1a10a7),_0x4f57bf['writer']['insert'](_0x18fa44,_0x1a10a7),_0x4f57bf['mapper']['bindElementToMarker'](_0x1a10a7,_0x174231['markerName']);}};}class pt extends _0x5511a1{['afterInit'](){const _0x398309=this['editor'];if(!_0x398309['plugins']['has']('RemoveFormatEditing'))return;_0x398309['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1229b0=this['editor'];_0x1229b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af86a=>{if('formatBlock'!=_0x1af86a['type']&&'formatInline'!=_0x1af86a['type'])return;const {data:_0x24d1c0}=_0x1af86a;return _0x24d1c0&&'removeFormat'==_0x24d1c0['commandName']?{'type':'format','content':o(_0x1229b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5511a1{['afterInit'](){const _0xa6486e=this['editor'];if(!_0xa6486e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x28d470=_0xa6486e['plugins']['get']('TrackChangesEditing');_0x28d470['enableCommand']('goToPreviousRestrictedEditingException'),_0x28d470['enableCommand']('goToNextRestrictedEditingException');const _0x3c2118=_0xa6486e['plugins']['get']('RestrictedEditingModeEditing');_0x3c2118['enableCommand']('trackChanges'),_0x3c2118['enableCommand']('acceptSuggestion'),_0x3c2118['enableCommand']('discardSuggestion'),_0x3c2118['enableCommand']('acceptAllSuggestions'),_0x3c2118['enableCommand']('discardAllSuggestions'),_0x3c2118['enableCommand']('acceptSelectedSuggestions'),_0x3c2118['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5511a1{static get['requires'](){return[_0x1b9530];}['init'](){const _0x12f95f=this['editor'],_0x5585d2=_0x12f95f['plugins']['get']('TrackChangesEditing');_0x5585d2['enableCommand']('shiftEnter'),_0x12f95f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x12f95f),{'priority':'high'}),_0x12f95f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x12f95f),{'priority':'high'}),_0x12f95f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20a484,_0x5951a8,_0x5092ea)=>{_0x5092ea['options']['showSuggestionHighlights']&&de(_0x12f95f,{'showActiveMarker':!0x1})(_0x20a484,_0x5951a8,_0x5092ea);}),_0x5585d2['descriptionFactory']['registerElementLabel']('softBreak',_0x2c16ce=>o(_0x12f95f['locale'],'ELEMENT_LINE_BREAK',_0x2c16ce));}}function de(_0x25221a,{showActiveMarker:_0x1ce009=!0x0}={}){return(_0x8eb9f7,_0x4f9ba9,_0x46f43e)=>{const _0x1d3de5=_0x25221a['plugins']['get']('TrackChangesEditing');if(!_0x46f43e['consumable']['test'](_0x4f9ba9['markerRange'],_0x8eb9f7['name']))return;const _0x383ffa=_0x25221a['model'];for(const _0x2d97f2 of _0x4f9ba9['markerRange']['getItems']()){if(!_0x2d97f2['is']('element','softBreak'))continue;const _0x46fc5b='deletion'==_0x4f9ba9['markerName']['split'](':')[0x1]?'merge':'split',_0x4d2e72=_0x46f43e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46fc5b}),_0x33af2d=_0x46f43e['mapper']['toViewPosition'](_0x383ffa['createPositionBefore'](_0x2d97f2));_0x1ce009&&_0x1d3de5['activeMarkers']['includes'](_0x4f9ba9['markerName'])&&_0x46f43e['writer']['addClass']('ck-suggestion-marker--active',_0x4d2e72),_0x46f43e['writer']['insert'](_0x33af2d,_0x4d2e72),_0x46f43e['mapper']['bindElementToMarker'](_0x4d2e72,_0x4f9ba9['markerName']);}};}class wt extends _0x5511a1{['afterInit'](){const _0x4889d1=this['editor'],_0x33d331=_0x4889d1['model'],_0x47403f=_0x4889d1['locale'];if(!_0x4889d1['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a9e63=_0x4889d1['plugins']['get']('TrackChangesEditing'),_0x2abb28='restrictedEditingException',_0x4c7cde=_0x4889d1['commands']['get'](_0x2abb28);_0x5a9e63['enableCommand'](_0x2abb28,(_0x3c4542,_0x14f580={})=>{const _0x3508a5=_0x33d331['document']['selection'];if(_0x3508a5['isCollapsed'])return void _0x3c4542(_0x14f580);const _0x353001=void 0x0!==_0x14f580['forceValue']?_0x14f580['forceValue']:!_0x4c7cde['value'];_0x33d331['change'](()=>{const _0x5305ec=Array['from'](_0x3508a5['getRanges']());for(const _0xd8fda8 of _0x5305ec){const _0x4b8af9=_0x353001?[_0xd8fda8]:io(_0x2abb28,_0xd8fda8,_0x33d331);for(const _0x524b1a of _0x4b8af9)_0x5a9e63['markInlineFormat'](_0x524b1a,{'commandName':_0x2abb28,'commandParams':[{'forceValue':_0x353001}]});}});}),_0x5a9e63['descriptionFactory']['registerDescriptionCallback'](_0x3ac3d9=>{if('formatBlock'!=_0x3ac3d9['type']&&'formatInline'!=_0x3ac3d9['type'])return;const {data:_0x3e2a4a}=_0x3ac3d9;return _0x3e2a4a&&_0x3e2a4a['commandName']==_0x2abb28?_0x3e2a4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47403f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x47403f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5511a1{['afterInit'](){const _0x531303=this['editor'];if(!_0x531303['plugins']['has']('Style')||!_0x531303['plugins']['has']('DataSchema'))return;const _0x284976=_0x531303['plugins']['get']('TrackChangesEditing'),_0x50f467=_0x531303['locale'],_0x334350=_0x531303['config']['get']('style')||{},_0xa4872b=_0x531303['plugins']['get']('GeneralHtmlSupport'),_0x630721=_0x531303['plugins']['get']('StyleUtils')['normalizeConfig'](_0x531303['plugins']['get']('DataSchema'),_0x334350['definitions']);_0x284976['enableDefaultAttributesIntegration']('style');const _0x1cd0e1=new Set();for(const _0x1340da of _0x630721['block']){const _0x5639c8=_0xa4872b['getGhsAttributeNameForElement'](_0x1340da['element']);_0x1cd0e1['add'](_0x5639c8);}const _0x1cbcc3=new Set();for(const _0xb1a71e of _0x630721['inline']){const _0x4ee561=_0xa4872b['getGhsAttributeNameForElement'](_0xb1a71e['element']);_0x1cbcc3['add'](_0x4ee561);for(const _0x1b0099 of _0xb1a71e['ghsAttributes'])_0x1cbcc3['add'](_0x1b0099);}for(const _0x497836 of _0x1cd0e1)_0x284976['registerBlockAttribute'](_0x497836),_0x284976['descriptionFactory']['registerAttributeLabel'](_0x497836,o(_0x50f467,'FORMAT_STYLE'));for(const _0x3d932c of _0x1cbcc3)_0x284976['registerInlineAttribute'](_0x3d932c),_0x284976['descriptionFactory']['registerAttributeLabel'](_0x3d932c,o(_0x50f467,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445ae0=this['editor'],_0x4696b1=_0x445ae0['locale'];_0x445ae0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2788d8=>{if('formatBlock'!=_0x2788d8['type']&&'formatInline'!=_0x2788d8['type'])return;const {data:_0x1594da}=_0x2788d8;return _0x1594da&&'style'===_0x1594da['commandName']?_0x1594da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4696b1,'*Set\x20format:*\x20%0',_0x1594da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4696b1,'*Remove\x20format:*\x20%0',_0x1594da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5511a1{['afterInit'](){const _0x20570b=this['editor'],_0x3fbbc6=_0x20570b['model']['document']['selection'];if(!_0x20570b['plugins']['has']('TableEditing'))return;const _0xe1662c=_0x20570b['locale'],_0x357bb0=_0x20570b['plugins']['get']('TrackChangesEditing'),_0x4b76cf=_0x20570b['plugins']['get']('TableUtils');_0x357bb0['descriptionFactory']['registerElementLabel']('table',_0x2c0fb7=>o(_0xe1662c,'ELEMENT_TABLE',_0x2c0fb7)),this['_setupColumnsRowsFixing'](),_0x357bb0['enableCommand']('insertTable'),_0x357bb0['enableCommand']('selectTableRow'),_0x357bb0['enableCommand']('selectTableColumn');for(const _0x3fa5c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x2d3252=_0x20570b['commands']['get'](_0x3fa5c0);_0x357bb0['enableCommand'](_0x3fa5c0,_0x2c1693=>{_0x20570b['model']['change'](_0x1826d6=>{_0x2c1693();const _0x27bfea='above'===_0x2d3252['order'],_0x8531a7=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0x3bd33b=_0x4b76cf['getRowIndexes'](_0x8531a7),_0x434e5e=_0x27bfea?_0x3bd33b['first']-0x1:_0x3bd33b['last']+0x1,_0x25fcdf=_0x8531a7[0x0]['findAncestor']('table'),_0x26eb4a=_0x4b76cf['createTableWalker'](_0x25fcdf,{'startRow':_0x434e5e,'endRow':_0x434e5e}),_0x54eafc=Array['from'](_0x26eb4a)['map'](_0x346275=>_0x1826d6['createRangeOn'](_0x346275['cell']));_0x357bb0['markMultiRangeInsertion'](_0x54eafc,'tableRow');});});}for(const _0x3b9661 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d1be7=_0x20570b['commands']['get'](_0x3b9661);_0x357bb0['enableCommand'](_0x3b9661,_0x3d98d4=>{_0x20570b['model']['change'](_0x296a4a=>{_0x3d98d4();const _0x45e97d='left'===_0x2d1be7['order'],_0x5c450a=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0xe080c3=_0x4b76cf['getColumnIndexes'](_0x5c450a),_0x3791b2=_0x45e97d?_0xe080c3['first']-0x1:_0xe080c3['last']+0x1,_0x145387=_0x5c450a[0x0]['findAncestor']('table'),_0x4f69cc=_0x4b76cf['createTableWalker'](_0x145387,{'startRow':0x0,'column':_0x3791b2,'includeAllSlots':!0x1}),_0x24c378=Array['from'](_0x4f69cc)['map'](_0xbd5449=>_0x296a4a['createRangeOn'](_0xbd5449['cell']));_0x357bb0['markMultiRangeInsertion'](_0x24c378,'tableColumn');});});}for(const _0x27351d of['removeTableRow','removeTableColumn']){const _0x34d441=_0x27351d['substr'](0xb),_0x5a9e2d=_0x34d441['toLowerCase'](),_0x4cf704=_0x5a9e2d['substr'](0x0,0x3)+'span',_0x339342='table'+_0x34d441,_0x4378e6='min'+_0x34d441,_0x37068f='max'+_0x34d441;_0x357bb0['enableCommand'](_0x27351d,()=>{_0x20570b['model']['change'](_0x2aa2f3=>{const _0x39487c=_0x4b76cf['getSelectionAffectedTableCells'](_0x3fbbc6),_0x4279d0=_0x39487c[0x0]['findAncestor']('table');let _0x588452;if('removeTableRow'==_0x27351d){const _0x43fbe1=_0x4b76cf['getRowIndexes'](_0x39487c);_0x588452={'startRow':_0x43fbe1['first'],'endRow':_0x43fbe1['last'],'includeAllSlots':!0x0};}else{const _0x21b069=_0x4b76cf['getColumnIndexes'](_0x39487c);_0x588452={'startColumn':_0x21b069['first'],'endColumn':_0x21b069['last'],'includeAllSlots':!0x0};}const _0x4f8003=_0x4b76cf['createTableWalker'](_0x4279d0,_0x588452),_0x2f8a41=Array['from'](_0x4f8003)['map'](({cell:_0x2c9ec7})=>_0x2c9ec7),_0x2e5027=Ee(_0x2f8a41['filter'](_0x2c9e33=>_0x2c9e33['hasAttribute'](_0x4cf704))),_0x197b80=Ee(_0x2f8a41['filter'](_0x1069c4=>!_0x1069c4['hasAttribute'](_0x4cf704)))['map'](_0x513d42=>_0x2aa2f3['createRangeOn'](_0x513d42)),_0x46fc39=_0x357bb0['markMultiRangeDeletion'](_0x197b80,_0x339342);if(_0x46fc39&&('tableRow'==_0x46fc39['subType']||'tableColumn'==_0x46fc39['subType'])){const _0x141c02=this['_getSuggestionCoords'](_0x46fc39);for(const _0x21b9bc of _0x2e5027){const _0x2442f0=_0x2aa2f3['createRangeOn'](_0x21b9bc),_0x55e6cf=_0x4b76cf['getCellLocation'](_0x21b9bc),_0x34df94=_0x21b9bc['getAttribute'](_0x4cf704)-0x1,_0x201058=_0x141c02[_0x4378e6],_0x59d306=_0x141c02[_0x37068f];_0x201058<=_0x55e6cf[_0x5a9e2d]&&_0x55e6cf[_0x5a9e2d]+_0x34df94<=_0x59d306&&_0x46fc39['addRange'](_0x2442f0);}}});});}function _0x2e1d90(_0x72233){const _0x550e67=Array['from'](_0x3fbbc6['getRanges']())['map'](_0x11f1ec=>_0x2f3de9['fromRange'](_0x11f1ec));_0x20570b['model']['change'](_0x5ab0f8=>{const _0x2c53a3=_0x5ab0f8['batch'];_0x72233=_0x72233['filter'](_0x3df261=>'$graveyard'!=_0x3df261['root']['rootName']),_0x5ab0f8['setSelection'](_0x72233),_0x20570b['commands']['get']('removeTableRow')['refresh'](),_0x20570b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20570b['model']['enqueueChange'](()=>{_0x20570b['model']['enqueueChange'](_0x2c53a3,_0x5a12b2=>{const _0x4df4f5=_0x550e67['filter'](_0x1b5356=>'$graveyard'!=_0x1b5356['root']['rootName']);_0x4df4f5['length']>0x0&&_0x5a12b2['setSelection'](_0x4df4f5);for(const _0x41dc38 of _0x550e67)_0x41dc38['detach']();});});});}function _0x404147(_0x38c3c5){_0x20570b['model']['change'](_0x36f58c=>{const _0x1a7533=Array['from'](_0x3fbbc6['getRanges']())['map'](_0x120a14=>_0x2f3de9['fromRange'](_0x120a14)),_0x8db1f0=[];for(const _0x1acdb0 of _0x38c3c5)for(const _0x27ebfe of _0x1acdb0['getItems']({'shallow':!0x0}))_0x8db1f0['push'](_0x27ebfe);for(const _0x2cbc9c of _0x8db1f0)'$graveyard'!=_0x2cbc9c['root']['rootName']&&(_0x36f58c['setSelection'](_0x36f58c['createPositionAt'](_0x2cbc9c,0x0)),_0x20570b['commands']['get']('removeTableColumn')['refresh'](),_0x20570b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22cda6=_0x1a7533['filter'](_0x51d3cd=>'$graveyard'!=_0x51d3cd['root']['rootName']);_0x22cda6['length']>0x0&&_0x36f58c['setSelection'](_0x22cda6);for(const _0x2d21b6 of _0x1a7533)_0x2d21b6['detach']();});}function _0x58828a(_0x7501d4,_0x15abaf){return _0x15abaf['every'](_0x2d05df=>_0x7501d4['some'](_0x490846=>_0x490846['end']['isEqual'](_0x2d05df['start'])||_0x2d05df['end']['isEqual'](_0x490846['start'])));}function _0x470d5f(_0x587c1c,_0x106b12){return _0x587c1c['some'](_0x2ea13f=>_0x106b12['some'](_0x31d0aa=>_0x2ea13f['end']['isTouching'](_0x31d0aa['start'])));}_0x20570b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15ba63,_0x17921e,_0xa56e81)=>{if(!_0xa56e81['options']['showSuggestionHighlights'])return;const _0x4297ca=_0x17921e['item'];if(!_0x4297ca)return;const _0x191643=_0xa56e81['mapper']['toViewElement'](_0x4297ca);function _0x48dedd(_0x5f318d){return Array['isArray'](_0x5f318d)?_0x5f318d:[_0x5f318d];}_0x191643&&'tableCell'===_0x4297ca['name']&&_0x4fc2c1(_0x191643,_0xa56e81['writer'],(_0xadfdc4,_0x488300,_0xb54333)=>_0xb54333['addClass'](_0x48dedd(_0x488300['classes']),_0xadfdc4),(_0x10f794,_0x86ad73,_0xdc2c64)=>_0xdc2c64['removeClass'](_0x48dedd(_0x86ad73['classes']),_0x10f794));},{'priority':'highest'}),_0x357bb0['descriptionFactory']['registerDescriptionCallback'](_0x13c5cf=>{if('insertion'!=_0x13c5cf['type']&&'deletion'!=_0x13c5cf['type'])return;const _0x3837a0=_0x13c5cf['getContainedElement']();if(null!=_0x3837a0&&_0x3837a0['is']('element','table')){if('insertion'==_0x13c5cf['type']){const _0x4076a9=_0x13c5cf['getItems']()['filter'](_0x48e6a3=>_0x48e6a3['is']('$textProxy'))['map'](_0x35728b=>_0x35728b['data']);if(_0x4076a9['length'])return{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4076a9['join']('\x20')+'\x22'))};}if('deletion'==_0x13c5cf['type']){const _0x51eed5=_0x13c5cf['getItems']()['filter'](_0x353646=>_0x353646['is']('$textProxy'))['map'](_0x46b53e=>_0x46b53e['data']);if(_0x51eed5['length'])return{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51eed5['join']('\x20')+'\x22'))};}}}),_0x357bb0['descriptionFactory']['registerDescriptionCallback'](_0x12cc83=>{if('tableRow'==_0x12cc83['subType']){const _0x3da1d5=_0x12cc83['getItems']()['filter'](_0x5ab082=>_0x5ab082['is']('$textProxy'))['map'](_0x369d76=>_0x369d76['data']),_0xe33e06=this['_getSuggestionCoords'](_0x12cc83),_0x5cb0b2=_0xe33e06['maxRow']-_0xe33e06['minRow']+0x1;if('insertion'==_0x12cc83['type'])return _0x3da1d5['length']?{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb0b2,'\x22'+_0x3da1d5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW',_0x5cb0b2))};if('deletion'==_0x12cc83['type'])return _0x3da1d5['length']?{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cb0b2,'\x22'+_0x3da1d5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_ROW',_0x5cb0b2))};}if('tableColumn'==_0x12cc83['subType']){const _0x217f84=_0x12cc83['getItems']()['filter'](_0x360bb0=>_0x360bb0['is']('$textProxy'))['map'](_0x5c4276=>_0x5c4276['data']),_0x2e8799=this['_getSuggestionCoords'](_0x12cc83),_0x44f53d=_0x2e8799['maxColumn']-_0x2e8799['minColumn']+0x1;if('insertion'==_0x12cc83['type'])return _0x217f84['length']?{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44f53d,'\x22'+_0x217f84['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xe1662c,'*Insert:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN',_0x44f53d))};if('deletion'==_0x12cc83['type'])return _0x217f84['length']?{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44f53d,'\x22'+_0x217f84['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xe1662c,'*Remove:*\x20%0',o(_0xe1662c,'ELEMENT_TABLE_COLUMN',_0x44f53d))};}}),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e1d90),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e1d90),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x404147),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x404147),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58828a),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58828a),_0x357bb0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x470d5f),_0x357bb0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x470d5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37c41d=this['editor'],_0x1bd516=_0x37c41d['model']['document']['selection'];return(_0x2b9ced,_0x1e051c)=>{_0x37c41d['model']['change'](_0x3911bc=>{const {commandName:_0x4de968,commandParams:_0x2e6eab}=_0x1e051c;let _0x20ee94=_0x2b9ced[0x0]['end']['nodeBefore'];_0x2e6eab&&_0x2e6eab[0x0]&&!0x1===_0x2e6eab[0x0]['forceValue']&&(_0x20ee94=_0x2b9ced[0x0]['start']['nodeAfter']);const _0xf40847=_0x3911bc['createRangeIn'](_0x20ee94);if('$graveyard'==_0xf40847['root']['rootName'])return;const _0x35e3f5=Array['from'](_0x1bd516['getRanges']())['map'](_0x187812=>_0x2f3de9['fromRange'](_0x187812));_0x3911bc['setSelection'](_0xf40847),_0x37c41d['commands']['get'](_0x4de968)['refresh'](),_0x2e6eab['push']({'forceDefaultExecution':!0x0}),_0x37c41d['execute'](_0x4de968,..._0x2e6eab);const _0x8b03b=_0x35e3f5['filter'](_0xed21f1=>'$graveyard'!=_0xed21f1['root']['rootName']);_0x8b03b['length']>0x0&&_0x3911bc['setSelection'](_0x8b03b);for(const _0x3b27c2 of _0x35e3f5)_0x3b27c2['detach']();});};}['_getCoordsForCells'](_0x2c60e4){const _0x3a66f6=this['editor']['plugins']['get']('TableUtils');let _0x4a8ad7=Number['MAX_SAFE_INTEGER'],_0x2e56ee=Number['MIN_SAFE_INTEGER'],_0x3ecd90=Number['MAX_SAFE_INTEGER'],_0x4c1b27=Number['MIN_SAFE_INTEGER'];for(const _0x57c1f5 of _0x2c60e4){if('$graveyard'==_0x57c1f5['root']['rootName'])continue;const {row:_0x108a70,column:_0x37feb2}=_0x3a66f6['getCellLocation'](_0x57c1f5),_0x36b63f=_0x57c1f5['hasAttribute']('rowspan')?_0x57c1f5['getAttribute']('rowspan')-0x1:0x0,_0x26f128=_0x57c1f5['hasAttribute']('colspan')?_0x57c1f5['getAttribute']('colspan')-0x1:0x0;_0x4a8ad7=_0x108a70<_0x4a8ad7?_0x108a70:_0x4a8ad7,_0x2e56ee=_0x108a70+_0x36b63f>_0x2e56ee?_0x108a70+_0x36b63f:_0x2e56ee,_0x3ecd90=_0x37feb2<_0x3ecd90?_0x37feb2:_0x3ecd90,_0x4c1b27=_0x37feb2+_0x26f128>_0x4c1b27?_0x37feb2+_0x26f128:_0x4c1b27;}return{'minRow':_0x4a8ad7,'maxRow':_0x2e56ee,'minColumn':_0x3ecd90,'maxColumn':_0x4c1b27};}['_setupColumnsRowsFixing'](){const _0x46f5cc=this['editor'],_0x47f0d9=_0x46f5cc['plugins']['get']('TrackChangesEditing'),_0x21187f=_0x46f5cc['plugins']['get']('TableUtils');_0x46f5cc['model']['document']['on']('change:data',()=>{const _0x59a250=Array['from'](_0x46f5cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe5ca4,data:_0x5949b1}of _0x59a250){const {group:_0x5a3c37,id:_0x29d74b,subType:_0x44025e}=_0x47f0d9['_splitMarkerName'](_0xe5ca4);if('suggestion'!=_0x5a3c37)continue;if(null!=_0x5949b1['oldRange'])continue;const _0x30e1a5=_0x47f0d9['getSuggestion'](_0x29d74b);this['_tablePostFixingSubtypes']['includes'](_0x44025e)&&this['_tableSuggestions']['add'](_0x30e1a5);}},{'priority':'low'});const _0x5ee9e1=(_0x4d6b3f,_0x38f426)=>{let _0x3ea413=!0x1;const _0x2c7021=_0x38f426['createRangeOn'](_0x4d6b3f),_0xd8d8e4=_0x4d6b3f['findAncestor']('table'),_0x6453ae=_0x21187f['getCellLocation'](_0x4d6b3f);for(const _0x32d8e2 of this['_tableSuggestions']){const _0x15fd5a=_0x32d8e2['subType'],_0x54d060=_0x15fd5a['startsWith']('tablePaste'),_0x3f0c9e=_0x15fd5a['substr'](_0x54d060?0xa:0x5),_0x440997=_0x3f0c9e['toLowerCase'](),_0x21ad24=_0x440997['substr'](0x0,0x3)+'span',_0x274df8='min'+_0x3f0c9e,_0x561b91='max'+_0x3f0c9e;if(!_0x32d8e2['isInContent'])continue;if(_0xd8d8e4!=_0x32d8e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32d8e2['isIntersectingWithRange'](_0x2c7021))continue;const _0x4854a4=_0x4d6b3f['hasAttribute'](_0x21ad24)?_0x4d6b3f['getAttribute'](_0x21ad24)-0x1:0x0,_0x2b35e4=this['_getSuggestionCoords'](_0x32d8e2),_0x27c2d3=_0x2b35e4[_0x274df8],_0x1db7e0=_0x2b35e4[_0x561b91];_0x27c2d3<=_0x6453ae[_0x440997]&&_0x6453ae[_0x440997]+_0x4854a4<=_0x1db7e0&&(_0x32d8e2['addRange'](_0x2c7021),_0x3ea413=!0x0);}return _0x3ea413;};_0x46f5cc['model']['document']['registerPostFixer'](_0x3d24ff=>{let _0x5c47c3=!0x1;for(const _0x257c83 of _0x46f5cc['model']['document']['differ']['getChanges']())if('insert'==_0x257c83['type']){if('tableRow'==_0x257c83['name']){for(const _0xf9cbbb of _0x257c83['position']['nodeAfter']['getChildren']())_0x5c47c3=_0x5c47c3||_0x5ee9e1(_0xf9cbbb,_0x3d24ff);}else'tableCell'==_0x257c83['name']&&(_0x5c47c3=_0x5c47c3||_0x5ee9e1(_0x257c83['position']['nodeAfter'],_0x3d24ff));}return _0x5c47c3;});}['_getSuggestionCoords'](_0x3347cd){return this['_getCoordsForCells'](_0x3347cd['getRanges']()['map'](_0x49e65e=>_0x49e65e['start']['nodeAfter']));}constructor(_0x4bdb55){super(_0x4bdb55),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x1e4812){return Array['from'](new Set(_0x1e4812)['values']());}class St extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x27ef7d=this['editor'],_0x54811b=_0x27ef7d['model']['document']['selection'],_0x51dece=_0x27ef7d['locale'];if(!_0x27ef7d['plugins']['has']('TableEditing'))return;const _0x11f9f8=_0x27ef7d['plugins']['get']('TrackChangesEditing'),_0x3fca9f=_0x27ef7d['plugins']['get']('TableUtils'),_0x344a57=_0x27ef7d['plugins']['get'](jt);_0x344a57['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11f9f8['enableCommand']('mergeTableCells',()=>{const _0x5eb1e2=_0x3fca9f['getSelectionAffectedTableCells'](_0x27ef7d['model']['document']['selection']);_0x27ef7d['model']['change'](()=>{_0x11f9f8['markMultiRangeBlockFormat'](_0x5eb1e2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x27ef7d['commands']['get']('mergeTableCells')['on']('execute',(_0x1fc82e,_0x1ea7ce)=>{_0x27ef7d['commands']['get']('trackChanges')['value']&&(_0x1ea7ce['length']>0x0&&_0x1ea7ce[_0x1ea7ce['length']-0x1]&&_0x1ea7ce[_0x1ea7ce['length']-0x1]['forceDefaultExecution']||_0x11f9f8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1fc82e['stop']());},{'priority':'highest'});for(const _0x2ea913 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5d679f=_0x27ef7d['commands']['get'](_0x2ea913);_0x11f9f8['enableCommand'](_0x2ea913,()=>{const _0xe0a5df=_0x27ef7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x363370=>_0x363370['is']('element','tableCell')),_0x3257ed=_0x5d679f['value'];_0x27ef7d['model']['change'](()=>{_0x11f9f8['markMultiRangeBlockFormat']([_0xe0a5df,_0x3257ed],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31254a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57c971=_0x27ef7d['commands']['get'](_0x31254a);_0x11f9f8['enableCommand'](_0x31254a,()=>{const _0xffa4f6=_0x3fca9f['getSelectionAffectedTableCells'](_0x27ef7d['model']['document']['selection'])[0x0],_0xa6ce8f=_0xffa4f6['findAncestor']('table'),{column:_0x3b5853,row:_0x5856eb}=_0x3fca9f['getCellLocation'](_0xffa4f6);let _0x2c922b=[];if('horizontally'==_0x57c971['direction']){const _0x3dd2b9=_0x3fca9f['createTableWalker'](_0xa6ce8f,{'startRow':_0x5856eb,'endRow':_0x5856eb,'includeAllSlots':!0x0});_0x2c922b=Array['from'](_0x3dd2b9)['map'](_0x4a451a=>_0x4a451a['cell']);}else{const _0x4fd56f=_0x3fca9f['createTableWalker'](_0xa6ce8f,{'column':_0x3b5853,'includeAllSlots':!0x0});_0x2c922b=Array['from'](_0x4fd56f)['map'](_0x5736f2=>_0x5736f2['cell']);}_0x27ef7d['model']['change'](_0x3af741=>{_0x11f9f8['markBlockFormat'](_0x3af741['createRangeOn'](_0xffa4f6),{'commandName':_0x31254a,'commandParams':[]},_0x2c922b,_0x31254a);});});}_0x11f9f8['descriptionFactory']['registerDescriptionCallback'](_0x25bb19=>{if('formatBlock'!=_0x25bb19['type']&&'formatInline'!=_0x25bb19['type'])return;const {data:_0x31bb16}=_0x25bb19;return _0x31bb16&&'mergeTableCells'==_0x31bb16['commandName']?{'type':'format','content':o(_0x51dece,'*Merge\x20cells*')}:void 0x0;}),_0x11f9f8['descriptionFactory']['registerDescriptionCallback'](_0x36491f=>{if('formatBlock'!=_0x36491f['type']&&'formatInline'!=_0x36491f['type'])return;const {data:_0x4e4bd5}=_0x36491f;return _0x4e4bd5?'splitTableCellVertically'==_0x4e4bd5['commandName']?{'type':'format','content':o(_0x51dece,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e4bd5['commandName']?{'type':'format','content':o(_0x51dece,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8200a=_0x344a57['_acceptFormatSuggestionCallbackFactory']();for(const _0xe7e75a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe7e75a,'accept',_0x8200a);for(const _0x1b89d6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b89d6,'accept',_0x8200a);_0x11f9f8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12da1d=>{_0x27ef7d['model']['change'](_0x32df99=>{const _0x1fa0ac=Array['from'](_0x54811b['getRanges']())['map'](_0x359a8d=>_0x2f3de9['fromRange'](_0x359a8d));_0x32df99['setSelection'](_0x12da1d),_0x27ef7d['commands']['get']('mergeTableCells')['refresh'](),_0x27ef7d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xcecf62=_0x1fa0ac['filter'](_0x2d39cd=>'$graveyard'!=_0x2d39cd['root']['rootName']);_0xcecf62['length']>0x0&&_0x32df99['setSelection'](_0xcecf62);for(const _0x8528d6 of _0x1fa0ac)_0x8528d6['detach']();});});for(const _0x91d88f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x387d7f=_0x27ef7d['commands']['get'](_0x91d88f);_0x387d7f['on']('set:isEnabled',(_0x5eb05b,_0xf8673d,_0x355073)=>{if(_0x355073){const _0x6e5420=_0x27ef7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23e57c=>_0x23e57c['is']('element','tableCell'));this['_areMergableCells'](_0x387d7f['value'],_0x6e5420)||(_0x5eb05b['return']=!0x1,_0x5eb05b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x173a44=this['editor']['commands']['get']('mergeTableCells'),_0x3b1af4=this['editor']['plugins']['get']('TableUtils');if(!_0x173a44['isEnabled'])return!0x1;const _0x3f2f02=_0x3b1af4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d1f25 of _0x3f2f02)for(const _0x3b4039 of _0x3f2f02)if(_0x4d1f25!=_0x3b4039&&!this['_areMergableCells'](_0x4d1f25,_0x3b4039))return!0x1;return!0x0;}['_areMergableCells'](_0xb9322d,_0x165054){const _0x12cfbd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x575a0e=this['editor']['model']['createRangeOn'](_0xb9322d),_0x3ed972=this['editor']['model']['createRangeOn'](_0x165054),_0x528c13=new Set(),_0x2968fc=new Set();for(const _0x36c578 of _0x12cfbd['getSuggestions']())if(('insertion'==_0x36c578['type']||'deletion'==_0x36c578['type']||'mergeTableCells'==_0x36c578['subType'])&&_0x36c578['isInContent']){for(const _0x51a255 of _0x36c578['getRanges']())_0x51a255['containsRange'](_0x575a0e,!0x0)&&_0x528c13['add'](_0x36c578['type']+':'+_0x36c578['author']['id']),_0x51a255['containsRange'](_0x3ed972,!0x0)&&_0x2968fc['add'](_0x36c578['type']+':'+_0x36c578['author']['id']);}if(_0x528c13['size']!=_0x2968fc['size'])return!0x1;for(const _0xa0b8db of _0x528c13)if(!_0x2968fc['has'](_0xa0b8db))return!0x1;return!0x0;}}class At extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x54fc27=this['editor'];if(!_0x54fc27['plugins']['has']('TableEditing'))return;const _0x475c2a=_0x54fc27['locale'],_0x10963b=_0x54fc27['plugins']['get']('TrackChangesEditing');_0x10963b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10963b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10963b['registerBlockAttribute']('headingRows'),_0x10963b['registerBlockAttribute']('headingColumns'),_0x10963b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x475c2a,'FORMAT_HEADER_ROW')),_0x10963b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x475c2a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45f045=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18ee49=this['editor']['plugins']['get']('TableUtils'),_0x5e90da=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c9546({showActiveMarker:_0x4978d7=!0x0,setDataAttribute:_0x3dde2c=!0x0}={}){return(_0x244485,_0xf3d0d,_0x512e26)=>{const {type:_0x2f7b8a,id:_0x45cc0b}=_0x45f045['_splitMarkerName'](_0xf3d0d['markerName']),_0x37beb1=_0x45f045['getSuggestion'](_0x45cc0b),_0x5838c1=_0x37beb1['data'];if('formatBlock'!=_0x37beb1['type']||!_0x5838c1||'setTableColumnHeader'!=_0x5838c1['commandName'])return;if(_0xf3d0d['item'])return void _0x244485['stop']();if(!_0x512e26['consumable']['consume'](_0xf3d0d['markerRange'],_0x244485['name']))return;const _0x297f40=_0xf3d0d['markerRange']['start']['nodeAfter'],_0x2955f8=_0xf3d0d['markerRange']['end']['nodeBefore'],_0x34a86f=_0x297f40['parent']['parent'],{column:_0x3d4914}=_0x18ee49['getCellLocation'](_0x297f40),{column:_0xcb78e}=_0x18ee49['getCellLocation'](_0x2955f8);for(let _0x135417=_0x3d4914;_0x135417<=_0xcb78e;_0x135417++){const _0x3a6e3d=_0x18ee49['createTableWalker'](_0x34a86f,{'column':_0x135417,'includeAllSlots':!0x1});for(const _0x315494 of _0x3a6e3d){const _0x587f24=_0x315494['cell'],_0x538970=_0x512e26['mapper']['toViewElement'](_0x587f24);_0x512e26['writer']['addClass']('ck-suggestion-marker-'+_0x2f7b8a,_0x538970),_0x3dde2c&&_0x512e26['writer']['setAttribute']('data-suggestion',_0x45cc0b,_0x538970),_0x512e26['mapper']['bindElementToMarker'](_0x538970,_0xf3d0d['markerName']),_0x4978d7&&(_0x45f045['activeMarkers']['includes'](_0xf3d0d['markerName'])?_0x512e26['writer']['addClass']('ck-suggestion-marker--active',_0x538970):_0x512e26['writer']['removeClass']('ck-suggestion-marker--active',_0x538970));}}};}_0x45f045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e90da),_0x45f045['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e90da),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c9546(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24d76c,_0xa118ea,_0x2bd454)=>{_0x2bd454['options']['showSuggestionHighlights']&&_0x3c9546({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24d76c,_0xa118ea,_0x2bd454);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x106ed5,_0x38ad0b,_0x4c50f0)=>{const {type:_0xd3a873,id:_0x1af68b}=_0x45f045['_splitMarkerName'](_0x38ad0b['markerName']),_0x283efe=_0x45f045['getSuggestion'](_0x1af68b),_0x2bc7c5=_0x283efe['data'];if('formatBlock'!=_0x283efe['type']||!_0x2bc7c5||'setTableColumnHeader'!=_0x2bc7c5['commandName'])return;const _0x13694c=_0x4c50f0['mapper']['markerNameToElements'](_0x38ad0b['markerName']);if(_0x13694c){for(const _0x1b5076 of _0x13694c)_0x4c50f0['writer']['removeClass']('ck-suggestion-marker-'+_0xd3a873,_0x1b5076),_0x4c50f0['writer']['removeClass']('ck-suggestion-marker--active',_0x1b5076),_0x4c50f0['writer']['removeAttribute']('data-suggestion',_0x1b5076),_0x4c50f0['mapper']['unbindElementFromMarkerName'](_0x1b5076,_0x38ad0b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21669e=this['editor'],_0x3ccb36=_0x21669e['locale'];function _0x3224b5(_0x57608a){return{'type':'format','content':o(_0x3ccb36,'*Format:*\x20%0',_0x57608a)};}_0x21669e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeabc0a=>{if('formatBlock'!=_0xeabc0a['type'])return;const {data:_0x151328}=_0xeabc0a;if(_0x151328){if('setTableRowHeader'==_0x151328['commandName']){const _0x373faf=_0x151328['commandParams'][0x0]['forceValue'];return _0x3224b5(o(_0x3ccb36,_0x373faf?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x151328['commandName']){const _0x246bb3=_0x151328['commandParams'][0x0]['forceValue'];return _0x3224b5(o(_0x3ccb36,_0x246bb3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4f64e0=>[_0x4f64e0,null]));class It extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x4904d6=this['editor'];if(!_0x4904d6['plugins']['has']('TableClipboard'))return;const _0x7d4d57=_0x4904d6['plugins']['get']('TrackChangesEditing'),_0x41a1b6=_0x4904d6['plugins']['get']('TableUtils'),_0xd8ca26=_0x4904d6['plugins']['get'](jt),_0x4242f9=_0x4904d6['plugins']['get']('TableClipboard');_0xd8ca26['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4904d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4904d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x503fa2=null;_0x4904d6['model']['on']('insertContent',(_0x37f6ed,_0x3e6355)=>{const [_0x4187d1,_0x216630]=_0x3e6355,_0x463a6a=_0x3e6355[_0x3e6355['length']-0x1];_0x463a6a&&_0x463a6a['forceDefaultExecution']||_0x7d4d57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x18ef9f,_0x174dce,_0x468677,_0x4d2abb,_0x3e8448){if(_0x174dce&&!_0x174dce['is']('documentSelection'))return!0x1;const _0x355218=_0x3e8448['getTableIfOnlyTableInContent'](_0x18ef9f,_0x468677);if(!_0x355218||!he(_0x355218,void 0x0,_0x4d2abb))return!0x1;const _0x462ed6=_0x4d2abb['getSelectionAffectedTableCells'](_0x468677['document']['selection']);if(!_0x462ed6['length'])return!0x1;const _0x44ece3=_0x462ed6[0x0]['findAncestor']('table'),_0x2045ab=_0x4d2abb['getRowIndexes'](_0x462ed6),_0x4f0905=_0x4d2abb['getColumnIndexes'](_0x462ed6),_0x47c781={'startRow':_0x2045ab['first'],'endRow':_0x2045ab['last'],'startColumn':_0x4f0905['first'],'endColumn':_0x4f0905['last']};return 0x1==_0x462ed6['length']&&(_0x47c781['endRow']+=_0x4d2abb['getRows'](_0x355218)-0x1,_0x47c781['endColumn']+=_0x4d2abb['getColumns'](_0x355218)-0x1),he(_0x44ece3,_0x47c781,_0x4d2abb);}(_0x4187d1,_0x216630,_0x4904d6['model'],_0x41a1b6,_0x4242f9)&&(_0x37f6ed['stop'](),_0x503fa2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4904d6['model']['change'](()=>{_0x4904d6['model']['insertContent'](_0x3e6355[0x0],_0x3e6355[0x1],_0x3e6355[0x2],{'forceDefaultExecution':!0x0});const _0x95a81c=_0x4c61b3(),{rowInsertionRanges:_0x166266,columnInsertionRanges:_0x10d10b,insertionRanges:_0x4cd057,deletionRanges:_0xb24696,cells:_0x1b8392}=_0x503fa2;_0x166266['length']&&_0x7d4d57['markMultiRangeInsertion'](_0x166266,'tablePasteRow',{'tablePasteChainId':_0x95a81c}),_0x10d10b['length']&&_0x7d4d57['markMultiRangeInsertion'](_0x10d10b,'tablePasteColumn',{'tablePasteChainId':_0x95a81c}),_0x4cd057['length']&&(_0x7d4d57['markMultiRangeInsertion'](_0x4cd057,'tablePaste',{'tablePasteChainId':_0x95a81c,'skipNestingCheck':!0x0}),_0x4cd057['forEach'](_0x35ca89=>{var _0x270691;return null===(_0x270691=_0x35ca89['detach'])||void 0x0===_0x270691?void 0x0:_0x270691['call'](_0x35ca89);})),_0xb24696['length']&&(_0x7d4d57['markMultiRangeDeletion'](_0xb24696,'tablePaste',{'tablePasteChainId':_0x95a81c,'skipNestingCheck':!0x0}),_0xb24696['forEach'](_0x1037d9=>{var _0x2680b5;return null===(_0x2680b5=_0x1037d9['detach'])||void 0x0===_0x2680b5?void 0x0:_0x2680b5['call'](_0x1037d9);}));const _0x32ba73=_0x7d4d57['markMultiRangeBlockFormat'](_0x1b8392['map'](({element:_0x53d5cc})=>_0x53d5cc),{'formatGroupId':_0x4c61b3()},[],'tablePasteCell',{'tablePasteChainId':_0x95a81c});if(_0x32ba73){const _0x2ee3a5=_0x32ba73['getMarkers'](),_0x11ca68=[];for(const {element:_0x44be4e,attributes:_0x3b48c4}of _0x1b8392){if(!_0x3b48c4)continue;const _0x3a4cc0=_0x4904d6['model']['createRangeOn'](_0x44be4e),_0x341aff=_0x2ee3a5['find'](_0x1abef8=>_0x1abef8['getRange']()['isEqual'](_0x3a4cc0));_0x341aff&&_0x11ca68['push']([_0x341aff['name'],_0x3b48c4]);}_0x11ca68['length']&&_0x32ba73['setAttribute']('markerAttributes',Object['fromEntries'](_0x11ca68));}_0x503fa2=null;}));},{'priority':_0x4b8876['high']+0xa}),_0x4904d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x51ba9b,_0x5b5367)=>{const [_0x46fe0d,_0x1bd8bd,,_0xf649b6]=_0x5b5367;if(!_0x503fa2)return;_0x51ba9b['stop']();const _0x3195a8=_0x46fe0d['cell'],_0x388755=_0x1bd8bd,_0x14e179=Pe(_0x3195a8),_0x1ee833=Pe(_0x388755);_0x51ba9b['return']=_0x3195a8;let _0x112a53=null,_0xf5f570=null;if(_0x1ee833||_0x14e179){if(_0x14e179&&!_0x1ee833){_0xf649b6['remove'](_0x3195a8['getChild'](0x0));for(const _0x499625 of Array['from'](_0x388755['getChildren']()))_0xf649b6['insert'](_0x499625,_0x3195a8,'end');const _0x14c38b=_0x503fa2['rowInsertionIndexes']['includes'](_0x46fe0d['row']),_0x2d8545=_0x503fa2['columnInsertionIndexes']['includes'](_0x46fe0d['column']);_0x14c38b||_0x2d8545||(_0x112a53=_0x2f3de9['fromRange'](_0xf649b6['createRangeIn'](_0x3195a8)));}else _0x1ee833&&!_0x14e179&&(_0xf5f570=_0xf649b6['createRangeIn'](_0x3195a8));}else{const _0x4778de=_0xf649b6['createElement']('tableCellSuggestion'),_0x120404=_0xf649b6['createElement']('tableCellSuggestion');_0xf649b6['wrap'](_0xf649b6['createRangeIn'](_0x3195a8),_0x120404),_0xf649b6['insert'](_0x4778de,_0x3195a8,0x0);for(const _0x4760a4 of Array['from'](_0x388755['getChildren']()))_0xf649b6['insert'](_0x4760a4,_0x4778de,'end');_0x112a53=_0x2f3de9['fromRange'](_0xf649b6['createRangeOn'](_0x4778de)),_0xf5f570=_0x2f3de9['fromRange'](_0xf649b6['createRangeOn'](_0x120404));}const _0x1e8bcb=Array['from'](_0x388755['getAttributes']())['filter'](([_0x84bd56])=>ge['includes'](_0x84bd56));_0x503fa2['cells']['push']({'element':_0x3195a8,'attributes':_0x1e8bcb['length']?Object['fromEntries'](_0x1e8bcb):null}),_0x112a53&&_0x503fa2['insertionRanges']['push'](_0x112a53),_0xf5f570&&_0x503fa2['deletionRanges']['push'](_0xf5f570);},{'priority':'high'}),_0x41a1b6['on']('insertColumns',(_0x510cad,_0x549e8d)=>{const [_0x29df6e,_0x10b8fd={}]=_0x549e8d;if(!_0x503fa2)return;const _0x131000=_0x10b8fd['at']||0x0,_0x193bf4=_0x10b8fd['columns']||0x1;_0x503fa2['columnInsertionIndexes']=new Array(_0x193bf4)['fill'](_0x131000)['map']((_0x17777e,_0x5cf887)=>_0x17777e+_0x5cf887);for(const {cell:_0x1a70ff}of _0x41a1b6['createTableWalker'](_0x29df6e,{'startColumn':_0x131000,'endColumn':_0x131000+_0x193bf4-0x1}))_0x503fa2['columnInsertionRanges']['push'](_0x4904d6['model']['createRangeOn'](_0x1a70ff));},{'priority':'low'}),_0x41a1b6['on']('insertRows',(_0x2a9ef8,_0x13aafc)=>{const [_0x405d84,_0x67a0b5={}]=_0x13aafc;if(!_0x503fa2)return;const _0x135a31=_0x67a0b5['at']||0x0,_0x12e871=_0x67a0b5['rows']||0x1;_0x503fa2['rowInsertionIndexes']=new Array(_0x12e871)['fill'](_0x135a31)['map']((_0x446ac5,_0xc2b33a)=>_0x446ac5+_0xc2b33a);for(const {cell:_0x35afb5}of _0x41a1b6['createTableWalker'](_0x405d84,{'startRow':_0x135a31,'endRow':_0x135a31+_0x12e871-0x1}))_0x503fa2['rowInsertionRanges']['push'](_0x4904d6['model']['createRangeOn'](_0x35afb5));},{'priority':'low'}),_0x7d4d57['descriptionFactory']['registerDescriptionCallback'](_0x26862f=>{if(_0x26862f['subType']&&_0x26862f['subType']['startsWith']('tablePaste'))return _0x26862f['previous']?{}:{'type':'insertion','content':o(_0x4904d6['locale'],'*Replace\x20table\x20cells*')};});const _0x2a39a8=()=>!0x1;for(const _0x5c5c69 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c5c69,'join',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('deletion',_0x5c5c69,'join',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c5c69,'join',_0x2a39a8);_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a39a8),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x286535,_0x20bfbd,_0xd57780)=>{const _0x8c86d1=_0x286535['map'](_0x56bb4a=>_0x56bb4a['getContainedElement']())['filter'](_0x1032e3=>_0x1032e3),_0x36b323=new Map(_0x8c86d1['map'](_0x3fc096=>[_0x3fc096,null]));if(_0x503fa2){for(const {element:_0x50691a,attributes:_0x4738ce}of _0x503fa2['cells'])_0x4738ce&&_0x36b323['set'](_0x50691a,_0x4738ce);}else{if(_0xd57780&&_0xd57780['markerAttributes'])for(const [_0x5c3cb6,_0x4419ae]of Object['entries'](_0xd57780['markerAttributes'])){const _0x32d0ea=_0x4904d6['model']['markers']['get'](_0x5c3cb6),_0xd3de20=_0x32d0ea?_0x32d0ea['getRange']()['getContainedElement']():null;_0xd3de20&&_0x36b323['set'](_0xd3de20,_0x4419ae);}}_0x4904d6['model']['change'](_0x38c477=>{for(const [_0x41a6f3,_0x1554d4]of _0x36b323)_0x38c477['setAttributes']({...Ce,..._0x1554d4},_0x41a6f3);});});const _0x4bff1a=(_0xb72c72,_0x121d51)=>{_0x7d4d57['_suggestionFactory']['registerCustomCallback'](_0xb72c72,'tablePaste',_0x121d51,(_0x289ee6,_0x524779,_0x131b08)=>{_0x4904d6['model']['change'](_0x1a2276=>{const _0x530557=[];for(const _0x499e93 of _0x289ee6){const _0x4762cf=_0x499e93['start']['nodeAfter'];_0x4762cf['is']('element','tableCellSuggestion')&&_0x530557['push'](_0x4762cf);}_0x7d4d57['_suggestionFactory']['getSuggestionCallback'](_0xb72c72,null,_0x121d51)(_0x289ee6,_0x524779,_0x131b08);for(const _0x404d07 of _0x530557)'$graveyard'!=_0x404d07['root']['rootName']&&_0x1a2276['unwrap'](_0x404d07);});});};_0x4bff1a('insertion','accept'),_0x4bff1a('insertion','discard'),_0x4bff1a('deletion','accept'),_0x4bff1a('deletion','discard'),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x333bd4=>{const _0x1f2664=_0x333bd4['map'](_0x3beb24=>_0x3beb24['getContainedElement']()),_0x5ee42f=_0x1f2664[0x0]['findAncestor']('table'),{minRow:_0x11f6c0,maxRow:_0x113d81}=_0xd8ca26['_getCoordsForCells'](_0x1f2664);_0x41a1b6['removeRows'](_0x5ee42f,{'at':_0x11f6c0,'rows':_0x113d81-_0x11f6c0+0x1});}),_0x7d4d57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2172e7=>{const _0x46656f=_0x2172e7['map'](_0x1b608b=>_0x1b608b['getContainedElement']()),_0x3eaa06=_0x46656f[0x0]['findAncestor']('table'),{minColumn:_0x56c9bc,maxColumn:_0x12e483}=_0xd8ca26['_getCoordsForCells'](_0x46656f);_0x41a1b6['removeColumns'](_0x3eaa06,{'at':_0x56c9bc,'columns':_0x12e483-_0x56c9bc+0x1});});const _0xc23a63=(_0x466a4c,_0x1d4260)=>{if(!_0x1d4260['subType']||!_0x1d4260['subType']['startsWith']('tablePaste'))return;const _0x470dcc=_0x1d4260['attributes']['tablePasteChainId'],_0x2ff85a=_0x7d4d57['getSuggestions']()['filter'](_0x1c07c5=>_0x1c07c5['isInContent']&&_0x1c07c5['attributes']&&_0x1c07c5['attributes']['tablePasteChainId']==_0x470dcc);_0x2ff85a['length']&&_0x1d4260['getAllAdjacentSuggestions']()['length']!=_0x2ff85a['length']&&_0x2ff85a['reduce']((_0x92fc98,_0x726a3c)=>(_0x92fc98['next']=_0x726a3c,_0x726a3c['previous']=_0x92fc98,_0x726a3c));};function _0x53a8a8(_0x2b70fe,_0x4c3fc1=!0x0){const {id:_0xc9779a}=_0x7d4d57['_splitMarkerName'](_0x2b70fe['markerName']),_0x5eb835=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x19b93c=_0x7d4d57['activeMarkers']['includes'](_0x2b70fe['markerName']);return _0x19b93c&&_0x5eb835['push']('ck-suggestion-marker--active'),{'classes':_0x5eb835,'attributes':{'data-suggestion':_0xc9779a},'priority':_0x19b93c&&_0x4c3fc1?0xbc2:0xbb8};}_0x7d4d57['on']('suggestionLoaded',_0xc23a63,{'priority':'high'}),_0x7d4d57['on']('suggestionUnloaded',_0xc23a63,{'priority':'high'}),_0x4904d6['model']['document']['registerPostFixer'](()=>{let _0x234ef2=!0x1;const _0x5b0476=Array['from'](_0x4904d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bbbe3,data:_0x807946}of _0x5b0476){const {group:_0x4ed083,type:_0x3ad452,id:_0x26e5ab}=_0x7d4d57['_splitMarkerName'](_0x1bbbe3);if('suggestion'!=_0x4ed083||'deletion'!=_0x3ad452||_0x807946['oldRange'])continue;if(!_0x7d4d57['hasSuggestion'](_0x26e5ab))continue;const _0x5c332b=_0x7d4d57['getSuggestion'](_0x26e5ab)['getRanges'](),_0x425761=_0x4904d6['plugins']['get']('Users')['me'];for(const _0x4c5e96 of _0x7d4d57['getSuggestions']()){if(!_0x4c5e96['isInContent']||_0x4c5e96['author']!=_0x425761)continue;if('formatBlock'!=_0x4c5e96['type']||'tablePasteCell'!=_0x4c5e96['subType'])continue;if(_0x4c5e96['getRanges']()['every'](_0x25f36a=>_0x5c332b['some'](_0x5d82f4=>_0x5d82f4['containsRange'](_0x25f36a,!0x0)))){for(const _0x251044 of _0x4c5e96['getAllAdjacentSuggestions']())_0x251044['isInContent']&&(_0x251044['discard'](),_0x234ef2=!0x0);}}}return _0x234ef2;}),_0x4904d6['model']['document']['registerPostFixer'](_0x12fd3f=>{const _0x3609e0=_0x4904d6['commands']['get']('redo');if(!_0x3609e0||!_0x3609e0['_createdBatches']['has'](_0x12fd3f['batch']))return!0x1;let _0x586c5d=!0x1;const _0x3e2f08=_0x4904d6['plugins']['get']('Users')['me'],_0x57fccc=_0x4904d6['model']['document']['differ']['getChanges'](),_0x25730c=Array['from'](_0x4904d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x8179f0,data:_0x51bd5d})=>{const {group:_0x3b517a,subType:_0x5aa4d7,authorId:_0x5582e4}=_0x7d4d57['_splitMarkerName'](_0x8179f0);return'suggestion'==_0x3b517a&&'tablePaste'==_0x5aa4d7&&_0x5582e4==_0x3e2f08['id']&&!_0x51bd5d['oldRange'];});for(const _0x21b708 of _0x57fccc){if('insert'!=_0x21b708['type']||'tableCellSuggestion'!=_0x21b708['name']||0x1!=_0x21b708['length'])continue;const _0x14e29e=_0x12fd3f['createRange'](_0x21b708['position'],_0x21b708['position']['getShiftedBy'](0x1));if(!_0x25730c['find'](({data:_0x2af1d5})=>_0x2af1d5['newRange']['isEqual'](_0x14e29e))){for(const {name:_0x4eeb85,data:_0x250be7}of _0x25730c)if(_0x14e29e['containsRange'](_0x250be7['newRange'])){_0x12fd3f['updateMarker'](_0x4eeb85,{'range':_0x14e29e}),_0x586c5d=!0x0;break;}}}return _0x586c5d;}),_0x4904d6['model']['document']['registerPostFixer'](_0x48cdb1=>{let _0x196d22=!0x1;const _0x3f7b21=_0x4904d6['plugins']['get']('Users')['me'],_0x162811=_0x7d4d57['getSuggestions']()['filter'](_0x3e7a33=>_0x3e7a33['isInContent']&&_0x3e7a33['author']==_0x3f7b21),_0xda59a5=new Set(),_0x58d486=new Set();for(const _0x7d4fd8 of _0x162811)if('tablePaste'==_0x7d4fd8['subType'])for(const _0x5e434f of _0x7d4fd8['getMarkers']()){const _0x4edfe6=_0x5e434f['getRange']()['getContainedElement']();if(_0x4edfe6){if(_0x4edfe6['is']('element','tableCellSuggestion')&&Pe(_0x4edfe6)){_0x7d4fd8['removeMarker'](_0x5e434f['name']),_0xda59a5['add'](_0x4edfe6),_0x196d22=!0x0;const _0x52a742=_0x4edfe6['nextSibling'],_0x50c5e5=_0x4edfe6['previousSibling'],_0x1f96d3=_0x52a742&&_0x52a742['is']('element','tableCellSuggestion'),_0x5a0d2c=_0x50c5e5&&_0x50c5e5['is']('element','tableCellSuggestion');_0x1f96d3&&!_0xda59a5['has'](_0x52a742)&&_0x58d486['add'](_0x52a742),_0x5a0d2c&&!_0xda59a5['has'](_0x50c5e5)&&_0x58d486['add'](_0x50c5e5);}else _0x4edfe6['is']('element','paragraph')&&_0x4edfe6['isEmpty']&&(_0x7d4fd8['removeMarker'](_0x5e434f['name']),_0x196d22=!0x0);}}else{if('tablePasteCell'==_0x7d4fd8['subType']){if(!_0x7d4fd8['attributes']||!_0x7d4fd8['attributes']['tablePasteChainId'])continue;const _0x4a3981=_0x7d4fd8['attributes']['markerAttributes'];if(_0x4a3981&&Object['keys'](_0x4a3981)['length'])continue;const _0x557a11=_0x7d4fd8['attributes']['tablePasteChainId'];let _0x21a204=!0x0,_0x2abb5e=!0x0;for(const _0x12ddac of _0x162811)if(_0x12ddac['subType']&&_0x12ddac['subType']['startsWith']('tablePaste')){if(!_0x12ddac['attributes']['tablePasteChainId']){_0x2abb5e=!0x1;break;}if(_0x12ddac['id']!=_0x7d4fd8['id']&&_0x12ddac['attributes']['tablePasteChainId']==_0x557a11){_0x21a204=!0x1;break;}}_0x2abb5e&&_0x21a204&&(_0x7d4fd8['removeMarkers'](),_0x196d22=!0x0);}}for(const _0x5e6c3d of _0xda59a5)_0x48cdb1['remove'](_0x5e6c3d);for(const _0x1fa37d of _0x58d486)_0x48cdb1['unwrap'](_0x1fa37d);return _0x196d22;}),_0x4904d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x959acf,_0x253595)=>_0x53a8a8(_0x959acf),'converterPriority':'high'}),_0x4904d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e9dfe,_0x2e8183)=>_0x2e8183['options']['showSuggestionHighlights']?_0x53a8a8(_0x2e9dfe,!0x1):null,'converterPriority':'high'});const _0x589929=_0x4904d6['editing']['view'];this['listenTo'](_0x589929['document'],'clipboardOutput',(_0x5c27bb,_0x1edc26)=>{const _0x4c8085=[];for(const _0x50c967 of _0x589929['createRangeIn'](_0x1edc26['content'])['getItems']())_0x50c967['is']('element','suggestion-td')&&_0x4c8085['push'](_0x50c967);_0x589929['change'](_0x425e70=>{for(const _0x4b5280 of _0x4c8085)_0x425e70['move'](_0x425e70['createRangeIn'](_0x4b5280),_0x425e70['createPositionBefore'](_0x4b5280)),_0x425e70['remove'](_0x4b5280);});});}}function Pe(_0x464623){if(_0x464623['isEmpty'])return!0x0;const _0x372ecb=_0x464623['getChild'](0x0);return _0x372ecb['is']('element','paragraph')&&_0x372ecb['isEmpty'];}function he(_0x136557,_0x3df435={},_0x19bf45){for(const {isAnchor:_0x596c95,cellHeight:_0x209751,cellWidth:_0x473172}of _0x19bf45['createTableWalker'](_0x136557,{'includeAllSlots':!0x0,..._0x3df435}))if(!_0x596c95||0x1!=_0x209751||0x1!=_0x473172)return!0x1;return!0x0;}class vt extends _0x5511a1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x456148=this['editor']['plugins']['get']('TrackChangesEditing');_0x456148['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x456148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x456148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x456148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x456148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x456148['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x443b1b,_0x1ec158){const _0x5aa612=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd2bb44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x193a21=_0x1ec158['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7fa22c=_0xd2bb44['getColumnGroupElement'](_0x193a21);let _0x3079d9=_0x7fa22c?_0xd2bb44['getTableColumnsWidths'](_0x7fa22c):null,_0x297704=_0x193a21['getAttribute']('tableWidth')||null;const _0x5bf563=_0x1ec158['tableWidth']||_0x297704,_0x51d65d=_0x1ec158['columnWidths']||_0x3079d9,_0x497463=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c1574 of _0x5aa612['getSuggestions']()){const _0x28df05=_0x5c1574['getContainedElement']();if('resizeTable'===_0x5c1574['subType']&&_0x28df05===_0x193a21){_0x5c1574['author']!==_0x497463&&_0x5c1574['discard']();const _0x1e13fc=_0x5c1574['data']['commandParams'];_0x297704=_0x1e13fc[0x0]['tableWidth'],_0x3079d9=_0x1e13fc[0x0]['columnWidths'];break;}}_0x443b1b({'table':_0x193a21,'tableWidth':_0x5bf563,'columnWidths':_0x51d65d}),_0x5aa612['markBlockFormat'](_0x193a21,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x297704,'columnWidths':_0x3079d9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2d5205){if('formatBlock'!=_0x2d5205['type']&&'formatInline'!=_0x2d5205['type'])return;const {data:_0x1db3ed}=_0x2d5205;if(_0x1db3ed&&'resizeTable'===_0x1db3ed['formatGroupId']){const _0x51198d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51198d)};}}}class _t extends _0x5511a1{['afterInit'](){const _0x2bee96=this['editor'];_0x2bee96['plugins']['has']('Template')&&_0x2bee96['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x5511a1{['afterInit'](){const _0xdf1d66=this['editor'];if(!_0xdf1d66['commands']['get']('insertTableOfContents'))return;_0xdf1d66['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b11fd=_0xdf1d66['plugins']['get']('TrackChangesEditing'),_0x359158=_0xdf1d66['locale'];_0x5b11fd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x138141=>o(_0x359158,'ELEMENT_TABLE_OF_CONTENTS',_0x138141));}}class Dt extends _0x5511a1{['afterInit'](){const _0x55edc8=this['editor'];if(!_0x55edc8['plugins']['has']('Title'))return;const _0x1d3fdf=_0x55edc8['plugins']['get']('TrackChangesEditing');_0x1d3fdf['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55edc8['locale'],'ELEMENT_TITLE')),_0x55edc8['model']['document']['registerPostFixer'](_0x5bbfb6=>{let _0x1d74d6=!0x1;const _0x4aaabb=Array['from'](_0x55edc8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a775e,data:_0x4fb5b7}of _0x4aaabb){const {group:_0x5acc52}=_0x1d3fdf['_splitMarkerName'](_0x2a775e);if('suggestion'!==_0x5acc52||!_0x4fb5b7['newRange'])continue;const _0x14c9a7=_0x4fb5b7['newRange'],_0x2db760=_0x14c9a7['end']['nodeBefore'];if(!_0x2db760||!_0x2db760['is']('element','title-content'))continue;if(!_0x14c9a7['start']['isTouching'](_0x14c9a7['end']))continue;const _0x436eb9=_0x55edc8['model']['schema']['getNearestSelectionRange'](_0x14c9a7['end'],'forward');if(_0x436eb9&&_0x436eb9['isCollapsed']){const _0x54383c=_0x5bbfb6['createRange'](_0x14c9a7['start'],_0x436eb9['start']);_0x54383c['isEqual'](_0x14c9a7)||(_0x5bbfb6['updateMarker'](_0x2a775e,{'range':_0x54383c}),_0x1d74d6=!0x0);}_0x1d74d6||(_0x5bbfb6['removeMarker'](_0x2a775e),_0x1d74d6=!0x0);}return _0x1d74d6;});}}class Nt extends _0x5511a1{['afterInit'](){const _0x4bfd66=this['editor'],_0x2c7acb=_0x4bfd66['plugins']['get']('TrackChangesEditing');_0x4bfd66['plugins']['has']('UndoEditing')&&(_0x2c7acb['enableCommand']('undo'),_0x2c7acb['enableCommand']('redo'));}}class Mt extends _0x5511a1{static get['requires'](){return[jt];}['afterInit'](){const _0x33e0f3=this['editor'];if(!_0x33e0f3['plugins']['has']('TableCaptionEditing'))return;_0x33e0f3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5511a1{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x893514=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2847ee of this['tableProperties'])_0x893514['enableCommand'](_0x2847ee,(_0x642404,_0x22e5bb)=>{const _0x501ab3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2847ee,[_0x501ab3],this['tableProperties'],'tableProperties',_0x642404,_0x22e5bb);});_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x893514['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5032a3,_0x45f0b8)=>this['handleDiscardAction'](this['tableProperties'],_0x5032a3,_0x45f0b8)),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4dacb0 of this['tableCellProperties'])_0x893514['enableCommand'](_0x4dacb0,(_0x22c262,_0x337958)=>{const _0x1897e0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4dacb0,_0x1897e0,this['tableCellProperties'],'tableCellProperties',_0x22c262,_0x337958);});_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x893514['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f9344,_0x23f3af)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f9344,_0x23f3af)),_0x893514['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x893514['descriptionFactory']['registerDescriptionCallback'](_0x284e5e=>this['handleSuggestionDescription'](_0x284e5e));}['_handlePropertyChange'](_0xd48d71,_0x287eca,_0x1e69cb,_0x45e9b4,_0x2ce32d,_0x407f57){const _0x928421=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x407f57['batch'],()=>{for(const _0x19761c of _0x287eca){if(this['_getSuggestion'](_0x19761c,_0x45e9b4))_0x2ce32d(_0x407f57);else{const _0x1e60a9={};for(const _0x5c573d of _0x1e69cb){const _0x4265b0=_0x19761c['getAttribute'](_0x5c573d);void 0x0!==_0x4265b0&&(_0x1e60a9[_0x5c573d]=_0x4265b0);}_0x2ce32d(_0x407f57),_0x928421['markBlockFormat'](_0x19761c,{'commandParams':[_0x1e60a9]},[],_0x45e9b4);}}});}['handleDiscardAction'](_0x720bc6,_0x1e0dae,_0x2016ed){const _0x43981a=_0x1e0dae[0x0]['start']['nodeAfter'],_0x51f7b7=_0x2016ed['commandParams'][0x0];this['editor']['model']['change'](_0x2fd97d=>{for(const _0x35a12e of _0x720bc6)void 0x0!==_0x51f7b7[_0x35a12e]?_0x2fd97d['setAttribute'](_0x35a12e,_0x51f7b7[_0x35a12e],_0x43981a):_0x2fd97d['removeAttribute'](_0x35a12e,_0x43981a);});}['handleSuggestionDescription'](_0x2cf56d){if(_0x2cf56d['data'])switch(_0x2cf56d['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'](_0x4d1ede,_0xe98c74){const _0x1c8ab4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2dd8ee of _0x1c8ab4['getSuggestions']({'skipNotAttached':!0x0})){const _0x22b70b=_0x2dd8ee['getContainedElement']();if(_0x2dd8ee['subType']===_0xe98c74&&_0x22b70b===_0x4d1ede)return _0x2dd8ee;}return null;}constructor(_0xc4c4b7){super(_0xc4c4b7),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 _0x5511a1{static get['requires'](){return['CommentsRepository',_0xd07c79,_0x1cf68b,E,V,U,O,G,F,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';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x4e4a27=this['editor'],_0x2a182a=(_0x52247f,_0x327b1e)=>{if('attribute'!=_0x52247f)return'ck-suggestion-marker-'+_0x52247f;const _0x41a93a=_0x327b1e['split']('|')[0x0];return this['_isBlockAttribute'](_0x41a93a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e4a27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1ebecf=>{const {id:_0x17bbab,type:_0x5f11a4,subType:_0x5f1bea}=this['_splitMarkerName'](_0x1ebecf['markerName']),_0x2d557f=['ck-suggestion-marker',_0x2a182a(_0x5f11a4,_0x5f1bea)];let _0x57e4d0=0xbb8;return this['activeMarkers']['includes'](_0x1ebecf['markerName'])&&(_0x2d557f['push']('ck-suggestion-marker--active'),_0x57e4d0=0xbc2),'deletion'==_0x5f11a4&&(_0x57e4d0+=0x5),{'classes':_0x2d557f,'attributes':{'data-suggestion':_0x17bbab},'priority':_0x57e4d0};}}),_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x10340d=>{_0x10340d['on']('addMarker:suggestion',(_0x11997a,_0xe70bfc,_0x27290d)=>{if(!_0x27290d['options']['showSuggestionHighlights'])return;const _0x2ee726=_0xe70bfc['item'];if(!_0x2ee726)return;const _0x4da709=_0x27290d['mapper']['toViewElement'](_0x2ee726);_0x4e4a27['model']['schema']['isObject'](_0x2ee726)&&_0x4da709&&!_0x4da709['getCustomProperty']('widget')&&_0x4da709['is']('containerElement')&&_0x16e8d3(_0x4da709,_0x27290d['writer']);},{'priority':'high'});}),_0x4e4a27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1a5909,_0x236366)=>{if(!_0x236366['options']['showSuggestionHighlights'])return null;const {type:_0x383911,subType:_0x36cc34}=this['_splitMarkerName'](_0x1a5909['markerName']);return{'classes':['ck-suggestion-marker',_0x2a182a(_0x383911,_0x36cc34)],'priority':0xbb8};}});const _0x23ae1d=({showActiveMarkers:_0x18a9a5=!0x0,isAttributeSuggestion:_0x58d3b6=!0x1}={})=>(_0x2950a8,_0x2feafc,_0x11dcea)=>{if(!_0x2feafc['item'])return;const {id:_0x55856b}=this['_splitMarkerName'](_0x2feafc['markerName']);if(_0x58d3b6){const _0x518014=this['_suggestions']['get'](_0x55856b),_0xa2f604=this['_getAttributeKey'](_0x518014);if(!this['_isBlockAttribute'](_0xa2f604))return;}if(_0x2feafc['item']['is']('selection'))return void _0x11dcea['consumable']['consume'](_0x2feafc['item'],_0x2950a8['name']);const _0x4d0762=_0x11dcea['mapper']['toViewElement'](_0x2feafc['item']);if(_0x2feafc['item']['is']('element')&&_0x4e4a27['model']['schema']['isBlock'](_0x2feafc['item'])&&!_0x4d0762['getCustomProperty']('addHighlight')){_0x11dcea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4d0762),_0x11dcea['writer']['setAttribute']('data-suggestion',_0x55856b,_0x4d0762),_0x11dcea['mapper']['bindElementToMarker'](_0x4d0762,_0x2feafc['markerName']),_0x18a9a5&&(this['activeMarkers']['includes'](_0x2feafc['markerName'])?_0x11dcea['writer']['addClass']('ck-suggestion-marker--active',_0x4d0762):_0x11dcea['writer']['removeClass']('ck-suggestion-marker--active',_0x4d0762));for(const _0x539b7f of _0x4e4a27['model']['createRangeIn'](_0x2feafc['item'])['getItems']())_0x11dcea['consumable']['consume'](_0x539b7f,_0x2950a8['name']);_0x11dcea['consumable']['consume'](_0x2feafc['item'],_0x2950a8['name']);}};_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x51b543=>{_0x51b543['on']('addMarker:suggestion:formatBlock',(_0xf5f4d2,_0x290e06,_0x12ff88)=>{_0x12ff88['options']['showSuggestionHighlights']&&_0x23ae1d({'showActiveMarkers':!0x1})(_0xf5f4d2,_0x290e06,_0x12ff88);},{'priority':'highest'});}),_0x4e4a27['conversion']['for']('dataDowncast')['add'](_0x303501=>{_0x303501['on']('addMarker:suggestion:attribute',(_0x27efef,_0x27bdde,_0x2ec46a)=>{_0x2ec46a['options']['showSuggestionHighlights']&&_0x23ae1d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27efef,_0x27bdde,_0x2ec46a);},{'priority':'highest'});}),_0x4e4a27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3fa008,_0x3b640d)=>_0x3b640d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3fa008['substr'](0xb)}}),_0x4e4a27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32a601,{writer:_0x43efb7})=>{let _0x471f13='suggestion:'+_0x32a601['getAttribute']('suggestion-type')+':'+_0x32a601['getAttribute']('id');return _0x32a601['getAttribute']('marker-count')&&(_0x471f13+=':'+_0x32a601['getAttribute']('marker-count')),_0x43efb7['createElement']('$marker',{'data-name':_0x471f13});}}),_0x4e4a27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x8c87ae=>{_0x8c87ae['on']('addMarker:suggestion:formatBlock',_0x23ae1d(),{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x28e5be=>{_0x28e5be['on']('addMarker:suggestion:attribute',_0x23ae1d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x5a16a2=>{_0x5a16a2['on']('removeMarker:suggestion:formatBlock',(_0x47b2d8,_0x59be2c,_0x514a95)=>{const _0x24d05a=_0x514a95['mapper']['markerNameToElements'](_0x59be2c['markerName']);if(_0x24d05a){for(const _0x345aec of _0x24d05a)_0x345aec['getCustomProperty']('addHighlight')||(_0x514a95['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x345aec),_0x514a95['writer']['removeAttribute']('data-suggestion',_0x345aec),_0x514a95['mapper']['unbindElementFromMarkerName'](_0x345aec,_0x59be2c['markerName']));}},{'priority':'high'});}),_0x4e4a27['conversion']['for']('editingDowncast')['add'](_0x4a8c96=>{_0x4a8c96['on']('removeMarker:suggestion:attribute',(_0x5a891f,_0x9a166,_0x1b3b85)=>{const _0x128416=_0x1b3b85['mapper']['markerNameToElements'](_0x9a166['markerName']);if(!_0x128416)return;const {id:_0x225691}=this['_splitMarkerName'](_0x9a166['markerName']),_0x20c88e=this['_suggestions']['get'](_0x225691),_0x3de158=this['_getAttributeKey'](_0x20c88e);if(this['_isBlockAttribute'](_0x3de158)){for(const _0xe10997 of _0x128416)_0xe10997['getCustomProperty']('addHighlight')||(_0x1b3b85['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe10997),_0x1b3b85['writer']['removeAttribute']('data-suggestion',_0xe10997),_0x1b3b85['mapper']['unbindElementFromMarkerName'](_0xe10997,_0x9a166['markerName']));}},{'priority':'high'});}),_0x4e4a27['model']['document']['registerPostFixer'](_0x1c585b=>{let _0x2c931d=!0x1;const _0x3556a3=Array['from'](_0x4e4a27['model']['document']['differ']['getChangedMarkers']()),_0x2c756e=new Set();for(const {name:_0x359c9e,data:_0x289a17}of _0x3556a3){const {group:_0x4ba0d4,type:_0x5f49e8,subType:_0x3f0e36,id:_0x4032b3}=this['_splitMarkerName'](_0x359c9e);if('suggestion'!==_0x4ba0d4)continue;const _0x79a185=this['_suggestions']['get'](_0x4032b3);if(null!=_0x289a17['newRange']){'formatInline'==_0x5f49e8&&(_0x2c931d=_0x2c931d||Et(_0x289a17['newRange'],_0x359c9e,_0x1c585b,_0x4e4a27['model']['schema']));const _0xf542df='attribute'==_0x5f49e8&&this['_isBlockAttribute'](_0x3f0e36['split']('|')[0x0]);if(_0x289a17['newRange']['isCollapsed']||'$graveyard'==_0x289a17['newRange']['root']['rootName']||'formatBlock'==_0x5f49e8&&!Ut(_0x289a17['newRange'])||_0xf542df&&!Ut(_0x289a17['newRange'])||'deletion'==_0x5f49e8&&!(!Tt(_0x4f225a=_0x289a17['newRange'])&&!function(_0x38f7e6){return _0x38f7e6['start']['parent']==_0x38f7e6['end']['nodeBefore']&&_0x38f7e6['start']['isAtEnd'];}(_0x4f225a)))_0x1c585b['removeMarker'](_0x359c9e),_0x2c931d=!0x0;else{if(!_0x79a185||!_0x79a185['isInContent'])continue;_0x2c756e['add'](_0x79a185);}}}var _0x4f225a;return _0x2c756e['size']>0x0&&(_0x2c931d=!!this['_joinWithAdjacentSuggestions'](_0x2c756e)||_0x2c931d),_0x2c931d;}),_0x4e4a27['model']['document']['registerPostFixer'](_0xb7c64e=>{let _0x371e69=!0x1;for(const _0x2e152d of _0x4e4a27['model']['document']['differ']['getChanges']())if('insert'==_0x2e152d['type'])for(const _0x56591c of this['_suggestions']['values']()){if(_0x56591c['isMultiRange']||!_0x56591c['isInContent'])continue;const _0x196f09='formatBlock'==_0x56591c['type'],_0x1cc561=this['_getAttributeKey'](_0x56591c),_0x1bb870=_0x1cc561&&this['_isBlockAttribute'](_0x1cc561);if(!_0x196f09&&!_0x1bb870)continue;const _0x12bcf0=_0x56591c['getFirstRange']();if(_0x12bcf0['start']['parent']!=_0x12bcf0['end']['parent']&&!_0x12bcf0['end']['isAtEnd']){const _0x519195=_0x4e4a27['model']['createPositionAt'](_0x12bcf0['start']['nodeAfter'],'end'),_0x39812d=_0x4e4a27['model']['createRange'](_0x12bcf0['start'],_0x519195);_0xb7c64e['updateMarker'](_0x56591c['getFirstMarker'](),{'range':_0x39812d}),_0x371e69=!0x0;}}return _0x371e69;}),_0x4e4a27['model']['document']['registerPostFixer'](_0x4737fd=>this['_processAttributeChanges'](_0x4737fd)),_0x4e4a27['model']['document']['registerPostFixer'](_0x12779a=>!_0x12779a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x12779a)),_0x4e4a27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e4a27['model']['document']['on']('change:data',(_0x2377a3,_0x17929b)=>{if(!_0x17929b['isLocal']||_0x17929b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a9522=_0x4e4a27['model']['document']['differ']['getChanges']();if(0x0==_0x4a9522['length'])return;const _0x29725e=[],_0x7d6684=_0x4a9522['filter'](_0x100077=>'attribute'==_0x100077['type']),_0x546af2=_0x4a9522['filter'](_0x576157=>'insert'==_0x576157['type']&&'$text'!=_0x576157['name']),_0x229297=_0x4a9522['filter'](_0x31d70f=>'remove'==_0x31d70f['type']&&'$text'!=_0x31d70f['name']);for(const _0x5169e1 of _0x7d6684)this['_isRegisteredAttribute'](_0x5169e1['attributeKey'])&&_0x29725e['push']({'key':_0x5169e1['attributeKey'],'newValue':_0x5169e1['attributeNewValue'],'oldValue':_0x5169e1['attributeOldValue'],'range':Ot(_0x5169e1['range'],_0x4e4a27['model'])});for(const _0x20952f of _0x546af2){const _0x40bb5c=_0x229297['find'](_0x46af23=>_0x46af23['_element']===_0x20952f['_element']);if(_0x40bb5c){const _0x4adf65=Ft(_0x20952f['position']['nodeAfter'],_0x4e4a27['model']);_0x40bb5c['name']!==_0x20952f['name']&&_0x29725e['push']({'key':m,'newValue':_0x20952f['name'],'oldValue':_0x40bb5c['name'],'range':_0x4adf65});for(const [_0x314208,_0x4005e7]of _0x40bb5c['attributes']){if(!this['_isRegisteredAttribute'](_0x314208))continue;const _0x1b607f=_0x20952f['attributes']['get'](_0x314208);_0x4005e7!==_0x1b607f&&_0x29725e['push']({'key':_0x314208,'newValue':_0x1b607f,'oldValue':_0x4005e7,'range':_0x4adf65});}for(const [_0xabd6f0,_0x159d6f]of _0x20952f['attributes'])this['_isRegisteredAttribute'](_0xabd6f0)&&(_0x40bb5c['attributes']['has'](_0xabd6f0)||_0x29725e['push']({'key':_0xabd6f0,'newValue':_0x159d6f,'oldValue':null,'range':_0x4adf65}));}}0x0!=_0x29725e['length']&&_0x4e4a27['model']['enqueueChange'](_0x17929b,_0x76754d=>{const _0x4b8e5e=_0x4c61b3();for(const {range:_0x3deae4,key:_0x29b45c,oldValue:_0x21024a,newValue:_0x1ab1c2}of _0x29725e)this['markAttributeChange'](_0x3deae4,_0x29b45c,_0x21024a,_0x1ab1c2,{'groupId':_0x4b8e5e});this['_reduceExistingSuggestions'](_0x76754d,_0x29725e);});},{'priority':'lowest'}),_0x4e4a27['model']['markers']['on']('update:suggestion',(_0x365201,_0x5db660,_0x5d56ae)=>{if(null==_0x5d56ae){const {id:_0x1b4c48}=this['_splitMarkerName'](_0x5db660['name']),_0x48d6f6=this['_suggestions']['get'](_0x1b4c48);_0x48d6f6&&_0x48d6f6['addMarkerName'](_0x5db660['name']);}}),_0x4e4a27['model']['document']['on']('change:data',()=>{const _0x23f22a=Array['from'](_0x4e4a27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46bc76=>'suggestion'===this['_splitMarkerName'](_0x46bc76['name'])['group']);if(0x0===_0x23f22a['length'])return;_0x23f22a['sort']((_0x22257e,_0x413518)=>{const _0x9809d4=_0x22257e['data']['oldRange'],_0x524f59=_0x413518['data']['oldRange'];return null===_0x9809d4&&null===_0x524f59?0x0:null===_0x9809d4&&null!==_0x524f59?-0x1:null!==_0x9809d4&&null===_0x524f59?0x1:_0x9809d4['start']['isBefore'](_0x524f59['start'])?-0x1:0x1;});const _0x4dc9cd=new Set(),_0x5b10ac=new Set();for(const {name:_0x2ed4cb,data:_0x737b00}of _0x23f22a){const {id:_0x1449b1}=this['_splitMarkerName'](_0x2ed4cb);if(null===_0x737b00['oldRange']){const _0x53a633=this['_handleNewSuggestionMarker'](_0x2ed4cb);_0x5b10ac['add'](_0x53a633);}else{const _0x28d466=this['_suggestions']['get'](_0x1449b1);null!==_0x737b00['newRange']||_0x28d466['isInContent']?(_0x4dc9cd['add'](_0x28d466['head']),_0x5b10ac['add'](_0x28d466)):this['_removeSuggestion'](_0x28d466);}}_0x5b10ac['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b10ac);for(const _0x113b0b of _0x4dc9cd)this['fire']('suggestionChanged',_0x113b0b);}),_0x4e4a27['model']['on']('applyOperation',(_0xa7a0e7,_0x1ad1a2)=>{const _0xb1497a=_0x1ad1a2[0x0];if(!this['_suggestions']['size'])return;if(!_0xb1497a['isDocumentOperation'])return;if(_0xb1497a['batch']['isUndo']||!_0xb1497a['batch']['isLocal'])return;let _0x38ae61,_0x4051b3;switch(_0xb1497a['type']){case'insert':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['position']),_0x4051b3=_0x38ae61['getShiftedBy'](_0xb1497a['howMany']);break;case'split':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['splitPosition']),_0x4051b3=_0x4e4a27['model']['createPositionAt'](_0xb1497a['moveTargetPosition']);break;case'move':_0x38ae61=_0x4e4a27['model']['createPositionAt'](_0xb1497a['targetPosition']),_0x4051b3=_0x38ae61['getShiftedBy'](_0xb1497a['howMany']);break;default:return;}const _0x43b228=_0x4e4a27['model']['createRange'](_0x38ae61,_0x4051b3);_0x4e4a27['model']['change'](()=>{for(const {suggestion:_0xff9da5,meta:_0x11f453}of this['_findSuggestions'](_0x43b228)){if(_0xff9da5['isMultiRange'])continue;if('formatInline'==_0xff9da5['type'])continue;const _0x22921b=this['_getAttributeKey'](_0xff9da5);if(_0x22921b&&this['_isBlockAttribute'](_0x22921b)&&'split'!=_0xb1497a['type'])continue;const _0x5c748d=_0xff9da5['data']&&_0xff9da5['data']['multipleBlocks'];('formatBlock'!=_0xff9da5['type']||'split'==_0xb1497a['type']&&!_0x5c748d)&&(_0x11f453['containsRangeInObject']||'insertion'==_0xff9da5['type']&&_0x11f453['isOwn']||_0xff9da5['getFirstRange']()['containsRange'](_0x43b228)&&this['_breakSuggestionMarker'](_0xff9da5,_0x38ae61,_0x4051b3));}});},{'priority':'lowest'}),_0x4e4a27['model']['on']('deleteContent',(_0x26e115,_0x5c4194)=>{const _0x5eb3c1=_0x5c4194[0x0],_0x175559=_0x5c4194[0x1];if(_0x175559&&_0x175559['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eb3c1['isCollapsed'])return;const _0x19f85b=_0x4e4a27['model']['schema'],{start:_0x34ee64,end:_0x7bb222}=_0x5eb3c1['getFirstRange'](),_0x75b9cd=_0x34ee64['nodeAfter']&&_0x19f85b['isLimit'](_0x34ee64['nodeAfter'])?null:_0x19f85b['getNearestSelectionRange'](_0x34ee64,'forward'),_0x21f2c2=_0x7bb222['nodeBefore']&&_0x19f85b['isLimit'](_0x7bb222['nodeBefore'])?null:_0x19f85b['getNearestSelectionRange'](_0x7bb222,'backward'),_0x5b8b99=_0x4e4a27['model']['createRange'](_0x75b9cd?_0x75b9cd['start']:_0x34ee64,_0x21f2c2?_0x21f2c2['end']:_0x7bb222);_0x4e4a27['model']['change'](_0x4322e1=>{this['markDeletion'](_0x5b8b99);const _0x217945=_0x4e4a27['model']['schema']['getNearestSelectionRange'](_0x5b8b99['start']);_0x5eb3c1['is']('documentSelection')?_0x4322e1['setSelection'](_0x217945):_0x5eb3c1['setTo'](_0x217945);}),_0x26e115['stop']();},{'priority':_0x4b8876['normal']+0xa}),_0x4e4a27['model']['on']('insertContent',(_0x1f56ef,_0x3bb1c5)=>{const _0x436208=_0x3bb1c5[_0x3bb1c5['length']-0x1];_0x436208&&_0x436208['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e4a27['model']['change'](()=>{let _0x279b6d=_0x4e4a27['model']['insertContent'](_0x3bb1c5[0x0],_0x3bb1c5[0x1],_0x3bb1c5[0x2],{'forceDefaultExecution':!0x0});if(!_0x279b6d)return;_0x1f56ef['return']=_0x279b6d['clone']();const _0x3a9fb3=_0x279b6d['end']['nodeBefore'],_0x34e426=_0x4e4a27['model']['schema'];_0x3a9fb3&&_0x34e426['isBlock'](_0x3a9fb3)&&!_0x34e426['isObject'](_0x3a9fb3)&&(_0x279b6d=_0x4e4a27['model']['createRange'](_0x279b6d['start'],_0x4e4a27['model']['createPositionAt'](_0x3a9fb3,'end'))),this['markInsertion'](_0x279b6d);}),_0x1f56ef['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdccfc0=new $(_0x4e4a27,this['_suggestions']);_0x4e4a27['commands']['add']('acceptSuggestion',_0xdccfc0),this['enableCommand']('acceptSuggestion');const _0xb48b5c=new B(_0x4e4a27,this['_suggestions']);_0x4e4a27['commands']['add']('discardSuggestion',_0xb48b5c),this['enableCommand']('discardSuggestion'),_0x4e4a27['commands']['add']('acceptAllSuggestions',new x(_0x4e4a27,_0xdccfc0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e4a27['commands']['add']('discardAllSuggestions',new x(_0x4e4a27,_0xb48b5c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e4a27['commands']['add']('acceptSelectedSuggestions',new R(_0x4e4a27,_0xdccfc0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e4a27['commands']['add']('discardSelectedSuggestions',new R(_0x4e4a27,_0xb48b5c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4843af=_0x4e4a27['plugins']['get']('CommentsRepository');this['listenTo'](_0x4843af,'addComment',(_0x3c626d,{threadId:_0x22de98})=>{const _0x15bc8d=this['_suggestions']['get'](_0x22de98);_0x15bc8d&&_0x15bc8d['commentThread']&&0x1===_0x15bc8d['commentThread']['length']&&this['_updateSuggestionData'](_0x22de98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4843af,'removeComment',(_0x3b0e84,{threadId:_0x3b6491})=>{const _0x16503f=this['_suggestions']['get'](_0x3b6491);_0x16503f&&_0x16503f['commentThread']&&!_0x16503f['commentThread']['length']&&this['_updateSuggestionData'](_0x3b6491,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3ef95f){if(this['_adapter'])throw new _0x5a2cc3('track-changes-adapter-already-set',this);this['_adapter']=_0x3ef95f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3fd386=!0x1,toJSON:_0x13ed6e=!0x1}={}){const _0x1fa7ff=[];for(const _0x3725fb of this['_suggestions']['values']())_0x3fd386&&!_0x3725fb['isInContent']||_0x1fa7ff['push'](_0x3725fb);return _0x13ed6e?_0x1fa7ff['map'](_0xc26895=>_0xc26895['toJSON']()):_0x1fa7ff;}['getSuggestion'](_0x142817){const _0x4b1010=this['_suggestions']['get'](_0x142817);if(!_0x4b1010)throw new _0x5a2cc3('track-changes-suggestion-not-found',this);return _0x4b1010;}['hasSuggestion'](_0x4a5b02){return this['_suggestions']['has'](_0x4a5b02);}['addSuggestionData'](_0x55915f){const {authorId:_0x2f7365,id:_0x53f78c,attributes:_0x2c9d84}=_0x55915f,[_0x4ff266,_0x143adb]=_0x55915f['type']['split'](':'),_0x3cb923=this['_suggestions']['get'](_0x53f78c)||this['_createSuggestion'](_0x4ff266,_0x143adb,_0x53f78c,_0x2f7365,_0x2c9d84);if(this['_addThreadToSuggestion'](_0x3cb923),this['_checkSuggestionCorrectness'](_0x3cb923,_0x4ff266,_0x143adb||null,_0x2f7365),_0x3cb923['createdAt']=_0x55915f['createdAt'],_0x3cb923['_isDataLoaded']=!0x0,_0x2c9d84&&_0x2c9d84['@external']){const _0x2e2f20=_0x2c9d84['@external'],_0x1bfeed=this['_getExternalAuthor'](_0x2e2f20['authorName']);_0x3cb923['authoredAt']=_0x2e2f20['createdAt'],_0x3cb923['author']=_0x1bfeed,_0x3cb923['isExternal']=!0x0;}else _0x3cb923['authoredAt']=_0x55915f['createdAt'];switch(_0x55915f['data']&&(_0x3cb923['data']=_0x55915f['data']),_0x55915f['attributes']&&(_0x3cb923['attributes']=_0x55915f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3cb923['_saved']=!0x0),this['_suggestionState']['get'](_0x3cb923)){case'notReady':this['_suggestionState']['set'](_0x3cb923,'dataReady');break;case'markerReady':_0x3cb923['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3cb923])),this['_refreshSuggestionsChain'](new Set([_0x3cb923])),this['_suggestionState']['set'](_0x3cb923,'ready'),this['fire']('suggestionLoaded',_0x3cb923)):this['_suggestionState']['set'](_0x3cb923,'removed');}return _0x3cb923;}['acceptSuggestion'](_0x4b4e9e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45ff39 of _0x4b4e9e['getAllAdjacentSuggestions']())_0x45ff39['accept']();});});}['discardSuggestion'](_0x4ed5d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xccda22 of _0x4ed5d6['getAllAdjacentSuggestions']())_0xccda22['discard']();});});}['enableCommand'](_0x5e80f5,_0x32cbe6){const _0xb5b164=this['editor']['commands']['get'](_0x5e80f5);if(!_0xb5b164)throw new _0x5a2cc3('track-changes-command-not-found',this,{'commandName':_0x5e80f5});if(this['_enabledCommands']['has'](_0xb5b164))throw new _0x5a2cc3('track-changes-enable-command-twice',this,{'commandName':_0x5e80f5});this['_enabledCommands']['add'](_0xb5b164),_0x32cbe6&&_0xb5b164['on']('execute',(_0x4abbe6,_0x5b544f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b544f['length']>0x0&&_0x5b544f[_0x5b544f['length']-0x1]&&_0x5b544f[_0x5b544f['length']-0x1]['forceDefaultExecution']?_0x5b544f['pop']():(_0x4abbe6['return']=_0x32cbe6((..._0x246ad9)=>_0xb5b164['execute'](..._0x246ad9,{'forceDefaultExecution':!0x0}),..._0x5b544f),_0x4abbe6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x411e86){let _0x407d62,_0x5dc6b4;const _0x379b9f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x407d62=_0x411e86();}catch(_0x1b22d0){_0x5dc6b4=_0x1b22d0;}return _0x379b9f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5dc6b4&&_0x5a2cc3['rethrowUnexpectedError'](_0x5dc6b4,this),_0x407d62;}['markInsertion'](_0x4afaae,_0x5035dd=null,_0x371aad={}){if(_0x4afaae['isCollapsed'])return null;const _0x19b949=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x27fa82,meta:_0x343c17}of this['_findSuggestions'](_0x4afaae,'insertion'))if(_0x343c17['isOwn']){if(!_0x343c17['isNextTo']){if(_0x343c17['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x27fa82,_0x371aad))continue;return _0x27fa82;}if(Lt(_0x27fa82,_0x371aad))return _0x27fa82;this['_breakSuggestionMarker'](_0x27fa82,_0x4afaae['start'],_0x4afaae['end']);break;}if(_0x5035dd==_0x27fa82['subType']&&Lt(_0x27fa82,_0x371aad)){const _0x29ed42=_0x27fa82['getFirstRange']();return _0x29ed42['start']['isEqual'](_0x4afaae['end'])?this['_setSuggestionRange'](_0x27fa82,this['_model']['createRange'](_0x4afaae['start'],_0x29ed42['end'])):this['_setSuggestionRange'](_0x27fa82,this['_model']['createRange'](_0x29ed42['start'],_0x4afaae['end'])),_0x27fa82;}}const _0x5c3efb=_0x4c61b3(),_0x4a9f14=_0x19b949['id'],_0xf4cb42=_0x5035dd?'insertion:'+_0x5035dd:'insertion',_0x6abee1=this['_setSuggestionData']({'id':_0x5c3efb,'type':_0xf4cb42,'createdAt':new Date(),'authorId':_0x4a9f14,'attributes':_0x371aad});return this['_addSuggestionMarker'](_0xf4cb42,_0x5c3efb,_0x4a9f14,_0x4afaae),_0x6abee1;}['markMultiRangeInsertion'](_0x35bcfa,_0xfc962c='multi',_0x38110d={}){const _0x170c55=this['editor']['plugins']['get']('Users')['me'],_0x3ccfe9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xfc962c,'join');for(const _0x33d5af of this['getSuggestions']())if(_0x33d5af['author']['id']==_0x170c55['id']&&'insertion'==_0x33d5af['type']&&_0x33d5af['subType']==_0xfc962c&&Lt(_0x33d5af,_0x38110d)&&(_0x3ccfe9(_0x33d5af['getRanges'](),_0x35bcfa)||_0x3ccfe9(_0x35bcfa,_0x33d5af['getRanges']()))){for(const _0x567be1 of _0x35bcfa)_0x33d5af['addRange'](_0x567be1);return _0x33d5af;}for(const {suggestion:_0x32e5ef,meta:_0xe878fb}of this['_findSuggestions'](_0x35bcfa,'insertion')){if(!_0xe878fb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xe878fb['containsRangeInObject'])continue;if(!Lt(_0x32e5ef,_0x38110d))continue;let _0x3934b3=!0x0;for(const _0x1f87ed of _0x32e5ef['getRanges']())for(const _0x191554 of _0x35bcfa)if(!_0x1f87ed['containsRange'](_0x191554)){_0x3934b3=!0x1;break;}if(_0x3934b3)return _0x32e5ef;}const _0x44706b=_0x4c61b3(),_0x43ee8f=_0x170c55['id'],_0x569137='insertion:'+_0xfc962c,_0x32f2f9=this['_setSuggestionData']({'id':_0x44706b,'type':_0x569137,'createdAt':new Date(),'authorId':_0x43ee8f,'attributes':_0x38110d});for(const _0x319012 of _0x35bcfa)this['_addSuggestionMarker'](_0x569137,_0x44706b,_0x43ee8f,_0x319012,u['getMultiRangeId']());return _0x32f2f9;}['markInlineFormat'](_0x41f9c2,_0x999cec,_0x50045c=null,_0x9566ca={}){if(_0x50045c=_0x50045c||Vt(_0x999cec),_0x41f9c2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e50e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50045c,'accept');return this['forceDefaultExecution'](()=>_0x5e50e6([_0x41f9c2],_0x999cec,_0x9566ca)),null;}const _0x22b962=this['editor']['plugins']['get']('Users')['me'],_0x86629e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x40b632,meta:_0x16fc64}of this['_findSuggestions'](_0x41f9c2,'insertion'))_0x16fc64['isOwn']&&!_0x16fc64['isInsideObject']&&_0x86629e['push'](..._0x40b632['getRanges']());}const _0x28a45f=function(_0x530b13,_0x58c2da){const _0x51c4de=[];for(const _0x3c815d of _0x58c2da){const _0x3a1413=_0x530b13['getIntersection'](_0x3c815d);_0x3a1413&&_0x51c4de['push'](_0x3a1413);}return _0x51c4de;}(_0x41f9c2,_0x86629e),_0x1adce7=function(_0x2939b2,_0x326f6d){const _0x20d722=[_0x2939b2];for(const _0x488cfe of _0x326f6d){let _0x5f3165=0x0;for(;_0x5f3165<_0x20d722['length'];){const _0x268761=_0x20d722[_0x5f3165]['getDifference'](_0x488cfe);_0x20d722['splice'](_0x5f3165,0x1,..._0x268761),_0x5f3165+=_0x268761['length'];}}return _0x20d722;}(_0x41f9c2,_0x86629e);_0x28a45f['length']&&this['_model']['change'](()=>{for(const _0x329e6c of _0x28a45f){const _0x57b6d7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50045c,'accept');this['forceDefaultExecution'](()=>_0x57b6d7([_0x329e6c],_0x999cec,_0x9566ca));}});for(const _0x184448 of _0x1adce7){let _0x358505=null,_0x2aef44=_0x184448['start'],_0x4fe0f6=_0x184448['end'];for(const {suggestion:_0x203530,meta:_0x3cb417}of this['_findSuggestions'](_0x184448,'formatInline')){if(!_0x3cb417['isOwn'])continue;if(_0x203530['subType']!=_0x50045c)continue;if(!Lt(_0x203530,_0x9566ca))continue;const _0xca57ac=_0x203530['getFirstRange']();if(_0xca57ac['containsRange'](_0x184448,!0x0))return null;_0x2aef44=_0x2aef44['isBefore'](_0xca57ac['start'])?_0x2aef44:_0xca57ac['start'],_0x4fe0f6=_0x4fe0f6['isAfter'](_0xca57ac['end'])?_0x4fe0f6:_0xca57ac['end'],_0x358505?_0xca57ac['start']['isBefore'](_0x358505['getFirstRange']()['start'])?(_0x358505['removeMarkers'](),_0x358505=_0x203530):_0x203530['removeMarkers']():_0x358505=_0x203530;}const _0x12b59b=this['_model']['createRange'](_0x2aef44,_0x4fe0f6);if(_0x358505)this['_setSuggestionRange'](_0x358505,_0x12b59b);else{const _0x512e96=_0x4c61b3(),_0xc2f54f=_0x22b962['id'];this['_setSuggestionData']({'id':_0x512e96,'type':'formatInline:'+_0x50045c,'data':_0x999cec,'createdAt':new Date(),'authorId':_0xc2f54f,'attributes':_0x9566ca}),this['_addSuggestionMarker']('formatInline:'+_0x50045c,_0x512e96,_0xc2f54f,_0x12b59b);}}return null;}['markBlockFormat'](_0x4f2f59,_0x2a951a,_0x4ef304=[],_0x579208=null,_0x5dc6d3={}){_0x2a951a['formatGroupId']||(_0x2a951a['formatGroupId']=_0x2a951a['commandName']),_0x2a951a['multipleBlocks']=_0x4f2f59['is']('range'),_0x579208=_0x579208||Vt(_0x2a951a);const _0x505690=_0x4ef304['map'](_0x278927=>Ft(_0x278927,this['_model'])),_0x2a7cc6=_0x4f2f59['is']('range')?_0x4f2f59:Ft(_0x4f2f59,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1c05d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x579208,'accept');return this['forceDefaultExecution'](()=>_0x1c05d4([_0x2a7cc6],_0x2a951a,_0x5dc6d3)),null;}_0x505690['push'](_0x2a7cc6);let _0x2e6d2f=!0x0;for(const _0x36c1a5 of _0x505690)if(!this['_rangeIsInLocalUserInsertion'](_0x36c1a5)){_0x2e6d2f=!0x1;break;}if(_0x2e6d2f&&'always'!==this['_trackFormatChanges']){const _0xef9194=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x579208,'accept');return this['forceDefaultExecution'](()=>_0xef9194([_0x2a7cc6],_0x2a951a,_0x5dc6d3)),null;}let _0x1936ac=null,_0x5c10f0=_0x2a7cc6['start'],_0x338ae3=_0x2a7cc6['end'];for(const {suggestion:_0x4492ac,meta:_0x3e4f88}of this['_findSuggestions'](_0x2a7cc6,'formatBlock')){if(!_0x3e4f88['isOwn'])continue;if(_0x3e4f88['isNextTo']||_0x3e4f88['containsRangeInObject']||_0x3e4f88['isInsideObject'])continue;if(_0x4492ac['data']['formatGroupId']!=_0x2a951a['formatGroupId'])continue;if(!Lt(_0x4492ac,_0x5dc6d3))continue;const _0x4c2b75=_0x4492ac['getFirstRange']();if(_0x4492ac['subType']==_0x579208){if(_0x4c2b75['containsRange'](_0x2a7cc6,!0x0))return null;_0x5c10f0=_0x5c10f0['isBefore'](_0x4c2b75['start'])?_0x5c10f0:_0x4c2b75['start'],_0x338ae3=_0x338ae3['isAfter'](_0x4c2b75['end'])?_0x338ae3:_0x4c2b75['end'],_0x1936ac?_0x4c2b75['start']['isBefore'](_0x1936ac['getFirstRange']()['start'])?(_0x1936ac['removeMarkers'](),_0x1936ac=_0x4492ac):_0x4492ac['removeMarkers']():_0x1936ac=_0x4492ac;}else{const _0xf2e37c=_0x2a7cc6['getIntersection'](_0x4c2b75);this['_cutOutSuggestionMarker'](_0x4492ac,_0xf2e37c);}}const _0x206dc7=this['editor']['plugins']['get']('Users')['me'],_0x3c2ec6=_0x4c61b3(),_0xccc48c=_0x206dc7['id'];if(_0x1936ac)return this['_setSuggestionRange'](_0x1936ac,this['_model']['createRange'](_0x5c10f0,_0x338ae3)),_0x1936ac;{const _0x2092b9=this['_setSuggestionData']({'id':_0x3c2ec6,'type':'formatBlock:'+_0x579208,'data':_0x2a951a,'createdAt':new Date(),'authorId':_0xccc48c,'attributes':_0x5dc6d3});return this['_addSuggestionMarker']('formatBlock:'+_0x579208,_0x3c2ec6,_0xccc48c,this['_model']['createRange'](_0x5c10f0,_0x338ae3)),_0x2092b9;}}['markMultiRangeBlockFormat'](_0x1a718a,_0x5322c8,_0x4bc7bd=[],_0x5db26c=null,_0x59ff92={}){_0x5322c8['formatGroupId']||(_0x5322c8['formatGroupId']=_0x5322c8['commandName']);const _0x1ba0be=_0x1a718a[0x0];_0x5322c8['multipleBlocks']=_0x1ba0be['is']('range'),_0x5db26c=_0x5db26c||Vt(_0x5322c8);const _0x507de0=_0x4bc7bd['map'](_0x31dbab=>Ft(_0x31dbab,this['_model'])),_0x465077=_0x1ba0be['is']('range')?_0x1a718a:_0x1a718a['map'](_0x51cfc5=>Ft(_0x51cfc5,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3f720b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'accept');return this['forceDefaultExecution'](()=>_0x3f720b(_0x465077,_0x5322c8,_0x59ff92)),null;}_0x507de0['push'](..._0x465077);let _0xefef2=!0x0;for(const _0x33663b of _0x507de0)if(!this['_rangeIsInLocalUserInsertion'](_0x33663b)){_0xefef2=!0x1;break;}if(_0xefef2&&'always'!==this['_trackFormatChanges']){const _0x518786=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'accept');return this['forceDefaultExecution'](()=>_0x518786(_0x465077,_0x5322c8,_0x59ff92)),null;}const _0x83aad1=this['editor']['plugins']['get']('Users')['me'];for(const _0x20d0dd of this['getSuggestions']()){if(_0x20d0dd['author']['id']!=_0x83aad1['id'])continue;if('formatBlock'!=_0x20d0dd['type']||_0x20d0dd['data']['formatGroupId']!=_0x5322c8['formatGroupId'])continue;if(!Lt(_0x20d0dd,_0x59ff92))continue;const _0x3ed49a=_0x20d0dd['subType']==_0x5db26c;for(let _0xfb5073=0x0;_0xfb5073<_0x465077['length'];_0xfb5073++){const _0x1ee534=_0x465077[_0xfb5073];for(const _0x1cab0e of _0x20d0dd['getMarkers']()){const _0x1a5659=_0x1cab0e['getRange']();if(_0x1ee534['isEqual'](_0x1a5659)){_0x3ed49a?(_0x465077['splice'](_0xfb5073,0x1),_0xfb5073--):_0x20d0dd['removeMarker'](_0x1cab0e['name']);break;}}}}if(0x0==_0x465077['length'])return null;const _0x17dc27=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5db26c,'join');for(const _0xe98ef of this['getSuggestions']())if(_0xe98ef['author']['id']==_0x83aad1['id']&&'formatBlock'==_0xe98ef['type']&&_0xe98ef['data']['formatGroupId']==_0x5322c8['formatGroupId']&&_0xe98ef['subType']==_0x5db26c&&Lt(_0xe98ef,_0x59ff92)&&(_0x17dc27(_0xe98ef['getRanges'](),_0x465077)||_0x17dc27(_0x465077,_0xe98ef['getRanges']()))){for(const _0x416a9c of _0x465077)_0xe98ef['addRange'](_0x416a9c);return _0xe98ef;}const _0x1180a6=_0x4c61b3(),_0x4a2aac=_0x83aad1['id'],_0x15f6bc='formatBlock:'+_0x5db26c,_0x180f82=this['_setSuggestionData']({'id':_0x1180a6,'type':_0x15f6bc,'data':_0x5322c8,'createdAt':new Date(),'authorId':_0x4a2aac,'attributes':_0x59ff92});for(const _0x3bfe2c of _0x465077)this['_addSuggestionMarker'](_0x15f6bc,_0x1180a6,_0x4a2aac,_0x3bfe2c,u['getMultiRangeId']());return _0x180f82;}['markDeletion'](_0x13ccbc,_0x25b4d4=null,_0x1660d6={}){if(_0x13ccbc['isCollapsed'])return null;const _0x23d9f5=this['editor']['plugins']['get']('Users')['me'],_0x71ceb3=new _0x2f3de9(_0x13ccbc['start'],_0x13ccbc['end']);for(const {suggestion:_0x3ff4ba,meta:_0x1f494f}of this['_findSuggestions'](_0x71ceb3,'insertion'))if(_0x1f494f['isOwn']&&!_0x1f494f['isNextTo']){if(_0x3ff4ba['isMultiRange']){const _0x19356b=_0x3ff4ba['getRanges']()['filter'](_0x14652c=>'$graveyard'!=_0x14652c['root']['rootName']);_0x19356b['every'](_0x285b21=>_0x71ceb3['containsRange'](_0x285b21,!0x0))&&_0x3ff4ba['discard']();if(_0x19356b['some'](_0x14a055=>_0x14a055['containsRange'](_0x71ceb3,!0x0))){const _0x54e9b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b4d4,'accept');return this['forceDefaultExecution'](()=>_0x54e9b2([_0x71ceb3],null,_0x1660d6)),null;}}else{const _0x393f65=_0x71ceb3['getIntersection'](_0x3ff4ba['getFirstRange']());null!==_0x393f65&&_0x3ff4ba['_onDiscard']([_0x393f65],null,_0x1660d6);}}if(_0x71ceb3['detach'](),_0x71ceb3['isCollapsed']||'$graveyard'==_0x71ceb3['root']['rootName'])return null;let _0xf88fbf=null,_0x4e0b8b=_0x71ceb3['start'],_0x32cc6b=_0x71ceb3['end'];const _0x503c47=this['_findSuggestions'](_0x71ceb3,'deletion');for(const {suggestion:_0x1f7a85,meta:_0x3792ad}of _0x503c47){const _0xd01e46=this['_model']['createRange'](_0x4e0b8b,_0x32cc6b);if(_0x3792ad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3792ad['containsRangeInObject']&&!_0x3792ad['isInsideObject'])){if(_0x1f7a85['isMultiRange']){if(!Lt(_0x1f7a85,_0x1660d6))continue;let _0x19cb86=!0x0;for(const _0x191400 of _0x1f7a85['getRanges']()){if(_0x191400['containsRange'](_0xd01e46,!0x0))return _0x1f7a85;_0xd01e46['containsRange'](_0x191400)||(_0x19cb86=!0x1);}_0x19cb86&&_0x1f7a85['discard']();}else{const _0x2764d9=_0x1f7a85['getFirstRange']();if(_0x2764d9['containsRange'](_0xd01e46,!0x0))return _0x1f7a85;if(!Lt(_0x1f7a85,_0x1660d6)){_0xd01e46['containsRange'](_0x2764d9)?_0x1f7a85['removeMarkers']():_0x2764d9['containsPosition'](_0x4e0b8b)?_0x4e0b8b=_0x2764d9['end']:_0x2764d9['containsPosition'](_0x32cc6b)&&(_0x32cc6b=_0x2764d9['start']);continue;}_0x4e0b8b=_0x4e0b8b['isBefore'](_0x2764d9['start'])?_0x4e0b8b:_0x2764d9['start'],_0x32cc6b=_0x32cc6b['isAfter'](_0x2764d9['end'])?_0x32cc6b:_0x2764d9['end'],_0x1660d6=Object['assign']({},_0x1f7a85['attributes']),_0xf88fbf?_0x2764d9['start']['isBefore'](_0xf88fbf['getFirstRange']()['start'])?(_0xf88fbf['removeMarkers'](),_0xf88fbf=_0x1f7a85):_0x1f7a85['removeMarkers']():_0xf88fbf=_0x1f7a85;}}}if(_0xf88fbf)return this['_setSuggestionRange'](_0xf88fbf,this['_model']['createRange'](_0x4e0b8b,_0x32cc6b)),_0xf88fbf;{const _0x1fa8f3=_0x4c61b3(),_0x48e155=this['_model']['createRange'](_0x4e0b8b,_0x32cc6b),_0x3b91c7=_0x23d9f5['id'],_0xc93856=_0x25b4d4?'deletion:'+_0x25b4d4:'deletion',_0x40be8a=this['_setSuggestionData']({'id':_0x1fa8f3,'type':_0xc93856,'createdAt':new Date(),'authorId':_0x3b91c7,'attributes':_0x1660d6});return this['_addSuggestionMarker'](_0xc93856,_0x1fa8f3,_0x3b91c7,_0x48e155),_0x40be8a;}}['markMultiRangeDeletion'](_0x49644f,_0x438968='multi',_0x273992={}){const _0x23ca16=this['editor']['plugins']['get']('Users')['me'],_0x364a99=_0x49644f['map'](_0x386a5f=>new _0x2f3de9(_0x386a5f['start'],_0x386a5f['end'])),_0x10610d=new Set();for(const {suggestion:_0xa9b24c,meta:_0x1330a9}of this['_findSuggestions'](_0x364a99,'insertion'))_0x1330a9['isOwn']&&!_0x1330a9['isNextTo']&&_0x10610d['add'](_0xa9b24c);for(const _0x5dacf5 of _0x10610d)if(_0x5dacf5['isMultiRange']){const _0x53f15c=_0x5dacf5['getRanges']();(!_0x5dacf5['attributes']||!_0x5dacf5['attributes']['skipNestingCheck'])&&(_0x53f15c['every'](_0x3ea168=>_0x364a99['some'](_0x57c685=>_0x57c685['containsRange'](_0x3ea168,!0x0)))&&_0x5dacf5['discard']());if(_0x364a99['every'](_0x3a3790=>_0x53f15c['some'](_0x141b15=>_0x141b15['containsRange'](_0x3a3790,!0x0)))){const _0x2ba823=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'accept');return this['forceDefaultExecution'](()=>_0x2ba823(_0x49644f,null,_0x273992)),null;}}else{const _0x4ea60f=_0x5dacf5['getFirstRange']();_0x364a99['some'](_0x3d8b77=>_0x3d8b77['containsRange'](_0x4ea60f,!0x0))&&_0x5dacf5['discard']();if(_0x364a99['every'](_0x1de432=>_0x4ea60f['containsRange'](_0x1de432,!0x0))){const _0x1a71b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'accept');return this['forceDefaultExecution'](()=>_0x1a71b8(_0x364a99,null,_0x273992)),null;}}const _0x3766d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x438968,'join');let _0x290fda=null;for(const _0x4821b8 of this['getSuggestions']())if(_0x4821b8['author']['id']==_0x23ca16['id']&&_0x4821b8['isInContent']&&'deletion'==_0x4821b8['type']&&_0x4821b8['subType']==_0x438968&&Lt(_0x4821b8,_0x273992)&&(_0x3766d6(_0x4821b8['getRanges'](),_0x364a99)||_0x3766d6(_0x364a99,_0x4821b8['getRanges']()))){if(_0x290fda){if(_0x4821b8['commentThread']&&_0x4821b8['commentThread']['length'])continue;for(const _0x85fe2d of _0x4821b8['getRanges']())_0x290fda['isIntersectingWithRange'](_0x85fe2d)||_0x290fda['addRange'](_0x85fe2d);_0x4821b8['removeMarkers']();}else{_0x290fda=_0x4821b8;for(const _0x599ba0 of _0x364a99)_0x4821b8['isIntersectingWithRange'](_0x599ba0)||_0x4821b8['addRange'](_0x599ba0);}}if(_0x290fda)return _0x290fda;_0x10610d['clear']();for(const {suggestion:_0x4ef432,meta:_0xae4b5f}of this['_findSuggestions'](_0x364a99,'deletion'))_0xae4b5f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xae4b5f['containsRangeInObject']&&!_0xae4b5f['isInsideObject'])&&Lt(_0x4ef432,_0x273992)&&_0x10610d['add'](_0x4ef432);for(const _0x2b417c of _0x10610d){const _0xb98d84=_0x2b417c['getRanges']();if(!_0x273992||!_0x273992['skipNestingCheck']){if(_0x364a99['every'](_0x495e17=>_0xb98d84['some'](_0x6881f=>_0x6881f['containsRange'](_0x495e17,!0x0))))return _0x2b417c;}(!_0x2b417c['attributes']||!_0x2b417c['attributes']['skipNestingCheck'])&&(_0xb98d84['every'](_0x581d42=>_0x364a99['some'](_0x2cbdc6=>_0x2cbdc6['containsRange'](_0x581d42,!0x0)))&&_0x2b417c['discard']());}const _0x5b74b0=_0x4c61b3(),_0x32e682=_0x23ca16['id'],_0x1fd1e4='deletion:'+_0x438968,_0xaa07f8=this['_setSuggestionData']({'id':_0x5b74b0,'type':_0x1fd1e4,'createdAt':new Date(),'authorId':_0x32e682,'attributes':_0x273992});for(const _0x300c93 of _0x364a99)_0x300c93['detach'](),_0x300c93['isCollapsed']||'$graveyard'==_0x300c93['root']['rootName']||this['_addSuggestionMarker'](_0x1fd1e4,_0x5b74b0,_0x32e682,_0x300c93,u['getMultiRangeId']());return _0xaa07f8;}['markAttributeChange'](_0x3ac28a,_0x32cb3c,_0xa2e48d,_0x3e519b,_0x3c17a7){if(_0x3ac28a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2563c0=this['editor']['plugins']['get']('Users')['me']['id'],_0xb1021f=Array['from'](this['_suggestions']['values']())['filter'](_0x50d62a=>'attribute'==_0x50d62a['type']&&_0x50d62a['data']['key']==_0x32cb3c&&_0x50d62a['isIntersectingWithRange'](_0x3ac28a));if('default'===this['_trackFormatChanges']){const _0x362906=this['_findSuggestions'](_0x3ac28a,'insertion')['filter'](({meta:_0x3fa4c6})=>_0x3fa4c6['isOwn']&&!_0x3fa4c6['isInsideObject']&&!_0x3fa4c6['isNextTo'])['map'](({suggestion:_0x4bae9b})=>_0x4bae9b);_0xb1021f['unshift'](..._0x362906);}const _0x3007c0=new Map([[_0x3ac28a,_0xa2e48d]]);for(const _0x41b9e1 of _0xb1021f){const _0x4b8982='attribute'==_0x41b9e1['type']?_0x41b9e1['data']['oldValue']:void 0x0,_0x622875=_0x41b9e1['getFirstRange'](),_0x563a03=Array['from'](_0x3007c0['keys']())['find'](_0x5c237c=>_0x5c237c['isIntersecting'](_0x622875));if(!_0x563a03)continue;const _0x3dc124=_0x563a03['getDifference'](_0x622875);this['_isBlockAttribute'](_0x32cb3c)&&'insertion'==_0x41b9e1['type']&&0x0!=_0x3dc124['length']||(_0x3007c0['delete'](_0x563a03),_0x3dc124['forEach'](_0x1e0b90=>{_0x3007c0['set'](_0x1e0b90,_0xa2e48d);}),'insertion'!=_0x41b9e1['type']&&_0x4b8982!=_0x3e519b&&_0x3007c0['set'](_0x563a03['getIntersection'](_0x622875),_0x4b8982));}const _0x5d8d99=[];for(const [_0x574f36,_0x3886c6]of _0x3007c0){const _0x5b33f9=_0x4c61b3(),_0x22b57f={'key':_0x32cb3c,'oldValue':_0x3886c6,'newValue':_0x3e519b};_0x32cb3c['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':_0x32cb3c});const _0x199f03=('attribute:'+(_0x32cb3c+'|'+Vt({'newValue':_0x3e519b})))['substring'](0x0,0x3c),_0x4a4d0e=this['_setSuggestionData']({'id':_0x5b33f9,'type':_0x199f03,'data':_0x22b57f,'createdAt':new Date(),'authorId':_0x2563c0,'attributes':_0x3c17a7});_0x5d8d99['push'](_0x4a4d0e),this['_addSuggestionMarker'](_0x199f03,_0x5b33f9,_0x2563c0,_0x574f36);}return _0x5d8d99;}['enableDefaultAttributesIntegration'](_0x5d00a2){this['enableCommand'](_0x5d00a2,(_0x343bef,..._0x141863)=>{this['_recordAttributeChanges'](()=>{_0x343bef(..._0x141863);});});}['registerBlockAttribute'](_0x2ce806){this['_blockAttributeKeys']['add'](_0x2ce806);}['registerInlineAttribute'](_0x2752fe){this['_inlineAttributeKeys']['add'](_0x2752fe);}['_getAttributeKey'](_0x2d54f1){return'attribute'==_0x2d54f1['type']?_0x2d54f1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x41fe11,_0x2127f1){const _0x2c9b9d=_0x41fe11['getFirstMarker']();this['_model']['change'](_0x429137=>{_0x429137['updateMarker'](_0x2c9b9d,{'range':_0x2127f1});});}['_addThreadToSuggestion'](_0x331aa4){const _0x47091c=_0x331aa4['id'],_0x3d0cdd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47091c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d0cdd,'threadId':_0x47091c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbbd05e=this['_commentsRepository']['getCommentThread'](_0x47091c);_0xbbd05e['unbind']('isRemovable'),_0xbbd05e['isRemovable']=!0x1,_0x331aa4['commentThread']=_0xbbd05e;}['_checkSuggestionCorrectness'](_0x1b7016,_0x1b7856,_0x4bab67,_0x1f77ec){if(_0x1b7016['type']!=_0x1b7856||_0x1b7016['subType']!=_0x4bab67||_0x1b7016['creator']['id']!=_0x1f77ec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a2cc3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x28b4f2,_0x2225b5){const _0x31bca3=_0x28b4f2['getFirstRange']();if(_0x2225b5['isEqual'](_0x31bca3))_0x28b4f2['removeMarkers']();else{if(_0x31bca3['containsRange'](_0x2225b5)){const _0x225345=this['_model']['createPositionAt'](_0x2225b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x31bca3['start'],_0x225345));const _0x1c8d07=_0x4c61b3(),_0x509c4f=_0x28b4f2['creator']['id'],_0x5ec387=_0x28b4f2['type']+':'+_0x28b4f2['subType'];this['_setSuggestionData']({'id':_0x1c8d07,'type':_0x5ec387,'createdAt':new Date(),'authorId':_0x509c4f,'data':_0x28b4f2['data'],'attributes':_0x28b4f2['attributes']});const _0x41819c=this['_model']['createPositionAt'](_0x2225b5['end']['parent'],'after'),_0x274088=this['_model']['createRange'](_0x41819c,_0x31bca3['end']);this['_addSuggestionMarker'](_0x5ec387,_0x1c8d07,_0x509c4f,_0x274088);}else{if(_0x31bca3['containsPosition'](_0x2225b5['start'])){const _0x3f0b29=this['_model']['createPositionAt'](_0x2225b5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x31bca3['start'],_0x3f0b29));}else{const _0x2bca87=this['_model']['createPositionAt'](_0x2225b5['end']['parent'],'after');this['_setSuggestionRange'](_0x28b4f2,this['_model']['createRange'](_0x2bca87,_0x31bca3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x41c634){for(const {suggestion:_0x48e7b6,meta:_0xe188ae}of this['_findSuggestions'](_0x41c634,'insertion')){if(!_0xe188ae['isOwn'])continue;const _0x529fe2=_0x48e7b6['getRanges']();for(const _0x3a395e of _0x529fe2)if(!_0x41c634['getDifference'](_0x3a395e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x493429){const _0x2f6a1f=this['editor']['plugins']['get']('Users')['getUser'](_0x493429);if(!_0x2f6a1f)throw new _0x5a2cc3('track-changes-user-not-found',this);return _0x2f6a1f;}['_getExternalAuthor'](_0x310603){const _0x108de4=this['editor']['plugins']['get']('Users'),_0x41ac85=_0x18968b('external:'+_0x310603),_0x400660=_0x108de4['getUser'](_0x41ac85);return _0x400660||_0x108de4['addUser']({'id':_0x41ac85,'name':_0x310603});}['_createSuggestion'](_0x40d641,_0x6b8644,_0x2a9c94,_0x38df5a,_0x44f498){const _0x4dcec0=this['_getAuthorFromId'](_0x38df5a),_0x55eed2=this['_suggestionFactory']['buildSuggestion'](_0x40d641,_0x6b8644,_0x2a9c94,_0x4dcec0,_0x44f498,_0x711af7=>{this['_updateSuggestionData'](_0x2a9c94,{'attributes':_0x711af7});const _0x2c32fa=this['getSuggestion'](_0x2a9c94);this['_joinWithAdjacentSuggestions'](new Set([_0x2c32fa])),this['_refreshSuggestionsChain'](new Set([_0x2c32fa]));});return this['listenTo'](_0x55eed2,'accept',()=>{this['_updateSuggestionData'](_0x2a9c94,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x55eed2,'discard',()=>{this['_updateSuggestionData'](_0x2a9c94,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a9c94,_0x55eed2),this['_suggestionState']['set'](_0x55eed2,'notReady'),_0x55eed2;}['_splitMarkerName'](_0x40bb4f){const _0x1903fc=_0x40bb4f['split'](':');return{'group':_0x1903fc[0x0],'type':_0x1903fc[0x1],'subType':_0x1903fc['length']>=0x5?_0x1903fc[0x2]:null,'id':_0x1903fc['length']<0x5?_0x1903fc[0x2]:_0x1903fc[0x3],'authorId':_0x1903fc['length']<0x5?_0x1903fc[0x3]:_0x1903fc[0x4],'markerCount':0x6==_0x1903fc['length']?_0x1903fc[0x5]:null};}['_breakSuggestionMarker'](_0x32649d,_0x540a76,_0x125fc7){const _0x4d3201=_0x32649d['getFirstRange'](),_0x226d4f=_0x4d3201['start'],_0x4474e6=_0x4d3201['end'];this['_setSuggestionRange'](_0x32649d,this['_model']['createRange'](_0x226d4f,_0x540a76));const _0x2f4cfd=_0x4c61b3(),_0x3e3df8=_0x32649d['creator']['id'],_0x3664e8=_0x32649d['type']+(_0x32649d['subType']?':'+_0x32649d['subType']:'');this['_setSuggestionData']({'id':_0x2f4cfd,'type':_0x3664e8,'createdAt':new Date(),'authorId':_0x3e3df8,'originalSuggestionId':_0x32649d['id'],'attributes':_0x32649d['attributes'],'data':_0x32649d['data']});const _0x57f3db=this['_getAttributeKey'](_0x32649d);('formatBlock'==_0x32649d['type']||_0x57f3db&&this['_isBlockAttribute'](_0x57f3db))&&(_0x125fc7=this['_model']['createPositionBefore'](_0x125fc7['parent'])),this['_addSuggestionMarker'](_0x3664e8,_0x2f4cfd,_0x3e3df8,this['_model']['createRange'](_0x125fc7,_0x4474e6));}['_findSuggestions'](_0x42d4a6,_0x24d5a8=null){const _0x2b7013=[],_0x106c0b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x42d4a6)||(_0x42d4a6=[_0x42d4a6]);for(const _0x3158db of this['getSuggestions']()){if(!_0x3158db['isInContent'])continue;if(_0x24d5a8&&_0x3158db['type']!=_0x24d5a8)continue;let _0x45df1c=!0x1;for(const _0x45695f of _0x3158db['getRanges']()){for(const _0x445e3e of _0x42d4a6){const _0x289d70=_0x445e3e['start']['isEqual'](_0x45695f['end'])||_0x445e3e['end']['isEqual'](_0x45695f['start']);if(_0x289d70||_0x445e3e['getIntersection'](_0x45695f)){const _0x3c1ab9=_0x445e3e['containsRange'](_0x45695f)&&Rt(this['_model']['schema'],_0x45695f['start'],_0x445e3e),_0xde25bd=_0x45695f['containsRange'](_0x445e3e)&&Rt(this['_model']['schema'],_0x445e3e['start'],_0x45695f);_0x2b7013['push']({'suggestion':_0x3158db,'meta':{'isOwn':_0x106c0b==_0x3158db['author'],'isNextTo':_0x289d70,'isInsideObject':_0x3c1ab9,'containsRangeInObject':_0xde25bd}}),_0x45df1c=!0x0;break;}}if(_0x45df1c)break;}}return _0x2b7013;}['_addSuggestionMarker'](_0x2a940b,_0x474c39,_0x3f00f5,_0x2978f8,_0x5be55d){this['_model']['change'](_0x29f6e6=>{let _0x47db74='suggestion:'+_0x2a940b+':'+_0x474c39+':'+_0x3f00f5;_0x5be55d&&(_0x47db74=_0x47db74+':'+_0x5be55d),_0x29f6e6['addMarker'](_0x47db74,{'range':_0x2978f8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d92d4){const _0x4f5664=_0x3d92d4['previous'],_0x4732fa=_0x3d92d4['next'];_0x3d92d4['previous']=null,_0x3d92d4['next']=null,null!=_0x4f5664&&_0x4f5664['next']==_0x3d92d4&&(_0x4f5664['next']=_0x4732fa),null!=_0x4732fa&&_0x4732fa['previous']==_0x3d92d4&&(_0x4732fa['previous']=_0x4f5664),'ready'==this['_suggestionState']['get'](_0x3d92d4)&&(this['_suggestionState']['set'](_0x3d92d4,'removed'),this['fire']('suggestionUnloaded',_0x3d92d4,_0x4f5664,_0x4732fa));}['_setSuggestionData'](_0x617f4d){const _0x455636=_0x617f4d['id'],_0xa0eb23=this['addSuggestionData'](_0x617f4d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1017a7=this['editor']['plugins']['get']('PendingActions'),_0x51f8ad=_0xa0eb23['hasComments'],_0x33a00c=_0xa0eb23['subType']?_0xa0eb23['type']+':'+_0xa0eb23['subType']:_0xa0eb23['type'],_0x2685db=this['editor']['locale'],_0x17418e=_0x1017a7['add'](o(_0x2685db,'PENDING_ACTION_SUGGESTION')),_0x4f29e0={'id':_0x455636,'type':_0x33a00c,'hasComments':_0x51f8ad,'data':_0x617f4d['data']||null,'originalSuggestionId':_0x617f4d['originalSuggestionId']||null,'attributes':_0xa0eb23['attributes']};this['_adapter']['addSuggestion'](_0x4f29e0)['then'](_0xb257c4=>{_0xa0eb23['_saved']=!0x0,_0x1017a7['remove'](_0x17418e),_0xb257c4&&_0xb257c4['createdAt']&&(this['_suggestions']['get'](_0x455636)['createdAt']=_0xb257c4['createdAt']);})['catch'](_0x4e1c82=>{throw _0x396ae6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa0eb23['discard']();}),_0xa0eb23['stopListening'](),this['_suggestions']['delete'](_0xa0eb23['id']),this['_suggestionState']['delete'](_0xa0eb23),_0x4e1c82;});}return _0xa0eb23;}['_isBlockAttribute'](_0x4c3e0d){return this['_blockAttributeKeys']['has'](_0x4c3e0d);}['_updateSuggestionData'](_0x4acc96,_0x2073c6){const _0xee46c6=this['editor']['plugins']['get']('PendingActions'),_0x17127a=this['getSuggestion'](_0x4acc96);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17127a['_saved']){const _0x16cadb=_0xee46c6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4acc96,_0x2073c6)['then'](()=>{_0xee46c6['remove'](_0x16cadb);});}else _0x17127a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4acc96,_0x2073c6);});}}['_getSuggestionData'](_0x3ad020){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a2cc3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ad020);}['_handleNewSuggestionMarker'](_0x383a00){const {id:_0x512b58,type:_0x4455a5,subType:_0x3a40b8,authorId:_0x1f0e78}=this['_splitMarkerName'](_0x383a00),_0x4fb92b=this['_suggestions']['get'](_0x512b58)||this['_createSuggestion'](_0x4455a5,_0x3a40b8,_0x512b58,_0x1f0e78,{});switch(this['_checkSuggestionCorrectness'](_0x4fb92b,_0x4455a5,_0x3a40b8,_0x1f0e78),this['_suggestionState']['get'](_0x4fb92b)){case'notReady':this['_getSuggestionData'](_0x512b58)['then'](_0x25461d=>{let _0x468957=Promise['resolve']();_0x25461d['hasComments']&&(_0x468957=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x512b58})),_0x468957['then'](()=>{this['addSuggestionData'](_0x25461d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4fb92b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x512b58,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4fb92b,'ready'),this['fire']('suggestionLoaded',_0x4fb92b);break;case'ready':this['fire']('suggestionChanged',_0x4fb92b);}return _0x4fb92b['addMarkerName'](_0x383a00),_0x4fb92b;}['_refreshSuggestionsChain'](_0x190cb2){const _0x2b6e35=Array['from'](_0x190cb2),_0xcec5d9=_0x2b6e35['filter'](_0x40419c=>'attribute'==_0x40419c['type']);this['_refreshAttributeSuggestionsChain'](_0xcec5d9);const _0x224d01=_0x2b6e35['filter'](_0x2d7776=>!_0x2d7776['isMultiRange']&&'attribute'!=_0x2d7776['type']),_0x1a096f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3108e3=>!_0x3108e3['isMultiRange']&&'attribute'!=_0x3108e3['type']),_0x53a1b1=_0x1a096f['filter'](_0x17f5a8=>!_0x190cb2['has'](_0x17f5a8)),_0x3ccee1=new Map(_0x1a096f['map'](_0xb84509=>[_0xb84509,this['_suggestionFactory']['getSuggestionCallback'](_0xb84509['type'],_0xb84509['subType'],'chain')])),_0x5e94b3=new Map(_0x1a096f['map'](_0x2aa459=>[_0x2aa459,_0x2aa459['getFirstRange']()])),_0x317d0b=new Set(),_0x357574=new Set();for(let _0x1dd0df=0x0;_0x1dd0df<_0x224d01['length'];_0x1dd0df++)_0x2dc247(_0x224d01[_0x1dd0df],_0x224d01,_0x1dd0df+0x1);for(let _0x1c294d=0x0;_0x1c294d<_0x224d01['length'];_0x1c294d++)_0x2dc247(_0x224d01[_0x1c294d],_0x53a1b1,0x0);const _0x159857=new Set();for(let _0x1ae714=0x0;_0x1ae714<_0x224d01['length'];_0x1ae714++){const _0x11581c=_0x224d01[_0x1ae714];!_0x357574['has'](_0x11581c)&&_0x11581c['previous']&&(_0x159857['add'](_0x11581c['previous']),_0x11581c['previous']['next']===_0x11581c&&(_0x11581c['previous']['next']=null),_0x11581c['previous']=null),!_0x317d0b['has'](_0x11581c)&&_0x11581c['next']&&(_0x159857['add'](_0x11581c['next']),_0x11581c['next']['previous']===_0x11581c&&(_0x11581c['next']['previous']=null),_0x11581c['next']=null);}function _0x2dc247(_0x472722,_0x1f1e3b,_0x38849c){for(let _0x4e6817=_0x38849c;_0x4e6817<_0x1f1e3b['length'];_0x4e6817++){const _0x20ae66=_0x118797(_0x472722,_0x1f1e3b[_0x4e6817]);_0x20ae66&&(_0x20ae66[0x0]['next']=_0x20ae66[0x1],_0x20ae66[0x1]['previous']=_0x20ae66[0x0],_0x317d0b['add'](_0x20ae66[0x0]),_0x357574['add'](_0x20ae66[0x1]));}}function _0x118797(_0xb5d7a8,_0x28e67){if(_0xb5d7a8['author']['id']!==_0x28e67['author']['id'])return null;const _0x414e61=_0x3ccee1['get'](_0xb5d7a8)(_0xb5d7a8,_0x28e67,_0x5e94b3['get'](_0xb5d7a8),_0x5e94b3['get'](_0x28e67));if(!_0x414e61)return null;return _0x3ccee1['get'](_0x28e67)(_0xb5d7a8,_0x28e67,_0x5e94b3['get'](_0xb5d7a8),_0x5e94b3['get'](_0x28e67))?_0x414e61[0x1]['commentThread']&&_0x414e61[0x1]['commentThread']['length']?null:_0x414e61:null;}_0x159857['size']&&this['_refreshSuggestionsChain'](_0x159857);}['_refreshAttributeSuggestionsChain'](_0x4a349b){if(0x0==_0x4a349b['length'])return;const _0x57e27b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187740=>'attribute'==_0x187740['type']&&_0x187740['_isDataLoaded']),_0x4c0b4e=[],_0x110685=new Map();for(const _0x85da58 of _0x57e27b){const _0x87d26=_0x18968b(_0x85da58['attributes']);_0x110685['has'](_0x87d26)||(_0x110685['set'](_0x87d26,_0x4c0b4e['length']),_0x4c0b4e['push']([]));const _0x14078f=_0x110685['get'](_0x87d26);_0x4c0b4e[_0x14078f]['push'](_0x85da58);}!(function(){_0x4c0b4e['sort']((_0x5980b9,_0x24be23)=>{const _0x21728e=_0x5980b9[0x0]['createdAt'],_0x12bec6=_0x24be23[0x0]['createdAt'];return _0x21728e==_0x12bec6?_0x5980b9[0x0]['attributes']['groupId']<_0x24be23[0x0]['attributes']['groupId']?-0x1:0x1:_0x21728e<_0x12bec6?-0x1:0x1;});for(const _0x31b732 of _0x4c0b4e)_0x31b732['sort']((_0x30eca9,_0x3be671)=>_0x30eca9['id']<_0x3be671['id']?-0x1:0x1);}());for(let _0x4f7485=0x0;_0x4f7485<_0x4c0b4e['length'];_0x4f7485++){if(0x0==_0x4c0b4e[_0x4f7485]['length'])continue;const _0x5a94e3=[];for(let _0x2acedb=_0x4f7485+0x1;_0x2acedb<_0x4c0b4e['length'];_0x2acedb++)0x0!=_0x4c0b4e[_0x2acedb]['length']&&_0x469bd7(_0x4c0b4e[_0x4f7485],_0x4c0b4e[_0x2acedb])&&_0x5a94e3['push'](_0x2acedb);for(const _0x2d722 of _0x5a94e3)_0x4c0b4e[_0x4f7485]=_0x4c0b4e[_0x4f7485]['concat'](_0x4c0b4e[_0x2d722]),_0x4c0b4e[_0x2d722]=[];}for(const _0x1eeb3e of _0x4c0b4e)for(let _0x4ecd23=0x0;_0x4ecd23<_0x1eeb3e['length'];_0x4ecd23++)_0x1eeb3e[_0x4ecd23]['next']=_0x1eeb3e[_0x4ecd23+0x1]||null;for(const _0x2eb8f8 of _0x4c0b4e)for(let _0x3c9f68=0x0;_0x3c9f68<_0x2eb8f8['length'];_0x3c9f68++)_0x2eb8f8[_0x3c9f68]['previous']=_0x2eb8f8[_0x3c9f68-0x1]||null;function _0x469bd7(_0x45a70f,_0x122c1d){if(_0x45a70f[0x0]['attributes']['groupId']!==_0x122c1d[0x0]['attributes']['groupId']&&_0x45a70f[0x0]['author']!==_0x122c1d[0x0]['author'])return!0x1;if(!function(_0x22bb41,_0x210579){if(!_0x22bb41['hasComments']&&!_0x210579['hasComments'])return!0x0;if(_0x22bb41['hasComments']&&_0x210579['hasComments'])return!0x1;if(_0x22bb41['hasComments']&&_0x210579['createdAt']<_0x22bb41['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x210579['hasComments']&&_0x22bb41['createdAt']<_0x210579['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x45a70f[0x0],_0x122c1d[0x0]))return!0x1;const _0x497b7a=Bt(_0x45a70f[0x0]['attributes'],'groupId'),_0x3edcc2=Bt(_0x122c1d[0x0]['attributes'],'groupId');if(!_0x2368d0(_0x497b7a,_0x3edcc2))return!0x1;return!!_0x45a70f['every'](_0x20a6f9=>_0x122c1d['some'](_0x29e24c=>_0x20a6f9['getFirstRange']()['isEqual'](_0x29e24c['getFirstRange']())))&&_0x122c1d['every'](_0x4d4817=>_0x45a70f['some'](_0x57af42=>_0x4d4817['getFirstRange']()['isEqual'](_0x57af42['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1f9f70){const _0x51612d=Array['from'](_0x1f9f70),_0x33450c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38876c=_0x33450c['filter'](_0x5856bc=>!_0x1f9f70['has'](_0x5856bc)),_0x214b6e=new Map(_0x51612d['map'](_0x3d530f=>[_0x3d530f,this['_suggestionFactory']['getSuggestionCallback'](_0x3d530f['type'],_0x3d530f['subType'],'join')])),_0x3724b4=new Map(_0x33450c['map'](_0xafc0b3=>[_0xafc0b3,_0xafc0b3['getRanges']()]));for(let _0x1beebc=0x0;_0x1beebc<_0x51612d['length'];_0x1beebc++){if(_0xb22177(this,_0x51612d[_0x1beebc],_0x51612d,_0x1beebc+0x1))return!0x0;}for(let _0x1c6725=0x0;_0x1c6725<_0x51612d['length'];_0x1c6725++){if(_0xb22177(this,_0x51612d[_0x1c6725],_0x38876c,0x0))return!0x0;}return!0x1;function _0xb22177(_0xc90491,_0x120cd3,_0x5c1c82,_0xe9d010){for(let _0x5e9efd=_0xe9d010;_0x5e9efd<_0x5c1c82['length'];_0x5e9efd++){const _0x5e8e58=_0x5c1c82[_0x5e9efd];if(_0x5e8e58['type']!==_0x120cd3['type']||_0x5e8e58['author']['id']!==_0x120cd3['author']['id']||_0x5e8e58['subType']!==_0x120cd3['subType'])continue;if(!Pt(_0x120cd3,_0x5e8e58,['groupId']))continue;if('attribute'==_0x120cd3['type']&&_0x120cd3['data']['oldValue']!=_0x5e8e58['data']['oldValue'])continue;if('attribute'==_0x120cd3['type']&&_0xc90491['_isBlockAttribute'](_0x120cd3['data']['key']))continue;if('formatBlock'==_0x120cd3['type']){const _0x47cc14=_0xc90491['editor']['model'],_0x293f98=_0x120cd3['getContainedElement']();if(_0x293f98&&(_0x47cc14['schema']['isObject'](_0x293f98)||_0x47cc14['schema']['isLimit'](_0x293f98)))continue;}const _0x229dd3=_0x214b6e['get'](_0x120cd3),_0x4e8eda=_0x3724b4['get'](_0x120cd3),_0x59b062=_0x3724b4['get'](_0x5e8e58),_0x13d90f=_0x120cd3['commentThread']&&_0x120cd3['commentThread']['length'],_0x7266a5=_0x5e8e58['commentThread']&&_0x5e8e58['commentThread']['length'];if(!_0x13d90f&&_0x229dd3(_0x59b062,_0x4e8eda))return _0xc90491['_joinSuggestions'](_0x5e8e58,_0x120cd3),_0x3724b4['delete'](_0x120cd3),!0x0;if(!_0x7266a5&&_0x229dd3(_0x4e8eda,_0x59b062))return _0xc90491['_joinSuggestions'](_0x120cd3,_0x5e8e58),_0x3724b4['delete'](_0x5e8e58),!0x0;}return!0x1;}}['_joinSuggestions'](_0x303669,_0x5af4d2){if(_0x303669['isMultiRange']){for(const _0x31db06 of _0x5af4d2['getRanges']())_0x303669['addRange'](_0x31db06);}else{const _0x2e7214=_0x5af4d2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x303669,this['_model']['createRange'](_0x303669['getFirstRange']()['start'],_0x2e7214));}_0x5af4d2['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2bc297,_0x4675fd){const _0x51f2cf=_0x2bc297['startsWith']('format')||_0x2bc297['startsWith']('attribute')?'FORMATTING':_0x2bc297['toUpperCase']();return o(this['editor']['locale'],_0x4675fd+'_'+_0x51f2cf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5db6c8=this['editor'];if(!_0x5db6c8['ui'])return;const {ariaLiveAnnouncer:_0x4a3cc7}=_0x5db6c8['ui'];_0x572aad(this['_model'],({left:_0x515156,entered:_0x5e474e})=>{for(const _0x5a77dc of _0x515156){const {group:_0x4c3736,type:_0x679044}=this['_splitMarkerName'](_0x5a77dc['name']);if('suggestion'===_0x4c3736){_0x4a3cc7['announce'](this['_getMarkerAnnouncementText'](_0x679044,'LEAVE'));break;}}for(const _0x569201 of _0x5e474e){const {group:_0x2133dc,type:_0x1548f4}=this['_splitMarkerName'](_0x569201['name']);if('suggestion'===_0x2133dc){_0x4a3cc7['announce'](this['_getMarkerAnnouncementText'](_0x1548f4,'ENTER'));break;}}});}['_processAttributeChanges'](_0x116349){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5242fd=this['editor'],_0x19f995=_0x5242fd['model']['document']['differ']['getChanges']();if(0x0==_0x19f995['length'])return!0x1;const _0x4eaa77=[],_0x523a9d=_0x19f995['filter'](_0x579a4a=>'attribute'==_0x579a4a['type']),_0x55cf1b=_0x19f995['filter'](_0x3b4ae3=>'insert'==_0x3b4ae3['type']&&'$text'!=_0x3b4ae3['name']),_0x27e8bd=_0x19f995['filter'](_0x247e33=>'remove'==_0x247e33['type']&&'$text'!=_0x247e33['name']);for(const _0x136fa2 of _0x523a9d)_0x4eaa77['push']({'key':_0x136fa2['attributeKey'],'newValue':_0x136fa2['attributeNewValue'],'oldValue':_0x136fa2['attributeOldValue'],'range':Ot(_0x136fa2['range'],_0x5242fd['model'])});for(const _0x4b6b62 of _0x55cf1b){const _0x474ae1=_0x27e8bd['find'](_0xd0b2a=>_0xd0b2a['position']['isEqual'](_0x4b6b62['position']));_0x474ae1&&_0x4eaa77['push']({'key':m,'newValue':_0x4b6b62['name'],'oldValue':_0x474ae1['name'],'range':_0x5242fd['model']['createRangeOn'](_0x4b6b62['position']['nodeAfter'])});}return 0x0!=_0x4eaa77['length']&&this['_reduceExistingSuggestions'](_0x116349,_0x4eaa77);}['_processAttributeSuggestions'](_0x296092){let _0xd53211=!0x1;const _0x18dbe6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52c9c5=>_0x52c9c5['data']['newRange']&&_0x52c9c5['name']['startsWith']('suggestion:attribute:'));for(const _0x150615 of _0x18dbe6){const {subType:_0x52474f,id:_0x3dd1ee}=this['_splitMarkerName'](_0x150615['name']),_0x426955=_0x52474f['split']('|')[0x0];for(const _0x44d67e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44d67e['id']!=_0x3dd1ee&&'attribute'==_0x44d67e['type']&&_0x44d67e['data']&&_0x44d67e['data']['key']==_0x426955&&_0x44d67e['getFirstRange']()['isIntersecting'](_0x150615['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44d67e,_0x150615['data']['newRange'],_0x296092),_0xd53211=!0x0);}return _0xd53211;}['_recordAttributeChanges'](_0x17a60e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x17a60e();}['_isRegisteredAttribute'](_0x4a1aed){const _0x214543=this['_isBlockAttribute'](_0x4a1aed),_0x55bb07=this['_inlineAttributeKeys']['has'](_0x4a1aed);return _0x214543||_0x55bb07;}['_reduceExistingSuggestions'](_0x132562,_0x3b94f5){if(0x0==_0x3b94f5['length'])return!0x1;let _0x3d0f77=!0x1;for(const _0x434ccc of _0x3b94f5){const _0x51cdc6=this['_findSuggestions'](_0x434ccc['range'],'attribute')['filter'](_0x48a2e8=>!_0x48a2e8['meta']['isNextTo'])['map'](_0x4b1440=>_0x4b1440['suggestion']),_0x3a1da1=_0x18968b({'newValue':_0x434ccc['newValue']});_0x51cdc6['filter'](_0x69b92b=>{const [_0x3a7b57,_0x2adc99]=_0x69b92b['subType']['split']('|');return _0x3a7b57==_0x434ccc['key']&&_0x2adc99!=_0x3a1da1;})['forEach'](_0x5f4aa2=>{this['_reduceSuggestionAttributeRange'](_0x5f4aa2,_0x434ccc['range'],_0x132562),_0x3d0f77=!0x0;});}return _0x3d0f77;}['_reduceSuggestionAttributeRange'](_0x43b03b,_0x2a8184,_0xbd12e5){const _0x2722ac=_0x43b03b['getFirstRange']()['getDifference'](_0x2a8184);0x0!==_0x2722ac['length']?0x1!==_0x2722ac['length']?this['_breakSuggestionMarker'](_0x43b03b,_0x2a8184['start'],_0x2a8184['end']):this['_setSuggestionRange'](_0x43b03b,_0x2722ac[0x0]):_0xbd12e5['removeMarker'](_0x43b03b['getFirstMarker']());}constructor(_0x1396df){function _0x39a675(_0x19b676){return _0x19b676['map'](_0x125e66=>String['fromCharCode'](_0x125e66))['join']('');}super(_0x1396df),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x36fa21,_0x1d5d65,_0x31600a,_0x205589)=>{this['_model']['change'](()=>{for(const _0x2fdfe1 of[..._0x205589,..._0x31600a])this['_model']['markers']['has'](_0x2fdfe1)&&_0x1396df['editing']['reconvertMarker'](_0x2fdfe1);});}),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']=_0x1396df['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(),_0x1396df['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1396df['config']['get']('trackChanges.trackFormatChanges'),_0x1396df['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1396df['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1396df,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x39a675([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x39a675([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x32]);}}class xt{['buildSuggestion'](_0x550341,_0x522fc2,_0x1e3c6c,_0x14f8af,_0x31facd,_0x25e375){return new u(this['_model'],{'type':_0x550341,'subType':_0x522fc2,'id':_0x1e3c6c,'author':_0x14f8af,'creator':_0x14f8af,'attributes':_0x31facd,'onAttributesChange':_0x25e375,'onAccept':(..._0x3efa17)=>this['getSuggestionCallback'](_0x550341,_0x522fc2,'accept')(..._0x3efa17),'onDiscard':(..._0x29b667)=>this['getSuggestionCallback'](_0x550341,_0x522fc2,'discard')(..._0x29b667)});}['registerCustomCallback'](_0x39b9eb,_0x543edb,_0x53aca6,_0x399050){const _0x2e4a99=_0x39b9eb+':'+_0x543edb+':'+_0x53aca6;this['_customCallbacks']['set'](_0x2e4a99,_0x399050);}['getSuggestionCallback'](_0x10a2a6,_0x1f67e2,_0x2c5aaa){const _0x5ecf8d=_0x10a2a6+':'+_0x1f67e2+':'+_0x2c5aaa;return this['_customCallbacks']['get'](_0x5ecf8d)||this['_defaultCallbacks']['get'](_0x10a2a6+':'+_0x2c5aaa);}['_registerDefaultCallbacks'](){const _0x5e7b3d=()=>!0x1,_0x12b596=_0x3951df=>{_0x3951df['sort']((_0x1f27a9,_0x3e61bc)=>_0x1f27a9['start']['isBefore'](_0x3e61bc['start'])?0x1:-0x1),this['_model']['change'](_0x1c2e3=>{for(const _0x438506 of _0x3951df){let _0x170a0c;_0x170a0c=_0x438506['end']['isAtEnd']&&_0x438506['end']['parent']==_0x438506['start']['nodeAfter']?_0x1c2e3['createSelection'](_0x438506['start']['nodeAfter'],'on'):_0x1c2e3['createSelection'](_0x438506),this['_model']['deleteContent'](_0x170a0c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53764b=(_0x4b64fd,_0x2e8c53)=>{_0x2e8c53&&this['_model']['change'](_0x25a4e0=>{const {commandName:_0x28da57,commandParams:_0x57dfd7=[]}=_0x2e8c53,_0x1c3a9a=_0x4b64fd['map'](_0x5bc36f=>(Tt(_0x5bc36f)&&(_0x5bc36f=this['_model']['createRange'](_0x5bc36f['end'])),_0x5bc36f))['filter'](_0x54acdd=>'$graveyard'!==_0x54acdd['root']['rootName']);if(_0x1c3a9a['length']<0x1)return;const _0x813499=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc3cb09=>_0x2f3de9['fromRange'](_0xc3cb09));_0x25a4e0['setSelection'](_0x1c3a9a);for(const _0x509991 of this['_editor']['commands']['commands']())_0x509991['refresh']();_0x57dfd7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28da57,..._0x57dfd7);const _0x548b27=_0x813499['filter'](_0x3bb1de=>'$graveyard'!=_0x3bb1de['root']['rootName']);_0x548b27['length']>0x0&&_0x25a4e0['setSelection'](_0x548b27);for(const _0x5b4e98 of _0x813499)_0x5b4e98['detach']();});},_0x5e7636=(_0x5cdc2c,_0x302a57)=>0x1==_0x5cdc2c['length']&&0x1==_0x302a57['length']&&_0x5cdc2c[0x0]['end']['isEqual'](_0x302a57[0x0]['start']),_0x48a93d=(_0x2d33a0,_0x124db7,_0x56690c,_0x150726)=>Gt(_0x2d33a0,_0x124db7,_0x56690c,_0x150726,this['_model'])?[_0x2d33a0,_0x124db7]:Gt(_0x124db7,_0x2d33a0,_0x150726,_0x56690c,this['_model'])?[_0x124db7,_0x2d33a0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e7b3d),this['_defaultCallbacks']['set']('insertion:discard',_0x12b596),this['_defaultCallbacks']['set']('insertion:join',_0x5e7636),this['_defaultCallbacks']['set']('insertion:chain',_0x48a93d),this['_defaultCallbacks']['set']('deletion:accept',_0x12b596),this['_defaultCallbacks']['set']('deletion:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('deletion:join',_0x5e7636),this['_defaultCallbacks']['set']('deletion:chain',_0x48a93d),this['_defaultCallbacks']['set']('formatInline:accept',_0x53764b),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('formatInline:join',_0x5e7636),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e7b3d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x53764b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e7b3d),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e7636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e7b3d),this['_defaultCallbacks']['set']('attribute:accept',_0x5e7b3d),this['_defaultCallbacks']['set']('attribute:discard',(_0x364fa1,_0x1177cd)=>{if(!_0x1177cd)return;const _0x294a80=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1099a4=>{if(_0x1177cd['key']==m)for(const _0x3c982 of _0x364fa1){const _0x4094e1=_0x3c982['start']['nodeAfter'],_0x53629f=_0x1177cd['oldValue'];_0x1099a4['rename'](_0x4094e1,_0x53629f);}else{if(_0x294a80['_isBlockAttribute'](_0x1177cd['key'])){for(const _0x286e39 of _0x364fa1)void 0x0!==_0x1177cd['oldValue']?_0x1099a4['setAttribute'](_0x1177cd['key'],_0x1177cd['oldValue'],_0x286e39['start']['nodeAfter']):_0x1099a4['removeAttribute'](_0x1177cd['key'],_0x286e39['start']['nodeAfter']);}else{for(const _0x455ab1 of _0x364fa1)_0x1177cd['oldValue']?_0x1099a4['setAttribute'](_0x1177cd['key'],_0x1177cd['oldValue'],_0x455ab1):_0x1099a4['removeAttribute'](_0x1177cd['key'],_0x455ab1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e7636);}constructor(_0x5af1a6){this['_editor']=_0x5af1a6,this['_model']=_0x5af1a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x5b44e2,_0x18816c,_0x1c2b3c){for(const _0x415648 of _0x18816c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x415648['root']==_0x415648)return!0x1;if(!_0x1c2b3c['containsItem'](_0x415648))return!0x1;if(_0x5b44e2['isObject'](_0x415648)||_0x5b44e2['isLimit'](_0x415648))return!0x0;}return!0x1;}function Tt(_0x5ee895){return _0x5ee895['end']['parent']==_0x5ee895['start']['nodeAfter']&&_0x5ee895['end']['isAtStart'];}function Et(_0x5bb408,_0x45fa5d,_0x4c83cf,_0x4cd694){const _0x5f2f3d=_0x1ab886=>!_0x1ab886['item']['is']('$textProxy')&&!_0x4cd694['isObject'](_0x1ab886['item']),_0xe7d176=_0x5bb408['start']['getLastMatchingPosition'](_0x5f2f3d),_0x5ca055=_0x5bb408['end']['getLastMatchingPosition'](_0x5f2f3d,{'direction':'backward'});return(!_0x5bb408['start']['isEqual'](_0xe7d176)||!_0x5bb408['end']['isEqual'](_0x5ca055))&&(_0xe7d176['isBefore'](_0x5ca055)?_0x4c83cf['updateMarker'](_0x45fa5d,{'range':_0x4c83cf['createRange'](_0xe7d176,_0x5ca055)}):_0x4c83cf['removeMarker'](_0x45fa5d),!0x0);}function Vt(_0x462a2f){return _0x18968b(_0x462a2f);}function Ut(_0x398f36){const _0x4c9f39=_0x398f36['start']['nodeAfter'];return _0x4c9f39&&_0x4c9f39['is']('element');}function Ot(_0x1dbdd9,_0x2de15d){return null==_0x1dbdd9['end']['nodeBefore']&&_0x1dbdd9['end']['parent']==_0x1dbdd9['start']['nodeAfter']?Ft(_0x1dbdd9['start']['nodeAfter'],_0x2de15d):_0x1dbdd9;}function Ft(_0x37b979,_0x3d5837){const _0x2661cd=_0x3d5837['schema']['isObject'](_0x37b979)||_0x3d5837['schema']['isSelectable'](_0x37b979);return _0x3d5837['createRange'](_0x3d5837['createPositionAt'](_0x37b979,'before'),_0x2661cd?_0x3d5837['createPositionAfter'](_0x37b979):_0x3d5837['createPositionAt'](_0x37b979,'end'));}function Gt(_0x2397ec,_0x328445,_0x18ec31,_0x385850,_0x5a442f){if(!Pt(_0x2397ec,_0x328445))return!0x1;if(_0x18ec31['end']['isEqual'](_0x385850['start']))return!0x0;if(_0x2397ec['type']!=_0x328445['type'])return!0x1;if(!_0x18ec31['end']['isTouching'](_0x385850['start']))return!0x1;const _0x49299c=_0x5a442f['createRange'](_0x18ec31['end'],_0x385850['start'])['getWalker']();for(const _0x1ac3a0 of _0x49299c)if(['elementStart','elementEnd']['includes'](_0x1ac3a0['type'])&&_0x5a442f['schema']['isLimit'](_0x1ac3a0['item']))return!0x1;return!0x0;}function Pt(_0x2cb666,_0x12663f,_0x3839dd=[]){return!(!_0x2cb666['_isDataLoaded']||!_0x12663f['_isDataLoaded'])&&_0x2368d0(Bt(_0x2cb666['attributes'],_0x3839dd),Bt(_0x12663f['attributes'],_0x3839dd));}function Lt(_0x19ce64,_0x385114){const _0x58421b=Ht(_0x19ce64['attributes']),_0x2a7aa2=Ht(_0x385114);if(!_0x19ce64['_isDataLoaded'])return!0x1;for(const _0x37d967 of Object['keys'](_0x2a7aa2))if(!_0x2368d0(_0x58421b[_0x37d967],_0x2a7aa2[_0x37d967]))return!0x1;return!0x0;}function Ht(_0x43b7fd){const _0x465136=Object['assign']({},_0x43b7fd);return delete _0x465136['skipNestingCheck'],delete _0x465136['tablePasteChainId'],_0x465136;}class oe extends _0x4cd08f(){['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 _0xa2046e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xa2046e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x3817a9,_0x4e9fa5,_0x366df8,_0x48491b){super(),this['model']=_0x4e9fa5,this['view']=_0x366df8,this['commentThreadController']=_0x48491b,this['_editor']=_0x3817a9,this['_acceptCommand']=_0x3817a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3817a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5738be,_0x6285e3)=>_0x5738be||_0x6285e3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x407ae2=>_0x407ae2&&this['_editor']['model']['canEditAt'](_0x4e9fa5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35c798=>_0x35c798&&this['_editor']['model']['canEditAt'](_0x4e9fa5['getRanges']())),this['_pendingAction']=null,_0x366df8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x366df8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x366df8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x366df8,'change:isDirty',()=>{_0x366df8['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x299e5d{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5bb3b5}=this['_config'];this['commentsListView']=new _0x5bb3b5(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',_0x378a3e=>_0x378a3e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5189aa,_0x3f8138)=>_0x5189aa||!!_0x3f8138);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x406db7}=this['_config'],_0xe5adbf=new _0x406db7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5899c6=_0xe5adbf['commentInputView'];return _0xe5adbf['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5899c6,'value',(_0x3c3ed6,_0x364320,_0x41f4a7)=>!!_0x41f4a7||_0x3c3ed6&&!_0x364320),_0x5899c6['on']('submit',(_0x254f76,_0x599bf6)=>{this['fire']('addComment',_0x599bf6),_0x5899c6['editor']['setData']('');}),_0x5899c6['on']('cancel',()=>this['focus']()),_0x5899c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe5adbf;}constructor(_0x3ed3f8,_0x3137c4,_0x321c83,_0x3c8c14){super(_0x3ed3f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3137c4['authoredAt']),this['bind']('authoredAt')['to'](_0x3137c4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3137c4,this['_localUser']=_0x321c83,this['_config']=_0x3c8c14,_0x3c8c14['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x4fdc8c=this['bindTemplate'],_0x2f45cc=[{'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':_0x4fdc8c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4fdc8c['to']('authoredAt',_0x8832e0=>this['_config']['formatDateTime'](_0x8832e0))}]}]},{'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']&&_0x2f45cc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59d58b={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4fdc8c['if']('isActive','ck-suggestion-wrapper--active'),_0x4fdc8c['to']('type',_0x50ad2f=>'ck-suggestion-'+_0x50ad2f),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':_0x2f45cc}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59d58b['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)),_0x59d58b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2cc484,_0x31a15e,_0x11caac)=>{this['_descriptionElement']['innerHTML']=_0x11caac;});}['_createButton'](_0x5321c8,_0x4c8ff1,_0x3cc69b,_0xd38c73,_0x327425){const _0x378ad6=new _0x58c753(this['locale']);return _0x378ad6['set']({'label':_0x5321c8,'icon':_0x4c8ff1,'tooltip':!0x0,'tooltipPosition':_0x327425}),_0x378ad6['extendTemplate']({'attributes':{'class':_0x3cc69b}}),_0x378ad6['on']('execute',()=>{this['fire'](_0xd38c73,this['_model']['id']);}),_0x378ad6;}['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(_0x5891c6,_0x418959,_0x3dc9c9,_0x1c3dcb){super(_0x5891c6,_0x418959,_0x3dc9c9,_0x1c3dcb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cb1bb=>_0x5cb1bb&&_0x5cb1bb[0x0]?_0x5cb1bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x357eba,_0x137e69)=>{let _0x2c72='';for(const _0x253aa0 of _0x357eba)_0x2c72+='<p>'+ds(_0x253aa0['content'],_0x253aa0['color'])+'</p>';return _0x137e69?_0x2c72:_0x2acff3(_0x2c72,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5891c6,'Accept\x20suggestion'),_0x22772e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5891c6,'Discard\x20suggestion'),_0x22772e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4cc9e8(_0x5891c6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x29ae5b,_0x1462a8){let _0x46ae27='';return _0x46ae27+=_0x29ae5b['split']('*')['map']((_0x4bca44,_0x12956b)=>_0x12956b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x4bca44)+'</span>':us(_0x4bca44))['join'](''),_0x1462a8&&(_0x46ae27+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1462a8['value']+'\x22\x20title=\x22'+_0x1462a8['title']+'\x22></span>'),_0x46ae27;}function us(_0x5a124f){const _0x3dfc88=document['createElement']('span');return _0x3dfc88['innerText']=_0x5a124f,_0x3dfc88['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 _0x5511a1{static get['requires'](){return[p,_0xd07c79,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x44364e,_0x22ef76){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45d594,_0x24f8d6]of this['_handleControllerBuffer']){const _0x32e255=this['_suggestionToController']['has'](_0x45d594);_0x32e255||_0x24f8d6?_0x32e255&&_0x24f8d6&&this['_destroyController'](_0x45d594):this['_initializeController'](_0x45d594);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x44364e,_0x22ef76);}['init'](){const _0x5d44b1=this['editor'],_0x31b151=_0x5d44b1['plugins']['get']('TrackChangesEditing'),_0x4a1812=_0x5d44b1['plugins']['get']('Annotations'),_0x58f9a4=_0x5d44b1['plugins']['get']('EditorAnnotations'),_0x39708a=_0x5d44b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x58f9a4['addSourceCollector'](()=>{const _0x9035df=[];for(const [_0x2e3ff0,_0x13e6eb]of Array['from'](this['_suggestionToController'])){const _0x39cccc=_0x2e3ff0['getAllAdjacentSuggestions'](),_0x29ca05=[];for(const _0x227da4 of _0x39cccc){if(!_0x227da4['isInContent'])continue;if(_0x227da4['isMultiRange']){_0x29ca05['push'](..._0x227da4['getRanges']());continue;}const _0x2cbd4a=_0x227da4['getFirstRange']();if(_0x29ca05['length']>0x0){const _0x4a6c8c=_0x29ca05[0x0]['getJoined'](_0x2cbd4a);if(_0x4a6c8c){_0x29ca05[0x0]=_0x4a6c8c;continue;}}_0x29ca05['push'](_0x2cbd4a);}_0x9035df['push']([_0x13e6eb['view'],_0x29ca05]);}return _0x9035df;}),this['listenTo'](_0x31b151,'suggestionLoaded',(_0x4c360f,_0x4330ca)=>{this['listenTo'](_0x4330ca,'change:previous',(_0x5088a7,_0xefa9c8,_0x14152d,_0x3ed7f2)=>{_0x4330ca['isInContent']&&(null==_0x14152d?(this['_updateController'](_0x3ed7f2['head']),this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x1)):(this['_updateController'](_0x14152d['head']),null==_0x3ed7f2&&this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x0)));}),null!==_0x4330ca['previous']?this['_updateController'](_0x4330ca['head']):this['_handleSuggestionControllerDelayed'](_0x4330ca,!0x1);}),this['listenTo'](_0x31b151,'suggestionUnloaded',(_0x502481,_0x21d389,_0x1a9f73)=>{this['stopListening'](_0x21d389,'change:previous'),this['_handleControllerBuffer']['delete'](_0x21d389),this['_suggestionToController']['has'](_0x21d389)&&this['_destroyController'](_0x21d389),_0x1a9f73&&this['_updateController'](_0x1a9f73['head']);}),this['listenTo'](_0x31b151,'suggestionChanged',(_0xa4c3b5,_0x259e34)=>{this['_updateController'](_0x259e34);}),this['listenTo'](_0x4a1812,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39708a,'addComment',(_0x192fcd,{threadId:_0x4c5f05,isFromAdapter:_0x5a6aa6})=>{if(_0x5a6aa6||!_0x31b151['hasSuggestion'](_0x4c5f05))return;const _0x3ef595=_0x31b151['getSuggestion'](_0x4c5f05);this['_suggestionToController']['get'](_0x3ef595)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x141f51=this['editor']['plugins']['get']('Annotations'),_0x2a294a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d08b2=Array['from'](_0x141f51['activeAnnotations'],_0x3f9986=>_0x3f9986['innerView'])['filter'](_0x2759cf=>this['_viewToController']['has'](_0x2759cf)),_0x3880ee=[];for(const _0x3665b8 of _0x1d08b2){const _0x46e978=this['_viewToController']['get'](_0x3665b8)['model']['getAllAdjacentSuggestions']();_0x3880ee['push'](..._0x46e978['reduce']((_0x3fd4e1,_0x205760)=>[..._0x3fd4e1,..._0x205760['getMarkerNames']()],[]));}_0x2a294a['activeMarkers']=_0x3880ee;}['_addUIComponentsToFactory'](){const _0x262a80=this['editor'],_0x5b147d=_0x262a80['locale'],_0x320122=o(_0x5b147d,'Track\x20changes'),_0xc9790c=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x320122,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5b147d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x45a80e of _0xc9790c)if(ae(_0x45a80e)){const _0x13af3c=_0x262a80['commands']['get'](_0x45a80e['model']['commandName']);_0x45a80e['model']['bind']('isOn','isEnabled')['to'](_0x13af3c,'value','isEnabled');}_0x262a80['ui']['componentFactory']['add']('trackChanges',_0x13f76d=>this['_createToolbarButton'](_0x13f76d,_0xc9790c,_0x320122)),_0x262a80['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5914a9=>this['_createMenuBarMenu'](_0x5914a9,_0xc9790c,_0x320122));}['_createToolbarButton'](_0x462394,_0x1cb8b6,_0x56cfe5){const _0x48270e=zt(_0x462394,Zt),_0x16c0b5=this['editor']['commands']['get']('trackChanges');_0x48270e['buttonView']['set']({'tooltip':_0x56cfe5,'label':_0x56cfe5,'icon':ie}),_0x48270e['buttonView']['bind']('isOn')['to'](_0x16c0b5,'value'),_0x48270e['buttonView']['on']('execute',()=>{_0x16c0b5['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x48270e,_0x1cb8b6);const _0x4dc7e3=[];for(const _0xb8c0a8 of _0x1cb8b6)ae(_0xb8c0a8)&&_0x4dc7e3['push'](this['editor']['commands']['get'](_0xb8c0a8['model']['commandName']));const _0xf8ecfc=_0x48270e['buttonView'];return _0xf8ecfc['actionView']['unbind']('isEnabled'),_0xf8ecfc['arrowView']['unbind']('isEnabled'),_0xf8ecfc['actionView']['bind']('isEnabled')['to'](_0x16c0b5,'isEnabled'),_0xf8ecfc['arrowView']['bind']('isEnabled')['toMany'](_0x4dc7e3,'isEnabled',(..._0x29de0e)=>_0x29de0e['some'](_0x254801=>_0x254801)),_0x48270e['on']('execute',_0x5d4094=>{this['editor']['execute'](_0x5d4094['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x48270e;}['_createMenuBarMenu'](_0x406c13,_0x529beb,_0x241ca6){const _0x228706=new Kt(_0x406c13),_0x4c7beb=this['editor']['commands']['get']('trackChanges');_0x228706['buttonView']['set']({'label':_0x241ca6,'icon':ie});const _0x2d101e=new Qt(_0x406c13);for(const _0x391d2c of _0x529beb){if('separator'==_0x391d2c['type']){_0x2d101e['items']['add'](new Jt(_0x406c13));continue;}const _0x2fdc34=new Xt(_0x406c13,_0x228706),_0x7ff113=new Yt(_0x406c13),_0x38db21=_0x391d2c['model'];_0x7ff113['bind'](...Object['keys'](_0x38db21))['to'](_0x38db21),_0x7ff113['delegate']('execute')['to'](_0x228706),_0x7ff113['on']('execute',()=>{this['editor']['execute'](_0x38db21['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fdc34['children']['add'](_0x7ff113),_0x2d101e['items']['add'](_0x2fdc34);}return _0x228706['bind']('isEnabled')['to'](_0x4c7beb,'isEnabled'),_0x228706['panelView']['children']['add'](_0x2d101e),_0x228706;}['_initializeController'](_0x2e8e79){const _0x321748=this['editor'],_0x3fdfcd=_0x321748['config'],_0x27bacc=_0x321748['plugins']['get']('Annotations'),_0x186b7d=_0x321748['plugins']['get']('CommentsRepository'),_0x37fee5=_0x321748['plugins']['get']('EditorAnnotations'),_0x142ca2=_0x321748['plugins']['get'](_0xd07c79)['me'],_0x8bf83f=_0x3fdfcd['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xd84fc5,CommentThreadInputView:_0x251a69}=_0x321748['plugins']['get']('CommentsUI');let _0x3aba7a,_0x18185f;this['_annotationViews']['has'](_0x2e8e79['id'])?(_0x18185f=this['_annotationViews']['get'](_0x2e8e79['id']),_0x3aba7a=_0x18185f['mainView']):(_0x3aba7a=new _0x8bf83f(_0x321748['locale'],_0x2e8e79,_0x142ca2,{'disableComments':this['_disableComments'],'editorConfig':_0x3fdfcd['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3fdfcd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3fdfcd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3fdfcd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2638f4(_0x3fdfcd['get']('locale')),'CommentView':_0x3fdfcd['get']('comments')['CommentView'],'CommentsListView':_0xd84fc5,'CommentThreadInputView':_0x251a69}),_0x3aba7a['acceptButton']['on']('execute',()=>{_0x321748['editing']['view']['focus']();}),_0x3aba7a['discardButton']['on']('execute',()=>{_0x321748['editing']['view']['focus']();}),_0x18185f=_0x27bacc['createAnnotationView'](this['editor']['locale'],_0x3aba7a),_0x18185f['bind']('isDirty')['to'](_0x3aba7a,'isDirty'),_0x18185f['bind']('length')['to'](_0x3aba7a),_0x18185f['bind']('type')['to'](_0x3aba7a,'type',_0x1677c0=>'suggestion-'+_0x1677c0),this['_annotationViews']['set'](_0x2e8e79['id'],_0x18185f));const _0x5d466c=_0x186b7d['createCommentThreadController'](_0x2e8e79['commentThread'],_0x3aba7a),_0x26fa7e=new oe(_0x321748,_0x2e8e79,_0x3aba7a,_0x5d466c),_0x39742c=_0x2e8e79['getAllAdjacentSuggestions']()['filter'](_0x3bdcb8=>_0x3bdcb8['isInContent']);_0x3aba7a['descriptionParts']=_0x321748['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x39742c),this['_suggestionToController']['set'](_0x2e8e79,_0x26fa7e),this['_viewToController']['set'](_0x3aba7a,_0x26fa7e);const _0x4102da=_0x27bacc['createAnnotation']({'view':_0x18185f,'target':()=>{const _0x110cb7=[],_0x127794=_0x2e8e79['getAllAdjacentSuggestions']()['filter'](_0x175bb3=>_0x175bb3['isInContent']);for(const _0x18fd7f of _0x127794)_0x110cb7['push'](..._0x18fd7f['getMarkers']());return _0x1f8725(_0x321748['editing'],_0x110cb7);},'type':()=>'suggestion-'+_0x26fa7e['view']['type']});_0x186b7d['_bindAnnotationToEditors'](_0x3aba7a,_0x4102da),_0x27bacc['add'](_0x4102da),_0x37fee5['registerAnnotation'](_0x4102da);}['_destroyController'](_0x1268da){const _0x27c1c6=this['editor']['plugins']['get']('CommentsRepository'),_0x18ad7a=this['editor']['plugins']['get']('Annotations'),_0x37f6e8=this['_suggestionToController']['get'](_0x1268da),_0x29dc28=_0x37f6e8['view'],_0x62907=_0x18ad7a['getByInnerView'](_0x29dc28);_0x27c1c6['_unbindEditors'](_0x29dc28),_0x62907&&_0x18ad7a['remove'](_0x62907),this['_suggestionToController']['delete'](_0x1268da),this['_viewToController']['delete'](_0x29dc28),_0x37f6e8['destroy']();}['_updateController'](_0x26c874){if(!_0x26c874['isInContent']||!this['_suggestionToController']['has'](_0x26c874))return;const _0x105298=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5ece=this['_suggestionToController']['get'](_0x26c874),_0x57db35=_0x26c874['getAllAdjacentSuggestions']();_0x1c5ece['view']['descriptionParts']=_0x105298['descriptionFactory']['getDescriptions'](_0x57db35);}['destroy'](){for(const _0x2c5435 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2c5435);for(const _0x22b37d of this['_annotationViews']['values']())_0x22b37d['mainView']['destroy']();super['destroy']();}constructor(_0x467eab){super(_0x467eab),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4aff4c=this['editor']['config'];_0x4aff4c['define']('trackChanges.SuggestionThreadView',ne),_0x4aff4c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4aff4c['get']('trackChanges.disableComments');}}function ae(_0x4867b8){return'model'in _0x4867b8;}class k extends _0x5511a1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x347caa){this['editor']['plugins']['get'](p)['adapter']=_0x347caa;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x104b7c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x104b7c);}['getSuggestions']({skipNotAttached:_0x39c8fb=!0x1,toJSON:_0x57cb4e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39c8fb,'toJSON':_0x57cb4e});}['getSuggestion'](_0x1217d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1217d2);}}const T=['Pagination'];class P extends _0x5511a1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4cf8c1=this['editor'];if(_0x4cf8c1['config']['define']('trackChangesData.editorCreator',_0xf3cd24=>{const _0x1d7892=_0x4cf8c1['model']['document']['getRootNames']()['reduce']((_0x3bbb01,_0x27f5dd)=>(_0x3bbb01[_0x27f5dd]='',_0x3bbb01),{});return _0x4cf8c1['constructor']['create'](_0x1d7892,_0xf3cd24);}),'function'!=typeof _0x4cf8c1['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a2cc3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2367df){return N(this['editor'],!0x0,_0x2367df);}['getDataWithDiscardedSuggestions'](_0x4f3755){return N(this['editor'],!0x1,_0x4f3755);}}class D extends _0x5511a1{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(_0x35adf2){super(_0x35adf2),this['result']='end';}}function v(_0x47c070){return void 0x0!==_0x47c070['getRootsAttributes'];}async function N(_0x236721,_0x294856,_0x8205bf){const _0x230082=_0x261009(_0x236721,T);_0x230082['plugins']['push'](p,D),_0x230082['rootsAttributes']=v(_0x236721)?_0x236721['getRootsAttributes']():void 0x0;const _0x5cdc13=document['createDocumentFragment'](),_0x11a499=_0x236721['config']['get']('trackChangesData')['editorCreator'],_0x54d770=await _0x11a499(_0x230082,()=>function(_0x41c984){const _0xcf8eed=document['createElement']('div');return _0x41c984['appendChild'](_0xcf8eed),_0xcf8eed;}(_0x5cdc13));!function(_0x22b56e,_0x1ef56c){const _0x40a994=_0x22b56e['model']['document']['getRootNames']()['reduce']((_0x14eca8,_0x2275b2)=>(_0x14eca8[_0x2275b2]=_0x22b56e['data']['get']({'rootName':_0x2275b2}),_0x14eca8),{}),_0x3977d4=_0x22b56e['plugins']['get']('Users')['users']['map'](_0x327bec=>({'id':_0x327bec['id'],'name':_0x327bec['name']})),_0x13a407=_0x22b56e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25980b=_0x22b56e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20a84f=_0x1ef56c['plugins']['get']('Users'),_0x13b780=_0x1ef56c['plugins']['get']('TrackChangesEditing'),_0x469c1f=_0x1ef56c['plugins']['get']('CommentsRepository');for(const _0x477505 of _0x3977d4)_0x20a84f['getUser'](_0x477505['id'])||_0x20a84f['addUser'](_0x477505);_0x20a84f['me']||_0x20a84f['useAnonymousUser']();for(const _0xa4e0e2 of _0x13a407)_0x13b780['addSuggestionData'](_0xa4e0e2);for(const _0x25165c of _0x25980b)_0x469c1f['addCommentThread'](_0x25165c);_0x1ef56c['data']['set'](_0x40a994);}(_0x236721,_0x54d770),_0x54d770['execute'](_0x294856?'acceptAllSuggestions':'discardAllSuggestions');const _0x7fb909=v(_0x54d770)?_0x54d770['getFullData'](_0x8205bf):_0x54d770['data']['get'](_0x8205bf);return await _0x54d770['destroy'](),_0x7fb909;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};