@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240504.0 → 0.0.0-nightly-20240505.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 _0x454bf4,PendingActions as _0x4a6417,icons as _0x55580e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x514bf6,ObservableMixin as _0x31fb1d,uid as _0x278a82,insertToPriorityArray as _0xf1e320,priorities as _0x65f0b9,logWarning as _0x320ee5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x102f80,View as _0x574b81,ButtonView as _0x2ae4b7,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 _0x542b67,hashObject as _0x35a39a,surroundingMarkersDetector as _0x55508a,trimHtml as _0xf381dc,UserView as _0x413f19,getDateTimeFormatter as _0x371728,getAllMarkersDomElementsSorted as _0x34c6b3,sanitizeEditorConfig as _0x1ce457}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x131e67,LiveRange as _0xb3bd9b,LivePosition as _0x3a5bde}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2c8377,toWidget as _0x18b848}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2ddff0,set as _0xee87ff,isEqual as _0x3c4be2,unset as _0x3d875d,omit as Bt}from'lodash-es';import{Delete as _0x36e4c2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x53f9bd,ShiftEnter as _0x202832}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 _0x29ea9c of this['editor']['commands']['commands']())_0x29ea9c['affectsData']&&!this['_enabledCommands']['has'](_0x29ea9c)&&_0x29ea9c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5be0dc of this['editor']['commands']['commands']())_0x5be0dc['affectsData']&&!this['_enabledCommands']['has'](_0x5be0dc)&&_0x5be0dc['clearForceDisabled']('TrackChangesCommand');}constructor(_0x44cd71,_0x213c26){super(_0x44cd71),this['_enabledCommands']=_0x213c26,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd31586){const _0x522997=this['_suggestions']['get'](_0xd31586);if(!_0x522997)throw new _0x514bf6('track-changes-accept-suggestion-not-found',this);const _0x7c37f7=_0x522997['getRanges']();this['editor']['model']['canEditAt'](_0x7c37f7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x522997);}constructor(_0x1321a7,_0x395d05){super(_0x1321a7),this['_suggestions']=_0x395d05,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b01fe){const _0x1708c9=this['_suggestions']['get'](_0x3b01fe);if(!_0x1708c9)throw new _0x514bf6('track-changes-discard-suggestion-not-found',this);const _0xa29aa9=_0x1708c9['getRanges']();this['editor']['model']['canEditAt'](_0xa29aa9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1708c9);}constructor(_0x55c574,_0x54c3ca){super(_0x55c574),this['_suggestions']=_0x54c3ca,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x399118){return _0x399118['sort']((_0x23d675,_0x3a687c)=>'deletion'==_0x23d675['type']&&'deletion'!=_0x3a687c['type']?-0x1:'deletion'!=_0x23d675['type']&&'deletion'==_0x3a687c['type']?0x1:0x0);}function to(_0x4e1163,_0x59ec5b){let _0x2037c3,_0x496cce=0x0;const _0x481478=[],_0x393e8a=_0x59ec5b['schema'];for(;_0x496cce<_0x4e1163['length'];){const _0x1c4ac7=_0x4e1163[_0x496cce],_0x512327=_0x4e1163[_0x496cce+0x1];_0x2037c3||(_0x2037c3=_0x59ec5b['createPositionBefore'](_0x1c4ac7)),co(_0x59ec5b,_0x1c4ac7,_0x512327)||(_0x481478['push'](_0x59ec5b['createRange'](_0x2037c3,_0x393e8a['isObject'](_0x1c4ac7)?_0x59ec5b['createPositionAfter'](_0x1c4ac7):_0x59ec5b['createPositionAt'](_0x1c4ac7,'end'))),_0x2037c3=null),_0x496cce++;}return _0x481478;}function co(_0x29c74d,_0x1166d6,_0x52ac23){if(!_0x52ac23)return!0x1;const _0x46a434=_0x29c74d['createPositionAfter'](_0x1166d6),_0x1e061c=_0x29c74d['createPositionBefore'](_0x52ac23);return _0x46a434['isTouching'](_0x1e061c);}function rs(_0x43f0e7,_0x4c3b35,_0x5f1ca7){for(;_0x5f1ca7['length'];){const _0x26d4f6=_0x5f1ca7['splice'](0x0,0x64);_0x43f0e7['change'](()=>{for(const _0x4bbe5d of _0x26d4f6)_0x4bbe5d['isInContent']&&_0x4c3b35['execute'](_0x4bbe5d['id']);});}}class x extends ts{['refresh'](){const _0x1014e2=Array['from'](this['_suggestions']['values']())['some'](_0x5c9015=>_0x5c9015['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1014e2;}['execute'](){const _0x4c9c5b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3b98ef of _0x4c9c5b){const _0x42c90b=_0x3b98ef['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42c90b))return;}rs(this['editor']['model'],this['_command'],_0x4c9c5b);}constructor(_0x300b66,_0x3f7fef,_0x113421){super(_0x300b66),this['_command']=_0x3f7fef,this['_suggestions']=_0x113421,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x49a293=this['editor']['model']['document']['selection'],_0x45309d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12f438,_0x5c68a9){const _0x1ec9bd=Array['from'](_0x12f438['getRanges']()),_0x7c17dd=new Set();for(const _0x172774 of _0x5c68a9)if(_0x172774['isInContent']){for(const _0x91b8ab of _0x1ec9bd)for(const _0x298ace of _0x172774['getRanges']())(_0x91b8ab['isIntersecting'](_0x298ace)||_0x12f438['isCollapsed']&&!_0x172774['isMultiRange']&&_0x172774['next']&&_0x298ace['end']['isTouching'](_0x91b8ab['start']))&&_0x7c17dd['add'](_0x172774);}return _0x7c17dd;}(_0x49a293,_0x45309d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2c1c87=ss(Array['from'](this['_selectedSuggestions']));for(const _0xe77b56 of _0x2c1c87){const _0x332725=_0xe77b56['getRanges']();if(!this['editor']['model']['canEditAt'](_0x332725))return;}rs(this['editor']['model'],this['_command'],_0x2c1c87);}constructor(_0x2e41a6,_0x2c360b,_0x5f45fb){super(_0x2e41a6),this['_command']=_0x2c360b,this['_suggestions']=_0x5f45fb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x31fb1d(){get['head'](){let _0x58339e=this;for(;_0x58339e['previous'];)_0x58339e=_0x58339e['previous'];return _0x58339e;}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'](_0x428b57){this['_markerNames']['add'](_0x428b57);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42cdf1=>this['_model']['markers']['get'](_0x42cdf1))['filter'](_0x326407=>_0x326407);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4790ae=>{for(const _0xb87933 of this['getMarkers']())_0x4790ae['removeMarker'](_0xb87933);}),this['_markerNames']['clear']();}['removeMarker'](_0x2d23ed){this['_model']['change'](_0x5adcbf=>{_0x5adcbf['removeMarker'](_0x2d23ed);}),this['_markerNames']['delete'](_0x2d23ed);}['addRange'](_0x4a291c){const _0x4dd523='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4dd523),this['_model']['change'](_0xc659fb=>{_0xc659fb['addMarker'](_0x4dd523,{'range':_0x4a291c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x229547){for(const _0x5373ff of this['getRanges']())if(_0x5373ff['isIntersecting'](_0x229547))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x37849c=>_0x37849c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xc0d6b9,_0x3af556)=>[..._0xc0d6b9,..._0x3af556['getItems']()],[]);}['getFirstRange'](){var _0x408436;return(null===(_0x408436=this['getFirstMarker']())||void 0x0===_0x408436?void 0x0:_0x408436['getRange']())||null;}['getContainedElement'](){const _0x4ffff2=this['getRanges']();if(0x1!=_0x4ffff2['length'])return null;const _0x32018b=_0x4ffff2[0x0],_0x2f1c2b=_0x32018b['start']['nodeAfter'],_0x4cea93=_0x32018b['end']['nodeBefore'];return _0x2f1c2b instanceof _0x131e67?_0x2f1c2b!=_0x4cea93?null:_0x2f1c2b: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 _0x490021=[];let _0x22f5b9=this['head'];for(;_0x22f5b9;)_0x490021['push'](_0x22f5b9),_0x22f5b9=_0x22f5b9['next'];return _0x490021;}['setAttribute'](_0xe14d7b,_0x29d311){const _0x242cd1=_0x2ddff0(this['attributes']);_0xee87ff(_0x242cd1,_0xe14d7b,_0x29d311),_0x3c4be2(_0x242cd1,this['attributes'])||(this['attributes']=_0x242cd1,this['_onAttributesChange'](_0x242cd1));}['removeAttribute'](_0x1b4f45){const _0x1c5791=_0x2ddff0(this['attributes']);_0x3d875d(_0x1c5791,_0x1b4f45),_0x3c4be2(_0x1c5791,this['attributes'])||(this['attributes']=_0x1c5791,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 _0x278a82()['substr'](0x1,0x5);}constructor(_0x5a601b,_0x3c13f9){super(),this['_isDataLoaded']=!0x1,this['id']=_0x3c13f9['id'],this['type']=_0x3c13f9['type'],this['subType']=_0x3c13f9['subType']||null,this['author']=_0x3c13f9['author'],this['creator']=_0x3c13f9['creator']||_0x3c13f9['author'],this['isExternal']=Boolean(_0x3c13f9['attributes']&&_0x3c13f9['attributes']['@external']),this['data']=null,this['_model']=_0x5a601b,this['_onAccept']=_0x3c13f9['onAccept'],this['_onDiscard']=_0x3c13f9['onDiscard'],this['_onAttributesChange']=_0x3c13f9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3c13f9['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(_0x3c77aa,_0x51ece3,_0x26cbfb){const t=_0x3c77aa['t'];switch(_0x51ece3){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',_0x26cbfb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x26cbfb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x26cbfb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x26cbfb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x26cbfb);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',_0x26cbfb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x26cbfb);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',_0x26cbfb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x26cbfb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x26cbfb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x26cbfb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x26cbfb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x26cbfb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x26cbfb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x26cbfb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x26cbfb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x26cbfb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x26cbfb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x26cbfb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x26cbfb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x26cbfb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x26cbfb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x26cbfb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x26cbfb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x26cbfb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x26cbfb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x26cbfb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x26cbfb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x26cbfb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x26cbfb);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'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x26cbfb);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'},_0x26cbfb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x26cbfb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x26cbfb);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'},_0x26cbfb);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'},_0x26cbfb);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 _0x51ece3;}}class f{['getDescriptions'](_0xce127c){const _0x2dd20b=[],_0x3e5fb8=new Set(),_0x375fb8=new Set();for(let _0x4c603e=0x0;_0x4c603e<_0xce127c['length'];_0x4c603e++){const _0x3cc46b=_0xce127c[_0x4c603e];if(!_0x3cc46b['isInContent'])continue;const _0x51eb0e=this['_handleCustomCallbackDescription'](_0x3cc46b);if(_0x51eb0e){if(null!=_0x3cc46b['subType']){if(_0x3e5fb8['has'](_0x3cc46b['subType']))continue;_0x3e5fb8['add'](_0x3cc46b['subType']);}_0x2dd20b['push'](_0x51eb0e);}else{if('attribute'!=_0x3cc46b['type'])'insertion'!=_0x3cc46b['type']&&'deletion'!=_0x3cc46b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2dd20b,_0x3cc46b,_0xce127c[_0x4c603e+0x1]);else{const _0x443e5b=_0x3cc46b['data']['key'];if(_0x375fb8['has'](_0x443e5b))continue;_0x375fb8['add'](_0x3cc46b['data']['key']),_0x443e5b==m?this['_handleRenameSuggestionDescription'](_0x2dd20b,_0x3cc46b):this['_handleAttributeSuggestionDescription'](_0x2dd20b,_0x3cc46b);}}}return this['_resolveDescriptionItems'](_0x2dd20b);}['registerDescriptionCallback'](_0x2a25c3){this['_customCallbacks']['push'](_0x2a25c3);}['registerElementLabel'](_0xb39312,_0x1efaf6,_0x4fef07=_0x65f0b9['normal']){'function'==typeof _0xb39312?_0xf1e320(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb39312,'label':_0x1efaf6,'priority':_0x4fef07}):this['_itemLabels']['set'](_0xb39312,_0x1efaf6);}['registerAttributeLabel'](_0x150ffe,_0x5a20eb){this['_attributeLabels']['set'](_0x150ffe,_0x5a20eb);}['getItemLabel'](_0x4cf751,_0x36464a=0x1){let _0x208340;for(const _0x112561 of this['_itemLabelsCallbacks'])if(_0x112561['matchingCallback'](_0x4cf751)){_0x208340=_0x112561['label'];break;}return _0x208340||(_0x208340=this['_itemLabels']['get'](_0x4cf751['name'])),_0x208340?_0x208340(_0x36464a):0x1!==_0x36464a?_0x36464a+'\x20'+_0x4cf751['name']+'s':''+_0x4cf751['name'];}['_addDescriptionItems'](_0x5436b3,_0x171aeb){const _0x115ad1=_0x171aeb['getFirstRange']()['getWalker'](),_0x80c4c5='insertion'==_0x171aeb['type']?'add':'remove';for(const _0x5171f1 of _0x115ad1){const _0x48c153=_0x5171f1['item'],_0x2fb456=_0x5436b3[_0x5436b3['length']-0x1];if(_0x48c153['is']('$textProxy'))_0x2fb456&&_0x2fb456['type']['indexOf']('Container')>-0x1&&_0x5436b3['pop'](),_0x2fb456&&'text'==_0x2fb456['type']?_0x2fb456[_0x80c4c5]+=_0x48c153['data']:_0x5436b3['push']({'type':'text','add':'add'==_0x80c4c5?_0x48c153['data']:'','remove':'remove'==_0x80c4c5?_0x48c153['data']:''});else{if(this['_schema']['isObject'](_0x48c153)){const _0x5643fa=_0x48c153;if(_0x2fb456&&_0x2fb456['type']['indexOf']('Container')>-0x1&&_0x5436b3['pop'](),'elementEnd'==_0x5171f1['type'])continue;_0x2fb456&&_0x2fb456['type']==_0x80c4c5+'Object'&&_0x2fb456['element']['name']==_0x5643fa['name']?_0x2fb456['quantity']++:_0x5436b3['push']({'type':_0x80c4c5+'Object','element':_0x5643fa,'quantity':0x1}),_0x115ad1['skip'](_0x247501=>!('elementEnd'==_0x247501['type']&&_0x247501['item']==_0x48c153));}else{if(this['_schema']['checkChild'](_0x48c153,'$text')||_0x48c153['is']('element','softBreak')){const _0xa99201=_0x48c153;if('add'==_0x80c4c5&&'elementStart'==_0x5171f1['type']||'remove'==_0x80c4c5&&'elementEnd'==_0x5171f1['type'])continue;if(_0x2fb456&&-0x1==_0x2fb456['type']['indexOf']('Container')){'text'==_0x2fb456['type']&&(_0x2fb456[_0x80c4c5]+='\x0a');continue;}let _0x1f16a2;if(_0x1f16a2='add'==_0x80c4c5?_0xa99201['nextSibling']&&!this['_schema']['isObject'](_0xa99201['nextSibling'])?_0xa99201['nextSibling']:null:_0xa99201['previousSibling']&&!this['_schema']['isObject'](_0xa99201['previousSibling'])?_0xa99201['previousSibling']:null,_0xa99201['isEmpty']||_0x1f16a2&&_0x1f16a2['isEmpty']){const _0x38b177=_0x1f16a2&&_0x1f16a2['isEmpty']?_0x1f16a2:_0xa99201;_0x2fb456&&_0x2fb456['type']==_0x80c4c5+'EmptyContainer'&&_0x2fb456['element']['name']==_0x38b177['name']?_0x2fb456['quantity']++:_0x5436b3['push']({'type':_0x80c4c5+'EmptyContainer','element':_0x38b177,'quantity':0x1});}else _0x5436b3['push']({'type':_0x80c4c5+'Container','element':_0xa99201});}}}}}['_resolveDescriptionItems'](_0x4a8dab){const _0x5afeab=this['_locale'],_0x4532e9=[],_0x209381=[],_0x2bcdc0=[];for(const _0x506100 of _0x4a8dab)switch(_0x506100['type']){case'text':if(_0x506100['add']=_0x506100['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x506100['remove']=_0x506100['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x506100['add']&&''!=_0x506100['remove']){_0x4532e9['push']({'type':'replace','content':o(_0x5afeab,'REPLACE_TEXT',['\x22'+_0x506100['remove']+'\x22','\x22'+_0x506100['add']+'\x22'])});continue;}if(null!=_0x506100['add']['match'](/^ +$/)){_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Insert:*\x20%0',o(_0x5afeab,'ELEMENT_SPACE',_0x506100['add']['length']))});continue;}if(null!=_0x506100['remove']['match'](/^ +$/)){_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Remove:*\x20%0',o(_0x5afeab,'ELEMENT_SPACE',_0x506100['remove']['length']))});continue;}if(''!=_0x506100['add']){_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Insert:*\x20%0','\x22'+_0x506100['add']+'\x22')});continue;}_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Remove:*\x20%0','\x22'+_0x506100['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Insert:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Remove:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'addContainer':_0x4532e9['push']({'type':'insertion','content':o(_0x5afeab,'*Split:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'removeContainer':_0x4532e9['push']({'type':'deletion','content':o(_0x5afeab,'*Merge:*\x20%0',this['getItemLabel'](_0x506100['element'],_0x506100['quantity']))});continue;case'addFormat':_0x209381['push'](_0x506100['key']);continue;case'removeFormat':_0x2bcdc0['push'](_0x506100['key']);continue;default:_0x4532e9['push'](_0x506100);}if(_0x209381['length']){const _0x4e7a20=_0x209381['map'](_0x2b60d2=>this['_attributeLabels']['has'](_0x2b60d2)?this['_attributeLabels']['get'](_0x2b60d2):_0x2b60d2)['join'](',\x20');_0x4532e9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4e7a20)});}if(_0x2bcdc0['length']){const _0x291f60=_0x2bcdc0['map'](_0x132ea4=>this['_attributeLabels']['has'](_0x132ea4)?this['_attributeLabels']['get'](_0x132ea4):_0x132ea4)['join'](',\x20');_0x4532e9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x291f60)});}return _0x4532e9;}['_handleCustomCallbackDescription'](_0xf77834){for(const _0x394ed7 of this['_customCallbacks']){const _0x2eb613=_0x394ed7(_0xf77834);if(_0x2eb613&&'type'in _0x2eb613)return _0x2eb613;}}['_handleAttributeSuggestionDescription'](_0xf7002b,_0x323495){const _0x167161=_0x323495['data'],_0x5664c5=void 0x0===_0x167161['newValue']?'removeFormat':'addFormat';_0xf7002b['push']({'type':_0x5664c5,'key':_0x167161['key']});}['_handleRenameSuggestionDescription'](_0x1fb2d1,_0x17151a){_0x1fb2d1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x17151a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x56d40d,_0x6ecd47,_0x55c2ea){if(this['_addDescriptionItems'](_0x56d40d,_0x6ecd47),_0x55c2ea&&_0x55c2ea['getFirstRange']()&&!_0x6ecd47['getFirstRange']()['end']['isEqual'](_0x55c2ea['getFirstRange']()['start'])){const _0x1a21c1=_0x56d40d[_0x56d40d['length']-0x1],_0xd963b6='insertion'==_0x6ecd47['type']?'add':'remove';_0x1a21c1&&'text'==_0x1a21c1['type']&&(_0x1a21c1[_0xd963b6]+='\x0a');}}constructor(_0x402245,_0xa8fd2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x402245,this['_locale']=_0xa8fd2;}}class E extends _0x454bf4{['afterInit'](){const _0x47e6b8=this['editor'],_0x21a177=_0x47e6b8['plugins']['get']('TrackChangesEditing');_0x47e6b8['commands']['get']('showAIAssistant')&&_0x21a177['enableCommand']('showAIAssistant');}}class V extends _0x454bf4{['afterInit'](){const _0x28400e=this['editor'],_0x738f1c=_0x28400e['locale'];if(!_0x28400e['plugins']['has']('AlignmentEditing'))return;const _0x44f870=_0x28400e['plugins']['get']('TrackChangesEditing');_0x44f870['enableDefaultAttributesIntegration']('alignment'),_0x44f870['registerBlockAttribute']('alignment'),_0x44f870['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x738f1c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1be43f=this['editor'],_0x438b2a=_0x1be43f['locale'];_0x1be43f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf233e3=>{if('formatBlock'!=_0xf233e3['type'])return;const {data:_0x43fb74}=_0xf233e3;if(_0x43fb74&&'alignment'==_0x43fb74['commandName']){const _0x197a6c=_0x43fb74['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x438b2a,'*Format:*\x20%0',function(_0x252721){switch(_0x252721){case'left':return o(_0x438b2a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x438b2a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x438b2a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x438b2a,'FORMAT_JUSTIFY_TEXT');}}(_0x197a6c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x454bf4{['afterInit'](){const _0x19aaba=this['editor'],_0x588f6d=_0x19aaba['plugins']['get']('TrackChangesEditing'),_0x1c5712=_0x19aaba['locale'];for(const _0x38c1ff of ti){if(!_0x19aaba['plugins']['has'](_0x38c1ff))continue;const _0x542d9c=_0x38c1ff['slice'](0x0,-0x7)['toLowerCase'](),_0x14b7b7='FORMAT_'+_0x542d9c['toUpperCase']();_0x588f6d['enableDefaultAttributesIntegration'](_0x542d9c),_0x588f6d['registerInlineAttribute'](_0x542d9c),_0x588f6d['descriptionFactory']['registerAttributeLabel'](_0x542d9c,o(_0x1c5712,_0x14b7b7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe390af=this['editor'],_0x5a2015=_0xe390af['locale'],_0x2d97af=_0xe390af['plugins']['get']('TrackChangesEditing');function _0x428638(_0x3e649d,_0xb4c497){_0x2d97af['descriptionFactory']['registerDescriptionCallback'](_0x32f943=>{if('formatInline'!=_0x32f943['type'])return;const {data:_0x1f7b0a}=_0x32f943;return _0x1f7b0a&&_0x1f7b0a['commandName']===_0x3e649d?_0x1f7b0a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a2015,'*Format:*\x20%0',_0xb4c497)}:{'type':'format','content':o(_0x5a2015,'*Remove\x20format:*\x20%0',_0xb4c497)}:void 0x0;});}_0x428638('bold',o(_0x5a2015,'FORMAT_BOLD')),_0x428638('italic',o(_0x5a2015,'FORMAT_ITALIC')),_0x428638('underline',o(_0x5a2015,'FORMAT_UNDERLINE')),_0x428638('code',o(_0x5a2015,'FORMAT_CODE')),_0x428638('strikethrough',o(_0x5a2015,'FORMAT_STRIKETHROUGH')),_0x428638('subscript',o(_0x5a2015,'FORMAT_SUBSCRIPT')),_0x428638('superscript',o(_0x5a2015,'FORMAT_SUPERSCRIPT'));}}class O extends _0x454bf4{['afterInit'](){const _0x12a4d9=this['editor'],_0x431462=_0x12a4d9['locale'];if(!_0x12a4d9['plugins']['has']('BlockQuoteEditing'))return;const _0xbaaf28=_0x12a4d9['plugins']['get']('TrackChangesEditing'),_0x28b0a2=this['editor']['commands']['get']('blockQuote');_0xbaaf28['enableCommand']('blockQuote',(_0x2f79ab,_0x16cc9a={})=>{const _0x1d668a=this['editor']['model']['document']['selection'],_0x454e94=_0x16cc9a&&void 0x0!==_0x16cc9a['forceValue']?_0x16cc9a['forceValue']:!_0x28b0a2['value'];let _0x3c31c2=[];if(_0x454e94){const _0x2fc8db=Array['from'](_0x1d668a['getSelectedBlocks']())['filter'](_0x387f7e=>oo(_0x387f7e)||function(_0x5bacc2,_0x347b30){const _0x2c6e16=_0x347b30['checkChild'](_0x5bacc2['parent'],'blockQuote'),_0x31b98d=_0x347b30['checkChild'](['$root','blockQuote'],_0x5bacc2);return _0x2c6e16&&_0x31b98d;}(_0x387f7e,this['editor']['model']['schema']));_0x3c31c2=to(_0x2fc8db,_0x12a4d9['model']);}else{const _0x2b5de2=Array['from'](_0x1d668a['getSelectedBlocks']())['filter'](_0x423f04=>oo(_0x423f04));_0x3c31c2=to(_0x2b5de2,_0x12a4d9['model']);}_0x12a4d9['model']['change'](()=>{for(const _0x4070c2 of _0x3c31c2)_0xbaaf28['markBlockFormat'](_0x4070c2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x454e94}]});});}),_0xbaaf28['descriptionFactory']['registerDescriptionCallback'](_0x1900fd=>{const {data:_0x4ce2f8}=_0x1900fd;if(_0x4ce2f8&&'blockQuote'==_0x4ce2f8['commandName']){const _0x58152a=o(_0x431462,'ELEMENT_BLOCK_QUOTE');return _0x4ce2f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x431462,'*Set\x20format:*\x20%0',_0x58152a)}:{'type':'format','content':o(_0x431462,'*Remove\x20format:*\x20%0',_0x58152a)};}});}}function oo(_0x349d3e){return'blockQuote'==_0x349d3e['parent']['name'];}class F extends _0x454bf4{['afterInit'](){const _0x39ac42=this['editor'];_0x39ac42['plugins']['has']('CaseChange')&&(_0x39ac42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x39ac42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x39ac42['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x454bf4{['afterInit'](){const _0x3b28cd=this['editor'];_0x3b28cd['commands']['get']('ckbox')&&_0x3b28cd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x454bf4{['afterInit'](){const _0x5a9af7=this['editor'];if(!_0x5a9af7['plugins']['has']('CodeBlock'))return;const _0x5e09b8=_0x5a9af7['plugins']['get']('TrackChangesEditing'),_0x5db5b4=_0x5a9af7['locale'],_0x35c40c=_0x5a9af7['config']['get']('codeBlock')['languages'],_0x42b12a=_0x5a9af7['commands']['get']('codeBlock');_0x5e09b8['enableCommand']('indentCodeBlock'),_0x5e09b8['enableCommand']('outdentCodeBlock'),_0x5e09b8['enableCommand']('codeBlock',(_0x1dcb1e,_0x1bdb2e={})=>{const _0x10730b=_0x5a9af7['model'],_0x38a7d7=_0x5a9af7['model']['document']['selection'],_0x4014f3=_0x1bdb2e&&void 0x0!==_0x1bdb2e['forceValue']?_0x1bdb2e['forceValue']:!_0x42b12a['value'];let _0x50ca84;_0x1bdb2e['language']||(_0x1bdb2e['language']=_0x35c40c[0x0]['language']),_0x50ca84=_0x4014f3?Array['from'](_0x38a7d7['getSelectedBlocks']())['filter'](_0x4828fc=>eo(_0x4828fc)||function(_0x214bf0,_0x5b5089){if(_0x214bf0['is']('rootElement')||_0x5b5089['isLimit'](_0x214bf0))return!0x1;return _0x5b5089['checkChild'](_0x214bf0['parent'],'codeBlock');}(_0x4828fc,_0x10730b['schema'])):Array['from'](_0x38a7d7['getSelectedBlocks']())['filter'](_0x117f4c=>eo(_0x117f4c));const _0x545199=to(_0x50ca84,_0x10730b);_0x10730b['change'](()=>{for(const _0x501edf of _0x545199)_0x5e09b8['markBlockFormat'](_0x501edf,{'commandName':'codeBlock','commandParams':[{..._0x1bdb2e,'forceValue':_0x4014f3}],'formatGroupId':'blockName'});});}),(_0x5e09b8['descriptionFactory']['registerElementLabel']('codeBlock',_0xb4ce87=>o(_0x5db5b4,'ELEMENT_CODE_BLOCK',_0xb4ce87)),_0x5e09b8['descriptionFactory']['registerDescriptionCallback'](_0x51de30=>{if('formatBlock'!=_0x51de30['type'])return;const _0x37b466=_0x5db5b4['t'],{data:_0x4843e0}=_0x51de30;if(!_0x4843e0||'codeBlock'!=_0x4843e0['commandName'])return;const _0x213955=_0x4843e0['commandParams'][0x0]['language'],_0x5b66bc=_0x37b466(_0x35c40c['find'](_0xb604c6=>_0xb604c6['language']===_0x213955)['label'])['toLowerCase']();return _0x4843e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db5b4,'*Set\x20format:*\x20%0',o(_0x5db5b4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b66bc+')')}:{'type':'format','content':o(_0x5db5b4,'*Remove\x20format:*\x20%0',o(_0x5db5b4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2269f1){return'codeBlock'==_0x2269f1['name'];}class H extends _0x454bf4{['afterInit'](){const _0x10946e=this['editor'];if(!_0x10946e['plugins']['has']('CommentsEditing'))return;_0x10946e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x42a2de,_0x2c7616,_0x43907a){const _0x469235=[];for(const _0x500eec of _0x2c7616['getItems']())_0x500eec['hasAttribute'](_0x42a2de)&&_0x469235['push'](_0x43907a['createRangeOn'](_0x500eec));return _0x469235;}function _e(_0x59a3c2,_0x485338,{showActiveMarker:_0x2801dd=!0x0}={}){const _0xaecac0=_0x59a3c2['plugins']['get']('TrackChangesEditing');return(_0x1b647c,_0x5f4673,_0x5b1d0d)=>{if(!_0x5b1d0d['consumable']['test'](_0x5f4673['markerRange'],_0x1b647c['name']))return;const _0x248a66=_0x5f4673['markerRange']['getWalker'](),_0x29810a=_0x5f4673['markerRange']['start'],_0x210dba=_0x59a3c2['model']['schema'];let _0x72d79=null,_0x1950ee=null,_0x2cd5e5=!0x1,_0x1531f0=!0x1;for(const _0x524619 of _0x248a66){const _0x340863=_0x524619['item'];_0x2cd5e5=_0x2cd5e5||_0x210dba['isContent'](_0x340863);const _0x1df357=_0x5b1d0d['mapper']['toViewElement'](_0x340863);if(_0x1df357&&_0x1df357['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x524619['type']&&(_0x210dba['isBlock'](_0x340863)&&!_0x210dba['isLimit'](_0x340863)&&(_0x340863['nextSibling']||_0x29810a['isAtEnd']?_0x72d79&&_0x72d79['parent']==_0x340863||(_0x72d79=_0x340863,_0x43d9b7(_0x524619['previousPosition']),_0x1531f0=!0x0):_0x1950ee=_0x1950ee||_0x524619['previousPosition']));}function _0x43d9b7(_0x5e3cab){const _0x197309=_0x5b1d0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x485338}),_0xe9d8e8=_0x5b1d0d['mapper']['toViewPosition'](_0x5e3cab);_0x2801dd&&_0xaecac0['activeMarkers']['includes'](_0x5f4673['markerName'])&&_0x5b1d0d['writer']['addClass']('ck-suggestion-marker--active',_0x197309),_0x5b1d0d['writer']['insert'](_0xe9d8e8,_0x197309),_0x5b1d0d['mapper']['bindElementToMarker'](_0x197309,_0x5f4673['markerName']);}_0x2cd5e5||_0x1531f0||!_0x1950ee||_0x43d9b7(_0x1950ee);};}class q extends _0x454bf4{static get['requires'](){return[_0x36e4c2];}['init'](){const _0x44e65a=this['editor'],_0x2d5156=_0x44e65a['plugins']['get']('TrackChangesEditing');_0x2d5156['enableCommand']('delete');const _0x5da40c=_0x44e65a['commands']['get']('deleteForward');_0x2d5156['enableCommand']('deleteForward',(_0x5428e1,_0x1aaed0={})=>{const _0x504c34=_0x44e65a['model']['createSelection'](_0x44e65a['model']['document']['selection']);_0x504c34['isCollapsed']&&_0x44e65a['model']['modifySelection'](_0x504c34,{'direction':'forward','unit':_0x1aaed0['unit']});const _0x3e61fd=_0x504c34['getFirstRange'](),_0x58482b=_0xb3bd9b['fromRange'](_0x3e61fd);let _0x52221d;_0x5428e1(_0x1aaed0),_0x52221d='$graveyard'==_0x58482b['root']['rootName']?_0x44e65a['model']['createRange'](_0x3e61fd['start']):_0x44e65a['model']['createRange'](_0x58482b['start'],_0x58482b['end']),_0x58482b['detach'](),_0x44e65a['model']['enqueueChange'](_0x5da40c['buffer']['batch'],_0x22caf4=>{_0x5da40c['buffer']['lock'](),_0x22caf4['setSelection'](_0x22caf4['createRange'](_0x52221d['end'])),_0x5da40c['buffer']['unlock']();});}),_0x44e65a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x44e65a,'merge'),{'priority':'high'}),_0x44e65a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38d428,_0x29c594,_0x104df0)=>{_0x104df0['options']['showSuggestionHighlights']&&_e(_0x44e65a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38d428,_0x29c594,_0x104df0);},{'priority':'high'}),_0x44e65a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ab5d9,_0x51a935,_0x4dfc5e)=>{const _0x2bb8cf=_0x4dfc5e['mapper']['markerNameToElements'](_0x51a935['markerName']);if(_0x2bb8cf){for(const _0x229e49 of _0x2bb8cf)_0x229e49['is']('uiElement')&&(_0x4dfc5e['mapper']['unbindElementFromMarkerName'](_0x229e49,_0x51a935['markerName']),_0x4dfc5e['writer']['remove'](_0x229e49));}},{'priority':'high'});}}class z extends _0x454bf4{['afterInit'](){const _0x4a998c=this['editor'];if(!_0x4a998c['plugins']['has']('ListEditing'))return;const _0x32cdc5=_0x4a998c['locale'],_0x2d87db=_0x4a998c['plugins']['get']('TrackChangesEditing'),_0x52e026=_0x4a998c['plugins']['has']('TodoListEditing'),_0xdf49a8=!!_0x4a998c['config']['get']('list.multiBlock');function _0x193261(_0x1fd940){return{'type':'format','content':''+o(_0x32cdc5,'*Set\x20format:*\x20%0',_0x1fd940)};}function _0x31e144(_0x2adec8){return{'type':'format','content':''+o(_0x32cdc5,'*Remove\x20format:*\x20%0',_0x2adec8)};}_0x2d87db['enableDefaultAttributesIntegration']('numberedList'),_0x2d87db['enableDefaultAttributesIntegration']('bulletedList'),_0x2d87db['enableDefaultAttributesIntegration']('customNumberedList'),_0x2d87db['enableDefaultAttributesIntegration']('customBulletedList'),_0x2d87db['enableDefaultAttributesIntegration']('indentList'),_0x2d87db['enableDefaultAttributesIntegration']('outdentList'),_0x2d87db['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2d87db['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2d87db['registerBlockAttribute']('listItemId'),_0x2d87db['registerBlockAttribute']('listType'),_0x2d87db['registerBlockAttribute']('listIndent'),_0xdf49a8&&(_0x2d87db['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2d87db['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52e026&&(_0x2d87db['enableDefaultAttributesIntegration']('todoList'),_0x2d87db['enableDefaultAttributesIntegration']('checkTodoList'),_0x2d87db['registerBlockAttribute']('todoListChecked'),_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x258ee8=>{const {data:_0x5a3b5b}=_0x258ee8;if(_0x5a3b5b&&'todoListChecked'==_0x5a3b5b['key'])return{'type':'format','content':_0x5a3b5b['newValue']?o(_0x32cdc5,'*Check\x20item*'):o(_0x32cdc5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4626a0=>{if(_0x4626a0['batch']['isUndo'])return!0x1;let _0x1f9ff2=!0x1;const _0x1ce8cc=_0x2d87db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x380590=>'todoListChecked'===_0x2d87db['_getAttributeKey'](_0x380590));for(const _0x21970a of _0x1ce8cc){'todo'!=_0x21970a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2d87db['_findSuggestions'](_0x21970a['getFirstRange'](),'attribute')['find'](_0x47e84e=>'listType'===_0x2d87db['_getAttributeKey'](_0x47e84e['suggestion']))||(_0x4626a0['removeMarker'](_0x21970a['getFirstMarker']()),_0x1f9ff2=!0x0));}return _0x1f9ff2;})),_0x2d87db['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x32cdc5,'FORMAT_INDENT'));const _0x29641d={'type':'format','content':''};_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x1722cc=>{const {data:_0xa42caa}=_0x1722cc;if(!_0xa42caa||'listType'!=_0xa42caa['key'])return;let _0x42ca04=_0x1722cc['head'];for(;_0x42ca04;){if(_0x42ca04['data']&&(('listStyle'==_0x42ca04['data']['key']||'listMarkerStyle'==_0x42ca04['data']['key'])&&(_0x42ca04['data']['newValue']&&'default'!=_0x42ca04['data']['newValue']||'default'!=_0x42ca04['data']['oldValue']&&!_0xa42caa['newValue'])||!_0xdf49a8&&_0x42ca04['data']['key']==m))return _0x29641d;_0x42ca04=_0x42ca04['next'];}if(null==_0xa42caa['newValue'])switch(_0xa42caa['oldValue']){case'bulleted':return _0x31e144(o(_0x32cdc5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31e144(o(_0x32cdc5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31e144(o(_0x32cdc5,'ELEMENT_TODO_LIST'));}switch(_0xa42caa['newValue']){case'bulleted':return _0x193261(o(_0x32cdc5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x193261(o(_0x32cdc5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x193261(o(_0x32cdc5,'ELEMENT_TODO_LIST'));}}),_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x2de107=>{const {data:_0x5d492f}=_0x2de107;if(_0x5d492f&&'listIndent'==_0x5d492f['key'])return null==_0x5d492f['newValue']||null==_0x5d492f['oldValue']&&0x0==_0x5d492f['newValue']?_0x29641d:void 0x0;}),_0x2d87db['descriptionFactory']['registerDescriptionCallback'](_0x5caa3f=>{if('attribute'!=_0x5caa3f['type'])return;const {data:_0x275e1d}=_0x5caa3f;if(!_0x275e1d||'listItemId'!=_0x275e1d['key'])return;const _0x106579=le(_0x5caa3f);return'newValue'==_0x106579?{'type':'format','content':o(_0x32cdc5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x106579?{'type':'format','content':o(_0x32cdc5,'*Split:*\x20list\x20item')}:_0x29641d;}),_0x4a998c['model']['document']['registerPostFixer'](_0x49de1f=>this['listItemIdFixer'](_0x49de1f)),_0x4a998c['model']['document']['registerPostFixer'](_0xd79647=>this['noTrackChangesFixer'](_0xd79647)),_0x4a998c['model']['document']['registerPostFixer'](_0x3c9937=>this['assureChains'](_0x3c9937)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f5791){if(_0x4f5791['batch']['isUndo']||!_0x4f5791['batch']['isLocal'])return!0x1;let _0x1fc244=!0x1;const _0xd2c116=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf276fe=>_0xf276fe['data']&&'listItemId'==_0xf276fe['data']['key'])['filter'](_0x5e5f99=>_0x5e5f99['data']['newValue']&&_0x5e5f99['data']['oldValue']);for(const _0x570cea of _0xd2c116)le(_0x570cea)||(_0x4f5791['removeMarker'](_0x570cea['getFirstMarker']()),_0x1fc244=!0x0);return _0x1fc244;}['noTrackChangesFixer'](_0x31a515){if(_0x31a515['batch']['isUndo']||!_0x31a515['batch']['isLocal'])return!0x1;const _0x264e8f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x264e8f['trackChangesCommand']['value'])return!0x1;let _0x277a1e=!0x1;const _0x6ed113=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x43294b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x426c21=>'attribute'==_0x426c21['type'])['filter'](_0x573014=>_0x6ed113['includes'](_0x573014['attributeKey']));if(0x0==_0x43294b['length'])return _0x277a1e;for(const _0x206e36 of _0x43294b){const _0x36ee23=_0x264e8f['_findSuggestions'](_0x206e36['range'],'attribute')['filter'](_0x2912eb=>!_0x2912eb['meta']['isNextTo'])['map'](_0x151a71=>_0x151a71['suggestion'])['filter'](_0x27f933=>{const _0x47e5c7=_0x264e8f['_getAttributeKey'](_0x27f933);return _0x6ed113['includes'](_0x47e5c7);});if(_0x36ee23['length']){for(const _0x5e87da of _0x36ee23)_0x31a515['removeMarker'](_0x5e87da['getFirstMarker']());_0x277a1e=!0x0;}}return _0x277a1e;}['assureChains'](_0x11d0be){if(_0x11d0be['batch']['isUndo']||!_0x11d0be['batch']['isLocal'])return!0x1;const _0x14f675=this['editor']['plugins']['get']('TrackChangesEditing');let _0x25a083=!0x1;const _0x343250=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5755b1 of _0x14f675['getSuggestions']({'skipNotAttached':!0x0})){const _0xeb4b1=_0x14f675['_findSuggestions'](_0x5755b1['getFirstRange'](),'attribute')['map'](_0x180cb7=>_0x180cb7['suggestion'])['filter'](_0x2792a6=>_0x2792a6['data']&&_0x343250['includes'](_0x2792a6['data']['key']));if(!_0xeb4b1['length'])continue;const _0x1b65e8=_0xeb4b1[0x0]['head']['attributes']['groupId'];if(!_0xeb4b1['every'](_0x270fdb=>_0x270fdb['attributes']['groupId']===_0x1b65e8)){for(const _0x5357a6 of _0xeb4b1)_0x174f2e(_0x5357a6,_0x1b65e8)&&(_0x25a083=!0x0);}}return _0x25a083;function _0x1950c2(_0x349458,_0xe14642){for(const _0x432fc8 of _0x14f675['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2586c5=>'attribute'==_0x2586c5['type']&&_0x2586c5['attributes']['groupId']==_0x349458))_0x432fc8['setAttribute']('groupId',_0xe14642);}function _0x174f2e(_0x194b31,_0x4184f0){let _0x47dcd0=_0x194b31['head'],_0x19951a=!0x1;for(;_0x47dcd0;)_0x47dcd0['attributes']['groupId']!=_0x4184f0&&(_0x1950c2(_0x47dcd0['attributes']['groupId'],_0x4184f0),_0x47dcd0['setAttribute']('groupId',_0x4184f0),_0x19951a=!0x0),_0x47dcd0=_0x47dcd0['next'];return _0x19951a;}}['_supportLegacySuggestions'](){const _0x7497c1=this['editor'],_0x201b89=_0x7497c1['locale'],_0x1eaac7=_0x7497c1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1eaac7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4dc021,_0x5e11a7){const _0x32c272=[];for(let _0x961f21 of _0x4dc021)_0x961f21['start']['nodeAfter']===_0x961f21['end']['parent']&&(_0x961f21=_0x7497c1['model']['createRange'](_0x7497c1['model']['createPositionAt'](_0x961f21['start']['nodeAfter'],0x0))),_0x32c272['push'](_0x961f21);_0x7497c1['model']['change'](_0x2fb51c=>{const _0x42222c=_0x7497c1['model']['document']['selection'],_0x2c99c4=Array['from'](_0x42222c['getRanges']())['map'](_0x1f935d=>_0xb3bd9b['fromRange'](_0x1f935d));_0x2fb51c['setSelection'](_0x32c272),_0x7497c1['commands']['get'](_0x5e11a7['commandName'])['refresh'](),_0x5e11a7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x7497c1['execute'](_0x5e11a7['commandName'],..._0x5e11a7['commandParams']),_0x2fb51c['setSelection'](_0x2c99c4);for(const _0x3b1a55 of _0x2c99c4)_0x3b1a55['detach']();});}),_0x1eaac7['descriptionFactory']['registerElementLabel'](function(_0x59e321){const _0x27620d=!_0x7497c1['model']['schema']['isObject'](_0x59e321),_0x16671f=_0x59e321['previousSibling'],_0x7414d=_0x59e321['nextSibling'],_0x3225cf=_0x59e321['getAttribute']('listItemId'),_0x358599=!_0x16671f||_0x16671f['getAttribute']('listItemId')!==_0x3225cf,_0x116584=!_0x7414d||_0x7414d['getAttribute']('listItemId')!==_0x3225cf;return _0x27620d&&Boolean(_0x3225cf)&&_0x358599&&_0x116584;},_0x100115=>o(_0x201b89,'ELEMENT_LIST_ITEM',_0x100115));}['_registerLegacyDescription'](){const _0x2e8de7=this['editor'],_0x289ad9=_0x2e8de7['locale'];function _0x3780d3(_0x85dd62){const _0x159edb=_0x2e8de7['commands']['get']('bulletedList')['value'],_0x2e8695=_0x2e8de7['commands']['get']('numberedList')['value'];return'numberedList'===_0x85dd62?_0x159edb:_0x2e8695;}_0x2e8de7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4ba775){if('formatBlock'!=_0x4ba775['type'])return;const {data:_0x379e72}=_0x4ba775;if(!_0x379e72)return;let _0x14ac65,_0x50b3e2,_0x461bd1,_0x2a6407;switch(_0x379e72['commandName']){case'bulletedList':_0x461bd1=_0x379e72['commandParams'][0x0]['forceValue'],_0x2a6407=_0x3780d3(_0x379e72['commandName']),_0x14ac65=_0x461bd1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a6407&&_0x2e8de7['config']['get']('list.multiBlock')||(_0x14ac65='*Change\x20to:*\x20%0'),_0x50b3e2={'type':'format','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x461bd1=_0x379e72['commandParams'][0x0]['forceValue'],_0x2a6407=_0x3780d3(_0x379e72['commandName']),_0x14ac65=_0x461bd1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a6407&&_0x2e8de7['config']['get']('list.multiBlock')||(_0x14ac65='*Change\x20to:*\x20%0'),_0x50b3e2={'type':'format','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x14ac65='*Indent:*\x20%0',_0x50b3e2={'type':'format','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x14ac65=function(_0x4fe2f0){const _0x2bb166=_0x4fe2f0['getFirstRange']();let _0x3a1d4e=_0x2bb166['start']['nodeAfter'];for(;_0x3a1d4e&&_0x2bb166['containsItem'](_0x3a1d4e);){if(_0x3a1d4e['getAttribute']('listIndent')>0x0)return!0x1;_0x3a1d4e=_0x3a1d4e['nextSibling'];}return!0x0;}(_0x4ba775)?o(_0x289ad9,'*Format:*\x20remove\x20from\x20%0',o(_0x289ad9,function(_0x122e0c){return'ELEMENT_'+_0x122e0c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4ba775))):o(_0x289ad9,'*Outdent:*\x20%0',o(_0x289ad9,'ELEMENT_LIST_ITEM')),_0x50b3e2={'type':'format','content':_0x14ac65};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x379e72['multipleBlocks']&&(_0x14ac65='*Merge:*\x20%0',_0x50b3e2={'type':'deletion','content':o(_0x289ad9,_0x14ac65,o(_0x289ad9,'ELEMENT_LIST_ITEM'))});}return _0x50b3e2;});}}function le(_0x247eeb){let _0x6f40cf=_0x247eeb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x6f40cf;){const _0x393d43=_0x6f40cf['getAttribute']('listItemId');if(!_0x393d43)return!0x1;if(_0x393d43==_0x247eeb['data']['newValue'])return'newValue';if(_0x393d43==_0x247eeb['data']['oldValue'])return'oldValue';_0x6f40cf=_0x6f40cf['previousSibling'];}return!0x1;}class ue extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x56c8cd=this['editor']['config']['get']('list.properties'),_0x4f51d2=this['editor']['plugins']['get']('TrackChangesEditing');_0x56c8cd['styles']&&(_0x4f51d2['enableDefaultAttributesIntegration']('listStyle'),_0x4f51d2['registerBlockAttribute']('listStyle')),_0x56c8cd['reversed']&&(_0x4f51d2['enableDefaultAttributesIntegration']('listReversed'),_0x4f51d2['registerBlockAttribute']('listReversed')),_0x56c8cd['startIndex']&&(_0x4f51d2['enableDefaultAttributesIntegration']('listStart'),_0x4f51d2['registerBlockAttribute']('listStart'));const _0x219937={'type':'format','content':''};_0x4f51d2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x235929=this['editor']['locale'];_0x4f51d2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x235929,'FORMAT_LIST_REVERSED')),_0x4f51d2['descriptionFactory']['registerDescriptionCallback'](_0x3f8993=>{const {data:_0x1db362}=_0x3f8993;if(_0x1db362&&'listReversed'==_0x1db362['key'])return null==_0x1db362['newValue']||0x0==_0x1db362['newValue']&&null==_0x1db362['oldValue']?_0x219937:void 0x0;}),_0x4f51d2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x235929,'FORMAT_LIST_START')),_0x4f51d2['descriptionFactory']['registerDescriptionCallback'](_0x5ace9d=>{const {data:_0x41e20a}=_0x5ace9d;if(_0x41e20a&&'listStart'==_0x41e20a['key'])return null==_0x41e20a['newValue']||0x1==_0x41e20a['newValue']&&null==_0x41e20a['oldValue']?_0x219937:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3f6ccd=>{if(_0x3f6ccd['batch']['isUndo'])return!0x1;let _0x5487aa=!0x1;const _0xc1b034=_0x4f51d2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216368=>{const _0x4c606f=_0x4f51d2['_getAttributeKey'](_0x216368);return'listStart'==_0x4c606f||'listReversed'==_0x4c606f;});for(const _0x490453 of _0xc1b034){const _0x2a277d=_0x490453['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2a277d||'customNumbered'==_0x2a277d)continue;_0x4f51d2['_findSuggestions'](_0x490453['getFirstRange'](),'attribute')['find'](_0xa6f58e=>'listType'==_0x4f51d2['_getAttributeKey'](_0xa6f58e['suggestion']))||(_0x3f6ccd['removeMarker'](_0x490453['getFirstMarker']()),_0x5487aa=!0x0);}return _0x5487aa;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x39285a){const _0xadda51=this['editor']['locale'],{data:_0x38e69a}=_0x39285a,_0x2297ba={'type':'format','content':''};if(!_0x38e69a||'listStyle'!=_0x38e69a['key'])return;if(!_0x38e69a['oldValue'])return'default'==_0x38e69a['newValue']?_0x2297ba:{'type':'format','content':''+o(_0xadda51,'*Set\x20format:*\x20%0',o(_0xadda51,this['_getTranslationKeyForListStyle'](_0x38e69a['newValue'])))};if(!_0x38e69a['newValue']){if('default'==_0x38e69a['oldValue'])return _0x2297ba;let _0x3eacf0=_0x39285a['head'];for(;_0x3eacf0;){if(_0x3eacf0['data']&&'listType'==_0x3eacf0['data']['key']&&_0x3eacf0['data']['newValue'])return _0x2297ba;_0x3eacf0=_0x3eacf0['next'];}return{'type':'format','content':''+o(_0xadda51,'*Remove\x20format:*\x20%0',o(_0xadda51,this['_getTranslationKeyForListStyle'](_0x38e69a['oldValue'])))};}if('default'!=_0x38e69a['newValue'])return{'type':'format','content':''+o(_0xadda51,'*Set\x20format:*\x20%0',o(_0xadda51,this['_getTranslationKeyForListStyle'](_0x38e69a['newValue'])))};let _0x2f898f=_0x39285a['head'];for(;_0x2f898f;){if(_0x2f898f['data']&&'listType'==_0x2f898f['data']['key']&&_0x2f898f['data']['newValue']&&_0x2f898f['data']['oldValue'])return _0x2297ba;_0x2f898f=_0x2f898f['next'];}return{'type':'format','content':o(_0xadda51,'*Set\x20format:*\x20%0',o(_0xadda51,'ELEMENT_'+_0x39285a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d93af=this['editor'],_0xc3ead8=_0x5d93af['locale'];_0x5d93af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18a6b0=>{if('formatBlock'!=_0x18a6b0['type'])return;const {data:_0x380402}=_0x18a6b0;if(!_0x380402)return;let _0x1eebd5,_0x38a0c0;switch(_0x380402['commandName']){case'listStyle':_0x1eebd5='*Change\x20to:*\x20%0',_0x38a0c0={'type':'format','content':o(_0xc3ead8,_0x1eebd5,o(_0xc3ead8,this['_getTranslationKeyForListStyle'](_0x380402['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1eebd5=_0x380402['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38a0c0={'type':'format','content':o(_0xc3ead8,_0x1eebd5)};break;case'listStart':_0x1eebd5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38a0c0={'type':'format','content':o(_0xc3ead8,_0x1eebd5,_0x380402['commandParams'][0x0]['startIndex'])};}return _0x38a0c0;});}['_getTranslationKeyForListStyle'](_0x433b77){return'ELEMENT_'+function(_0x129e15){if(pe['includes'](_0x129e15))return'bulleted';if(ye['includes'](_0x129e15))return'numbered';return null;}(_0x433b77)['toUpperCase']()+'_LIST_'+_0x433b77['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x454bf4{static get['requires'](){return[_0x53f9bd];}['init'](){const _0xdd71c4=this['editor'],_0x5c4ca6=_0xdd71c4['plugins']['get']('TrackChangesEditing'),_0x366ef1=_0xdd71c4['commands']['get']('enter');_0x5c4ca6['enableCommand']('enter',()=>{_0xdd71c4['model']['change'](_0x14c37c=>{const _0x341df6=_0xdd71c4['model']['document']['selection'],_0x3eda09=_0x341df6['getFirstPosition'](),_0x2f498d=_0xb3bd9b['fromRange'](_0x341df6['getFirstRange']());if(_0x366ef1['enterBlock'](_0x14c37c)){const _0xbc94ce=_0xdd71c4['model']['createPositionAt'](_0x3eda09['parent']['nextSibling'],0x0),_0x4a93fd=_0x14c37c['createRange'](_0x3eda09,_0xbc94ce);_0x5c4ca6['markInsertion'](_0x4a93fd);}else _0x14c37c['setSelection'](_0x14c37c['createRange'](_0x2f498d['end']));_0x2f498d['detach'](),_0x366ef1['fire']('afterExecute',{'writer':_0x14c37c});});}),_0xdd71c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xdd71c4,'split'),{'priority':'high'}),_0xdd71c4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x443278,_0x40ebf9,_0x295985)=>{const _0x1f46ce=_0x295985['mapper']['markerNameToElements'](_0x40ebf9['markerName']);if(_0x1f46ce){for(const _0x43efa8 of _0x1f46ce)_0x43efa8['hasClass']('ck-suggestion-marker-split')&&(_0x295985['mapper']['unbindElementFromMarkerName'](_0x43efa8,_0x40ebf9['markerName']),_0x295985['writer']['remove'](_0x43efa8));}},{'priority':'high'}),_0xdd71c4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54c968,_0x2cd4d4,_0x3b789d)=>{_0x3b789d['options']['showSuggestionHighlights']&&_e(_0xdd71c4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54c968,_0x2cd4d4,_0x3b789d);},{'priority':'high'});}}class J extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x265840=this['editor']['plugins']['get']('TrackChangesEditing');_0x265840['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x265840['enableCommand']('findNext'),_0x265840['enableCommand']('findPrevious'),_0x265840['enableCommand']('replace'),_0x265840['enableCommand']('replaceAll');}['handleFindCommand'](_0x9a8031,_0x1f31a7,_0x27f8ee={}){const _0x490b4f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x9a8031(_0x48df98=>('string'==typeof _0x1f31a7?_0x490b4f['findByTextCallback'](_0x1f31a7,_0x27f8ee):_0x1f31a7)(_0x48df98)['filter'](_0x4d59d1=>!0x1===this['_isInDeletionRange'](_0x4d59d1,_0x48df98['item'])),_0x27f8ee);}['_isInDeletionRange'](_0x2eaffd,_0x2a2720){const _0x246fe1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a2720,_0x2eaffd['start']),this['editor']['model']['createPositionAt'](_0x2a2720,_0x2eaffd['end']));for(const _0x108951 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x246fe1['getIntersection'](_0x108951['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 _0x454bf4{['afterInit'](){const _0x346347=this['editor']['locale'],_0x45b4df=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x19b47b,commandName:_0x514b44}of ro)this['editor']['plugins']['has'](_0x19b47b)&&(_0x45b4df['enableDefaultAttributesIntegration'](_0x514b44),_0x45b4df['registerInlineAttribute'](_0x514b44));_0x346347['t'],_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x346347,'FORMAT_FONT_SIZE')),_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x346347,'FORMAT_FONT_FAMILY')),_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x346347,'FORMAT_FONT_COLOR')),_0x45b4df['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x346347,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59ff2d=this['editor'],_0x516bd6=_0x59ff2d['locale'];_0x59ff2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e8317=>{const _0x211e30=_0x516bd6['t'];if('formatInline'!=_0x5e8317['type'])return;const {data:_0x2370c2}=_0x5e8317;if(null!=_0x2370c2){if('fontSize'==_0x2370c2['commandName']){const _0x3c5559=_0x2370c2['commandParams'][0x0]['value'];if(_0x3c5559){const _0x317949=_0x211e30(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe452c8=>_0xe452c8['model']==_0x3c5559)['title'])['toLowerCase']();return{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20size:*\x20%0',_0x317949)};}return{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2370c2['commandName']){const _0x4099c5=_0x2370c2['commandParams'][0x0]['value'];return _0x4099c5?{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20family:*\x20%0',_0x4099c5)}:{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2370c2['commandName']){const _0x25fac8=_0x2370c2['commandParams'][0x0]['value'];if(_0x25fac8){const _0x1afda2=_0x102f80(this['editor']['config']['get']('fontColor.colors'))['find'](_0x348d4a=>_0x348d4a['model']==_0x25fac8);let _0x477368=_0x25fac8,_0x14895b='';return _0x1afda2&&(_0x477368=_0x1afda2['label'],_0x14895b=_0x211e30(_0x477368)['toLowerCase']()),{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20color:*\x20%0',_0x14895b)['trim'](),'color':{'value':_0x25fac8,'title':_0x14895b||_0x477368}};}return{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2370c2['commandName']){const _0x370758=_0x2370c2['commandParams'][0x0]['value'];if(_0x370758){const _0x500d70=_0x102f80(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x216d41=>_0x216d41['model']==_0x370758);let _0x23f57c=_0x370758,_0x1aa910='';return _0x500d70&&(_0x23f57c=_0x500d70['label'],_0x1aa910=_0x211e30(_0x23f57c)['toLowerCase']()),{'type':'format','content':o(_0x516bd6,'*Set\x20font\x20background\x20color:*\x20%0',_0x1aa910)['trim'](),'color':{'value':_0x370758,'title':_0x1aa910||_0x23f57c}};}return{'type':'format','content':o(_0x516bd6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x454bf4{['afterInit'](){const _0x1ca9a9=this['editor'],_0x1c007b=_0x1ca9a9['plugins']['get']('TrackChangesEditing'),_0xb21fe2=_0x1ca9a9['commands']['get']('copyFormat'),_0x2434b4=_0x1ca9a9['commands']['get']('pasteFormat');_0xb21fe2&&_0x2434b4&&(_0x1c007b['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c007b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8facd0=this['editor'],_0xfbc43b=_0x8facd0['locale'];_0x8facd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e45f7=>{if('formatBlock'!=_0x3e45f7['type']&&'formatInline'!=_0x3e45f7['type'])return;const {data:_0x562359}=_0x3e45f7;if(_0x562359&&'pasteFormat'===_0x562359['commandName']){const _0x5c3b34=[],_0x633c04=_0x562359['commandParams'][0x0];for(const [_0x1fdc07,_0x4cd545]of Object['entries'](_0x633c04))_0x5c3b34['push'](so(_0x8facd0,_0x1fdc07,_0x4cd545));return _0x5c3b34['length']?{'type':'format','content':o(_0xfbc43b,'*Set\x20format\x20to:*\x20%0',_0x5c3b34['join'](',\x20'))}:{'type':'format','content':o(_0xfbc43b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2210a4,_0x4d4d9e,_0xcef1e0){const _0x2ccdbe=_0x2210a4['locale']['t'],_0x56d131=_0x4d4d9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x22473c=_0x2ccdbe(_0x56d131['charAt'](0x0)['toUpperCase']()+_0x56d131['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xcef1e0)return _0x22473c;if('fontColor'===_0x4d4d9e||'fontBackgroundColor'===_0x4d4d9e){const _0x5745f6=_0x102f80(_0x2210a4['config']['get']('fontColor.colors'))['find'](_0xa3ca56=>_0xa3ca56['model']==_0xcef1e0);return _0x22473c+'\x20('+(_0x5745f6?_0x2ccdbe(_0x5745f6['label'])['toLowerCase']():_0xcef1e0)+')';}if('fontSize'===_0x4d4d9e&&isNaN(parseFloat(_0xcef1e0))){const _0x1111d0=_0x2210a4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2210a4['config']['get']('fontSize.options'))['find'](_0x2d745f=>_0x2d745f['model']==_0xcef1e0);return _0x22473c+'\x20('+(_0x1111d0?_0x2ccdbe(_0x1111d0['title'])['toLowerCase']():_0xcef1e0)+')';}return _0x22473c+'\x20('+_0xcef1e0+')';}class Y extends _0x454bf4{['afterInit'](){const _0xab7c5e=this['editor'];if(!_0xab7c5e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xab7c5e['config']['get']('heading.options');const _0x230d38=_0xab7c5e['locale'],_0x4cb4eb=_0xab7c5e['plugins']['get']('TrackChangesEditing');_0x4cb4eb['enableDefaultAttributesIntegration']('heading');for(const _0x17938f of this['_headingOptions'])'paragraph'!=_0x17938f['model']&&_0x4cb4eb['descriptionFactory']['registerElementLabel'](_0x17938f['model'],_0x59191c=>{const _0x9513ef=this['_getHeadingLevel'](_0x17938f['model']);return null!==_0x9513ef?_0x2d864f(_0x59191c,_0x9513ef):_0x28ee2c(_0x59191c,_0x17938f['title']);});function _0x2d864f(_0x93e738,_0x5ea704){return o(_0x230d38,'ELEMENT_HEADING',[_0x93e738,_0x5ea704]);}function _0x28ee2c(_0x2a8677,_0x5584be){return o(_0x230d38,'ELEMENT_HEADING_CUSTOM',[_0x2a8677,_0x5584be]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6227d=this['editor'],_0x1df22c=_0xb6227d['locale'];function _0x3a5289(_0x4ca656,_0x1f1fc1){return o(_0x1df22c,'ELEMENT_HEADING_CUSTOM',[_0x4ca656,_0x1f1fc1]);}_0xb6227d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x580bf3=>{if('formatBlock'!=_0x580bf3['type'])return;const {data:_0x29ead6}=_0x580bf3;if(_0x29ead6&&'heading'==_0x29ead6['commandName']){const _0x30bc16=_0x29ead6['commandParams'][0x0]['value'],_0x2ea346=this['_getHeadingLevel'](_0x30bc16);if(null!==_0x2ea346)return{'type':'format','content':o(_0x1df22c,'*Change\x20to:*\x20%0',(_0x32d4fd=0x1,_0xee00e5=_0x2ea346,o(_0x1df22c,'ELEMENT_HEADING',[_0x32d4fd,_0xee00e5])))};const _0x3de6d5=this['_headingOptions']['find'](_0x5a1f62=>_0x5a1f62['model']===_0x30bc16)['title'];return{'type':'format','content':o(_0x1df22c,'*Change\x20to:*\x20%0',_0x3a5289(0x1,_0x3de6d5))};}var _0x32d4fd,_0xee00e5;});}['_getHeadingLevel'](_0xc94c64){var _0x5ebe08,_0x14726f;const _0x2cb110=_0xc94c64['match'](/^heading(\d+)/);if(_0x2cb110)return _0x2cb110[0x1];const _0x1a37f2=null===(_0x5ebe08=this['_headingOptions'])||void 0x0===_0x5ebe08?void 0x0:_0x5ebe08['find'](_0x5f5a6f=>_0x5f5a6f['model']==_0xc94c64);if(_0x1a37f2&&_0x1a37f2['view']){const _0x45dbb9=_0x1a37f2['view'],_0x5b8c48=(null!==(_0x14726f=_0x45dbb9['name'])&&void 0x0!==_0x14726f?_0x14726f:_0x45dbb9)['match'](/^h(\d+)/);if(_0x5b8c48)return _0x5b8c48[0x1];}return null;}}class Z extends _0x454bf4{['afterInit'](){const _0x1323d1=this['editor'];if(!_0x1323d1['plugins']['has']('HighlightEditing'))return;const _0x1b1482=_0x1323d1['plugins']['get']('TrackChangesEditing'),_0xeb832=_0x1323d1['locale'];_0x1b1482['enableDefaultAttributesIntegration']('highlight'),_0x1b1482['registerInlineAttribute']('highlight'),_0x1b1482['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xeb832,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cfaf=this['editor'],_0x449ee4=_0x19cfaf['locale'];_0x19cfaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d4d40=>{if('formatInline'!=_0x5d4d40['type'])return;const {data:_0xf8b9e5}=_0x5d4d40;if(_0xf8b9e5&&'highlight'==_0xf8b9e5['commandName']){const _0x4108ee=_0x449ee4['t'],_0x4c29f3=_0xf8b9e5['commandParams'][0x0]['value'];if(_0x4c29f3){const _0x33e7c2=_0x19cfaf['config']['get']('highlight.options')['find'](_0x1b2b1c=>_0x1b2b1c['model']==_0x4c29f3),_0x11c249=_0x4108ee(_0x33e7c2['title'])['toLowerCase']();return{'type':'format','content':o(_0x449ee4,'*Set\x20highlight:*\x20%0',_0x11c249),'color':{'value':_0x33e7c2['color'],'title':_0x33e7c2['title']}};}return{'type':'format','content':o(_0x449ee4,'*Remove\x20highlight*',o(_0x449ee4,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x454bf4{['afterInit'](){const _0x125eb0=this['editor'];if(!_0x125eb0['plugins']['has']('HorizontalLineEditing'))return;_0x125eb0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x27cfc3=_0x125eb0['plugins']['get']('TrackChangesEditing'),_0x2439fb=_0x125eb0['locale'];_0x27cfc3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x144fc8=>o(_0x2439fb,'ELEMENT_HORIZONTAL_LINE',_0x144fc8)),_0x125eb0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40c23c,{writer:_0x5dff59,options:_0xe9575f})=>{if(!_0xe9575f['showSuggestionHighlights'])return null;const _0x2735e0=_0x5dff59['createContainerElement']('div'),_0x2854cf=_0x5dff59['createEmptyElement']('hr');return _0x5dff59['addClass']('ck-horizontal-line',_0x2735e0),_0x5dff59['insert'](_0x5dff59['createPositionAt'](_0x2735e0,0x0),_0x2854cf),_0x2735e0;},'converterPriority':'high'});}}class et extends _0x454bf4{['afterInit'](){const _0x281c40=this['editor'];if(!_0x281c40['plugins']['has']('HtmlEmbed'))return;const _0x38bb7e=_0x281c40['plugins']['get']('TrackChangesEditing'),_0x1c10b3=_0x281c40['locale'];_0x38bb7e['descriptionFactory']['registerElementLabel']('rawHtml',_0x52180f=>o(_0x1c10b3,'ELEMENT_HTML_EMBED',_0x52180f)),_0x38bb7e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x38bb7e['registerBlockAttribute']('value'),_0x38bb7e['descriptionFactory']['registerDescriptionCallback'](_0x28ea16=>{if('attribute'!=_0x28ea16['type'])return;const {data:_0x2f8620}=_0x28ea16;if(_0x2f8620&&'value'==_0x2f8620['key']&&_0x28ea16['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x23863f=o(_0x1c10b3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c10b3,'*Change\x20%0\x20content*',_0x23863f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x581a5a=this['editor'],_0x1717dd=_0x581a5a['locale'];_0x581a5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e710=>{if('formatBlock'!=_0x19e710['type'])return;const {data:_0xbd47a7}=_0x19e710;if(_0xbd47a7&&'htmlEmbed'==_0xbd47a7['commandName']){const _0x3226d1=o(_0x1717dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1717dd,'*Change\x20%0\x20content*',_0x3226d1)};}});}}class it extends _0x454bf4{['afterInit'](){const _0x595258=this['editor'];if(!_0x595258['plugins']['has']('ImageEditing'))return;const _0x5949f9=_0x595258['plugins']['get']('TrackChangesEditing'),_0x50b558=_0x595258['plugins']['get']('ImageUtils'),_0xb797a3=_0x595258['locale'];_0x5949f9['enableCommand']('insertImage'),_0x5949f9['descriptionFactory']['registerElementLabel']('imageBlock',_0x4213d8=>o(_0xb797a3,'ELEMENT_IMAGE',_0x4213d8)),_0x5949f9['descriptionFactory']['registerElementLabel']('imageInline',_0x3a4aff=>o(_0xb797a3,'ELEMENT_INLINE_IMAGE',_0x3a4aff)),_0x5949f9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xb797a3,'ELEMENT_CAPTION')),_0x595258['plugins']['has']('ImageUploadEditing')&&_0x5949f9['enableCommand']('uploadImage'),_0x595258['plugins']['has']('ImageBlockEditing')&&_0x595258['plugins']['has']('ImageInlineEditing')&&(_0x5949f9['enableCommand']('imageTypeInline',(_0xb308be,_0x77ddee)=>{const _0x218e91=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']);_0x595258['model']['change'](()=>{_0x5949f9['markBlockFormat'](_0x218e91,{'commandName':'imageTypeInline','commandParams':[_0x77ddee]},[],'convertBlockImageToInline');});}),_0x5949f9['enableCommand']('imageTypeBlock',(_0x38e18d,_0x7f69c1)=>{_0x595258['model']['change'](_0x440e10=>{let _0x10cf76=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x31d05b=_0x440e10['createRangeOn'](_0x10cf76);const _0x4702d0=_0x3a5bde['fromPosition'](_0x31d05b['start'],'toPrevious'),_0x4e6bb1=_0x3a5bde['fromPosition'](_0x31d05b['end'],'toNext');_0x5949f9['forceDefaultExecution'](()=>_0x38e18d(_0x7f69c1)),_0x10cf76=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x31d05b=_0x440e10['createRangeOn'](_0x10cf76);const _0x480591=_0x440e10['createRange'](_0x4702d0,_0x4e6bb1);_0x4702d0['detach'](),_0x4e6bb1['detach'](),_0x5949f9['markBlockFormat'](_0x10cf76,{'commandName':'imageTypeInline','commandParams':[_0x7f69c1]},[],'convertInlineImageToBlock'),_0x480591['start']['isBefore'](_0x31d05b['start'])&&_0x5949f9['markInsertion'](_0x440e10['createRange'](_0x480591['start'],_0x31d05b['start']),'convertInlineImageToBlock'),_0x31d05b['end']['isBefore'](_0x480591['end'])&&_0x5949f9['markInsertion'](_0x440e10['createRange'](_0x31d05b['end'],_0x480591['end']),'convertInlineImageToBlock');});}),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5949f9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x434f73])=>{const _0x1f3285=_0x5949f9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41215c=_0x434f73['start'],_0x1de930=_0x434f73['end'];const _0x2b3879=_0x595258['model']['schema']['getNearestSelectionRange'](_0x41215c,'backward'),_0x285c55=_0x595258['model']['schema']['getNearestSelectionRange'](_0x1de930,'forward');_0x2b3879['isCollapsed']&&(_0x41215c=_0x2b3879['start']),_0x285c55['isCollapsed']&&(_0x1de930=_0x285c55['end']),_0x1f3285([_0x595258['model']['createRange'](_0x41215c,_0x1de930)]);}),_0x5949f9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x457f1d),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x457f1d)),_0x595258['plugins']['has']('ImageCaptionEditing')&&(_0x5949f9['enableCommand']('toggleImageCaption',(_0x2404a3,_0x4186ad)=>{const _0x44c3a4=_0x595258['plugins']['get']('ImageCaptionUtils');let _0x16b0ee=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x2f0b81=_0x44c3a4['getCaptionFromImageModelElement'](_0x16b0ee);_0x595258['model']['change'](()=>{if(_0x2f0b81)return void _0x5949f9['markDeletion'](_0x595258['model']['createRangeOn'](_0x2f0b81));const _0x5b66e2=_0x50b558['isBlockImage'](_0x16b0ee);_0x2404a3(_0x4186ad),_0x16b0ee=_0x50b558['getClosestSelectedImageElement'](_0x595258['model']['document']['selection']),_0x2f0b81=_0x44c3a4['getCaptionFromImageModelElement'](_0x16b0ee),_0x5949f9['markInsertion'](_0x595258['model']['createRangeOn'](_0x2f0b81),_0x5b66e2?null:'imageCaption');});}),_0x5949f9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x457f1d));const _0x35d126=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4782e3(_0x32a74f,_0x4e6dfc){const _0x270997=_0x35d126['findIndex'](({type:_0x39e8eb,subType:_0x36a38b})=>_0x32a74f['type']==_0x39e8eb&&_0x32a74f['subType']==_0x36a38b),_0x4f5df6=_0x35d126['findIndex'](({type:_0x2bce51,subType:_0x5339ba})=>_0x4e6dfc['type']==_0x2bce51&&_0x4e6dfc['subType']==_0x5339ba);if(_0x270997<0x0||_0x4f5df6<0x0)return!0x1;const _0xf671cc=_0x32a74f['getFirstRange'](),_0x25f860=_0x4e6dfc['getFirstRange']();if((0x0==_0x270997||0x1==_0x270997)&&0x2==_0x4f5df6&&_0xf671cc['isIntersecting'](_0x25f860))return!0x0;if(0x2==_0x270997&&0x3==_0x4f5df6){const _0x31d1e5=_0x5949f9['_findSuggestions'](_0xf671cc,'insertion')['filter'](({suggestion:_0x38a2ff,meta:_0x53aa0b})=>_0x53aa0b['isOwn']&&'convertInlineImageToBlock'==_0x38a2ff['subType']);if(_0x31d1e5['length']>0x1&&_0x25f860['end']['isEqual'](_0xf671cc['start']))return!0x0;if(0x1==_0x31d1e5['length']&&(_0xf671cc['start']['isEqual'](_0x25f860['end'])||_0xf671cc['end']['isEqual'](_0x25f860['start'])))return!0x0;}if(0x3==_0x270997&&0x3==_0x4f5df6&&_0xf671cc['start']['isBefore'](_0x25f860['start'])){const _0xba051f=_0xf671cc['end']['nodeAfter'],_0x1c0989=_0x25f860['start']['nodeBefore'];return _0x50b558['isBlockImage'](_0xba051f)&&_0xba051f===_0x1c0989;}return!0x1;}function _0x457f1d(_0xa19bc7,_0x3fd2d3){return _0x4782e3(_0xa19bc7,_0x3fd2d3)?[_0xa19bc7,_0x3fd2d3]:_0x4782e3(_0x3fd2d3,_0xa19bc7)?[_0x3fd2d3,_0xa19bc7]:null;}_0x595258['plugins']['has']('ImageResize')&&(_0x5949f9['enableDefaultAttributesIntegration']('resizeImage'),_0x5949f9['registerBlockAttribute']('resizedWidth'),_0x5949f9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xb797a3,'FORMAT_IMAGE_SIZE'))),_0x595258['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5949f9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5949f9['registerBlockAttribute']('alt')),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x161fc1=>{if(!!_0x35d126['find'](({type:_0x3bc782,subType:_0x5ec6b8})=>_0x161fc1['type']==_0x3bc782&&_0x161fc1['subType']==_0x5ec6b8))return _0x161fc1['previous']?{}:void 0x0;}),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x498c4a=>{if('insertion'==_0x498c4a['type']||'deletion'==_0x498c4a['type']){const _0x3679eb=_0x498c4a['getContainedElement']();if(_0x3679eb&&_0x3679eb['is']('element','caption'))return{'type':'insertion'==_0x498c4a['type']?'addObject':'removeObject','element':_0x3679eb,'quantity':0x1};}}),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x1824a9=>'formatBlock'==_0x1824a9['type']&&'convertInlineImageToBlock'==_0x1824a9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1824a9['type']&&'convertBlockImageToInline'==_0x1824a9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5949f9['descriptionFactory']['registerDescriptionCallback'](_0x5ea6f6=>{if('attribute'!=_0x5ea6f6['type'])return;const {data:_0x385f2a}=_0x5ea6f6;if(!_0x385f2a||'alt'!=_0x385f2a['key'])return;const _0x24c028=_0x385f2a['newValue'];return _0x24c028?{'type':'format','content':o(_0xb797a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24c028+'\x22')}:{'type':'format','content':o(_0xb797a3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374391=this['editor'],_0x186bbf=_0x374391['locale'];_0x374391['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fcbe5=>{if('formatBlock'!=_0x1fcbe5['type']&&'formatInline'!=_0x1fcbe5['type'])return;const {data:_0x2bb04f}=_0x1fcbe5;if(_0x2bb04f){if('imageTextAlternative'==_0x2bb04f['commandName']){const _0x308eb6=_0x2bb04f['commandParams'][0x0]['newValue'];return _0x308eb6?{'type':'format','content':o(_0x186bbf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x308eb6+'\x22')}:{'type':'format','content':o(_0x186bbf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bb04f['commandName']){const _0x455cb0=_0x2bb04f['commandParams'][0x0]['width'];return _0x455cb0?{'type':'format','content':o(_0x186bbf,'*Set\x20image\x20width:*\x20%0',_0x455cb0)}:{'type':'format','content':o(_0x186bbf,'*Reset\x20image\x20width*')};}}});}}class st extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1fdd17=this['editor']['locale'],_0x43b88a=this['editor']['plugins']['get']('TrackChangesEditing');_0x43b88a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43b88a['registerBlockAttribute']('src'),_0x43b88a['descriptionFactory']['registerDescriptionCallback'](_0x427eb=>{if('attribute'!=_0x427eb['type'])return;const {data:_0x2cdd06}=_0x427eb;return _0x2cdd06&&'src'==_0x2cdd06['key']?_0x2cdd06['newValue']&&_0x2cdd06['oldValue']?{'type':'format','content':o(_0x1fdd17,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x498036=this['editor']['plugins']['get']('TrackChangesEditing');_0x498036['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x498036['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x498036['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x498036['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2200ae=this['editor'],_0x157718=_0x2200ae['locale'];_0x2200ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a0c83=>{if('formatBlock'!=_0x1a0c83['type']&&'formatInline'!=_0x1a0c83['type'])return;const {data:_0x27cae4}=_0x1a0c83;if(!_0x27cae4||'replaceImageSource'!=_0x27cae4['commandName'])return;return{'type':'format','content':o(_0x157718,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x454bf4{['afterInit'](){const _0x57b0ea=this['editor'];if(!_0x57b0ea['plugins']['has']('ImageStyleEditing'))return;const _0x3a4573=_0x57b0ea['plugins']['get']('TrackChangesEditing'),_0x5034a0=_0x57b0ea['plugins']['get']('ImageUtils'),_0x33b6d6={};_0x3a4573['enableCommand']('imageStyle',(_0x50aa6b,_0xfe312d)=>{const _0x3961c6=_0x57b0ea['plugins']['get']('Users')['me'],_0x17a47b=_0x57b0ea['commands']['get']('imageStyle');let _0x221afa=_0x5034a0['getClosestSelectedImageElement'](_0x57b0ea['model']['document']['selection']),_0x4f859a=_0x57b0ea['model']['createRangeOn'](_0x221afa),_0x5dc229=_0x17a47b['value'];if(_0x5dc229==_0xfe312d['value'])return;const _0x320f3e={'commandName':'imageStyle','commandParams':[_0xfe312d],'formatGroupId':_0x278a82()};_0x57b0ea['model']['change'](()=>{if(_0x3a4573['getSuggestions']()['filter'](_0x195ec8=>_0x195ec8['isInContent']&&_0x3961c6==_0x195ec8['author']&&('formatBlock'==_0x195ec8['type']||'formatInline'==_0x195ec8['type'])&&('imageStylePreApply'==_0x195ec8['subType']||'imageStylePostApply'==_0x195ec8['subType'])&&_0x195ec8['getFirstRange']()['isEqual'](_0x4f859a))['forEach'](_0x46bd93=>_0x3a4573['discardSuggestion'](_0x46bd93['head'])),_0x221afa=_0x5034a0['getClosestSelectedImageElement'](_0x57b0ea['model']['document']['selection']),_0x4f859a=_0x57b0ea['model']['createRangeOn'](_0x221afa),_0x17a47b['refresh'](),_0x57b0ea['commands']['get']('imageTypeInline')['refresh'](),_0x57b0ea['commands']['get']('imageTypeBlock')['refresh'](),_0x5dc229=_0x17a47b['value'],_0x5dc229!=_0xfe312d['value'])return _0x5034a0['isInlineImage'](_0x221afa)&&_0x17a47b['shouldConvertImageType'](_0xfe312d['value'],_0x221afa)?(_0x50aa6b({..._0xfe312d,'setImageSizes':!0x1}),_0x221afa=_0x5034a0['getClosestSelectedImageElement'](_0x57b0ea['model']['document']['selection']),void _0x3a4573['markBlockFormat'](_0x221afa,{..._0x320f3e,'commandReversedParams':[{'value':_0x5dc229||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5034a0['isBlockImage'](_0x221afa)?_0x3a4573['markBlockFormat'](_0x221afa,_0x320f3e,[],'imageStylePostApply'):_0x3a4573['markInlineFormat'](_0x4f859a,_0x320f3e,'imageStylePostApply'));});});for(const _0x2bc547 of _0x57b0ea['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x33b6d6[_0x2bc547['name']]=_0x2bc547['title']['toLowerCase']();_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4694eb])=>{_0x5034a0['setImageNaturalSizeAttributes'](_0x4694eb['getContainedElement']());}),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1f5a18,_0x512a74)=>{_0x3a4573['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1f5a18,{'commandName':_0x512a74['commandName'],'commandParams':_0x512a74['commandReversedParams']});}),_0x3a4573['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x486620,_0x1f9424){if(_0x1beb27(_0x486620,_0x1f9424))return[_0x486620,_0x1f9424];if(_0x1beb27(_0x1f9424,_0x486620))return[_0x1f9424,_0x486620];return null;});const _0x1ef85f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1beb27(_0x5ce363,_0xf9cfad){const _0x119905=_0x1ef85f['findIndex'](({type:_0x50c122,subType:_0x47b4d5})=>_0x5ce363['type']==_0x50c122&&_0x5ce363['subType']==_0x47b4d5),_0x29e66c=_0x1ef85f['findIndex'](({type:_0x561510,subType:_0x2f77eb})=>_0xf9cfad['type']==_0x561510&&_0xf9cfad['subType']==_0x2f77eb);if(_0x119905<0x0||_0x29e66c<0x0)return!0x1;const _0x2c0f57=_0x5ce363['getFirstRange'](),_0x2d4774=_0xf9cfad['getFirstRange']();if((0x0==_0x119905||0x1==_0x119905)&&0x2==_0x29e66c&&_0x2c0f57['isIntersecting'](_0x2d4774))return!0x0;if(0x2==_0x119905&&0x3==_0x29e66c){const _0x5df955=_0x3a4573['_findSuggestions'](_0x2c0f57,'insertion')['filter'](({suggestion:_0x541b7a,meta:_0x394148})=>_0x394148['isOwn']&&'convertInlineImageToBlock'==_0x541b7a['subType']);if(_0x5df955['length']>0x1&&_0x2d4774['end']['isEqual'](_0x2c0f57['start']))return!0x0;if(0x1==_0x5df955['length']&&(_0x2c0f57['start']['isEqual'](_0x2d4774['end'])||_0x2c0f57['end']['isEqual'](_0x2d4774['start'])))return!0x0;}if(0x3==_0x119905&&0x3==_0x29e66c&&_0x2c0f57['start']['isBefore'](_0x2d4774['start'])){const _0x4569fa=_0x2c0f57['end']['nodeAfter'],_0x2cddda=_0x2d4774['start']['nodeBefore'];return _0x5034a0['isBlockImage'](_0x4569fa)&&_0x4569fa===_0x2cddda;}return!0x1;}_0x57b0ea['model']['document']['registerPostFixer'](()=>{let _0x20b799=!0x1;const _0xb29adc=Array['from'](_0x57b0ea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16f109,data:_0x4e248f}of _0xb29adc){const {group:_0x27eb05,type:_0x2ec399,subType:_0x23b2be,id:_0x240ea6}=_0x3a4573['_splitMarkerName'](_0x16f109);if('suggestion'==_0x27eb05&&_0x3a4573['hasSuggestion'](_0x240ea6)){if('formatBlock'==_0x2ec399&&('imageStylePreApply'==_0x23b2be||'imageStylePostApply'==_0x23b2be)){const _0x4d8868=_0x3a4573['getSuggestion'](_0x240ea6);if(_0x4e248f['newRange']){const _0xcc1c90=_0x4d8868['getFirstRange']()['getContainedElement']();if(_0x5034a0['isBlockImage'](_0xcc1c90))continue;_0x3a4573['discardSuggestion'](_0x4d8868),_0x20b799=!0x0;}}if('insertion'==_0x2ec399&&'imageCaption'==_0x23b2be&&!_0x4e248f['newRange']){const _0x5b263b=_0x3a4573['getSuggestion'](_0x240ea6);_0x5b263b['next']&&_0x5b263b['next']['isInContent']&&(_0x3a4573['discardSuggestion'](_0x5b263b['next']),_0x20b799=!0x0);}}}return _0x20b799;}),this['_registerLegacyDescription'](_0x33b6d6);}['_registerLegacyDescription'](_0x41fad1){const _0xd6ec63=this['editor'],_0x5057bf=_0xd6ec63['locale'];_0xd6ec63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b4348=>{if('formatBlock'!=_0x1b4348['type']&&'formatInline'!=_0x1b4348['type'])return;const {data:_0x20112e}=_0x1b4348;if(!_0x20112e||'imageStyle'!=_0x20112e['commandName'])return;const _0x192d0e=_0x20112e['commandParams'][0x0]['value'];return _0x37f1ae('side'===_0x192d0e?o(_0x5057bf,'FORMAT_SIDE_IMAGE'):_0x41fad1[_0x192d0e]||_0x192d0e);function _0x37f1ae(_0x4d156e){return{'type':'format','content':o(_0x5057bf,'*Format:*\x20%0',_0x4d156e)};}});}}class ot extends _0x454bf4{['afterInit'](){const _0x556e8f=this['editor'],_0x455cdb=_0x556e8f['commands']['get']('importWord'),_0x178f8e=_0x556e8f['commands']['get']('trackChanges');_0x455cdb&&(_0x455cdb['on']('execute',(_0x2f7045,[,_0x2ccb72])=>{this['_trackChangesValueDuringImport']=_0x178f8e['value'],_0x2ccb72['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x455cdb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x455cdb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x178f8e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x556e8f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3c8473,_0x109889){const {suggestions:_0x441da2}=_0x109889,_0x3c80a3=this['editor']['commands']['get']('trackChanges'),_0x6d0399=_0x3c80a3['value'];this['_trackChangesValueDuringImport']!==_0x6d0399&&(_0x3c80a3['execute'](),this['_trackChangesExecuted']=!0x0),_0x441da2&&_0x441da2['forEach'](({id:_0x4a6ea8,type:_0x2bc7a9,author:_0x52d77a,created_at:_0x249d89})=>{const _0x17b866={'id':_0x4a6ea8,'type':_0x2bc7a9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x52d77a,'createdAt':_0x249d89?new Date(_0x249d89):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x17b866);});}constructor(_0x1029c8){super(_0x1029c8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x454bf4{['afterInit'](){const _0x13f3c0=this['editor'],_0x55055c=_0x13f3c0['plugins']['get']('TrackChangesEditing');if(_0x13f3c0['plugins']['has']('IndentEditing')&&(_0x55055c['enableCommand']('indent'),_0x55055c['enableCommand']('outdent')),_0x13f3c0['plugins']['has']('IndentBlock')){for(const _0x39f96b of['indentBlock','outdentBlock'])_0x55055c['enableDefaultAttributesIntegration'](_0x39f96b);}const _0x253157=_0x13f3c0['locale'];_0x55055c['registerBlockAttribute']('blockIndent'),_0x55055c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x253157,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56351a=this['editor'],_0x36720b=_0x56351a['locale'],_0x2b22f9=_0x56351a['plugins']['get']('TrackChangesEditing');_0x2b22f9['descriptionFactory']['registerDescriptionCallback'](_0x52e099=>{if('formatBlock'!=_0x52e099['type'])return;const {data:_0xcf45e7}=_0x52e099;if(!_0xcf45e7)return;if('indentBlock'!=_0xcf45e7['commandName']&&'outdentBlock'!=_0xcf45e7['commandName'])return;const _0x116f0d=_0x52e099['getItems']()[0x0],_0x7bd26e=_0x2b22f9['descriptionFactory']['getItemLabel'](_0x116f0d);return'indentBlock'==_0xcf45e7['commandName']?{'type':'format','content':o(_0x36720b,'*Indent:*\x20%0',_0x7bd26e)}:'outdentBlock'==_0xcf45e7['commandName']?{'type':'format','content':o(_0x36720b,'*Outdent:*\x20%0',_0x7bd26e)}:void 0x0;});}}class at extends _0x454bf4{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x454bf4{['afterInit'](){const _0x3433ae=this['editor'];if(!_0x3433ae['plugins']['has']('LinkEditing'))return;const _0x245d70=_0x3433ae['plugins']['get']('TrackChangesEditing'),_0x37e2f6=_0x3433ae['commands']['get']('link');_0x245d70['enableDefaultAttributesIntegration']('link'),_0x245d70['enableDefaultAttributesIntegration']('unlink'),_0x245d70['registerInlineAttribute']('linkHref');for(const _0x3a709c of _0x37e2f6['manualDecorators'])_0x245d70['registerInlineAttribute'](_0x3a709c['id']),_0x245d70['descriptionFactory']['registerAttributeLabel'](_0x3a709c['id'],'link\x20('+_0x3a709c['label']['toLowerCase']()+')');_0x245d70['descriptionFactory']['registerDescriptionCallback'](_0x5c4c58=>{if('attribute'!=_0x5c4c58['type'])return;const {data:_0x12678d}=_0x5c4c58;if(!_0x12678d||'linkHref'!=_0x12678d['key'])return;const _0x5274a0=_0x12678d['newValue'],_0x3a7fd0=_0x3433ae['locale'];return{'type':'format','content':null==_0x5274a0?o(_0x3a7fd0,'*Remove\x20link*'):o(_0x3a7fd0,'*Set\x20link:*\x20%0','\x22'+_0x5274a0+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38a81d=this['editor'],_0xe2811d=_0x38a81d['locale'];_0x38a81d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af5f6=>{if('formatInline'!=_0x1af5f6['type'])return;const {data:_0x259b92}=_0x1af5f6;if(_0x259b92){if('link'==_0x259b92['commandName']){const _0x5c24e0=_0x259b92['commandParams'][0x0];return{'type':'format','content':o(_0xe2811d,'*Set\x20link:*\x20%0','\x22'+_0x5c24e0+'\x22')};}return'unlink'==_0x259b92['commandName']?{'type':'format','content':o(_0xe2811d,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x454bf4{['afterInit'](){const _0x22faf5=this['editor'],_0x3fb691=_0x22faf5['locale'];if(!_0x22faf5['plugins']['has']('LegacyListEditing'))return;const _0x3ee729=_0x22faf5['plugins']['get']('TrackChangesEditing'),_0x3a9642=_0x22faf5['plugins']['has']('LegacyTodoListEditing');function _0x52df53(_0x4f41aa){return()=>{const _0x8c3f53=_0x22faf5['model']['document']['selection'],_0x42b5f4=_0x22faf5['commands']['get'](_0x4f41aa);if(_0x42b5f4['value'])return void _0x22faf5['execute']('paragraph',{});const _0x3581c8=_0x4f41aa['slice'](0x0,-0x4),_0x3847b8=function(_0x572cab,_0x337222,_0x3eb9c8){let _0x3a2b5d=Array['from'](_0x572cab)['filter'](_0x42bf7b=>function(_0x2d8caa,_0x4e5b28){return _0x4e5b28['checkChild'](_0x2d8caa['parent'],'listItem')&&!_0x4e5b28['isObject'](_0x2d8caa);}(_0x42bf7b,_0x3eb9c8));_0x3a2b5d=_0x3a2b5d['filter'](_0x191c9d=>!_0x191c9d['is']('element','listItem')||_0x191c9d['getAttribute']('listType')!=_0x337222);const _0x5c4722=new Set();for(const _0x2c8fd7 of _0x3a2b5d)_0x2c8fd7['is']('element','listItem')?_0x5c4722['add'](me(_0x2c8fd7)):_0x5c4722['add'](_0x2c8fd7);return Array['from'](_0x5c4722);}(_0x8c3f53['getSelectedBlocks'](),_0x3581c8,_0x22faf5['model']['schema']);_0x22faf5['model']['change'](()=>{for(const _0x1ffbcd of _0x3847b8)_0x3ee729['markBlockFormat'](_0x1ffbcd,{'commandName':_0x4f41aa,'commandParams':[{'forceValue':!_0x42b5f4['value']}],'formatGroupId':'blockName'},fe(_0x1ffbcd));});};}function _0x2d6efc(_0x54a5eb){return()=>{const _0x232b28=function(_0xc90fd8){let _0x4d0d39=Array['from'](_0xc90fd8);const _0x357851=_0x4d0d39['findIndex'](_0x4d6484=>'listItem'!=_0x4d6484['name']);return _0x357851>-0x1&&(_0x4d0d39=_0x4d0d39['slice'](0x0,_0x357851)),_0x4d0d39;}(_0x22faf5['model']['document']['selection']['getSelectedBlocks']()),_0x252040=_0x22faf5['model']['createRange'](_0x22faf5['model']['createPositionAt'](_0x232b28[0x0],'before'),_0x22faf5['model']['createPositionAt'](_0x232b28[_0x232b28['length']-0x1],'end'));_0x22faf5['model']['change'](()=>{_0x3ee729['markBlockFormat'](_0x252040,{'commandName':_0x54a5eb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x99151f){const _0x5c8cac=new Set();for(const _0xa52bf6 of _0x99151f){let _0x32fb01=_0xa52bf6['nextSibling'];for(;_0x32fb01&&_0x32fb01['getAttribute']('listIndent')>_0xa52bf6['getAttribute']('listIndent');)_0x5c8cac['add'](_0x32fb01),_0x32fb01=_0x32fb01['nextSibling'];}return Array['from'](_0x5c8cac);}(_0x232b28));});};}_0x3ee729['enableCommand']('numberedList',_0x52df53('numberedList')),_0x3ee729['enableCommand']('bulletedList',_0x52df53('bulletedList')),_0x3a9642&&_0x3ee729['enableCommand']('todoList',_0x52df53('todoList')),_0x3ee729['enableCommand']('indentList',_0x2d6efc('indentList')),_0x3ee729['enableCommand']('outdentList',_0x2d6efc('outdentList')),_0x3a9642&&_0x3ee729['enableCommand']('checkTodoList',()=>{const _0x44aa76=_0x22faf5['commands']['get']('checkTodoList'),_0xd2b09=Array['from'](_0x44aa76['_selectedElements']);_0xd2b09['filter'](_0x33ff0c=>_0x33ff0c['getAttribute']('todoListChecked')!=_0x44aa76['value']),_0x22faf5['model']['change'](()=>{for(const _0x120a3f of _0xd2b09)_0x3ee729['markBlockFormat'](_0x120a3f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44aa76['value']}]});});}),_0x3ee729['descriptionFactory']['registerElementLabel']('listItem',_0x4fccd7=>o(_0x3fb691,'ELEMENT_LIST_ITEM',_0x4fccd7)),_0x3ee729['descriptionFactory']['registerDescriptionCallback'](_0xa2d71d=>{if('formatBlock'!=_0xa2d71d['type']&&'formatInline'!=_0xa2d71d['type'])return;const {data:_0x579583}=_0xa2d71d;if(_0x579583){if('numberedList'==_0x579583['commandName']||'bulletedList'==_0x579583['commandName']||'todoList'==_0x579583['commandName'])switch(_0x579583['commandName']['replace']('List','')){case'bulleted':return _0x657d48(o(_0x3fb691,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x657d48(o(_0x3fb691,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x657d48(o(_0x3fb691,'ELEMENT_TODO_LIST'));}if('indentList'==_0x579583['commandName'])return{'type':'format','content':o(_0x3fb691,'*Indent:*\x20%0',o(_0x3fb691,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x579583['commandName'])return{'type':'format','content':o(_0x3fb691,'*Outdent:*\x20%0',o(_0x3fb691,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x579583['commandName'])return _0x579583['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fb691,'*Check\x20item*')}:{'type':'format','content':o(_0x3fb691,'*Uncheck\x20item*')};}function _0x657d48(_0x5d132e){return{'type':'format','content':o(_0x3fb691,'*Change\x20to:*\x20%0',_0x5d132e)};}});}}function me(_0x3b30e0){const _0xc935e3=_0x3b30e0['getAttribute']('listIndent');if(0x0==_0xc935e3)return _0x3b30e0;let _0x5f155c=_0x3b30e0;for(;_0x3b30e0['previousSibling']&&_0x3b30e0['previousSibling']['is']('element','listItem');){const _0x4c281c=_0x3b30e0['previousSibling']['getAttribute']('listIndent');if(_0x4c281c==_0xc935e3)_0x5f155c=_0x3b30e0['previousSibling'];else{if(_0x4c281c<_0xc935e3)break;}_0x3b30e0=_0x3b30e0['previousSibling'];}return _0x5f155c;}function fe(_0x4d1529){const _0x1c347a=[];if(_0x4d1529['is']('element','listItem')&&_0x4d1529['getAttribute']('listIndent')>0x0){let _0x3c22e8=_0x4d1529['nextSibling'];for(;_0x3c22e8&&'listItem'==_0x3c22e8['name']&&_0x3c22e8['getAttribute']('listIndent')==_0x4d1529['getAttribute']('listIndent');)_0x1c347a['push'](_0x3c22e8),_0x3c22e8=_0x3c22e8['nextSibling'];}return _0x1c347a;}class K extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32e3bc=this['editor']['config']['get']('list.properties'),_0x5c82e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x32e3bc['styles']&&_0x5c82e8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32e3bc['reversed']&&_0x5c82e8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32e3bc['startIndex']&&_0x5c82e8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5c82e8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xb7db40,_0x879aee={}){const _0x264ced=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f75c7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x264ced['markMultiRangeBlockFormat'](_0x4f75c7,{'commandName':'listStyle','commandParams':[{'type':_0x879aee['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4f24f1,_0x1113d1={}){const _0xed2dd5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32b86d=this['_getSuggestionBlocks'](_0x4ea791=>_0x4ea791['is']('element','listItem')&&'numbered'===_0x4ea791['getAttribute']('listType'));if(_0x32b86d['length']<0x1)return;const _0x4cc0ab=_0x32b86d['map'](_0x9c50b4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9c50b4,'before'),this['editor']['model']['createPositionAt'](_0x9c50b4,0x0)));this['editor']['model']['change'](()=>{_0xed2dd5['markMultiRangeBlockFormat'](_0x4cc0ab,{'commandName':'listReversed','commandParams':[{'reversed':_0x1113d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2e5d10,_0x2540af={}){const _0x136bca=this['editor']['plugins']['get']('TrackChangesEditing'),_0xce510a=this['_getSuggestionBlocks'](_0x1d6e2b=>_0x1d6e2b['is']('element','listItem')&&'numbered'===_0x1d6e2b['getAttribute']('listType'));if(_0xce510a['length']<0x1)return;const _0x404b03=_0xce510a['map'](_0x12d505=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12d505,'before'),this['editor']['model']['createPositionAt'](_0x12d505,0x0)));this['editor']['model']['change'](()=>{_0x136bca['markMultiRangeBlockFormat'](_0x404b03,{'commandName':'listStart','commandParams':[{'startIndex':_0x2540af['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb5b77){if('formatBlock'!=_0xb5b77['type']&&'formatInline'!=_0xb5b77['type'])return;const _0x372761=this['editor']['locale'],{data:_0x4e4122}=_0xb5b77;if(!_0x4e4122)return;let _0xaa6875,_0x55e3fa;switch(_0x4e4122['commandName']){case'listStyle':_0xaa6875='*Change\x20to:*\x20%0',_0x55e3fa={'type':'format','content':o(_0x372761,_0xaa6875,o(_0x372761,this['_getTranslationKeyForListStyle'](_0x4e4122['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaa6875=_0x4e4122['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x55e3fa={'type':'format','content':o(_0x372761,_0xaa6875)};break;case'listStart':_0xaa6875='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55e3fa={'type':'format','content':o(_0x372761,_0xaa6875,_0x4e4122['commandParams'][0x0]['startIndex'])};}return _0x55e3fa;}['_getSuggestionBlocksForListStyle'](){var _0x4438fa,_0x2c3416,_0x5e434a,_0x44276f;const _0x24dab8=this['editor']['plugins']['get']('LegacyListUtils');let _0xdab60f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x4438fa=_0xdab60f[0x0])||void 0x0===_0x4438fa?void 0x0:_0x4438fa['is']('element','listItem'))&&_0xdab60f['unshift'](..._0x24dab8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x2c3416=_0xdab60f[_0xdab60f['length']-0x1])||void 0x0===_0x2c3416?void 0x0:_0x2c3416['is']('element','listItem'))&&_0xdab60f['push'](..._0x24dab8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xdab60f=[...new Set(_0xdab60f)],(null===(_0x44276f=null===(_0x5e434a=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x5e434a?void 0x0:_0x5e434a['parent'])||void 0x0===_0x44276f?void 0x0:_0x44276f['is']('element','listItem'))&&(_0xdab60f=_0xdab60f['filter'](_0x5e4265=>_0x5e4265['is']('element','listItem'))),_0xdab60f;}['_getSuggestionBlocks'](_0x2ed110){const _0xbb29bd=this['editor']['plugins']['get']('LegacyListUtils');let _0xac25b5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ed110)['map'](_0x5888cb=>{const _0x2d6f6c=this['editor']['model']['createPositionAt'](_0x5888cb,0x0);return[..._0xbb29bd['getSiblingNodes'](_0x2d6f6c,'backward'),..._0xbb29bd['getSiblingNodes'](_0x2d6f6c,'forward')];})['flat']();return _0xac25b5=[...new Set(_0xac25b5)],_0xac25b5;}['_getTranslationKeyForListStyle'](_0x2655f5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2655f5)||'default')['toUpperCase']()+'_LIST_'+_0x2655f5['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x454bf4{['afterInit'](){const _0xeb9346=this['editor'];if(!_0xeb9346['plugins']['has']('MediaEmbedEditing'))return;const _0x2c577d=_0xeb9346['plugins']['get']('TrackChangesEditing'),_0x3f798d=_0xeb9346['locale'];_0x2c577d['enableCommand']('mediaEmbed'),_0x2c577d['descriptionFactory']['registerElementLabel']('media',_0x34d7d5=>o(_0x3f798d,'ELEMENT_MEDIA',_0x34d7d5)),_0xeb9346['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f719d,{writer:_0x5dcff6,options:_0x5a2397})=>{if(_0x5a2397['showSuggestionHighlights'])return _0x5dcff6['createEmptyElement']('div');},'converterPriority':'high'}),_0xeb9346['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3eeef7,_0x46cc77,_0x3f208a)=>{_0x3f208a['options']['showSuggestionHighlights']&&_0x3eeef7['stop']();},{'priority':'high'});}}class gt extends _0x454bf4{['afterInit'](){const _0x820fe8=this['editor'];_0x820fe8['plugins']['has']('MentionEditing')&&_0x820fe8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x454bf4{['afterInit'](){const _0x423406=this['editor'],_0x45327f=_0x423406['plugins']['get']('TrackChangesEditing');_0x423406['plugins']['has']('MultiLevelList')&&(_0x45327f['enableDefaultAttributesIntegration']('multiLevelList'),_0x45327f['registerBlockAttribute']('listMarkerStyle'),_0x45327f['descriptionFactory']['registerDescriptionCallback'](_0x46271a=>this['handleDescriptions'](_0x46271a)));}['handleDescriptions'](_0x5925af){const _0x8d614a=this['editor']['locale'],{data:_0x4bc358}=_0x5925af,_0x6ae089={'type':'format','content':''};if(_0x4bc358&&'listMarkerStyle'==_0x4bc358['key']){if(!_0x4bc358['oldValue'])return{'type':'format','content':o(_0x8d614a,'*Set\x20format:*\x20%0',o(_0x8d614a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bc358['newValue']+')'};if(!_0x4bc358['newValue']){let _0x382575=_0x5925af['head'];for(;_0x382575;){if(_0x382575['data']&&'listType'==_0x382575['data']['key']&&_0x382575['data']['newValue'])return _0x6ae089;_0x382575=_0x382575['next'];}return{'type':'format','content':o(_0x8d614a,'*Remove\x20format:*\x20%0',o(_0x8d614a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4bc358['oldValue']+')'};}}}}class mt extends _0x454bf4{['afterInit'](){const _0x2d192d=this['editor'];if(!_0x2d192d['plugins']['has']('PageBreakEditing'))return;_0x2d192d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x8c680c=_0x2d192d['plugins']['get']('TrackChangesEditing'),_0x677aa1=_0x2d192d['locale'];_0x8c680c['descriptionFactory']['registerElementLabel']('pageBreak',_0xe7213b=>o(_0x677aa1,'ELEMENT_PAGE_BREAK',_0xe7213b));}}class dt extends _0x454bf4{['afterInit'](){const _0x2b6ab3=this['editor'];if(!_0x2b6ab3['plugins']['has']('Paragraph'))return;const _0x18780c=_0x2b6ab3['locale'],_0x28fa0e=_0x2b6ab3['plugins']['get']('TrackChangesEditing');_0x28fa0e['descriptionFactory']['registerElementLabel']('paragraph',_0x2c201c=>o(_0x18780c,'ELEMENT_PARAGRAPH',_0x2c201c)),_0x28fa0e['enableDefaultAttributesIntegration']('paragraph'),_0x28fa0e['enableCommand']('insertParagraph'),_0x2b6ab3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b6ab3),{'priority':'highest'}),_0x2b6ab3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c8e9b,_0x3e72f5,_0x33cdb8)=>{_0x33cdb8['options']['showSuggestionHighlights']&&nr(_0x2b6ab3,{'showActiveMarker':!0x1})(_0x3c8e9b,_0x3e72f5,_0x33cdb8);},{'priority':'highest'});const _0x399ae3=_0x28fa0e['descriptionFactory'];_0x399ae3['registerDescriptionCallback'](_0x20607b=>{if('insertion'!==_0x20607b['type'])return;const {start:_0x140fba,end:_0x5e6851}=_0x20607b['getFirstRange']();if(!_0x140fba['isTouching'](_0x5e6851)||!_0x140fba['nodeAfter'])return;const _0x1c8236=_0x2b6ab3['model']['schema'],_0x2edcad=_0x140fba['nodeAfter'];return _0x1c8236['isBlock'](_0x2edcad)&&!_0x1c8236['isLimit'](_0x2edcad)&&_0x1c8236['checkChild'](_0x2edcad,'$text')?{'type':'insertion','content':o(_0x18780c,'*Insert:*\x20%0',_0x399ae3['getItemLabel'](_0x2edcad,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446e79=this['editor'],_0x23fb21=_0x446e79['locale'];_0x446e79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa30747=>{if('formatBlock'!=_0xa30747['type'])return;const {data:_0x231f66}=_0xa30747;return _0x231f66&&'paragraph'==_0x231f66['commandName']?{'type':'format','content':o(_0x23fb21,'*Change\x20to:*\x20%0',o(_0x23fb21,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4374c5,{showActiveMarker:_0x3e0b3c=!0x0}={}){return(_0x2d17e2,_0x407ffa,_0x308c58)=>{const _0x27beec=_0x4374c5['plugins']['get']('TrackChangesEditing'),_0x1b46b7=_0x407ffa['markerRange']['start'],_0x36fcce=_0x407ffa['markerRange']['end'],_0x4ea21d=_0x4374c5['model']['schema'];if(!_0x1b46b7['isTouching'](_0x36fcce)||!_0x1b46b7['nodeAfter'])return;const _0x344b8e=_0x1b46b7['nodeAfter'];if(_0x4ea21d['isBlock'](_0x344b8e)&&!_0x4ea21d['isLimit'](_0x344b8e)&&_0x4ea21d['checkChild'](_0x344b8e,'$text')){if(!_0x308c58['consumable']['consume'](_0x407ffa['markerRange'],_0x2d17e2['name']))return;const _0x31414f=_0x308c58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x30e0b0=_0x308c58['mapper']['toViewPosition'](_0x36fcce);_0x3e0b3c&&_0x27beec['activeMarkers']['includes'](_0x407ffa['markerName'])&&_0x308c58['writer']['addClass']('ck-suggestion-marker--active',_0x31414f),_0x308c58['writer']['insert'](_0x30e0b0,_0x31414f),_0x308c58['mapper']['bindElementToMarker'](_0x31414f,_0x407ffa['markerName']);}};}class pt extends _0x454bf4{['afterInit'](){const _0x95ac47=this['editor'];if(!_0x95ac47['plugins']['has']('RemoveFormatEditing'))return;_0x95ac47['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a5f6=this['editor'];_0x41a5f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1828bd=>{if('formatBlock'!=_0x1828bd['type']&&'formatInline'!=_0x1828bd['type'])return;const {data:_0x1e24bb}=_0x1828bd;return _0x1e24bb&&'removeFormat'==_0x1e24bb['commandName']?{'type':'format','content':o(_0x41a5f6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x454bf4{['afterInit'](){const _0x57a35b=this['editor'];if(!_0x57a35b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2c6f70=_0x57a35b['plugins']['get']('TrackChangesEditing');_0x2c6f70['enableCommand']('goToPreviousRestrictedEditingException'),_0x2c6f70['enableCommand']('goToNextRestrictedEditingException');const _0x1aa1e4=_0x57a35b['plugins']['get']('RestrictedEditingModeEditing');_0x1aa1e4['enableCommand']('trackChanges'),_0x1aa1e4['enableCommand']('acceptSuggestion'),_0x1aa1e4['enableCommand']('discardSuggestion'),_0x1aa1e4['enableCommand']('acceptAllSuggestions'),_0x1aa1e4['enableCommand']('discardAllSuggestions'),_0x1aa1e4['enableCommand']('acceptSelectedSuggestions'),_0x1aa1e4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x454bf4{static get['requires'](){return[_0x202832];}['init'](){const _0x4dc3aa=this['editor'],_0x5676b5=_0x4dc3aa['plugins']['get']('TrackChangesEditing');_0x5676b5['enableCommand']('shiftEnter'),_0x4dc3aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4dc3aa),{'priority':'high'}),_0x4dc3aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4dc3aa),{'priority':'high'}),_0x4dc3aa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x229756,_0x452f67,_0x20d4e9)=>{_0x20d4e9['options']['showSuggestionHighlights']&&de(_0x4dc3aa,{'showActiveMarker':!0x1})(_0x229756,_0x452f67,_0x20d4e9);}),_0x5676b5['descriptionFactory']['registerElementLabel']('softBreak',_0x1b1b26=>o(_0x4dc3aa['locale'],'ELEMENT_LINE_BREAK',_0x1b1b26));}}function de(_0xc13cb,{showActiveMarker:_0x44745e=!0x0}={}){return(_0x2f49e3,_0x3c2d1c,_0x2f8d62)=>{const _0x3c42a9=_0xc13cb['plugins']['get']('TrackChangesEditing');if(!_0x2f8d62['consumable']['test'](_0x3c2d1c['markerRange'],_0x2f49e3['name']))return;const _0x536812=_0xc13cb['model'];for(const _0x4df6bb of _0x3c2d1c['markerRange']['getItems']()){if(!_0x4df6bb['is']('element','softBreak'))continue;const _0x260753='deletion'==_0x3c2d1c['markerName']['split'](':')[0x1]?'merge':'split',_0x8827c=_0x2f8d62['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x260753}),_0x220b74=_0x2f8d62['mapper']['toViewPosition'](_0x536812['createPositionBefore'](_0x4df6bb));_0x44745e&&_0x3c42a9['activeMarkers']['includes'](_0x3c2d1c['markerName'])&&_0x2f8d62['writer']['addClass']('ck-suggestion-marker--active',_0x8827c),_0x2f8d62['writer']['insert'](_0x220b74,_0x8827c),_0x2f8d62['mapper']['bindElementToMarker'](_0x8827c,_0x3c2d1c['markerName']);}};}class wt extends _0x454bf4{['afterInit'](){const _0x456d8e=this['editor'],_0x401df6=_0x456d8e['model'],_0x353d1e=_0x456d8e['locale'];if(!_0x456d8e['plugins']['has']('StandardEditingModeEditing'))return;const _0x21a047=_0x456d8e['plugins']['get']('TrackChangesEditing'),_0x3d232c='restrictedEditingException',_0x2821b1=_0x456d8e['commands']['get'](_0x3d232c);_0x21a047['enableCommand'](_0x3d232c,(_0x26d504,_0xa6629d={})=>{const _0xaec098=_0x401df6['document']['selection'];if(_0xaec098['isCollapsed'])return void _0x26d504(_0xa6629d);const _0x6a2fed=void 0x0!==_0xa6629d['forceValue']?_0xa6629d['forceValue']:!_0x2821b1['value'];_0x401df6['change'](()=>{const _0x265635=Array['from'](_0xaec098['getRanges']());for(const _0x42c40d of _0x265635){const _0xe34852=_0x6a2fed?[_0x42c40d]:io(_0x3d232c,_0x42c40d,_0x401df6);for(const _0xe29d3c of _0xe34852)_0x21a047['markInlineFormat'](_0xe29d3c,{'commandName':_0x3d232c,'commandParams':[{'forceValue':_0x6a2fed}]});}});}),_0x21a047['descriptionFactory']['registerDescriptionCallback'](_0x49b439=>{if('formatBlock'!=_0x49b439['type']&&'formatInline'!=_0x49b439['type'])return;const {data:_0x2484c7}=_0x49b439;return _0x2484c7&&_0x2484c7['commandName']==_0x3d232c?_0x2484c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x353d1e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x353d1e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x454bf4{['afterInit'](){const _0x117f65=this['editor'];if(!_0x117f65['plugins']['has']('Style')||!_0x117f65['plugins']['has']('DataSchema'))return;const _0x1c3d4e=_0x117f65['plugins']['get']('TrackChangesEditing'),_0x1d4fd7=_0x117f65['locale'],_0x46e659=_0x117f65['config']['get']('style')||{},_0x31796d=_0x117f65['plugins']['get']('GeneralHtmlSupport'),_0x162eb8=_0x117f65['plugins']['get']('StyleUtils')['normalizeConfig'](_0x117f65['plugins']['get']('DataSchema'),_0x46e659['definitions']);_0x1c3d4e['enableDefaultAttributesIntegration']('style');const _0x3b2a1f=new Set();for(const _0x3c7134 of _0x162eb8['block']){const _0x23b1c5=_0x31796d['getGhsAttributeNameForElement'](_0x3c7134['element']);_0x3b2a1f['add'](_0x23b1c5);}const _0x2c7200=new Set();for(const _0x24c8e1 of _0x162eb8['inline']){const _0x3a1ead=_0x31796d['getGhsAttributeNameForElement'](_0x24c8e1['element']);_0x2c7200['add'](_0x3a1ead);for(const _0x5d0af3 of _0x24c8e1['ghsAttributes'])_0x2c7200['add'](_0x5d0af3);}for(const _0x3d6a4d of _0x3b2a1f)_0x1c3d4e['registerBlockAttribute'](_0x3d6a4d),_0x1c3d4e['descriptionFactory']['registerAttributeLabel'](_0x3d6a4d,o(_0x1d4fd7,'FORMAT_STYLE'));for(const _0xcf28a4 of _0x2c7200)_0x1c3d4e['registerInlineAttribute'](_0xcf28a4),_0x1c3d4e['descriptionFactory']['registerAttributeLabel'](_0xcf28a4,o(_0x1d4fd7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25aff3=this['editor'],_0xf823f8=_0x25aff3['locale'];_0x25aff3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd1ec=>{if('formatBlock'!=_0x2bd1ec['type']&&'formatInline'!=_0x2bd1ec['type'])return;const {data:_0x1dff1b}=_0x2bd1ec;return _0x1dff1b&&'style'===_0x1dff1b['commandName']?_0x1dff1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf823f8,'*Set\x20format:*\x20%0',_0x1dff1b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xf823f8,'*Remove\x20format:*\x20%0',_0x1dff1b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x454bf4{['afterInit'](){const _0x10ce02=this['editor'],_0x3e2bf7=_0x10ce02['model']['document']['selection'];if(!_0x10ce02['plugins']['has']('TableEditing'))return;const _0x36e39f=_0x10ce02['locale'],_0x521f03=_0x10ce02['plugins']['get']('TrackChangesEditing'),_0x164022=_0x10ce02['plugins']['get']('TableUtils');_0x521f03['descriptionFactory']['registerElementLabel']('table',_0x559283=>o(_0x36e39f,'ELEMENT_TABLE',_0x559283)),this['_setupColumnsRowsFixing'](),_0x521f03['enableCommand']('insertTable'),_0x521f03['enableCommand']('selectTableRow'),_0x521f03['enableCommand']('selectTableColumn');for(const _0x3c1913 of['insertTableRowAbove','insertTableRowBelow']){const _0xedf742=_0x10ce02['commands']['get'](_0x3c1913);_0x521f03['enableCommand'](_0x3c1913,_0x21a099=>{_0x10ce02['model']['change'](_0x5177a6=>{_0x21a099();const _0x256833='above'===_0xedf742['order'],_0xbed638=_0x164022['getSelectionAffectedTableCells'](_0x3e2bf7),_0x54c161=_0x164022['getRowIndexes'](_0xbed638),_0xa9800f=_0x256833?_0x54c161['first']-0x1:_0x54c161['last']+0x1,_0x2ce32a=_0xbed638[0x0]['findAncestor']('table'),_0x4fdc23=_0x164022['createTableWalker'](_0x2ce32a,{'startRow':_0xa9800f,'endRow':_0xa9800f}),_0x4b549b=Array['from'](_0x4fdc23)['map'](_0x476809=>_0x5177a6['createRangeOn'](_0x476809['cell']));_0x521f03['markMultiRangeInsertion'](_0x4b549b,'tableRow');});});}for(const _0x56a20d of['insertTableColumnLeft','insertTableColumnRight']){const _0x522cc3=_0x10ce02['commands']['get'](_0x56a20d);_0x521f03['enableCommand'](_0x56a20d,_0x4788d8=>{_0x10ce02['model']['change'](_0x44abec=>{_0x4788d8();const _0x3ef172='left'===_0x522cc3['order'],_0x3ce483=_0x164022['getSelectionAffectedTableCells'](_0x3e2bf7),_0x3b5d7b=_0x164022['getColumnIndexes'](_0x3ce483),_0x205667=_0x3ef172?_0x3b5d7b['first']-0x1:_0x3b5d7b['last']+0x1,_0x7db3d8=_0x3ce483[0x0]['findAncestor']('table'),_0x3def6d=_0x164022['createTableWalker'](_0x7db3d8,{'startRow':0x0,'column':_0x205667,'includeAllSlots':!0x1}),_0x4809c8=Array['from'](_0x3def6d)['map'](_0x4818e6=>_0x44abec['createRangeOn'](_0x4818e6['cell']));_0x521f03['markMultiRangeInsertion'](_0x4809c8,'tableColumn');});});}for(const _0x58de7a of['removeTableRow','removeTableColumn']){const _0x56bf72=_0x58de7a['substr'](0xb),_0x48e495=_0x56bf72['toLowerCase'](),_0x57343b=_0x48e495['substr'](0x0,0x3)+'span',_0x504521='table'+_0x56bf72,_0x57ce91='min'+_0x56bf72,_0x473496='max'+_0x56bf72;_0x521f03['enableCommand'](_0x58de7a,()=>{_0x10ce02['model']['change'](_0x1df4c1=>{const _0xd0f245=_0x164022['getSelectionAffectedTableCells'](_0x3e2bf7),_0x3572c6=_0xd0f245[0x0]['findAncestor']('table');let _0x564a76;if('removeTableRow'==_0x58de7a){const _0x1bd782=_0x164022['getRowIndexes'](_0xd0f245);_0x564a76={'startRow':_0x1bd782['first'],'endRow':_0x1bd782['last'],'includeAllSlots':!0x0};}else{const _0x10053c=_0x164022['getColumnIndexes'](_0xd0f245);_0x564a76={'startColumn':_0x10053c['first'],'endColumn':_0x10053c['last'],'includeAllSlots':!0x0};}const _0x6600f1=_0x164022['createTableWalker'](_0x3572c6,_0x564a76),_0x1f483a=Array['from'](_0x6600f1)['map'](({cell:_0x1ea8dc})=>_0x1ea8dc),_0x2bad9d=Ee(_0x1f483a['filter'](_0x4a8df0=>_0x4a8df0['hasAttribute'](_0x57343b))),_0x270ce3=Ee(_0x1f483a['filter'](_0x478592=>!_0x478592['hasAttribute'](_0x57343b)))['map'](_0x53f468=>_0x1df4c1['createRangeOn'](_0x53f468)),_0x4c9142=_0x521f03['markMultiRangeDeletion'](_0x270ce3,_0x504521);if(_0x4c9142&&('tableRow'==_0x4c9142['subType']||'tableColumn'==_0x4c9142['subType'])){const _0x539267=this['_getSuggestionCoords'](_0x4c9142);for(const _0x1b8fd0 of _0x2bad9d){const _0x32643b=_0x1df4c1['createRangeOn'](_0x1b8fd0),_0x2b13be=_0x164022['getCellLocation'](_0x1b8fd0),_0x439ec8=_0x1b8fd0['getAttribute'](_0x57343b)-0x1,_0x786e3a=_0x539267[_0x57ce91],_0x21c1f0=_0x539267[_0x473496];_0x786e3a<=_0x2b13be[_0x48e495]&&_0x2b13be[_0x48e495]+_0x439ec8<=_0x21c1f0&&_0x4c9142['addRange'](_0x32643b);}}});});}function _0x507ec1(_0x51e4af){const _0x28f9ac=Array['from'](_0x3e2bf7['getRanges']())['map'](_0x4a5b04=>_0xb3bd9b['fromRange'](_0x4a5b04));_0x10ce02['model']['change'](_0x11793c=>{const _0x50bb16=_0x11793c['batch'];_0x51e4af=_0x51e4af['filter'](_0xca42b7=>'$graveyard'!=_0xca42b7['root']['rootName']),_0x11793c['setSelection'](_0x51e4af),_0x10ce02['commands']['get']('removeTableRow')['refresh'](),_0x10ce02['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x10ce02['model']['enqueueChange'](()=>{_0x10ce02['model']['enqueueChange'](_0x50bb16,_0x340efe=>{const _0x435581=_0x28f9ac['filter'](_0x26ceed=>'$graveyard'!=_0x26ceed['root']['rootName']);_0x435581['length']>0x0&&_0x340efe['setSelection'](_0x435581);for(const _0x225d43 of _0x28f9ac)_0x225d43['detach']();});});});}function _0x3943e4(_0x1a082b){_0x10ce02['model']['change'](_0x1b81cd=>{const _0x263758=Array['from'](_0x3e2bf7['getRanges']())['map'](_0x1dbe0a=>_0xb3bd9b['fromRange'](_0x1dbe0a)),_0x122b00=[];for(const _0x37bc6d of _0x1a082b)for(const _0x3d5196 of _0x37bc6d['getItems']({'shallow':!0x0}))_0x122b00['push'](_0x3d5196);for(const _0x4d4083 of _0x122b00)'$graveyard'!=_0x4d4083['root']['rootName']&&(_0x1b81cd['setSelection'](_0x1b81cd['createPositionAt'](_0x4d4083,0x0)),_0x10ce02['commands']['get']('removeTableColumn')['refresh'](),_0x10ce02['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x20fce4=_0x263758['filter'](_0x2ed7c3=>'$graveyard'!=_0x2ed7c3['root']['rootName']);_0x20fce4['length']>0x0&&_0x1b81cd['setSelection'](_0x20fce4);for(const _0x571cd9 of _0x263758)_0x571cd9['detach']();});}function _0x2df4e6(_0x26bb99,_0x49eca5){return _0x49eca5['every'](_0x25942c=>_0x26bb99['some'](_0x4a7733=>_0x4a7733['end']['isEqual'](_0x25942c['start'])||_0x25942c['end']['isEqual'](_0x4a7733['start'])));}function _0x47687b(_0x1c2296,_0x5aa4dc){return _0x1c2296['some'](_0x3d5426=>_0x5aa4dc['some'](_0x39ec05=>_0x3d5426['end']['isTouching'](_0x39ec05['start'])));}_0x10ce02['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f9172,_0x212cd7,_0x2cce63)=>{if(!_0x2cce63['options']['showSuggestionHighlights'])return;const _0x193057=_0x212cd7['item'];if(!_0x193057)return;const _0x435933=_0x2cce63['mapper']['toViewElement'](_0x193057);function _0x42ac6d(_0x40f8da){return Array['isArray'](_0x40f8da)?_0x40f8da:[_0x40f8da];}_0x435933&&'tableCell'===_0x193057['name']&&_0x2c8377(_0x435933,_0x2cce63['writer'],(_0x2cabed,_0xe22f04,_0x1c0789)=>_0x1c0789['addClass'](_0x42ac6d(_0xe22f04['classes']),_0x2cabed),(_0x7e2c97,_0xc445fd,_0x143045)=>_0x143045['removeClass'](_0x42ac6d(_0xc445fd['classes']),_0x7e2c97));},{'priority':'highest'}),_0x521f03['descriptionFactory']['registerDescriptionCallback'](_0x4dd8ec=>{if('insertion'!=_0x4dd8ec['type']&&'deletion'!=_0x4dd8ec['type'])return;const _0x20d508=_0x4dd8ec['getContainedElement']();if(null!=_0x20d508&&_0x20d508['is']('element','table')){if('insertion'==_0x4dd8ec['type']){const _0x13d277=_0x4dd8ec['getItems']()['filter'](_0x27929e=>_0x27929e['is']('$textProxy'))['map'](_0x56c3b5=>_0x56c3b5['data']);if(_0x13d277['length'])return{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13d277['join']('\x20')+'\x22'))};}if('deletion'==_0x4dd8ec['type']){const _0xea56c4=_0x4dd8ec['getItems']()['filter'](_0x13a976=>_0x13a976['is']('$textProxy'))['map'](_0x298772=>_0x298772['data']);if(_0xea56c4['length'])return{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xea56c4['join']('\x20')+'\x22'))};}}}),_0x521f03['descriptionFactory']['registerDescriptionCallback'](_0x2b37f8=>{if('tableRow'==_0x2b37f8['subType']){const _0x12f896=_0x2b37f8['getItems']()['filter'](_0x4d1e7d=>_0x4d1e7d['is']('$textProxy'))['map'](_0x20669f=>_0x20669f['data']),_0x1c993f=this['_getSuggestionCoords'](_0x2b37f8),_0xca9210=_0x1c993f['maxRow']-_0x1c993f['minRow']+0x1;if('insertion'==_0x2b37f8['type'])return _0x12f896['length']?{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xca9210,'\x22'+_0x12f896['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW',_0xca9210))};if('deletion'==_0x2b37f8['type'])return _0x12f896['length']?{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xca9210,'\x22'+_0x12f896['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_ROW',_0xca9210))};}if('tableColumn'==_0x2b37f8['subType']){const _0x1e89fa=_0x2b37f8['getItems']()['filter'](_0x14af4b=>_0x14af4b['is']('$textProxy'))['map'](_0x439a12=>_0x439a12['data']),_0x454053=this['_getSuggestionCoords'](_0x2b37f8),_0x1eab99=_0x454053['maxColumn']-_0x454053['minColumn']+0x1;if('insertion'==_0x2b37f8['type'])return _0x1e89fa['length']?{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1eab99,'\x22'+_0x1e89fa['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36e39f,'*Insert:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN',_0x1eab99))};if('deletion'==_0x2b37f8['type'])return _0x1e89fa['length']?{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1eab99,'\x22'+_0x1e89fa['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36e39f,'*Remove:*\x20%0',o(_0x36e39f,'ELEMENT_TABLE_COLUMN',_0x1eab99))};}}),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x507ec1),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x507ec1),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3943e4),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3943e4),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2df4e6),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2df4e6),_0x521f03['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47687b),_0x521f03['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47687b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x121030=this['editor'],_0x56a77c=_0x121030['model']['document']['selection'];return(_0x22c540,_0x10b10b)=>{_0x121030['model']['change'](_0x586256=>{const {commandName:_0x5a3391,commandParams:_0xfd7c83}=_0x10b10b;let _0x271a23=_0x22c540[0x0]['end']['nodeBefore'];_0xfd7c83&&_0xfd7c83[0x0]&&!0x1===_0xfd7c83[0x0]['forceValue']&&(_0x271a23=_0x22c540[0x0]['start']['nodeAfter']);const _0x1c1067=_0x586256['createRangeIn'](_0x271a23);if('$graveyard'==_0x1c1067['root']['rootName'])return;const _0x2940ba=Array['from'](_0x56a77c['getRanges']())['map'](_0x469002=>_0xb3bd9b['fromRange'](_0x469002));_0x586256['setSelection'](_0x1c1067),_0x121030['commands']['get'](_0x5a3391)['refresh'](),_0xfd7c83['push']({'forceDefaultExecution':!0x0}),_0x121030['execute'](_0x5a3391,..._0xfd7c83);const _0x560a22=_0x2940ba['filter'](_0x118307=>'$graveyard'!=_0x118307['root']['rootName']);_0x560a22['length']>0x0&&_0x586256['setSelection'](_0x560a22);for(const _0x1286b3 of _0x2940ba)_0x1286b3['detach']();});};}['_getCoordsForCells'](_0x244795){const _0x239b54=this['editor']['plugins']['get']('TableUtils');let _0x2bde3a=Number['MAX_SAFE_INTEGER'],_0x376694=Number['MIN_SAFE_INTEGER'],_0xb646e6=Number['MAX_SAFE_INTEGER'],_0x4c7ccf=Number['MIN_SAFE_INTEGER'];for(const _0x1e9d94 of _0x244795){if('$graveyard'==_0x1e9d94['root']['rootName'])continue;const {row:_0x1c2842,column:_0xc1013a}=_0x239b54['getCellLocation'](_0x1e9d94),_0x1a4ec6=_0x1e9d94['hasAttribute']('rowspan')?_0x1e9d94['getAttribute']('rowspan')-0x1:0x0,_0x16bf77=_0x1e9d94['hasAttribute']('colspan')?_0x1e9d94['getAttribute']('colspan')-0x1:0x0;_0x2bde3a=_0x1c2842<_0x2bde3a?_0x1c2842:_0x2bde3a,_0x376694=_0x1c2842+_0x1a4ec6>_0x376694?_0x1c2842+_0x1a4ec6:_0x376694,_0xb646e6=_0xc1013a<_0xb646e6?_0xc1013a:_0xb646e6,_0x4c7ccf=_0xc1013a+_0x16bf77>_0x4c7ccf?_0xc1013a+_0x16bf77:_0x4c7ccf;}return{'minRow':_0x2bde3a,'maxRow':_0x376694,'minColumn':_0xb646e6,'maxColumn':_0x4c7ccf};}['_setupColumnsRowsFixing'](){const _0x398ae3=this['editor'],_0x191da6=_0x398ae3['plugins']['get']('TrackChangesEditing'),_0x55af3a=_0x398ae3['plugins']['get']('TableUtils');_0x398ae3['model']['document']['on']('change:data',()=>{const _0x16a4c9=Array['from'](_0x398ae3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39a4a7,data:_0x145619}of _0x16a4c9){const {group:_0x15dae6,id:_0x1a1c71,subType:_0x2db1fc}=_0x191da6['_splitMarkerName'](_0x39a4a7);if('suggestion'!=_0x15dae6)continue;if(null!=_0x145619['oldRange'])continue;const _0x5bd7e7=_0x191da6['getSuggestion'](_0x1a1c71);this['_tablePostFixingSubtypes']['includes'](_0x2db1fc)&&this['_tableSuggestions']['add'](_0x5bd7e7);}},{'priority':'low'});const _0x5d561d=(_0x235ce4,_0x32477f)=>{let _0x1127eb=!0x1;const _0x55bef6=_0x32477f['createRangeOn'](_0x235ce4),_0x15a141=_0x235ce4['findAncestor']('table'),_0x2cb861=_0x55af3a['getCellLocation'](_0x235ce4);for(const _0x112a81 of this['_tableSuggestions']){const _0x23df2f=_0x112a81['subType'],_0x2bea02=_0x23df2f['startsWith']('tablePaste'),_0x4e5025=_0x23df2f['substr'](_0x2bea02?0xa:0x5),_0x11eb1f=_0x4e5025['toLowerCase'](),_0x3c997a=_0x11eb1f['substr'](0x0,0x3)+'span',_0x341727='min'+_0x4e5025,_0xafe5a='max'+_0x4e5025;if(!_0x112a81['isInContent'])continue;if(_0x15a141!=_0x112a81['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x112a81['isIntersectingWithRange'](_0x55bef6))continue;const _0x288517=_0x235ce4['hasAttribute'](_0x3c997a)?_0x235ce4['getAttribute'](_0x3c997a)-0x1:0x0,_0x5f4462=this['_getSuggestionCoords'](_0x112a81),_0x3948a1=_0x5f4462[_0x341727],_0x171da5=_0x5f4462[_0xafe5a];_0x3948a1<=_0x2cb861[_0x11eb1f]&&_0x2cb861[_0x11eb1f]+_0x288517<=_0x171da5&&(_0x112a81['addRange'](_0x55bef6),_0x1127eb=!0x0);}return _0x1127eb;};_0x398ae3['model']['document']['registerPostFixer'](_0x438d2f=>{let _0x5f0678=!0x1;for(const _0x46061e of _0x398ae3['model']['document']['differ']['getChanges']())if('insert'==_0x46061e['type']){if('tableRow'==_0x46061e['name']){for(const _0x503f4c of _0x46061e['position']['nodeAfter']['getChildren']())_0x5f0678=_0x5f0678||_0x5d561d(_0x503f4c,_0x438d2f);}else'tableCell'==_0x46061e['name']&&(_0x5f0678=_0x5f0678||_0x5d561d(_0x46061e['position']['nodeAfter'],_0x438d2f));}return _0x5f0678;});}['_getSuggestionCoords'](_0x2ba43d){return this['_getCoordsForCells'](_0x2ba43d['getRanges']()['map'](_0x558afc=>_0x558afc['start']['nodeAfter']));}constructor(_0x357470){super(_0x357470),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x582858){return Array['from'](new Set(_0x582858)['values']());}class St extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x23dd8a=this['editor'],_0x3446b6=_0x23dd8a['model']['document']['selection'],_0x2e478e=_0x23dd8a['locale'];if(!_0x23dd8a['plugins']['has']('TableEditing'))return;const _0x2176e3=_0x23dd8a['plugins']['get']('TrackChangesEditing'),_0x4084b8=_0x23dd8a['plugins']['get']('TableUtils'),_0x31a5bf=_0x23dd8a['plugins']['get'](jt);_0x31a5bf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2176e3['enableCommand']('mergeTableCells',()=>{const _0x2b41e3=_0x4084b8['getSelectionAffectedTableCells'](_0x23dd8a['model']['document']['selection']);_0x23dd8a['model']['change'](()=>{_0x2176e3['markMultiRangeBlockFormat'](_0x2b41e3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x23dd8a['commands']['get']('mergeTableCells')['on']('execute',(_0x39edeb,_0x56e26d)=>{_0x23dd8a['commands']['get']('trackChanges')['value']&&(_0x56e26d['length']>0x0&&_0x56e26d[_0x56e26d['length']-0x1]&&_0x56e26d[_0x56e26d['length']-0x1]['forceDefaultExecution']||_0x2176e3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x39edeb['stop']());},{'priority':'highest'});for(const _0x21ee7e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x16ae9c=_0x23dd8a['commands']['get'](_0x21ee7e);_0x2176e3['enableCommand'](_0x21ee7e,()=>{const _0x530cf0=_0x23dd8a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x271504=>_0x271504['is']('element','tableCell')),_0x204c21=_0x16ae9c['value'];_0x23dd8a['model']['change'](()=>{_0x2176e3['markMultiRangeBlockFormat']([_0x530cf0,_0x204c21],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c4dc7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x279638=_0x23dd8a['commands']['get'](_0x3c4dc7);_0x2176e3['enableCommand'](_0x3c4dc7,()=>{const _0x4e98c9=_0x4084b8['getSelectionAffectedTableCells'](_0x23dd8a['model']['document']['selection'])[0x0],_0x4f0997=_0x4e98c9['findAncestor']('table'),{column:_0x5e527a,row:_0x54bac5}=_0x4084b8['getCellLocation'](_0x4e98c9);let _0x31eb1f=[];if('horizontally'==_0x279638['direction']){const _0x4b37db=_0x4084b8['createTableWalker'](_0x4f0997,{'startRow':_0x54bac5,'endRow':_0x54bac5,'includeAllSlots':!0x0});_0x31eb1f=Array['from'](_0x4b37db)['map'](_0xb55282=>_0xb55282['cell']);}else{const _0x2f71d3=_0x4084b8['createTableWalker'](_0x4f0997,{'column':_0x5e527a,'includeAllSlots':!0x0});_0x31eb1f=Array['from'](_0x2f71d3)['map'](_0x1de62c=>_0x1de62c['cell']);}_0x23dd8a['model']['change'](_0x2245fd=>{_0x2176e3['markBlockFormat'](_0x2245fd['createRangeOn'](_0x4e98c9),{'commandName':_0x3c4dc7,'commandParams':[]},_0x31eb1f,_0x3c4dc7);});});}_0x2176e3['descriptionFactory']['registerDescriptionCallback'](_0xa0e198=>{if('formatBlock'!=_0xa0e198['type']&&'formatInline'!=_0xa0e198['type'])return;const {data:_0x1f8813}=_0xa0e198;return _0x1f8813&&'mergeTableCells'==_0x1f8813['commandName']?{'type':'format','content':o(_0x2e478e,'*Merge\x20cells*')}:void 0x0;}),_0x2176e3['descriptionFactory']['registerDescriptionCallback'](_0x53bbb1=>{if('formatBlock'!=_0x53bbb1['type']&&'formatInline'!=_0x53bbb1['type'])return;const {data:_0x5122c4}=_0x53bbb1;return _0x5122c4?'splitTableCellVertically'==_0x5122c4['commandName']?{'type':'format','content':o(_0x2e478e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5122c4['commandName']?{'type':'format','content':o(_0x2e478e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x8118df=_0x31a5bf['_acceptFormatSuggestionCallbackFactory']();for(const _0x458bef of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2176e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x458bef,'accept',_0x8118df);for(const _0x2c7929 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2176e3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c7929,'accept',_0x8118df);_0x2176e3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1283ba=>{_0x23dd8a['model']['change'](_0x1d5026=>{const _0x595255=Array['from'](_0x3446b6['getRanges']())['map'](_0x53c24f=>_0xb3bd9b['fromRange'](_0x53c24f));_0x1d5026['setSelection'](_0x1283ba),_0x23dd8a['commands']['get']('mergeTableCells')['refresh'](),_0x23dd8a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c1038=_0x595255['filter'](_0x21c0eb=>'$graveyard'!=_0x21c0eb['root']['rootName']);_0x3c1038['length']>0x0&&_0x1d5026['setSelection'](_0x3c1038);for(const _0x5012b8 of _0x595255)_0x5012b8['detach']();});});for(const _0x1d6ec0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2cbc3b=_0x23dd8a['commands']['get'](_0x1d6ec0);_0x2cbc3b['on']('set:isEnabled',(_0x3626d9,_0x1fea3e,_0x49a7ca)=>{if(_0x49a7ca){const _0x427162=_0x23dd8a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3155e6=>_0x3155e6['is']('element','tableCell'));this['_areMergableCells'](_0x2cbc3b['value'],_0x427162)||(_0x3626d9['return']=!0x1,_0x3626d9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x280a11=this['editor']['commands']['get']('mergeTableCells'),_0xc6c3b0=this['editor']['plugins']['get']('TableUtils');if(!_0x280a11['isEnabled'])return!0x1;const _0x2fae43=_0xc6c3b0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b563a of _0x2fae43)for(const _0x2fd104 of _0x2fae43)if(_0x2b563a!=_0x2fd104&&!this['_areMergableCells'](_0x2b563a,_0x2fd104))return!0x1;return!0x0;}['_areMergableCells'](_0x5d01af,_0x15739a){const _0x58a979=this['editor']['plugins']['get']('TrackChangesEditing'),_0x320da4=this['editor']['model']['createRangeOn'](_0x5d01af),_0x41e1ba=this['editor']['model']['createRangeOn'](_0x15739a),_0x15083e=new Set(),_0x27f0b7=new Set();for(const _0x1bdbee of _0x58a979['getSuggestions']())if(('insertion'==_0x1bdbee['type']||'deletion'==_0x1bdbee['type']||'mergeTableCells'==_0x1bdbee['subType'])&&_0x1bdbee['isInContent']){for(const _0x587474 of _0x1bdbee['getRanges']())_0x587474['containsRange'](_0x320da4,!0x0)&&_0x15083e['add'](_0x1bdbee['type']+':'+_0x1bdbee['author']['id']),_0x587474['containsRange'](_0x41e1ba,!0x0)&&_0x27f0b7['add'](_0x1bdbee['type']+':'+_0x1bdbee['author']['id']);}if(_0x15083e['size']!=_0x27f0b7['size'])return!0x1;for(const _0x28fd1d of _0x15083e)if(!_0x27f0b7['has'](_0x28fd1d))return!0x1;return!0x0;}}class At extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x2c275c=this['editor'];if(!_0x2c275c['plugins']['has']('TableEditing'))return;const _0x527efd=_0x2c275c['locale'],_0x1b8095=_0x2c275c['plugins']['get']('TrackChangesEditing');_0x1b8095['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b8095['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b8095['registerBlockAttribute']('headingRows'),_0x1b8095['registerBlockAttribute']('headingColumns'),_0x1b8095['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x527efd,'FORMAT_HEADER_ROW')),_0x1b8095['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x527efd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x431153=this['editor']['plugins']['get']('TrackChangesEditing'),_0x115a1c=this['editor']['plugins']['get']('TableUtils'),_0x3048c2=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3c90c3({showActiveMarker:_0x5854e2=!0x0,setDataAttribute:_0x4ad46d=!0x0}={}){return(_0x348c48,_0x291c2d,_0x55369f)=>{const {type:_0x4f81d1,id:_0x1f49ef}=_0x431153['_splitMarkerName'](_0x291c2d['markerName']),_0x2e8cb7=_0x431153['getSuggestion'](_0x1f49ef),_0x31f5aa=_0x2e8cb7['data'];if('formatBlock'!=_0x2e8cb7['type']||!_0x31f5aa||'setTableColumnHeader'!=_0x31f5aa['commandName'])return;if(_0x291c2d['item'])return void _0x348c48['stop']();if(!_0x55369f['consumable']['consume'](_0x291c2d['markerRange'],_0x348c48['name']))return;const _0x503e20=_0x291c2d['markerRange']['start']['nodeAfter'],_0xc24759=_0x291c2d['markerRange']['end']['nodeBefore'],_0x1e8b5e=_0x503e20['parent']['parent'],{column:_0x3bc310}=_0x115a1c['getCellLocation'](_0x503e20),{column:_0x17d3c5}=_0x115a1c['getCellLocation'](_0xc24759);for(let _0x29b29c=_0x3bc310;_0x29b29c<=_0x17d3c5;_0x29b29c++){const _0xdc12c6=_0x115a1c['createTableWalker'](_0x1e8b5e,{'column':_0x29b29c,'includeAllSlots':!0x1});for(const _0x503408 of _0xdc12c6){const _0x3bc1c1=_0x503408['cell'],_0x117948=_0x55369f['mapper']['toViewElement'](_0x3bc1c1);_0x55369f['writer']['addClass']('ck-suggestion-marker-'+_0x4f81d1,_0x117948),_0x4ad46d&&_0x55369f['writer']['setAttribute']('data-suggestion',_0x1f49ef,_0x117948),_0x55369f['mapper']['bindElementToMarker'](_0x117948,_0x291c2d['markerName']),_0x5854e2&&(_0x431153['activeMarkers']['includes'](_0x291c2d['markerName'])?_0x55369f['writer']['addClass']('ck-suggestion-marker--active',_0x117948):_0x55369f['writer']['removeClass']('ck-suggestion-marker--active',_0x117948));}}};}_0x431153['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3048c2),_0x431153['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3048c2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c90c3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xdedba6,_0x52b06e,_0x149312)=>{_0x149312['options']['showSuggestionHighlights']&&_0x3c90c3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xdedba6,_0x52b06e,_0x149312);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x106c38,_0x3b8904,_0x42e988)=>{const {type:_0x140298,id:_0x260ed1}=_0x431153['_splitMarkerName'](_0x3b8904['markerName']),_0x57d4b6=_0x431153['getSuggestion'](_0x260ed1),_0x590f47=_0x57d4b6['data'];if('formatBlock'!=_0x57d4b6['type']||!_0x590f47||'setTableColumnHeader'!=_0x590f47['commandName'])return;const _0xf54e9=_0x42e988['mapper']['markerNameToElements'](_0x3b8904['markerName']);if(_0xf54e9){for(const _0x2b83a5 of _0xf54e9)_0x42e988['writer']['removeClass']('ck-suggestion-marker-'+_0x140298,_0x2b83a5),_0x42e988['writer']['removeClass']('ck-suggestion-marker--active',_0x2b83a5),_0x42e988['writer']['removeAttribute']('data-suggestion',_0x2b83a5),_0x42e988['mapper']['unbindElementFromMarkerName'](_0x2b83a5,_0x3b8904['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e867f=this['editor'],_0x2085d8=_0x4e867f['locale'];function _0x68a677(_0x2c7ef7){return{'type':'format','content':o(_0x2085d8,'*Format:*\x20%0',_0x2c7ef7)};}_0x4e867f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d93c4=>{if('formatBlock'!=_0x1d93c4['type'])return;const {data:_0x40b998}=_0x1d93c4;if(_0x40b998){if('setTableRowHeader'==_0x40b998['commandName']){const _0x3e7c1d=_0x40b998['commandParams'][0x0]['forceValue'];return _0x68a677(o(_0x2085d8,_0x3e7c1d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x40b998['commandName']){const _0x1c927f=_0x40b998['commandParams'][0x0]['forceValue'];return _0x68a677(o(_0x2085d8,_0x1c927f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x11d171=>[_0x11d171,null]));class It extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x43e2f8=this['editor'];if(!_0x43e2f8['plugins']['has']('TableClipboard'))return;const _0x54d72f=_0x43e2f8['plugins']['get']('TrackChangesEditing'),_0x631e65=_0x43e2f8['plugins']['get']('TableUtils'),_0x38d829=_0x43e2f8['plugins']['get'](jt),_0x328f30=_0x43e2f8['plugins']['get']('TableClipboard');_0x38d829['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43e2f8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43e2f8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x49e2bf=null;_0x43e2f8['model']['on']('insertContent',(_0x192a3b,_0x2cccf4)=>{const [_0x14e248,_0x380b73]=_0x2cccf4,_0x2c6c5b=_0x2cccf4[_0x2cccf4['length']-0x1];_0x2c6c5b&&_0x2c6c5b['forceDefaultExecution']||_0x54d72f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x29e4c5,_0x3dafb8,_0x5530db,_0x32b676,_0x39449b){if(_0x3dafb8&&!_0x3dafb8['is']('documentSelection'))return!0x1;const _0x49728c=_0x39449b['getTableIfOnlyTableInContent'](_0x29e4c5,_0x5530db);if(!_0x49728c||!he(_0x49728c,void 0x0,_0x32b676))return!0x1;const _0x537d5a=_0x32b676['getSelectionAffectedTableCells'](_0x5530db['document']['selection']);if(!_0x537d5a['length'])return!0x1;const _0x27a59d=_0x537d5a[0x0]['findAncestor']('table'),_0x3677db=_0x32b676['getRowIndexes'](_0x537d5a),_0x2ed2c6=_0x32b676['getColumnIndexes'](_0x537d5a),_0x409442={'startRow':_0x3677db['first'],'endRow':_0x3677db['last'],'startColumn':_0x2ed2c6['first'],'endColumn':_0x2ed2c6['last']};return 0x1==_0x537d5a['length']&&(_0x409442['endRow']+=_0x32b676['getRows'](_0x49728c)-0x1,_0x409442['endColumn']+=_0x32b676['getColumns'](_0x49728c)-0x1),he(_0x27a59d,_0x409442,_0x32b676);}(_0x14e248,_0x380b73,_0x43e2f8['model'],_0x631e65,_0x328f30)&&(_0x192a3b['stop'](),_0x49e2bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43e2f8['model']['change'](()=>{_0x43e2f8['model']['insertContent'](_0x2cccf4[0x0],_0x2cccf4[0x1],_0x2cccf4[0x2],{'forceDefaultExecution':!0x0});const _0x30bf7e=_0x278a82(),{rowInsertionRanges:_0x3ac1f0,columnInsertionRanges:_0x268595,insertionRanges:_0x72d08b,deletionRanges:_0x2cca8c,cells:_0x198e17}=_0x49e2bf;_0x3ac1f0['length']&&_0x54d72f['markMultiRangeInsertion'](_0x3ac1f0,'tablePasteRow',{'tablePasteChainId':_0x30bf7e}),_0x268595['length']&&_0x54d72f['markMultiRangeInsertion'](_0x268595,'tablePasteColumn',{'tablePasteChainId':_0x30bf7e}),_0x72d08b['length']&&(_0x54d72f['markMultiRangeInsertion'](_0x72d08b,'tablePaste',{'tablePasteChainId':_0x30bf7e,'skipNestingCheck':!0x0}),_0x72d08b['forEach'](_0x17fbb7=>{var _0xfc1172;return null===(_0xfc1172=_0x17fbb7['detach'])||void 0x0===_0xfc1172?void 0x0:_0xfc1172['call'](_0x17fbb7);})),_0x2cca8c['length']&&(_0x54d72f['markMultiRangeDeletion'](_0x2cca8c,'tablePaste',{'tablePasteChainId':_0x30bf7e,'skipNestingCheck':!0x0}),_0x2cca8c['forEach'](_0x2a00c4=>{var _0x40c3ed;return null===(_0x40c3ed=_0x2a00c4['detach'])||void 0x0===_0x40c3ed?void 0x0:_0x40c3ed['call'](_0x2a00c4);}));const _0x16990c=_0x54d72f['markMultiRangeBlockFormat'](_0x198e17['map'](({element:_0x22f594})=>_0x22f594),{'formatGroupId':_0x278a82()},[],'tablePasteCell',{'tablePasteChainId':_0x30bf7e});if(_0x16990c){const _0x1d7f21=_0x16990c['getMarkers'](),_0x47cf07=[];for(const {element:_0x477197,attributes:_0x206808}of _0x198e17){if(!_0x206808)continue;const _0x4b40ce=_0x43e2f8['model']['createRangeOn'](_0x477197),_0x1d0643=_0x1d7f21['find'](_0x5ec346=>_0x5ec346['getRange']()['isEqual'](_0x4b40ce));_0x1d0643&&_0x47cf07['push']([_0x1d0643['name'],_0x206808]);}_0x47cf07['length']&&_0x16990c['setAttribute']('markerAttributes',Object['fromEntries'](_0x47cf07));}_0x49e2bf=null;}));},{'priority':_0x65f0b9['high']+0xa}),_0x43e2f8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3dec9b,_0x54d6b2)=>{const [_0x7cc2db,_0xb94f29,,_0x175274]=_0x54d6b2;if(!_0x49e2bf)return;_0x3dec9b['stop']();const _0x48abe8=_0x7cc2db['cell'],_0x243a13=_0xb94f29,_0x4eb465=Pe(_0x48abe8),_0x4ad4bb=Pe(_0x243a13);_0x3dec9b['return']=_0x48abe8;let _0x48a153=null,_0x15eb32=null;if(_0x4ad4bb||_0x4eb465){if(_0x4eb465&&!_0x4ad4bb){_0x175274['remove'](_0x48abe8['getChild'](0x0));for(const _0x2b82bc of Array['from'](_0x243a13['getChildren']()))_0x175274['insert'](_0x2b82bc,_0x48abe8,'end');const _0x5c5526=_0x49e2bf['rowInsertionIndexes']['includes'](_0x7cc2db['row']),_0x4bed96=_0x49e2bf['columnInsertionIndexes']['includes'](_0x7cc2db['column']);_0x5c5526||_0x4bed96||(_0x48a153=_0xb3bd9b['fromRange'](_0x175274['createRangeIn'](_0x48abe8)));}else _0x4ad4bb&&!_0x4eb465&&(_0x15eb32=_0x175274['createRangeIn'](_0x48abe8));}else{const _0xcbf377=_0x175274['createElement']('tableCellSuggestion'),_0x241fdc=_0x175274['createElement']('tableCellSuggestion');_0x175274['wrap'](_0x175274['createRangeIn'](_0x48abe8),_0x241fdc),_0x175274['insert'](_0xcbf377,_0x48abe8,0x0);for(const _0x4c681e of Array['from'](_0x243a13['getChildren']()))_0x175274['insert'](_0x4c681e,_0xcbf377,'end');_0x48a153=_0xb3bd9b['fromRange'](_0x175274['createRangeOn'](_0xcbf377)),_0x15eb32=_0xb3bd9b['fromRange'](_0x175274['createRangeOn'](_0x241fdc));}const _0x57b38a=Array['from'](_0x243a13['getAttributes']())['filter'](([_0x5c1b51])=>ge['includes'](_0x5c1b51));_0x49e2bf['cells']['push']({'element':_0x48abe8,'attributes':_0x57b38a['length']?Object['fromEntries'](_0x57b38a):null}),_0x48a153&&_0x49e2bf['insertionRanges']['push'](_0x48a153),_0x15eb32&&_0x49e2bf['deletionRanges']['push'](_0x15eb32);},{'priority':'high'}),_0x631e65['on']('insertColumns',(_0x388062,_0x4682c1)=>{const [_0x446edb,_0x4e3638={}]=_0x4682c1;if(!_0x49e2bf)return;const _0x50ff23=_0x4e3638['at']||0x0,_0x2eccee=_0x4e3638['columns']||0x1;_0x49e2bf['columnInsertionIndexes']=new Array(_0x2eccee)['fill'](_0x50ff23)['map']((_0x2e7fab,_0x53640c)=>_0x2e7fab+_0x53640c);for(const {cell:_0x5df47f}of _0x631e65['createTableWalker'](_0x446edb,{'startColumn':_0x50ff23,'endColumn':_0x50ff23+_0x2eccee-0x1}))_0x49e2bf['columnInsertionRanges']['push'](_0x43e2f8['model']['createRangeOn'](_0x5df47f));},{'priority':'low'}),_0x631e65['on']('insertRows',(_0xf9e1d0,_0x2226be)=>{const [_0x5ba683,_0x395987={}]=_0x2226be;if(!_0x49e2bf)return;const _0x418774=_0x395987['at']||0x0,_0x4cc14c=_0x395987['rows']||0x1;_0x49e2bf['rowInsertionIndexes']=new Array(_0x4cc14c)['fill'](_0x418774)['map']((_0x3641a6,_0x5f2b47)=>_0x3641a6+_0x5f2b47);for(const {cell:_0x1766b7}of _0x631e65['createTableWalker'](_0x5ba683,{'startRow':_0x418774,'endRow':_0x418774+_0x4cc14c-0x1}))_0x49e2bf['rowInsertionRanges']['push'](_0x43e2f8['model']['createRangeOn'](_0x1766b7));},{'priority':'low'}),_0x54d72f['descriptionFactory']['registerDescriptionCallback'](_0x15c31c=>{if(_0x15c31c['subType']&&_0x15c31c['subType']['startsWith']('tablePaste'))return _0x15c31c['previous']?{}:{'type':'insertion','content':o(_0x43e2f8['locale'],'*Replace\x20table\x20cells*')};});const _0x1a173d=()=>!0x1;for(const _0x15d8c1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x54d72f['_suggestionFactory']['registerCustomCallback']('insertion',_0x15d8c1,'join',_0x1a173d),_0x54d72f['_suggestionFactory']['registerCustomCallback']('deletion',_0x15d8c1,'join',_0x1a173d),_0x54d72f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15d8c1,'join',_0x1a173d);_0x54d72f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a173d),_0x54d72f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4da073,_0x14b83f,_0x341eda)=>{const _0x38c81a=_0x4da073['map'](_0x75eee6=>_0x75eee6['getContainedElement']())['filter'](_0x378a34=>_0x378a34),_0xc8552b=new Map(_0x38c81a['map'](_0x7006c1=>[_0x7006c1,null]));if(_0x49e2bf){for(const {element:_0x3fdce3,attributes:_0x2da92e}of _0x49e2bf['cells'])_0x2da92e&&_0xc8552b['set'](_0x3fdce3,_0x2da92e);}else{if(_0x341eda&&_0x341eda['markerAttributes'])for(const [_0x49e86c,_0x4d81eb]of Object['entries'](_0x341eda['markerAttributes'])){const _0x54a288=_0x43e2f8['model']['markers']['get'](_0x49e86c),_0xe8d6fb=_0x54a288?_0x54a288['getRange']()['getContainedElement']():null;_0xe8d6fb&&_0xc8552b['set'](_0xe8d6fb,_0x4d81eb);}}_0x43e2f8['model']['change'](_0x1b5859=>{for(const [_0x4053a3,_0x11b543]of _0xc8552b)_0x1b5859['setAttributes']({...Ce,..._0x11b543},_0x4053a3);});});const _0x1156d5=(_0x7b3abc,_0x2db128)=>{_0x54d72f['_suggestionFactory']['registerCustomCallback'](_0x7b3abc,'tablePaste',_0x2db128,(_0x207523,_0x3330cd,_0x5e4df2)=>{_0x43e2f8['model']['change'](_0x7513d5=>{const _0x2c7e4e=[];for(const _0x1e7eb1 of _0x207523){const _0x136675=_0x1e7eb1['start']['nodeAfter'];_0x136675['is']('element','tableCellSuggestion')&&_0x2c7e4e['push'](_0x136675);}_0x54d72f['_suggestionFactory']['getSuggestionCallback'](_0x7b3abc,null,_0x2db128)(_0x207523,_0x3330cd,_0x5e4df2);for(const _0x4c30e3 of _0x2c7e4e)'$graveyard'!=_0x4c30e3['root']['rootName']&&_0x7513d5['unwrap'](_0x4c30e3);});});};_0x1156d5('insertion','accept'),_0x1156d5('insertion','discard'),_0x1156d5('deletion','accept'),_0x1156d5('deletion','discard'),_0x54d72f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x171aa0=>{const _0x19d139=_0x171aa0['map'](_0x536694=>_0x536694['getContainedElement']()),_0x50267a=_0x19d139[0x0]['findAncestor']('table'),{minRow:_0x8949e,maxRow:_0x9e847f}=_0x38d829['_getCoordsForCells'](_0x19d139);_0x631e65['removeRows'](_0x50267a,{'at':_0x8949e,'rows':_0x9e847f-_0x8949e+0x1});}),_0x54d72f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40e38a=>{const _0x17499f=_0x40e38a['map'](_0x4822d2=>_0x4822d2['getContainedElement']()),_0x4ba655=_0x17499f[0x0]['findAncestor']('table'),{minColumn:_0x7af178,maxColumn:_0x58ec39}=_0x38d829['_getCoordsForCells'](_0x17499f);_0x631e65['removeColumns'](_0x4ba655,{'at':_0x7af178,'columns':_0x58ec39-_0x7af178+0x1});});const _0x45bf44=(_0x472495,_0x24e75f)=>{if(!_0x24e75f['subType']||!_0x24e75f['subType']['startsWith']('tablePaste'))return;const _0x3dcbea=_0x24e75f['attributes']['tablePasteChainId'],_0x215734=_0x54d72f['getSuggestions']()['filter'](_0xe7ad8=>_0xe7ad8['isInContent']&&_0xe7ad8['attributes']&&_0xe7ad8['attributes']['tablePasteChainId']==_0x3dcbea);_0x215734['length']&&_0x24e75f['getAllAdjacentSuggestions']()['length']!=_0x215734['length']&&_0x215734['reduce']((_0x5fa66a,_0x24dce7)=>(_0x5fa66a['next']=_0x24dce7,_0x24dce7['previous']=_0x5fa66a,_0x24dce7));};function _0x35c650(_0xc3ace,_0x6568c7=!0x0){const {id:_0x4a9060}=_0x54d72f['_splitMarkerName'](_0xc3ace['markerName']),_0x483779=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10fb67=_0x54d72f['activeMarkers']['includes'](_0xc3ace['markerName']);return _0x10fb67&&_0x483779['push']('ck-suggestion-marker--active'),{'classes':_0x483779,'attributes':{'data-suggestion':_0x4a9060},'priority':_0x10fb67&&_0x6568c7?0xbc2:0xbb8};}_0x54d72f['on']('suggestionLoaded',_0x45bf44,{'priority':'high'}),_0x54d72f['on']('suggestionUnloaded',_0x45bf44,{'priority':'high'}),_0x43e2f8['model']['document']['registerPostFixer'](()=>{let _0x5d9c9a=!0x1;const _0x58ec19=Array['from'](_0x43e2f8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b9844,data:_0x5e1b60}of _0x58ec19){const {group:_0x3e9382,type:_0x4e4291,id:_0x38a6c2}=_0x54d72f['_splitMarkerName'](_0x4b9844);if('suggestion'!=_0x3e9382||'deletion'!=_0x4e4291||_0x5e1b60['oldRange'])continue;if(!_0x54d72f['hasSuggestion'](_0x38a6c2))continue;const _0x34eaf6=_0x54d72f['getSuggestion'](_0x38a6c2)['getRanges'](),_0x4df4cb=_0x43e2f8['plugins']['get']('Users')['me'];for(const _0x2e273a of _0x54d72f['getSuggestions']()){if(!_0x2e273a['isInContent']||_0x2e273a['author']!=_0x4df4cb)continue;if('formatBlock'!=_0x2e273a['type']||'tablePasteCell'!=_0x2e273a['subType'])continue;if(_0x2e273a['getRanges']()['every'](_0x168780=>_0x34eaf6['some'](_0x307b80=>_0x307b80['containsRange'](_0x168780,!0x0)))){for(const _0x3622cc of _0x2e273a['getAllAdjacentSuggestions']())_0x3622cc['isInContent']&&(_0x3622cc['discard'](),_0x5d9c9a=!0x0);}}}return _0x5d9c9a;}),_0x43e2f8['model']['document']['registerPostFixer'](_0x168ee1=>{const _0x40cc90=_0x43e2f8['commands']['get']('redo');if(!_0x40cc90||!_0x40cc90['_createdBatches']['has'](_0x168ee1['batch']))return!0x1;let _0x4af22c=!0x1;const _0x24f966=_0x43e2f8['plugins']['get']('Users')['me'],_0x3fc7af=_0x43e2f8['model']['document']['differ']['getChanges'](),_0x32dfad=Array['from'](_0x43e2f8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x119b0c,data:_0x434e35})=>{const {group:_0xf2cfe5,subType:_0xff5d59,authorId:_0x539ef6}=_0x54d72f['_splitMarkerName'](_0x119b0c);return'suggestion'==_0xf2cfe5&&'tablePaste'==_0xff5d59&&_0x539ef6==_0x24f966['id']&&!_0x434e35['oldRange'];});for(const _0x27006d of _0x3fc7af){if('insert'!=_0x27006d['type']||'tableCellSuggestion'!=_0x27006d['name']||0x1!=_0x27006d['length'])continue;const _0x941865=_0x168ee1['createRange'](_0x27006d['position'],_0x27006d['position']['getShiftedBy'](0x1));if(!_0x32dfad['find'](({data:_0x1576da})=>_0x1576da['newRange']['isEqual'](_0x941865))){for(const {name:_0x532f6e,data:_0x5c4553}of _0x32dfad)if(_0x941865['containsRange'](_0x5c4553['newRange'])){_0x168ee1['updateMarker'](_0x532f6e,{'range':_0x941865}),_0x4af22c=!0x0;break;}}}return _0x4af22c;}),_0x43e2f8['model']['document']['registerPostFixer'](_0x198598=>{let _0x62a21d=!0x1;const _0x11d762=_0x43e2f8['plugins']['get']('Users')['me'],_0x17dfd9=_0x54d72f['getSuggestions']()['filter'](_0x11271d=>_0x11271d['isInContent']&&_0x11271d['author']==_0x11d762),_0x4483a1=new Set(),_0x31f5a2=new Set();for(const _0x3f6e77 of _0x17dfd9)if('tablePaste'==_0x3f6e77['subType'])for(const _0x3ed99 of _0x3f6e77['getMarkers']()){const _0x15da5e=_0x3ed99['getRange']()['getContainedElement']();if(_0x15da5e){if(_0x15da5e['is']('element','tableCellSuggestion')&&Pe(_0x15da5e)){_0x3f6e77['removeMarker'](_0x3ed99['name']),_0x4483a1['add'](_0x15da5e),_0x62a21d=!0x0;const _0x598b5c=_0x15da5e['nextSibling'],_0x43c145=_0x15da5e['previousSibling'],_0x4c3e21=_0x598b5c&&_0x598b5c['is']('element','tableCellSuggestion'),_0x55bf7c=_0x43c145&&_0x43c145['is']('element','tableCellSuggestion');_0x4c3e21&&!_0x4483a1['has'](_0x598b5c)&&_0x31f5a2['add'](_0x598b5c),_0x55bf7c&&!_0x4483a1['has'](_0x43c145)&&_0x31f5a2['add'](_0x43c145);}else _0x15da5e['is']('element','paragraph')&&_0x15da5e['isEmpty']&&(_0x3f6e77['removeMarker'](_0x3ed99['name']),_0x62a21d=!0x0);}}else{if('tablePasteCell'==_0x3f6e77['subType']){if(!_0x3f6e77['attributes']||!_0x3f6e77['attributes']['tablePasteChainId'])continue;const _0x4c90ed=_0x3f6e77['attributes']['markerAttributes'];if(_0x4c90ed&&Object['keys'](_0x4c90ed)['length'])continue;const _0x181749=_0x3f6e77['attributes']['tablePasteChainId'];let _0xbfb856=!0x0,_0x44d4f1=!0x0;for(const _0x4d2c83 of _0x17dfd9)if(_0x4d2c83['subType']&&_0x4d2c83['subType']['startsWith']('tablePaste')){if(!_0x4d2c83['attributes']['tablePasteChainId']){_0x44d4f1=!0x1;break;}if(_0x4d2c83['id']!=_0x3f6e77['id']&&_0x4d2c83['attributes']['tablePasteChainId']==_0x181749){_0xbfb856=!0x1;break;}}_0x44d4f1&&_0xbfb856&&(_0x3f6e77['removeMarkers'](),_0x62a21d=!0x0);}}for(const _0x3833f0 of _0x4483a1)_0x198598['remove'](_0x3833f0);for(const _0x468ccb of _0x31f5a2)_0x198598['unwrap'](_0x468ccb);return _0x62a21d;}),_0x43e2f8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x423175,_0x491201)=>_0x35c650(_0x423175),'converterPriority':'high'}),_0x43e2f8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31801c,_0x1e90b2)=>_0x1e90b2['options']['showSuggestionHighlights']?_0x35c650(_0x31801c,!0x1):null,'converterPriority':'high'});const _0x16d19a=_0x43e2f8['editing']['view'];this['listenTo'](_0x16d19a['document'],'clipboardOutput',(_0x787499,_0x4d31c1)=>{const _0x195fac=[];for(const _0x14d00c of _0x16d19a['createRangeIn'](_0x4d31c1['content'])['getItems']())_0x14d00c['is']('element','suggestion-td')&&_0x195fac['push'](_0x14d00c);_0x16d19a['change'](_0x5bc128=>{for(const _0x59c931 of _0x195fac)_0x5bc128['move'](_0x5bc128['createRangeIn'](_0x59c931),_0x5bc128['createPositionBefore'](_0x59c931)),_0x5bc128['remove'](_0x59c931);});});}}function Pe(_0x499fff){if(_0x499fff['isEmpty'])return!0x0;const _0x3477c4=_0x499fff['getChild'](0x0);return _0x3477c4['is']('element','paragraph')&&_0x3477c4['isEmpty'];}function he(_0x525a96,_0x5e5668={},_0x302040){for(const {isAnchor:_0x341ce1,cellHeight:_0x225a3f,cellWidth:_0x567442}of _0x302040['createTableWalker'](_0x525a96,{'includeAllSlots':!0x0,..._0x5e5668}))if(!_0x341ce1||0x1!=_0x225a3f||0x1!=_0x567442)return!0x1;return!0x0;}class vt extends _0x454bf4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xfc64a0=this['editor']['plugins']['get']('TrackChangesEditing');_0xfc64a0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xfc64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xfc64a0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xfc64a0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xfc64a0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xfc64a0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f4dee,_0x5e00e3){const _0x2c4388=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28e08d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x223a77=_0x5e00e3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xfcc97a=_0x28e08d['getColumnGroupElement'](_0x223a77);let _0x5dcaf5=_0xfcc97a?_0x28e08d['getTableColumnsWidths'](_0xfcc97a):null,_0x2c3072=_0x223a77['getAttribute']('tableWidth')||null;const _0x363626=_0x5e00e3['tableWidth']||_0x2c3072,_0x5b07e4=_0x5e00e3['columnWidths']||_0x5dcaf5,_0x2278c5=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e1fe8 of _0x2c4388['getSuggestions']()){const _0x5b13c2=_0x4e1fe8['getContainedElement']();if('resizeTable'===_0x4e1fe8['subType']&&_0x5b13c2===_0x223a77){_0x4e1fe8['author']!==_0x2278c5&&_0x4e1fe8['discard']();const _0x3137e3=_0x4e1fe8['data']['commandParams'];_0x2c3072=_0x3137e3[0x0]['tableWidth'],_0x5dcaf5=_0x3137e3[0x0]['columnWidths'];break;}}_0x2f4dee({'table':_0x223a77,'tableWidth':_0x363626,'columnWidths':_0x5b07e4}),_0x2c4388['markBlockFormat'](_0x223a77,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c3072,'columnWidths':_0x5dcaf5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x48038e){if('formatBlock'!=_0x48038e['type']&&'formatInline'!=_0x48038e['type'])return;const {data:_0x474a84}=_0x48038e;if(_0x474a84&&'resizeTable'===_0x474a84['formatGroupId']){const _0x6c0d94='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6c0d94)};}}}class _t extends _0x454bf4{['afterInit'](){const _0x86eed0=this['editor'];_0x86eed0['plugins']['has']('Template')&&_0x86eed0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x454bf4{['afterInit'](){const _0x209e1d=this['editor'];if(!_0x209e1d['commands']['get']('insertTableOfContents'))return;_0x209e1d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x336803=_0x209e1d['plugins']['get']('TrackChangesEditing'),_0x49000a=_0x209e1d['locale'];_0x336803['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2773e5=>o(_0x49000a,'ELEMENT_TABLE_OF_CONTENTS',_0x2773e5));}}class Dt extends _0x454bf4{['afterInit'](){const _0x56bb17=this['editor'];if(!_0x56bb17['plugins']['has']('Title'))return;const _0x2e5893=_0x56bb17['plugins']['get']('TrackChangesEditing');_0x2e5893['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56bb17['locale'],'ELEMENT_TITLE')),_0x56bb17['model']['document']['registerPostFixer'](_0x2d2b2b=>{let _0x593839=!0x1;const _0x37db66=Array['from'](_0x56bb17['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x546cdd,data:_0x5693cf}of _0x37db66){const {group:_0x32f8c1}=_0x2e5893['_splitMarkerName'](_0x546cdd);if('suggestion'!==_0x32f8c1||!_0x5693cf['newRange'])continue;const _0x33b5d1=_0x5693cf['newRange'],_0x2f38ce=_0x33b5d1['end']['nodeBefore'];if(!_0x2f38ce||!_0x2f38ce['is']('element','title-content'))continue;if(!_0x33b5d1['start']['isTouching'](_0x33b5d1['end']))continue;const _0x49fe7e=_0x56bb17['model']['schema']['getNearestSelectionRange'](_0x33b5d1['end'],'forward');if(_0x49fe7e&&_0x49fe7e['isCollapsed']){const _0x23d76f=_0x2d2b2b['createRange'](_0x33b5d1['start'],_0x49fe7e['start']);_0x23d76f['isEqual'](_0x33b5d1)||(_0x2d2b2b['updateMarker'](_0x546cdd,{'range':_0x23d76f}),_0x593839=!0x0);}_0x593839||(_0x2d2b2b['removeMarker'](_0x546cdd),_0x593839=!0x0);}return _0x593839;});}}class Nt extends _0x454bf4{['afterInit'](){const _0x143816=this['editor'],_0x2aa432=_0x143816['plugins']['get']('TrackChangesEditing');_0x143816['plugins']['has']('UndoEditing')&&(_0x2aa432['enableCommand']('undo'),_0x2aa432['enableCommand']('redo'));}}class Mt extends _0x454bf4{static get['requires'](){return[jt];}['afterInit'](){const _0x3d1f04=this['editor'];if(!_0x3d1f04['plugins']['has']('TableCaptionEditing'))return;_0x3d1f04['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x454bf4{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x3eb7be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x114482 of this['tableProperties'])_0x3eb7be['enableCommand'](_0x114482,(_0x1e4b95,_0x49e7ce)=>{const _0x96e664=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x114482,[_0x96e664],this['tableProperties'],'tableProperties',_0x1e4b95,_0x49e7ce);});_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3eb7be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d21ab,_0x5ba1bf)=>this['handleDiscardAction'](this['tableProperties'],_0x3d21ab,_0x5ba1bf)),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3aec07 of this['tableCellProperties'])_0x3eb7be['enableCommand'](_0x3aec07,(_0x3c5912,_0x4962c0)=>{const _0x10e9fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3aec07,_0x10e9fd,this['tableCellProperties'],'tableCellProperties',_0x3c5912,_0x4962c0);});_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3eb7be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34037e,_0x22b2f9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34037e,_0x22b2f9)),_0x3eb7be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3eb7be['descriptionFactory']['registerDescriptionCallback'](_0x4a1f7f=>this['handleSuggestionDescription'](_0x4a1f7f));}['_handlePropertyChange'](_0x193022,_0x5a8c11,_0x11e92e,_0xbc81c6,_0x3fae69,_0x494d31){const _0x154698=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x494d31['batch'],()=>{for(const _0x3848b7 of _0x5a8c11){if(this['_getSuggestion'](_0x3848b7,_0xbc81c6))_0x3fae69(_0x494d31);else{const _0x100021={};for(const _0x478de3 of _0x11e92e){const _0x25f25c=_0x3848b7['getAttribute'](_0x478de3);void 0x0!==_0x25f25c&&(_0x100021[_0x478de3]=_0x25f25c);}_0x3fae69(_0x494d31),_0x154698['markBlockFormat'](_0x3848b7,{'commandParams':[_0x100021]},[],_0xbc81c6);}}});}['handleDiscardAction'](_0x244fa9,_0x3ce18d,_0x50c8b7){const _0x20ba72=_0x3ce18d[0x0]['start']['nodeAfter'],_0x5e7d3e=_0x50c8b7['commandParams'][0x0];this['editor']['model']['change'](_0x4496d9=>{for(const _0x57cd6f of _0x244fa9)void 0x0!==_0x5e7d3e[_0x57cd6f]?_0x4496d9['setAttribute'](_0x57cd6f,_0x5e7d3e[_0x57cd6f],_0x20ba72):_0x4496d9['removeAttribute'](_0x57cd6f,_0x20ba72);});}['handleSuggestionDescription'](_0x59f59b){if(_0x59f59b['data'])switch(_0x59f59b['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'](_0x296b49,_0x535b36){const _0x5551f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3cb3b6 of _0x5551f0['getSuggestions']({'skipNotAttached':!0x0})){const _0x35fbbb=_0x3cb3b6['getContainedElement']();if(_0x3cb3b6['subType']===_0x535b36&&_0x35fbbb===_0x296b49)return _0x3cb3b6;}return null;}constructor(_0x5b67be){super(_0x5b67be),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 _0x454bf4{static get['requires'](){return['CommentsRepository',_0x542b67,_0x4a6417,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 _0x1af962=this['editor'],_0x1302d4=(_0x4a4c85,_0x2d5213)=>{if('attribute'!=_0x4a4c85)return'ck-suggestion-marker-'+_0x4a4c85;const _0x5849b2=_0x2d5213['split']('|')[0x0];return this['_isBlockAttribute'](_0x5849b2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1af962['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xae5b15=>{const {id:_0x20721b,type:_0x2347b5,subType:_0x545fd0}=this['_splitMarkerName'](_0xae5b15['markerName']),_0x40deac=['ck-suggestion-marker',_0x1302d4(_0x2347b5,_0x545fd0)];let _0x239528=0xbb8;return this['activeMarkers']['includes'](_0xae5b15['markerName'])&&(_0x40deac['push']('ck-suggestion-marker--active'),_0x239528=0xbc2),'deletion'==_0x2347b5&&(_0x239528+=0x5),{'classes':_0x40deac,'attributes':{'data-suggestion':_0x20721b},'priority':_0x239528};}}),_0x1af962['conversion']['for']('dataDowncast')['add'](_0x5a7a13=>{_0x5a7a13['on']('addMarker:suggestion',(_0x1517af,_0x1cadc8,_0x743a60)=>{if(!_0x743a60['options']['showSuggestionHighlights'])return;const _0x13ddec=_0x1cadc8['item'];if(!_0x13ddec)return;const _0xcc86ce=_0x743a60['mapper']['toViewElement'](_0x13ddec);_0x1af962['model']['schema']['isObject'](_0x13ddec)&&_0xcc86ce&&!_0xcc86ce['getCustomProperty']('widget')&&_0xcc86ce['is']('containerElement')&&_0x18b848(_0xcc86ce,_0x743a60['writer']);},{'priority':'high'});}),_0x1af962['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x502ba0,_0x32485e)=>{if(!_0x32485e['options']['showSuggestionHighlights'])return null;const {type:_0x23d03f,subType:_0x1da9f0}=this['_splitMarkerName'](_0x502ba0['markerName']);return{'classes':['ck-suggestion-marker',_0x1302d4(_0x23d03f,_0x1da9f0)],'priority':0xbb8};}});const _0x5a6e1d=({showActiveMarkers:_0xe6775f=!0x0,isAttributeSuggestion:_0x1469cd=!0x1}={})=>(_0x55abd3,_0x14d266,_0x363ee5)=>{if(!_0x14d266['item'])return;const {id:_0x5a3009}=this['_splitMarkerName'](_0x14d266['markerName']);if(_0x1469cd){const _0x3a7861=this['_suggestions']['get'](_0x5a3009),_0x137d46=this['_getAttributeKey'](_0x3a7861);if(!this['_isBlockAttribute'](_0x137d46))return;}if(_0x14d266['item']['is']('selection'))return void _0x363ee5['consumable']['consume'](_0x14d266['item'],_0x55abd3['name']);const _0x1436bb=_0x363ee5['mapper']['toViewElement'](_0x14d266['item']);if(_0x14d266['item']['is']('element')&&_0x1af962['model']['schema']['isBlock'](_0x14d266['item'])&&!_0x1436bb['getCustomProperty']('addHighlight')){_0x363ee5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1436bb),_0x363ee5['writer']['setAttribute']('data-suggestion',_0x5a3009,_0x1436bb),_0x363ee5['mapper']['bindElementToMarker'](_0x1436bb,_0x14d266['markerName']),_0xe6775f&&(this['activeMarkers']['includes'](_0x14d266['markerName'])?_0x363ee5['writer']['addClass']('ck-suggestion-marker--active',_0x1436bb):_0x363ee5['writer']['removeClass']('ck-suggestion-marker--active',_0x1436bb));for(const _0x8069cc of _0x1af962['model']['createRangeIn'](_0x14d266['item'])['getItems']())_0x363ee5['consumable']['consume'](_0x8069cc,_0x55abd3['name']);_0x363ee5['consumable']['consume'](_0x14d266['item'],_0x55abd3['name']);}};_0x1af962['conversion']['for']('dataDowncast')['add'](_0x854bfa=>{_0x854bfa['on']('addMarker:suggestion:formatBlock',(_0x23a55b,_0x12fed2,_0x2a6aec)=>{_0x2a6aec['options']['showSuggestionHighlights']&&_0x5a6e1d({'showActiveMarkers':!0x1})(_0x23a55b,_0x12fed2,_0x2a6aec);},{'priority':'highest'});}),_0x1af962['conversion']['for']('dataDowncast')['add'](_0x11fb7e=>{_0x11fb7e['on']('addMarker:suggestion:attribute',(_0x1895ef,_0x4bb46b,_0x4d9c9c)=>{_0x4d9c9c['options']['showSuggestionHighlights']&&_0x5a6e1d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1895ef,_0x4bb46b,_0x4d9c9c);},{'priority':'highest'});}),_0x1af962['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b340e,_0x4cd298)=>_0x4cd298['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2b340e['substr'](0xb)}}),_0x1af962['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x56c9ba,{writer:_0x37ef70})=>{let _0x5e4dfe='suggestion:'+_0x56c9ba['getAttribute']('suggestion-type')+':'+_0x56c9ba['getAttribute']('id');return _0x56c9ba['getAttribute']('marker-count')&&(_0x5e4dfe+=':'+_0x56c9ba['getAttribute']('marker-count')),_0x37ef70['createElement']('$marker',{'data-name':_0x5e4dfe});}}),_0x1af962['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x14cf1d=>{_0x14cf1d['on']('addMarker:suggestion:formatBlock',_0x5a6e1d(),{'priority':'high'});}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x33e421=>{_0x33e421['on']('addMarker:suggestion:attribute',_0x5a6e1d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x510e29=>{_0x510e29['on']('removeMarker:suggestion:formatBlock',(_0x3b4daa,_0x41324e,_0x57758b)=>{const _0x121750=_0x57758b['mapper']['markerNameToElements'](_0x41324e['markerName']);if(_0x121750){for(const _0x5bb49e of _0x121750)_0x5bb49e['getCustomProperty']('addHighlight')||(_0x57758b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bb49e),_0x57758b['writer']['removeAttribute']('data-suggestion',_0x5bb49e),_0x57758b['mapper']['unbindElementFromMarkerName'](_0x5bb49e,_0x41324e['markerName']));}},{'priority':'high'});}),_0x1af962['conversion']['for']('editingDowncast')['add'](_0x12d878=>{_0x12d878['on']('removeMarker:suggestion:attribute',(_0x44185a,_0x4c8abd,_0x44c514)=>{const _0x346836=_0x44c514['mapper']['markerNameToElements'](_0x4c8abd['markerName']);if(!_0x346836)return;const {id:_0x3d9987}=this['_splitMarkerName'](_0x4c8abd['markerName']),_0x4c89da=this['_suggestions']['get'](_0x3d9987),_0x31a1fc=this['_getAttributeKey'](_0x4c89da);if(this['_isBlockAttribute'](_0x31a1fc)){for(const _0x14ccc2 of _0x346836)_0x14ccc2['getCustomProperty']('addHighlight')||(_0x44c514['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x14ccc2),_0x44c514['writer']['removeAttribute']('data-suggestion',_0x14ccc2),_0x44c514['mapper']['unbindElementFromMarkerName'](_0x14ccc2,_0x4c8abd['markerName']));}},{'priority':'high'});}),_0x1af962['model']['document']['registerPostFixer'](_0x13ba01=>{let _0x324e9e=!0x1;const _0x2e96e6=Array['from'](_0x1af962['model']['document']['differ']['getChangedMarkers']()),_0x3e42b7=new Set();for(const {name:_0x244c1c,data:_0x26f298}of _0x2e96e6){const {group:_0x38941e,type:_0x38c6b6,subType:_0x5a28f1,id:_0x447a60}=this['_splitMarkerName'](_0x244c1c);if('suggestion'!==_0x38941e)continue;const _0x2e4d77=this['_suggestions']['get'](_0x447a60);if(null!=_0x26f298['newRange']){'formatInline'==_0x38c6b6&&(_0x324e9e=_0x324e9e||Et(_0x26f298['newRange'],_0x244c1c,_0x13ba01,_0x1af962['model']['schema']));const _0x5185e8='attribute'==_0x38c6b6&&this['_isBlockAttribute'](_0x5a28f1['split']('|')[0x0]);if(_0x26f298['newRange']['isCollapsed']||'$graveyard'==_0x26f298['newRange']['root']['rootName']||'formatBlock'==_0x38c6b6&&!Ut(_0x26f298['newRange'])||_0x5185e8&&!Ut(_0x26f298['newRange'])||'deletion'==_0x38c6b6&&!(!Tt(_0x2c28b7=_0x26f298['newRange'])&&!function(_0x504cf9){return _0x504cf9['start']['parent']==_0x504cf9['end']['nodeBefore']&&_0x504cf9['start']['isAtEnd'];}(_0x2c28b7)))_0x13ba01['removeMarker'](_0x244c1c),_0x324e9e=!0x0;else{if(!_0x2e4d77||!_0x2e4d77['isInContent'])continue;_0x3e42b7['add'](_0x2e4d77);}}}var _0x2c28b7;return _0x3e42b7['size']>0x0&&(_0x324e9e=!!this['_joinWithAdjacentSuggestions'](_0x3e42b7)||_0x324e9e),_0x324e9e;}),_0x1af962['model']['document']['registerPostFixer'](_0x5616c0=>{let _0x3a9521=!0x1;for(const _0x4354c7 of _0x1af962['model']['document']['differ']['getChanges']())if('insert'==_0x4354c7['type'])for(const _0x5304fd of this['_suggestions']['values']()){if(_0x5304fd['isMultiRange']||!_0x5304fd['isInContent'])continue;const _0x412172='formatBlock'==_0x5304fd['type'],_0x5012e8=this['_getAttributeKey'](_0x5304fd),_0x5f4804=_0x5012e8&&this['_isBlockAttribute'](_0x5012e8);if(!_0x412172&&!_0x5f4804)continue;const _0x90d355=_0x5304fd['getFirstRange']();if(_0x90d355['start']['parent']!=_0x90d355['end']['parent']&&!_0x90d355['end']['isAtEnd']){const _0x39d1f7=_0x1af962['model']['createPositionAt'](_0x90d355['start']['nodeAfter'],'end'),_0x39c997=_0x1af962['model']['createRange'](_0x90d355['start'],_0x39d1f7);_0x5616c0['updateMarker'](_0x5304fd['getFirstMarker'](),{'range':_0x39c997}),_0x3a9521=!0x0;}}return _0x3a9521;}),_0x1af962['model']['document']['registerPostFixer'](_0x325d84=>this['_processAttributeChanges'](_0x325d84)),_0x1af962['model']['document']['registerPostFixer'](_0x4d2ed5=>!_0x4d2ed5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d2ed5)),_0x1af962['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1af962['model']['document']['on']('change:data',(_0x45e2a7,_0x39cb39)=>{if(!_0x39cb39['isLocal']||_0x39cb39['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dceca=_0x1af962['model']['document']['differ']['getChanges']();if(0x0==_0x4dceca['length'])return;const _0x377edf=[],_0x48238b=_0x4dceca['filter'](_0xd8d562=>'attribute'==_0xd8d562['type']),_0x5b29f8=_0x4dceca['filter'](_0x63ea6b=>'insert'==_0x63ea6b['type']&&'$text'!=_0x63ea6b['name']),_0x29cc35=_0x4dceca['filter'](_0x34aa5b=>'remove'==_0x34aa5b['type']&&'$text'!=_0x34aa5b['name']);for(const _0x523b4c of _0x48238b)this['_isRegisteredAttribute'](_0x523b4c['attributeKey'])&&_0x377edf['push']({'key':_0x523b4c['attributeKey'],'newValue':_0x523b4c['attributeNewValue'],'oldValue':_0x523b4c['attributeOldValue'],'range':Ot(_0x523b4c['range'],_0x1af962['model'])});for(const _0x4533d2 of _0x5b29f8){const _0x55c92e=_0x29cc35['find'](_0x56ce4c=>_0x56ce4c['_element']===_0x4533d2['_element']);if(_0x55c92e){const _0x146e90=Ft(_0x4533d2['position']['nodeAfter'],_0x1af962['model']);_0x55c92e['name']!==_0x4533d2['name']&&_0x377edf['push']({'key':m,'newValue':_0x4533d2['name'],'oldValue':_0x55c92e['name'],'range':_0x146e90});for(const [_0x46b7d0,_0x566a9c]of _0x55c92e['attributes']){if(!this['_isRegisteredAttribute'](_0x46b7d0))continue;const _0x57c6a5=_0x4533d2['attributes']['get'](_0x46b7d0);_0x566a9c!==_0x57c6a5&&_0x377edf['push']({'key':_0x46b7d0,'newValue':_0x57c6a5,'oldValue':_0x566a9c,'range':_0x146e90});}for(const [_0x2a6e7b,_0x1c30ac]of _0x4533d2['attributes'])this['_isRegisteredAttribute'](_0x2a6e7b)&&(_0x55c92e['attributes']['has'](_0x2a6e7b)||_0x377edf['push']({'key':_0x2a6e7b,'newValue':_0x1c30ac,'oldValue':null,'range':_0x146e90}));}}0x0!=_0x377edf['length']&&_0x1af962['model']['enqueueChange'](_0x39cb39,_0x2fb7b9=>{const _0x3ef24f=_0x278a82();for(const {range:_0x157448,key:_0x3597f4,oldValue:_0x7cdf04,newValue:_0x511dfc}of _0x377edf)this['markAttributeChange'](_0x157448,_0x3597f4,_0x7cdf04,_0x511dfc,{'groupId':_0x3ef24f});this['_reduceExistingSuggestions'](_0x2fb7b9,_0x377edf);});},{'priority':'lowest'}),_0x1af962['model']['markers']['on']('update:suggestion',(_0x10f25d,_0x3c20d5,_0x156cad)=>{if(null==_0x156cad){const {id:_0x388e85}=this['_splitMarkerName'](_0x3c20d5['name']),_0x2ecbd6=this['_suggestions']['get'](_0x388e85);_0x2ecbd6&&_0x2ecbd6['addMarkerName'](_0x3c20d5['name']);}}),_0x1af962['model']['document']['on']('change:data',()=>{const _0x338a44=Array['from'](_0x1af962['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ae49b=>'suggestion'===this['_splitMarkerName'](_0x2ae49b['name'])['group']);if(0x0===_0x338a44['length'])return;_0x338a44['sort']((_0xb2c4e7,_0xb06039)=>{const _0x7512dc=_0xb2c4e7['data']['oldRange'],_0x49f5e2=_0xb06039['data']['oldRange'];return null===_0x7512dc&&null===_0x49f5e2?0x0:null===_0x7512dc&&null!==_0x49f5e2?-0x1:null!==_0x7512dc&&null===_0x49f5e2?0x1:_0x7512dc['start']['isBefore'](_0x49f5e2['start'])?-0x1:0x1;});const _0x19e7c0=new Set(),_0x434c58=new Set();for(const {name:_0x30472d,data:_0x472ffc}of _0x338a44){const {id:_0x51ba25}=this['_splitMarkerName'](_0x30472d);if(null===_0x472ffc['oldRange']){const _0x1784ef=this['_handleNewSuggestionMarker'](_0x30472d);_0x434c58['add'](_0x1784ef);}else{const _0x4ab3b2=this['_suggestions']['get'](_0x51ba25);null!==_0x472ffc['newRange']||_0x4ab3b2['isInContent']?(_0x19e7c0['add'](_0x4ab3b2['head']),_0x434c58['add'](_0x4ab3b2)):this['_removeSuggestion'](_0x4ab3b2);}}_0x434c58['size']>0x0&&this['_refreshSuggestionsChain'](_0x434c58);for(const _0x2ec991 of _0x19e7c0)this['fire']('suggestionChanged',_0x2ec991);}),_0x1af962['model']['on']('applyOperation',(_0x2972a6,_0x1e6cf1)=>{const _0x358000=_0x1e6cf1[0x0];if(!this['_suggestions']['size'])return;if(!_0x358000['isDocumentOperation'])return;if(_0x358000['batch']['isUndo']||!_0x358000['batch']['isLocal'])return;let _0x1af115,_0x33eb2b;switch(_0x358000['type']){case'insert':_0x1af115=_0x1af962['model']['createPositionAt'](_0x358000['position']),_0x33eb2b=_0x1af115['getShiftedBy'](_0x358000['howMany']);break;case'split':_0x1af115=_0x1af962['model']['createPositionAt'](_0x358000['splitPosition']),_0x33eb2b=_0x1af962['model']['createPositionAt'](_0x358000['moveTargetPosition']);break;case'move':_0x1af115=_0x1af962['model']['createPositionAt'](_0x358000['targetPosition']),_0x33eb2b=_0x1af115['getShiftedBy'](_0x358000['howMany']);break;default:return;}const _0x3b0371=_0x1af962['model']['createRange'](_0x1af115,_0x33eb2b);_0x1af962['model']['change'](()=>{for(const {suggestion:_0x3093cc,meta:_0x827ae8}of this['_findSuggestions'](_0x3b0371)){if(_0x3093cc['isMultiRange'])continue;if('formatInline'==_0x3093cc['type'])continue;const _0x470d56=this['_getAttributeKey'](_0x3093cc);if(_0x470d56&&this['_isBlockAttribute'](_0x470d56)&&'split'!=_0x358000['type'])continue;const _0x41c51=_0x3093cc['data']&&_0x3093cc['data']['multipleBlocks'];('formatBlock'!=_0x3093cc['type']||'split'==_0x358000['type']&&!_0x41c51)&&(_0x827ae8['containsRangeInObject']||'insertion'==_0x3093cc['type']&&_0x827ae8['isOwn']||_0x3093cc['getFirstRange']()['containsRange'](_0x3b0371)&&this['_breakSuggestionMarker'](_0x3093cc,_0x1af115,_0x33eb2b));}});},{'priority':'lowest'}),_0x1af962['model']['on']('deleteContent',(_0x4431fd,_0x1b85c0)=>{const _0x2e748f=_0x1b85c0[0x0],_0x3ab63b=_0x1b85c0[0x1];if(_0x3ab63b&&_0x3ab63b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e748f['isCollapsed'])return;const _0x44911b=_0x1af962['model']['schema'],{start:_0x439145,end:_0x19fa41}=_0x2e748f['getFirstRange'](),_0x280b32=_0x439145['nodeAfter']&&_0x44911b['isLimit'](_0x439145['nodeAfter'])?null:_0x44911b['getNearestSelectionRange'](_0x439145,'forward'),_0x4ac288=_0x19fa41['nodeBefore']&&_0x44911b['isLimit'](_0x19fa41['nodeBefore'])?null:_0x44911b['getNearestSelectionRange'](_0x19fa41,'backward'),_0x25535f=_0x1af962['model']['createRange'](_0x280b32?_0x280b32['start']:_0x439145,_0x4ac288?_0x4ac288['end']:_0x19fa41);_0x1af962['model']['change'](_0x4207e5=>{this['markDeletion'](_0x25535f);const _0x5a46de=_0x1af962['model']['schema']['getNearestSelectionRange'](_0x25535f['start']);_0x2e748f['is']('documentSelection')?_0x4207e5['setSelection'](_0x5a46de):_0x2e748f['setTo'](_0x5a46de);}),_0x4431fd['stop']();},{'priority':_0x65f0b9['normal']+0xa}),_0x1af962['model']['on']('insertContent',(_0x10933b,_0x464612)=>{const _0x1e3803=_0x464612[_0x464612['length']-0x1];_0x1e3803&&_0x1e3803['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1af962['model']['change'](()=>{let _0x3e9543=_0x1af962['model']['insertContent'](_0x464612[0x0],_0x464612[0x1],_0x464612[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e9543)return;_0x10933b['return']=_0x3e9543['clone']();const _0x70703b=_0x3e9543['end']['nodeBefore'],_0x58dd6c=_0x1af962['model']['schema'];_0x70703b&&_0x58dd6c['isBlock'](_0x70703b)&&!_0x58dd6c['isObject'](_0x70703b)&&(_0x3e9543=_0x1af962['model']['createRange'](_0x3e9543['start'],_0x1af962['model']['createPositionAt'](_0x70703b,'end'))),this['markInsertion'](_0x3e9543);}),_0x10933b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x100ac4=new $(_0x1af962,this['_suggestions']);_0x1af962['commands']['add']('acceptSuggestion',_0x100ac4),this['enableCommand']('acceptSuggestion');const _0x3e5f99=new B(_0x1af962,this['_suggestions']);_0x1af962['commands']['add']('discardSuggestion',_0x3e5f99),this['enableCommand']('discardSuggestion'),_0x1af962['commands']['add']('acceptAllSuggestions',new x(_0x1af962,_0x100ac4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1af962['commands']['add']('discardAllSuggestions',new x(_0x1af962,_0x3e5f99,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1af962['commands']['add']('acceptSelectedSuggestions',new R(_0x1af962,_0x100ac4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1af962['commands']['add']('discardSelectedSuggestions',new R(_0x1af962,_0x3e5f99,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x587391=_0x1af962['plugins']['get']('CommentsRepository');this['listenTo'](_0x587391,'addComment',(_0x4db92e,{threadId:_0x455c27})=>{const _0x16dd8c=this['_suggestions']['get'](_0x455c27);_0x16dd8c&&_0x16dd8c['commentThread']&&0x1===_0x16dd8c['commentThread']['length']&&this['_updateSuggestionData'](_0x455c27,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x587391,'removeComment',(_0x1a0abb,{threadId:_0x30e186})=>{const _0x875f6e=this['_suggestions']['get'](_0x30e186);_0x875f6e&&_0x875f6e['commentThread']&&!_0x875f6e['commentThread']['length']&&this['_updateSuggestionData'](_0x30e186,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x598a33){if(this['_adapter'])throw new _0x514bf6('track-changes-adapter-already-set',this);this['_adapter']=_0x598a33;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x40baf2=!0x1,toJSON:_0x179e53=!0x1}={}){const _0x34f108=[];for(const _0x2b10dd of this['_suggestions']['values']())_0x40baf2&&!_0x2b10dd['isInContent']||_0x34f108['push'](_0x2b10dd);return _0x179e53?_0x34f108['map'](_0x275b2d=>_0x275b2d['toJSON']()):_0x34f108;}['getSuggestion'](_0x38c0e2){const _0x10633a=this['_suggestions']['get'](_0x38c0e2);if(!_0x10633a)throw new _0x514bf6('track-changes-suggestion-not-found',this);return _0x10633a;}['hasSuggestion'](_0x40b9d6){return this['_suggestions']['has'](_0x40b9d6);}['addSuggestionData'](_0x1474e4){const {authorId:_0x2c65cb,id:_0x4a5ace,attributes:_0x11ed2b}=_0x1474e4,[_0x25e230,_0x22a5d2]=_0x1474e4['type']['split'](':'),_0x1eaeac=this['_suggestions']['get'](_0x4a5ace)||this['_createSuggestion'](_0x25e230,_0x22a5d2,_0x4a5ace,_0x2c65cb,_0x11ed2b);if(this['_addThreadToSuggestion'](_0x1eaeac),this['_checkSuggestionCorrectness'](_0x1eaeac,_0x25e230,_0x22a5d2||null,_0x2c65cb),_0x1eaeac['createdAt']=_0x1474e4['createdAt'],_0x1eaeac['_isDataLoaded']=!0x0,_0x11ed2b&&_0x11ed2b['@external']){const _0x211324=_0x11ed2b['@external'],_0x394512=this['_getExternalAuthor'](_0x211324['authorName']);_0x1eaeac['authoredAt']=_0x211324['createdAt'],_0x1eaeac['author']=_0x394512,_0x1eaeac['isExternal']=!0x0;}else _0x1eaeac['authoredAt']=_0x1474e4['createdAt'];switch(_0x1474e4['data']&&(_0x1eaeac['data']=_0x1474e4['data']),_0x1474e4['attributes']&&(_0x1eaeac['attributes']=_0x1474e4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1eaeac['_saved']=!0x0),this['_suggestionState']['get'](_0x1eaeac)){case'notReady':this['_suggestionState']['set'](_0x1eaeac,'dataReady');break;case'markerReady':_0x1eaeac['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1eaeac])),this['_refreshSuggestionsChain'](new Set([_0x1eaeac])),this['_suggestionState']['set'](_0x1eaeac,'ready'),this['fire']('suggestionLoaded',_0x1eaeac)):this['_suggestionState']['set'](_0x1eaeac,'removed');}return _0x1eaeac;}['acceptSuggestion'](_0xc76b4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57eb4b of _0xc76b4['getAllAdjacentSuggestions']())_0x57eb4b['accept']();});});}['discardSuggestion'](_0x5b187a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2557c8 of _0x5b187a['getAllAdjacentSuggestions']())_0x2557c8['discard']();});});}['enableCommand'](_0x4121ce,_0x5a24d7){const _0x5a93de=this['editor']['commands']['get'](_0x4121ce);if(!_0x5a93de)throw new _0x514bf6('track-changes-command-not-found',this,{'commandName':_0x4121ce});if(this['_enabledCommands']['has'](_0x5a93de))throw new _0x514bf6('track-changes-enable-command-twice',this,{'commandName':_0x4121ce});this['_enabledCommands']['add'](_0x5a93de),_0x5a24d7&&_0x5a93de['on']('execute',(_0x1e223e,_0x1db548)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1db548['length']>0x0&&_0x1db548[_0x1db548['length']-0x1]&&_0x1db548[_0x1db548['length']-0x1]['forceDefaultExecution']?_0x1db548['pop']():(_0x1e223e['return']=_0x5a24d7((..._0x4b05e3)=>_0x5a93de['execute'](..._0x4b05e3,{'forceDefaultExecution':!0x0}),..._0x1db548),_0x1e223e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8a16f4){let _0x53f601,_0x17bf9c;const _0x171c77=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x53f601=_0x8a16f4();}catch(_0xab7934){_0x17bf9c=_0xab7934;}return _0x171c77||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17bf9c&&_0x514bf6['rethrowUnexpectedError'](_0x17bf9c,this),_0x53f601;}['markInsertion'](_0x1558fc,_0x595356=null,_0x18f882={}){if(_0x1558fc['isCollapsed'])return null;const _0x2ff971=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5c3a2b,meta:_0x1eca8b}of this['_findSuggestions'](_0x1558fc,'insertion'))if(_0x1eca8b['isOwn']){if(!_0x1eca8b['isNextTo']){if(_0x1eca8b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5c3a2b,_0x18f882))continue;return _0x5c3a2b;}if(Lt(_0x5c3a2b,_0x18f882))return _0x5c3a2b;this['_breakSuggestionMarker'](_0x5c3a2b,_0x1558fc['start'],_0x1558fc['end']);break;}if(_0x595356==_0x5c3a2b['subType']&&Lt(_0x5c3a2b,_0x18f882)){const _0x5ccc2a=_0x5c3a2b['getFirstRange']();return _0x5ccc2a['start']['isEqual'](_0x1558fc['end'])?this['_setSuggestionRange'](_0x5c3a2b,this['_model']['createRange'](_0x1558fc['start'],_0x5ccc2a['end'])):this['_setSuggestionRange'](_0x5c3a2b,this['_model']['createRange'](_0x5ccc2a['start'],_0x1558fc['end'])),_0x5c3a2b;}}const _0x58def7=_0x278a82(),_0x2a8c13=_0x2ff971['id'],_0x9f4ce1=_0x595356?'insertion:'+_0x595356:'insertion',_0x523609=this['_setSuggestionData']({'id':_0x58def7,'type':_0x9f4ce1,'createdAt':new Date(),'authorId':_0x2a8c13,'attributes':_0x18f882});return this['_addSuggestionMarker'](_0x9f4ce1,_0x58def7,_0x2a8c13,_0x1558fc),_0x523609;}['markMultiRangeInsertion'](_0x2f0113,_0x26f148='multi',_0x3b514d={}){const _0x4dfdf4=this['editor']['plugins']['get']('Users')['me'],_0x230312=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x26f148,'join');for(const _0x5f5519 of this['getSuggestions']())if(_0x5f5519['author']['id']==_0x4dfdf4['id']&&'insertion'==_0x5f5519['type']&&_0x5f5519['subType']==_0x26f148&&Lt(_0x5f5519,_0x3b514d)&&(_0x230312(_0x5f5519['getRanges'](),_0x2f0113)||_0x230312(_0x2f0113,_0x5f5519['getRanges']()))){for(const _0x6ee810 of _0x2f0113)_0x5f5519['addRange'](_0x6ee810);return _0x5f5519;}for(const {suggestion:_0x1f8dc3,meta:_0xd1aa40}of this['_findSuggestions'](_0x2f0113,'insertion')){if(!_0xd1aa40['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xd1aa40['containsRangeInObject'])continue;if(!Lt(_0x1f8dc3,_0x3b514d))continue;let _0x25d206=!0x0;for(const _0x2620e0 of _0x1f8dc3['getRanges']())for(const _0x4d6f2f of _0x2f0113)if(!_0x2620e0['containsRange'](_0x4d6f2f)){_0x25d206=!0x1;break;}if(_0x25d206)return _0x1f8dc3;}const _0x745e2f=_0x278a82(),_0x2476ec=_0x4dfdf4['id'],_0x573194='insertion:'+_0x26f148,_0x3d27f3=this['_setSuggestionData']({'id':_0x745e2f,'type':_0x573194,'createdAt':new Date(),'authorId':_0x2476ec,'attributes':_0x3b514d});for(const _0x497a4b of _0x2f0113)this['_addSuggestionMarker'](_0x573194,_0x745e2f,_0x2476ec,_0x497a4b,u['getMultiRangeId']());return _0x3d27f3;}['markInlineFormat'](_0x5b33eb,_0x173c0f,_0x1eb326=null,_0xe77468={}){if(_0x1eb326=_0x1eb326||Vt(_0x173c0f),_0x5b33eb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x39df37=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb326,'accept');return this['forceDefaultExecution'](()=>_0x39df37([_0x5b33eb],_0x173c0f,_0xe77468)),null;}const _0x269ee3=this['editor']['plugins']['get']('Users')['me'],_0x250e11=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x32803f,meta:_0x5553ba}of this['_findSuggestions'](_0x5b33eb,'insertion'))_0x5553ba['isOwn']&&!_0x5553ba['isInsideObject']&&_0x250e11['push'](..._0x32803f['getRanges']());}const _0x1b91ca=function(_0x90a5a2,_0x2f0c79){const _0x121257=[];for(const _0x5cdedc of _0x2f0c79){const _0x2fedb3=_0x90a5a2['getIntersection'](_0x5cdedc);_0x2fedb3&&_0x121257['push'](_0x2fedb3);}return _0x121257;}(_0x5b33eb,_0x250e11),_0x4303b4=function(_0x4c3466,_0x53bedf){const _0x28f34a=[_0x4c3466];for(const _0x4d9af5 of _0x53bedf){let _0x1da077=0x0;for(;_0x1da077<_0x28f34a['length'];){const _0x10bd10=_0x28f34a[_0x1da077]['getDifference'](_0x4d9af5);_0x28f34a['splice'](_0x1da077,0x1,..._0x10bd10),_0x1da077+=_0x10bd10['length'];}}return _0x28f34a;}(_0x5b33eb,_0x250e11);_0x1b91ca['length']&&this['_model']['change'](()=>{for(const _0x4fb74e of _0x1b91ca){const _0x5d0b8a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb326,'accept');this['forceDefaultExecution'](()=>_0x5d0b8a([_0x4fb74e],_0x173c0f,_0xe77468));}});for(const _0x3a615c of _0x4303b4){let _0xe39943=null,_0x5336dc=_0x3a615c['start'],_0x2ef02c=_0x3a615c['end'];for(const {suggestion:_0x4803eb,meta:_0x37b4f5}of this['_findSuggestions'](_0x3a615c,'formatInline')){if(!_0x37b4f5['isOwn'])continue;if(_0x4803eb['subType']!=_0x1eb326)continue;if(!Lt(_0x4803eb,_0xe77468))continue;const _0x2c80cd=_0x4803eb['getFirstRange']();if(_0x2c80cd['containsRange'](_0x3a615c,!0x0))return null;_0x5336dc=_0x5336dc['isBefore'](_0x2c80cd['start'])?_0x5336dc:_0x2c80cd['start'],_0x2ef02c=_0x2ef02c['isAfter'](_0x2c80cd['end'])?_0x2ef02c:_0x2c80cd['end'],_0xe39943?_0x2c80cd['start']['isBefore'](_0xe39943['getFirstRange']()['start'])?(_0xe39943['removeMarkers'](),_0xe39943=_0x4803eb):_0x4803eb['removeMarkers']():_0xe39943=_0x4803eb;}const _0x1add42=this['_model']['createRange'](_0x5336dc,_0x2ef02c);if(_0xe39943)this['_setSuggestionRange'](_0xe39943,_0x1add42);else{const _0x3e83d1=_0x278a82(),_0x229270=_0x269ee3['id'];this['_setSuggestionData']({'id':_0x3e83d1,'type':'formatInline:'+_0x1eb326,'data':_0x173c0f,'createdAt':new Date(),'authorId':_0x229270,'attributes':_0xe77468}),this['_addSuggestionMarker']('formatInline:'+_0x1eb326,_0x3e83d1,_0x229270,_0x1add42);}}return null;}['markBlockFormat'](_0x43a9d1,_0x5a5120,_0x4e8c4a=[],_0x2239f3=null,_0x1d5856={}){_0x5a5120['formatGroupId']||(_0x5a5120['formatGroupId']=_0x5a5120['commandName']),_0x5a5120['multipleBlocks']=_0x43a9d1['is']('range'),_0x2239f3=_0x2239f3||Vt(_0x5a5120);const _0x53f85c=_0x4e8c4a['map'](_0x5504eb=>Ft(_0x5504eb,this['_model'])),_0x1353fe=_0x43a9d1['is']('range')?_0x43a9d1:Ft(_0x43a9d1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3b92f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2239f3,'accept');return this['forceDefaultExecution'](()=>_0x3b92f4([_0x1353fe],_0x5a5120,_0x1d5856)),null;}_0x53f85c['push'](_0x1353fe);let _0x15334a=!0x0;for(const _0x51cd13 of _0x53f85c)if(!this['_rangeIsInLocalUserInsertion'](_0x51cd13)){_0x15334a=!0x1;break;}if(_0x15334a&&'always'!==this['_trackFormatChanges']){const _0x3ec7f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2239f3,'accept');return this['forceDefaultExecution'](()=>_0x3ec7f3([_0x1353fe],_0x5a5120,_0x1d5856)),null;}let _0x4d8109=null,_0x3d2c9a=_0x1353fe['start'],_0x41a023=_0x1353fe['end'];for(const {suggestion:_0x4c137e,meta:_0x8f8edd}of this['_findSuggestions'](_0x1353fe,'formatBlock')){if(!_0x8f8edd['isOwn'])continue;if(_0x8f8edd['isNextTo']||_0x8f8edd['containsRangeInObject']||_0x8f8edd['isInsideObject'])continue;if(_0x4c137e['data']['formatGroupId']!=_0x5a5120['formatGroupId'])continue;if(!Lt(_0x4c137e,_0x1d5856))continue;const _0x4e5c1a=_0x4c137e['getFirstRange']();if(_0x4c137e['subType']==_0x2239f3){if(_0x4e5c1a['containsRange'](_0x1353fe,!0x0))return null;_0x3d2c9a=_0x3d2c9a['isBefore'](_0x4e5c1a['start'])?_0x3d2c9a:_0x4e5c1a['start'],_0x41a023=_0x41a023['isAfter'](_0x4e5c1a['end'])?_0x41a023:_0x4e5c1a['end'],_0x4d8109?_0x4e5c1a['start']['isBefore'](_0x4d8109['getFirstRange']()['start'])?(_0x4d8109['removeMarkers'](),_0x4d8109=_0x4c137e):_0x4c137e['removeMarkers']():_0x4d8109=_0x4c137e;}else{const _0x5854c9=_0x1353fe['getIntersection'](_0x4e5c1a);this['_cutOutSuggestionMarker'](_0x4c137e,_0x5854c9);}}const _0x4de701=this['editor']['plugins']['get']('Users')['me'],_0x45fe28=_0x278a82(),_0x5efdaf=_0x4de701['id'];if(_0x4d8109)return this['_setSuggestionRange'](_0x4d8109,this['_model']['createRange'](_0x3d2c9a,_0x41a023)),_0x4d8109;{const _0x5153f3=this['_setSuggestionData']({'id':_0x45fe28,'type':'formatBlock:'+_0x2239f3,'data':_0x5a5120,'createdAt':new Date(),'authorId':_0x5efdaf,'attributes':_0x1d5856});return this['_addSuggestionMarker']('formatBlock:'+_0x2239f3,_0x45fe28,_0x5efdaf,this['_model']['createRange'](_0x3d2c9a,_0x41a023)),_0x5153f3;}}['markMultiRangeBlockFormat'](_0x5469a6,_0x584c6c,_0x5d55a2=[],_0x564ae7=null,_0x4d0233={}){_0x584c6c['formatGroupId']||(_0x584c6c['formatGroupId']=_0x584c6c['commandName']);const _0x291f69=_0x5469a6[0x0];_0x584c6c['multipleBlocks']=_0x291f69['is']('range'),_0x564ae7=_0x564ae7||Vt(_0x584c6c);const _0x536026=_0x5d55a2['map'](_0x1ce8b2=>Ft(_0x1ce8b2,this['_model'])),_0x5a3d64=_0x291f69['is']('range')?_0x5469a6:_0x5469a6['map'](_0x52a06f=>Ft(_0x52a06f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3bf4f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564ae7,'accept');return this['forceDefaultExecution'](()=>_0x3bf4f2(_0x5a3d64,_0x584c6c,_0x4d0233)),null;}_0x536026['push'](..._0x5a3d64);let _0x405cd3=!0x0;for(const _0x24e6c9 of _0x536026)if(!this['_rangeIsInLocalUserInsertion'](_0x24e6c9)){_0x405cd3=!0x1;break;}if(_0x405cd3&&'always'!==this['_trackFormatChanges']){const _0xb25151=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564ae7,'accept');return this['forceDefaultExecution'](()=>_0xb25151(_0x5a3d64,_0x584c6c,_0x4d0233)),null;}const _0x15e93d=this['editor']['plugins']['get']('Users')['me'];for(const _0x39b95e of this['getSuggestions']()){if(_0x39b95e['author']['id']!=_0x15e93d['id'])continue;if('formatBlock'!=_0x39b95e['type']||_0x39b95e['data']['formatGroupId']!=_0x584c6c['formatGroupId'])continue;if(!Lt(_0x39b95e,_0x4d0233))continue;const _0x18563d=_0x39b95e['subType']==_0x564ae7;for(let _0x3bd5d9=0x0;_0x3bd5d9<_0x5a3d64['length'];_0x3bd5d9++){const _0x190fbf=_0x5a3d64[_0x3bd5d9];for(const _0x300548 of _0x39b95e['getMarkers']()){const _0x1c630a=_0x300548['getRange']();if(_0x190fbf['isEqual'](_0x1c630a)){_0x18563d?(_0x5a3d64['splice'](_0x3bd5d9,0x1),_0x3bd5d9--):_0x39b95e['removeMarker'](_0x300548['name']);break;}}}}if(0x0==_0x5a3d64['length'])return null;const _0x345d0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x564ae7,'join');for(const _0x1a1e78 of this['getSuggestions']())if(_0x1a1e78['author']['id']==_0x15e93d['id']&&'formatBlock'==_0x1a1e78['type']&&_0x1a1e78['data']['formatGroupId']==_0x584c6c['formatGroupId']&&_0x1a1e78['subType']==_0x564ae7&&Lt(_0x1a1e78,_0x4d0233)&&(_0x345d0a(_0x1a1e78['getRanges'](),_0x5a3d64)||_0x345d0a(_0x5a3d64,_0x1a1e78['getRanges']()))){for(const _0x520240 of _0x5a3d64)_0x1a1e78['addRange'](_0x520240);return _0x1a1e78;}const _0x10f10c=_0x278a82(),_0x3e2e9c=_0x15e93d['id'],_0x4887fb='formatBlock:'+_0x564ae7,_0x4c9d27=this['_setSuggestionData']({'id':_0x10f10c,'type':_0x4887fb,'data':_0x584c6c,'createdAt':new Date(),'authorId':_0x3e2e9c,'attributes':_0x4d0233});for(const _0x2d04a3 of _0x5a3d64)this['_addSuggestionMarker'](_0x4887fb,_0x10f10c,_0x3e2e9c,_0x2d04a3,u['getMultiRangeId']());return _0x4c9d27;}['markDeletion'](_0x540ccf,_0x30ce3d=null,_0x509abf={}){if(_0x540ccf['isCollapsed'])return null;const _0x527278=this['editor']['plugins']['get']('Users')['me'],_0x3b0715=new _0xb3bd9b(_0x540ccf['start'],_0x540ccf['end']);for(const {suggestion:_0x4cff24,meta:_0x507055}of this['_findSuggestions'](_0x3b0715,'insertion'))if(_0x507055['isOwn']&&!_0x507055['isNextTo']){if(_0x4cff24['isMultiRange']){const _0x2ff699=_0x4cff24['getRanges']()['filter'](_0x354ce3=>'$graveyard'!=_0x354ce3['root']['rootName']);_0x2ff699['every'](_0x211244=>_0x3b0715['containsRange'](_0x211244,!0x0))&&_0x4cff24['discard']();if(_0x2ff699['some'](_0x2ee8ae=>_0x2ee8ae['containsRange'](_0x3b0715,!0x0))){const _0x4e70e1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30ce3d,'accept');return this['forceDefaultExecution'](()=>_0x4e70e1([_0x3b0715],null,_0x509abf)),null;}}else{const _0x17564a=_0x3b0715['getIntersection'](_0x4cff24['getFirstRange']());null!==_0x17564a&&_0x4cff24['_onDiscard']([_0x17564a],null,_0x509abf);}}if(_0x3b0715['detach'](),_0x3b0715['isCollapsed']||'$graveyard'==_0x3b0715['root']['rootName'])return null;let _0x5b2cde=null,_0x4a00ee=_0x3b0715['start'],_0x10b0f1=_0x3b0715['end'];const _0x13c4c8=this['_findSuggestions'](_0x3b0715,'deletion');for(const {suggestion:_0x167139,meta:_0x33ff89}of _0x13c4c8){const _0x39cfd0=this['_model']['createRange'](_0x4a00ee,_0x10b0f1);if(_0x33ff89['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33ff89['containsRangeInObject']&&!_0x33ff89['isInsideObject'])){if(_0x167139['isMultiRange']){if(!Lt(_0x167139,_0x509abf))continue;let _0x4a34ef=!0x0;for(const _0x57b1e8 of _0x167139['getRanges']()){if(_0x57b1e8['containsRange'](_0x39cfd0,!0x0))return _0x167139;_0x39cfd0['containsRange'](_0x57b1e8)||(_0x4a34ef=!0x1);}_0x4a34ef&&_0x167139['discard']();}else{const _0x2e5166=_0x167139['getFirstRange']();if(_0x2e5166['containsRange'](_0x39cfd0,!0x0))return _0x167139;if(!Lt(_0x167139,_0x509abf)){_0x39cfd0['containsRange'](_0x2e5166)?_0x167139['removeMarkers']():_0x2e5166['containsPosition'](_0x4a00ee)?_0x4a00ee=_0x2e5166['end']:_0x2e5166['containsPosition'](_0x10b0f1)&&(_0x10b0f1=_0x2e5166['start']);continue;}_0x4a00ee=_0x4a00ee['isBefore'](_0x2e5166['start'])?_0x4a00ee:_0x2e5166['start'],_0x10b0f1=_0x10b0f1['isAfter'](_0x2e5166['end'])?_0x10b0f1:_0x2e5166['end'],_0x509abf=Object['assign']({},_0x167139['attributes']),_0x5b2cde?_0x2e5166['start']['isBefore'](_0x5b2cde['getFirstRange']()['start'])?(_0x5b2cde['removeMarkers'](),_0x5b2cde=_0x167139):_0x167139['removeMarkers']():_0x5b2cde=_0x167139;}}}if(_0x5b2cde)return this['_setSuggestionRange'](_0x5b2cde,this['_model']['createRange'](_0x4a00ee,_0x10b0f1)),_0x5b2cde;{const _0x4d4a67=_0x278a82(),_0x21e463=this['_model']['createRange'](_0x4a00ee,_0x10b0f1),_0x57f3ca=_0x527278['id'],_0x35f476=_0x30ce3d?'deletion:'+_0x30ce3d:'deletion',_0x2aeb9d=this['_setSuggestionData']({'id':_0x4d4a67,'type':_0x35f476,'createdAt':new Date(),'authorId':_0x57f3ca,'attributes':_0x509abf});return this['_addSuggestionMarker'](_0x35f476,_0x4d4a67,_0x57f3ca,_0x21e463),_0x2aeb9d;}}['markMultiRangeDeletion'](_0x234122,_0x1fc865='multi',_0x1715fa={}){const _0x3cb4ac=this['editor']['plugins']['get']('Users')['me'],_0xc508ce=_0x234122['map'](_0x3b5684=>new _0xb3bd9b(_0x3b5684['start'],_0x3b5684['end'])),_0x4f23c3=new Set();for(const {suggestion:_0x6ee97a,meta:_0x36d5a7}of this['_findSuggestions'](_0xc508ce,'insertion'))_0x36d5a7['isOwn']&&!_0x36d5a7['isNextTo']&&_0x4f23c3['add'](_0x6ee97a);for(const _0x410b72 of _0x4f23c3)if(_0x410b72['isMultiRange']){const _0x50525b=_0x410b72['getRanges']();(!_0x410b72['attributes']||!_0x410b72['attributes']['skipNestingCheck'])&&(_0x50525b['every'](_0x3a15aa=>_0xc508ce['some'](_0x342348=>_0x342348['containsRange'](_0x3a15aa,!0x0)))&&_0x410b72['discard']());if(_0xc508ce['every'](_0x5d02bc=>_0x50525b['some'](_0x3711a8=>_0x3711a8['containsRange'](_0x5d02bc,!0x0)))){const _0x436e7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fc865,'accept');return this['forceDefaultExecution'](()=>_0x436e7e(_0x234122,null,_0x1715fa)),null;}}else{const _0x1e8550=_0x410b72['getFirstRange']();_0xc508ce['some'](_0x3a0c3e=>_0x3a0c3e['containsRange'](_0x1e8550,!0x0))&&_0x410b72['discard']();if(_0xc508ce['every'](_0x50644e=>_0x1e8550['containsRange'](_0x50644e,!0x0))){const _0x4d8a12=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fc865,'accept');return this['forceDefaultExecution'](()=>_0x4d8a12(_0xc508ce,null,_0x1715fa)),null;}}const _0x3cb959=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1fc865,'join');let _0x120809=null;for(const _0x346457 of this['getSuggestions']())if(_0x346457['author']['id']==_0x3cb4ac['id']&&_0x346457['isInContent']&&'deletion'==_0x346457['type']&&_0x346457['subType']==_0x1fc865&&Lt(_0x346457,_0x1715fa)&&(_0x3cb959(_0x346457['getRanges'](),_0xc508ce)||_0x3cb959(_0xc508ce,_0x346457['getRanges']()))){if(_0x120809){if(_0x346457['commentThread']&&_0x346457['commentThread']['length'])continue;for(const _0x188106 of _0x346457['getRanges']())_0x120809['isIntersectingWithRange'](_0x188106)||_0x120809['addRange'](_0x188106);_0x346457['removeMarkers']();}else{_0x120809=_0x346457;for(const _0x5b09d2 of _0xc508ce)_0x346457['isIntersectingWithRange'](_0x5b09d2)||_0x346457['addRange'](_0x5b09d2);}}if(_0x120809)return _0x120809;_0x4f23c3['clear']();for(const {suggestion:_0x1266de,meta:_0x34cec9}of this['_findSuggestions'](_0xc508ce,'deletion'))_0x34cec9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34cec9['containsRangeInObject']&&!_0x34cec9['isInsideObject'])&&Lt(_0x1266de,_0x1715fa)&&_0x4f23c3['add'](_0x1266de);for(const _0x24d09b of _0x4f23c3){const _0x18692b=_0x24d09b['getRanges']();if(!_0x1715fa||!_0x1715fa['skipNestingCheck']){if(_0xc508ce['every'](_0x5c8d8f=>_0x18692b['some'](_0x1ebd66=>_0x1ebd66['containsRange'](_0x5c8d8f,!0x0))))return _0x24d09b;}(!_0x24d09b['attributes']||!_0x24d09b['attributes']['skipNestingCheck'])&&(_0x18692b['every'](_0x40e643=>_0xc508ce['some'](_0x40fab6=>_0x40fab6['containsRange'](_0x40e643,!0x0)))&&_0x24d09b['discard']());}const _0x6dfb19=_0x278a82(),_0x54ccda=_0x3cb4ac['id'],_0xab016d='deletion:'+_0x1fc865,_0x5abb63=this['_setSuggestionData']({'id':_0x6dfb19,'type':_0xab016d,'createdAt':new Date(),'authorId':_0x54ccda,'attributes':_0x1715fa});for(const _0x3461d3 of _0xc508ce)_0x3461d3['detach'](),_0x3461d3['isCollapsed']||'$graveyard'==_0x3461d3['root']['rootName']||this['_addSuggestionMarker'](_0xab016d,_0x6dfb19,_0x54ccda,_0x3461d3,u['getMultiRangeId']());return _0x5abb63;}['markAttributeChange'](_0x19d017,_0x22e2a1,_0x27d648,_0x2f56d2,_0x1f8422){if(_0x19d017['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x557a8d=this['editor']['plugins']['get']('Users')['me']['id'],_0x56bb10=Array['from'](this['_suggestions']['values']())['filter'](_0x4e57af=>'attribute'==_0x4e57af['type']&&_0x4e57af['data']['key']==_0x22e2a1&&_0x4e57af['isIntersectingWithRange'](_0x19d017));if('default'===this['_trackFormatChanges']){const _0x278544=this['_findSuggestions'](_0x19d017,'insertion')['filter'](({meta:_0x4f88b4})=>_0x4f88b4['isOwn']&&!_0x4f88b4['isInsideObject']&&!_0x4f88b4['isNextTo'])['map'](({suggestion:_0x4e0621})=>_0x4e0621);_0x56bb10['unshift'](..._0x278544);}const _0x269dcc=new Map([[_0x19d017,_0x27d648]]);for(const _0x1e1f5c of _0x56bb10){const _0x3fc28f='attribute'==_0x1e1f5c['type']?_0x1e1f5c['data']['oldValue']:void 0x0,_0x6389ec=_0x1e1f5c['getFirstRange'](),_0x12160d=Array['from'](_0x269dcc['keys']())['find'](_0x149964=>_0x149964['isIntersecting'](_0x6389ec));if(!_0x12160d)continue;const _0x14e576=_0x12160d['getDifference'](_0x6389ec);this['_isBlockAttribute'](_0x22e2a1)&&'insertion'==_0x1e1f5c['type']&&0x0!=_0x14e576['length']||(_0x269dcc['delete'](_0x12160d),_0x14e576['forEach'](_0x5154b4=>{_0x269dcc['set'](_0x5154b4,_0x27d648);}),'insertion'!=_0x1e1f5c['type']&&_0x3fc28f!=_0x2f56d2&&_0x269dcc['set'](_0x12160d['getIntersection'](_0x6389ec),_0x3fc28f));}const _0x2ee3e6=[];for(const [_0xaf35f,_0x5468a7]of _0x269dcc){const _0x3fe0be=_0x278a82(),_0x225c11={'key':_0x22e2a1,'oldValue':_0x5468a7,'newValue':_0x2f56d2};_0x22e2a1['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':_0x22e2a1});const _0x4b2083=('attribute:'+(_0x22e2a1+'|'+Vt({'newValue':_0x2f56d2})))['substring'](0x0,0x3c),_0x479e8c=this['_setSuggestionData']({'id':_0x3fe0be,'type':_0x4b2083,'data':_0x225c11,'createdAt':new Date(),'authorId':_0x557a8d,'attributes':_0x1f8422});_0x2ee3e6['push'](_0x479e8c),this['_addSuggestionMarker'](_0x4b2083,_0x3fe0be,_0x557a8d,_0xaf35f);}return _0x2ee3e6;}['enableDefaultAttributesIntegration'](_0x4083ff){this['enableCommand'](_0x4083ff,(_0x4fbc82,..._0x27e01e)=>{this['_recordAttributeChanges'](()=>{_0x4fbc82(..._0x27e01e);});});}['registerBlockAttribute'](_0x3b7629){this['_blockAttributeKeys']['add'](_0x3b7629);}['registerInlineAttribute'](_0x566095){this['_inlineAttributeKeys']['add'](_0x566095);}['_getAttributeKey'](_0x18a6dc){return'attribute'==_0x18a6dc['type']?_0x18a6dc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4084d8,_0x56d2b5){const _0x19d0ab=_0x4084d8['getFirstMarker']();this['_model']['change'](_0x527223=>{_0x527223['updateMarker'](_0x19d0ab,{'range':_0x56d2b5});});}['_addThreadToSuggestion'](_0x5e4785){const _0x16f293=_0x5e4785['id'],_0x3f48fb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16f293)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3f48fb,'threadId':_0x16f293,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x121172=this['_commentsRepository']['getCommentThread'](_0x16f293);_0x121172['unbind']('isRemovable'),_0x121172['isRemovable']=!0x1,_0x5e4785['commentThread']=_0x121172;}['_checkSuggestionCorrectness'](_0xe2e8e1,_0x861c00,_0x590bee,_0x4ab92f){if(_0xe2e8e1['type']!=_0x861c00||_0xe2e8e1['subType']!=_0x590bee||_0xe2e8e1['creator']['id']!=_0x4ab92f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x514bf6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x574843,_0x3b0fce){const _0x4f23e5=_0x574843['getFirstRange']();if(_0x3b0fce['isEqual'](_0x4f23e5))_0x574843['removeMarkers']();else{if(_0x4f23e5['containsRange'](_0x3b0fce)){const _0x1eadcf=this['_model']['createPositionAt'](_0x3b0fce['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x574843,this['_model']['createRange'](_0x4f23e5['start'],_0x1eadcf));const _0x1ac393=_0x278a82(),_0x16e28e=_0x574843['creator']['id'],_0x51e6f2=_0x574843['type']+':'+_0x574843['subType'];this['_setSuggestionData']({'id':_0x1ac393,'type':_0x51e6f2,'createdAt':new Date(),'authorId':_0x16e28e,'data':_0x574843['data'],'attributes':_0x574843['attributes']});const _0xcdd02f=this['_model']['createPositionAt'](_0x3b0fce['end']['parent'],'after'),_0x3ee160=this['_model']['createRange'](_0xcdd02f,_0x4f23e5['end']);this['_addSuggestionMarker'](_0x51e6f2,_0x1ac393,_0x16e28e,_0x3ee160);}else{if(_0x4f23e5['containsPosition'](_0x3b0fce['start'])){const _0x519589=this['_model']['createPositionAt'](_0x3b0fce['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x574843,this['_model']['createRange'](_0x4f23e5['start'],_0x519589));}else{const _0x2c03dd=this['_model']['createPositionAt'](_0x3b0fce['end']['parent'],'after');this['_setSuggestionRange'](_0x574843,this['_model']['createRange'](_0x2c03dd,_0x4f23e5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xf2123f){for(const {suggestion:_0x2dbc03,meta:_0x405e4b}of this['_findSuggestions'](_0xf2123f,'insertion')){if(!_0x405e4b['isOwn'])continue;const _0x3b3a98=_0x2dbc03['getRanges']();for(const _0x951aa of _0x3b3a98)if(!_0xf2123f['getDifference'](_0x951aa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43da33){const _0xa93614=this['editor']['plugins']['get']('Users')['getUser'](_0x43da33);if(!_0xa93614)throw new _0x514bf6('track-changes-user-not-found',this);return _0xa93614;}['_getExternalAuthor'](_0x3fa2eb){const _0x26bffd=this['editor']['plugins']['get']('Users'),_0x4b9ae8=_0x35a39a('external:'+_0x3fa2eb),_0x34524a=_0x26bffd['getUser'](_0x4b9ae8);return _0x34524a||_0x26bffd['addUser']({'id':_0x4b9ae8,'name':_0x3fa2eb});}['_createSuggestion'](_0x2070a3,_0xc0c429,_0x48b18b,_0xf26042,_0x4346d0){const _0x6512c2=this['_getAuthorFromId'](_0xf26042),_0x1149d3=this['_suggestionFactory']['buildSuggestion'](_0x2070a3,_0xc0c429,_0x48b18b,_0x6512c2,_0x4346d0,_0xedac67=>{this['_updateSuggestionData'](_0x48b18b,{'attributes':_0xedac67});const _0x3f8a5d=this['getSuggestion'](_0x48b18b);this['_joinWithAdjacentSuggestions'](new Set([_0x3f8a5d])),this['_refreshSuggestionsChain'](new Set([_0x3f8a5d]));});return this['listenTo'](_0x1149d3,'accept',()=>{this['_updateSuggestionData'](_0x48b18b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1149d3,'discard',()=>{this['_updateSuggestionData'](_0x48b18b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48b18b,_0x1149d3),this['_suggestionState']['set'](_0x1149d3,'notReady'),_0x1149d3;}['_splitMarkerName'](_0x4fb8f2){const _0x5f337b=_0x4fb8f2['split'](':');return{'group':_0x5f337b[0x0],'type':_0x5f337b[0x1],'subType':_0x5f337b['length']>=0x5?_0x5f337b[0x2]:null,'id':_0x5f337b['length']<0x5?_0x5f337b[0x2]:_0x5f337b[0x3],'authorId':_0x5f337b['length']<0x5?_0x5f337b[0x3]:_0x5f337b[0x4],'markerCount':0x6==_0x5f337b['length']?_0x5f337b[0x5]:null};}['_breakSuggestionMarker'](_0x40b317,_0x1cab42,_0x330fd9){const _0xfd1bec=_0x40b317['getFirstRange'](),_0x32016c=_0xfd1bec['start'],_0x4cc945=_0xfd1bec['end'];this['_setSuggestionRange'](_0x40b317,this['_model']['createRange'](_0x32016c,_0x1cab42));const _0xcd90d=_0x278a82(),_0x478e7f=_0x40b317['creator']['id'],_0x8e222c=_0x40b317['type']+(_0x40b317['subType']?':'+_0x40b317['subType']:'');this['_setSuggestionData']({'id':_0xcd90d,'type':_0x8e222c,'createdAt':new Date(),'authorId':_0x478e7f,'originalSuggestionId':_0x40b317['id'],'attributes':_0x40b317['attributes'],'data':_0x40b317['data']});const _0x2d05a0=this['_getAttributeKey'](_0x40b317);('formatBlock'==_0x40b317['type']||_0x2d05a0&&this['_isBlockAttribute'](_0x2d05a0))&&(_0x330fd9=this['_model']['createPositionBefore'](_0x330fd9['parent'])),this['_addSuggestionMarker'](_0x8e222c,_0xcd90d,_0x478e7f,this['_model']['createRange'](_0x330fd9,_0x4cc945));}['_findSuggestions'](_0x1319ba,_0x5e74bf=null){const _0x90a1c7=[],_0xfd2f0e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1319ba)||(_0x1319ba=[_0x1319ba]);for(const _0x524437 of this['getSuggestions']()){if(!_0x524437['isInContent'])continue;if(_0x5e74bf&&_0x524437['type']!=_0x5e74bf)continue;let _0xd1afb5=!0x1;for(const _0x141e9c of _0x524437['getRanges']()){for(const _0x3cdd60 of _0x1319ba){const _0x162638=_0x3cdd60['start']['isEqual'](_0x141e9c['end'])||_0x3cdd60['end']['isEqual'](_0x141e9c['start']);if(_0x162638||_0x3cdd60['getIntersection'](_0x141e9c)){const _0x2bb050=_0x3cdd60['containsRange'](_0x141e9c)&&Rt(this['_model']['schema'],_0x141e9c['start'],_0x3cdd60),_0x47ab62=_0x141e9c['containsRange'](_0x3cdd60)&&Rt(this['_model']['schema'],_0x3cdd60['start'],_0x141e9c);_0x90a1c7['push']({'suggestion':_0x524437,'meta':{'isOwn':_0xfd2f0e==_0x524437['author'],'isNextTo':_0x162638,'isInsideObject':_0x2bb050,'containsRangeInObject':_0x47ab62}}),_0xd1afb5=!0x0;break;}}if(_0xd1afb5)break;}}return _0x90a1c7;}['_addSuggestionMarker'](_0x11d3a2,_0x20c4ec,_0x38ef84,_0x26cf26,_0x451778){this['_model']['change'](_0x4dd00d=>{let _0xc2844e='suggestion:'+_0x11d3a2+':'+_0x20c4ec+':'+_0x38ef84;_0x451778&&(_0xc2844e=_0xc2844e+':'+_0x451778),_0x4dd00d['addMarker'](_0xc2844e,{'range':_0x26cf26,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3723b3){const _0x30c898=_0x3723b3['previous'],_0x55f911=_0x3723b3['next'];_0x3723b3['previous']=null,_0x3723b3['next']=null,null!=_0x30c898&&_0x30c898['next']==_0x3723b3&&(_0x30c898['next']=_0x55f911),null!=_0x55f911&&_0x55f911['previous']==_0x3723b3&&(_0x55f911['previous']=_0x30c898),'ready'==this['_suggestionState']['get'](_0x3723b3)&&(this['_suggestionState']['set'](_0x3723b3,'removed'),this['fire']('suggestionUnloaded',_0x3723b3,_0x30c898,_0x55f911));}['_setSuggestionData'](_0x2950e3){const _0x9dcb9=_0x2950e3['id'],_0x4ca2a3=this['addSuggestionData'](_0x2950e3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34fa8b=this['editor']['plugins']['get']('PendingActions'),_0x5d77c6=_0x4ca2a3['hasComments'],_0x1f3f36=_0x4ca2a3['subType']?_0x4ca2a3['type']+':'+_0x4ca2a3['subType']:_0x4ca2a3['type'],_0x1fcde5=this['editor']['locale'],_0x42e36b=_0x34fa8b['add'](o(_0x1fcde5,'PENDING_ACTION_SUGGESTION')),_0x1f6793={'id':_0x9dcb9,'type':_0x1f3f36,'hasComments':_0x5d77c6,'data':_0x2950e3['data']||null,'originalSuggestionId':_0x2950e3['originalSuggestionId']||null,'attributes':_0x4ca2a3['attributes']};this['_adapter']['addSuggestion'](_0x1f6793)['then'](_0x12ae9c=>{_0x4ca2a3['_saved']=!0x0,_0x34fa8b['remove'](_0x42e36b),_0x12ae9c&&_0x12ae9c['createdAt']&&(this['_suggestions']['get'](_0x9dcb9)['createdAt']=_0x12ae9c['createdAt']);})['catch'](_0x1978f1=>{throw _0x320ee5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4ca2a3['discard']();}),_0x4ca2a3['stopListening'](),this['_suggestions']['delete'](_0x4ca2a3['id']),this['_suggestionState']['delete'](_0x4ca2a3),_0x1978f1;});}return _0x4ca2a3;}['_isBlockAttribute'](_0x953030){return this['_blockAttributeKeys']['has'](_0x953030);}['_updateSuggestionData'](_0x45eee3,_0xd9df89){const _0x457297=this['editor']['plugins']['get']('PendingActions'),_0x405775=this['getSuggestion'](_0x45eee3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x405775['_saved']){const _0x1ea397=_0x457297['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x45eee3,_0xd9df89)['then'](()=>{_0x457297['remove'](_0x1ea397);});}else _0x405775['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x45eee3,_0xd9df89);});}}['_getSuggestionData'](_0x2e7610){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x514bf6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e7610);}['_handleNewSuggestionMarker'](_0xaf7fe1){const {id:_0x4d409b,type:_0x1cb583,subType:_0x33417a,authorId:_0x3a3a33}=this['_splitMarkerName'](_0xaf7fe1),_0x217cb0=this['_suggestions']['get'](_0x4d409b)||this['_createSuggestion'](_0x1cb583,_0x33417a,_0x4d409b,_0x3a3a33,{});switch(this['_checkSuggestionCorrectness'](_0x217cb0,_0x1cb583,_0x33417a,_0x3a3a33),this['_suggestionState']['get'](_0x217cb0)){case'notReady':this['_getSuggestionData'](_0x4d409b)['then'](_0x2f8bf9=>{let _0x47ac13=Promise['resolve']();_0x2f8bf9['hasComments']&&(_0x47ac13=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d409b})),_0x47ac13['then'](()=>{this['addSuggestionData'](_0x2f8bf9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x217cb0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d409b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x217cb0,'ready'),this['fire']('suggestionLoaded',_0x217cb0);break;case'ready':this['fire']('suggestionChanged',_0x217cb0);}return _0x217cb0['addMarkerName'](_0xaf7fe1),_0x217cb0;}['_refreshSuggestionsChain'](_0xa82537){const _0x1b4a22=Array['from'](_0xa82537),_0x56e39d=_0x1b4a22['filter'](_0x45dea3=>'attribute'==_0x45dea3['type']);this['_refreshAttributeSuggestionsChain'](_0x56e39d);const _0x5d1ea3=_0x1b4a22['filter'](_0x2736ba=>!_0x2736ba['isMultiRange']&&'attribute'!=_0x2736ba['type']),_0x14a8c4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x553535=>!_0x553535['isMultiRange']&&'attribute'!=_0x553535['type']),_0x1101bb=_0x14a8c4['filter'](_0x53de2a=>!_0xa82537['has'](_0x53de2a)),_0x40e1b9=new Map(_0x14a8c4['map'](_0x367ad9=>[_0x367ad9,this['_suggestionFactory']['getSuggestionCallback'](_0x367ad9['type'],_0x367ad9['subType'],'chain')])),_0x32ecd3=new Map(_0x14a8c4['map'](_0x139f71=>[_0x139f71,_0x139f71['getFirstRange']()])),_0x2d3b7a=new Set(),_0x49375e=new Set();for(let _0x15f321=0x0;_0x15f321<_0x5d1ea3['length'];_0x15f321++)_0x48177c(_0x5d1ea3[_0x15f321],_0x5d1ea3,_0x15f321+0x1);for(let _0x4efbe5=0x0;_0x4efbe5<_0x5d1ea3['length'];_0x4efbe5++)_0x48177c(_0x5d1ea3[_0x4efbe5],_0x1101bb,0x0);const _0x5b3b7f=new Set();for(let _0xf5dde8=0x0;_0xf5dde8<_0x5d1ea3['length'];_0xf5dde8++){const _0x1b2027=_0x5d1ea3[_0xf5dde8];!_0x49375e['has'](_0x1b2027)&&_0x1b2027['previous']&&(_0x5b3b7f['add'](_0x1b2027['previous']),_0x1b2027['previous']['next']===_0x1b2027&&(_0x1b2027['previous']['next']=null),_0x1b2027['previous']=null),!_0x2d3b7a['has'](_0x1b2027)&&_0x1b2027['next']&&(_0x5b3b7f['add'](_0x1b2027['next']),_0x1b2027['next']['previous']===_0x1b2027&&(_0x1b2027['next']['previous']=null),_0x1b2027['next']=null);}function _0x48177c(_0x4fcf23,_0x2ba9e4,_0x2ed95b){for(let _0x4639d0=_0x2ed95b;_0x4639d0<_0x2ba9e4['length'];_0x4639d0++){const _0x551720=_0x2f04dc(_0x4fcf23,_0x2ba9e4[_0x4639d0]);_0x551720&&(_0x551720[0x0]['next']=_0x551720[0x1],_0x551720[0x1]['previous']=_0x551720[0x0],_0x2d3b7a['add'](_0x551720[0x0]),_0x49375e['add'](_0x551720[0x1]));}}function _0x2f04dc(_0x20a042,_0xc67d3b){if(_0x20a042['author']['id']!==_0xc67d3b['author']['id'])return null;const _0x3eb664=_0x40e1b9['get'](_0x20a042)(_0x20a042,_0xc67d3b,_0x32ecd3['get'](_0x20a042),_0x32ecd3['get'](_0xc67d3b));if(!_0x3eb664)return null;return _0x40e1b9['get'](_0xc67d3b)(_0x20a042,_0xc67d3b,_0x32ecd3['get'](_0x20a042),_0x32ecd3['get'](_0xc67d3b))?_0x3eb664[0x1]['commentThread']&&_0x3eb664[0x1]['commentThread']['length']?null:_0x3eb664:null;}_0x5b3b7f['size']&&this['_refreshSuggestionsChain'](_0x5b3b7f);}['_refreshAttributeSuggestionsChain'](_0x2a33f1){if(0x0==_0x2a33f1['length'])return;const _0x111d7f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d33c=>'attribute'==_0x31d33c['type']&&_0x31d33c['_isDataLoaded']),_0x167aba=[],_0x309bbb=new Map();for(const _0x408277 of _0x111d7f){const _0x439f15=_0x35a39a(_0x408277['attributes']);_0x309bbb['has'](_0x439f15)||(_0x309bbb['set'](_0x439f15,_0x167aba['length']),_0x167aba['push']([]));const _0xc1f75e=_0x309bbb['get'](_0x439f15);_0x167aba[_0xc1f75e]['push'](_0x408277);}!(function(){_0x167aba['sort']((_0x591780,_0x198c3a)=>{const _0x5afe41=_0x591780[0x0]['createdAt'],_0xfbce45=_0x198c3a[0x0]['createdAt'];return _0x5afe41==_0xfbce45?_0x591780[0x0]['attributes']['groupId']<_0x198c3a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5afe41<_0xfbce45?-0x1:0x1;});for(const _0x2f0faa of _0x167aba)_0x2f0faa['sort']((_0x303c74,_0x1b693f)=>_0x303c74['id']<_0x1b693f['id']?-0x1:0x1);}());for(let _0x1af3bc=0x0;_0x1af3bc<_0x167aba['length'];_0x1af3bc++){if(0x0==_0x167aba[_0x1af3bc]['length'])continue;const _0x15dfa3=[];for(let _0x3da38e=_0x1af3bc+0x1;_0x3da38e<_0x167aba['length'];_0x3da38e++)0x0!=_0x167aba[_0x3da38e]['length']&&_0x2c90ac(_0x167aba[_0x1af3bc],_0x167aba[_0x3da38e])&&_0x15dfa3['push'](_0x3da38e);for(const _0x2f1057 of _0x15dfa3)_0x167aba[_0x1af3bc]=_0x167aba[_0x1af3bc]['concat'](_0x167aba[_0x2f1057]),_0x167aba[_0x2f1057]=[];}for(const _0x326f43 of _0x167aba)for(let _0xb7726f=0x0;_0xb7726f<_0x326f43['length'];_0xb7726f++)_0x326f43[_0xb7726f]['next']=_0x326f43[_0xb7726f+0x1]||null;for(const _0x564a2b of _0x167aba)for(let _0x3017ad=0x0;_0x3017ad<_0x564a2b['length'];_0x3017ad++)_0x564a2b[_0x3017ad]['previous']=_0x564a2b[_0x3017ad-0x1]||null;function _0x2c90ac(_0x32a085,_0x3a6ca6){if(_0x32a085[0x0]['attributes']['groupId']!==_0x3a6ca6[0x0]['attributes']['groupId']&&_0x32a085[0x0]['author']!==_0x3a6ca6[0x0]['author'])return!0x1;if(!function(_0x1ff0c6,_0x34febd){if(!_0x1ff0c6['hasComments']&&!_0x34febd['hasComments'])return!0x0;if(_0x1ff0c6['hasComments']&&_0x34febd['hasComments'])return!0x1;if(_0x1ff0c6['hasComments']&&_0x34febd['createdAt']<_0x1ff0c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x34febd['hasComments']&&_0x1ff0c6['createdAt']<_0x34febd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x32a085[0x0],_0x3a6ca6[0x0]))return!0x1;const _0x1ca2d6=Bt(_0x32a085[0x0]['attributes'],'groupId'),_0x11f18f=Bt(_0x3a6ca6[0x0]['attributes'],'groupId');if(!_0x3c4be2(_0x1ca2d6,_0x11f18f))return!0x1;return!!_0x32a085['every'](_0x30f4cc=>_0x3a6ca6['some'](_0x42b1be=>_0x30f4cc['getFirstRange']()['isEqual'](_0x42b1be['getFirstRange']())))&&_0x3a6ca6['every'](_0x455a5f=>_0x32a085['some'](_0x6e9b44=>_0x455a5f['getFirstRange']()['isEqual'](_0x6e9b44['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe4d6f0){const _0x4cc5d1=Array['from'](_0xe4d6f0),_0x2bc99a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c3dad=_0x2bc99a['filter'](_0x49569a=>!_0xe4d6f0['has'](_0x49569a)),_0x23d0e0=new Map(_0x4cc5d1['map'](_0x347eb2=>[_0x347eb2,this['_suggestionFactory']['getSuggestionCallback'](_0x347eb2['type'],_0x347eb2['subType'],'join')])),_0x45b4e8=new Map(_0x2bc99a['map'](_0x246c5b=>[_0x246c5b,_0x246c5b['getRanges']()]));for(let _0x4a72ad=0x0;_0x4a72ad<_0x4cc5d1['length'];_0x4a72ad++){if(_0xaa2c52(this,_0x4cc5d1[_0x4a72ad],_0x4cc5d1,_0x4a72ad+0x1))return!0x0;}for(let _0x4869eb=0x0;_0x4869eb<_0x4cc5d1['length'];_0x4869eb++){if(_0xaa2c52(this,_0x4cc5d1[_0x4869eb],_0x2c3dad,0x0))return!0x0;}return!0x1;function _0xaa2c52(_0x17b8a4,_0x4a1eef,_0x5442b5,_0x2057ec){for(let _0x1ad39c=_0x2057ec;_0x1ad39c<_0x5442b5['length'];_0x1ad39c++){const _0x26c0cb=_0x5442b5[_0x1ad39c];if(_0x26c0cb['type']!==_0x4a1eef['type']||_0x26c0cb['author']['id']!==_0x4a1eef['author']['id']||_0x26c0cb['subType']!==_0x4a1eef['subType'])continue;if(!Pt(_0x4a1eef,_0x26c0cb,['groupId']))continue;if('attribute'==_0x4a1eef['type']&&_0x4a1eef['data']['oldValue']!=_0x26c0cb['data']['oldValue'])continue;if('attribute'==_0x4a1eef['type']&&_0x17b8a4['_isBlockAttribute'](_0x4a1eef['data']['key']))continue;if('formatBlock'==_0x4a1eef['type']){const _0x1f4b60=_0x17b8a4['editor']['model'],_0x53a06d=_0x4a1eef['getContainedElement']();if(_0x53a06d&&(_0x1f4b60['schema']['isObject'](_0x53a06d)||_0x1f4b60['schema']['isLimit'](_0x53a06d)))continue;}const _0x1e2274=_0x23d0e0['get'](_0x4a1eef),_0xd32b85=_0x45b4e8['get'](_0x4a1eef),_0x83066c=_0x45b4e8['get'](_0x26c0cb),_0x227147=_0x4a1eef['commentThread']&&_0x4a1eef['commentThread']['length'],_0x325f4f=_0x26c0cb['commentThread']&&_0x26c0cb['commentThread']['length'];if(!_0x227147&&_0x1e2274(_0x83066c,_0xd32b85))return _0x17b8a4['_joinSuggestions'](_0x26c0cb,_0x4a1eef),_0x45b4e8['delete'](_0x4a1eef),!0x0;if(!_0x325f4f&&_0x1e2274(_0xd32b85,_0x83066c))return _0x17b8a4['_joinSuggestions'](_0x4a1eef,_0x26c0cb),_0x45b4e8['delete'](_0x26c0cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x906615,_0x2ed321){if(_0x906615['isMultiRange']){for(const _0x553c73 of _0x2ed321['getRanges']())_0x906615['addRange'](_0x553c73);}else{const _0x4e3441=_0x2ed321['getFirstRange']()['end'];this['_setSuggestionRange'](_0x906615,this['_model']['createRange'](_0x906615['getFirstRange']()['start'],_0x4e3441));}_0x2ed321['removeMarkers']();}['_getMarkerAnnouncementText'](_0x27bbf3,_0x4ad50e){const _0x46385a=_0x27bbf3['startsWith']('format')||_0x27bbf3['startsWith']('attribute')?'FORMATTING':_0x27bbf3['toUpperCase']();return o(this['editor']['locale'],_0x4ad50e+'_'+_0x46385a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x39727b=this['editor'];if(!_0x39727b['ui'])return;const {ariaLiveAnnouncer:_0x222735}=_0x39727b['ui'];_0x55508a(this['_model'],({left:_0x817905,entered:_0x248a03})=>{for(const _0x487a1e of _0x817905){const {group:_0x25a554,type:_0x384387}=this['_splitMarkerName'](_0x487a1e['name']);if('suggestion'===_0x25a554){_0x222735['announce'](this['_getMarkerAnnouncementText'](_0x384387,'LEAVE'));break;}}for(const _0x4664b2 of _0x248a03){const {group:_0x51074a,type:_0x3b971c}=this['_splitMarkerName'](_0x4664b2['name']);if('suggestion'===_0x51074a){_0x222735['announce'](this['_getMarkerAnnouncementText'](_0x3b971c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x53c9ec){if(this['_recordAttributeSuggestions'])return!0x1;const _0x30fcf9=this['editor'],_0x1167fe=_0x30fcf9['model']['document']['differ']['getChanges']();if(0x0==_0x1167fe['length'])return!0x1;const _0x27f7d0=[],_0x45d270=_0x1167fe['filter'](_0x3d1f0c=>'attribute'==_0x3d1f0c['type']),_0x310997=_0x1167fe['filter'](_0x157474=>'insert'==_0x157474['type']&&'$text'!=_0x157474['name']),_0x1467ae=_0x1167fe['filter'](_0x551c66=>'remove'==_0x551c66['type']&&'$text'!=_0x551c66['name']);for(const _0x39beef of _0x45d270)_0x27f7d0['push']({'key':_0x39beef['attributeKey'],'newValue':_0x39beef['attributeNewValue'],'oldValue':_0x39beef['attributeOldValue'],'range':Ot(_0x39beef['range'],_0x30fcf9['model'])});for(const _0x45b2f0 of _0x310997){const _0x484121=_0x1467ae['find'](_0x1895d5=>_0x1895d5['position']['isEqual'](_0x45b2f0['position']));_0x484121&&_0x27f7d0['push']({'key':m,'newValue':_0x45b2f0['name'],'oldValue':_0x484121['name'],'range':_0x30fcf9['model']['createRangeOn'](_0x45b2f0['position']['nodeAfter'])});}return 0x0!=_0x27f7d0['length']&&this['_reduceExistingSuggestions'](_0x53c9ec,_0x27f7d0);}['_processAttributeSuggestions'](_0xea90bb){let _0x195801=!0x1;const _0x8f2c93=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d6842=>_0x4d6842['data']['newRange']&&_0x4d6842['name']['startsWith']('suggestion:attribute:'));for(const _0x5c1635 of _0x8f2c93){const {subType:_0x2699e3,id:_0xedb77b}=this['_splitMarkerName'](_0x5c1635['name']),_0x33c823=_0x2699e3['split']('|')[0x0];for(const _0x784c6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x784c6['id']!=_0xedb77b&&'attribute'==_0x784c6['type']&&_0x784c6['data']&&_0x784c6['data']['key']==_0x33c823&&_0x784c6['getFirstRange']()['isIntersecting'](_0x5c1635['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x784c6,_0x5c1635['data']['newRange'],_0xea90bb),_0x195801=!0x0);}return _0x195801;}['_recordAttributeChanges'](_0x422ac3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x422ac3();}['_isRegisteredAttribute'](_0x5d6dc5){const _0x328c9d=this['_isBlockAttribute'](_0x5d6dc5),_0x17cb4e=this['_inlineAttributeKeys']['has'](_0x5d6dc5);return _0x328c9d||_0x17cb4e;}['_reduceExistingSuggestions'](_0x42dad1,_0x29a2c3){if(0x0==_0x29a2c3['length'])return!0x1;let _0x2786c7=!0x1;for(const _0x471006 of _0x29a2c3){const _0x3e4100=this['_findSuggestions'](_0x471006['range'],'attribute')['filter'](_0x3a26cb=>!_0x3a26cb['meta']['isNextTo'])['map'](_0x39919f=>_0x39919f['suggestion']),_0x12f239=_0x35a39a({'newValue':_0x471006['newValue']});_0x3e4100['filter'](_0x4f03d1=>{const [_0x495d2b,_0xf0a0c6]=_0x4f03d1['subType']['split']('|');return _0x495d2b==_0x471006['key']&&_0xf0a0c6!=_0x12f239;})['forEach'](_0x1875ab=>{this['_reduceSuggestionAttributeRange'](_0x1875ab,_0x471006['range'],_0x42dad1),_0x2786c7=!0x0;});}return _0x2786c7;}['_reduceSuggestionAttributeRange'](_0x566961,_0x21ee0a,_0x44aa18){const _0x574775=_0x566961['getFirstRange']()['getDifference'](_0x21ee0a);0x0!==_0x574775['length']?0x1!==_0x574775['length']?this['_breakSuggestionMarker'](_0x566961,_0x21ee0a['start'],_0x21ee0a['end']):this['_setSuggestionRange'](_0x566961,_0x574775[0x0]):_0x44aa18['removeMarker'](_0x566961['getFirstMarker']());}constructor(_0x7a63a5){function _0x5b262e(_0x25b2c0){return _0x25b2c0['map'](_0x299388=>String['fromCharCode'](_0x299388))['join']('');}super(_0x7a63a5),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4527a0,_0x5d695f,_0x2ce6e0,_0x4097db)=>{this['_model']['change'](()=>{for(const _0x2b5d7b of[..._0x4097db,..._0x2ce6e0])this['_model']['markers']['has'](_0x2b5d7b)&&_0x7a63a5['editing']['reconvertMarker'](_0x2b5d7b);});}),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']=_0x7a63a5['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(),_0x7a63a5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x7a63a5['config']['get']('trackChanges.trackFormatChanges'),_0x7a63a5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x7a63a5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x7a63a5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5b262e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5b262e([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x38]);}}class xt{['buildSuggestion'](_0x2b6568,_0x51e748,_0x98c160,_0x20fd99,_0x700b29,_0x11e315){return new u(this['_model'],{'type':_0x2b6568,'subType':_0x51e748,'id':_0x98c160,'author':_0x20fd99,'creator':_0x20fd99,'attributes':_0x700b29,'onAttributesChange':_0x11e315,'onAccept':(..._0x23ea10)=>this['getSuggestionCallback'](_0x2b6568,_0x51e748,'accept')(..._0x23ea10),'onDiscard':(..._0x36d493)=>this['getSuggestionCallback'](_0x2b6568,_0x51e748,'discard')(..._0x36d493)});}['registerCustomCallback'](_0x3027aa,_0xb773b0,_0x206343,_0x48f06d){const _0x4f8064=_0x3027aa+':'+_0xb773b0+':'+_0x206343;this['_customCallbacks']['set'](_0x4f8064,_0x48f06d);}['getSuggestionCallback'](_0x43bfd9,_0x3b8c0f,_0x35891f){const _0xd4124a=_0x43bfd9+':'+_0x3b8c0f+':'+_0x35891f;return this['_customCallbacks']['get'](_0xd4124a)||this['_defaultCallbacks']['get'](_0x43bfd9+':'+_0x35891f);}['_registerDefaultCallbacks'](){const _0x14dff6=()=>!0x1,_0x2c45d0=_0x5bc659=>{_0x5bc659['sort']((_0x188291,_0x2ca19f)=>_0x188291['start']['isBefore'](_0x2ca19f['start'])?0x1:-0x1),this['_model']['change'](_0x5edf21=>{for(const _0x3e5533 of _0x5bc659){let _0x3100a7;_0x3100a7=_0x3e5533['end']['isAtEnd']&&_0x3e5533['end']['parent']==_0x3e5533['start']['nodeAfter']?_0x5edf21['createSelection'](_0x3e5533['start']['nodeAfter'],'on'):_0x5edf21['createSelection'](_0x3e5533),this['_model']['deleteContent'](_0x3100a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3fa1d9=(_0x5643ed,_0x159a80)=>{_0x159a80&&this['_model']['change'](_0x44b194=>{const {commandName:_0x4fcad0,commandParams:_0x19a42d=[]}=_0x159a80,_0x1700bb=_0x5643ed['map'](_0x878551=>(Tt(_0x878551)&&(_0x878551=this['_model']['createRange'](_0x878551['end'])),_0x878551))['filter'](_0x509481=>'$graveyard'!==_0x509481['root']['rootName']);if(_0x1700bb['length']<0x1)return;const _0x412bb7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5e79bf=>_0xb3bd9b['fromRange'](_0x5e79bf));_0x44b194['setSelection'](_0x1700bb);for(const _0x3cdb1e of this['_editor']['commands']['commands']())_0x3cdb1e['refresh']();_0x19a42d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4fcad0,..._0x19a42d);const _0x565aa9=_0x412bb7['filter'](_0x1d014b=>'$graveyard'!=_0x1d014b['root']['rootName']);_0x565aa9['length']>0x0&&_0x44b194['setSelection'](_0x565aa9);for(const _0xa62969 of _0x412bb7)_0xa62969['detach']();});},_0x2a0ef6=(_0x1c9729,_0x52ea01)=>0x1==_0x1c9729['length']&&0x1==_0x52ea01['length']&&_0x1c9729[0x0]['end']['isEqual'](_0x52ea01[0x0]['start']),_0x3df625=(_0x249a17,_0x428989,_0x258add,_0x3fd0fb)=>Gt(_0x249a17,_0x428989,_0x258add,_0x3fd0fb,this['_model'])?[_0x249a17,_0x428989]:Gt(_0x428989,_0x249a17,_0x3fd0fb,_0x258add,this['_model'])?[_0x428989,_0x249a17]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14dff6),this['_defaultCallbacks']['set']('insertion:discard',_0x2c45d0),this['_defaultCallbacks']['set']('insertion:join',_0x2a0ef6),this['_defaultCallbacks']['set']('insertion:chain',_0x3df625),this['_defaultCallbacks']['set']('deletion:accept',_0x2c45d0),this['_defaultCallbacks']['set']('deletion:discard',_0x14dff6),this['_defaultCallbacks']['set']('deletion:join',_0x2a0ef6),this['_defaultCallbacks']['set']('deletion:chain',_0x3df625),this['_defaultCallbacks']['set']('formatInline:accept',_0x3fa1d9),this['_defaultCallbacks']['set']('formatInline:discard',_0x14dff6),this['_defaultCallbacks']['set']('formatInline:join',_0x2a0ef6),this['_defaultCallbacks']['set']('formatInline:chain',_0x14dff6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3fa1d9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14dff6),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a0ef6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14dff6),this['_defaultCallbacks']['set']('attribute:accept',_0x14dff6),this['_defaultCallbacks']['set']('attribute:discard',(_0x59cffc,_0x372276)=>{if(!_0x372276)return;const _0x4029b8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50dcbd=>{if(_0x372276['key']==m)for(const _0x3272d1 of _0x59cffc){const _0x42edae=_0x3272d1['start']['nodeAfter'],_0x5ed0e8=_0x372276['oldValue'];_0x50dcbd['rename'](_0x42edae,_0x5ed0e8);}else{if(_0x4029b8['_isBlockAttribute'](_0x372276['key'])){for(const _0x3468f4 of _0x59cffc)void 0x0!==_0x372276['oldValue']?_0x50dcbd['setAttribute'](_0x372276['key'],_0x372276['oldValue'],_0x3468f4['start']['nodeAfter']):_0x50dcbd['removeAttribute'](_0x372276['key'],_0x3468f4['start']['nodeAfter']);}else{for(const _0x58dace of _0x59cffc)_0x372276['oldValue']?_0x50dcbd['setAttribute'](_0x372276['key'],_0x372276['oldValue'],_0x58dace):_0x50dcbd['removeAttribute'](_0x372276['key'],_0x58dace);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a0ef6);}constructor(_0x217cfc){this['_editor']=_0x217cfc,this['_model']=_0x217cfc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x2cebf3,_0x4deb23,_0x3ae636){for(const _0x27334b of _0x4deb23['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27334b['root']==_0x27334b)return!0x1;if(!_0x3ae636['containsItem'](_0x27334b))return!0x1;if(_0x2cebf3['isObject'](_0x27334b)||_0x2cebf3['isLimit'](_0x27334b))return!0x0;}return!0x1;}function Tt(_0x342656){return _0x342656['end']['parent']==_0x342656['start']['nodeAfter']&&_0x342656['end']['isAtStart'];}function Et(_0x30c675,_0x12cbb3,_0x41f7ea,_0x2c9bfc){const _0x2b3c7a=_0x405a06=>!_0x405a06['item']['is']('$textProxy')&&!_0x2c9bfc['isObject'](_0x405a06['item']),_0x3a2a29=_0x30c675['start']['getLastMatchingPosition'](_0x2b3c7a),_0x5becdc=_0x30c675['end']['getLastMatchingPosition'](_0x2b3c7a,{'direction':'backward'});return(!_0x30c675['start']['isEqual'](_0x3a2a29)||!_0x30c675['end']['isEqual'](_0x5becdc))&&(_0x3a2a29['isBefore'](_0x5becdc)?_0x41f7ea['updateMarker'](_0x12cbb3,{'range':_0x41f7ea['createRange'](_0x3a2a29,_0x5becdc)}):_0x41f7ea['removeMarker'](_0x12cbb3),!0x0);}function Vt(_0x138896){return _0x35a39a(_0x138896);}function Ut(_0x31b190){const _0x25c00d=_0x31b190['start']['nodeAfter'];return _0x25c00d&&_0x25c00d['is']('element');}function Ot(_0x2035da,_0x182c42){return null==_0x2035da['end']['nodeBefore']&&_0x2035da['end']['parent']==_0x2035da['start']['nodeAfter']?Ft(_0x2035da['start']['nodeAfter'],_0x182c42):_0x2035da;}function Ft(_0x2fbe4d,_0x2dc55c){const _0x2b57fc=_0x2dc55c['schema']['isObject'](_0x2fbe4d)||_0x2dc55c['schema']['isSelectable'](_0x2fbe4d);return _0x2dc55c['createRange'](_0x2dc55c['createPositionAt'](_0x2fbe4d,'before'),_0x2b57fc?_0x2dc55c['createPositionAfter'](_0x2fbe4d):_0x2dc55c['createPositionAt'](_0x2fbe4d,'end'));}function Gt(_0x55f157,_0x4f9dd8,_0x400138,_0x349008,_0x3c08c0){if(!Pt(_0x55f157,_0x4f9dd8))return!0x1;if(_0x400138['end']['isEqual'](_0x349008['start']))return!0x0;if(_0x55f157['type']!=_0x4f9dd8['type'])return!0x1;if(!_0x400138['end']['isTouching'](_0x349008['start']))return!0x1;const _0x440b52=_0x3c08c0['createRange'](_0x400138['end'],_0x349008['start'])['getWalker']();for(const _0x4f6cd1 of _0x440b52)if(['elementStart','elementEnd']['includes'](_0x4f6cd1['type'])&&_0x3c08c0['schema']['isLimit'](_0x4f6cd1['item']))return!0x1;return!0x0;}function Pt(_0xde9641,_0x2befae,_0x34e18c=[]){return!(!_0xde9641['_isDataLoaded']||!_0x2befae['_isDataLoaded'])&&_0x3c4be2(Bt(_0xde9641['attributes'],_0x34e18c),Bt(_0x2befae['attributes'],_0x34e18c));}function Lt(_0x53d93c,_0x4c964a){const _0xe169bb=Ht(_0x53d93c['attributes']),_0x27713f=Ht(_0x4c964a);if(!_0x53d93c['_isDataLoaded'])return!0x1;for(const _0x427ffa of Object['keys'](_0x27713f))if(!_0x3c4be2(_0xe169bb[_0x427ffa],_0x27713f[_0x427ffa]))return!0x1;return!0x0;}function Ht(_0x2d86bd){const _0x2634c4=Object['assign']({},_0x2d86bd);return delete _0x2634c4['skipNestingCheck'],delete _0x2634c4['tablePasteChainId'],_0x2634c4;}class oe extends _0x31fb1d(){['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 _0x5b7918=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5b7918);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x478533,_0x19427a,_0x384981,_0x5b4638){super(),this['model']=_0x19427a,this['view']=_0x384981,this['commentThreadController']=_0x5b4638,this['_editor']=_0x478533,this['_acceptCommand']=_0x478533['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x478533['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x26fec5,_0x347801)=>_0x26fec5||_0x347801),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3954c9=>_0x3954c9&&this['_editor']['model']['canEditAt'](_0x19427a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x10282a=>_0x10282a&&this['_editor']['model']['canEditAt'](_0x19427a['getRanges']())),this['_pendingAction']=null,_0x384981['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x384981,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x384981,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x384981,'change:isDirty',()=>{_0x384981['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x574b81{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x49c9d4}=this['_config'];this['commentsListView']=new _0x49c9d4(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',_0x50049a=>_0x50049a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x58028f,_0x92e2a3)=>_0x58028f||!!_0x92e2a3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f108f}=this['_config'],_0xb1590c=new _0x3f108f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3caac1=_0xb1590c['commentInputView'];return _0xb1590c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3caac1,'value',(_0x3a1b4,_0x407b88,_0x390ba0)=>!!_0x390ba0||_0x3a1b4&&!_0x407b88),_0x3caac1['on']('submit',(_0x50f8ca,_0x3167d5)=>{this['fire']('addComment',_0x3167d5),_0x3caac1['editor']['setData']('');}),_0x3caac1['on']('cancel',()=>this['focus']()),_0x3caac1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb1590c;}constructor(_0x1872cc,_0x364600,_0x411401,_0x389c93){super(_0x1872cc),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x364600['authoredAt']),this['bind']('authoredAt')['to'](_0x364600),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x364600,this['_localUser']=_0x411401,this['_config']=_0x389c93,_0x389c93['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x57383c=this['bindTemplate'],_0x3b397e=[{'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':_0x57383c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57383c['to']('authoredAt',_0x4aa22d=>this['_config']['formatDateTime'](_0x4aa22d))}]}]},{'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']&&_0x3b397e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x56aec8={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x57383c['if']('isActive','ck-suggestion-wrapper--active'),_0x57383c['to']('type',_0x149cf3=>'ck-suggestion-'+_0x149cf3),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':_0x3b397e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x56aec8['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)),_0x56aec8;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2b2536,_0x298400,_0x4d1e5a)=>{this['_descriptionElement']['innerHTML']=_0x4d1e5a;});}['_createButton'](_0x408710,_0x170360,_0x3422d0,_0x130802,_0x2c153c){const _0x9d24e2=new _0x2ae4b7(this['locale']);return _0x9d24e2['set']({'label':_0x408710,'icon':_0x170360,'tooltip':!0x0,'tooltipPosition':_0x2c153c}),_0x9d24e2['extendTemplate']({'attributes':{'class':_0x3422d0}}),_0x9d24e2['on']('execute',()=>{this['fire'](_0x130802,this['_model']['id']);}),_0x9d24e2;}['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(_0x3a65d6,_0x411a6a,_0x40f62d,_0x24ed96){super(_0x3a65d6,_0x411a6a,_0x40f62d,_0x24ed96),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xe48882=>_0xe48882&&_0xe48882[0x0]?_0xe48882[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59098a,_0x24a8f6)=>{let _0x2dd619='';for(const _0x3570d3 of _0x59098a)_0x2dd619+='<p>'+ds(_0x3570d3['content'],_0x3570d3['color'])+'</p>';return _0x24a8f6?_0x2dd619:_0xf381dc(_0x2dd619,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3a65d6,'Accept\x20suggestion'),_0x55580e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3a65d6,'Discard\x20suggestion'),_0x55580e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x413f19(_0x3a65d6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x45ac91,_0x3ef730){let _0x441466='';return _0x441466+=_0x45ac91['split']('*')['map']((_0x578144,_0x210ded)=>_0x210ded%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x578144)+'</span>':us(_0x578144))['join'](''),_0x3ef730&&(_0x441466+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3ef730['value']+'\x22\x20title=\x22'+_0x3ef730['title']+'\x22></span>'),_0x441466;}function us(_0xfd7d77){const _0x4cbfde=document['createElement']('span');return _0x4cbfde['innerText']=_0xfd7d77,_0x4cbfde['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 _0x454bf4{static get['requires'](){return[p,_0x542b67,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x56ac0d,_0x8b0d7c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x241b3a,_0x53c466]of this['_handleControllerBuffer']){const _0x403025=this['_suggestionToController']['has'](_0x241b3a);_0x403025||_0x53c466?_0x403025&&_0x53c466&&this['_destroyController'](_0x241b3a):this['_initializeController'](_0x241b3a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56ac0d,_0x8b0d7c);}['init'](){const _0x38e077=this['editor'],_0x9bf017=_0x38e077['plugins']['get']('TrackChangesEditing'),_0xffc0c1=_0x38e077['plugins']['get']('Annotations'),_0x5bb3fc=_0x38e077['plugins']['get']('EditorAnnotations'),_0x75a223=_0x38e077['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5bb3fc['addSourceCollector'](()=>{const _0x2c561e=[];for(const [_0x5200e3,_0x1d3b8d]of Array['from'](this['_suggestionToController'])){const _0x26e3d8=_0x5200e3['getAllAdjacentSuggestions'](),_0x1030da=[];for(const _0x2432eb of _0x26e3d8){if(!_0x2432eb['isInContent'])continue;if(_0x2432eb['isMultiRange']){_0x1030da['push'](..._0x2432eb['getRanges']());continue;}const _0x42db38=_0x2432eb['getFirstRange']();if(_0x1030da['length']>0x0){const _0x3c8e40=_0x1030da[0x0]['getJoined'](_0x42db38);if(_0x3c8e40){_0x1030da[0x0]=_0x3c8e40;continue;}}_0x1030da['push'](_0x42db38);}_0x2c561e['push']([_0x1d3b8d['view'],_0x1030da]);}return _0x2c561e;}),this['listenTo'](_0x9bf017,'suggestionLoaded',(_0x315c76,_0x477d2b)=>{this['listenTo'](_0x477d2b,'change:previous',(_0x233262,_0x2b2041,_0x2aa6b2,_0x586877)=>{_0x477d2b['isInContent']&&(null==_0x2aa6b2?(this['_updateController'](_0x586877['head']),this['_handleSuggestionControllerDelayed'](_0x477d2b,!0x1)):(this['_updateController'](_0x2aa6b2['head']),null==_0x586877&&this['_handleSuggestionControllerDelayed'](_0x477d2b,!0x0)));}),null!==_0x477d2b['previous']?this['_updateController'](_0x477d2b['head']):this['_handleSuggestionControllerDelayed'](_0x477d2b,!0x1);}),this['listenTo'](_0x9bf017,'suggestionUnloaded',(_0x28603f,_0x28b126,_0x1c4b99)=>{this['stopListening'](_0x28b126,'change:previous'),this['_handleControllerBuffer']['delete'](_0x28b126),this['_suggestionToController']['has'](_0x28b126)&&this['_destroyController'](_0x28b126),_0x1c4b99&&this['_updateController'](_0x1c4b99['head']);}),this['listenTo'](_0x9bf017,'suggestionChanged',(_0x3a4f47,_0x528d63)=>{this['_updateController'](_0x528d63);}),this['listenTo'](_0xffc0c1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x75a223,'addComment',(_0x1f2586,{threadId:_0x20837b,isFromAdapter:_0x423a6d})=>{if(_0x423a6d||!_0x9bf017['hasSuggestion'](_0x20837b))return;const _0x232668=_0x9bf017['getSuggestion'](_0x20837b);this['_suggestionToController']['get'](_0x232668)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x134e1f=this['editor']['plugins']['get']('Annotations'),_0x1817d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a7387=Array['from'](_0x134e1f['activeAnnotations'],_0x54f2cd=>_0x54f2cd['innerView'])['filter'](_0x3fbfd9=>this['_viewToController']['has'](_0x3fbfd9)),_0x51b465=[];for(const _0x58a63b of _0x4a7387){const _0xb256f9=this['_viewToController']['get'](_0x58a63b)['model']['getAllAdjacentSuggestions']();_0x51b465['push'](..._0xb256f9['reduce']((_0x220379,_0x46dc9b)=>[..._0x220379,..._0x46dc9b['getMarkerNames']()],[]));}_0x1817d4['activeMarkers']=_0x51b465;}['_addUIComponentsToFactory'](){const _0x50af9f=this['editor'],_0x422d41=_0x50af9f['locale'],_0x38c78c=o(_0x422d41,'Track\x20changes'),_0x1f17c0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x38c78c,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x422d41,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x46f0c2 of _0x1f17c0)if(ae(_0x46f0c2)){const _0x36bc54=_0x50af9f['commands']['get'](_0x46f0c2['model']['commandName']);_0x46f0c2['model']['bind']('isOn','isEnabled')['to'](_0x36bc54,'value','isEnabled');}_0x50af9f['ui']['componentFactory']['add']('trackChanges',_0x584a3c=>this['_createToolbarButton'](_0x584a3c,_0x1f17c0,_0x38c78c)),_0x50af9f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d9df8=>this['_createMenuBarMenu'](_0x1d9df8,_0x1f17c0,_0x38c78c));}['_createToolbarButton'](_0xf48131,_0x33b2b5,_0x3a64f5){const _0x49fdff=zt(_0xf48131,Zt),_0xcd9be3=this['editor']['commands']['get']('trackChanges');_0x49fdff['buttonView']['set']({'tooltip':_0x3a64f5,'label':_0x3a64f5,'icon':ie}),_0x49fdff['buttonView']['bind']('isOn')['to'](_0xcd9be3,'value'),_0x49fdff['buttonView']['on']('execute',()=>{_0xcd9be3['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x49fdff,_0x33b2b5);const _0x9c4903=[];for(const _0x4373ad of _0x33b2b5)ae(_0x4373ad)&&_0x9c4903['push'](this['editor']['commands']['get'](_0x4373ad['model']['commandName']));const _0x5f237d=_0x49fdff['buttonView'];return _0x5f237d['actionView']['unbind']('isEnabled'),_0x5f237d['arrowView']['unbind']('isEnabled'),_0x5f237d['actionView']['bind']('isEnabled')['to'](_0xcd9be3,'isEnabled'),_0x5f237d['arrowView']['bind']('isEnabled')['toMany'](_0x9c4903,'isEnabled',(..._0x11f02e)=>_0x11f02e['some'](_0xf558b2=>_0xf558b2)),_0x49fdff['on']('execute',_0x19c4fe=>{this['editor']['execute'](_0x19c4fe['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x49fdff;}['_createMenuBarMenu'](_0x994c93,_0x296c8b,_0x23e743){const _0x34fe39=new Kt(_0x994c93),_0x17c592=this['editor']['commands']['get']('trackChanges');_0x34fe39['buttonView']['set']({'label':_0x23e743,'icon':ie});const _0x1f9a18=new Qt(_0x994c93);for(const _0x4fc531 of _0x296c8b){if('separator'==_0x4fc531['type']){_0x1f9a18['items']['add'](new Jt(_0x994c93));continue;}const _0x1384ff=new Xt(_0x994c93,_0x34fe39),_0x4a579c=new Yt(_0x994c93),_0x506066=_0x4fc531['model'];_0x4a579c['bind'](...Object['keys'](_0x506066))['to'](_0x506066),_0x4a579c['delegate']('execute')['to'](_0x34fe39),_0x4a579c['on']('execute',()=>{this['editor']['execute'](_0x506066['commandName']),this['editor']['editing']['view']['focus']();}),_0x1384ff['children']['add'](_0x4a579c),_0x1f9a18['items']['add'](_0x1384ff);}return _0x34fe39['bind']('isEnabled')['to'](_0x17c592,'isEnabled'),_0x34fe39['panelView']['children']['add'](_0x1f9a18),_0x34fe39;}['_initializeController'](_0xb56235){const _0x44d8bd=this['editor'],_0x90b070=_0x44d8bd['config'],_0x602d81=_0x44d8bd['plugins']['get']('Annotations'),_0x295914=_0x44d8bd['plugins']['get']('CommentsRepository'),_0x47dbe5=_0x44d8bd['plugins']['get']('EditorAnnotations'),_0x35eedf=_0x44d8bd['plugins']['get'](_0x542b67)['me'],_0x41316d=_0x90b070['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x2d1aeb,CommentThreadInputView:_0x189e0f}=_0x44d8bd['plugins']['get']('CommentsUI');let _0x170461,_0x200c5d;this['_annotationViews']['has'](_0xb56235['id'])?(_0x200c5d=this['_annotationViews']['get'](_0xb56235['id']),_0x170461=_0x200c5d['mainView']):(_0x170461=new _0x41316d(_0x44d8bd['locale'],_0xb56235,_0x35eedf,{'disableComments':this['_disableComments'],'editorConfig':_0x90b070['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x90b070['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x90b070['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x90b070['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x371728(_0x90b070['get']('locale')),'CommentView':_0x90b070['get']('comments')['CommentView'],'CommentsListView':_0x2d1aeb,'CommentThreadInputView':_0x189e0f}),_0x170461['acceptButton']['on']('execute',()=>{_0x44d8bd['editing']['view']['focus']();}),_0x170461['discardButton']['on']('execute',()=>{_0x44d8bd['editing']['view']['focus']();}),_0x200c5d=_0x602d81['createAnnotationView'](this['editor']['locale'],_0x170461),_0x200c5d['bind']('isDirty')['to'](_0x170461,'isDirty'),_0x200c5d['bind']('length')['to'](_0x170461),_0x200c5d['bind']('type')['to'](_0x170461,'type',_0x3c1b7a=>'suggestion-'+_0x3c1b7a),this['_annotationViews']['set'](_0xb56235['id'],_0x200c5d));const _0x37be82=_0x295914['createCommentThreadController'](_0xb56235['commentThread'],_0x170461),_0xa865d4=new oe(_0x44d8bd,_0xb56235,_0x170461,_0x37be82),_0x89e47d=_0xb56235['getAllAdjacentSuggestions']()['filter'](_0x5ddc8c=>_0x5ddc8c['isInContent']);_0x170461['descriptionParts']=_0x44d8bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x89e47d),this['_suggestionToController']['set'](_0xb56235,_0xa865d4),this['_viewToController']['set'](_0x170461,_0xa865d4);const _0x568a23=_0x602d81['createAnnotation']({'view':_0x200c5d,'target':()=>{const _0x46718e=[],_0x22db39=_0xb56235['getAllAdjacentSuggestions']()['filter'](_0x114142=>_0x114142['isInContent']);for(const _0x3e507b of _0x22db39)_0x46718e['push'](..._0x3e507b['getMarkers']());return _0x34c6b3(_0x44d8bd['editing'],_0x46718e);},'type':()=>'suggestion-'+_0xa865d4['view']['type']});_0x295914['_bindAnnotationToEditors'](_0x170461,_0x568a23),_0x602d81['add'](_0x568a23),_0x47dbe5['registerAnnotation'](_0x568a23);}['_destroyController'](_0x5a5343){const _0x15827a=this['editor']['plugins']['get']('CommentsRepository'),_0x3077fc=this['editor']['plugins']['get']('Annotations'),_0x46cae1=this['_suggestionToController']['get'](_0x5a5343),_0x1f8808=_0x46cae1['view'],_0x2d134a=_0x3077fc['getByInnerView'](_0x1f8808);_0x15827a['_unbindEditors'](_0x1f8808),_0x2d134a&&_0x3077fc['remove'](_0x2d134a),this['_suggestionToController']['delete'](_0x5a5343),this['_viewToController']['delete'](_0x1f8808),_0x46cae1['destroy']();}['_updateController'](_0x2799dc){if(!_0x2799dc['isInContent']||!this['_suggestionToController']['has'](_0x2799dc))return;const _0x550eec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d569b=this['_suggestionToController']['get'](_0x2799dc),_0x48642c=_0x2799dc['getAllAdjacentSuggestions']();_0x3d569b['view']['descriptionParts']=_0x550eec['descriptionFactory']['getDescriptions'](_0x48642c);}['destroy'](){for(const _0x1de876 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1de876);for(const _0x4d1693 of this['_annotationViews']['values']())_0x4d1693['mainView']['destroy']();super['destroy']();}constructor(_0xbac758){super(_0xbac758),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x12f455=this['editor']['config'];_0x12f455['define']('trackChanges.SuggestionThreadView',ne),_0x12f455['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x12f455['get']('trackChanges.disableComments');}}function ae(_0x594230){return'model'in _0x594230;}class k extends _0x454bf4{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x11fef5){this['editor']['plugins']['get'](p)['adapter']=_0x11fef5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30f1e4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30f1e4);}['getSuggestions']({skipNotAttached:_0xe6b83a=!0x1,toJSON:_0x38ae54=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xe6b83a,'toJSON':_0x38ae54});}['getSuggestion'](_0x462771){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x462771);}}const T=['Pagination'];class P extends _0x454bf4{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1965f1=this['editor'];if(_0x1965f1['config']['define']('trackChangesData.editorCreator',_0x20a37d=>{const _0x24aae0=_0x1965f1['model']['document']['getRootNames']()['reduce']((_0x175117,_0x3caf85)=>(_0x175117[_0x3caf85]='',_0x175117),{});return _0x1965f1['constructor']['create'](_0x24aae0,_0x20a37d);}),'function'!=typeof _0x1965f1['config']['get']('trackChangesData')['editorCreator'])throw new _0x514bf6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3e118b){return N(this['editor'],!0x0,_0x3e118b);}['getDataWithDiscardedSuggestions'](_0x4dbacb){return N(this['editor'],!0x1,_0x4dbacb);}}class D extends _0x454bf4{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(_0x4ec640){super(_0x4ec640),this['result']='end';}}function v(_0x333a16){return void 0x0!==_0x333a16['getRootsAttributes'];}async function N(_0x22697b,_0x557f54,_0x26c035){const _0x15ef9a=_0x1ce457(_0x22697b,T);_0x15ef9a['plugins']['push'](p,D),_0x15ef9a['rootsAttributes']=v(_0x22697b)?_0x22697b['getRootsAttributes']():void 0x0;const _0x3880f5=document['createDocumentFragment'](),_0x3bba8a=_0x22697b['config']['get']('trackChangesData')['editorCreator'],_0x47ec7d=await _0x3bba8a(_0x15ef9a,()=>function(_0x4f708e){const _0x5b2cf8=document['createElement']('div');return _0x4f708e['appendChild'](_0x5b2cf8),_0x5b2cf8;}(_0x3880f5));!function(_0x3f136c,_0x3294ce){const _0x15532b=_0x3f136c['model']['document']['getRootNames']()['reduce']((_0x3c6f41,_0x2db625)=>(_0x3c6f41[_0x2db625]=_0x3f136c['data']['get']({'rootName':_0x2db625}),_0x3c6f41),{}),_0x34032b=_0x3f136c['plugins']['get']('Users')['users']['map'](_0x53d6d1=>({'id':_0x53d6d1['id'],'name':_0x53d6d1['name']})),_0xfd9112=_0x3f136c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f51fc=_0x3f136c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x237d2d=_0x3294ce['plugins']['get']('Users'),_0x639cc5=_0x3294ce['plugins']['get']('TrackChangesEditing'),_0x442228=_0x3294ce['plugins']['get']('CommentsRepository');for(const _0x25ad26 of _0x34032b)_0x237d2d['getUser'](_0x25ad26['id'])||_0x237d2d['addUser'](_0x25ad26);_0x237d2d['me']||_0x237d2d['useAnonymousUser']();for(const _0x540ede of _0xfd9112)_0x639cc5['addSuggestionData'](_0x540ede);for(const _0x5c546f of _0x2f51fc)_0x442228['addCommentThread'](_0x5c546f);_0x3294ce['data']['set'](_0x15532b);}(_0x22697b,_0x47ec7d),_0x47ec7d['execute'](_0x557f54?'acceptAllSuggestions':'discardAllSuggestions');const _0x6bb89c=v(_0x47ec7d)?_0x47ec7d['getFullData'](_0x26c035):_0x47ec7d['data']['get'](_0x26c035);return await _0x47ec7d['destroy'](),_0x6bb89c;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
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};