@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250216.0 → 0.0.0-nightly-next-20250217.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5aed8f,Plugin as _0x159581,PendingActions as _0xa7d8f2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x281979,ObservableMixin as _0x1c3a2a,uid as _0x4adad1,priorities as _0x5b0b49,insertToPriorityArray as _0x3a1467,logWarning as _0x3ac62c,getEnvKeystrokeText as _0x190f4e,FocusTracker as _0x411045,KeystrokeHandler as _0x39057c,Collection as _0x3a1819}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x255fc4,IconCancel as _0x55351e,IconTrackChanges as _0x2b2b02}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x16318d,ViewCollection as _0x413220,FocusCycler as _0x5dbed0,ViewModel as _0x2efb49,createDropdown as _0x5a3954,SplitButtonView as _0x18f9d3,addListToDropdown as _0x6ad703,MenuBarMenuView as _0x5f0b44,MenuBarMenuListView as _0x1a6e2d,ListSeparatorView as _0x2b253d,MenuBarMenuListItemView as _0x88bd30,MenuBarMenuListItemButtonView as _0x39ecdf,BodyCollection as _0x558bee,Dialog as _0x2ec598}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x446c4e,hashObject as _0x13f274,surroundingMarkersDetector as _0x3a51b7,FOCUS_ANNOTATION_KEYSTROKE as _0x28a231,AriaDescriptionView as _0xe7cc15,setupThreadKeyboardNavigation as _0x2e580c,trimHtml as ti,UserView as _0x32732e,LateFocusButtonView as _0x24e13f,getDateTimeFormatter as _0xefdbc1,getAllMarkersDomElementsSorted as _0x57aaf5,sanitizeEditorConfig as _0x5502fd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4e8365,LiveRange as _0x31bd77,LivePosition as _0x37a8ec,DowncastWriter as _0x21e3ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x25f4ad,toWidget as _0xcf9d12}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x588df1,set as _0x45514f,isEqual as _0x382b4a,unset as _0x1b1cda,omit as Et}from'es-toolkit/compat';import{Delete as _0x38f06d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1692c2,ShiftEnter as _0x2f0e86}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x5aed8f{['_enabledCommands'];constructor(_0x34ce9c,_0x135c77){super(_0x34ce9c),this['_enabledCommands']=_0x135c77,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2b06f7 of this['editor']['commands']['commands']())_0x2b06f7['affectsData']&&!this['_enabledCommands']['has'](_0x2b06f7)&&_0x2b06f7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4de874 of this['editor']['commands']['commands']())_0x4de874['affectsData']&&!this['_enabledCommands']['has'](_0x4de874)&&_0x4de874['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5aed8f{['_suggestions'];constructor(_0x2c9c62,_0x338ade){super(_0x2c9c62),this['_suggestions']=_0x338ade,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36b571){const _0x55dfa6=this['_suggestions']['get'](_0x36b571);if(!_0x55dfa6)throw new _0x281979('track-changes-accept-suggestion-not-found',this);const _0x572b83=_0x55dfa6['getRanges']();this['editor']['model']['canEditAt'](_0x572b83)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x55dfa6);}}class R extends _0x5aed8f{['_suggestions'];constructor(_0xb3ab17,_0x5e1a32){super(_0xb3ab17),this['_suggestions']=_0x5e1a32,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1fb093){const _0x1862c9=this['_suggestions']['get'](_0x1fb093);if(!_0x1862c9)throw new _0x281979('track-changes-discard-suggestion-not-found',this);const _0x1f54b6=_0x1862c9['getRanges']();this['editor']['model']['canEditAt'](_0x1f54b6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1862c9);}}function ls(_0x4adcb2,_0x577360){let _0x1d80c4='';return _0x1d80c4+=_0x4adcb2['split']('*')['map']((_0x3fa54a,_0x36f2f0)=>_0x36f2f0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3fa54a)+'</span>':nn(_0x3fa54a))['join'](''),_0x577360&&(_0x1d80c4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x577360['value']+'\x22\x20title=\x22'+_0x577360['title']+'\x22></span>'),_0x1d80c4;}function nn(_0x4990b6){const _0x93f6ee=document['createElement']('span');return _0x93f6ee['innerText']=_0x4990b6,_0x93f6ee['innerHTML'];}function ts(_0x250bde){return _0x250bde['sort']((_0x58dd4b,_0x18f60d)=>'deletion'==_0x58dd4b['type']&&'deletion'!=_0x18f60d['type']?-0x1:'deletion'!=_0x58dd4b['type']&&'deletion'==_0x18f60d['type']?0x1:0x0);}function Xt(_0x41e859,_0x1adfb1){let _0x26dd75,_0x2e1545=0x0;const _0x12b7fa=[],_0xb4115=_0x1adfb1['schema'];for(;_0x2e1545<_0x41e859['length'];){const _0x2a8176=_0x41e859[_0x2e1545],_0xdd7016=_0x41e859[_0x2e1545+0x1];_0x26dd75||(_0x26dd75=_0x1adfb1['createPositionBefore'](_0x2a8176)),on(_0x1adfb1,_0x2a8176,_0xdd7016)||(_0x12b7fa['push'](_0x1adfb1['createRange'](_0x26dd75,_0xb4115['isObject'](_0x2a8176)?_0x1adfb1['createPositionAfter'](_0x2a8176):_0x1adfb1['createPositionAt'](_0x2a8176,'end'))),_0x26dd75=null),_0x2e1545++;}return _0x12b7fa;}function on(_0x4575cc,_0x19e064,_0x28c699){if(!_0x28c699)return!0x1;const _0xf1a1dd=_0x4575cc['createPositionAfter'](_0x19e064),_0x3d2e2b=_0x4575cc['createPositionBefore'](_0x28c699);return _0xf1a1dd['isTouching'](_0x3d2e2b);}function rs(_0x4dedd9,_0x4be82f,_0xc19727){for(;_0xc19727['length'];){const _0x5b3c18=_0xc19727['splice'](0x0,0x64);_0x4dedd9['change'](()=>{for(const _0x29e689 of _0x5b3c18)_0x29e689['isInContent']&&_0x4be82f['execute'](_0x29e689['id']);});}}class x extends _0x5aed8f{['_command'];['_suggestions'];constructor(_0x21df6f,_0x8a3c9b,_0x53c87a){super(_0x21df6f),this['_command']=_0x8a3c9b,this['_suggestions']=_0x53c87a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x330b68=Array['from'](this['_suggestions']['values']())['some'](_0x5953ff=>_0x5953ff['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x330b68;}['execute'](){const _0x168dd1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x29b271 of _0x168dd1){const _0x9a2991=_0x29b271['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9a2991))return;}rs(this['editor']['model'],this['_command'],_0x168dd1);}}class E extends _0x5aed8f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x52d6ee,_0x5b648f,_0x198049){super(_0x52d6ee),this['_command']=_0x5b648f,this['_suggestions']=_0x198049,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2bf1fa=this['editor']['model']['document']['selection'],_0x1f953e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4215d2,_0x36cfef){const _0x7bba8e=Array['from'](_0x4215d2['getRanges']()),_0xc552be=new Set();for(const _0x9ab3f2 of _0x36cfef)if(_0x9ab3f2['isInContent']){for(const _0x442c47 of _0x7bba8e)for(const _0x22b6c9 of _0x9ab3f2['getRanges']())(_0x442c47['isIntersecting'](_0x22b6c9)||_0x4215d2['isCollapsed']&&!_0x9ab3f2['isMultiRange']&&_0x9ab3f2['next']&&_0x22b6c9['end']['isTouching'](_0x442c47['start']))&&_0xc552be['add'](_0x9ab3f2);}return _0xc552be;}(_0x2bf1fa,_0x1f953e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x44bcce=ts(Array['from'](this['_selectedSuggestions']));for(const _0x490899 of _0x44bcce){const _0x26775c=_0x490899['getRanges']();if(!this['editor']['model']['canEditAt'](_0x26775c))return;}rs(this['editor']['model'],this['_command'],_0x44bcce);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x1c3a2a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3f279f,_0x19e9db){super(),this['id']=_0x19e9db['id'],this['type']=_0x19e9db['type'],this['subType']=_0x19e9db['subType']||null,this['author']=_0x19e9db['author'],this['creator']=_0x19e9db['creator']||_0x19e9db['author'],this['isExternal']=Boolean(_0x19e9db['attributes']&&_0x19e9db['attributes']['@external']),this['data']=null,this['_model']=_0x3f279f,this['_onAccept']=_0x19e9db['onAccept'],this['_onDiscard']=_0x19e9db['onDiscard'],this['_onAttributesChange']=_0x19e9db['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x19e9db['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1e23c5=this;for(;_0x1e23c5['previous'];)_0x1e23c5=_0x1e23c5['previous'];return _0x1e23c5;}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'](_0x41958e){this['_markerNames']['add'](_0x41958e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b90d2=>this['_model']['markers']['get'](_0x2b90d2))['filter'](_0x1c87bc=>_0x1c87bc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x18c656=>{for(const _0x30c3e2 of this['getMarkers']())_0x18c656['removeMarker'](_0x30c3e2);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e2d34){this['_model']['change'](_0x2a4f94=>{_0x2a4f94['removeMarker'](_0x5e2d34);}),this['_markerNames']['delete'](_0x5e2d34);}['addRange'](_0x308462){const _0x3f0625='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3f0625),this['_model']['change'](_0x20a2a5=>{_0x20a2a5['addMarker'](_0x3f0625,{'range':_0x308462,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4fc9cb){for(const _0x4e708b of this['getRanges']())if(_0x4e708b['isIntersecting'](_0x4fc9cb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x450bb0=>_0x450bb0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16b330,_0x59b85e)=>[..._0x16b330,..._0x59b85e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x532ae0=this['getRanges']();if(0x1!=_0x532ae0['length'])return null;const _0x5447a4=_0x532ae0[0x0],_0x416c38=_0x5447a4['start']['nodeAfter'],_0x51a4b9=_0x5447a4['end']['nodeBefore'];return _0x416c38 instanceof _0x4e8365?_0x416c38!=_0x51a4b9?null:_0x416c38: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 _0x1fe757=[];let _0x432e9e=this['head'];for(;_0x432e9e;)_0x1fe757['push'](_0x432e9e),_0x432e9e=_0x432e9e['next'];return _0x1fe757;}['setAttribute'](_0x2365f1,_0x32d6e1){const _0x22103a=_0x588df1(this['attributes']);_0x45514f(_0x22103a,_0x2365f1,_0x32d6e1),_0x382b4a(_0x22103a,this['attributes'])||(this['attributes']=_0x22103a,this['_onAttributesChange'](_0x22103a));}['removeAttribute'](_0x3105ff){const _0xfd48e4=_0x588df1(this['attributes']);_0x1b1cda(_0xfd48e4,_0x3105ff),_0x382b4a(_0xfd48e4,this['attributes'])||(this['attributes']=_0xfd48e4,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 _0x4adad1()['substr'](0x1,0x5);}}function c(_0x4bae39,_0x471a25,_0x354184){const _0x214f31=_0x4bae39['t'],t=_0x4bae39['t'];switch(_0x471a25){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x354184);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x354184);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x354184);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x354184);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x354184);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',_0x354184);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x354184);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x354184);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x354184);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x354184);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x354184);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x354184);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x354184);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x354184);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x354184);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x354184);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x354184);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x354184);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x354184);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x354184);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x354184);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x354184);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x354184);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x354184);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'},_0x354184);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x354184);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x354184);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x354184);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x354184);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x354184);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'},_0x354184);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x354184);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x354184);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x354184);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x354184);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'},_0x354184);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x354184);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'},_0x354184);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'},_0x354184);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x354184);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'},_0x354184);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x354184);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'},_0x354184);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x354184);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x354184);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x354184);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x354184);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 _0x214f31({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x354184);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x214f31({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x354184);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x354184);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x354184);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x354184);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x354184);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x471a25;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x494a77,_0x200340){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x494a77,this['_locale']=_0x200340;}['getDescriptions'](_0x42c7aa){const _0x471888=[],_0x101e8f=new Set(),_0x19d96=new Set();for(let _0x485bd9=0x0;_0x485bd9<_0x42c7aa['length'];_0x485bd9++){const _0xd2c0bd=_0x42c7aa[_0x485bd9];if(!_0xd2c0bd['isInContent'])continue;const _0x25d61a=this['_handleCustomCallbackDescription'](_0xd2c0bd);if(_0x25d61a){if(null!=_0xd2c0bd['subType']){if(_0x101e8f['has'](_0xd2c0bd['subType']))continue;_0x101e8f['add'](_0xd2c0bd['subType']);}_0x471888['push'](_0x25d61a);}else{if('attribute'!=_0xd2c0bd['type'])'insertion'!=_0xd2c0bd['type']&&'deletion'!=_0xd2c0bd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x471888,_0xd2c0bd,_0x42c7aa[_0x485bd9+0x1]);else{const _0x50c202=_0xd2c0bd['data']['key'];if(_0x19d96['has'](_0x50c202))continue;_0x19d96['add'](_0xd2c0bd['data']['key']),_0x50c202==u?this['_handleRenameSuggestionDescription'](_0x471888,_0xd2c0bd):this['_handleAttributeSuggestionDescription'](_0x471888,_0xd2c0bd);}}}return this['_resolveDescriptionItems'](_0x471888);}['registerDescriptionCallback'](_0x5c4ef1){this['_customCallbacks']['push'](_0x5c4ef1);}['registerElementLabel'](_0x21e25e,_0x45b261,_0x27eb53=_0x5b0b49['normal']){'function'==typeof _0x21e25e?_0x3a1467(this['_itemLabelsCallbacks'],{'matchingCallback':_0x21e25e,'label':_0x45b261,'priority':_0x27eb53}):this['_itemLabels']['set'](_0x21e25e,_0x45b261);}['registerAttributeLabel'](_0x3d57ff,_0x449e1e){this['_attributeLabels']['set'](_0x3d57ff,_0x449e1e);}['getItemLabel'](_0x18a219,_0x1ae084=0x1){let _0x5209dc;for(const _0x3219af of this['_itemLabelsCallbacks'])if(_0x3219af['matchingCallback'](_0x18a219)){_0x5209dc=_0x3219af['label'];break;}return _0x5209dc||(_0x5209dc=this['_itemLabels']['get'](_0x18a219['name'])),_0x5209dc?_0x5209dc(_0x1ae084):0x1!==_0x1ae084?_0x1ae084+'\x20'+_0x18a219['name']+'s':''+_0x18a219['name'];}['_addDescriptionItems'](_0x3a6dc9,_0x48e8d7){const _0x5595b2=_0x48e8d7['getFirstRange']()['getWalker'](),_0x2ceb21='insertion'==_0x48e8d7['type']?'add':'remove';for(const _0x1c14b0 of _0x5595b2){const _0x5a3554=_0x1c14b0['item'],_0x1c3f75=_0x3a6dc9[_0x3a6dc9['length']-0x1];if(_0x5a3554['is']('$textProxy'))_0x1c3f75&&_0x1c3f75['type']['indexOf']('Container')>-0x1&&_0x3a6dc9['pop'](),_0x1c3f75&&'text'==_0x1c3f75['type']?_0x1c3f75[_0x2ceb21]+=_0x5a3554['data']:_0x3a6dc9['push']({'type':'text','add':'add'==_0x2ceb21?_0x5a3554['data']:'','remove':'remove'==_0x2ceb21?_0x5a3554['data']:''});else{if(this['_schema']['isObject'](_0x5a3554)){const _0x11c861=_0x5a3554;if(_0x1c3f75&&_0x1c3f75['type']['indexOf']('Container')>-0x1&&_0x3a6dc9['pop'](),'elementEnd'==_0x1c14b0['type'])continue;_0x1c3f75&&_0x1c3f75['type']==_0x2ceb21+'Object'&&_0x1c3f75['element']['name']==_0x11c861['name']?_0x1c3f75['quantity']++:_0x3a6dc9['push']({'type':_0x2ceb21+'Object','element':_0x11c861,'quantity':0x1}),_0x5595b2['skip'](_0xf3750e=>!('elementEnd'==_0xf3750e['type']&&_0xf3750e['item']==_0x5a3554));}else{if(this['_schema']['checkChild'](_0x5a3554,'$text')||_0x5a3554['is']('element','softBreak')){const _0x169391=_0x5a3554;if('add'==_0x2ceb21&&'elementStart'==_0x1c14b0['type']||'remove'==_0x2ceb21&&'elementEnd'==_0x1c14b0['type'])continue;if(_0x1c3f75&&-0x1==_0x1c3f75['type']['indexOf']('Container')){'text'==_0x1c3f75['type']&&(_0x1c3f75[_0x2ceb21]+='\x0a');continue;}let _0x4e06a5;if(_0x4e06a5='add'==_0x2ceb21?_0x169391['nextSibling']&&!this['_schema']['isObject'](_0x169391['nextSibling'])?_0x169391['nextSibling']:null:_0x169391['previousSibling']&&!this['_schema']['isObject'](_0x169391['previousSibling'])?_0x169391['previousSibling']:null,_0x169391['isEmpty']||_0x4e06a5&&_0x4e06a5['isEmpty']){const _0x381fe7=_0x4e06a5&&_0x4e06a5['isEmpty']?_0x4e06a5:_0x169391;_0x1c3f75&&_0x1c3f75['type']==_0x2ceb21+'EmptyContainer'&&_0x1c3f75['element']['name']==_0x381fe7['name']?_0x1c3f75['quantity']++:_0x3a6dc9['push']({'type':_0x2ceb21+'EmptyContainer','element':_0x381fe7,'quantity':0x1});}else _0x3a6dc9['push']({'type':_0x2ceb21+'Container','element':_0x169391});}}}}}['_resolveDescriptionItems'](_0x5eba6d){const _0x19bdee=this['_locale'],_0x1b8933=[],_0x275841=[],_0x2dc5bd=[];for(const _0x43a4ff of _0x5eba6d)switch(_0x43a4ff['type']){case'text':if(_0x43a4ff['add']=_0x43a4ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43a4ff['remove']=_0x43a4ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43a4ff['add']&&''!=_0x43a4ff['remove']){_0x1b8933['push']({'type':'replace','content':c(_0x19bdee,'REPLACE_TEXT',['\x22'+_0x43a4ff['remove']+'\x22','\x22'+_0x43a4ff['add']+'\x22'])});continue;}if(null!=_0x43a4ff['add']['match'](/^ +$/)){_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Insert:*\x20%0',c(_0x19bdee,'ELEMENT_SPACE',_0x43a4ff['add']['length']))});continue;}if(null!=_0x43a4ff['remove']['match'](/^ +$/)){_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Remove:*\x20%0',c(_0x19bdee,'ELEMENT_SPACE',_0x43a4ff['remove']['length']))});continue;}if(''!=_0x43a4ff['add']){_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Insert:*\x20%0','\x22'+_0x43a4ff['add']+'\x22')});continue;}_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Remove:*\x20%0','\x22'+_0x43a4ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Insert:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Remove:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'addContainer':_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Split:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'removeContainer':_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Merge:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'addFormat':_0x275841['push'](_0x43a4ff['key']);continue;case'removeFormat':_0x2dc5bd['push'](_0x43a4ff['key']);continue;default:_0x1b8933['push'](_0x43a4ff);}if(_0x275841['length']){const _0x322741=_0x275841['map'](_0x3442b5=>this['_attributeLabels']['has'](_0x3442b5)?this['_attributeLabels']['get'](_0x3442b5):_0x3442b5)['join'](',\x20');_0x1b8933['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x322741)});}if(_0x2dc5bd['length']){const _0x316fd3=_0x2dc5bd['map'](_0x599324=>this['_attributeLabels']['has'](_0x599324)?this['_attributeLabels']['get'](_0x599324):_0x599324)['join'](',\x20');_0x1b8933['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x316fd3)});}return _0x1b8933;}['_handleCustomCallbackDescription'](_0x5f21c0){for(const _0x3c690c of this['_customCallbacks']){const _0x2884fb=_0x3c690c(_0x5f21c0);if(_0x2884fb&&'type'in _0x2884fb)return _0x2884fb;}}['_handleAttributeSuggestionDescription'](_0x11e281,_0x5a58bf){const _0x550e92=_0x5a58bf['data'],_0x107d5b=void 0x0===_0x550e92['newValue']?'removeFormat':'addFormat';_0x11e281['push']({'type':_0x107d5b,'key':_0x550e92['key']});}['_handleRenameSuggestionDescription'](_0x3c9808,_0x1d251b){_0x3c9808['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1d251b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a06b4,_0x4cccbd,_0x31c20e){if(this['_addDescriptionItems'](_0x1a06b4,_0x4cccbd),_0x31c20e&&_0x31c20e['getFirstRange']()&&!_0x4cccbd['getFirstRange']()['end']['isEqual'](_0x31c20e['getFirstRange']()['start'])){const _0x509e69=_0x1a06b4[_0x1a06b4['length']-0x1],_0x11a340='insertion'==_0x4cccbd['type']?'add':'remove';_0x509e69&&'text'==_0x509e69['type']&&(_0x509e69[_0x11a340]+='\x0a');}}}class U extends _0x159581{['afterInit'](){const _0x5dd180=this['editor'],_0x7d8eb1=_0x5dd180['plugins']['get']('TrackChangesEditing');_0x5dd180['commands']['get']('showAIAssistant')&&_0x7d8eb1['enableCommand']('showAIAssistant');}}class V extends _0x159581{['afterInit'](){const _0x7fcb8f=this['editor'],_0x417438=_0x7fcb8f['locale'];if(!_0x7fcb8f['plugins']['has']('AlignmentEditing'))return;const _0xd722c7=_0x7fcb8f['plugins']['get']('TrackChangesEditing');_0xd722c7['enableDefaultAttributesIntegration']('alignment'),_0xd722c7['registerBlockAttribute']('alignment'),_0xd722c7['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x417438,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2801e1=this['editor'],_0x1d81b5=_0x2801e1['locale'];_0x2801e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a47c0=>{if('formatBlock'!=_0x5a47c0['type'])return;const {data:_0x175954}=_0x5a47c0;if(_0x175954&&'alignment'==_0x175954['commandName']){const _0x39f840=_0x175954['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1d81b5,'*Format:*\x20%0',function(_0x125a0b){switch(_0x125a0b){case'left':return c(_0x1d81b5,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1d81b5,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1d81b5,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1d81b5,'FORMAT_JUSTIFY_TEXT');}}(_0x39f840))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x159581{['afterInit'](){const _0x2a6184=this['editor'],_0x5d6906=_0x2a6184['plugins']['get']('TrackChangesEditing'),_0x3e14cd=_0x2a6184['locale'];for(const _0xf299f2 of Qt){if(!_0x2a6184['plugins']['has'](_0xf299f2))continue;const _0x2ae949=_0xf299f2['slice'](0x0,-0x7)['toLowerCase'](),_0x4bad6b='FORMAT_'+_0x2ae949['toUpperCase']();_0x5d6906['enableDefaultAttributesIntegration'](_0x2ae949),_0x5d6906['registerInlineAttribute'](_0x2ae949),_0x5d6906['descriptionFactory']['registerAttributeLabel'](_0x2ae949,c(_0x3e14cd,_0x4bad6b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48095d=this['editor'],_0x4060a6=_0x48095d['locale'],_0x4d92e5=_0x48095d['plugins']['get']('TrackChangesEditing');function _0x1232b3(_0x29e0d3,_0x482821){_0x4d92e5['descriptionFactory']['registerDescriptionCallback'](_0x27cdf5=>{if('formatInline'!=_0x27cdf5['type'])return;const {data:_0x13f91d}=_0x27cdf5;return _0x13f91d&&_0x13f91d['commandName']===_0x29e0d3?_0x13f91d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4060a6,'*Format:*\x20%0',_0x482821)}:{'type':'format','content':c(_0x4060a6,'*Remove\x20format:*\x20%0',_0x482821)}:void 0x0;});}_0x1232b3('bold',c(_0x4060a6,'FORMAT_BOLD')),_0x1232b3('italic',c(_0x4060a6,'FORMAT_ITALIC')),_0x1232b3('underline',c(_0x4060a6,'FORMAT_UNDERLINE')),_0x1232b3('code',c(_0x4060a6,'FORMAT_CODE')),_0x1232b3('strikethrough',c(_0x4060a6,'FORMAT_STRIKETHROUGH')),_0x1232b3('subscript',c(_0x4060a6,'FORMAT_SUBSCRIPT')),_0x1232b3('superscript',c(_0x4060a6,'FORMAT_SUPERSCRIPT'));}}class G extends _0x159581{['afterInit'](){const _0x525dec=this['editor'],_0x41e908=_0x525dec['locale'];if(!_0x525dec['plugins']['has']('BlockQuoteEditing'))return;const _0x49cab0=_0x525dec['plugins']['get']('TrackChangesEditing'),_0x15fe20=this['editor']['commands']['get']('blockQuote');_0x49cab0['enableCommand']('blockQuote',(_0x4f3a49,_0x11d161={})=>{const _0x5b189d=this['editor']['model']['document']['selection'],_0xe3c038=_0x11d161&&void 0x0!==_0x11d161['forceValue']?_0x11d161['forceValue']:!_0x15fe20['value'];let _0x1bdd12=[];if(_0xe3c038){const _0x4b8fe3=Array['from'](_0x5b189d['getSelectedBlocks']())['filter'](_0x3fb471=>Yt(_0x3fb471)||function(_0x2f903c,_0x12bc6e){const _0x1b0fc8=_0x12bc6e['checkChild'](_0x2f903c['parent'],'blockQuote'),_0x488b73=_0x12bc6e['checkChild'](['$root','blockQuote'],_0x2f903c);return _0x1b0fc8&&_0x488b73;}(_0x3fb471,this['editor']['model']['schema']));_0x1bdd12=Xt(_0x4b8fe3,_0x525dec['model']);}else{const _0xb8d6a=Array['from'](_0x5b189d['getSelectedBlocks']())['filter'](_0x459b31=>Yt(_0x459b31));_0x1bdd12=Xt(_0xb8d6a,_0x525dec['model']);}_0x525dec['model']['change'](()=>{for(const _0x4894b2 of _0x1bdd12)_0x49cab0['markBlockFormat'](_0x4894b2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe3c038}]});});}),_0x49cab0['descriptionFactory']['registerDescriptionCallback'](_0x386d71=>{const {data:_0x559a1d}=_0x386d71;if(_0x559a1d&&'blockQuote'==_0x559a1d['commandName']){const _0x385ab9=c(_0x41e908,'ELEMENT_BLOCK_QUOTE');return _0x559a1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41e908,'*Set\x20format:*\x20%0',_0x385ab9)}:{'type':'format','content':c(_0x41e908,'*Remove\x20format:*\x20%0',_0x385ab9)};}});}}function Yt(_0x18e637){return'blockQuote'==_0x18e637['parent']['name'];}class L extends _0x159581{['afterInit'](){const _0x44bdef=this['editor'],_0x4d87d6=_0x44bdef['locale'],_0x11f333=_0x44bdef['plugins']['get']('TrackChangesEditing');_0x44bdef['plugins']['has']('BookmarkEditing')&&(_0x11f333['enableCommand']('insertBookmark'),_0x11f333['enableDefaultAttributesIntegration']('updateBookmark'),_0x11f333['registerBlockAttribute']('bookmarkId'),_0x11f333['descriptionFactory']['registerDescriptionCallback'](_0x11304c=>{if('insertion'!=_0x11304c['type']&&'deletion'!=_0x11304c['type']&&'attribute'!=_0x11304c['type'])return;const _0x4c4e7c=_0x11304c['getContainedElement']();if(null==_0x4c4e7c)return;if(!_0x4c4e7c['is']('element','bookmark'))return;const _0x4b29d2=_0x4c4e7c['getAttribute']('bookmarkId');if('insertion'==_0x11304c['type'])return{'type':'insertion','content':c(_0x4d87d6,'*Insert:*\x20%0','\x22'+_0x4b29d2+'\x22\x20'+c(_0x4d87d6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x11304c['type'])return{'type':'deletion','content':c(_0x4d87d6,'*Remove:*\x20%0','\x22'+_0x4b29d2+'\x22\x20'+c(_0x4d87d6,'ELEMENT_BOOKMARK'))};const {data:_0x57145a}=_0x11304c;if(!_0x57145a||'bookmarkId'!=_0x57145a['key'])return;return{'type':'format','content':c(_0x4d87d6,'*Set\x20bookmark:*\x20%0','\x22'+_0x57145a['newValue']+'\x22')};}));}}class J extends _0x159581{['afterInit'](){const _0x3c5deb=this['editor'];_0x3c5deb['plugins']['has']('CaseChange')&&(_0x3c5deb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3c5deb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3c5deb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x159581{['afterInit'](){const _0xfdaf51=this['editor'];_0xfdaf51['commands']['get']('ckbox')&&_0xfdaf51['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x159581{['afterInit'](){const _0x2c92fc=this['editor'];if(!_0x2c92fc['plugins']['has']('CodeBlock'))return;const _0x35f54c=_0x2c92fc['plugins']['get']('TrackChangesEditing'),_0x46bf6e=_0x2c92fc['locale'],_0x1cdc80=_0x2c92fc['config']['get']('codeBlock')['languages'],_0x2356b7=_0x2c92fc['commands']['get']('codeBlock');_0x35f54c['enableCommand']('indentCodeBlock'),_0x35f54c['enableCommand']('outdentCodeBlock'),_0x35f54c['enableCommand']('codeBlock',(_0x4bb643,_0x46f25c={})=>{const _0x53dd54=_0x2c92fc['model'],_0x3cff63=_0x2c92fc['model']['document']['selection'],_0x480df0=_0x46f25c&&void 0x0!==_0x46f25c['forceValue']?_0x46f25c['forceValue']:!_0x2356b7['value'];let _0x12292;_0x46f25c['language']||(_0x46f25c['language']=_0x1cdc80[0x0]['language']),_0x12292=_0x480df0?Array['from'](_0x3cff63['getSelectedBlocks']())['filter'](_0x1e3afd=>oo(_0x1e3afd)||function(_0x1bbf31,_0x1daf92){if(_0x1bbf31['is']('rootElement')||_0x1daf92['isLimit'](_0x1bbf31))return!0x1;return _0x1daf92['checkChild'](_0x1bbf31['parent'],'codeBlock');}(_0x1e3afd,_0x53dd54['schema'])):Array['from'](_0x3cff63['getSelectedBlocks']())['filter'](_0x4c7c13=>oo(_0x4c7c13));const _0x2f0522=Xt(_0x12292,_0x53dd54);_0x53dd54['change'](()=>{for(const _0x3714ff of _0x2f0522)_0x35f54c['markBlockFormat'](_0x3714ff,{'commandName':'codeBlock','commandParams':[{..._0x46f25c,'forceValue':_0x480df0}],'formatGroupId':'blockName'});});}),(_0x35f54c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4de01a=>c(_0x46bf6e,'ELEMENT_CODE_BLOCK',_0x4de01a)),_0x35f54c['descriptionFactory']['registerDescriptionCallback'](_0x1bca0b=>{if('formatBlock'!=_0x1bca0b['type'])return;const _0x587b48=_0x46bf6e['t'],{data:_0x3a05a7}=_0x1bca0b;if(!_0x3a05a7||'codeBlock'!=_0x3a05a7['commandName'])return;const _0xc1eccf=_0x3a05a7['commandParams'][0x0]['language'],_0x53d14e=_0x587b48(_0x1cdc80['find'](_0x10e775=>_0x10e775['language']===_0xc1eccf)['label'])['toLowerCase']();return _0x3a05a7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46bf6e,'*Set\x20format:*\x20%0',c(_0x46bf6e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x53d14e+')')}:{'type':'format','content':c(_0x46bf6e,'*Remove\x20format:*\x20%0',c(_0x46bf6e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x214016){return'codeBlock'==_0x214016['name'];}class q extends _0x159581{['afterInit'](){const _0x47eb24=this['editor'];if(!_0x47eb24['plugins']['has']('CommentsEditing'))return;_0x47eb24['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x43cb11,_0x5a1b56,_0x400da3){const _0x473971=[];for(const _0x33534c of _0x5a1b56['getItems']())_0x33534c['hasAttribute'](_0x43cb11)&&_0x473971['push'](_0x400da3['createRangeOn'](_0x33534c));return _0x473971;}function De(_0x1d9436,_0xe798d2,{showActiveMarker:_0x343bda=!0x0}={}){const _0x3e0886=_0x1d9436['plugins']['get']('TrackChangesEditing');return(_0x3508c9,_0x10b6e8,_0x2d760e)=>{if(!_0x2d760e['consumable']['test'](_0x10b6e8['markerRange'],_0x3508c9['name']))return;const _0x13b120=_0x10b6e8['markerRange']['getWalker'](),_0xd2ac70=_0x10b6e8['markerRange']['start'],_0x4ea8f8=_0x1d9436['model']['schema'];let _0x217282=null,_0xffcae3=null,_0x5f40a0=!0x1,_0x4ae070=!0x1;for(const _0x5a2d6c of _0x13b120){const _0x2e6d29=_0x5a2d6c['item'];_0x5f40a0=_0x5f40a0||_0x4ea8f8['isContent'](_0x2e6d29);const _0x41f985=_0x2d760e['mapper']['toViewElement'](_0x2e6d29);if(_0x41f985&&_0x41f985['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a2d6c['type']&&(_0x4ea8f8['isBlock'](_0x2e6d29)&&!_0x4ea8f8['isLimit'](_0x2e6d29)&&(_0x2e6d29['nextSibling']||_0xd2ac70['isAtEnd']?_0x217282&&_0x217282['parent']==_0x2e6d29||(_0x217282=_0x2e6d29,_0x5306c5(_0x5a2d6c['previousPosition']),_0x4ae070=!0x0):_0xffcae3=_0xffcae3||_0x5a2d6c['previousPosition']));}function _0x5306c5(_0x290c92){const {authorId:_0x311eaf}=_0x3e0886['_splitMarkerName'](_0x10b6e8['markerName']),_0x3d3649=_0x2d760e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe798d2,'data-author-id':_0x311eaf}),_0x15dbcd=_0x2d760e['mapper']['toViewPosition'](_0x290c92);_0x343bda&&_0x3e0886['activeMarkers']['includes'](_0x10b6e8['markerName'])&&_0x2d760e['writer']['addClass']('ck-suggestion-marker--active',_0x3d3649),_0x2d760e['writer']['insert'](_0x15dbcd,_0x3d3649),_0x2d760e['mapper']['bindElementToMarker'](_0x3d3649,_0x10b6e8['markerName']);}_0x5f40a0||_0x4ae070||!_0xffcae3||_0x5306c5(_0xffcae3);};}class z extends _0x159581{static get['requires'](){return[_0x38f06d];}['init'](){const _0x10818b=this['editor'],_0x505697=_0x10818b['plugins']['get']('TrackChangesEditing');_0x505697['enableCommand']('delete');const _0x538fe0=_0x10818b['commands']['get']('deleteForward');_0x505697['enableCommand']('deleteForward',(_0x45a9ed,_0x4d299d={})=>{const _0x30aef6=_0x10818b['model']['createSelection'](_0x10818b['model']['document']['selection']);_0x30aef6['isCollapsed']&&_0x10818b['model']['modifySelection'](_0x30aef6,{'direction':'forward','unit':_0x4d299d['unit']});const _0x324664=_0x30aef6['getFirstRange'](),_0x4c608e=_0x31bd77['fromRange'](_0x324664);let _0x2c013f;_0x45a9ed(_0x4d299d),_0x2c013f='$graveyard'==_0x4c608e['root']['rootName']?_0x10818b['model']['createRange'](_0x324664['start']):_0x10818b['model']['createRange'](_0x4c608e['start'],_0x4c608e['end']),_0x4c608e['detach'](),_0x10818b['model']['enqueueChange'](_0x538fe0['buffer']['batch'],_0x14e2e0=>{_0x538fe0['buffer']['lock'](),_0x14e2e0['setSelection'](_0x14e2e0['createRange'](_0x2c013f['end'])),_0x538fe0['buffer']['unlock']();});}),_0x10818b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x10818b,'merge'),{'priority':'high'}),_0x10818b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4779ad,_0x5c579b,_0x5a0da1)=>{_0x5a0da1['options']['showSuggestionHighlights']&&De(_0x10818b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4779ad,_0x5c579b,_0x5a0da1);},{'priority':'high'}),_0x10818b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x263293,_0x245dca,_0x2b556f)=>{const _0x40cd87=_0x2b556f['mapper']['markerNameToElements'](_0x245dca['markerName']);if(_0x40cd87){for(const _0xb73205 of _0x40cd87)_0xb73205['is']('uiElement')&&(_0x2b556f['mapper']['unbindElementFromMarkerName'](_0xb73205,_0x245dca['markerName']),_0x2b556f['writer']['remove'](_0xb73205));}},{'priority':'high'});}}class W extends _0x159581{['afterInit'](){const _0x3c69f4=this['editor'];if(!_0x3c69f4['plugins']['has']('ListEditing'))return;const _0x958e8f=_0x3c69f4['locale'],_0x2a34c4=_0x3c69f4['plugins']['get']('TrackChangesEditing'),_0x143f6c=_0x3c69f4['plugins']['has']('TodoListEditing'),_0x359950=!!_0x3c69f4['config']['get']('list.multiBlock');function _0x5a7b12(_0x358651){return{'type':'format','content':''+c(_0x958e8f,'*Set\x20format:*\x20%0',_0x358651)};}function _0x1333bf(_0x2a7231){return{'type':'format','content':''+c(_0x958e8f,'*Remove\x20format:*\x20%0',_0x2a7231)};}_0x2a34c4['enableDefaultAttributesIntegration']('numberedList'),_0x2a34c4['enableDefaultAttributesIntegration']('bulletedList'),_0x2a34c4['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a34c4['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a34c4['enableDefaultAttributesIntegration']('indentList'),_0x2a34c4['enableDefaultAttributesIntegration']('outdentList'),_0x2a34c4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a34c4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a34c4['registerBlockAttribute']('listItemId'),_0x2a34c4['registerBlockAttribute']('listType'),_0x2a34c4['registerBlockAttribute']('listIndent'),_0x359950&&(_0x2a34c4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a34c4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x143f6c&&(_0x2a34c4['enableDefaultAttributesIntegration']('todoList'),_0x2a34c4['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a34c4['registerBlockAttribute']('todoListChecked'),_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x2613da=>{const {data:_0x58dadb}=_0x2613da;if(_0x58dadb&&'todoListChecked'==_0x58dadb['key'])return{'type':'format','content':_0x58dadb['newValue']?c(_0x958e8f,'*Check\x20item*'):c(_0x958e8f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ca96a=>{if(_0x4ca96a['batch']['isUndo'])return!0x1;let _0x1843c7=!0x1;const _0x7a0abd=_0x2a34c4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb90560=>'todoListChecked'===_0x2a34c4['_getAttributeKey'](_0xb90560));for(const _0x184026 of _0x7a0abd){'todo'!=_0x184026['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a34c4['_findSuggestions'](_0x184026['getFirstRange'](),'attribute')['find'](_0x4fbeab=>'listType'===_0x2a34c4['_getAttributeKey'](_0x4fbeab['suggestion']))||(_0x4ca96a['removeMarker'](_0x184026['getFirstMarker']()),_0x1843c7=!0x0));}return _0x1843c7;})),_0x2a34c4['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x958e8f,'FORMAT_INDENT'));const _0x23e5ae={'type':'format','content':''};_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x49880d=>{const {data:_0x273105}=_0x49880d;if(!_0x273105||'listType'!=_0x273105['key'])return;let _0x5cba3c=_0x49880d['head'];for(;_0x5cba3c;){if(_0x5cba3c['data']&&(('listStyle'==_0x5cba3c['data']['key']||'listMarkerStyle'==_0x5cba3c['data']['key'])&&(_0x5cba3c['data']['newValue']&&'default'!=_0x5cba3c['data']['newValue']||'default'!=_0x5cba3c['data']['oldValue']&&!_0x273105['newValue'])||!_0x359950&&_0x5cba3c['data']['key']==u))return _0x23e5ae;_0x5cba3c=_0x5cba3c['next'];}if(null==_0x273105['newValue'])switch(_0x273105['oldValue']){case'bulleted':return _0x1333bf(c(_0x958e8f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1333bf(c(_0x958e8f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1333bf(c(_0x958e8f,'ELEMENT_TODO_LIST'));}switch(_0x273105['newValue']){case'bulleted':return _0x5a7b12(c(_0x958e8f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a7b12(c(_0x958e8f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a7b12(c(_0x958e8f,'ELEMENT_TODO_LIST'));}}),_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x2310a6=>{const {data:_0x499d73}=_0x2310a6;if(_0x499d73&&'listIndent'==_0x499d73['key'])return null==_0x499d73['newValue']||null==_0x499d73['oldValue']&&0x0==_0x499d73['newValue']?_0x23e5ae:void 0x0;}),_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x5fa79=>{if('attribute'!=_0x5fa79['type'])return;const {data:_0x259f12}=_0x5fa79;if(!_0x259f12||'listItemId'!=_0x259f12['key'])return;const _0x44e41e=Te(_0x5fa79);return'newValue'==_0x44e41e?{'type':'format','content':c(_0x958e8f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x44e41e?{'type':'format','content':c(_0x958e8f,'*Split:*\x20list\x20item')}:_0x23e5ae;}),_0x3c69f4['model']['document']['registerPostFixer'](_0x324c04=>this['listItemIdFixer'](_0x324c04)),_0x3c69f4['model']['document']['registerPostFixer'](_0x3df655=>this['noTrackChangesFixer'](_0x3df655)),_0x3c69f4['model']['document']['on']('change:data',(_0xbda3aa,_0x3dd76b)=>{if(_0x3dd76b['isUndo']||!_0x3dd76b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x111e85){if(_0x111e85['batch']['isUndo']||!_0x111e85['batch']['isLocal'])return!0x1;let _0x3fc3bd=!0x1;const _0x607fec=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494008=>_0x494008['data']&&'listItemId'==_0x494008['data']['key'])['filter'](_0x269963=>_0x269963['data']['newValue']&&_0x269963['data']['oldValue']);for(const _0x4fde72 of _0x607fec)Te(_0x4fde72)||(_0x111e85['removeMarker'](_0x4fde72['getFirstMarker']()),_0x3fc3bd=!0x0);return _0x3fc3bd;}['noTrackChangesFixer'](_0xee02a3){if(_0xee02a3['batch']['isUndo']||!_0xee02a3['batch']['isLocal'])return!0x1;const _0x514f32=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x514f32['trackChangesCommand']['value'])return!0x1;let _0x3b853f=!0x1;const _0x1eee2e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4dc9c6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f4a02=>'attribute'==_0x3f4a02['type'])['filter'](_0x2a3963=>_0x1eee2e['includes'](_0x2a3963['attributeKey']));if(0x0==_0x4dc9c6['length'])return _0x3b853f;for(const _0x1f872 of _0x4dc9c6){const _0x3f7a92=_0x514f32['_findSuggestions'](_0x1f872['range'],'attribute')['filter'](_0x39dd31=>!_0x39dd31['meta']['isNextTo'])['map'](_0x15b4d3=>_0x15b4d3['suggestion'])['filter'](_0x4a23e0=>{const _0x1e0919=_0x514f32['_getAttributeKey'](_0x4a23e0);return _0x1eee2e['includes'](_0x1e0919);});if(_0x3f7a92['length']){for(const _0x32058d of _0x3f7a92)_0xee02a3['removeMarker'](_0x32058d['getFirstMarker']());_0x3b853f=!0x0;}}return _0x3b853f;}['assureChains'](){const _0x407203=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3043=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x56c4b6;const _0x12af76=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x238425=>{if(_0x238425['data']['oldRange']||!_0x238425['data']['newRange'])return null;if(!_0x238425['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xbacc7c}=_0x407203['_splitMarkerName'](_0x238425['name']);if(!_0x407203['hasSuggestion'](_0xbacc7c))return null;const _0x1e9472=_0x407203['getSuggestion'](_0xbacc7c);return _0x2d3043['includes'](_0x1e9472['data']['key']);})['map'](_0x4b5554=>{const {id:_0x4b2e26}=_0x407203['_splitMarkerName'](_0x4b5554['name']),_0x487d8a=_0x407203['getSuggestion'](_0x4b2e26);return _0x56c4b6=_0x487d8a['attributes']['groupId'],_0x487d8a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12af76['size'])return;const _0x348ba1=_0x407203['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c37f2=>'attribute'==_0x3c37f2['type']&&_0x3c37f2['data']&&_0x2d3043['includes'](_0x3c37f2['data']['key'])&&_0x3c37f2['attributes']['groupId']!=_0x56c4b6)['map'](_0x50c6c5=>({'listItem':_0x50c6c5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50c6c5['attributes']['groupId']})),_0x585e88=new Set();for(const {groupId:_0x531470,listItem:_0x3cbfad}of _0x348ba1)_0x12af76['has'](_0x3cbfad)&&_0x585e88['add'](_0x531470);for(const _0x582431 of _0x407203['getSuggestions']())_0x585e88['has'](_0x582431['attributes']['groupId'])&&_0x582431['setAttribute']('groupId',_0x56c4b6);}['_supportLegacySuggestions'](){const _0x3ffeeb=this['editor'],_0x22128=_0x3ffeeb['locale'],_0x395001=_0x3ffeeb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x395001['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53272a,_0x5dda30){const _0x201d2d=[];for(let _0x58dc3c of _0x53272a)_0x58dc3c['start']['nodeAfter']===_0x58dc3c['end']['parent']&&(_0x58dc3c=_0x3ffeeb['model']['createRange'](_0x3ffeeb['model']['createPositionAt'](_0x58dc3c['start']['nodeAfter'],0x0))),_0x201d2d['push'](_0x58dc3c);_0x3ffeeb['model']['change'](_0x54da33=>{const _0x14d1be=_0x3ffeeb['model']['document']['selection'],_0x310e53=Array['from'](_0x14d1be['getRanges']())['map'](_0x3ebc4a=>_0x31bd77['fromRange'](_0x3ebc4a));_0x54da33['setSelection'](_0x201d2d),_0x3ffeeb['commands']['get'](_0x5dda30['commandName'])['refresh'](),_0x5dda30['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ffeeb['execute'](_0x5dda30['commandName'],..._0x5dda30['commandParams']),_0x54da33['setSelection'](_0x310e53);for(const _0x366e54 of _0x310e53)_0x366e54['detach']();});}),_0x395001['descriptionFactory']['registerElementLabel'](function(_0x5638e7){const _0x2ec6c3=!_0x3ffeeb['model']['schema']['isObject'](_0x5638e7),_0xa5b5a=_0x5638e7['previousSibling'],_0x2157b6=_0x5638e7['nextSibling'],_0x3b479c=_0x5638e7['getAttribute']('listItemId'),_0x4da311=!_0xa5b5a||_0xa5b5a['getAttribute']('listItemId')!==_0x3b479c,_0x9bf0b1=!_0x2157b6||_0x2157b6['getAttribute']('listItemId')!==_0x3b479c;return _0x2ec6c3&&Boolean(_0x3b479c)&&_0x4da311&&_0x9bf0b1;},_0x4b6e5d=>c(_0x22128,'ELEMENT_LIST_ITEM',_0x4b6e5d));}['_registerLegacyDescription'](){const _0x364dfb=this['editor'],_0x408edb=_0x364dfb['locale'];function _0x595822(_0x54f28e){const _0x52878d=_0x364dfb['commands']['get']('bulletedList')['value'],_0x4db2d6=_0x364dfb['commands']['get']('numberedList')['value'];return'numberedList'===_0x54f28e?_0x52878d:_0x4db2d6;}_0x364dfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2df848){if('formatBlock'!=_0x2df848['type'])return;const {data:_0x5ce058}=_0x2df848;if(!_0x5ce058)return;let _0x20569b,_0x5a65d5,_0x1d5439,_0x2b1ece;switch(_0x5ce058['commandName']){case'bulletedList':_0x1d5439=_0x5ce058['commandParams'][0x0]['forceValue'],_0x2b1ece=_0x595822(_0x5ce058['commandName']),_0x20569b=_0x1d5439?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b1ece&&_0x364dfb['config']['get']('list.multiBlock')||(_0x20569b='*Change\x20to:*\x20%0'),_0x5a65d5={'type':'format','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d5439=_0x5ce058['commandParams'][0x0]['forceValue'],_0x2b1ece=_0x595822(_0x5ce058['commandName']),_0x20569b=_0x1d5439?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b1ece&&_0x364dfb['config']['get']('list.multiBlock')||(_0x20569b='*Change\x20to:*\x20%0'),_0x5a65d5={'type':'format','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20569b='*Indent:*\x20%0',_0x5a65d5={'type':'format','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20569b=function(_0x109817){const _0x4d50d3=_0x109817['getFirstRange']();let _0x4eb422=_0x4d50d3['start']['nodeAfter'];for(;_0x4eb422&&_0x4d50d3['containsItem'](_0x4eb422);){if(_0x4eb422['getAttribute']('listIndent')>0x0)return!0x1;_0x4eb422=_0x4eb422['nextSibling'];}return!0x0;}(_0x2df848)?c(_0x408edb,'*Format:*\x20remove\x20from\x20%0',c(_0x408edb,function(_0x30814a){return'ELEMENT_'+_0x30814a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2df848))):c(_0x408edb,'*Outdent:*\x20%0',c(_0x408edb,'ELEMENT_LIST_ITEM')),_0x5a65d5={'type':'format','content':_0x20569b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5ce058['multipleBlocks']&&(_0x20569b='*Merge:*\x20%0',_0x5a65d5={'type':'deletion','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_LIST_ITEM'))});}return _0x5a65d5;});}}function Te(_0x22fe33){let _0x10f672=_0x22fe33['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10f672;){const _0x239a6d=_0x10f672['getAttribute']('listItemId');if(!_0x239a6d)return!0x1;if(_0x239a6d==_0x22fe33['data']['newValue'])return'newValue';if(_0x239a6d==_0x22fe33['data']['oldValue'])return'oldValue';_0x10f672=_0x10f672['previousSibling'];}return!0x1;}class Se extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3103df=this['editor']['config']['get']('list.properties'),_0x288264=this['editor']['plugins']['get']('TrackChangesEditing');_0x3103df['styles']&&(_0x288264['enableDefaultAttributesIntegration']('listStyle'),_0x288264['registerBlockAttribute']('listStyle')),_0x3103df['reversed']&&(_0x288264['enableDefaultAttributesIntegration']('listReversed'),_0x288264['registerBlockAttribute']('listReversed')),_0x3103df['startIndex']&&(_0x288264['enableDefaultAttributesIntegration']('listStart'),_0x288264['registerBlockAttribute']('listStart'));const _0x317c99={'type':'format','content':''};_0x288264['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x525973=this['editor']['locale'];_0x288264['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x525973,'FORMAT_LIST_REVERSED')),_0x288264['descriptionFactory']['registerDescriptionCallback'](_0x84c62f=>{const {data:_0x441f9b}=_0x84c62f;if(_0x441f9b&&'listReversed'==_0x441f9b['key'])return null==_0x441f9b['newValue']||0x0==_0x441f9b['newValue']&&null==_0x441f9b['oldValue']?_0x317c99:void 0x0;}),_0x288264['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x525973,'FORMAT_LIST_START')),_0x288264['descriptionFactory']['registerDescriptionCallback'](_0x1d7998=>{const {data:_0x1d6deb}=_0x1d7998;if(_0x1d6deb&&'listStart'==_0x1d6deb['key'])return null==_0x1d6deb['newValue']||0x1==_0x1d6deb['newValue']&&null==_0x1d6deb['oldValue']?_0x317c99:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4a747b=>{if(_0x4a747b['batch']['isUndo'])return!0x1;let _0x289d00=!0x1;const _0x81b8fd=_0x288264['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19145e=>{const _0x3ba4c8=_0x288264['_getAttributeKey'](_0x19145e);return'listStart'==_0x3ba4c8||'listReversed'==_0x3ba4c8;});for(const _0xb60e01 of _0x81b8fd){const _0x456678=_0xb60e01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x456678||'customNumbered'==_0x456678)continue;_0x288264['_findSuggestions'](_0xb60e01['getFirstRange'](),'attribute')['find'](_0xabd48d=>'listType'==_0x288264['_getAttributeKey'](_0xabd48d['suggestion']))||(_0x4a747b['removeMarker'](_0xb60e01['getFirstMarker']()),_0x289d00=!0x0);}return _0x289d00;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x26bd55){const _0xd6ef84=this['editor']['locale'],{data:_0x40183f}=_0x26bd55,_0x3d027c={'type':'format','content':''};if(!_0x40183f||'listStyle'!=_0x40183f['key'])return;if(!_0x40183f['oldValue'])return'default'==_0x40183f['newValue']?_0x3d027c:{'type':'format','content':''+c(_0xd6ef84,'*Set\x20format:*\x20%0',c(_0xd6ef84,this['_getTranslationKeyForListStyle'](_0x40183f['newValue'])))};if(!_0x40183f['newValue']){if('default'==_0x40183f['oldValue'])return _0x3d027c;let _0x52417b=_0x26bd55['head'];for(;_0x52417b;){if(_0x52417b['data']&&'listType'==_0x52417b['data']['key']&&_0x52417b['data']['newValue'])return _0x3d027c;_0x52417b=_0x52417b['next'];}return{'type':'format','content':''+c(_0xd6ef84,'*Remove\x20format:*\x20%0',c(_0xd6ef84,this['_getTranslationKeyForListStyle'](_0x40183f['oldValue'])))};}if('default'!=_0x40183f['newValue'])return{'type':'format','content':''+c(_0xd6ef84,'*Set\x20format:*\x20%0',c(_0xd6ef84,this['_getTranslationKeyForListStyle'](_0x40183f['newValue'])))};let _0xb93dc0=_0x26bd55['head'];for(;_0xb93dc0;){if(_0xb93dc0['data']&&'listType'==_0xb93dc0['data']['key']&&_0xb93dc0['data']['newValue']&&_0xb93dc0['data']['oldValue'])return _0x3d027c;_0xb93dc0=_0xb93dc0['next'];}return{'type':'format','content':c(_0xd6ef84,'*Set\x20format:*\x20%0',c(_0xd6ef84,'ELEMENT_'+_0x26bd55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e92d3=this['editor'],_0x552c64=_0x1e92d3['locale'];_0x1e92d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44de0d=>{if('formatBlock'!=_0x44de0d['type'])return;const {data:_0x50c5fb}=_0x44de0d;if(!_0x50c5fb)return;let _0x462f0c,_0x3df61a;switch(_0x50c5fb['commandName']){case'listStyle':_0x462f0c='*Change\x20to:*\x20%0',_0x3df61a={'type':'format','content':c(_0x552c64,_0x462f0c,c(_0x552c64,this['_getTranslationKeyForListStyle'](_0x50c5fb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x462f0c=_0x50c5fb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3df61a={'type':'format','content':c(_0x552c64,_0x462f0c)};break;case'listStart':_0x462f0c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3df61a={'type':'format','content':c(_0x552c64,_0x462f0c,_0x50c5fb['commandParams'][0x0]['startIndex'])};}return _0x3df61a;});}['_getTranslationKeyForListStyle'](_0x55dfa3){return'ELEMENT_'+function(_0x47ad00){if(_e['includes'](_0x47ad00))return'bulleted';if(Re['includes'](_0x47ad00))return'numbered';return null;}(_0x55dfa3)['toUpperCase']()+'_LIST_'+_0x55dfa3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x159581{static get['requires'](){return[_0x1692c2];}['init'](){const _0x5a707a=this['editor'],_0x24ce9d=_0x5a707a['plugins']['get']('TrackChangesEditing'),_0x2e8f6d=_0x5a707a['commands']['get']('enter');_0x24ce9d['enableCommand']('enter',()=>{_0x5a707a['model']['change'](_0x8b4248=>{const _0x301da5=_0x5a707a['model']['document']['selection'],_0x4b2f87=_0x301da5['getFirstPosition'](),_0x218a9b=_0x31bd77['fromRange'](_0x301da5['getFirstRange']());if(_0x2e8f6d['enterBlock'](_0x8b4248)){const _0x34836a=_0x5a707a['model']['createPositionAt'](_0x4b2f87['parent']['nextSibling'],0x0),_0x4df5a7=_0x8b4248['createRange'](_0x4b2f87,_0x34836a);_0x24ce9d['markInsertion'](_0x4df5a7);}else _0x8b4248['setSelection'](_0x8b4248['createRange'](_0x218a9b['end']));_0x218a9b['detach'](),_0x2e8f6d['fire']('afterExecute',{'writer':_0x8b4248});});}),_0x5a707a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5a707a,'split'),{'priority':'high'}),_0x5a707a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ec950,_0x185d7a,_0x9e1bac)=>{const _0x45cc34=_0x9e1bac['mapper']['markerNameToElements'](_0x185d7a['markerName']);if(_0x45cc34){for(const _0x5351a0 of _0x45cc34)_0x5351a0['hasClass']('ck-suggestion-marker-split')&&(_0x9e1bac['mapper']['unbindElementFromMarkerName'](_0x5351a0,_0x185d7a['markerName']),_0x9e1bac['writer']['remove'](_0x5351a0));}},{'priority':'high'}),_0x5a707a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x455401,_0x9f36de,_0x2bfa8b)=>{_0x2bfa8b['options']['showSuggestionHighlights']&&De(_0x5a707a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x455401,_0x9f36de,_0x2bfa8b);},{'priority':'high'});}}class Y extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3677d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3677d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3677d4['enableCommand']('findNext'),_0x3677d4['enableCommand']('findPrevious'),_0x3677d4['enableCommand']('replace'),_0x3677d4['enableCommand']('replaceAll');}['handleFindCommand'](_0x15c59c,_0x2470b1,_0x383d99={}){const _0x291891=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15c59c(_0x2ee99d=>{let _0x264fc4=('string'==typeof _0x2470b1?_0x291891['findByTextCallback'](_0x2470b1,_0x383d99):_0x2470b1)(_0x2ee99d);Array['isArray'](_0x264fc4)&&(_0x264fc4={'results':_0x264fc4,'searchText':'string'==typeof _0x2470b1?_0x2470b1:''});const _0x1517f3=_0x264fc4['results']['filter'](_0x36d1e2=>!0x1===this['_isInDeletionRange'](_0x36d1e2,_0x2ee99d['item']));return{..._0x264fc4,'results':_0x1517f3};},_0x383d99);}['_isInDeletionRange'](_0x1111c4,_0x1cce6c){const _0x1f5c5c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1cce6c,_0x1111c4['start']),this['editor']['model']['createPositionAt'](_0x1cce6c,_0x1111c4['end']));for(const _0x14433e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1f5c5c['getIntersection'](_0x14433e['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x159581{['afterInit'](){const _0x526fb7=this['editor']['locale'],_0x2627ac=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5e2944,commandName:_0xf49473}of to)this['editor']['plugins']['has'](_0x5e2944)&&(_0x2627ac['enableDefaultAttributesIntegration'](_0xf49473),_0x2627ac['registerInlineAttribute'](_0xf49473));_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x526fb7,'FORMAT_FONT_SIZE')),_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x526fb7,'FORMAT_FONT_FAMILY')),_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x526fb7,'FORMAT_FONT_COLOR')),_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x526fb7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407dc2=this['editor'],_0x1806ac=_0x407dc2['locale'];_0x407dc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36fadb=>{const _0x28eb8d=_0x1806ac['t'];if('formatInline'!=_0x36fadb['type'])return;const {data:_0x2ea280}=_0x36fadb;if(null!=_0x2ea280){if('fontSize'==_0x2ea280['commandName']){const _0x51b664=_0x2ea280['commandParams'][0x0]['value'];if(_0x51b664){const _0x574281=_0x28eb8d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5e168e=>_0x5e168e['model']==_0x51b664)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20size:*\x20%0',_0x574281)};}return{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ea280['commandName']){const _0xdaa981=_0x2ea280['commandParams'][0x0]['value'];return _0xdaa981?{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20family:*\x20%0',_0xdaa981)}:{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ea280['commandName']){const _0x30e680=_0x2ea280['commandParams'][0x0]['value'];if(_0x30e680){const _0x2d6a2f=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1f3dec=>_0x1f3dec['model']==_0x30e680);let _0x3169cb=_0x30e680,_0x2dff4c='';return _0x2d6a2f&&(_0x3169cb=_0x2d6a2f['label'],_0x2dff4c=_0x28eb8d(_0x3169cb)['toLowerCase']()),{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20color:*\x20%0',_0x2dff4c)['trim'](),'color':{'value':_0x30e680,'title':_0x2dff4c||_0x3169cb}};}return{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ea280['commandName']){const _0x5da213=_0x2ea280['commandParams'][0x0]['value'];if(_0x5da213){const _0x36468a=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x54c101=>_0x54c101['model']==_0x5da213);let _0xaf6bc4=_0x5da213,_0x9941ba='';return _0x36468a&&(_0xaf6bc4=_0x36468a['label'],_0x9941ba=_0x28eb8d(_0xaf6bc4)['toLowerCase']()),{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20background\x20color:*\x20%0',_0x9941ba)['trim'](),'color':{'value':_0x5da213,'title':_0x9941ba||_0xaf6bc4}};}return{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x159581{['afterInit'](){const _0x8076f7=this['editor'],_0x1a59e7=_0x8076f7['plugins']['get']('TrackChangesEditing'),_0x3802b0=_0x8076f7['commands']['get']('copyFormat'),_0x39487d=_0x8076f7['commands']['get']('pasteFormat');_0x3802b0&&_0x39487d&&(_0x1a59e7['enableDefaultAttributesIntegration']('pasteFormat'),_0x1a59e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xaef49a=this['editor'],_0xd9e377=_0xaef49a['locale'];_0xaef49a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351f90=>{if('formatBlock'!=_0x351f90['type']&&'formatInline'!=_0x351f90['type'])return;const {data:_0x4286f4}=_0x351f90;if(_0x4286f4&&'pasteFormat'===_0x4286f4['commandName']){const _0x41d751=[],_0x5a539e=_0x4286f4['commandParams'][0x0];for(const [_0x15db02,_0x4c0c51]of Object['entries'](_0x5a539e))_0x41d751['push'](ro(_0xaef49a,_0x15db02,_0x4c0c51));return _0x41d751['length']?{'type':'format','content':c(_0xd9e377,'*Set\x20format\x20to:*\x20%0',_0x41d751['join'](',\x20'))}:{'type':'format','content':c(_0xd9e377,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2fb96c,_0x2c9472,_0x566ae1){const _0x531ec0=_0x2fb96c['locale']['t'],_0x38c895=_0x2c9472['split'](/(?=[A-Z])/)['join']('\x20'),_0x5913ec=_0x531ec0(_0x38c895['charAt'](0x0)['toUpperCase']()+_0x38c895['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x566ae1)return _0x5913ec;if('fontColor'===_0x2c9472||'fontBackgroundColor'===_0x2c9472){const _0x3e087d=Zt(_0x2fb96c['config']['get']('fontColor.colors'))['find'](_0x55e8e6=>_0x55e8e6['model']==_0x566ae1);return _0x5913ec+'\x20('+(_0x3e087d?_0x531ec0(_0x3e087d['label'])['toLowerCase']():_0x566ae1)+')';}if('fontSize'===_0x2c9472&&isNaN(parseFloat(_0x566ae1))){const _0x569636=_0x2fb96c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2fb96c['config']['get']('fontSize.options'))['find'](_0x3c5c43=>_0x3c5c43['model']==_0x566ae1);return _0x5913ec+'\x20('+(_0x569636?_0x531ec0(_0x569636['title'])['toLowerCase']():_0x566ae1)+')';}return _0x5913ec+'\x20('+_0x566ae1+')';}class et extends _0x159581{['_headingOptions'];['afterInit'](){const _0x198c8c=this['editor'];if(!_0x198c8c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x198c8c['config']['get']('heading.options');const _0x1baa46=_0x198c8c['locale'],_0x5e39fc=_0x198c8c['plugins']['get']('TrackChangesEditing');_0x5e39fc['enableDefaultAttributesIntegration']('heading');for(const _0x1cca48 of this['_headingOptions'])'paragraph'!=_0x1cca48['model']&&_0x5e39fc['descriptionFactory']['registerElementLabel'](_0x1cca48['model'],_0x4110af=>{const _0x7a249=this['_getHeadingLevel'](_0x1cca48['model']);return null!==_0x7a249?_0x458449(_0x4110af,_0x7a249):_0x371811(_0x4110af,_0x1cca48['title']);});function _0x458449(_0x386399,_0x5b74ca){return c(_0x1baa46,'ELEMENT_HEADING',[_0x386399,_0x5b74ca]);}function _0x371811(_0x207411,_0x737e8a){return c(_0x1baa46,'ELEMENT_HEADING_CUSTOM',[_0x207411,_0x737e8a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9af4=this['editor'],_0x1a41d2=_0x5e9af4['locale'];function _0xbc92d8(_0x55ee5b,_0x2b3d1b){return c(_0x1a41d2,'ELEMENT_HEADING_CUSTOM',[_0x55ee5b,_0x2b3d1b]);}_0x5e9af4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a5696=>{if('formatBlock'!=_0x3a5696['type'])return;const {data:_0x550e4a}=_0x3a5696;if(_0x550e4a&&'heading'==_0x550e4a['commandName']){const _0x4e725f=_0x550e4a['commandParams'][0x0]['value'],_0x408076=this['_getHeadingLevel'](_0x4e725f);if(null!==_0x408076)return{'type':'format','content':c(_0x1a41d2,'*Change\x20to:*\x20%0',(_0x5c7f57=0x1,_0x118081=_0x408076,c(_0x1a41d2,'ELEMENT_HEADING',[_0x5c7f57,_0x118081])))};const _0x5ee40b=this['_headingOptions']['find'](_0x38779e=>_0x38779e['model']===_0x4e725f)['title'];return{'type':'format','content':c(_0x1a41d2,'*Change\x20to:*\x20%0',_0xbc92d8(0x1,_0x5ee40b))};}var _0x5c7f57,_0x118081;});}['_getHeadingLevel'](_0x628432){const _0x22b623=_0x628432['match'](/^heading(\d+)/);if(_0x22b623)return _0x22b623[0x1];const _0x24fb90=this['_headingOptions']?.['find'](_0x43afcd=>_0x43afcd['model']==_0x628432);if(_0x24fb90&&_0x24fb90['view']){const _0x45157f=_0x24fb90['view'],_0x2deee3=(_0x45157f['name']??_0x45157f)['match'](/^h(\d+)/);if(_0x2deee3)return _0x2deee3[0x1];}return null;}}class nt extends _0x159581{['afterInit'](){const _0x7ba166=this['editor'];if(!_0x7ba166['plugins']['has']('HighlightEditing'))return;const _0x173267=_0x7ba166['plugins']['get']('TrackChangesEditing'),_0x4b7690=_0x7ba166['locale'];_0x173267['enableDefaultAttributesIntegration']('highlight'),_0x173267['registerInlineAttribute']('highlight'),_0x173267['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4b7690,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e9713=this['editor'],_0x521a60=_0x1e9713['locale'];_0x1e9713['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c270f=>{if('formatInline'!=_0x2c270f['type'])return;const {data:_0x23a910}=_0x2c270f;if(_0x23a910&&'highlight'==_0x23a910['commandName']){const _0x494cc=_0x521a60['t'],_0x5eaae8=_0x23a910['commandParams'][0x0]['value'];if(_0x5eaae8){const _0x33302e=_0x1e9713['config']['get']('highlight.options')['find'](_0x245a02=>_0x245a02['model']==_0x5eaae8),_0x4f1055=_0x494cc(_0x33302e['title'])['toLowerCase']();return{'type':'format','content':c(_0x521a60,'*Set\x20highlight:*\x20%0',_0x4f1055),'color':{'value':_0x33302e['color'],'title':_0x33302e['title']}};}return{'type':'format','content':c(_0x521a60,'*Remove\x20highlight*',c(_0x521a60,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x159581{['afterInit'](){const _0x274ce0=this['editor'];if(!_0x274ce0['plugins']['has']('HorizontalLineEditing'))return;_0x274ce0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3398a9=_0x274ce0['plugins']['get']('TrackChangesEditing'),_0x3260f7=_0x274ce0['locale'];_0x3398a9['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe3bf44=>c(_0x3260f7,'ELEMENT_HORIZONTAL_LINE',_0xe3bf44)),_0x274ce0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40e3ad,{writer:_0xb498fc,options:_0x56f74b})=>{if(!_0x56f74b['showSuggestionHighlights'])return null;const _0x541fe1=_0xb498fc['createContainerElement']('div'),_0x55b35c=_0xb498fc['createEmptyElement']('hr');return _0xb498fc['addClass']('ck-horizontal-line',_0x541fe1),_0xb498fc['insert'](_0xb498fc['createPositionAt'](_0x541fe1,0x0),_0x55b35c),_0x541fe1;},'converterPriority':'high'});}}class st extends _0x159581{['afterInit'](){const _0x29e0b2=this['editor'];if(!_0x29e0b2['plugins']['has']('HtmlEmbed'))return;const _0x13f16c=_0x29e0b2['plugins']['get']('TrackChangesEditing'),_0x5dcafc=_0x29e0b2['locale'];_0x13f16c['descriptionFactory']['registerElementLabel']('rawHtml',_0x34d94d=>c(_0x5dcafc,'ELEMENT_HTML_EMBED',_0x34d94d)),_0x13f16c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x13f16c['registerBlockAttribute']('value'),_0x13f16c['descriptionFactory']['registerDescriptionCallback'](_0x3c4054=>{if('attribute'!=_0x3c4054['type'])return;const {data:_0xa9f952}=_0x3c4054;if(_0xa9f952&&'value'==_0xa9f952['key']&&_0x3c4054['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56036b=c(_0x5dcafc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5dcafc,'*Change\x20%0\x20content*',_0x56036b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e7ef=this['editor'],_0xc226c4=_0x53e7ef['locale'];_0x53e7ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8745ec=>{if('formatBlock'!=_0x8745ec['type'])return;const {data:_0x186fb5}=_0x8745ec;if(_0x186fb5&&'htmlEmbed'==_0x186fb5['commandName']){const _0x39f959=c(_0xc226c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc226c4,'*Change\x20%0\x20content*',_0x39f959)};}});}}class ot extends _0x159581{['afterInit'](){const _0x1c116c=this['editor'];if(!_0x1c116c['plugins']['has']('ImageEditing'))return;const _0x3099f8=_0x1c116c['plugins']['get']('TrackChangesEditing'),_0x148cfc=_0x1c116c['plugins']['get']('ImageUtils'),_0x1a7554=_0x1c116c['locale'];_0x3099f8['enableCommand']('insertImage'),_0x3099f8['descriptionFactory']['registerElementLabel']('imageBlock',_0x543c0b=>c(_0x1a7554,'ELEMENT_IMAGE',_0x543c0b)),_0x3099f8['descriptionFactory']['registerElementLabel']('imageInline',_0x2d689c=>c(_0x1a7554,'ELEMENT_INLINE_IMAGE',_0x2d689c)),_0x3099f8['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1a7554,'ELEMENT_CAPTION')),_0x1c116c['plugins']['has']('ImageUploadEditing')&&_0x3099f8['enableCommand']('uploadImage'),_0x1c116c['plugins']['has']('ImageBlockEditing')&&_0x1c116c['plugins']['has']('ImageInlineEditing')&&(_0x3099f8['enableCommand']('imageTypeInline',(_0x446b3b,_0x2a0b18)=>{const _0x259bda=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']);_0x1c116c['model']['change'](()=>{_0x3099f8['markBlockFormat'](_0x259bda,{'commandName':'imageTypeInline','commandParams':[_0x2a0b18]},[],'convertBlockImageToInline');});}),_0x3099f8['enableCommand']('imageTypeBlock',(_0x3dcf4c,_0x5deeb0)=>{_0x1c116c['model']['change'](_0x4eeaf1=>{let _0x3e4a82=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x592f5f=_0x4eeaf1['createRangeOn'](_0x3e4a82);const _0x3c906d=_0x37a8ec['fromPosition'](_0x592f5f['start'],'toPrevious'),_0x567ab8=_0x37a8ec['fromPosition'](_0x592f5f['end'],'toNext');_0x3099f8['forceDefaultExecution'](()=>_0x3dcf4c(_0x5deeb0)),_0x3e4a82=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x592f5f=_0x4eeaf1['createRangeOn'](_0x3e4a82);const _0x5283e0=_0x4eeaf1['createRange'](_0x3c906d,_0x567ab8);_0x3c906d['detach'](),_0x567ab8['detach'](),_0x3099f8['markBlockFormat'](_0x3e4a82,{'commandName':'imageTypeInline','commandParams':[_0x5deeb0]},[],'convertInlineImageToBlock'),_0x5283e0['start']['isBefore'](_0x592f5f['start'])&&_0x3099f8['markInsertion'](_0x4eeaf1['createRange'](_0x5283e0['start'],_0x592f5f['start']),'convertInlineImageToBlock'),_0x592f5f['end']['isBefore'](_0x5283e0['end'])&&_0x3099f8['markInsertion'](_0x4eeaf1['createRange'](_0x592f5f['end'],_0x5283e0['end']),'convertInlineImageToBlock');});}),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3099f8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x17b1fa])=>{const _0x9f6c2e=_0x3099f8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x404f5f=_0x17b1fa['start'],_0x20c85c=_0x17b1fa['end'];const _0x2dc6bd=_0x1c116c['model']['schema']['getNearestSelectionRange'](_0x404f5f,'backward'),_0x5ec553=_0x1c116c['model']['schema']['getNearestSelectionRange'](_0x20c85c,'forward');_0x2dc6bd['isCollapsed']&&(_0x404f5f=_0x2dc6bd['start']),_0x5ec553['isCollapsed']&&(_0x20c85c=_0x5ec553['end']),_0x9f6c2e([_0x1c116c['model']['createRange'](_0x404f5f,_0x20c85c)]);}),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3365f1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3365f1)),_0x1c116c['plugins']['has']('ImageCaptionEditing')&&(_0x3099f8['enableCommand']('toggleImageCaption',(_0x28d80f,_0x314a45)=>{const _0x1a10ed=_0x1c116c['plugins']['get']('ImageCaptionUtils');let _0x5edd85=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x250ef0=_0x1a10ed['getCaptionFromImageModelElement'](_0x5edd85);_0x1c116c['model']['change'](()=>{if(_0x250ef0)return void _0x3099f8['markDeletion'](_0x1c116c['model']['createRangeOn'](_0x250ef0));const _0x4370ba=_0x148cfc['isBlockImage'](_0x5edd85);_0x28d80f(_0x314a45),_0x5edd85=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x250ef0=_0x1a10ed['getCaptionFromImageModelElement'](_0x5edd85),_0x3099f8['markInsertion'](_0x1c116c['model']['createRangeOn'](_0x250ef0),_0x4370ba?null:'imageCaption');});}),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3365f1));const _0x1c91af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7a2d(_0x31906c,_0x214c4f){const _0x3701ae=_0x1c91af['findIndex'](({type:_0x38bd57,subType:_0xda0deb})=>_0x31906c['type']==_0x38bd57&&_0x31906c['subType']==_0xda0deb),_0x8bf6fb=_0x1c91af['findIndex'](({type:_0x31a251,subType:_0x15a816})=>_0x214c4f['type']==_0x31a251&&_0x214c4f['subType']==_0x15a816);if(_0x3701ae<0x0||_0x8bf6fb<0x0)return!0x1;const _0x15fc5d=_0x31906c['getFirstRange'](),_0x5a7c40=_0x214c4f['getFirstRange']();if((0x0==_0x3701ae||0x1==_0x3701ae)&&0x2==_0x8bf6fb&&_0x15fc5d['isIntersecting'](_0x5a7c40))return!0x0;if(0x2==_0x3701ae&&0x3==_0x8bf6fb){const _0x32f32e=_0x3099f8['_findSuggestions'](_0x15fc5d,'insertion')['filter'](({suggestion:_0xd085f,meta:_0x528731})=>_0x528731['isOwn']&&'convertInlineImageToBlock'==_0xd085f['subType']);if(_0x32f32e['length']>0x1&&_0x5a7c40['end']['isEqual'](_0x15fc5d['start']))return!0x0;if(0x1==_0x32f32e['length']&&(_0x15fc5d['start']['isEqual'](_0x5a7c40['end'])||_0x15fc5d['end']['isEqual'](_0x5a7c40['start'])))return!0x0;}if(0x3==_0x3701ae&&0x3==_0x8bf6fb&&_0x15fc5d['start']['isBefore'](_0x5a7c40['start'])){const _0x42d12c=_0x15fc5d['end']['nodeAfter'],_0x2a5f5c=_0x5a7c40['start']['nodeBefore'];return _0x148cfc['isBlockImage'](_0x42d12c)&&_0x42d12c===_0x2a5f5c;}return!0x1;}function _0x3365f1(_0x3ba519,_0x35c20f){return _0x2b7a2d(_0x3ba519,_0x35c20f)?[_0x3ba519,_0x35c20f]:_0x2b7a2d(_0x35c20f,_0x3ba519)?[_0x35c20f,_0x3ba519]:null;}_0x1c116c['plugins']['has']('ImageResize')&&(_0x3099f8['enableDefaultAttributesIntegration']('resizeImage'),_0x3099f8['registerBlockAttribute']('resizedWidth'),_0x3099f8['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1a7554,'FORMAT_IMAGE_SIZE'))),_0x1c116c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3099f8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3099f8['registerBlockAttribute']('alt')),_0x1c116c['plugins']['has']('PictureEditing')&&(_0x3099f8['registerBlockAttribute']('sources'),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x5a4331=>{if('attribute'!=_0x5a4331['type'])return;const {data:_0x1baf1c}=_0x5a4331;return _0x1baf1c&&'sources'==_0x1baf1c['key']?{'type':'format','content':''}:void 0x0;})),_0x1c116c['plugins']['has']('ImageSizeAttributes')&&(_0x3099f8['registerBlockAttribute']('width'),_0x3099f8['registerBlockAttribute']('height'),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x4d0e14=>{if('attribute'!=_0x4d0e14['type'])return;const {data:_0x5cd508}=_0x4d0e14;return!_0x5cd508||'width'!=_0x5cd508['key']&&'height'!=_0x5cd508['key']?void 0x0:{'type':'format','content':''};})),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x333b28=>{if(!!_0x1c91af['find'](({type:_0x2097c4,subType:_0x43ae2e})=>_0x333b28['type']==_0x2097c4&&_0x333b28['subType']==_0x43ae2e))return _0x333b28['previous']?{}:void 0x0;}),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x1df4ea=>{if('insertion'==_0x1df4ea['type']||'deletion'==_0x1df4ea['type']){const _0x5673da=_0x1df4ea['getContainedElement']();if(_0x5673da&&_0x5673da['is']('element','caption'))return{'type':'insertion'==_0x1df4ea['type']?'addObject':'removeObject','element':_0x5673da,'quantity':0x1};}}),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x4ae09f=>'formatBlock'==_0x4ae09f['type']&&'convertInlineImageToBlock'==_0x4ae09f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4ae09f['type']&&'convertBlockImageToInline'==_0x4ae09f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x38a6be=>{if('attribute'!=_0x38a6be['type'])return;const {data:_0x539195}=_0x38a6be;if(!_0x539195||'alt'!=_0x539195['key'])return;const _0x18a741=_0x539195['newValue'];return _0x18a741?{'type':'format','content':c(_0x1a7554,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x18a741+'\x22')}:{'type':'format','content':c(_0x1a7554,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d678e=this['editor'],_0x2c1f7d=_0x2d678e['locale'];_0x2d678e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49b334=>{if('formatBlock'!=_0x49b334['type']&&'formatInline'!=_0x49b334['type'])return;const {data:_0x4382a8}=_0x49b334;if(_0x4382a8){if('imageTextAlternative'==_0x4382a8['commandName']){const _0x419db1=_0x4382a8['commandParams'][0x0]['newValue'];return _0x419db1?{'type':'format','content':c(_0x2c1f7d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x419db1+'\x22')}:{'type':'format','content':c(_0x2c1f7d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4382a8['commandName']){const _0x1361b1=_0x4382a8['commandParams'][0x0]['width'];return _0x1361b1?{'type':'format','content':c(_0x2c1f7d,'*Set\x20image\x20width:*\x20%0',_0x1361b1)}:{'type':'format','content':c(_0x2c1f7d,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bd706=this['editor']['locale'],_0x4f9c41=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f9c41['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f9c41['registerBlockAttribute']('src'),_0x4f9c41['descriptionFactory']['registerDescriptionCallback'](_0x5bfaa8=>{if('attribute'!=_0x5bfaa8['type'])return;const {data:_0x3db7a6}=_0x5bfaa8;return _0x3db7a6&&'src'==_0x3db7a6['key']?_0x3db7a6['newValue']&&_0x3db7a6['oldValue']?{'type':'format','content':c(_0x2bd706,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5809fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5809fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5809fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5809fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5809fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fd343=this['editor'],_0x4c4d89=_0x1fd343['locale'];_0x1fd343['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f68ee=>{if('formatBlock'!=_0x3f68ee['type']&&'formatInline'!=_0x3f68ee['type'])return;const {data:_0x122471}=_0x3f68ee;if(!_0x122471||'replaceImageSource'!=_0x122471['commandName'])return;return{'type':'format','content':c(_0x4c4d89,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x159581{['afterInit'](){const _0x1e3713=this['editor'];if(!_0x1e3713['plugins']['has']('ImageStyleEditing'))return;const _0x4934cf=_0x1e3713['plugins']['get']('TrackChangesEditing'),_0x4ab64c=_0x1e3713['plugins']['get']('ImageUtils'),_0x46bfd4={};_0x4934cf['enableCommand']('imageStyle',(_0x52faab,_0x39e4bf)=>{const _0x14bd40=_0x1e3713['plugins']['get']('Users')['me'],_0xd0a6f9=_0x1e3713['commands']['get']('imageStyle');let _0x2bed46=_0x4ab64c['getClosestSelectedImageElement'](_0x1e3713['model']['document']['selection']),_0x396324=_0x1e3713['model']['createRangeOn'](_0x2bed46),_0x43f66d=_0xd0a6f9['value'];if(_0x43f66d==_0x39e4bf['value'])return;const _0x4ea9de={'commandName':'imageStyle','commandParams':[_0x39e4bf],'formatGroupId':_0x4adad1()};_0x1e3713['model']['change'](()=>{if(_0x4934cf['getSuggestions']()['filter'](_0xa4efaf=>_0xa4efaf['isInContent']&&_0x14bd40==_0xa4efaf['author']&&('formatBlock'==_0xa4efaf['type']||'formatInline'==_0xa4efaf['type'])&&('imageStylePreApply'==_0xa4efaf['subType']||'imageStylePostApply'==_0xa4efaf['subType'])&&_0xa4efaf['getFirstRange']()['isEqual'](_0x396324))['forEach'](_0x36f0cf=>_0x4934cf['discardSuggestion'](_0x36f0cf['head'])),_0x2bed46=_0x4ab64c['getClosestSelectedImageElement'](_0x1e3713['model']['document']['selection']),_0x396324=_0x1e3713['model']['createRangeOn'](_0x2bed46),_0xd0a6f9['refresh'](),_0x1e3713['commands']['get']('imageTypeInline')['refresh'](),_0x1e3713['commands']['get']('imageTypeBlock')['refresh'](),_0x43f66d=_0xd0a6f9['value'],_0x43f66d!=_0x39e4bf['value'])return _0x4ab64c['isInlineImage'](_0x2bed46)&&_0xd0a6f9['shouldConvertImageType'](_0x39e4bf['value'],_0x2bed46)?(_0x52faab({..._0x39e4bf,'setImageSizes':!0x1}),_0x2bed46=_0x4ab64c['getClosestSelectedImageElement'](_0x1e3713['model']['document']['selection']),void _0x4934cf['markBlockFormat'](_0x2bed46,{..._0x4ea9de,'commandReversedParams':[{'value':_0x43f66d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ab64c['isBlockImage'](_0x2bed46)?_0x4934cf['markBlockFormat'](_0x2bed46,_0x4ea9de,[],'imageStylePostApply'):_0x4934cf['markInlineFormat'](_0x396324,_0x4ea9de,'imageStylePostApply'));});});for(const _0x28e3aa of _0x1e3713['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46bfd4[_0x28e3aa['name']]=_0x28e3aa['title']['toLowerCase']();_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x121034])=>{_0x4ab64c['setImageNaturalSizeAttributes'](_0x121034['getContainedElement']());}),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xb56f6e,_0xd7535c)=>{_0x4934cf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb56f6e,{'commandName':_0xd7535c['commandName'],'commandParams':_0xd7535c['commandReversedParams']});}),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x42221d,_0x43ab75){if(_0x16e216(_0x42221d,_0x43ab75))return[_0x42221d,_0x43ab75];if(_0x16e216(_0x43ab75,_0x42221d))return[_0x43ab75,_0x42221d];return null;});const _0x3cf5e6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16e216(_0x5b8abe,_0x270b54){const _0x56a57a=_0x3cf5e6['findIndex'](({type:_0x6ce80d,subType:_0xefd51b})=>_0x5b8abe['type']==_0x6ce80d&&_0x5b8abe['subType']==_0xefd51b),_0x432b4b=_0x3cf5e6['findIndex'](({type:_0x63910e,subType:_0x155cfd})=>_0x270b54['type']==_0x63910e&&_0x270b54['subType']==_0x155cfd);if(_0x56a57a<0x0||_0x432b4b<0x0)return!0x1;const _0x395e92=_0x5b8abe['getFirstRange'](),_0x5bed25=_0x270b54['getFirstRange']();if((0x0==_0x56a57a||0x1==_0x56a57a)&&0x2==_0x432b4b&&_0x395e92['isIntersecting'](_0x5bed25))return!0x0;if(0x2==_0x56a57a&&0x3==_0x432b4b){const _0x110643=_0x4934cf['_findSuggestions'](_0x395e92,'insertion')['filter'](({suggestion:_0xc2fe8,meta:_0x387323})=>_0x387323['isOwn']&&'convertInlineImageToBlock'==_0xc2fe8['subType']);if(_0x110643['length']>0x1&&_0x5bed25['end']['isEqual'](_0x395e92['start']))return!0x0;if(0x1==_0x110643['length']&&(_0x395e92['start']['isEqual'](_0x5bed25['end'])||_0x395e92['end']['isEqual'](_0x5bed25['start'])))return!0x0;}if(0x3==_0x56a57a&&0x3==_0x432b4b&&_0x395e92['start']['isBefore'](_0x5bed25['start'])){const _0x4f419a=_0x395e92['end']['nodeAfter'],_0x1be179=_0x5bed25['start']['nodeBefore'];return _0x4ab64c['isBlockImage'](_0x4f419a)&&_0x4f419a===_0x1be179;}return!0x1;}_0x1e3713['model']['document']['registerPostFixer'](()=>{let _0xce210a=!0x1;const _0x56ca65=Array['from'](_0x1e3713['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43acbc,data:_0x390e91}of _0x56ca65){const {group:_0x1a7281,type:_0x4db9c7,subType:_0x14b237,id:_0x59d6b0}=_0x4934cf['_splitMarkerName'](_0x43acbc);if('suggestion'==_0x1a7281&&_0x4934cf['hasSuggestion'](_0x59d6b0)){if('formatBlock'==_0x4db9c7&&('imageStylePreApply'==_0x14b237||'imageStylePostApply'==_0x14b237)){const _0x5b6b4b=_0x4934cf['getSuggestion'](_0x59d6b0);if(_0x390e91['newRange']){const _0x2b5212=_0x5b6b4b['getFirstRange']()['getContainedElement']();if(_0x4ab64c['isBlockImage'](_0x2b5212))continue;_0x4934cf['discardSuggestion'](_0x5b6b4b),_0xce210a=!0x0;}}if('insertion'==_0x4db9c7&&'imageCaption'==_0x14b237&&!_0x390e91['newRange']){const _0x5e7334=_0x4934cf['getSuggestion'](_0x59d6b0);_0x5e7334['next']&&_0x5e7334['next']['isInContent']&&(_0x4934cf['discardSuggestion'](_0x5e7334['next']),_0xce210a=!0x0);}}}return _0xce210a;}),this['_registerLegacyDescription'](_0x46bfd4);}['_registerLegacyDescription'](_0x5cee80){const _0x56fa2f=this['editor'],_0x141eb6=_0x56fa2f['locale'];_0x56fa2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x316947=>{if('formatBlock'!=_0x316947['type']&&'formatInline'!=_0x316947['type'])return;const {data:_0xe33b7b}=_0x316947;if(!_0xe33b7b||'imageStyle'!=_0xe33b7b['commandName'])return;const _0x257bb1=_0xe33b7b['commandParams'][0x0]['value'];return _0x13aeea('side'===_0x257bb1?c(_0x141eb6,'FORMAT_SIDE_IMAGE'):_0x5cee80[_0x257bb1]||_0x257bb1);function _0x13aeea(_0x50a6ed){return{'type':'format','content':c(_0x141eb6,'*Format:*\x20%0',_0x50a6ed)};}});}}class ct extends _0x159581{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x297688){super(_0x297688),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x49383f=this['editor'],_0x25fa0e=_0x49383f['commands']['get']('importWord'),_0x3e2ea9=_0x49383f['commands']['get']('trackChanges');_0x25fa0e&&(_0x25fa0e['on']('execute',(_0x48d4ab,[,_0x41e17d])=>{this['_trackChangesValueDuringImport']=_0x3e2ea9['value'],_0x41e17d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x25fa0e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x25fa0e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e2ea9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x49383f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c7da1,_0x3881b7){const {suggestions:_0xd12943}=_0x3881b7,_0x25af34=this['editor']['commands']['get']('trackChanges'),_0x5203f1=_0x25af34['value'];this['_trackChangesValueDuringImport']!==_0x5203f1&&(_0x25af34['execute'](),this['_trackChangesExecuted']=!0x0),_0xd12943&&_0xd12943['forEach'](({id:_0x44cb57,type:_0x47f53b,author:_0x45f3e1,created_at:_0x46599c})=>{const _0x4c48c5={'id':_0x44cb57,'type':_0x47f53b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x45f3e1,'createdAt':_0x46599c?new Date(_0x46599c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c48c5);});}}class ut extends _0x159581{['afterInit'](){const _0x26f60f=this['editor'],_0x202436=_0x26f60f['plugins']['get']('TrackChangesEditing');if(_0x26f60f['plugins']['has']('IndentEditing')&&(_0x202436['enableCommand']('indent'),_0x202436['enableCommand']('outdent')),_0x26f60f['plugins']['has']('IndentBlock')){for(const _0x561cd1 of['indentBlock','outdentBlock'])_0x202436['enableDefaultAttributesIntegration'](_0x561cd1);}const _0x291fae=_0x26f60f['locale'];_0x202436['registerBlockAttribute']('blockIndent'),_0x202436['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x291fae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d47c0=this['editor'],_0x24a4da=_0x6d47c0['locale'],_0x2ba0a9=_0x6d47c0['plugins']['get']('TrackChangesEditing');_0x2ba0a9['descriptionFactory']['registerDescriptionCallback'](_0x1384ce=>{if('formatBlock'!=_0x1384ce['type'])return;const {data:_0x1f4543}=_0x1384ce;if(!_0x1f4543)return;if('indentBlock'!=_0x1f4543['commandName']&&'outdentBlock'!=_0x1f4543['commandName'])return;const _0x3d93aa=_0x1384ce['getItems']()[0x0],_0xfd48ca=_0x2ba0a9['descriptionFactory']['getItemLabel'](_0x3d93aa);return'indentBlock'==_0x1f4543['commandName']?{'type':'format','content':c(_0x24a4da,'*Indent:*\x20%0',_0xfd48ca)}:'outdentBlock'==_0x1f4543['commandName']?{'type':'format','content':c(_0x24a4da,'*Outdent:*\x20%0',_0xfd48ca)}:void 0x0;});}}class ft extends _0x159581{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x159581{['afterInit'](){const _0x138530=this['editor'];if(!_0x138530['plugins']['has']('LinkEditing'))return;const _0x4682ee=_0x138530['plugins']['get']('TrackChangesEditing'),_0x323576=_0x138530['commands']['get']('link');_0x4682ee['enableDefaultAttributesIntegration']('link'),_0x4682ee['enableDefaultAttributesIntegration']('unlink'),_0x4682ee['registerInlineAttribute']('linkHref');for(const _0x50d654 of _0x323576['manualDecorators'])_0x4682ee['registerInlineAttribute'](_0x50d654['id']),_0x4682ee['descriptionFactory']['registerAttributeLabel'](_0x50d654['id'],'link\x20('+_0x50d654['label']['toLowerCase']()+')');_0x4682ee['descriptionFactory']['registerDescriptionCallback'](_0x39b89b=>{if('attribute'!=_0x39b89b['type'])return;const {data:_0x43cc63}=_0x39b89b;if(!_0x43cc63||'linkHref'!=_0x43cc63['key'])return;const _0x58384e=_0x43cc63['newValue'],_0x50f23c=_0x138530['locale'];return{'type':'format','content':null==_0x58384e?c(_0x50f23c,'*Remove\x20link*'):c(_0x50f23c,'*Set\x20link:*\x20%0','\x22'+_0x58384e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbee7bc=this['editor'],_0x5a4dd3=_0xbee7bc['locale'];_0xbee7bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458951=>{if('formatInline'!=_0x458951['type'])return;const {data:_0x445377}=_0x458951;if(_0x445377){if('link'==_0x445377['commandName']){const _0xd300fb=_0x445377['commandParams'][0x0];return{'type':'format','content':c(_0x5a4dd3,'*Set\x20link:*\x20%0','\x22'+_0xd300fb+'\x22')};}return'unlink'==_0x445377['commandName']?{'type':'format','content':c(_0x5a4dd3,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x159581{['afterInit'](){const _0x58d26a=this['editor'],_0x4db9da=_0x58d26a['locale'];if(!_0x58d26a['plugins']['has']('LegacyListEditing'))return;const _0x8bc3de=_0x58d26a['plugins']['get']('TrackChangesEditing'),_0x588457=_0x58d26a['plugins']['has']('LegacyTodoListEditing');function _0x34f4f2(_0x4e29d9){return()=>{const _0x3c6092=_0x58d26a['model']['document']['selection'],_0x4a53f8=_0x58d26a['commands']['get'](_0x4e29d9);if(_0x4a53f8['value'])return void _0x58d26a['execute']('paragraph',{});const _0x1821e0=_0x4e29d9['slice'](0x0,-0x4),_0x73e250=function(_0x21a81f,_0x139480,_0x1fe78c){let _0x471f77=Array['from'](_0x21a81f)['filter'](_0x3dd507=>function(_0x150c98,_0x14faf2){return _0x14faf2['checkChild'](_0x150c98['parent'],'listItem')&&!_0x14faf2['isObject'](_0x150c98);}(_0x3dd507,_0x1fe78c));_0x471f77=_0x471f77['filter'](_0x3511e7=>!_0x3511e7['is']('element','listItem')||_0x3511e7['getAttribute']('listType')!=_0x139480);const _0xcb036f=new Set();for(const _0x4351e2 of _0x471f77)_0x4351e2['is']('element','listItem')?_0xcb036f['add'](Le(_0x4351e2)):_0xcb036f['add'](_0x4351e2);return Array['from'](_0xcb036f);}(_0x3c6092['getSelectedBlocks'](),_0x1821e0,_0x58d26a['model']['schema']);_0x58d26a['model']['change'](()=>{for(const _0xf6e549 of _0x73e250)_0x8bc3de['markBlockFormat'](_0xf6e549,{'commandName':_0x4e29d9,'commandParams':[{'forceValue':!_0x4a53f8['value']}],'formatGroupId':'blockName'},Ee(_0xf6e549));});};}function _0x1a1454(_0x1ac1fa){return()=>{const _0x4230e3=function(_0x4ff8a5){let _0x28681b=Array['from'](_0x4ff8a5);const _0x4a7b38=_0x28681b['findIndex'](_0x4238d0=>'listItem'!=_0x4238d0['name']);return _0x4a7b38>-0x1&&(_0x28681b=_0x28681b['slice'](0x0,_0x4a7b38)),_0x28681b;}(_0x58d26a['model']['document']['selection']['getSelectedBlocks']()),_0xc9e167=_0x58d26a['model']['createRange'](_0x58d26a['model']['createPositionAt'](_0x4230e3[0x0],'before'),_0x58d26a['model']['createPositionAt'](_0x4230e3[_0x4230e3['length']-0x1],'end'));_0x58d26a['model']['change'](()=>{_0x8bc3de['markBlockFormat'](_0xc9e167,{'commandName':_0x1ac1fa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a111f){const _0x3ef7bb=new Set();for(const _0x3f2dd8 of _0x1a111f){let _0x56e790=_0x3f2dd8['nextSibling'];for(;_0x56e790&&_0x56e790['getAttribute']('listIndent')>_0x3f2dd8['getAttribute']('listIndent');)_0x3ef7bb['add'](_0x56e790),_0x56e790=_0x56e790['nextSibling'];}return Array['from'](_0x3ef7bb);}(_0x4230e3));});};}_0x8bc3de['enableCommand']('numberedList',_0x34f4f2('numberedList')),_0x8bc3de['enableCommand']('bulletedList',_0x34f4f2('bulletedList')),_0x588457&&_0x8bc3de['enableCommand']('todoList',_0x34f4f2('todoList')),_0x8bc3de['enableCommand']('indentList',_0x1a1454('indentList')),_0x8bc3de['enableCommand']('outdentList',_0x1a1454('outdentList')),_0x588457&&_0x8bc3de['enableCommand']('checkTodoList',()=>{const _0x5309b6=_0x58d26a['commands']['get']('checkTodoList'),_0x3cd7d7=Array['from'](_0x5309b6['_selectedElements']);_0x3cd7d7['filter'](_0x58d5d3=>_0x58d5d3['getAttribute']('todoListChecked')!=_0x5309b6['value']),_0x58d26a['model']['change'](()=>{for(const _0x278935 of _0x3cd7d7)_0x8bc3de['markBlockFormat'](_0x278935,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5309b6['value']}]});});}),_0x8bc3de['descriptionFactory']['registerElementLabel']('listItem',_0x17bd77=>c(_0x4db9da,'ELEMENT_LIST_ITEM',_0x17bd77)),_0x8bc3de['descriptionFactory']['registerDescriptionCallback'](_0x5acde6=>{if('formatBlock'!=_0x5acde6['type']&&'formatInline'!=_0x5acde6['type'])return;const {data:_0x2c9fdf}=_0x5acde6;if(_0x2c9fdf){if('numberedList'==_0x2c9fdf['commandName']||'bulletedList'==_0x2c9fdf['commandName']||'todoList'==_0x2c9fdf['commandName'])switch(_0x2c9fdf['commandName']['replace']('List','')){case'bulleted':return _0x1739f7(c(_0x4db9da,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1739f7(c(_0x4db9da,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1739f7(c(_0x4db9da,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2c9fdf['commandName'])return{'type':'format','content':c(_0x4db9da,'*Indent:*\x20%0',c(_0x4db9da,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2c9fdf['commandName'])return{'type':'format','content':c(_0x4db9da,'*Outdent:*\x20%0',c(_0x4db9da,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2c9fdf['commandName'])return _0x2c9fdf['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4db9da,'*Check\x20item*')}:{'type':'format','content':c(_0x4db9da,'*Uncheck\x20item*')};}function _0x1739f7(_0x158f8c){return{'type':'format','content':c(_0x4db9da,'*Change\x20to:*\x20%0',_0x158f8c)};}});}}function Le(_0x473f71){const _0x33d0d5=_0x473f71['getAttribute']('listIndent');if(0x0==_0x33d0d5)return _0x473f71;let _0x265179=_0x473f71;for(;_0x473f71['previousSibling']&&_0x473f71['previousSibling']['is']('element','listItem');){const _0x354c3a=_0x473f71['previousSibling']['getAttribute']('listIndent');if(_0x354c3a==_0x33d0d5)_0x265179=_0x473f71['previousSibling'];else{if(_0x354c3a<_0x33d0d5)break;}_0x473f71=_0x473f71['previousSibling'];}return _0x265179;}function Ee(_0x7bc91c){const _0x9b9ef7=[];if(_0x7bc91c['is']('element','listItem')&&_0x7bc91c['getAttribute']('listIndent')>0x0){let _0x30c9d0=_0x7bc91c['nextSibling'];for(;_0x30c9d0&&'listItem'==_0x30c9d0['name']&&_0x30c9d0['getAttribute']('listIndent')==_0x7bc91c['getAttribute']('listIndent');)_0x9b9ef7['push'](_0x30c9d0),_0x30c9d0=_0x30c9d0['nextSibling'];}return _0x9b9ef7;}class Q extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f869e=this['editor']['config']['get']('list.properties'),_0x3a3edf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f869e['styles']&&_0x3a3edf['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f869e['reversed']&&_0x3a3edf['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f869e['startIndex']&&_0x3a3edf['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a3edf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x33c2ac,_0x1c4145={}){const _0x502db0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aca72=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x502db0['markMultiRangeBlockFormat'](_0x1aca72,{'commandName':'listStyle','commandParams':[{'type':_0x1c4145['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x58751a,_0x11c7e8={}){const _0x49e95d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x559085=this['_getSuggestionBlocks'](_0x2ce4a4=>_0x2ce4a4['is']('element','listItem')&&'numbered'===_0x2ce4a4['getAttribute']('listType'));if(_0x559085['length']<0x1)return;const _0x51637e=_0x559085['map'](_0x13fa49=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13fa49,'before'),this['editor']['model']['createPositionAt'](_0x13fa49,0x0)));this['editor']['model']['change'](()=>{_0x49e95d['markMultiRangeBlockFormat'](_0x51637e,{'commandName':'listReversed','commandParams':[{'reversed':_0x11c7e8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2f55bc,_0x4acd97={}){const _0x18f331=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b6706=this['_getSuggestionBlocks'](_0x1dbce2=>_0x1dbce2['is']('element','listItem')&&'numbered'===_0x1dbce2['getAttribute']('listType'));if(_0x2b6706['length']<0x1)return;const _0x3fa320=_0x2b6706['map'](_0x443fb2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x443fb2,'before'),this['editor']['model']['createPositionAt'](_0x443fb2,0x0)));this['editor']['model']['change'](()=>{_0x18f331['markMultiRangeBlockFormat'](_0x3fa320,{'commandName':'listStart','commandParams':[{'startIndex':_0x4acd97['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a9619){if('formatBlock'!=_0x4a9619['type']&&'formatInline'!=_0x4a9619['type'])return;const _0x1271dd=this['editor']['locale'],{data:_0x2c67a6}=_0x4a9619;if(!_0x2c67a6)return;let _0x15b983,_0x1ac370;switch(_0x2c67a6['commandName']){case'listStyle':_0x15b983='*Change\x20to:*\x20%0',_0x1ac370={'type':'format','content':c(_0x1271dd,_0x15b983,c(_0x1271dd,this['_getTranslationKeyForListStyle'](_0x2c67a6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15b983=_0x2c67a6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ac370={'type':'format','content':c(_0x1271dd,_0x15b983)};break;case'listStart':_0x15b983='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ac370={'type':'format','content':c(_0x1271dd,_0x15b983,_0x2c67a6['commandParams'][0x0]['startIndex'])};}return _0x1ac370;}['_getSuggestionBlocksForListStyle'](){const _0x337122=this['editor']['plugins']['get']('LegacyListUtils');let _0x293d0a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x293d0a[0x0]?.['is']('element','listItem')&&_0x293d0a['unshift'](..._0x337122['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x293d0a[_0x293d0a['length']-0x1]?.['is']('element','listItem')&&_0x293d0a['push'](..._0x337122['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x293d0a=[...new Set(_0x293d0a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x293d0a=_0x293d0a['filter'](_0x2028b9=>_0x2028b9['is']('element','listItem'))),_0x293d0a;}['_getSuggestionBlocks'](_0x5efcb6){const _0x16ba41=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f1cb4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5efcb6)['map'](_0x44e920=>{const _0x1248dc=this['editor']['model']['createPositionAt'](_0x44e920,0x0);return[..._0x16ba41['getSiblingNodes'](_0x1248dc,'backward'),..._0x16ba41['getSiblingNodes'](_0x1248dc,'forward')];})['flat']();return _0x2f1cb4=[...new Set(_0x2f1cb4)],_0x2f1cb4;}['_getTranslationKeyForListStyle'](_0x3e5f72){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e5f72)||'default')['toUpperCase']()+'_LIST_'+_0x3e5f72['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x159581{['afterInit'](){const _0x4094b1=this['editor'];if(!_0x4094b1['plugins']['has']('MediaEmbedEditing'))return;const _0x156e26=_0x4094b1['plugins']['get']('TrackChangesEditing'),_0x21496e=_0x4094b1['locale'];_0x156e26['enableCommand']('mediaEmbed'),_0x156e26['descriptionFactory']['registerElementLabel']('media',_0x40f8dc=>c(_0x21496e,'ELEMENT_MEDIA',_0x40f8dc)),_0x4094b1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x865df5,{writer:_0x50986e,options:_0x56dc7a})=>{if(_0x56dc7a['showSuggestionHighlights'])return _0x50986e['createEmptyElement']('div');},'converterPriority':'high'}),_0x4094b1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a2b01,_0x20678a,_0x2e6697)=>{_0x2e6697['options']['showSuggestionHighlights']&&_0x1a2b01['stop']();},{'priority':'high'});}}class mt extends _0x159581{['afterInit'](){const _0xbab6e9=this['editor'];_0xbab6e9['plugins']['has']('MentionEditing')&&_0xbab6e9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x159581{['afterInit'](){const _0x4cf4a0=this['editor'];if(!_0x4cf4a0['plugins']['has']('MergeFieldsEditing'))return;const _0x48dd3e=_0x4cf4a0['plugins']['get']('TrackChangesEditing'),_0x463cb8=_0x4cf4a0['locale'];_0x48dd3e['enableCommand']('insertMergeField'),_0x48dd3e['enableCommand']('insertMergeFieldBlock'),_0x48dd3e['enableCommand']('insertMergeFieldImage'),_0x48dd3e['descriptionFactory']['registerElementLabel']('mergeField',_0x528d91=>c(_0x463cb8,'ELEMENT_MERGE_FIELD',_0x528d91)),_0x48dd3e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4cf73c=>c(_0x463cb8,'ELEMENT_MERGE_FIELD',_0x4cf73c)),_0x48dd3e['descriptionFactory']['registerDescriptionCallback'](_0x77472f=>{if('insertion'!=_0x77472f['type']&&'deletion'!=_0x77472f['type'])return;const _0x46333c=_0x77472f['getContainedElement']();if(null==_0x46333c)return;const _0x3997dc=_0x4cf4a0['plugins']['get']('MergeFieldsEditing');let _0x44cd81;switch(_0x3997dc['getMergeFieldType'](_0x46333c)){case null:return;case'image':{const _0x109235=_0x3997dc['unwrapAffixes'](_0x46333c['getAttribute']('src'));_0x44cd81=_0x3997dc['getLabel'](_0x109235)||_0x109235;break;}default:{const _0x9c227c=_0x46333c['getAttribute']('id');_0x44cd81=_0x3997dc['getLabel'](_0x9c227c)||_0x9c227c;break;}}return'insertion'==_0x77472f['type']?{'type':'insertion','content':c(_0x463cb8,'*Insert:*\x20%0','\x22'+_0x44cd81+'\x22\x20'+c(_0x463cb8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x463cb8,'*Remove:*\x20%0','\x22'+_0x44cd81+'\x22\x20'+c(_0x463cb8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x159581{['afterInit'](){const _0x55c1ce=this['editor'],_0x43d049=_0x55c1ce['plugins']['get']('TrackChangesEditing');_0x55c1ce['plugins']['has']('MultiLevelList')&&(_0x43d049['enableDefaultAttributesIntegration']('multiLevelList'),_0x43d049['registerBlockAttribute']('listMarkerStyle'),_0x43d049['descriptionFactory']['registerDescriptionCallback'](_0x40543f=>this['handleDescriptions'](_0x40543f)));}['handleDescriptions'](_0x14a003){const _0x2154dc=this['editor']['locale'],{data:_0x5205df}=_0x14a003,_0xb56167={'type':'format','content':''};if(_0x5205df&&'listMarkerStyle'==_0x5205df['key']){if(!_0x5205df['oldValue'])return{'type':'format','content':c(_0x2154dc,'*Set\x20format:*\x20%0',c(_0x2154dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5205df['newValue']+')'};if(!_0x5205df['newValue']){let _0x114da9=_0x14a003['head'];for(;_0x114da9;){if(_0x114da9['data']&&'listType'==_0x114da9['data']['key']&&_0x114da9['data']['newValue'])return _0xb56167;_0x114da9=_0x114da9['next'];}return{'type':'format','content':c(_0x2154dc,'*Remove\x20format:*\x20%0',c(_0x2154dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5205df['oldValue']+')'};}}}}class kt extends _0x159581{['afterInit'](){const _0x2ebf73=this['editor'];if(!_0x2ebf73['plugins']['has']('PageBreakEditing'))return;_0x2ebf73['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4a539e=_0x2ebf73['plugins']['get']('TrackChangesEditing'),_0x11198e=_0x2ebf73['locale'];_0x4a539e['descriptionFactory']['registerElementLabel']('pageBreak',_0xbda97c=>c(_0x11198e,'ELEMENT_PAGE_BREAK',_0xbda97c));}}class bt extends _0x159581{['afterInit'](){const _0x176746=this['editor'];if(!_0x176746['plugins']['has']('Paragraph'))return;const _0xf41eea=_0x176746['locale'],_0x49f835=_0x176746['plugins']['get']('TrackChangesEditing');_0x49f835['descriptionFactory']['registerElementLabel']('paragraph',_0x13f091=>c(_0xf41eea,'ELEMENT_PARAGRAPH',_0x13f091)),_0x49f835['enableDefaultAttributesIntegration']('paragraph'),_0x49f835['enableCommand']('insertParagraph'),_0x176746['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x176746),{'priority':'highest'}),_0x176746['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b6b6d,_0x4b0cf1,_0x280106)=>{_0x280106['options']['showSuggestionHighlights']&&nr(_0x176746,{'showActiveMarker':!0x1})(_0x2b6b6d,_0x4b0cf1,_0x280106);},{'priority':'highest'});const _0x1377b6=_0x49f835['descriptionFactory'];_0x1377b6['registerDescriptionCallback'](_0x577f74=>{if('insertion'!==_0x577f74['type'])return;const {start:_0x2d2889,end:_0x1779cf}=_0x577f74['getFirstRange']();if(!_0x2d2889['isTouching'](_0x1779cf)||!_0x2d2889['nodeAfter'])return;const _0x4e7008=_0x176746['model']['schema'],_0x5f5b6d=_0x2d2889['nodeAfter'];return _0x4e7008['isBlock'](_0x5f5b6d)&&!_0x4e7008['isLimit'](_0x5f5b6d)&&_0x4e7008['checkChild'](_0x5f5b6d,'$text')?{'type':'insertion','content':c(_0xf41eea,'*Insert:*\x20%0',_0x1377b6['getItemLabel'](_0x5f5b6d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd9ce=this['editor'],_0xcb9228=_0x5bd9ce['locale'];_0x5bd9ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23c5c0=>{if('formatBlock'!=_0x23c5c0['type'])return;const {data:_0x19c23c}=_0x23c5c0;return _0x19c23c&&'paragraph'==_0x19c23c['commandName']?{'type':'format','content':c(_0xcb9228,'*Change\x20to:*\x20%0',c(_0xcb9228,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2b6f86,{showActiveMarker:_0xaac1ad=!0x0}={}){return(_0x3a4a37,_0xbf7c4e,_0x3be664)=>{const _0x214c96=_0x2b6f86['plugins']['get']('TrackChangesEditing'),_0x3eb58e=_0xbf7c4e['markerRange']['start'],_0x5ec58c=_0xbf7c4e['markerRange']['end'],_0x3c276c=_0x2b6f86['model']['schema'];if(!_0x3eb58e['isTouching'](_0x5ec58c)||!_0x3eb58e['nodeAfter'])return;const _0x4ecc88=_0x3eb58e['nodeAfter'];if(_0x3c276c['isBlock'](_0x4ecc88)&&!_0x3c276c['isLimit'](_0x4ecc88)&&_0x3c276c['checkChild'](_0x4ecc88,'$text')){if(!_0x3be664['consumable']['consume'](_0xbf7c4e['markerRange'],_0x3a4a37['name']))return;const {authorId:_0xea21fe}=_0x214c96['_splitMarkerName'](_0xbf7c4e['markerName']),_0x32f4b0=_0x3be664['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xea21fe}),_0x2b62e1=_0x3be664['mapper']['toViewPosition'](_0x5ec58c);_0xaac1ad&&_0x214c96['activeMarkers']['includes'](_0xbf7c4e['markerName'])&&_0x3be664['writer']['addClass']('ck-suggestion-marker--active',_0x32f4b0),_0x3be664['writer']['insert'](_0x2b62e1,_0x32f4b0),_0x3be664['mapper']['bindElementToMarker'](_0x32f4b0,_0xbf7c4e['markerName']);}};}class yt extends _0x159581{['afterInit'](){const _0x31db6e=this['editor'];if(!_0x31db6e['plugins']['has']('RemoveFormatEditing'))return;_0x31db6e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5aeca1=this['editor'];_0x5aeca1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x500778=>{if('formatBlock'!=_0x500778['type']&&'formatInline'!=_0x500778['type'])return;const {data:_0x19a47e}=_0x500778;return _0x19a47e&&'removeFormat'==_0x19a47e['commandName']?{'type':'format','content':c(_0x5aeca1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x159581{['afterInit'](){const _0x1fbeae=this['editor'];if(!_0x1fbeae['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f5151=_0x1fbeae['plugins']['get']('TrackChangesEditing');_0x5f5151['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f5151['enableCommand']('goToNextRestrictedEditingException');const _0xb8bf36=_0x1fbeae['plugins']['get']('RestrictedEditingModeEditing');_0xb8bf36['enableCommand']('trackChanges'),_0xb8bf36['enableCommand']('acceptSuggestion'),_0xb8bf36['enableCommand']('discardSuggestion'),_0xb8bf36['enableCommand']('acceptAllSuggestions'),_0xb8bf36['enableCommand']('discardAllSuggestions'),_0xb8bf36['enableCommand']('acceptSelectedSuggestions'),_0xb8bf36['enableCommand']('discardSelectedSuggestions');}}class St extends _0x159581{static get['requires'](){return[_0x2f0e86];}['init'](){const _0x13288a=this['editor'],_0x32febf=_0x13288a['plugins']['get']('TrackChangesEditing');_0x32febf['enableCommand']('shiftEnter'),_0x13288a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x13288a),{'priority':'high'}),_0x13288a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x13288a),{'priority':'high'}),_0x13288a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d3335,_0x16b1d1,_0xb80e71)=>{_0xb80e71['options']['showSuggestionHighlights']&&je(_0x13288a,{'showActiveMarker':!0x1})(_0x5d3335,_0x16b1d1,_0xb80e71);}),_0x32febf['descriptionFactory']['registerElementLabel']('softBreak',_0x4c7107=>c(_0x13288a['locale'],'ELEMENT_LINE_BREAK',_0x4c7107));}}function je(_0x328536,{showActiveMarker:_0x5ea08e=!0x0}={}){return(_0x25f9ff,_0x46891a,_0x72c5f4)=>{const _0x51a49c=_0x328536['plugins']['get']('TrackChangesEditing');if(!_0x72c5f4['consumable']['test'](_0x46891a['markerRange'],_0x25f9ff['name']))return;const _0x29591d=_0x328536['model'];for(const _0x172d2a of _0x46891a['markerRange']['getItems']()){if(!_0x172d2a['is']('element','softBreak'))continue;const _0x1bb9dd='deletion'==_0x46891a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e18db}=_0x51a49c['_splitMarkerName'](_0x46891a['markerName']),_0x61e79e=_0x72c5f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1bb9dd,'data-author-id':_0x4e18db}),_0x62cb27=_0x72c5f4['mapper']['toViewPosition'](_0x29591d['createPositionBefore'](_0x172d2a));_0x5ea08e&&_0x51a49c['activeMarkers']['includes'](_0x46891a['markerName'])&&_0x72c5f4['writer']['addClass']('ck-suggestion-marker--active',_0x61e79e),_0x72c5f4['writer']['insert'](_0x62cb27,_0x61e79e),_0x72c5f4['mapper']['bindElementToMarker'](_0x61e79e,_0x46891a['markerName']);}};}class At extends _0x159581{['afterInit'](){const _0x51290a=this['editor'],_0xa5eb7e=_0x51290a['model'],_0x110b66=_0x51290a['locale'];if(!_0x51290a['plugins']['has']('StandardEditingModeEditing'))return;const _0x2429f2=_0x51290a['plugins']['get']('TrackChangesEditing'),_0x445412='restrictedEditingException',_0x4a3823=_0x51290a['commands']['get'](_0x445412);_0x2429f2['enableCommand'](_0x445412,(_0x47acb7,_0x1a99a6={})=>{const _0x1e4e2f=_0xa5eb7e['document']['selection'];if(_0x1e4e2f['isCollapsed'])return void _0x47acb7(_0x1a99a6);const _0x4c8e19=void 0x0!==_0x1a99a6['forceValue']?_0x1a99a6['forceValue']:!_0x4a3823['value'];_0xa5eb7e['change'](()=>{const _0x450466=Array['from'](_0x1e4e2f['getRanges']());for(const _0x5590ea of _0x450466){const _0x2691eb=_0x4c8e19?[_0x5590ea]:no(_0x445412,_0x5590ea,_0xa5eb7e);for(const _0x4a286e of _0x2691eb)_0x2429f2['markInlineFormat'](_0x4a286e,{'commandName':_0x445412,'commandParams':[{'forceValue':_0x4c8e19}]});}});}),_0x2429f2['descriptionFactory']['registerDescriptionCallback'](_0x3260f1=>{if('formatBlock'!=_0x3260f1['type']&&'formatInline'!=_0x3260f1['type'])return;const {data:_0x39f5db}=_0x3260f1;return _0x39f5db&&_0x39f5db['commandName']==_0x445412?_0x39f5db['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x110b66,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x110b66,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x159581{['afterInit'](){const _0x4a4116=this['editor'];if(!_0x4a4116['plugins']['has']('Style')||!_0x4a4116['plugins']['has']('DataSchema'))return;const _0x68b219=_0x4a4116['plugins']['get']('TrackChangesEditing'),_0x545eea=_0x4a4116['locale'],_0x3507d3=_0x4a4116['config']['get']('style')||{},_0x5601a8=_0x4a4116['plugins']['get']('GeneralHtmlSupport'),_0x65e438=_0x4a4116['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4a4116['plugins']['get']('DataSchema'),_0x3507d3['definitions']);_0x68b219['enableDefaultAttributesIntegration']('style');const _0x27c524=new Set();for(const _0x445d75 of _0x65e438['block']){const _0x131543=_0x5601a8['getGhsAttributeNameForElement'](_0x445d75['element']);_0x27c524['add'](_0x131543);}const _0xbf6d5d=new Set();for(const _0x3c643e of _0x65e438['inline']){const _0x4b2043=_0x5601a8['getGhsAttributeNameForElement'](_0x3c643e['element']);_0xbf6d5d['add'](_0x4b2043);for(const _0x724b32 of _0x3c643e['ghsAttributes'])_0xbf6d5d['add'](_0x724b32);}for(const _0x5c5138 of _0x27c524)_0x68b219['registerBlockAttribute'](_0x5c5138),_0x68b219['descriptionFactory']['registerAttributeLabel'](_0x5c5138,c(_0x545eea,'FORMAT_STYLE'));for(const _0x407319 of _0xbf6d5d)_0x68b219['registerInlineAttribute'](_0x407319),_0x68b219['descriptionFactory']['registerAttributeLabel'](_0x407319,c(_0x545eea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc74657=this['editor'],_0x3aa41f=_0xc74657['locale'];_0xc74657['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x127b2b=>{if('formatBlock'!=_0x127b2b['type']&&'formatInline'!=_0x127b2b['type'])return;const {data:_0x2c092f}=_0x127b2b;return _0x2c092f&&'style'===_0x2c092f['commandName']?_0x2c092f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3aa41f,'*Set\x20format:*\x20%0',_0x2c092f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3aa41f,'*Remove\x20format:*\x20%0',_0x2c092f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x159581{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1cdf1a){super(_0x1cdf1a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2f2970=this['editor'],_0x9da624=_0x2f2970['model']['document']['selection'];if(!_0x2f2970['plugins']['has']('TableEditing'))return;const _0x582bc3=_0x2f2970['locale'],_0x81a652=_0x2f2970['plugins']['get']('TrackChangesEditing'),_0x4f4a57=_0x2f2970['plugins']['get']('TableUtils');_0x81a652['descriptionFactory']['registerElementLabel']('table',_0x435e99=>c(_0x582bc3,'ELEMENT_TABLE',_0x435e99)),this['_setupColumnsRowsFixing'](),_0x81a652['enableCommand']('insertTable'),_0x81a652['enableCommand']('selectTableRow'),_0x81a652['enableCommand']('selectTableColumn');for(const _0x2b1431 of['insertTableRowAbove','insertTableRowBelow']){const _0x267fc2=_0x2f2970['commands']['get'](_0x2b1431);_0x81a652['enableCommand'](_0x2b1431,_0x4c957e=>{_0x2f2970['model']['change'](_0x3b2a44=>{_0x4c957e();const _0x93a031='above'===_0x267fc2['order'],_0x3a749d=_0x4f4a57['getSelectionAffectedTableCells'](_0x9da624),_0x301901=_0x4f4a57['getRowIndexes'](_0x3a749d),_0x3fa5cf=_0x93a031?_0x301901['first']-0x1:_0x301901['last']+0x1,_0x5835e8=_0x3a749d[0x0]['findAncestor']('table'),_0x12e55b=_0x4f4a57['createTableWalker'](_0x5835e8,{'startRow':_0x3fa5cf,'endRow':_0x3fa5cf}),_0x38c002=Array['from'](_0x12e55b)['map'](_0x281b95=>_0x3b2a44['createRangeOn'](_0x281b95['cell']));_0x81a652['markMultiRangeInsertion'](_0x38c002,'tableRow');});});}for(const _0x2eb11a of['insertTableColumnLeft','insertTableColumnRight']){const _0x47aad6=_0x2f2970['commands']['get'](_0x2eb11a);_0x81a652['enableCommand'](_0x2eb11a,_0x55806e=>{_0x2f2970['model']['change'](_0x45be29=>{_0x55806e();const _0x414fdc='left'===_0x47aad6['order'],_0x26e4d1=_0x4f4a57['getSelectionAffectedTableCells'](_0x9da624),_0x46b6a4=_0x4f4a57['getColumnIndexes'](_0x26e4d1),_0x473d5a=_0x414fdc?_0x46b6a4['first']-0x1:_0x46b6a4['last']+0x1,_0x565654=_0x26e4d1[0x0]['findAncestor']('table'),_0x14cd07=_0x4f4a57['createTableWalker'](_0x565654,{'startRow':0x0,'column':_0x473d5a,'includeAllSlots':!0x1}),_0xaf770a=Array['from'](_0x14cd07)['map'](_0x57fa47=>_0x45be29['createRangeOn'](_0x57fa47['cell']));_0x81a652['markMultiRangeInsertion'](_0xaf770a,'tableColumn');});});}for(const _0x45b772 of['removeTableRow','removeTableColumn']){const _0x14cb8b=_0x45b772['substr'](0xb),_0x584469=_0x14cb8b['toLowerCase'](),_0x2fa724=_0x584469['substr'](0x0,0x3)+'span',_0x3d2642='table'+_0x14cb8b,_0x1c75f3='min'+_0x14cb8b,_0xcdca3='max'+_0x14cb8b;_0x81a652['enableCommand'](_0x45b772,()=>{_0x2f2970['model']['change'](_0x554ecd=>{const _0x58dcce=_0x4f4a57['getSelectionAffectedTableCells'](_0x9da624),_0x3a8646=_0x58dcce[0x0]['findAncestor']('table');let _0x5b472d;if('removeTableRow'==_0x45b772){const _0x1e3324=_0x4f4a57['getRowIndexes'](_0x58dcce);_0x5b472d={'startRow':_0x1e3324['first'],'endRow':_0x1e3324['last'],'includeAllSlots':!0x0};}else{const _0x30e9ec=_0x4f4a57['getColumnIndexes'](_0x58dcce);_0x5b472d={'startColumn':_0x30e9ec['first'],'endColumn':_0x30e9ec['last'],'includeAllSlots':!0x0};}const _0x2c53d4=_0x4f4a57['createTableWalker'](_0x3a8646,_0x5b472d),_0x47258c=Array['from'](_0x2c53d4)['map'](({cell:_0x325ea7})=>_0x325ea7),_0xcf211e=Ne(_0x47258c['filter'](_0x13ec64=>_0x13ec64['hasAttribute'](_0x2fa724))),_0x54a7a5=Ne(_0x47258c['filter'](_0x48ad9a=>!_0x48ad9a['hasAttribute'](_0x2fa724)))['map'](_0x1aec74=>_0x554ecd['createRangeOn'](_0x1aec74)),_0x21673=_0x81a652['markMultiRangeDeletion'](_0x54a7a5,_0x3d2642);if(_0x21673&&('tableRow'==_0x21673['subType']||'tableColumn'==_0x21673['subType'])){const _0x494c14=this['_getSuggestionCoords'](_0x21673);for(const _0x517ce7 of _0xcf211e){const _0x464ed5=_0x554ecd['createRangeOn'](_0x517ce7),_0x1c056d=_0x4f4a57['getCellLocation'](_0x517ce7),_0x47b7a2=_0x517ce7['getAttribute'](_0x2fa724)-0x1,_0x561cf0=_0x494c14[_0x1c75f3],_0x5d5c37=_0x494c14[_0xcdca3];_0x561cf0<=_0x1c056d[_0x584469]&&_0x1c056d[_0x584469]+_0x47b7a2<=_0x5d5c37&&_0x21673['addRange'](_0x464ed5);}}});});}function _0x34c7b0(_0x519a47){const _0x51fc3d=Array['from'](_0x9da624['getRanges']())['map'](_0x5eb4cf=>_0x31bd77['fromRange'](_0x5eb4cf));_0x2f2970['model']['change'](_0x5e2f90=>{const _0xc8a2c0=_0x5e2f90['batch'];_0x519a47=_0x519a47['filter'](_0x2d1a67=>'$graveyard'!=_0x2d1a67['root']['rootName']),_0x5e2f90['setSelection'](_0x519a47),_0x2f2970['commands']['get']('removeTableRow')['refresh'](),_0x2f2970['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f2970['model']['enqueueChange'](()=>{_0x2f2970['model']['enqueueChange'](_0xc8a2c0,_0x21a4a8=>{const _0x5618b7=_0x51fc3d['filter'](_0x4fef48=>'$graveyard'!=_0x4fef48['root']['rootName']);_0x5618b7['length']>0x0&&_0x21a4a8['setSelection'](_0x5618b7);for(const _0x5d2f5e of _0x51fc3d)_0x5d2f5e['detach']();});});});}function _0x38cb0c(_0x3e8946){_0x2f2970['model']['change'](_0x4b0a3a=>{const _0x4ff544=Array['from'](_0x9da624['getRanges']())['map'](_0x57473b=>_0x31bd77['fromRange'](_0x57473b)),_0x369570=[];for(const _0x4ee681 of _0x3e8946)for(const _0x1772ec of _0x4ee681['getItems']({'shallow':!0x0}))_0x369570['push'](_0x1772ec);for(const _0x1e5e53 of _0x369570)'$graveyard'!=_0x1e5e53['root']['rootName']&&(_0x4b0a3a['setSelection'](_0x4b0a3a['createPositionAt'](_0x1e5e53,0x0)),_0x2f2970['commands']['get']('removeTableColumn')['refresh'](),_0x2f2970['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21a2db=_0x4ff544['filter'](_0x528ee1=>'$graveyard'!=_0x528ee1['root']['rootName']);_0x21a2db['length']>0x0&&_0x4b0a3a['setSelection'](_0x21a2db);for(const _0x3cb4c3 of _0x4ff544)_0x3cb4c3['detach']();});}function _0x4d83f2(_0x4594b2,_0x5d232f){return _0x5d232f['every'](_0x4298b9=>_0x4594b2['some'](_0x22138e=>_0x22138e['end']['isEqual'](_0x4298b9['start'])||_0x4298b9['end']['isEqual'](_0x22138e['start'])));}function _0x3f4a90(_0x3b8b55,_0x523b3f){return!_0x3b8b55['some'](_0x31bc48=>_0x523b3f['some'](_0x1a53fd=>_0x31bc48['isIntersecting'](_0x1a53fd)))&&_0x3b8b55['some'](_0x49bd77=>_0x523b3f['some'](_0x4ff58=>_0x49bd77['end']['isTouching'](_0x4ff58['start'])));}_0x2f2970['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27417f,_0x348cf4,_0xc68378)=>{if(!_0xc68378['options']['showSuggestionHighlights'])return;const _0x91d56a=_0x348cf4['item'];if(!_0x91d56a)return;const _0x497716=_0xc68378['mapper']['toViewElement'](_0x91d56a);function _0xb9ee38(_0x397006){return Array['isArray'](_0x397006)?_0x397006:[_0x397006];}_0x497716&&'tableCell'===_0x91d56a['name']&&_0x25f4ad(_0x497716,_0xc68378['writer'],(_0x402431,_0x1a3c74,_0x563881)=>_0x563881['addClass'](_0xb9ee38(_0x1a3c74['classes']),_0x402431),(_0x31b236,_0x43d2e4,_0xf03596)=>_0xf03596['removeClass'](_0xb9ee38(_0x43d2e4['classes']),_0x31b236));},{'priority':'highest'}),_0x81a652['descriptionFactory']['registerDescriptionCallback'](_0x292a99=>{if('insertion'!=_0x292a99['type']&&'deletion'!=_0x292a99['type'])return;const _0x2524a8=_0x292a99['getContainedElement']();if(null!=_0x2524a8&&_0x2524a8['is']('element','table')){if('insertion'==_0x292a99['type']){const _0x18edb0=_0x292a99['getItems']()['filter'](_0x508dc1=>_0x508dc1['is']('$textProxy'))['map'](_0x16afc4=>_0x16afc4['data']);if(_0x18edb0['length'])return{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18edb0['join']('\x20')+'\x22'))};}if('deletion'==_0x292a99['type']){const _0x5a642=_0x292a99['getItems']()['filter'](_0x144503=>_0x144503['is']('$textProxy'))['map'](_0x37791b=>_0x37791b['data']);if(_0x5a642['length'])return{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a642['join']('\x20')+'\x22'))};}}}),_0x81a652['descriptionFactory']['registerDescriptionCallback'](_0x32004c=>{if('tableRow'==_0x32004c['subType']){const _0x1aff94=_0x32004c['getItems']()['filter'](_0x2810c7=>_0x2810c7['is']('$textProxy'))['map'](_0x2212b8=>_0x2212b8['data']),_0x53ea2a=this['_getSuggestionCoords'](_0x32004c),_0x5a1569=_0x53ea2a['maxRow']-_0x53ea2a['minRow']+0x1;if('insertion'==_0x32004c['type'])return _0x1aff94['length']?{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a1569,'\x22'+_0x1aff94['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW',_0x5a1569))};if('deletion'==_0x32004c['type'])return _0x1aff94['length']?{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a1569,'\x22'+_0x1aff94['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW',_0x5a1569))};}if('tableColumn'==_0x32004c['subType']){const _0x245bb5=_0x32004c['getItems']()['filter'](_0x234047=>_0x234047['is']('$textProxy'))['map'](_0x313d66=>_0x313d66['data']),_0x5c765c=this['_getSuggestionCoords'](_0x32004c),_0xebd8ff=_0x5c765c['maxColumn']-_0x5c765c['minColumn']+0x1;if('insertion'==_0x32004c['type'])return _0x245bb5['length']?{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xebd8ff,'\x22'+_0x245bb5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN',_0xebd8ff))};if('deletion'==_0x32004c['type'])return _0x245bb5['length']?{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xebd8ff,'\x22'+_0x245bb5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN',_0xebd8ff))};}}),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34c7b0),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34c7b0),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x38cb0c),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x38cb0c),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4d83f2),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4d83f2),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f4a90),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f4a90);}['_acceptFormatSuggestionCallbackFactory'](){const _0x11d716=this['editor'],_0xccc406=_0x11d716['model']['document']['selection'];return(_0x2ece92,_0x7d2ef2)=>{_0x11d716['model']['change'](_0x5219c3=>{const {commandName:_0x4aad1a,commandParams:_0x10dd93}=_0x7d2ef2;let _0x37b033=_0x2ece92[0x0]['end']['nodeBefore'];_0x10dd93&&_0x10dd93[0x0]&&!0x1===_0x10dd93[0x0]['forceValue']&&(_0x37b033=_0x2ece92[0x0]['start']['nodeAfter']);const _0x5c8f9b=_0x5219c3['createRangeIn'](_0x37b033);if('$graveyard'==_0x5c8f9b['root']['rootName'])return;const _0x336246=Array['from'](_0xccc406['getRanges']())['map'](_0x4cb239=>_0x31bd77['fromRange'](_0x4cb239));_0x5219c3['setSelection'](_0x5c8f9b),_0x11d716['commands']['get'](_0x4aad1a)['refresh'](),_0x10dd93['push']({'forceDefaultExecution':!0x0}),_0x11d716['execute'](_0x4aad1a,..._0x10dd93);const _0x339b70=_0x336246['filter'](_0x20b9c8=>'$graveyard'!=_0x20b9c8['root']['rootName']);_0x339b70['length']>0x0&&_0x5219c3['setSelection'](_0x339b70);for(const _0x2b4cf2 of _0x336246)_0x2b4cf2['detach']();});};}['_getCoordsForCells'](_0x4c0dc0){const _0x53fe03=this['editor']['plugins']['get']('TableUtils');let _0x36b3de=Number['MAX_SAFE_INTEGER'],_0x33c71c=Number['MIN_SAFE_INTEGER'],_0x10aaf6=Number['MAX_SAFE_INTEGER'],_0xdbb903=Number['MIN_SAFE_INTEGER'];for(const _0x522166 of _0x4c0dc0){if('$graveyard'==_0x522166['root']['rootName'])continue;const {row:_0x3cdf8f,column:_0x3e2c8d}=_0x53fe03['getCellLocation'](_0x522166),_0x5352b7=_0x522166['hasAttribute']('rowspan')?_0x522166['getAttribute']('rowspan')-0x1:0x0,_0x221232=_0x522166['hasAttribute']('colspan')?_0x522166['getAttribute']('colspan')-0x1:0x0;_0x36b3de=_0x3cdf8f<_0x36b3de?_0x3cdf8f:_0x36b3de,_0x33c71c=_0x3cdf8f+_0x5352b7>_0x33c71c?_0x3cdf8f+_0x5352b7:_0x33c71c,_0x10aaf6=_0x3e2c8d<_0x10aaf6?_0x3e2c8d:_0x10aaf6,_0xdbb903=_0x3e2c8d+_0x221232>_0xdbb903?_0x3e2c8d+_0x221232:_0xdbb903;}return{'minRow':_0x36b3de,'maxRow':_0x33c71c,'minColumn':_0x10aaf6,'maxColumn':_0xdbb903};}['_setupColumnsRowsFixing'](){const _0x2904c6=this['editor'],_0x3ec95e=_0x2904c6['plugins']['get']('TrackChangesEditing'),_0x15ef6c=_0x2904c6['plugins']['get']('TableUtils');_0x2904c6['model']['document']['on']('change:data',()=>{const _0xcc4551=Array['from'](_0x2904c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1872ac,data:_0x47d494}of _0xcc4551){const {group:_0x3a6eab,id:_0x1bac0c,subType:_0x21da2a}=_0x3ec95e['_splitMarkerName'](_0x1872ac);if('suggestion'!=_0x3a6eab)continue;if(null!=_0x47d494['oldRange'])continue;const _0x250dda=_0x3ec95e['getSuggestion'](_0x1bac0c);this['_tablePostFixingSubtypes']['includes'](_0x21da2a)&&this['_tableSuggestions']['add'](_0x250dda);}},{'priority':'low'});const _0x2c9969=(_0x1d3699,_0x12cff2)=>{let _0x242a32=!0x1;const _0x5aff85=_0x12cff2['createRangeOn'](_0x1d3699),_0x1c5211=_0x1d3699['findAncestor']('table'),_0x4c3522=_0x15ef6c['getCellLocation'](_0x1d3699);for(const _0x3b03a of this['_tableSuggestions']){const _0x5e4759=_0x3b03a['subType'],_0x573568=_0x5e4759['startsWith']('tablePaste'),_0x18aff4=_0x5e4759['substr'](_0x573568?0xa:0x5),_0x3adb7a=_0x18aff4['toLowerCase'](),_0x317707=_0x3adb7a['substr'](0x0,0x3)+'span',_0x365f3e='min'+_0x18aff4,_0x1582f7='max'+_0x18aff4;if(!_0x3b03a['isInContent'])continue;if(_0x1c5211!=_0x3b03a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b03a['isIntersectingWithRange'](_0x5aff85))continue;const _0x27b5fb=_0x1d3699['hasAttribute'](_0x317707)?_0x1d3699['getAttribute'](_0x317707)-0x1:0x0,_0x35c765=this['_getSuggestionCoords'](_0x3b03a),_0x10720b=_0x35c765[_0x365f3e],_0x2b3b0d=_0x35c765[_0x1582f7];_0x10720b<=_0x4c3522[_0x3adb7a]&&_0x4c3522[_0x3adb7a]+_0x27b5fb<=_0x2b3b0d&&(_0x3b03a['addRange'](_0x5aff85),_0x242a32=!0x0);}return _0x242a32;};_0x2904c6['model']['document']['registerPostFixer'](_0x4683fe=>{let _0x53e0e1=!0x1;for(const _0x5f55f2 of _0x2904c6['model']['document']['differ']['getChanges']())if('insert'==_0x5f55f2['type']){if('tableRow'==_0x5f55f2['name']){for(const _0x2f8071 of _0x5f55f2['position']['nodeAfter']['getChildren']())_0x53e0e1=_0x53e0e1||_0x2c9969(_0x2f8071,_0x4683fe);}else'tableCell'==_0x5f55f2['name']&&(_0x53e0e1=_0x53e0e1||_0x2c9969(_0x5f55f2['position']['nodeAfter'],_0x4683fe));}return _0x53e0e1;});}['_getSuggestionCoords'](_0x4aeffa){return this['_getCoordsForCells'](_0x4aeffa['getRanges']()['map'](_0x1c4b06=>_0x1c4b06['start']['nodeAfter']));}}function Ne(_0x35333a){return Array['from'](new Set(_0x35333a)['values']());}class vt extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x2d3d27=this['editor'],_0x17952f=_0x2d3d27['model']['document']['selection'],_0x186081=_0x2d3d27['locale'];if(!_0x2d3d27['plugins']['has']('TableEditing'))return;const _0x34f05b=_0x2d3d27['plugins']['get']('TrackChangesEditing'),_0x5c6dc3=_0x2d3d27['plugins']['get']('TableUtils'),_0x318af0=_0x2d3d27['plugins']['get'](_t);_0x318af0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34f05b['enableCommand']('mergeTableCells',()=>{const _0x35fe2f=_0x5c6dc3['getSelectionAffectedTableCells'](_0x2d3d27['model']['document']['selection']);_0x2d3d27['model']['change'](()=>{_0x34f05b['markMultiRangeBlockFormat'](_0x35fe2f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d3d27['commands']['get']('mergeTableCells')['on']('execute',(_0x1985e2,_0x2e826c)=>{_0x2d3d27['commands']['get']('trackChanges')['value']&&(_0x2e826c['length']>0x0&&_0x2e826c[_0x2e826c['length']-0x1]&&_0x2e826c[_0x2e826c['length']-0x1]['forceDefaultExecution']||_0x34f05b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1985e2['stop']());},{'priority':'highest'});for(const _0x825ea8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2282da=_0x2d3d27['commands']['get'](_0x825ea8);_0x34f05b['enableCommand'](_0x825ea8,()=>{const _0x483fe3=_0x2d3d27['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4be851=>_0x4be851['is']('element','tableCell')),_0x3b645d=_0x2282da['value'];_0x2d3d27['model']['change'](()=>{_0x34f05b['markMultiRangeBlockFormat']([_0x483fe3,_0x3b645d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x221761 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x218421=_0x2d3d27['commands']['get'](_0x221761);_0x34f05b['enableCommand'](_0x221761,()=>{const _0x2a157e=_0x5c6dc3['getSelectionAffectedTableCells'](_0x2d3d27['model']['document']['selection'])[0x0],_0x540a59=_0x2a157e['findAncestor']('table'),{column:_0x27a152,row:_0x27720c}=_0x5c6dc3['getCellLocation'](_0x2a157e);let _0x488264=[];if('horizontally'==_0x218421['direction']){const _0x4949cc=_0x5c6dc3['createTableWalker'](_0x540a59,{'startRow':_0x27720c,'endRow':_0x27720c,'includeAllSlots':!0x0});_0x488264=Array['from'](_0x4949cc)['map'](_0x4f35ea=>_0x4f35ea['cell']);}else{const _0x47633a=_0x5c6dc3['createTableWalker'](_0x540a59,{'column':_0x27a152,'includeAllSlots':!0x0});_0x488264=Array['from'](_0x47633a)['map'](_0x3d6aa2=>_0x3d6aa2['cell']);}_0x2d3d27['model']['change'](_0x536fd3=>{_0x34f05b['markBlockFormat'](_0x536fd3['createRangeOn'](_0x2a157e),{'commandName':_0x221761,'commandParams':[]},_0x488264,_0x221761);});});}_0x34f05b['descriptionFactory']['registerDescriptionCallback'](_0x54de2b=>{if('formatBlock'!=_0x54de2b['type']&&'formatInline'!=_0x54de2b['type'])return;const {data:_0x21b8c6}=_0x54de2b;return _0x21b8c6&&'mergeTableCells'==_0x21b8c6['commandName']?{'type':'format','content':c(_0x186081,'*Merge\x20cells*')}:void 0x0;}),_0x34f05b['descriptionFactory']['registerDescriptionCallback'](_0x4b56de=>{if('formatBlock'!=_0x4b56de['type']&&'formatInline'!=_0x4b56de['type'])return;const {data:_0x1d178b}=_0x4b56de;return _0x1d178b?'splitTableCellVertically'==_0x1d178b['commandName']?{'type':'format','content':c(_0x186081,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1d178b['commandName']?{'type':'format','content':c(_0x186081,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x9aad1e=_0x318af0['_acceptFormatSuggestionCallbackFactory']();for(const _0x30815b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34f05b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30815b,'accept',_0x9aad1e);for(const _0x2136ee of['splitTableCellVertically','splitTableCellHorizontally'])_0x34f05b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2136ee,'accept',_0x9aad1e);_0x34f05b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21ab41=>{_0x2d3d27['model']['change'](_0x3ed08c=>{const _0x55590b=Array['from'](_0x17952f['getRanges']())['map'](_0x14fcba=>_0x31bd77['fromRange'](_0x14fcba));_0x3ed08c['setSelection'](_0x21ab41),_0x2d3d27['commands']['get']('mergeTableCells')['refresh'](),_0x2d3d27['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c1f1e=_0x55590b['filter'](_0x322d15=>'$graveyard'!=_0x322d15['root']['rootName']);_0x3c1f1e['length']>0x0&&_0x3ed08c['setSelection'](_0x3c1f1e);for(const _0x459da9 of _0x55590b)_0x459da9['detach']();});});for(const _0x35e505 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x386c19=_0x2d3d27['commands']['get'](_0x35e505);_0x386c19['on']('set:isEnabled',(_0x27033e,_0x46916d,_0x3bb617)=>{if(_0x3bb617){const _0x4f8e9b=_0x2d3d27['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1714a1=>_0x1714a1['is']('element','tableCell'));this['_areMergableCells'](_0x386c19['value'],_0x4f8e9b)||(_0x27033e['return']=!0x1,_0x27033e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3e6b85=this['editor']['commands']['get']('mergeTableCells'),_0x4bdf65=this['editor']['plugins']['get']('TableUtils');if(!_0x3e6b85['isEnabled'])return!0x1;const _0x1e81e3=_0x4bdf65['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x530e4a of _0x1e81e3)for(const _0x35a934 of _0x1e81e3)if(_0x530e4a!=_0x35a934&&!this['_areMergableCells'](_0x530e4a,_0x35a934))return!0x1;return!0x0;}['_areMergableCells'](_0x166cf1,_0x1c7f2e){const _0x377578=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52618d=this['editor']['model']['createRangeOn'](_0x166cf1),_0x1e1ea3=this['editor']['model']['createRangeOn'](_0x1c7f2e),_0x44eb5a=new Set(),_0xe7b54b=new Set();for(const _0x3cdb73 of _0x377578['getSuggestions']())if(('insertion'==_0x3cdb73['type']||'deletion'==_0x3cdb73['type']||'mergeTableCells'==_0x3cdb73['subType'])&&_0x3cdb73['isInContent']){for(const _0x467557 of _0x3cdb73['getRanges']())_0x467557['containsRange'](_0x52618d,!0x0)&&_0x44eb5a['add'](_0x3cdb73['type']+':'+_0x3cdb73['author']['id']),_0x467557['containsRange'](_0x1e1ea3,!0x0)&&_0xe7b54b['add'](_0x3cdb73['type']+':'+_0x3cdb73['author']['id']);}if(_0x44eb5a['size']!=_0xe7b54b['size'])return!0x1;for(const _0x533796 of _0x44eb5a)if(!_0xe7b54b['has'](_0x533796))return!0x1;return!0x0;}}class Ct extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x5363ff=this['editor'];if(!_0x5363ff['plugins']['has']('TableEditing'))return;const _0x490779=_0x5363ff['locale'],_0x57f34b=_0x5363ff['plugins']['get']('TrackChangesEditing');_0x57f34b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57f34b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57f34b['registerBlockAttribute']('headingRows'),_0x57f34b['registerBlockAttribute']('headingColumns'),_0x57f34b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x490779,'FORMAT_HEADER_ROW')),_0x57f34b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x490779,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x516d68=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2d4b=this['editor']['plugins']['get']('TableUtils'),_0x5011b7=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0xa5e824({showActiveMarker:_0x362832=!0x0,setDataAttribute:_0x5eda36=!0x0}={}){return(_0x5f3c72,_0x15df15,_0x5dd704)=>{const {type:_0x54e850,id:_0x53d87c}=_0x516d68['_splitMarkerName'](_0x15df15['markerName']),_0x2f14bb=_0x516d68['getSuggestion'](_0x53d87c),_0x52e736=_0x2f14bb['data'];if('formatBlock'!=_0x2f14bb['type']||!_0x52e736||'setTableColumnHeader'!=_0x52e736['commandName'])return;if(_0x15df15['item'])return void _0x5f3c72['stop']();if(!_0x5dd704['consumable']['consume'](_0x15df15['markerRange'],_0x5f3c72['name']))return;const _0x2736af=_0x15df15['markerRange']['start']['nodeAfter'],_0x31345a=_0x15df15['markerRange']['end']['nodeBefore'],_0x461610=_0x2736af['parent']['parent'],{column:_0x3428fa}=_0x3e2d4b['getCellLocation'](_0x2736af),{column:_0x11acc3}=_0x3e2d4b['getCellLocation'](_0x31345a);for(let _0x35b3a2=_0x3428fa;_0x35b3a2<=_0x11acc3;_0x35b3a2++){const _0x22a85c=_0x3e2d4b['createTableWalker'](_0x461610,{'column':_0x35b3a2,'includeAllSlots':!0x1});for(const _0xd9b1c3 of _0x22a85c){const _0x47bfbc=_0xd9b1c3['cell'],_0x5bae73=_0x5dd704['mapper']['toViewElement'](_0x47bfbc);_0x5dd704['writer']['addClass']('ck-suggestion-marker-'+_0x54e850,_0x5bae73),_0x5eda36&&_0x5dd704['writer']['setAttribute']('data-suggestion',_0x53d87c,_0x5bae73),_0x5dd704['mapper']['bindElementToMarker'](_0x5bae73,_0x15df15['markerName']),_0x362832&&(_0x516d68['activeMarkers']['includes'](_0x15df15['markerName'])?_0x5dd704['writer']['addClass']('ck-suggestion-marker--active',_0x5bae73):_0x5dd704['writer']['removeClass']('ck-suggestion-marker--active',_0x5bae73));}}};}_0x516d68['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5011b7),_0x516d68['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5011b7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xa5e824(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x506ee1,_0x4a67cb,_0x59a41f)=>{_0x59a41f['options']['showSuggestionHighlights']&&_0xa5e824({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x506ee1,_0x4a67cb,_0x59a41f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3514cb,_0x481ff3,_0x2430a1)=>{const {type:_0x250f02,id:_0x131e20}=_0x516d68['_splitMarkerName'](_0x481ff3['markerName']),_0x13a717=_0x516d68['getSuggestion'](_0x131e20),_0x3814b0=_0x13a717['data'];if('formatBlock'!=_0x13a717['type']||!_0x3814b0||'setTableColumnHeader'!=_0x3814b0['commandName'])return;const _0x209740=_0x2430a1['mapper']['markerNameToElements'](_0x481ff3['markerName']);if(_0x209740){for(const _0xe581d5 of _0x209740)_0x2430a1['writer']['removeClass']('ck-suggestion-marker-'+_0x250f02,_0xe581d5),_0x2430a1['writer']['removeClass']('ck-suggestion-marker--active',_0xe581d5),_0x2430a1['writer']['removeAttribute']('data-suggestion',_0xe581d5),_0x2430a1['mapper']['unbindElementFromMarkerName'](_0xe581d5,_0x481ff3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cdf02=this['editor'],_0x486dea=_0x1cdf02['locale'];function _0x231b37(_0x4ed954){return{'type':'format','content':c(_0x486dea,'*Format:*\x20%0',_0x4ed954)};}_0x1cdf02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b94b3=>{if('formatBlock'!=_0x1b94b3['type'])return;const {data:_0x5787db}=_0x1b94b3;if(_0x5787db){if('setTableRowHeader'==_0x5787db['commandName']){const _0xaf6d4c=_0x5787db['commandParams'][0x0]['forceValue'];return _0x231b37(c(_0x486dea,_0xaf6d4c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5787db['commandName']){const _0x4a96af=_0x5787db['commandParams'][0x0]['forceValue'];return _0x231b37(c(_0x486dea,_0x4a96af?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3eed58=>[_0x3eed58,null]));class Nt extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x42f033=this['editor'];if(!_0x42f033['plugins']['has']('TableClipboard'))return;const _0x2bc3e0=_0x42f033['plugins']['get']('TrackChangesEditing'),_0xf353f8=_0x42f033['plugins']['get']('TableUtils'),_0x54609a=_0x42f033['plugins']['get'](_t),_0x2f139c=_0x42f033['plugins']['get']('TableClipboard');_0x54609a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42f033['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42f033['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ae6e8=null;_0x42f033['model']['on']('insertContent',(_0x2a2977,_0x5f5dd3)=>{const [_0x2fd0fb,_0x4de156]=_0x5f5dd3,_0x1467f8=_0x5f5dd3[_0x5f5dd3['length']-0x1];_0x1467f8&&_0x1467f8['forceDefaultExecution']||_0x2bc3e0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2e00fa,_0x3b1f3f,_0xad4fc1,_0x19891c,_0x53c7e2){if(_0x3b1f3f&&!_0x3b1f3f['is']('documentSelection'))return!0x1;const _0x46aa0c=_0x53c7e2['getTableIfOnlyTableInContent'](_0x2e00fa,_0xad4fc1);if(!_0x46aa0c||!Ue(_0x46aa0c,void 0x0,_0x19891c))return!0x1;const _0x1bf834=_0x19891c['getSelectionAffectedTableCells'](_0xad4fc1['document']['selection']);if(!_0x1bf834['length'])return!0x1;const _0x333637=_0x1bf834[0x0]['findAncestor']('table'),_0x5a949f=_0x19891c['getRowIndexes'](_0x1bf834),_0x182923=_0x19891c['getColumnIndexes'](_0x1bf834),_0x3cd49c={'startRow':_0x5a949f['first'],'endRow':_0x5a949f['last'],'startColumn':_0x182923['first'],'endColumn':_0x182923['last']};return 0x1==_0x1bf834['length']&&(_0x3cd49c['endRow']+=_0x19891c['getRows'](_0x46aa0c)-0x1,_0x3cd49c['endColumn']+=_0x19891c['getColumns'](_0x46aa0c)-0x1),Ue(_0x333637,_0x3cd49c,_0x19891c);}(_0x2fd0fb,_0x4de156,_0x42f033['model'],_0xf353f8,_0x2f139c)&&(_0x2a2977['stop'](),_0x4ae6e8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42f033['model']['change'](()=>{_0x42f033['model']['insertContent'](_0x5f5dd3[0x0],_0x5f5dd3[0x1],_0x5f5dd3[0x2],{'forceDefaultExecution':!0x0});const _0x2869e2=_0x4adad1(),{rowInsertionRanges:_0x361324,columnInsertionRanges:_0x1ab07b,insertionRanges:_0x449ac3,deletionRanges:_0x130b48,cells:_0x48d6b6}=_0x4ae6e8;_0x361324['length']&&_0x2bc3e0['markMultiRangeInsertion'](_0x361324,'tablePasteRow',{'tablePasteChainId':_0x2869e2}),_0x1ab07b['length']&&_0x2bc3e0['markMultiRangeInsertion'](_0x1ab07b,'tablePasteColumn',{'tablePasteChainId':_0x2869e2}),_0x449ac3['length']&&(_0x2bc3e0['markMultiRangeInsertion'](_0x449ac3,'tablePaste',{'tablePasteChainId':_0x2869e2,'skipNestingCheck':!0x0}),_0x449ac3['forEach'](_0x1ff599=>_0x1ff599['detach']?.())),_0x130b48['length']&&(_0x2bc3e0['markMultiRangeDeletion'](_0x130b48,'tablePaste',{'tablePasteChainId':_0x2869e2,'skipNestingCheck':!0x0}),_0x130b48['forEach'](_0x270b47=>_0x270b47['detach']?.()));const _0x1815b5=_0x2bc3e0['markMultiRangeBlockFormat'](_0x48d6b6['map'](({element:_0xb1ace2})=>_0xb1ace2),{'formatGroupId':_0x4adad1()},[],'tablePasteCell',{'tablePasteChainId':_0x2869e2});if(_0x1815b5){const _0x549674=_0x1815b5['getMarkers'](),_0x419d5e=[];for(const {element:_0x4f6878,attributes:_0x3fa735}of _0x48d6b6){if(!_0x3fa735)continue;const _0x1e141e=_0x42f033['model']['createRangeOn'](_0x4f6878),_0xf04121=_0x549674['find'](_0x1c287e=>_0x1c287e['getRange']()['isEqual'](_0x1e141e));_0xf04121&&_0x419d5e['push']([_0xf04121['name'],_0x3fa735]);}_0x419d5e['length']&&_0x1815b5['setAttribute']('markerAttributes',Object['fromEntries'](_0x419d5e));}_0x4ae6e8=null;}));},{'priority':_0x5b0b49['high']+0xa}),_0x42f033['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x426f99,_0x6d447b)=>{const [_0xe02dac,_0x449a61,,_0x5c1783]=_0x6d447b;if(!_0x4ae6e8)return;_0x426f99['stop']();const _0x2cc7b2=_0xe02dac['cell'],_0x4c8511=_0x449a61,_0x483e0f=Oe(_0x2cc7b2),_0x3eade7=Oe(_0x4c8511);_0x426f99['return']=_0x2cc7b2;let _0x497a8e=null,_0x58606c=null;if(_0x3eade7||_0x483e0f){if(_0x483e0f&&!_0x3eade7){_0x5c1783['remove'](_0x2cc7b2['getChild'](0x0));for(const _0x433a42 of Array['from'](_0x4c8511['getChildren']()))_0x5c1783['insert'](_0x433a42,_0x2cc7b2,'end');const _0xc956bd=_0x4ae6e8['rowInsertionIndexes']['includes'](_0xe02dac['row']),_0x4c98f3=_0x4ae6e8['columnInsertionIndexes']['includes'](_0xe02dac['column']);_0xc956bd||_0x4c98f3||(_0x497a8e=_0x31bd77['fromRange'](_0x5c1783['createRangeIn'](_0x2cc7b2)));}else _0x3eade7&&!_0x483e0f&&(_0x58606c=_0x5c1783['createRangeIn'](_0x2cc7b2));}else{const _0x33828a=_0x5c1783['createElement']('tableCellSuggestion'),_0x3e9bc9=_0x5c1783['createElement']('tableCellSuggestion');_0x5c1783['wrap'](_0x5c1783['createRangeIn'](_0x2cc7b2),_0x3e9bc9),_0x5c1783['insert'](_0x33828a,_0x2cc7b2,0x0);for(const _0x4c7f6b of Array['from'](_0x4c8511['getChildren']()))_0x5c1783['insert'](_0x4c7f6b,_0x33828a,'end');_0x497a8e=_0x31bd77['fromRange'](_0x5c1783['createRangeOn'](_0x33828a)),_0x58606c=_0x31bd77['fromRange'](_0x5c1783['createRangeOn'](_0x3e9bc9));}const _0x101716=Array['from'](_0x4c8511['getAttributes']())['filter'](([_0x476fe0])=>Be['includes'](_0x476fe0));_0x4ae6e8['cells']['push']({'element':_0x2cc7b2,'attributes':_0x101716['length']?Object['fromEntries'](_0x101716):null}),_0x497a8e&&_0x4ae6e8['insertionRanges']['push'](_0x497a8e),_0x58606c&&_0x4ae6e8['deletionRanges']['push'](_0x58606c);},{'priority':'high'}),_0xf353f8['on']('insertColumns',(_0x119793,_0x2bdd2d)=>{const [_0x2e7afe,_0x5545a4={}]=_0x2bdd2d;if(!_0x4ae6e8)return;const _0x5a9c1a=_0x5545a4['at']||0x0,_0x3f494d=_0x5545a4['columns']||0x1;_0x4ae6e8['columnInsertionIndexes']=new Array(_0x3f494d)['fill'](_0x5a9c1a)['map']((_0xbf3b0b,_0x4c0cab)=>_0xbf3b0b+_0x4c0cab);for(const {cell:_0x5c4605}of _0xf353f8['createTableWalker'](_0x2e7afe,{'startColumn':_0x5a9c1a,'endColumn':_0x5a9c1a+_0x3f494d-0x1}))_0x4ae6e8['columnInsertionRanges']['push'](_0x42f033['model']['createRangeOn'](_0x5c4605));},{'priority':'low'}),_0xf353f8['on']('insertRows',(_0x4ee2a8,_0x5b6fc0)=>{const [_0x9f4dd0,_0x40e129={}]=_0x5b6fc0;if(!_0x4ae6e8)return;const _0xb1fdac=_0x40e129['at']||0x0,_0x3a3a3b=_0x40e129['rows']||0x1;_0x4ae6e8['rowInsertionIndexes']=new Array(_0x3a3a3b)['fill'](_0xb1fdac)['map']((_0x49da97,_0x271efc)=>_0x49da97+_0x271efc);for(const {cell:_0x418048}of _0xf353f8['createTableWalker'](_0x9f4dd0,{'startRow':_0xb1fdac,'endRow':_0xb1fdac+_0x3a3a3b-0x1}))_0x4ae6e8['rowInsertionRanges']['push'](_0x42f033['model']['createRangeOn'](_0x418048));},{'priority':'low'}),_0x2bc3e0['descriptionFactory']['registerDescriptionCallback'](_0x2d0c61=>{if(_0x2d0c61['subType']&&_0x2d0c61['subType']['startsWith']('tablePaste'))return _0x2d0c61['previous']?{}:{'type':'insertion','content':c(_0x42f033['locale'],'*Replace\x20table\x20cells*')};});const _0x23f314=()=>!0x1;for(const _0x408a47 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('insertion',_0x408a47,'join',_0x23f314),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('deletion',_0x408a47,'join',_0x23f314),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408a47,'join',_0x23f314);_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x23f314),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x47878b,_0x5379fc,_0x3e1a76)=>{const _0x26735d=_0x47878b['map'](_0x239dcd=>_0x239dcd['getContainedElement']())['filter'](_0x5205b4=>_0x5205b4),_0x342764=new Map(_0x26735d['map'](_0x5f2a79=>[_0x5f2a79,null]));if(_0x4ae6e8){for(const {element:_0x1ae437,attributes:_0x49a739}of _0x4ae6e8['cells'])_0x49a739&&_0x342764['set'](_0x1ae437,_0x49a739);}else{if(_0x3e1a76&&_0x3e1a76['markerAttributes'])for(const [_0x66df52,_0x3de0ed]of Object['entries'](_0x3e1a76['markerAttributes'])){const _0x4a8dcd=_0x42f033['model']['markers']['get'](_0x66df52),_0x10c736=_0x4a8dcd?_0x4a8dcd['getRange']()['getContainedElement']():null;_0x10c736&&_0x342764['set'](_0x10c736,_0x3de0ed);}}_0x42f033['model']['change'](_0x331505=>{for(const [_0x3f2cef,_0x23f013]of _0x342764)_0x331505['setAttributes']({...xe,..._0x23f013},_0x3f2cef);});});const _0x210bcf=(_0x42f520,_0x12e302)=>{_0x2bc3e0['_suggestionFactory']['registerCustomCallback'](_0x42f520,'tablePaste',_0x12e302,(_0x3caf29,_0x4bf355,_0x508306)=>{_0x42f033['model']['change'](_0x4069e0=>{const _0x1f96bc=[];for(const _0x93ccd4 of _0x3caf29){const _0x56971f=_0x93ccd4['start']['nodeAfter'];_0x56971f['is']('element','tableCellSuggestion')&&_0x1f96bc['push'](_0x56971f);}_0x2bc3e0['_suggestionFactory']['getSuggestionCallback'](_0x42f520,null,_0x12e302)(_0x3caf29,_0x4bf355,_0x508306);for(const _0x23b67f of _0x1f96bc)'$graveyard'!=_0x23b67f['root']['rootName']&&_0x4069e0['unwrap'](_0x23b67f);});});};_0x210bcf('insertion','accept'),_0x210bcf('insertion','discard'),_0x210bcf('deletion','accept'),_0x210bcf('deletion','discard'),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x9860d7=>{const _0xc1cd1d=_0x9860d7['map'](_0x164b6d=>_0x164b6d['getContainedElement']()),_0x4e7cb5=_0xc1cd1d[0x0]['findAncestor']('table'),{minRow:_0xa5ad87,maxRow:_0x5b19db}=_0x54609a['_getCoordsForCells'](_0xc1cd1d);_0xf353f8['removeRows'](_0x4e7cb5,{'at':_0xa5ad87,'rows':_0x5b19db-_0xa5ad87+0x1});}),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xf3b34c=>{const _0x1ecebf=_0xf3b34c['map'](_0x3000b9=>_0x3000b9['getContainedElement']()),_0x49b8a9=_0x1ecebf[0x0]['findAncestor']('table'),{minColumn:_0xcfcc4d,maxColumn:_0x29be70}=_0x54609a['_getCoordsForCells'](_0x1ecebf);_0xf353f8['removeColumns'](_0x49b8a9,{'at':_0xcfcc4d,'columns':_0x29be70-_0xcfcc4d+0x1});});const _0x5a0934=(_0x583b34,_0x3e65b6)=>{if(!_0x3e65b6['subType']||!_0x3e65b6['subType']['startsWith']('tablePaste'))return;const _0x2c0298=_0x3e65b6['attributes']['tablePasteChainId'],_0x317b8e=_0x2bc3e0['getSuggestions']()['filter'](_0x591809=>_0x591809['isInContent']&&_0x591809['attributes']&&_0x591809['attributes']['tablePasteChainId']==_0x2c0298);_0x317b8e['length']&&_0x3e65b6['getAllAdjacentSuggestions']()['length']!=_0x317b8e['length']&&_0x317b8e['reduce']((_0x5046c9,_0x3c5f4a)=>(_0x5046c9['next']=_0x3c5f4a,_0x3c5f4a['previous']=_0x5046c9,_0x3c5f4a));};function _0x280855(_0x10255f,_0x479d97=!0x0){const {id:_0x9c68c8,authorId:_0x10c6a2}=_0x2bc3e0['_splitMarkerName'](_0x10255f['markerName']),_0x1023c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x184fa9=_0x2bc3e0['activeMarkers']['includes'](_0x10255f['markerName']);return _0x184fa9&&_0x1023c2['push']('ck-suggestion-marker--active'),{'classes':_0x1023c2,'attributes':{'data-suggestion':_0x9c68c8,'data-author-id':_0x10c6a2},'priority':_0x184fa9&&_0x479d97?0xbc2:0xbb8};}_0x2bc3e0['on']('suggestionLoaded',_0x5a0934,{'priority':'high'}),_0x2bc3e0['on']('suggestionUnloaded',_0x5a0934,{'priority':'high'}),_0x42f033['model']['document']['registerPostFixer'](()=>{let _0x404a27=!0x1;const _0x2f915d=Array['from'](_0x42f033['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41906b,data:_0x4c35da}of _0x2f915d){const {group:_0x3abce3,type:_0x19ba45,id:_0x1222d5}=_0x2bc3e0['_splitMarkerName'](_0x41906b);if('suggestion'!=_0x3abce3||'deletion'!=_0x19ba45||_0x4c35da['oldRange'])continue;if(!_0x2bc3e0['hasSuggestion'](_0x1222d5))continue;const _0x203601=_0x2bc3e0['getSuggestion'](_0x1222d5)['getRanges'](),_0x391f86=_0x42f033['plugins']['get']('Users')['me'];for(const _0x2a4b85 of _0x2bc3e0['getSuggestions']()){if(!_0x2a4b85['isInContent']||_0x2a4b85['author']!=_0x391f86)continue;if('formatBlock'!=_0x2a4b85['type']||'tablePasteCell'!=_0x2a4b85['subType'])continue;if(_0x2a4b85['getRanges']()['every'](_0x20efd3=>_0x203601['some'](_0xd073f9=>_0xd073f9['containsRange'](_0x20efd3,!0x0)))){for(const _0x3df38e of _0x2a4b85['getAllAdjacentSuggestions']())_0x3df38e['isInContent']&&(_0x3df38e['discard'](),_0x404a27=!0x0);}}}return _0x404a27;}),_0x42f033['model']['document']['registerPostFixer'](_0x2a2b62=>{const _0x4097c9=_0x42f033['commands']['get']('redo');if(!_0x4097c9||!_0x4097c9['_createdBatches']['has'](_0x2a2b62['batch']))return!0x1;let _0x2e4a36=!0x1;const _0x2c8895=_0x42f033['plugins']['get']('Users')['me'],_0x1194f7=_0x42f033['model']['document']['differ']['getChanges'](),_0x59c791=Array['from'](_0x42f033['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x413ca1,data:_0x134a1c})=>{const {group:_0x41b9c6,subType:_0x267756,authorId:_0x121d6d}=_0x2bc3e0['_splitMarkerName'](_0x413ca1);return'suggestion'==_0x41b9c6&&'tablePaste'==_0x267756&&_0x121d6d==_0x2c8895['id']&&!_0x134a1c['oldRange'];});for(const _0x1cc71a of _0x1194f7){if('insert'!=_0x1cc71a['type']||'tableCellSuggestion'!=_0x1cc71a['name']||0x1!=_0x1cc71a['length'])continue;const _0x2dfe0e=_0x2a2b62['createRange'](_0x1cc71a['position'],_0x1cc71a['position']['getShiftedBy'](0x1));if(!_0x59c791['find'](({data:_0xa9a07b})=>_0xa9a07b['newRange']['isEqual'](_0x2dfe0e))){for(const {name:_0x111c96,data:_0x5e4157}of _0x59c791)if(_0x2dfe0e['containsRange'](_0x5e4157['newRange'])){_0x2a2b62['updateMarker'](_0x111c96,{'range':_0x2dfe0e}),_0x2e4a36=!0x0;break;}}}return _0x2e4a36;}),_0x42f033['model']['document']['registerPostFixer'](_0x39212e=>{let _0x6b3254=!0x1;const _0x5bf104=_0x42f033['plugins']['get']('Users')['me'],_0x44c30e=_0x2bc3e0['getSuggestions']()['filter'](_0xd13436=>_0xd13436['isInContent']&&_0xd13436['author']==_0x5bf104),_0x5aa830=new Set(),_0x53e419=new Set();for(const _0x580aa0 of _0x44c30e)if('tablePaste'==_0x580aa0['subType'])for(const _0x17bb44 of _0x580aa0['getMarkers']()){const _0x57617d=_0x17bb44['getRange']()['getContainedElement']();if(_0x57617d){if(_0x57617d['is']('element','tableCellSuggestion')&&Oe(_0x57617d)){_0x580aa0['removeMarker'](_0x17bb44['name']),_0x5aa830['add'](_0x57617d),_0x6b3254=!0x0;const _0x28b36f=_0x57617d['nextSibling'],_0xb58017=_0x57617d['previousSibling'],_0x526efb=_0x28b36f&&_0x28b36f['is']('element','tableCellSuggestion'),_0x18e66d=_0xb58017&&_0xb58017['is']('element','tableCellSuggestion');_0x526efb&&!_0x5aa830['has'](_0x28b36f)&&_0x53e419['add'](_0x28b36f),_0x18e66d&&!_0x5aa830['has'](_0xb58017)&&_0x53e419['add'](_0xb58017);}else _0x57617d['is']('element','paragraph')&&_0x57617d['isEmpty']&&(_0x580aa0['removeMarker'](_0x17bb44['name']),_0x6b3254=!0x0);}}else{if('tablePasteCell'==_0x580aa0['subType']){if(!_0x580aa0['attributes']||!_0x580aa0['attributes']['tablePasteChainId'])continue;const _0x302e04=_0x580aa0['attributes']['markerAttributes'];if(_0x302e04&&Object['keys'](_0x302e04)['length'])continue;const _0x471b6d=_0x580aa0['attributes']['tablePasteChainId'];let _0x29f93a=!0x0,_0x35916a=!0x0;for(const _0x1ab06e of _0x44c30e)if(_0x1ab06e['subType']&&_0x1ab06e['subType']['startsWith']('tablePaste')){if(!_0x1ab06e['attributes']['tablePasteChainId']){_0x35916a=!0x1;break;}if(_0x1ab06e['id']!=_0x580aa0['id']&&_0x1ab06e['attributes']['tablePasteChainId']==_0x471b6d){_0x29f93a=!0x1;break;}}_0x35916a&&_0x29f93a&&(_0x580aa0['removeMarkers'](),_0x6b3254=!0x0);}}for(const _0x20ea05 of _0x5aa830)_0x39212e['remove'](_0x20ea05);for(const _0x360489 of _0x53e419)_0x39212e['unwrap'](_0x360489);return _0x6b3254;}),_0x42f033['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x27c913=>_0x280855(_0x27c913),'converterPriority':'high'}),_0x42f033['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x324406,_0x2c3c7d)=>_0x2c3c7d['options']['showSuggestionHighlights']?_0x280855(_0x324406,!0x1):null,'converterPriority':'high'});const _0x45d967=_0x42f033['editing']['view'];this['listenTo'](_0x45d967['document'],'clipboardOutput',(_0x4a9a03,_0x2a2225)=>{const _0x3d8da0=[];for(const _0x1cb4b1 of _0x45d967['createRangeIn'](_0x2a2225['content'])['getItems']())_0x1cb4b1['is']('element','suggestion-td')&&_0x3d8da0['push'](_0x1cb4b1);_0x45d967['change'](_0x12b8ad=>{for(const _0x5d8d82 of _0x3d8da0)_0x12b8ad['move'](_0x12b8ad['createRangeIn'](_0x5d8d82),_0x12b8ad['createPositionBefore'](_0x5d8d82)),_0x12b8ad['remove'](_0x5d8d82);});});}}function Oe(_0x2a91d9){if(_0x2a91d9['isEmpty'])return!0x0;const _0x236f89=_0x2a91d9['getChild'](0x0);return _0x236f89['is']('element','paragraph')&&_0x236f89['isEmpty'];}function Ue(_0x85bfaa,_0x9c6c4a={},_0x2e9e1e){for(const {isAnchor:_0x245692,cellHeight:_0x24a582,cellWidth:_0xf45cfc}of _0x2e9e1e['createTableWalker'](_0x85bfaa,{'includeAllSlots':!0x0,..._0x9c6c4a}))if(!_0x245692||0x1!=_0x24a582||0x1!=_0xf45cfc)return!0x1;return!0x0;}class Dt extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b842e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b842e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3b842e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3b842e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b842e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3b842e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3b842e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1dcb17,_0x500724){const _0x521b9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x442bc2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e9bda=_0x500724['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3eedc4=_0x442bc2['getColumnGroupElement'](_0x1e9bda);let _0x211a08=_0x3eedc4?_0x442bc2['getTableColumnsWidths'](_0x3eedc4):null,_0x19efe8=_0x1e9bda['getAttribute']('tableWidth')||null;const _0x15a79a=_0x500724['tableWidth']||_0x19efe8,_0x51510b=_0x500724['columnWidths']||_0x211a08,_0x231618=this['editor']['plugins']['get']('Users')['me'];for(const _0x314742 of _0x521b9f['getSuggestions']()){const _0x8ac68b=_0x314742['getContainedElement']();if('resizeTable'===_0x314742['subType']&&_0x8ac68b===_0x1e9bda){_0x314742['author']!==_0x231618&&_0x314742['discard']();const _0x4d4ebf=_0x314742['data']['commandParams'];_0x19efe8=_0x4d4ebf[0x0]['tableWidth'],_0x211a08=_0x4d4ebf[0x0]['columnWidths'];break;}}_0x1dcb17({'table':_0x1e9bda,'tableWidth':_0x15a79a,'columnWidths':_0x51510b}),_0x521b9f['markBlockFormat'](_0x1e9bda,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x19efe8,'columnWidths':_0x211a08}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1e142f){if('formatBlock'!=_0x1e142f['type']&&'formatInline'!=_0x1e142f['type'])return;const {data:_0xa874cf}=_0x1e142f;if(_0xa874cf&&'resizeTable'===_0xa874cf['formatGroupId']){const _0x173150='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x173150)};}}}class Mt extends _0x159581{['afterInit'](){const _0x126f34=this['editor'];_0x126f34['plugins']['has']('Template')&&_0x126f34['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x159581{['afterInit'](){const _0x31bfdd=this['editor'];if(!_0x31bfdd['commands']['get']('insertTableOfContents'))return;_0x31bfdd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5ec625=_0x31bfdd['plugins']['get']('TrackChangesEditing'),_0x1ec8c5=_0x31bfdd['locale'];_0x5ec625['descriptionFactory']['registerElementLabel']('tableOfContents',_0x19b85e=>c(_0x1ec8c5,'ELEMENT_TABLE_OF_CONTENTS',_0x19b85e));}}class Bt extends _0x159581{['afterInit'](){const _0x681c77=this['editor'];if(!_0x681c77['plugins']['has']('Title'))return;const _0x1b4d4a=_0x681c77['plugins']['get']('TrackChangesEditing');_0x1b4d4a['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x681c77['locale'],'ELEMENT_TITLE')),_0x681c77['model']['document']['registerPostFixer'](_0x3ed349=>{let _0x45e62f=!0x1;const _0x193fbe=Array['from'](_0x681c77['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13cd5a,data:_0xd9be0b}of _0x193fbe){const {group:_0x44ef39}=_0x1b4d4a['_splitMarkerName'](_0x13cd5a);if('suggestion'!==_0x44ef39||!_0xd9be0b['newRange'])continue;const _0x5cfa35=_0xd9be0b['newRange'],_0x123524=_0x5cfa35['end']['nodeBefore'];if(!_0x123524||!_0x123524['is']('element','title-content'))continue;if(!_0x5cfa35['start']['isTouching'](_0x5cfa35['end']))continue;const _0x5c71a9=_0x681c77['model']['schema']['getNearestSelectionRange'](_0x5cfa35['end'],'forward');if(_0x5c71a9&&_0x5c71a9['isCollapsed']){const _0x4fa4b7=_0x3ed349['createRange'](_0x5cfa35['start'],_0x5c71a9['start']);_0x4fa4b7['isEqual'](_0x5cfa35)||(_0x3ed349['updateMarker'](_0x13cd5a,{'range':_0x4fa4b7}),_0x45e62f=!0x0);}_0x45e62f||(_0x3ed349['removeMarker'](_0x13cd5a),_0x45e62f=!0x0);}return _0x45e62f;});}}class Ot extends _0x159581{['afterInit'](){const _0x46b093=this['editor'],_0x30cc02=_0x46b093['plugins']['get']('TrackChangesEditing');_0x46b093['plugins']['has']('Uploadcare')&&(_0x30cc02['enableCommand']('uploadcare'),_0x46b093['plugins']['has']('UploadcareImageEdit')&&(_0x30cc02['enableCommand']('uploadcareImageEdit'),_0x30cc02['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x30cc02['registerBlockAttribute']('uploadcareImageId'),_0x30cc02['descriptionFactory']['registerDescriptionCallback'](_0xb1cb97=>{if('attribute'!=_0xb1cb97['type'])return;const {data:_0x2c4b45}=_0xb1cb97;return _0x2c4b45&&'uploadcareImageId'==_0x2c4b45['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x159581{['afterInit'](){const _0x287172=this['editor'],_0x5684ed=_0x287172['plugins']['get']('TrackChangesEditing');_0x287172['plugins']['has']('UndoEditing')&&(_0x5684ed['enableCommand']('undo'),_0x5684ed['enableCommand']('redo'));}}class xt extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x5db3c8=this['editor'];if(!_0x5db3c8['plugins']['has']('TableCaptionEditing'))return;_0x5db3c8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x159581{['tableProperties'];['tableCellProperties'];constructor(_0x28b6fd){super(_0x28b6fd),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x27c610=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x14557f of this['tableProperties'])_0x27c610['enableCommand'](_0x14557f,(_0x4ac7e2,_0x2fdc44)=>{const _0x1c6ae0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x14557f,[_0x1c6ae0],this['tableProperties'],'tableProperties',_0x4ac7e2,_0x2fdc44);});_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x27c610['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c0493,_0x2a3ece)=>this['handleDiscardAction'](this['tableProperties'],_0x5c0493,_0x2a3ece)),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x517501 of this['tableCellProperties'])_0x27c610['enableCommand'](_0x517501,(_0x41040b,_0x5ef978)=>{const _0x4c0442=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x517501,_0x4c0442,this['tableCellProperties'],'tableCellProperties',_0x41040b,_0x5ef978);});_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x27c610['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47fca0,_0x26b7e0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47fca0,_0x26b7e0)),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x27c610['descriptionFactory']['registerDescriptionCallback'](_0xfb7f19=>this['handleSuggestionDescription'](_0xfb7f19));}['_handlePropertyChange'](_0x4efb2e,_0x1534d7,_0x506fb7,_0x5f3258,_0x3a4d2e,_0x554154){const _0x5df0c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x554154['batch'],()=>{for(const _0x3881f0 of _0x1534d7){if(this['_getSuggestion'](_0x3881f0,_0x5f3258))_0x3a4d2e(_0x554154);else{const _0xbf0681={};for(const _0x1965d2 of _0x506fb7){const _0x4ad07b=_0x3881f0['getAttribute'](_0x1965d2);void 0x0!==_0x4ad07b&&(_0xbf0681[_0x1965d2]=_0x4ad07b);}_0x3a4d2e(_0x554154),_0x5df0c5['markBlockFormat'](_0x3881f0,{'commandParams':[_0xbf0681]},[],_0x5f3258);}}});}['handleDiscardAction'](_0x1cca0a,_0x392279,_0x55a255){const _0x58e8b5=_0x392279[0x0]['start']['nodeAfter'],_0xf954c9=_0x55a255['commandParams'][0x0];this['editor']['model']['change'](_0x42aae7=>{for(const _0x11bc9f of _0x1cca0a)void 0x0!==_0xf954c9[_0x11bc9f]?_0x42aae7['setAttribute'](_0x11bc9f,_0xf954c9[_0x11bc9f],_0x58e8b5):_0x42aae7['removeAttribute'](_0x11bc9f,_0x58e8b5);});}['handleSuggestionDescription'](_0x32d0f5){if(_0x32d0f5['data'])switch(_0x32d0f5['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x54090d,_0x3d0161){const _0x5e271c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x528b3c of _0x5e271c['getSuggestions']({'skipNotAttached':!0x0})){const _0x4b17d2=_0x528b3c['getContainedElement']();if(_0x528b3c['subType']===_0x3d0161&&_0x4b17d2===_0x54090d)return _0x528b3c;}return null;}}const u='$elementName';class p extends _0x159581{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x446c4e,_0xa7d8f2,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x227fc6){super(_0x227fc6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2d3a1a,_0x49fa7c,_0x28149c,_0x1acbdf)=>{this['_model']['change'](()=>{for(const _0x2557c2 of[..._0x1acbdf,..._0x28149c])this['_model']['markers']['has'](_0x2557c2)&&_0x227fc6['editing']['reconvertMarker'](_0x2557c2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x227fc6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x227fc6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x227fc6['config']['get']('trackChanges.trackFormatChanges'),_0x227fc6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x227fc6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x227fc6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x140390=this['editor'],_0x271198=(_0xc14cbf,_0x4fb9b3)=>{if('attribute'!=_0xc14cbf)return'ck-suggestion-marker-'+_0xc14cbf;const _0x1be1df=_0x4fb9b3['split']('|')[0x0];return this['_isBlockAttribute'](_0x1be1df)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x140390['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x540d04=>{const {id:_0x44db75,authorId:_0x4dc8b2,type:_0x1942cc,subType:_0x392da9}=this['_splitMarkerName'](_0x540d04['markerName']),_0x4e61a1=['ck-suggestion-marker',_0x271198(_0x1942cc,_0x392da9)];let _0x15c1fa=0xbb8;return this['activeMarkers']['includes'](_0x540d04['markerName'])&&(_0x4e61a1['push']('ck-suggestion-marker--active'),_0x15c1fa=0xbc2),'deletion'==_0x1942cc&&(_0x15c1fa+=0x5),{'classes':_0x4e61a1,'attributes':{'data-suggestion':_0x44db75,'data-author-id':_0x4dc8b2},'priority':_0x15c1fa};}}),_0x140390['conversion']['for']('dataDowncast')['add'](_0x26baa6=>{_0x26baa6['on']('addMarker:suggestion',(_0x274954,_0x2b7b5e,_0x28df1f)=>{if(!_0x28df1f['options']['showSuggestionHighlights'])return;const _0x100e6c=_0x2b7b5e['item'];if(!_0x100e6c)return;const _0x494121=_0x28df1f['mapper']['toViewElement'](_0x100e6c);_0x140390['model']['schema']['isObject'](_0x100e6c)&&_0x494121&&!_0x494121['getCustomProperty']('widget')&&_0x494121['is']('containerElement')&&_0xcf9d12(_0x494121,_0x28df1f['writer']);},{'priority':'high'});}),_0x140390['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4327f2,_0x492276)=>{if(!_0x492276['options']['showSuggestionHighlights'])return null;const {type:_0x4119de,subType:_0x486e40}=this['_splitMarkerName'](_0x4327f2['markerName']);return{'classes':['ck-suggestion-marker',_0x271198(_0x4119de,_0x486e40)],'priority':0xbb8};}});const _0x478204=({showActiveMarkers:_0x5e6e09=!0x0,isAttributeSuggestion:_0x5f07f8=!0x1}={})=>(_0x5a7245,_0x1c2ef0,_0x227e6f)=>{if(!_0x1c2ef0['item'])return;const {id:_0x295f31,authorId:_0x390519}=this['_splitMarkerName'](_0x1c2ef0['markerName']);if(_0x5f07f8){const _0x53e543=this['_suggestions']['get'](_0x295f31),_0x56a805=this['_getAttributeKey'](_0x53e543);if(!this['_isBlockAttribute'](_0x56a805))return;}if(_0x1c2ef0['item']['is']('selection'))return void _0x227e6f['consumable']['consume'](_0x1c2ef0['item'],_0x5a7245['name']);const _0x296115=_0x227e6f['mapper']['toViewElement'](_0x1c2ef0['item']);if(_0x1c2ef0['item']['is']('element')&&_0x140390['model']['schema']['isBlock'](_0x1c2ef0['item'])&&!_0x296115['getCustomProperty']('addHighlight')){_0x227e6f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x296115),_0x227e6f['writer']['setAttribute']('data-suggestion',_0x295f31,_0x296115),_0x227e6f['writer']['setAttribute']('data-author-id',_0x390519,_0x296115),_0x227e6f['mapper']['bindElementToMarker'](_0x296115,_0x1c2ef0['markerName']),_0x5e6e09&&(this['activeMarkers']['includes'](_0x1c2ef0['markerName'])?_0x227e6f['writer']['addClass']('ck-suggestion-marker--active',_0x296115):_0x227e6f['writer']['removeClass']('ck-suggestion-marker--active',_0x296115));for(const _0x374547 of _0x140390['model']['createRangeIn'](_0x1c2ef0['item'])['getItems']())_0x227e6f['consumable']['consume'](_0x374547,_0x5a7245['name']);_0x227e6f['consumable']['consume'](_0x1c2ef0['item'],_0x5a7245['name']);}};_0x140390['conversion']['for']('dataDowncast')['add'](_0x224817=>{_0x224817['on']('addMarker:suggestion:formatBlock',(_0x501173,_0x430d70,_0x31c906)=>{_0x31c906['options']['showSuggestionHighlights']&&_0x478204({'showActiveMarkers':!0x1})(_0x501173,_0x430d70,_0x31c906);},{'priority':'highest'});}),_0x140390['conversion']['for']('dataDowncast')['add'](_0x1c5790=>{_0x1c5790['on']('addMarker:suggestion:attribute',(_0x380108,_0x46f9ab,_0x5a1cd6)=>{_0x5a1cd6['options']['showSuggestionHighlights']&&_0x478204({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x380108,_0x46f9ab,_0x5a1cd6);},{'priority':'highest'});}),_0x140390['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x472411,_0x247aec)=>_0x247aec['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x472411['substr'](0xb)}}),_0x140390['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x86ac11,{writer:_0x39434f})=>{let _0x423bf0='suggestion:'+_0x86ac11['getAttribute']('suggestion-type')+':'+_0x86ac11['getAttribute']('id');return _0x86ac11['getAttribute']('marker-count')&&(_0x423bf0+=':'+_0x86ac11['getAttribute']('marker-count')),_0x39434f['createElement']('$marker',{'data-name':_0x423bf0});}}),_0x140390['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x1f0813=>{_0x1f0813['on']('addMarker:suggestion:formatBlock',_0x478204(),{'priority':'high'});}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x8c3a94=>{_0x8c3a94['on']('addMarker:suggestion:attribute',_0x478204({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x37108b=>{_0x37108b['on']('removeMarker:suggestion:formatBlock',(_0x5ae4f2,_0x34a3b2,_0x3de2e2)=>{const _0x5487b8=_0x3de2e2['mapper']['markerNameToElements'](_0x34a3b2['markerName']);if(_0x5487b8){for(const _0x2df3c8 of _0x5487b8)_0x2df3c8['getCustomProperty']('addHighlight')||(_0x3de2e2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2df3c8),_0x3de2e2['writer']['removeAttribute']('data-suggestion',_0x2df3c8),_0x3de2e2['writer']['removeAttribute']('data-author-id',_0x2df3c8),_0x3de2e2['mapper']['unbindElementFromMarkerName'](_0x2df3c8,_0x34a3b2['markerName']));}},{'priority':'high'});}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x56b780=>{_0x56b780['on']('removeMarker:suggestion:attribute',(_0x2033c4,_0x141103,_0xf616bb)=>{const _0x4e0bd5=_0xf616bb['mapper']['markerNameToElements'](_0x141103['markerName']);if(!_0x4e0bd5)return;const {id:_0x525b1a}=this['_splitMarkerName'](_0x141103['markerName']),_0x45b9ed=this['_suggestions']['get'](_0x525b1a),_0x38cdbe=this['_getAttributeKey'](_0x45b9ed);if(this['_isBlockAttribute'](_0x38cdbe)){for(const _0x1f3b20 of _0x4e0bd5)_0x1f3b20['getCustomProperty']('addHighlight')||(_0xf616bb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f3b20),_0xf616bb['writer']['removeAttribute']('data-suggestion',_0x1f3b20),_0xf616bb['writer']['removeAttribute']('data-author-id',_0x1f3b20),_0xf616bb['mapper']['unbindElementFromMarkerName'](_0x1f3b20,_0x141103['markerName']));}},{'priority':'high'});}),_0x140390['model']['document']['registerPostFixer'](_0x5b10cf=>{let _0x576527=!0x1;const _0x20bb83=Array['from'](_0x140390['model']['document']['differ']['getChangedMarkers']()),_0x6360ce=new Set();for(const {name:_0x1c30b0,data:_0x4d9908}of _0x20bb83){const {group:_0x31a161,type:_0xb22bb7,subType:_0xb83067,id:_0x5d8297}=this['_splitMarkerName'](_0x1c30b0);if('suggestion'!==_0x31a161)continue;const _0x3c6c4a=this['_suggestions']['get'](_0x5d8297);if(null!=_0x4d9908['newRange']){'formatInline'==_0xb22bb7&&(_0x576527=_0x576527||Pt(_0x4d9908['newRange'],_0x1c30b0,_0x5b10cf,_0x140390['model']['schema']));const _0x1111ae='attribute'==_0xb22bb7&&this['_isBlockAttribute'](_0xb83067['split']('|')[0x0]);if(_0x4d9908['newRange']['isCollapsed']||'$graveyard'==_0x4d9908['newRange']['root']['rootName']||'formatBlock'==_0xb22bb7&&!Lt(_0x4d9908['newRange'])||_0x1111ae&&!Lt(_0x4d9908['newRange'])||'deletion'==_0xb22bb7&&!(!Ft(_0x376760=_0x4d9908['newRange'])&&!function(_0xb63ee9){return _0xb63ee9['start']['parent']==_0xb63ee9['end']['nodeBefore']&&_0xb63ee9['start']['isAtEnd'];}(_0x376760)))_0x5b10cf['removeMarker'](_0x1c30b0),_0x576527=!0x0;else{if(!_0x3c6c4a||!_0x3c6c4a['isInContent'])continue;if(_0x4d9908['newRange']&&_0x4d9908['oldRange']&&_0x4d9908['newRange']['isEqual'](_0x4d9908['oldRange']))continue;_0x6360ce['add'](_0x3c6c4a);}}}var _0x376760;return _0x6360ce['size']>0x0&&(_0x576527=!!this['_joinWithAdjacentSuggestions'](_0x6360ce)||_0x576527),_0x576527;}),_0x140390['model']['document']['registerPostFixer'](_0x12e762=>{let _0x308464=!0x1;for(const _0x367a14 of _0x140390['model']['document']['differ']['getChanges']())if('insert'==_0x367a14['type'])for(const _0x44ab48 of this['_suggestions']['values']()){if(_0x44ab48['isMultiRange']||!_0x44ab48['isInContent'])continue;const _0xf5756b='formatBlock'==_0x44ab48['type'],_0x546547=this['_getAttributeKey'](_0x44ab48),_0x9bfb7e=_0x546547&&this['_isBlockAttribute'](_0x546547);if(!_0xf5756b&&!_0x9bfb7e)continue;const _0x1b9b35=_0x44ab48['getFirstRange']();if(_0x1b9b35['start']['parent']!=_0x1b9b35['end']['parent']&&!_0x1b9b35['end']['isAtEnd']){const _0x4a286b=_0x140390['model']['createPositionAt'](_0x1b9b35['start']['nodeAfter'],'end'),_0x2c6653=_0x140390['model']['createRange'](_0x1b9b35['start'],_0x4a286b);_0x12e762['updateMarker'](_0x44ab48['getFirstMarker'](),{'range':_0x2c6653}),_0x308464=!0x0;}}return _0x308464;}),_0x140390['model']['document']['registerPostFixer'](_0x3b4865=>this['_processAttributeChanges'](_0x3b4865)),_0x140390['model']['document']['registerPostFixer'](_0x109476=>!_0x109476['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x109476)),_0x140390['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x140390['model']['document']['on']('change:data',(_0x80efc4,_0x26af9b)=>{if(!_0x26af9b['isLocal']||_0x26af9b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x438c0d=_0x140390['model']['document']['differ']['getChanges']();if(0x0==_0x438c0d['length'])return;const _0x5268ad=[],_0xbf9cbb=_0x438c0d['filter'](_0x1f8de7=>'attribute'==_0x1f8de7['type']),_0x59af2c=_0x438c0d['filter'](_0x5ecbb0=>'insert'==_0x5ecbb0['type']&&'$text'!=_0x5ecbb0['name']);for(const _0x27a3a7 of _0xbf9cbb)this['_isRegisteredAttribute'](_0x27a3a7['attributeKey'])&&_0x5268ad['push']({'key':_0x27a3a7['attributeKey'],'newValue':_0x27a3a7['attributeNewValue'],'oldValue':_0x27a3a7['attributeOldValue'],'range':Jt(_0x27a3a7['range'],_0x140390['model'])});for(const _0x467a58 of _0x59af2c){if('rename'!=_0x467a58['action']&&'refresh'!=_0x467a58['action'])continue;const _0x331c59=Kt(_0x467a58['position']['nodeAfter'],_0x140390['model']),_0x74b964=_0x467a58['before'];'rename'==_0x467a58['action']&&_0x5268ad['push']({'key':u,'newValue':_0x467a58['name'],'oldValue':_0x74b964['name'],'range':_0x331c59});for(const [_0x541314,_0x537dd9]of _0x74b964['attributes']){if(!this['_isRegisteredAttribute'](_0x541314))continue;const _0x2c665c=_0x467a58['attributes']['get'](_0x541314);_0x537dd9!==_0x2c665c&&_0x5268ad['push']({'key':_0x541314,'newValue':_0x2c665c,'oldValue':_0x537dd9,'range':_0x331c59});}for(const [_0x31db89,_0x2554af]of _0x467a58['attributes'])this['_isRegisteredAttribute'](_0x31db89)&&(_0x74b964['attributes']['has'](_0x31db89)||_0x5268ad['push']({'key':_0x31db89,'newValue':_0x2554af,'oldValue':null,'range':_0x331c59}));}0x0!=_0x5268ad['length']&&_0x140390['model']['enqueueChange'](_0x26af9b,_0x209861=>{const _0x5a5e61=_0x4adad1();for(const {range:_0x4649cd,key:_0x4cab43,oldValue:_0x283dfe,newValue:_0x891fc0}of _0x5268ad)this['markAttributeChange'](_0x4649cd,_0x4cab43,_0x283dfe,_0x891fc0,{'groupId':_0x5a5e61});this['_reduceExistingSuggestions'](_0x209861,_0x5268ad);});},{'priority':'lowest'}),_0x140390['model']['markers']['on']('update:suggestion',(_0x2fb3ab,_0x75db68,_0x1ed64d)=>{if(null==_0x1ed64d){const {id:_0xab455}=this['_splitMarkerName'](_0x75db68['name']),_0x2a98c4=this['_suggestions']['get'](_0xab455);_0x2a98c4&&_0x2a98c4['addMarkerName'](_0x75db68['name']);}}),_0x140390['model']['document']['on']('change:data',()=>{const _0x29b72c=Array['from'](_0x140390['model']['document']['differ']['getChangedMarkers']())['filter'](_0x54d4c1=>'suggestion'===this['_splitMarkerName'](_0x54d4c1['name'])['group']);if(0x0===_0x29b72c['length'])return;_0x29b72c['sort']((_0x1b557d,_0x315759)=>{const _0x372ac2=_0x1b557d['data']['oldRange'],_0x2dc7b9=_0x315759['data']['oldRange'];return null===_0x372ac2&&null===_0x2dc7b9?0x0:null===_0x372ac2&&null!==_0x2dc7b9?-0x1:null!==_0x372ac2&&null===_0x2dc7b9?0x1:_0x372ac2['start']['isBefore'](_0x2dc7b9['start'])?-0x1:0x1;});const _0x8bce2f=new Set(),_0x20b0a9=new Set();for(const {name:_0x2c92c7,data:_0x40b4bb}of _0x29b72c){const {id:_0x4ae3d5}=this['_splitMarkerName'](_0x2c92c7);if(null===_0x40b4bb['oldRange']){const _0x5675f0=this['_handleNewSuggestionMarker'](_0x2c92c7);_0x20b0a9['add'](_0x5675f0);}else{const _0x2d1647=this['_suggestions']['get'](_0x4ae3d5);null!==_0x40b4bb['newRange']||_0x2d1647['isInContent']?(_0x8bce2f['add'](_0x2d1647['head']),_0x20b0a9['add'](_0x2d1647)):this['_removeSuggestion'](_0x2d1647);}}_0x20b0a9['size']>0x0&&this['_refreshSuggestionsChain'](_0x20b0a9);for(const _0x2efbda of _0x8bce2f)this['fire']('suggestionChanged',_0x2efbda);}),_0x140390['model']['on']('applyOperation',(_0x32bf22,_0x4044f6)=>{const _0x561bf2=_0x4044f6[0x0];if(!this['_suggestions']['size'])return;if(!_0x561bf2['isDocumentOperation'])return;if(_0x561bf2['batch']['isUndo']||!_0x561bf2['batch']['isLocal'])return;let _0x4a01b9,_0x3e27e8;switch(_0x561bf2['type']){case'insert':_0x4a01b9=_0x140390['model']['createPositionAt'](_0x561bf2['position']),_0x3e27e8=_0x4a01b9['getShiftedBy'](_0x561bf2['howMany']);break;case'split':_0x4a01b9=_0x140390['model']['createPositionAt'](_0x561bf2['splitPosition']),_0x3e27e8=_0x140390['model']['createPositionAt'](_0x561bf2['moveTargetPosition']);break;case'move':_0x4a01b9=_0x140390['model']['createPositionAt'](_0x561bf2['targetPosition']),_0x3e27e8=_0x4a01b9['getShiftedBy'](_0x561bf2['howMany']);break;default:return;}const _0xd372e3=_0x140390['model']['createRange'](_0x4a01b9,_0x3e27e8);_0x140390['model']['change'](()=>{for(const {suggestion:_0x21953f,meta:_0x1caeea}of this['_findSuggestions'](_0xd372e3)){if(_0x21953f['isMultiRange'])continue;if('formatInline'==_0x21953f['type'])continue;const _0x316007=this['_getAttributeKey'](_0x21953f);if(_0x316007&&this['_isBlockAttribute'](_0x316007)&&'split'!=_0x561bf2['type'])continue;const _0x4f0943=_0x21953f['data']&&_0x21953f['data']['multipleBlocks'];('formatBlock'!=_0x21953f['type']||'split'==_0x561bf2['type']&&!_0x4f0943)&&(_0x1caeea['containsRangeInObject']||'insertion'==_0x21953f['type']&&_0x1caeea['isOwn']||_0x21953f['getFirstRange']()['containsRange'](_0xd372e3)&&this['_breakSuggestionMarker'](_0x21953f,_0x4a01b9,_0x3e27e8));}});},{'priority':'lowest'}),_0x140390['model']['on']('deleteContent',(_0x132f71,_0x38c3fc)=>{const _0x4a79b7=_0x38c3fc[0x0],_0x463c63=_0x38c3fc[0x1];if(_0x463c63&&_0x463c63['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a79b7['isCollapsed'])return;const _0x2163a5=_0x140390['model']['schema'],{start:_0x53acf7,end:_0x4539fe}=_0x4a79b7['getFirstRange'](),_0x5bacc6=_0x53acf7['nodeAfter']&&_0x2163a5['isLimit'](_0x53acf7['nodeAfter'])?null:_0x2163a5['getNearestSelectionRange'](_0x53acf7,'forward'),_0x11f67d=_0x4539fe['nodeBefore']&&_0x2163a5['isLimit'](_0x4539fe['nodeBefore'])?null:_0x2163a5['getNearestSelectionRange'](_0x4539fe,'backward'),_0x22ee64=_0x140390['model']['createRange'](_0x5bacc6?_0x5bacc6['start']:_0x53acf7,_0x11f67d?_0x11f67d['end']:_0x4539fe);_0x140390['model']['change'](_0x59ca98=>{this['markDeletion'](_0x22ee64);const _0x2dd31a=_0x140390['model']['schema']['getNearestSelectionRange'](_0x22ee64['start']);_0x4a79b7['is']('documentSelection')?_0x59ca98['setSelection'](_0x2dd31a):_0x4a79b7['setTo'](_0x2dd31a);}),_0x132f71['stop']();},{'priority':_0x5b0b49['normal']+0xa}),_0x140390['model']['on']('insertContent',(_0x5ab8c0,_0x5738b0)=>{const _0x1e163d=_0x5738b0[_0x5738b0['length']-0x1];_0x1e163d&&_0x1e163d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x140390['model']['change'](()=>{let _0x2cf980=_0x140390['model']['insertContent'](_0x5738b0[0x0],_0x5738b0[0x1],_0x5738b0[0x2],{'forceDefaultExecution':!0x0});if(!_0x2cf980)return;_0x5ab8c0['return']=_0x2cf980['clone']();const _0x4f9e34=_0x2cf980['end']['nodeBefore'],_0x3b14df=_0x140390['model']['schema'];_0x4f9e34&&_0x3b14df['isBlock'](_0x4f9e34)&&!_0x3b14df['isObject'](_0x4f9e34)&&(_0x2cf980=_0x140390['model']['createRange'](_0x2cf980['start'],_0x140390['model']['createPositionAt'](_0x4f9e34,'end'))),this['markInsertion'](_0x2cf980);}),_0x5ab8c0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x447c71=new O(_0x140390,this['_suggestions']);_0x140390['commands']['add']('acceptSuggestion',_0x447c71),this['enableCommand']('acceptSuggestion');const _0x3bbae6=new R(_0x140390,this['_suggestions']);_0x140390['commands']['add']('discardSuggestion',_0x3bbae6),this['enableCommand']('discardSuggestion'),_0x140390['commands']['add']('acceptAllSuggestions',new x(_0x140390,_0x447c71,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x140390['commands']['add']('discardAllSuggestions',new x(_0x140390,_0x3bbae6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x140390['commands']['add']('acceptSelectedSuggestions',new E(_0x140390,_0x447c71,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x140390['commands']['add']('discardSelectedSuggestions',new E(_0x140390,_0x3bbae6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b2ee3=_0x140390['plugins']['get']('CommentsRepository');this['listenTo'](_0x1b2ee3,'addComment',(_0x3f25a5,{threadId:_0x42faab})=>{const _0x3daf0c=this['_suggestions']['get'](_0x42faab);_0x3daf0c&&_0x3daf0c['commentThread']&&0x1===_0x3daf0c['commentThread']['length']&&this['_updateSuggestionData'](_0x42faab,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b2ee3,'removeComment',(_0x514449,{threadId:_0x5b856d})=>{const _0x2b2b32=this['_suggestions']['get'](_0x5b856d);_0x2b2b32&&_0x2b2b32['commentThread']&&!_0x2b2b32['commentThread']['length']&&this['_updateSuggestionData'](_0x5b856d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x50fa06){const _0x3c5163=_0x22c365([0x4a,0x6d,0x30,0x54,0x32,0x6e,0x55,0x64,0x68,0x34,0x62,0x45,0x58,0x65,0x51,0x5a,0x53,0x78,0x59,0x48,0x72,0x76,0x69,0x42,0x46,0x41,0x38,0x31,0x56,0x44,0x37,0x71,0x66,0x35,0x52,0x6c,0x7a,0x6a,0x79,0x4c,0x4b,0x50,0x61,0x74,0x4d,0x6b,0x75,0x49,0x77,0x36,0x33,0x47,0x70,0x4f,0x4e,0x67,0x73,0x57,0x63,0x43,0x6f,0x39]),_0x4f02cc=0x623e6598,_0x2c0a80=0x62393a30^_0x4f02cc,_0x11abbf=window[_0x22c365([0x44,0x61,0x74,0x65])][_0x22c365([0x6e,0x6f,0x77])](),_0x7eaa82=_0x50fa06[_0x22c365([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42f496=new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df2aa=>{_0x7eaa82[_0x22c365([0x6f,0x6e,0x63,0x65])](_0x22c365([0x72,0x65,0x61,0x64,0x79]),_0x3df2aa);}),_0x4cd05b={[_0x22c365([0x6b,0x74,0x79])]:_0x22c365([0x45,0x43]),[_0x22c365([0x75,0x73,0x65])]:_0x22c365([0x73,0x69,0x67]),[_0x22c365([0x63,0x72,0x76])]:_0x22c365([0x50,0x2d,0x32,0x35,0x36]),[_0x22c365([0x78])]:_0x22c365([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x22c365([0x79])]:_0x22c365([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x22c365([0x61,0x6c,0x67])]:_0x22c365([0x45,0x53,0x32,0x35,0x36])},_0x845555=_0x7eaa82[_0x22c365([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22c365([0x67,0x65,0x74])](_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47ac73(){let _0xfcc1c2,_0x691c68=null,_0xa337fb=null;try{if(_0x845555==_0x22c365([0x47,0x50,0x4c]))return _0x22c365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfcc1c2=_0x4c120a(),!_0xfcc1c2)return _0x22c365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfcc1c2[_0x22c365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa337fb=_0x2f3a85(_0xfcc1c2[_0x22c365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfcc1c2[_0x22c365([0x6a,0x74,0x69])])),await _0x4613f8()?_0x3b7b1a()?_0x33f058()?_0x22c365([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb257c5()?(_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22c365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x691c68=_0x29072f(_0x22c365([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22c365([0x74,0x72,0x69,0x61,0x6c])&&(_0x691c68=_0x29072f(_0x22c365([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x477a9b()):_0x22c365([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22c365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22c365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2b664a){return _0x22c365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33f058(){const _0x28bcd9=[_0x22c365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22c365([0x74,0x72,0x69,0x61,0x6c])][_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11abbf/0x3e8:0xe10*_0x2c0a80;return _0xfcc1c2[_0x22c365([0x65,0x78,0x70])]<_0x28bcd9;}function _0x3b7b1a(){const _0x45337f=_0xfcc1c2[_0x22c365([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x45337f)return!0x1;if(_0x45337f[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x2a])))return!0x0;if(_0x45337f[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x54,0x43])))return!0x0;if(_0x45337f[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x52,0x54,0x43]))){if(_0x3300ff())return!0x0;if(_0x318fdd()||_0x2705ee())return!0x0;}return!0x1;}function _0xb257c5(){const _0x468d43=_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468d43||0x0==_0x468d43[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e82fc}=new URL(window[_0x22c365([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468d43[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e82fc))return!0x0;const _0x3545a6=_0x3e82fc[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e]));return _0x468d43[_0x22c365([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x131a1e=>_0x131a1e[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x2a])))[_0x22c365([0x6d,0x61,0x70])](_0x227484=>_0x227484[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e])))[_0x22c365([0x73,0x6f,0x6d,0x65])](_0x31b6e2=>_0x3545a6[_0x22c365([0x65,0x76,0x65,0x72,0x79])]((_0x73b4b6,_0x1da733)=>_0x31b6e2[_0x1da733]===_0x73b4b6||_0x31b6e2[_0x1da733]===_0x22c365([0x2a])));}function _0x477a9b(){return _0x691c68&&_0xa337fb?new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x513203,_0x131b12)=>{_0x691c68[_0x22c365([0x74,0x68,0x65,0x6e])](_0x513203,_0x131b12),_0xa337fb[_0x22c365([0x74,0x68,0x65,0x6e])](_0x214feb=>{_0x214feb!=_0x22c365([0x56,0x61,0x6c,0x69,0x64])&&_0x513203(_0x214feb);},_0x131b12);}):_0x691c68||_0xa337fb||_0x22c365([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f3a85(_0x1164fd,_0x2a25cd){return new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c64c1=>{if(_0x24c528())return _0x3c64c1(_0x22c365([0x56,0x61,0x6c,0x69,0x64]));_0x4e2294(),_0x7eaa82[_0x22c365([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22c365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37ab3e=!0x1;const _0x274af0=_0x4adad1();function _0x251aed(_0x214218){return!!_0x214218&&(typeof _0x214218===_0x22c365([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x214218===_0x22c365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x214218[_0x22c365([0x74,0x68,0x65,0x6e])]===_0x22c365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x214218[_0x22c365([0x63,0x61,0x74,0x63,0x68])]===_0x22c365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4eb27b(_0x2b6f5d){_0x4a07d1(_0x2b6f5d)[_0x22c365([0x74,0x68,0x65,0x6e])](_0x1ee6ca=>{if(!_0x1ee6ca||_0x1ee6ca[_0x22c365([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22c365([0x6f,0x6b]))return _0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x267161(_0x28307e(_0x274af0+_0x2a25cd))!=_0x1ee6ca[_0x22c365([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22c365([0x56,0x61,0x6c,0x69,0x64]);})[_0x22c365([0x74,0x68,0x65,0x6e])](_0x4483fc=>(_0x57ab24(),_0x4483fc),()=>{const _0x1f45fe=_0x99534a();return null==_0x1f45fe?(_0x57ab24(),_0x22c365([0x56,0x61,0x6c,0x69,0x64])):_0x22c365(_0x11abbf-_0x1f45fe>(0x4632e198^_0x4f02cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22c365([0x74,0x68,0x65,0x6e])](_0x3c64c1)[_0x22c365([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c64c1(_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23ad12=0x62088b18^_0x4f02cc;function _0x57ab24(){const _0x246f29=_0x22c365([0x6c,0x6c,0x63,0x74,0x2d])+_0x267161(_0x28307e(_0x1164fd)),_0x1a3689=_0x2bf66a(_0x267161(window[_0x22c365([0x4d,0x61,0x74,0x68])][_0x22c365([0x63,0x65,0x69,0x6c])](_0x11abbf/_0x23ad12)));window[_0x22c365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22c365([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x246f29,_0x1a3689);}function _0x99534a(){const _0x56e8f6=_0x22c365([0x6c,0x6c,0x63,0x74,0x2d])+_0x267161(_0x28307e(_0x1164fd)),_0x35ca02=window[_0x22c365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22c365([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56e8f6);return _0x35ca02?window[_0x22c365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bf66a(_0x35ca02),0x10)*_0x23ad12:null;}function _0x4a07d1(_0x59ceff){return new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54cdde,_0x3232c0)=>{_0x59ceff[_0x22c365([0x74,0x68,0x65,0x6e])](_0x54cdde,_0x3232c0),window[_0x22c365([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3232c0,0x623fb158^_0x4f02cc);});}}_0x7eaa82[_0x22c365([0x6f,0x6e])](_0x22c365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3eeed9,_0x488683)=>{if(_0x488683[0x0]!=_0x1164fd)return _0x3c64c1(_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x488683[0x1]={..._0x488683[0x1],[_0x22c365([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x274af0};},{[_0x22c365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22c365([0x68,0x69,0x67,0x68])}),_0x7eaa82[_0x22c365([0x6f,0x6e])](_0x22c365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4beda9=>{_0x251aed(_0x4beda9[_0x22c365([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37ab3e=!0x0,_0x4eb27b(_0x4beda9[_0x22c365([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22c365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22c365([0x6c,0x6f,0x77])}),_0x42f496[_0x22c365([0x74,0x68,0x65,0x6e])](()=>{_0x37ab3e||_0x3c64c1(_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24c528(){return _0x7eaa82[_0x22c365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22c365([0x76,0x69,0x65,0x77])][_0x22c365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22c365([0x61,0x75,0x74,0x6f]);}function _0x4e2294(){_0x7eaa82[_0x22c365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22c365([0x76,0x69,0x65,0x77])][_0x22c365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22c365([0x61,0x75,0x74,0x6f]);}}function _0x29072f(_0x386cd7){const _0x4acf48=[new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d3ce=>setTimeout(_0x54d3ce,0x62375b54^_0x4f02cc)),_0x42f496[_0x22c365([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e574d=>{let _0x23200d=0x0;_0x7eaa82[_0x22c365([0x6d,0x6f,0x64,0x65,0x6c])][_0x22c365([0x6f,0x6e])](_0x22c365([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e9dc6,_0x1d3771)=>{_0x1d3771[0x0][_0x22c365([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23200d++,_0x23200d==(0x623e6460^_0x4f02cc)&&(_0x3e574d(),_0x3e9dc6[_0x22c365([0x6f,0x66,0x66])]());});}))];return window[_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22c365([0x72,0x61,0x63,0x65])](_0x4acf48)[_0x22c365([0x74,0x68,0x65,0x6e])](()=>_0x386cd7);}async function _0x56e9c7(){await _0x42f496,_0x7eaa82[_0x22c365([0x6d,0x6f,0x64,0x65,0x6c])][_0x22c365([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x381326,_0x7eaa82[_0x22c365([0x6d,0x6f,0x64,0x65,0x6c])][_0x22c365([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x381326,_0x7eaa82[_0x22c365([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22c365([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3300ff(){return _0x1d1be0(_0x22c365([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x36be3d(_0x22c365([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22c365([0x73,0x74,0x61,0x74,0x65])]==_0x22c365([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x318fdd(){return _0x1d1be0(_0x22c365([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2705ee(){return _0x1d1be0(_0x22c365([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e8a43(_0x40a7d0){const _0x602387=_0x144bd0();_0x7eaa82[_0x602387]=_0x22c365([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40a7d0,_0x40a7d0!=_0x22c365([0x56,0x61,0x6c,0x69,0x64])&&_0x56e9c7();}function _0x144bd0(){const _0x364c9a=window[_0x22c365([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22c365([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22c365([0x6e,0x6f,0x77])]())[_0x22c365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22c365([0x2e]),'');let _0x18fc78=_0x22c365([0x4a]);for(let _0x2d0443=0x0;_0x2d0443<_0x364c9a[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d0443+=0x2){let _0x3e74c7=window[_0x22c365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x364c9a[_0x22c365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d0443,_0x2d0443+0x2));_0x3e74c7>=_0x3c5163[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e74c7-=_0x3c5163[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18fc78+=_0x3c5163[_0x3e74c7];}return _0x18fc78;}function _0x4c120a(){const _0x3ea761=_0x845555[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e]));if(0x3!=_0x3ea761[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bb95b(_0x3ea761[0x1]);function _0x5bb95b(_0x23cea9){const _0xe36e1=_0xe56dd0(_0x23cea9);return _0xe36e1&&_0x260ce4()?_0xe36e1:null;function _0x260ce4(){const _0x5cf5a9=_0xe36e1[_0x22c365([0x6a,0x74,0x69])],_0x336ced=window[_0x22c365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf5a9[_0x22c365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf5a9[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1eacd0={..._0xe36e1,[_0x22c365([0x6a,0x74,0x69])]:_0x5cf5a9[_0x22c365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf5a9[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1eacd0[_0x22c365([0x76,0x63])],_0x28307e(_0x1eacd0)==_0x336ced;}}}async function _0x4613f8(){let _0x300910=!0x0;try{const _0x11f09e=_0x845555[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e])),[_0x56b789,_0x11d12e,_0x44312f]=_0x11f09e;return _0x13af0d(_0x56b789),await _0x3e39bf(_0x56b789,_0x11d12e,_0x44312f),_0x300910;}catch(_0x32fc87){return!0x1;}function _0x13af0d(_0x3ac11e){const _0x5bd363=_0xe56dd0(_0x3ac11e);_0x5bd363&&_0x5bd363[_0x22c365([0x61,0x6c,0x67])]==_0x22c365([0x45,0x53,0x32,0x35,0x36])||(_0x300910=!0x1);}async function _0x3e39bf(_0x23bef3,_0x2710c7,_0xbaa67){const _0x15119b=window[_0x22c365([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22c365([0x66,0x72,0x6f,0x6d])](_0x148aec(_0xbaa67),_0x3d15dd=>_0x3d15dd[_0x22c365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3543b2=new window[(_0x22c365([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22c365([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23bef3+_0x22c365([0x2e])+_0x2710c7),_0x5edc38=window[_0x22c365([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22c365([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5edc38)return;const _0x509265=await _0x5edc38[_0x22c365([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22c365([0x6a,0x77,0x6b]),_0x4cd05b,{[_0x22c365([0x6e,0x61,0x6d,0x65])]:_0x22c365([0x45,0x43,0x44,0x53,0x41]),[_0x22c365([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22c365([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22c365([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5edc38[_0x22c365([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22c365([0x6e,0x61,0x6d,0x65])]:_0x22c365([0x45,0x43,0x44,0x53,0x41]),[_0x22c365([0x68,0x61,0x73,0x68])]:{[_0x22c365([0x6e,0x61,0x6d,0x65])]:_0x22c365([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509265,_0x15119b,_0x3543b2)||(_0x300910=!0x1);}}function _0xe56dd0(_0x499c10){return _0x499c10[_0x22c365([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22c365([0x65,0x79]))?JSON[_0x22c365([0x70,0x61,0x72,0x73,0x65])](_0x148aec(_0x499c10)):null;}function _0x148aec(_0x4aec66){return window[_0x22c365([0x61,0x74,0x6f,0x62])](_0x4aec66[_0x22c365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22c365([0x2b]))[_0x22c365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22c365([0x2f])));}function _0x28307e(_0x23449a){let _0x32c7cf=0x1505;function _0x41a113(_0x9d6447){for(let _0x488367=0x0;_0x488367<_0x9d6447[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x488367++){const _0x26f5c1=_0x9d6447[_0x22c365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x488367);_0x32c7cf=(_0x32c7cf<<0x5)+_0x32c7cf+_0x26f5c1,_0x32c7cf&=_0x32c7cf;}}function _0x23287f(_0x3a46da){Array[_0x22c365([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a46da)?_0x3a46da[_0x22c365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23287f):_0x3a46da&&typeof _0x3a46da==_0x22c365([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22c365([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a46da)[_0x22c365([0x73,0x6f,0x72,0x74])]()[_0x22c365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59f82c,_0x32a2f7])=>{_0x41a113(_0x59f82c),_0x23287f(_0x32a2f7);}):_0x41a113(window[_0x22c365([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a46da));}return _0x23287f(_0x23449a),_0x32c7cf>>>0x0;}function _0x267161(_0x57e25b){return _0x57e25b[_0x22c365([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22c365([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22c365([0x30]));}function _0x2bf66a(_0x554cf8){return _0x554cf8[_0x22c365([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22c365([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22c365([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d1be0(_0x4442fb){return _0x7eaa82[_0x22c365([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22c365([0x68,0x61,0x73])](_0x4442fb);}function _0x36be3d(_0x2dbce9){return _0x7eaa82[_0x22c365([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22c365([0x67,0x65,0x74])](_0x2dbce9);}function _0x381326(){}function _0x22c365(_0x2d7108){return _0x2d7108['map'](_0x12167a=>String['fromCharCode'](_0x12167a))['join']('');}_0x2e8a43(await _0x47ac73());}(this);}set['adapter'](_0x5443f4){if(this['_adapter'])throw new _0x281979('track-changes-adapter-already-set',this);this['_adapter']=_0x5443f4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x45fe1b=!0x1,toJSON:_0x3f07a6=!0x1}={}){const _0x398abf=[];for(const _0x4aa8e2 of this['_suggestions']['values']())_0x45fe1b&&!_0x4aa8e2['isInContent']||_0x398abf['push'](_0x4aa8e2);return _0x3f07a6?_0x398abf['map'](_0x537482=>_0x537482['toJSON']()):_0x398abf;}['getSuggestion'](_0x4dace1){const _0x5b274c=this['_suggestions']['get'](_0x4dace1);if(!_0x5b274c)throw new _0x281979('track-changes-suggestion-not-found',this);return _0x5b274c;}['hasSuggestion'](_0x379469){return this['_suggestions']['has'](_0x379469);}['addSuggestionData'](_0x1fc097){const {authorId:_0x38cbdb,id:_0x201543,attributes:_0x5c154a}=_0x1fc097,[_0x58b6c2,_0x22e580]=_0x1fc097['type']['split'](':'),_0x612994=this['_suggestions']['get'](_0x201543)||this['_createSuggestion'](_0x58b6c2,_0x22e580,_0x201543,_0x38cbdb,_0x5c154a);if(this['_addThreadToSuggestion'](_0x612994),this['_checkSuggestionCorrectness'](_0x612994,_0x58b6c2,_0x22e580||null,_0x38cbdb),_0x612994['createdAt']=_0x1fc097['createdAt'],_0x612994['_isDataLoaded']=!0x0,_0x5c154a&&_0x5c154a['@external']){const _0x1f0155=_0x5c154a['@external'],_0x5e80c4=this['_getExternalAuthor'](_0x1f0155['authorName']);_0x612994['authoredAt']=_0x1f0155['createdAt'],_0x612994['author']=_0x5e80c4,_0x612994['isExternal']=!0x0;}else _0x612994['authoredAt']=_0x1fc097['createdAt'];switch(_0x1fc097['data']&&(_0x612994['data']=_0x1fc097['data']),_0x1fc097['attributes']&&(_0x612994['attributes']=_0x1fc097['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x612994['_saved']=!0x0),this['_suggestionState']['get'](_0x612994)){case'notReady':this['_suggestionState']['set'](_0x612994,'dataReady');break;case'markerReady':_0x612994['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x612994])),this['_refreshSuggestionsChain'](new Set([_0x612994])),this['_suggestionState']['set'](_0x612994,'ready'),this['fire']('suggestionLoaded',_0x612994)):this['_suggestionState']['set'](_0x612994,'removed');}return _0x612994;}['acceptSuggestion'](_0x62f5d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x887eb5 of _0x62f5d7['getAllAdjacentSuggestions']())_0x887eb5['accept']();});});}['discardSuggestion'](_0x2aa2f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40f385 of _0x2aa2f8['getAllAdjacentSuggestions']())_0x40f385['discard']();});});}['enableCommand'](_0x3440e0,_0x11c178){const _0x4a43e7=this['editor']['commands']['get'](_0x3440e0);if(!_0x4a43e7)throw new _0x281979('track-changes-command-not-found',this,{'commandName':_0x3440e0});if(this['_enabledCommands']['has'](_0x4a43e7))throw new _0x281979('track-changes-enable-command-twice',this,{'commandName':_0x3440e0});this['_enabledCommands']['add'](_0x4a43e7),_0x11c178&&_0x4a43e7['on']('execute',(_0x4fa118,_0x2ea898)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ea898['length']>0x0&&_0x2ea898[_0x2ea898['length']-0x1]&&_0x2ea898[_0x2ea898['length']-0x1]['forceDefaultExecution']?_0x2ea898['pop']():(_0x4fa118['return']=_0x11c178((..._0x1ad1e3)=>_0x4a43e7['execute'](..._0x1ad1e3,{'forceDefaultExecution':!0x0}),..._0x2ea898),_0x4fa118['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x300b8){let _0x495296,_0x65c3e8;const _0x4785de=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x495296=_0x300b8();}catch(_0x385326){_0x65c3e8=_0x385326;}return _0x4785de||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x65c3e8&&_0x281979['rethrowUnexpectedError'](_0x65c3e8,this),_0x495296;}['markInsertion'](_0x12fd25,_0x137bb7=null,_0x5f3499={}){if(_0x12fd25['isCollapsed'])return null;const _0x4eeaea=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4dfa97,meta:_0x18ebe1}of this['_findSuggestions'](_0x12fd25,'insertion'))if(_0x18ebe1['isOwn']){if(!_0x18ebe1['isNextTo']){if(_0x18ebe1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x4dfa97,_0x5f3499))continue;return _0x4dfa97;}if(zt(_0x4dfa97,_0x5f3499))return _0x4dfa97;this['_breakSuggestionMarker'](_0x4dfa97,_0x12fd25['start'],_0x12fd25['end']);break;}if(_0x137bb7==_0x4dfa97['subType']&&zt(_0x4dfa97,_0x5f3499)){const _0x56e5a1=_0x4dfa97['getFirstRange']();return _0x56e5a1['start']['isEqual'](_0x12fd25['end'])?this['_setSuggestionRange'](_0x4dfa97,this['_model']['createRange'](_0x12fd25['start'],_0x56e5a1['end'])):this['_setSuggestionRange'](_0x4dfa97,this['_model']['createRange'](_0x56e5a1['start'],_0x12fd25['end'])),_0x4dfa97;}}const _0x1e64c2=_0x4adad1(),_0x246718=_0x4eeaea['id'],_0x29700b=_0x137bb7?'insertion:'+_0x137bb7:'insertion',_0x86113d=this['_setSuggestionData']({'id':_0x1e64c2,'type':_0x29700b,'createdAt':new Date(),'authorId':_0x246718,'attributes':_0x5f3499});return this['_addSuggestionMarker'](_0x29700b,_0x1e64c2,_0x246718,_0x12fd25),_0x86113d;}['markMultiRangeInsertion'](_0x2fc6c5,_0x15892b='multi',_0x1e20b6={}){const _0x3d4758=this['editor']['plugins']['get']('Users')['me'],_0x539232=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15892b,'join');for(const _0x326268 of this['getSuggestions']())if(_0x326268['author']['id']==_0x3d4758['id']&&'insertion'==_0x326268['type']&&_0x326268['subType']==_0x15892b&&zt(_0x326268,_0x1e20b6)&&(_0x539232(_0x326268['getRanges'](),_0x2fc6c5)||_0x539232(_0x2fc6c5,_0x326268['getRanges']()))){for(const _0x8accb of _0x2fc6c5)_0x326268['addRange'](_0x8accb);return _0x326268;}for(const {suggestion:_0xce5af7,meta:_0x1ed37d}of this['_findSuggestions'](_0x2fc6c5,'insertion')){if(!_0x1ed37d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ed37d['containsRangeInObject'])continue;if(!zt(_0xce5af7,_0x1e20b6))continue;let _0x162400=!0x0;for(const _0x8be404 of _0xce5af7['getRanges']())for(const _0x198aa4 of _0x2fc6c5)if(!_0x8be404['containsRange'](_0x198aa4)){_0x162400=!0x1;break;}if(_0x162400)return _0xce5af7;}const _0x47dbf0=_0x4adad1(),_0x436fff=_0x3d4758['id'],_0x3a64a0='insertion:'+_0x15892b,_0x24ebde=this['_setSuggestionData']({'id':_0x47dbf0,'type':_0x3a64a0,'createdAt':new Date(),'authorId':_0x436fff,'attributes':_0x1e20b6});for(const _0x5458bd of _0x2fc6c5)this['_addSuggestionMarker'](_0x3a64a0,_0x47dbf0,_0x436fff,_0x5458bd,o['getMultiRangeId']());return _0x24ebde;}['markInlineFormat'](_0x32ab55,_0xfb11a7,_0x563690=null,_0x4cc4fa={}){if(_0x563690=_0x563690||Gt(_0xfb11a7),_0x32ab55['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x326a67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x563690,'accept');return this['forceDefaultExecution'](()=>_0x326a67([_0x32ab55],_0xfb11a7,_0x4cc4fa)),null;}const _0x88ffd8=this['editor']['plugins']['get']('Users')['me'],_0x2fb743=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1872b7,meta:_0x2f2689}of this['_findSuggestions'](_0x32ab55,'insertion'))_0x2f2689['isOwn']&&!_0x2f2689['isInsideObject']&&_0x2fb743['push'](..._0x1872b7['getRanges']());}const _0x40a505=function(_0x185ed8,_0x52ecea){const _0x2a296b=[];for(const _0x4104c4 of _0x52ecea){const _0x5874e9=_0x185ed8['getIntersection'](_0x4104c4);_0x5874e9&&_0x2a296b['push'](_0x5874e9);}return _0x2a296b;}(_0x32ab55,_0x2fb743),_0x2471a1=function(_0x8111f3,_0x161128){const _0x2f49e8=[_0x8111f3];for(const _0x345c2c of _0x161128){let _0x5938ea=0x0;for(;_0x5938ea<_0x2f49e8['length'];){const _0x5470d7=_0x2f49e8[_0x5938ea]['getDifference'](_0x345c2c);_0x2f49e8['splice'](_0x5938ea,0x1,..._0x5470d7),_0x5938ea+=_0x5470d7['length'];}}return _0x2f49e8;}(_0x32ab55,_0x2fb743);_0x40a505['length']&&this['_model']['change'](()=>{for(const _0x5d93d2 of _0x40a505){const _0xc318ac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x563690,'accept');this['forceDefaultExecution'](()=>_0xc318ac([_0x5d93d2],_0xfb11a7,_0x4cc4fa));}});for(const _0x19bdcf of _0x2471a1){let _0x169c61=null,_0x460a53=_0x19bdcf['start'],_0x1bf63a=_0x19bdcf['end'];for(const {suggestion:_0x372f48,meta:_0x386bdd}of this['_findSuggestions'](_0x19bdcf,'formatInline')){if(!_0x386bdd['isOwn'])continue;if(_0x372f48['subType']!=_0x563690)continue;if(!zt(_0x372f48,_0x4cc4fa))continue;const _0x11b815=_0x372f48['getFirstRange']();if(_0x11b815['containsRange'](_0x19bdcf,!0x0))return null;_0x460a53=_0x460a53['isBefore'](_0x11b815['start'])?_0x460a53:_0x11b815['start'],_0x1bf63a=_0x1bf63a['isAfter'](_0x11b815['end'])?_0x1bf63a:_0x11b815['end'],_0x169c61?_0x11b815['start']['isBefore'](_0x169c61['getFirstRange']()['start'])?(_0x169c61['removeMarkers'](),_0x169c61=_0x372f48):_0x372f48['removeMarkers']():_0x169c61=_0x372f48;}const _0x31b71b=this['_model']['createRange'](_0x460a53,_0x1bf63a);if(_0x169c61)this['_setSuggestionRange'](_0x169c61,_0x31b71b);else{const _0x2c5a35=_0x4adad1(),_0x274838=_0x88ffd8['id'];this['_setSuggestionData']({'id':_0x2c5a35,'type':'formatInline:'+_0x563690,'data':_0xfb11a7,'createdAt':new Date(),'authorId':_0x274838,'attributes':_0x4cc4fa}),this['_addSuggestionMarker']('formatInline:'+_0x563690,_0x2c5a35,_0x274838,_0x31b71b);}}return null;}['markBlockFormat'](_0x477783,_0x179607,_0x5ec56d=[],_0x40123f=null,_0x3acef1={}){_0x179607['formatGroupId']||(_0x179607['formatGroupId']=_0x179607['commandName']),_0x179607['multipleBlocks']=_0x477783['is']('range'),_0x40123f=_0x40123f||Gt(_0x179607);const _0x50660f=_0x5ec56d['map'](_0x28e4db=>Kt(_0x28e4db,this['_model'])),_0x29d114=_0x477783['is']('range')?_0x477783:Kt(_0x477783,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d0774=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40123f,'accept');return this['forceDefaultExecution'](()=>_0x3d0774([_0x29d114],_0x179607,_0x3acef1)),null;}_0x50660f['push'](_0x29d114);let _0x3562cc=!0x0;for(const _0x2197b9 of _0x50660f)if(!this['_rangeIsInLocalUserInsertion'](_0x2197b9)){_0x3562cc=!0x1;break;}if(_0x3562cc&&'always'!==this['_trackFormatChanges']){const _0x10d4f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40123f,'accept');return this['forceDefaultExecution'](()=>_0x10d4f3([_0x29d114],_0x179607,_0x3acef1)),null;}let _0xb601b2=null,_0x29e2f3=_0x29d114['start'],_0x33b05a=_0x29d114['end'];for(const {suggestion:_0x1f4599,meta:_0x38a8cc}of this['_findSuggestions'](_0x29d114,'formatBlock')){if(!_0x38a8cc['isOwn'])continue;if(_0x38a8cc['isNextTo']||_0x38a8cc['containsRangeInObject']||_0x38a8cc['isInsideObject'])continue;if(_0x1f4599['data']['formatGroupId']!=_0x179607['formatGroupId'])continue;if(!zt(_0x1f4599,_0x3acef1))continue;const _0x277545=_0x1f4599['getFirstRange']();if(_0x1f4599['subType']==_0x40123f){if(_0x277545['containsRange'](_0x29d114,!0x0))return null;_0x29e2f3=_0x29e2f3['isBefore'](_0x277545['start'])?_0x29e2f3:_0x277545['start'],_0x33b05a=_0x33b05a['isAfter'](_0x277545['end'])?_0x33b05a:_0x277545['end'],_0xb601b2?_0x277545['start']['isBefore'](_0xb601b2['getFirstRange']()['start'])?(_0xb601b2['removeMarkers'](),_0xb601b2=_0x1f4599):_0x1f4599['removeMarkers']():_0xb601b2=_0x1f4599;}else{const _0x7765c8=_0x29d114['getIntersection'](_0x277545);this['_cutOutSuggestionMarker'](_0x1f4599,_0x7765c8);}}const _0x3d6617=this['editor']['plugins']['get']('Users')['me'],_0x28093f=_0x4adad1(),_0x3b8601=_0x3d6617['id'];if(_0xb601b2)return this['_setSuggestionRange'](_0xb601b2,this['_model']['createRange'](_0x29e2f3,_0x33b05a)),_0xb601b2;{const _0x3c649a=this['_setSuggestionData']({'id':_0x28093f,'type':'formatBlock:'+_0x40123f,'data':_0x179607,'createdAt':new Date(),'authorId':_0x3b8601,'attributes':_0x3acef1});return this['_addSuggestionMarker']('formatBlock:'+_0x40123f,_0x28093f,_0x3b8601,this['_model']['createRange'](_0x29e2f3,_0x33b05a)),_0x3c649a;}}['markMultiRangeBlockFormat'](_0x563cc1,_0x4fd082,_0x485bdc=[],_0x2ccf60=null,_0x4918f0={}){_0x4fd082['formatGroupId']||(_0x4fd082['formatGroupId']=_0x4fd082['commandName']);const _0xc72916=_0x563cc1[0x0];_0x4fd082['multipleBlocks']=_0xc72916['is']('range'),_0x2ccf60=_0x2ccf60||Gt(_0x4fd082);const _0x54a01f=_0x485bdc['map'](_0x4ed78a=>Kt(_0x4ed78a,this['_model'])),_0x132c97=_0xc72916['is']('range')?_0x563cc1:_0x563cc1['map'](_0x4e0d3c=>Kt(_0x4e0d3c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x296cac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ccf60,'accept');return this['forceDefaultExecution'](()=>_0x296cac(_0x132c97,_0x4fd082,_0x4918f0)),null;}_0x54a01f['push'](..._0x132c97);let _0x4a7341=!0x0;for(const _0x537b12 of _0x54a01f)if(!this['_rangeIsInLocalUserInsertion'](_0x537b12)){_0x4a7341=!0x1;break;}if(_0x4a7341&&'always'!==this['_trackFormatChanges']){const _0x9d903a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ccf60,'accept');return this['forceDefaultExecution'](()=>_0x9d903a(_0x132c97,_0x4fd082,_0x4918f0)),null;}const _0x3e7e94=this['editor']['plugins']['get']('Users')['me'];for(const _0x72013c of this['getSuggestions']()){if(_0x72013c['author']['id']!=_0x3e7e94['id'])continue;if('formatBlock'!=_0x72013c['type']||_0x72013c['data']['formatGroupId']!=_0x4fd082['formatGroupId'])continue;if(!zt(_0x72013c,_0x4918f0))continue;const _0x457616=_0x72013c['subType']==_0x2ccf60;for(let _0x3e400f=0x0;_0x3e400f<_0x132c97['length'];_0x3e400f++){const _0x1dd987=_0x132c97[_0x3e400f];for(const _0x5580b1 of _0x72013c['getMarkers']()){const _0x299c2f=_0x5580b1['getRange']();if(_0x1dd987['isEqual'](_0x299c2f)){_0x457616?(_0x132c97['splice'](_0x3e400f,0x1),_0x3e400f--):_0x72013c['removeMarker'](_0x5580b1['name']);break;}}}}if(0x0==_0x132c97['length'])return null;const _0xb2e676=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ccf60,'join');for(const _0x48f947 of this['getSuggestions']())if(_0x48f947['author']['id']==_0x3e7e94['id']&&'formatBlock'==_0x48f947['type']&&_0x48f947['data']['formatGroupId']==_0x4fd082['formatGroupId']&&_0x48f947['subType']==_0x2ccf60&&zt(_0x48f947,_0x4918f0)&&(_0xb2e676(_0x48f947['getRanges'](),_0x132c97)||_0xb2e676(_0x132c97,_0x48f947['getRanges']()))){for(const _0x4552b8 of _0x132c97)_0x48f947['addRange'](_0x4552b8);return _0x48f947;}const _0x157cdc=_0x4adad1(),_0x5b130e=_0x3e7e94['id'],_0x14b74f='formatBlock:'+_0x2ccf60,_0x413339=this['_setSuggestionData']({'id':_0x157cdc,'type':_0x14b74f,'data':_0x4fd082,'createdAt':new Date(),'authorId':_0x5b130e,'attributes':_0x4918f0});for(const _0x13d382 of _0x132c97)this['_addSuggestionMarker'](_0x14b74f,_0x157cdc,_0x5b130e,_0x13d382,o['getMultiRangeId']());return _0x413339;}['markDeletion'](_0x541a1f,_0x46aca1=null,_0x459d26={}){if(_0x541a1f['isCollapsed'])return null;const _0x4b4b9c=this['editor']['plugins']['get']('Users')['me'],_0x4fc705=new _0x31bd77(_0x541a1f['start'],_0x541a1f['end']);for(const {suggestion:_0x1831cf,meta:_0xfa4274}of this['_findSuggestions'](_0x4fc705,'insertion'))if(_0xfa4274['isOwn']&&!_0xfa4274['isNextTo']){if(_0x1831cf['isMultiRange']){const _0x542021=_0x1831cf['getRanges']()['filter'](_0xbe7856=>'$graveyard'!=_0xbe7856['root']['rootName']);_0x542021['every'](_0x48ff7b=>_0x4fc705['containsRange'](_0x48ff7b,!0x0))&&_0x1831cf['discard']();if(_0x542021['some'](_0x5eff4f=>_0x5eff4f['containsRange'](_0x4fc705,!0x0))){const _0xed8d74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46aca1,'accept');return this['forceDefaultExecution'](()=>_0xed8d74([_0x4fc705],null,_0x459d26)),null;}}else{const _0x5008ce=_0x4fc705['getIntersection'](_0x1831cf['getFirstRange']());null!==_0x5008ce&&_0x1831cf['_onDiscard']([_0x5008ce],null,_0x459d26);}}if(_0x4fc705['detach'](),_0x4fc705['isCollapsed']||'$graveyard'==_0x4fc705['root']['rootName'])return null;let _0x34dfe8=null,_0xbe2c58=_0x4fc705['start'],_0x3d0e45=_0x4fc705['end'];const _0x48c3d2=this['_findSuggestions'](_0x4fc705,'deletion');for(const {suggestion:_0x3ce107,meta:_0x13add7}of _0x48c3d2){const _0x3b341e=this['_model']['createRange'](_0xbe2c58,_0x3d0e45);if(_0x13add7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13add7['containsRangeInObject']&&!_0x13add7['isInsideObject'])){if(_0x3ce107['isMultiRange']){if(!zt(_0x3ce107,_0x459d26))continue;let _0x419a31=!0x0;for(const _0x2980d0 of _0x3ce107['getRanges']()){if(_0x2980d0['containsRange'](_0x3b341e,!0x0))return _0x3ce107;_0x3b341e['containsRange'](_0x2980d0)||(_0x419a31=!0x1);}_0x419a31&&_0x3ce107['discard']();}else{const _0x90e53f=_0x3ce107['getFirstRange']();if(_0x90e53f['containsRange'](_0x3b341e,!0x0))return _0x3ce107;if(!zt(_0x3ce107,_0x459d26)){_0x3b341e['containsRange'](_0x90e53f)?_0x3ce107['removeMarkers']():_0x90e53f['containsPosition'](_0xbe2c58)?_0xbe2c58=_0x90e53f['end']:_0x90e53f['containsPosition'](_0x3d0e45)&&(_0x3d0e45=_0x90e53f['start']);continue;}_0xbe2c58=_0xbe2c58['isBefore'](_0x90e53f['start'])?_0xbe2c58:_0x90e53f['start'],_0x3d0e45=_0x3d0e45['isAfter'](_0x90e53f['end'])?_0x3d0e45:_0x90e53f['end'],_0x459d26=Object['assign']({},_0x3ce107['attributes']),_0x34dfe8?_0x90e53f['start']['isBefore'](_0x34dfe8['getFirstRange']()['start'])?(_0x34dfe8['removeMarkers'](),_0x34dfe8=_0x3ce107):_0x3ce107['removeMarkers']():_0x34dfe8=_0x3ce107;}}}if(_0x34dfe8)return this['_setSuggestionRange'](_0x34dfe8,this['_model']['createRange'](_0xbe2c58,_0x3d0e45)),_0x34dfe8;{const _0x705e21=_0x4adad1(),_0x3d75b0=this['_model']['createRange'](_0xbe2c58,_0x3d0e45),_0x58bbf5=_0x4b4b9c['id'],_0x5957ed=_0x46aca1?'deletion:'+_0x46aca1:'deletion',_0x342dd8=this['_setSuggestionData']({'id':_0x705e21,'type':_0x5957ed,'createdAt':new Date(),'authorId':_0x58bbf5,'attributes':_0x459d26});return this['_addSuggestionMarker'](_0x5957ed,_0x705e21,_0x58bbf5,_0x3d75b0),_0x342dd8;}}['markMultiRangeDeletion'](_0x5e83bf,_0x4d2514='multi',_0x4d1f6a={}){const _0x1ac204=this['editor']['plugins']['get']('Users')['me'],_0x1ba7e4=_0x5e83bf['map'](_0x4c90b7=>new _0x31bd77(_0x4c90b7['start'],_0x4c90b7['end'])),_0x26a11c=new Set();for(const {suggestion:_0x3d2a71,meta:_0x385364}of this['_findSuggestions'](_0x1ba7e4,'insertion'))_0x385364['isOwn']&&!_0x385364['isNextTo']&&_0x26a11c['add'](_0x3d2a71);for(const _0x4eff30 of _0x26a11c)if(_0x4eff30['isMultiRange']){const _0x10bbc6=_0x4eff30['getRanges']();(!_0x4eff30['attributes']||!_0x4eff30['attributes']['skipNestingCheck'])&&(_0x10bbc6['every'](_0x188d14=>_0x1ba7e4['some'](_0x3184c6=>_0x3184c6['containsRange'](_0x188d14,!0x0)))&&_0x4eff30['discard']());if(_0x1ba7e4['every'](_0xab22f0=>_0x10bbc6['some'](_0x51929f=>_0x51929f['containsRange'](_0xab22f0,!0x0)))){const _0x5b4387=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2514,'accept');return this['forceDefaultExecution'](()=>_0x5b4387(_0x5e83bf,null,_0x4d1f6a)),null;}}else{const _0xcfdc1a=_0x4eff30['getFirstRange']();_0x1ba7e4['some'](_0x2fcc61=>_0x2fcc61['containsRange'](_0xcfdc1a,!0x0))&&_0x4eff30['discard']();if(_0x1ba7e4['every'](_0x389ad1=>_0xcfdc1a['containsRange'](_0x389ad1,!0x0))){const _0x76e787=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2514,'accept');return this['forceDefaultExecution'](()=>_0x76e787(_0x1ba7e4,null,_0x4d1f6a)),null;}}const _0x30f13c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2514,'join');let _0x1f6a21=null;for(const _0x4a4a9d of this['getSuggestions']())if(_0x4a4a9d['author']['id']==_0x1ac204['id']&&_0x4a4a9d['isInContent']&&'deletion'==_0x4a4a9d['type']&&_0x4a4a9d['subType']==_0x4d2514&&zt(_0x4a4a9d,_0x4d1f6a)&&(_0x30f13c(_0x4a4a9d['getRanges'](),_0x1ba7e4)||_0x30f13c(_0x1ba7e4,_0x4a4a9d['getRanges']()))){if(_0x1f6a21){if(_0x4a4a9d['commentThread']&&_0x4a4a9d['commentThread']['length'])continue;for(const _0x395934 of _0x4a4a9d['getRanges']())_0x1f6a21['isIntersectingWithRange'](_0x395934)||_0x1f6a21['addRange'](_0x395934);_0x4a4a9d['removeMarkers']();}else{_0x1f6a21=_0x4a4a9d;for(const _0x55bbed of _0x1ba7e4)_0x4a4a9d['isIntersectingWithRange'](_0x55bbed)||_0x4a4a9d['addRange'](_0x55bbed);}}if(_0x1f6a21)return _0x1f6a21;_0x26a11c['clear']();for(const {suggestion:_0x1b5fec,meta:_0x255e7c}of this['_findSuggestions'](_0x1ba7e4,'deletion'))_0x255e7c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x255e7c['containsRangeInObject']&&!_0x255e7c['isInsideObject'])&&zt(_0x1b5fec,_0x4d1f6a)&&_0x26a11c['add'](_0x1b5fec);for(const _0x48a1e7 of _0x26a11c){const _0x1ef7ed=_0x48a1e7['getRanges']();if(!_0x4d1f6a||!_0x4d1f6a['skipNestingCheck']){if(_0x1ba7e4['every'](_0x19995a=>_0x1ef7ed['some'](_0x2753bb=>_0x2753bb['containsRange'](_0x19995a,!0x0))))return _0x48a1e7;}(!_0x48a1e7['attributes']||!_0x48a1e7['attributes']['skipNestingCheck'])&&(_0x1ef7ed['every'](_0x128d77=>_0x1ba7e4['some'](_0x4f0630=>_0x4f0630['containsRange'](_0x128d77,!0x0)))&&_0x48a1e7['discard']());}const _0x21f800=_0x4adad1(),_0x3656e1=_0x1ac204['id'],_0x156bc4='deletion:'+_0x4d2514,_0x194f8d=this['_setSuggestionData']({'id':_0x21f800,'type':_0x156bc4,'createdAt':new Date(),'authorId':_0x3656e1,'attributes':_0x4d1f6a});for(const _0x308c7c of _0x1ba7e4)_0x308c7c['detach'](),_0x308c7c['isCollapsed']||'$graveyard'==_0x308c7c['root']['rootName']||this['_addSuggestionMarker'](_0x156bc4,_0x21f800,_0x3656e1,_0x308c7c,o['getMultiRangeId']());return _0x194f8d;}['markAttributeChange'](_0x541105,_0x30bed6,_0x6f8a80,_0x3ed10f,_0x5b78af){if(_0x541105['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42a82d=this['editor']['plugins']['get']('Users')['me']['id'],_0x1eea6a=Array['from'](this['_suggestions']['values']())['filter'](_0x1168ff=>'attribute'==_0x1168ff['type']&&_0x1168ff['data']['key']==_0x30bed6&&_0x1168ff['isIntersectingWithRange'](_0x541105));if('default'===this['_trackFormatChanges']){const _0x139384=this['_findSuggestions'](_0x541105,'insertion')['filter'](({meta:_0x5124ed})=>_0x5124ed['isOwn']&&!_0x5124ed['isInsideObject']&&!_0x5124ed['isNextTo'])['map'](({suggestion:_0x5d8a89})=>_0x5d8a89);_0x1eea6a['unshift'](..._0x139384);}const _0x43e8ba=new Map([[_0x541105,_0x6f8a80]]);for(const _0x3b9b4b of _0x1eea6a){const _0x282801='attribute'==_0x3b9b4b['type']?_0x3b9b4b['data']['oldValue']:void 0x0,_0x2bef4a=_0x3b9b4b['getFirstRange'](),_0x2cca34=Array['from'](_0x43e8ba['keys']())['find'](_0x102859=>_0x102859['isIntersecting'](_0x2bef4a));if(!_0x2cca34)continue;const _0x299353=_0x2cca34['getDifference'](_0x2bef4a);this['_isBlockAttribute'](_0x30bed6)&&'insertion'==_0x3b9b4b['type']&&0x0!=_0x299353['length']||(_0x43e8ba['delete'](_0x2cca34),_0x299353['forEach'](_0x2164c6=>{_0x43e8ba['set'](_0x2164c6,_0x6f8a80);}),'insertion'!=_0x3b9b4b['type']&&_0x282801!=_0x3ed10f&&_0x43e8ba['set'](_0x2cca34['getIntersection'](_0x2bef4a),_0x282801));}const _0x5902c6=[];for(const [_0x511db0,_0x43b896]of _0x43e8ba){const _0x228b5a=_0x4adad1(),_0x6b1301={'key':_0x30bed6,'oldValue':_0x43b896,'newValue':_0x3ed10f};_0x30bed6['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':_0x30bed6});const _0x260049=('attribute:'+(_0x30bed6+'|'+Gt({'newValue':_0x3ed10f})))['substring'](0x0,0x3c),_0x3bb679=this['_setSuggestionData']({'id':_0x228b5a,'type':_0x260049,'data':_0x6b1301,'createdAt':new Date(),'authorId':_0x42a82d,'attributes':_0x5b78af});_0x5902c6['push'](_0x3bb679),this['_addSuggestionMarker'](_0x260049,_0x228b5a,_0x42a82d,_0x511db0);}return _0x5902c6;}['enableDefaultAttributesIntegration'](_0x16f6c3){this['enableCommand'](_0x16f6c3,(_0xbd47e2,..._0xb8b79e)=>{this['_recordAttributeChanges'](()=>{_0xbd47e2(..._0xb8b79e);});});}['registerBlockAttribute'](_0x38561e){this['_blockAttributeKeys']['add'](_0x38561e);}['registerInlineAttribute'](_0x562423){this['_inlineAttributeKeys']['add'](_0x562423);}['_getAttributeKey'](_0x5c7a18){return'attribute'==_0x5c7a18['type']?_0x5c7a18['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x17859d,_0x4cc140){const _0x3532fe=_0x17859d['getFirstMarker']();this['_model']['change'](_0x17bb15=>{_0x17bb15['updateMarker'](_0x3532fe,{'range':_0x4cc140});});}['_addThreadToSuggestion'](_0x32b5eb){const _0x3ede12=_0x32b5eb['id'],_0x5e4955=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3ede12)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e4955,'threadId':_0x3ede12,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a831d=this['_commentsRepository']['getCommentThread'](_0x3ede12);_0x2a831d['unbind']('isRemovable'),_0x2a831d['isRemovable']=!0x1,_0x32b5eb['commentThread']=_0x2a831d;}['_checkSuggestionCorrectness'](_0x18886a,_0x54976c,_0x553723,_0x5a825f){if(_0x18886a['type']!=_0x54976c||_0x18886a['subType']!=_0x553723||_0x18886a['creator']['id']!=_0x5a825f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x281979('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44b010,_0x5a26f7){const _0x4f5626=_0x44b010['getFirstRange']();if(_0x5a26f7['isEqual'](_0x4f5626))_0x44b010['removeMarkers']();else{if(_0x4f5626['containsRange'](_0x5a26f7)){const _0x1eb767=this['_model']['createPositionAt'](_0x5a26f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44b010,this['_model']['createRange'](_0x4f5626['start'],_0x1eb767));const _0x10cfed=_0x4adad1(),_0x5f5d9b=_0x44b010['creator']['id'],_0x22d2f9=_0x44b010['type']+':'+_0x44b010['subType'];this['_setSuggestionData']({'id':_0x10cfed,'type':_0x22d2f9,'createdAt':new Date(),'authorId':_0x5f5d9b,'data':_0x44b010['data'],'attributes':_0x44b010['attributes']});const _0x52fdc6=this['_model']['createPositionAt'](_0x5a26f7['end']['parent'],'after'),_0x35d373=this['_model']['createRange'](_0x52fdc6,_0x4f5626['end']);this['_addSuggestionMarker'](_0x22d2f9,_0x10cfed,_0x5f5d9b,_0x35d373);}else{if(_0x4f5626['containsPosition'](_0x5a26f7['start'])){const _0x3307e9=this['_model']['createPositionAt'](_0x5a26f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44b010,this['_model']['createRange'](_0x4f5626['start'],_0x3307e9));}else{const _0x38fc83=this['_model']['createPositionAt'](_0x5a26f7['end']['parent'],'after');this['_setSuggestionRange'](_0x44b010,this['_model']['createRange'](_0x38fc83,_0x4f5626['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1fc015){for(const {suggestion:_0x201780,meta:_0x510812}of this['_findSuggestions'](_0x1fc015,'insertion')){if(!_0x510812['isOwn'])continue;const _0x1a5d1c=_0x201780['getRanges']();for(const _0x496831 of _0x1a5d1c)if(!_0x1fc015['getDifference'](_0x496831)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x497591){const _0x58d020=this['editor']['plugins']['get']('Users')['getUser'](_0x497591);if(!_0x58d020)throw new _0x281979('track-changes-user-not-found',this);return _0x58d020;}['_getExternalAuthor'](_0x481d57){const _0x43b842=this['editor']['plugins']['get']('Users'),_0x58b4f5=_0x13f274('external:'+_0x481d57),_0x22ee5a=_0x43b842['getUser'](_0x58b4f5);return _0x22ee5a||_0x43b842['addUser']({'id':_0x58b4f5,'name':_0x481d57});}['_createSuggestion'](_0xda71df,_0x15ad00,_0x13d208,_0x388277,_0x5281fc){const _0x1a8ecf=this['_getAuthorFromId'](_0x388277),_0x3c44ea=this['_suggestionFactory']['buildSuggestion'](_0xda71df,_0x15ad00,_0x13d208,_0x1a8ecf,_0x5281fc,_0x28b5d6=>{this['_updateSuggestionData'](_0x13d208,{'attributes':_0x28b5d6});const _0x35b57e=this['getSuggestion'](_0x13d208);this['_joinWithAdjacentSuggestions'](new Set([_0x35b57e])),this['_refreshSuggestionsChain'](new Set([_0x35b57e]));});return this['listenTo'](_0x3c44ea,'accept',()=>{this['_updateSuggestionData'](_0x13d208,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c44ea,'discard',()=>{this['_updateSuggestionData'](_0x13d208,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13d208,_0x3c44ea),this['_suggestionState']['set'](_0x3c44ea,'notReady'),_0x3c44ea;}['_splitMarkerName'](_0x35a0b9){const _0x11cab6=_0x35a0b9['split'](':');return{'group':_0x11cab6[0x0],'type':_0x11cab6[0x1],'subType':_0x11cab6['length']>=0x5?_0x11cab6[0x2]:null,'id':_0x11cab6['length']<0x5?_0x11cab6[0x2]:_0x11cab6[0x3],'authorId':_0x11cab6['length']<0x5?_0x11cab6[0x3]:_0x11cab6[0x4],'markerCount':0x6==_0x11cab6['length']?_0x11cab6[0x5]:null};}['_breakSuggestionMarker'](_0x216017,_0x369868,_0x2b5a41){const _0x1268c8=_0x216017['getFirstRange'](),_0x4058f7=_0x1268c8['start'],_0x5f42e4=_0x1268c8['end'];this['_setSuggestionRange'](_0x216017,this['_model']['createRange'](_0x4058f7,_0x369868));const _0x1308b1=_0x4adad1(),_0x2ca951=_0x216017['creator']['id'],_0x1b3248=_0x216017['type']+(_0x216017['subType']?':'+_0x216017['subType']:'');this['_setSuggestionData']({'id':_0x1308b1,'type':_0x1b3248,'createdAt':new Date(),'authorId':_0x2ca951,'originalSuggestionId':_0x216017['id'],'attributes':_0x216017['attributes'],'data':_0x216017['data']});const _0x33f082=this['_getAttributeKey'](_0x216017);('formatBlock'==_0x216017['type']||_0x33f082&&this['_isBlockAttribute'](_0x33f082))&&(_0x2b5a41=this['_model']['createPositionBefore'](_0x2b5a41['parent'])),this['_addSuggestionMarker'](_0x1b3248,_0x1308b1,_0x2ca951,this['_model']['createRange'](_0x2b5a41,_0x5f42e4));}['_findSuggestions'](_0x22aad7,_0x2cc18f=null){const _0xbfbbcc=[],_0x4e0750=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22aad7)||(_0x22aad7=[_0x22aad7]);for(const _0x238fc1 of this['getSuggestions']()){if(!_0x238fc1['isInContent'])continue;if(_0x2cc18f&&_0x238fc1['type']!=_0x2cc18f)continue;let _0xfc007e=!0x1;for(const _0x28bcfc of _0x238fc1['getRanges']()){for(const _0x474e26 of _0x22aad7){const _0x36482f=_0x474e26['start']['isEqual'](_0x28bcfc['end'])||_0x474e26['end']['isEqual'](_0x28bcfc['start']);if(_0x36482f||_0x474e26['getIntersection'](_0x28bcfc)){const _0x3acb18=_0x474e26['containsRange'](_0x28bcfc)&&Vt(this['_model']['schema'],_0x28bcfc['start'],_0x474e26),_0x430020=_0x28bcfc['containsRange'](_0x474e26)&&Vt(this['_model']['schema'],_0x474e26['start'],_0x28bcfc);_0xbfbbcc['push']({'suggestion':_0x238fc1,'meta':{'isOwn':_0x4e0750==_0x238fc1['author'],'isNextTo':_0x36482f,'isInsideObject':_0x3acb18,'containsRangeInObject':_0x430020}}),_0xfc007e=!0x0;break;}}if(_0xfc007e)break;}}return _0xbfbbcc;}['_addSuggestionMarker'](_0x10c606,_0x498622,_0x21faad,_0x3a485b,_0x7fab20){this['_model']['change'](_0x42c082=>{let _0x55f214='suggestion:'+_0x10c606+':'+_0x498622+':'+_0x21faad;_0x7fab20&&(_0x55f214=_0x55f214+':'+_0x7fab20),_0x42c082['addMarker'](_0x55f214,{'range':_0x3a485b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4877b2){const _0x4ab0dd=_0x4877b2['previous'],_0x1667b0=_0x4877b2['next'];_0x4877b2['previous']=null,_0x4877b2['next']=null,null!=_0x4ab0dd&&_0x4ab0dd['next']==_0x4877b2&&(_0x4ab0dd['next']=_0x1667b0),null!=_0x1667b0&&_0x1667b0['previous']==_0x4877b2&&(_0x1667b0['previous']=_0x4ab0dd),'ready'==this['_suggestionState']['get'](_0x4877b2)&&(this['_suggestionState']['set'](_0x4877b2,'removed'),this['fire']('suggestionUnloaded',_0x4877b2,_0x4ab0dd,_0x1667b0));}['_setSuggestionData'](_0x2b26e4){const _0x4e7a8e=_0x2b26e4['id'],_0xc1f528=this['addSuggestionData'](_0x2b26e4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x869e2c=this['editor']['plugins']['get']('PendingActions'),_0x3419cd=_0xc1f528['hasComments'],_0x3ed11c=_0xc1f528['subType']?_0xc1f528['type']+':'+_0xc1f528['subType']:_0xc1f528['type'],_0x5b2dfe=this['editor']['locale'],_0x2b26b2=_0x869e2c['add'](c(_0x5b2dfe,'PENDING_ACTION_SUGGESTION')),_0xd6fc2a={'id':_0x4e7a8e,'type':_0x3ed11c,'hasComments':_0x3419cd,'data':_0x2b26e4['data']||null,'originalSuggestionId':_0x2b26e4['originalSuggestionId']||null,'attributes':_0xc1f528['attributes']};this['_adapter']['addSuggestion'](_0xd6fc2a)['then'](_0x28a462=>{_0xc1f528['_saved']=!0x0,_0x869e2c['remove'](_0x2b26b2),_0x28a462&&_0x28a462['createdAt']&&(this['_suggestions']['get'](_0x4e7a8e)['createdAt']=_0x28a462['createdAt']);})['catch'](_0x22ba05=>{throw _0x3ac62c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xc1f528['discard']();}),_0xc1f528['stopListening'](),this['_suggestions']['delete'](_0xc1f528['id']),this['_suggestionState']['delete'](_0xc1f528),_0x22ba05;});}return _0xc1f528;}['_isBlockAttribute'](_0x291fbb){return this['_blockAttributeKeys']['has'](_0x291fbb);}['_updateSuggestionData'](_0x1216cb,_0x2c5dd5){const _0x4e1e08=this['editor']['plugins']['get']('PendingActions'),_0x7875fe=this['getSuggestion'](_0x1216cb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x7875fe['_saved']){const _0x57cdb6=_0x4e1e08['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1216cb,_0x2c5dd5)['then'](()=>{_0x4e1e08['remove'](_0x57cdb6);});}else _0x7875fe['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1216cb,_0x2c5dd5);});}}['_getSuggestionData'](_0x5b479c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x281979('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b479c);}['_handleNewSuggestionMarker'](_0x42cfa1){const {id:_0x1a940d,type:_0x5a9ecd,subType:_0x31aa35,authorId:_0x127b19}=this['_splitMarkerName'](_0x42cfa1),_0x38b890=this['_suggestions']['get'](_0x1a940d)||this['_createSuggestion'](_0x5a9ecd,_0x31aa35,_0x1a940d,_0x127b19,{});switch(this['_checkSuggestionCorrectness'](_0x38b890,_0x5a9ecd,_0x31aa35,_0x127b19),this['_suggestionState']['get'](_0x38b890)){case'notReady':this['_getSuggestionData'](_0x1a940d)['then'](_0x430b98=>{let _0x34f3f2=Promise['resolve']();_0x430b98['hasComments']&&(_0x34f3f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1a940d})),_0x34f3f2['then'](()=>{this['addSuggestionData'](_0x430b98)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38b890,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1a940d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38b890,'ready'),this['fire']('suggestionLoaded',_0x38b890);break;case'ready':this['fire']('suggestionChanged',_0x38b890);}return _0x38b890['addMarkerName'](_0x42cfa1),_0x38b890;}['_refreshSuggestionsChain'](_0x28d3ef){const _0xc01d2=Array['from'](_0x28d3ef),_0x4e88aa=_0xc01d2['filter'](_0xe4e896=>'attribute'==_0xe4e896['type']);this['_refreshAttributeSuggestionsChain'](_0x4e88aa);const _0x4a0531=_0xc01d2['filter'](_0x130289=>!_0x130289['isMultiRange']&&'attribute'!=_0x130289['type']),_0x2640d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x517ac2=>!_0x517ac2['isMultiRange']&&'attribute'!=_0x517ac2['type']),_0x662fdb=_0x2640d1['filter'](_0x4e606f=>!_0x28d3ef['has'](_0x4e606f)),_0x306a50=new Map(_0x2640d1['map'](_0x18f319=>[_0x18f319,this['_suggestionFactory']['getSuggestionCallback'](_0x18f319['type'],_0x18f319['subType'],'chain')])),_0x32bc22=new Map(_0x2640d1['map'](_0x53cfbf=>[_0x53cfbf,_0x53cfbf['getFirstRange']()])),_0x417e82=new Set(),_0x1dac55=new Set();for(let _0x1489f2=0x0;_0x1489f2<_0x4a0531['length'];_0x1489f2++)_0x29868e(_0x4a0531[_0x1489f2],_0x4a0531,_0x1489f2+0x1);for(let _0x579810=0x0;_0x579810<_0x4a0531['length'];_0x579810++)_0x29868e(_0x4a0531[_0x579810],_0x662fdb,0x0);const _0x1999c1=new Set();for(let _0x396d0a=0x0;_0x396d0a<_0x4a0531['length'];_0x396d0a++){const _0x4ec6b1=_0x4a0531[_0x396d0a];!_0x1dac55['has'](_0x4ec6b1)&&_0x4ec6b1['previous']&&(_0x1999c1['add'](_0x4ec6b1['previous']),_0x4ec6b1['previous']['next']===_0x4ec6b1&&(_0x4ec6b1['previous']['next']=null),_0x4ec6b1['previous']=null),!_0x417e82['has'](_0x4ec6b1)&&_0x4ec6b1['next']&&(_0x1999c1['add'](_0x4ec6b1['next']),_0x4ec6b1['next']['previous']===_0x4ec6b1&&(_0x4ec6b1['next']['previous']=null),_0x4ec6b1['next']=null);}function _0x29868e(_0x155086,_0x432382,_0x5651ac){for(let _0x34aa8a=_0x5651ac;_0x34aa8a<_0x432382['length'];_0x34aa8a++){const _0xc19dd8=_0x3b82bc(_0x155086,_0x432382[_0x34aa8a]);_0xc19dd8&&(_0xc19dd8[0x0]['next']=_0xc19dd8[0x1],_0xc19dd8[0x1]['previous']=_0xc19dd8[0x0],_0x417e82['add'](_0xc19dd8[0x0]),_0x1dac55['add'](_0xc19dd8[0x1]));}}function _0x3b82bc(_0x45bd55,_0x5ae400){if(_0x45bd55['author']['id']!==_0x5ae400['author']['id'])return null;const _0x27dd46=_0x306a50['get'](_0x45bd55)(_0x45bd55,_0x5ae400,_0x32bc22['get'](_0x45bd55),_0x32bc22['get'](_0x5ae400));if(!_0x27dd46)return null;return _0x306a50['get'](_0x5ae400)(_0x45bd55,_0x5ae400,_0x32bc22['get'](_0x45bd55),_0x32bc22['get'](_0x5ae400))?_0x27dd46[0x1]['commentThread']&&_0x27dd46[0x1]['commentThread']['length']?null:_0x27dd46:null;}_0x1999c1['size']&&this['_refreshSuggestionsChain'](_0x1999c1);}['_refreshAttributeSuggestionsChain'](_0x11d745){if(0x0==_0x11d745['length'])return;const _0x2884f8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x535711=>'attribute'==_0x535711['type']&&_0x535711['_isDataLoaded']),_0x1c44db=[],_0x44fbc9=new Map();for(const _0x9bfc4a of _0x2884f8){const _0x30d638=_0x13f274(_0x9bfc4a['attributes']);_0x44fbc9['has'](_0x30d638)||(_0x44fbc9['set'](_0x30d638,_0x1c44db['length']),_0x1c44db['push']([]));const _0x1fbf62=_0x44fbc9['get'](_0x30d638);_0x1c44db[_0x1fbf62]['push'](_0x9bfc4a);}!(function(){_0x1c44db['sort']((_0x348b27,_0x149172)=>{const _0x4de76e=_0x348b27[0x0]['createdAt'],_0x35ac65=_0x149172[0x0]['createdAt'];return _0x4de76e==_0x35ac65?_0x348b27[0x0]['attributes']['groupId']<_0x149172[0x0]['attributes']['groupId']?-0x1:0x1:_0x4de76e<_0x35ac65?-0x1:0x1;});for(const _0x250c44 of _0x1c44db)_0x250c44['sort']((_0x46e56d,_0x3a92f3)=>_0x46e56d['id']<_0x3a92f3['id']?-0x1:0x1);}());for(let _0x2d02ea=0x0;_0x2d02ea<_0x1c44db['length'];_0x2d02ea++){if(0x0==_0x1c44db[_0x2d02ea]['length'])continue;const _0xbec036=[];for(let _0x145f74=_0x2d02ea+0x1;_0x145f74<_0x1c44db['length'];_0x145f74++)0x0!=_0x1c44db[_0x145f74]['length']&&_0x4f2507(_0x1c44db[_0x2d02ea],_0x1c44db[_0x145f74])&&_0xbec036['push'](_0x145f74);for(const _0x159db9 of _0xbec036)_0x1c44db[_0x2d02ea]=_0x1c44db[_0x2d02ea]['concat'](_0x1c44db[_0x159db9]),_0x1c44db[_0x159db9]=[];}for(const _0x33e02d of _0x1c44db)for(let _0x140792=0x0;_0x140792<_0x33e02d['length'];_0x140792++){const _0x7e5b70=_0x33e02d[_0x140792+0x1]||null;_0x33e02d[_0x140792]['next']!==_0x7e5b70&&(_0x33e02d[_0x140792]['next']=_0x7e5b70);}for(const _0x3597d7 of _0x1c44db)for(let _0x29c331=0x0;_0x29c331<_0x3597d7['length'];_0x29c331++){const _0x40958f=_0x3597d7[_0x29c331-0x1]||null;_0x3597d7[_0x29c331]['previous']!==_0x40958f&&(_0x3597d7[_0x29c331]['previous']=_0x40958f);}function _0x4f2507(_0x28d726,_0x36fe71){if(_0x28d726[0x0]['attributes']['groupId']!==_0x36fe71[0x0]['attributes']['groupId']&&_0x28d726[0x0]['author']!==_0x36fe71[0x0]['author'])return!0x1;if(!function(_0x55c845,_0x384cae){if(!_0x55c845['hasComments']&&!_0x384cae['hasComments'])return!0x0;if(_0x55c845['hasComments']&&_0x384cae['hasComments'])return!0x1;if(_0x55c845['hasComments']&&_0x384cae['createdAt']<_0x55c845['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x384cae['hasComments']&&_0x55c845['createdAt']<_0x384cae['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x28d726[0x0],_0x36fe71[0x0]))return!0x1;const _0x39862f=Et(_0x28d726[0x0]['attributes'],'groupId'),_0x524f79=Et(_0x36fe71[0x0]['attributes'],'groupId');if(!_0x382b4a(_0x39862f,_0x524f79))return!0x1;return!!_0x28d726['every'](_0x90ca6d=>_0x36fe71['some'](_0x1a1a93=>_0x90ca6d['getFirstRange']()['isEqual'](_0x1a1a93['getFirstRange']())))&&_0x36fe71['every'](_0x3a2bed=>_0x28d726['some'](_0x5143c7=>_0x3a2bed['getFirstRange']()['isEqual'](_0x5143c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1e4faa){const _0x530ce6=Array['from'](_0x1e4faa),_0x16306b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f3110=_0x16306b['filter'](_0x3ca913=>!_0x1e4faa['has'](_0x3ca913)),_0xcddd66=new Map(_0x530ce6['map'](_0x335cbf=>[_0x335cbf,this['_suggestionFactory']['getSuggestionCallback'](_0x335cbf['type'],_0x335cbf['subType'],'join')])),_0x2907b2=new Map(_0x16306b['map'](_0x5e3147=>[_0x5e3147,_0x5e3147['getRanges']()]));for(let _0x3f9688=0x0;_0x3f9688<_0x530ce6['length'];_0x3f9688++){if(_0x28a332(this,_0x530ce6[_0x3f9688],_0x530ce6,_0x3f9688+0x1))return!0x0;}for(let _0x472ddf=0x0;_0x472ddf<_0x530ce6['length'];_0x472ddf++){if(_0x28a332(this,_0x530ce6[_0x472ddf],_0x3f3110,0x0))return!0x0;}return!0x1;function _0x28a332(_0x22b6c7,_0x598a10,_0x3769c8,_0x465d67){for(let _0x241d08=_0x465d67;_0x241d08<_0x3769c8['length'];_0x241d08++){const _0x770834=_0x3769c8[_0x241d08];if(_0x770834['type']!==_0x598a10['type']||_0x770834['author']['id']!==_0x598a10['author']['id']||_0x770834['subType']!==_0x598a10['subType'])continue;if(!qt(_0x598a10,_0x770834))continue;if('attribute'==_0x598a10['type']&&_0x598a10['data']['oldValue']!=_0x770834['data']['oldValue'])continue;if('attribute'==_0x598a10['type']&&_0x22b6c7['_isBlockAttribute'](_0x598a10['data']['key']))continue;if('formatBlock'==_0x598a10['type']){const _0x1e0f56=_0x22b6c7['editor']['model'],_0x1a4e49=_0x598a10['getContainedElement']();if(_0x1a4e49&&(_0x1e0f56['schema']['isObject'](_0x1a4e49)||_0x1e0f56['schema']['isLimit'](_0x1a4e49)))continue;}const _0x3ad991=_0xcddd66['get'](_0x598a10),_0x469d63=_0x2907b2['get'](_0x598a10),_0x524a65=_0x2907b2['get'](_0x770834),_0x2cff98=_0x598a10['commentThread']&&_0x598a10['commentThread']['length'],_0x24f314=_0x770834['commentThread']&&_0x770834['commentThread']['length'];if(!_0x2cff98&&_0x3ad991(_0x524a65,_0x469d63))return _0x22b6c7['_joinSuggestions'](_0x770834,_0x598a10),_0x2907b2['delete'](_0x598a10),!0x0;if(!_0x24f314&&_0x3ad991(_0x469d63,_0x524a65))return _0x22b6c7['_joinSuggestions'](_0x598a10,_0x770834),_0x2907b2['delete'](_0x770834),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ffaaa,_0x3a771a){if(_0x4ffaaa['isMultiRange']){for(const _0x21d130 of _0x3a771a['getRanges']())_0x4ffaaa['addRange'](_0x21d130);}else{const _0x243334=_0x3a771a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ffaaa,this['_model']['createRange'](_0x4ffaaa['getFirstRange']()['start'],_0x243334));}_0x3a771a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3dfe58,_0x11522,_0x6613ed){const _0xae809=_0x3dfe58['startsWith']('format')||_0x3dfe58['startsWith']('attribute')?'FORMATTING':_0x3dfe58['toUpperCase']();return c(this['editor']['locale'],_0x11522+'_'+_0xae809+'_SUGGESTION_ANNOUNCEMENT',_0x6613ed);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e638c=this['editor'];if(!_0x4e638c['ui'])return;const {ariaLiveAnnouncer:_0x2e9fa9}=_0x4e638c['ui'];_0x3a51b7(this['_model'],({left:_0x424d89,entered:_0x44495d})=>{for(const _0x53f3d2 of _0x424d89){const {group:_0x5cb012,type:_0xfa563c}=this['_splitMarkerName'](_0x53f3d2['name']);if('suggestion'===_0x5cb012){_0x2e9fa9['announce'](this['_getMarkerAnnouncementText'](_0xfa563c,'LEAVE'));break;}}for(const _0x44fade of _0x44495d){const {group:_0x5254cc,type:_0xb040ae}=this['_splitMarkerName'](_0x44fade['name']);if('suggestion'===_0x5254cc){_0x2e9fa9['announce'](this['_getMarkerAnnouncementText'](_0xb040ae,'ENTER',_0x190f4e(_0x28a231)));break;}}});}['_processAttributeChanges'](_0x1ef3cb){if(this['_recordAttributeSuggestions'])return!0x1;const _0xaf757a=this['editor'],_0x12f10d=_0xaf757a['model']['document']['differ']['getChanges']();if(0x0==_0x12f10d['length'])return!0x1;const _0x3d8910=[],_0x1f915d=_0x12f10d['filter'](_0x2ec578=>'attribute'==_0x2ec578['type']),_0x3ccec7=_0x12f10d['filter'](_0x40b1b4=>'insert'==_0x40b1b4['type']&&'$text'!=_0x40b1b4['name']),_0x2e6c63=_0x12f10d['filter'](_0x1439eb=>'remove'==_0x1439eb['type']&&'$text'!=_0x1439eb['name']);for(const _0x5afef4 of _0x1f915d)_0x3d8910['push']({'key':_0x5afef4['attributeKey'],'newValue':_0x5afef4['attributeNewValue'],'oldValue':_0x5afef4['attributeOldValue'],'range':Jt(_0x5afef4['range'],_0xaf757a['model'])});for(const _0x383edb of _0x3ccec7){const _0x5e8a00=_0x2e6c63['find'](_0x547895=>_0x547895['position']['isEqual'](_0x383edb['position']));_0x5e8a00&&_0x3d8910['push']({'key':u,'newValue':_0x383edb['name'],'oldValue':_0x5e8a00['name'],'range':_0xaf757a['model']['createRangeOn'](_0x383edb['position']['nodeAfter'])});}return 0x0!=_0x3d8910['length']&&this['_reduceExistingSuggestions'](_0x1ef3cb,_0x3d8910);}['_processAttributeSuggestions'](_0x3c7161){let _0x37c814=!0x1;const _0x184d1a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x198744=>_0x198744['data']['newRange']&&_0x198744['name']['startsWith']('suggestion:attribute:'));for(const _0x17fa73 of _0x184d1a){const {subType:_0x4e0d19,id:_0x1b0ba9}=this['_splitMarkerName'](_0x17fa73['name']),_0x58ca7b=_0x4e0d19['split']('|')[0x0];for(const _0x2add42 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2add42['id']!=_0x1b0ba9&&'attribute'==_0x2add42['type']&&_0x2add42['data']&&_0x2add42['data']['key']==_0x58ca7b&&_0x2add42['getFirstRange']()['isIntersecting'](_0x17fa73['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2add42,_0x17fa73['data']['newRange'],_0x3c7161),_0x37c814=!0x0);}return _0x37c814;}['_recordAttributeChanges'](_0x48fc7e){this['_recordAttributeSuggestions']=!0x0,_0x48fc7e();}['_isRegisteredAttribute'](_0xdd551e){const _0x391765=this['_isBlockAttribute'](_0xdd551e),_0x231141=this['_inlineAttributeKeys']['has'](_0xdd551e);return _0x391765||_0x231141;}['_reduceExistingSuggestions'](_0x281a38,_0xd055d3){if(0x0==_0xd055d3['length'])return!0x1;let _0xe69b35=!0x1;for(const _0x4759d3 of _0xd055d3){const _0x4d8535=this['_findSuggestions'](_0x4759d3['range'],'attribute')['filter'](_0x37e52e=>!_0x37e52e['meta']['isNextTo'])['map'](_0x3dcad9=>_0x3dcad9['suggestion']),_0x68b64c=_0x13f274({'newValue':_0x4759d3['newValue']});_0x4d8535['filter'](_0x2bf292=>{const [_0x3ca38a,_0x1360c6]=_0x2bf292['subType']['split']('|');return _0x3ca38a==_0x4759d3['key']&&_0x1360c6!=_0x68b64c;})['forEach'](_0x549d57=>{this['_reduceSuggestionAttributeRange'](_0x549d57,_0x4759d3['range'],_0x281a38),_0xe69b35=!0x0;});}return _0xe69b35;}['_reduceSuggestionAttributeRange'](_0x3f9941,_0x30c6fc,_0x5229a5){const _0xf0cf3f=_0x3f9941['getFirstRange']()['getDifference'](_0x30c6fc);0x0!==_0xf0cf3f['length']?0x1!==_0xf0cf3f['length']?this['_breakSuggestionMarker'](_0x3f9941,_0x30c6fc['start'],_0x30c6fc['end']):this['_setSuggestionRange'](_0x3f9941,_0xf0cf3f[0x0]):_0x5229a5['removeMarker'](_0x3f9941['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa787e6){this['_editor']=_0xa787e6,this['_model']=_0xa787e6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x599a47,_0x25711a,_0x5a70,_0x87710c,_0x246360,_0x739b53){return new o(this['_model'],{'type':_0x599a47,'subType':_0x25711a,'id':_0x5a70,'author':_0x87710c,'creator':_0x87710c,'attributes':_0x246360,'onAttributesChange':_0x739b53,'onAccept':(..._0x5b8f8a)=>this['getSuggestionCallback'](_0x599a47,_0x25711a,'accept')(..._0x5b8f8a),'onDiscard':(..._0x4e052f)=>this['getSuggestionCallback'](_0x599a47,_0x25711a,'discard')(..._0x4e052f)});}['registerCustomCallback'](_0x2ea994,_0x1df33e,_0x4f06c6,_0x414ac9){const _0x3b0078=_0x2ea994+':'+_0x1df33e+':'+_0x4f06c6;this['_customCallbacks']['set'](_0x3b0078,_0x414ac9);}['getSuggestionCallback'](_0x3e9e43,_0x4de4d4,_0x413d89){const _0x4b1322=_0x3e9e43+':'+_0x4de4d4+':'+_0x413d89;return this['_customCallbacks']['get'](_0x4b1322)||this['_defaultCallbacks']['get'](_0x3e9e43+':'+_0x413d89);}['_registerDefaultCallbacks'](){const _0x57343e=()=>!0x1,_0x5355bd=_0x30beb6=>{_0x30beb6['sort']((_0x4f0ca2,_0x3e5cfe)=>_0x4f0ca2['start']['isBefore'](_0x3e5cfe['start'])?0x1:-0x1),this['_model']['change'](_0x4f4174=>{for(const _0x2926e5 of _0x30beb6){let _0x27fb22;_0x27fb22=_0x2926e5['end']['isAtEnd']&&_0x2926e5['end']['parent']==_0x2926e5['start']['nodeAfter']?_0x4f4174['createSelection'](_0x2926e5['start']['nodeAfter'],'on'):_0x4f4174['createSelection'](_0x2926e5),this['_model']['deleteContent'](_0x27fb22,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4c390b=(_0x381965,_0x234abc)=>{_0x234abc&&this['_model']['change'](_0x3bbf63=>{const {commandName:_0x138d21,commandParams:_0x3d6785=[]}=_0x234abc,_0x22c8a0=_0x381965['map'](_0x245f5d=>(Ft(_0x245f5d)&&(_0x245f5d=this['_model']['createRange'](_0x245f5d['end'])),_0x245f5d))['filter'](_0x50f8b4=>'$graveyard'!==_0x50f8b4['root']['rootName']);if(_0x22c8a0['length']<0x1)return;const _0x478cd4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xa86861=>_0x31bd77['fromRange'](_0xa86861));_0x3bbf63['setSelection'](_0x22c8a0);for(const _0x1c1bc1 of this['_editor']['commands']['commands']())_0x1c1bc1['refresh']();_0x3d6785['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x138d21,..._0x3d6785);const _0x8414b2=_0x478cd4['filter'](_0x1811ed=>'$graveyard'!=_0x1811ed['root']['rootName']);_0x8414b2['length']>0x0&&_0x3bbf63['setSelection'](_0x8414b2);for(const _0x21e933 of _0x478cd4)_0x21e933['detach']();});},_0x47db47=(_0x3b76b3,_0x12695a)=>0x1==_0x3b76b3['length']&&0x1==_0x12695a['length']&&_0x3b76b3[0x0]['end']['isEqual'](_0x12695a[0x0]['start']),_0x496f5d=(_0x18d07f,_0x21091d,_0x286e22,_0x7e010c)=>Ht(_0x18d07f,_0x21091d,_0x286e22,_0x7e010c)?[_0x18d07f,_0x21091d]:Ht(_0x21091d,_0x18d07f,_0x7e010c,_0x286e22)?[_0x21091d,_0x18d07f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x57343e),this['_defaultCallbacks']['set']('insertion:discard',_0x5355bd),this['_defaultCallbacks']['set']('insertion:join',_0x47db47),this['_defaultCallbacks']['set']('insertion:chain',_0x496f5d),this['_defaultCallbacks']['set']('deletion:accept',_0x5355bd),this['_defaultCallbacks']['set']('deletion:discard',_0x57343e),this['_defaultCallbacks']['set']('deletion:join',_0x47db47),this['_defaultCallbacks']['set']('deletion:chain',_0x496f5d),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c390b),this['_defaultCallbacks']['set']('formatInline:discard',_0x57343e),this['_defaultCallbacks']['set']('formatInline:join',_0x47db47),this['_defaultCallbacks']['set']('formatInline:chain',_0x57343e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c390b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x57343e),this['_defaultCallbacks']['set']('formatBlock:join',_0x47db47),this['_defaultCallbacks']['set']('formatBlock:chain',_0x57343e),this['_defaultCallbacks']['set']('attribute:accept',_0x57343e),this['_defaultCallbacks']['set']('attribute:discard',(_0x153886,_0x30479f)=>{if(!_0x30479f)return;const _0x57f8ed=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5866d9=>{if(_0x30479f['key']==u)for(const _0x4415ad of _0x153886){const _0xccf2ec=_0x4415ad['start']['nodeAfter'],_0x124a7c=_0x30479f['oldValue'];_0x5866d9['rename'](_0xccf2ec,_0x124a7c);}else{if(_0x57f8ed['_isBlockAttribute'](_0x30479f['key'])){for(const _0x44edc9 of _0x153886)void 0x0!==_0x30479f['oldValue']?_0x5866d9['setAttribute'](_0x30479f['key'],_0x30479f['oldValue'],_0x44edc9['start']['nodeAfter']):_0x5866d9['removeAttribute'](_0x30479f['key'],_0x44edc9['start']['nodeAfter']);}else{for(const _0x10e9da of _0x153886)_0x30479f['oldValue']?_0x5866d9['setAttribute'](_0x30479f['key'],_0x30479f['oldValue'],_0x10e9da):_0x5866d9['removeAttribute'](_0x30479f['key'],_0x10e9da);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x47db47);}}function Vt(_0x586b76,_0x5124ea,_0xd04de2){for(const _0x290166 of _0x5124ea['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x290166['root']==_0x290166)return!0x1;if(!_0xd04de2['containsItem'](_0x290166))return!0x1;if(_0x586b76['isObject'](_0x290166)||_0x586b76['isLimit'](_0x290166))return!0x0;}return!0x1;}function Ft(_0x127f33){return _0x127f33['end']['parent']==_0x127f33['start']['nodeAfter']&&_0x127f33['end']['isAtStart'];}function Pt(_0x4b4335,_0x1e7383,_0x2e4481,_0x34f787){const _0x4018d0=_0x4ac64a=>!_0x4ac64a['item']['is']('$textProxy')&&!_0x34f787['isObject'](_0x4ac64a['item']),_0x16c115=_0x4b4335['start']['getLastMatchingPosition'](_0x4018d0),_0x2cb4e6=_0x4b4335['end']['getLastMatchingPosition'](_0x4018d0,{'direction':'backward'});return(!_0x4b4335['start']['isEqual'](_0x16c115)||!_0x4b4335['end']['isEqual'](_0x2cb4e6))&&(_0x16c115['isBefore'](_0x2cb4e6)?_0x2e4481['updateMarker'](_0x1e7383,{'range':_0x2e4481['createRange'](_0x16c115,_0x2cb4e6)}):_0x2e4481['removeMarker'](_0x1e7383),!0x0);}function Gt(_0x5e1ef1){return _0x13f274(_0x5e1ef1);}function Lt(_0x41b21b){const _0x1038ca=_0x41b21b['start']['nodeAfter'];return _0x1038ca&&_0x1038ca['is']('element');}function Jt(_0x3c61b0,_0x69d641){return null==_0x3c61b0['end']['nodeBefore']&&_0x3c61b0['end']['parent']==_0x3c61b0['start']['nodeAfter']?Kt(_0x3c61b0['start']['nodeAfter'],_0x69d641):_0x3c61b0;}function Kt(_0x2f1c71,_0x4d661d){const _0x5d1bae=_0x4d661d['schema']['isObject'](_0x2f1c71)||_0x4d661d['schema']['isSelectable'](_0x2f1c71);return _0x4d661d['createRange'](_0x4d661d['createPositionAt'](_0x2f1c71,'before'),_0x5d1bae?_0x4d661d['createPositionAfter'](_0x2f1c71):_0x4d661d['createPositionAt'](_0x2f1c71,'end'));}function Ht(_0x1b1a84,_0x4e7a1a,_0x3d841c,_0x2b4f70){return!!qt(_0x1b1a84,_0x4e7a1a)&&_0x3d841c['end']['isEqual'](_0x2b4f70['start']);}function qt(_0x3f1eeb,_0x2f19e9){if(!_0x3f1eeb['_isDataLoaded']||!_0x2f19e9['_isDataLoaded'])return!0x1;const _0x4ec1c2=new Set(Object['keys'](_0x3f1eeb['attributes'])),_0x598108=new Set(Object['keys'](_0x2f19e9['attributes']));if(_0x4ec1c2['delete']('groupId'),_0x598108['delete']('groupId'),0x0==_0x4ec1c2['size']&&0x0==_0x598108['size'])return!0x0;if(_0x4ec1c2['size']!=_0x598108['size'])return!0x1;const _0x5a842f={..._0x3f1eeb['attributes']},_0x15a67c={..._0x2f19e9['attributes']};return delete _0x5a842f['groupId'],delete _0x15a67c['groupId'],JSON['stringify'](_0x5a842f)==JSON['stringify'](_0x15a67c);}function zt(_0x488832,_0x5e85b1){const _0x3e96a3=Wt(_0x488832['attributes']),_0x18f6be=Wt(_0x5e85b1);if(!_0x488832['_isDataLoaded'])return!0x1;for(const _0x1f4d39 of Object['keys'](_0x18f6be))if(!_0x382b4a(_0x3e96a3[_0x1f4d39],_0x18f6be[_0x1f4d39]))return!0x1;return!0x0;}function Wt(_0x4368fc){const _0xbcc408=Object['assign']({},_0x4368fc);return delete _0xbcc408['skipNestingCheck'],delete _0xbcc408['tablePasteChainId'],_0xbcc408;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x1c3a2a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x547bdb,_0x435f78,_0x2b9c27,_0x32119e){super(),this['model']=_0x435f78,this['view']=_0x2b9c27,this['commentThreadController']=_0x32119e,this['_editor']=_0x547bdb,this['_acceptCommand']=_0x547bdb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x547bdb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1cc4e1,_0x1810cb)=>_0x1cc4e1||_0x1810cb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3fc3c2=>_0x3fc3c2&&this['_editor']['model']['canEditAt'](_0x435f78['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33357a=>_0x33357a&&this['_editor']['model']['canEditAt'](_0x435f78['getRanges']())),this['_pendingAction']=null,_0x2b9c27['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b9c27,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b9c27,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b9c27,'change:isDirty',()=>{_0x2b9c27['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x5f41db=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5f41db);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x16318d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x79a75,_0x358fe2,_0x58cbae,_0x106c5d){super(_0x79a75),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xe7cc15(_0x79a75,c(_0x79a75,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x358fe2['authoredAt']),this['bind']('authoredAt')['to'](_0x358fe2),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x358fe2,'authoredAt',this,'descriptionParts',(_0x47544c,_0x40d023,_0x45a9f0)=>{const _0x118a0c=_0x45a9f0['map'](_0x331fe5=>ls(_0x331fe5['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x47544c-0x1,_0x358fe2['author']['name'],_0x40d023?_0x106c5d['formatDateTime'](_0x40d023):'',new DOMParser()['parseFromString'](_0x118a0c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x413220(),this['focusTracker']=new _0x411045(),this['keystrokes']=new _0x39057c(),this['focusCycler']=new _0x5dbed0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x28bb39=>_0x28bb39['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x358fe2,this['_localUser']=_0x58cbae,this['_config']=_0x106c5d,_0x106c5d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e580c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x18cb5c}=this['_config'];this['commentsListView']=new _0x18cb5c(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',_0x44967e=>_0x44967e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d2c10,_0x317cbd)=>_0x5d2c10||!!_0x317cbd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x129eae}=this['_config'],_0x534fe6=new _0x129eae(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35cd0f=_0x534fe6['commentInputView'];return _0x534fe6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35cd0f,'value',(_0x711aa9,_0x59806b,_0x55d9df)=>!!_0x55d9df||_0x711aa9&&!_0x59806b),_0x35cd0f['on']('submit',(_0x5d6475,_0x5a5b4e)=>{this['fire']('addComment',_0x5a5b4e),_0x35cd0f['editor']['setData']('');}),_0x35cd0f['on']('cancel',()=>this['focus']()),_0x35cd0f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x534fe6;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5cc1fa,_0x5675bd,_0x2d70b7,_0x548cbc){super(_0x5cc1fa,_0x5675bd,_0x2d70b7,_0x548cbc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4632ec=>_0x4632ec&&_0x4632ec[0x0]?_0x4632ec[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe95ea5,_0x2dfb41)=>{let _0x859010='';for(const _0x37a106 of _0xe95ea5)_0x859010+='<p>'+ls(_0x37a106['content'],_0x37a106['color'])+'</p>';return _0x2dfb41?_0x859010:ti(_0x859010,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x548cbc['SuggestionView'](_0x5cc1fa,_0x5675bd,{'formatDateTime':_0x548cbc['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x919878=this['bindTemplate'],_0x651850=[this['suggestionView']];return this['commentsListView']&&_0x651850['push'](this['commentsListView']),this['commentThreadInputView']&&_0x651850['push'](this['commentThreadInputView']),_0x651850['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x919878['if']('isActive','ck-suggestion-wrapper--active'),_0x919878['to']('type',_0x9728ff=>'ck-suggestion-'+_0x9728ff),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x919878['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x651850};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x16318d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a44ef,_0xae1fa5,_0x4d0b21){super(_0x2a44ef),this['_model']=_0xae1fa5,this['_config']=_0x4d0b21,this['set']('description',''),this['bind']('authoredAt')['to'](_0xae1fa5),this['acceptButton']=this['_createButton'](c(_0x2a44ef,'Accept\x20suggestion'),_0x255fc4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2a44ef,'Discard\x20suggestion'),_0x55351e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x32732e(_0x2a44ef,_0xae1fa5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x413220([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x411045(),this['keystrokes']=new _0x39057c(),this['focusCycler']=new _0x5dbed0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e0a8c=>_0x4e0a8c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x23f286=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x23f286['innerHTML']=this['description'],this['on']('change:description',(_0x4637b0,_0x17e6d8,_0x5553bc)=>{_0x23f286['innerHTML']=_0x5553bc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e8246=this['bindTemplate'],_0x5eb0c5=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5e8246['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e8246['to']('authoredAt',_0x55fae2=>this['_config']['formatDateTime'](_0x55fae2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x5eb0c5['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x5eb0c5}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x28103a,_0x7e5e56,_0x2e4d7f,_0x13d3fc,_0x193990){const _0xbc2ccd=new _0x24e13f(this['locale']);return _0xbc2ccd['set']({'label':_0x28103a,'icon':_0x7e5e56,'tooltip':!0x0,'tooltipPosition':_0x193990}),_0xbc2ccd['extendTemplate']({'attributes':{'class':_0x2e4d7f}}),_0xbc2ccd['on']('execute',()=>{this['fire'](_0x13d3fc,this['_model']['id']);}),_0xbc2ccd;}['_setupKeyboardNavigation'](){const _0x40278c=this['element'];this['keystrokes']['listenTo'](_0x40278c);for(const _0x19eb56 of this['focusables'])this['focusTracker']['add'](_0x19eb56['element']),this['keystrokes']['listenTo'](_0x19eb56['element']);this['keystrokes']['set']('enter',(_0x589f0d,_0x14a531)=>{_0x40278c===_0x589f0d['target']&&(this['focusCycler']['focusFirst'](),_0x14a531());}),this['keystrokes']['set']('esc',(_0x4ddda1,_0x4eb37c)=>{_0x40278c!==_0x4ddda1['target']&&(this['focus'](),_0x4eb37c());});}}class d extends _0x159581{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x446c4e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5675c9){super(_0x5675c9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d10f9=this['editor']['config'];_0x4d10f9['define']('trackChanges.SuggestionThreadView',fe),_0x4d10f9['define']('trackChanges.SuggestionView',we),_0x4d10f9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d10f9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55c465,_0x5038d6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf3b948,_0x9c1b5b]of this['_handleControllerBuffer']){const _0x58249d=this['_suggestionToController']['has'](_0xf3b948);_0x58249d||_0x9c1b5b?_0x58249d&&_0x9c1b5b&&this['_destroyController'](_0xf3b948):this['_initializeController'](_0xf3b948);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55c465,_0x5038d6);}['init'](){const _0x38ee42=this['editor'],_0x3bffb2=_0x38ee42['plugins']['get']('TrackChangesEditing'),_0x87e33e=_0x38ee42['plugins']['get']('Annotations'),_0x5389db=_0x38ee42['plugins']['get']('EditorAnnotations'),_0x5b46e9=_0x38ee42['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5389db['addSourceCollector'](()=>{const _0x326a27=[];for(const [_0xfc2de0,_0x4f3799]of Array['from'](this['_suggestionToController'])){const _0x1e5174=_0xfc2de0['getAllAdjacentSuggestions'](),_0x3dafa5=[];for(const _0x514d23 of _0x1e5174){if(!_0x514d23['isInContent'])continue;if(_0x514d23['isMultiRange']){_0x3dafa5['push'](..._0x514d23['getRanges']());continue;}const _0x153211=_0x514d23['getFirstRange']();if(_0x3dafa5['length']>0x0){const _0x208e9=_0x3dafa5[0x0]['getJoined'](_0x153211);if(_0x208e9){_0x3dafa5[0x0]=_0x208e9;continue;}}_0x3dafa5['push'](_0x153211);}_0x326a27['push']([_0x4f3799['view'],_0x3dafa5]);}return _0x326a27;}),this['listenTo'](_0x3bffb2,'suggestionLoaded',(_0x309737,_0x271cf1)=>{this['listenTo'](_0x271cf1,'change:previous',(_0x3a254d,_0x453756,_0x1c5deb,_0xde3203)=>{_0x271cf1['isInContent']&&(null==_0x1c5deb?(this['_updateController'](_0xde3203['head']),this['_handleSuggestionControllerDelayed'](_0x271cf1,!0x1)):(this['_updateController'](_0x1c5deb['head']),null==_0xde3203&&this['_handleSuggestionControllerDelayed'](_0x271cf1,!0x0)));}),null!==_0x271cf1['previous']?this['_updateController'](_0x271cf1['head']):this['_handleSuggestionControllerDelayed'](_0x271cf1,!0x1);}),this['listenTo'](_0x3bffb2,'suggestionUnloaded',(_0x566c23,_0xb74118,_0x169b5a)=>{this['stopListening'](_0xb74118,'change:previous'),this['_handleControllerBuffer']['delete'](_0xb74118),this['_suggestionToController']['has'](_0xb74118)&&this['_destroyController'](_0xb74118),_0x169b5a&&this['_updateController'](_0x169b5a['head']);}),this['listenTo'](_0x3bffb2,'suggestionChanged',(_0x275110,_0x51864f)=>{this['_updateController'](_0x51864f);}),this['listenTo'](_0x87e33e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b46e9,'addComment',(_0x1c4a37,{threadId:_0x1ddb0d,isFromAdapter:_0x3889cc})=>{if(_0x3889cc||!_0x3bffb2['hasSuggestion'](_0x1ddb0d))return;const _0x2cc53f=_0x3bffb2['getSuggestion'](_0x1ddb0d);this['_suggestionToController']['get'](_0x2cc53f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16868e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cad85;for(const _0x3b4189 in _0x16868e){const _0x2ffd6b=_0x3b4189,_0x1438e0=_0x16868e[_0x2ffd6b];if('trackChangesLicenseKeyValid'==_0x1438e0||'trackChangesLicenseKeyInvalid'==_0x1438e0||'trackChangesLicenseKeyExpired'==_0x1438e0||'trackChangesLicenseKeyDomainLimit'==_0x1438e0||'trackChangesLicenseKeyNotAllowed'==_0x1438e0||'trackChangesLicenseKeyEvaluationLimit'==_0x1438e0||'trackChangesLicenseKeyTrialLimit'==_0x1438e0||'trackChangesLicenseKeyUsageLimit'==_0x1438e0){delete _0x16868e[_0x2ffd6b],_0x5cad85=_0x1438e0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5cad85&&_0x16868e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5cad85&&_0x16868e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5cad85&&_0x16868e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x855ed6=this['editor']['plugins']['get']('Annotations'),_0x33d11a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e64df=Array['from'](_0x855ed6['activeAnnotations'],_0x54b6f1=>_0x54b6f1['innerView'])['filter'](_0x11468a=>this['_viewToController']['has'](_0x11468a)),_0x50605e=[];for(const _0x2c1b34 of _0x4e64df){const _0x389fd3=this['_viewToController']['get'](_0x2c1b34)['model']['getAllAdjacentSuggestions']();_0x50605e['push'](..._0x389fd3['reduce']((_0x3fc825,_0x22e619)=>[..._0x3fc825,..._0x22e619['getMarkerNames']()],[]));}_0x33d11a['activeMarkers']=_0x50605e;}['_addUIComponentsToFactory'](){const _0x4f71a2=this['editor'],_0x89b9fb=_0x4f71a2['locale'],_0x2abad7=c(_0x89b9fb,'Track\x20changes'),_0x59f6dc=new _0x3a1819([{'type':'switchbutton','model':new _0x2efb49({'withText':!0x0,'isToggleable':!0x0,'label':_0x2abad7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f71a2['plugins']['has']('TrackChangesPreview')&&_0x59f6dc['addMany']([{'type':'separator'},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x20666a of _0x59f6dc)if(ke(_0x20666a)){const _0x454db7=_0x4f71a2['commands']['get'](_0x20666a['model']['commandName']);_0x20666a['model']['bind']('isOn','isEnabled')['to'](_0x454db7,'value','isEnabled');}_0x4f71a2['ui']['componentFactory']['add']('trackChanges',_0xa9e39b=>this['_createToolbarButton'](_0xa9e39b,_0x59f6dc,_0x2abad7)),_0x4f71a2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x14960e=>this['_createMenuBarMenu'](_0x14960e,_0x59f6dc,_0x2abad7));}['_createToolbarButton'](_0x22a000,_0x3abd98,_0x542ffa){const _0x2d0032=_0x5a3954(_0x22a000,_0x18f9d3),_0x3d20db=this['editor']['commands']['get']('trackChanges');_0x2d0032['buttonView']['set']({'tooltip':_0x542ffa,'label':_0x542ffa,'icon':_0x2b2b02}),_0x2d0032['buttonView']['bind']('isOn')['to'](_0x3d20db,'value'),_0x2d0032['buttonView']['on']('execute',()=>{_0x3d20db['execute'](),this['editor']['editing']['view']['focus']();}),_0x6ad703(_0x2d0032,_0x3abd98,{'role':'menu'});const _0x55ff5e=[];for(const _0x278b4f of _0x3abd98)ke(_0x278b4f)&&_0x55ff5e['push'](this['editor']['commands']['get'](_0x278b4f['model']['commandName']));const _0x5ae757=_0x2d0032['buttonView'];return _0x5ae757['actionView']['unbind']('isEnabled'),_0x5ae757['arrowView']['unbind']('isEnabled'),_0x5ae757['actionView']['bind']('isEnabled')['to'](_0x3d20db,'isEnabled'),_0x5ae757['arrowView']['bind']('isEnabled')['toMany'](_0x55ff5e,'isEnabled',(..._0x5d83e5)=>_0x5d83e5['some'](_0x4736c7=>_0x4736c7)),_0x2d0032['on']('execute',_0x1d6ab8=>{this['editor']['execute'](_0x1d6ab8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d0032;}['_createMenuBarMenu'](_0x36e344,_0x21b44d,_0x408ec1){const _0x377ae8=new _0x5f0b44(_0x36e344),_0xcfa13=this['editor']['commands']['get']('trackChanges');_0x377ae8['buttonView']['set']({'label':_0x408ec1,'icon':_0x2b2b02});const _0x1b4fd5=new _0x1a6e2d(_0x36e344);for(const _0x4aaa82 of _0x21b44d){if('separator'==_0x4aaa82['type']){_0x1b4fd5['items']['add'](new _0x2b253d(_0x36e344));continue;}const _0x4014f7=new _0x88bd30(_0x36e344,_0x377ae8),_0x15827d=new _0x39ecdf(_0x36e344),_0x5b372d=_0x4aaa82['model'];_0x15827d['bind'](...Object['keys'](_0x5b372d))['to'](_0x5b372d),_0x15827d['delegate']('execute')['to'](_0x377ae8),_0x15827d['on']('execute',()=>{this['editor']['execute'](_0x5b372d['commandName']),this['editor']['editing']['view']['focus']();}),_0x4014f7['children']['add'](_0x15827d),_0x1b4fd5['items']['add'](_0x4014f7);}return _0x377ae8['bind']('isEnabled')['to'](_0xcfa13,'isEnabled'),_0x377ae8['panelView']['children']['add'](_0x1b4fd5),_0x377ae8;}['_initializeController'](_0x304e43){const _0x369063=this['editor'],_0x9958c9=_0x369063['config'],_0x1bfab9=_0x369063['plugins']['get']('Annotations'),_0x16c6e5=_0x369063['plugins']['get']('CommentsRepository'),_0xacddf6=_0x369063['plugins']['get']('EditorAnnotations'),_0x5beed9=_0x369063['plugins']['get'](_0x446c4e)['me'],_0x274ebe=_0x9958c9['get']('trackChanges')['SuggestionThreadView'],_0x310bb9=_0x9958c9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x481b51,CommentThreadInputView:_0x1544f6}=_0x369063['plugins']['get']('CommentsUI');let _0x5b8ba9,_0x428ed1,_0x528413;this['_annotationViews']['has'](_0x304e43['id'])?(_0x428ed1=this['_annotationViews']['get'](_0x304e43['id']),_0x5b8ba9=_0x428ed1['mainView']):(_0x5b8ba9=new _0x274ebe(_0x369063['locale'],_0x304e43,_0x5beed9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9958c9['get']('comments.editorConfig'),'licenseKey':_0x9958c9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9958c9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9958c9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9958c9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xefdbc1(_0x9958c9['get']('locale')),'CommentView':_0x9958c9['get']('comments')['CommentView'],'CommentsListView':_0x481b51,'CommentThreadInputView':_0x1544f6,'SuggestionView':_0x310bb9}),_0x5b8ba9['suggestionView']['acceptButton']['on']('execute',()=>{_0x369063['editing']['view']['focus']();}),_0x5b8ba9['suggestionView']['discardButton']['on']('execute',()=>{_0x369063['editing']['view']['focus']();}),_0x428ed1=_0x1bfab9['createAnnotationView'](this['editor']['locale'],_0x5b8ba9),_0x428ed1['bind']('isDirty')['to'](_0x5b8ba9,'isDirty'),_0x428ed1['bind']('length')['to'](_0x5b8ba9),_0x428ed1['bind']('type')['to'](_0x5b8ba9,'type',_0x59fd5f=>'suggestion-'+_0x59fd5f),_0x5b8ba9['on']('escape',()=>{_0x528413['fire']('escape');}),this['_annotationViews']['set'](_0x304e43['id'],_0x428ed1));const _0x3a9a43=_0x16c6e5['createCommentThreadController'](_0x304e43['commentThread'],_0x5b8ba9),_0x563e37=new pe(_0x369063,_0x304e43,_0x5b8ba9,_0x3a9a43),_0x2658b9=_0x304e43['getAllAdjacentSuggestions']()['filter'](_0x57d3ed=>_0x57d3ed['isInContent']);_0x5b8ba9['descriptionParts']=_0x369063['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2658b9),this['_suggestionToController']['set'](_0x304e43,_0x563e37),this['_viewToController']['set'](_0x5b8ba9,_0x563e37),_0x528413=_0x1bfab9['createAnnotation']({'view':_0x428ed1,'target':()=>{const _0x4dcc0e=[],_0xeee1f6=_0x304e43['getAllAdjacentSuggestions']()['filter'](_0x319fc9=>_0x319fc9['isInContent']);for(const _0x59a8b1 of _0xeee1f6)_0x4dcc0e['push'](..._0x59a8b1['getMarkers']());return _0x57aaf5(_0x369063['editing'],_0x4dcc0e);},'type':()=>'suggestion-'+_0x563e37['view']['type']}),_0x16c6e5['_bindAnnotationToEditors'](_0x5b8ba9,_0x528413),_0x1bfab9['add'](_0x528413),_0xacddf6['registerAnnotation'](_0x528413);}['_destroyController'](_0x24b9c2){const _0x3d99dc=this['editor']['plugins']['get']('CommentsRepository'),_0x30050b=this['editor']['plugins']['get']('Annotations'),_0x44da10=this['_suggestionToController']['get'](_0x24b9c2),_0x34d1ea=_0x44da10['view'],_0x5cbd80=_0x30050b['getByInnerView'](_0x34d1ea);_0x3d99dc['_unbindEditors'](_0x34d1ea),_0x5cbd80&&_0x30050b['remove'](_0x5cbd80),this['_suggestionToController']['delete'](_0x24b9c2),this['_viewToController']['delete'](_0x34d1ea),_0x44da10['destroy']();}['_updateController'](_0x119b74){if(!_0x119b74['isInContent']||!this['_suggestionToController']['has'](_0x119b74))return;const _0x2494a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c182=this['_suggestionToController']['get'](_0x119b74),_0x131b4a=_0x119b74['getAllAdjacentSuggestions']();_0x17c182['view']['descriptionParts']=_0x2494a6['descriptionFactory']['getDescriptions'](_0x131b4a);}['destroy'](){for(const _0xc68572 of this['_suggestionToController']['keys']())this['_destroyController'](_0xc68572);for(const _0x5c406c of this['_annotationViews']['values']())_0x5c406c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x36cddb){return'model'in _0x36cddb;}class k extends _0x159581{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x540c8b){this['editor']['plugins']['get'](p)['adapter']=_0x540c8b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x35eb51){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x35eb51);}['getSuggestions']({skipNotAttached:_0xc59571=!0x1,toJSON:_0x676bbf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xc59571,'toJSON':_0x676bbf});}['getSuggestion'](_0x44d627){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x44d627);}}const w=['Pagination'];class T extends _0x159581{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x35103d=this['editor'];if(_0x35103d['config']['define']('trackChangesData.editorCreator',_0x1e187b=>{const _0x60d7b5=_0x35103d['model']['document']['getRootNames']()['reduce']((_0x2826fd,_0xe3f97a)=>(_0x2826fd[_0xe3f97a]='',_0x2826fd),{});return _0x35103d['constructor']['create'](_0x60d7b5,_0x1e187b);}),'function'!=typeof _0x35103d['config']['get']('trackChangesData')['editorCreator'])throw new _0x281979('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5c2386){return N(this['editor'],!0x0,_0x5c2386);}['getDataWithDiscardedSuggestions'](_0x2a413e){return N(this['editor'],!0x1,_0x2a413e);}}class D extends _0x159581{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe382f1){function _0x1f1366(_0x5e9b70){return _0x5e9b70['map'](_0x5d896d=>String['fromCharCode'](_0x5d896d))['join']('');}super(_0xe382f1),this['result']='end',_0xe382f1[_0x1f1366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1366([0x76,0x69,0x65,0x77])][_0x1f1366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1366([0x61,0x75,0x74,0x6f]),_0xe382f1[_0x1f1366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1f1366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1366([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1f1366([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1f1366([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4d0c73){return void 0x0!==_0x4d0c73['getRootsAttributes'];}async function N(_0xb25bb8,_0x4c1fec,_0x5c8c5e){const _0x826da8=_0x5502fd(_0xb25bb8,w);_0x826da8['plugins']['push'](p,D),_0x826da8['rootsAttributes']=Fe(_0xb25bb8)?_0xb25bb8['getRootsAttributes']():void 0x0;const _0x2bd8fb=document['createDocumentFragment'](),_0x2e8f23=_0xb25bb8['config']['get']('trackChangesData')['editorCreator'],_0x558d60=await _0x2e8f23(_0x826da8,()=>function(_0x1f7dfb){const _0x1eaf27=document['createElement']('div');return _0x1f7dfb['appendChild'](_0x1eaf27),_0x1eaf27;}(_0x2bd8fb));!function(_0xab0d2,_0x5cffd2){const _0x520cd0=_0xab0d2['model']['document']['getRootNames']()['reduce']((_0x5f8e21,_0x399d8b)=>(_0x5f8e21[_0x399d8b]=_0xab0d2['data']['get']({'rootName':_0x399d8b}),_0x5f8e21),{}),_0x4316ee=_0xab0d2['plugins']['get']('Users')['users']['map'](_0x3c9e56=>({'id':_0x3c9e56['id'],'name':_0x3c9e56['name']})),_0x5aafff=_0xab0d2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x436f57=_0xab0d2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ee500=_0x5cffd2['plugins']['get']('Users'),_0x48bc95=_0x5cffd2['plugins']['get']('TrackChangesEditing'),_0x4de507=_0x5cffd2['plugins']['get']('CommentsRepository');for(const _0x15d30a of _0x4de507['getCommentThreads']())_0x15d30a['remove']();for(const _0x4afd9e of _0x4316ee)_0x4ee500['getUser'](_0x4afd9e['id'])||_0x4ee500['addUser'](_0x4afd9e);_0x4ee500['me']||_0x4ee500['useAnonymousUser']();for(const _0xe67d9d of _0x436f57)_0x4de507['addCommentThread'](_0xe67d9d);for(const _0xc5c7ea of _0x5aafff)_0x48bc95['addSuggestionData'](_0xc5c7ea);_0x5cffd2['data']['set'](_0x520cd0);}(_0xb25bb8,_0x558d60),_0x558d60['execute'](_0x4c1fec?'acceptAllSuggestions':'discardAllSuggestions');const _0x531f98=Fe(_0x558d60)?_0x558d60['getFullData'](_0x5c8c5e):_0x558d60['data']['get'](_0x5c8c5e);return await _0x558d60['destroy'](),_0x531f98;}class Me extends _0x16318d{['options'];constructor(_0x2b5bdb,_0xd3c9d5){super(_0x2b5bdb),this['options']=_0xd3c9d5,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x34c107,_0x254258){if(!this['element'])return;const _0x5858ca=[];for(const [_0x2d13aa,_0x2602bf]of _0x34c107){const _0x456bb5=document['createElement']('div');_0x456bb5['setAttribute']('data-ck-root-name',_0x2d13aa),_0x456bb5['className']=_0x2602bf['classes']+'\x20ck-track-changes-preview__root-container',_0x456bb5['innerHTML']=_0x2602bf['content'],_0x5858ca['push'](_0x456bb5);}_0x254258(this['element'],_0x5858ca),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5aed8f{constructor(_0x372356){super(_0x372356),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x299c17=this['editor'],_0x2eda62=_0x299c17['locale'],_0x364895=_0x299c17['plugins']['get']('Dialog');let _0x25432c;const _0x26dc39=function(_0x31ab22){const _0x5799b4={};if('editables'in _0x31ab22['ui']['view']){for(const [_0x4dada1,_0x33aaee]of Object['entries'](_0x31ab22['ui']['view']['editables']))_0x5799b4[_0x4dada1]=_0x33aaee['element'];}else _0x5799b4[_0x31ab22['model']['document']['getRootNames']()[0x0]]=_0x31ab22['ui']['view']['editable']['element'];return _0x5799b4;}(_0x299c17),_0x30df84=function(_0x65b013){let _0x40bea1=0x0;for(const _0x4c46d3 of Object['values'](_0x65b013))_0x40bea1=Math['max'](_0x40bea1,_0x4c46d3['getBoundingClientRect']()['width']);let _0x2d66b4=0x0;for(const _0x259340 of Object['values'](_0x65b013))_0x2d66b4+=_0x259340['getBoundingClientRect']()['height'];const _0x273d52=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x589eb3=Math['min'](_0x2d66b4,_0x273d52);return{'width':_0x40bea1,'height':_0x589eb3};}(_0x26dc39);_0x364895['show']({'id':'finalContentPreview','title':c(_0x2eda62,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2eda62,{'dialogRects':_0x30df84}),'onHide':()=>{_0x25432c['detachFromDom']();},'onShow':()=>{_0x299c17['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x272884=>{const _0x58cb99=this['_standarizeRootsData'](_0x272884,_0x299c17,_0x26dc39);_0x364895['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x58cb99,_0x299c17['config']['get']('trackChanges.preview.renderFunction'));}),_0x25432c=new _0x558bee(_0x2eda62,[_0x364895['view']]),_0x25432c['attachToDom'](),_0x25432c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x299c17['once']('destroy',()=>{_0x25432c['detachFromDom']();});const _0x859fc=_0x364895['view']['headerView']['class'];_0x364895['view']['headerView']['class']=_0x859fc?_0x859fc+'\x20ck-reset_all':'ck-reset_all',_0x364895['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x364895['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2e5cfb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1dd6f2=_0x2e5cfb['previewMode'],_0x2eebf1={};if('$labels'===_0x1dd6f2){for(const _0x4cce5e of _0x2e5cfb['getMergeFieldsIds']())_0x2eebf1[_0x4cce5e]=_0x2e5cfb['getLabel'](_0x4cce5e)||_0x4cce5e;}else{const _0x26aaf2='$defaultValues'===_0x1dd6f2?_0x2e5cfb['getDefaultValues']():_0x2e5cfb['getDataSetValues'](_0x1dd6f2,!0x0);for(const _0x1c6612 of Object['entries'](_0x26aaf2)){const [_0x77b88a,_0x26e5bb]=_0x1c6612;_0x2eebf1[_0x77b88a]=null!==_0x26e5bb?_0x26e5bb:_0x2e5cfb['getLabel'](_0x77b88a)||_0x77b88a;}}return{'mergeFieldsData':_0x2eebf1};}['_standarizeRootsData'](_0x285d32,_0x31eb9b,_0x1d4227){let _0x1f8bef;if('string'==typeof _0x285d32){const _0x401c2b=_0x31eb9b['model']['document']['getRootNames']()[0x0];_0x1f8bef={[_0x401c2b]:_0x285d32};}else _0x1f8bef=_0x285d32;const _0x502697=this['_fixMediaEmbeds'](_0x1f8bef,_0x31eb9b),_0x1476f0=function(_0x1bf371,_0x106ef9){for(const [_0x294884,_0x7ffed1]of _0x1bf371)_0x7ffed1['classes']=_0x106ef9[_0x294884]['classList']['value']['replace']('ck-focused','');return _0x1bf371;}(this['_sortRoots'](_0x31eb9b)['reduce']((_0x5bcee3,_0x1b7df0)=>(_0x5bcee3['push']([_0x1b7df0,{'content':_0x502697[_0x1b7df0],'classes':''}]),_0x5bcee3),[]),_0x1d4227);return _0x1476f0;}['_fixMediaEmbeds'](_0x42d096,_0x9b59c6){if(!_0x9b59c6['plugins']['has']('MediaEmbedEditing'))return _0x42d096;const _0x5832f5=_0x9b59c6['plugins']['get']('MediaEmbedEditing');for(const [_0xd07438,_0x274ee8]of Object['entries'](_0x42d096)){const _0x19a653=document['createElement']('div');_0x19a653['innerHTML']=_0x274ee8,(_0x19a653['querySelectorAll']('figure.media')['forEach'](_0x289bd9=>{const _0xe4387f=_0x289bd9['querySelector']('oembed');if(_0xe4387f){const _0x394d73=_0xe4387f['getAttribute']('url');if(_0x394d73){const _0x2c3d11=_0x5832f5['registry']['getMediaViewElement'](new _0x21e3ff(_0x9b59c6['editing']['view']['document']),_0x394d73,{'elementName':'','renderForEditingView':!0x0}),_0x286a6e=document['createElement']('div');_0x286a6e['classList']['add']('ck-media__wrapper'),_0x2c3d11['render'](_0x286a6e,_0x9b59c6['editing']['view']['domConverter']),_0xe4387f['replaceWith'](_0x286a6e);}}}),_0x42d096[_0xd07438]=_0x19a653['innerHTML']);}return _0x42d096;}['_sortRoots'](_0x182741){if(!function(_0x543a9f){return void 0x0!==_0x543a9f['getRootsAttributes'];}(_0x182741))return _0x182741['model']['document']['getRootNames']();const _0x5dd54e=[],_0x3515e2=new Map();for(const _0x109f03 of _0x182741['model']['document']['getRootNames']()){const _0xf04bce=_0x182741['editing']['view']['getDomRoot'](_0x109f03)['getClientRects']()['item'](0x0);_0x5dd54e['push'](_0x109f03),_0x3515e2['set'](_0x109f03,_0xf04bce);}return _0x5dd54e['sort']((_0x236211,_0x5e0a01)=>{const _0x168b81=_0x3515e2['get'](_0x236211),_0x1275da=_0x3515e2['get'](_0x5e0a01);return _0x168b81['y']-_0x1275da['y']||_0x168b81['x']-_0x1275da['x'];}),_0x5dd54e;}}class te extends _0x159581{static get['requires'](){return[T,_0x2ec598];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x363727){super(_0x363727),_0x363727['commands']['add']('previewFinalContent',new re(this['editor'])),_0x363727['config']['define']('trackChanges.preview.renderFunction',(_0x19d9f2,_0x376c5d)=>{for(const _0x47d1b2 of _0x376c5d)_0x19d9f2['appendChild'](_0x47d1b2);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x473ad7,Plugin as _0x34c566,PendingActions as _0x2fd413}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2b6413,ObservableMixin as _0x167997,uid as _0x18c716,priorities as _0x74c243,insertToPriorityArray as _0x56afb7,logWarning as _0x5c1391,getEnvKeystrokeText as _0x2e4f9c,FocusTracker as _0x5478d8,KeystrokeHandler as _0x6510,Collection as _0x31c05c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1a9227,IconCancel as _0x28059a,IconTrackChanges as _0x24eff7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x3adef7,ViewCollection as _0xaccf69,FocusCycler as _0x3f08ed,ViewModel as _0x42d424,createDropdown as _0x45b565,SplitButtonView as _0x33594b,addListToDropdown as _0x460393,MenuBarMenuView as _0x3179a1,MenuBarMenuListView as _0x3b0906,ListSeparatorView as _0x749f78,MenuBarMenuListItemView as _0x402aaf,MenuBarMenuListItemButtonView as _0x546d40,BodyCollection as _0x178aac,Dialog as _0x156ea0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39c23b,hashObject as _0x5e4436,surroundingMarkersDetector as _0x38c199,FOCUS_ANNOTATION_KEYSTROKE as _0x51c160,AriaDescriptionView as _0x3cbb68,setupThreadKeyboardNavigation as _0x4fdd80,trimHtml as ti,UserView as _0x3ddb6c,LateFocusButtonView as _0x161237,getDateTimeFormatter as _0x309745,getAllMarkersDomElementsSorted as _0x13d673,sanitizeEditorConfig as _0x519a21}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x54c254,LiveRange as _0x1f3765,LivePosition as _0x5a4d15,DowncastWriter as _0x30a57d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5c3d4a,toWidget as _0x5e451d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x243c44,set as _0x5f306a,isEqual as _0x2fcc92,unset as _0xe1b8af,omit as Et}from'es-toolkit/compat';import{Delete as _0x2e6fc9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1c9ae7,ShiftEnter as _0x4d24c3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x473ad7{['_enabledCommands'];constructor(_0x3649b8,_0x1c5564){super(_0x3649b8),this['_enabledCommands']=_0x1c5564,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x1a6402 of this['editor']['commands']['commands']())_0x1a6402['affectsData']&&!this['_enabledCommands']['has'](_0x1a6402)&&_0x1a6402['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2dae32 of this['editor']['commands']['commands']())_0x2dae32['affectsData']&&!this['_enabledCommands']['has'](_0x2dae32)&&_0x2dae32['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x473ad7{['_suggestions'];constructor(_0x2bcc03,_0x47dc2f){super(_0x2bcc03),this['_suggestions']=_0x47dc2f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17a7b2){const _0x598f6c=this['_suggestions']['get'](_0x17a7b2);if(!_0x598f6c)throw new _0x2b6413('track-changes-accept-suggestion-not-found',this);const _0x1556d4=_0x598f6c['getRanges']();this['editor']['model']['canEditAt'](_0x1556d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x598f6c);}}class R extends _0x473ad7{['_suggestions'];constructor(_0x2f3a8c,_0x4c9499){super(_0x2f3a8c),this['_suggestions']=_0x4c9499,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x10c032){const _0x3432af=this['_suggestions']['get'](_0x10c032);if(!_0x3432af)throw new _0x2b6413('track-changes-discard-suggestion-not-found',this);const _0x4a2f5d=_0x3432af['getRanges']();this['editor']['model']['canEditAt'](_0x4a2f5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3432af);}}function ls(_0x1ce2ac,_0x3062e4){let _0x3cc8c2='';return _0x3cc8c2+=_0x1ce2ac['split']('*')['map']((_0x558c01,_0x584041)=>_0x584041%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x558c01)+'</span>':nn(_0x558c01))['join'](''),_0x3062e4&&(_0x3cc8c2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3062e4['value']+'\x22\x20title=\x22'+_0x3062e4['title']+'\x22></span>'),_0x3cc8c2;}function nn(_0x125025){const _0x195113=document['createElement']('span');return _0x195113['innerText']=_0x125025,_0x195113['innerHTML'];}function ts(_0x2c67b8){return _0x2c67b8['sort']((_0x524bfb,_0x3dcf14)=>'deletion'==_0x524bfb['type']&&'deletion'!=_0x3dcf14['type']?-0x1:'deletion'!=_0x524bfb['type']&&'deletion'==_0x3dcf14['type']?0x1:0x0);}function Xt(_0x47c075,_0x151681){let _0x52ad63,_0x52792e=0x0;const _0x49f4df=[],_0x553b86=_0x151681['schema'];for(;_0x52792e<_0x47c075['length'];){const _0x192373=_0x47c075[_0x52792e],_0xd08e03=_0x47c075[_0x52792e+0x1];_0x52ad63||(_0x52ad63=_0x151681['createPositionBefore'](_0x192373)),on(_0x151681,_0x192373,_0xd08e03)||(_0x49f4df['push'](_0x151681['createRange'](_0x52ad63,_0x553b86['isObject'](_0x192373)?_0x151681['createPositionAfter'](_0x192373):_0x151681['createPositionAt'](_0x192373,'end'))),_0x52ad63=null),_0x52792e++;}return _0x49f4df;}function on(_0x277937,_0x290774,_0x1b7acb){if(!_0x1b7acb)return!0x1;const _0x284dca=_0x277937['createPositionAfter'](_0x290774),_0x50fd18=_0x277937['createPositionBefore'](_0x1b7acb);return _0x284dca['isTouching'](_0x50fd18);}function rs(_0x4b3ad2,_0x255590,_0x365a13){for(;_0x365a13['length'];){const _0x43834e=_0x365a13['splice'](0x0,0x64);_0x4b3ad2['change'](()=>{for(const _0x33c638 of _0x43834e)_0x33c638['isInContent']&&_0x255590['execute'](_0x33c638['id']);});}}class x extends _0x473ad7{['_command'];['_suggestions'];constructor(_0x3e5d9e,_0x4a8ee4,_0x14cd33){super(_0x3e5d9e),this['_command']=_0x4a8ee4,this['_suggestions']=_0x14cd33,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37d942=Array['from'](this['_suggestions']['values']())['some'](_0x1ce968=>_0x1ce968['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x37d942;}['execute'](){const _0x1564c7=ts(Array['from'](this['_suggestions']['values']()));for(const _0xa074c3 of _0x1564c7){const _0x4543c3=_0xa074c3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4543c3))return;}rs(this['editor']['model'],this['_command'],_0x1564c7);}}class E extends _0x473ad7{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5f06ea,_0x25b425,_0xdc5dd7){super(_0x5f06ea),this['_command']=_0x25b425,this['_suggestions']=_0xdc5dd7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d7d33=this['editor']['model']['document']['selection'],_0xac8c99=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x28cfe3,_0x5bc158){const _0x58c145=Array['from'](_0x28cfe3['getRanges']()),_0x2de0f5=new Set();for(const _0x25ddc9 of _0x5bc158)if(_0x25ddc9['isInContent']){for(const _0x26463a of _0x58c145)for(const _0x1d6686 of _0x25ddc9['getRanges']())(_0x26463a['isIntersecting'](_0x1d6686)||_0x28cfe3['isCollapsed']&&!_0x25ddc9['isMultiRange']&&_0x25ddc9['next']&&_0x1d6686['end']['isTouching'](_0x26463a['start']))&&_0x2de0f5['add'](_0x25ddc9);}return _0x2de0f5;}(_0x1d7d33,_0xac8c99),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ff720=ts(Array['from'](this['_selectedSuggestions']));for(const _0x177bce of _0x2ff720){const _0x4e2ec9=_0x177bce['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e2ec9))return;}rs(this['editor']['model'],this['_command'],_0x2ff720);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x167997(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16633b,_0x5e570f){super(),this['id']=_0x5e570f['id'],this['type']=_0x5e570f['type'],this['subType']=_0x5e570f['subType']||null,this['author']=_0x5e570f['author'],this['creator']=_0x5e570f['creator']||_0x5e570f['author'],this['isExternal']=Boolean(_0x5e570f['attributes']&&_0x5e570f['attributes']['@external']),this['data']=null,this['_model']=_0x16633b,this['_onAccept']=_0x5e570f['onAccept'],this['_onDiscard']=_0x5e570f['onDiscard'],this['_onAttributesChange']=_0x5e570f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e570f['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x2d5dbd=this;for(;_0x2d5dbd['previous'];)_0x2d5dbd=_0x2d5dbd['previous'];return _0x2d5dbd;}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'](_0x3452a5){this['_markerNames']['add'](_0x3452a5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x345e5f=>this['_model']['markers']['get'](_0x345e5f))['filter'](_0x2ecfee=>_0x2ecfee);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x570a4e=>{for(const _0x4409f0 of this['getMarkers']())_0x570a4e['removeMarker'](_0x4409f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x5c5bd2){this['_model']['change'](_0x483c50=>{_0x483c50['removeMarker'](_0x5c5bd2);}),this['_markerNames']['delete'](_0x5c5bd2);}['addRange'](_0x490474){const _0x5ebb2a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x5ebb2a),this['_model']['change'](_0x4dd6b3=>{_0x4dd6b3['addMarker'](_0x5ebb2a,{'range':_0x490474,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x343969){for(const _0x3887a4 of this['getRanges']())if(_0x3887a4['isIntersecting'](_0x343969))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x417a9c=>_0x417a9c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x179e8a,_0x15d501)=>[..._0x179e8a,..._0x15d501['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4da3ed=this['getRanges']();if(0x1!=_0x4da3ed['length'])return null;const _0x54173a=_0x4da3ed[0x0],_0x333acc=_0x54173a['start']['nodeAfter'],_0x5bc3fc=_0x54173a['end']['nodeBefore'];return _0x333acc instanceof _0x54c254?_0x333acc!=_0x5bc3fc?null:_0x333acc: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 _0x5a7707=[];let _0x38db14=this['head'];for(;_0x38db14;)_0x5a7707['push'](_0x38db14),_0x38db14=_0x38db14['next'];return _0x5a7707;}['setAttribute'](_0x3ccdbb,_0xc8b9d3){const _0x4e9ba1=_0x243c44(this['attributes']);_0x5f306a(_0x4e9ba1,_0x3ccdbb,_0xc8b9d3),_0x2fcc92(_0x4e9ba1,this['attributes'])||(this['attributes']=_0x4e9ba1,this['_onAttributesChange'](_0x4e9ba1));}['removeAttribute'](_0x332cce){const _0x5897fd=_0x243c44(this['attributes']);_0xe1b8af(_0x5897fd,_0x332cce),_0x2fcc92(_0x5897fd,this['attributes'])||(this['attributes']=_0x5897fd,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 _0x18c716()['substr'](0x1,0x5);}}function c(_0x3c1464,_0x3d06a1,_0x5a0c57){const _0x33f221=_0x3c1464['t'],t=_0x3c1464['t'];switch(_0x3d06a1){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x5a0c57);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a0c57);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a0c57);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a0c57);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a0c57);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',_0x5a0c57);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a0c57);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x5a0c57);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a0c57);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a0c57);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a0c57);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a0c57);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a0c57);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a0c57);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a0c57);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a0c57);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a0c57);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a0c57);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a0c57);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a0c57);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a0c57);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a0c57);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a0c57);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a0c57);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a0c57);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a0c57);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a0c57);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a0c57);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a0c57);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a0c57);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a0c57);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'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a0c57);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'},_0x5a0c57);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a0c57);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a0c57);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5a0c57);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a0c57);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 _0x33f221({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a0c57);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x33f221({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a0c57);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a0c57);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5a0c57);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5a0c57);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5a0c57);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3d06a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3e54d4,_0x861321){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3e54d4,this['_locale']=_0x861321;}['getDescriptions'](_0x14212e){const _0x2e4d14=[],_0x448b81=new Set(),_0x534d80=new Set();for(let _0x50a6b8=0x0;_0x50a6b8<_0x14212e['length'];_0x50a6b8++){const _0x2a68a6=_0x14212e[_0x50a6b8];if(!_0x2a68a6['isInContent'])continue;const _0x4e89fd=this['_handleCustomCallbackDescription'](_0x2a68a6);if(_0x4e89fd){if(null!=_0x2a68a6['subType']){if(_0x448b81['has'](_0x2a68a6['subType']))continue;_0x448b81['add'](_0x2a68a6['subType']);}_0x2e4d14['push'](_0x4e89fd);}else{if('attribute'!=_0x2a68a6['type'])'insertion'!=_0x2a68a6['type']&&'deletion'!=_0x2a68a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2e4d14,_0x2a68a6,_0x14212e[_0x50a6b8+0x1]);else{const _0x580402=_0x2a68a6['data']['key'];if(_0x534d80['has'](_0x580402))continue;_0x534d80['add'](_0x2a68a6['data']['key']),_0x580402==u?this['_handleRenameSuggestionDescription'](_0x2e4d14,_0x2a68a6):this['_handleAttributeSuggestionDescription'](_0x2e4d14,_0x2a68a6);}}}return this['_resolveDescriptionItems'](_0x2e4d14);}['registerDescriptionCallback'](_0x75535){this['_customCallbacks']['push'](_0x75535);}['registerElementLabel'](_0xc53da3,_0x5c537a,_0x596123=_0x74c243['normal']){'function'==typeof _0xc53da3?_0x56afb7(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc53da3,'label':_0x5c537a,'priority':_0x596123}):this['_itemLabels']['set'](_0xc53da3,_0x5c537a);}['registerAttributeLabel'](_0x4eb1ff,_0x1f0c0d){this['_attributeLabels']['set'](_0x4eb1ff,_0x1f0c0d);}['getItemLabel'](_0x3a848a,_0x1787b0=0x1){let _0x5bab4a;for(const _0x110477 of this['_itemLabelsCallbacks'])if(_0x110477['matchingCallback'](_0x3a848a)){_0x5bab4a=_0x110477['label'];break;}return _0x5bab4a||(_0x5bab4a=this['_itemLabels']['get'](_0x3a848a['name'])),_0x5bab4a?_0x5bab4a(_0x1787b0):0x1!==_0x1787b0?_0x1787b0+'\x20'+_0x3a848a['name']+'s':''+_0x3a848a['name'];}['_addDescriptionItems'](_0x2d40fe,_0x1a11b6){const _0x552c4c=_0x1a11b6['getFirstRange']()['getWalker'](),_0x3117f6='insertion'==_0x1a11b6['type']?'add':'remove';for(const _0x2349c5 of _0x552c4c){const _0x34aab2=_0x2349c5['item'],_0x15d62f=_0x2d40fe[_0x2d40fe['length']-0x1];if(_0x34aab2['is']('$textProxy'))_0x15d62f&&_0x15d62f['type']['indexOf']('Container')>-0x1&&_0x2d40fe['pop'](),_0x15d62f&&'text'==_0x15d62f['type']?_0x15d62f[_0x3117f6]+=_0x34aab2['data']:_0x2d40fe['push']({'type':'text','add':'add'==_0x3117f6?_0x34aab2['data']:'','remove':'remove'==_0x3117f6?_0x34aab2['data']:''});else{if(this['_schema']['isObject'](_0x34aab2)){const _0x149630=_0x34aab2;if(_0x15d62f&&_0x15d62f['type']['indexOf']('Container')>-0x1&&_0x2d40fe['pop'](),'elementEnd'==_0x2349c5['type'])continue;_0x15d62f&&_0x15d62f['type']==_0x3117f6+'Object'&&_0x15d62f['element']['name']==_0x149630['name']?_0x15d62f['quantity']++:_0x2d40fe['push']({'type':_0x3117f6+'Object','element':_0x149630,'quantity':0x1}),_0x552c4c['skip'](_0x412c7d=>!('elementEnd'==_0x412c7d['type']&&_0x412c7d['item']==_0x34aab2));}else{if(this['_schema']['checkChild'](_0x34aab2,'$text')||_0x34aab2['is']('element','softBreak')){const _0x2e00c9=_0x34aab2;if('add'==_0x3117f6&&'elementStart'==_0x2349c5['type']||'remove'==_0x3117f6&&'elementEnd'==_0x2349c5['type'])continue;if(_0x15d62f&&-0x1==_0x15d62f['type']['indexOf']('Container')){'text'==_0x15d62f['type']&&(_0x15d62f[_0x3117f6]+='\x0a');continue;}let _0xc62250;if(_0xc62250='add'==_0x3117f6?_0x2e00c9['nextSibling']&&!this['_schema']['isObject'](_0x2e00c9['nextSibling'])?_0x2e00c9['nextSibling']:null:_0x2e00c9['previousSibling']&&!this['_schema']['isObject'](_0x2e00c9['previousSibling'])?_0x2e00c9['previousSibling']:null,_0x2e00c9['isEmpty']||_0xc62250&&_0xc62250['isEmpty']){const _0x1088b1=_0xc62250&&_0xc62250['isEmpty']?_0xc62250:_0x2e00c9;_0x15d62f&&_0x15d62f['type']==_0x3117f6+'EmptyContainer'&&_0x15d62f['element']['name']==_0x1088b1['name']?_0x15d62f['quantity']++:_0x2d40fe['push']({'type':_0x3117f6+'EmptyContainer','element':_0x1088b1,'quantity':0x1});}else _0x2d40fe['push']({'type':_0x3117f6+'Container','element':_0x2e00c9});}}}}}['_resolveDescriptionItems'](_0x4ac517){const _0x1237de=this['_locale'],_0x4f7eee=[],_0x2e4ef3=[],_0x4f1122=[];for(const _0x2d0462 of _0x4ac517)switch(_0x2d0462['type']){case'text':if(_0x2d0462['add']=_0x2d0462['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d0462['remove']=_0x2d0462['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d0462['add']&&''!=_0x2d0462['remove']){_0x4f7eee['push']({'type':'replace','content':c(_0x1237de,'REPLACE_TEXT',['\x22'+_0x2d0462['remove']+'\x22','\x22'+_0x2d0462['add']+'\x22'])});continue;}if(null!=_0x2d0462['add']['match'](/^ +$/)){_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Insert:*\x20%0',c(_0x1237de,'ELEMENT_SPACE',_0x2d0462['add']['length']))});continue;}if(null!=_0x2d0462['remove']['match'](/^ +$/)){_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Remove:*\x20%0',c(_0x1237de,'ELEMENT_SPACE',_0x2d0462['remove']['length']))});continue;}if(''!=_0x2d0462['add']){_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Insert:*\x20%0','\x22'+_0x2d0462['add']+'\x22')});continue;}_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Remove:*\x20%0','\x22'+_0x2d0462['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Insert:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Remove:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'addContainer':_0x4f7eee['push']({'type':'insertion','content':c(_0x1237de,'*Split:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'removeContainer':_0x4f7eee['push']({'type':'deletion','content':c(_0x1237de,'*Merge:*\x20%0',this['getItemLabel'](_0x2d0462['element'],_0x2d0462['quantity']))});continue;case'addFormat':_0x2e4ef3['push'](_0x2d0462['key']);continue;case'removeFormat':_0x4f1122['push'](_0x2d0462['key']);continue;default:_0x4f7eee['push'](_0x2d0462);}if(_0x2e4ef3['length']){const _0x17fb4f=_0x2e4ef3['map'](_0x2b5c6e=>this['_attributeLabels']['has'](_0x2b5c6e)?this['_attributeLabels']['get'](_0x2b5c6e):_0x2b5c6e)['join'](',\x20');_0x4f7eee['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x17fb4f)});}if(_0x4f1122['length']){const _0x23bb33=_0x4f1122['map'](_0xce7ddd=>this['_attributeLabels']['has'](_0xce7ddd)?this['_attributeLabels']['get'](_0xce7ddd):_0xce7ddd)['join'](',\x20');_0x4f7eee['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x23bb33)});}return _0x4f7eee;}['_handleCustomCallbackDescription'](_0x371a42){for(const _0x83ca3f of this['_customCallbacks']){const _0x455683=_0x83ca3f(_0x371a42);if(_0x455683&&'type'in _0x455683)return _0x455683;}}['_handleAttributeSuggestionDescription'](_0x27932f,_0x450dcb){const _0x2cc76d=_0x450dcb['data'],_0x30c052=void 0x0===_0x2cc76d['newValue']?'removeFormat':'addFormat';_0x27932f['push']({'type':_0x30c052,'key':_0x2cc76d['key']});}['_handleRenameSuggestionDescription'](_0x13d1dd,_0x44a13b){_0x13d1dd['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44a13b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1896e5,_0x4a205b,_0x17a2a7){if(this['_addDescriptionItems'](_0x1896e5,_0x4a205b),_0x17a2a7&&_0x17a2a7['getFirstRange']()&&!_0x4a205b['getFirstRange']()['end']['isEqual'](_0x17a2a7['getFirstRange']()['start'])){const _0x23a1ca=_0x1896e5[_0x1896e5['length']-0x1],_0xfbc3ed='insertion'==_0x4a205b['type']?'add':'remove';_0x23a1ca&&'text'==_0x23a1ca['type']&&(_0x23a1ca[_0xfbc3ed]+='\x0a');}}}class U extends _0x34c566{['afterInit'](){const _0x6eec8b=this['editor'],_0x22c29d=_0x6eec8b['plugins']['get']('TrackChangesEditing');_0x6eec8b['commands']['get']('showAIAssistant')&&_0x22c29d['enableCommand']('showAIAssistant');}}class V extends _0x34c566{['afterInit'](){const _0x250e3f=this['editor'],_0x4f8e2b=_0x250e3f['locale'];if(!_0x250e3f['plugins']['has']('AlignmentEditing'))return;const _0x536d1f=_0x250e3f['plugins']['get']('TrackChangesEditing');_0x536d1f['enableDefaultAttributesIntegration']('alignment'),_0x536d1f['registerBlockAttribute']('alignment'),_0x536d1f['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4f8e2b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dc143=this['editor'],_0x3aafe2=_0x5dc143['locale'];_0x5dc143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6e91=>{if('formatBlock'!=_0x4b6e91['type'])return;const {data:_0x35c6a0}=_0x4b6e91;if(_0x35c6a0&&'alignment'==_0x35c6a0['commandName']){const _0x2fc9a4=_0x35c6a0['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3aafe2,'*Format:*\x20%0',function(_0x16dccb){switch(_0x16dccb){case'left':return c(_0x3aafe2,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3aafe2,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3aafe2,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3aafe2,'FORMAT_JUSTIFY_TEXT');}}(_0x2fc9a4))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x34c566{['afterInit'](){const _0x21774c=this['editor'],_0x5cab5e=_0x21774c['plugins']['get']('TrackChangesEditing'),_0x47a82a=_0x21774c['locale'];for(const _0x962f96 of Qt){if(!_0x21774c['plugins']['has'](_0x962f96))continue;const _0x48a199=_0x962f96['slice'](0x0,-0x7)['toLowerCase'](),_0x262db1='FORMAT_'+_0x48a199['toUpperCase']();_0x5cab5e['enableDefaultAttributesIntegration'](_0x48a199),_0x5cab5e['registerInlineAttribute'](_0x48a199),_0x5cab5e['descriptionFactory']['registerAttributeLabel'](_0x48a199,c(_0x47a82a,_0x262db1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x465799=this['editor'],_0x426b11=_0x465799['locale'],_0x43df86=_0x465799['plugins']['get']('TrackChangesEditing');function _0x2efe5c(_0x33a260,_0x1762d6){_0x43df86['descriptionFactory']['registerDescriptionCallback'](_0xa0d369=>{if('formatInline'!=_0xa0d369['type'])return;const {data:_0x151e6f}=_0xa0d369;return _0x151e6f&&_0x151e6f['commandName']===_0x33a260?_0x151e6f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x426b11,'*Format:*\x20%0',_0x1762d6)}:{'type':'format','content':c(_0x426b11,'*Remove\x20format:*\x20%0',_0x1762d6)}:void 0x0;});}_0x2efe5c('bold',c(_0x426b11,'FORMAT_BOLD')),_0x2efe5c('italic',c(_0x426b11,'FORMAT_ITALIC')),_0x2efe5c('underline',c(_0x426b11,'FORMAT_UNDERLINE')),_0x2efe5c('code',c(_0x426b11,'FORMAT_CODE')),_0x2efe5c('strikethrough',c(_0x426b11,'FORMAT_STRIKETHROUGH')),_0x2efe5c('subscript',c(_0x426b11,'FORMAT_SUBSCRIPT')),_0x2efe5c('superscript',c(_0x426b11,'FORMAT_SUPERSCRIPT'));}}class G extends _0x34c566{['afterInit'](){const _0xe2958=this['editor'],_0x1947e0=_0xe2958['locale'];if(!_0xe2958['plugins']['has']('BlockQuoteEditing'))return;const _0x201d94=_0xe2958['plugins']['get']('TrackChangesEditing'),_0x491106=this['editor']['commands']['get']('blockQuote');_0x201d94['enableCommand']('blockQuote',(_0x14713a,_0x289206={})=>{const _0x2fdbe8=this['editor']['model']['document']['selection'],_0x5aa19e=_0x289206&&void 0x0!==_0x289206['forceValue']?_0x289206['forceValue']:!_0x491106['value'];let _0x5ceedd=[];if(_0x5aa19e){const _0x2d134a=Array['from'](_0x2fdbe8['getSelectedBlocks']())['filter'](_0x5172fc=>Yt(_0x5172fc)||function(_0x3ab1d9,_0x4fc5ab){const _0x3c79e7=_0x4fc5ab['checkChild'](_0x3ab1d9['parent'],'blockQuote'),_0x324f89=_0x4fc5ab['checkChild'](['$root','blockQuote'],_0x3ab1d9);return _0x3c79e7&&_0x324f89;}(_0x5172fc,this['editor']['model']['schema']));_0x5ceedd=Xt(_0x2d134a,_0xe2958['model']);}else{const _0x2180c8=Array['from'](_0x2fdbe8['getSelectedBlocks']())['filter'](_0x398b89=>Yt(_0x398b89));_0x5ceedd=Xt(_0x2180c8,_0xe2958['model']);}_0xe2958['model']['change'](()=>{for(const _0x4d2fc2 of _0x5ceedd)_0x201d94['markBlockFormat'](_0x4d2fc2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5aa19e}]});});}),_0x201d94['descriptionFactory']['registerDescriptionCallback'](_0x89d8fd=>{const {data:_0x5d9f16}=_0x89d8fd;if(_0x5d9f16&&'blockQuote'==_0x5d9f16['commandName']){const _0x33b736=c(_0x1947e0,'ELEMENT_BLOCK_QUOTE');return _0x5d9f16['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1947e0,'*Set\x20format:*\x20%0',_0x33b736)}:{'type':'format','content':c(_0x1947e0,'*Remove\x20format:*\x20%0',_0x33b736)};}});}}function Yt(_0x239ad5){return'blockQuote'==_0x239ad5['parent']['name'];}class L extends _0x34c566{['afterInit'](){const _0x37aab4=this['editor'],_0x5e4a77=_0x37aab4['locale'],_0x52875e=_0x37aab4['plugins']['get']('TrackChangesEditing');_0x37aab4['plugins']['has']('BookmarkEditing')&&(_0x52875e['enableCommand']('insertBookmark'),_0x52875e['enableDefaultAttributesIntegration']('updateBookmark'),_0x52875e['registerBlockAttribute']('bookmarkId'),_0x52875e['descriptionFactory']['registerDescriptionCallback'](_0x1efdbe=>{if('insertion'!=_0x1efdbe['type']&&'deletion'!=_0x1efdbe['type']&&'attribute'!=_0x1efdbe['type'])return;const _0x3496f5=_0x1efdbe['getContainedElement']();if(null==_0x3496f5)return;if(!_0x3496f5['is']('element','bookmark'))return;const _0xb125a1=_0x3496f5['getAttribute']('bookmarkId');if('insertion'==_0x1efdbe['type'])return{'type':'insertion','content':c(_0x5e4a77,'*Insert:*\x20%0','\x22'+_0xb125a1+'\x22\x20'+c(_0x5e4a77,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1efdbe['type'])return{'type':'deletion','content':c(_0x5e4a77,'*Remove:*\x20%0','\x22'+_0xb125a1+'\x22\x20'+c(_0x5e4a77,'ELEMENT_BOOKMARK'))};const {data:_0x45d582}=_0x1efdbe;if(!_0x45d582||'bookmarkId'!=_0x45d582['key'])return;return{'type':'format','content':c(_0x5e4a77,'*Set\x20bookmark:*\x20%0','\x22'+_0x45d582['newValue']+'\x22')};}));}}class J extends _0x34c566{['afterInit'](){const _0x35c900=this['editor'];_0x35c900['plugins']['has']('CaseChange')&&(_0x35c900['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x35c900['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x35c900['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x34c566{['afterInit'](){const _0x1393b6=this['editor'];_0x1393b6['commands']['get']('ckbox')&&_0x1393b6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x34c566{['afterInit'](){const _0x10c375=this['editor'];if(!_0x10c375['plugins']['has']('CodeBlock'))return;const _0x10720b=_0x10c375['plugins']['get']('TrackChangesEditing'),_0x437169=_0x10c375['locale'],_0x2c7150=_0x10c375['config']['get']('codeBlock')['languages'],_0x17f434=_0x10c375['commands']['get']('codeBlock');_0x10720b['enableCommand']('indentCodeBlock'),_0x10720b['enableCommand']('outdentCodeBlock'),_0x10720b['enableCommand']('codeBlock',(_0x8d5603,_0x4c9990={})=>{const _0x2ec9d6=_0x10c375['model'],_0x3e2ad0=_0x10c375['model']['document']['selection'],_0x1dc36d=_0x4c9990&&void 0x0!==_0x4c9990['forceValue']?_0x4c9990['forceValue']:!_0x17f434['value'];let _0x21e3df;_0x4c9990['language']||(_0x4c9990['language']=_0x2c7150[0x0]['language']),_0x21e3df=_0x1dc36d?Array['from'](_0x3e2ad0['getSelectedBlocks']())['filter'](_0x117b52=>oo(_0x117b52)||function(_0x4ad73e,_0x530b39){if(_0x4ad73e['is']('rootElement')||_0x530b39['isLimit'](_0x4ad73e))return!0x1;return _0x530b39['checkChild'](_0x4ad73e['parent'],'codeBlock');}(_0x117b52,_0x2ec9d6['schema'])):Array['from'](_0x3e2ad0['getSelectedBlocks']())['filter'](_0x57a8ff=>oo(_0x57a8ff));const _0x1fafe2=Xt(_0x21e3df,_0x2ec9d6);_0x2ec9d6['change'](()=>{for(const _0x1a691d of _0x1fafe2)_0x10720b['markBlockFormat'](_0x1a691d,{'commandName':'codeBlock','commandParams':[{..._0x4c9990,'forceValue':_0x1dc36d}],'formatGroupId':'blockName'});});}),(_0x10720b['descriptionFactory']['registerElementLabel']('codeBlock',_0x142d5b=>c(_0x437169,'ELEMENT_CODE_BLOCK',_0x142d5b)),_0x10720b['descriptionFactory']['registerDescriptionCallback'](_0x320720=>{if('formatBlock'!=_0x320720['type'])return;const _0x45c00f=_0x437169['t'],{data:_0x458b06}=_0x320720;if(!_0x458b06||'codeBlock'!=_0x458b06['commandName'])return;const _0x4fc3b0=_0x458b06['commandParams'][0x0]['language'],_0x22be68=_0x45c00f(_0x2c7150['find'](_0x586f06=>_0x586f06['language']===_0x4fc3b0)['label'])['toLowerCase']();return _0x458b06['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x437169,'*Set\x20format:*\x20%0',c(_0x437169,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x22be68+')')}:{'type':'format','content':c(_0x437169,'*Remove\x20format:*\x20%0',c(_0x437169,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1e9835){return'codeBlock'==_0x1e9835['name'];}class q extends _0x34c566{['afterInit'](){const _0x3f115a=this['editor'];if(!_0x3f115a['plugins']['has']('CommentsEditing'))return;_0x3f115a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x5f2b97,_0x9833db,_0x6f461c){const _0x4acf7e=[];for(const _0x3dfc0a of _0x9833db['getItems']())_0x3dfc0a['hasAttribute'](_0x5f2b97)&&_0x4acf7e['push'](_0x6f461c['createRangeOn'](_0x3dfc0a));return _0x4acf7e;}function De(_0x361c06,_0x4ec819,{showActiveMarker:_0x394ac4=!0x0}={}){const _0x1c46d8=_0x361c06['plugins']['get']('TrackChangesEditing');return(_0x306bb4,_0x1b7989,_0x14b326)=>{if(!_0x14b326['consumable']['test'](_0x1b7989['markerRange'],_0x306bb4['name']))return;const _0x3d05df=_0x1b7989['markerRange']['getWalker'](),_0x31c432=_0x1b7989['markerRange']['start'],_0x39be12=_0x361c06['model']['schema'];let _0x455518=null,_0x300381=null,_0x2e6c4f=!0x1,_0x5721d8=!0x1;for(const _0x53ecc8 of _0x3d05df){const _0x3c1a3e=_0x53ecc8['item'];_0x2e6c4f=_0x2e6c4f||_0x39be12['isContent'](_0x3c1a3e);const _0x176592=_0x14b326['mapper']['toViewElement'](_0x3c1a3e);if(_0x176592&&_0x176592['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53ecc8['type']&&(_0x39be12['isBlock'](_0x3c1a3e)&&!_0x39be12['isLimit'](_0x3c1a3e)&&(_0x3c1a3e['nextSibling']||_0x31c432['isAtEnd']?_0x455518&&_0x455518['parent']==_0x3c1a3e||(_0x455518=_0x3c1a3e,_0x12030b(_0x53ecc8['previousPosition']),_0x5721d8=!0x0):_0x300381=_0x300381||_0x53ecc8['previousPosition']));}function _0x12030b(_0x52384c){const {authorId:_0x19d645}=_0x1c46d8['_splitMarkerName'](_0x1b7989['markerName']),_0x334ff5=_0x14b326['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ec819,'data-author-id':_0x19d645}),_0x35bfe8=_0x14b326['mapper']['toViewPosition'](_0x52384c);_0x394ac4&&_0x1c46d8['activeMarkers']['includes'](_0x1b7989['markerName'])&&_0x14b326['writer']['addClass']('ck-suggestion-marker--active',_0x334ff5),_0x14b326['writer']['insert'](_0x35bfe8,_0x334ff5),_0x14b326['mapper']['bindElementToMarker'](_0x334ff5,_0x1b7989['markerName']);}_0x2e6c4f||_0x5721d8||!_0x300381||_0x12030b(_0x300381);};}class z extends _0x34c566{static get['requires'](){return[_0x2e6fc9];}['init'](){const _0x5be41b=this['editor'],_0x5ea4c2=_0x5be41b['plugins']['get']('TrackChangesEditing');_0x5ea4c2['enableCommand']('delete');const _0x1f92fc=_0x5be41b['commands']['get']('deleteForward');_0x5ea4c2['enableCommand']('deleteForward',(_0x53def6,_0x106a85={})=>{const _0x4e7fa0=_0x5be41b['model']['createSelection'](_0x5be41b['model']['document']['selection']);_0x4e7fa0['isCollapsed']&&_0x5be41b['model']['modifySelection'](_0x4e7fa0,{'direction':'forward','unit':_0x106a85['unit']});const _0x4a9001=_0x4e7fa0['getFirstRange'](),_0x65e207=_0x1f3765['fromRange'](_0x4a9001);let _0x365d00;_0x53def6(_0x106a85),_0x365d00='$graveyard'==_0x65e207['root']['rootName']?_0x5be41b['model']['createRange'](_0x4a9001['start']):_0x5be41b['model']['createRange'](_0x65e207['start'],_0x65e207['end']),_0x65e207['detach'](),_0x5be41b['model']['enqueueChange'](_0x1f92fc['buffer']['batch'],_0x15c24e=>{_0x1f92fc['buffer']['lock'](),_0x15c24e['setSelection'](_0x15c24e['createRange'](_0x365d00['end'])),_0x1f92fc['buffer']['unlock']();});}),_0x5be41b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5be41b,'merge'),{'priority':'high'}),_0x5be41b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b5a33,_0x3c4f4c,_0x26cac5)=>{_0x26cac5['options']['showSuggestionHighlights']&&De(_0x5be41b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b5a33,_0x3c4f4c,_0x26cac5);},{'priority':'high'}),_0x5be41b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x37e21b,_0x82565d,_0x36eb0b)=>{const _0x17bd9c=_0x36eb0b['mapper']['markerNameToElements'](_0x82565d['markerName']);if(_0x17bd9c){for(const _0x1c0cb8 of _0x17bd9c)_0x1c0cb8['is']('uiElement')&&(_0x36eb0b['mapper']['unbindElementFromMarkerName'](_0x1c0cb8,_0x82565d['markerName']),_0x36eb0b['writer']['remove'](_0x1c0cb8));}},{'priority':'high'});}}class W extends _0x34c566{['afterInit'](){const _0x4a56f3=this['editor'];if(!_0x4a56f3['plugins']['has']('ListEditing'))return;const _0x54d53b=_0x4a56f3['locale'],_0x329b73=_0x4a56f3['plugins']['get']('TrackChangesEditing'),_0x2aaceb=_0x4a56f3['plugins']['has']('TodoListEditing'),_0x5d0a31=!!_0x4a56f3['config']['get']('list.multiBlock');function _0x4833bd(_0xf3e5d6){return{'type':'format','content':''+c(_0x54d53b,'*Set\x20format:*\x20%0',_0xf3e5d6)};}function _0x560dcc(_0x24328f){return{'type':'format','content':''+c(_0x54d53b,'*Remove\x20format:*\x20%0',_0x24328f)};}_0x329b73['enableDefaultAttributesIntegration']('numberedList'),_0x329b73['enableDefaultAttributesIntegration']('bulletedList'),_0x329b73['enableDefaultAttributesIntegration']('customNumberedList'),_0x329b73['enableDefaultAttributesIntegration']('customBulletedList'),_0x329b73['enableDefaultAttributesIntegration']('indentList'),_0x329b73['enableDefaultAttributesIntegration']('outdentList'),_0x329b73['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x329b73['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x329b73['registerBlockAttribute']('listItemId'),_0x329b73['registerBlockAttribute']('listType'),_0x329b73['registerBlockAttribute']('listIndent'),_0x5d0a31&&(_0x329b73['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x329b73['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2aaceb&&(_0x329b73['enableDefaultAttributesIntegration']('todoList'),_0x329b73['enableDefaultAttributesIntegration']('checkTodoList'),_0x329b73['registerBlockAttribute']('todoListChecked'),_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x1ba3b4=>{const {data:_0x3110e8}=_0x1ba3b4;if(_0x3110e8&&'todoListChecked'==_0x3110e8['key'])return{'type':'format','content':_0x3110e8['newValue']?c(_0x54d53b,'*Check\x20item*'):c(_0x54d53b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4f76b5=>{if(_0x4f76b5['batch']['isUndo'])return!0x1;let _0x495af1=!0x1;const _0x5b9fda=_0x329b73['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e515a=>'todoListChecked'===_0x329b73['_getAttributeKey'](_0x4e515a));for(const _0x3764a6 of _0x5b9fda){'todo'!=_0x3764a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x329b73['_findSuggestions'](_0x3764a6['getFirstRange'](),'attribute')['find'](_0x2ce3f2=>'listType'===_0x329b73['_getAttributeKey'](_0x2ce3f2['suggestion']))||(_0x4f76b5['removeMarker'](_0x3764a6['getFirstMarker']()),_0x495af1=!0x0));}return _0x495af1;})),_0x329b73['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x54d53b,'FORMAT_INDENT'));const _0x3e8aa1={'type':'format','content':''};_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x13ea84=>{const {data:_0xf8c88c}=_0x13ea84;if(!_0xf8c88c||'listType'!=_0xf8c88c['key'])return;let _0x3a6635=_0x13ea84['head'];for(;_0x3a6635;){if(_0x3a6635['data']&&(('listStyle'==_0x3a6635['data']['key']||'listMarkerStyle'==_0x3a6635['data']['key'])&&(_0x3a6635['data']['newValue']&&'default'!=_0x3a6635['data']['newValue']||'default'!=_0x3a6635['data']['oldValue']&&!_0xf8c88c['newValue'])||!_0x5d0a31&&_0x3a6635['data']['key']==u))return _0x3e8aa1;_0x3a6635=_0x3a6635['next'];}if(null==_0xf8c88c['newValue'])switch(_0xf8c88c['oldValue']){case'bulleted':return _0x560dcc(c(_0x54d53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x560dcc(c(_0x54d53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x560dcc(c(_0x54d53b,'ELEMENT_TODO_LIST'));}switch(_0xf8c88c['newValue']){case'bulleted':return _0x4833bd(c(_0x54d53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4833bd(c(_0x54d53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4833bd(c(_0x54d53b,'ELEMENT_TODO_LIST'));}}),_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x3eff11=>{const {data:_0x2e3367}=_0x3eff11;if(_0x2e3367&&'listIndent'==_0x2e3367['key'])return null==_0x2e3367['newValue']||null==_0x2e3367['oldValue']&&0x0==_0x2e3367['newValue']?_0x3e8aa1:void 0x0;}),_0x329b73['descriptionFactory']['registerDescriptionCallback'](_0x52350a=>{if('attribute'!=_0x52350a['type'])return;const {data:_0x4e9e35}=_0x52350a;if(!_0x4e9e35||'listItemId'!=_0x4e9e35['key'])return;const _0xc5c3bf=Te(_0x52350a);return'newValue'==_0xc5c3bf?{'type':'format','content':c(_0x54d53b,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc5c3bf?{'type':'format','content':c(_0x54d53b,'*Split:*\x20list\x20item')}:_0x3e8aa1;}),_0x4a56f3['model']['document']['registerPostFixer'](_0x2da188=>this['listItemIdFixer'](_0x2da188)),_0x4a56f3['model']['document']['registerPostFixer'](_0x19a79a=>this['noTrackChangesFixer'](_0x19a79a)),_0x4a56f3['model']['document']['on']('change:data',(_0x5cee91,_0x5024ba)=>{if(_0x5024ba['isUndo']||!_0x5024ba['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5595ca){if(_0x5595ca['batch']['isUndo']||!_0x5595ca['batch']['isLocal'])return!0x1;let _0xf56449=!0x1;const _0x24a06c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c97bf=>_0x5c97bf['data']&&'listItemId'==_0x5c97bf['data']['key'])['filter'](_0x4295d1=>_0x4295d1['data']['newValue']&&_0x4295d1['data']['oldValue']);for(const _0x441998 of _0x24a06c)Te(_0x441998)||(_0x5595ca['removeMarker'](_0x441998['getFirstMarker']()),_0xf56449=!0x0);return _0xf56449;}['noTrackChangesFixer'](_0x134cca){if(_0x134cca['batch']['isUndo']||!_0x134cca['batch']['isLocal'])return!0x1;const _0x1a396a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1a396a['trackChangesCommand']['value'])return!0x1;let _0x29a180=!0x1;const _0x3dda5b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5179f4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12e05b=>'attribute'==_0x12e05b['type'])['filter'](_0x207cbf=>_0x3dda5b['includes'](_0x207cbf['attributeKey']));if(0x0==_0x5179f4['length'])return _0x29a180;for(const _0x424f8b of _0x5179f4){const _0x469765=_0x1a396a['_findSuggestions'](_0x424f8b['range'],'attribute')['filter'](_0x45a708=>!_0x45a708['meta']['isNextTo'])['map'](_0x40fde4=>_0x40fde4['suggestion'])['filter'](_0x3332c9=>{const _0x36a81e=_0x1a396a['_getAttributeKey'](_0x3332c9);return _0x3dda5b['includes'](_0x36a81e);});if(_0x469765['length']){for(const _0x56f937 of _0x469765)_0x134cca['removeMarker'](_0x56f937['getFirstMarker']());_0x29a180=!0x0;}}return _0x29a180;}['assureChains'](){const _0x2d802a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5273=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5a357f;const _0x2c514c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1fb7e9=>{if(_0x1fb7e9['data']['oldRange']||!_0x1fb7e9['data']['newRange'])return null;if(!_0x1fb7e9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b345f}=_0x2d802a['_splitMarkerName'](_0x1fb7e9['name']);if(!_0x2d802a['hasSuggestion'](_0x2b345f))return null;const _0x16baa1=_0x2d802a['getSuggestion'](_0x2b345f);return _0x4a5273['includes'](_0x16baa1['data']['key']);})['map'](_0x25dfaf=>{const {id:_0x32e607}=_0x2d802a['_splitMarkerName'](_0x25dfaf['name']),_0x1e0438=_0x2d802a['getSuggestion'](_0x32e607);return _0x5a357f=_0x1e0438['attributes']['groupId'],_0x1e0438['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2c514c['size'])return;const _0x14409b=_0x2d802a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d9a3=>'attribute'==_0x20d9a3['type']&&_0x20d9a3['data']&&_0x4a5273['includes'](_0x20d9a3['data']['key'])&&_0x20d9a3['attributes']['groupId']!=_0x5a357f)['map'](_0x247506=>({'listItem':_0x247506['getFirstRange']()['start']['nodeAfter'],'groupId':_0x247506['attributes']['groupId']})),_0x56bd6e=new Set();for(const {groupId:_0x24de41,listItem:_0x4e11a1}of _0x14409b)_0x2c514c['has'](_0x4e11a1)&&_0x56bd6e['add'](_0x24de41);for(const _0x31491d of _0x2d802a['getSuggestions']())_0x56bd6e['has'](_0x31491d['attributes']['groupId'])&&_0x31491d['setAttribute']('groupId',_0x5a357f);}['_supportLegacySuggestions'](){const _0x112bd0=this['editor'],_0xfd1a9a=_0x112bd0['locale'],_0x5b08b4=_0x112bd0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b08b4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x167aa3,_0x406241){const _0x143f70=[];for(let _0x3bd321 of _0x167aa3)_0x3bd321['start']['nodeAfter']===_0x3bd321['end']['parent']&&(_0x3bd321=_0x112bd0['model']['createRange'](_0x112bd0['model']['createPositionAt'](_0x3bd321['start']['nodeAfter'],0x0))),_0x143f70['push'](_0x3bd321);_0x112bd0['model']['change'](_0x5caafa=>{const _0x21db04=_0x112bd0['model']['document']['selection'],_0x351555=Array['from'](_0x21db04['getRanges']())['map'](_0x561f4c=>_0x1f3765['fromRange'](_0x561f4c));_0x5caafa['setSelection'](_0x143f70),_0x112bd0['commands']['get'](_0x406241['commandName'])['refresh'](),_0x406241['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x112bd0['execute'](_0x406241['commandName'],..._0x406241['commandParams']),_0x5caafa['setSelection'](_0x351555);for(const _0x428adf of _0x351555)_0x428adf['detach']();});}),_0x5b08b4['descriptionFactory']['registerElementLabel'](function(_0x2cadb0){const _0x4f313a=!_0x112bd0['model']['schema']['isObject'](_0x2cadb0),_0x4d8d9e=_0x2cadb0['previousSibling'],_0x33d564=_0x2cadb0['nextSibling'],_0x4697fa=_0x2cadb0['getAttribute']('listItemId'),_0x378e17=!_0x4d8d9e||_0x4d8d9e['getAttribute']('listItemId')!==_0x4697fa,_0x125a28=!_0x33d564||_0x33d564['getAttribute']('listItemId')!==_0x4697fa;return _0x4f313a&&Boolean(_0x4697fa)&&_0x378e17&&_0x125a28;},_0x143c21=>c(_0xfd1a9a,'ELEMENT_LIST_ITEM',_0x143c21));}['_registerLegacyDescription'](){const _0x39f5cb=this['editor'],_0x18e3da=_0x39f5cb['locale'];function _0x4b4560(_0x4a5353){const _0x1c4415=_0x39f5cb['commands']['get']('bulletedList')['value'],_0xe66681=_0x39f5cb['commands']['get']('numberedList')['value'];return'numberedList'===_0x4a5353?_0x1c4415:_0xe66681;}_0x39f5cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x190ff7){if('formatBlock'!=_0x190ff7['type'])return;const {data:_0x20e1a2}=_0x190ff7;if(!_0x20e1a2)return;let _0x515f87,_0x24bd33,_0x3ec698,_0x2d9137;switch(_0x20e1a2['commandName']){case'bulletedList':_0x3ec698=_0x20e1a2['commandParams'][0x0]['forceValue'],_0x2d9137=_0x4b4560(_0x20e1a2['commandName']),_0x515f87=_0x3ec698?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d9137&&_0x39f5cb['config']['get']('list.multiBlock')||(_0x515f87='*Change\x20to:*\x20%0'),_0x24bd33={'type':'format','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3ec698=_0x20e1a2['commandParams'][0x0]['forceValue'],_0x2d9137=_0x4b4560(_0x20e1a2['commandName']),_0x515f87=_0x3ec698?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2d9137&&_0x39f5cb['config']['get']('list.multiBlock')||(_0x515f87='*Change\x20to:*\x20%0'),_0x24bd33={'type':'format','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x515f87='*Indent:*\x20%0',_0x24bd33={'type':'format','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x515f87=function(_0x248985){const _0x312515=_0x248985['getFirstRange']();let _0x1582fb=_0x312515['start']['nodeAfter'];for(;_0x1582fb&&_0x312515['containsItem'](_0x1582fb);){if(_0x1582fb['getAttribute']('listIndent')>0x0)return!0x1;_0x1582fb=_0x1582fb['nextSibling'];}return!0x0;}(_0x190ff7)?c(_0x18e3da,'*Format:*\x20remove\x20from\x20%0',c(_0x18e3da,function(_0x5ad842){return'ELEMENT_'+_0x5ad842['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x190ff7))):c(_0x18e3da,'*Outdent:*\x20%0',c(_0x18e3da,'ELEMENT_LIST_ITEM')),_0x24bd33={'type':'format','content':_0x515f87};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20e1a2['multipleBlocks']&&(_0x515f87='*Merge:*\x20%0',_0x24bd33={'type':'deletion','content':c(_0x18e3da,_0x515f87,c(_0x18e3da,'ELEMENT_LIST_ITEM'))});}return _0x24bd33;});}}function Te(_0x460fe7){let _0x24ef0b=_0x460fe7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x24ef0b;){const _0x2b6f37=_0x24ef0b['getAttribute']('listItemId');if(!_0x2b6f37)return!0x1;if(_0x2b6f37==_0x460fe7['data']['newValue'])return'newValue';if(_0x2b6f37==_0x460fe7['data']['oldValue'])return'oldValue';_0x24ef0b=_0x24ef0b['previousSibling'];}return!0x1;}class Se extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x352d9b=this['editor']['config']['get']('list.properties'),_0x1d7306=this['editor']['plugins']['get']('TrackChangesEditing');_0x352d9b['styles']&&(_0x1d7306['enableDefaultAttributesIntegration']('listStyle'),_0x1d7306['registerBlockAttribute']('listStyle')),_0x352d9b['reversed']&&(_0x1d7306['enableDefaultAttributesIntegration']('listReversed'),_0x1d7306['registerBlockAttribute']('listReversed')),_0x352d9b['startIndex']&&(_0x1d7306['enableDefaultAttributesIntegration']('listStart'),_0x1d7306['registerBlockAttribute']('listStart'));const _0x4ec962={'type':'format','content':''};_0x1d7306['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x28de38=this['editor']['locale'];_0x1d7306['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x28de38,'FORMAT_LIST_REVERSED')),_0x1d7306['descriptionFactory']['registerDescriptionCallback'](_0x3c4f9a=>{const {data:_0x32e27d}=_0x3c4f9a;if(_0x32e27d&&'listReversed'==_0x32e27d['key'])return null==_0x32e27d['newValue']||0x0==_0x32e27d['newValue']&&null==_0x32e27d['oldValue']?_0x4ec962:void 0x0;}),_0x1d7306['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x28de38,'FORMAT_LIST_START')),_0x1d7306['descriptionFactory']['registerDescriptionCallback'](_0x1f007c=>{const {data:_0x57e5da}=_0x1f007c;if(_0x57e5da&&'listStart'==_0x57e5da['key'])return null==_0x57e5da['newValue']||0x1==_0x57e5da['newValue']&&null==_0x57e5da['oldValue']?_0x4ec962:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b0ea5=>{if(_0x4b0ea5['batch']['isUndo'])return!0x1;let _0x29a859=!0x1;const _0x40c43e=_0x1d7306['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3635d8=>{const _0x5dba55=_0x1d7306['_getAttributeKey'](_0x3635d8);return'listStart'==_0x5dba55||'listReversed'==_0x5dba55;});for(const _0x505a23 of _0x40c43e){const _0x366f00=_0x505a23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x366f00||'customNumbered'==_0x366f00)continue;_0x1d7306['_findSuggestions'](_0x505a23['getFirstRange'](),'attribute')['find'](_0x271318=>'listType'==_0x1d7306['_getAttributeKey'](_0x271318['suggestion']))||(_0x4b0ea5['removeMarker'](_0x505a23['getFirstMarker']()),_0x29a859=!0x0);}return _0x29a859;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c2ed8){const _0x5546b3=this['editor']['locale'],{data:_0x31a21d}=_0x1c2ed8,_0x3571c0={'type':'format','content':''};if(!_0x31a21d||'listStyle'!=_0x31a21d['key'])return;if(!_0x31a21d['oldValue'])return'default'==_0x31a21d['newValue']?_0x3571c0:{'type':'format','content':''+c(_0x5546b3,'*Set\x20format:*\x20%0',c(_0x5546b3,this['_getTranslationKeyForListStyle'](_0x31a21d['newValue'])))};if(!_0x31a21d['newValue']){if('default'==_0x31a21d['oldValue'])return _0x3571c0;let _0x3dcf1b=_0x1c2ed8['head'];for(;_0x3dcf1b;){if(_0x3dcf1b['data']&&'listType'==_0x3dcf1b['data']['key']&&_0x3dcf1b['data']['newValue'])return _0x3571c0;_0x3dcf1b=_0x3dcf1b['next'];}return{'type':'format','content':''+c(_0x5546b3,'*Remove\x20format:*\x20%0',c(_0x5546b3,this['_getTranslationKeyForListStyle'](_0x31a21d['oldValue'])))};}if('default'!=_0x31a21d['newValue'])return{'type':'format','content':''+c(_0x5546b3,'*Set\x20format:*\x20%0',c(_0x5546b3,this['_getTranslationKeyForListStyle'](_0x31a21d['newValue'])))};let _0x4ef9fa=_0x1c2ed8['head'];for(;_0x4ef9fa;){if(_0x4ef9fa['data']&&'listType'==_0x4ef9fa['data']['key']&&_0x4ef9fa['data']['newValue']&&_0x4ef9fa['data']['oldValue'])return _0x3571c0;_0x4ef9fa=_0x4ef9fa['next'];}return{'type':'format','content':c(_0x5546b3,'*Set\x20format:*\x20%0',c(_0x5546b3,'ELEMENT_'+_0x1c2ed8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x585e5f=this['editor'],_0x19536a=_0x585e5f['locale'];_0x585e5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x416ba2=>{if('formatBlock'!=_0x416ba2['type'])return;const {data:_0x2aa25e}=_0x416ba2;if(!_0x2aa25e)return;let _0x4ef826,_0x469f1e;switch(_0x2aa25e['commandName']){case'listStyle':_0x4ef826='*Change\x20to:*\x20%0',_0x469f1e={'type':'format','content':c(_0x19536a,_0x4ef826,c(_0x19536a,this['_getTranslationKeyForListStyle'](_0x2aa25e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ef826=_0x2aa25e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x469f1e={'type':'format','content':c(_0x19536a,_0x4ef826)};break;case'listStart':_0x4ef826='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x469f1e={'type':'format','content':c(_0x19536a,_0x4ef826,_0x2aa25e['commandParams'][0x0]['startIndex'])};}return _0x469f1e;});}['_getTranslationKeyForListStyle'](_0x3d2eb1){return'ELEMENT_'+function(_0x238d0b){if(_e['includes'](_0x238d0b))return'bulleted';if(Re['includes'](_0x238d0b))return'numbered';return null;}(_0x3d2eb1)['toUpperCase']()+'_LIST_'+_0x3d2eb1['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x34c566{static get['requires'](){return[_0x1c9ae7];}['init'](){const _0x860ce8=this['editor'],_0x557b94=_0x860ce8['plugins']['get']('TrackChangesEditing'),_0x2471cf=_0x860ce8['commands']['get']('enter');_0x557b94['enableCommand']('enter',()=>{_0x860ce8['model']['change'](_0x49eccb=>{const _0x1b8d8a=_0x860ce8['model']['document']['selection'],_0x2e1455=_0x1b8d8a['getFirstPosition'](),_0x56e12c=_0x1f3765['fromRange'](_0x1b8d8a['getFirstRange']());if(_0x2471cf['enterBlock'](_0x49eccb)){const _0x51f90f=_0x860ce8['model']['createPositionAt'](_0x2e1455['parent']['nextSibling'],0x0),_0x293069=_0x49eccb['createRange'](_0x2e1455,_0x51f90f);_0x557b94['markInsertion'](_0x293069);}else _0x49eccb['setSelection'](_0x49eccb['createRange'](_0x56e12c['end']));_0x56e12c['detach'](),_0x2471cf['fire']('afterExecute',{'writer':_0x49eccb});});}),_0x860ce8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x860ce8,'split'),{'priority':'high'}),_0x860ce8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a9e61,_0x3ce7d1,_0x3d1f63)=>{const _0x51d884=_0x3d1f63['mapper']['markerNameToElements'](_0x3ce7d1['markerName']);if(_0x51d884){for(const _0x5b5bd4 of _0x51d884)_0x5b5bd4['hasClass']('ck-suggestion-marker-split')&&(_0x3d1f63['mapper']['unbindElementFromMarkerName'](_0x5b5bd4,_0x3ce7d1['markerName']),_0x3d1f63['writer']['remove'](_0x5b5bd4));}},{'priority':'high'}),_0x860ce8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3eec23,_0x3e1ba6,_0x4fc75a)=>{_0x4fc75a['options']['showSuggestionHighlights']&&De(_0x860ce8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3eec23,_0x3e1ba6,_0x4fc75a);},{'priority':'high'});}}class Y extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x440fd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x440fd7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x440fd7['enableCommand']('findNext'),_0x440fd7['enableCommand']('findPrevious'),_0x440fd7['enableCommand']('replace'),_0x440fd7['enableCommand']('replaceAll');}['handleFindCommand'](_0x28feaa,_0x1b7eed,_0x4381bd={}){const _0x4ce539=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x28feaa(_0x9d621e=>{let _0x2a0ba1=('string'==typeof _0x1b7eed?_0x4ce539['findByTextCallback'](_0x1b7eed,_0x4381bd):_0x1b7eed)(_0x9d621e);Array['isArray'](_0x2a0ba1)&&(_0x2a0ba1={'results':_0x2a0ba1,'searchText':'string'==typeof _0x1b7eed?_0x1b7eed:''});const _0x5a010c=_0x2a0ba1['results']['filter'](_0x15041e=>!0x1===this['_isInDeletionRange'](_0x15041e,_0x9d621e['item']));return{..._0x2a0ba1,'results':_0x5a010c};},_0x4381bd);}['_isInDeletionRange'](_0x388104,_0x39cb6e){const _0x26977f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39cb6e,_0x388104['start']),this['editor']['model']['createPositionAt'](_0x39cb6e,_0x388104['end']));for(const _0x389edd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x26977f['getIntersection'](_0x389edd['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x34c566{['afterInit'](){const _0x5629c8=this['editor']['locale'],_0x4f92c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x454fa8,commandName:_0x46cacf}of to)this['editor']['plugins']['has'](_0x454fa8)&&(_0x4f92c9['enableDefaultAttributesIntegration'](_0x46cacf),_0x4f92c9['registerInlineAttribute'](_0x46cacf));_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5629c8,'FORMAT_FONT_SIZE')),_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5629c8,'FORMAT_FONT_FAMILY')),_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5629c8,'FORMAT_FONT_COLOR')),_0x4f92c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5629c8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d0204=this['editor'],_0x3b0262=_0x2d0204['locale'];_0x2d0204['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc4b1=>{const _0x884725=_0x3b0262['t'];if('formatInline'!=_0x2fc4b1['type'])return;const {data:_0x1b2d9e}=_0x2fc4b1;if(null!=_0x1b2d9e){if('fontSize'==_0x1b2d9e['commandName']){const _0x191ea3=_0x1b2d9e['commandParams'][0x0]['value'];if(_0x191ea3){const _0x3fa7b1=_0x884725(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4a268a=>_0x4a268a['model']==_0x191ea3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20size:*\x20%0',_0x3fa7b1)};}return{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b2d9e['commandName']){const _0x3ad1af=_0x1b2d9e['commandParams'][0x0]['value'];return _0x3ad1af?{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20family:*\x20%0',_0x3ad1af)}:{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b2d9e['commandName']){const _0x9204c5=_0x1b2d9e['commandParams'][0x0]['value'];if(_0x9204c5){const _0x3128ea=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb6c2c=>_0xb6c2c['model']==_0x9204c5);let _0x5c9ddf=_0x9204c5,_0x269900='';return _0x3128ea&&(_0x5c9ddf=_0x3128ea['label'],_0x269900=_0x884725(_0x5c9ddf)['toLowerCase']()),{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20color:*\x20%0',_0x269900)['trim'](),'color':{'value':_0x9204c5,'title':_0x269900||_0x5c9ddf}};}return{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b2d9e['commandName']){const _0x48a2ee=_0x1b2d9e['commandParams'][0x0]['value'];if(_0x48a2ee){const _0x33cdfe=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4e7a82=>_0x4e7a82['model']==_0x48a2ee);let _0x4c168b=_0x48a2ee,_0x46652a='';return _0x33cdfe&&(_0x4c168b=_0x33cdfe['label'],_0x46652a=_0x884725(_0x4c168b)['toLowerCase']()),{'type':'format','content':c(_0x3b0262,'*Set\x20font\x20background\x20color:*\x20%0',_0x46652a)['trim'](),'color':{'value':_0x48a2ee,'title':_0x46652a||_0x4c168b}};}return{'type':'format','content':c(_0x3b0262,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x34c566{['afterInit'](){const _0x307623=this['editor'],_0x5cf20f=_0x307623['plugins']['get']('TrackChangesEditing'),_0xf356a=_0x307623['commands']['get']('copyFormat'),_0x5b35b6=_0x307623['commands']['get']('pasteFormat');_0xf356a&&_0x5b35b6&&(_0x5cf20f['enableDefaultAttributesIntegration']('pasteFormat'),_0x5cf20f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x414756=this['editor'],_0x3aa84f=_0x414756['locale'];_0x414756['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb73064=>{if('formatBlock'!=_0xb73064['type']&&'formatInline'!=_0xb73064['type'])return;const {data:_0xb9aab6}=_0xb73064;if(_0xb9aab6&&'pasteFormat'===_0xb9aab6['commandName']){const _0x4a0e24=[],_0x40b319=_0xb9aab6['commandParams'][0x0];for(const [_0x1c903f,_0x536210]of Object['entries'](_0x40b319))_0x4a0e24['push'](ro(_0x414756,_0x1c903f,_0x536210));return _0x4a0e24['length']?{'type':'format','content':c(_0x3aa84f,'*Set\x20format\x20to:*\x20%0',_0x4a0e24['join'](',\x20'))}:{'type':'format','content':c(_0x3aa84f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x88c013,_0x2de237,_0x4575a9){const _0x9a4e6c=_0x88c013['locale']['t'],_0x1cfae2=_0x2de237['split'](/(?=[A-Z])/)['join']('\x20'),_0x540379=_0x9a4e6c(_0x1cfae2['charAt'](0x0)['toUpperCase']()+_0x1cfae2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4575a9)return _0x540379;if('fontColor'===_0x2de237||'fontBackgroundColor'===_0x2de237){const _0x16af90=Zt(_0x88c013['config']['get']('fontColor.colors'))['find'](_0x59d487=>_0x59d487['model']==_0x4575a9);return _0x540379+'\x20('+(_0x16af90?_0x9a4e6c(_0x16af90['label'])['toLowerCase']():_0x4575a9)+')';}if('fontSize'===_0x2de237&&isNaN(parseFloat(_0x4575a9))){const _0x53bd87=_0x88c013['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x88c013['config']['get']('fontSize.options'))['find'](_0x5ac5af=>_0x5ac5af['model']==_0x4575a9);return _0x540379+'\x20('+(_0x53bd87?_0x9a4e6c(_0x53bd87['title'])['toLowerCase']():_0x4575a9)+')';}return _0x540379+'\x20('+_0x4575a9+')';}class et extends _0x34c566{['_headingOptions'];['afterInit'](){const _0x290917=this['editor'];if(!_0x290917['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x290917['config']['get']('heading.options');const _0x348f03=_0x290917['locale'],_0x8df16f=_0x290917['plugins']['get']('TrackChangesEditing');_0x8df16f['enableDefaultAttributesIntegration']('heading');for(const _0x205afb of this['_headingOptions'])'paragraph'!=_0x205afb['model']&&_0x8df16f['descriptionFactory']['registerElementLabel'](_0x205afb['model'],_0x3be475=>{const _0x49143e=this['_getHeadingLevel'](_0x205afb['model']);return null!==_0x49143e?_0x38517a(_0x3be475,_0x49143e):_0x485121(_0x3be475,_0x205afb['title']);});function _0x38517a(_0x34a55f,_0xa883c9){return c(_0x348f03,'ELEMENT_HEADING',[_0x34a55f,_0xa883c9]);}function _0x485121(_0xfb4efe,_0x58cdb4){return c(_0x348f03,'ELEMENT_HEADING_CUSTOM',[_0xfb4efe,_0x58cdb4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e833=this['editor'],_0x55d496=_0x42e833['locale'];function _0x34897a(_0xfbf1ac,_0x56068e){return c(_0x55d496,'ELEMENT_HEADING_CUSTOM',[_0xfbf1ac,_0x56068e]);}_0x42e833['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197a84=>{if('formatBlock'!=_0x197a84['type'])return;const {data:_0x50a516}=_0x197a84;if(_0x50a516&&'heading'==_0x50a516['commandName']){const _0x36c492=_0x50a516['commandParams'][0x0]['value'],_0xe5414c=this['_getHeadingLevel'](_0x36c492);if(null!==_0xe5414c)return{'type':'format','content':c(_0x55d496,'*Change\x20to:*\x20%0',(_0x2df74d=0x1,_0x43abf5=_0xe5414c,c(_0x55d496,'ELEMENT_HEADING',[_0x2df74d,_0x43abf5])))};const _0x28af16=this['_headingOptions']['find'](_0x2f8ae6=>_0x2f8ae6['model']===_0x36c492)['title'];return{'type':'format','content':c(_0x55d496,'*Change\x20to:*\x20%0',_0x34897a(0x1,_0x28af16))};}var _0x2df74d,_0x43abf5;});}['_getHeadingLevel'](_0x29d3f1){const _0x543f61=_0x29d3f1['match'](/^heading(\d+)/);if(_0x543f61)return _0x543f61[0x1];const _0x6fb3f7=this['_headingOptions']?.['find'](_0x4c478a=>_0x4c478a['model']==_0x29d3f1);if(_0x6fb3f7&&_0x6fb3f7['view']){const _0x47f185=_0x6fb3f7['view'],_0x41cdf0=(_0x47f185['name']??_0x47f185)['match'](/^h(\d+)/);if(_0x41cdf0)return _0x41cdf0[0x1];}return null;}}class nt extends _0x34c566{['afterInit'](){const _0x110b73=this['editor'];if(!_0x110b73['plugins']['has']('HighlightEditing'))return;const _0x1a9e9b=_0x110b73['plugins']['get']('TrackChangesEditing'),_0x22707a=_0x110b73['locale'];_0x1a9e9b['enableDefaultAttributesIntegration']('highlight'),_0x1a9e9b['registerInlineAttribute']('highlight'),_0x1a9e9b['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x22707a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd80bc=this['editor'],_0x3896f1=_0xbd80bc['locale'];_0xbd80bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450c79=>{if('formatInline'!=_0x450c79['type'])return;const {data:_0x5be60e}=_0x450c79;if(_0x5be60e&&'highlight'==_0x5be60e['commandName']){const _0x116a9b=_0x3896f1['t'],_0x43ad73=_0x5be60e['commandParams'][0x0]['value'];if(_0x43ad73){const _0x1ae421=_0xbd80bc['config']['get']('highlight.options')['find'](_0x512a7e=>_0x512a7e['model']==_0x43ad73),_0x325f0b=_0x116a9b(_0x1ae421['title'])['toLowerCase']();return{'type':'format','content':c(_0x3896f1,'*Set\x20highlight:*\x20%0',_0x325f0b),'color':{'value':_0x1ae421['color'],'title':_0x1ae421['title']}};}return{'type':'format','content':c(_0x3896f1,'*Remove\x20highlight*',c(_0x3896f1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x34c566{['afterInit'](){const _0x443801=this['editor'];if(!_0x443801['plugins']['has']('HorizontalLineEditing'))return;_0x443801['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3cea7d=_0x443801['plugins']['get']('TrackChangesEditing'),_0x434c0c=_0x443801['locale'];_0x3cea7d['descriptionFactory']['registerElementLabel']('horizontalLine',_0xaefab6=>c(_0x434c0c,'ELEMENT_HORIZONTAL_LINE',_0xaefab6)),_0x443801['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40fc9b,{writer:_0x1cebe0,options:_0x310854})=>{if(!_0x310854['showSuggestionHighlights'])return null;const _0x512f1f=_0x1cebe0['createContainerElement']('div'),_0x5e8d13=_0x1cebe0['createEmptyElement']('hr');return _0x1cebe0['addClass']('ck-horizontal-line',_0x512f1f),_0x1cebe0['insert'](_0x1cebe0['createPositionAt'](_0x512f1f,0x0),_0x5e8d13),_0x512f1f;},'converterPriority':'high'});}}class st extends _0x34c566{['afterInit'](){const _0x2d85fd=this['editor'];if(!_0x2d85fd['plugins']['has']('HtmlEmbed'))return;const _0x12e582=_0x2d85fd['plugins']['get']('TrackChangesEditing'),_0x36f14b=_0x2d85fd['locale'];_0x12e582['descriptionFactory']['registerElementLabel']('rawHtml',_0x59e6ff=>c(_0x36f14b,'ELEMENT_HTML_EMBED',_0x59e6ff)),_0x12e582['enableDefaultAttributesIntegration']('htmlEmbed'),_0x12e582['registerBlockAttribute']('value'),_0x12e582['descriptionFactory']['registerDescriptionCallback'](_0x515e60=>{if('attribute'!=_0x515e60['type'])return;const {data:_0x824d9a}=_0x515e60;if(_0x824d9a&&'value'==_0x824d9a['key']&&_0x515e60['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59f411=c(_0x36f14b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x36f14b,'*Change\x20%0\x20content*',_0x59f411)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592971=this['editor'],_0x49407f=_0x592971['locale'];_0x592971['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeeac43=>{if('formatBlock'!=_0xeeac43['type'])return;const {data:_0x277537}=_0xeeac43;if(_0x277537&&'htmlEmbed'==_0x277537['commandName']){const _0x4e4111=c(_0x49407f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x49407f,'*Change\x20%0\x20content*',_0x4e4111)};}});}}class ot extends _0x34c566{['afterInit'](){const _0x5f55ac=this['editor'];if(!_0x5f55ac['plugins']['has']('ImageEditing'))return;const _0x54a59c=_0x5f55ac['plugins']['get']('TrackChangesEditing'),_0x1be24b=_0x5f55ac['plugins']['get']('ImageUtils'),_0x5d0556=_0x5f55ac['locale'];_0x54a59c['enableCommand']('insertImage'),_0x54a59c['descriptionFactory']['registerElementLabel']('imageBlock',_0x11be50=>c(_0x5d0556,'ELEMENT_IMAGE',_0x11be50)),_0x54a59c['descriptionFactory']['registerElementLabel']('imageInline',_0xbe11f2=>c(_0x5d0556,'ELEMENT_INLINE_IMAGE',_0xbe11f2)),_0x54a59c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5d0556,'ELEMENT_CAPTION')),_0x5f55ac['plugins']['has']('ImageUploadEditing')&&_0x54a59c['enableCommand']('uploadImage'),_0x5f55ac['plugins']['has']('ImageBlockEditing')&&_0x5f55ac['plugins']['has']('ImageInlineEditing')&&(_0x54a59c['enableCommand']('imageTypeInline',(_0x3a8987,_0x340e8f)=>{const _0xaf40f=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']);_0x5f55ac['model']['change'](()=>{_0x54a59c['markBlockFormat'](_0xaf40f,{'commandName':'imageTypeInline','commandParams':[_0x340e8f]},[],'convertBlockImageToInline');});}),_0x54a59c['enableCommand']('imageTypeBlock',(_0x3435f5,_0x3abff8)=>{_0x5f55ac['model']['change'](_0x559864=>{let _0x27ece0=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x148aab=_0x559864['createRangeOn'](_0x27ece0);const _0x276dcc=_0x5a4d15['fromPosition'](_0x148aab['start'],'toPrevious'),_0x267480=_0x5a4d15['fromPosition'](_0x148aab['end'],'toNext');_0x54a59c['forceDefaultExecution'](()=>_0x3435f5(_0x3abff8)),_0x27ece0=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x148aab=_0x559864['createRangeOn'](_0x27ece0);const _0x49a6e5=_0x559864['createRange'](_0x276dcc,_0x267480);_0x276dcc['detach'](),_0x267480['detach'](),_0x54a59c['markBlockFormat'](_0x27ece0,{'commandName':'imageTypeInline','commandParams':[_0x3abff8]},[],'convertInlineImageToBlock'),_0x49a6e5['start']['isBefore'](_0x148aab['start'])&&_0x54a59c['markInsertion'](_0x559864['createRange'](_0x49a6e5['start'],_0x148aab['start']),'convertInlineImageToBlock'),_0x148aab['end']['isBefore'](_0x49a6e5['end'])&&_0x54a59c['markInsertion'](_0x559864['createRange'](_0x148aab['end'],_0x49a6e5['end']),'convertInlineImageToBlock');});}),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x54a59c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x295266])=>{const _0x24246e=_0x54a59c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53ac06=_0x295266['start'],_0x441e85=_0x295266['end'];const _0x29d4d2=_0x5f55ac['model']['schema']['getNearestSelectionRange'](_0x53ac06,'backward'),_0x18c687=_0x5f55ac['model']['schema']['getNearestSelectionRange'](_0x441e85,'forward');_0x29d4d2['isCollapsed']&&(_0x53ac06=_0x29d4d2['start']),_0x18c687['isCollapsed']&&(_0x441e85=_0x18c687['end']),_0x24246e([_0x5f55ac['model']['createRange'](_0x53ac06,_0x441e85)]);}),_0x54a59c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4f50b5),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4f50b5)),_0x5f55ac['plugins']['has']('ImageCaptionEditing')&&(_0x54a59c['enableCommand']('toggleImageCaption',(_0xad237a,_0x3cc737)=>{const _0x50ec75=_0x5f55ac['plugins']['get']('ImageCaptionUtils');let _0x140f05=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x1e8523=_0x50ec75['getCaptionFromImageModelElement'](_0x140f05);_0x5f55ac['model']['change'](()=>{if(_0x1e8523)return void _0x54a59c['markDeletion'](_0x5f55ac['model']['createRangeOn'](_0x1e8523));const _0x353f62=_0x1be24b['isBlockImage'](_0x140f05);_0xad237a(_0x3cc737),_0x140f05=_0x1be24b['getClosestSelectedImageElement'](_0x5f55ac['model']['document']['selection']),_0x1e8523=_0x50ec75['getCaptionFromImageModelElement'](_0x140f05),_0x54a59c['markInsertion'](_0x5f55ac['model']['createRangeOn'](_0x1e8523),_0x353f62?null:'imageCaption');});}),_0x54a59c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4f50b5));const _0x4a6177=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d0f30(_0x42be9c,_0x345aec){const _0x564ee3=_0x4a6177['findIndex'](({type:_0x3f9e9f,subType:_0x3ee90f})=>_0x42be9c['type']==_0x3f9e9f&&_0x42be9c['subType']==_0x3ee90f),_0xf25173=_0x4a6177['findIndex'](({type:_0x542d40,subType:_0x24fe62})=>_0x345aec['type']==_0x542d40&&_0x345aec['subType']==_0x24fe62);if(_0x564ee3<0x0||_0xf25173<0x0)return!0x1;const _0x253199=_0x42be9c['getFirstRange'](),_0xa509a6=_0x345aec['getFirstRange']();if((0x0==_0x564ee3||0x1==_0x564ee3)&&0x2==_0xf25173&&_0x253199['isIntersecting'](_0xa509a6))return!0x0;if(0x2==_0x564ee3&&0x3==_0xf25173){const _0x4a82e0=_0x54a59c['_findSuggestions'](_0x253199,'insertion')['filter'](({suggestion:_0x9b754d,meta:_0x2d8270})=>_0x2d8270['isOwn']&&'convertInlineImageToBlock'==_0x9b754d['subType']);if(_0x4a82e0['length']>0x1&&_0xa509a6['end']['isEqual'](_0x253199['start']))return!0x0;if(0x1==_0x4a82e0['length']&&(_0x253199['start']['isEqual'](_0xa509a6['end'])||_0x253199['end']['isEqual'](_0xa509a6['start'])))return!0x0;}if(0x3==_0x564ee3&&0x3==_0xf25173&&_0x253199['start']['isBefore'](_0xa509a6['start'])){const _0x312e4c=_0x253199['end']['nodeAfter'],_0x577b11=_0xa509a6['start']['nodeBefore'];return _0x1be24b['isBlockImage'](_0x312e4c)&&_0x312e4c===_0x577b11;}return!0x1;}function _0x4f50b5(_0x2c54b2,_0x16c8e){return _0x3d0f30(_0x2c54b2,_0x16c8e)?[_0x2c54b2,_0x16c8e]:_0x3d0f30(_0x16c8e,_0x2c54b2)?[_0x16c8e,_0x2c54b2]:null;}_0x5f55ac['plugins']['has']('ImageResize')&&(_0x54a59c['enableDefaultAttributesIntegration']('resizeImage'),_0x54a59c['registerBlockAttribute']('resizedWidth'),_0x54a59c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5d0556,'FORMAT_IMAGE_SIZE'))),_0x5f55ac['plugins']['has']('ImageTextAlternativeEditing')&&(_0x54a59c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x54a59c['registerBlockAttribute']('alt')),_0x5f55ac['plugins']['has']('PictureEditing')&&(_0x54a59c['registerBlockAttribute']('sources'),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x55fe82=>{if('attribute'!=_0x55fe82['type'])return;const {data:_0xfbae33}=_0x55fe82;return _0xfbae33&&'sources'==_0xfbae33['key']?{'type':'format','content':''}:void 0x0;})),_0x5f55ac['plugins']['has']('ImageSizeAttributes')&&(_0x54a59c['registerBlockAttribute']('width'),_0x54a59c['registerBlockAttribute']('height'),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x36f1ac=>{if('attribute'!=_0x36f1ac['type'])return;const {data:_0x3fae05}=_0x36f1ac;return!_0x3fae05||'width'!=_0x3fae05['key']&&'height'!=_0x3fae05['key']?void 0x0:{'type':'format','content':''};})),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x2940c1=>{if(!!_0x4a6177['find'](({type:_0x4a3317,subType:_0x3a9c71})=>_0x2940c1['type']==_0x4a3317&&_0x2940c1['subType']==_0x3a9c71))return _0x2940c1['previous']?{}:void 0x0;}),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x139f2f=>{if('insertion'==_0x139f2f['type']||'deletion'==_0x139f2f['type']){const _0x13f95b=_0x139f2f['getContainedElement']();if(_0x13f95b&&_0x13f95b['is']('element','caption'))return{'type':'insertion'==_0x139f2f['type']?'addObject':'removeObject','element':_0x13f95b,'quantity':0x1};}}),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x34b26b=>'formatBlock'==_0x34b26b['type']&&'convertInlineImageToBlock'==_0x34b26b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34b26b['type']&&'convertBlockImageToInline'==_0x34b26b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x54a59c['descriptionFactory']['registerDescriptionCallback'](_0x29f61a=>{if('attribute'!=_0x29f61a['type'])return;const {data:_0x22a5d5}=_0x29f61a;if(!_0x22a5d5||'alt'!=_0x22a5d5['key'])return;const _0x21e4ed=_0x22a5d5['newValue'];return _0x21e4ed?{'type':'format','content':c(_0x5d0556,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x21e4ed+'\x22')}:{'type':'format','content':c(_0x5d0556,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfe8f14=this['editor'],_0x1ddaa1=_0xfe8f14['locale'];_0xfe8f14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b32cb=>{if('formatBlock'!=_0x3b32cb['type']&&'formatInline'!=_0x3b32cb['type'])return;const {data:_0x317c5e}=_0x3b32cb;if(_0x317c5e){if('imageTextAlternative'==_0x317c5e['commandName']){const _0x1b160f=_0x317c5e['commandParams'][0x0]['newValue'];return _0x1b160f?{'type':'format','content':c(_0x1ddaa1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b160f+'\x22')}:{'type':'format','content':c(_0x1ddaa1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x317c5e['commandName']){const _0x5df4e6=_0x317c5e['commandParams'][0x0]['width'];return _0x5df4e6?{'type':'format','content':c(_0x1ddaa1,'*Set\x20image\x20width:*\x20%0',_0x5df4e6)}:{'type':'format','content':c(_0x1ddaa1,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d5c21=this['editor']['locale'],_0x26b602=this['editor']['plugins']['get']('TrackChangesEditing');_0x26b602['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26b602['registerBlockAttribute']('src'),_0x26b602['descriptionFactory']['registerDescriptionCallback'](_0xfb33e5=>{if('attribute'!=_0xfb33e5['type'])return;const {data:_0x246300}=_0xfb33e5;return _0x246300&&'src'==_0x246300['key']?_0x246300['newValue']&&_0x246300['oldValue']?{'type':'format','content':c(_0x3d5c21,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d156f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d156f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d156f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d156f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d156f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37db57=this['editor'],_0x21eaa3=_0x37db57['locale'];_0x37db57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4b45=>{if('formatBlock'!=_0x2c4b45['type']&&'formatInline'!=_0x2c4b45['type'])return;const {data:_0x25878a}=_0x2c4b45;if(!_0x25878a||'replaceImageSource'!=_0x25878a['commandName'])return;return{'type':'format','content':c(_0x21eaa3,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x34c566{['afterInit'](){const _0x394255=this['editor'];if(!_0x394255['plugins']['has']('ImageStyleEditing'))return;const _0x3de4f1=_0x394255['plugins']['get']('TrackChangesEditing'),_0xa6a0fd=_0x394255['plugins']['get']('ImageUtils'),_0x212554={};_0x3de4f1['enableCommand']('imageStyle',(_0xbc9d18,_0xa0b3ba)=>{const _0x1c57e3=_0x394255['plugins']['get']('Users')['me'],_0x2526c6=_0x394255['commands']['get']('imageStyle');let _0x2a04b7=_0xa6a0fd['getClosestSelectedImageElement'](_0x394255['model']['document']['selection']),_0x211838=_0x394255['model']['createRangeOn'](_0x2a04b7),_0x125afe=_0x2526c6['value'];if(_0x125afe==_0xa0b3ba['value'])return;const _0x473f72={'commandName':'imageStyle','commandParams':[_0xa0b3ba],'formatGroupId':_0x18c716()};_0x394255['model']['change'](()=>{if(_0x3de4f1['getSuggestions']()['filter'](_0x46894f=>_0x46894f['isInContent']&&_0x1c57e3==_0x46894f['author']&&('formatBlock'==_0x46894f['type']||'formatInline'==_0x46894f['type'])&&('imageStylePreApply'==_0x46894f['subType']||'imageStylePostApply'==_0x46894f['subType'])&&_0x46894f['getFirstRange']()['isEqual'](_0x211838))['forEach'](_0x3335eb=>_0x3de4f1['discardSuggestion'](_0x3335eb['head'])),_0x2a04b7=_0xa6a0fd['getClosestSelectedImageElement'](_0x394255['model']['document']['selection']),_0x211838=_0x394255['model']['createRangeOn'](_0x2a04b7),_0x2526c6['refresh'](),_0x394255['commands']['get']('imageTypeInline')['refresh'](),_0x394255['commands']['get']('imageTypeBlock')['refresh'](),_0x125afe=_0x2526c6['value'],_0x125afe!=_0xa0b3ba['value'])return _0xa6a0fd['isInlineImage'](_0x2a04b7)&&_0x2526c6['shouldConvertImageType'](_0xa0b3ba['value'],_0x2a04b7)?(_0xbc9d18({..._0xa0b3ba,'setImageSizes':!0x1}),_0x2a04b7=_0xa6a0fd['getClosestSelectedImageElement'](_0x394255['model']['document']['selection']),void _0x3de4f1['markBlockFormat'](_0x2a04b7,{..._0x473f72,'commandReversedParams':[{'value':_0x125afe||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa6a0fd['isBlockImage'](_0x2a04b7)?_0x3de4f1['markBlockFormat'](_0x2a04b7,_0x473f72,[],'imageStylePostApply'):_0x3de4f1['markInlineFormat'](_0x211838,_0x473f72,'imageStylePostApply'));});});for(const _0x5cd92b of _0x394255['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x212554[_0x5cd92b['name']]=_0x5cd92b['title']['toLowerCase']();_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52ca7b])=>{_0xa6a0fd['setImageNaturalSizeAttributes'](_0x52ca7b['getContainedElement']());}),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2acd96,_0x3f95f5)=>{_0x3de4f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2acd96,{'commandName':_0x3f95f5['commandName'],'commandParams':_0x3f95f5['commandReversedParams']});}),_0x3de4f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x45dec7,_0x5120e3){if(_0x18ed00(_0x45dec7,_0x5120e3))return[_0x45dec7,_0x5120e3];if(_0x18ed00(_0x5120e3,_0x45dec7))return[_0x5120e3,_0x45dec7];return null;});const _0x2455b7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18ed00(_0x5750e3,_0x5c8f5b){const _0x42be18=_0x2455b7['findIndex'](({type:_0x448227,subType:_0x58dbc1})=>_0x5750e3['type']==_0x448227&&_0x5750e3['subType']==_0x58dbc1),_0x414519=_0x2455b7['findIndex'](({type:_0x4d3da3,subType:_0x418aab})=>_0x5c8f5b['type']==_0x4d3da3&&_0x5c8f5b['subType']==_0x418aab);if(_0x42be18<0x0||_0x414519<0x0)return!0x1;const _0x95e37c=_0x5750e3['getFirstRange'](),_0x46d155=_0x5c8f5b['getFirstRange']();if((0x0==_0x42be18||0x1==_0x42be18)&&0x2==_0x414519&&_0x95e37c['isIntersecting'](_0x46d155))return!0x0;if(0x2==_0x42be18&&0x3==_0x414519){const _0x630ce=_0x3de4f1['_findSuggestions'](_0x95e37c,'insertion')['filter'](({suggestion:_0x55c891,meta:_0x272b6e})=>_0x272b6e['isOwn']&&'convertInlineImageToBlock'==_0x55c891['subType']);if(_0x630ce['length']>0x1&&_0x46d155['end']['isEqual'](_0x95e37c['start']))return!0x0;if(0x1==_0x630ce['length']&&(_0x95e37c['start']['isEqual'](_0x46d155['end'])||_0x95e37c['end']['isEqual'](_0x46d155['start'])))return!0x0;}if(0x3==_0x42be18&&0x3==_0x414519&&_0x95e37c['start']['isBefore'](_0x46d155['start'])){const _0x1ac7f0=_0x95e37c['end']['nodeAfter'],_0x41ae79=_0x46d155['start']['nodeBefore'];return _0xa6a0fd['isBlockImage'](_0x1ac7f0)&&_0x1ac7f0===_0x41ae79;}return!0x1;}_0x394255['model']['document']['registerPostFixer'](()=>{let _0x53b196=!0x1;const _0x4377e7=Array['from'](_0x394255['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a08be,data:_0x5eb37a}of _0x4377e7){const {group:_0x5c531b,type:_0x3e260,subType:_0xcc4ea,id:_0x3f8b13}=_0x3de4f1['_splitMarkerName'](_0x2a08be);if('suggestion'==_0x5c531b&&_0x3de4f1['hasSuggestion'](_0x3f8b13)){if('formatBlock'==_0x3e260&&('imageStylePreApply'==_0xcc4ea||'imageStylePostApply'==_0xcc4ea)){const _0x1930fb=_0x3de4f1['getSuggestion'](_0x3f8b13);if(_0x5eb37a['newRange']){const _0x158882=_0x1930fb['getFirstRange']()['getContainedElement']();if(_0xa6a0fd['isBlockImage'](_0x158882))continue;_0x3de4f1['discardSuggestion'](_0x1930fb),_0x53b196=!0x0;}}if('insertion'==_0x3e260&&'imageCaption'==_0xcc4ea&&!_0x5eb37a['newRange']){const _0x508d93=_0x3de4f1['getSuggestion'](_0x3f8b13);_0x508d93['next']&&_0x508d93['next']['isInContent']&&(_0x3de4f1['discardSuggestion'](_0x508d93['next']),_0x53b196=!0x0);}}}return _0x53b196;}),this['_registerLegacyDescription'](_0x212554);}['_registerLegacyDescription'](_0x335cab){const _0x1bc4e4=this['editor'],_0x25a23f=_0x1bc4e4['locale'];_0x1bc4e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6501f8=>{if('formatBlock'!=_0x6501f8['type']&&'formatInline'!=_0x6501f8['type'])return;const {data:_0x4a00dc}=_0x6501f8;if(!_0x4a00dc||'imageStyle'!=_0x4a00dc['commandName'])return;const _0x527645=_0x4a00dc['commandParams'][0x0]['value'];return _0x5ab48a('side'===_0x527645?c(_0x25a23f,'FORMAT_SIDE_IMAGE'):_0x335cab[_0x527645]||_0x527645);function _0x5ab48a(_0x12ba6a){return{'type':'format','content':c(_0x25a23f,'*Format:*\x20%0',_0x12ba6a)};}});}}class ct extends _0x34c566{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x13f2ec){super(_0x13f2ec),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x18304f=this['editor'],_0x5ab660=_0x18304f['commands']['get']('importWord'),_0x4d10ad=_0x18304f['commands']['get']('trackChanges');_0x5ab660&&(_0x5ab660['on']('execute',(_0x2a4fec,[,_0x4879b5])=>{this['_trackChangesValueDuringImport']=_0x4d10ad['value'],_0x4879b5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5ab660,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5ab660,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d10ad['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x18304f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x45c5b4,_0x3ee961){const {suggestions:_0x2a5868}=_0x3ee961,_0x2e9b83=this['editor']['commands']['get']('trackChanges'),_0x594aa6=_0x2e9b83['value'];this['_trackChangesValueDuringImport']!==_0x594aa6&&(_0x2e9b83['execute'](),this['_trackChangesExecuted']=!0x0),_0x2a5868&&_0x2a5868['forEach'](({id:_0xed04a7,type:_0x4fca1d,author:_0x28d986,created_at:_0x18ca15})=>{const _0x5d2f8b={'id':_0xed04a7,'type':_0x4fca1d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28d986,'createdAt':_0x18ca15?new Date(_0x18ca15):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5d2f8b);});}}class ut extends _0x34c566{['afterInit'](){const _0x4e3266=this['editor'],_0x1b7956=_0x4e3266['plugins']['get']('TrackChangesEditing');if(_0x4e3266['plugins']['has']('IndentEditing')&&(_0x1b7956['enableCommand']('indent'),_0x1b7956['enableCommand']('outdent')),_0x4e3266['plugins']['has']('IndentBlock')){for(const _0x162d05 of['indentBlock','outdentBlock'])_0x1b7956['enableDefaultAttributesIntegration'](_0x162d05);}const _0x40f378=_0x4e3266['locale'];_0x1b7956['registerBlockAttribute']('blockIndent'),_0x1b7956['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x40f378,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43c3ee=this['editor'],_0x5e5b32=_0x43c3ee['locale'],_0x54c037=_0x43c3ee['plugins']['get']('TrackChangesEditing');_0x54c037['descriptionFactory']['registerDescriptionCallback'](_0x45a8c1=>{if('formatBlock'!=_0x45a8c1['type'])return;const {data:_0x1dd466}=_0x45a8c1;if(!_0x1dd466)return;if('indentBlock'!=_0x1dd466['commandName']&&'outdentBlock'!=_0x1dd466['commandName'])return;const _0x32adcd=_0x45a8c1['getItems']()[0x0],_0x33ea8b=_0x54c037['descriptionFactory']['getItemLabel'](_0x32adcd);return'indentBlock'==_0x1dd466['commandName']?{'type':'format','content':c(_0x5e5b32,'*Indent:*\x20%0',_0x33ea8b)}:'outdentBlock'==_0x1dd466['commandName']?{'type':'format','content':c(_0x5e5b32,'*Outdent:*\x20%0',_0x33ea8b)}:void 0x0;});}}class ft extends _0x34c566{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x34c566{['afterInit'](){const _0x340116=this['editor'];if(!_0x340116['plugins']['has']('LinkEditing'))return;const _0x27ecae=_0x340116['plugins']['get']('TrackChangesEditing'),_0x10b5d9=_0x340116['commands']['get']('link');_0x27ecae['enableDefaultAttributesIntegration']('link'),_0x27ecae['enableDefaultAttributesIntegration']('unlink'),_0x27ecae['registerInlineAttribute']('linkHref');for(const _0x62bca7 of _0x10b5d9['manualDecorators'])_0x27ecae['registerInlineAttribute'](_0x62bca7['id']),_0x27ecae['descriptionFactory']['registerAttributeLabel'](_0x62bca7['id'],'link\x20('+_0x62bca7['label']['toLowerCase']()+')');_0x27ecae['descriptionFactory']['registerDescriptionCallback'](_0x148703=>{if('attribute'!=_0x148703['type'])return;const {data:_0x3f0ae3}=_0x148703;if(!_0x3f0ae3||'linkHref'!=_0x3f0ae3['key'])return;const _0x442f00=_0x3f0ae3['newValue'],_0x1e640b=_0x340116['locale'];return{'type':'format','content':null==_0x442f00?c(_0x1e640b,'*Remove\x20link*'):c(_0x1e640b,'*Set\x20link:*\x20%0','\x22'+_0x442f00+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3243=this['editor'],_0x518ed6=_0x2e3243['locale'];_0x2e3243['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda4513=>{if('formatInline'!=_0xda4513['type'])return;const {data:_0x115b56}=_0xda4513;if(_0x115b56){if('link'==_0x115b56['commandName']){const _0x5e8a1d=_0x115b56['commandParams'][0x0];return{'type':'format','content':c(_0x518ed6,'*Set\x20link:*\x20%0','\x22'+_0x5e8a1d+'\x22')};}return'unlink'==_0x115b56['commandName']?{'type':'format','content':c(_0x518ed6,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x34c566{['afterInit'](){const _0x3f40eb=this['editor'],_0x1c136c=_0x3f40eb['locale'];if(!_0x3f40eb['plugins']['has']('LegacyListEditing'))return;const _0x58f371=_0x3f40eb['plugins']['get']('TrackChangesEditing'),_0x356156=_0x3f40eb['plugins']['has']('LegacyTodoListEditing');function _0x174bb8(_0x1eb0e7){return()=>{const _0x21d2f4=_0x3f40eb['model']['document']['selection'],_0x7caa32=_0x3f40eb['commands']['get'](_0x1eb0e7);if(_0x7caa32['value'])return void _0x3f40eb['execute']('paragraph',{});const _0xe86f36=_0x1eb0e7['slice'](0x0,-0x4),_0x325136=function(_0x1b63d3,_0x1bd62d,_0x321854){let _0x544315=Array['from'](_0x1b63d3)['filter'](_0x1ceda9=>function(_0x7b3423,_0x1f1abb){return _0x1f1abb['checkChild'](_0x7b3423['parent'],'listItem')&&!_0x1f1abb['isObject'](_0x7b3423);}(_0x1ceda9,_0x321854));_0x544315=_0x544315['filter'](_0xe29504=>!_0xe29504['is']('element','listItem')||_0xe29504['getAttribute']('listType')!=_0x1bd62d);const _0x454f4a=new Set();for(const _0x27c1c0 of _0x544315)_0x27c1c0['is']('element','listItem')?_0x454f4a['add'](Le(_0x27c1c0)):_0x454f4a['add'](_0x27c1c0);return Array['from'](_0x454f4a);}(_0x21d2f4['getSelectedBlocks'](),_0xe86f36,_0x3f40eb['model']['schema']);_0x3f40eb['model']['change'](()=>{for(const _0x383f2b of _0x325136)_0x58f371['markBlockFormat'](_0x383f2b,{'commandName':_0x1eb0e7,'commandParams':[{'forceValue':!_0x7caa32['value']}],'formatGroupId':'blockName'},Ee(_0x383f2b));});};}function _0x2fba20(_0x4a5d8d){return()=>{const _0xf2929e=function(_0x6d1de7){let _0x3acd65=Array['from'](_0x6d1de7);const _0xa368ab=_0x3acd65['findIndex'](_0x11a614=>'listItem'!=_0x11a614['name']);return _0xa368ab>-0x1&&(_0x3acd65=_0x3acd65['slice'](0x0,_0xa368ab)),_0x3acd65;}(_0x3f40eb['model']['document']['selection']['getSelectedBlocks']()),_0x158708=_0x3f40eb['model']['createRange'](_0x3f40eb['model']['createPositionAt'](_0xf2929e[0x0],'before'),_0x3f40eb['model']['createPositionAt'](_0xf2929e[_0xf2929e['length']-0x1],'end'));_0x3f40eb['model']['change'](()=>{_0x58f371['markBlockFormat'](_0x158708,{'commandName':_0x4a5d8d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x51077b){const _0x901d88=new Set();for(const _0x1102d7 of _0x51077b){let _0x4d3a6f=_0x1102d7['nextSibling'];for(;_0x4d3a6f&&_0x4d3a6f['getAttribute']('listIndent')>_0x1102d7['getAttribute']('listIndent');)_0x901d88['add'](_0x4d3a6f),_0x4d3a6f=_0x4d3a6f['nextSibling'];}return Array['from'](_0x901d88);}(_0xf2929e));});};}_0x58f371['enableCommand']('numberedList',_0x174bb8('numberedList')),_0x58f371['enableCommand']('bulletedList',_0x174bb8('bulletedList')),_0x356156&&_0x58f371['enableCommand']('todoList',_0x174bb8('todoList')),_0x58f371['enableCommand']('indentList',_0x2fba20('indentList')),_0x58f371['enableCommand']('outdentList',_0x2fba20('outdentList')),_0x356156&&_0x58f371['enableCommand']('checkTodoList',()=>{const _0x570161=_0x3f40eb['commands']['get']('checkTodoList'),_0x47a8eb=Array['from'](_0x570161['_selectedElements']);_0x47a8eb['filter'](_0xbfbda5=>_0xbfbda5['getAttribute']('todoListChecked')!=_0x570161['value']),_0x3f40eb['model']['change'](()=>{for(const _0x2cb007 of _0x47a8eb)_0x58f371['markBlockFormat'](_0x2cb007,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x570161['value']}]});});}),_0x58f371['descriptionFactory']['registerElementLabel']('listItem',_0x1b0b35=>c(_0x1c136c,'ELEMENT_LIST_ITEM',_0x1b0b35)),_0x58f371['descriptionFactory']['registerDescriptionCallback'](_0xeb2025=>{if('formatBlock'!=_0xeb2025['type']&&'formatInline'!=_0xeb2025['type'])return;const {data:_0x32ae71}=_0xeb2025;if(_0x32ae71){if('numberedList'==_0x32ae71['commandName']||'bulletedList'==_0x32ae71['commandName']||'todoList'==_0x32ae71['commandName'])switch(_0x32ae71['commandName']['replace']('List','')){case'bulleted':return _0x35e723(c(_0x1c136c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35e723(c(_0x1c136c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35e723(c(_0x1c136c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x32ae71['commandName'])return{'type':'format','content':c(_0x1c136c,'*Indent:*\x20%0',c(_0x1c136c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x32ae71['commandName'])return{'type':'format','content':c(_0x1c136c,'*Outdent:*\x20%0',c(_0x1c136c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x32ae71['commandName'])return _0x32ae71['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1c136c,'*Check\x20item*')}:{'type':'format','content':c(_0x1c136c,'*Uncheck\x20item*')};}function _0x35e723(_0x19078f){return{'type':'format','content':c(_0x1c136c,'*Change\x20to:*\x20%0',_0x19078f)};}});}}function Le(_0x853096){const _0x35080c=_0x853096['getAttribute']('listIndent');if(0x0==_0x35080c)return _0x853096;let _0x1770be=_0x853096;for(;_0x853096['previousSibling']&&_0x853096['previousSibling']['is']('element','listItem');){const _0x57b546=_0x853096['previousSibling']['getAttribute']('listIndent');if(_0x57b546==_0x35080c)_0x1770be=_0x853096['previousSibling'];else{if(_0x57b546<_0x35080c)break;}_0x853096=_0x853096['previousSibling'];}return _0x1770be;}function Ee(_0x50c589){const _0x16a38b=[];if(_0x50c589['is']('element','listItem')&&_0x50c589['getAttribute']('listIndent')>0x0){let _0xce2409=_0x50c589['nextSibling'];for(;_0xce2409&&'listItem'==_0xce2409['name']&&_0xce2409['getAttribute']('listIndent')==_0x50c589['getAttribute']('listIndent');)_0x16a38b['push'](_0xce2409),_0xce2409=_0xce2409['nextSibling'];}return _0x16a38b;}class Q extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55c9f8=this['editor']['config']['get']('list.properties'),_0x1abd33=this['editor']['plugins']['get']('TrackChangesEditing');_0x55c9f8['styles']&&_0x1abd33['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55c9f8['reversed']&&_0x1abd33['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55c9f8['startIndex']&&_0x1abd33['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1abd33['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2628df,_0x45bf0f={}){const _0x1c32ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x296ced=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c32ee['markMultiRangeBlockFormat'](_0x296ced,{'commandName':'listStyle','commandParams':[{'type':_0x45bf0f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2b0544,_0x2515ee={}){const _0x54d0be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e2da3=this['_getSuggestionBlocks'](_0x576773=>_0x576773['is']('element','listItem')&&'numbered'===_0x576773['getAttribute']('listType'));if(_0x5e2da3['length']<0x1)return;const _0x20e1b9=_0x5e2da3['map'](_0x393977=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x393977,'before'),this['editor']['model']['createPositionAt'](_0x393977,0x0)));this['editor']['model']['change'](()=>{_0x54d0be['markMultiRangeBlockFormat'](_0x20e1b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x2515ee['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2b82d8,_0x4d96fc={}){const _0x5edfd7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db8f8=this['_getSuggestionBlocks'](_0x48fe42=>_0x48fe42['is']('element','listItem')&&'numbered'===_0x48fe42['getAttribute']('listType'));if(_0x3db8f8['length']<0x1)return;const _0x7c170b=_0x3db8f8['map'](_0x4ee41c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ee41c,'before'),this['editor']['model']['createPositionAt'](_0x4ee41c,0x0)));this['editor']['model']['change'](()=>{_0x5edfd7['markMultiRangeBlockFormat'](_0x7c170b,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d96fc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x17f6a1){if('formatBlock'!=_0x17f6a1['type']&&'formatInline'!=_0x17f6a1['type'])return;const _0x2c31e9=this['editor']['locale'],{data:_0xf49a34}=_0x17f6a1;if(!_0xf49a34)return;let _0x50841e,_0x38044f;switch(_0xf49a34['commandName']){case'listStyle':_0x50841e='*Change\x20to:*\x20%0',_0x38044f={'type':'format','content':c(_0x2c31e9,_0x50841e,c(_0x2c31e9,this['_getTranslationKeyForListStyle'](_0xf49a34['commandParams'][0x0]['type'])))};break;case'listReversed':_0x50841e=_0xf49a34['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38044f={'type':'format','content':c(_0x2c31e9,_0x50841e)};break;case'listStart':_0x50841e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38044f={'type':'format','content':c(_0x2c31e9,_0x50841e,_0xf49a34['commandParams'][0x0]['startIndex'])};}return _0x38044f;}['_getSuggestionBlocksForListStyle'](){const _0x3ef3a9=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ef7f3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ef7f3[0x0]?.['is']('element','listItem')&&_0x4ef7f3['unshift'](..._0x3ef3a9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ef7f3[_0x4ef7f3['length']-0x1]?.['is']('element','listItem')&&_0x4ef7f3['push'](..._0x3ef3a9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ef7f3=[...new Set(_0x4ef7f3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ef7f3=_0x4ef7f3['filter'](_0x5b12a0=>_0x5b12a0['is']('element','listItem'))),_0x4ef7f3;}['_getSuggestionBlocks'](_0x2e8deb){const _0x41f283=this['editor']['plugins']['get']('LegacyListUtils');let _0x145c14=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e8deb)['map'](_0x135dfe=>{const _0x2438ba=this['editor']['model']['createPositionAt'](_0x135dfe,0x0);return[..._0x41f283['getSiblingNodes'](_0x2438ba,'backward'),..._0x41f283['getSiblingNodes'](_0x2438ba,'forward')];})['flat']();return _0x145c14=[...new Set(_0x145c14)],_0x145c14;}['_getTranslationKeyForListStyle'](_0x11c263){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x11c263)||'default')['toUpperCase']()+'_LIST_'+_0x11c263['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x34c566{['afterInit'](){const _0x5c8b98=this['editor'];if(!_0x5c8b98['plugins']['has']('MediaEmbedEditing'))return;const _0x2a897b=_0x5c8b98['plugins']['get']('TrackChangesEditing'),_0x401aa9=_0x5c8b98['locale'];_0x2a897b['enableCommand']('mediaEmbed'),_0x2a897b['descriptionFactory']['registerElementLabel']('media',_0x3aae23=>c(_0x401aa9,'ELEMENT_MEDIA',_0x3aae23)),_0x5c8b98['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4bae13,{writer:_0x558c6d,options:_0x364276})=>{if(_0x364276['showSuggestionHighlights'])return _0x558c6d['createEmptyElement']('div');},'converterPriority':'high'}),_0x5c8b98['data']['downcastDispatcher']['on']('attribute:url:media',(_0x10cfc7,_0xb5bc1c,_0x55d8b5)=>{_0x55d8b5['options']['showSuggestionHighlights']&&_0x10cfc7['stop']();},{'priority':'high'});}}class mt extends _0x34c566{['afterInit'](){const _0x294d0f=this['editor'];_0x294d0f['plugins']['has']('MentionEditing')&&_0x294d0f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x34c566{['afterInit'](){const _0x5ef55f=this['editor'];if(!_0x5ef55f['plugins']['has']('MergeFieldsEditing'))return;const _0x1f191c=_0x5ef55f['plugins']['get']('TrackChangesEditing'),_0x3c6afd=_0x5ef55f['locale'];_0x1f191c['enableCommand']('insertMergeField'),_0x1f191c['enableCommand']('insertMergeFieldBlock'),_0x1f191c['enableCommand']('insertMergeFieldImage'),_0x1f191c['descriptionFactory']['registerElementLabel']('mergeField',_0x5a2aeb=>c(_0x3c6afd,'ELEMENT_MERGE_FIELD',_0x5a2aeb)),_0x1f191c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xb3bbd8=>c(_0x3c6afd,'ELEMENT_MERGE_FIELD',_0xb3bbd8)),_0x1f191c['descriptionFactory']['registerDescriptionCallback'](_0x1fd726=>{if('insertion'!=_0x1fd726['type']&&'deletion'!=_0x1fd726['type'])return;const _0x3fbd36=_0x1fd726['getContainedElement']();if(null==_0x3fbd36)return;const _0x277791=_0x5ef55f['plugins']['get']('MergeFieldsEditing');let _0x173f41;switch(_0x277791['getMergeFieldType'](_0x3fbd36)){case null:return;case'image':{const _0x214fa3=_0x277791['unwrapAffixes'](_0x3fbd36['getAttribute']('src'));_0x173f41=_0x277791['getLabel'](_0x214fa3)||_0x214fa3;break;}default:{const _0x1edf89=_0x3fbd36['getAttribute']('id');_0x173f41=_0x277791['getLabel'](_0x1edf89)||_0x1edf89;break;}}return'insertion'==_0x1fd726['type']?{'type':'insertion','content':c(_0x3c6afd,'*Insert:*\x20%0','\x22'+_0x173f41+'\x22\x20'+c(_0x3c6afd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3c6afd,'*Remove:*\x20%0','\x22'+_0x173f41+'\x22\x20'+c(_0x3c6afd,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x34c566{['afterInit'](){const _0x3c0304=this['editor'],_0xa1a178=_0x3c0304['plugins']['get']('TrackChangesEditing');_0x3c0304['plugins']['has']('MultiLevelList')&&(_0xa1a178['enableDefaultAttributesIntegration']('multiLevelList'),_0xa1a178['registerBlockAttribute']('listMarkerStyle'),_0xa1a178['descriptionFactory']['registerDescriptionCallback'](_0x12189f=>this['handleDescriptions'](_0x12189f)));}['handleDescriptions'](_0x59697a){const _0x4e8114=this['editor']['locale'],{data:_0x4aafd7}=_0x59697a,_0x2e3811={'type':'format','content':''};if(_0x4aafd7&&'listMarkerStyle'==_0x4aafd7['key']){if(!_0x4aafd7['oldValue'])return{'type':'format','content':c(_0x4e8114,'*Set\x20format:*\x20%0',c(_0x4e8114,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4aafd7['newValue']+')'};if(!_0x4aafd7['newValue']){let _0x1f75c4=_0x59697a['head'];for(;_0x1f75c4;){if(_0x1f75c4['data']&&'listType'==_0x1f75c4['data']['key']&&_0x1f75c4['data']['newValue'])return _0x2e3811;_0x1f75c4=_0x1f75c4['next'];}return{'type':'format','content':c(_0x4e8114,'*Remove\x20format:*\x20%0',c(_0x4e8114,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4aafd7['oldValue']+')'};}}}}class kt extends _0x34c566{['afterInit'](){const _0x551192=this['editor'];if(!_0x551192['plugins']['has']('PageBreakEditing'))return;_0x551192['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d908d=_0x551192['plugins']['get']('TrackChangesEditing'),_0x11ec48=_0x551192['locale'];_0x2d908d['descriptionFactory']['registerElementLabel']('pageBreak',_0x7c60e0=>c(_0x11ec48,'ELEMENT_PAGE_BREAK',_0x7c60e0));}}class bt extends _0x34c566{['afterInit'](){const _0x13a4ca=this['editor'];if(!_0x13a4ca['plugins']['has']('Paragraph'))return;const _0x5a09f6=_0x13a4ca['locale'],_0x5b721c=_0x13a4ca['plugins']['get']('TrackChangesEditing');_0x5b721c['descriptionFactory']['registerElementLabel']('paragraph',_0x906d5d=>c(_0x5a09f6,'ELEMENT_PARAGRAPH',_0x906d5d)),_0x5b721c['enableDefaultAttributesIntegration']('paragraph'),_0x5b721c['enableCommand']('insertParagraph'),_0x13a4ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13a4ca),{'priority':'highest'}),_0x13a4ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22c988,_0x2953a1,_0x5cefa0)=>{_0x5cefa0['options']['showSuggestionHighlights']&&nr(_0x13a4ca,{'showActiveMarker':!0x1})(_0x22c988,_0x2953a1,_0x5cefa0);},{'priority':'highest'});const _0x5b5019=_0x5b721c['descriptionFactory'];_0x5b5019['registerDescriptionCallback'](_0xf0a51=>{if('insertion'!==_0xf0a51['type'])return;const {start:_0x485904,end:_0x19c9a0}=_0xf0a51['getFirstRange']();if(!_0x485904['isTouching'](_0x19c9a0)||!_0x485904['nodeAfter'])return;const _0x570d43=_0x13a4ca['model']['schema'],_0x511f63=_0x485904['nodeAfter'];return _0x570d43['isBlock'](_0x511f63)&&!_0x570d43['isLimit'](_0x511f63)&&_0x570d43['checkChild'](_0x511f63,'$text')?{'type':'insertion','content':c(_0x5a09f6,'*Insert:*\x20%0',_0x5b5019['getItemLabel'](_0x511f63,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd0ac=this['editor'],_0x24f5d0=_0x1dd0ac['locale'];_0x1dd0ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c887a=>{if('formatBlock'!=_0x4c887a['type'])return;const {data:_0x5df0f9}=_0x4c887a;return _0x5df0f9&&'paragraph'==_0x5df0f9['commandName']?{'type':'format','content':c(_0x24f5d0,'*Change\x20to:*\x20%0',c(_0x24f5d0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x53cb83,{showActiveMarker:_0x2bf73d=!0x0}={}){return(_0x190829,_0x5da3a7,_0x44e952)=>{const _0x489d5a=_0x53cb83['plugins']['get']('TrackChangesEditing'),_0x5978f8=_0x5da3a7['markerRange']['start'],_0x502466=_0x5da3a7['markerRange']['end'],_0x450b12=_0x53cb83['model']['schema'];if(!_0x5978f8['isTouching'](_0x502466)||!_0x5978f8['nodeAfter'])return;const _0x5c1374=_0x5978f8['nodeAfter'];if(_0x450b12['isBlock'](_0x5c1374)&&!_0x450b12['isLimit'](_0x5c1374)&&_0x450b12['checkChild'](_0x5c1374,'$text')){if(!_0x44e952['consumable']['consume'](_0x5da3a7['markerRange'],_0x190829['name']))return;const {authorId:_0x442f73}=_0x489d5a['_splitMarkerName'](_0x5da3a7['markerName']),_0x3e2446=_0x44e952['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x442f73}),_0x450836=_0x44e952['mapper']['toViewPosition'](_0x502466);_0x2bf73d&&_0x489d5a['activeMarkers']['includes'](_0x5da3a7['markerName'])&&_0x44e952['writer']['addClass']('ck-suggestion-marker--active',_0x3e2446),_0x44e952['writer']['insert'](_0x450836,_0x3e2446),_0x44e952['mapper']['bindElementToMarker'](_0x3e2446,_0x5da3a7['markerName']);}};}class yt extends _0x34c566{['afterInit'](){const _0x41eee2=this['editor'];if(!_0x41eee2['plugins']['has']('RemoveFormatEditing'))return;_0x41eee2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a31d3=this['editor'];_0x3a31d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d1a46=>{if('formatBlock'!=_0x2d1a46['type']&&'formatInline'!=_0x2d1a46['type'])return;const {data:_0x5d82fa}=_0x2d1a46;return _0x5d82fa&&'removeFormat'==_0x5d82fa['commandName']?{'type':'format','content':c(_0x3a31d3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x34c566{['afterInit'](){const _0x414f11=this['editor'];if(!_0x414f11['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x49fa55=_0x414f11['plugins']['get']('TrackChangesEditing');_0x49fa55['enableCommand']('goToPreviousRestrictedEditingException'),_0x49fa55['enableCommand']('goToNextRestrictedEditingException');const _0x5da2bd=_0x414f11['plugins']['get']('RestrictedEditingModeEditing');_0x5da2bd['enableCommand']('trackChanges'),_0x5da2bd['enableCommand']('acceptSuggestion'),_0x5da2bd['enableCommand']('discardSuggestion'),_0x5da2bd['enableCommand']('acceptAllSuggestions'),_0x5da2bd['enableCommand']('discardAllSuggestions'),_0x5da2bd['enableCommand']('acceptSelectedSuggestions'),_0x5da2bd['enableCommand']('discardSelectedSuggestions');}}class St extends _0x34c566{static get['requires'](){return[_0x4d24c3];}['init'](){const _0x1ded23=this['editor'],_0x2d74a0=_0x1ded23['plugins']['get']('TrackChangesEditing');_0x2d74a0['enableCommand']('shiftEnter'),_0x1ded23['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1ded23),{'priority':'high'}),_0x1ded23['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1ded23),{'priority':'high'}),_0x1ded23['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f1522,_0x563cc3,_0x3ea246)=>{_0x3ea246['options']['showSuggestionHighlights']&&je(_0x1ded23,{'showActiveMarker':!0x1})(_0x3f1522,_0x563cc3,_0x3ea246);}),_0x2d74a0['descriptionFactory']['registerElementLabel']('softBreak',_0x4166a8=>c(_0x1ded23['locale'],'ELEMENT_LINE_BREAK',_0x4166a8));}}function je(_0x4e7484,{showActiveMarker:_0x1fa3a4=!0x0}={}){return(_0x59f2d2,_0x366a3b,_0x30d8db)=>{const _0x21bcd1=_0x4e7484['plugins']['get']('TrackChangesEditing');if(!_0x30d8db['consumable']['test'](_0x366a3b['markerRange'],_0x59f2d2['name']))return;const _0x2e20f5=_0x4e7484['model'];for(const _0x1bb293 of _0x366a3b['markerRange']['getItems']()){if(!_0x1bb293['is']('element','softBreak'))continue;const _0x5cc8c0='deletion'==_0x366a3b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4a8ce9}=_0x21bcd1['_splitMarkerName'](_0x366a3b['markerName']),_0x3e3bf1=_0x30d8db['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5cc8c0,'data-author-id':_0x4a8ce9}),_0x585562=_0x30d8db['mapper']['toViewPosition'](_0x2e20f5['createPositionBefore'](_0x1bb293));_0x1fa3a4&&_0x21bcd1['activeMarkers']['includes'](_0x366a3b['markerName'])&&_0x30d8db['writer']['addClass']('ck-suggestion-marker--active',_0x3e3bf1),_0x30d8db['writer']['insert'](_0x585562,_0x3e3bf1),_0x30d8db['mapper']['bindElementToMarker'](_0x3e3bf1,_0x366a3b['markerName']);}};}class At extends _0x34c566{['afterInit'](){const _0x375695=this['editor'],_0x288dbb=_0x375695['model'],_0x56c94=_0x375695['locale'];if(!_0x375695['plugins']['has']('StandardEditingModeEditing'))return;const _0x1a412d=_0x375695['plugins']['get']('TrackChangesEditing'),_0x1d1328='restrictedEditingException',_0x18626c=_0x375695['commands']['get'](_0x1d1328);_0x1a412d['enableCommand'](_0x1d1328,(_0x334174,_0x42f773={})=>{const _0x38ae0a=_0x288dbb['document']['selection'];if(_0x38ae0a['isCollapsed'])return void _0x334174(_0x42f773);const _0x800014=void 0x0!==_0x42f773['forceValue']?_0x42f773['forceValue']:!_0x18626c['value'];_0x288dbb['change'](()=>{const _0x14f192=Array['from'](_0x38ae0a['getRanges']());for(const _0x4b6722 of _0x14f192){const _0x16f819=_0x800014?[_0x4b6722]:no(_0x1d1328,_0x4b6722,_0x288dbb);for(const _0x965827 of _0x16f819)_0x1a412d['markInlineFormat'](_0x965827,{'commandName':_0x1d1328,'commandParams':[{'forceValue':_0x800014}]});}});}),_0x1a412d['descriptionFactory']['registerDescriptionCallback'](_0x52da80=>{if('formatBlock'!=_0x52da80['type']&&'formatInline'!=_0x52da80['type'])return;const {data:_0x359408}=_0x52da80;return _0x359408&&_0x359408['commandName']==_0x1d1328?_0x359408['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x56c94,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x56c94,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x34c566{['afterInit'](){const _0x196d3b=this['editor'];if(!_0x196d3b['plugins']['has']('Style')||!_0x196d3b['plugins']['has']('DataSchema'))return;const _0x5df7b2=_0x196d3b['plugins']['get']('TrackChangesEditing'),_0x1b0ca4=_0x196d3b['locale'],_0x41cd13=_0x196d3b['config']['get']('style')||{},_0xdc9497=_0x196d3b['plugins']['get']('GeneralHtmlSupport'),_0x1c7afd=_0x196d3b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x196d3b['plugins']['get']('DataSchema'),_0x41cd13['definitions']);_0x5df7b2['enableDefaultAttributesIntegration']('style');const _0xe7400=new Set();for(const _0x510e4d of _0x1c7afd['block']){const _0x24daf5=_0xdc9497['getGhsAttributeNameForElement'](_0x510e4d['element']);_0xe7400['add'](_0x24daf5);}const _0x448d54=new Set();for(const _0x2e5f61 of _0x1c7afd['inline']){const _0x3f5528=_0xdc9497['getGhsAttributeNameForElement'](_0x2e5f61['element']);_0x448d54['add'](_0x3f5528);for(const _0xd8f152 of _0x2e5f61['ghsAttributes'])_0x448d54['add'](_0xd8f152);}for(const _0x46ed08 of _0xe7400)_0x5df7b2['registerBlockAttribute'](_0x46ed08),_0x5df7b2['descriptionFactory']['registerAttributeLabel'](_0x46ed08,c(_0x1b0ca4,'FORMAT_STYLE'));for(const _0x39053a of _0x448d54)_0x5df7b2['registerInlineAttribute'](_0x39053a),_0x5df7b2['descriptionFactory']['registerAttributeLabel'](_0x39053a,c(_0x1b0ca4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x80e602=this['editor'],_0x163a2d=_0x80e602['locale'];_0x80e602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41166b=>{if('formatBlock'!=_0x41166b['type']&&'formatInline'!=_0x41166b['type'])return;const {data:_0x23af96}=_0x41166b;return _0x23af96&&'style'===_0x23af96['commandName']?_0x23af96['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x163a2d,'*Set\x20format:*\x20%0',_0x23af96['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x163a2d,'*Remove\x20format:*\x20%0',_0x23af96['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x34c566{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x915158){super(_0x915158),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x35f735=this['editor'],_0x752c46=_0x35f735['model']['document']['selection'];if(!_0x35f735['plugins']['has']('TableEditing'))return;const _0x494bbb=_0x35f735['locale'],_0x358c7f=_0x35f735['plugins']['get']('TrackChangesEditing'),_0x4310bc=_0x35f735['plugins']['get']('TableUtils');_0x358c7f['descriptionFactory']['registerElementLabel']('table',_0x66225c=>c(_0x494bbb,'ELEMENT_TABLE',_0x66225c)),this['_setupColumnsRowsFixing'](),_0x358c7f['enableCommand']('insertTable'),_0x358c7f['enableCommand']('selectTableRow'),_0x358c7f['enableCommand']('selectTableColumn');for(const _0x551d2e of['insertTableRowAbove','insertTableRowBelow']){const _0x1952b5=_0x35f735['commands']['get'](_0x551d2e);_0x358c7f['enableCommand'](_0x551d2e,_0x1fa422=>{_0x35f735['model']['change'](_0x195d8d=>{_0x1fa422();const _0x32668c='above'===_0x1952b5['order'],_0x1ba66c=_0x4310bc['getSelectionAffectedTableCells'](_0x752c46),_0x57ac7a=_0x4310bc['getRowIndexes'](_0x1ba66c),_0x150428=_0x32668c?_0x57ac7a['first']-0x1:_0x57ac7a['last']+0x1,_0x1a6a34=_0x1ba66c[0x0]['findAncestor']('table'),_0x4b78e1=_0x4310bc['createTableWalker'](_0x1a6a34,{'startRow':_0x150428,'endRow':_0x150428}),_0x434f69=Array['from'](_0x4b78e1)['map'](_0x887910=>_0x195d8d['createRangeOn'](_0x887910['cell']));_0x358c7f['markMultiRangeInsertion'](_0x434f69,'tableRow');});});}for(const _0x23279c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1b9256=_0x35f735['commands']['get'](_0x23279c);_0x358c7f['enableCommand'](_0x23279c,_0x127c6f=>{_0x35f735['model']['change'](_0x50cae9=>{_0x127c6f();const _0x46b4c2='left'===_0x1b9256['order'],_0x2d26b0=_0x4310bc['getSelectionAffectedTableCells'](_0x752c46),_0x12525d=_0x4310bc['getColumnIndexes'](_0x2d26b0),_0xde0019=_0x46b4c2?_0x12525d['first']-0x1:_0x12525d['last']+0x1,_0x130c8c=_0x2d26b0[0x0]['findAncestor']('table'),_0x3ca4a4=_0x4310bc['createTableWalker'](_0x130c8c,{'startRow':0x0,'column':_0xde0019,'includeAllSlots':!0x1}),_0x32097d=Array['from'](_0x3ca4a4)['map'](_0x1e5dcb=>_0x50cae9['createRangeOn'](_0x1e5dcb['cell']));_0x358c7f['markMultiRangeInsertion'](_0x32097d,'tableColumn');});});}for(const _0x7faebc of['removeTableRow','removeTableColumn']){const _0x3a449a=_0x7faebc['substr'](0xb),_0x25df87=_0x3a449a['toLowerCase'](),_0x546c37=_0x25df87['substr'](0x0,0x3)+'span',_0x181de1='table'+_0x3a449a,_0x357448='min'+_0x3a449a,_0x1ab4c7='max'+_0x3a449a;_0x358c7f['enableCommand'](_0x7faebc,()=>{_0x35f735['model']['change'](_0x11bd08=>{const _0x35ed9a=_0x4310bc['getSelectionAffectedTableCells'](_0x752c46),_0x4e2a6a=_0x35ed9a[0x0]['findAncestor']('table');let _0x16e0ff;if('removeTableRow'==_0x7faebc){const _0x5bed7a=_0x4310bc['getRowIndexes'](_0x35ed9a);_0x16e0ff={'startRow':_0x5bed7a['first'],'endRow':_0x5bed7a['last'],'includeAllSlots':!0x0};}else{const _0x2df526=_0x4310bc['getColumnIndexes'](_0x35ed9a);_0x16e0ff={'startColumn':_0x2df526['first'],'endColumn':_0x2df526['last'],'includeAllSlots':!0x0};}const _0x1d6fcf=_0x4310bc['createTableWalker'](_0x4e2a6a,_0x16e0ff),_0x526150=Array['from'](_0x1d6fcf)['map'](({cell:_0x261f55})=>_0x261f55),_0x37f6e6=Ne(_0x526150['filter'](_0x2a9819=>_0x2a9819['hasAttribute'](_0x546c37))),_0x4d1b33=Ne(_0x526150['filter'](_0x51606a=>!_0x51606a['hasAttribute'](_0x546c37)))['map'](_0x3d9d77=>_0x11bd08['createRangeOn'](_0x3d9d77)),_0x257777=_0x358c7f['markMultiRangeDeletion'](_0x4d1b33,_0x181de1);if(_0x257777&&('tableRow'==_0x257777['subType']||'tableColumn'==_0x257777['subType'])){const _0x2ae736=this['_getSuggestionCoords'](_0x257777);for(const _0x439f38 of _0x37f6e6){const _0x5cf97d=_0x11bd08['createRangeOn'](_0x439f38),_0x1fa7ef=_0x4310bc['getCellLocation'](_0x439f38),_0x406316=_0x439f38['getAttribute'](_0x546c37)-0x1,_0x5c0d2e=_0x2ae736[_0x357448],_0x5b38e1=_0x2ae736[_0x1ab4c7];_0x5c0d2e<=_0x1fa7ef[_0x25df87]&&_0x1fa7ef[_0x25df87]+_0x406316<=_0x5b38e1&&_0x257777['addRange'](_0x5cf97d);}}});});}function _0x38187a(_0x14cf79){const _0x3bbd55=Array['from'](_0x752c46['getRanges']())['map'](_0x700527=>_0x1f3765['fromRange'](_0x700527));_0x35f735['model']['change'](_0x10dc76=>{const _0x413506=_0x10dc76['batch'];_0x14cf79=_0x14cf79['filter'](_0x40437c=>'$graveyard'!=_0x40437c['root']['rootName']),_0x10dc76['setSelection'](_0x14cf79),_0x35f735['commands']['get']('removeTableRow')['refresh'](),_0x35f735['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35f735['model']['enqueueChange'](()=>{_0x35f735['model']['enqueueChange'](_0x413506,_0x5d4330=>{const _0x889e2a=_0x3bbd55['filter'](_0x5b3d80=>'$graveyard'!=_0x5b3d80['root']['rootName']);_0x889e2a['length']>0x0&&_0x5d4330['setSelection'](_0x889e2a);for(const _0x53f4aa of _0x3bbd55)_0x53f4aa['detach']();});});});}function _0x48ad2f(_0x5460f2){_0x35f735['model']['change'](_0x535039=>{const _0x54619e=Array['from'](_0x752c46['getRanges']())['map'](_0x4b74f6=>_0x1f3765['fromRange'](_0x4b74f6)),_0x2d5e69=[];for(const _0x5b6244 of _0x5460f2)for(const _0x1f7836 of _0x5b6244['getItems']({'shallow':!0x0}))_0x2d5e69['push'](_0x1f7836);for(const _0x3e37cd of _0x2d5e69)'$graveyard'!=_0x3e37cd['root']['rootName']&&(_0x535039['setSelection'](_0x535039['createPositionAt'](_0x3e37cd,0x0)),_0x35f735['commands']['get']('removeTableColumn')['refresh'](),_0x35f735['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4f9752=_0x54619e['filter'](_0x3b0e52=>'$graveyard'!=_0x3b0e52['root']['rootName']);_0x4f9752['length']>0x0&&_0x535039['setSelection'](_0x4f9752);for(const _0x41abbe of _0x54619e)_0x41abbe['detach']();});}function _0x515897(_0x3e1f0c,_0x50a60a){return _0x50a60a['every'](_0x344bf5=>_0x3e1f0c['some'](_0x256124=>_0x256124['end']['isEqual'](_0x344bf5['start'])||_0x344bf5['end']['isEqual'](_0x256124['start'])));}function _0x5ef05b(_0x50e3f5,_0x24f0e8){return!_0x50e3f5['some'](_0x5c39b6=>_0x24f0e8['some'](_0x5ed988=>_0x5c39b6['isIntersecting'](_0x5ed988)))&&_0x50e3f5['some'](_0x5252dc=>_0x24f0e8['some'](_0x55b016=>_0x5252dc['end']['isTouching'](_0x55b016['start'])));}_0x35f735['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47a48e,_0x161006,_0x21718e)=>{if(!_0x21718e['options']['showSuggestionHighlights'])return;const _0x546092=_0x161006['item'];if(!_0x546092)return;const _0x32b21c=_0x21718e['mapper']['toViewElement'](_0x546092);function _0x9bb2a2(_0x4c20c7){return Array['isArray'](_0x4c20c7)?_0x4c20c7:[_0x4c20c7];}_0x32b21c&&'tableCell'===_0x546092['name']&&_0x5c3d4a(_0x32b21c,_0x21718e['writer'],(_0x563923,_0x37e1ab,_0xfa1e74)=>_0xfa1e74['addClass'](_0x9bb2a2(_0x37e1ab['classes']),_0x563923),(_0x2bc51a,_0x5dc5ad,_0x5da3c9)=>_0x5da3c9['removeClass'](_0x9bb2a2(_0x5dc5ad['classes']),_0x2bc51a));},{'priority':'highest'}),_0x358c7f['descriptionFactory']['registerDescriptionCallback'](_0x3f9c6a=>{if('insertion'!=_0x3f9c6a['type']&&'deletion'!=_0x3f9c6a['type'])return;const _0x3bff5c=_0x3f9c6a['getContainedElement']();if(null!=_0x3bff5c&&_0x3bff5c['is']('element','table')){if('insertion'==_0x3f9c6a['type']){const _0x928268=_0x3f9c6a['getItems']()['filter'](_0x5962f1=>_0x5962f1['is']('$textProxy'))['map'](_0x30b2a1=>_0x30b2a1['data']);if(_0x928268['length'])return{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x928268['join']('\x20')+'\x22'))};}if('deletion'==_0x3f9c6a['type']){const _0x21c443=_0x3f9c6a['getItems']()['filter'](_0x84df73=>_0x84df73['is']('$textProxy'))['map'](_0x4448e9=>_0x4448e9['data']);if(_0x21c443['length'])return{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21c443['join']('\x20')+'\x22'))};}}}),_0x358c7f['descriptionFactory']['registerDescriptionCallback'](_0x15d4f8=>{if('tableRow'==_0x15d4f8['subType']){const _0x190e6a=_0x15d4f8['getItems']()['filter'](_0x4616e2=>_0x4616e2['is']('$textProxy'))['map'](_0x43ed95=>_0x43ed95['data']),_0x33aa33=this['_getSuggestionCoords'](_0x15d4f8),_0x26cb8a=_0x33aa33['maxRow']-_0x33aa33['minRow']+0x1;if('insertion'==_0x15d4f8['type'])return _0x190e6a['length']?{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26cb8a,'\x22'+_0x190e6a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW',_0x26cb8a))};if('deletion'==_0x15d4f8['type'])return _0x190e6a['length']?{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26cb8a,'\x22'+_0x190e6a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_ROW',_0x26cb8a))};}if('tableColumn'==_0x15d4f8['subType']){const _0x1d9740=_0x15d4f8['getItems']()['filter'](_0x530314=>_0x530314['is']('$textProxy'))['map'](_0x5573f0=>_0x5573f0['data']),_0x2f93c0=this['_getSuggestionCoords'](_0x15d4f8),_0x3497a6=_0x2f93c0['maxColumn']-_0x2f93c0['minColumn']+0x1;if('insertion'==_0x15d4f8['type'])return _0x1d9740['length']?{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3497a6,'\x22'+_0x1d9740['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x494bbb,'*Insert:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN',_0x3497a6))};if('deletion'==_0x15d4f8['type'])return _0x1d9740['length']?{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3497a6,'\x22'+_0x1d9740['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x494bbb,'*Remove:*\x20%0',c(_0x494bbb,'ELEMENT_TABLE_COLUMN',_0x3497a6))};}}),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38187a),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38187a),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x48ad2f),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x48ad2f),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x515897),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x515897),_0x358c7f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ef05b),_0x358c7f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ef05b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6cd469=this['editor'],_0x3cf4e5=_0x6cd469['model']['document']['selection'];return(_0x324937,_0x3bf2c0)=>{_0x6cd469['model']['change'](_0x2d1aaf=>{const {commandName:_0x2a33c5,commandParams:_0x5ccae4}=_0x3bf2c0;let _0x2d1b17=_0x324937[0x0]['end']['nodeBefore'];_0x5ccae4&&_0x5ccae4[0x0]&&!0x1===_0x5ccae4[0x0]['forceValue']&&(_0x2d1b17=_0x324937[0x0]['start']['nodeAfter']);const _0x11a983=_0x2d1aaf['createRangeIn'](_0x2d1b17);if('$graveyard'==_0x11a983['root']['rootName'])return;const _0x476f95=Array['from'](_0x3cf4e5['getRanges']())['map'](_0x5a6680=>_0x1f3765['fromRange'](_0x5a6680));_0x2d1aaf['setSelection'](_0x11a983),_0x6cd469['commands']['get'](_0x2a33c5)['refresh'](),_0x5ccae4['push']({'forceDefaultExecution':!0x0}),_0x6cd469['execute'](_0x2a33c5,..._0x5ccae4);const _0xe4353b=_0x476f95['filter'](_0x5d8560=>'$graveyard'!=_0x5d8560['root']['rootName']);_0xe4353b['length']>0x0&&_0x2d1aaf['setSelection'](_0xe4353b);for(const _0x461b12 of _0x476f95)_0x461b12['detach']();});};}['_getCoordsForCells'](_0xe3fc1f){const _0x38e64e=this['editor']['plugins']['get']('TableUtils');let _0x42018d=Number['MAX_SAFE_INTEGER'],_0x2e2c10=Number['MIN_SAFE_INTEGER'],_0x580935=Number['MAX_SAFE_INTEGER'],_0x1e29a6=Number['MIN_SAFE_INTEGER'];for(const _0x2ca759 of _0xe3fc1f){if('$graveyard'==_0x2ca759['root']['rootName'])continue;const {row:_0x4c77ab,column:_0x31739c}=_0x38e64e['getCellLocation'](_0x2ca759),_0x5ccc3a=_0x2ca759['hasAttribute']('rowspan')?_0x2ca759['getAttribute']('rowspan')-0x1:0x0,_0x3e410b=_0x2ca759['hasAttribute']('colspan')?_0x2ca759['getAttribute']('colspan')-0x1:0x0;_0x42018d=_0x4c77ab<_0x42018d?_0x4c77ab:_0x42018d,_0x2e2c10=_0x4c77ab+_0x5ccc3a>_0x2e2c10?_0x4c77ab+_0x5ccc3a:_0x2e2c10,_0x580935=_0x31739c<_0x580935?_0x31739c:_0x580935,_0x1e29a6=_0x31739c+_0x3e410b>_0x1e29a6?_0x31739c+_0x3e410b:_0x1e29a6;}return{'minRow':_0x42018d,'maxRow':_0x2e2c10,'minColumn':_0x580935,'maxColumn':_0x1e29a6};}['_setupColumnsRowsFixing'](){const _0x2b432f=this['editor'],_0x2b41ac=_0x2b432f['plugins']['get']('TrackChangesEditing'),_0x729f6e=_0x2b432f['plugins']['get']('TableUtils');_0x2b432f['model']['document']['on']('change:data',()=>{const _0x595325=Array['from'](_0x2b432f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49ecad,data:_0x42cba8}of _0x595325){const {group:_0x592597,id:_0xa11198,subType:_0x4ee36f}=_0x2b41ac['_splitMarkerName'](_0x49ecad);if('suggestion'!=_0x592597)continue;if(null!=_0x42cba8['oldRange'])continue;const _0x5bcea1=_0x2b41ac['getSuggestion'](_0xa11198);this['_tablePostFixingSubtypes']['includes'](_0x4ee36f)&&this['_tableSuggestions']['add'](_0x5bcea1);}},{'priority':'low'});const _0x4006ce=(_0x15bedb,_0xcbf057)=>{let _0x15bb9a=!0x1;const _0x4e6331=_0xcbf057['createRangeOn'](_0x15bedb),_0x18bf5a=_0x15bedb['findAncestor']('table'),_0x58cd32=_0x729f6e['getCellLocation'](_0x15bedb);for(const _0x1cd5b5 of this['_tableSuggestions']){const _0x167f64=_0x1cd5b5['subType'],_0x20c111=_0x167f64['startsWith']('tablePaste'),_0x4f74f6=_0x167f64['substr'](_0x20c111?0xa:0x5),_0x489a89=_0x4f74f6['toLowerCase'](),_0x7d7feb=_0x489a89['substr'](0x0,0x3)+'span',_0x3a9e23='min'+_0x4f74f6,_0x33d20b='max'+_0x4f74f6;if(!_0x1cd5b5['isInContent'])continue;if(_0x18bf5a!=_0x1cd5b5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1cd5b5['isIntersectingWithRange'](_0x4e6331))continue;const _0x150abf=_0x15bedb['hasAttribute'](_0x7d7feb)?_0x15bedb['getAttribute'](_0x7d7feb)-0x1:0x0,_0x4240cd=this['_getSuggestionCoords'](_0x1cd5b5),_0x275c26=_0x4240cd[_0x3a9e23],_0x588c38=_0x4240cd[_0x33d20b];_0x275c26<=_0x58cd32[_0x489a89]&&_0x58cd32[_0x489a89]+_0x150abf<=_0x588c38&&(_0x1cd5b5['addRange'](_0x4e6331),_0x15bb9a=!0x0);}return _0x15bb9a;};_0x2b432f['model']['document']['registerPostFixer'](_0x1b2af5=>{let _0x167040=!0x1;for(const _0x44a025 of _0x2b432f['model']['document']['differ']['getChanges']())if('insert'==_0x44a025['type']){if('tableRow'==_0x44a025['name']){for(const _0x3e5fc0 of _0x44a025['position']['nodeAfter']['getChildren']())_0x167040=_0x167040||_0x4006ce(_0x3e5fc0,_0x1b2af5);}else'tableCell'==_0x44a025['name']&&(_0x167040=_0x167040||_0x4006ce(_0x44a025['position']['nodeAfter'],_0x1b2af5));}return _0x167040;});}['_getSuggestionCoords'](_0x4353e9){return this['_getCoordsForCells'](_0x4353e9['getRanges']()['map'](_0x9f332b=>_0x9f332b['start']['nodeAfter']));}}function Ne(_0x421f04){return Array['from'](new Set(_0x421f04)['values']());}class vt extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0x231b2b=this['editor'],_0x37dd8a=_0x231b2b['model']['document']['selection'],_0x912fca=_0x231b2b['locale'];if(!_0x231b2b['plugins']['has']('TableEditing'))return;const _0x1075f9=_0x231b2b['plugins']['get']('TrackChangesEditing'),_0x9eb0ce=_0x231b2b['plugins']['get']('TableUtils'),_0x4e6444=_0x231b2b['plugins']['get'](_t);_0x4e6444['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1075f9['enableCommand']('mergeTableCells',()=>{const _0x30d2ee=_0x9eb0ce['getSelectionAffectedTableCells'](_0x231b2b['model']['document']['selection']);_0x231b2b['model']['change'](()=>{_0x1075f9['markMultiRangeBlockFormat'](_0x30d2ee,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x231b2b['commands']['get']('mergeTableCells')['on']('execute',(_0x1693da,_0x4e4f6f)=>{_0x231b2b['commands']['get']('trackChanges')['value']&&(_0x4e4f6f['length']>0x0&&_0x4e4f6f[_0x4e4f6f['length']-0x1]&&_0x4e4f6f[_0x4e4f6f['length']-0x1]['forceDefaultExecution']||_0x1075f9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1693da['stop']());},{'priority':'highest'});for(const _0x3ee1de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x444f34=_0x231b2b['commands']['get'](_0x3ee1de);_0x1075f9['enableCommand'](_0x3ee1de,()=>{const _0x541c68=_0x231b2b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x466b73=>_0x466b73['is']('element','tableCell')),_0x2cb6b7=_0x444f34['value'];_0x231b2b['model']['change'](()=>{_0x1075f9['markMultiRangeBlockFormat']([_0x541c68,_0x2cb6b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c855d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2ac8ab=_0x231b2b['commands']['get'](_0x4c855d);_0x1075f9['enableCommand'](_0x4c855d,()=>{const _0x56728e=_0x9eb0ce['getSelectionAffectedTableCells'](_0x231b2b['model']['document']['selection'])[0x0],_0x11f2bf=_0x56728e['findAncestor']('table'),{column:_0x49c7c0,row:_0x18a531}=_0x9eb0ce['getCellLocation'](_0x56728e);let _0x5ba793=[];if('horizontally'==_0x2ac8ab['direction']){const _0xfcd30d=_0x9eb0ce['createTableWalker'](_0x11f2bf,{'startRow':_0x18a531,'endRow':_0x18a531,'includeAllSlots':!0x0});_0x5ba793=Array['from'](_0xfcd30d)['map'](_0x1c1a97=>_0x1c1a97['cell']);}else{const _0x120eeb=_0x9eb0ce['createTableWalker'](_0x11f2bf,{'column':_0x49c7c0,'includeAllSlots':!0x0});_0x5ba793=Array['from'](_0x120eeb)['map'](_0x7f3289=>_0x7f3289['cell']);}_0x231b2b['model']['change'](_0x5479ca=>{_0x1075f9['markBlockFormat'](_0x5479ca['createRangeOn'](_0x56728e),{'commandName':_0x4c855d,'commandParams':[]},_0x5ba793,_0x4c855d);});});}_0x1075f9['descriptionFactory']['registerDescriptionCallback'](_0x1aa083=>{if('formatBlock'!=_0x1aa083['type']&&'formatInline'!=_0x1aa083['type'])return;const {data:_0x3ce17e}=_0x1aa083;return _0x3ce17e&&'mergeTableCells'==_0x3ce17e['commandName']?{'type':'format','content':c(_0x912fca,'*Merge\x20cells*')}:void 0x0;}),_0x1075f9['descriptionFactory']['registerDescriptionCallback'](_0x32a32d=>{if('formatBlock'!=_0x32a32d['type']&&'formatInline'!=_0x32a32d['type'])return;const {data:_0x2ec386}=_0x32a32d;return _0x2ec386?'splitTableCellVertically'==_0x2ec386['commandName']?{'type':'format','content':c(_0x912fca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ec386['commandName']?{'type':'format','content':c(_0x912fca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x317fc6=_0x4e6444['_acceptFormatSuggestionCallbackFactory']();for(const _0x58a47c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1075f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58a47c,'accept',_0x317fc6);for(const _0x1451e9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1075f9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1451e9,'accept',_0x317fc6);_0x1075f9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d7f6a=>{_0x231b2b['model']['change'](_0x201774=>{const _0x20adcd=Array['from'](_0x37dd8a['getRanges']())['map'](_0x5ed231=>_0x1f3765['fromRange'](_0x5ed231));_0x201774['setSelection'](_0x3d7f6a),_0x231b2b['commands']['get']('mergeTableCells')['refresh'](),_0x231b2b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44ae8d=_0x20adcd['filter'](_0x2f62b2=>'$graveyard'!=_0x2f62b2['root']['rootName']);_0x44ae8d['length']>0x0&&_0x201774['setSelection'](_0x44ae8d);for(const _0x447293 of _0x20adcd)_0x447293['detach']();});});for(const _0x4b1348 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4a1253=_0x231b2b['commands']['get'](_0x4b1348);_0x4a1253['on']('set:isEnabled',(_0x13fd04,_0x6fbbc8,_0x5e60cf)=>{if(_0x5e60cf){const _0x380a85=_0x231b2b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x359dd7=>_0x359dd7['is']('element','tableCell'));this['_areMergableCells'](_0x4a1253['value'],_0x380a85)||(_0x13fd04['return']=!0x1,_0x13fd04['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55b7f2=this['editor']['commands']['get']('mergeTableCells'),_0x90c33c=this['editor']['plugins']['get']('TableUtils');if(!_0x55b7f2['isEnabled'])return!0x1;const _0x390c47=_0x90c33c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30661e of _0x390c47)for(const _0x4db764 of _0x390c47)if(_0x30661e!=_0x4db764&&!this['_areMergableCells'](_0x30661e,_0x4db764))return!0x1;return!0x0;}['_areMergableCells'](_0x2e9244,_0x4ee3bc){const _0x4c438e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48fc49=this['editor']['model']['createRangeOn'](_0x2e9244),_0x4cfe63=this['editor']['model']['createRangeOn'](_0x4ee3bc),_0x147b9b=new Set(),_0x2ea548=new Set();for(const _0x159b13 of _0x4c438e['getSuggestions']())if(('insertion'==_0x159b13['type']||'deletion'==_0x159b13['type']||'mergeTableCells'==_0x159b13['subType'])&&_0x159b13['isInContent']){for(const _0x20dcd0 of _0x159b13['getRanges']())_0x20dcd0['containsRange'](_0x48fc49,!0x0)&&_0x147b9b['add'](_0x159b13['type']+':'+_0x159b13['author']['id']),_0x20dcd0['containsRange'](_0x4cfe63,!0x0)&&_0x2ea548['add'](_0x159b13['type']+':'+_0x159b13['author']['id']);}if(_0x147b9b['size']!=_0x2ea548['size'])return!0x1;for(const _0x4f1751 of _0x147b9b)if(!_0x2ea548['has'](_0x4f1751))return!0x1;return!0x0;}}class Ct extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0x51def8=this['editor'];if(!_0x51def8['plugins']['has']('TableEditing'))return;const _0x511f67=_0x51def8['locale'],_0x267dc1=_0x51def8['plugins']['get']('TrackChangesEditing');_0x267dc1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x267dc1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x267dc1['registerBlockAttribute']('headingRows'),_0x267dc1['registerBlockAttribute']('headingColumns'),_0x267dc1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x511f67,'FORMAT_HEADER_ROW')),_0x267dc1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x511f67,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d5383=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427d02=this['editor']['plugins']['get']('TableUtils'),_0x5e8b19=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x54358a({showActiveMarker:_0x142e22=!0x0,setDataAttribute:_0x42438a=!0x0}={}){return(_0x308dd4,_0x13e52c,_0x383b82)=>{const {type:_0x4ab27e,id:_0x562939}=_0x1d5383['_splitMarkerName'](_0x13e52c['markerName']),_0xad0f45=_0x1d5383['getSuggestion'](_0x562939),_0x371b6a=_0xad0f45['data'];if('formatBlock'!=_0xad0f45['type']||!_0x371b6a||'setTableColumnHeader'!=_0x371b6a['commandName'])return;if(_0x13e52c['item'])return void _0x308dd4['stop']();if(!_0x383b82['consumable']['consume'](_0x13e52c['markerRange'],_0x308dd4['name']))return;const _0x3a9039=_0x13e52c['markerRange']['start']['nodeAfter'],_0x188dd2=_0x13e52c['markerRange']['end']['nodeBefore'],_0x41af56=_0x3a9039['parent']['parent'],{column:_0x1a3147}=_0x427d02['getCellLocation'](_0x3a9039),{column:_0x2a4d8e}=_0x427d02['getCellLocation'](_0x188dd2);for(let _0x4138af=_0x1a3147;_0x4138af<=_0x2a4d8e;_0x4138af++){const _0x26d65a=_0x427d02['createTableWalker'](_0x41af56,{'column':_0x4138af,'includeAllSlots':!0x1});for(const _0x1bc8b0 of _0x26d65a){const _0x55d60a=_0x1bc8b0['cell'],_0x1d955e=_0x383b82['mapper']['toViewElement'](_0x55d60a);_0x383b82['writer']['addClass']('ck-suggestion-marker-'+_0x4ab27e,_0x1d955e),_0x42438a&&_0x383b82['writer']['setAttribute']('data-suggestion',_0x562939,_0x1d955e),_0x383b82['mapper']['bindElementToMarker'](_0x1d955e,_0x13e52c['markerName']),_0x142e22&&(_0x1d5383['activeMarkers']['includes'](_0x13e52c['markerName'])?_0x383b82['writer']['addClass']('ck-suggestion-marker--active',_0x1d955e):_0x383b82['writer']['removeClass']('ck-suggestion-marker--active',_0x1d955e));}}};}_0x1d5383['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e8b19),_0x1d5383['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e8b19),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x54358a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54ff08,_0x4f6061,_0x563280)=>{_0x563280['options']['showSuggestionHighlights']&&_0x54358a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x54ff08,_0x4f6061,_0x563280);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31059f,_0x5291c2,_0x5e4fd4)=>{const {type:_0x45db87,id:_0x58fb67}=_0x1d5383['_splitMarkerName'](_0x5291c2['markerName']),_0x4736c5=_0x1d5383['getSuggestion'](_0x58fb67),_0x413261=_0x4736c5['data'];if('formatBlock'!=_0x4736c5['type']||!_0x413261||'setTableColumnHeader'!=_0x413261['commandName'])return;const _0x499b64=_0x5e4fd4['mapper']['markerNameToElements'](_0x5291c2['markerName']);if(_0x499b64){for(const _0x2bc4da of _0x499b64)_0x5e4fd4['writer']['removeClass']('ck-suggestion-marker-'+_0x45db87,_0x2bc4da),_0x5e4fd4['writer']['removeClass']('ck-suggestion-marker--active',_0x2bc4da),_0x5e4fd4['writer']['removeAttribute']('data-suggestion',_0x2bc4da),_0x5e4fd4['mapper']['unbindElementFromMarkerName'](_0x2bc4da,_0x5291c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e16d4=this['editor'],_0x3f281a=_0x5e16d4['locale'];function _0x262330(_0x1f6efa){return{'type':'format','content':c(_0x3f281a,'*Format:*\x20%0',_0x1f6efa)};}_0x5e16d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15e81c=>{if('formatBlock'!=_0x15e81c['type'])return;const {data:_0x456ade}=_0x15e81c;if(_0x456ade){if('setTableRowHeader'==_0x456ade['commandName']){const _0x542b73=_0x456ade['commandParams'][0x0]['forceValue'];return _0x262330(c(_0x3f281a,_0x542b73?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x456ade['commandName']){const _0x5063ff=_0x456ade['commandParams'][0x0]['forceValue'];return _0x262330(c(_0x3f281a,_0x5063ff?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4523f9=>[_0x4523f9,null]));class Nt extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0xccbccf=this['editor'];if(!_0xccbccf['plugins']['has']('TableClipboard'))return;const _0x139630=_0xccbccf['plugins']['get']('TrackChangesEditing'),_0xf195aa=_0xccbccf['plugins']['get']('TableUtils'),_0x6f21f2=_0xccbccf['plugins']['get'](_t),_0x5d7bc9=_0xccbccf['plugins']['get']('TableClipboard');_0x6f21f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xccbccf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xccbccf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b9b9c=null;_0xccbccf['model']['on']('insertContent',(_0x292a10,_0x5dd22d)=>{const [_0x1a5d33,_0x52b421]=_0x5dd22d,_0x488382=_0x5dd22d[_0x5dd22d['length']-0x1];_0x488382&&_0x488382['forceDefaultExecution']||_0x139630['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x436e23,_0x2e12f2,_0x221e4e,_0x48b751,_0xa0c28b){if(_0x2e12f2&&!_0x2e12f2['is']('documentSelection'))return!0x1;const _0x5e56e0=_0xa0c28b['getTableIfOnlyTableInContent'](_0x436e23,_0x221e4e);if(!_0x5e56e0||!Ue(_0x5e56e0,void 0x0,_0x48b751))return!0x1;const _0x1575a1=_0x48b751['getSelectionAffectedTableCells'](_0x221e4e['document']['selection']);if(!_0x1575a1['length'])return!0x1;const _0x54c923=_0x1575a1[0x0]['findAncestor']('table'),_0x34434c=_0x48b751['getRowIndexes'](_0x1575a1),_0x43f7a0=_0x48b751['getColumnIndexes'](_0x1575a1),_0x43b56e={'startRow':_0x34434c['first'],'endRow':_0x34434c['last'],'startColumn':_0x43f7a0['first'],'endColumn':_0x43f7a0['last']};return 0x1==_0x1575a1['length']&&(_0x43b56e['endRow']+=_0x48b751['getRows'](_0x5e56e0)-0x1,_0x43b56e['endColumn']+=_0x48b751['getColumns'](_0x5e56e0)-0x1),Ue(_0x54c923,_0x43b56e,_0x48b751);}(_0x1a5d33,_0x52b421,_0xccbccf['model'],_0xf195aa,_0x5d7bc9)&&(_0x292a10['stop'](),_0x5b9b9c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xccbccf['model']['change'](()=>{_0xccbccf['model']['insertContent'](_0x5dd22d[0x0],_0x5dd22d[0x1],_0x5dd22d[0x2],{'forceDefaultExecution':!0x0});const _0x3074ed=_0x18c716(),{rowInsertionRanges:_0x5132d5,columnInsertionRanges:_0x5618f5,insertionRanges:_0x12e2a6,deletionRanges:_0x59b3d1,cells:_0x3ec174}=_0x5b9b9c;_0x5132d5['length']&&_0x139630['markMultiRangeInsertion'](_0x5132d5,'tablePasteRow',{'tablePasteChainId':_0x3074ed}),_0x5618f5['length']&&_0x139630['markMultiRangeInsertion'](_0x5618f5,'tablePasteColumn',{'tablePasteChainId':_0x3074ed}),_0x12e2a6['length']&&(_0x139630['markMultiRangeInsertion'](_0x12e2a6,'tablePaste',{'tablePasteChainId':_0x3074ed,'skipNestingCheck':!0x0}),_0x12e2a6['forEach'](_0x30e2de=>_0x30e2de['detach']?.())),_0x59b3d1['length']&&(_0x139630['markMultiRangeDeletion'](_0x59b3d1,'tablePaste',{'tablePasteChainId':_0x3074ed,'skipNestingCheck':!0x0}),_0x59b3d1['forEach'](_0x3499db=>_0x3499db['detach']?.()));const _0x417aa2=_0x139630['markMultiRangeBlockFormat'](_0x3ec174['map'](({element:_0x580242})=>_0x580242),{'formatGroupId':_0x18c716()},[],'tablePasteCell',{'tablePasteChainId':_0x3074ed});if(_0x417aa2){const _0x545bc2=_0x417aa2['getMarkers'](),_0x24a195=[];for(const {element:_0x2bf027,attributes:_0x515985}of _0x3ec174){if(!_0x515985)continue;const _0x2301b2=_0xccbccf['model']['createRangeOn'](_0x2bf027),_0x15cb3b=_0x545bc2['find'](_0x107109=>_0x107109['getRange']()['isEqual'](_0x2301b2));_0x15cb3b&&_0x24a195['push']([_0x15cb3b['name'],_0x515985]);}_0x24a195['length']&&_0x417aa2['setAttribute']('markerAttributes',Object['fromEntries'](_0x24a195));}_0x5b9b9c=null;}));},{'priority':_0x74c243['high']+0xa}),_0xccbccf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa18120,_0x4501df)=>{const [_0x1f4b28,_0x32879e,,_0x54c42b]=_0x4501df;if(!_0x5b9b9c)return;_0xa18120['stop']();const _0x3749b4=_0x1f4b28['cell'],_0x5c152c=_0x32879e,_0x1c0862=Oe(_0x3749b4),_0xb55c30=Oe(_0x5c152c);_0xa18120['return']=_0x3749b4;let _0x1e0ca4=null,_0x3883a2=null;if(_0xb55c30||_0x1c0862){if(_0x1c0862&&!_0xb55c30){_0x54c42b['remove'](_0x3749b4['getChild'](0x0));for(const _0xa33fbc of Array['from'](_0x5c152c['getChildren']()))_0x54c42b['insert'](_0xa33fbc,_0x3749b4,'end');const _0x1ebfea=_0x5b9b9c['rowInsertionIndexes']['includes'](_0x1f4b28['row']),_0x220005=_0x5b9b9c['columnInsertionIndexes']['includes'](_0x1f4b28['column']);_0x1ebfea||_0x220005||(_0x1e0ca4=_0x1f3765['fromRange'](_0x54c42b['createRangeIn'](_0x3749b4)));}else _0xb55c30&&!_0x1c0862&&(_0x3883a2=_0x54c42b['createRangeIn'](_0x3749b4));}else{const _0x105015=_0x54c42b['createElement']('tableCellSuggestion'),_0x4741d5=_0x54c42b['createElement']('tableCellSuggestion');_0x54c42b['wrap'](_0x54c42b['createRangeIn'](_0x3749b4),_0x4741d5),_0x54c42b['insert'](_0x105015,_0x3749b4,0x0);for(const _0x2557ba of Array['from'](_0x5c152c['getChildren']()))_0x54c42b['insert'](_0x2557ba,_0x105015,'end');_0x1e0ca4=_0x1f3765['fromRange'](_0x54c42b['createRangeOn'](_0x105015)),_0x3883a2=_0x1f3765['fromRange'](_0x54c42b['createRangeOn'](_0x4741d5));}const _0x5ee1c6=Array['from'](_0x5c152c['getAttributes']())['filter'](([_0xa8ca8f])=>Be['includes'](_0xa8ca8f));_0x5b9b9c['cells']['push']({'element':_0x3749b4,'attributes':_0x5ee1c6['length']?Object['fromEntries'](_0x5ee1c6):null}),_0x1e0ca4&&_0x5b9b9c['insertionRanges']['push'](_0x1e0ca4),_0x3883a2&&_0x5b9b9c['deletionRanges']['push'](_0x3883a2);},{'priority':'high'}),_0xf195aa['on']('insertColumns',(_0x200dcc,_0x3599d5)=>{const [_0x10e894,_0x56e731={}]=_0x3599d5;if(!_0x5b9b9c)return;const _0x2c68f6=_0x56e731['at']||0x0,_0x2f2bc0=_0x56e731['columns']||0x1;_0x5b9b9c['columnInsertionIndexes']=new Array(_0x2f2bc0)['fill'](_0x2c68f6)['map']((_0x5b1249,_0x203fa6)=>_0x5b1249+_0x203fa6);for(const {cell:_0xa78457}of _0xf195aa['createTableWalker'](_0x10e894,{'startColumn':_0x2c68f6,'endColumn':_0x2c68f6+_0x2f2bc0-0x1}))_0x5b9b9c['columnInsertionRanges']['push'](_0xccbccf['model']['createRangeOn'](_0xa78457));},{'priority':'low'}),_0xf195aa['on']('insertRows',(_0x237745,_0x3d361c)=>{const [_0xcd170,_0x1a4ea0={}]=_0x3d361c;if(!_0x5b9b9c)return;const _0x11f15b=_0x1a4ea0['at']||0x0,_0x123f39=_0x1a4ea0['rows']||0x1;_0x5b9b9c['rowInsertionIndexes']=new Array(_0x123f39)['fill'](_0x11f15b)['map']((_0x495946,_0x528d4d)=>_0x495946+_0x528d4d);for(const {cell:_0x4a9eed}of _0xf195aa['createTableWalker'](_0xcd170,{'startRow':_0x11f15b,'endRow':_0x11f15b+_0x123f39-0x1}))_0x5b9b9c['rowInsertionRanges']['push'](_0xccbccf['model']['createRangeOn'](_0x4a9eed));},{'priority':'low'}),_0x139630['descriptionFactory']['registerDescriptionCallback'](_0x55917a=>{if(_0x55917a['subType']&&_0x55917a['subType']['startsWith']('tablePaste'))return _0x55917a['previous']?{}:{'type':'insertion','content':c(_0xccbccf['locale'],'*Replace\x20table\x20cells*')};});const _0x314115=()=>!0x1;for(const _0x273bee of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x139630['_suggestionFactory']['registerCustomCallback']('insertion',_0x273bee,'join',_0x314115),_0x139630['_suggestionFactory']['registerCustomCallback']('deletion',_0x273bee,'join',_0x314115),_0x139630['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x273bee,'join',_0x314115);_0x139630['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x314115),_0x139630['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f361d,_0xf7a805,_0x38b21d)=>{const _0x20590b=_0x4f361d['map'](_0x2fe584=>_0x2fe584['getContainedElement']())['filter'](_0x22ff49=>_0x22ff49),_0x3c9b5e=new Map(_0x20590b['map'](_0x2b3c76=>[_0x2b3c76,null]));if(_0x5b9b9c){for(const {element:_0x173146,attributes:_0x31d7ac}of _0x5b9b9c['cells'])_0x31d7ac&&_0x3c9b5e['set'](_0x173146,_0x31d7ac);}else{if(_0x38b21d&&_0x38b21d['markerAttributes'])for(const [_0x3cacc2,_0x3d999d]of Object['entries'](_0x38b21d['markerAttributes'])){const _0x17cd58=_0xccbccf['model']['markers']['get'](_0x3cacc2),_0x120343=_0x17cd58?_0x17cd58['getRange']()['getContainedElement']():null;_0x120343&&_0x3c9b5e['set'](_0x120343,_0x3d999d);}}_0xccbccf['model']['change'](_0x7ca687=>{for(const [_0x531aa2,_0x7a465]of _0x3c9b5e)_0x7ca687['setAttributes']({...xe,..._0x7a465},_0x531aa2);});});const _0x1de155=(_0x2572f3,_0x19caf5)=>{_0x139630['_suggestionFactory']['registerCustomCallback'](_0x2572f3,'tablePaste',_0x19caf5,(_0xea57ae,_0x1cb4c6,_0x5e0900)=>{_0xccbccf['model']['change'](_0x49192d=>{const _0x1046f0=[];for(const _0x177f85 of _0xea57ae){const _0x24b12c=_0x177f85['start']['nodeAfter'];_0x24b12c['is']('element','tableCellSuggestion')&&_0x1046f0['push'](_0x24b12c);}_0x139630['_suggestionFactory']['getSuggestionCallback'](_0x2572f3,null,_0x19caf5)(_0xea57ae,_0x1cb4c6,_0x5e0900);for(const _0x12afd9 of _0x1046f0)'$graveyard'!=_0x12afd9['root']['rootName']&&_0x49192d['unwrap'](_0x12afd9);});});};_0x1de155('insertion','accept'),_0x1de155('insertion','discard'),_0x1de155('deletion','accept'),_0x1de155('deletion','discard'),_0x139630['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x146f1f=>{const _0x1d036e=_0x146f1f['map'](_0x67fec1=>_0x67fec1['getContainedElement']()),_0x2b43d5=_0x1d036e[0x0]['findAncestor']('table'),{minRow:_0x26bf09,maxRow:_0x230fa3}=_0x6f21f2['_getCoordsForCells'](_0x1d036e);_0xf195aa['removeRows'](_0x2b43d5,{'at':_0x26bf09,'rows':_0x230fa3-_0x26bf09+0x1});}),_0x139630['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40d167=>{const _0x195b96=_0x40d167['map'](_0x3eae3a=>_0x3eae3a['getContainedElement']()),_0x5b4c8f=_0x195b96[0x0]['findAncestor']('table'),{minColumn:_0x4ee3d6,maxColumn:_0x5d32c3}=_0x6f21f2['_getCoordsForCells'](_0x195b96);_0xf195aa['removeColumns'](_0x5b4c8f,{'at':_0x4ee3d6,'columns':_0x5d32c3-_0x4ee3d6+0x1});});const _0x3c928e=(_0x1f6e49,_0x314e3e)=>{if(!_0x314e3e['subType']||!_0x314e3e['subType']['startsWith']('tablePaste'))return;const _0x13e328=_0x314e3e['attributes']['tablePasteChainId'],_0x4712b1=_0x139630['getSuggestions']()['filter'](_0x1163a9=>_0x1163a9['isInContent']&&_0x1163a9['attributes']&&_0x1163a9['attributes']['tablePasteChainId']==_0x13e328);_0x4712b1['length']&&_0x314e3e['getAllAdjacentSuggestions']()['length']!=_0x4712b1['length']&&_0x4712b1['reduce']((_0x4c88b0,_0x552828)=>(_0x4c88b0['next']=_0x552828,_0x552828['previous']=_0x4c88b0,_0x552828));};function _0x5206a8(_0x17df97,_0x4ad4ea=!0x0){const {id:_0xb8d032,authorId:_0x200454}=_0x139630['_splitMarkerName'](_0x17df97['markerName']),_0xf0c17e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2f30f0=_0x139630['activeMarkers']['includes'](_0x17df97['markerName']);return _0x2f30f0&&_0xf0c17e['push']('ck-suggestion-marker--active'),{'classes':_0xf0c17e,'attributes':{'data-suggestion':_0xb8d032,'data-author-id':_0x200454},'priority':_0x2f30f0&&_0x4ad4ea?0xbc2:0xbb8};}_0x139630['on']('suggestionLoaded',_0x3c928e,{'priority':'high'}),_0x139630['on']('suggestionUnloaded',_0x3c928e,{'priority':'high'}),_0xccbccf['model']['document']['registerPostFixer'](()=>{let _0x57e556=!0x1;const _0x3f8a86=Array['from'](_0xccbccf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c1432,data:_0x3733ee}of _0x3f8a86){const {group:_0x172940,type:_0x5d1a85,id:_0x203692}=_0x139630['_splitMarkerName'](_0x4c1432);if('suggestion'!=_0x172940||'deletion'!=_0x5d1a85||_0x3733ee['oldRange'])continue;if(!_0x139630['hasSuggestion'](_0x203692))continue;const _0x1d6295=_0x139630['getSuggestion'](_0x203692)['getRanges'](),_0x369e1f=_0xccbccf['plugins']['get']('Users')['me'];for(const _0x348b11 of _0x139630['getSuggestions']()){if(!_0x348b11['isInContent']||_0x348b11['author']!=_0x369e1f)continue;if('formatBlock'!=_0x348b11['type']||'tablePasteCell'!=_0x348b11['subType'])continue;if(_0x348b11['getRanges']()['every'](_0xf33963=>_0x1d6295['some'](_0x2a955a=>_0x2a955a['containsRange'](_0xf33963,!0x0)))){for(const _0x4e5861 of _0x348b11['getAllAdjacentSuggestions']())_0x4e5861['isInContent']&&(_0x4e5861['discard'](),_0x57e556=!0x0);}}}return _0x57e556;}),_0xccbccf['model']['document']['registerPostFixer'](_0x5c7c70=>{const _0x5f4424=_0xccbccf['commands']['get']('redo');if(!_0x5f4424||!_0x5f4424['_createdBatches']['has'](_0x5c7c70['batch']))return!0x1;let _0x29115e=!0x1;const _0xbceb4=_0xccbccf['plugins']['get']('Users')['me'],_0x2e6bf7=_0xccbccf['model']['document']['differ']['getChanges'](),_0x5f5315=Array['from'](_0xccbccf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x49f066,data:_0x5de113})=>{const {group:_0x8a2d3a,subType:_0x16189b,authorId:_0x3fa0dd}=_0x139630['_splitMarkerName'](_0x49f066);return'suggestion'==_0x8a2d3a&&'tablePaste'==_0x16189b&&_0x3fa0dd==_0xbceb4['id']&&!_0x5de113['oldRange'];});for(const _0x4cc5ed of _0x2e6bf7){if('insert'!=_0x4cc5ed['type']||'tableCellSuggestion'!=_0x4cc5ed['name']||0x1!=_0x4cc5ed['length'])continue;const _0xd0f51e=_0x5c7c70['createRange'](_0x4cc5ed['position'],_0x4cc5ed['position']['getShiftedBy'](0x1));if(!_0x5f5315['find'](({data:_0x52b9c6})=>_0x52b9c6['newRange']['isEqual'](_0xd0f51e))){for(const {name:_0x267521,data:_0x295fa5}of _0x5f5315)if(_0xd0f51e['containsRange'](_0x295fa5['newRange'])){_0x5c7c70['updateMarker'](_0x267521,{'range':_0xd0f51e}),_0x29115e=!0x0;break;}}}return _0x29115e;}),_0xccbccf['model']['document']['registerPostFixer'](_0x578809=>{let _0x356942=!0x1;const _0x1052f5=_0xccbccf['plugins']['get']('Users')['me'],_0x5b4148=_0x139630['getSuggestions']()['filter'](_0x3d264c=>_0x3d264c['isInContent']&&_0x3d264c['author']==_0x1052f5),_0xe03f1f=new Set(),_0x4267e0=new Set();for(const _0x1fdb3f of _0x5b4148)if('tablePaste'==_0x1fdb3f['subType'])for(const _0xd0b1d7 of _0x1fdb3f['getMarkers']()){const _0x1d3162=_0xd0b1d7['getRange']()['getContainedElement']();if(_0x1d3162){if(_0x1d3162['is']('element','tableCellSuggestion')&&Oe(_0x1d3162)){_0x1fdb3f['removeMarker'](_0xd0b1d7['name']),_0xe03f1f['add'](_0x1d3162),_0x356942=!0x0;const _0x1605ee=_0x1d3162['nextSibling'],_0x24b61e=_0x1d3162['previousSibling'],_0xadb28b=_0x1605ee&&_0x1605ee['is']('element','tableCellSuggestion'),_0x4afc95=_0x24b61e&&_0x24b61e['is']('element','tableCellSuggestion');_0xadb28b&&!_0xe03f1f['has'](_0x1605ee)&&_0x4267e0['add'](_0x1605ee),_0x4afc95&&!_0xe03f1f['has'](_0x24b61e)&&_0x4267e0['add'](_0x24b61e);}else _0x1d3162['is']('element','paragraph')&&_0x1d3162['isEmpty']&&(_0x1fdb3f['removeMarker'](_0xd0b1d7['name']),_0x356942=!0x0);}}else{if('tablePasteCell'==_0x1fdb3f['subType']){if(!_0x1fdb3f['attributes']||!_0x1fdb3f['attributes']['tablePasteChainId'])continue;const _0x2a0edb=_0x1fdb3f['attributes']['markerAttributes'];if(_0x2a0edb&&Object['keys'](_0x2a0edb)['length'])continue;const _0x32fd84=_0x1fdb3f['attributes']['tablePasteChainId'];let _0x5baf48=!0x0,_0x393b95=!0x0;for(const _0x36e633 of _0x5b4148)if(_0x36e633['subType']&&_0x36e633['subType']['startsWith']('tablePaste')){if(!_0x36e633['attributes']['tablePasteChainId']){_0x393b95=!0x1;break;}if(_0x36e633['id']!=_0x1fdb3f['id']&&_0x36e633['attributes']['tablePasteChainId']==_0x32fd84){_0x5baf48=!0x1;break;}}_0x393b95&&_0x5baf48&&(_0x1fdb3f['removeMarkers'](),_0x356942=!0x0);}}for(const _0x1930aa of _0xe03f1f)_0x578809['remove'](_0x1930aa);for(const _0x548a4f of _0x4267e0)_0x578809['unwrap'](_0x548a4f);return _0x356942;}),_0xccbccf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3c3875=>_0x5206a8(_0x3c3875),'converterPriority':'high'}),_0xccbccf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x39e604,_0x362b55)=>_0x362b55['options']['showSuggestionHighlights']?_0x5206a8(_0x39e604,!0x1):null,'converterPriority':'high'});const _0x3eba92=_0xccbccf['editing']['view'];this['listenTo'](_0x3eba92['document'],'clipboardOutput',(_0x2a8d62,_0xfc6b6d)=>{const _0x5db7ef=[];for(const _0xf819d2 of _0x3eba92['createRangeIn'](_0xfc6b6d['content'])['getItems']())_0xf819d2['is']('element','suggestion-td')&&_0x5db7ef['push'](_0xf819d2);_0x3eba92['change'](_0x2c4234=>{for(const _0x855a6d of _0x5db7ef)_0x2c4234['move'](_0x2c4234['createRangeIn'](_0x855a6d),_0x2c4234['createPositionBefore'](_0x855a6d)),_0x2c4234['remove'](_0x855a6d);});});}}function Oe(_0x4f1598){if(_0x4f1598['isEmpty'])return!0x0;const _0x540b85=_0x4f1598['getChild'](0x0);return _0x540b85['is']('element','paragraph')&&_0x540b85['isEmpty'];}function Ue(_0x3c179d,_0x51b3e9={},_0x2f2050){for(const {isAnchor:_0x399c8f,cellHeight:_0x5dfd8c,cellWidth:_0x4f372f}of _0x2f2050['createTableWalker'](_0x3c179d,{'includeAllSlots':!0x0,..._0x51b3e9}))if(!_0x399c8f||0x1!=_0x5dfd8c||0x1!=_0x4f372f)return!0x1;return!0x0;}class Dt extends _0x34c566{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x18af14=this['editor']['plugins']['get']('TrackChangesEditing');_0x18af14['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x18af14['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x18af14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18af14['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x18af14['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x18af14['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x330cb0,_0x37a069){const _0x4c3a2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12de2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59b597=_0x37a069['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x443ca7=_0x12de2d['getColumnGroupElement'](_0x59b597);let _0xe3b953=_0x443ca7?_0x12de2d['getTableColumnsWidths'](_0x443ca7):null,_0x5036c7=_0x59b597['getAttribute']('tableWidth')||null;const _0x148f56=_0x37a069['tableWidth']||_0x5036c7,_0x2fee31=_0x37a069['columnWidths']||_0xe3b953,_0x1b85b2=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ddec4 of _0x4c3a2a['getSuggestions']()){const _0xf0f03d=_0x1ddec4['getContainedElement']();if('resizeTable'===_0x1ddec4['subType']&&_0xf0f03d===_0x59b597){_0x1ddec4['author']!==_0x1b85b2&&_0x1ddec4['discard']();const _0x3fb1cf=_0x1ddec4['data']['commandParams'];_0x5036c7=_0x3fb1cf[0x0]['tableWidth'],_0xe3b953=_0x3fb1cf[0x0]['columnWidths'];break;}}_0x330cb0({'table':_0x59b597,'tableWidth':_0x148f56,'columnWidths':_0x2fee31}),_0x4c3a2a['markBlockFormat'](_0x59b597,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5036c7,'columnWidths':_0xe3b953}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x71123f){if('formatBlock'!=_0x71123f['type']&&'formatInline'!=_0x71123f['type'])return;const {data:_0x4cacb1}=_0x71123f;if(_0x4cacb1&&'resizeTable'===_0x4cacb1['formatGroupId']){const _0x2a46ce='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2a46ce)};}}}class Mt extends _0x34c566{['afterInit'](){const _0x5f0a2f=this['editor'];_0x5f0a2f['plugins']['has']('Template')&&_0x5f0a2f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x34c566{['afterInit'](){const _0x19d870=this['editor'];if(!_0x19d870['commands']['get']('insertTableOfContents'))return;_0x19d870['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x350739=_0x19d870['plugins']['get']('TrackChangesEditing'),_0x36cb73=_0x19d870['locale'];_0x350739['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfd1187=>c(_0x36cb73,'ELEMENT_TABLE_OF_CONTENTS',_0xfd1187));}}class Bt extends _0x34c566{['afterInit'](){const _0x2691e9=this['editor'];if(!_0x2691e9['plugins']['has']('Title'))return;const _0x2ee9f0=_0x2691e9['plugins']['get']('TrackChangesEditing');_0x2ee9f0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2691e9['locale'],'ELEMENT_TITLE')),_0x2691e9['model']['document']['registerPostFixer'](_0x1a1801=>{let _0x2b0d8e=!0x1;const _0x4ec2cc=Array['from'](_0x2691e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeca118,data:_0x2a662c}of _0x4ec2cc){const {group:_0x339a12}=_0x2ee9f0['_splitMarkerName'](_0xeca118);if('suggestion'!==_0x339a12||!_0x2a662c['newRange'])continue;const _0x297b49=_0x2a662c['newRange'],_0x36cca0=_0x297b49['end']['nodeBefore'];if(!_0x36cca0||!_0x36cca0['is']('element','title-content'))continue;if(!_0x297b49['start']['isTouching'](_0x297b49['end']))continue;const _0x174c7e=_0x2691e9['model']['schema']['getNearestSelectionRange'](_0x297b49['end'],'forward');if(_0x174c7e&&_0x174c7e['isCollapsed']){const _0x3ea770=_0x1a1801['createRange'](_0x297b49['start'],_0x174c7e['start']);_0x3ea770['isEqual'](_0x297b49)||(_0x1a1801['updateMarker'](_0xeca118,{'range':_0x3ea770}),_0x2b0d8e=!0x0);}_0x2b0d8e||(_0x1a1801['removeMarker'](_0xeca118),_0x2b0d8e=!0x0);}return _0x2b0d8e;});}}class Ot extends _0x34c566{['afterInit'](){const _0x55bf07=this['editor'],_0x5ae891=_0x55bf07['plugins']['get']('TrackChangesEditing');_0x55bf07['plugins']['has']('Uploadcare')&&(_0x5ae891['enableCommand']('uploadcare'),_0x55bf07['plugins']['has']('UploadcareImageEdit')&&(_0x5ae891['enableCommand']('uploadcareImageEdit'),_0x5ae891['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5ae891['registerBlockAttribute']('uploadcareImageId'),_0x5ae891['descriptionFactory']['registerDescriptionCallback'](_0x17d5c9=>{if('attribute'!=_0x17d5c9['type'])return;const {data:_0xd329d7}=_0x17d5c9;return _0xd329d7&&'uploadcareImageId'==_0xd329d7['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x34c566{['afterInit'](){const _0x13792b=this['editor'],_0x37b414=_0x13792b['plugins']['get']('TrackChangesEditing');_0x13792b['plugins']['has']('UndoEditing')&&(_0x37b414['enableCommand']('undo'),_0x37b414['enableCommand']('redo'));}}class xt extends _0x34c566{static get['requires'](){return[_t];}['afterInit'](){const _0x9331c3=this['editor'];if(!_0x9331c3['plugins']['has']('TableCaptionEditing'))return;_0x9331c3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x34c566{['tableProperties'];['tableCellProperties'];constructor(_0x1302bd){super(_0x1302bd),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x36b4a9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xc201d0 of this['tableProperties'])_0x36b4a9['enableCommand'](_0xc201d0,(_0x3980fb,_0x106e68)=>{const _0x36e788=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xc201d0,[_0x36e788],this['tableProperties'],'tableProperties',_0x3980fb,_0x106e68);});_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x36b4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40f501,_0x2da43d)=>this['handleDiscardAction'](this['tableProperties'],_0x40f501,_0x2da43d)),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x195a02 of this['tableCellProperties'])_0x36b4a9['enableCommand'](_0x195a02,(_0x24e2b8,_0x1c5d16)=>{const _0xc92c64=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x195a02,_0xc92c64,this['tableCellProperties'],'tableCellProperties',_0x24e2b8,_0x1c5d16);});_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x36b4a9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d53f1,_0x321c8a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d53f1,_0x321c8a)),_0x36b4a9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x36b4a9['descriptionFactory']['registerDescriptionCallback'](_0x2632dd=>this['handleSuggestionDescription'](_0x2632dd));}['_handlePropertyChange'](_0x278fe7,_0xddc1d,_0x187f20,_0x554248,_0x21e45a,_0x582bb3){const _0x2add38=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x582bb3['batch'],()=>{for(const _0x5c637f of _0xddc1d){if(this['_getSuggestion'](_0x5c637f,_0x554248))_0x21e45a(_0x582bb3);else{const _0x12ec02={};for(const _0x18f602 of _0x187f20){const _0x29fb95=_0x5c637f['getAttribute'](_0x18f602);void 0x0!==_0x29fb95&&(_0x12ec02[_0x18f602]=_0x29fb95);}_0x21e45a(_0x582bb3),_0x2add38['markBlockFormat'](_0x5c637f,{'commandParams':[_0x12ec02]},[],_0x554248);}}});}['handleDiscardAction'](_0x3c5e47,_0x3f28c3,_0x1b9937){const _0x2fc97d=_0x3f28c3[0x0]['start']['nodeAfter'],_0x394a7d=_0x1b9937['commandParams'][0x0];this['editor']['model']['change'](_0x3994b8=>{for(const _0x46d5fe of _0x3c5e47)void 0x0!==_0x394a7d[_0x46d5fe]?_0x3994b8['setAttribute'](_0x46d5fe,_0x394a7d[_0x46d5fe],_0x2fc97d):_0x3994b8['removeAttribute'](_0x46d5fe,_0x2fc97d);});}['handleSuggestionDescription'](_0x42b6cf){if(_0x42b6cf['data'])switch(_0x42b6cf['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2c386d,_0x419e16){const _0x2f0b3d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5def20 of _0x2f0b3d['getSuggestions']({'skipNotAttached':!0x0})){const _0x239e5b=_0x5def20['getContainedElement']();if(_0x5def20['subType']===_0x419e16&&_0x239e5b===_0x2c386d)return _0x5def20;}return null;}}const u='$elementName';class p extends _0x34c566{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x39c23b,_0x2fd413,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f4d78){super(_0x4f4d78),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d8649,_0x11ff40,_0x4b4eaf,_0x23e497)=>{this['_model']['change'](()=>{for(const _0x549ea1 of[..._0x23e497,..._0x4b4eaf])this['_model']['markers']['has'](_0x549ea1)&&_0x4f4d78['editing']['reconvertMarker'](_0x549ea1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f4d78['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x4f4d78['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f4d78['config']['get']('trackChanges.trackFormatChanges'),_0x4f4d78['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f4d78['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f4d78,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c99d0=this['editor'],_0x52bfbf=(_0x17c65b,_0x1314b7)=>{if('attribute'!=_0x17c65b)return'ck-suggestion-marker-'+_0x17c65b;const _0x3fe38b=_0x1314b7['split']('|')[0x0];return this['_isBlockAttribute'](_0x3fe38b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c99d0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2e9d34=>{const {id:_0x5f0e39,authorId:_0x390c64,type:_0x52159f,subType:_0x1975e5}=this['_splitMarkerName'](_0x2e9d34['markerName']),_0x144582=['ck-suggestion-marker',_0x52bfbf(_0x52159f,_0x1975e5)];let _0x60b72=0xbb8;return this['activeMarkers']['includes'](_0x2e9d34['markerName'])&&(_0x144582['push']('ck-suggestion-marker--active'),_0x60b72=0xbc2),'deletion'==_0x52159f&&(_0x60b72+=0x5),{'classes':_0x144582,'attributes':{'data-suggestion':_0x5f0e39,'data-author-id':_0x390c64},'priority':_0x60b72};}}),_0x5c99d0['conversion']['for']('dataDowncast')['add'](_0xb7af39=>{_0xb7af39['on']('addMarker:suggestion',(_0x49e47c,_0x2c9685,_0x15837e)=>{if(!_0x15837e['options']['showSuggestionHighlights'])return;const _0x50e8d4=_0x2c9685['item'];if(!_0x50e8d4)return;const _0xe3103=_0x15837e['mapper']['toViewElement'](_0x50e8d4);_0x5c99d0['model']['schema']['isObject'](_0x50e8d4)&&_0xe3103&&!_0xe3103['getCustomProperty']('widget')&&_0xe3103['is']('containerElement')&&_0x5e451d(_0xe3103,_0x15837e['writer']);},{'priority':'high'});}),_0x5c99d0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x244892,_0x40a355)=>{if(!_0x40a355['options']['showSuggestionHighlights'])return null;const {type:_0x328904,subType:_0x4ac43d}=this['_splitMarkerName'](_0x244892['markerName']);return{'classes':['ck-suggestion-marker',_0x52bfbf(_0x328904,_0x4ac43d)],'priority':0xbb8};}});const _0x31ce23=({showActiveMarkers:_0x36ef0e=!0x0,isAttributeSuggestion:_0xe748e4=!0x1}={})=>(_0x57f1a3,_0x233d86,_0x1ecddc)=>{if(!_0x233d86['item'])return;const {id:_0x3a01e0,authorId:_0x4a226e}=this['_splitMarkerName'](_0x233d86['markerName']);if(_0xe748e4){const _0x303e70=this['_suggestions']['get'](_0x3a01e0),_0x1ea2f6=this['_getAttributeKey'](_0x303e70);if(!this['_isBlockAttribute'](_0x1ea2f6))return;}if(_0x233d86['item']['is']('selection'))return void _0x1ecddc['consumable']['consume'](_0x233d86['item'],_0x57f1a3['name']);const _0x55a9e7=_0x1ecddc['mapper']['toViewElement'](_0x233d86['item']);if(_0x233d86['item']['is']('element')&&_0x5c99d0['model']['schema']['isBlock'](_0x233d86['item'])&&!_0x55a9e7['getCustomProperty']('addHighlight')){_0x1ecddc['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x55a9e7),_0x1ecddc['writer']['setAttribute']('data-suggestion',_0x3a01e0,_0x55a9e7),_0x1ecddc['writer']['setAttribute']('data-author-id',_0x4a226e,_0x55a9e7),_0x1ecddc['mapper']['bindElementToMarker'](_0x55a9e7,_0x233d86['markerName']),_0x36ef0e&&(this['activeMarkers']['includes'](_0x233d86['markerName'])?_0x1ecddc['writer']['addClass']('ck-suggestion-marker--active',_0x55a9e7):_0x1ecddc['writer']['removeClass']('ck-suggestion-marker--active',_0x55a9e7));for(const _0x1ac2ee of _0x5c99d0['model']['createRangeIn'](_0x233d86['item'])['getItems']())_0x1ecddc['consumable']['consume'](_0x1ac2ee,_0x57f1a3['name']);_0x1ecddc['consumable']['consume'](_0x233d86['item'],_0x57f1a3['name']);}};_0x5c99d0['conversion']['for']('dataDowncast')['add'](_0x5a37f2=>{_0x5a37f2['on']('addMarker:suggestion:formatBlock',(_0xd14dff,_0x1fe0e2,_0x546cad)=>{_0x546cad['options']['showSuggestionHighlights']&&_0x31ce23({'showActiveMarkers':!0x1})(_0xd14dff,_0x1fe0e2,_0x546cad);},{'priority':'highest'});}),_0x5c99d0['conversion']['for']('dataDowncast')['add'](_0x114abe=>{_0x114abe['on']('addMarker:suggestion:attribute',(_0x52bb93,_0x3d5480,_0x253919)=>{_0x253919['options']['showSuggestionHighlights']&&_0x31ce23({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52bb93,_0x3d5480,_0x253919);},{'priority':'highest'});}),_0x5c99d0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33af16,_0x38fee6)=>_0x38fee6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33af16['substr'](0xb)}}),_0x5c99d0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c78d2,{writer:_0x3dc99d})=>{let _0x4d3ca6='suggestion:'+_0x4c78d2['getAttribute']('suggestion-type')+':'+_0x4c78d2['getAttribute']('id');return _0x4c78d2['getAttribute']('marker-count')&&(_0x4d3ca6+=':'+_0x4c78d2['getAttribute']('marker-count')),_0x3dc99d['createElement']('$marker',{'data-name':_0x4d3ca6});}}),_0x5c99d0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0xad31e7=>{_0xad31e7['on']('addMarker:suggestion:formatBlock',_0x31ce23(),{'priority':'high'});}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0x270b7a=>{_0x270b7a['on']('addMarker:suggestion:attribute',_0x31ce23({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0xcf57d7=>{_0xcf57d7['on']('removeMarker:suggestion:formatBlock',(_0x321d37,_0x2cfaea,_0x1d9c97)=>{const _0x5200b2=_0x1d9c97['mapper']['markerNameToElements'](_0x2cfaea['markerName']);if(_0x5200b2){for(const _0x2f0663 of _0x5200b2)_0x2f0663['getCustomProperty']('addHighlight')||(_0x1d9c97['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f0663),_0x1d9c97['writer']['removeAttribute']('data-suggestion',_0x2f0663),_0x1d9c97['writer']['removeAttribute']('data-author-id',_0x2f0663),_0x1d9c97['mapper']['unbindElementFromMarkerName'](_0x2f0663,_0x2cfaea['markerName']));}},{'priority':'high'});}),_0x5c99d0['conversion']['for']('editingDowncast')['add'](_0x9e36c8=>{_0x9e36c8['on']('removeMarker:suggestion:attribute',(_0x2026c5,_0x4bbce9,_0x21e716)=>{const _0x1e977b=_0x21e716['mapper']['markerNameToElements'](_0x4bbce9['markerName']);if(!_0x1e977b)return;const {id:_0x238b0e}=this['_splitMarkerName'](_0x4bbce9['markerName']),_0x5015a8=this['_suggestions']['get'](_0x238b0e),_0x4897fa=this['_getAttributeKey'](_0x5015a8);if(this['_isBlockAttribute'](_0x4897fa)){for(const _0x23b280 of _0x1e977b)_0x23b280['getCustomProperty']('addHighlight')||(_0x21e716['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23b280),_0x21e716['writer']['removeAttribute']('data-suggestion',_0x23b280),_0x21e716['writer']['removeAttribute']('data-author-id',_0x23b280),_0x21e716['mapper']['unbindElementFromMarkerName'](_0x23b280,_0x4bbce9['markerName']));}},{'priority':'high'});}),_0x5c99d0['model']['document']['registerPostFixer'](_0x5e713d=>{let _0x5cc17b=!0x1;const _0x5a5bc6=Array['from'](_0x5c99d0['model']['document']['differ']['getChangedMarkers']()),_0x5eb01d=new Set();for(const {name:_0x138636,data:_0x813bfc}of _0x5a5bc6){const {group:_0x56b6ab,type:_0x5beac0,subType:_0x186343,id:_0x165e94}=this['_splitMarkerName'](_0x138636);if('suggestion'!==_0x56b6ab)continue;const _0x146ba1=this['_suggestions']['get'](_0x165e94);if(null!=_0x813bfc['newRange']){'formatInline'==_0x5beac0&&(_0x5cc17b=_0x5cc17b||Pt(_0x813bfc['newRange'],_0x138636,_0x5e713d,_0x5c99d0['model']['schema']));const _0x4c95b2='attribute'==_0x5beac0&&this['_isBlockAttribute'](_0x186343['split']('|')[0x0]);if(_0x813bfc['newRange']['isCollapsed']||'$graveyard'==_0x813bfc['newRange']['root']['rootName']||'formatBlock'==_0x5beac0&&!Lt(_0x813bfc['newRange'])||_0x4c95b2&&!Lt(_0x813bfc['newRange'])||'deletion'==_0x5beac0&&!(!Ft(_0x25fd6c=_0x813bfc['newRange'])&&!function(_0x1681b8){return _0x1681b8['start']['parent']==_0x1681b8['end']['nodeBefore']&&_0x1681b8['start']['isAtEnd'];}(_0x25fd6c)))_0x5e713d['removeMarker'](_0x138636),_0x5cc17b=!0x0;else{if(!_0x146ba1||!_0x146ba1['isInContent'])continue;if(_0x813bfc['newRange']&&_0x813bfc['oldRange']&&_0x813bfc['newRange']['isEqual'](_0x813bfc['oldRange']))continue;_0x5eb01d['add'](_0x146ba1);}}}var _0x25fd6c;return _0x5eb01d['size']>0x0&&(_0x5cc17b=!!this['_joinWithAdjacentSuggestions'](_0x5eb01d)||_0x5cc17b),_0x5cc17b;}),_0x5c99d0['model']['document']['registerPostFixer'](_0x1918ee=>{let _0x1cfc39=!0x1;for(const _0x415c07 of _0x5c99d0['model']['document']['differ']['getChanges']())if('insert'==_0x415c07['type'])for(const _0x3136bd of this['_suggestions']['values']()){if(_0x3136bd['isMultiRange']||!_0x3136bd['isInContent'])continue;const _0xecadde='formatBlock'==_0x3136bd['type'],_0x4e7ee8=this['_getAttributeKey'](_0x3136bd),_0x4f7486=_0x4e7ee8&&this['_isBlockAttribute'](_0x4e7ee8);if(!_0xecadde&&!_0x4f7486)continue;const _0x222766=_0x3136bd['getFirstRange']();if(_0x222766['start']['parent']!=_0x222766['end']['parent']&&!_0x222766['end']['isAtEnd']){const _0x2954b7=_0x5c99d0['model']['createPositionAt'](_0x222766['start']['nodeAfter'],'end'),_0x2036d6=_0x5c99d0['model']['createRange'](_0x222766['start'],_0x2954b7);_0x1918ee['updateMarker'](_0x3136bd['getFirstMarker'](),{'range':_0x2036d6}),_0x1cfc39=!0x0;}}return _0x1cfc39;}),_0x5c99d0['model']['document']['registerPostFixer'](_0x5b4a88=>this['_processAttributeChanges'](_0x5b4a88)),_0x5c99d0['model']['document']['registerPostFixer'](_0x215782=>!_0x215782['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x215782)),_0x5c99d0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c99d0['model']['document']['on']('change:data',(_0x579d48,_0x1ff22e)=>{if(!_0x1ff22e['isLocal']||_0x1ff22e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb23cd4=_0x5c99d0['model']['document']['differ']['getChanges']();if(0x0==_0xb23cd4['length'])return;const _0x2c50e3=[],_0x19eae0=_0xb23cd4['filter'](_0x4f7bc3=>'attribute'==_0x4f7bc3['type']),_0x5160d3=_0xb23cd4['filter'](_0x26ab1d=>'insert'==_0x26ab1d['type']&&'$text'!=_0x26ab1d['name']);for(const _0x23153e of _0x19eae0)this['_isRegisteredAttribute'](_0x23153e['attributeKey'])&&_0x2c50e3['push']({'key':_0x23153e['attributeKey'],'newValue':_0x23153e['attributeNewValue'],'oldValue':_0x23153e['attributeOldValue'],'range':Jt(_0x23153e['range'],_0x5c99d0['model'])});for(const _0x5da305 of _0x5160d3){if('rename'!=_0x5da305['action']&&'refresh'!=_0x5da305['action'])continue;const _0x489cfe=Kt(_0x5da305['position']['nodeAfter'],_0x5c99d0['model']),_0x1fbb6a=_0x5da305['before'];'rename'==_0x5da305['action']&&_0x2c50e3['push']({'key':u,'newValue':_0x5da305['name'],'oldValue':_0x1fbb6a['name'],'range':_0x489cfe});for(const [_0x53a9cc,_0x3a8c42]of _0x1fbb6a['attributes']){if(!this['_isRegisteredAttribute'](_0x53a9cc))continue;const _0x5ab66d=_0x5da305['attributes']['get'](_0x53a9cc);_0x3a8c42!==_0x5ab66d&&_0x2c50e3['push']({'key':_0x53a9cc,'newValue':_0x5ab66d,'oldValue':_0x3a8c42,'range':_0x489cfe});}for(const [_0x822899,_0x3c6cca]of _0x5da305['attributes'])this['_isRegisteredAttribute'](_0x822899)&&(_0x1fbb6a['attributes']['has'](_0x822899)||_0x2c50e3['push']({'key':_0x822899,'newValue':_0x3c6cca,'oldValue':null,'range':_0x489cfe}));}0x0!=_0x2c50e3['length']&&_0x5c99d0['model']['enqueueChange'](_0x1ff22e,_0x1e5463=>{const _0x3fd6d7=_0x18c716();for(const {range:_0x475041,key:_0x4a5b51,oldValue:_0x3add74,newValue:_0x247f03}of _0x2c50e3)this['markAttributeChange'](_0x475041,_0x4a5b51,_0x3add74,_0x247f03,{'groupId':_0x3fd6d7});this['_reduceExistingSuggestions'](_0x1e5463,_0x2c50e3);});},{'priority':'lowest'}),_0x5c99d0['model']['markers']['on']('update:suggestion',(_0x2c0f75,_0x3d3496,_0x47b7f1)=>{if(null==_0x47b7f1){const {id:_0x52e48e}=this['_splitMarkerName'](_0x3d3496['name']),_0x4b22a4=this['_suggestions']['get'](_0x52e48e);_0x4b22a4&&_0x4b22a4['addMarkerName'](_0x3d3496['name']);}}),_0x5c99d0['model']['document']['on']('change:data',()=>{const _0xdb27a9=Array['from'](_0x5c99d0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b5a80=>'suggestion'===this['_splitMarkerName'](_0x3b5a80['name'])['group']);if(0x0===_0xdb27a9['length'])return;_0xdb27a9['sort']((_0x55eb97,_0x1f4445)=>{const _0x339996=_0x55eb97['data']['oldRange'],_0x47b258=_0x1f4445['data']['oldRange'];return null===_0x339996&&null===_0x47b258?0x0:null===_0x339996&&null!==_0x47b258?-0x1:null!==_0x339996&&null===_0x47b258?0x1:_0x339996['start']['isBefore'](_0x47b258['start'])?-0x1:0x1;});const _0x5c97b3=new Set(),_0x3338d7=new Set();for(const {name:_0x140c19,data:_0xf9f381}of _0xdb27a9){const {id:_0x4fc9e8}=this['_splitMarkerName'](_0x140c19);if(null===_0xf9f381['oldRange']){const _0x1bd4e7=this['_handleNewSuggestionMarker'](_0x140c19);_0x3338d7['add'](_0x1bd4e7);}else{const _0x28d9ee=this['_suggestions']['get'](_0x4fc9e8);null!==_0xf9f381['newRange']||_0x28d9ee['isInContent']?(_0x5c97b3['add'](_0x28d9ee['head']),_0x3338d7['add'](_0x28d9ee)):this['_removeSuggestion'](_0x28d9ee);}}_0x3338d7['size']>0x0&&this['_refreshSuggestionsChain'](_0x3338d7);for(const _0x59ca41 of _0x5c97b3)this['fire']('suggestionChanged',_0x59ca41);}),_0x5c99d0['model']['on']('applyOperation',(_0x130a4f,_0x3b46ca)=>{const _0x4559cb=_0x3b46ca[0x0];if(!this['_suggestions']['size'])return;if(!_0x4559cb['isDocumentOperation'])return;if(_0x4559cb['batch']['isUndo']||!_0x4559cb['batch']['isLocal'])return;let _0x170442,_0x2066c2;switch(_0x4559cb['type']){case'insert':_0x170442=_0x5c99d0['model']['createPositionAt'](_0x4559cb['position']),_0x2066c2=_0x170442['getShiftedBy'](_0x4559cb['howMany']);break;case'split':_0x170442=_0x5c99d0['model']['createPositionAt'](_0x4559cb['splitPosition']),_0x2066c2=_0x5c99d0['model']['createPositionAt'](_0x4559cb['moveTargetPosition']);break;case'move':_0x170442=_0x5c99d0['model']['createPositionAt'](_0x4559cb['targetPosition']),_0x2066c2=_0x170442['getShiftedBy'](_0x4559cb['howMany']);break;default:return;}const _0x4f5242=_0x5c99d0['model']['createRange'](_0x170442,_0x2066c2);_0x5c99d0['model']['change'](()=>{for(const {suggestion:_0x2ae756,meta:_0x4a721a}of this['_findSuggestions'](_0x4f5242)){if(_0x2ae756['isMultiRange'])continue;if('formatInline'==_0x2ae756['type'])continue;const _0x14fed0=this['_getAttributeKey'](_0x2ae756);if(_0x14fed0&&this['_isBlockAttribute'](_0x14fed0)&&'split'!=_0x4559cb['type'])continue;const _0x1af78a=_0x2ae756['data']&&_0x2ae756['data']['multipleBlocks'];('formatBlock'!=_0x2ae756['type']||'split'==_0x4559cb['type']&&!_0x1af78a)&&(_0x4a721a['containsRangeInObject']||'insertion'==_0x2ae756['type']&&_0x4a721a['isOwn']||_0x2ae756['getFirstRange']()['containsRange'](_0x4f5242)&&this['_breakSuggestionMarker'](_0x2ae756,_0x170442,_0x2066c2));}});},{'priority':'lowest'}),_0x5c99d0['model']['on']('deleteContent',(_0x37f6ca,_0x355f73)=>{const _0x4c37b5=_0x355f73[0x0],_0x352700=_0x355f73[0x1];if(_0x352700&&_0x352700['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4c37b5['isCollapsed'])return;const _0x2e9223=_0x5c99d0['model']['schema'],{start:_0x3993c0,end:_0x4161ef}=_0x4c37b5['getFirstRange'](),_0x4bedf2=_0x3993c0['nodeAfter']&&_0x2e9223['isLimit'](_0x3993c0['nodeAfter'])?null:_0x2e9223['getNearestSelectionRange'](_0x3993c0,'forward'),_0x2f540c=_0x4161ef['nodeBefore']&&_0x2e9223['isLimit'](_0x4161ef['nodeBefore'])?null:_0x2e9223['getNearestSelectionRange'](_0x4161ef,'backward'),_0x2f298c=_0x5c99d0['model']['createRange'](_0x4bedf2?_0x4bedf2['start']:_0x3993c0,_0x2f540c?_0x2f540c['end']:_0x4161ef);_0x5c99d0['model']['change'](_0x3a62d6=>{this['markDeletion'](_0x2f298c);const _0x1262ff=_0x5c99d0['model']['schema']['getNearestSelectionRange'](_0x2f298c['start']);_0x4c37b5['is']('documentSelection')?_0x3a62d6['setSelection'](_0x1262ff):_0x4c37b5['setTo'](_0x1262ff);}),_0x37f6ca['stop']();},{'priority':_0x74c243['normal']+0xa}),_0x5c99d0['model']['on']('insertContent',(_0x58f21f,_0x512728)=>{const _0x2154aa=_0x512728[_0x512728['length']-0x1];_0x2154aa&&_0x2154aa['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c99d0['model']['change'](()=>{let _0x1eb7ec=_0x5c99d0['model']['insertContent'](_0x512728[0x0],_0x512728[0x1],_0x512728[0x2],{'forceDefaultExecution':!0x0});if(!_0x1eb7ec)return;_0x58f21f['return']=_0x1eb7ec['clone']();const _0x20445a=_0x1eb7ec['end']['nodeBefore'],_0x187fa1=_0x5c99d0['model']['schema'];_0x20445a&&_0x187fa1['isBlock'](_0x20445a)&&!_0x187fa1['isObject'](_0x20445a)&&(_0x1eb7ec=_0x5c99d0['model']['createRange'](_0x1eb7ec['start'],_0x5c99d0['model']['createPositionAt'](_0x20445a,'end'))),this['markInsertion'](_0x1eb7ec);}),_0x58f21f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x44c299=new O(_0x5c99d0,this['_suggestions']);_0x5c99d0['commands']['add']('acceptSuggestion',_0x44c299),this['enableCommand']('acceptSuggestion');const _0x16850f=new R(_0x5c99d0,this['_suggestions']);_0x5c99d0['commands']['add']('discardSuggestion',_0x16850f),this['enableCommand']('discardSuggestion'),_0x5c99d0['commands']['add']('acceptAllSuggestions',new x(_0x5c99d0,_0x44c299,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c99d0['commands']['add']('discardAllSuggestions',new x(_0x5c99d0,_0x16850f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c99d0['commands']['add']('acceptSelectedSuggestions',new E(_0x5c99d0,_0x44c299,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c99d0['commands']['add']('discardSelectedSuggestions',new E(_0x5c99d0,_0x16850f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a20f2=_0x5c99d0['plugins']['get']('CommentsRepository');this['listenTo'](_0x5a20f2,'addComment',(_0x56b461,{threadId:_0x4c3208})=>{const _0x52e20b=this['_suggestions']['get'](_0x4c3208);_0x52e20b&&_0x52e20b['commentThread']&&0x1===_0x52e20b['commentThread']['length']&&this['_updateSuggestionData'](_0x4c3208,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a20f2,'removeComment',(_0x3187c7,{threadId:_0x3bbca0})=>{const _0x1541d7=this['_suggestions']['get'](_0x3bbca0);_0x1541d7&&_0x1541d7['commentThread']&&!_0x1541d7['commentThread']['length']&&this['_updateSuggestionData'](_0x3bbca0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5261fb){const _0x23f997=_0x319485([0x4c,0x7a,0x62,0x6f,0x74,0x71,0x61,0x50,0x6d,0x75,0x69,0x6b,0x35,0x51,0x57,0x47,0x70,0x46,0x37,0x41,0x77,0x31,0x42,0x64,0x4b,0x76,0x36,0x54,0x73,0x48,0x33,0x67,0x49,0x6c,0x6a,0x66,0x78,0x4a,0x65,0x55,0x44,0x5a,0x58,0x53,0x39,0x4d,0x4f,0x52,0x6e,0x45,0x34,0x63,0x4e,0x43,0x30,0x59,0x68,0x79,0x56,0x38,0x72,0x32]),_0x385003=0x4cbd11,_0x2309a1=0x4be2d1^_0x385003,_0x55d857=window[_0x319485([0x44,0x61,0x74,0x65])][_0x319485([0x6e,0x6f,0x77])](),_0x2f38e8=_0x5261fb[_0x319485([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27e4fb=new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101c4c=>{_0x2f38e8[_0x319485([0x6f,0x6e,0x63,0x65])](_0x319485([0x72,0x65,0x61,0x64,0x79]),_0x101c4c);}),_0x2b60b9={[_0x319485([0x6b,0x74,0x79])]:_0x319485([0x45,0x43]),[_0x319485([0x75,0x73,0x65])]:_0x319485([0x73,0x69,0x67]),[_0x319485([0x63,0x72,0x76])]:_0x319485([0x50,0x2d,0x32,0x35,0x36]),[_0x319485([0x78])]:_0x319485([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x319485([0x79])]:_0x319485([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x319485([0x61,0x6c,0x67])]:_0x319485([0x45,0x53,0x32,0x35,0x36])},_0x16f303=_0x2f38e8[_0x319485([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x319485([0x67,0x65,0x74])](_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5af653(){let _0x34974f,_0x21fead=null,_0x337c1d=null;try{if(_0x16f303==_0x319485([0x47,0x50,0x4c]))return _0x319485([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34974f=_0x261392(),!_0x34974f)return _0x319485([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34974f[_0x319485([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x337c1d=_0x39602e(_0x34974f[_0x319485([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34974f[_0x319485([0x6a,0x74,0x69])])),await _0x11da2b()?_0x319b1a()?_0x484485()?_0x319485([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e39e2()?(_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x319485([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21fead=_0x3e2c7d(_0x319485([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x319485([0x74,0x72,0x69,0x61,0x6c])&&(_0x21fead=_0x3e2c7d(_0x319485([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20c380()):_0x319485([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x319485([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x319485([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x553b68){return _0x319485([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x484485(){const _0x2c558c=[_0x319485([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x319485([0x74,0x72,0x69,0x61,0x6c])][_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55d857/0x3e8:0xe10*_0x2309a1;return _0x34974f[_0x319485([0x65,0x78,0x70])]<_0x2c558c;}function _0x319b1a(){const _0x46ed60=_0x34974f[_0x319485([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46ed60)return!0x1;if(_0x46ed60[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x2a])))return!0x0;if(_0x46ed60[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x54,0x43])))return!0x0;if(_0x46ed60[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x52,0x54,0x43]))){if(_0x211db5())return!0x0;if(_0x1abd71()||_0x22875d())return!0x0;}return!0x1;}function _0x3e39e2(){const _0x5a427e=_0x34974f[_0x319485([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a427e||0x0==_0x5a427e[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e337a}=new URL(window[_0x319485([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a427e[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e337a))return!0x0;const _0xe96d65=_0x5e337a[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e]));return _0x5a427e[_0x319485([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10150e=>_0x10150e[_0x319485([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x319485([0x2a])))[_0x319485([0x6d,0x61,0x70])](_0x39485b=>_0x39485b[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e])))[_0x319485([0x73,0x6f,0x6d,0x65])](_0x787649=>_0xe96d65[_0x319485([0x65,0x76,0x65,0x72,0x79])]((_0x145643,_0x518b6b)=>_0x787649[_0x518b6b]===_0x145643||_0x787649[_0x518b6b]===_0x319485([0x2a])));}function _0x20c380(){return _0x21fead&&_0x337c1d?new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ce9ee,_0x52ba5e)=>{_0x21fead[_0x319485([0x74,0x68,0x65,0x6e])](_0x5ce9ee,_0x52ba5e),_0x337c1d[_0x319485([0x74,0x68,0x65,0x6e])](_0x7ba733=>{_0x7ba733!=_0x319485([0x56,0x61,0x6c,0x69,0x64])&&_0x5ce9ee(_0x7ba733);},_0x52ba5e);}):_0x21fead||_0x337c1d||_0x319485([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39602e(_0x4bfc39,_0x110bcc){return new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416580=>{if(_0x376205())return _0x416580(_0x319485([0x56,0x61,0x6c,0x69,0x64]));_0x5823d9(),_0x2f38e8[_0x319485([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x319485([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bb8fe=!0x1;const _0x443c0c=_0x18c716();function _0x183be1(_0x550e7f){return!!_0x550e7f&&(typeof _0x550e7f===_0x319485([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x550e7f===_0x319485([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x550e7f[_0x319485([0x74,0x68,0x65,0x6e])]===_0x319485([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x550e7f[_0x319485([0x63,0x61,0x74,0x63,0x68])]===_0x319485([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4825c4(_0x5c2d18){_0x2b333b(_0x5c2d18)[_0x319485([0x74,0x68,0x65,0x6e])](_0x487dfb=>{if(!_0x487dfb||_0x487dfb[_0x319485([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x319485([0x6f,0x6b]))return _0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f1c19(_0x4437ab(_0x443c0c+_0x110bcc))!=_0x487dfb[_0x319485([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x319485([0x56,0x61,0x6c,0x69,0x64]);})[_0x319485([0x74,0x68,0x65,0x6e])](_0x30ee09=>(_0x13dabb(),_0x30ee09),()=>{const _0xeb38df=_0x21fba4();return null==_0xeb38df?(_0x13dabb(),_0x319485([0x56,0x61,0x6c,0x69,0x64])):_0x319485(_0x55d857-_0xeb38df>(0x24403911^_0x385003)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x319485([0x74,0x68,0x65,0x6e])](_0x416580)[_0x319485([0x63,0x61,0x74,0x63,0x68])](()=>{_0x416580(_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30f6f2=0x7a5391^_0x385003;function _0x13dabb(){const _0x2a43a5=_0x319485([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f1c19(_0x4437ab(_0x4bfc39)),_0x3a2157=_0x3e080d(_0x4f1c19(window[_0x319485([0x4d,0x61,0x74,0x68])][_0x319485([0x63,0x65,0x69,0x6c])](_0x55d857/_0x30f6f2)));window[_0x319485([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x319485([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a43a5,_0x3a2157);}function _0x21fba4(){const _0x44eb3b=_0x319485([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f1c19(_0x4437ab(_0x4bfc39)),_0x360e2f=window[_0x319485([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x319485([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44eb3b);return _0x360e2f?window[_0x319485([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e080d(_0x360e2f),0x10)*_0x30f6f2:null;}function _0x2b333b(_0x1a906a){return new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1011f3,_0x3259eb)=>{_0x1a906a[_0x319485([0x74,0x68,0x65,0x6e])](_0x1011f3,_0x3259eb),window[_0x319485([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3259eb,0x4d69d1^_0x385003);});}}_0x2f38e8[_0x319485([0x6f,0x6e])](_0x319485([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a36bc,_0x553a0a)=>{if(_0x553a0a[0x0]!=_0x4bfc39)return _0x416580(_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x553a0a[0x1]={..._0x553a0a[0x1],[_0x319485([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x443c0c};},{[_0x319485([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x319485([0x68,0x69,0x67,0x68])}),_0x2f38e8[_0x319485([0x6f,0x6e])](_0x319485([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c3b74=>{_0x183be1(_0x3c3b74[_0x319485([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bb8fe=!0x0,_0x4825c4(_0x3c3b74[_0x319485([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x319485([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x319485([0x6c,0x6f,0x77])}),_0x27e4fb[_0x319485([0x74,0x68,0x65,0x6e])](()=>{_0x2bb8fe||_0x416580(_0x319485([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x376205(){return _0x2f38e8[_0x319485([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x319485([0x76,0x69,0x65,0x77])][_0x319485([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x319485([0x61,0x75,0x74,0x6f]);}function _0x5823d9(){_0x2f38e8[_0x319485([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x319485([0x76,0x69,0x65,0x77])][_0x319485([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x319485([0x61,0x75,0x74,0x6f]);}}function _0x3e2c7d(_0x58745e){const _0x281b4c=[new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x862e5b=>setTimeout(_0x862e5b,0x4583dd^_0x385003)),_0x27e4fb[_0x319485([0x74,0x68,0x65,0x6e])](()=>new window[(_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23d839=>{let _0x24bc80=0x0;_0x2f38e8[_0x319485([0x6d,0x6f,0x64,0x65,0x6c])][_0x319485([0x6f,0x6e])](_0x319485([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fcf03,_0x3d9467)=>{_0x3d9467[0x0][_0x319485([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24bc80++,_0x24bc80==(0x4cbce9^_0x385003)&&(_0x23d839(),_0x4fcf03[_0x319485([0x6f,0x66,0x66])]());});}))];return window[_0x319485([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x319485([0x72,0x61,0x63,0x65])](_0x281b4c)[_0x319485([0x74,0x68,0x65,0x6e])](()=>_0x58745e);}async function _0x2e77e1(){await _0x27e4fb,_0x2f38e8[_0x319485([0x6d,0x6f,0x64,0x65,0x6c])][_0x319485([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc95c92,_0x2f38e8[_0x319485([0x6d,0x6f,0x64,0x65,0x6c])][_0x319485([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc95c92,_0x2f38e8[_0x319485([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x319485([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x211db5(){return _0x3712c4(_0x319485([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x536c3c(_0x319485([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x319485([0x73,0x74,0x61,0x74,0x65])]==_0x319485([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1abd71(){return _0x3712c4(_0x319485([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x22875d(){return _0x3712c4(_0x319485([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa47309(_0x507c09){const _0x1de8d3=_0x2a09dd();_0x2f38e8[_0x1de8d3]=_0x319485([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x507c09,_0x507c09!=_0x319485([0x56,0x61,0x6c,0x69,0x64])&&_0x2e77e1();}function _0x2a09dd(){const _0x29e26a=window[_0x319485([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x319485([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x319485([0x6e,0x6f,0x77])]())[_0x319485([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x319485([0x2e]),'');let _0x157b97=_0x319485([0x4c]);for(let _0x79d6e8=0x0;_0x79d6e8<_0x29e26a[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x79d6e8+=0x2){let _0x201d6e=window[_0x319485([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29e26a[_0x319485([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x79d6e8,_0x79d6e8+0x2));_0x201d6e>=_0x23f997[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x201d6e-=_0x23f997[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x157b97+=_0x23f997[_0x201d6e];}return _0x157b97;}function _0x261392(){const _0x35ce87=_0x16f303[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e]));if(0x3!=_0x35ce87[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13ad16(_0x35ce87[0x1]);function _0x13ad16(_0x4946e9){const _0x48ce80=_0x47ecbb(_0x4946e9);return _0x48ce80&&_0x4b7b99()?_0x48ce80:null;function _0x4b7b99(){const _0x44717b=_0x48ce80[_0x319485([0x6a,0x74,0x69])],_0x1229ad=window[_0x319485([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44717b[_0x319485([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44717b[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23bf4a={..._0x48ce80,[_0x319485([0x6a,0x74,0x69])]:_0x44717b[_0x319485([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44717b[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23bf4a[_0x319485([0x76,0x63])],_0x4437ab(_0x23bf4a)==_0x1229ad;}}}async function _0x11da2b(){let _0x3ce9b1=!0x0;try{const _0x15d36a=_0x16f303[_0x319485([0x73,0x70,0x6c,0x69,0x74])](_0x319485([0x2e])),[_0x27eb27,_0x1e5848,_0xb5a0c]=_0x15d36a;return _0x3bffab(_0x27eb27),await _0x145522(_0x27eb27,_0x1e5848,_0xb5a0c),_0x3ce9b1;}catch(_0x108707){return!0x1;}function _0x3bffab(_0x426c33){const _0x134d6f=_0x47ecbb(_0x426c33);_0x134d6f&&_0x134d6f[_0x319485([0x61,0x6c,0x67])]==_0x319485([0x45,0x53,0x32,0x35,0x36])||(_0x3ce9b1=!0x1);}async function _0x145522(_0x12686e,_0x294471,_0x3b49d4){const _0x58537c=window[_0x319485([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x319485([0x66,0x72,0x6f,0x6d])](_0x2bc11e(_0x3b49d4),_0x519bf7=>_0x519bf7[_0x319485([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cafeb=new window[(_0x319485([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x319485([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12686e+_0x319485([0x2e])+_0x294471),_0x6c3cc5=window[_0x319485([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x319485([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6c3cc5)return;const _0x5abacb=await _0x6c3cc5[_0x319485([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x319485([0x6a,0x77,0x6b]),_0x2b60b9,{[_0x319485([0x6e,0x61,0x6d,0x65])]:_0x319485([0x45,0x43,0x44,0x53,0x41]),[_0x319485([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x319485([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x319485([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6c3cc5[_0x319485([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x319485([0x6e,0x61,0x6d,0x65])]:_0x319485([0x45,0x43,0x44,0x53,0x41]),[_0x319485([0x68,0x61,0x73,0x68])]:{[_0x319485([0x6e,0x61,0x6d,0x65])]:_0x319485([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5abacb,_0x58537c,_0x4cafeb)||(_0x3ce9b1=!0x1);}}function _0x47ecbb(_0x496791){return _0x496791[_0x319485([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x319485([0x65,0x79]))?JSON[_0x319485([0x70,0x61,0x72,0x73,0x65])](_0x2bc11e(_0x496791)):null;}function _0x2bc11e(_0x4de727){return window[_0x319485([0x61,0x74,0x6f,0x62])](_0x4de727[_0x319485([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x319485([0x2b]))[_0x319485([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x319485([0x2f])));}function _0x4437ab(_0x168167){let _0x30f845=0x1505;function _0xde0076(_0x9a729e){for(let _0xec9c=0x0;_0xec9c<_0x9a729e[_0x319485([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xec9c++){const _0x247e9d=_0x9a729e[_0x319485([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xec9c);_0x30f845=(_0x30f845<<0x5)+_0x30f845+_0x247e9d,_0x30f845&=_0x30f845;}}function _0x2c0404(_0x42d161){Array[_0x319485([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42d161)?_0x42d161[_0x319485([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c0404):_0x42d161&&typeof _0x42d161==_0x319485([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x319485([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42d161)[_0x319485([0x73,0x6f,0x72,0x74])]()[_0x319485([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43219f,_0x4aed58])=>{_0xde0076(_0x43219f),_0x2c0404(_0x4aed58);}):_0xde0076(window[_0x319485([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42d161));}return _0x2c0404(_0x168167),_0x30f845>>>0x0;}function _0x4f1c19(_0xf039dd){return _0xf039dd[_0x319485([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x319485([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x319485([0x30]));}function _0x3e080d(_0x202b81){return _0x202b81[_0x319485([0x73,0x70,0x6c,0x69,0x74])]('')[_0x319485([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x319485([0x6a,0x6f,0x69,0x6e])]('');}function _0x3712c4(_0x390b49){return _0x2f38e8[_0x319485([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x319485([0x68,0x61,0x73])](_0x390b49);}function _0x536c3c(_0x2f241a){return _0x2f38e8[_0x319485([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x319485([0x67,0x65,0x74])](_0x2f241a);}function _0xc95c92(){}function _0x319485(_0x2de223){return _0x2de223['map'](_0x360adf=>String['fromCharCode'](_0x360adf))['join']('');}_0xa47309(await _0x5af653());}(this);}set['adapter'](_0x3525c2){if(this['_adapter'])throw new _0x2b6413('track-changes-adapter-already-set',this);this['_adapter']=_0x3525c2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d45e2=!0x1,toJSON:_0x285435=!0x1}={}){const _0x37f79c=[];for(const _0x8656d3 of this['_suggestions']['values']())_0x1d45e2&&!_0x8656d3['isInContent']||_0x37f79c['push'](_0x8656d3);return _0x285435?_0x37f79c['map'](_0x5db1de=>_0x5db1de['toJSON']()):_0x37f79c;}['getSuggestion'](_0x482033){const _0x50b335=this['_suggestions']['get'](_0x482033);if(!_0x50b335)throw new _0x2b6413('track-changes-suggestion-not-found',this);return _0x50b335;}['hasSuggestion'](_0x5f1037){return this['_suggestions']['has'](_0x5f1037);}['addSuggestionData'](_0x1d3448){const {authorId:_0x1de314,id:_0x52ca92,attributes:_0x484b5e}=_0x1d3448,[_0x420bd9,_0x38469e]=_0x1d3448['type']['split'](':'),_0x593b2a=this['_suggestions']['get'](_0x52ca92)||this['_createSuggestion'](_0x420bd9,_0x38469e,_0x52ca92,_0x1de314,_0x484b5e);if(this['_addThreadToSuggestion'](_0x593b2a),this['_checkSuggestionCorrectness'](_0x593b2a,_0x420bd9,_0x38469e||null,_0x1de314),_0x593b2a['createdAt']=_0x1d3448['createdAt'],_0x593b2a['_isDataLoaded']=!0x0,_0x484b5e&&_0x484b5e['@external']){const _0x20af3e=_0x484b5e['@external'],_0x98e95e=this['_getExternalAuthor'](_0x20af3e['authorName']);_0x593b2a['authoredAt']=_0x20af3e['createdAt'],_0x593b2a['author']=_0x98e95e,_0x593b2a['isExternal']=!0x0;}else _0x593b2a['authoredAt']=_0x1d3448['createdAt'];switch(_0x1d3448['data']&&(_0x593b2a['data']=_0x1d3448['data']),_0x1d3448['attributes']&&(_0x593b2a['attributes']=_0x1d3448['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x593b2a['_saved']=!0x0),this['_suggestionState']['get'](_0x593b2a)){case'notReady':this['_suggestionState']['set'](_0x593b2a,'dataReady');break;case'markerReady':_0x593b2a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x593b2a])),this['_refreshSuggestionsChain'](new Set([_0x593b2a])),this['_suggestionState']['set'](_0x593b2a,'ready'),this['fire']('suggestionLoaded',_0x593b2a)):this['_suggestionState']['set'](_0x593b2a,'removed');}return _0x593b2a;}['acceptSuggestion'](_0x29d035){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x358f8d of _0x29d035['getAllAdjacentSuggestions']())_0x358f8d['accept']();});});}['discardSuggestion'](_0xe23418){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19de48 of _0xe23418['getAllAdjacentSuggestions']())_0x19de48['discard']();});});}['enableCommand'](_0x558201,_0x5ad5c4){const _0x5d7bd6=this['editor']['commands']['get'](_0x558201);if(!_0x5d7bd6)throw new _0x2b6413('track-changes-command-not-found',this,{'commandName':_0x558201});if(this['_enabledCommands']['has'](_0x5d7bd6))throw new _0x2b6413('track-changes-enable-command-twice',this,{'commandName':_0x558201});this['_enabledCommands']['add'](_0x5d7bd6),_0x5ad5c4&&_0x5d7bd6['on']('execute',(_0x2d5d68,_0x529c44)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x529c44['length']>0x0&&_0x529c44[_0x529c44['length']-0x1]&&_0x529c44[_0x529c44['length']-0x1]['forceDefaultExecution']?_0x529c44['pop']():(_0x2d5d68['return']=_0x5ad5c4((..._0x42c793)=>_0x5d7bd6['execute'](..._0x42c793,{'forceDefaultExecution':!0x0}),..._0x529c44),_0x2d5d68['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xbd51da){let _0x22474d,_0x31c117;const _0x32b2cf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x22474d=_0xbd51da();}catch(_0x1f89ce){_0x31c117=_0x1f89ce;}return _0x32b2cf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x31c117&&_0x2b6413['rethrowUnexpectedError'](_0x31c117,this),_0x22474d;}['markInsertion'](_0x2f2a0e,_0x381212=null,_0x446b3d={}){if(_0x2f2a0e['isCollapsed'])return null;const _0x109cb2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1fdca0,meta:_0x57ba1a}of this['_findSuggestions'](_0x2f2a0e,'insertion'))if(_0x57ba1a['isOwn']){if(!_0x57ba1a['isNextTo']){if(_0x57ba1a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x1fdca0,_0x446b3d))continue;return _0x1fdca0;}if(zt(_0x1fdca0,_0x446b3d))return _0x1fdca0;this['_breakSuggestionMarker'](_0x1fdca0,_0x2f2a0e['start'],_0x2f2a0e['end']);break;}if(_0x381212==_0x1fdca0['subType']&&zt(_0x1fdca0,_0x446b3d)){const _0x2f9810=_0x1fdca0['getFirstRange']();return _0x2f9810['start']['isEqual'](_0x2f2a0e['end'])?this['_setSuggestionRange'](_0x1fdca0,this['_model']['createRange'](_0x2f2a0e['start'],_0x2f9810['end'])):this['_setSuggestionRange'](_0x1fdca0,this['_model']['createRange'](_0x2f9810['start'],_0x2f2a0e['end'])),_0x1fdca0;}}const _0x3c68d7=_0x18c716(),_0x162954=_0x109cb2['id'],_0x116e01=_0x381212?'insertion:'+_0x381212:'insertion',_0x263ec5=this['_setSuggestionData']({'id':_0x3c68d7,'type':_0x116e01,'createdAt':new Date(),'authorId':_0x162954,'attributes':_0x446b3d});return this['_addSuggestionMarker'](_0x116e01,_0x3c68d7,_0x162954,_0x2f2a0e),_0x263ec5;}['markMultiRangeInsertion'](_0x613ab9,_0xb850ce='multi',_0x155d7a={}){const _0x3344f9=this['editor']['plugins']['get']('Users')['me'],_0x57b269=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb850ce,'join');for(const _0xdb6f0a of this['getSuggestions']())if(_0xdb6f0a['author']['id']==_0x3344f9['id']&&'insertion'==_0xdb6f0a['type']&&_0xdb6f0a['subType']==_0xb850ce&&zt(_0xdb6f0a,_0x155d7a)&&(_0x57b269(_0xdb6f0a['getRanges'](),_0x613ab9)||_0x57b269(_0x613ab9,_0xdb6f0a['getRanges']()))){for(const _0x20d51c of _0x613ab9)_0xdb6f0a['addRange'](_0x20d51c);return _0xdb6f0a;}for(const {suggestion:_0xdf4db5,meta:_0x544970}of this['_findSuggestions'](_0x613ab9,'insertion')){if(!_0x544970['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x544970['containsRangeInObject'])continue;if(!zt(_0xdf4db5,_0x155d7a))continue;let _0x7fbc91=!0x0;for(const _0x51b5a7 of _0xdf4db5['getRanges']())for(const _0x4902bc of _0x613ab9)if(!_0x51b5a7['containsRange'](_0x4902bc)){_0x7fbc91=!0x1;break;}if(_0x7fbc91)return _0xdf4db5;}const _0x3f236b=_0x18c716(),_0x28326b=_0x3344f9['id'],_0x170349='insertion:'+_0xb850ce,_0x36d4a6=this['_setSuggestionData']({'id':_0x3f236b,'type':_0x170349,'createdAt':new Date(),'authorId':_0x28326b,'attributes':_0x155d7a});for(const _0x472877 of _0x613ab9)this['_addSuggestionMarker'](_0x170349,_0x3f236b,_0x28326b,_0x472877,o['getMultiRangeId']());return _0x36d4a6;}['markInlineFormat'](_0x384443,_0x5a97cd,_0x367b33=null,_0x3c3c85={}){if(_0x367b33=_0x367b33||Gt(_0x5a97cd),_0x384443['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xfae9cd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x367b33,'accept');return this['forceDefaultExecution'](()=>_0xfae9cd([_0x384443],_0x5a97cd,_0x3c3c85)),null;}const _0x2b4e67=this['editor']['plugins']['get']('Users')['me'],_0x40e448=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ba616,meta:_0x59d6d9}of this['_findSuggestions'](_0x384443,'insertion'))_0x59d6d9['isOwn']&&!_0x59d6d9['isInsideObject']&&_0x40e448['push'](..._0x1ba616['getRanges']());}const _0x2426d5=function(_0x491a41,_0x3d1e92){const _0x2fe8db=[];for(const _0x573eae of _0x3d1e92){const _0x4c7c66=_0x491a41['getIntersection'](_0x573eae);_0x4c7c66&&_0x2fe8db['push'](_0x4c7c66);}return _0x2fe8db;}(_0x384443,_0x40e448),_0x43a454=function(_0x3a31a0,_0x5f1f4b){const _0x59c010=[_0x3a31a0];for(const _0x2c7482 of _0x5f1f4b){let _0x3efd7c=0x0;for(;_0x3efd7c<_0x59c010['length'];){const _0xda04ac=_0x59c010[_0x3efd7c]['getDifference'](_0x2c7482);_0x59c010['splice'](_0x3efd7c,0x1,..._0xda04ac),_0x3efd7c+=_0xda04ac['length'];}}return _0x59c010;}(_0x384443,_0x40e448);_0x2426d5['length']&&this['_model']['change'](()=>{for(const _0x1fdf4a of _0x2426d5){const _0x4c6db7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x367b33,'accept');this['forceDefaultExecution'](()=>_0x4c6db7([_0x1fdf4a],_0x5a97cd,_0x3c3c85));}});for(const _0x550f77 of _0x43a454){let _0x4f3a73=null,_0x29eed5=_0x550f77['start'],_0x2decbc=_0x550f77['end'];for(const {suggestion:_0x1c9a9e,meta:_0x5bb900}of this['_findSuggestions'](_0x550f77,'formatInline')){if(!_0x5bb900['isOwn'])continue;if(_0x1c9a9e['subType']!=_0x367b33)continue;if(!zt(_0x1c9a9e,_0x3c3c85))continue;const _0x30d31b=_0x1c9a9e['getFirstRange']();if(_0x30d31b['containsRange'](_0x550f77,!0x0))return null;_0x29eed5=_0x29eed5['isBefore'](_0x30d31b['start'])?_0x29eed5:_0x30d31b['start'],_0x2decbc=_0x2decbc['isAfter'](_0x30d31b['end'])?_0x2decbc:_0x30d31b['end'],_0x4f3a73?_0x30d31b['start']['isBefore'](_0x4f3a73['getFirstRange']()['start'])?(_0x4f3a73['removeMarkers'](),_0x4f3a73=_0x1c9a9e):_0x1c9a9e['removeMarkers']():_0x4f3a73=_0x1c9a9e;}const _0x375b91=this['_model']['createRange'](_0x29eed5,_0x2decbc);if(_0x4f3a73)this['_setSuggestionRange'](_0x4f3a73,_0x375b91);else{const _0x393ffa=_0x18c716(),_0x1fc1b9=_0x2b4e67['id'];this['_setSuggestionData']({'id':_0x393ffa,'type':'formatInline:'+_0x367b33,'data':_0x5a97cd,'createdAt':new Date(),'authorId':_0x1fc1b9,'attributes':_0x3c3c85}),this['_addSuggestionMarker']('formatInline:'+_0x367b33,_0x393ffa,_0x1fc1b9,_0x375b91);}}return null;}['markBlockFormat'](_0x11f862,_0x18b0d1,_0x495c13=[],_0x4ebe9c=null,_0x1d6341={}){_0x18b0d1['formatGroupId']||(_0x18b0d1['formatGroupId']=_0x18b0d1['commandName']),_0x18b0d1['multipleBlocks']=_0x11f862['is']('range'),_0x4ebe9c=_0x4ebe9c||Gt(_0x18b0d1);const _0x22bb60=_0x495c13['map'](_0xe867d8=>Kt(_0xe867d8,this['_model'])),_0x1d63ac=_0x11f862['is']('range')?_0x11f862:Kt(_0x11f862,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2652cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ebe9c,'accept');return this['forceDefaultExecution'](()=>_0x2652cd([_0x1d63ac],_0x18b0d1,_0x1d6341)),null;}_0x22bb60['push'](_0x1d63ac);let _0xc5b91f=!0x0;for(const _0x7ee7f0 of _0x22bb60)if(!this['_rangeIsInLocalUserInsertion'](_0x7ee7f0)){_0xc5b91f=!0x1;break;}if(_0xc5b91f&&'always'!==this['_trackFormatChanges']){const _0x548378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ebe9c,'accept');return this['forceDefaultExecution'](()=>_0x548378([_0x1d63ac],_0x18b0d1,_0x1d6341)),null;}let _0x44283e=null,_0x16938d=_0x1d63ac['start'],_0x4e2dab=_0x1d63ac['end'];for(const {suggestion:_0x4f9f93,meta:_0x28ca06}of this['_findSuggestions'](_0x1d63ac,'formatBlock')){if(!_0x28ca06['isOwn'])continue;if(_0x28ca06['isNextTo']||_0x28ca06['containsRangeInObject']||_0x28ca06['isInsideObject'])continue;if(_0x4f9f93['data']['formatGroupId']!=_0x18b0d1['formatGroupId'])continue;if(!zt(_0x4f9f93,_0x1d6341))continue;const _0x5e9d3c=_0x4f9f93['getFirstRange']();if(_0x4f9f93['subType']==_0x4ebe9c){if(_0x5e9d3c['containsRange'](_0x1d63ac,!0x0))return null;_0x16938d=_0x16938d['isBefore'](_0x5e9d3c['start'])?_0x16938d:_0x5e9d3c['start'],_0x4e2dab=_0x4e2dab['isAfter'](_0x5e9d3c['end'])?_0x4e2dab:_0x5e9d3c['end'],_0x44283e?_0x5e9d3c['start']['isBefore'](_0x44283e['getFirstRange']()['start'])?(_0x44283e['removeMarkers'](),_0x44283e=_0x4f9f93):_0x4f9f93['removeMarkers']():_0x44283e=_0x4f9f93;}else{const _0x41f852=_0x1d63ac['getIntersection'](_0x5e9d3c);this['_cutOutSuggestionMarker'](_0x4f9f93,_0x41f852);}}const _0x478feb=this['editor']['plugins']['get']('Users')['me'],_0x5a5fb3=_0x18c716(),_0x221b98=_0x478feb['id'];if(_0x44283e)return this['_setSuggestionRange'](_0x44283e,this['_model']['createRange'](_0x16938d,_0x4e2dab)),_0x44283e;{const _0x533a26=this['_setSuggestionData']({'id':_0x5a5fb3,'type':'formatBlock:'+_0x4ebe9c,'data':_0x18b0d1,'createdAt':new Date(),'authorId':_0x221b98,'attributes':_0x1d6341});return this['_addSuggestionMarker']('formatBlock:'+_0x4ebe9c,_0x5a5fb3,_0x221b98,this['_model']['createRange'](_0x16938d,_0x4e2dab)),_0x533a26;}}['markMultiRangeBlockFormat'](_0xd51d4f,_0x5ae5da,_0x33685e=[],_0x1ba881=null,_0x2921df={}){_0x5ae5da['formatGroupId']||(_0x5ae5da['formatGroupId']=_0x5ae5da['commandName']);const _0x10b836=_0xd51d4f[0x0];_0x5ae5da['multipleBlocks']=_0x10b836['is']('range'),_0x1ba881=_0x1ba881||Gt(_0x5ae5da);const _0x335597=_0x33685e['map'](_0x5b5e94=>Kt(_0x5b5e94,this['_model'])),_0x17ccd3=_0x10b836['is']('range')?_0xd51d4f:_0xd51d4f['map'](_0x405d59=>Kt(_0x405d59,this['_model']));if('never'===this['_trackFormatChanges']){const _0x19beec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ba881,'accept');return this['forceDefaultExecution'](()=>_0x19beec(_0x17ccd3,_0x5ae5da,_0x2921df)),null;}_0x335597['push'](..._0x17ccd3);let _0x57109c=!0x0;for(const _0xdc296c of _0x335597)if(!this['_rangeIsInLocalUserInsertion'](_0xdc296c)){_0x57109c=!0x1;break;}if(_0x57109c&&'always'!==this['_trackFormatChanges']){const _0x1fabe8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ba881,'accept');return this['forceDefaultExecution'](()=>_0x1fabe8(_0x17ccd3,_0x5ae5da,_0x2921df)),null;}const _0x251adc=this['editor']['plugins']['get']('Users')['me'];for(const _0x245e6d of this['getSuggestions']()){if(_0x245e6d['author']['id']!=_0x251adc['id'])continue;if('formatBlock'!=_0x245e6d['type']||_0x245e6d['data']['formatGroupId']!=_0x5ae5da['formatGroupId'])continue;if(!zt(_0x245e6d,_0x2921df))continue;const _0x110697=_0x245e6d['subType']==_0x1ba881;for(let _0x612429=0x0;_0x612429<_0x17ccd3['length'];_0x612429++){const _0x5d2e65=_0x17ccd3[_0x612429];for(const _0x166e7f of _0x245e6d['getMarkers']()){const _0x286ca9=_0x166e7f['getRange']();if(_0x5d2e65['isEqual'](_0x286ca9)){_0x110697?(_0x17ccd3['splice'](_0x612429,0x1),_0x612429--):_0x245e6d['removeMarker'](_0x166e7f['name']);break;}}}}if(0x0==_0x17ccd3['length'])return null;const _0x58981e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ba881,'join');for(const _0x10ed81 of this['getSuggestions']())if(_0x10ed81['author']['id']==_0x251adc['id']&&'formatBlock'==_0x10ed81['type']&&_0x10ed81['data']['formatGroupId']==_0x5ae5da['formatGroupId']&&_0x10ed81['subType']==_0x1ba881&&zt(_0x10ed81,_0x2921df)&&(_0x58981e(_0x10ed81['getRanges'](),_0x17ccd3)||_0x58981e(_0x17ccd3,_0x10ed81['getRanges']()))){for(const _0xb3c751 of _0x17ccd3)_0x10ed81['addRange'](_0xb3c751);return _0x10ed81;}const _0x163cb5=_0x18c716(),_0x336b62=_0x251adc['id'],_0x343cc4='formatBlock:'+_0x1ba881,_0x469601=this['_setSuggestionData']({'id':_0x163cb5,'type':_0x343cc4,'data':_0x5ae5da,'createdAt':new Date(),'authorId':_0x336b62,'attributes':_0x2921df});for(const _0x6fdec of _0x17ccd3)this['_addSuggestionMarker'](_0x343cc4,_0x163cb5,_0x336b62,_0x6fdec,o['getMultiRangeId']());return _0x469601;}['markDeletion'](_0x2e0081,_0x15f13a=null,_0xf98d5d={}){if(_0x2e0081['isCollapsed'])return null;const _0x411cc0=this['editor']['plugins']['get']('Users')['me'],_0x1f7e46=new _0x1f3765(_0x2e0081['start'],_0x2e0081['end']);for(const {suggestion:_0xd5be05,meta:_0x5781a9}of this['_findSuggestions'](_0x1f7e46,'insertion'))if(_0x5781a9['isOwn']&&!_0x5781a9['isNextTo']){if(_0xd5be05['isMultiRange']){const _0x13cfd6=_0xd5be05['getRanges']()['filter'](_0x140560=>'$graveyard'!=_0x140560['root']['rootName']);_0x13cfd6['every'](_0x1e1614=>_0x1f7e46['containsRange'](_0x1e1614,!0x0))&&_0xd5be05['discard']();if(_0x13cfd6['some'](_0x3783af=>_0x3783af['containsRange'](_0x1f7e46,!0x0))){const _0x2d5722=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f13a,'accept');return this['forceDefaultExecution'](()=>_0x2d5722([_0x1f7e46],null,_0xf98d5d)),null;}}else{const _0x1b913e=_0x1f7e46['getIntersection'](_0xd5be05['getFirstRange']());null!==_0x1b913e&&_0xd5be05['_onDiscard']([_0x1b913e],null,_0xf98d5d);}}if(_0x1f7e46['detach'](),_0x1f7e46['isCollapsed']||'$graveyard'==_0x1f7e46['root']['rootName'])return null;let _0x24ede5=null,_0x4ae174=_0x1f7e46['start'],_0x5c7848=_0x1f7e46['end'];const _0x205b5e=this['_findSuggestions'](_0x1f7e46,'deletion');for(const {suggestion:_0x33cf76,meta:_0x41e282}of _0x205b5e){const _0x2051e4=this['_model']['createRange'](_0x4ae174,_0x5c7848);if(_0x41e282['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41e282['containsRangeInObject']&&!_0x41e282['isInsideObject'])){if(_0x33cf76['isMultiRange']){if(!zt(_0x33cf76,_0xf98d5d))continue;let _0x1ec443=!0x0;for(const _0x29e568 of _0x33cf76['getRanges']()){if(_0x29e568['containsRange'](_0x2051e4,!0x0))return _0x33cf76;_0x2051e4['containsRange'](_0x29e568)||(_0x1ec443=!0x1);}_0x1ec443&&_0x33cf76['discard']();}else{const _0x31289d=_0x33cf76['getFirstRange']();if(_0x31289d['containsRange'](_0x2051e4,!0x0))return _0x33cf76;if(!zt(_0x33cf76,_0xf98d5d)){_0x2051e4['containsRange'](_0x31289d)?_0x33cf76['removeMarkers']():_0x31289d['containsPosition'](_0x4ae174)?_0x4ae174=_0x31289d['end']:_0x31289d['containsPosition'](_0x5c7848)&&(_0x5c7848=_0x31289d['start']);continue;}_0x4ae174=_0x4ae174['isBefore'](_0x31289d['start'])?_0x4ae174:_0x31289d['start'],_0x5c7848=_0x5c7848['isAfter'](_0x31289d['end'])?_0x5c7848:_0x31289d['end'],_0xf98d5d=Object['assign']({},_0x33cf76['attributes']),_0x24ede5?_0x31289d['start']['isBefore'](_0x24ede5['getFirstRange']()['start'])?(_0x24ede5['removeMarkers'](),_0x24ede5=_0x33cf76):_0x33cf76['removeMarkers']():_0x24ede5=_0x33cf76;}}}if(_0x24ede5)return this['_setSuggestionRange'](_0x24ede5,this['_model']['createRange'](_0x4ae174,_0x5c7848)),_0x24ede5;{const _0xbbe689=_0x18c716(),_0x3f7a18=this['_model']['createRange'](_0x4ae174,_0x5c7848),_0x370548=_0x411cc0['id'],_0x5c6aec=_0x15f13a?'deletion:'+_0x15f13a:'deletion',_0x5977a3=this['_setSuggestionData']({'id':_0xbbe689,'type':_0x5c6aec,'createdAt':new Date(),'authorId':_0x370548,'attributes':_0xf98d5d});return this['_addSuggestionMarker'](_0x5c6aec,_0xbbe689,_0x370548,_0x3f7a18),_0x5977a3;}}['markMultiRangeDeletion'](_0x129d5c,_0x34121d='multi',_0x46adc6={}){const _0x1e10a0=this['editor']['plugins']['get']('Users')['me'],_0x51f92f=_0x129d5c['map'](_0x56f0a6=>new _0x1f3765(_0x56f0a6['start'],_0x56f0a6['end'])),_0x343f9d=new Set();for(const {suggestion:_0x26ea0,meta:_0x3b5907}of this['_findSuggestions'](_0x51f92f,'insertion'))_0x3b5907['isOwn']&&!_0x3b5907['isNextTo']&&_0x343f9d['add'](_0x26ea0);for(const _0x2ff595 of _0x343f9d)if(_0x2ff595['isMultiRange']){const _0xd5f773=_0x2ff595['getRanges']();(!_0x2ff595['attributes']||!_0x2ff595['attributes']['skipNestingCheck'])&&(_0xd5f773['every'](_0x4b25ea=>_0x51f92f['some'](_0x2b7bbd=>_0x2b7bbd['containsRange'](_0x4b25ea,!0x0)))&&_0x2ff595['discard']());if(_0x51f92f['every'](_0x5c059f=>_0xd5f773['some'](_0x55f4d1=>_0x55f4d1['containsRange'](_0x5c059f,!0x0)))){const _0x343463=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34121d,'accept');return this['forceDefaultExecution'](()=>_0x343463(_0x129d5c,null,_0x46adc6)),null;}}else{const _0x43aa95=_0x2ff595['getFirstRange']();_0x51f92f['some'](_0x372551=>_0x372551['containsRange'](_0x43aa95,!0x0))&&_0x2ff595['discard']();if(_0x51f92f['every'](_0x4fc00c=>_0x43aa95['containsRange'](_0x4fc00c,!0x0))){const _0xe0b5fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34121d,'accept');return this['forceDefaultExecution'](()=>_0xe0b5fe(_0x51f92f,null,_0x46adc6)),null;}}const _0x5f2c50=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34121d,'join');let _0x238aa8=null;for(const _0x409331 of this['getSuggestions']())if(_0x409331['author']['id']==_0x1e10a0['id']&&_0x409331['isInContent']&&'deletion'==_0x409331['type']&&_0x409331['subType']==_0x34121d&&zt(_0x409331,_0x46adc6)&&(_0x5f2c50(_0x409331['getRanges'](),_0x51f92f)||_0x5f2c50(_0x51f92f,_0x409331['getRanges']()))){if(_0x238aa8){if(_0x409331['commentThread']&&_0x409331['commentThread']['length'])continue;for(const _0xd00c7b of _0x409331['getRanges']())_0x238aa8['isIntersectingWithRange'](_0xd00c7b)||_0x238aa8['addRange'](_0xd00c7b);_0x409331['removeMarkers']();}else{_0x238aa8=_0x409331;for(const _0x393499 of _0x51f92f)_0x409331['isIntersectingWithRange'](_0x393499)||_0x409331['addRange'](_0x393499);}}if(_0x238aa8)return _0x238aa8;_0x343f9d['clear']();for(const {suggestion:_0x27968f,meta:_0x3e2f4c}of this['_findSuggestions'](_0x51f92f,'deletion'))_0x3e2f4c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e2f4c['containsRangeInObject']&&!_0x3e2f4c['isInsideObject'])&&zt(_0x27968f,_0x46adc6)&&_0x343f9d['add'](_0x27968f);for(const _0x232071 of _0x343f9d){const _0x56dcc2=_0x232071['getRanges']();if(!_0x46adc6||!_0x46adc6['skipNestingCheck']){if(_0x51f92f['every'](_0x141f77=>_0x56dcc2['some'](_0x5cdfa9=>_0x5cdfa9['containsRange'](_0x141f77,!0x0))))return _0x232071;}(!_0x232071['attributes']||!_0x232071['attributes']['skipNestingCheck'])&&(_0x56dcc2['every'](_0x2cb8b0=>_0x51f92f['some'](_0x34bad3=>_0x34bad3['containsRange'](_0x2cb8b0,!0x0)))&&_0x232071['discard']());}const _0x5c944f=_0x18c716(),_0x4bd6ae=_0x1e10a0['id'],_0x4f32e2='deletion:'+_0x34121d,_0x3fc4b2=this['_setSuggestionData']({'id':_0x5c944f,'type':_0x4f32e2,'createdAt':new Date(),'authorId':_0x4bd6ae,'attributes':_0x46adc6});for(const _0x12a310 of _0x51f92f)_0x12a310['detach'](),_0x12a310['isCollapsed']||'$graveyard'==_0x12a310['root']['rootName']||this['_addSuggestionMarker'](_0x4f32e2,_0x5c944f,_0x4bd6ae,_0x12a310,o['getMultiRangeId']());return _0x3fc4b2;}['markAttributeChange'](_0x579fff,_0x3e91f5,_0xf05ade,_0x56f35c,_0x3d5ca1){if(_0x579fff['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4e5cab=this['editor']['plugins']['get']('Users')['me']['id'],_0x38cd34=Array['from'](this['_suggestions']['values']())['filter'](_0x5eec61=>'attribute'==_0x5eec61['type']&&_0x5eec61['data']['key']==_0x3e91f5&&_0x5eec61['isIntersectingWithRange'](_0x579fff));if('default'===this['_trackFormatChanges']){const _0x5c4a9b=this['_findSuggestions'](_0x579fff,'insertion')['filter'](({meta:_0x21a022})=>_0x21a022['isOwn']&&!_0x21a022['isInsideObject']&&!_0x21a022['isNextTo'])['map'](({suggestion:_0x54c481})=>_0x54c481);_0x38cd34['unshift'](..._0x5c4a9b);}const _0x257bea=new Map([[_0x579fff,_0xf05ade]]);for(const _0x3c14cf of _0x38cd34){const _0xa8f5='attribute'==_0x3c14cf['type']?_0x3c14cf['data']['oldValue']:void 0x0,_0x2840d7=_0x3c14cf['getFirstRange'](),_0x50516a=Array['from'](_0x257bea['keys']())['find'](_0x30694c=>_0x30694c['isIntersecting'](_0x2840d7));if(!_0x50516a)continue;const _0x2aae84=_0x50516a['getDifference'](_0x2840d7);this['_isBlockAttribute'](_0x3e91f5)&&'insertion'==_0x3c14cf['type']&&0x0!=_0x2aae84['length']||(_0x257bea['delete'](_0x50516a),_0x2aae84['forEach'](_0x3d8f6e=>{_0x257bea['set'](_0x3d8f6e,_0xf05ade);}),'insertion'!=_0x3c14cf['type']&&_0xa8f5!=_0x56f35c&&_0x257bea['set'](_0x50516a['getIntersection'](_0x2840d7),_0xa8f5));}const _0x1d54b5=[];for(const [_0x4c2272,_0x5003b3]of _0x257bea){const _0x3521af=_0x18c716(),_0x1d87ef={'key':_0x3e91f5,'oldValue':_0x5003b3,'newValue':_0x56f35c};_0x3e91f5['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':_0x3e91f5});const _0x3c354a=('attribute:'+(_0x3e91f5+'|'+Gt({'newValue':_0x56f35c})))['substring'](0x0,0x3c),_0x4d17a9=this['_setSuggestionData']({'id':_0x3521af,'type':_0x3c354a,'data':_0x1d87ef,'createdAt':new Date(),'authorId':_0x4e5cab,'attributes':_0x3d5ca1});_0x1d54b5['push'](_0x4d17a9),this['_addSuggestionMarker'](_0x3c354a,_0x3521af,_0x4e5cab,_0x4c2272);}return _0x1d54b5;}['enableDefaultAttributesIntegration'](_0x2489c0){this['enableCommand'](_0x2489c0,(_0x2e8694,..._0x1e9797)=>{this['_recordAttributeChanges'](()=>{_0x2e8694(..._0x1e9797);});});}['registerBlockAttribute'](_0x8e0439){this['_blockAttributeKeys']['add'](_0x8e0439);}['registerInlineAttribute'](_0x215072){this['_inlineAttributeKeys']['add'](_0x215072);}['_getAttributeKey'](_0x2c8174){return'attribute'==_0x2c8174['type']?_0x2c8174['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x10c219,_0x257618){const _0x46ad83=_0x10c219['getFirstMarker']();this['_model']['change'](_0x316aae=>{_0x316aae['updateMarker'](_0x46ad83,{'range':_0x257618});});}['_addThreadToSuggestion'](_0x3420ec){const _0x2ffafa=_0x3420ec['id'],_0x21c2c5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2ffafa)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21c2c5,'threadId':_0x2ffafa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x7bd536=this['_commentsRepository']['getCommentThread'](_0x2ffafa);_0x7bd536['unbind']('isRemovable'),_0x7bd536['isRemovable']=!0x1,_0x3420ec['commentThread']=_0x7bd536;}['_checkSuggestionCorrectness'](_0x454eca,_0x2342cc,_0x22b215,_0x235e7f){if(_0x454eca['type']!=_0x2342cc||_0x454eca['subType']!=_0x22b215||_0x454eca['creator']['id']!=_0x235e7f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2b6413('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1bac07,_0x2219f8){const _0x528ad5=_0x1bac07['getFirstRange']();if(_0x2219f8['isEqual'](_0x528ad5))_0x1bac07['removeMarkers']();else{if(_0x528ad5['containsRange'](_0x2219f8)){const _0xfeea8f=this['_model']['createPositionAt'](_0x2219f8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1bac07,this['_model']['createRange'](_0x528ad5['start'],_0xfeea8f));const _0x549dec=_0x18c716(),_0x37d064=_0x1bac07['creator']['id'],_0x36fb9c=_0x1bac07['type']+':'+_0x1bac07['subType'];this['_setSuggestionData']({'id':_0x549dec,'type':_0x36fb9c,'createdAt':new Date(),'authorId':_0x37d064,'data':_0x1bac07['data'],'attributes':_0x1bac07['attributes']});const _0x3be330=this['_model']['createPositionAt'](_0x2219f8['end']['parent'],'after'),_0x19f7dc=this['_model']['createRange'](_0x3be330,_0x528ad5['end']);this['_addSuggestionMarker'](_0x36fb9c,_0x549dec,_0x37d064,_0x19f7dc);}else{if(_0x528ad5['containsPosition'](_0x2219f8['start'])){const _0x49f19e=this['_model']['createPositionAt'](_0x2219f8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1bac07,this['_model']['createRange'](_0x528ad5['start'],_0x49f19e));}else{const _0x3be6e7=this['_model']['createPositionAt'](_0x2219f8['end']['parent'],'after');this['_setSuggestionRange'](_0x1bac07,this['_model']['createRange'](_0x3be6e7,_0x528ad5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13354b){for(const {suggestion:_0x49626b,meta:_0x173326}of this['_findSuggestions'](_0x13354b,'insertion')){if(!_0x173326['isOwn'])continue;const _0x153d5d=_0x49626b['getRanges']();for(const _0x1a4304 of _0x153d5d)if(!_0x13354b['getDifference'](_0x1a4304)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f70f4){const _0x280c5c=this['editor']['plugins']['get']('Users')['getUser'](_0x1f70f4);if(!_0x280c5c)throw new _0x2b6413('track-changes-user-not-found',this);return _0x280c5c;}['_getExternalAuthor'](_0x4e7bc3){const _0x3b761d=this['editor']['plugins']['get']('Users'),_0x19b23d=_0x5e4436('external:'+_0x4e7bc3),_0x3621ad=_0x3b761d['getUser'](_0x19b23d);return _0x3621ad||_0x3b761d['addUser']({'id':_0x19b23d,'name':_0x4e7bc3});}['_createSuggestion'](_0x418428,_0x283c91,_0x4cc123,_0x49ff33,_0x15435c){const _0x1c0cdd=this['_getAuthorFromId'](_0x49ff33),_0x5256cb=this['_suggestionFactory']['buildSuggestion'](_0x418428,_0x283c91,_0x4cc123,_0x1c0cdd,_0x15435c,_0x49df41=>{this['_updateSuggestionData'](_0x4cc123,{'attributes':_0x49df41});const _0xc9fca5=this['getSuggestion'](_0x4cc123);this['_joinWithAdjacentSuggestions'](new Set([_0xc9fca5])),this['_refreshSuggestionsChain'](new Set([_0xc9fca5]));});return this['listenTo'](_0x5256cb,'accept',()=>{this['_updateSuggestionData'](_0x4cc123,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5256cb,'discard',()=>{this['_updateSuggestionData'](_0x4cc123,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4cc123,_0x5256cb),this['_suggestionState']['set'](_0x5256cb,'notReady'),_0x5256cb;}['_splitMarkerName'](_0x121ff1){const _0x3d5890=_0x121ff1['split'](':');return{'group':_0x3d5890[0x0],'type':_0x3d5890[0x1],'subType':_0x3d5890['length']>=0x5?_0x3d5890[0x2]:null,'id':_0x3d5890['length']<0x5?_0x3d5890[0x2]:_0x3d5890[0x3],'authorId':_0x3d5890['length']<0x5?_0x3d5890[0x3]:_0x3d5890[0x4],'markerCount':0x6==_0x3d5890['length']?_0x3d5890[0x5]:null};}['_breakSuggestionMarker'](_0xdf6c01,_0x7b47db,_0x4081b9){const _0x31ad6d=_0xdf6c01['getFirstRange'](),_0x5b3eec=_0x31ad6d['start'],_0x498905=_0x31ad6d['end'];this['_setSuggestionRange'](_0xdf6c01,this['_model']['createRange'](_0x5b3eec,_0x7b47db));const _0x3f22ed=_0x18c716(),_0x5e5df4=_0xdf6c01['creator']['id'],_0x5e4ecb=_0xdf6c01['type']+(_0xdf6c01['subType']?':'+_0xdf6c01['subType']:'');this['_setSuggestionData']({'id':_0x3f22ed,'type':_0x5e4ecb,'createdAt':new Date(),'authorId':_0x5e5df4,'originalSuggestionId':_0xdf6c01['id'],'attributes':_0xdf6c01['attributes'],'data':_0xdf6c01['data']});const _0x16049f=this['_getAttributeKey'](_0xdf6c01);('formatBlock'==_0xdf6c01['type']||_0x16049f&&this['_isBlockAttribute'](_0x16049f))&&(_0x4081b9=this['_model']['createPositionBefore'](_0x4081b9['parent'])),this['_addSuggestionMarker'](_0x5e4ecb,_0x3f22ed,_0x5e5df4,this['_model']['createRange'](_0x4081b9,_0x498905));}['_findSuggestions'](_0x29c563,_0x4c253f=null){const _0x3e31c5=[],_0x2144c7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29c563)||(_0x29c563=[_0x29c563]);for(const _0x451465 of this['getSuggestions']()){if(!_0x451465['isInContent'])continue;if(_0x4c253f&&_0x451465['type']!=_0x4c253f)continue;let _0x6f5b3d=!0x1;for(const _0x313e50 of _0x451465['getRanges']()){for(const _0x2cb3fe of _0x29c563){const _0xaef6ba=_0x2cb3fe['start']['isEqual'](_0x313e50['end'])||_0x2cb3fe['end']['isEqual'](_0x313e50['start']);if(_0xaef6ba||_0x2cb3fe['getIntersection'](_0x313e50)){const _0x34804e=_0x2cb3fe['containsRange'](_0x313e50)&&Vt(this['_model']['schema'],_0x313e50['start'],_0x2cb3fe),_0x2465a3=_0x313e50['containsRange'](_0x2cb3fe)&&Vt(this['_model']['schema'],_0x2cb3fe['start'],_0x313e50);_0x3e31c5['push']({'suggestion':_0x451465,'meta':{'isOwn':_0x2144c7==_0x451465['author'],'isNextTo':_0xaef6ba,'isInsideObject':_0x34804e,'containsRangeInObject':_0x2465a3}}),_0x6f5b3d=!0x0;break;}}if(_0x6f5b3d)break;}}return _0x3e31c5;}['_addSuggestionMarker'](_0x277eb2,_0x51d92c,_0x306299,_0x142ce7,_0x576da2){this['_model']['change'](_0x47c382=>{let _0xd12d4d='suggestion:'+_0x277eb2+':'+_0x51d92c+':'+_0x306299;_0x576da2&&(_0xd12d4d=_0xd12d4d+':'+_0x576da2),_0x47c382['addMarker'](_0xd12d4d,{'range':_0x142ce7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48d68f){const _0x1bad22=_0x48d68f['previous'],_0x1e8505=_0x48d68f['next'];_0x48d68f['previous']=null,_0x48d68f['next']=null,null!=_0x1bad22&&_0x1bad22['next']==_0x48d68f&&(_0x1bad22['next']=_0x1e8505),null!=_0x1e8505&&_0x1e8505['previous']==_0x48d68f&&(_0x1e8505['previous']=_0x1bad22),'ready'==this['_suggestionState']['get'](_0x48d68f)&&(this['_suggestionState']['set'](_0x48d68f,'removed'),this['fire']('suggestionUnloaded',_0x48d68f,_0x1bad22,_0x1e8505));}['_setSuggestionData'](_0x131f2a){const _0x58b596=_0x131f2a['id'],_0x380ab8=this['addSuggestionData'](_0x131f2a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x281770=this['editor']['plugins']['get']('PendingActions'),_0x5f35d1=_0x380ab8['hasComments'],_0x50e96b=_0x380ab8['subType']?_0x380ab8['type']+':'+_0x380ab8['subType']:_0x380ab8['type'],_0x12aa8c=this['editor']['locale'],_0x51070b=_0x281770['add'](c(_0x12aa8c,'PENDING_ACTION_SUGGESTION')),_0x228af7={'id':_0x58b596,'type':_0x50e96b,'hasComments':_0x5f35d1,'data':_0x131f2a['data']||null,'originalSuggestionId':_0x131f2a['originalSuggestionId']||null,'attributes':_0x380ab8['attributes']};this['_adapter']['addSuggestion'](_0x228af7)['then'](_0x14d009=>{_0x380ab8['_saved']=!0x0,_0x281770['remove'](_0x51070b),_0x14d009&&_0x14d009['createdAt']&&(this['_suggestions']['get'](_0x58b596)['createdAt']=_0x14d009['createdAt']);})['catch'](_0x554b0e=>{throw _0x5c1391('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x380ab8['discard']();}),_0x380ab8['stopListening'](),this['_suggestions']['delete'](_0x380ab8['id']),this['_suggestionState']['delete'](_0x380ab8),_0x554b0e;});}return _0x380ab8;}['_isBlockAttribute'](_0x2623ee){return this['_blockAttributeKeys']['has'](_0x2623ee);}['_updateSuggestionData'](_0x43f8f4,_0x189d93){const _0x7c8829=this['editor']['plugins']['get']('PendingActions'),_0x5bb71b=this['getSuggestion'](_0x43f8f4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5bb71b['_saved']){const _0x3b4e68=_0x7c8829['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43f8f4,_0x189d93)['then'](()=>{_0x7c8829['remove'](_0x3b4e68);});}else _0x5bb71b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43f8f4,_0x189d93);});}}['_getSuggestionData'](_0x128b95){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2b6413('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x128b95);}['_handleNewSuggestionMarker'](_0x1e610c){const {id:_0x1139ea,type:_0x442c60,subType:_0x3b46d4,authorId:_0x5d67a9}=this['_splitMarkerName'](_0x1e610c),_0x320080=this['_suggestions']['get'](_0x1139ea)||this['_createSuggestion'](_0x442c60,_0x3b46d4,_0x1139ea,_0x5d67a9,{});switch(this['_checkSuggestionCorrectness'](_0x320080,_0x442c60,_0x3b46d4,_0x5d67a9),this['_suggestionState']['get'](_0x320080)){case'notReady':this['_getSuggestionData'](_0x1139ea)['then'](_0x4af24c=>{let _0x472e20=Promise['resolve']();_0x4af24c['hasComments']&&(_0x472e20=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1139ea})),_0x472e20['then'](()=>{this['addSuggestionData'](_0x4af24c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x320080,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1139ea,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x320080,'ready'),this['fire']('suggestionLoaded',_0x320080);break;case'ready':this['fire']('suggestionChanged',_0x320080);}return _0x320080['addMarkerName'](_0x1e610c),_0x320080;}['_refreshSuggestionsChain'](_0x44d810){const _0x263118=Array['from'](_0x44d810),_0x1543c0=_0x263118['filter'](_0x84639f=>'attribute'==_0x84639f['type']);this['_refreshAttributeSuggestionsChain'](_0x1543c0);const _0x1ece46=_0x263118['filter'](_0x342a1a=>!_0x342a1a['isMultiRange']&&'attribute'!=_0x342a1a['type']),_0x49267d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10238c=>!_0x10238c['isMultiRange']&&'attribute'!=_0x10238c['type']),_0x3bd6ca=_0x49267d['filter'](_0x16e5cf=>!_0x44d810['has'](_0x16e5cf)),_0x1aed97=new Map(_0x49267d['map'](_0x68adfb=>[_0x68adfb,this['_suggestionFactory']['getSuggestionCallback'](_0x68adfb['type'],_0x68adfb['subType'],'chain')])),_0x27b550=new Map(_0x49267d['map'](_0x14d18d=>[_0x14d18d,_0x14d18d['getFirstRange']()])),_0x34f9ec=new Set(),_0x23cb4f=new Set();for(let _0x383a48=0x0;_0x383a48<_0x1ece46['length'];_0x383a48++)_0x3acf06(_0x1ece46[_0x383a48],_0x1ece46,_0x383a48+0x1);for(let _0x36eb67=0x0;_0x36eb67<_0x1ece46['length'];_0x36eb67++)_0x3acf06(_0x1ece46[_0x36eb67],_0x3bd6ca,0x0);const _0x48f60d=new Set();for(let _0x247fe4=0x0;_0x247fe4<_0x1ece46['length'];_0x247fe4++){const _0x2a1fd1=_0x1ece46[_0x247fe4];!_0x23cb4f['has'](_0x2a1fd1)&&_0x2a1fd1['previous']&&(_0x48f60d['add'](_0x2a1fd1['previous']),_0x2a1fd1['previous']['next']===_0x2a1fd1&&(_0x2a1fd1['previous']['next']=null),_0x2a1fd1['previous']=null),!_0x34f9ec['has'](_0x2a1fd1)&&_0x2a1fd1['next']&&(_0x48f60d['add'](_0x2a1fd1['next']),_0x2a1fd1['next']['previous']===_0x2a1fd1&&(_0x2a1fd1['next']['previous']=null),_0x2a1fd1['next']=null);}function _0x3acf06(_0x5934a4,_0x1e612b,_0x3f7e62){for(let _0x948f97=_0x3f7e62;_0x948f97<_0x1e612b['length'];_0x948f97++){const _0x499d20=_0x209048(_0x5934a4,_0x1e612b[_0x948f97]);_0x499d20&&(_0x499d20[0x0]['next']=_0x499d20[0x1],_0x499d20[0x1]['previous']=_0x499d20[0x0],_0x34f9ec['add'](_0x499d20[0x0]),_0x23cb4f['add'](_0x499d20[0x1]));}}function _0x209048(_0x487763,_0x2a2d13){if(_0x487763['author']['id']!==_0x2a2d13['author']['id'])return null;const _0x180b59=_0x1aed97['get'](_0x487763)(_0x487763,_0x2a2d13,_0x27b550['get'](_0x487763),_0x27b550['get'](_0x2a2d13));if(!_0x180b59)return null;return _0x1aed97['get'](_0x2a2d13)(_0x487763,_0x2a2d13,_0x27b550['get'](_0x487763),_0x27b550['get'](_0x2a2d13))?_0x180b59[0x1]['commentThread']&&_0x180b59[0x1]['commentThread']['length']?null:_0x180b59:null;}_0x48f60d['size']&&this['_refreshSuggestionsChain'](_0x48f60d);}['_refreshAttributeSuggestionsChain'](_0x5b5a06){if(0x0==_0x5b5a06['length'])return;const _0x3b2239=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b5463=>'attribute'==_0x2b5463['type']&&_0x2b5463['_isDataLoaded']),_0xf6e5f0=[],_0x2e39f3=new Map();for(const _0x5b8f6c of _0x3b2239){const _0x31ee9f=_0x5e4436(_0x5b8f6c['attributes']);_0x2e39f3['has'](_0x31ee9f)||(_0x2e39f3['set'](_0x31ee9f,_0xf6e5f0['length']),_0xf6e5f0['push']([]));const _0xd5581b=_0x2e39f3['get'](_0x31ee9f);_0xf6e5f0[_0xd5581b]['push'](_0x5b8f6c);}!(function(){_0xf6e5f0['sort']((_0x5ec194,_0x287a4b)=>{const _0x5e81fe=_0x5ec194[0x0]['createdAt'],_0x1ed128=_0x287a4b[0x0]['createdAt'];return _0x5e81fe==_0x1ed128?_0x5ec194[0x0]['attributes']['groupId']<_0x287a4b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5e81fe<_0x1ed128?-0x1:0x1;});for(const _0x14f354 of _0xf6e5f0)_0x14f354['sort']((_0x500bb4,_0x3800b7)=>_0x500bb4['id']<_0x3800b7['id']?-0x1:0x1);}());for(let _0x2eeae0=0x0;_0x2eeae0<_0xf6e5f0['length'];_0x2eeae0++){if(0x0==_0xf6e5f0[_0x2eeae0]['length'])continue;const _0x7a6c2c=[];for(let _0x53a272=_0x2eeae0+0x1;_0x53a272<_0xf6e5f0['length'];_0x53a272++)0x0!=_0xf6e5f0[_0x53a272]['length']&&_0x464d71(_0xf6e5f0[_0x2eeae0],_0xf6e5f0[_0x53a272])&&_0x7a6c2c['push'](_0x53a272);for(const _0x38bad7 of _0x7a6c2c)_0xf6e5f0[_0x2eeae0]=_0xf6e5f0[_0x2eeae0]['concat'](_0xf6e5f0[_0x38bad7]),_0xf6e5f0[_0x38bad7]=[];}for(const _0x371ff4 of _0xf6e5f0)for(let _0x3b62ea=0x0;_0x3b62ea<_0x371ff4['length'];_0x3b62ea++){const _0x4ba71f=_0x371ff4[_0x3b62ea+0x1]||null;_0x371ff4[_0x3b62ea]['next']!==_0x4ba71f&&(_0x371ff4[_0x3b62ea]['next']=_0x4ba71f);}for(const _0x8f2b56 of _0xf6e5f0)for(let _0x2ddf6e=0x0;_0x2ddf6e<_0x8f2b56['length'];_0x2ddf6e++){const _0x21189f=_0x8f2b56[_0x2ddf6e-0x1]||null;_0x8f2b56[_0x2ddf6e]['previous']!==_0x21189f&&(_0x8f2b56[_0x2ddf6e]['previous']=_0x21189f);}function _0x464d71(_0x17040a,_0x5bd3be){if(_0x17040a[0x0]['attributes']['groupId']!==_0x5bd3be[0x0]['attributes']['groupId']&&_0x17040a[0x0]['author']!==_0x5bd3be[0x0]['author'])return!0x1;if(!function(_0x35032d,_0x407f26){if(!_0x35032d['hasComments']&&!_0x407f26['hasComments'])return!0x0;if(_0x35032d['hasComments']&&_0x407f26['hasComments'])return!0x1;if(_0x35032d['hasComments']&&_0x407f26['createdAt']<_0x35032d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x407f26['hasComments']&&_0x35032d['createdAt']<_0x407f26['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17040a[0x0],_0x5bd3be[0x0]))return!0x1;const _0x22276b=Et(_0x17040a[0x0]['attributes'],'groupId'),_0x2f1b4b=Et(_0x5bd3be[0x0]['attributes'],'groupId');if(!_0x2fcc92(_0x22276b,_0x2f1b4b))return!0x1;return!!_0x17040a['every'](_0x1303c0=>_0x5bd3be['some'](_0x58b69d=>_0x1303c0['getFirstRange']()['isEqual'](_0x58b69d['getFirstRange']())))&&_0x5bd3be['every'](_0x14a3a0=>_0x17040a['some'](_0x1dd6a2=>_0x14a3a0['getFirstRange']()['isEqual'](_0x1dd6a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x198297){const _0x3f9df4=Array['from'](_0x198297),_0x4d7876=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15da40=_0x4d7876['filter'](_0x40c24d=>!_0x198297['has'](_0x40c24d)),_0x2fd3cc=new Map(_0x3f9df4['map'](_0x38e51f=>[_0x38e51f,this['_suggestionFactory']['getSuggestionCallback'](_0x38e51f['type'],_0x38e51f['subType'],'join')])),_0x205b77=new Map(_0x4d7876['map'](_0x493e61=>[_0x493e61,_0x493e61['getRanges']()]));for(let _0x3faa74=0x0;_0x3faa74<_0x3f9df4['length'];_0x3faa74++){if(_0xfd7d2a(this,_0x3f9df4[_0x3faa74],_0x3f9df4,_0x3faa74+0x1))return!0x0;}for(let _0x9f300b=0x0;_0x9f300b<_0x3f9df4['length'];_0x9f300b++){if(_0xfd7d2a(this,_0x3f9df4[_0x9f300b],_0x15da40,0x0))return!0x0;}return!0x1;function _0xfd7d2a(_0x276644,_0x5bf793,_0x21444e,_0x45315e){for(let _0x466be9=_0x45315e;_0x466be9<_0x21444e['length'];_0x466be9++){const _0x18e9f4=_0x21444e[_0x466be9];if(_0x18e9f4['type']!==_0x5bf793['type']||_0x18e9f4['author']['id']!==_0x5bf793['author']['id']||_0x18e9f4['subType']!==_0x5bf793['subType'])continue;if(!qt(_0x5bf793,_0x18e9f4))continue;if('attribute'==_0x5bf793['type']&&_0x5bf793['data']['oldValue']!=_0x18e9f4['data']['oldValue'])continue;if('attribute'==_0x5bf793['type']&&_0x276644['_isBlockAttribute'](_0x5bf793['data']['key']))continue;if('formatBlock'==_0x5bf793['type']){const _0x29f66f=_0x276644['editor']['model'],_0x202dd7=_0x5bf793['getContainedElement']();if(_0x202dd7&&(_0x29f66f['schema']['isObject'](_0x202dd7)||_0x29f66f['schema']['isLimit'](_0x202dd7)))continue;}const _0x551e87=_0x2fd3cc['get'](_0x5bf793),_0x451692=_0x205b77['get'](_0x5bf793),_0x50b15f=_0x205b77['get'](_0x18e9f4),_0x12c45d=_0x5bf793['commentThread']&&_0x5bf793['commentThread']['length'],_0x2057b4=_0x18e9f4['commentThread']&&_0x18e9f4['commentThread']['length'];if(!_0x12c45d&&_0x551e87(_0x50b15f,_0x451692))return _0x276644['_joinSuggestions'](_0x18e9f4,_0x5bf793),_0x205b77['delete'](_0x5bf793),!0x0;if(!_0x2057b4&&_0x551e87(_0x451692,_0x50b15f))return _0x276644['_joinSuggestions'](_0x5bf793,_0x18e9f4),_0x205b77['delete'](_0x18e9f4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3d65ac,_0x16d2a7){if(_0x3d65ac['isMultiRange']){for(const _0x4ca264 of _0x16d2a7['getRanges']())_0x3d65ac['addRange'](_0x4ca264);}else{const _0x3b585c=_0x16d2a7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3d65ac,this['_model']['createRange'](_0x3d65ac['getFirstRange']()['start'],_0x3b585c));}_0x16d2a7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3cb88e,_0x39b854,_0x4c8bd1){const _0x360742=_0x3cb88e['startsWith']('format')||_0x3cb88e['startsWith']('attribute')?'FORMATTING':_0x3cb88e['toUpperCase']();return c(this['editor']['locale'],_0x39b854+'_'+_0x360742+'_SUGGESTION_ANNOUNCEMENT',_0x4c8bd1);}['_initAriaMarkerChangeAnnouncements'](){const _0x57e520=this['editor'];if(!_0x57e520['ui'])return;const {ariaLiveAnnouncer:_0x322f1a}=_0x57e520['ui'];_0x38c199(this['_model'],({left:_0x173d18,entered:_0x36a1ec})=>{for(const _0x5b780f of _0x173d18){const {group:_0xc4a4e6,type:_0x171d9d}=this['_splitMarkerName'](_0x5b780f['name']);if('suggestion'===_0xc4a4e6){_0x322f1a['announce'](this['_getMarkerAnnouncementText'](_0x171d9d,'LEAVE'));break;}}for(const _0xb4cb87 of _0x36a1ec){const {group:_0x4103ca,type:_0x349569}=this['_splitMarkerName'](_0xb4cb87['name']);if('suggestion'===_0x4103ca){_0x322f1a['announce'](this['_getMarkerAnnouncementText'](_0x349569,'ENTER',_0x2e4f9c(_0x51c160)));break;}}});}['_processAttributeChanges'](_0x9e13a3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x6c7e6c=this['editor'],_0x415dbd=_0x6c7e6c['model']['document']['differ']['getChanges']();if(0x0==_0x415dbd['length'])return!0x1;const _0x1f607f=[],_0x1f1e8f=_0x415dbd['filter'](_0x5e6a57=>'attribute'==_0x5e6a57['type']),_0x1b5ea0=_0x415dbd['filter'](_0x1b4969=>'insert'==_0x1b4969['type']&&'$text'!=_0x1b4969['name']),_0x3f52a4=_0x415dbd['filter'](_0x366180=>'remove'==_0x366180['type']&&'$text'!=_0x366180['name']);for(const _0x4f13ab of _0x1f1e8f)_0x1f607f['push']({'key':_0x4f13ab['attributeKey'],'newValue':_0x4f13ab['attributeNewValue'],'oldValue':_0x4f13ab['attributeOldValue'],'range':Jt(_0x4f13ab['range'],_0x6c7e6c['model'])});for(const _0x28d612 of _0x1b5ea0){const _0x521330=_0x3f52a4['find'](_0x213498=>_0x213498['position']['isEqual'](_0x28d612['position']));_0x521330&&_0x1f607f['push']({'key':u,'newValue':_0x28d612['name'],'oldValue':_0x521330['name'],'range':_0x6c7e6c['model']['createRangeOn'](_0x28d612['position']['nodeAfter'])});}return 0x0!=_0x1f607f['length']&&this['_reduceExistingSuggestions'](_0x9e13a3,_0x1f607f);}['_processAttributeSuggestions'](_0x33802f){let _0x323222=!0x1;const _0x256da5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f6ca0=>_0x2f6ca0['data']['newRange']&&_0x2f6ca0['name']['startsWith']('suggestion:attribute:'));for(const _0x309f8a of _0x256da5){const {subType:_0x1ec4c4,id:_0x452807}=this['_splitMarkerName'](_0x309f8a['name']),_0x53eb4d=_0x1ec4c4['split']('|')[0x0];for(const _0x124e5e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x124e5e['id']!=_0x452807&&'attribute'==_0x124e5e['type']&&_0x124e5e['data']&&_0x124e5e['data']['key']==_0x53eb4d&&_0x124e5e['getFirstRange']()['isIntersecting'](_0x309f8a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x124e5e,_0x309f8a['data']['newRange'],_0x33802f),_0x323222=!0x0);}return _0x323222;}['_recordAttributeChanges'](_0x57a74a){this['_recordAttributeSuggestions']=!0x0,_0x57a74a();}['_isRegisteredAttribute'](_0x3614b8){const _0x1637a5=this['_isBlockAttribute'](_0x3614b8),_0x129440=this['_inlineAttributeKeys']['has'](_0x3614b8);return _0x1637a5||_0x129440;}['_reduceExistingSuggestions'](_0x61d9dd,_0x420889){if(0x0==_0x420889['length'])return!0x1;let _0x181b24=!0x1;for(const _0x1b0337 of _0x420889){const _0x29a6a3=this['_findSuggestions'](_0x1b0337['range'],'attribute')['filter'](_0x5a7692=>!_0x5a7692['meta']['isNextTo'])['map'](_0x4b2c71=>_0x4b2c71['suggestion']),_0x4dc1af=_0x5e4436({'newValue':_0x1b0337['newValue']});_0x29a6a3['filter'](_0x411da6=>{const [_0x2eea4d,_0x303e19]=_0x411da6['subType']['split']('|');return _0x2eea4d==_0x1b0337['key']&&_0x303e19!=_0x4dc1af;})['forEach'](_0x483739=>{this['_reduceSuggestionAttributeRange'](_0x483739,_0x1b0337['range'],_0x61d9dd),_0x181b24=!0x0;});}return _0x181b24;}['_reduceSuggestionAttributeRange'](_0x3ff5ce,_0x413aa7,_0x1382f8){const _0x486bc7=_0x3ff5ce['getFirstRange']()['getDifference'](_0x413aa7);0x0!==_0x486bc7['length']?0x1!==_0x486bc7['length']?this['_breakSuggestionMarker'](_0x3ff5ce,_0x413aa7['start'],_0x413aa7['end']):this['_setSuggestionRange'](_0x3ff5ce,_0x486bc7[0x0]):_0x1382f8['removeMarker'](_0x3ff5ce['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe87a0d){this['_editor']=_0xe87a0d,this['_model']=_0xe87a0d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58c059,_0x26ded1,_0x5200ef,_0x209612,_0x53f64c,_0xa64b5f){return new o(this['_model'],{'type':_0x58c059,'subType':_0x26ded1,'id':_0x5200ef,'author':_0x209612,'creator':_0x209612,'attributes':_0x53f64c,'onAttributesChange':_0xa64b5f,'onAccept':(..._0x2e3f5e)=>this['getSuggestionCallback'](_0x58c059,_0x26ded1,'accept')(..._0x2e3f5e),'onDiscard':(..._0x2f2726)=>this['getSuggestionCallback'](_0x58c059,_0x26ded1,'discard')(..._0x2f2726)});}['registerCustomCallback'](_0x589e97,_0x4e3695,_0xabc38c,_0x4e1075){const _0x2fa145=_0x589e97+':'+_0x4e3695+':'+_0xabc38c;this['_customCallbacks']['set'](_0x2fa145,_0x4e1075);}['getSuggestionCallback'](_0x26276c,_0x3d1bad,_0xce0154){const _0x2ab705=_0x26276c+':'+_0x3d1bad+':'+_0xce0154;return this['_customCallbacks']['get'](_0x2ab705)||this['_defaultCallbacks']['get'](_0x26276c+':'+_0xce0154);}['_registerDefaultCallbacks'](){const _0x44dc68=()=>!0x1,_0x5959ad=_0xf3d6c3=>{_0xf3d6c3['sort']((_0x2a9eb3,_0x1b7ab2)=>_0x2a9eb3['start']['isBefore'](_0x1b7ab2['start'])?0x1:-0x1),this['_model']['change'](_0x49560a=>{for(const _0x198abc of _0xf3d6c3){let _0x2e0755;_0x2e0755=_0x198abc['end']['isAtEnd']&&_0x198abc['end']['parent']==_0x198abc['start']['nodeAfter']?_0x49560a['createSelection'](_0x198abc['start']['nodeAfter'],'on'):_0x49560a['createSelection'](_0x198abc),this['_model']['deleteContent'](_0x2e0755,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3541f8=(_0x528b2b,_0x5392ea)=>{_0x5392ea&&this['_model']['change'](_0x5545f9=>{const {commandName:_0x1dabaf,commandParams:_0x49e247=[]}=_0x5392ea,_0x310fb9=_0x528b2b['map'](_0x5d7602=>(Ft(_0x5d7602)&&(_0x5d7602=this['_model']['createRange'](_0x5d7602['end'])),_0x5d7602))['filter'](_0x4c8900=>'$graveyard'!==_0x4c8900['root']['rootName']);if(_0x310fb9['length']<0x1)return;const _0x46ecc6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x560555=>_0x1f3765['fromRange'](_0x560555));_0x5545f9['setSelection'](_0x310fb9);for(const _0x3ebedc of this['_editor']['commands']['commands']())_0x3ebedc['refresh']();_0x49e247['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dabaf,..._0x49e247);const _0x234cf9=_0x46ecc6['filter'](_0x481bad=>'$graveyard'!=_0x481bad['root']['rootName']);_0x234cf9['length']>0x0&&_0x5545f9['setSelection'](_0x234cf9);for(const _0x33398f of _0x46ecc6)_0x33398f['detach']();});},_0x20581f=(_0xfe6e12,_0x3cab55)=>0x1==_0xfe6e12['length']&&0x1==_0x3cab55['length']&&_0xfe6e12[0x0]['end']['isEqual'](_0x3cab55[0x0]['start']),_0x27f73f=(_0x3766cf,_0x46fd5d,_0x3cdaf3,_0x4c8607)=>Ht(_0x3766cf,_0x46fd5d,_0x3cdaf3,_0x4c8607)?[_0x3766cf,_0x46fd5d]:Ht(_0x46fd5d,_0x3766cf,_0x4c8607,_0x3cdaf3)?[_0x46fd5d,_0x3766cf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x44dc68),this['_defaultCallbacks']['set']('insertion:discard',_0x5959ad),this['_defaultCallbacks']['set']('insertion:join',_0x20581f),this['_defaultCallbacks']['set']('insertion:chain',_0x27f73f),this['_defaultCallbacks']['set']('deletion:accept',_0x5959ad),this['_defaultCallbacks']['set']('deletion:discard',_0x44dc68),this['_defaultCallbacks']['set']('deletion:join',_0x20581f),this['_defaultCallbacks']['set']('deletion:chain',_0x27f73f),this['_defaultCallbacks']['set']('formatInline:accept',_0x3541f8),this['_defaultCallbacks']['set']('formatInline:discard',_0x44dc68),this['_defaultCallbacks']['set']('formatInline:join',_0x20581f),this['_defaultCallbacks']['set']('formatInline:chain',_0x44dc68),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3541f8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x44dc68),this['_defaultCallbacks']['set']('formatBlock:join',_0x20581f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x44dc68),this['_defaultCallbacks']['set']('attribute:accept',_0x44dc68),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b2b55,_0x3565c3)=>{if(!_0x3565c3)return;const _0x5e5c9d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x53f129=>{if(_0x3565c3['key']==u)for(const _0x3cff37 of _0x1b2b55){const _0x5da755=_0x3cff37['start']['nodeAfter'],_0x576c41=_0x3565c3['oldValue'];_0x53f129['rename'](_0x5da755,_0x576c41);}else{if(_0x5e5c9d['_isBlockAttribute'](_0x3565c3['key'])){for(const _0x677344 of _0x1b2b55)void 0x0!==_0x3565c3['oldValue']?_0x53f129['setAttribute'](_0x3565c3['key'],_0x3565c3['oldValue'],_0x677344['start']['nodeAfter']):_0x53f129['removeAttribute'](_0x3565c3['key'],_0x677344['start']['nodeAfter']);}else{for(const _0x3cb026 of _0x1b2b55)_0x3565c3['oldValue']?_0x53f129['setAttribute'](_0x3565c3['key'],_0x3565c3['oldValue'],_0x3cb026):_0x53f129['removeAttribute'](_0x3565c3['key'],_0x3cb026);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20581f);}}function Vt(_0x1bda0f,_0x8dd034,_0x1f968d){for(const _0x225f0d of _0x8dd034['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x225f0d['root']==_0x225f0d)return!0x1;if(!_0x1f968d['containsItem'](_0x225f0d))return!0x1;if(_0x1bda0f['isObject'](_0x225f0d)||_0x1bda0f['isLimit'](_0x225f0d))return!0x0;}return!0x1;}function Ft(_0x5ee918){return _0x5ee918['end']['parent']==_0x5ee918['start']['nodeAfter']&&_0x5ee918['end']['isAtStart'];}function Pt(_0x31dfae,_0x1a9c46,_0xc57802,_0x4bbbc0){const _0x419e8a=_0x2f00a8=>!_0x2f00a8['item']['is']('$textProxy')&&!_0x4bbbc0['isObject'](_0x2f00a8['item']),_0xf71df8=_0x31dfae['start']['getLastMatchingPosition'](_0x419e8a),_0x448047=_0x31dfae['end']['getLastMatchingPosition'](_0x419e8a,{'direction':'backward'});return(!_0x31dfae['start']['isEqual'](_0xf71df8)||!_0x31dfae['end']['isEqual'](_0x448047))&&(_0xf71df8['isBefore'](_0x448047)?_0xc57802['updateMarker'](_0x1a9c46,{'range':_0xc57802['createRange'](_0xf71df8,_0x448047)}):_0xc57802['removeMarker'](_0x1a9c46),!0x0);}function Gt(_0x4d8e9b){return _0x5e4436(_0x4d8e9b);}function Lt(_0x3a08e6){const _0x43b46f=_0x3a08e6['start']['nodeAfter'];return _0x43b46f&&_0x43b46f['is']('element');}function Jt(_0x1de74a,_0x1ac802){return null==_0x1de74a['end']['nodeBefore']&&_0x1de74a['end']['parent']==_0x1de74a['start']['nodeAfter']?Kt(_0x1de74a['start']['nodeAfter'],_0x1ac802):_0x1de74a;}function Kt(_0x4aba10,_0x53ae76){const _0x35bd1f=_0x53ae76['schema']['isObject'](_0x4aba10)||_0x53ae76['schema']['isSelectable'](_0x4aba10);return _0x53ae76['createRange'](_0x53ae76['createPositionAt'](_0x4aba10,'before'),_0x35bd1f?_0x53ae76['createPositionAfter'](_0x4aba10):_0x53ae76['createPositionAt'](_0x4aba10,'end'));}function Ht(_0x2b1e94,_0x3e12a7,_0x2d4b68,_0x24f899){return!!qt(_0x2b1e94,_0x3e12a7)&&_0x2d4b68['end']['isEqual'](_0x24f899['start']);}function qt(_0x184e3f,_0x3bd646){if(!_0x184e3f['_isDataLoaded']||!_0x3bd646['_isDataLoaded'])return!0x1;const _0x3c31ca=new Set(Object['keys'](_0x184e3f['attributes'])),_0x37183a=new Set(Object['keys'](_0x3bd646['attributes']));if(_0x3c31ca['delete']('groupId'),_0x37183a['delete']('groupId'),0x0==_0x3c31ca['size']&&0x0==_0x37183a['size'])return!0x0;if(_0x3c31ca['size']!=_0x37183a['size'])return!0x1;const _0xf1e161={..._0x184e3f['attributes']},_0x1b73c3={..._0x3bd646['attributes']};return delete _0xf1e161['groupId'],delete _0x1b73c3['groupId'],JSON['stringify'](_0xf1e161)==JSON['stringify'](_0x1b73c3);}function zt(_0x3a148c,_0x599610){const _0x3d78cc=Wt(_0x3a148c['attributes']),_0x17e1b0=Wt(_0x599610);if(!_0x3a148c['_isDataLoaded'])return!0x1;for(const _0x6885f of Object['keys'](_0x17e1b0))if(!_0x2fcc92(_0x3d78cc[_0x6885f],_0x17e1b0[_0x6885f]))return!0x1;return!0x0;}function Wt(_0x27587f){const _0x15a208=Object['assign']({},_0x27587f);return delete _0x15a208['skipNestingCheck'],delete _0x15a208['tablePasteChainId'],_0x15a208;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x167997(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c513b,_0x3ea948,_0x289f93,_0x2b11bd){super(),this['model']=_0x3ea948,this['view']=_0x289f93,this['commentThreadController']=_0x2b11bd,this['_editor']=_0x4c513b,this['_acceptCommand']=_0x4c513b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c513b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b4eb8,_0x48d42e)=>_0x4b4eb8||_0x48d42e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x70c342=>_0x70c342&&this['_editor']['model']['canEditAt'](_0x3ea948['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x59c7c5=>_0x59c7c5&&this['_editor']['model']['canEditAt'](_0x3ea948['getRanges']())),this['_pendingAction']=null,_0x289f93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x289f93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x289f93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x289f93,'change:isDirty',()=>{_0x289f93['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x581e95=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x581e95);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3adef7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f3617,_0x4eba55,_0x466820,_0x440948){super(_0x1f3617),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3cbb68(_0x1f3617,c(_0x1f3617,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4eba55['authoredAt']),this['bind']('authoredAt')['to'](_0x4eba55),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x4eba55,'authoredAt',this,'descriptionParts',(_0x564df2,_0xb382b4,_0x190652)=>{const _0x54b188=_0x190652['map'](_0x405a27=>ls(_0x405a27['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x564df2-0x1,_0x4eba55['author']['name'],_0xb382b4?_0x440948['formatDateTime'](_0xb382b4):'',new DOMParser()['parseFromString'](_0x54b188,'text/html')['body']['textContent']]);}),this['focusables']=new _0xaccf69(),this['focusTracker']=new _0x5478d8(),this['keystrokes']=new _0x6510(),this['focusCycler']=new _0x3f08ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5f192c=>_0x5f192c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4eba55,this['_localUser']=_0x466820,this['_config']=_0x440948,_0x440948['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4fdd80(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x45add1}=this['_config'];this['commentsListView']=new _0x45add1(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',_0x54f509=>_0x54f509+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x170609,_0x57ace0)=>_0x170609||!!_0x57ace0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f423e}=this['_config'],_0x5a8f86=new _0x3f423e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4d85df=_0x5a8f86['commentInputView'];return _0x5a8f86['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4d85df,'value',(_0x2e7bc8,_0x3f782b,_0x1bc564)=>!!_0x1bc564||_0x2e7bc8&&!_0x3f782b),_0x4d85df['on']('submit',(_0x59128d,_0x514e76)=>{this['fire']('addComment',_0x514e76),_0x4d85df['editor']['setData']('');}),_0x4d85df['on']('cancel',()=>this['focus']()),_0x4d85df['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a8f86;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5c4702,_0x50bcc6,_0x467b76,_0x2f615e){super(_0x5c4702,_0x50bcc6,_0x467b76,_0x2f615e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4d464d=>_0x4d464d&&_0x4d464d[0x0]?_0x4d464d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5419df,_0x106d08)=>{let _0x11817e='';for(const _0x1bbefc of _0x5419df)_0x11817e+='<p>'+ls(_0x1bbefc['content'],_0x1bbefc['color'])+'</p>';return _0x106d08?_0x11817e:ti(_0x11817e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2f615e['SuggestionView'](_0x5c4702,_0x50bcc6,{'formatDateTime':_0x2f615e['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x32e2df=this['bindTemplate'],_0x3811e2=[this['suggestionView']];return this['commentsListView']&&_0x3811e2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3811e2['push'](this['commentThreadInputView']),_0x3811e2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x32e2df['if']('isActive','ck-suggestion-wrapper--active'),_0x32e2df['to']('type',_0x1829a4=>'ck-suggestion-'+_0x1829a4),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x32e2df['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3811e2};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3adef7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x13db64,_0x1afe4f,_0x30856c){super(_0x13db64),this['_model']=_0x1afe4f,this['_config']=_0x30856c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1afe4f),this['acceptButton']=this['_createButton'](c(_0x13db64,'Accept\x20suggestion'),_0x1a9227,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x13db64,'Discard\x20suggestion'),_0x28059a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3ddb6c(_0x13db64,_0x1afe4f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xaccf69([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5478d8(),this['keystrokes']=new _0x6510(),this['focusCycler']=new _0x3f08ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x59d180=>_0x59d180['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53ef4c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53ef4c['innerHTML']=this['description'],this['on']('change:description',(_0x294bb5,_0x9ee96d,_0x195087)=>{_0x53ef4c['innerHTML']=_0x195087;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x54913f=this['bindTemplate'],_0x3b0ac0=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x54913f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x54913f['to']('authoredAt',_0x434aa6=>this['_config']['formatDateTime'](_0x434aa6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3b0ac0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3b0ac0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4d4051,_0x3d1717,_0x59eada,_0x452777,_0x4aa7d4){const _0x332dbb=new _0x161237(this['locale']);return _0x332dbb['set']({'label':_0x4d4051,'icon':_0x3d1717,'tooltip':!0x0,'tooltipPosition':_0x4aa7d4}),_0x332dbb['extendTemplate']({'attributes':{'class':_0x59eada}}),_0x332dbb['on']('execute',()=>{this['fire'](_0x452777,this['_model']['id']);}),_0x332dbb;}['_setupKeyboardNavigation'](){const _0x1ffd9d=this['element'];this['keystrokes']['listenTo'](_0x1ffd9d);for(const _0x3242e7 of this['focusables'])this['focusTracker']['add'](_0x3242e7['element']),this['keystrokes']['listenTo'](_0x3242e7['element']);this['keystrokes']['set']('enter',(_0x1ba40c,_0x1752d9)=>{_0x1ffd9d===_0x1ba40c['target']&&(this['focusCycler']['focusFirst'](),_0x1752d9());}),this['keystrokes']['set']('esc',(_0x2afb0a,_0x4d1f3f)=>{_0x1ffd9d!==_0x2afb0a['target']&&(this['focus'](),_0x4d1f3f());});}}class d extends _0x34c566{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39c23b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f81c8){super(_0x1f81c8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x83763e=this['editor']['config'];_0x83763e['define']('trackChanges.SuggestionThreadView',fe),_0x83763e['define']('trackChanges.SuggestionView',we),_0x83763e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x83763e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x200518,_0x5ef417){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x148ec6,_0x9df546]of this['_handleControllerBuffer']){const _0x188e9d=this['_suggestionToController']['has'](_0x148ec6);_0x188e9d||_0x9df546?_0x188e9d&&_0x9df546&&this['_destroyController'](_0x148ec6):this['_initializeController'](_0x148ec6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x200518,_0x5ef417);}['init'](){const _0xce2cc=this['editor'],_0x1c5f39=_0xce2cc['plugins']['get']('TrackChangesEditing'),_0x3b257b=_0xce2cc['plugins']['get']('Annotations'),_0x2d004b=_0xce2cc['plugins']['get']('EditorAnnotations'),_0x3d53ff=_0xce2cc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d004b['addSourceCollector'](()=>{const _0x36db4d=[];for(const [_0xce2edb,_0x3e43e6]of Array['from'](this['_suggestionToController'])){const _0x29b2e7=_0xce2edb['getAllAdjacentSuggestions'](),_0x4de99d=[];for(const _0x1eb1ac of _0x29b2e7){if(!_0x1eb1ac['isInContent'])continue;if(_0x1eb1ac['isMultiRange']){_0x4de99d['push'](..._0x1eb1ac['getRanges']());continue;}const _0x32533=_0x1eb1ac['getFirstRange']();if(_0x4de99d['length']>0x0){const _0x201005=_0x4de99d[0x0]['getJoined'](_0x32533);if(_0x201005){_0x4de99d[0x0]=_0x201005;continue;}}_0x4de99d['push'](_0x32533);}_0x36db4d['push']([_0x3e43e6['view'],_0x4de99d]);}return _0x36db4d;}),this['listenTo'](_0x1c5f39,'suggestionLoaded',(_0x56a4f0,_0x402088)=>{this['listenTo'](_0x402088,'change:previous',(_0x5b4330,_0x28dd86,_0x49a161,_0x554e20)=>{_0x402088['isInContent']&&(null==_0x49a161?(this['_updateController'](_0x554e20['head']),this['_handleSuggestionControllerDelayed'](_0x402088,!0x1)):(this['_updateController'](_0x49a161['head']),null==_0x554e20&&this['_handleSuggestionControllerDelayed'](_0x402088,!0x0)));}),null!==_0x402088['previous']?this['_updateController'](_0x402088['head']):this['_handleSuggestionControllerDelayed'](_0x402088,!0x1);}),this['listenTo'](_0x1c5f39,'suggestionUnloaded',(_0x26e502,_0x179807,_0xa55053)=>{this['stopListening'](_0x179807,'change:previous'),this['_handleControllerBuffer']['delete'](_0x179807),this['_suggestionToController']['has'](_0x179807)&&this['_destroyController'](_0x179807),_0xa55053&&this['_updateController'](_0xa55053['head']);}),this['listenTo'](_0x1c5f39,'suggestionChanged',(_0xa0f55c,_0x5aa83d)=>{this['_updateController'](_0x5aa83d);}),this['listenTo'](_0x3b257b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3d53ff,'addComment',(_0x1d86ab,{threadId:_0x1552ff,isFromAdapter:_0x5d5a00})=>{if(_0x5d5a00||!_0x1c5f39['hasSuggestion'](_0x1552ff))return;const _0x2c8ae3=_0x1c5f39['getSuggestion'](_0x1552ff);this['_suggestionToController']['get'](_0x2c8ae3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1decc5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x487391;for(const _0x362b80 in _0x1decc5){const _0x1f25db=_0x362b80,_0x141973=_0x1decc5[_0x1f25db];if('trackChangesLicenseKeyValid'==_0x141973||'trackChangesLicenseKeyInvalid'==_0x141973||'trackChangesLicenseKeyExpired'==_0x141973||'trackChangesLicenseKeyDomainLimit'==_0x141973||'trackChangesLicenseKeyNotAllowed'==_0x141973||'trackChangesLicenseKeyEvaluationLimit'==_0x141973||'trackChangesLicenseKeyTrialLimit'==_0x141973||'trackChangesLicenseKeyUsageLimit'==_0x141973){delete _0x1decc5[_0x1f25db],_0x487391=_0x141973,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x487391&&_0x1decc5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x487391&&_0x1decc5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x487391&&_0x1decc5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x487391&&_0x1decc5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x487391&&_0x1decc5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x487391&&_0x1decc5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x487391&&_0x1decc5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1a1d9b=this['editor']['plugins']['get']('Annotations'),_0x27f61f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fcdcb=Array['from'](_0x1a1d9b['activeAnnotations'],_0x46aced=>_0x46aced['innerView'])['filter'](_0x38ac57=>this['_viewToController']['has'](_0x38ac57)),_0x3ace40=[];for(const _0x51449e of _0x4fcdcb){const _0x50edd6=this['_viewToController']['get'](_0x51449e)['model']['getAllAdjacentSuggestions']();_0x3ace40['push'](..._0x50edd6['reduce']((_0x2d9a77,_0x4efc3d)=>[..._0x2d9a77,..._0x4efc3d['getMarkerNames']()],[]));}_0x27f61f['activeMarkers']=_0x3ace40;}['_addUIComponentsToFactory'](){const _0x109e00=this['editor'],_0x592e09=_0x109e00['locale'],_0x4b6c0c=c(_0x592e09,'Track\x20changes'),_0x5908c7=new _0x31c05c([{'type':'switchbutton','model':new _0x42d424({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b6c0c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x109e00['plugins']['has']('TrackChangesPreview')&&_0x5908c7['addMany']([{'type':'separator'},{'type':'button','model':new _0x42d424({'withText':!0x0,'label':c(_0x592e09,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b43b0 of _0x5908c7)if(ke(_0x4b43b0)){const _0x40834a=_0x109e00['commands']['get'](_0x4b43b0['model']['commandName']);_0x4b43b0['model']['bind']('isOn','isEnabled')['to'](_0x40834a,'value','isEnabled');}_0x109e00['ui']['componentFactory']['add']('trackChanges',_0x26e2bf=>this['_createToolbarButton'](_0x26e2bf,_0x5908c7,_0x4b6c0c)),_0x109e00['ui']['componentFactory']['add']('menuBar:trackChanges',_0x555ed1=>this['_createMenuBarMenu'](_0x555ed1,_0x5908c7,_0x4b6c0c));}['_createToolbarButton'](_0x248956,_0x5c97ef,_0x54cc79){const _0x10f9be=_0x45b565(_0x248956,_0x33594b),_0x3640df=this['editor']['commands']['get']('trackChanges');_0x10f9be['buttonView']['set']({'tooltip':_0x54cc79,'label':_0x54cc79,'icon':_0x24eff7}),_0x10f9be['buttonView']['bind']('isOn')['to'](_0x3640df,'value'),_0x10f9be['buttonView']['on']('execute',()=>{_0x3640df['execute'](),this['editor']['editing']['view']['focus']();}),_0x460393(_0x10f9be,_0x5c97ef,{'role':'menu'});const _0x44ec7a=[];for(const _0x25ddca of _0x5c97ef)ke(_0x25ddca)&&_0x44ec7a['push'](this['editor']['commands']['get'](_0x25ddca['model']['commandName']));const _0x3cb730=_0x10f9be['buttonView'];return _0x3cb730['actionView']['unbind']('isEnabled'),_0x3cb730['arrowView']['unbind']('isEnabled'),_0x3cb730['actionView']['bind']('isEnabled')['to'](_0x3640df,'isEnabled'),_0x3cb730['arrowView']['bind']('isEnabled')['toMany'](_0x44ec7a,'isEnabled',(..._0x31e6cf)=>_0x31e6cf['some'](_0x8a6967=>_0x8a6967)),_0x10f9be['on']('execute',_0x59b51c=>{this['editor']['execute'](_0x59b51c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10f9be;}['_createMenuBarMenu'](_0x37bc1c,_0x2dc200,_0x20c780){const _0x2aec26=new _0x3179a1(_0x37bc1c),_0x15ce58=this['editor']['commands']['get']('trackChanges');_0x2aec26['buttonView']['set']({'label':_0x20c780,'icon':_0x24eff7});const _0x11b8c1=new _0x3b0906(_0x37bc1c);for(const _0x48a1b0 of _0x2dc200){if('separator'==_0x48a1b0['type']){_0x11b8c1['items']['add'](new _0x749f78(_0x37bc1c));continue;}const _0x284305=new _0x402aaf(_0x37bc1c,_0x2aec26),_0x423bf8=new _0x546d40(_0x37bc1c),_0x49bda5=_0x48a1b0['model'];_0x423bf8['bind'](...Object['keys'](_0x49bda5))['to'](_0x49bda5),_0x423bf8['delegate']('execute')['to'](_0x2aec26),_0x423bf8['on']('execute',()=>{this['editor']['execute'](_0x49bda5['commandName']),this['editor']['editing']['view']['focus']();}),_0x284305['children']['add'](_0x423bf8),_0x11b8c1['items']['add'](_0x284305);}return _0x2aec26['bind']('isEnabled')['to'](_0x15ce58,'isEnabled'),_0x2aec26['panelView']['children']['add'](_0x11b8c1),_0x2aec26;}['_initializeController'](_0x5c5ec0){const _0x272ee8=this['editor'],_0x414a5e=_0x272ee8['config'],_0x499d61=_0x272ee8['plugins']['get']('Annotations'),_0x5344ad=_0x272ee8['plugins']['get']('CommentsRepository'),_0x38d737=_0x272ee8['plugins']['get']('EditorAnnotations'),_0x568d2c=_0x272ee8['plugins']['get'](_0x39c23b)['me'],_0x59a39f=_0x414a5e['get']('trackChanges')['SuggestionThreadView'],_0x300511=_0x414a5e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xef303c,CommentThreadInputView:_0x362952}=_0x272ee8['plugins']['get']('CommentsUI');let _0x314631,_0x480f2a,_0xb95cb8;this['_annotationViews']['has'](_0x5c5ec0['id'])?(_0x480f2a=this['_annotationViews']['get'](_0x5c5ec0['id']),_0x314631=_0x480f2a['mainView']):(_0x314631=new _0x59a39f(_0x272ee8['locale'],_0x5c5ec0,_0x568d2c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x414a5e['get']('comments.editorConfig'),'licenseKey':_0x414a5e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x414a5e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x414a5e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x414a5e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x309745(_0x414a5e['get']('locale')),'CommentView':_0x414a5e['get']('comments')['CommentView'],'CommentsListView':_0xef303c,'CommentThreadInputView':_0x362952,'SuggestionView':_0x300511}),_0x314631['suggestionView']['acceptButton']['on']('execute',()=>{_0x272ee8['editing']['view']['focus']();}),_0x314631['suggestionView']['discardButton']['on']('execute',()=>{_0x272ee8['editing']['view']['focus']();}),_0x480f2a=_0x499d61['createAnnotationView'](this['editor']['locale'],_0x314631),_0x480f2a['bind']('isDirty')['to'](_0x314631,'isDirty'),_0x480f2a['bind']('length')['to'](_0x314631),_0x480f2a['bind']('type')['to'](_0x314631,'type',_0x151ca4=>'suggestion-'+_0x151ca4),_0x314631['on']('escape',()=>{_0xb95cb8['fire']('escape');}),this['_annotationViews']['set'](_0x5c5ec0['id'],_0x480f2a));const _0x50b8d7=_0x5344ad['createCommentThreadController'](_0x5c5ec0['commentThread'],_0x314631),_0x19a044=new pe(_0x272ee8,_0x5c5ec0,_0x314631,_0x50b8d7),_0x202ab9=_0x5c5ec0['getAllAdjacentSuggestions']()['filter'](_0xd78952=>_0xd78952['isInContent']);_0x314631['descriptionParts']=_0x272ee8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x202ab9),this['_suggestionToController']['set'](_0x5c5ec0,_0x19a044),this['_viewToController']['set'](_0x314631,_0x19a044),_0xb95cb8=_0x499d61['createAnnotation']({'view':_0x480f2a,'target':()=>{const _0x46a992=[],_0x46b74a=_0x5c5ec0['getAllAdjacentSuggestions']()['filter'](_0x4bdda4=>_0x4bdda4['isInContent']);for(const _0x5c536a of _0x46b74a)_0x46a992['push'](..._0x5c536a['getMarkers']());return _0x13d673(_0x272ee8['editing'],_0x46a992);},'type':()=>'suggestion-'+_0x19a044['view']['type']}),_0x5344ad['_bindAnnotationToEditors'](_0x314631,_0xb95cb8),_0x499d61['add'](_0xb95cb8),_0x38d737['registerAnnotation'](_0xb95cb8);}['_destroyController'](_0x126e88){const _0x37a8a2=this['editor']['plugins']['get']('CommentsRepository'),_0xf751cf=this['editor']['plugins']['get']('Annotations'),_0x2e6634=this['_suggestionToController']['get'](_0x126e88),_0x5ce487=_0x2e6634['view'],_0x4844f4=_0xf751cf['getByInnerView'](_0x5ce487);_0x37a8a2['_unbindEditors'](_0x5ce487),_0x4844f4&&_0xf751cf['remove'](_0x4844f4),this['_suggestionToController']['delete'](_0x126e88),this['_viewToController']['delete'](_0x5ce487),_0x2e6634['destroy']();}['_updateController'](_0x260007){if(!_0x260007['isInContent']||!this['_suggestionToController']['has'](_0x260007))return;const _0x2f8de5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fcc44=this['_suggestionToController']['get'](_0x260007),_0x16acbd=_0x260007['getAllAdjacentSuggestions']();_0x4fcc44['view']['descriptionParts']=_0x2f8de5['descriptionFactory']['getDescriptions'](_0x16acbd);}['destroy'](){for(const _0x47ad20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x47ad20);for(const _0x1b190b of this['_annotationViews']['values']())_0x1b190b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x170f96){return'model'in _0x170f96;}class k extends _0x34c566{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x41264c){this['editor']['plugins']['get'](p)['adapter']=_0x41264c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1b8a82){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1b8a82);}['getSuggestions']({skipNotAttached:_0x467c73=!0x1,toJSON:_0x5bf5e8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x467c73,'toJSON':_0x5bf5e8});}['getSuggestion'](_0x33fd3e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x33fd3e);}}const w=['Pagination'];class T extends _0x34c566{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x336a3f=this['editor'];if(_0x336a3f['config']['define']('trackChangesData.editorCreator',_0x4997c6=>{const _0x8d6886=_0x336a3f['model']['document']['getRootNames']()['reduce']((_0x2fd70a,_0x26ac75)=>(_0x2fd70a[_0x26ac75]='',_0x2fd70a),{});return _0x336a3f['constructor']['create'](_0x8d6886,_0x4997c6);}),'function'!=typeof _0x336a3f['config']['get']('trackChangesData')['editorCreator'])throw new _0x2b6413('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x51fec1){return N(this['editor'],!0x0,_0x51fec1);}['getDataWithDiscardedSuggestions'](_0x46d9f9){return N(this['editor'],!0x1,_0x46d9f9);}}class D extends _0x34c566{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c905b){function _0x20f1fc(_0x16d483){return _0x16d483['map'](_0x191f36=>String['fromCharCode'](_0x191f36))['join']('');}super(_0x4c905b),this['result']='end',_0x4c905b[_0x20f1fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20f1fc([0x76,0x69,0x65,0x77])][_0x20f1fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20f1fc([0x61,0x75,0x74,0x6f]),_0x4c905b[_0x20f1fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20f1fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20f1fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20f1fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20f1fc([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0xc0777e){return void 0x0!==_0xc0777e['getRootsAttributes'];}async function N(_0x14a453,_0x323c48,_0x5dd1f8){const _0x17931f=_0x519a21(_0x14a453,w);_0x17931f['plugins']['push'](p,D),_0x17931f['rootsAttributes']=Fe(_0x14a453)?_0x14a453['getRootsAttributes']():void 0x0;const _0x45fd7c=document['createDocumentFragment'](),_0x205d4c=_0x14a453['config']['get']('trackChangesData')['editorCreator'],_0x3633e9=await _0x205d4c(_0x17931f,()=>function(_0x1be8f7){const _0x5e5856=document['createElement']('div');return _0x1be8f7['appendChild'](_0x5e5856),_0x5e5856;}(_0x45fd7c));!function(_0x514569,_0x5d1271){const _0x6b3cc5=_0x514569['model']['document']['getRootNames']()['reduce']((_0xae37da,_0x5137bf)=>(_0xae37da[_0x5137bf]=_0x514569['data']['get']({'rootName':_0x5137bf}),_0xae37da),{}),_0x6df8fa=_0x514569['plugins']['get']('Users')['users']['map'](_0x4d5f72=>({'id':_0x4d5f72['id'],'name':_0x4d5f72['name']})),_0x3fede8=_0x514569['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x576ade=_0x514569['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21913a=_0x5d1271['plugins']['get']('Users'),_0x23fe7e=_0x5d1271['plugins']['get']('TrackChangesEditing'),_0x27d4bc=_0x5d1271['plugins']['get']('CommentsRepository');for(const _0x8ddf45 of _0x27d4bc['getCommentThreads']())_0x8ddf45['remove']();for(const _0x300868 of _0x6df8fa)_0x21913a['getUser'](_0x300868['id'])||_0x21913a['addUser'](_0x300868);_0x21913a['me']||_0x21913a['useAnonymousUser']();for(const _0x114db6 of _0x576ade)_0x27d4bc['addCommentThread'](_0x114db6);for(const _0x216d5b of _0x3fede8)_0x23fe7e['addSuggestionData'](_0x216d5b);_0x5d1271['data']['set'](_0x6b3cc5);}(_0x14a453,_0x3633e9),_0x3633e9['execute'](_0x323c48?'acceptAllSuggestions':'discardAllSuggestions');const _0x5461fd=Fe(_0x3633e9)?_0x3633e9['getFullData'](_0x5dd1f8):_0x3633e9['data']['get'](_0x5dd1f8);return await _0x3633e9['destroy'](),_0x5461fd;}class Me extends _0x3adef7{['options'];constructor(_0x584349,_0x1e82de){super(_0x584349),this['options']=_0x1e82de,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x5bfa22,_0x17f5d7){if(!this['element'])return;const _0x482ce5=[];for(const [_0x31b53f,_0x4f8d63]of _0x5bfa22){const _0x5becee=document['createElement']('div');_0x5becee['setAttribute']('data-ck-root-name',_0x31b53f),_0x5becee['className']=_0x4f8d63['classes']+'\x20ck-track-changes-preview__root-container',_0x5becee['innerHTML']=_0x4f8d63['content'],_0x482ce5['push'](_0x5becee);}_0x17f5d7(this['element'],_0x482ce5),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x473ad7{constructor(_0x3e4a6a){super(_0x3e4a6a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd9c88=this['editor'],_0x219b60=_0xd9c88['locale'],_0x44b81a=_0xd9c88['plugins']['get']('Dialog');let _0x5e1db3;const _0x561133=function(_0xc50a21){const _0x481649={};if('editables'in _0xc50a21['ui']['view']){for(const [_0x573d8e,_0x1f2ce6]of Object['entries'](_0xc50a21['ui']['view']['editables']))_0x481649[_0x573d8e]=_0x1f2ce6['element'];}else _0x481649[_0xc50a21['model']['document']['getRootNames']()[0x0]]=_0xc50a21['ui']['view']['editable']['element'];return _0x481649;}(_0xd9c88),_0x53e3e8=function(_0x277e24){let _0xd8aef=0x0;for(const _0x4bc143 of Object['values'](_0x277e24))_0xd8aef=Math['max'](_0xd8aef,_0x4bc143['getBoundingClientRect']()['width']);let _0x4f484c=0x0;for(const _0x9c4451 of Object['values'](_0x277e24))_0x4f484c+=_0x9c4451['getBoundingClientRect']()['height'];const _0x2ecb82=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3690e8=Math['min'](_0x4f484c,_0x2ecb82);return{'width':_0xd8aef,'height':_0x3690e8};}(_0x561133);_0x44b81a['show']({'id':'finalContentPreview','title':c(_0x219b60,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x219b60,{'dialogRects':_0x53e3e8}),'onHide':()=>{_0x5e1db3['detachFromDom']();},'onShow':()=>{_0xd9c88['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x22bcd4=>{const _0x2f635d=this['_standarizeRootsData'](_0x22bcd4,_0xd9c88,_0x561133);_0x44b81a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f635d,_0xd9c88['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e1db3=new _0x178aac(_0x219b60,[_0x44b81a['view']]),_0x5e1db3['attachToDom'](),_0x5e1db3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd9c88['once']('destroy',()=>{_0x5e1db3['detachFromDom']();});const _0x471db8=_0x44b81a['view']['headerView']['class'];_0x44b81a['view']['headerView']['class']=_0x471db8?_0x471db8+'\x20ck-reset_all':'ck-reset_all',_0x44b81a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x44b81a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x36961c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5bdd04=_0x36961c['previewMode'],_0x511356={};if('$labels'===_0x5bdd04){for(const _0x1ee38c of _0x36961c['getMergeFieldsIds']())_0x511356[_0x1ee38c]=_0x36961c['getLabel'](_0x1ee38c)||_0x1ee38c;}else{const _0x372107='$defaultValues'===_0x5bdd04?_0x36961c['getDefaultValues']():_0x36961c['getDataSetValues'](_0x5bdd04,!0x0);for(const _0x4e862 of Object['entries'](_0x372107)){const [_0xc0ddf2,_0x1893a0]=_0x4e862;_0x511356[_0xc0ddf2]=null!==_0x1893a0?_0x1893a0:_0x36961c['getLabel'](_0xc0ddf2)||_0xc0ddf2;}}return{'mergeFieldsData':_0x511356};}['_standarizeRootsData'](_0x41ce1a,_0x167e56,_0x331288){let _0x51a0d1;if('string'==typeof _0x41ce1a){const _0x45d252=_0x167e56['model']['document']['getRootNames']()[0x0];_0x51a0d1={[_0x45d252]:_0x41ce1a};}else _0x51a0d1=_0x41ce1a;const _0x4ca80e=this['_fixMediaEmbeds'](_0x51a0d1,_0x167e56),_0x13a755=function(_0x5846c7,_0x26168e){for(const [_0x5c9ccb,_0x386930]of _0x5846c7)_0x386930['classes']=_0x26168e[_0x5c9ccb]['classList']['value']['replace']('ck-focused','');return _0x5846c7;}(this['_sortRoots'](_0x167e56)['reduce']((_0x580dd4,_0x3e2823)=>(_0x580dd4['push']([_0x3e2823,{'content':_0x4ca80e[_0x3e2823],'classes':''}]),_0x580dd4),[]),_0x331288);return _0x13a755;}['_fixMediaEmbeds'](_0x4dafc7,_0x1b53e9){if(!_0x1b53e9['plugins']['has']('MediaEmbedEditing'))return _0x4dafc7;const _0x367eae=_0x1b53e9['plugins']['get']('MediaEmbedEditing');for(const [_0x1c39f2,_0x2198e9]of Object['entries'](_0x4dafc7)){const _0x4509bb=document['createElement']('div');_0x4509bb['innerHTML']=_0x2198e9,(_0x4509bb['querySelectorAll']('figure.media')['forEach'](_0x185015=>{const _0x3042ea=_0x185015['querySelector']('oembed');if(_0x3042ea){const _0x33bb38=_0x3042ea['getAttribute']('url');if(_0x33bb38){const _0x1f22e7=_0x367eae['registry']['getMediaViewElement'](new _0x30a57d(_0x1b53e9['editing']['view']['document']),_0x33bb38,{'elementName':'','renderForEditingView':!0x0}),_0x21dee6=document['createElement']('div');_0x21dee6['classList']['add']('ck-media__wrapper'),_0x1f22e7['render'](_0x21dee6,_0x1b53e9['editing']['view']['domConverter']),_0x3042ea['replaceWith'](_0x21dee6);}}}),_0x4dafc7[_0x1c39f2]=_0x4509bb['innerHTML']);}return _0x4dafc7;}['_sortRoots'](_0xbcd36a){if(!function(_0x484380){return void 0x0!==_0x484380['getRootsAttributes'];}(_0xbcd36a))return _0xbcd36a['model']['document']['getRootNames']();const _0x553d46=[],_0xb552a1=new Map();for(const _0x4e55d8 of _0xbcd36a['model']['document']['getRootNames']()){const _0x599614=_0xbcd36a['editing']['view']['getDomRoot'](_0x4e55d8)['getClientRects']()['item'](0x0);_0x553d46['push'](_0x4e55d8),_0xb552a1['set'](_0x4e55d8,_0x599614);}return _0x553d46['sort']((_0x3cc660,_0x4c642a)=>{const _0x3e6c54=_0xb552a1['get'](_0x3cc660),_0x239b15=_0xb552a1['get'](_0x4c642a);return _0x3e6c54['y']-_0x239b15['y']||_0x3e6c54['x']-_0x239b15['x'];}),_0x553d46;}}class te extends _0x34c566{static get['requires'](){return[T,_0x156ea0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb859a){super(_0xeb859a),_0xeb859a['commands']['add']('previewFinalContent',new re(this['editor'])),_0xeb859a['config']['define']('trackChanges.preview.renderFunction',(_0x5d1047,_0x380025)=>{for(const _0x1c0582 of _0x380025)_0x5d1047['appendChild'](_0x1c0582);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};