@ckeditor/ckeditor5-track-changes 45.2.1-alpha.1 → 45.2.1-alpha.2

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 _0xe01dff,Plugin as _0x113b76,PendingActions as _0xcf24a4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x22e281,ObservableMixin as _0x5cc920,uid as _0x4ee927,priorities as _0x170d1b,insertToPriorityArray as _0x5849f3,toArray as _0x5a678e,logWarning as _0x133153,getEnvKeystrokeText as _0x5b49cc,FocusTracker as _0x472103,KeystrokeHandler as _0x19725c,Collection as _0x2e9906}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x457e96,IconCancel as _0x4fe476,IconTrackChanges as _0x33025e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x350e50,View as _0x291469,ViewCollection as _0x20d6ce,FocusCycler as _0x5ebc77,ViewModel as _0x8d2af7,createDropdown as _0x1f5cb9,SplitButtonView as _0x356b08,addListToDropdown as _0x57e017,MenuBarMenuView as _0x25e41e,MenuBarMenuListView as _0x52580f,ListSeparatorView as _0x165f95,MenuBarMenuListItemView as _0x44bbd8,MenuBarMenuListItemButtonView as _0x4b51c4,BodyCollection as _0x310ede,Dialog as _0x567d55}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3ac7df,hashObject as _0x1ccdda,surroundingMarkersDetector as _0x59208b,FOCUS_ANNOTATION_KEYSTROKE as _0x5b1368,AriaDescriptionView as _0x157aee,setupThreadKeyboardNavigation as _0x45c66c,trimHtml as ti,UserView as _0x4f7cc0,LateFocusButtonView as _0x354998,getDateTimeFormatter as _0x2a4733,getAllMarkersDomElementsSorted as _0x203c17,sanitizeEditorConfig as _0x303604}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5cc9c0,LiveRange as _0x31030b,LivePosition as _0x1676a1,DowncastWriter as _0x2d58b3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4d59b4,toWidget as _0x5e35c0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x43b9ef,set as _0x49d498,isEqual as _0x341aca,unset as _0x2341e5,omit as Ft}from'es-toolkit/compat';import{Delete as _0xa664a3,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4255b1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2206d0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xe01dff{['_enabledCommands'];constructor(_0x5cc066,_0x46bfc9){super(_0x5cc066),this['_enabledCommands']=_0x46bfc9,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 _0x194501 of this['editor']['commands']['commands']())_0x194501['affectsData']&&!this['_enabledCommands']['has'](_0x194501)&&_0x194501['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x465196 of this['editor']['commands']['commands']())_0x465196['affectsData']&&!this['_enabledCommands']['has'](_0x465196)&&_0x465196['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xe01dff{['_suggestions'];constructor(_0x57ed9b,_0x411d30){super(_0x57ed9b),this['_suggestions']=_0x411d30,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5a5e0a){const _0x2f089e=this['_suggestions']['get'](_0x5a5e0a);if(!_0x2f089e)throw new _0x22e281('track-changes-accept-suggestion-not-found',this);const _0x2d8e67=_0x2f089e['getRanges']();this['editor']['model']['canEditAt'](_0x2d8e67)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2f089e);}}class O extends _0xe01dff{['_suggestions'];constructor(_0x5abdb4,_0x3240f0){super(_0x5abdb4),this['_suggestions']=_0x3240f0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdcaf34){const _0x26cf56=this['_suggestions']['get'](_0xdcaf34);if(!_0x26cf56)throw new _0x22e281('track-changes-discard-suggestion-not-found',this);const _0x9dd780=_0x26cf56['getRanges']();this['editor']['model']['canEditAt'](_0x9dd780)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x26cf56);}}function ls(_0x3d73dc,_0x2c48f6){let _0x318797='';return _0x318797+=_0x3d73dc['split']('*')['map']((_0x298d8c,_0x14da0b)=>_0x14da0b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x298d8c)+'</span>':nn(_0x298d8c))['join'](''),_0x2c48f6&&(_0x318797+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2c48f6['value']+'\x22\x20title=\x22'+_0x2c48f6['title']+'\x22></span>'),_0x318797;}function nn(_0x1fa357){const _0xf1aa64=document['createElement']('span');return _0xf1aa64['innerText']=_0x1fa357,_0xf1aa64['innerHTML'];}function ts(_0xd0dd36){return _0xd0dd36['sort']((_0x2ebac9,_0x3f7630)=>'deletion'==_0x2ebac9['type']&&'deletion'!=_0x3f7630['type']?-0x1:'deletion'!=_0x2ebac9['type']&&'deletion'==_0x3f7630['type']?0x1:0x0);}function to(_0x732b91,_0x990418){let _0x1af94c,_0x5bbc98=0x0;const _0x211d40=[],_0x962fb5=_0x990418['schema'];for(;_0x5bbc98<_0x732b91['length'];){const _0x479a6a=_0x732b91[_0x5bbc98],_0x17eefb=_0x732b91[_0x5bbc98+0x1];_0x1af94c||(_0x1af94c=_0x990418['createPositionBefore'](_0x479a6a)),on(_0x990418,_0x479a6a,_0x17eefb)||(_0x211d40['push'](_0x990418['createRange'](_0x1af94c,_0x962fb5['isObject'](_0x479a6a)?_0x990418['createPositionAfter'](_0x479a6a):_0x990418['createPositionAt'](_0x479a6a,'end'))),_0x1af94c=null),_0x5bbc98++;}return _0x211d40;}function on(_0x49d55f,_0x2755bf,_0x419a3a){if(!_0x419a3a)return!0x1;const _0x4e79e9=_0x49d55f['createPositionAfter'](_0x2755bf),_0x1f3640=_0x49d55f['createPositionBefore'](_0x419a3a);return _0x4e79e9['isTouching'](_0x1f3640);}function rs(_0x2c421f,_0x214a77,_0x1c0143){for(;_0x1c0143['length'];){const _0xc70207=_0x1c0143['splice'](0x0,0x64);_0x2c421f['change'](()=>{for(const _0x51a0b6 of _0xc70207)_0x51a0b6['isInContent']&&_0x214a77['execute'](_0x51a0b6['id']);});}}class R extends _0xe01dff{['_command'];['_suggestions'];constructor(_0x3c1aa7,_0x1d1446,_0x3a320f){super(_0x3c1aa7),this['_command']=_0x1d1446,this['_suggestions']=_0x3a320f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x419591=Array['from'](this['_suggestions']['values']())['some'](_0x5803dc=>_0x5803dc['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x419591;}['execute'](){const _0x148a94=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3aee56 of _0x148a94){const _0x41824f=_0x3aee56['getRanges']();if(!this['editor']['model']['canEditAt'](_0x41824f))return;}rs(this['editor']['model'],this['_command'],_0x148a94);}}class E extends _0xe01dff{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x22b698,_0xea627,_0x7d3b2f){super(_0x22b698),this['_command']=_0xea627,this['_suggestions']=_0x7d3b2f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2978bf=this['editor']['model']['document']['selection'],_0x181b42=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1658fc,_0x10079f){const _0x5183af=Array['from'](_0x1658fc['getRanges']()),_0x9951e2=new Set();for(const _0x739329 of _0x10079f)if(_0x739329['isInContent']){for(const _0x547afe of _0x5183af)for(const _0x9baa26 of _0x739329['getRanges']())(_0x547afe['isIntersecting'](_0x9baa26)||_0x1658fc['isCollapsed']&&!_0x739329['isMultiRange']&&_0x739329['next']&&_0x9baa26['end']['isTouching'](_0x547afe['start']))&&_0x9951e2['add'](_0x739329);}return _0x9951e2;}(_0x2978bf,_0x181b42),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x91082b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3c03a9 of _0x91082b){const _0x3a94bc=_0x3c03a9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a94bc))return;}rs(this['editor']['model'],this['_command'],_0x91082b);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x5cc920(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xeb20f5,_0xf66065){super(),this['id']=_0xf66065['id'],this['type']=_0xf66065['type'],this['subType']=_0xf66065['subType']||null,this['author']=_0xf66065['author'],this['creator']=_0xf66065['creator']||_0xf66065['author'],this['isExternal']=Boolean(_0xf66065['attributes']&&_0xf66065['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xf66065['originalSuggestionId']||null,this['_model']=_0xeb20f5,this['_onAccept']=_0xf66065['onAccept'],this['_onDiscard']=_0xf66065['onDiscard'],this['_onAttributesChange']=_0xf66065['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xf66065['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 _0x376381=this;for(;_0x376381['previous'];)_0x376381=_0x376381['previous'];return _0x376381;}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'](_0x133f19){this['_markerNames']['add'](_0x133f19);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b763b=>this['_model']['markers']['get'](_0x2b763b))['filter'](_0x36fd60=>_0x36fd60);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3f2b98=>{for(const _0x50367f of this['getMarkers']())_0x3f2b98['removeMarker'](_0x50367f);}),this['_markerNames']['clear']();}['removeMarker'](_0x292d13){this['_model']['change'](_0x12f016=>{_0x12f016['removeMarker'](_0x292d13);}),this['_markerNames']['delete'](_0x292d13);}['addRange'](_0xdda86b){const _0x299a9a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x299a9a),this['_model']['change'](_0x3de674=>{_0x3de674['addMarker'](_0x299a9a,{'range':_0xdda86b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x304164){for(const _0x6afd75 of this['getRanges']())if(_0x6afd75['isIntersecting'](_0x304164))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2f1482=>_0x2f1482['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5cbfd5,_0x1b899a)=>[..._0x5cbfd5,..._0x1b899a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x50766f=this['getRanges']();if(0x1!=_0x50766f['length'])return null;const _0x3b88b9=_0x50766f[0x0],_0x5205b6=_0x3b88b9['start']['nodeAfter'],_0x452b63=_0x3b88b9['end']['nodeBefore'];return _0x5205b6 instanceof _0x5cc9c0?_0x5205b6!=_0x452b63?null:_0x5205b6: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 _0x275a27=[];let _0x261c1e=this['head'];for(;_0x261c1e;)_0x275a27['push'](_0x261c1e),_0x261c1e=_0x261c1e['next'];return _0x275a27;}['setAttribute'](_0x28e558,_0x2c36ce){const _0x4162ab=_0x43b9ef(this['attributes']);_0x49d498(_0x4162ab,_0x28e558,_0x2c36ce),_0x341aca(_0x4162ab,this['attributes'])||(this['attributes']=_0x4162ab,this['_onAttributesChange'](_0x4162ab));}['removeAttribute'](_0x2a80b4){const _0x5f2983=_0x43b9ef(this['attributes']);_0x2341e5(_0x5f2983,_0x2a80b4),_0x341aca(_0x5f2983,this['attributes'])||(this['attributes']=_0x5f2983,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 _0x4ee927()['substr'](0x1,0x5);}}function c(_0x1c0d7c,_0x799d7e,_0x425e60){const _0x4ce1d1=_0x1c0d7c['t'],t=_0x1c0d7c['t'];switch(_0x799d7e){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',_0x425e60);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x425e60);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x425e60);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x425e60);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x425e60);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',_0x425e60);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x425e60);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',_0x425e60);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x425e60);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x425e60);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x425e60);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x425e60);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x425e60);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x425e60);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x425e60);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x425e60);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x425e60);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x425e60);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x425e60);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x425e60);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x425e60);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x425e60);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x425e60);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x425e60);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x425e60);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'},_0x425e60);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x425e60);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x425e60);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x425e60);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x425e60);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x425e60);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x425e60);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x425e60);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'},_0x425e60);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x425e60);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x425e60);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x425e60);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x425e60);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'},_0x425e60);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x425e60);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'},_0x425e60);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'},_0x425e60);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x425e60);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'},_0x425e60);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x425e60);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'},_0x425e60);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x425e60);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x425e60);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'},_0x425e60);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x425e60);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 _0x4ce1d1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x425e60);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ce1d1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x425e60);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x425e60);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'},_0x425e60);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'},_0x425e60);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'},_0x425e60);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x799d7e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11342a,_0x4e8063){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11342a,this['_locale']=_0x4e8063;}['getDescriptions'](_0x3d8c9e){const _0x5ae4a3=[],_0x2e4caf=new Set(),_0x385efb=new Set();for(let _0x5ec521=0x0;_0x5ec521<_0x3d8c9e['length'];_0x5ec521++){const _0x4230c7=_0x3d8c9e[_0x5ec521];if(!_0x4230c7['isInContent'])continue;const _0x4d4f80=this['_handleCustomCallbackDescription'](_0x4230c7);if(_0x4d4f80){if(null!=_0x4230c7['subType']){if(_0x2e4caf['has'](_0x4230c7['subType']))continue;_0x2e4caf['add'](_0x4230c7['subType']);}_0x5ae4a3['push'](_0x4d4f80);}else{if('attribute'!=_0x4230c7['type'])'insertion'!=_0x4230c7['type']&&'deletion'!=_0x4230c7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ae4a3,_0x4230c7,_0x3d8c9e[_0x5ec521+0x1]);else{const _0x380a24=_0x4230c7['data']['key'];if(_0x385efb['has'](_0x380a24))continue;_0x385efb['add'](_0x4230c7['data']['key']),_0x380a24==u?this['_handleRenameSuggestionDescription'](_0x5ae4a3,_0x4230c7):this['_handleAttributeSuggestionDescription'](_0x5ae4a3,_0x4230c7);}}}return this['_resolveDescriptionItems'](_0x5ae4a3);}['registerDescriptionCallback'](_0x5bceea){this['_customCallbacks']['push'](_0x5bceea);}['registerElementLabel'](_0x31e479,_0x39dd0d,_0x47aae5=_0x170d1b['normal']){'function'==typeof _0x31e479?_0x5849f3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31e479,'label':_0x39dd0d,'priority':_0x47aae5}):this['_itemLabels']['set'](_0x31e479,_0x39dd0d);}['registerAttributeLabel'](_0x1addd7,_0x31a4ab){this['_attributeLabels']['set'](_0x1addd7,_0x31a4ab);}['getItemLabel'](_0x273f0a,_0x327478=0x1){let _0x13e559;for(const _0x15b10e of this['_itemLabelsCallbacks'])if(_0x15b10e['matchingCallback'](_0x273f0a)){_0x13e559=_0x15b10e['label'];break;}return _0x13e559||(_0x13e559=this['_itemLabels']['get'](_0x273f0a['name'])),_0x13e559?_0x13e559(_0x327478):0x1!==_0x327478?_0x327478+'\x20'+_0x273f0a['name']+'s':''+_0x273f0a['name'];}['_addDescriptionItems'](_0x57a001,_0xf46431){const _0x2b2193=_0xf46431['getFirstRange']()['getWalker'](),_0x272052='insertion'==_0xf46431['type']?'add':'remove';for(const _0x4418ed of _0x2b2193){const _0xdc1726=_0x4418ed['item'],_0x42d0be=_0x57a001[_0x57a001['length']-0x1];if(_0xdc1726['is']('$textProxy'))_0x42d0be&&_0x42d0be['type']['indexOf']('Container')>-0x1&&_0x57a001['pop'](),_0x42d0be&&'text'==_0x42d0be['type']?_0x42d0be[_0x272052]+=_0xdc1726['data']:_0x57a001['push']({'type':'text','add':'add'==_0x272052?_0xdc1726['data']:'','remove':'remove'==_0x272052?_0xdc1726['data']:''});else{if(this['_schema']['isObject'](_0xdc1726)){const _0x6f0fe=_0xdc1726;if(_0x42d0be&&_0x42d0be['type']['indexOf']('Container')>-0x1&&_0x57a001['pop'](),'elementEnd'==_0x4418ed['type'])continue;_0x42d0be&&_0x42d0be['type']==_0x272052+'Object'&&_0x42d0be['element']['name']==_0x6f0fe['name']?_0x42d0be['quantity']++:_0x57a001['push']({'type':_0x272052+'Object','element':_0x6f0fe,'quantity':0x1}),_0x2b2193['skip'](_0x3ae6b5=>!('elementEnd'==_0x3ae6b5['type']&&_0x3ae6b5['item']==_0xdc1726));}else{if(this['_schema']['checkChild'](_0xdc1726,'$text')||_0xdc1726['is']('element','softBreak')){const _0x5d9009=_0xdc1726;if('add'==_0x272052&&'elementStart'==_0x4418ed['type']||'remove'==_0x272052&&'elementEnd'==_0x4418ed['type'])continue;if(_0x42d0be&&-0x1==_0x42d0be['type']['indexOf']('Container')){'text'==_0x42d0be['type']&&(_0x42d0be[_0x272052]+='\x0a');continue;}let _0x559533;if(_0x559533='add'==_0x272052?_0x5d9009['nextSibling']&&!this['_schema']['isObject'](_0x5d9009['nextSibling'])?_0x5d9009['nextSibling']:null:_0x5d9009['previousSibling']&&!this['_schema']['isObject'](_0x5d9009['previousSibling'])?_0x5d9009['previousSibling']:null,_0x5d9009['isEmpty']||_0x559533&&_0x559533['isEmpty']){const _0x1e6c50=_0x559533&&_0x559533['isEmpty']?_0x559533:_0x5d9009;_0x42d0be&&_0x42d0be['type']==_0x272052+'EmptyContainer'&&_0x42d0be['element']['name']==_0x1e6c50['name']?_0x42d0be['quantity']++:_0x57a001['push']({'type':_0x272052+'EmptyContainer','element':_0x1e6c50,'quantity':0x1});}else _0x57a001['push']({'type':_0x272052+'Container','element':_0x5d9009});}}}}}['_resolveDescriptionItems'](_0x99bfcc){const _0x1d14ba=this['_locale'],_0x34d2c4=[],_0x4f89d4=[],_0x384a41=[];for(const _0xffd86e of _0x99bfcc)switch(_0xffd86e['type']){case'text':if(_0xffd86e['add']=_0xffd86e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xffd86e['remove']=_0xffd86e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xffd86e['add']&&''!=_0xffd86e['remove']){_0x34d2c4['push']({'type':'replace','content':c(_0x1d14ba,'REPLACE_TEXT',['\x22'+_0xffd86e['remove']+'\x22','\x22'+_0xffd86e['add']+'\x22'])});continue;}if(null!=_0xffd86e['add']['match'](/^ +$/)){_0x34d2c4['push']({'type':'insertion','content':c(_0x1d14ba,'*Insert:*\x20%0',c(_0x1d14ba,'ELEMENT_SPACE',_0xffd86e['add']['length']))});continue;}if(null!=_0xffd86e['remove']['match'](/^ +$/)){_0x34d2c4['push']({'type':'deletion','content':c(_0x1d14ba,'*Remove:*\x20%0',c(_0x1d14ba,'ELEMENT_SPACE',_0xffd86e['remove']['length']))});continue;}if(''!=_0xffd86e['add']){_0x34d2c4['push']({'type':'insertion','content':c(_0x1d14ba,'*Insert:*\x20%0','\x22'+_0xffd86e['add']+'\x22')});continue;}_0x34d2c4['push']({'type':'deletion','content':c(_0x1d14ba,'*Remove:*\x20%0','\x22'+_0xffd86e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x34d2c4['push']({'type':'insertion','content':c(_0x1d14ba,'*Insert:*\x20%0',this['getItemLabel'](_0xffd86e['element'],_0xffd86e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x34d2c4['push']({'type':'deletion','content':c(_0x1d14ba,'*Remove:*\x20%0',this['getItemLabel'](_0xffd86e['element'],_0xffd86e['quantity']))});continue;case'addContainer':_0x34d2c4['push']({'type':'insertion','content':c(_0x1d14ba,'*Split:*\x20%0',this['getItemLabel'](_0xffd86e['element'],_0xffd86e['quantity']))});continue;case'removeContainer':_0x34d2c4['push']({'type':'deletion','content':c(_0x1d14ba,'*Merge:*\x20%0',this['getItemLabel'](_0xffd86e['element'],_0xffd86e['quantity']))});continue;case'addFormat':_0x4f89d4['push'](_0xffd86e['key']);continue;case'removeFormat':_0x384a41['push'](_0xffd86e['key']);continue;default:_0x34d2c4['push'](_0xffd86e);}if(_0x4f89d4['length']){const _0x930a14=_0x4f89d4['map'](_0x5a5184=>this['_attributeLabels']['has'](_0x5a5184)?this['_attributeLabels']['get'](_0x5a5184):_0x5a5184)['join'](',\x20');_0x34d2c4['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x930a14)});}if(_0x384a41['length']){const _0x38b0f8=_0x384a41['map'](_0x5b156a=>this['_attributeLabels']['has'](_0x5b156a)?this['_attributeLabels']['get'](_0x5b156a):_0x5b156a)['join'](',\x20');_0x34d2c4['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x38b0f8)});}return _0x34d2c4;}['_handleCustomCallbackDescription'](_0xd9fd55){for(const _0x1f4819 of this['_customCallbacks']){const _0x54f834=_0x1f4819(_0xd9fd55);if(_0x54f834&&'type'in _0x54f834)return _0x54f834;}}['_handleAttributeSuggestionDescription'](_0x18069d,_0xc79120){const _0x492195=_0xc79120['data'],_0xe6c572=void 0x0===_0x492195['newValue']?'removeFormat':'addFormat';_0x18069d['push']({'type':_0xe6c572,'key':_0x492195['key']});}['_handleRenameSuggestionDescription'](_0x5c1245,_0x593b13){_0x5c1245['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x593b13['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f957c,_0x42d1f0,_0x131f17){if(this['_addDescriptionItems'](_0x4f957c,_0x42d1f0),_0x131f17&&_0x131f17['getFirstRange']()&&!_0x42d1f0['getFirstRange']()['end']['isEqual'](_0x131f17['getFirstRange']()['start'])){const _0x2f1a69=_0x4f957c[_0x4f957c['length']-0x1],_0x1b9d47='insertion'==_0x42d1f0['type']?'add':'remove';_0x2f1a69&&'text'==_0x2f1a69['type']&&(_0x2f1a69[_0x1b9d47]+='\x0a');}}}class U extends _0x113b76{['afterInit'](){const _0x2363f1=this['editor'],_0x18a73b=_0x2363f1['plugins']['get']('TrackChangesEditing');_0x2363f1['commands']['get']('showAIAssistant')&&_0x18a73b['enableCommand']('showAIAssistant');}}class V extends _0x113b76{['afterInit'](){const _0x49d9d3=this['editor'],_0x2e676e=_0x49d9d3['locale'];if(!_0x49d9d3['plugins']['has']('AlignmentEditing'))return;const _0x18fd89=_0x49d9d3['plugins']['get']('TrackChangesEditing');_0x18fd89['enableDefaultAttributesIntegration']('alignment'),_0x18fd89['registerBlockAttribute']('alignment'),_0x18fd89['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2e676e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a8a72=this['editor'],_0x1e32e1=_0x3a8a72['locale'];_0x3a8a72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1edb4a=>{if('formatBlock'!=_0x1edb4a['type'])return;const {data:_0x713518}=_0x1edb4a;if(_0x713518&&'alignment'==_0x713518['commandName']){const _0x3cf94a=_0x713518['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1e32e1,'*Format:*\x20%0',function(_0xe300f6){switch(_0xe300f6){case'left':return c(_0x1e32e1,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1e32e1,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1e32e1,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1e32e1,'FORMAT_JUSTIFY_TEXT');}}(_0x3cf94a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x113b76{['afterInit'](){const _0x53fb11=this['editor'],_0x130fd4=_0x53fb11['plugins']['get']('TrackChangesEditing'),_0x4dc3ef=_0x53fb11['locale'];for(const _0x7bccb6 of Zt){if(!_0x53fb11['plugins']['has'](_0x7bccb6))continue;const _0x305c39=_0x7bccb6['slice'](0x0,-0x7)['toLowerCase'](),_0x54a742='FORMAT_'+_0x305c39['toUpperCase']();_0x130fd4['enableDefaultAttributesIntegration'](_0x305c39),_0x130fd4['registerInlineAttribute'](_0x305c39),_0x130fd4['descriptionFactory']['registerAttributeLabel'](_0x305c39,c(_0x4dc3ef,_0x54a742));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe0b1b5=this['editor'],_0x303579=_0xe0b1b5['locale'],_0x997c6e=_0xe0b1b5['plugins']['get']('TrackChangesEditing');function _0x3006e6(_0x394222,_0x23830e){_0x997c6e['descriptionFactory']['registerDescriptionCallback'](_0x2a613f=>{if('formatInline'!=_0x2a613f['type'])return;const {data:_0x56224c}=_0x2a613f;return _0x56224c&&_0x56224c['commandName']===_0x394222?_0x56224c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x303579,'*Format:*\x20%0',_0x23830e)}:{'type':'format','content':c(_0x303579,'*Remove\x20format:*\x20%0',_0x23830e)}:void 0x0;});}_0x3006e6('bold',c(_0x303579,'FORMAT_BOLD')),_0x3006e6('italic',c(_0x303579,'FORMAT_ITALIC')),_0x3006e6('underline',c(_0x303579,'FORMAT_UNDERLINE')),_0x3006e6('code',c(_0x303579,'FORMAT_CODE')),_0x3006e6('strikethrough',c(_0x303579,'FORMAT_STRIKETHROUGH')),_0x3006e6('subscript',c(_0x303579,'FORMAT_SUBSCRIPT')),_0x3006e6('superscript',c(_0x303579,'FORMAT_SUPERSCRIPT'));}}class G extends _0x113b76{['afterInit'](){const _0x5c0ba4=this['editor'],_0x234976=_0x5c0ba4['locale'];if(!_0x5c0ba4['plugins']['has']('BlockQuoteEditing'))return;const _0x3396ef=_0x5c0ba4['plugins']['get']('TrackChangesEditing'),_0xa8d589=this['editor']['commands']['get']('blockQuote');_0x3396ef['enableCommand']('blockQuote',(_0x3bb744,_0x3decc7={})=>{const _0x4510bf=this['editor']['model']['document']['selection'],_0x523050=_0x3decc7&&void 0x0!==_0x3decc7['forceValue']?_0x3decc7['forceValue']:!_0xa8d589['value'];let _0x59e23b=[];if(_0x523050){const _0x305b91=Array['from'](_0x4510bf['getSelectedBlocks']())['filter'](_0x5b323b=>oo(_0x5b323b)||function(_0xe048ec,_0x1e147b){const _0x45708e=_0x1e147b['checkChild'](_0xe048ec['parent'],'blockQuote'),_0x2fd5aa=_0x1e147b['checkChild'](['$root','blockQuote'],_0xe048ec);return _0x45708e&&_0x2fd5aa;}(_0x5b323b,this['editor']['model']['schema']));_0x59e23b=to(_0x305b91,_0x5c0ba4['model']);}else{const _0xd2784a=Array['from'](_0x4510bf['getSelectedBlocks']())['filter'](_0x462ad7=>oo(_0x462ad7));_0x59e23b=to(_0xd2784a,_0x5c0ba4['model']);}_0x5c0ba4['model']['change'](()=>{for(const _0x830823 of _0x59e23b)_0x3396ef['markBlockFormat'](_0x830823,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x523050}]});});}),_0x3396ef['descriptionFactory']['registerDescriptionCallback'](_0x208b94=>{const {data:_0xdde36b}=_0x208b94;if(_0xdde36b&&'blockQuote'==_0xdde36b['commandName']){const _0x2bd603=c(_0x234976,'ELEMENT_BLOCK_QUOTE');return _0xdde36b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x234976,'*Set\x20format:*\x20%0',_0x2bd603)}:{'type':'format','content':c(_0x234976,'*Remove\x20format:*\x20%0',_0x2bd603)};}});}}function oo(_0x12af17){return'blockQuote'==_0x12af17['parent']['name'];}class L extends _0x113b76{['afterInit'](){const _0x36ce9f=this['editor'],_0x508f60=_0x36ce9f['locale'],_0x47ff8f=_0x36ce9f['plugins']['get']('TrackChangesEditing');_0x36ce9f['plugins']['has']('BookmarkEditing')&&(_0x47ff8f['enableCommand']('insertBookmark'),_0x47ff8f['enableDefaultAttributesIntegration']('updateBookmark'),_0x47ff8f['registerBlockAttribute']('bookmarkId'),_0x47ff8f['descriptionFactory']['registerDescriptionCallback'](_0x13ffe1=>{if('insertion'!=_0x13ffe1['type']&&'deletion'!=_0x13ffe1['type']&&'attribute'!=_0x13ffe1['type'])return;const _0x24ac1c=_0x13ffe1['getContainedElement']();if(null==_0x24ac1c)return;if(!_0x24ac1c['is']('element','bookmark'))return;const _0x159cb6=_0x24ac1c['getAttribute']('bookmarkId');if('insertion'==_0x13ffe1['type'])return{'type':'insertion','content':c(_0x508f60,'*Insert:*\x20%0','\x22'+_0x159cb6+'\x22\x20'+c(_0x508f60,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13ffe1['type'])return{'type':'deletion','content':c(_0x508f60,'*Remove:*\x20%0','\x22'+_0x159cb6+'\x22\x20'+c(_0x508f60,'ELEMENT_BOOKMARK'))};const {data:_0x4d9a1b}=_0x13ffe1;if(!_0x4d9a1b||'bookmarkId'!=_0x4d9a1b['key'])return;return{'type':'format','content':c(_0x508f60,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d9a1b['newValue']+'\x22')};}));}}class J extends _0x113b76{['afterInit'](){const _0x35ba5b=this['editor'];_0x35ba5b['plugins']['has']('CaseChange')&&(_0x35ba5b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x35ba5b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x35ba5b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x113b76{['afterInit'](){const _0x2e38fe=this['editor'];_0x2e38fe['commands']['get']('ckbox')&&_0x2e38fe['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x113b76{['afterInit'](){const _0x13c602=this['editor'];if(!_0x13c602['plugins']['has']('CodeBlock'))return;const _0x2b71da=_0x13c602['plugins']['get']('TrackChangesEditing'),_0x42cdf1=_0x13c602['locale'],_0x19bdc9=_0x13c602['config']['get']('codeBlock')['languages'],_0x13113d=_0x13c602['commands']['get']('codeBlock');_0x2b71da['enableCommand']('indentCodeBlock'),_0x2b71da['enableCommand']('outdentCodeBlock'),_0x2b71da['enableCommand']('codeBlock',(_0x23dc85,_0x950a49={})=>{const _0x4779bd=_0x13c602['model'],_0x199db5=_0x13c602['model']['document']['selection'],_0x491604=_0x950a49&&void 0x0!==_0x950a49['forceValue']?_0x950a49['forceValue']:!_0x13113d['value'];let _0x271219;_0x950a49['language']||(_0x950a49['language']=_0x19bdc9[0x0]['language']),_0x271219=_0x491604?Array['from'](_0x199db5['getSelectedBlocks']())['filter'](_0x43040e=>eo(_0x43040e)||function(_0x18b161,_0x146351){if(_0x18b161['is']('rootElement')||_0x146351['isLimit'](_0x18b161))return!0x1;return _0x146351['checkChild'](_0x18b161['parent'],'codeBlock');}(_0x43040e,_0x4779bd['schema'])):Array['from'](_0x199db5['getSelectedBlocks']())['filter'](_0x526009=>eo(_0x526009));const _0x2e698e=to(_0x271219,_0x4779bd);_0x4779bd['change'](()=>{for(const _0x4914b6 of _0x2e698e)_0x2b71da['markBlockFormat'](_0x4914b6,{'commandName':'codeBlock','commandParams':[{..._0x950a49,'forceValue':_0x491604}],'formatGroupId':'blockName'});});}),(_0x2b71da['descriptionFactory']['registerElementLabel']('codeBlock',_0x497b6a=>c(_0x42cdf1,'ELEMENT_CODE_BLOCK',_0x497b6a)),_0x2b71da['descriptionFactory']['registerDescriptionCallback'](_0x1aba68=>{if('formatBlock'!=_0x1aba68['type'])return;const _0xbdde4=_0x42cdf1['t'],{data:_0x32882c}=_0x1aba68;if(!_0x32882c||'codeBlock'!=_0x32882c['commandName'])return;const _0x4d3a1a=_0x32882c['commandParams'][0x0]['language'],_0x49a9af=_0xbdde4(_0x19bdc9['find'](_0x331dac=>_0x331dac['language']===_0x4d3a1a)['label'])['toLowerCase']();return _0x32882c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x42cdf1,'*Set\x20format:*\x20%0',c(_0x42cdf1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49a9af+')')}:{'type':'format','content':c(_0x42cdf1,'*Remove\x20format:*\x20%0',c(_0x42cdf1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2f579a){return'codeBlock'==_0x2f579a['name'];}class q extends _0x113b76{['afterInit'](){const _0x468a62=this['editor'];if(!_0x468a62['plugins']['has']('CommentsEditing'))return;_0x468a62['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3ba5b2,_0x4109c0,_0x44a87a){const _0x328347=[];for(const _0x146031 of _0x4109c0['getItems']())_0x146031['hasAttribute'](_0x3ba5b2)&&_0x328347['push'](_0x44a87a['createRangeOn'](_0x146031));return _0x328347;}function Fe(_0x3b7c25,_0x273c97,{showActiveMarker:_0x1d214d=!0x0}={}){const _0x153816=_0x3b7c25['plugins']['get']('TrackChangesEditing');return(_0x1b1bea,_0x563821,_0x3967c3)=>{if(!_0x3967c3['consumable']['test'](_0x563821['markerRange'],_0x1b1bea['name']))return;const _0x2a87e4=_0x563821['markerRange']['getWalker'](),_0x50baf9=_0x563821['markerRange']['start'],_0x1bec20=_0x3b7c25['model']['schema'];let _0x3615f7=null,_0x534e1a=null,_0x280e49=!0x1,_0x2721a4=!0x1;for(const _0x577158 of _0x2a87e4){const _0x589100=_0x577158['item'];_0x280e49=_0x280e49||_0x1bec20['isContent'](_0x589100);const _0x4dc2fa=_0x3967c3['mapper']['toViewElement'](_0x589100);if(_0x4dc2fa&&_0x4dc2fa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x577158['type']&&(_0x1bec20['isBlock'](_0x589100)&&!_0x1bec20['isLimit'](_0x589100)&&(_0x589100['nextSibling']||_0x50baf9['isAtEnd']?_0x3615f7&&_0x3615f7['parent']==_0x589100||(_0x3615f7=_0x589100,_0xa5a0ac(_0x577158['previousPosition']),_0x2721a4=!0x0):_0x534e1a=_0x534e1a||_0x577158['previousPosition']));}function _0xa5a0ac(_0x580098){const {id:_0x4d8ef3,authorId:_0x1a5a04}=_0x153816['_splitMarkerName'](_0x563821['markerName']),_0x48d456=_0x3967c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x273c97,'data-suggestion':_0x4d8ef3,'data-author-id':_0x1a5a04}),_0x31670d=_0x3967c3['mapper']['toViewPosition'](_0x580098);_0x1d214d&&_0x153816['activeMarkers']['includes'](_0x563821['markerName'])&&_0x3967c3['writer']['addClass']('ck-suggestion-marker--active',_0x48d456),_0x3967c3['writer']['insert'](_0x31670d,_0x48d456),_0x3967c3['mapper']['bindElementToMarker'](_0x48d456,_0x563821['markerName']);}_0x280e49||_0x2721a4||!_0x534e1a||_0xa5a0ac(_0x534e1a);};}class z extends _0x113b76{static get['requires'](){return[_0xa664a3];}['init'](){const _0x4022b3=this['editor'],_0x513f45=_0x4022b3['plugins']['get']('TrackChangesEditing');_0x513f45['enableCommand']('delete');const _0x276c6e=_0x4022b3['commands']['get']('deleteForward');_0x513f45['enableCommand']('deleteForward',(_0x5f16e1,_0x523199={})=>{const _0x171e93=_0x4022b3['model']['createSelection'](_0x4022b3['model']['document']['selection']);_0x171e93['isCollapsed']&&_0x4022b3['model']['modifySelection'](_0x171e93,{'direction':'forward','unit':_0x523199['unit']});const _0x383f97=_0x171e93['getFirstRange'](),_0x1865d7=_0x31030b['fromRange'](_0x383f97);let _0x3686b9;_0x5f16e1(_0x523199),_0x3686b9='$graveyard'==_0x1865d7['root']['rootName']?_0x4022b3['model']['createRange'](_0x383f97['start']):_0x4022b3['model']['createRange'](_0x1865d7['start'],_0x1865d7['end']),_0x1865d7['detach'](),_0x4022b3['model']['enqueueChange'](_0x276c6e['buffer']['batch'],_0x23bbd5=>{_0x276c6e['buffer']['lock'](),_0x23bbd5['setSelection'](_0x23bbd5['createRange'](_0x3686b9['end'])),_0x276c6e['buffer']['unlock']();});}),_0x4022b3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x4022b3,'merge'),{'priority':'high'}),_0x4022b3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x207f79,_0x2bc72d,_0x2dc7e3)=>{_0x2dc7e3['options']['showSuggestionHighlights']&&Fe(_0x4022b3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x207f79,_0x2bc72d,_0x2dc7e3);},{'priority':'high'}),_0x4022b3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x184d97,_0x349735,_0x45ca48)=>{const _0x540870=_0x45ca48['mapper']['markerNameToElements'](_0x349735['markerName']);if(_0x540870){for(const _0x57d3d8 of _0x540870)_0x57d3d8['is']('uiElement')&&(_0x45ca48['mapper']['unbindElementFromMarkerName'](_0x57d3d8,_0x349735['markerName']),_0x45ca48['writer']['remove'](_0x57d3d8));}},{'priority':'high'});}}class W extends _0x113b76{['afterInit'](){const _0x2b670d=this['editor'];if(!_0x2b670d['plugins']['has']('ListEditing'))return;const _0x48e06f=_0x2b670d['locale'],_0x241929=_0x2b670d['plugins']['get']('TrackChangesEditing'),_0x4413c8=_0x2b670d['plugins']['has']('TodoListEditing'),_0x1b219b=!!_0x2b670d['config']['get']('list.multiBlock');function _0x375a3b(_0x43638a){return{'type':'format','content':''+c(_0x48e06f,'*Set\x20format:*\x20%0',_0x43638a)};}function _0x31e60a(_0x2343f6){return{'type':'format','content':''+c(_0x48e06f,'*Remove\x20format:*\x20%0',_0x2343f6)};}_0x241929['enableDefaultAttributesIntegration']('numberedList'),_0x241929['enableDefaultAttributesIntegration']('bulletedList'),_0x241929['enableDefaultAttributesIntegration']('customNumberedList'),_0x241929['enableDefaultAttributesIntegration']('customBulletedList'),_0x241929['enableDefaultAttributesIntegration']('indentList'),_0x241929['enableDefaultAttributesIntegration']('outdentList'),_0x241929['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x241929['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x241929['registerBlockAttribute']('listItemId'),_0x241929['registerBlockAttribute']('listType'),_0x241929['registerBlockAttribute']('listIndent'),_0x1b219b&&(_0x241929['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x241929['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4413c8&&(_0x241929['enableDefaultAttributesIntegration']('todoList'),_0x241929['enableDefaultAttributesIntegration']('checkTodoList'),_0x241929['registerBlockAttribute']('todoListChecked'),_0x241929['descriptionFactory']['registerDescriptionCallback'](_0x579f98=>{const {data:_0x56e202}=_0x579f98;if(_0x56e202&&'todoListChecked'==_0x56e202['key'])return{'type':'format','content':_0x56e202['newValue']?c(_0x48e06f,'*Check\x20item*'):c(_0x48e06f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x542f9e=>{if(_0x542f9e['batch']['isUndo'])return!0x1;let _0x27dd9=!0x1;const _0x596645=_0x241929['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x205371=>'todoListChecked'===_0x241929['_getAttributeKey'](_0x205371));for(const _0x531f33 of _0x596645){'todo'!=_0x531f33['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x241929['_findSuggestions'](_0x531f33['getFirstRange'](),'attribute')['find'](_0x3e3801=>'listType'===_0x241929['_getAttributeKey'](_0x3e3801['suggestion']))||(_0x542f9e['removeMarker'](_0x531f33['getFirstMarker']()),_0x27dd9=!0x0));}return _0x27dd9;})),_0x241929['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x48e06f,'FORMAT_INDENT'));const _0x36cc3e={'type':'format','content':''};_0x241929['descriptionFactory']['registerDescriptionCallback'](_0x5e1a42=>{const {data:_0x2a5b32}=_0x5e1a42;if(!_0x2a5b32||'listType'!=_0x2a5b32['key'])return;let _0x4f03c4=_0x5e1a42['head'];for(;_0x4f03c4;){if(_0x4f03c4['data']&&(('listStyle'==_0x4f03c4['data']['key']||'listMarkerStyle'==_0x4f03c4['data']['key'])&&(_0x4f03c4['data']['newValue']&&'default'!=_0x4f03c4['data']['newValue']||'default'!=_0x4f03c4['data']['oldValue']&&!_0x2a5b32['newValue'])||!_0x1b219b&&_0x4f03c4['data']['key']==u))return _0x36cc3e;_0x4f03c4=_0x4f03c4['next'];}if(null==_0x2a5b32['newValue'])switch(_0x2a5b32['oldValue']){case'bulleted':return _0x31e60a(c(_0x48e06f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31e60a(c(_0x48e06f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31e60a(c(_0x48e06f,'ELEMENT_TODO_LIST'));}switch(_0x2a5b32['newValue']){case'bulleted':return _0x375a3b(c(_0x48e06f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x375a3b(c(_0x48e06f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x375a3b(c(_0x48e06f,'ELEMENT_TODO_LIST'));}}),_0x241929['descriptionFactory']['registerDescriptionCallback'](_0x3ae8da=>{const {data:_0x5af250}=_0x3ae8da;if(_0x5af250&&'listIndent'==_0x5af250['key'])return null==_0x5af250['newValue']||null==_0x5af250['oldValue']&&0x0==_0x5af250['newValue']?_0x36cc3e:void 0x0;}),_0x241929['descriptionFactory']['registerDescriptionCallback'](_0x5206ef=>{if('attribute'!=_0x5206ef['type'])return;const {data:_0x12e1b5}=_0x5206ef;if(!_0x12e1b5||'listItemId'!=_0x12e1b5['key'])return;const _0x5d1c46=Te(_0x5206ef);return'newValue'==_0x5d1c46?{'type':'format','content':c(_0x48e06f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d1c46?{'type':'format','content':c(_0x48e06f,'*Split:*\x20list\x20item')}:_0x36cc3e;}),_0x2b670d['model']['document']['registerPostFixer'](_0x887bdd=>this['listItemIdFixer'](_0x887bdd)),_0x2b670d['model']['document']['registerPostFixer'](_0x35d83b=>this['noTrackChangesFixer'](_0x35d83b)),_0x2b670d['model']['document']['on']('change:data',(_0x4d5150,_0x46b9b4)=>{if(_0x46b9b4['isUndo']||!_0x46b9b4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x7a6f7a){if(_0x7a6f7a['batch']['isUndo']||!_0x7a6f7a['batch']['isLocal'])return!0x1;let _0x327da2=!0x1;const _0x418c35=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2baa13=>_0x2baa13['data']&&'listItemId'==_0x2baa13['data']['key'])['filter'](_0xedfebc=>_0xedfebc['data']['newValue']&&_0xedfebc['data']['oldValue']);for(const _0x55a5c9 of _0x418c35)Te(_0x55a5c9)||(_0x7a6f7a['removeMarker'](_0x55a5c9['getFirstMarker']()),_0x327da2=!0x0);return _0x327da2;}['noTrackChangesFixer'](_0x1b6931){if(_0x1b6931['batch']['isUndo']||!_0x1b6931['batch']['isLocal'])return!0x1;const _0x375c0d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x375c0d['trackChangesCommand']['value'])return!0x1;let _0x5137c7=!0x1;const _0x51f1d3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3be39d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4a1155=>'attribute'==_0x4a1155['type'])['filter'](_0x1bfd34=>_0x51f1d3['includes'](_0x1bfd34['attributeKey']));if(0x0==_0x3be39d['length'])return _0x5137c7;for(const _0x3ad862 of _0x3be39d){const _0x433671=_0x375c0d['_findSuggestions'](_0x3ad862['range'],'attribute')['filter'](_0x9b6cfd=>!_0x9b6cfd['meta']['isNextTo'])['map'](_0x4008cf=>_0x4008cf['suggestion'])['filter'](_0x1d1ee1=>{const _0x4f6a9b=_0x375c0d['_getAttributeKey'](_0x1d1ee1);return _0x51f1d3['includes'](_0x4f6a9b);});if(_0x433671['length']){for(const _0x30b9a1 of _0x433671)_0x1b6931['removeMarker'](_0x30b9a1['getFirstMarker']());_0x5137c7=!0x0;}}return _0x5137c7;}['assureChains'](){const _0x9d887d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a5ba=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5f4740;const _0x202361=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x457dcc=>{if(_0x457dcc['data']['oldRange']||!_0x457dcc['data']['newRange'])return null;if(!_0x457dcc['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x41fc08}=_0x9d887d['_splitMarkerName'](_0x457dcc['name']);if(!_0x9d887d['hasSuggestion'](_0x41fc08))return null;const _0x21f2a6=_0x9d887d['getSuggestion'](_0x41fc08);return _0x24a5ba['includes'](_0x21f2a6['data']['key']);})['map'](_0x2988ff=>{const {id:_0xe6645d}=_0x9d887d['_splitMarkerName'](_0x2988ff['name']),_0x3bbc14=_0x9d887d['getSuggestion'](_0xe6645d);return _0x5f4740=_0x3bbc14['attributes']['groupId'],_0x3bbc14['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x202361['size'])return;const _0x175564=_0x9d887d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x461f0b=>'attribute'==_0x461f0b['type']&&_0x461f0b['data']&&_0x24a5ba['includes'](_0x461f0b['data']['key'])&&_0x461f0b['attributes']['groupId']!=_0x5f4740)['map'](_0xd5ff7a=>({'listItem':_0xd5ff7a['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd5ff7a['attributes']['groupId']})),_0x36c15b=new Set();for(const {groupId:_0x1d5a50,listItem:_0x3c1557}of _0x175564)_0x202361['has'](_0x3c1557)&&_0x36c15b['add'](_0x1d5a50);for(const _0x2beb4f of _0x9d887d['getSuggestions']())_0x36c15b['has'](_0x2beb4f['attributes']['groupId'])&&_0x2beb4f['setAttribute']('groupId',_0x5f4740);}['_supportLegacySuggestions'](){const _0x1f008e=this['editor'],_0x838d9c=_0x1f008e['locale'],_0x810211=_0x1f008e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x810211['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x262172,_0x497eb9){const _0x251538=[];for(let _0x337572 of _0x262172)_0x337572['start']['nodeAfter']===_0x337572['end']['parent']&&(_0x337572=_0x1f008e['model']['createRange'](_0x1f008e['model']['createPositionAt'](_0x337572['start']['nodeAfter'],0x0))),_0x251538['push'](_0x337572);_0x1f008e['model']['change'](_0x5d3dd3=>{const _0x589b7d=_0x1f008e['model']['document']['selection'],_0x3fc7e5=Array['from'](_0x589b7d['getRanges']())['map'](_0x4deee3=>_0x31030b['fromRange'](_0x4deee3));_0x5d3dd3['setSelection'](_0x251538),_0x1f008e['commands']['get'](_0x497eb9['commandName'])['refresh'](),_0x497eb9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1f008e['execute'](_0x497eb9['commandName'],..._0x497eb9['commandParams']),_0x5d3dd3['setSelection'](_0x3fc7e5);for(const _0x15f530 of _0x3fc7e5)_0x15f530['detach']();});}),_0x810211['descriptionFactory']['registerElementLabel'](function(_0x425ee9){const _0x8c6f2c=!_0x1f008e['model']['schema']['isObject'](_0x425ee9),_0x5d1d04=_0x425ee9['previousSibling'],_0x15661c=_0x425ee9['nextSibling'],_0x1f8423=_0x425ee9['getAttribute']('listItemId'),_0x41efbc=!_0x5d1d04||_0x5d1d04['getAttribute']('listItemId')!==_0x1f8423,_0x4aa871=!_0x15661c||_0x15661c['getAttribute']('listItemId')!==_0x1f8423;return _0x8c6f2c&&Boolean(_0x1f8423)&&_0x41efbc&&_0x4aa871;},_0x20047c=>c(_0x838d9c,'ELEMENT_LIST_ITEM',_0x20047c));}['_registerLegacyDescription'](){const _0x4712e6=this['editor'],_0x32ad00=_0x4712e6['locale'];function _0x1584e4(_0x5c1400){const _0x3cc002=_0x4712e6['commands']['get']('bulletedList')['value'],_0x2b79f3=_0x4712e6['commands']['get']('numberedList')['value'];return'numberedList'===_0x5c1400?_0x3cc002:_0x2b79f3;}_0x4712e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x162b59){if('formatBlock'!=_0x162b59['type'])return;const {data:_0x442457}=_0x162b59;if(!_0x442457)return;let _0x519e14,_0x9a7b45,_0x3282f5,_0x1bc999;switch(_0x442457['commandName']){case'bulletedList':_0x3282f5=_0x442457['commandParams'][0x0]['forceValue'],_0x1bc999=_0x1584e4(_0x442457['commandName']),_0x519e14=_0x3282f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1bc999&&_0x4712e6['config']['get']('list.multiBlock')||(_0x519e14='*Change\x20to:*\x20%0'),_0x9a7b45={'type':'format','content':c(_0x32ad00,_0x519e14,c(_0x32ad00,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3282f5=_0x442457['commandParams'][0x0]['forceValue'],_0x1bc999=_0x1584e4(_0x442457['commandName']),_0x519e14=_0x3282f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1bc999&&_0x4712e6['config']['get']('list.multiBlock')||(_0x519e14='*Change\x20to:*\x20%0'),_0x9a7b45={'type':'format','content':c(_0x32ad00,_0x519e14,c(_0x32ad00,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x519e14='*Indent:*\x20%0',_0x9a7b45={'type':'format','content':c(_0x32ad00,_0x519e14,c(_0x32ad00,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x519e14=function(_0x50e105){const _0x1b34e9=_0x50e105['getFirstRange']();let _0x2103ee=_0x1b34e9['start']['nodeAfter'];for(;_0x2103ee&&_0x1b34e9['containsItem'](_0x2103ee);){if(_0x2103ee['getAttribute']('listIndent')>0x0)return!0x1;_0x2103ee=_0x2103ee['nextSibling'];}return!0x0;}(_0x162b59)?c(_0x32ad00,'*Format:*\x20remove\x20from\x20%0',c(_0x32ad00,function(_0x20cb6c){return'ELEMENT_'+_0x20cb6c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x162b59))):c(_0x32ad00,'*Outdent:*\x20%0',c(_0x32ad00,'ELEMENT_LIST_ITEM')),_0x9a7b45={'type':'format','content':_0x519e14};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x442457['multipleBlocks']&&(_0x519e14='*Merge:*\x20%0',_0x9a7b45={'type':'deletion','content':c(_0x32ad00,_0x519e14,c(_0x32ad00,'ELEMENT_LIST_ITEM'))});}return _0x9a7b45;});}}function Te(_0x23f852){let _0x5e5846=_0x23f852['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e5846;){const _0x474352=_0x5e5846['getAttribute']('listItemId');if(!_0x474352)return!0x1;if(_0x474352==_0x23f852['data']['newValue'])return'newValue';if(_0x474352==_0x23f852['data']['oldValue'])return'oldValue';_0x5e5846=_0x5e5846['previousSibling'];}return!0x1;}class Se extends _0x113b76{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x46873c=this['editor']['config']['get']('list.properties'),_0x1f5ef0=this['editor']['plugins']['get']('TrackChangesEditing');_0x46873c['styles']&&(_0x1f5ef0['enableDefaultAttributesIntegration']('listStyle'),_0x1f5ef0['registerBlockAttribute']('listStyle')),_0x46873c['reversed']&&(_0x1f5ef0['enableDefaultAttributesIntegration']('listReversed'),_0x1f5ef0['registerBlockAttribute']('listReversed')),_0x46873c['startIndex']&&(_0x1f5ef0['enableDefaultAttributesIntegration']('listStart'),_0x1f5ef0['registerBlockAttribute']('listStart'));const _0x405345={'type':'format','content':''};_0x1f5ef0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3aef85=this['editor']['locale'];_0x1f5ef0['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3aef85,'FORMAT_LIST_REVERSED')),_0x1f5ef0['descriptionFactory']['registerDescriptionCallback'](_0x218919=>{const {data:_0x2ad512}=_0x218919;if(_0x2ad512&&'listReversed'==_0x2ad512['key'])return null==_0x2ad512['newValue']||0x0==_0x2ad512['newValue']&&null==_0x2ad512['oldValue']?_0x405345:void 0x0;}),_0x1f5ef0['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3aef85,'FORMAT_LIST_START')),_0x1f5ef0['descriptionFactory']['registerDescriptionCallback'](_0x4c1422=>{const {data:_0x589314}=_0x4c1422;if(_0x589314&&'listStart'==_0x589314['key'])return null==_0x589314['newValue']||0x1==_0x589314['newValue']&&null==_0x589314['oldValue']?_0x405345:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2584be=>{if(_0x2584be['batch']['isUndo'])return!0x1;let _0x3a4dd8=!0x1;const _0x143996=_0x1f5ef0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ba689=>{const _0x5897ed=_0x1f5ef0['_getAttributeKey'](_0x2ba689);return'listStart'==_0x5897ed||'listReversed'==_0x5897ed;});for(const _0x2decd3 of _0x143996){const _0x1d9996=_0x2decd3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1d9996||'customNumbered'==_0x1d9996)continue;_0x1f5ef0['_findSuggestions'](_0x2decd3['getFirstRange'](),'attribute')['find'](_0x180f27=>'listType'==_0x1f5ef0['_getAttributeKey'](_0x180f27['suggestion']))||(_0x2584be['removeMarker'](_0x2decd3['getFirstMarker']()),_0x3a4dd8=!0x0);}return _0x3a4dd8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4a54d1){const _0x48db3b=this['editor']['locale'],{data:_0xaa3ee5}=_0x4a54d1,_0x28b672={'type':'format','content':''};if(!_0xaa3ee5||'listStyle'!=_0xaa3ee5['key'])return;if(!_0xaa3ee5['oldValue'])return'default'==_0xaa3ee5['newValue']?_0x28b672:{'type':'format','content':''+c(_0x48db3b,'*Set\x20format:*\x20%0',c(_0x48db3b,this['_getTranslationKeyForListStyle'](_0xaa3ee5['newValue'])))};if(!_0xaa3ee5['newValue']){if('default'==_0xaa3ee5['oldValue'])return _0x28b672;let _0x3fb90c=_0x4a54d1['head'];for(;_0x3fb90c;){if(_0x3fb90c['data']&&'listType'==_0x3fb90c['data']['key']&&_0x3fb90c['data']['newValue'])return _0x28b672;_0x3fb90c=_0x3fb90c['next'];}return{'type':'format','content':''+c(_0x48db3b,'*Remove\x20format:*\x20%0',c(_0x48db3b,this['_getTranslationKeyForListStyle'](_0xaa3ee5['oldValue'])))};}if('default'!=_0xaa3ee5['newValue'])return{'type':'format','content':''+c(_0x48db3b,'*Set\x20format:*\x20%0',c(_0x48db3b,this['_getTranslationKeyForListStyle'](_0xaa3ee5['newValue'])))};let _0xb40c5a=_0x4a54d1['head'];for(;_0xb40c5a;){if(_0xb40c5a['data']&&'listType'==_0xb40c5a['data']['key']&&_0xb40c5a['data']['newValue']&&_0xb40c5a['data']['oldValue'])return _0x28b672;_0xb40c5a=_0xb40c5a['next'];}return{'type':'format','content':c(_0x48db3b,'*Set\x20format:*\x20%0',c(_0x48db3b,'ELEMENT_'+_0x4a54d1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2da3fa=this['editor'],_0x19440e=_0x2da3fa['locale'];_0x2da3fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417fae=>{if('formatBlock'!=_0x417fae['type'])return;const {data:_0x36114c}=_0x417fae;if(!_0x36114c)return;let _0x4dd57a,_0x3f0600;switch(_0x36114c['commandName']){case'listStyle':_0x4dd57a='*Change\x20to:*\x20%0',_0x3f0600={'type':'format','content':c(_0x19440e,_0x4dd57a,c(_0x19440e,this['_getTranslationKeyForListStyle'](_0x36114c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4dd57a=_0x36114c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f0600={'type':'format','content':c(_0x19440e,_0x4dd57a)};break;case'listStart':_0x4dd57a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f0600={'type':'format','content':c(_0x19440e,_0x4dd57a,_0x36114c['commandParams'][0x0]['startIndex'])};}return _0x3f0600;});}['_getTranslationKeyForListStyle'](_0x3641b6){return'ELEMENT_'+function(_0x102e18){if(_e['includes'](_0x102e18))return'bulleted';if(Re['includes'](_0x102e18))return'numbered';return null;}(_0x3641b6)['toUpperCase']()+'_LIST_'+_0x3641b6['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x113b76{['afterInit'](){const _0x37f62e=this['editor'];_0x37f62e['commands']['get']('emoji')&&_0x37f62e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x113b76{static get['requires'](){return[_0x4255b1];}['init'](){const _0x27be22=this['editor'],_0x4563bc=_0x27be22['plugins']['get']('TrackChangesEditing'),_0x439662=_0x27be22['commands']['get']('enter');_0x4563bc['enableCommand']('enter',()=>{_0x27be22['model']['change'](_0x1d17c9=>{const _0x1efa5d=_0x27be22['model']['document']['selection'],_0x5a3cde=_0x1efa5d['getFirstPosition'](),_0xd782af=_0x31030b['fromRange'](_0x1efa5d['getFirstRange']());if(_0x439662['enterBlock'](_0x1d17c9)){const _0x39e483=_0x27be22['model']['createPositionAt'](_0x5a3cde['parent']['nextSibling'],0x0),_0x110abc=_0x1d17c9['createRange'](_0x5a3cde,_0x39e483);_0x4563bc['markInsertion'](_0x110abc);}else _0x1d17c9['setSelection'](_0x1d17c9['createRange'](_0xd782af['end']));_0xd782af['detach'](),_0x439662['fire']('afterExecute',{'writer':_0x1d17c9});});}),_0x27be22['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x27be22,'split'),{'priority':'high'}),_0x27be22['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x491fdc,_0x2886b7,_0x241ea6)=>{const _0xb37164=_0x241ea6['mapper']['markerNameToElements'](_0x2886b7['markerName']);if(_0xb37164){for(const _0x3afa7e of _0xb37164)_0x3afa7e['hasClass']('ck-suggestion-marker-split')&&(_0x241ea6['mapper']['unbindElementFromMarkerName'](_0x3afa7e,_0x2886b7['markerName']),_0x241ea6['writer']['remove'](_0x3afa7e));}},{'priority':'high'}),_0x27be22['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x452c1c,_0x45c115,_0x105bc6)=>{_0x105bc6['options']['showSuggestionHighlights']&&Fe(_0x27be22,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x452c1c,_0x45c115,_0x105bc6);},{'priority':'high'});}}class Z extends _0x113b76{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2ecd83=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ecd83['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2ecd83['enableCommand']('findNext'),_0x2ecd83['enableCommand']('findPrevious'),_0x2ecd83['enableCommand']('replace'),_0x2ecd83['enableCommand']('replaceAll');}['handleFindCommand'](_0x567196,_0x45853a,_0x1937cf={}){const _0x53976d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x567196(_0x5ea6e3=>{let _0xc1396c=('string'==typeof _0x45853a?_0x53976d['findByTextCallback'](_0x45853a,_0x1937cf):_0x45853a)(_0x5ea6e3);Array['isArray'](_0xc1396c)&&(_0xc1396c={'results':_0xc1396c,'searchText':'string'==typeof _0x45853a?_0x45853a:''});const _0x37d625=_0xc1396c['results']['filter'](_0x446e33=>!0x1===this['_isInDeletionRange'](_0x446e33,_0x5ea6e3['item']));return{..._0xc1396c,'results':_0x37d625};},_0x1937cf);}['_isInDeletionRange'](_0x50cf0e,_0x2028b2){const _0x9830a6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2028b2,_0x50cf0e['start']),this['editor']['model']['createPositionAt'](_0x2028b2,_0x50cf0e['end']));for(const _0x222415 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9830a6['getIntersection'](_0x222415['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x113b76{['afterInit'](){const _0x5d9f25=this['editor']['locale'],_0x248f51=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x38c96c,commandName:_0x2c6c58}of ro)this['editor']['plugins']['has'](_0x38c96c)&&(_0x248f51['enableDefaultAttributesIntegration'](_0x2c6c58),_0x248f51['registerInlineAttribute'](_0x2c6c58));_0x248f51['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5d9f25,'FORMAT_FONT_SIZE')),_0x248f51['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5d9f25,'FORMAT_FONT_FAMILY')),_0x248f51['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5d9f25,'FORMAT_FONT_COLOR')),_0x248f51['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5d9f25,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36d228=this['editor'],_0x28db42=_0x36d228['locale'];_0x36d228['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x331fbf=>{const _0x491ee6=_0x28db42['t'];if('formatInline'!=_0x331fbf['type'])return;const {data:_0x3baa0f}=_0x331fbf;if(null!=_0x3baa0f){if('fontSize'==_0x3baa0f['commandName']){const _0x40d3d7=_0x3baa0f['commandParams'][0x0]['value'];if(_0x40d3d7){const _0x53b821=_0x491ee6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x347065=>_0x347065['model']==_0x40d3d7)['title'])['toLowerCase']();return{'type':'format','content':c(_0x28db42,'*Set\x20font\x20size:*\x20%0',_0x53b821)};}return{'type':'format','content':c(_0x28db42,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3baa0f['commandName']){const _0x439c1a=_0x3baa0f['commandParams'][0x0]['value'];return _0x439c1a?{'type':'format','content':c(_0x28db42,'*Set\x20font\x20family:*\x20%0',_0x439c1a)}:{'type':'format','content':c(_0x28db42,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3baa0f['commandName']){const _0x58c961=_0x3baa0f['commandParams'][0x0]['value'];if(_0x58c961){const _0x382775=_0x350e50(this['editor']['config']['get']('fontColor.colors'))['find'](_0x228792=>_0x228792['model']==_0x58c961);let _0x26dbc2=_0x58c961,_0x4125dd='';return _0x382775&&(_0x26dbc2=_0x382775['label'],_0x4125dd=_0x491ee6(_0x26dbc2)['toLowerCase']()),{'type':'format','content':c(_0x28db42,'*Set\x20font\x20color:*\x20%0',_0x4125dd)['trim'](),'color':{'value':_0x58c961,'title':_0x4125dd||_0x26dbc2}};}return{'type':'format','content':c(_0x28db42,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3baa0f['commandName']){const _0x437ae4=_0x3baa0f['commandParams'][0x0]['value'];if(_0x437ae4){const _0x10689b=_0x350e50(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5526d4=>_0x5526d4['model']==_0x437ae4);let _0xc0b525=_0x437ae4,_0x48e210='';return _0x10689b&&(_0xc0b525=_0x10689b['label'],_0x48e210=_0x491ee6(_0xc0b525)['toLowerCase']()),{'type':'format','content':c(_0x28db42,'*Set\x20font\x20background\x20color:*\x20%0',_0x48e210)['trim'](),'color':{'value':_0x437ae4,'title':_0x48e210||_0xc0b525}};}return{'type':'format','content':c(_0x28db42,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x113b76{['afterInit'](){const _0x110bca=this['editor'],_0x4c559d=_0x110bca['plugins']['get']('TrackChangesEditing'),_0x1c2297=_0x110bca['commands']['get']('copyFormat'),_0x4861bd=_0x110bca['commands']['get']('pasteFormat');_0x1c2297&&_0x4861bd&&(_0x4c559d['enableDefaultAttributesIntegration']('pasteFormat'),_0x4c559d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x876d4a=this['editor'],_0x197673=_0x876d4a['locale'];_0x876d4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f19fb=>{if('formatBlock'!=_0x4f19fb['type']&&'formatInline'!=_0x4f19fb['type'])return;const {data:_0x564b7f}=_0x4f19fb;if(_0x564b7f&&'pasteFormat'===_0x564b7f['commandName']){const _0x2820da=[],_0xa6e804=_0x564b7f['commandParams'][0x0];for(const [_0x3db4c3,_0x1a3893]of Object['entries'](_0xa6e804))_0x2820da['push'](so(_0x876d4a,_0x3db4c3,_0x1a3893));return _0x2820da['length']?{'type':'format','content':c(_0x197673,'*Set\x20format\x20to:*\x20%0',_0x2820da['join'](',\x20'))}:{'type':'format','content':c(_0x197673,'*Remove\x20all\x20formatting*')};}});}}function so(_0x546ead,_0x329043,_0x30bcca){const _0x49b54e=_0x546ead['locale']['t'],_0x2df115=_0x329043['split'](/(?=[A-Z])/)['join']('\x20'),_0xc1db01=_0x49b54e(_0x2df115['charAt'](0x0)['toUpperCase']()+_0x2df115['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30bcca)return _0xc1db01;if('fontColor'===_0x329043||'fontBackgroundColor'===_0x329043){const _0x6123be=_0x350e50(_0x546ead['config']['get']('fontColor.colors'))['find'](_0x4074de=>_0x4074de['model']==_0x30bcca);return _0xc1db01+'\x20('+(_0x6123be?_0x49b54e(_0x6123be['label'])['toLowerCase']():_0x30bcca)+')';}if('fontSize'===_0x329043&&isNaN(parseFloat(_0x30bcca))){const _0x1238bb=_0x546ead['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x546ead['config']['get']('fontSize.options'))['find'](_0x380af2=>_0x380af2['model']==_0x30bcca);return _0xc1db01+'\x20('+(_0x1238bb?_0x49b54e(_0x1238bb['title'])['toLowerCase']():_0x30bcca)+')';}return _0xc1db01+'\x20('+_0x30bcca+')';}class et extends _0x113b76{['_headingOptions'];['afterInit'](){const _0x26e689=this['editor'];if(!_0x26e689['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x26e689['config']['get']('heading.options');const _0xfabcb6=_0x26e689['locale'],_0x52be3c=_0x26e689['plugins']['get']('TrackChangesEditing');_0x52be3c['enableDefaultAttributesIntegration']('heading');for(const _0x495d57 of this['_headingOptions'])'paragraph'!=_0x495d57['model']&&_0x52be3c['descriptionFactory']['registerElementLabel'](_0x495d57['model'],_0x45fa51=>{const _0x1883f5=this['_getHeadingLevel'](_0x495d57['model']);return null!==_0x1883f5?_0x135cd7(_0x45fa51,_0x1883f5):_0x20e5e1(_0x45fa51,_0x495d57['title']);});function _0x135cd7(_0x54282d,_0x38df33){return c(_0xfabcb6,'ELEMENT_HEADING',[_0x54282d,_0x38df33]);}function _0x20e5e1(_0x30e8b5,_0x297f2d){return c(_0xfabcb6,'ELEMENT_HEADING_CUSTOM',[_0x30e8b5,_0x297f2d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44ab8e=this['editor'],_0x4b1be6=_0x44ab8e['locale'];function _0x54b1bf(_0x552071,_0x552d3a){return c(_0x4b1be6,'ELEMENT_HEADING_CUSTOM',[_0x552071,_0x552d3a]);}_0x44ab8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7f11=>{if('formatBlock'!=_0x5e7f11['type'])return;const {data:_0xc951cd}=_0x5e7f11;if(_0xc951cd&&'heading'==_0xc951cd['commandName']){const _0x4b0acd=_0xc951cd['commandParams'][0x0]['value'],_0x12fb2e=this['_getHeadingLevel'](_0x4b0acd);if(null!==_0x12fb2e)return{'type':'format','content':c(_0x4b1be6,'*Change\x20to:*\x20%0',(_0x4d9cb6=0x1,_0x3887d4=_0x12fb2e,c(_0x4b1be6,'ELEMENT_HEADING',[_0x4d9cb6,_0x3887d4])))};const _0x2810da=this['_headingOptions']['find'](_0x2c60b6=>_0x2c60b6['model']===_0x4b0acd)['title'];return{'type':'format','content':c(_0x4b1be6,'*Change\x20to:*\x20%0',_0x54b1bf(0x1,_0x2810da))};}var _0x4d9cb6,_0x3887d4;});}['_getHeadingLevel'](_0x499d06){const _0x26f146=_0x499d06['match'](/^heading(\d+)/);if(_0x26f146)return _0x26f146[0x1];const _0x1ef995=this['_headingOptions']?.['find'](_0x434522=>_0x434522['model']==_0x499d06);if(_0x1ef995&&_0x1ef995['view']){const _0x4c04a7=_0x1ef995['view'],_0x774b22=(_0x4c04a7['name']??_0x4c04a7)['match'](/^h(\d+)/);if(_0x774b22)return _0x774b22[0x1];}return null;}}class nt extends _0x113b76{['afterInit'](){const _0x600d26=this['editor'];if(!_0x600d26['plugins']['has']('HighlightEditing'))return;const _0x35e352=_0x600d26['plugins']['get']('TrackChangesEditing'),_0x38ff58=_0x600d26['locale'];_0x35e352['enableDefaultAttributesIntegration']('highlight'),_0x35e352['registerInlineAttribute']('highlight'),_0x35e352['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x38ff58,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c2ce2=this['editor'],_0x5622c4=_0x5c2ce2['locale'];_0x5c2ce2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35cd16=>{if('formatInline'!=_0x35cd16['type'])return;const {data:_0x2fae56}=_0x35cd16;if(_0x2fae56&&'highlight'==_0x2fae56['commandName']){const _0x183494=_0x5622c4['t'],_0x5704a7=_0x2fae56['commandParams'][0x0]['value'];if(_0x5704a7){const _0x524e42=_0x5c2ce2['config']['get']('highlight.options')['find'](_0x44fc02=>_0x44fc02['model']==_0x5704a7),_0x4178bf=_0x183494(_0x524e42['title'])['toLowerCase']();return{'type':'format','content':c(_0x5622c4,'*Set\x20highlight:*\x20%0',_0x4178bf),'color':{'value':_0x524e42['color'],'title':_0x524e42['title']}};}return{'type':'format','content':c(_0x5622c4,'*Remove\x20highlight*',c(_0x5622c4,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x113b76{['afterInit'](){const _0x5aa2f7=this['editor'];if(!_0x5aa2f7['plugins']['has']('HorizontalLineEditing'))return;_0x5aa2f7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x277a29=_0x5aa2f7['plugins']['get']('TrackChangesEditing'),_0x4885ab=_0x5aa2f7['locale'];_0x277a29['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e598d=>c(_0x4885ab,'ELEMENT_HORIZONTAL_LINE',_0x4e598d)),_0x5aa2f7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x33a565,{writer:_0x599b93,options:_0x422bd1})=>{if(!_0x422bd1['showSuggestionHighlights'])return null;const _0xc2fe02=_0x599b93['createContainerElement']('div'),_0x8453f3=_0x599b93['createEmptyElement']('hr');return _0x599b93['addClass']('ck-horizontal-line',_0xc2fe02),_0x599b93['insert'](_0x599b93['createPositionAt'](_0xc2fe02,0x0),_0x8453f3),_0xc2fe02;},'converterPriority':'high'});}}class ot extends _0x113b76{['afterInit'](){const _0x4d2b02=this['editor'];if(!_0x4d2b02['plugins']['has']('HtmlEmbed'))return;const _0x25afc5=_0x4d2b02['plugins']['get']('TrackChangesEditing'),_0x516694=_0x4d2b02['locale'];_0x25afc5['descriptionFactory']['registerElementLabel']('rawHtml',_0xf0a13c=>c(_0x516694,'ELEMENT_HTML_EMBED',_0xf0a13c)),_0x25afc5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25afc5['registerBlockAttribute']('value'),_0x25afc5['descriptionFactory']['registerDescriptionCallback'](_0xd0b9ed=>{if('attribute'!=_0xd0b9ed['type'])return;const {data:_0x56b3ed}=_0xd0b9ed;if(_0x56b3ed&&'value'==_0x56b3ed['key']&&_0xd0b9ed['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x201da9=c(_0x516694,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x516694,'*Change\x20%0\x20content*',_0x201da9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41965c=this['editor'],_0x2ed696=_0x41965c['locale'];_0x41965c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23cde3=>{if('formatBlock'!=_0x23cde3['type'])return;const {data:_0x1db94a}=_0x23cde3;if(_0x1db94a&&'htmlEmbed'==_0x1db94a['commandName']){const _0x1efe81=c(_0x2ed696,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2ed696,'*Change\x20%0\x20content*',_0x1efe81)};}});}}class rt extends _0x113b76{['afterInit'](){const _0x399a77=this['editor'];if(!_0x399a77['plugins']['has']('ImageEditing'))return;const _0x205bd3=_0x399a77['plugins']['get']('TrackChangesEditing'),_0x5b9574=_0x399a77['plugins']['get']('ImageUtils'),_0x2b256f=_0x399a77['locale'];_0x205bd3['enableCommand']('insertImage'),_0x205bd3['descriptionFactory']['registerElementLabel']('imageBlock',_0x3ce256=>c(_0x2b256f,'ELEMENT_IMAGE',_0x3ce256)),_0x205bd3['descriptionFactory']['registerElementLabel']('imageInline',_0x50490f=>c(_0x2b256f,'ELEMENT_INLINE_IMAGE',_0x50490f)),_0x205bd3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2b256f,'ELEMENT_CAPTION')),_0x399a77['plugins']['has']('ImageUploadEditing')&&_0x205bd3['enableCommand']('uploadImage'),_0x399a77['plugins']['has']('ImageBlockEditing')&&_0x399a77['plugins']['has']('ImageInlineEditing')&&(_0x205bd3['enableCommand']('imageTypeInline',(_0x4da3d8,_0x3a2561)=>{const _0x4d7323=_0x5b9574['getClosestSelectedImageElement'](_0x399a77['model']['document']['selection']);_0x399a77['model']['change'](()=>{_0x205bd3['markBlockFormat'](_0x4d7323,{'commandName':'imageTypeInline','commandParams':[_0x3a2561]},[],'convertBlockImageToInline');});}),_0x205bd3['enableCommand']('imageTypeBlock',(_0x477409,_0x511543)=>{_0x399a77['model']['change'](_0x4b5852=>{let _0x37183=_0x5b9574['getClosestSelectedImageElement'](_0x399a77['model']['document']['selection']),_0x50c629=_0x4b5852['createRangeOn'](_0x37183);const _0x5e1a38=_0x1676a1['fromPosition'](_0x50c629['start'],'toPrevious'),_0x134406=_0x1676a1['fromPosition'](_0x50c629['end'],'toNext');_0x205bd3['forceDefaultExecution'](()=>_0x477409(_0x511543)),_0x37183=_0x5b9574['getClosestSelectedImageElement'](_0x399a77['model']['document']['selection']),_0x50c629=_0x4b5852['createRangeOn'](_0x37183);const _0x10bae5=_0x4b5852['createRange'](_0x5e1a38,_0x134406);_0x5e1a38['detach'](),_0x134406['detach'](),_0x205bd3['markBlockFormat'](_0x37183,{'commandName':'imageTypeInline','commandParams':[_0x511543]},[],'convertInlineImageToBlock'),_0x10bae5['start']['isBefore'](_0x50c629['start'])&&_0x205bd3['markInsertion'](_0x4b5852['createRange'](_0x10bae5['start'],_0x50c629['start']),'convertInlineImageToBlock'),_0x50c629['end']['isBefore'](_0x10bae5['end'])&&_0x205bd3['markInsertion'](_0x4b5852['createRange'](_0x50c629['end'],_0x10bae5['end']),'convertInlineImageToBlock');});}),_0x205bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x205bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x205bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x205bd3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x205bd3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x205bd3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x218136])=>{const _0x76fc59=_0x205bd3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x338666=_0x218136['start'],_0x1df2ff=_0x218136['end'];const _0x332f69=_0x399a77['model']['schema']['getNearestSelectionRange'](_0x338666,'backward'),_0x17cc3d=_0x399a77['model']['schema']['getNearestSelectionRange'](_0x1df2ff,'forward');_0x332f69['isCollapsed']&&(_0x338666=_0x332f69['start']),_0x17cc3d['isCollapsed']&&(_0x1df2ff=_0x17cc3d['end']),_0x76fc59([_0x399a77['model']['createRange'](_0x338666,_0x1df2ff)]);}),_0x205bd3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x206cd4),_0x205bd3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x206cd4)),_0x399a77['plugins']['has']('ImageCaptionEditing')&&(_0x205bd3['enableCommand']('toggleImageCaption',(_0x404602,_0x1c264b)=>{const _0x32cb5c=_0x399a77['plugins']['get']('ImageCaptionUtils');let _0x1e8b6b=_0x5b9574['getClosestSelectedImageElement'](_0x399a77['model']['document']['selection']),_0x12a34b=_0x32cb5c['getCaptionFromImageModelElement'](_0x1e8b6b);_0x399a77['model']['change'](()=>{if(_0x12a34b)return void _0x205bd3['markDeletion'](_0x399a77['model']['createRangeOn'](_0x12a34b));const _0x558e46=_0x5b9574['isBlockImage'](_0x1e8b6b);_0x404602(_0x1c264b),_0x1e8b6b=_0x5b9574['getClosestSelectedImageElement'](_0x399a77['model']['document']['selection']),_0x12a34b=_0x32cb5c['getCaptionFromImageModelElement'](_0x1e8b6b),_0x205bd3['markInsertion'](_0x399a77['model']['createRangeOn'](_0x12a34b),_0x558e46?null:'imageCaption');});}),_0x205bd3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x206cd4));const _0x128e9e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ec271(_0x4789dc,_0x28d66d){const _0x85aa5d=_0x128e9e['findIndex'](({type:_0x2df074,subType:_0x6c754f})=>_0x4789dc['type']==_0x2df074&&_0x4789dc['subType']==_0x6c754f),_0x315503=_0x128e9e['findIndex'](({type:_0x5bf5b9,subType:_0x481193})=>_0x28d66d['type']==_0x5bf5b9&&_0x28d66d['subType']==_0x481193);if(_0x85aa5d<0x0||_0x315503<0x0)return!0x1;const _0x31eb16=_0x4789dc['getFirstRange'](),_0x21055c=_0x28d66d['getFirstRange']();if((0x0==_0x85aa5d||0x1==_0x85aa5d)&&0x2==_0x315503&&_0x31eb16['isIntersecting'](_0x21055c))return!0x0;if(0x2==_0x85aa5d&&0x3==_0x315503){const _0x387852=_0x205bd3['_findSuggestions'](_0x31eb16,'insertion')['filter'](({suggestion:_0x31190a,meta:_0x2e6fbf})=>_0x2e6fbf['isOwn']&&'convertInlineImageToBlock'==_0x31190a['subType']);if(_0x387852['length']>0x1&&_0x21055c['end']['isEqual'](_0x31eb16['start']))return!0x0;if(0x1==_0x387852['length']&&(_0x31eb16['start']['isEqual'](_0x21055c['end'])||_0x31eb16['end']['isEqual'](_0x21055c['start'])))return!0x0;}if(0x3==_0x85aa5d&&0x3==_0x315503&&_0x31eb16['start']['isBefore'](_0x21055c['start'])){const _0x143378=_0x31eb16['end']['nodeAfter'],_0x4742ea=_0x21055c['start']['nodeBefore'];return _0x5b9574['isBlockImage'](_0x143378)&&_0x143378===_0x4742ea;}return!0x1;}function _0x206cd4(_0x163b8d,_0x3f8cd4){return _0x4ec271(_0x163b8d,_0x3f8cd4)?[_0x163b8d,_0x3f8cd4]:_0x4ec271(_0x3f8cd4,_0x163b8d)?[_0x3f8cd4,_0x163b8d]:null;}_0x399a77['plugins']['has']('ImageResize')&&(_0x205bd3['enableDefaultAttributesIntegration']('resizeImage'),_0x205bd3['registerBlockAttribute']('resizedWidth'),_0x205bd3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2b256f,'FORMAT_IMAGE_SIZE'))),_0x399a77['plugins']['has']('ImageTextAlternativeEditing')&&(_0x205bd3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x205bd3['registerBlockAttribute']('alt')),_0x399a77['plugins']['has']('PictureEditing')&&(_0x205bd3['registerBlockAttribute']('sources'),_0x205bd3['descriptionFactory']['registerDescriptionCallback'](_0x2355bc=>{if('attribute'!=_0x2355bc['type'])return;const {data:_0x2e3625}=_0x2355bc;return _0x2e3625&&'sources'==_0x2e3625['key']?{'type':'format','content':''}:void 0x0;})),_0x399a77['plugins']['has']('ImageSizeAttributes')&&(_0x205bd3['registerBlockAttribute']('width'),_0x205bd3['registerBlockAttribute']('height'),_0x205bd3['descriptionFactory']['registerDescriptionCallback'](_0x22d2b5=>{if('attribute'!=_0x22d2b5['type'])return;const {data:_0x158b69}=_0x22d2b5;return!_0x158b69||'width'!=_0x158b69['key']&&'height'!=_0x158b69['key']?void 0x0:{'type':'format','content':''};})),_0x205bd3['descriptionFactory']['registerDescriptionCallback'](_0x5bfb02=>{if(!!_0x128e9e['find'](({type:_0x2c7c3b,subType:_0x21df43})=>_0x5bfb02['type']==_0x2c7c3b&&_0x5bfb02['subType']==_0x21df43))return _0x5bfb02['previous']?{}:void 0x0;}),_0x205bd3['descriptionFactory']['registerDescriptionCallback'](_0xc75cba=>{if('insertion'==_0xc75cba['type']||'deletion'==_0xc75cba['type']){const _0x4f12c5=_0xc75cba['getContainedElement']();if(_0x4f12c5&&_0x4f12c5['is']('element','caption'))return{'type':'insertion'==_0xc75cba['type']?'addObject':'removeObject','element':_0x4f12c5,'quantity':0x1};}}),_0x205bd3['descriptionFactory']['registerDescriptionCallback'](_0x2cd535=>'formatBlock'==_0x2cd535['type']&&'convertInlineImageToBlock'==_0x2cd535['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2cd535['type']&&'convertBlockImageToInline'==_0x2cd535['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x205bd3['descriptionFactory']['registerDescriptionCallback'](_0x580c40=>{if('attribute'!=_0x580c40['type'])return;const {data:_0x3a2d55}=_0x580c40;if(!_0x3a2d55||'alt'!=_0x3a2d55['key'])return;const _0x4926e5=_0x3a2d55['newValue'];return _0x4926e5?{'type':'format','content':c(_0x2b256f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4926e5+'\x22')}:{'type':'format','content':c(_0x2b256f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f1e4=this['editor'],_0x51926a=_0x51f1e4['locale'];_0x51f1e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x306771=>{if('formatBlock'!=_0x306771['type']&&'formatInline'!=_0x306771['type'])return;const {data:_0x67e74b}=_0x306771;if(_0x67e74b){if('imageTextAlternative'==_0x67e74b['commandName']){const _0x8bfc10=_0x67e74b['commandParams'][0x0]['newValue'];return _0x8bfc10?{'type':'format','content':c(_0x51926a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8bfc10+'\x22')}:{'type':'format','content':c(_0x51926a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x67e74b['commandName']){const _0x507187=_0x67e74b['commandParams'][0x0]['width'];return _0x507187?{'type':'format','content':c(_0x51926a,'*Set\x20image\x20width:*\x20%0',_0x507187)}:{'type':'format','content':c(_0x51926a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x113b76{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x26f323=this['editor']['locale'],_0x54fab9=this['editor']['plugins']['get']('TrackChangesEditing');_0x54fab9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x54fab9['registerBlockAttribute']('src'),_0x54fab9['descriptionFactory']['registerDescriptionCallback'](_0xfd3e53=>{if('attribute'!=_0xfd3e53['type'])return;const {data:_0x5b9522}=_0xfd3e53;return _0x5b9522&&'src'==_0x5b9522['key']?_0x5b9522['newValue']&&_0x5b9522['oldValue']?{'type':'format','content':c(_0x26f323,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59b87c=this['editor']['plugins']['get']('TrackChangesEditing');_0x59b87c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59b87c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59b87c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59b87c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa251a9=this['editor'],_0x3eb7e4=_0xa251a9['locale'];_0xa251a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2209b7=>{if('formatBlock'!=_0x2209b7['type']&&'formatInline'!=_0x2209b7['type'])return;const {data:_0x1d998b}=_0x2209b7;if(!_0x1d998b||'replaceImageSource'!=_0x1d998b['commandName'])return;return{'type':'format','content':c(_0x3eb7e4,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x113b76{['afterInit'](){const _0x44765e=this['editor'];if(!_0x44765e['plugins']['has']('ImageStyleEditing'))return;const _0x11b11c=_0x44765e['plugins']['get']('TrackChangesEditing'),_0xb249aa=_0x44765e['plugins']['get']('ImageUtils'),_0x17f190={};_0x11b11c['enableCommand']('imageStyle',(_0x8a6b5e,_0x3334d4)=>{const _0xc4a5b=_0x44765e['plugins']['get']('Users')['me'],_0x268c20=_0x44765e['commands']['get']('imageStyle');let _0x414ce4=_0xb249aa['getClosestSelectedImageElement'](_0x44765e['model']['document']['selection']),_0x34efc7=_0x44765e['model']['createRangeOn'](_0x414ce4),_0x373e0f=_0x268c20['value'];if(_0x373e0f==_0x3334d4['value'])return;const _0x3fcdec={'commandName':'imageStyle','commandParams':[_0x3334d4],'formatGroupId':_0x4ee927()};_0x44765e['model']['change'](()=>{if(_0x11b11c['getSuggestions']()['filter'](_0x51c158=>_0x51c158['isInContent']&&_0xc4a5b==_0x51c158['author']&&('formatBlock'==_0x51c158['type']||'formatInline'==_0x51c158['type'])&&('imageStylePreApply'==_0x51c158['subType']||'imageStylePostApply'==_0x51c158['subType'])&&_0x51c158['getFirstRange']()['isEqual'](_0x34efc7))['forEach'](_0x17f1dc=>_0x11b11c['discardSuggestion'](_0x17f1dc['head'])),_0x414ce4=_0xb249aa['getClosestSelectedImageElement'](_0x44765e['model']['document']['selection']),_0x34efc7=_0x44765e['model']['createRangeOn'](_0x414ce4),_0x268c20['refresh'](),_0x44765e['commands']['get']('imageTypeInline')['refresh'](),_0x44765e['commands']['get']('imageTypeBlock')['refresh'](),_0x373e0f=_0x268c20['value'],_0x373e0f!=_0x3334d4['value'])return _0xb249aa['isInlineImage'](_0x414ce4)&&_0x268c20['shouldConvertImageType'](_0x3334d4['value'],_0x414ce4)?(_0x8a6b5e({..._0x3334d4,'setImageSizes':!0x1}),_0x414ce4=_0xb249aa['getClosestSelectedImageElement'](_0x44765e['model']['document']['selection']),void _0x11b11c['markBlockFormat'](_0x414ce4,{..._0x3fcdec,'commandReversedParams':[{'value':_0x373e0f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb249aa['isBlockImage'](_0x414ce4)?_0x11b11c['markBlockFormat'](_0x414ce4,_0x3fcdec,[],'imageStylePostApply'):_0x11b11c['markInlineFormat'](_0x34efc7,_0x3fcdec,'imageStylePostApply'));});});for(const _0x3c04a7 of _0x44765e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x17f190[_0x3c04a7['name']]=_0x3c04a7['title']['toLowerCase']();_0x11b11c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x11b11c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x11b11c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x11b11c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x50b43c])=>{_0xb249aa['setImageNaturalSizeAttributes'](_0x50b43c['getContainedElement']());}),_0x11b11c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1cd2e4,_0x5259bd)=>{_0x11b11c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1cd2e4,{'commandName':_0x5259bd['commandName'],'commandParams':_0x5259bd['commandReversedParams']});}),_0x11b11c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11bcdc,_0x11670c){if(_0x514509(_0x11bcdc,_0x11670c))return[_0x11bcdc,_0x11670c];if(_0x514509(_0x11670c,_0x11bcdc))return[_0x11670c,_0x11bcdc];return null;});const _0xbf57c3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x514509(_0x26c1c7,_0x2e2c01){const _0x2f0ede=_0xbf57c3['findIndex'](({type:_0x1d007d,subType:_0x386cde})=>_0x26c1c7['type']==_0x1d007d&&_0x26c1c7['subType']==_0x386cde),_0x2525cf=_0xbf57c3['findIndex'](({type:_0x2aa05a,subType:_0xcb0283})=>_0x2e2c01['type']==_0x2aa05a&&_0x2e2c01['subType']==_0xcb0283);if(_0x2f0ede<0x0||_0x2525cf<0x0)return!0x1;const _0x5c6ade=_0x26c1c7['getFirstRange'](),_0x50dd83=_0x2e2c01['getFirstRange']();if((0x0==_0x2f0ede||0x1==_0x2f0ede)&&0x2==_0x2525cf&&_0x5c6ade['isIntersecting'](_0x50dd83))return!0x0;if(0x2==_0x2f0ede&&0x3==_0x2525cf){const _0x2af1a8=_0x11b11c['_findSuggestions'](_0x5c6ade,'insertion')['filter'](({suggestion:_0x546798,meta:_0x5198cc})=>_0x5198cc['isOwn']&&'convertInlineImageToBlock'==_0x546798['subType']);if(_0x2af1a8['length']>0x1&&_0x50dd83['end']['isEqual'](_0x5c6ade['start']))return!0x0;if(0x1==_0x2af1a8['length']&&(_0x5c6ade['start']['isEqual'](_0x50dd83['end'])||_0x5c6ade['end']['isEqual'](_0x50dd83['start'])))return!0x0;}if(0x3==_0x2f0ede&&0x3==_0x2525cf&&_0x5c6ade['start']['isBefore'](_0x50dd83['start'])){const _0x394f64=_0x5c6ade['end']['nodeAfter'],_0xb2a3a3=_0x50dd83['start']['nodeBefore'];return _0xb249aa['isBlockImage'](_0x394f64)&&_0x394f64===_0xb2a3a3;}return!0x1;}_0x44765e['model']['document']['registerPostFixer'](()=>{let _0x51f1c1=!0x1;const _0x3cd3a0=Array['from'](_0x44765e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56af68,data:_0x478251}of _0x3cd3a0){const {group:_0x436bbc,type:_0x4cbb4e,subType:_0x1a59f5,id:_0x2ce760}=_0x11b11c['_splitMarkerName'](_0x56af68);if('suggestion'==_0x436bbc&&_0x11b11c['hasSuggestion'](_0x2ce760)){if('formatBlock'==_0x4cbb4e&&('imageStylePreApply'==_0x1a59f5||'imageStylePostApply'==_0x1a59f5)){const _0x16df58=_0x11b11c['getSuggestion'](_0x2ce760);if(_0x478251['newRange']){const _0x387114=_0x16df58['getFirstRange']()['getContainedElement']();if(_0xb249aa['isBlockImage'](_0x387114))continue;_0x11b11c['discardSuggestion'](_0x16df58),_0x51f1c1=!0x0;}}if('insertion'==_0x4cbb4e&&'imageCaption'==_0x1a59f5&&!_0x478251['newRange']){const _0x260636=_0x11b11c['getSuggestion'](_0x2ce760);_0x260636['next']&&_0x260636['next']['isInContent']&&(_0x11b11c['discardSuggestion'](_0x260636['next']),_0x51f1c1=!0x0);}}}return _0x51f1c1;}),this['_registerLegacyDescription'](_0x17f190);}['_registerLegacyDescription'](_0x570454){const _0x3f3739=this['editor'],_0x4cd440=_0x3f3739['locale'];_0x3f3739['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfcfe4c=>{if('formatBlock'!=_0xfcfe4c['type']&&'formatInline'!=_0xfcfe4c['type'])return;const {data:_0x14e960}=_0xfcfe4c;if(!_0x14e960||'imageStyle'!=_0x14e960['commandName'])return;const _0x60ebaf=_0x14e960['commandParams'][0x0]['value'];return _0x1c2c75('side'===_0x60ebaf?c(_0x4cd440,'FORMAT_SIDE_IMAGE'):_0x570454[_0x60ebaf]||_0x60ebaf);function _0x1c2c75(_0x598310){return{'type':'format','content':c(_0x4cd440,'*Format:*\x20%0',_0x598310)};}});}}class ut extends _0x113b76{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11bba9){super(_0x11bba9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e1f56=this['editor'],_0x3b1671=_0x4e1f56['commands']['get']('importWord'),_0x5a9c9c=_0x4e1f56['commands']['get']('trackChanges');_0x3b1671&&(_0x3b1671['on']('execute',(_0x49f719,[,_0x4d7127])=>{this['_trackChangesValueDuringImport']=_0x5a9c9c['value'],_0x4d7127['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b1671,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b1671,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5a9c9c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e1f56['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46ff5b,_0xa08ffb){const {suggestions:_0x1f7701}=_0xa08ffb,_0x5da960=this['editor']['commands']['get']('trackChanges'),_0x186d2b=_0x5da960['value'];this['_trackChangesValueDuringImport']!==_0x186d2b&&(_0x5da960['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f7701&&_0x1f7701['forEach'](({id:_0x11b2ad,type:_0x24294d,author:_0x2d395a,created_at:_0x42717a})=>{const _0x4a179c={'id':_0x11b2ad,'type':_0x24294d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2d395a,'createdAt':_0x42717a?new Date(_0x42717a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4a179c);});}}class ft extends _0x113b76{['afterInit'](){const _0x59c288=this['editor'],_0x1db375=_0x59c288['plugins']['get']('TrackChangesEditing');if(_0x59c288['plugins']['has']('IndentEditing')&&(_0x1db375['enableCommand']('indent'),_0x1db375['enableCommand']('outdent')),_0x59c288['plugins']['has']('IndentBlock')){for(const _0x347820 of['indentBlock','outdentBlock'])_0x1db375['enableDefaultAttributesIntegration'](_0x347820);}const _0x5016e7=_0x59c288['locale'];_0x1db375['registerBlockAttribute']('blockIndent'),_0x1db375['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5016e7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f6f6=this['editor'],_0x11da52=_0x20f6f6['locale'],_0x3df1ad=_0x20f6f6['plugins']['get']('TrackChangesEditing');_0x3df1ad['descriptionFactory']['registerDescriptionCallback'](_0x4e20ed=>{if('formatBlock'!=_0x4e20ed['type'])return;const {data:_0x50fe1d}=_0x4e20ed;if(!_0x50fe1d)return;if('indentBlock'!=_0x50fe1d['commandName']&&'outdentBlock'!=_0x50fe1d['commandName'])return;const _0x227ee6=_0x4e20ed['getItems']()[0x0],_0xa86ad7=_0x3df1ad['descriptionFactory']['getItemLabel'](_0x227ee6);return'indentBlock'==_0x50fe1d['commandName']?{'type':'format','content':c(_0x11da52,'*Indent:*\x20%0',_0xa86ad7)}:'outdentBlock'==_0x50fe1d['commandName']?{'type':'format','content':c(_0x11da52,'*Outdent:*\x20%0',_0xa86ad7)}:void 0x0;});}}class ht extends _0x113b76{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x113b76{['afterInit'](){const _0xf585cb=this['editor'];if(!_0xf585cb['plugins']['has']('LinkEditing'))return;const _0xf0d01a=_0xf585cb['plugins']['get']('TrackChangesEditing'),_0x16299a=_0xf585cb['commands']['get']('link');_0xf0d01a['enableDefaultAttributesIntegration']('link'),_0xf0d01a['enableDefaultAttributesIntegration']('unlink'),_0xf0d01a['registerInlineAttribute']('linkHref');for(const _0xccaf45 of _0x16299a['manualDecorators'])_0xf0d01a['registerInlineAttribute'](_0xccaf45['id']),_0xf0d01a['descriptionFactory']['registerAttributeLabel'](_0xccaf45['id'],'link\x20('+_0xccaf45['label']['toLowerCase']()+')');_0xf0d01a['descriptionFactory']['registerDescriptionCallback'](_0x2a5936=>{if('attribute'!=_0x2a5936['type'])return;const {data:_0x1a5914}=_0x2a5936;if(!_0x1a5914||'linkHref'!=_0x1a5914['key'])return;const _0x5cff3a=_0x1a5914['newValue'],_0x309b9d=_0xf585cb['locale'];return{'type':'format','content':null==_0x5cff3a?c(_0x309b9d,'*Remove\x20link*'):c(_0x309b9d,'*Set\x20link:*\x20%0','\x22'+_0x5cff3a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ab3e1=this['editor'],_0xafe9be=_0x5ab3e1['locale'];_0x5ab3e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x367539=>{if('formatInline'!=_0x367539['type'])return;const {data:_0x280aef}=_0x367539;if(_0x280aef){if('link'==_0x280aef['commandName']){const _0x3214ed=_0x280aef['commandParams'][0x0];return{'type':'format','content':c(_0xafe9be,'*Set\x20link:*\x20%0','\x22'+_0x3214ed+'\x22')};}return'unlink'==_0x280aef['commandName']?{'type':'format','content':c(_0xafe9be,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x113b76{['afterInit'](){const _0x291c09=this['editor'],_0x306aef=_0x291c09['locale'];if(!_0x291c09['plugins']['has']('LegacyListEditing'))return;const _0x2094a0=_0x291c09['plugins']['get']('TrackChangesEditing'),_0x216371=_0x291c09['plugins']['has']('LegacyTodoListEditing');function _0x23d07d(_0x2a6cba){return()=>{const _0x3c6cec=_0x291c09['model']['document']['selection'],_0x38b0b2=_0x291c09['commands']['get'](_0x2a6cba);if(_0x38b0b2['value'])return void _0x291c09['execute']('paragraph',{});const _0x43edd3=_0x2a6cba['slice'](0x0,-0x4),_0x3c63c5=function(_0x53e7aa,_0x3ed4d5,_0x37819b){let _0x193c50=Array['from'](_0x53e7aa)['filter'](_0xf3b875=>function(_0x2d8eda,_0x20e2da){return _0x20e2da['checkChild'](_0x2d8eda['parent'],'listItem')&&!_0x20e2da['isObject'](_0x2d8eda);}(_0xf3b875,_0x37819b));_0x193c50=_0x193c50['filter'](_0x10a5bc=>!_0x10a5bc['is']('element','listItem')||_0x10a5bc['getAttribute']('listType')!=_0x3ed4d5);const _0x272d16=new Set();for(const _0x4915a3 of _0x193c50)_0x4915a3['is']('element','listItem')?_0x272d16['add'](Le(_0x4915a3)):_0x272d16['add'](_0x4915a3);return Array['from'](_0x272d16);}(_0x3c6cec['getSelectedBlocks'](),_0x43edd3,_0x291c09['model']['schema']);_0x291c09['model']['change'](()=>{for(const _0x589620 of _0x3c63c5)_0x2094a0['markBlockFormat'](_0x589620,{'commandName':_0x2a6cba,'commandParams':[{'forceValue':!_0x38b0b2['value']}],'formatGroupId':'blockName'},Ee(_0x589620));});};}function _0x5c9269(_0x3f54f6){return()=>{const _0x38bccd=function(_0xb7168a){let _0x57068a=Array['from'](_0xb7168a);const _0x501e0a=_0x57068a['findIndex'](_0x18c7ec=>'listItem'!=_0x18c7ec['name']);return _0x501e0a>-0x1&&(_0x57068a=_0x57068a['slice'](0x0,_0x501e0a)),_0x57068a;}(_0x291c09['model']['document']['selection']['getSelectedBlocks']()),_0x119c02=_0x291c09['model']['createRange'](_0x291c09['model']['createPositionAt'](_0x38bccd[0x0],'before'),_0x291c09['model']['createPositionAt'](_0x38bccd[_0x38bccd['length']-0x1],'end'));_0x291c09['model']['change'](()=>{_0x2094a0['markBlockFormat'](_0x119c02,{'commandName':_0x3f54f6,'commandParams':[],'formatGroupId':'listIndent'},function(_0xe3b69e){const _0x3f3e27=new Set();for(const _0x5c120c of _0xe3b69e){let _0x5ca1ce=_0x5c120c['nextSibling'];for(;_0x5ca1ce&&_0x5ca1ce['getAttribute']('listIndent')>_0x5c120c['getAttribute']('listIndent');)_0x3f3e27['add'](_0x5ca1ce),_0x5ca1ce=_0x5ca1ce['nextSibling'];}return Array['from'](_0x3f3e27);}(_0x38bccd));});};}_0x2094a0['enableCommand']('numberedList',_0x23d07d('numberedList')),_0x2094a0['enableCommand']('bulletedList',_0x23d07d('bulletedList')),_0x216371&&_0x2094a0['enableCommand']('todoList',_0x23d07d('todoList')),_0x2094a0['enableCommand']('indentList',_0x5c9269('indentList')),_0x2094a0['enableCommand']('outdentList',_0x5c9269('outdentList')),_0x216371&&_0x2094a0['enableCommand']('checkTodoList',()=>{const _0x526ba6=_0x291c09['commands']['get']('checkTodoList'),_0xf0e44b=Array['from'](_0x526ba6['_selectedElements']);_0xf0e44b['filter'](_0x4231e0=>_0x4231e0['getAttribute']('todoListChecked')!=_0x526ba6['value']),_0x291c09['model']['change'](()=>{for(const _0x43367b of _0xf0e44b)_0x2094a0['markBlockFormat'](_0x43367b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x526ba6['value']}]});});}),_0x2094a0['descriptionFactory']['registerElementLabel']('listItem',_0x408820=>c(_0x306aef,'ELEMENT_LIST_ITEM',_0x408820)),_0x2094a0['descriptionFactory']['registerDescriptionCallback'](_0x4f52b0=>{if('formatBlock'!=_0x4f52b0['type']&&'formatInline'!=_0x4f52b0['type'])return;const {data:_0x37a955}=_0x4f52b0;if(_0x37a955){if('numberedList'==_0x37a955['commandName']||'bulletedList'==_0x37a955['commandName']||'todoList'==_0x37a955['commandName'])switch(_0x37a955['commandName']['replace']('List','')){case'bulleted':return _0x2b60e8(c(_0x306aef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b60e8(c(_0x306aef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b60e8(c(_0x306aef,'ELEMENT_TODO_LIST'));}if('indentList'==_0x37a955['commandName'])return{'type':'format','content':c(_0x306aef,'*Indent:*\x20%0',c(_0x306aef,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x37a955['commandName'])return{'type':'format','content':c(_0x306aef,'*Outdent:*\x20%0',c(_0x306aef,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x37a955['commandName'])return _0x37a955['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x306aef,'*Check\x20item*')}:{'type':'format','content':c(_0x306aef,'*Uncheck\x20item*')};}function _0x2b60e8(_0x1b72ee){return{'type':'format','content':c(_0x306aef,'*Change\x20to:*\x20%0',_0x1b72ee)};}});}}function Le(_0x34e5ce){const _0x535bbe=_0x34e5ce['getAttribute']('listIndent');if(0x0==_0x535bbe)return _0x34e5ce;let _0x4a9cee=_0x34e5ce;for(;_0x34e5ce['previousSibling']&&_0x34e5ce['previousSibling']['is']('element','listItem');){const _0x26f660=_0x34e5ce['previousSibling']['getAttribute']('listIndent');if(_0x26f660==_0x535bbe)_0x4a9cee=_0x34e5ce['previousSibling'];else{if(_0x26f660<_0x535bbe)break;}_0x34e5ce=_0x34e5ce['previousSibling'];}return _0x4a9cee;}function Ee(_0x493318){const _0x48ecc9=[];if(_0x493318['is']('element','listItem')&&_0x493318['getAttribute']('listIndent')>0x0){let _0xbeb66e=_0x493318['nextSibling'];for(;_0xbeb66e&&'listItem'==_0xbeb66e['name']&&_0xbeb66e['getAttribute']('listIndent')==_0x493318['getAttribute']('listIndent');)_0x48ecc9['push'](_0xbeb66e),_0xbeb66e=_0xbeb66e['nextSibling'];}return _0x48ecc9;}class Q extends _0x113b76{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2aea0c=this['editor']['config']['get']('list.properties'),_0x5e9bc2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2aea0c['styles']&&_0x5e9bc2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2aea0c['reversed']&&_0x5e9bc2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2aea0c['startIndex']&&_0x5e9bc2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5e9bc2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3bb119,_0x186e66={}){const _0x2ce01e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16aa52=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2ce01e['markMultiRangeBlockFormat'](_0x16aa52,{'commandName':'listStyle','commandParams':[{'type':_0x186e66['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4b0262,_0x1da847={}){const _0x529fe8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x542b7c=this['_getSuggestionBlocks'](_0x29e887=>_0x29e887['is']('element','listItem')&&'numbered'===_0x29e887['getAttribute']('listType'));if(_0x542b7c['length']<0x1)return;const _0x3e2162=_0x542b7c['map'](_0x33b65f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33b65f,'before'),this['editor']['model']['createPositionAt'](_0x33b65f,0x0)));this['editor']['model']['change'](()=>{_0x529fe8['markMultiRangeBlockFormat'](_0x3e2162,{'commandName':'listReversed','commandParams':[{'reversed':_0x1da847['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x228e39,_0x43e33b={}){const _0x1dee28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x243ae8=this['_getSuggestionBlocks'](_0x113029=>_0x113029['is']('element','listItem')&&'numbered'===_0x113029['getAttribute']('listType'));if(_0x243ae8['length']<0x1)return;const _0x4a5e21=_0x243ae8['map'](_0xbc21c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbc21c1,'before'),this['editor']['model']['createPositionAt'](_0xbc21c1,0x0)));this['editor']['model']['change'](()=>{_0x1dee28['markMultiRangeBlockFormat'](_0x4a5e21,{'commandName':'listStart','commandParams':[{'startIndex':_0x43e33b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20244f){if('formatBlock'!=_0x20244f['type']&&'formatInline'!=_0x20244f['type'])return;const _0x53f68a=this['editor']['locale'],{data:_0x1ea41f}=_0x20244f;if(!_0x1ea41f)return;let _0x5e4751,_0x4c1a4d;switch(_0x1ea41f['commandName']){case'listStyle':_0x5e4751='*Change\x20to:*\x20%0',_0x4c1a4d={'type':'format','content':c(_0x53f68a,_0x5e4751,c(_0x53f68a,this['_getTranslationKeyForListStyle'](_0x1ea41f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e4751=_0x1ea41f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c1a4d={'type':'format','content':c(_0x53f68a,_0x5e4751)};break;case'listStart':_0x5e4751='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c1a4d={'type':'format','content':c(_0x53f68a,_0x5e4751,_0x1ea41f['commandParams'][0x0]['startIndex'])};}return _0x4c1a4d;}['_getSuggestionBlocksForListStyle'](){const _0x44155b=this['editor']['plugins']['get']('LegacyListUtils');let _0x2aa439=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2aa439[0x0]?.['is']('element','listItem')&&_0x2aa439['unshift'](..._0x44155b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2aa439[_0x2aa439['length']-0x1]?.['is']('element','listItem')&&_0x2aa439['push'](..._0x44155b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2aa439=[...new Set(_0x2aa439)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2aa439=_0x2aa439['filter'](_0x4dfbc9=>_0x4dfbc9['is']('element','listItem'))),_0x2aa439;}['_getSuggestionBlocks'](_0x48c459){const _0x492c67=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c05f0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x48c459)['map'](_0xaf350b=>{const _0x2a1ad3=this['editor']['model']['createPositionAt'](_0xaf350b,0x0);return[..._0x492c67['getSiblingNodes'](_0x2a1ad3,'backward'),..._0x492c67['getSiblingNodes'](_0x2a1ad3,'forward')];})['flat']();return _0x5c05f0=[...new Set(_0x5c05f0)],_0x5c05f0;}['_getTranslationKeyForListStyle'](_0x1d8081){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1d8081)||'default')['toUpperCase']()+'_LIST_'+_0x1d8081['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x113b76{['afterInit'](){const _0x58bbbe=this['editor'];if(!_0x58bbbe['plugins']['has']('MediaEmbedEditing'))return;const _0x2a0d62=_0x58bbbe['plugins']['get']('TrackChangesEditing'),_0x378bc9=_0x58bbbe['locale'];_0x2a0d62['enableCommand']('mediaEmbed'),_0x2a0d62['descriptionFactory']['registerElementLabel']('media',_0x33ac00=>c(_0x378bc9,'ELEMENT_MEDIA',_0x33ac00)),_0x58bbbe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x475acb,{writer:_0x12ac54,options:_0x492f17})=>{if(_0x492f17['showSuggestionHighlights'])return _0x12ac54['createEmptyElement']('div');},'converterPriority':'high'}),_0x58bbbe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1e71c4,_0x114a59,_0x83f8e9)=>{_0x83f8e9['options']['showSuggestionHighlights']&&_0x1e71c4['stop']();},{'priority':'high'});}}class pt extends _0x113b76{['afterInit'](){const _0x222165=this['editor'];_0x222165['plugins']['has']('MentionEditing')&&_0x222165['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x113b76{['afterInit'](){const _0x43da90=this['editor'];if(!_0x43da90['plugins']['has']('MergeFieldsEditing'))return;const _0x4a1362=_0x43da90['plugins']['get']('TrackChangesEditing'),_0x220cc0=_0x43da90['locale'];_0x4a1362['enableCommand']('insertMergeField'),_0x4a1362['enableCommand']('insertMergeFieldBlock'),_0x4a1362['enableCommand']('insertMergeFieldImage'),_0x4a1362['descriptionFactory']['registerElementLabel']('mergeField',_0x3d20c5=>c(_0x220cc0,'ELEMENT_MERGE_FIELD',_0x3d20c5)),_0x4a1362['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x54452f=>c(_0x220cc0,'ELEMENT_MERGE_FIELD',_0x54452f)),_0x4a1362['descriptionFactory']['registerDescriptionCallback'](_0x362f3d=>{if('insertion'!=_0x362f3d['type']&&'deletion'!=_0x362f3d['type'])return;const _0xbacd4a=_0x362f3d['getContainedElement']();if(null==_0xbacd4a)return;const _0x20c65c=_0x43da90['plugins']['get']('MergeFieldsEditing');let _0x41879d;switch(_0x20c65c['getMergeFieldType'](_0xbacd4a)){case null:return;case'image':{const _0x5e57ee=_0x20c65c['unwrapAffixes'](_0xbacd4a['getAttribute']('src'));_0x41879d=_0x20c65c['getLabel'](_0x5e57ee)||_0x5e57ee;break;}default:{const _0x3456ef=_0xbacd4a['getAttribute']('id');_0x41879d=_0x20c65c['getLabel'](_0x3456ef)||_0x3456ef;break;}}return'insertion'==_0x362f3d['type']?{'type':'insertion','content':c(_0x220cc0,'*Insert:*\x20%0','\x22'+_0x41879d+'\x22\x20'+c(_0x220cc0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x220cc0,'*Remove:*\x20%0','\x22'+_0x41879d+'\x22\x20'+c(_0x220cc0,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x113b76{['afterInit'](){const _0xa380bb=this['editor'],_0x519906=_0xa380bb['plugins']['get']('TrackChangesEditing');_0xa380bb['plugins']['has']('MultiLevelList')&&(_0x519906['enableDefaultAttributesIntegration']('multiLevelList'),_0x519906['registerBlockAttribute']('listMarkerStyle'),_0x519906['descriptionFactory']['registerDescriptionCallback'](_0x252139=>this['handleDescriptions'](_0x252139)));}['handleDescriptions'](_0x2d0875){const _0x6641e=this['editor']['locale'],{data:_0x21abd6}=_0x2d0875,_0x4ed430={'type':'format','content':''};if(_0x21abd6&&'listMarkerStyle'==_0x21abd6['key']){if(!_0x21abd6['oldValue'])return{'type':'format','content':c(_0x6641e,'*Set\x20format:*\x20%0',c(_0x6641e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21abd6['newValue']+')'};if(!_0x21abd6['newValue']){let _0x15a728=_0x2d0875['head'];for(;_0x15a728;){if(_0x15a728['data']&&'listType'==_0x15a728['data']['key']&&_0x15a728['data']['newValue'])return _0x4ed430;_0x15a728=_0x15a728['next'];}return{'type':'format','content':c(_0x6641e,'*Remove\x20format:*\x20%0',c(_0x6641e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21abd6['oldValue']+')'};}}}}class bt extends _0x113b76{['afterInit'](){const _0x427e6b=this['editor'];if(!_0x427e6b['plugins']['has']('PageBreakEditing'))return;_0x427e6b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x37a102=_0x427e6b['plugins']['get']('TrackChangesEditing'),_0x3e4539=_0x427e6b['locale'];_0x37a102['descriptionFactory']['registerElementLabel']('pageBreak',_0x464bf2=>c(_0x3e4539,'ELEMENT_PAGE_BREAK',_0x464bf2));}}class yt extends _0x113b76{['afterInit'](){const _0x11d079=this['editor'];if(!_0x11d079['plugins']['has']('Paragraph'))return;const _0x117d96=_0x11d079['locale'],_0x36537d=_0x11d079['plugins']['get']('TrackChangesEditing');_0x36537d['descriptionFactory']['registerElementLabel']('paragraph',_0x107517=>c(_0x117d96,'ELEMENT_PARAGRAPH',_0x107517)),_0x36537d['enableDefaultAttributesIntegration']('paragraph'),_0x36537d['enableCommand']('insertParagraph'),_0x11d079['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x11d079),{'priority':'highest'}),_0x11d079['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38e63a,_0x58ae2c,_0x46ce96)=>{_0x46ce96['options']['showSuggestionHighlights']&&nr(_0x11d079,{'showActiveMarker':!0x1})(_0x38e63a,_0x58ae2c,_0x46ce96);},{'priority':'highest'});const _0x458def=_0x36537d['descriptionFactory'];_0x458def['registerDescriptionCallback'](_0x452284=>{if('insertion'!==_0x452284['type'])return;const {start:_0x39092a,end:_0x307c9b}=_0x452284['getFirstRange']();if(!_0x39092a['isTouching'](_0x307c9b)||!_0x39092a['nodeAfter'])return;const _0x19fb8f=_0x11d079['model']['schema'],_0x3a88dc=_0x39092a['nodeAfter'];return _0x19fb8f['isBlock'](_0x3a88dc)&&!_0x19fb8f['isLimit'](_0x3a88dc)&&_0x19fb8f['checkChild'](_0x3a88dc,'$text')?{'type':'insertion','content':c(_0x117d96,'*Insert:*\x20%0',_0x458def['getItemLabel'](_0x3a88dc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf4dcbb=this['editor'],_0x50244e=_0xf4dcbb['locale'];_0xf4dcbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30aba4=>{if('formatBlock'!=_0x30aba4['type'])return;const {data:_0x93b57a}=_0x30aba4;return _0x93b57a&&'paragraph'==_0x93b57a['commandName']?{'type':'format','content':c(_0x50244e,'*Change\x20to:*\x20%0',c(_0x50244e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x534e47,{showActiveMarker:_0x3c46bc=!0x0}={}){return(_0x2858bd,_0x839fb7,_0xc15877)=>{const _0x277bbf=_0x534e47['plugins']['get']('TrackChangesEditing'),_0x31cd7b=_0x839fb7['markerRange']['start'],_0x2afc31=_0x839fb7['markerRange']['end'],_0x2393e0=_0x534e47['model']['schema'];if(!_0x31cd7b['isTouching'](_0x2afc31)||!_0x31cd7b['nodeAfter'])return;const _0x517a31=_0x31cd7b['nodeAfter'];if(_0x2393e0['isBlock'](_0x517a31)&&!_0x2393e0['isLimit'](_0x517a31)&&_0x2393e0['checkChild'](_0x517a31,'$text')){if(!_0xc15877['consumable']['consume'](_0x839fb7['markerRange'],_0x2858bd['name']))return;const {id:_0x3473df,authorId:_0xc35aef}=_0x277bbf['_splitMarkerName'](_0x839fb7['markerName']),_0x2e329f=_0xc15877['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3473df,'data-author-id':_0xc35aef}),_0x21f817=_0xc15877['mapper']['toViewPosition'](_0x2afc31);_0x3c46bc&&_0x277bbf['activeMarkers']['includes'](_0x839fb7['markerName'])&&_0xc15877['writer']['addClass']('ck-suggestion-marker--active',_0x2e329f),_0xc15877['writer']['insert'](_0x21f817,_0x2e329f),_0xc15877['mapper']['bindElementToMarker'](_0x2e329f,_0x839fb7['markerName']);}};}class St extends _0x113b76{['afterInit'](){const _0x2df44a=this['editor'];_0x2df44a['commands']['get']('replaceSource')&&_0x2df44a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x113b76{['afterInit'](){const _0x1fdb23=this['editor'];if(!_0x1fdb23['plugins']['has']('RemoveFormatEditing'))return;_0x1fdb23['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b2e65=this['editor'];_0x2b2e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59c8ab=>{if('formatBlock'!=_0x59c8ab['type']&&'formatInline'!=_0x59c8ab['type'])return;const {data:_0x3ebfda}=_0x59c8ab;return _0x3ebfda&&'removeFormat'==_0x3ebfda['commandName']?{'type':'format','content':c(_0x2b2e65['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x113b76{['afterInit'](){const _0x2eb279=this['editor'];if(!_0x2eb279['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x447fef=_0x2eb279['plugins']['get']('TrackChangesEditing');_0x447fef['enableCommand']('goToPreviousRestrictedEditingException'),_0x447fef['enableCommand']('goToNextRestrictedEditingException');const _0x3fb7ae=_0x2eb279['plugins']['get']('RestrictedEditingModeEditing');_0x3fb7ae['enableCommand']('trackChanges'),_0x3fb7ae['enableCommand']('acceptSuggestion'),_0x3fb7ae['enableCommand']('discardSuggestion'),_0x3fb7ae['enableCommand']('acceptAllSuggestions'),_0x3fb7ae['enableCommand']('discardAllSuggestions'),_0x3fb7ae['enableCommand']('acceptSelectedSuggestions'),_0x3fb7ae['enableCommand']('discardSelectedSuggestions');}}class At extends _0x113b76{['afterInit'](){const _0x5cc083=this['editor'];if(!_0x5cc083['plugins']['has']('ShiftEnter'))return;const _0x3ce41d=_0x5cc083['plugins']['get']('TrackChangesEditing');_0x3ce41d['enableCommand']('shiftEnter'),_0x5cc083['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5cc083),{'priority':'high'}),_0x5cc083['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5cc083),{'priority':'high'}),_0x5cc083['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x229128,_0x2494a9,_0x18157e)=>{_0x18157e['options']['showSuggestionHighlights']&&je(_0x5cc083,{'showActiveMarker':!0x1})(_0x229128,_0x2494a9,_0x18157e);}),_0x3ce41d['descriptionFactory']['registerElementLabel']('softBreak',_0x5f21ae=>c(_0x5cc083['locale'],'ELEMENT_LINE_BREAK',_0x5f21ae));}}function je(_0x2abc45,{showActiveMarker:_0x4e8cc6=!0x0}={}){return(_0x4e19ac,_0x2503e7,_0x3d43dc)=>{const _0x39869b=_0x2abc45['plugins']['get']('TrackChangesEditing');if(!_0x3d43dc['consumable']['test'](_0x2503e7['markerRange'],_0x4e19ac['name']))return;const _0x2b5e8e=_0x2abc45['model'];for(const _0x4f9bc7 of _0x2503e7['markerRange']['getItems']()){if(!_0x4f9bc7['is']('element','softBreak'))continue;const _0x26941d='deletion'==_0x2503e7['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xaaeb9,authorId:_0x4c67bc}=_0x39869b['_splitMarkerName'](_0x2503e7['markerName']),_0x374110=_0x3d43dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26941d,'data-suggestion':_0xaaeb9,'data-author-id':_0x4c67bc}),_0xb49189=_0x3d43dc['mapper']['toViewPosition'](_0x2b5e8e['createPositionBefore'](_0x4f9bc7));_0x4e8cc6&&_0x39869b['activeMarkers']['includes'](_0x2503e7['markerName'])&&_0x3d43dc['writer']['addClass']('ck-suggestion-marker--active',_0x374110),_0x3d43dc['writer']['insert'](_0xb49189,_0x374110),_0x3d43dc['mapper']['bindElementToMarker'](_0x374110,_0x2503e7['markerName']);}};}class _t extends _0x113b76{['afterInit'](){const _0x11eb11=this['editor'],_0x2efba8=_0x11eb11['model'],_0x4579ce=_0x11eb11['locale'];if(!_0x11eb11['plugins']['has']('StandardEditingModeEditing'))return;const _0x570136=_0x11eb11['plugins']['get']('TrackChangesEditing'),_0xf84697='restrictedEditingException',_0x2135f1=_0x11eb11['commands']['get'](_0xf84697);_0x570136['enableCommand'](_0xf84697,(_0x1dd558,_0x5bcbdb={})=>{const _0x410f28=_0x2efba8['document']['selection'];if(_0x410f28['isCollapsed'])return void _0x1dd558(_0x5bcbdb);const _0x588608=void 0x0!==_0x5bcbdb['forceValue']?_0x5bcbdb['forceValue']:!_0x2135f1['value'];_0x2efba8['change'](()=>{const _0x132115=Array['from'](_0x410f28['getRanges']());for(const _0x55fcd8 of _0x132115){const _0x27c01f=_0x588608?[_0x55fcd8]:io(_0xf84697,_0x55fcd8,_0x2efba8);for(const _0x2e7891 of _0x27c01f)_0x570136['markInlineFormat'](_0x2e7891,{'commandName':_0xf84697,'commandParams':[{'forceValue':_0x588608}]});}});}),_0x570136['descriptionFactory']['registerDescriptionCallback'](_0x56c856=>{if('formatBlock'!=_0x56c856['type']&&'formatInline'!=_0x56c856['type'])return;const {data:_0x4c3076}=_0x56c856;return _0x4c3076&&_0x4c3076['commandName']==_0xf84697?_0x4c3076['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4579ce,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x4579ce,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x113b76{['afterInit'](){const _0x413c0e=this['editor'];if(!_0x413c0e['plugins']['has']('Style')||!_0x413c0e['plugins']['has']('DataSchema'))return;const _0x3d51e3=_0x413c0e['plugins']['get']('TrackChangesEditing'),_0x1564a8=_0x413c0e['locale'],_0x3eec13=_0x413c0e['config']['get']('style')||{},_0x404dfc=_0x413c0e['plugins']['get']('GeneralHtmlSupport'),_0x377191=_0x413c0e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x413c0e['plugins']['get']('DataSchema'),_0x3eec13['definitions']);_0x3d51e3['enableDefaultAttributesIntegration']('style');const _0x534ff2=new Set();for(const _0x4b9edd of _0x377191['block']){const _0x359582=_0x404dfc['getGhsAttributeNameForElement'](_0x4b9edd['element']);_0x534ff2['add'](_0x359582);}const _0x4c9a5a=new Set();for(const _0x1b55cf of _0x377191['inline']){const _0xf42247=_0x404dfc['getGhsAttributeNameForElement'](_0x1b55cf['element']);_0x4c9a5a['add'](_0xf42247);for(const _0x5a5613 of _0x1b55cf['ghsAttributes'])_0x4c9a5a['add'](_0x5a5613);}for(const _0x5e7dbd of _0x534ff2)_0x3d51e3['registerBlockAttribute'](_0x5e7dbd),_0x3d51e3['descriptionFactory']['registerAttributeLabel'](_0x5e7dbd,c(_0x1564a8,'FORMAT_STYLE'));for(const _0xbc0454 of _0x4c9a5a)_0x3d51e3['registerInlineAttribute'](_0xbc0454),_0x3d51e3['descriptionFactory']['registerAttributeLabel'](_0xbc0454,c(_0x1564a8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb29f=this['editor'],_0x34f0d0=_0x4fb29f['locale'];_0x4fb29f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d210c=>{if('formatBlock'!=_0x5d210c['type']&&'formatInline'!=_0x5d210c['type'])return;const {data:_0x5c83e9}=_0x5d210c;return _0x5c83e9&&'style'===_0x5c83e9['commandName']?_0x5c83e9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x34f0d0,'*Set\x20format:*\x20%0',_0x5c83e9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x34f0d0,'*Remove\x20format:*\x20%0',_0x5c83e9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x113b76{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xf32bf9){super(_0xf32bf9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x70231d=this['editor'],_0xe2cfb2=_0x70231d['model']['document']['selection'];if(!_0x70231d['plugins']['has']('TableEditing'))return;const _0x495f0b=_0x70231d['locale'],_0x539191=_0x70231d['plugins']['get']('TrackChangesEditing'),_0x1f1af4=_0x70231d['plugins']['get']('TableUtils');_0x539191['descriptionFactory']['registerElementLabel']('table',_0xe3fea0=>c(_0x495f0b,'ELEMENT_TABLE',_0xe3fea0)),this['_setupColumnsRowsFixing'](),_0x539191['enableCommand']('insertTable'),_0x539191['enableCommand']('selectTableRow'),_0x539191['enableCommand']('selectTableColumn');for(const _0x4559c9 of['insertTableRowAbove','insertTableRowBelow']){const _0x34a971=_0x70231d['commands']['get'](_0x4559c9);_0x539191['enableCommand'](_0x4559c9,_0x2bfcf2=>{_0x70231d['model']['change'](_0x12bd03=>{_0x2bfcf2();const _0x1d20cd='above'===_0x34a971['order'],_0x2a318a=_0x1f1af4['getSelectionAffectedTableCells'](_0xe2cfb2),_0x5ec353=_0x1f1af4['getRowIndexes'](_0x2a318a),_0x8ded3=_0x1d20cd?_0x5ec353['first']-0x1:_0x5ec353['last']+0x1,_0x439422=_0x2a318a[0x0]['findAncestor']('table'),_0x4b5cec=_0x1f1af4['createTableWalker'](_0x439422,{'startRow':_0x8ded3,'endRow':_0x8ded3}),_0x364c5a=Array['from'](_0x4b5cec)['map'](_0xd3bda3=>_0x12bd03['createRangeOn'](_0xd3bda3['cell']));_0x539191['markMultiRangeInsertion'](_0x364c5a,'tableRow');});});}for(const _0x18d215 of['insertTableColumnLeft','insertTableColumnRight']){const _0x11bc16=_0x70231d['commands']['get'](_0x18d215);_0x539191['enableCommand'](_0x18d215,_0x39d034=>{_0x70231d['model']['change'](_0x1e9f77=>{_0x39d034();const _0x1793ca='left'===_0x11bc16['order'],_0x2d96b2=_0x1f1af4['getSelectionAffectedTableCells'](_0xe2cfb2),_0x161450=_0x1f1af4['getColumnIndexes'](_0x2d96b2),_0x53cb8d=_0x1793ca?_0x161450['first']-0x1:_0x161450['last']+0x1,_0x4f64b6=_0x2d96b2[0x0]['findAncestor']('table'),_0x15a7f4=_0x1f1af4['createTableWalker'](_0x4f64b6,{'startRow':0x0,'column':_0x53cb8d,'includeAllSlots':!0x1}),_0x4552ca=Array['from'](_0x15a7f4)['map'](_0x1495b4=>_0x1e9f77['createRangeOn'](_0x1495b4['cell']));_0x539191['markMultiRangeInsertion'](_0x4552ca,'tableColumn');});});}for(const _0x16f833 of['removeTableRow','removeTableColumn']){const _0x52557a=_0x16f833['substr'](0xb),_0x4c9e45=_0x52557a['toLowerCase'](),_0x6f77f0=_0x4c9e45['substr'](0x0,0x3)+'span',_0x422c03='table'+_0x52557a,_0x46a578='min'+_0x52557a,_0x188be5='max'+_0x52557a;_0x539191['enableCommand'](_0x16f833,()=>{_0x70231d['model']['change'](_0xc43051=>{const _0x375ae7=_0x1f1af4['getSelectionAffectedTableCells'](_0xe2cfb2),_0x24a7b7=_0x375ae7[0x0]['findAncestor']('table');let _0x554aef;if('removeTableRow'==_0x16f833){const _0x55c622=_0x1f1af4['getRowIndexes'](_0x375ae7);_0x554aef={'startRow':_0x55c622['first'],'endRow':_0x55c622['last'],'includeAllSlots':!0x0};}else{const _0x3979ec=_0x1f1af4['getColumnIndexes'](_0x375ae7);_0x554aef={'startColumn':_0x3979ec['first'],'endColumn':_0x3979ec['last'],'includeAllSlots':!0x0};}const _0x1d9644=_0x1f1af4['createTableWalker'](_0x24a7b7,_0x554aef),_0xb087ea=Array['from'](_0x1d9644)['map'](({cell:_0x299f88})=>_0x299f88),_0x4ddcf0=xe(_0xb087ea['filter'](_0x147665=>_0x147665['hasAttribute'](_0x6f77f0))),_0xaf8fd3=xe(_0xb087ea['filter'](_0xf25bfd=>!_0xf25bfd['hasAttribute'](_0x6f77f0)))['map'](_0x2d9495=>_0xc43051['createRangeOn'](_0x2d9495)),_0x49d88b=_0x539191['markMultiRangeDeletion'](_0xaf8fd3,_0x422c03);if(_0x49d88b&&('tableRow'==_0x49d88b['subType']||'tableColumn'==_0x49d88b['subType'])){const _0x59c9bf=this['_getSuggestionCoords'](_0x49d88b);for(const _0x11b01e of _0x4ddcf0){const _0x1ff559=_0xc43051['createRangeOn'](_0x11b01e),_0x15978e=_0x1f1af4['getCellLocation'](_0x11b01e),_0x21e482=_0x11b01e['getAttribute'](_0x6f77f0)-0x1,_0x295ae4=_0x59c9bf[_0x46a578],_0x5dcd4d=_0x59c9bf[_0x188be5];_0x295ae4<=_0x15978e[_0x4c9e45]&&_0x15978e[_0x4c9e45]+_0x21e482<=_0x5dcd4d&&_0x49d88b['addRange'](_0x1ff559);}}});});}function _0x2c9eae(_0x41b7ce){const _0x54e3c9=Array['from'](_0xe2cfb2['getRanges']())['map'](_0x390181=>_0x31030b['fromRange'](_0x390181));_0x70231d['model']['change'](_0x572a27=>{const _0x2650db=_0x572a27['batch'];_0x41b7ce=_0x41b7ce['filter'](_0x637466=>'$graveyard'!=_0x637466['root']['rootName']),_0x572a27['setSelection'](_0x41b7ce),_0x70231d['commands']['get']('removeTableRow')['refresh'](),_0x70231d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x70231d['model']['enqueueChange'](()=>{_0x70231d['model']['enqueueChange'](_0x2650db,_0x11292b=>{const _0x6d4139=_0x54e3c9['filter'](_0x58d6c4=>'$graveyard'!=_0x58d6c4['root']['rootName']);_0x6d4139['length']>0x0&&_0x11292b['setSelection'](_0x6d4139);for(const _0x57a0bd of _0x54e3c9)_0x57a0bd['detach']();});});});}function _0x232906(_0x2176a4){_0x70231d['model']['change'](_0x45ff43=>{const _0x4b92b1=Array['from'](_0xe2cfb2['getRanges']())['map'](_0x3caa81=>_0x31030b['fromRange'](_0x3caa81)),_0x1cf5a5=[];for(const _0x919b99 of _0x2176a4)for(const _0x12aa6b of _0x919b99['getItems']({'shallow':!0x0}))_0x1cf5a5['push'](_0x12aa6b);for(const _0x1ab96a of _0x1cf5a5)'$graveyard'!=_0x1ab96a['root']['rootName']&&(_0x45ff43['setSelection'](_0x45ff43['createPositionAt'](_0x1ab96a,0x0)),_0x70231d['commands']['get']('removeTableColumn')['refresh'](),_0x70231d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x17493b=_0x4b92b1['filter'](_0x3bc184=>'$graveyard'!=_0x3bc184['root']['rootName']);_0x17493b['length']>0x0&&_0x45ff43['setSelection'](_0x17493b);for(const _0x422812 of _0x4b92b1)_0x422812['detach']();});}function _0x56277c(_0x4b3184,_0x93f02d){return _0x93f02d['every'](_0x381c49=>_0x4b3184['some'](_0x39da97=>_0x39da97['end']['isEqual'](_0x381c49['start'])||_0x381c49['end']['isEqual'](_0x39da97['start'])));}function _0x4661f7(_0x414846,_0x29d6a1){return!_0x414846['some'](_0xed5237=>_0x29d6a1['some'](_0x60598a=>_0xed5237['isIntersecting'](_0x60598a)))&&_0x414846['some'](_0x38abfd=>_0x29d6a1['some'](_0x334586=>_0x38abfd['end']['isTouching'](_0x334586['start'])));}_0x70231d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d5470,_0x3e021c,_0x4e8a5b)=>{if(!_0x4e8a5b['options']['showSuggestionHighlights'])return;const _0x310472=_0x3e021c['item'];if(!_0x310472||!_0x310472['is']('element','tableCell'))return;const _0x17241c=_0x4e8a5b['mapper']['toViewElement'](_0x310472);if(_0x17241c){const {id:_0x286e3e,authorId:_0x25813a}=_0x539191['_splitMarkerName'](_0x3e021c['markerName']);_0x4d59b4(_0x17241c,_0x4e8a5b['writer'],(_0x301453,_0x19d6d4,_0xcfca24)=>{_0xcfca24['addClass'](_0x5a678e(_0x19d6d4['classes']),_0x301453),_0xcfca24['setAttribute']('data-suggestion-id',_0x286e3e,_0x301453),_0xcfca24['setAttribute']('data-author-id',_0x25813a,_0x301453);},(_0xea2bee,_0x27874e,_0x7ff46)=>{_0x7ff46['removeClass'](_0x5a678e(_0x27874e['classes']),_0xea2bee),_0x7ff46['removeAttribute']('data-suggestion-id',_0xea2bee),_0x7ff46['removeAttribute']('data-author-id',_0xea2bee);});}},{'priority':'highest'}),_0x539191['descriptionFactory']['registerDescriptionCallback'](_0x598ffc=>{if('insertion'!=_0x598ffc['type']&&'deletion'!=_0x598ffc['type'])return;const _0xf91614=_0x598ffc['getContainedElement']();if(null!=_0xf91614&&_0xf91614['is']('element','table')){if('insertion'==_0x598ffc['type']){const _0x13705d=_0x598ffc['getItems']()['filter'](_0x57cc5c=>_0x57cc5c['is']('$textProxy'))['map'](_0x308b17=>_0x308b17['data']);if(_0x13705d['length'])return{'type':'insertion','content':c(_0x495f0b,'*Insert:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13705d['join']('\x20')+'\x22'))};}if('deletion'==_0x598ffc['type']){const _0x2a927a=_0x598ffc['getItems']()['filter'](_0x4a8e5d=>_0x4a8e5d['is']('$textProxy'))['map'](_0x29906b=>_0x29906b['data']);if(_0x2a927a['length'])return{'type':'deletion','content':c(_0x495f0b,'*Remove:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a927a['join']('\x20')+'\x22'))};}}}),_0x539191['descriptionFactory']['registerDescriptionCallback'](_0x2541a7=>{if('tableRow'==_0x2541a7['subType']){const _0x277045=_0x2541a7['getItems']()['filter'](_0x172647=>_0x172647['is']('$textProxy'))['map'](_0x388ab5=>_0x388ab5['data']),_0x3fa1a1=this['_getSuggestionCoords'](_0x2541a7),_0x3aaea1=_0x3fa1a1['maxRow']-_0x3fa1a1['minRow']+0x1;if('insertion'==_0x2541a7['type'])return _0x277045['length']?{'type':'insertion','content':c(_0x495f0b,'*Insert:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3aaea1,'\x22'+_0x277045['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x495f0b,'*Insert:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_ROW',_0x3aaea1))};if('deletion'==_0x2541a7['type'])return _0x277045['length']?{'type':'deletion','content':c(_0x495f0b,'*Remove:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3aaea1,'\x22'+_0x277045['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x495f0b,'*Remove:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_ROW',_0x3aaea1))};}if('tableColumn'==_0x2541a7['subType']){const _0xdce2ae=_0x2541a7['getItems']()['filter'](_0x1fdb38=>_0x1fdb38['is']('$textProxy'))['map'](_0x1ba42a=>_0x1ba42a['data']),_0x40b263=this['_getSuggestionCoords'](_0x2541a7),_0x269767=_0x40b263['maxColumn']-_0x40b263['minColumn']+0x1;if('insertion'==_0x2541a7['type'])return _0xdce2ae['length']?{'type':'insertion','content':c(_0x495f0b,'*Insert:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x269767,'\x22'+_0xdce2ae['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x495f0b,'*Insert:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_COLUMN',_0x269767))};if('deletion'==_0x2541a7['type'])return _0xdce2ae['length']?{'type':'deletion','content':c(_0x495f0b,'*Remove:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x269767,'\x22'+_0xdce2ae['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x495f0b,'*Remove:*\x20%0',c(_0x495f0b,'ELEMENT_TABLE_COLUMN',_0x269767))};}}),_0x539191['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c9eae),_0x539191['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c9eae),_0x539191['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x232906),_0x539191['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x232906),_0x539191['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x56277c),_0x539191['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x56277c),_0x539191['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4661f7),_0x539191['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4661f7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44a954=this['editor'],_0x298b0a=_0x44a954['model']['document']['selection'];return(_0x20550a,_0x57f39e)=>{_0x44a954['model']['change'](_0x3a7d68=>{const {commandName:_0x4fea0c,commandParams:_0x391836}=_0x57f39e;let _0x23e631=_0x20550a[0x0]['end']['nodeBefore'];_0x391836&&_0x391836[0x0]&&!0x1===_0x391836[0x0]['forceValue']&&(_0x23e631=_0x20550a[0x0]['start']['nodeAfter']);const _0x565d2e=_0x3a7d68['createRangeIn'](_0x23e631);if('$graveyard'==_0x565d2e['root']['rootName'])return;const _0x471fad=Array['from'](_0x298b0a['getRanges']())['map'](_0x371ce1=>_0x31030b['fromRange'](_0x371ce1));_0x3a7d68['setSelection'](_0x565d2e),_0x44a954['commands']['get'](_0x4fea0c)['refresh'](),_0x391836['push']({'forceDefaultExecution':!0x0}),_0x44a954['execute'](_0x4fea0c,..._0x391836);const _0x37d455=_0x471fad['filter'](_0xb8129=>'$graveyard'!=_0xb8129['root']['rootName']);_0x37d455['length']>0x0&&_0x3a7d68['setSelection'](_0x37d455);for(const _0x584543 of _0x471fad)_0x584543['detach']();});};}['_getCoordsForCells'](_0x26bf7e){const _0x44f1cd=this['editor']['plugins']['get']('TableUtils');let _0x1e4cba=Number['MAX_SAFE_INTEGER'],_0x29aa07=Number['MIN_SAFE_INTEGER'],_0xf11bd9=Number['MAX_SAFE_INTEGER'],_0x157d04=Number['MIN_SAFE_INTEGER'];for(const _0x2b88c0 of _0x26bf7e){if('$graveyard'==_0x2b88c0['root']['rootName'])continue;const {row:_0x3cd612,column:_0x5f5558}=_0x44f1cd['getCellLocation'](_0x2b88c0),_0x1fb530=_0x2b88c0['hasAttribute']('rowspan')?_0x2b88c0['getAttribute']('rowspan')-0x1:0x0,_0x3ef175=_0x2b88c0['hasAttribute']('colspan')?_0x2b88c0['getAttribute']('colspan')-0x1:0x0;_0x1e4cba=_0x3cd612<_0x1e4cba?_0x3cd612:_0x1e4cba,_0x29aa07=_0x3cd612+_0x1fb530>_0x29aa07?_0x3cd612+_0x1fb530:_0x29aa07,_0xf11bd9=_0x5f5558<_0xf11bd9?_0x5f5558:_0xf11bd9,_0x157d04=_0x5f5558+_0x3ef175>_0x157d04?_0x5f5558+_0x3ef175:_0x157d04;}return{'minRow':_0x1e4cba,'maxRow':_0x29aa07,'minColumn':_0xf11bd9,'maxColumn':_0x157d04};}['_setupColumnsRowsFixing'](){const _0xa94a1b=this['editor'],_0x52cb08=_0xa94a1b['plugins']['get']('TrackChangesEditing'),_0x480201=_0xa94a1b['plugins']['get']('TableUtils');_0xa94a1b['model']['document']['on']('change:data',()=>{const _0x14769c=Array['from'](_0xa94a1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x440fce,data:_0x1a9a8e}of _0x14769c){const {group:_0x9fcfd3,id:_0x3b7922,subType:_0xdd6c27}=_0x52cb08['_splitMarkerName'](_0x440fce);if('suggestion'!=_0x9fcfd3)continue;if(null!=_0x1a9a8e['oldRange'])continue;const _0x507c6c=_0x52cb08['getSuggestion'](_0x3b7922);this['_tablePostFixingSubtypes']['includes'](_0xdd6c27)&&this['_tableSuggestions']['add'](_0x507c6c);}},{'priority':'low'});const _0x3a774a=(_0x578931,_0x179f4f)=>{let _0x592b39=!0x1;const _0x2bcedf=_0x179f4f['createRangeOn'](_0x578931),_0x579d6e=_0x578931['findAncestor']('table'),_0x1367ac=_0x480201['getCellLocation'](_0x578931);for(const _0x389466 of this['_tableSuggestions']){const _0x1c3dd7=_0x389466['subType'],_0xf3d38e=_0x1c3dd7['startsWith']('tablePaste'),_0xccdbbb=_0x1c3dd7['substr'](_0xf3d38e?0xa:0x5),_0x29c536=_0xccdbbb['toLowerCase'](),_0x23d325=_0x29c536['substr'](0x0,0x3)+'span',_0x135a37='min'+_0xccdbbb,_0x4b0be9='max'+_0xccdbbb;if(!_0x389466['isInContent'])continue;if(_0x579d6e!=_0x389466['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x389466['isIntersectingWithRange'](_0x2bcedf))continue;const _0x45435a=_0x578931['hasAttribute'](_0x23d325)?_0x578931['getAttribute'](_0x23d325)-0x1:0x0,_0x40542b=this['_getSuggestionCoords'](_0x389466),_0x3ea1db=_0x40542b[_0x135a37],_0x3236c2=_0x40542b[_0x4b0be9];_0x3ea1db<=_0x1367ac[_0x29c536]&&_0x1367ac[_0x29c536]+_0x45435a<=_0x3236c2&&(_0x389466['addRange'](_0x2bcedf),_0x592b39=!0x0);}return _0x592b39;};_0xa94a1b['model']['document']['registerPostFixer'](_0xb258e=>{let _0x4b8887=!0x1;for(const _0x3bc55d of _0xa94a1b['model']['document']['differ']['getChanges']())if('insert'==_0x3bc55d['type']){if('tableRow'==_0x3bc55d['name']){for(const _0x3367cc of _0x3bc55d['position']['nodeAfter']['getChildren']())_0x4b8887=_0x4b8887||_0x3a774a(_0x3367cc,_0xb258e);}else'tableCell'==_0x3bc55d['name']&&(_0x4b8887=_0x4b8887||_0x3a774a(_0x3bc55d['position']['nodeAfter'],_0xb258e));}return _0x4b8887;});}['_getSuggestionCoords'](_0x490378){return this['_getCoordsForCells'](_0x490378['getRanges']()['map'](_0x5e39dd=>_0x5e39dd['start']['nodeAfter']));}}function xe(_0x220ca7){return Array['from'](new Set(_0x220ca7)['values']());}class Nt extends _0x113b76{static get['requires'](){return[Ct];}['afterInit'](){const _0x333809=this['editor'],_0x592d79=_0x333809['model']['document']['selection'],_0x16b716=_0x333809['locale'];if(!_0x333809['plugins']['has']('TableEditing'))return;const _0x785a30=_0x333809['plugins']['get']('TrackChangesEditing'),_0x16c0be=_0x333809['plugins']['get']('TableUtils'),_0x53123a=_0x333809['plugins']['get'](Ct);_0x53123a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x785a30['enableCommand']('mergeTableCells',()=>{const _0x1dad9c=_0x16c0be['getSelectionAffectedTableCells'](_0x333809['model']['document']['selection']);_0x333809['model']['change'](()=>{_0x785a30['markMultiRangeBlockFormat'](_0x1dad9c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x333809['commands']['get']('mergeTableCells')['on']('execute',(_0x2e3adf,_0x174f20)=>{_0x333809['commands']['get']('trackChanges')['value']&&(_0x174f20['length']>0x0&&_0x174f20[_0x174f20['length']-0x1]&&_0x174f20[_0x174f20['length']-0x1]['forceDefaultExecution']||_0x785a30['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2e3adf['stop']());},{'priority':'highest'});for(const _0x1251ab of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4be499=_0x333809['commands']['get'](_0x1251ab);_0x785a30['enableCommand'](_0x1251ab,()=>{const _0x1f0690=_0x333809['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53c8be=>_0x53c8be['is']('element','tableCell')),_0x30a824=_0x4be499['value'];_0x333809['model']['change'](()=>{_0x785a30['markMultiRangeBlockFormat']([_0x1f0690,_0x30a824],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x374318 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xae0c78=_0x333809['commands']['get'](_0x374318);_0x785a30['enableCommand'](_0x374318,()=>{const _0x6bd56d=_0x16c0be['getSelectionAffectedTableCells'](_0x333809['model']['document']['selection'])[0x0],_0x43c54e=_0x6bd56d['findAncestor']('table'),{column:_0x18365a,row:_0x1f7033}=_0x16c0be['getCellLocation'](_0x6bd56d);let _0x5329b4=[];if('horizontally'==_0xae0c78['direction']){const _0x49aea3=_0x16c0be['createTableWalker'](_0x43c54e,{'startRow':_0x1f7033,'endRow':_0x1f7033,'includeAllSlots':!0x0});_0x5329b4=Array['from'](_0x49aea3)['map'](_0x3c62fb=>_0x3c62fb['cell']);}else{const _0xb4dc20=_0x16c0be['createTableWalker'](_0x43c54e,{'column':_0x18365a,'includeAllSlots':!0x0});_0x5329b4=Array['from'](_0xb4dc20)['map'](_0x4a4a50=>_0x4a4a50['cell']);}_0x333809['model']['change'](_0x719592=>{_0x785a30['markBlockFormat'](_0x719592['createRangeOn'](_0x6bd56d),{'commandName':_0x374318,'commandParams':[]},_0x5329b4,_0x374318);});});}_0x785a30['descriptionFactory']['registerDescriptionCallback'](_0x829dd0=>{if('formatBlock'!=_0x829dd0['type']&&'formatInline'!=_0x829dd0['type'])return;const {data:_0x27700a}=_0x829dd0;return _0x27700a&&'mergeTableCells'==_0x27700a['commandName']?{'type':'format','content':c(_0x16b716,'*Merge\x20cells*')}:void 0x0;}),_0x785a30['descriptionFactory']['registerDescriptionCallback'](_0x4d8da7=>{if('formatBlock'!=_0x4d8da7['type']&&'formatInline'!=_0x4d8da7['type'])return;const {data:_0x4ef4ec}=_0x4d8da7;return _0x4ef4ec?'splitTableCellVertically'==_0x4ef4ec['commandName']?{'type':'format','content':c(_0x16b716,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4ef4ec['commandName']?{'type':'format','content':c(_0x16b716,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5eb576=_0x53123a['_acceptFormatSuggestionCallbackFactory']();for(const _0x2af70e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x785a30['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2af70e,'accept',_0x5eb576);for(const _0x5d7baf of['splitTableCellVertically','splitTableCellHorizontally'])_0x785a30['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d7baf,'accept',_0x5eb576);_0x785a30['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8e9ad2=>{_0x333809['model']['change'](_0x16a352=>{const _0xa22496=Array['from'](_0x592d79['getRanges']())['map'](_0x1b4053=>_0x31030b['fromRange'](_0x1b4053));_0x16a352['setSelection'](_0x8e9ad2),_0x333809['commands']['get']('mergeTableCells')['refresh'](),_0x333809['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1f7cc7=_0xa22496['filter'](_0x41a557=>'$graveyard'!=_0x41a557['root']['rootName']);_0x1f7cc7['length']>0x0&&_0x16a352['setSelection'](_0x1f7cc7);for(const _0x22d9df of _0xa22496)_0x22d9df['detach']();});});for(const _0x1b6d98 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1d5b63=_0x333809['commands']['get'](_0x1b6d98);_0x1d5b63['on']('set:isEnabled',(_0x29ed4c,_0x3563a7,_0x842633)=>{if(_0x842633){const _0x42522e=_0x333809['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1268a1=>_0x1268a1['is']('element','tableCell'));this['_areMergableCells'](_0x1d5b63['value'],_0x42522e)||(_0x29ed4c['return']=!0x1,_0x29ed4c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x101716=this['editor']['commands']['get']('mergeTableCells'),_0x2686fb=this['editor']['plugins']['get']('TableUtils');if(!_0x101716['isEnabled'])return!0x1;const _0x28149f=_0x2686fb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2846ff of _0x28149f)for(const _0x17990b of _0x28149f)if(_0x2846ff!=_0x17990b&&!this['_areMergableCells'](_0x2846ff,_0x17990b))return!0x1;return!0x0;}['_areMergableCells'](_0x2de5e1,_0x45565b){const _0x5e3d86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e536e=this['editor']['model']['createRangeOn'](_0x2de5e1),_0xdfc0c6=this['editor']['model']['createRangeOn'](_0x45565b),_0xfa03b=new Set(),_0x37b945=new Set();for(const _0x5f25de of _0x5e3d86['getSuggestions']())if(('insertion'==_0x5f25de['type']||'deletion'==_0x5f25de['type']||'mergeTableCells'==_0x5f25de['subType'])&&_0x5f25de['isInContent']){for(const _0x121aa7 of _0x5f25de['getRanges']())_0x121aa7['containsRange'](_0x3e536e,!0x0)&&_0xfa03b['add'](_0x5f25de['type']+':'+_0x5f25de['author']['id']),_0x121aa7['containsRange'](_0xdfc0c6,!0x0)&&_0x37b945['add'](_0x5f25de['type']+':'+_0x5f25de['author']['id']);}if(_0xfa03b['size']!=_0x37b945['size'])return!0x1;for(const _0x1915bd of _0xfa03b)if(!_0x37b945['has'](_0x1915bd))return!0x1;return!0x0;}}class Dt extends _0x113b76{static get['requires'](){return[Ct];}['afterInit'](){const _0x5cee8f=this['editor'];if(!_0x5cee8f['plugins']['has']('TableEditing'))return;const _0x1a1b20=_0x5cee8f['locale'],_0x3661b7=_0x5cee8f['plugins']['get']('TrackChangesEditing');_0x3661b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3661b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3661b7['registerBlockAttribute']('headingRows'),_0x3661b7['registerBlockAttribute']('headingColumns'),_0x3661b7['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1a1b20,'FORMAT_HEADER_ROW')),_0x3661b7['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1a1b20,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34e323=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4685d2=this['editor']['plugins']['get']('TableUtils'),_0x5f159c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x22d7c5({showActiveMarker:_0x213613=!0x0,setDataAttribute:_0x4dc51f=!0x0}={}){return(_0x3bd7ce,_0xccacce,_0x126950)=>{const {type:_0x1dcada,id:_0x27dc49}=_0x34e323['_splitMarkerName'](_0xccacce['markerName']),_0x3e9d52=_0x34e323['getSuggestion'](_0x27dc49),_0x8d624=_0x3e9d52['data'];if('formatBlock'!=_0x3e9d52['type']||!_0x8d624||'setTableColumnHeader'!=_0x8d624['commandName'])return;if(_0xccacce['item'])return void _0x3bd7ce['stop']();if(!_0x126950['consumable']['consume'](_0xccacce['markerRange'],_0x3bd7ce['name']))return;const _0x4bd741=_0xccacce['markerRange']['start']['nodeAfter'],_0x5b90f6=_0xccacce['markerRange']['end']['nodeBefore'],_0x5ba49e=_0x4bd741['parent']['parent'],{column:_0x57e4d7}=_0x4685d2['getCellLocation'](_0x4bd741),{column:_0x257507}=_0x4685d2['getCellLocation'](_0x5b90f6);for(let _0x5635d4=_0x57e4d7;_0x5635d4<=_0x257507;_0x5635d4++){const _0x5373b3=_0x4685d2['createTableWalker'](_0x5ba49e,{'column':_0x5635d4,'includeAllSlots':!0x1});for(const _0xd1ff01 of _0x5373b3){const _0x13c7e1=_0xd1ff01['cell'],_0x3d3596=_0x126950['mapper']['toViewElement'](_0x13c7e1);_0x126950['writer']['addClass']('ck-suggestion-marker-'+_0x1dcada,_0x3d3596),_0x4dc51f&&_0x126950['writer']['setAttribute']('data-suggestion',_0x27dc49,_0x3d3596),_0x126950['mapper']['bindElementToMarker'](_0x3d3596,_0xccacce['markerName']),_0x213613&&(_0x34e323['activeMarkers']['includes'](_0xccacce['markerName'])?_0x126950['writer']['addClass']('ck-suggestion-marker--active',_0x3d3596):_0x126950['writer']['removeClass']('ck-suggestion-marker--active',_0x3d3596));}}};}_0x34e323['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5f159c),_0x34e323['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5f159c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x22d7c5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x538df6,_0x1bc626,_0x9a817d)=>{_0x9a817d['options']['showSuggestionHighlights']&&_0x22d7c5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x538df6,_0x1bc626,_0x9a817d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1a25d0,_0x52fe79,_0x4b62ea)=>{const {type:_0x5e32aa,id:_0x4742e9}=_0x34e323['_splitMarkerName'](_0x52fe79['markerName']),_0x158800=_0x34e323['getSuggestion'](_0x4742e9),_0x5d6f31=_0x158800['data'];if('formatBlock'!=_0x158800['type']||!_0x5d6f31||'setTableColumnHeader'!=_0x5d6f31['commandName'])return;const _0x1b749e=_0x4b62ea['mapper']['markerNameToElements'](_0x52fe79['markerName']);if(_0x1b749e){for(const _0x569fb3 of _0x1b749e)_0x4b62ea['writer']['removeClass']('ck-suggestion-marker-'+_0x5e32aa,_0x569fb3),_0x4b62ea['writer']['removeClass']('ck-suggestion-marker--active',_0x569fb3),_0x4b62ea['writer']['removeAttribute']('data-suggestion',_0x569fb3),_0x4b62ea['mapper']['unbindElementFromMarkerName'](_0x569fb3,_0x52fe79['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x313972=this['editor'],_0x121b0f=_0x313972['locale'];function _0x26ae98(_0x183d8d){return{'type':'format','content':c(_0x121b0f,'*Format:*\x20%0',_0x183d8d)};}_0x313972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4507a5=>{if('formatBlock'!=_0x4507a5['type'])return;const {data:_0x20d3f6}=_0x4507a5;if(_0x20d3f6){if('setTableRowHeader'==_0x20d3f6['commandName']){const _0x4a41ad=_0x20d3f6['commandParams'][0x0]['forceValue'];return _0x26ae98(c(_0x121b0f,_0x4a41ad?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x20d3f6['commandName']){const _0x40d8c3=_0x20d3f6['commandParams'][0x0]['forceValue'];return _0x26ae98(c(_0x121b0f,_0x40d8c3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x113b76{['afterInit'](){const _0x5ac856=this['editor'],_0x360dcc=_0x5ac856['locale'],_0x24ef1e=_0x5ac856['plugins']['get']('TrackChangesEditing');function _0x4782b2(_0x254521){return{'type':'format','content':''+c(_0x360dcc,'*Set\x20table\x20type:*\x20%0',_0x254521)};}_0x5ac856['plugins']['has']('TableLayout')&&(_0x24ef1e['enableCommand']('insertTableLayout'),_0x24ef1e['enableDefaultAttributesIntegration']('tableType'),_0x24ef1e['registerBlockAttribute']('tableType'),_0x24ef1e['descriptionFactory']['registerElementLabel'](_0x4c6074=>_0x4c6074['is']('element','table')&&'layout'===_0x4c6074['getAttribute']('tableType'),_0x4fb6fb=>c(_0x360dcc,'ELEMENT_LAYOUT_TABLE',_0x4fb6fb)),_0x24ef1e['descriptionFactory']['registerDescriptionCallback'](_0x44669b=>{const {data:_0x2c538e}=_0x44669b;if(_0x2c538e&&'tableType'==_0x2c538e['key'])switch(_0x2c538e['newValue']){case'layout':return _0x4782b2(c(_0x360dcc,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4782b2(c(_0x360dcc,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x4698b9=>[_0x4698b9,null]));class $t extends _0x113b76{static get['requires'](){return[Ct];}['afterInit'](){const _0x34e85a=this['editor'];if(!_0x34e85a['plugins']['has']('TableClipboard'))return;const _0x333ac3=_0x34e85a['plugins']['get']('TrackChangesEditing'),_0x4fb115=_0x34e85a['plugins']['get']('TableUtils'),_0x3ff89d=_0x34e85a['plugins']['get'](Ct),_0x249fb6=_0x34e85a['plugins']['get']('TableClipboard'),_0x424b47=_0x34e85a['plugins']['get']('TableSelection'),_0x39b2e3=_0x34e85a['plugins']['get'](_0x2206d0);_0x3ff89d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x34e85a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x34e85a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x6cdb29=null,_0x4af9a4=!0x1;_0x39b2e3['on']('contentInsertion',(_0x3e22eb,_0xc9c33f)=>{_0x4af9a4='paste'===_0xc9c33f['method'];}),_0x34e85a['model']['on']('insertContent',(_0x12da69,_0x35ec6e)=>{if(!_0x4af9a4&&null===_0x424b47['getSelectedTableCells']())return;const [_0x2ee49e,_0x4e2b24]=_0x35ec6e,_0xa1fab3=_0x35ec6e[_0x35ec6e['length']-0x1];_0xa1fab3&&_0xa1fab3['forceDefaultExecution']||_0x333ac3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x344176,_0x59a4fd,_0x594507,_0x2c3350,_0x3c79a3){if(_0x59a4fd&&!_0x59a4fd['is']('documentSelection'))return!0x1;const _0x5a6477=_0x3c79a3['getTableIfOnlyTableInContent'](_0x344176,_0x594507);if(!_0x5a6477||!He(_0x5a6477,void 0x0,_0x2c3350))return!0x1;const _0x2a2303=_0x2c3350['getSelectionAffectedTableCells'](_0x594507['document']['selection']);if(!_0x2a2303['length'])return!0x1;const _0x492388=_0x2a2303[0x0]['findAncestor']('table'),_0x1f1b6a=_0x2c3350['getRowIndexes'](_0x2a2303),_0x440845=_0x2c3350['getColumnIndexes'](_0x2a2303),_0x49963c={'startRow':_0x1f1b6a['first'],'endRow':_0x1f1b6a['last'],'startColumn':_0x440845['first'],'endColumn':_0x440845['last']};return 0x1==_0x2a2303['length']&&(_0x49963c['endRow']+=_0x2c3350['getRows'](_0x5a6477)-0x1,_0x49963c['endColumn']+=_0x2c3350['getColumns'](_0x5a6477)-0x1),He(_0x492388,_0x49963c,_0x2c3350);}(_0x2ee49e,_0x4e2b24,_0x34e85a['model'],_0x4fb115,_0x249fb6)&&(_0x12da69['stop'](),_0x6cdb29={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x34e85a['model']['change'](()=>{_0x34e85a['model']['insertContent'](_0x35ec6e[0x0],_0x35ec6e[0x1],_0x35ec6e[0x2],{'forceDefaultExecution':!0x0});const _0x5f2733=_0x4ee927(),{rowInsertionRanges:_0x235363,columnInsertionRanges:_0x10ee51,insertionRanges:_0x4d8f04,deletionRanges:_0x1340c6,cells:_0x27009c}=_0x6cdb29;_0x235363['length']&&_0x333ac3['markMultiRangeInsertion'](_0x235363,'tablePasteRow',{'tablePasteChainId':_0x5f2733}),_0x10ee51['length']&&_0x333ac3['markMultiRangeInsertion'](_0x10ee51,'tablePasteColumn',{'tablePasteChainId':_0x5f2733}),_0x4d8f04['length']&&(_0x333ac3['markMultiRangeInsertion'](_0x4d8f04,'tablePaste',{'tablePasteChainId':_0x5f2733,'skipNestingCheck':!0x0}),_0x4d8f04['forEach'](_0x47945c=>_0x47945c['detach']?.())),_0x1340c6['length']&&(_0x333ac3['markMultiRangeDeletion'](_0x1340c6,'tablePaste',{'tablePasteChainId':_0x5f2733,'skipNestingCheck':!0x0}),_0x1340c6['forEach'](_0x38a67c=>_0x38a67c['detach']?.()));const _0x5dd0c6=_0x333ac3['markMultiRangeBlockFormat'](_0x27009c['map'](({element:_0x55c9da})=>_0x55c9da),{'formatGroupId':_0x4ee927()},[],'tablePasteCell',{'tablePasteChainId':_0x5f2733});if(_0x5dd0c6){const _0x594e57=_0x5dd0c6['getMarkers'](),_0x5a5ea5=[];for(const {element:_0x1d1052,attributes:_0x250aa3}of _0x27009c){if(!_0x250aa3)continue;const _0x41e188=_0x34e85a['model']['createRangeOn'](_0x1d1052),_0xdbf164=_0x594e57['find'](_0x20ca91=>_0x20ca91['getRange']()['isEqual'](_0x41e188));_0xdbf164&&_0x5a5ea5['push']([_0xdbf164['name'],_0x250aa3]);}_0x5a5ea5['length']&&_0x5dd0c6['setAttribute']('markerAttributes',Object['fromEntries'](_0x5a5ea5));}_0x6cdb29=null;}));},{'priority':_0x170d1b['high']+0xa}),_0x39b2e3['on']('contentInsertion',()=>{_0x4af9a4=!0x1;},{'priority':'lowest'}),_0x34e85a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x30ee16,_0x6acc30)=>{const [_0x5c7edf,_0x468992,,_0x5c3ceb]=_0x6acc30;if(!_0x6cdb29)return;_0x30ee16['stop']();const _0x3c01c7=_0x5c7edf['cell'],_0x8bd533=_0x468992,_0x2613f9=De(_0x3c01c7),_0x1aa6b5=De(_0x8bd533);_0x30ee16['return']=_0x3c01c7;let _0x4fc940=null,_0x36a15c=null;if(_0x1aa6b5||_0x2613f9){if(_0x2613f9&&!_0x1aa6b5){_0x5c3ceb['remove'](_0x3c01c7['getChild'](0x0));for(const _0x352aae of Array['from'](_0x8bd533['getChildren']()))_0x5c3ceb['insert'](_0x352aae,_0x3c01c7,'end');const _0x1631be=_0x6cdb29['rowInsertionIndexes']['includes'](_0x5c7edf['row']),_0x162370=_0x6cdb29['columnInsertionIndexes']['includes'](_0x5c7edf['column']);_0x1631be||_0x162370||(_0x4fc940=_0x31030b['fromRange'](_0x5c3ceb['createRangeIn'](_0x3c01c7)));}else _0x1aa6b5&&!_0x2613f9&&(_0x36a15c=_0x5c3ceb['createRangeIn'](_0x3c01c7));}else{const _0x3ed5d2=_0x5c3ceb['createElement']('tableCellSuggestion'),_0x174dcd=_0x5c3ceb['createElement']('tableCellSuggestion');_0x5c3ceb['wrap'](_0x5c3ceb['createRangeIn'](_0x3c01c7),_0x174dcd),_0x5c3ceb['insert'](_0x3ed5d2,_0x3c01c7,0x0);for(const _0x486fc7 of Array['from'](_0x8bd533['getChildren']()))_0x5c3ceb['insert'](_0x486fc7,_0x3ed5d2,'end');_0x4fc940=_0x31030b['fromRange'](_0x5c3ceb['createRangeOn'](_0x3ed5d2)),_0x36a15c=_0x31030b['fromRange'](_0x5c3ceb['createRangeOn'](_0x174dcd));}const _0xc06cd5=Array['from'](_0x8bd533['getAttributes']())['filter'](([_0x4986f7])=>Oe['includes'](_0x4986f7));_0x6cdb29['cells']['push']({'element':_0x3c01c7,'attributes':_0xc06cd5['length']?Object['fromEntries'](_0xc06cd5):null}),_0x4fc940&&_0x6cdb29['insertionRanges']['push'](_0x4fc940),_0x36a15c&&_0x6cdb29['deletionRanges']['push'](_0x36a15c);},{'priority':'high'}),_0x4fb115['on']('insertColumns',(_0x3e20e9,_0xe1a5dd)=>{const [_0x4f045a,_0x1af0a6={}]=_0xe1a5dd;if(!_0x6cdb29)return;const _0x1f1b72=_0x1af0a6['at']||0x0,_0xaf8b4=_0x1af0a6['columns']||0x1;_0x6cdb29['columnInsertionIndexes']=new Array(_0xaf8b4)['fill'](_0x1f1b72)['map']((_0x1a60e2,_0x1f47f1)=>_0x1a60e2+_0x1f47f1);for(const {cell:_0x524df7}of _0x4fb115['createTableWalker'](_0x4f045a,{'startColumn':_0x1f1b72,'endColumn':_0x1f1b72+_0xaf8b4-0x1}))_0x6cdb29['columnInsertionRanges']['push'](_0x34e85a['model']['createRangeOn'](_0x524df7));},{'priority':'low'}),_0x4fb115['on']('insertRows',(_0x5f33d9,_0x2ee48c)=>{const [_0x12216d,_0x4520e1={}]=_0x2ee48c;if(!_0x6cdb29)return;const _0x1a01f4=_0x4520e1['at']||0x0,_0x19ca8f=_0x4520e1['rows']||0x1;_0x6cdb29['rowInsertionIndexes']=new Array(_0x19ca8f)['fill'](_0x1a01f4)['map']((_0x4a577d,_0x2cc06d)=>_0x4a577d+_0x2cc06d);for(const {cell:_0x127305}of _0x4fb115['createTableWalker'](_0x12216d,{'startRow':_0x1a01f4,'endRow':_0x1a01f4+_0x19ca8f-0x1}))_0x6cdb29['rowInsertionRanges']['push'](_0x34e85a['model']['createRangeOn'](_0x127305));},{'priority':'low'}),_0x333ac3['descriptionFactory']['registerDescriptionCallback'](_0xff4cd4=>{if(_0xff4cd4['subType']&&_0xff4cd4['subType']['startsWith']('tablePaste'))return _0xff4cd4['previous']?{}:{'type':'insertion','content':c(_0x34e85a['locale'],'*Replace\x20table\x20cells*')};});const _0x242d3a=()=>!0x1;for(const _0x2cfcf9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x333ac3['_suggestionFactory']['registerCustomCallback']('insertion',_0x2cfcf9,'join',_0x242d3a),_0x333ac3['_suggestionFactory']['registerCustomCallback']('deletion',_0x2cfcf9,'join',_0x242d3a),_0x333ac3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cfcf9,'join',_0x242d3a);_0x333ac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x242d3a),_0x333ac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x43bc46,_0x32d35f,_0x2ec02f)=>{const _0x59718c=_0x43bc46['map'](_0x1d8bf8=>_0x1d8bf8['getContainedElement']())['filter'](_0x4d8166=>_0x4d8166),_0x5ace61=new Map(_0x59718c['map'](_0x35e787=>[_0x35e787,null]));if(_0x6cdb29){for(const {element:_0x3d8c8f,attributes:_0x3e7fa4}of _0x6cdb29['cells'])_0x3e7fa4&&_0x5ace61['set'](_0x3d8c8f,_0x3e7fa4);}else{if(_0x2ec02f&&_0x2ec02f['markerAttributes'])for(const [_0x8bb762,_0x10f923]of Object['entries'](_0x2ec02f['markerAttributes'])){const _0x4e7c0c=_0x34e85a['model']['markers']['get'](_0x8bb762),_0x1e1a41=_0x4e7c0c?_0x4e7c0c['getRange']()['getContainedElement']():null;_0x1e1a41&&_0x5ace61['set'](_0x1e1a41,_0x10f923);}}_0x34e85a['model']['change'](_0x5b0bab=>{for(const [_0x231279,_0x322aa0]of _0x5ace61)_0x5b0bab['setAttributes']({...Ue,..._0x322aa0},_0x231279);});});const _0x3c0dcd=(_0xec06d2,_0x3a9350)=>{_0x333ac3['_suggestionFactory']['registerCustomCallback'](_0xec06d2,'tablePaste',_0x3a9350,(_0x185cdc,_0x351df4,_0x2c425b)=>{_0x34e85a['model']['change'](_0xac1a99=>{const _0xef0374=[];for(const _0x39e7c4 of _0x185cdc){const _0x5c86ef=_0x39e7c4['start']['nodeAfter'];_0x5c86ef['is']('element','tableCellSuggestion')&&_0xef0374['push'](_0x5c86ef);}_0x333ac3['_suggestionFactory']['getSuggestionCallback'](_0xec06d2,null,_0x3a9350)(_0x185cdc,_0x351df4,_0x2c425b);for(const _0x4a55ea of _0xef0374)'$graveyard'!=_0x4a55ea['root']['rootName']&&_0xac1a99['unwrap'](_0x4a55ea);});});};_0x3c0dcd('insertion','accept'),_0x3c0dcd('insertion','discard'),_0x3c0dcd('deletion','accept'),_0x3c0dcd('deletion','discard'),_0x333ac3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x19f7d2=>{const _0x4df845=_0x19f7d2['map'](_0x2ca2af=>_0x2ca2af['getContainedElement']()),_0x352eb4=_0x4df845[0x0]['findAncestor']('table'),{minRow:_0x45f927,maxRow:_0x3f9a1a}=_0x3ff89d['_getCoordsForCells'](_0x4df845);_0x4fb115['removeRows'](_0x352eb4,{'at':_0x45f927,'rows':_0x3f9a1a-_0x45f927+0x1});}),_0x333ac3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x437fa8=>{const _0x148431=_0x437fa8['map'](_0x5e7154=>_0x5e7154['getContainedElement']()),_0x6dbdc3=_0x148431[0x0]['findAncestor']('table'),{minColumn:_0x52572e,maxColumn:_0x19a000}=_0x3ff89d['_getCoordsForCells'](_0x148431);_0x4fb115['removeColumns'](_0x6dbdc3,{'at':_0x52572e,'columns':_0x19a000-_0x52572e+0x1});});const _0x559aef=(_0xe32d14,_0x979058)=>{if(!_0x979058['subType']||!_0x979058['subType']['startsWith']('tablePaste'))return;const _0x16625f=_0x979058['attributes']['tablePasteChainId'],_0x38e21f=_0x333ac3['getSuggestions']()['filter'](_0x54b2d5=>_0x54b2d5['isInContent']&&_0x54b2d5['attributes']&&_0x54b2d5['attributes']['tablePasteChainId']==_0x16625f);_0x38e21f['length']&&_0x979058['getAllAdjacentSuggestions']()['length']!=_0x38e21f['length']&&_0x38e21f['reduce']((_0x1c914e,_0x244045)=>(_0x1c914e['next']=_0x244045,_0x244045['previous']=_0x1c914e,_0x244045));};function _0x2ff153(_0x4c7204,_0x46d89d=!0x0){const {id:_0x4185ff,authorId:_0x57a051}=_0x333ac3['_splitMarkerName'](_0x4c7204['markerName']),_0xad1d0c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x48ec5f=_0x333ac3['activeMarkers']['includes'](_0x4c7204['markerName']);return _0x48ec5f&&_0xad1d0c['push']('ck-suggestion-marker--active'),{'classes':_0xad1d0c,'attributes':{'data-suggestion':_0x4185ff,'data-author-id':_0x57a051},'priority':_0x48ec5f&&_0x46d89d?0xbc2:0xbb8};}_0x333ac3['on']('suggestionLoaded',_0x559aef,{'priority':'high'}),_0x333ac3['on']('suggestionUnloaded',_0x559aef,{'priority':'high'}),_0x34e85a['model']['document']['registerPostFixer'](()=>{let _0x201664=!0x1;const _0x43c33e=Array['from'](_0x34e85a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4eb98f,data:_0x302cf7}of _0x43c33e){const {group:_0x282e3c,type:_0x35ba6a,id:_0x3d753d}=_0x333ac3['_splitMarkerName'](_0x4eb98f);if('suggestion'!=_0x282e3c||'deletion'!=_0x35ba6a||_0x302cf7['oldRange'])continue;if(!_0x333ac3['hasSuggestion'](_0x3d753d))continue;const _0x14296c=_0x333ac3['getSuggestion'](_0x3d753d)['getRanges'](),_0x52dcbd=_0x34e85a['plugins']['get']('Users')['me'];for(const _0x215afc of _0x333ac3['getSuggestions']()){if(!_0x215afc['isInContent']||_0x215afc['author']!=_0x52dcbd)continue;if('formatBlock'!=_0x215afc['type']||'tablePasteCell'!=_0x215afc['subType'])continue;if(_0x215afc['getRanges']()['every'](_0x3b02f3=>_0x14296c['some'](_0x4883da=>_0x4883da['containsRange'](_0x3b02f3,!0x0)))){for(const _0x22da6b of _0x215afc['getAllAdjacentSuggestions']())_0x22da6b['isInContent']&&(_0x22da6b['discard'](),_0x201664=!0x0);}}}return _0x201664;}),_0x34e85a['model']['document']['registerPostFixer'](_0x104397=>{const _0x27d188=_0x34e85a['commands']['get']('redo');if(!_0x27d188||!_0x27d188['_createdBatches']['has'](_0x104397['batch']))return!0x1;let _0x4fe04e=!0x1;const _0x41716c=_0x34e85a['plugins']['get']('Users')['me'],_0x1bdd8f=_0x34e85a['model']['document']['differ']['getChanges'](),_0x5acc5b=Array['from'](_0x34e85a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x18abde,data:_0x2b6024})=>{const {group:_0x1f5845,subType:_0x5699b8,authorId:_0x23c0e4}=_0x333ac3['_splitMarkerName'](_0x18abde);return'suggestion'==_0x1f5845&&'tablePaste'==_0x5699b8&&_0x23c0e4==_0x41716c['id']&&!_0x2b6024['oldRange'];});for(const _0x28c841 of _0x1bdd8f){if('insert'!=_0x28c841['type']||'tableCellSuggestion'!=_0x28c841['name']||0x1!=_0x28c841['length'])continue;const _0x87ed4b=_0x104397['createRange'](_0x28c841['position'],_0x28c841['position']['getShiftedBy'](0x1));if(!_0x5acc5b['find'](({data:_0x1b64c1})=>_0x1b64c1['newRange']['isEqual'](_0x87ed4b))){for(const {name:_0x35a9e5,data:_0x3c26d5}of _0x5acc5b)if(_0x87ed4b['containsRange'](_0x3c26d5['newRange'])){_0x104397['updateMarker'](_0x35a9e5,{'range':_0x87ed4b}),_0x4fe04e=!0x0;break;}}}return _0x4fe04e;}),_0x34e85a['model']['document']['registerPostFixer'](_0x1882a2=>{let _0x2502cd=!0x1;const _0x29e93b=_0x34e85a['plugins']['get']('Users')['me'],_0x2fc89d=_0x333ac3['getSuggestions']()['filter'](_0x25e64e=>_0x25e64e['isInContent']&&_0x25e64e['author']==_0x29e93b),_0x30cc47=new Set(),_0x2dc326=new Set();for(const _0x3ed679 of _0x2fc89d)if('tablePaste'==_0x3ed679['subType'])for(const _0xef113 of _0x3ed679['getMarkers']()){const _0x1c485f=_0xef113['getRange']()['getContainedElement']();if(_0x1c485f){if(_0x1c485f['is']('element','tableCellSuggestion')&&De(_0x1c485f)){_0x3ed679['removeMarker'](_0xef113['name']),_0x30cc47['add'](_0x1c485f),_0x2502cd=!0x0;const _0x5da657=_0x1c485f['nextSibling'],_0x37becf=_0x1c485f['previousSibling'],_0x21640b=_0x5da657&&_0x5da657['is']('element','tableCellSuggestion'),_0x153dce=_0x37becf&&_0x37becf['is']('element','tableCellSuggestion');_0x21640b&&!_0x30cc47['has'](_0x5da657)&&_0x2dc326['add'](_0x5da657),_0x153dce&&!_0x30cc47['has'](_0x37becf)&&_0x2dc326['add'](_0x37becf);}else _0x1c485f['is']('element','paragraph')&&_0x1c485f['isEmpty']&&(_0x3ed679['removeMarker'](_0xef113['name']),_0x2502cd=!0x0);}}else{if('tablePasteCell'==_0x3ed679['subType']){if(!_0x3ed679['attributes']||!_0x3ed679['attributes']['tablePasteChainId'])continue;const _0x1efbdf=_0x3ed679['attributes']['markerAttributes'];if(_0x1efbdf&&Object['keys'](_0x1efbdf)['length'])continue;const _0x5d0998=_0x3ed679['attributes']['tablePasteChainId'];let _0x50b8be=!0x0,_0x4cfcf9=!0x0;for(const _0x3aa406 of _0x2fc89d)if(_0x3aa406['subType']&&_0x3aa406['subType']['startsWith']('tablePaste')){if(!_0x3aa406['attributes']['tablePasteChainId']){_0x4cfcf9=!0x1;break;}if(_0x3aa406['id']!=_0x3ed679['id']&&_0x3aa406['attributes']['tablePasteChainId']==_0x5d0998){_0x50b8be=!0x1;break;}}_0x4cfcf9&&_0x50b8be&&(_0x3ed679['removeMarkers'](),_0x2502cd=!0x0);}}for(const _0x1a0b06 of _0x30cc47)_0x1882a2['remove'](_0x1a0b06);for(const _0x5cfb0a of _0x2dc326)_0x1882a2['unwrap'](_0x5cfb0a);return _0x2502cd;}),_0x34e85a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x30d11d=>_0x2ff153(_0x30d11d),'converterPriority':'high'}),_0x34e85a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b3e8c,_0x2a0369)=>_0x2a0369['options']['showSuggestionHighlights']?_0x2ff153(_0x1b3e8c,!0x1):null,'converterPriority':'high'});const _0x467362=_0x34e85a['editing']['view'];this['listenTo'](_0x467362['document'],'clipboardOutput',(_0x1665fd,_0x3a035a)=>{const _0x1658a9=[];for(const _0x2e1923 of _0x467362['createRangeIn'](_0x3a035a['content'])['getItems']())_0x2e1923['is']('element','suggestion-td')&&_0x1658a9['push'](_0x2e1923);_0x467362['change'](_0x49d453=>{for(const _0x449606 of _0x1658a9)_0x49d453['move'](_0x49d453['createRangeIn'](_0x449606),_0x49d453['createPositionBefore'](_0x449606)),_0x49d453['remove'](_0x449606);});});}}function De(_0x1143f7){if(_0x1143f7['isEmpty'])return!0x0;const _0x56e083=_0x1143f7['getChild'](0x0);return _0x56e083['is']('element','paragraph')&&_0x56e083['isEmpty'];}function He(_0x24c4ee,_0x1a8a0e={},_0x345fcc){for(const {isAnchor:_0x4f1af9,cellHeight:_0xe251d8,cellWidth:_0x67e558}of _0x345fcc['createTableWalker'](_0x24c4ee,{'includeAllSlots':!0x0,..._0x1a8a0e}))if(!_0x4f1af9||0x1!=_0xe251d8||0x1!=_0x67e558)return!0x1;return!0x0;}class Bt extends _0x113b76{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x125031=this['editor']['plugins']['get']('TrackChangesEditing');_0x125031['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x125031['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x125031['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x125031['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x125031['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x125031['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4a67e0,_0x52b4a1){const _0x5dc04a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x426147=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39961b=_0x52b4a1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5c6efd=_0x426147['getColumnGroupElement'](_0x39961b);let _0x3c4764=_0x5c6efd?_0x426147['getTableColumnsWidths'](_0x5c6efd):null,_0x411851=_0x39961b['getAttribute']('tableWidth')||null;const _0x19705e=_0x52b4a1['tableWidth']||_0x411851,_0x5766b1=_0x52b4a1['columnWidths']||_0x3c4764,_0x2c3c18=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b812c of _0x5dc04a['getSuggestions']()){const _0x37f8c5=_0x4b812c['getContainedElement']();if('resizeTable'===_0x4b812c['subType']&&_0x37f8c5===_0x39961b){_0x4b812c['author']!==_0x2c3c18&&_0x4b812c['discard']();const _0xad5ade=_0x4b812c['data']['commandParams'];_0x411851=_0xad5ade[0x0]['tableWidth'],_0x3c4764=_0xad5ade[0x0]['columnWidths'];break;}}_0x4a67e0({'table':_0x39961b,'tableWidth':_0x19705e,'columnWidths':_0x5766b1}),_0x5dc04a['markBlockFormat'](_0x39961b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x411851,'columnWidths':_0x3c4764}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x22f1e2){if('formatBlock'!=_0x22f1e2['type']&&'formatInline'!=_0x22f1e2['type'])return;const {data:_0x11a3aa}=_0x22f1e2;if(_0x11a3aa&&'resizeTable'===_0x11a3aa['formatGroupId']){const _0x5fcf1a='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5fcf1a)};}}}class xt extends _0x113b76{['afterInit'](){const _0x29baa8=this['editor'];_0x29baa8['plugins']['has']('Template')&&_0x29baa8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x113b76{['afterInit'](){const _0x23e987=this['editor'];if(!_0x23e987['commands']['get']('insertTableOfContents'))return;_0x23e987['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x20c522=_0x23e987['plugins']['get']('TrackChangesEditing'),_0x21bad6=_0x23e987['locale'];_0x20c522['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39dc32=>c(_0x21bad6,'ELEMENT_TABLE_OF_CONTENTS',_0x39dc32));}}class Rt extends _0x113b76{['afterInit'](){const _0x42d314=this['editor'];if(!_0x42d314['plugins']['has']('Title'))return;const _0x17ca37=_0x42d314['plugins']['get']('TrackChangesEditing');_0x17ca37['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x42d314['locale'],'ELEMENT_TITLE')),_0x42d314['model']['document']['registerPostFixer'](_0xac752e=>{let _0x481432=!0x1;const _0x39bcf8=Array['from'](_0x42d314['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb29f4b,data:_0x5bbd62}of _0x39bcf8){const {group:_0x37ddb9}=_0x17ca37['_splitMarkerName'](_0xb29f4b);if('suggestion'!==_0x37ddb9||!_0x5bbd62['newRange'])continue;const _0x3be8eb=_0x5bbd62['newRange'],_0x21429d=_0x3be8eb['end']['nodeBefore'];if(!_0x21429d||!_0x21429d['is']('element','title-content'))continue;if(!_0x3be8eb['start']['isTouching'](_0x3be8eb['end']))continue;const _0x29c858=_0x42d314['model']['schema']['getNearestSelectionRange'](_0x3be8eb['end'],'forward');if(_0x29c858&&_0x29c858['isCollapsed']){const _0x2097b5=_0xac752e['createRange'](_0x3be8eb['start'],_0x29c858['start']);_0x2097b5['isEqual'](_0x3be8eb)||(_0xac752e['updateMarker'](_0xb29f4b,{'range':_0x2097b5}),_0x481432=!0x0);}_0x481432||(_0xac752e['removeMarker'](_0xb29f4b),_0x481432=!0x0);}return _0x481432;});}}class Tt extends _0x113b76{['afterInit'](){const _0x39b063=this['editor'],_0x241cd6=_0x39b063['plugins']['get']('TrackChangesEditing');_0x39b063['plugins']['has']('Uploadcare')&&(_0x241cd6['enableCommand']('uploadcare'),_0x39b063['plugins']['has']('UploadcareImageEdit')&&(_0x241cd6['enableCommand']('uploadcareImageEdit'),_0x241cd6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x241cd6['registerBlockAttribute']('uploadcareImageId'),_0x241cd6['descriptionFactory']['registerDescriptionCallback'](_0x31e7f8=>{if('attribute'!=_0x31e7f8['type'])return;const {data:_0x51b7c2}=_0x31e7f8;return _0x51b7c2&&'uploadcareImageId'==_0x51b7c2['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x113b76{['afterInit'](){const _0x4a5b68=this['editor'],_0x3c6d25=_0x4a5b68['plugins']['get']('TrackChangesEditing');_0x4a5b68['plugins']['has']('UndoEditing')&&(_0x3c6d25['enableCommand']('undo'),_0x3c6d25['enableCommand']('redo'));}}class Ut extends _0x113b76{static get['requires'](){return[Ct];}['afterInit'](){const _0xe33091=this['editor'];if(!_0xe33091['plugins']['has']('TableCaptionEditing'))return;_0xe33091['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x113b76{['tableProperties'];['tableCellProperties'];constructor(_0x4bd74c){super(_0x4bd74c),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 _0x4dc873=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3948d6 of this['tableProperties'])_0x4dc873['enableCommand'](_0x3948d6,(_0xf0489f,_0x16f6e2)=>{const _0x5e3a5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3948d6,[_0x5e3a5a],this['tableProperties'],'tableProperties',_0xf0489f,_0x16f6e2);});_0x4dc873['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4dc873['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4dc873['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3eba30,_0x5ac010)=>this['handleDiscardAction'](this['tableProperties'],_0x3eba30,_0x5ac010)),_0x4dc873['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6c9ee4 of this['tableCellProperties'])_0x4dc873['enableCommand'](_0x6c9ee4,(_0x391d25,_0x335e4c)=>{const _0x54d85f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6c9ee4,_0x54d85f,this['tableCellProperties'],'tableCellProperties',_0x391d25,_0x335e4c);});_0x4dc873['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4dc873['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4dc873['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x42621d,_0x127a6e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x42621d,_0x127a6e)),_0x4dc873['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4dc873['descriptionFactory']['registerDescriptionCallback'](_0x118207=>this['handleSuggestionDescription'](_0x118207));}['_handlePropertyChange'](_0x485875,_0x8bfd7,_0x2f7023,_0x5b1f82,_0x6904ef,_0xff6735){const _0x5bcb46=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xff6735['batch'],()=>{for(const _0x395724 of _0x8bfd7){if(this['_getSuggestion'](_0x395724,_0x5b1f82))_0x6904ef(_0xff6735);else{const _0x3bc79e={};for(const _0x4b4e85 of _0x2f7023){const _0x16ea7d=_0x395724['getAttribute'](_0x4b4e85);void 0x0!==_0x16ea7d&&(_0x3bc79e[_0x4b4e85]=_0x16ea7d);}_0x6904ef(_0xff6735),_0x5bcb46['markBlockFormat'](_0x395724,{'commandParams':[_0x3bc79e]},[],_0x5b1f82);}}});}['handleDiscardAction'](_0x1ac176,_0x1d8975,_0x1b1b13){const _0x5564f3=_0x1d8975[0x0]['start']['nodeAfter'],_0x281006=_0x1b1b13['commandParams'][0x0];this['editor']['model']['change'](_0x4f948b=>{for(const _0x303580 of _0x1ac176)void 0x0!==_0x281006[_0x303580]?_0x4f948b['setAttribute'](_0x303580,_0x281006[_0x303580],_0x5564f3):_0x4f948b['removeAttribute'](_0x303580,_0x5564f3);});}['handleSuggestionDescription'](_0x1fd926){if(_0x1fd926['data'])switch(_0x1fd926['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'](_0x44f216,_0x2b8e68){const _0x1771c1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56361c of _0x1771c1['getSuggestions']({'skipNotAttached':!0x0})){const _0x428e77=_0x56361c['getContainedElement']();if(_0x56361c['subType']===_0x2b8e68&&_0x428e77===_0x44f216)return _0x56361c;}return null;}}const u='$elementName';class p extends _0x113b76{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3ac7df,_0xcf24a4,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x394f03){super(_0x394f03),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x358841,_0x2e7789,_0x338139,_0x136a1b)=>{this['_model']['change'](()=>{for(const _0x51fdb3 of[..._0x136a1b,..._0x338139])this['_model']['markers']['has'](_0x51fdb3)&&_0x394f03['editing']['reconvertMarker'](_0x51fdb3);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x394f03['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(),_0x394f03['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x394f03['config']['get']('trackChanges.trackFormatChanges'),_0x394f03['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x394f03['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x394f03,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x7ac40a=this['editor'],_0x3ad949=(_0x194074,_0x149766)=>{if('attribute'!=_0x194074)return'ck-suggestion-marker-'+_0x194074;const _0x534c92=_0x149766['split']('|')[0x0];return this['_isBlockAttribute'](_0x534c92)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x7ac40a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xabc98=>{const {id:_0x4f820c,authorId:_0x1d0b1b,type:_0xbda001,subType:_0x37f875}=this['_splitMarkerName'](_0xabc98['markerName']),_0x370782=['ck-suggestion-marker',_0x3ad949(_0xbda001,_0x37f875)];let _0x5ca895=0xbb8;return this['activeMarkers']['includes'](_0xabc98['markerName'])&&(_0x370782['push']('ck-suggestion-marker--active'),_0x5ca895=0xbc2),'deletion'==_0xbda001&&(_0x5ca895+=0x5),{'classes':_0x370782,'attributes':{'data-suggestion':_0x4f820c,'data-author-id':_0x1d0b1b},'priority':_0x5ca895};}}),_0x7ac40a['conversion']['for']('dataDowncast')['add'](_0x293083=>{_0x293083['on']('addMarker:suggestion',(_0x585bab,_0xae003b,_0x347476)=>{if(!_0x347476['options']['showSuggestionHighlights'])return;const _0x4ff6b9=_0xae003b['item'];if(!_0x4ff6b9)return;const _0x6fda4d=_0x347476['mapper']['toViewElement'](_0x4ff6b9);_0x7ac40a['model']['schema']['isObject'](_0x4ff6b9)&&_0x6fda4d&&!_0x6fda4d['getCustomProperty']('widget')&&_0x6fda4d['is']('containerElement')&&_0x5e35c0(_0x6fda4d,_0x347476['writer']);},{'priority':'high'});}),_0x7ac40a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x11aee3,_0x9d37b)=>{if(!_0x9d37b['options']['showSuggestionHighlights'])return null;const {id:_0x2482f6,authorId:_0x152b66,type:_0x24ad4b,subType:_0x2ef9cc}=this['_splitMarkerName'](_0x11aee3['markerName']);return{'classes':['ck-suggestion-marker',_0x3ad949(_0x24ad4b,_0x2ef9cc)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2482f6,'data-author-id':_0x152b66}};}});const _0x4b57b6=({showActiveMarkers:_0x1451fd=!0x0,isAttributeSuggestion:_0x3d725a=!0x1}={})=>(_0x340325,_0x44b748,_0x16e39f)=>{if(!_0x44b748['item'])return;const {id:_0x36eeaf,authorId:_0x21a8b6}=this['_splitMarkerName'](_0x44b748['markerName']);if(_0x3d725a){const _0x1a1f49=this['_suggestions']['get'](_0x36eeaf),_0x415d3b=this['_getAttributeKey'](_0x1a1f49);if(!this['_isBlockAttribute'](_0x415d3b))return;}if(_0x44b748['item']['is']('selection'))return void _0x16e39f['consumable']['consume'](_0x44b748['item'],_0x340325['name']);const _0x34c400=_0x16e39f['mapper']['toViewElement'](_0x44b748['item']);if(_0x44b748['item']['is']('element')&&_0x7ac40a['model']['schema']['isBlock'](_0x44b748['item'])&&!_0x34c400['getCustomProperty']('addHighlight')){_0x16e39f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x34c400),_0x16e39f['writer']['setAttribute']('data-suggestion',_0x36eeaf,_0x34c400),_0x16e39f['writer']['setAttribute']('data-author-id',_0x21a8b6,_0x34c400),_0x16e39f['mapper']['bindElementToMarker'](_0x34c400,_0x44b748['markerName']),_0x1451fd&&(this['activeMarkers']['includes'](_0x44b748['markerName'])?_0x16e39f['writer']['addClass']('ck-suggestion-marker--active',_0x34c400):_0x16e39f['writer']['removeClass']('ck-suggestion-marker--active',_0x34c400));for(const _0x19005f of _0x7ac40a['model']['createRangeIn'](_0x44b748['item'])['getItems']())_0x16e39f['consumable']['consume'](_0x19005f,_0x340325['name']);_0x16e39f['consumable']['consume'](_0x44b748['item'],_0x340325['name']);}};_0x7ac40a['conversion']['for']('dataDowncast')['add'](_0x291f91=>{_0x291f91['on']('addMarker:suggestion:formatBlock',(_0x3833dd,_0x4de976,_0x1b7a5c)=>{_0x1b7a5c['options']['showSuggestionHighlights']&&_0x4b57b6({'showActiveMarkers':!0x1})(_0x3833dd,_0x4de976,_0x1b7a5c);},{'priority':'highest'});}),_0x7ac40a['conversion']['for']('dataDowncast')['add'](_0x221e4f=>{_0x221e4f['on']('addMarker:suggestion:attribute',(_0x188a7e,_0x498be9,_0x2ff112)=>{_0x2ff112['options']['showSuggestionHighlights']&&_0x4b57b6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x188a7e,_0x498be9,_0x2ff112);},{'priority':'highest'});}),_0x7ac40a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x24ae04,_0x393c54)=>{if(_0x393c54['options']['showSuggestionHighlights']){const {id:_0x883ae,authorId:_0x589670}=this['_splitMarkerName'](_0x24ae04);return _0x24ae04['includes'](':split')||_0x24ae04['includes'](':merge')?{'group':'suggestion','name':_0x24ae04['substr'](0xb),'attributes':{'data-suggestion':_0x883ae,'data-author-id':_0x589670}}:null;}return{'group':'suggestion','name':_0x24ae04['substr'](0xb)};}}),_0x7ac40a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x43d456,{writer:_0x11abf5})=>{let _0x56c3b0='suggestion:'+_0x43d456['getAttribute']('suggestion-type')+':'+_0x43d456['getAttribute']('id');return _0x43d456['getAttribute']('marker-count')&&(_0x56c3b0+=':'+_0x43d456['getAttribute']('marker-count')),_0x11abf5['createElement']('$marker',{'data-name':_0x56c3b0});}}),_0x7ac40a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x7ac40a['conversion']['for']('editingDowncast')['add'](_0x3e2b69=>{_0x3e2b69['on']('addMarker:suggestion:formatBlock',_0x4b57b6(),{'priority':'high'});}),_0x7ac40a['conversion']['for']('editingDowncast')['add'](_0x1bafce=>{_0x1bafce['on']('addMarker:suggestion:attribute',_0x4b57b6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x7ac40a['conversion']['for']('editingDowncast')['add'](_0x32c50=>{_0x32c50['on']('removeMarker:suggestion:formatBlock',(_0x22e15a,_0xf1b19e,_0x489072)=>{const _0x4e1a79=_0x489072['mapper']['markerNameToElements'](_0xf1b19e['markerName']);if(_0x4e1a79){for(const _0x3bc2fa of _0x4e1a79)_0x3bc2fa['getCustomProperty']('addHighlight')||(_0x489072['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bc2fa),_0x489072['writer']['removeAttribute']('data-suggestion',_0x3bc2fa),_0x489072['writer']['removeAttribute']('data-author-id',_0x3bc2fa),_0x489072['mapper']['unbindElementFromMarkerName'](_0x3bc2fa,_0xf1b19e['markerName']));}},{'priority':'high'});}),_0x7ac40a['conversion']['for']('editingDowncast')['add'](_0x17621f=>{_0x17621f['on']('removeMarker:suggestion:attribute',(_0x3e7ade,_0x1040e8,_0x498f42)=>{const _0x3fd098=_0x498f42['mapper']['markerNameToElements'](_0x1040e8['markerName']);if(!_0x3fd098)return;const {id:_0xcae8f2}=this['_splitMarkerName'](_0x1040e8['markerName']),_0x360489=this['_suggestions']['get'](_0xcae8f2),_0x515288=this['_getAttributeKey'](_0x360489);if(this['_isBlockAttribute'](_0x515288)){for(const _0x2de577 of _0x3fd098)_0x2de577['getCustomProperty']('addHighlight')||(_0x498f42['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2de577),_0x498f42['writer']['removeAttribute']('data-suggestion',_0x2de577),_0x498f42['writer']['removeAttribute']('data-author-id',_0x2de577),_0x498f42['mapper']['unbindElementFromMarkerName'](_0x2de577,_0x1040e8['markerName']));}},{'priority':'high'});}),_0x7ac40a['model']['document']['registerPostFixer'](_0x56855b=>{let _0x47d7cf=!0x1;const _0xfcec08=Array['from'](_0x7ac40a['model']['document']['differ']['getChangedMarkers']()),_0x2cb379=new Set();for(const {name:_0x2c3039,data:_0x30a30c}of _0xfcec08){const {group:_0x15922d,type:_0x1902ec,subType:_0x24ff26,id:_0xcf9687}=this['_splitMarkerName'](_0x2c3039);if('suggestion'!==_0x15922d)continue;const _0x3b5058=this['_suggestions']['get'](_0xcf9687);if(null!=_0x30a30c['newRange']){'formatInline'==_0x1902ec&&(_0x47d7cf=_0x47d7cf||Jt(_0x30a30c['newRange'],_0x2c3039,_0x56855b,_0x7ac40a['model']['schema']));const _0x597c95='attribute'==_0x1902ec&&this['_isBlockAttribute'](_0x24ff26['split']('|')[0x0]);if(_0x30a30c['newRange']['isCollapsed']||'$graveyard'==_0x30a30c['newRange']['root']['rootName']||'formatBlock'==_0x1902ec&&!Ht(_0x30a30c['newRange'])||_0x597c95&&!Ht(_0x30a30c['newRange'])||'deletion'==_0x1902ec&&!(!Lt(_0x179b0c=_0x30a30c['newRange'])&&!function(_0x3a9366){return _0x3a9366['start']['parent']==_0x3a9366['end']['nodeBefore']&&_0x3a9366['start']['isAtEnd'];}(_0x179b0c)))_0x56855b['removeMarker'](_0x2c3039),_0x47d7cf=!0x0;else{if(!_0x3b5058||!_0x3b5058['isInContent'])continue;if(_0x30a30c['newRange']&&_0x30a30c['oldRange']&&_0x30a30c['newRange']['isEqual'](_0x30a30c['oldRange']))continue;_0x2cb379['add'](_0x3b5058);}}}var _0x179b0c;return _0x2cb379['size']>0x0&&(_0x47d7cf=!!this['_joinWithAdjacentSuggestions'](_0x2cb379)||_0x47d7cf),_0x47d7cf;}),_0x7ac40a['model']['document']['registerPostFixer'](_0x2ef744=>{let _0xafe0e6=!0x1;for(const _0x3096bf of _0x7ac40a['model']['document']['differ']['getChanges']())if('insert'==_0x3096bf['type'])for(const _0x2987d4 of this['_suggestions']['values']()){if(_0x2987d4['isMultiRange']||!_0x2987d4['isInContent'])continue;const _0xa89ce0='formatBlock'==_0x2987d4['type'],_0x103003=this['_getAttributeKey'](_0x2987d4),_0x14b95d=_0x103003&&this['_isBlockAttribute'](_0x103003);if(!_0xa89ce0&&!_0x14b95d)continue;const _0x2e444d=_0x2987d4['getFirstRange']();if(_0x2e444d['start']['parent']!=_0x2e444d['end']['parent']&&!_0x2e444d['end']['isAtEnd']){const _0x1b20a7=_0x7ac40a['model']['createPositionAt'](_0x2e444d['start']['nodeAfter'],'end'),_0x54c341=_0x7ac40a['model']['createRange'](_0x2e444d['start'],_0x1b20a7);_0x2ef744['updateMarker'](_0x2987d4['getFirstMarker'](),{'range':_0x54c341}),_0xafe0e6=!0x0;}}return _0xafe0e6;}),_0x7ac40a['model']['document']['registerPostFixer'](_0x52dc39=>this['_processAttributeChanges'](_0x52dc39)),_0x7ac40a['model']['document']['registerPostFixer'](_0x4e773e=>!_0x4e773e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4e773e)),_0x7ac40a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x7ac40a['model']['document']['on']('change:data',(_0x2fb297,_0x2afbad)=>{if(!_0x2afbad['isLocal']||_0x2afbad['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x19e324=_0x7ac40a['model']['document']['differ']['getChanges']();if(0x0==_0x19e324['length'])return;const _0x3f8f9c=[],_0x235865=_0x19e324['filter'](_0x31c0d9=>'attribute'==_0x31c0d9['type']),_0x503446=_0x19e324['filter'](_0x4c3f3f=>'insert'==_0x4c3f3f['type']&&'$text'!=_0x4c3f3f['name']);for(const _0x376686 of _0x235865)this['_isRegisteredAttribute'](_0x376686['attributeKey'])&&_0x3f8f9c['push']({'key':_0x376686['attributeKey'],'newValue':_0x376686['attributeNewValue'],'oldValue':_0x376686['attributeOldValue'],'range':qt(_0x376686['range'],_0x7ac40a['model'])});for(const _0x2dd6b9 of _0x503446){if('rename'!=_0x2dd6b9['action']&&'refresh'!=_0x2dd6b9['action'])continue;const _0x2bface=zt(_0x2dd6b9['position']['nodeAfter'],_0x7ac40a['model']),_0x4b4516=_0x2dd6b9['before'];'rename'==_0x2dd6b9['action']&&_0x3f8f9c['push']({'key':u,'newValue':_0x2dd6b9['name'],'oldValue':_0x4b4516['name'],'range':_0x2bface});for(const [_0x38fe2c,_0x54a47c]of _0x4b4516['attributes']){if(!this['_isRegisteredAttribute'](_0x38fe2c))continue;const _0x1d9d59=_0x2dd6b9['attributes']['get'](_0x38fe2c);_0x54a47c!==_0x1d9d59&&_0x3f8f9c['push']({'key':_0x38fe2c,'newValue':_0x1d9d59,'oldValue':_0x54a47c,'range':_0x2bface});}for(const [_0x242fe2,_0x3dfd07]of _0x2dd6b9['attributes'])this['_isRegisteredAttribute'](_0x242fe2)&&(_0x4b4516['attributes']['has'](_0x242fe2)||_0x3f8f9c['push']({'key':_0x242fe2,'newValue':_0x3dfd07,'oldValue':null,'range':_0x2bface}));}0x0!=_0x3f8f9c['length']&&_0x7ac40a['model']['enqueueChange'](_0x2afbad,_0x67ee97=>{const _0x3f7f1f=_0x4ee927();for(const {range:_0x45c9b5,key:_0x4e89b3,oldValue:_0x42f945,newValue:_0x166ca6}of _0x3f8f9c)this['markAttributeChange'](_0x45c9b5,_0x4e89b3,_0x42f945,_0x166ca6,{'groupId':_0x3f7f1f});this['_reduceExistingSuggestions'](_0x67ee97,_0x3f8f9c);});},{'priority':'lowest'}),_0x7ac40a['model']['markers']['on']('update:suggestion',(_0x37ad5c,_0x53eccc,_0x54f74f)=>{if(null==_0x54f74f){const {id:_0x32ac55}=this['_splitMarkerName'](_0x53eccc['name']),_0x38f9ea=this['_suggestions']['get'](_0x32ac55);_0x38f9ea&&_0x38f9ea['addMarkerName'](_0x53eccc['name']);}}),_0x7ac40a['model']['document']['on']('change:data',()=>{const _0x18f1e4=Array['from'](_0x7ac40a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x353026=>'suggestion'===this['_splitMarkerName'](_0x353026['name'])['group']);if(0x0===_0x18f1e4['length'])return;_0x18f1e4['sort']((_0x389d5,_0x52febb)=>{const _0x557018=_0x389d5['data']['oldRange'],_0x28d34a=_0x52febb['data']['oldRange'];return null===_0x557018&&null===_0x28d34a?0x0:null===_0x557018&&null!==_0x28d34a?-0x1:null!==_0x557018&&null===_0x28d34a?0x1:_0x557018['start']['isBefore'](_0x28d34a['start'])?-0x1:0x1;});const _0x4bf1cb=new Set(),_0x119134=new Set();for(const {name:_0x1146eb,data:_0x12b02f}of _0x18f1e4){const {id:_0x2439ef}=this['_splitMarkerName'](_0x1146eb);if(null===_0x12b02f['oldRange']){const _0x58d395=this['_handleNewSuggestionMarker'](_0x1146eb);_0x119134['add'](_0x58d395);}else{const _0x56cd51=this['_suggestions']['get'](_0x2439ef);null!==_0x12b02f['newRange']||_0x56cd51['isInContent']?(_0x4bf1cb['add'](_0x56cd51['head']),_0x119134['add'](_0x56cd51)):this['_removeSuggestion'](_0x56cd51);}}_0x119134['size']>0x0&&this['_refreshSuggestionsChain'](_0x119134);for(const _0x117370 of _0x4bf1cb)this['fire']('suggestionChanged',_0x117370);}),_0x7ac40a['model']['on']('applyOperation',(_0x3f7fc,_0x12e766)=>{const _0x6d104e=_0x12e766[0x0];if(!this['_suggestions']['size'])return;if(!_0x6d104e['isDocumentOperation'])return;if(_0x6d104e['batch']['isUndo']||!_0x6d104e['batch']['isLocal'])return;let _0x225ee2,_0x1eb6ab;switch(_0x6d104e['type']){case'insert':_0x225ee2=_0x7ac40a['model']['createPositionAt'](_0x6d104e['position']),_0x1eb6ab=_0x225ee2['getShiftedBy'](_0x6d104e['howMany']);break;case'split':_0x225ee2=_0x7ac40a['model']['createPositionAt'](_0x6d104e['splitPosition']),_0x1eb6ab=_0x7ac40a['model']['createPositionAt'](_0x6d104e['moveTargetPosition']);break;case'move':_0x225ee2=_0x7ac40a['model']['createPositionAt'](_0x6d104e['targetPosition']),_0x1eb6ab=_0x225ee2['getShiftedBy'](_0x6d104e['howMany']);break;default:return;}const _0x55b7ca=_0x7ac40a['model']['createRange'](_0x225ee2,_0x1eb6ab);_0x7ac40a['model']['change'](()=>{for(const {suggestion:_0x4681e6,meta:_0x14e5c5}of this['_findSuggestions'](_0x55b7ca)){if(_0x4681e6['isMultiRange'])continue;if('formatInline'==_0x4681e6['type'])continue;const _0x4a6917=this['_getAttributeKey'](_0x4681e6);if(_0x4a6917&&this['_isBlockAttribute'](_0x4a6917)&&'split'!=_0x6d104e['type'])continue;const _0x25e38a=_0x4681e6['data']&&_0x4681e6['data']['multipleBlocks'];('formatBlock'!=_0x4681e6['type']||'split'==_0x6d104e['type']&&!_0x25e38a)&&(_0x14e5c5['containsRangeInObject']||'insertion'==_0x4681e6['type']&&_0x14e5c5['isOwn']||_0x4681e6['getFirstRange']()['containsRange'](_0x55b7ca)&&this['_breakSuggestionMarker'](_0x4681e6,_0x225ee2,_0x1eb6ab));}});},{'priority':'lowest'}),_0x7ac40a['model']['on']('deleteContent',(_0x242cc4,_0x5182b4)=>{const _0x4bf95b=_0x5182b4[0x0],_0x2c4e00=_0x5182b4[0x1];if(_0x2c4e00&&_0x2c4e00['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4bf95b['isCollapsed'])return;const _0x4bef70=_0x7ac40a['model']['schema'],{start:_0xdfa4e9,end:_0x586a56}=_0x4bf95b['getFirstRange'](),_0xcb5269=_0xdfa4e9['nodeAfter']&&_0x4bef70['isLimit'](_0xdfa4e9['nodeAfter'])?null:_0x4bef70['getNearestSelectionRange'](_0xdfa4e9,'forward'),_0x11e7bf=_0x586a56['nodeBefore']&&_0x4bef70['isLimit'](_0x586a56['nodeBefore'])?null:_0x4bef70['getNearestSelectionRange'](_0x586a56,'backward'),_0x12db05=_0x7ac40a['model']['createRange'](_0xcb5269?_0xcb5269['start']:_0xdfa4e9,_0x11e7bf?_0x11e7bf['end']:_0x586a56);_0x7ac40a['model']['change'](_0x42d171=>{this['markDeletion'](_0x12db05);const _0x50d896=_0x7ac40a['model']['schema']['getNearestSelectionRange'](_0x12db05['start']);_0x4bf95b['is']('documentSelection')?_0x42d171['setSelection'](_0x50d896):_0x4bf95b['setTo'](_0x50d896);}),_0x242cc4['stop']();},{'priority':_0x170d1b['normal']+0xa}),_0x7ac40a['model']['on']('insertContent',(_0xfdbabf,_0x1f6249)=>{const _0x56d277=_0x1f6249[_0x1f6249['length']-0x1];_0x56d277&&_0x56d277['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x7ac40a['model']['change'](()=>{let _0x4fef4a=_0x7ac40a['model']['insertContent'](_0x1f6249[0x0],_0x1f6249[0x1],_0x1f6249[0x2],{'forceDefaultExecution':!0x0});if(!_0x4fef4a)return;_0xfdbabf['return']=_0x4fef4a['clone']();const _0xdaea35=_0x4fef4a['end']['nodeBefore'],_0x4aad87=_0x7ac40a['model']['schema'];_0xdaea35&&_0x4aad87['isBlock'](_0xdaea35)&&!_0x4aad87['isObject'](_0xdaea35)&&(_0x4fef4a=_0x7ac40a['model']['createRange'](_0x4fef4a['start'],_0x7ac40a['model']['createPositionAt'](_0xdaea35,'end'))),this['markInsertion'](_0x4fef4a);}),_0xfdbabf['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2555de=new x(_0x7ac40a,this['_suggestions']);_0x7ac40a['commands']['add']('acceptSuggestion',_0x2555de),this['enableCommand']('acceptSuggestion');const _0x16a2fb=new O(_0x7ac40a,this['_suggestions']);_0x7ac40a['commands']['add']('discardSuggestion',_0x16a2fb),this['enableCommand']('discardSuggestion'),_0x7ac40a['commands']['add']('acceptAllSuggestions',new R(_0x7ac40a,_0x2555de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x7ac40a['commands']['add']('discardAllSuggestions',new R(_0x7ac40a,_0x16a2fb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x7ac40a['commands']['add']('acceptSelectedSuggestions',new E(_0x7ac40a,_0x2555de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x7ac40a['commands']['add']('discardSelectedSuggestions',new E(_0x7ac40a,_0x16a2fb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3b2a6c=_0x7ac40a['plugins']['get']('CommentsRepository');this['listenTo'](_0x3b2a6c,'addComment',(_0x1ca128,{threadId:_0x3f9e01})=>{const _0x51c5e6=this['_suggestions']['get'](_0x3f9e01);_0x51c5e6&&_0x51c5e6['commentThread']&&0x1===_0x51c5e6['commentThread']['length']&&this['_updateSuggestionData'](_0x3f9e01,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3b2a6c,'removeComment',(_0xe7ec81,{threadId:_0x3a4ab7})=>{const _0x1a9387=this['_suggestions']['get'](_0x3a4ab7);_0x1a9387&&_0x1a9387['commentThread']&&!_0x1a9387['commentThread']['length']&&this['_updateSuggestionData'](_0x3a4ab7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1eb00f){const _0x50f374=_0x5a583a([0x68,0x75,0x6d,0x58,0x69,0x54,0x43,0x73,0x46,0x50,0x61,0x70,0x59,0x35,0x4b,0x33,0x32,0x36,0x4a,0x74,0x6e,0x48,0x34,0x71,0x30,0x47,0x4e,0x56,0x6a,0x77,0x6b,0x51,0x42,0x41,0x6f,0x4d,0x62,0x37,0x65,0x44,0x78,0x4f,0x6c,0x63,0x45,0x64,0x76,0x31,0x39,0x67,0x57,0x55,0x53,0x49,0x4c,0x66,0x52,0x7a,0x79,0x5a,0x38,0x72]),_0x510938=0xaea694a,_0x23f8c8=0xaed03f2^_0x510938,_0x49b054=window[_0x5a583a([0x44,0x61,0x74,0x65])][_0x5a583a([0x6e,0x6f,0x77])](),_0xbe03cc=_0x1eb00f[_0x5a583a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ef5fe=new window[(_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc2a15b=>{_0xbe03cc[_0x5a583a([0x6f,0x6e,0x63,0x65])](_0x5a583a([0x72,0x65,0x61,0x64,0x79]),_0xc2a15b);}),_0x48eb5d={[_0x5a583a([0x6b,0x74,0x79])]:_0x5a583a([0x45,0x43]),[_0x5a583a([0x75,0x73,0x65])]:_0x5a583a([0x73,0x69,0x67]),[_0x5a583a([0x63,0x72,0x76])]:_0x5a583a([0x50,0x2d,0x32,0x35,0x36]),[_0x5a583a([0x78])]:_0x5a583a([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]),[_0x5a583a([0x79])]:_0x5a583a([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]),[_0x5a583a([0x61,0x6c,0x67])]:_0x5a583a([0x45,0x53,0x32,0x35,0x36])},_0x595246=_0xbe03cc[_0x5a583a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a583a([0x67,0x65,0x74])](_0x5a583a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41e92c(){let _0xbf6f62,_0x3185e5=null,_0x17b2c5=null;try{if(_0x595246==_0x5a583a([0x47,0x50,0x4c]))return _0x5a583a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbf6f62=_0x1c5192(),!_0xbf6f62)return _0x5a583a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbf6f62[_0x5a583a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17b2c5=_0x2c6b74(_0xbf6f62[_0x5a583a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbf6f62[_0x5a583a([0x6a,0x74,0x69])])),await _0x4c114d()?_0x165f19()?_0x317f8b()?_0x5a583a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39351a()?(_0xbf6f62[_0x5a583a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a583a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3185e5=_0x282a13(_0x5a583a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xbf6f62[_0x5a583a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a583a([0x74,0x72,0x69,0x61,0x6c])&&(_0x3185e5=_0x282a13(_0x5a583a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f5628()):_0x5a583a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a583a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a583a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a583a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x317f8b(){const _0x459f98=[_0x5a583a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a583a([0x74,0x72,0x69,0x61,0x6c])][_0x5a583a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbf6f62[_0x5a583a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49b054/0x3e8:0xe10*_0x23f8c8;return _0xbf6f62[_0x5a583a([0x65,0x78,0x70])]<_0x459f98;}function _0x165f19(){const _0x3ae983=_0xbf6f62[_0x5a583a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ae983)return!0x1;if(_0x3ae983[_0x5a583a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a583a([0x2a])))return!0x0;if(_0x3ae983[_0x5a583a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a583a([0x54,0x43])))return!0x0;if(_0x3ae983[_0x5a583a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a583a([0x52,0x54,0x43]))){if(_0x374b72())return!0x0;if(_0x13fec7()||_0x5be999())return!0x0;}return!0x1;}function _0x39351a(){const _0x39c956=_0xbf6f62[_0x5a583a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39c956||0x0==_0x39c956[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x224dab}=new URL(window[_0x5a583a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39c956[_0x5a583a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224dab))return!0x0;const _0x502672=_0x224dab[_0x5a583a([0x73,0x70,0x6c,0x69,0x74])](_0x5a583a([0x2e]));return _0x39c956[_0x5a583a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7e844d=>_0x7e844d[_0x5a583a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a583a([0x2a])))[_0x5a583a([0x6d,0x61,0x70])](_0x1be7f2=>_0x1be7f2[_0x5a583a([0x73,0x70,0x6c,0x69,0x74])](_0x5a583a([0x2e])))[_0x5a583a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x689db7=>_0x689db7[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x502672[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a583a([0x6d,0x61,0x70])](_0x4e3df3=>Array(_0x502672[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e3df3[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a583a([0x66,0x69,0x6c,0x6c])](_0x4e3df3[0x0]===_0x5a583a([0x2a])?_0x5a583a([0x2a]):'')[_0x5a583a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e3df3))[_0x5a583a([0x73,0x6f,0x6d,0x65])](_0x67405d=>_0x502672[_0x5a583a([0x65,0x76,0x65,0x72,0x79])]((_0x578a22,_0x761f14)=>_0x67405d[_0x761f14]===_0x578a22||_0x67405d[_0x761f14]===_0x5a583a([0x2a])));}function _0x5f5628(){return _0x3185e5&&_0x17b2c5?new window[(_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d3ddf,_0x220db4)=>{_0x3185e5[_0x5a583a([0x74,0x68,0x65,0x6e])](_0x2d3ddf,_0x220db4),_0x17b2c5[_0x5a583a([0x74,0x68,0x65,0x6e])](_0x2a9002=>{_0x2a9002!=_0x5a583a([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3ddf(_0x2a9002);},_0x220db4);}):_0x3185e5||_0x17b2c5||_0x5a583a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c6b74(_0xaccd54,_0x89c5d1){return new window[(_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x88ed50=>{if(_0xd4b7a9())return _0x88ed50(_0x5a583a([0x56,0x61,0x6c,0x69,0x64]));_0x598f94(),_0xbe03cc[_0x5a583a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a583a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11f9fb=!0x1;const _0x2a5577=_0x4ee927();function _0xf622e8(_0x771e58){return!!_0x771e58&&(typeof _0x771e58===_0x5a583a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x771e58===_0x5a583a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x771e58[_0x5a583a([0x74,0x68,0x65,0x6e])]===_0x5a583a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x771e58[_0x5a583a([0x63,0x61,0x74,0x63,0x68])]===_0x5a583a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb96721(_0x431637){_0x200052(_0x431637)[_0x5a583a([0x74,0x68,0x65,0x6e])](_0x2b838d=>{if(!_0x2b838d||_0x2b838d[_0x5a583a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a583a([0x6f,0x6b]))return _0x5a583a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2835f2(_0x83b306(_0x2a5577+_0x89c5d1))!=_0x2b838d[_0x5a583a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a583a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a583a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a583a([0x74,0x68,0x65,0x6e])](_0x13a55e=>(_0x2b114e(),_0x13a55e),()=>{const _0x194317=_0x5d2f50();return null==_0x194317?(_0x2b114e(),_0x5a583a([0x56,0x61,0x6c,0x69,0x64])):_0x5a583a(_0x49b054-_0x194317>(0x2ee6ed4a^_0x510938)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a583a([0x74,0x68,0x65,0x6e])](_0x88ed50)[_0x5a583a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x88ed50(_0x5a583a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x457948=0xadc87ca^_0x510938;function _0x2b114e(){const _0xc79a8=_0x5a583a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2835f2(_0x83b306(_0xaccd54)),_0x52a431=_0x297b3c(_0x2835f2(window[_0x5a583a([0x4d,0x61,0x74,0x68])][_0x5a583a([0x63,0x65,0x69,0x6c])](_0x49b054/_0x457948)));window[_0x5a583a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a583a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc79a8,_0x52a431);}function _0x5d2f50(){const _0x4371b3=_0x5a583a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2835f2(_0x83b306(_0xaccd54)),_0x1714d9=window[_0x5a583a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a583a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4371b3);return _0x1714d9?window[_0x5a583a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x297b3c(_0x1714d9),0x10)*_0x457948:null;}function _0x200052(_0x1b8e1c){return new window[(_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x331606,_0x5397ca)=>{_0x1b8e1c[_0x5a583a([0x74,0x68,0x65,0x6e])](_0x331606,_0x5397ca),window[_0x5a583a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5397ca,0xaebbd8a^_0x510938);});}}_0xbe03cc[_0x5a583a([0x6f,0x6e])](_0x5a583a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x107875,_0x3cfbc8)=>{if(_0x3cfbc8[0x0]!=_0xaccd54)return _0x88ed50(_0x5a583a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cfbc8[0x1]={..._0x3cfbc8[0x1],[_0x5a583a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a5577};},{[_0x5a583a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a583a([0x68,0x69,0x67,0x68])}),_0xbe03cc[_0x5a583a([0x6f,0x6e])](_0x5a583a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x540841=>{_0xf622e8(_0x540841[_0x5a583a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11f9fb=!0x0,_0xb96721(_0x540841[_0x5a583a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a583a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a583a([0x6c,0x6f,0x77])}),_0x3ef5fe[_0x5a583a([0x74,0x68,0x65,0x6e])](()=>{_0x11f9fb||_0x88ed50(_0x5a583a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd4b7a9(){return _0xbe03cc[_0x5a583a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a583a([0x76,0x69,0x65,0x77])][_0x5a583a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a583a([0x61,0x75,0x74,0x6f]);}function _0x598f94(){_0xbe03cc[_0x5a583a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a583a([0x76,0x69,0x65,0x77])][_0x5a583a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a583a([0x61,0x75,0x74,0x6f]);}}function _0x282a13(_0x5d9b20){const _0x369d81=[new window[(_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7648=>setTimeout(_0x5d7648,0xae35786^_0x510938)),_0x3ef5fe[_0x5a583a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387209=>{let _0x2566e0=0x0;_0xbe03cc[_0x5a583a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a583a([0x6f,0x6e])](_0x5a583a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f2819,_0x3c687c)=>{_0x3c687c[0x0][_0x5a583a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2566e0++,_0x2566e0==(0xaea68b2^_0x510938)&&(_0x387209(),_0x1f2819[_0x5a583a([0x6f,0x66,0x66])]());});}))];return window[_0x5a583a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a583a([0x72,0x61,0x63,0x65])](_0x369d81)[_0x5a583a([0x74,0x68,0x65,0x6e])](()=>_0x5d9b20);}async function _0x3de826(){await _0x3ef5fe,_0xbe03cc[_0x5a583a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a583a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33d47f,_0xbe03cc[_0x5a583a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a583a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33d47f,_0xbe03cc[_0x5a583a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a583a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x374b72(){return _0x25a578(_0x5a583a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x196238(_0x5a583a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a583a([0x73,0x74,0x61,0x74,0x65])]==_0x5a583a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x13fec7(){return _0x25a578(_0x5a583a([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 _0x5be999(){return _0x25a578(_0x5a583a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc52d8b(_0x47a34a){const _0x1a6adc=_0x884e02();_0xbe03cc[_0x1a6adc]=_0x5a583a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x47a34a,_0x47a34a!=_0x5a583a([0x56,0x61,0x6c,0x69,0x64])&&_0x3de826();}function _0x884e02(){const _0xd600e9=window[_0x5a583a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a583a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a583a([0x6e,0x6f,0x77])]())[_0x5a583a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a583a([0x2e]),'');let _0x26cf78=_0x5a583a([0x68]);for(let _0x470219=0x0;_0x470219<_0xd600e9[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x470219+=0x2){let _0x2d4c42=window[_0x5a583a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd600e9[_0x5a583a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x470219,_0x470219+0x2));_0x2d4c42>=_0x50f374[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d4c42-=_0x50f374[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26cf78+=_0x50f374[_0x2d4c42];}return _0x26cf78;}function _0x1c5192(){const _0x3855cf=_0x595246[_0x5a583a([0x73,0x70,0x6c,0x69,0x74])](_0x5a583a([0x2e]));if(0x3!=_0x3855cf[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ebc87(_0x3855cf[0x1]);function _0x5ebc87(_0x5a7b2e){const _0x2ff88e=_0x35015b(_0x5a7b2e);return _0x2ff88e&&_0x178b9a()?_0x2ff88e:null;function _0x178b9a(){const _0x44958f=_0x2ff88e[_0x5a583a([0x6a,0x74,0x69])],_0x5ca335=window[_0x5a583a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44958f[_0x5a583a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44958f[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x455312={..._0x2ff88e,[_0x5a583a([0x6a,0x74,0x69])]:_0x44958f[_0x5a583a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44958f[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x455312[_0x5a583a([0x76,0x63])],_0x83b306(_0x455312)==_0x5ca335;}}}async function _0x4c114d(){let _0xe437bd=!0x0;try{const _0x5f4551=_0x595246[_0x5a583a([0x73,0x70,0x6c,0x69,0x74])](_0x5a583a([0x2e])),[_0x50b0f6,_0x39f89c,_0x5f568e]=_0x5f4551;return _0x18b1f0(_0x50b0f6),await _0x1ff5be(_0x50b0f6,_0x39f89c,_0x5f568e),_0xe437bd;}catch{return!0x1;}function _0x18b1f0(_0x590713){const _0x47706b=_0x35015b(_0x590713);_0x47706b&&_0x47706b[_0x5a583a([0x61,0x6c,0x67])]==_0x5a583a([0x45,0x53,0x32,0x35,0x36])||(_0xe437bd=!0x1);}async function _0x1ff5be(_0x41a469,_0x3df6c8,_0x279471){const _0x3c12f3=window[_0x5a583a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a583a([0x66,0x72,0x6f,0x6d])](_0x3a6f7e(_0x279471),_0x3fc99e=>_0x3fc99e[_0x5a583a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8539f8=new window[(_0x5a583a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a583a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41a469+_0x5a583a([0x2e])+_0x3df6c8),_0x2a0f3c=window[_0x5a583a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a583a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a0f3c)return;const _0x22a811=await _0x2a0f3c[_0x5a583a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a583a([0x6a,0x77,0x6b]),_0x48eb5d,{[_0x5a583a([0x6e,0x61,0x6d,0x65])]:_0x5a583a([0x45,0x43,0x44,0x53,0x41]),[_0x5a583a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a583a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a583a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a0f3c[_0x5a583a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a583a([0x6e,0x61,0x6d,0x65])]:_0x5a583a([0x45,0x43,0x44,0x53,0x41]),[_0x5a583a([0x68,0x61,0x73,0x68])]:{[_0x5a583a([0x6e,0x61,0x6d,0x65])]:_0x5a583a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22a811,_0x3c12f3,_0x8539f8)||(_0xe437bd=!0x1);}}function _0x35015b(_0x54887d){return _0x54887d[_0x5a583a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a583a([0x65,0x79]))?JSON[_0x5a583a([0x70,0x61,0x72,0x73,0x65])](_0x3a6f7e(_0x54887d)):null;}function _0x3a6f7e(_0x8cad09){return window[_0x5a583a([0x61,0x74,0x6f,0x62])](_0x8cad09[_0x5a583a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a583a([0x2b]))[_0x5a583a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a583a([0x2f])));}function _0x83b306(_0x121010){let _0x22b4a1=0x1505;function _0x3f0393(_0x46a47d){for(let _0x59bb3b=0x0;_0x59bb3b<_0x46a47d[_0x5a583a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59bb3b++){const _0x49d81f=_0x46a47d[_0x5a583a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59bb3b);_0x22b4a1=(_0x22b4a1<<0x5)+_0x22b4a1+_0x49d81f,_0x22b4a1&=_0x22b4a1;}}function _0x45bd84(_0x570ace){Array[_0x5a583a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x570ace)?_0x570ace[_0x5a583a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45bd84):_0x570ace&&typeof _0x570ace==_0x5a583a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a583a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x570ace)[_0x5a583a([0x73,0x6f,0x72,0x74])]()[_0x5a583a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12aaa6,_0x39c35c])=>{_0x3f0393(_0x12aaa6),_0x45bd84(_0x39c35c);}):_0x3f0393(window[_0x5a583a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x570ace));}return _0x45bd84(_0x121010),_0x22b4a1>>>0x0;}function _0x2835f2(_0x346994){return _0x346994[_0x5a583a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a583a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a583a([0x30]));}function _0x297b3c(_0x3e5449){return _0x3e5449[_0x5a583a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a583a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a583a([0x6a,0x6f,0x69,0x6e])]('');}function _0x25a578(_0x35b8e6){return _0xbe03cc[_0x5a583a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a583a([0x68,0x61,0x73])](_0x35b8e6);}function _0x196238(_0x320c20){return _0xbe03cc[_0x5a583a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a583a([0x67,0x65,0x74])](_0x320c20);}function _0x33d47f(){}function _0x5a583a(_0x101bd2){return _0x101bd2['map'](_0x475366=>String['fromCharCode'](_0x475366))['join']('');}_0xc52d8b(await _0x41e92c());}(this);}set['adapter'](_0x501e38){if(this['_adapter'])throw new _0x22e281('track-changes-adapter-already-set',this);this['_adapter']=_0x501e38;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2e467d=!0x1,toJSON:_0x18f4a6=!0x1}={}){const _0x226de8=[];for(const _0xa8ce14 of this['_suggestions']['values']())_0x2e467d&&!_0xa8ce14['isInContent']||_0x226de8['push'](_0xa8ce14);return _0x18f4a6?_0x226de8['map'](_0x5c3523=>_0x5c3523['toJSON']()):_0x226de8;}['getSuggestion'](_0x590eba){const _0x209016=this['_suggestions']['get'](_0x590eba);if(!_0x209016)throw new _0x22e281('track-changes-suggestion-not-found',this);return _0x209016;}['hasSuggestion'](_0x4474c6){return this['_suggestions']['has'](_0x4474c6);}['addSuggestionData'](_0x20b09e){const {authorId:_0x209b8f,id:_0xc1d4a,originalSuggestionId:_0x25b184,attributes:_0x4eae4a}=_0x20b09e,[_0xfbac8f,_0x19b6ba]=_0x20b09e['type']['split'](':'),_0x1af502=this['_suggestions']['get'](_0xc1d4a)||this['_createSuggestion'](_0xfbac8f,_0x19b6ba,_0xc1d4a,_0x209b8f,_0x4eae4a,_0x25b184);if(this['_addThreadToSuggestion'](_0x1af502),this['_checkSuggestionCorrectness'](_0x1af502,_0xfbac8f,_0x19b6ba||null,_0x209b8f),_0x1af502['createdAt']=_0x20b09e['createdAt'],_0x1af502['_isDataLoaded']=!0x0,_0x4eae4a&&_0x4eae4a['@external']){const _0x47cc16=_0x4eae4a['@external'],_0x48cb76=this['_getExternalAuthor'](_0x47cc16['authorName']);_0x1af502['authoredAt']=_0x47cc16['createdAt'],_0x1af502['author']=_0x48cb76,_0x1af502['isExternal']=!0x0;}else _0x1af502['authoredAt']=_0x20b09e['createdAt'];switch(_0x20b09e['data']&&(_0x1af502['data']=_0x20b09e['data']),_0x20b09e['attributes']&&(_0x1af502['attributes']=_0x20b09e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1af502['_saved']=!0x0),this['_suggestionState']['get'](_0x1af502)){case'notReady':this['_suggestionState']['set'](_0x1af502,'dataReady');break;case'markerReady':_0x1af502['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1af502])),this['_refreshSuggestionsChain'](new Set([_0x1af502])),this['_suggestionState']['set'](_0x1af502,'ready'),this['fire']('suggestionLoaded',_0x1af502)):this['_suggestionState']['set'](_0x1af502,'removed');}return _0x1af502;}['acceptSuggestion'](_0x2abf65){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54e471 of _0x2abf65['getAllAdjacentSuggestions']())_0x54e471['accept']();});});}['discardSuggestion'](_0x4ab23e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26fa3a of _0x4ab23e['getAllAdjacentSuggestions']())_0x26fa3a['discard']();});});}['enableCommand'](_0x3d0879,_0x131b43){const _0x56b253=this['editor']['commands']['get'](_0x3d0879);if(!_0x56b253)throw new _0x22e281('track-changes-command-not-found',this,{'commandName':_0x3d0879});if(this['_enabledCommands']['has'](_0x56b253))throw new _0x22e281('track-changes-enable-command-twice',this,{'commandName':_0x3d0879});this['_enabledCommands']['add'](_0x56b253),_0x131b43&&_0x56b253['on']('execute',(_0xe0cb2e,_0x565ce3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x565ce3['length']>0x0&&_0x565ce3[_0x565ce3['length']-0x1]&&_0x565ce3[_0x565ce3['length']-0x1]['forceDefaultExecution']?_0x565ce3['pop']():(_0xe0cb2e['return']=_0x131b43((..._0x3132fc)=>_0x56b253['execute'](..._0x3132fc,{'forceDefaultExecution':!0x0}),..._0x565ce3),_0xe0cb2e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xb3e330){let _0x2b8a46,_0x2917b3;const _0x18dc91=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b8a46=_0xb3e330();}catch(_0x2b5416){_0x2917b3=_0x2b5416;}return _0x18dc91||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2917b3&&_0x22e281['rethrowUnexpectedError'](_0x2917b3,this),_0x2b8a46;}['markInsertion'](_0xdfb3dc,_0x167453=null,_0x393cc8={}){if(_0xdfb3dc['isCollapsed'])return null;const _0x5a5500=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x393cc8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb4e825,meta:_0x5b1998}of this['_findSuggestions'](_0xdfb3dc,'insertion'))if(_0x5b1998['isOwn']){if(!_0x5b1998['isNextTo']){if(_0x5b1998['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xb4e825,_0x393cc8))continue;return _0xb4e825;}if(Xt(_0xb4e825,_0x393cc8))return _0xb4e825;this['_breakSuggestionMarker'](_0xb4e825,_0xdfb3dc['start'],_0xdfb3dc['end']);break;}if(_0x167453==_0xb4e825['subType']&&Xt(_0xb4e825,_0x393cc8)){const _0x1aadd6=_0xb4e825['getFirstRange']();return _0x1aadd6['start']['isEqual'](_0xdfb3dc['end'])?this['_setSuggestionRange'](_0xb4e825,this['_model']['createRange'](_0xdfb3dc['start'],_0x1aadd6['end'])):this['_setSuggestionRange'](_0xb4e825,this['_model']['createRange'](_0x1aadd6['start'],_0xdfb3dc['end'])),_0xb4e825;}}const _0x175747=_0x4ee927(),_0x1d975=_0x5a5500['id'],_0x26be6d=_0x167453?'insertion:'+_0x167453:'insertion',_0x1bc668=this['_setSuggestionData']({'id':_0x175747,'type':_0x26be6d,'createdAt':new Date(),'authorId':_0x1d975,'attributes':_0x393cc8});return this['_addSuggestionMarker'](_0x26be6d,_0x175747,_0x1d975,_0xdfb3dc),_0x1bc668;}['markMultiRangeInsertion'](_0x26f112,_0x5471b6='multi',_0x451edf={}){const _0x15fc1f=this['editor']['plugins']['get']('Users')['me'],_0x359477=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5471b6,'join');this['_trackingSessionId']&&(_0x451edf['trackingSessionId']=this['_trackingSessionId']);for(const _0x12782c of this['getSuggestions']())if(_0x12782c['author']['id']==_0x15fc1f['id']&&'insertion'==_0x12782c['type']&&_0x12782c['subType']==_0x5471b6&&Xt(_0x12782c,_0x451edf)&&(_0x359477(_0x12782c['getRanges'](),_0x26f112)||_0x359477(_0x26f112,_0x12782c['getRanges']()))){for(const _0x1e9d3e of _0x26f112)_0x12782c['addRange'](_0x1e9d3e);return _0x12782c;}for(const {suggestion:_0x40f33b,meta:_0x238073}of this['_findSuggestions'](_0x26f112,'insertion')){if(!_0x238073['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x238073['containsRangeInObject'])continue;if(!Xt(_0x40f33b,_0x451edf))continue;let _0x9c4d4e=!0x0;for(const _0x4d2b6b of _0x40f33b['getRanges']())for(const _0xdfa1ec of _0x26f112)if(!_0x4d2b6b['containsRange'](_0xdfa1ec)){_0x9c4d4e=!0x1;break;}if(_0x9c4d4e)return _0x40f33b;}const _0x1823b0=_0x4ee927(),_0x91d719=_0x15fc1f['id'],_0x5076bd='insertion:'+_0x5471b6,_0x268b9e=this['_setSuggestionData']({'id':_0x1823b0,'type':_0x5076bd,'createdAt':new Date(),'authorId':_0x91d719,'attributes':_0x451edf});for(const _0x1b8fb0 of _0x26f112)this['_addSuggestionMarker'](_0x5076bd,_0x1823b0,_0x91d719,_0x1b8fb0,o['getMultiRangeId']());return _0x268b9e;}['markInlineFormat'](_0x255863,_0x217346,_0x11b4f2=null,_0x5070ce={}){if(_0x11b4f2=_0x11b4f2||Kt(_0x217346),_0x255863['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5070ce['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2f2a03=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11b4f2,'accept');return this['forceDefaultExecution'](()=>_0x2f2a03([_0x255863],_0x217346,_0x5070ce)),null;}const _0xdc041d=this['editor']['plugins']['get']('Users')['me'],_0x6bc1a0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2c0a1a,meta:_0x1c3771}of this['_findSuggestions'](_0x255863,'insertion'))_0x1c3771['isOwn']&&!_0x1c3771['isInsideObject']&&_0x6bc1a0['push'](..._0x2c0a1a['getRanges']());}const _0x14d5ac=function(_0x1f0385,_0x53bc7b){const _0x5c82d2=[];for(const _0x29f352 of _0x53bc7b){const _0x316cc2=_0x1f0385['getIntersection'](_0x29f352);_0x316cc2&&_0x5c82d2['push'](_0x316cc2);}return _0x5c82d2;}(_0x255863,_0x6bc1a0),_0x1e3d5b=function(_0x501e55,_0x21d831){const _0x4cb8f9=[_0x501e55];for(const _0x43319f of _0x21d831){let _0x1aac01=0x0;for(;_0x1aac01<_0x4cb8f9['length'];){const _0xe7dda0=_0x4cb8f9[_0x1aac01]['getDifference'](_0x43319f);_0x4cb8f9['splice'](_0x1aac01,0x1,..._0xe7dda0),_0x1aac01+=_0xe7dda0['length'];}}return _0x4cb8f9;}(_0x255863,_0x6bc1a0);_0x14d5ac['length']&&this['_model']['change'](()=>{for(const _0x708553 of _0x14d5ac){const _0x222b03=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11b4f2,'accept');this['forceDefaultExecution'](()=>_0x222b03([_0x708553],_0x217346,_0x5070ce));}});for(const _0x1aeff9 of _0x1e3d5b){let _0x41a38a=null,_0x57fa2b=_0x1aeff9['start'],_0x35a218=_0x1aeff9['end'];for(const {suggestion:_0x1e79f6,meta:_0x345bbf}of this['_findSuggestions'](_0x1aeff9,'formatInline')){if(!_0x345bbf['isOwn'])continue;if(_0x1e79f6['subType']!=_0x11b4f2)continue;if(!Xt(_0x1e79f6,_0x5070ce))continue;const _0x6904b9=_0x1e79f6['getFirstRange']();if(_0x6904b9['containsRange'](_0x1aeff9,!0x0))return null;_0x57fa2b=_0x57fa2b['isBefore'](_0x6904b9['start'])?_0x57fa2b:_0x6904b9['start'],_0x35a218=_0x35a218['isAfter'](_0x6904b9['end'])?_0x35a218:_0x6904b9['end'],_0x41a38a?_0x6904b9['start']['isBefore'](_0x41a38a['getFirstRange']()['start'])?(_0x41a38a['removeMarkers'](),_0x41a38a=_0x1e79f6):_0x1e79f6['removeMarkers']():_0x41a38a=_0x1e79f6;}const _0x5441f5=this['_model']['createRange'](_0x57fa2b,_0x35a218);if(_0x41a38a)this['_setSuggestionRange'](_0x41a38a,_0x5441f5);else{const _0x48ed8c=_0x4ee927(),_0x64881b=_0xdc041d['id'];this['_setSuggestionData']({'id':_0x48ed8c,'type':'formatInline:'+_0x11b4f2,'data':_0x217346,'createdAt':new Date(),'authorId':_0x64881b,'attributes':_0x5070ce}),this['_addSuggestionMarker']('formatInline:'+_0x11b4f2,_0x48ed8c,_0x64881b,_0x5441f5);}}return null;}['markBlockFormat'](_0x6ed1f9,_0x4ae5a1,_0x4d7994=[],_0x194d94=null,_0x2782fb={}){_0x4ae5a1['formatGroupId']||(_0x4ae5a1['formatGroupId']=_0x4ae5a1['commandName']),_0x4ae5a1['multipleBlocks']=_0x6ed1f9['is']('range'),_0x194d94=_0x194d94||Kt(_0x4ae5a1);const _0x2cb481=_0x4d7994['map'](_0x26b39c=>zt(_0x26b39c,this['_model'])),_0x10ecd1=_0x6ed1f9['is']('range')?_0x6ed1f9:zt(_0x6ed1f9,this['_model']);if(this['_trackingSessionId']&&(_0x2782fb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x582642=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x194d94,'accept');return this['forceDefaultExecution'](()=>_0x582642([_0x10ecd1],_0x4ae5a1,_0x2782fb)),null;}_0x2cb481['push'](_0x10ecd1);let _0x39f91c=!0x0;for(const _0x1292b4 of _0x2cb481)if(!this['_rangeIsInLocalUserInsertion'](_0x1292b4)){_0x39f91c=!0x1;break;}if(_0x39f91c&&'always'!==this['_trackFormatChanges']){const _0x4b2cbe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x194d94,'accept');return this['forceDefaultExecution'](()=>_0x4b2cbe([_0x10ecd1],_0x4ae5a1,_0x2782fb)),null;}let _0x4ec8b6=null,_0x3f254f=_0x10ecd1['start'],_0x2b81ae=_0x10ecd1['end'];for(const {suggestion:_0x8a9600,meta:_0x206478}of this['_findSuggestions'](_0x10ecd1,'formatBlock')){if(!_0x206478['isOwn'])continue;if(_0x206478['isNextTo']||_0x206478['containsRangeInObject']||_0x206478['isInsideObject'])continue;if(_0x8a9600['data']['formatGroupId']!=_0x4ae5a1['formatGroupId'])continue;if(!Xt(_0x8a9600,_0x2782fb))continue;const _0x4f0716=_0x8a9600['getFirstRange']();if(_0x8a9600['subType']==_0x194d94){if(_0x4f0716['containsRange'](_0x10ecd1,!0x0))return null;_0x3f254f=_0x3f254f['isBefore'](_0x4f0716['start'])?_0x3f254f:_0x4f0716['start'],_0x2b81ae=_0x2b81ae['isAfter'](_0x4f0716['end'])?_0x2b81ae:_0x4f0716['end'],_0x4ec8b6?_0x4f0716['start']['isBefore'](_0x4ec8b6['getFirstRange']()['start'])?(_0x4ec8b6['removeMarkers'](),_0x4ec8b6=_0x8a9600):_0x8a9600['removeMarkers']():_0x4ec8b6=_0x8a9600;}else{const _0x2d2d33=_0x10ecd1['getIntersection'](_0x4f0716);this['_cutOutSuggestionMarker'](_0x8a9600,_0x2d2d33);}}const _0x366379=this['editor']['plugins']['get']('Users')['me'],_0x5cdf8a=_0x4ee927(),_0xf5051b=_0x366379['id'];if(_0x4ec8b6)return this['_setSuggestionRange'](_0x4ec8b6,this['_model']['createRange'](_0x3f254f,_0x2b81ae)),_0x4ec8b6;{const _0x727d30=this['_setSuggestionData']({'id':_0x5cdf8a,'type':'formatBlock:'+_0x194d94,'data':_0x4ae5a1,'createdAt':new Date(),'authorId':_0xf5051b,'attributes':_0x2782fb});return this['_addSuggestionMarker']('formatBlock:'+_0x194d94,_0x5cdf8a,_0xf5051b,this['_model']['createRange'](_0x3f254f,_0x2b81ae)),_0x727d30;}}['markMultiRangeBlockFormat'](_0x13d77e,_0x7488df,_0xb211c8=[],_0x247d35=null,_0x3172c9={}){_0x7488df['formatGroupId']||(_0x7488df['formatGroupId']=_0x7488df['commandName']);const _0x2bcd35=_0x13d77e[0x0];_0x7488df['multipleBlocks']=_0x2bcd35['is']('range'),_0x247d35=_0x247d35||Kt(_0x7488df);const _0x38bd33=_0xb211c8['map'](_0xcf3043=>zt(_0xcf3043,this['_model'])),_0x55ad45=_0x2bcd35['is']('range')?_0x13d77e:_0x13d77e['map'](_0x17b0ff=>zt(_0x17b0ff,this['_model']));if(this['_trackingSessionId']&&(_0x3172c9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1996e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x247d35,'accept');return this['forceDefaultExecution'](()=>_0x1996e0(_0x55ad45,_0x7488df,_0x3172c9)),null;}_0x38bd33['push'](..._0x55ad45);let _0xde5fd=!0x0;for(const _0x53d0ed of _0x38bd33)if(!this['_rangeIsInLocalUserInsertion'](_0x53d0ed)){_0xde5fd=!0x1;break;}if(_0xde5fd&&'always'!==this['_trackFormatChanges']){const _0x1a1d66=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x247d35,'accept');return this['forceDefaultExecution'](()=>_0x1a1d66(_0x55ad45,_0x7488df,_0x3172c9)),null;}const _0x34822a=this['editor']['plugins']['get']('Users')['me'];for(const _0x24bdaf of this['getSuggestions']()){if(_0x24bdaf['author']['id']!=_0x34822a['id'])continue;if('formatBlock'!=_0x24bdaf['type']||_0x24bdaf['data']['formatGroupId']!=_0x7488df['formatGroupId'])continue;if(!Xt(_0x24bdaf,_0x3172c9))continue;const _0x4a634a=_0x24bdaf['subType']==_0x247d35;for(let _0x140ad=0x0;_0x140ad<_0x55ad45['length'];_0x140ad++){const _0x36e4e4=_0x55ad45[_0x140ad];for(const _0x55e206 of _0x24bdaf['getMarkers']()){const _0x5d24cd=_0x55e206['getRange']();if(_0x36e4e4['isEqual'](_0x5d24cd)){_0x4a634a?(_0x55ad45['splice'](_0x140ad,0x1),_0x140ad--):_0x24bdaf['removeMarker'](_0x55e206['name']);break;}}}}if(0x0==_0x55ad45['length'])return null;const _0x28223f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x247d35,'join');for(const _0x3c884b of this['getSuggestions']())if(_0x3c884b['author']['id']==_0x34822a['id']&&'formatBlock'==_0x3c884b['type']&&_0x3c884b['data']['formatGroupId']==_0x7488df['formatGroupId']&&_0x3c884b['subType']==_0x247d35&&Xt(_0x3c884b,_0x3172c9)&&(_0x28223f(_0x3c884b['getRanges'](),_0x55ad45)||_0x28223f(_0x55ad45,_0x3c884b['getRanges']()))){for(const _0x58bb64 of _0x55ad45)_0x3c884b['addRange'](_0x58bb64);return _0x3c884b;}const _0x44e12d=_0x4ee927(),_0x5a5a7f=_0x34822a['id'],_0x3031d4='formatBlock:'+_0x247d35,_0x4b9bc9=this['_setSuggestionData']({'id':_0x44e12d,'type':_0x3031d4,'data':_0x7488df,'createdAt':new Date(),'authorId':_0x5a5a7f,'attributes':_0x3172c9});for(const _0xbb8f1a of _0x55ad45)this['_addSuggestionMarker'](_0x3031d4,_0x44e12d,_0x5a5a7f,_0xbb8f1a,o['getMultiRangeId']());return _0x4b9bc9;}['markDeletion'](_0x335863,_0x3b12a3=null,_0x2806b7={}){if(_0x335863['isCollapsed'])return null;const _0x1cfcae=this['editor']['plugins']['get']('Users')['me'],_0x5c2824=new _0x31030b(_0x335863['start'],_0x335863['end']);this['_trackingSessionId']&&(_0x2806b7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6484e7,meta:_0x20b721}of this['_findSuggestions'](_0x5c2824,'insertion'))if(_0x20b721['isOwn']&&!_0x20b721['isNextTo']){if(_0x6484e7['isMultiRange']){const _0x3898a7=_0x6484e7['getRanges']()['filter'](_0x8e995d=>'$graveyard'!=_0x8e995d['root']['rootName']);_0x3898a7['every'](_0x9713c0=>_0x5c2824['containsRange'](_0x9713c0,!0x0))&&_0x6484e7['discard']();if(_0x3898a7['some'](_0x417f8e=>_0x417f8e['containsRange'](_0x5c2824,!0x0))){const _0x5035e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b12a3,'accept');return this['forceDefaultExecution'](()=>_0x5035e9([_0x5c2824],null,_0x2806b7)),null;}}else{const _0x11e3e6=_0x5c2824['getIntersection'](_0x6484e7['getFirstRange']());null!==_0x11e3e6&&_0x6484e7['_onDiscard']([_0x11e3e6],null,_0x2806b7);}}if(_0x5c2824['detach'](),_0x5c2824['isCollapsed']||'$graveyard'==_0x5c2824['root']['rootName'])return null;let _0x37658e=null,_0x1a006e=_0x5c2824['start'],_0x154876=_0x5c2824['end'];const _0xedc385=this['_findSuggestions'](_0x5c2824,'deletion');for(const {suggestion:_0xaa05b,meta:_0x2c5475}of _0xedc385){const _0x144d3d=this['_model']['createRange'](_0x1a006e,_0x154876);if(_0x2c5475['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c5475['containsRangeInObject']&&!_0x2c5475['isInsideObject'])){if(_0xaa05b['isMultiRange']){if(!Xt(_0xaa05b,_0x2806b7))continue;let _0x435672=!0x0;for(const _0xd721 of _0xaa05b['getRanges']()){if(_0xd721['containsRange'](_0x144d3d,!0x0))return _0xaa05b;_0x144d3d['containsRange'](_0xd721)||(_0x435672=!0x1);}_0x435672&&_0xaa05b['discard']();}else{const _0x419a5b=_0xaa05b['getFirstRange']();if(_0x419a5b['containsRange'](_0x144d3d,!0x0))return _0xaa05b;if(!Xt(_0xaa05b,_0x2806b7)){_0x144d3d['containsRange'](_0x419a5b)?_0xaa05b['removeMarkers']():_0x419a5b['containsPosition'](_0x1a006e)?_0x1a006e=_0x419a5b['end']:_0x419a5b['containsPosition'](_0x154876)&&(_0x154876=_0x419a5b['start']);continue;}_0x1a006e=_0x1a006e['isBefore'](_0x419a5b['start'])?_0x1a006e:_0x419a5b['start'],_0x154876=_0x154876['isAfter'](_0x419a5b['end'])?_0x154876:_0x419a5b['end'],_0x2806b7=Object['assign']({},_0xaa05b['attributes']),_0x37658e?_0x419a5b['start']['isBefore'](_0x37658e['getFirstRange']()['start'])?(_0x37658e['removeMarkers'](),_0x37658e=_0xaa05b):_0xaa05b['removeMarkers']():_0x37658e=_0xaa05b;}}}if(_0x37658e)return this['_setSuggestionRange'](_0x37658e,this['_model']['createRange'](_0x1a006e,_0x154876)),_0x37658e;{const _0x16b4a7=_0x4ee927(),_0x3a06ae=this['_model']['createRange'](_0x1a006e,_0x154876),_0x463686=_0x1cfcae['id'],_0x56edf8=_0x3b12a3?'deletion:'+_0x3b12a3:'deletion',_0x2da1c8=this['_setSuggestionData']({'id':_0x16b4a7,'type':_0x56edf8,'createdAt':new Date(),'authorId':_0x463686,'attributes':_0x2806b7});return this['_addSuggestionMarker'](_0x56edf8,_0x16b4a7,_0x463686,_0x3a06ae),_0x2da1c8;}}['markMultiRangeDeletion'](_0x4a71bc,_0x4fd6a8='multi',_0x2b522b={}){const _0x31e2b1=this['editor']['plugins']['get']('Users')['me'],_0x47e7cd=_0x4a71bc['map'](_0x4b181e=>new _0x31030b(_0x4b181e['start'],_0x4b181e['end'])),_0x6b927a=new Set();this['_trackingSessionId']&&(_0x2b522b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4cbe84,meta:_0x377355}of this['_findSuggestions'](_0x47e7cd,'insertion'))_0x377355['isOwn']&&!_0x377355['isNextTo']&&_0x6b927a['add'](_0x4cbe84);for(const _0x26eb66 of _0x6b927a)if(_0x26eb66['isMultiRange']){const _0x3a61c9=_0x26eb66['getRanges']();(!_0x26eb66['attributes']||!_0x26eb66['attributes']['skipNestingCheck'])&&(_0x3a61c9['every'](_0xf64085=>_0x47e7cd['some'](_0x2201fa=>_0x2201fa['containsRange'](_0xf64085,!0x0)))&&_0x26eb66['discard']());if(_0x47e7cd['every'](_0x1fe2c4=>_0x3a61c9['some'](_0x6bf36b=>_0x6bf36b['containsRange'](_0x1fe2c4,!0x0)))){const _0x47e945=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fd6a8,'accept');return this['forceDefaultExecution'](()=>_0x47e945(_0x4a71bc,null,_0x2b522b)),null;}}else{const _0x69a02c=_0x26eb66['getFirstRange']();_0x47e7cd['some'](_0x2f852b=>_0x2f852b['containsRange'](_0x69a02c,!0x0))&&_0x26eb66['discard']();if(_0x47e7cd['every'](_0x2fcf81=>_0x69a02c['containsRange'](_0x2fcf81,!0x0))){const _0x46fc64=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fd6a8,'accept');return this['forceDefaultExecution'](()=>_0x46fc64(_0x47e7cd,null,_0x2b522b)),null;}}const _0x121905=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fd6a8,'join');let _0x2444ce=null;for(const _0x138deb of this['getSuggestions']())if(_0x138deb['author']['id']==_0x31e2b1['id']&&_0x138deb['isInContent']&&'deletion'==_0x138deb['type']&&_0x138deb['subType']==_0x4fd6a8&&Xt(_0x138deb,_0x2b522b)&&(_0x121905(_0x138deb['getRanges'](),_0x47e7cd)||_0x121905(_0x47e7cd,_0x138deb['getRanges']()))){if(_0x2444ce){if(_0x138deb['commentThread']&&_0x138deb['commentThread']['length'])continue;for(const _0x202005 of _0x138deb['getRanges']())_0x2444ce['isIntersectingWithRange'](_0x202005)||_0x2444ce['addRange'](_0x202005);_0x138deb['removeMarkers']();}else{_0x2444ce=_0x138deb;for(const _0xc65ef of _0x47e7cd)_0x138deb['isIntersectingWithRange'](_0xc65ef)||_0x138deb['addRange'](_0xc65ef);}}if(_0x2444ce)return _0x2444ce;_0x6b927a['clear']();for(const {suggestion:_0x59a8d7,meta:_0x3f7cdd}of this['_findSuggestions'](_0x47e7cd,'deletion'))_0x3f7cdd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f7cdd['containsRangeInObject']&&!_0x3f7cdd['isInsideObject'])&&Xt(_0x59a8d7,_0x2b522b)&&_0x6b927a['add'](_0x59a8d7);for(const _0x30587c of _0x6b927a){const _0x4d7c15=_0x30587c['getRanges']();if(!_0x2b522b||!_0x2b522b['skipNestingCheck']){if(_0x47e7cd['every'](_0x3ec08a=>_0x4d7c15['some'](_0x59e83d=>_0x59e83d['containsRange'](_0x3ec08a,!0x0))))return _0x30587c;}(!_0x30587c['attributes']||!_0x30587c['attributes']['skipNestingCheck'])&&(_0x4d7c15['every'](_0x2de5cb=>_0x47e7cd['some'](_0x58223e=>_0x58223e['containsRange'](_0x2de5cb,!0x0)))&&_0x30587c['discard']());}const _0x1fe178=_0x4ee927(),_0x5054fe=_0x31e2b1['id'],_0x5a9d05='deletion:'+_0x4fd6a8,_0x464717=this['_setSuggestionData']({'id':_0x1fe178,'type':_0x5a9d05,'createdAt':new Date(),'authorId':_0x5054fe,'attributes':_0x2b522b});for(const _0x2cf0fd of _0x47e7cd)_0x2cf0fd['detach'](),_0x2cf0fd['isCollapsed']||'$graveyard'==_0x2cf0fd['root']['rootName']||this['_addSuggestionMarker'](_0x5a9d05,_0x1fe178,_0x5054fe,_0x2cf0fd,o['getMultiRangeId']());return _0x464717;}['markAttributeChange'](_0x1c8bdb,_0xdc632b,_0x210954,_0x44f79f,_0x48aa80){if(_0x1c8bdb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1ad67b=this['editor']['plugins']['get']('Users')['me']['id'],_0x119a50=Array['from'](this['_suggestions']['values']())['filter'](_0x36a64a=>'attribute'==_0x36a64a['type']&&_0x36a64a['data']['key']==_0xdc632b&&_0x36a64a['isIntersectingWithRange'](_0x1c8bdb));if(this['_trackingSessionId']&&(_0x48aa80['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x451993=this['_findSuggestions'](_0x1c8bdb,'insertion')['filter'](({meta:_0x3135fc})=>_0x3135fc['isOwn']&&!_0x3135fc['isInsideObject']&&!_0x3135fc['isNextTo'])['map'](({suggestion:_0x3cdfe2})=>_0x3cdfe2);_0x119a50['unshift'](..._0x451993);}const _0x4b6ef0=new Map([[_0x1c8bdb,_0x210954]]);for(const _0x811230 of _0x119a50){const _0x257ce2='attribute'==_0x811230['type']?_0x811230['data']['oldValue']:void 0x0,_0x4e0807=_0x811230['getFirstRange'](),_0x56b06f=Array['from'](_0x4b6ef0['keys']())['find'](_0x38cf16=>_0x38cf16['isIntersecting'](_0x4e0807));if(!_0x56b06f)continue;const _0x24c416=_0x56b06f['getDifference'](_0x4e0807);this['_isBlockAttribute'](_0xdc632b)&&'insertion'==_0x811230['type']&&0x0!=_0x24c416['length']||(_0x4b6ef0['delete'](_0x56b06f),_0x24c416['forEach'](_0x45b25b=>{_0x4b6ef0['set'](_0x45b25b,_0x210954);}),'insertion'!=_0x811230['type']&&_0x257ce2!=_0x44f79f&&_0x4b6ef0['set'](_0x56b06f['getIntersection'](_0x4e0807),_0x257ce2));}const _0x2b3ac2=[];for(const [_0x555155,_0x2b4413]of _0x4b6ef0){const _0x3a0a2d=_0x4ee927(),_0x3d6c3d={'key':_0xdc632b,'oldValue':_0x2b4413,'newValue':_0x44f79f};_0xdc632b['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':_0xdc632b});const _0x396239=('attribute:'+(_0xdc632b+'|'+Kt({'newValue':_0x44f79f})))['substring'](0x0,0x3c),_0x54a407=this['_setSuggestionData']({'id':_0x3a0a2d,'type':_0x396239,'data':_0x3d6c3d,'createdAt':new Date(),'authorId':_0x1ad67b,'attributes':_0x48aa80});_0x2b3ac2['push'](_0x54a407),this['_addSuggestionMarker'](_0x396239,_0x3a0a2d,_0x1ad67b,_0x555155);}return _0x2b3ac2;}['enableDefaultAttributesIntegration'](_0x5a1131){this['enableCommand'](_0x5a1131,(_0x67f2df,..._0x367d7f)=>{this['_recordAttributeChanges'](()=>{_0x67f2df(..._0x367d7f);});});}['registerBlockAttribute'](_0x4786f7){this['_blockAttributeKeys']['add'](_0x4786f7);}['registerInlineAttribute'](_0x425c45){this['_inlineAttributeKeys']['add'](_0x425c45);}['startTrackingSession'](_0x26965d){return this['_trackingSessionId']=void 0x0!==_0x26965d?_0x26965d:_0x4ee927(),this['_trackingSessionId'];}['_getAttributeKey'](_0x51e7a6){return'attribute'==_0x51e7a6['type']?_0x51e7a6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x6cec6,_0x41af9f){const _0x1f829a=_0x6cec6['getFirstMarker']();this['_model']['change'](_0x44aa86=>{_0x44aa86['updateMarker'](_0x1f829a,{'range':_0x41af9f});});}['_addThreadToSuggestion'](_0x48b91f){const _0x4bc51a=_0x48b91f['id'],_0x30a93d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4bc51a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x30a93d,'threadId':_0x4bc51a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4f667d=this['_commentsRepository']['getCommentThread'](_0x4bc51a);_0x4f667d['unbind']('isRemovable'),_0x4f667d['isRemovable']=!0x1,_0x48b91f['commentThread']=_0x4f667d;}['_checkSuggestionCorrectness'](_0x4febb2,_0x23c536,_0x379fac,_0x48ce76){if(_0x4febb2['type']!=_0x23c536||_0x4febb2['subType']!=_0x379fac||_0x4febb2['creator']['id']!=_0x48ce76)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x22e281('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x599878,_0x5f4f12){const _0xae67a7=_0x599878['getFirstRange']();if(_0x5f4f12['isEqual'](_0xae67a7))_0x599878['removeMarkers']();else{if(_0xae67a7['containsRange'](_0x5f4f12)){const _0x3b8200=this['_model']['createPositionAt'](_0x5f4f12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x599878,this['_model']['createRange'](_0xae67a7['start'],_0x3b8200));const _0x20a3d9=_0x4ee927(),_0x346043=_0x599878['creator']['id'],_0x131c6b=_0x599878['type']+':'+_0x599878['subType'];this['_setSuggestionData']({'id':_0x20a3d9,'type':_0x131c6b,'createdAt':new Date(),'authorId':_0x346043,'data':_0x599878['data'],'attributes':_0x599878['attributes']});const _0x2728da=this['_model']['createPositionAt'](_0x5f4f12['end']['parent'],'after'),_0x296c8a=this['_model']['createRange'](_0x2728da,_0xae67a7['end']);this['_addSuggestionMarker'](_0x131c6b,_0x20a3d9,_0x346043,_0x296c8a);}else{if(_0xae67a7['containsPosition'](_0x5f4f12['start'])){const _0x1c502d=this['_model']['createPositionAt'](_0x5f4f12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x599878,this['_model']['createRange'](_0xae67a7['start'],_0x1c502d));}else{const _0x502af1=this['_model']['createPositionAt'](_0x5f4f12['end']['parent'],'after');this['_setSuggestionRange'](_0x599878,this['_model']['createRange'](_0x502af1,_0xae67a7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4ffc10){for(const {suggestion:_0x65d7b9,meta:_0x1e7a5d}of this['_findSuggestions'](_0x4ffc10,'insertion')){if(!_0x1e7a5d['isOwn'])continue;const _0x270691=_0x65d7b9['getRanges']();for(const _0x39d9de of _0x270691)if(!_0x4ffc10['getDifference'](_0x39d9de)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x57f208){const _0x1c5462=this['editor']['plugins']['get']('Users')['getUser'](_0x57f208);if(!_0x1c5462)throw new _0x22e281('track-changes-user-not-found',this);return _0x1c5462;}['_getExternalAuthor'](_0x548c81){const _0x4b7e9b=this['editor']['plugins']['get']('Users'),_0x253ac9=_0x1ccdda('external:'+_0x548c81),_0x457bd2=_0x4b7e9b['getUser'](_0x253ac9);return _0x457bd2||_0x4b7e9b['addUser']({'id':_0x253ac9,'name':_0x548c81});}['_createSuggestion'](_0x40bc60,_0xa9f460,_0x179749,_0x5cff99,_0x1f1f51,_0x4301de){const _0x1f2df1=this['_getAuthorFromId'](_0x5cff99),_0x1c5406=this['_suggestionFactory']['buildSuggestion'](_0x40bc60,_0xa9f460,_0x179749,_0x1f2df1,_0x1f1f51,_0x300b65=>{this['_updateSuggestionData'](_0x179749,{'attributes':_0x300b65});const _0x5a0cdf=this['getSuggestion'](_0x179749);this['_joinWithAdjacentSuggestions'](new Set([_0x5a0cdf])),this['_refreshSuggestionsChain'](new Set([_0x5a0cdf]));},_0x4301de);return this['listenTo'](_0x1c5406,'accept',()=>{this['_updateSuggestionData'](_0x179749,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c5406,'discard',()=>{this['_updateSuggestionData'](_0x179749,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x179749,_0x1c5406),this['_suggestionState']['set'](_0x1c5406,'notReady'),_0x1c5406;}['_splitMarkerName'](_0x541a6f){const _0x44b565=_0x541a6f['split'](':');return{'group':_0x44b565[0x0],'type':_0x44b565[0x1],'subType':_0x44b565['length']>=0x5?_0x44b565[0x2]:null,'id':_0x44b565['length']<0x5?_0x44b565[0x2]:_0x44b565[0x3],'authorId':_0x44b565['length']<0x5?_0x44b565[0x3]:_0x44b565[0x4],'markerCount':0x6==_0x44b565['length']?_0x44b565[0x5]:null};}['_breakSuggestionMarker'](_0x3c3ea4,_0xf3fbd1,_0x5139b6){const _0x581ad1=_0x3c3ea4['getFirstRange'](),_0x5aeea0=_0x581ad1['start'],_0x527f21=_0x581ad1['end'];this['_setSuggestionRange'](_0x3c3ea4,this['_model']['createRange'](_0x5aeea0,_0xf3fbd1));const _0x26ce0d=_0x4ee927(),_0x1e049f=_0x3c3ea4['creator']['id'],_0xc3ebdd=_0x3c3ea4['type']+(_0x3c3ea4['subType']?':'+_0x3c3ea4['subType']:'');this['_setSuggestionData']({'id':_0x26ce0d,'type':_0xc3ebdd,'createdAt':new Date(),'authorId':_0x1e049f,'originalSuggestionId':_0x3c3ea4['_originalSuggestionId']||_0x3c3ea4['id'],'attributes':_0x3c3ea4['attributes'],'data':_0x3c3ea4['data']});const _0x370a1e=this['_getAttributeKey'](_0x3c3ea4);('formatBlock'==_0x3c3ea4['type']||_0x370a1e&&this['_isBlockAttribute'](_0x370a1e))&&(_0x5139b6=this['_model']['createPositionBefore'](_0x5139b6['parent'])),this['_addSuggestionMarker'](_0xc3ebdd,_0x26ce0d,_0x1e049f,this['_model']['createRange'](_0x5139b6,_0x527f21));}['_findSuggestions'](_0x14e588,_0x167d00=null){const _0x4f228e=[],_0x5c772d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14e588)||(_0x14e588=[_0x14e588]);for(const _0x2b00b3 of this['getSuggestions']()){if(!_0x2b00b3['isInContent'])continue;if(_0x167d00&&_0x2b00b3['type']!=_0x167d00)continue;let _0x2116d2=!0x1;for(const _0x4885ca of _0x2b00b3['getRanges']()){for(const _0x2b6ff0 of _0x14e588){const _0x44a6f4=_0x2b6ff0['start']['isEqual'](_0x4885ca['end'])||_0x2b6ff0['end']['isEqual'](_0x4885ca['start']);if(_0x44a6f4||_0x2b6ff0['getIntersection'](_0x4885ca)){const _0x2e4c98=_0x2b6ff0['containsRange'](_0x4885ca)&&Gt(this['_model']['schema'],_0x4885ca['start'],_0x2b6ff0),_0x23619a=_0x4885ca['containsRange'](_0x2b6ff0)&&Gt(this['_model']['schema'],_0x2b6ff0['start'],_0x4885ca);_0x4f228e['push']({'suggestion':_0x2b00b3,'meta':{'isOwn':_0x5c772d==_0x2b00b3['author'],'isNextTo':_0x44a6f4,'isInsideObject':_0x2e4c98,'containsRangeInObject':_0x23619a}}),_0x2116d2=!0x0;break;}}if(_0x2116d2)break;}}return _0x4f228e;}['_addSuggestionMarker'](_0x4342f7,_0x1ee85f,_0x3e034b,_0x231bca,_0x1f5a8d){this['_model']['change'](_0x31c90e=>{let _0x2e615c='suggestion:'+_0x4342f7+':'+_0x1ee85f+':'+_0x3e034b;_0x1f5a8d&&(_0x2e615c=_0x2e615c+':'+_0x1f5a8d),_0x31c90e['addMarker'](_0x2e615c,{'range':_0x231bca,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x20ec8b){const _0x5271a9=_0x20ec8b['previous'],_0xe72efa=_0x20ec8b['next'];_0x20ec8b['previous']=null,_0x20ec8b['next']=null,null!=_0x5271a9&&_0x5271a9['next']==_0x20ec8b&&(_0x5271a9['next']=_0xe72efa),null!=_0xe72efa&&_0xe72efa['previous']==_0x20ec8b&&(_0xe72efa['previous']=_0x5271a9),'ready'==this['_suggestionState']['get'](_0x20ec8b)&&(this['_suggestionState']['set'](_0x20ec8b,'removed'),this['fire']('suggestionUnloaded',_0x20ec8b,_0x5271a9,_0xe72efa));}['_setSuggestionData'](_0x5997ed){const _0x71109a=_0x5997ed['id'],_0x53e90a=this['addSuggestionData'](_0x5997ed);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f178b=this['editor']['plugins']['get']('PendingActions'),_0x2f8cca=_0x53e90a['hasComments'],_0x22d119=_0x53e90a['subType']?_0x53e90a['type']+':'+_0x53e90a['subType']:_0x53e90a['type'],_0x33471f=this['editor']['locale'],_0x102249=_0x4f178b['add'](c(_0x33471f,'PENDING_ACTION_SUGGESTION')),_0x3ddc95={'id':_0x71109a,'type':_0x22d119,'hasComments':_0x2f8cca,'data':_0x5997ed['data']||null,'originalSuggestionId':_0x5997ed['originalSuggestionId']||null,'attributes':_0x53e90a['attributes']};this['_adapter']['addSuggestion'](_0x3ddc95)['then'](_0x677b30=>{_0x53e90a['_saved']=!0x0,_0x4f178b['remove'](_0x102249),_0x677b30&&_0x677b30['createdAt']&&(this['_suggestions']['get'](_0x71109a)['createdAt']=_0x677b30['createdAt']);})['catch'](_0x3b2f5a=>{throw _0x133153('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x53e90a['discard']();}),_0x53e90a['stopListening'](),this['_suggestions']['delete'](_0x53e90a['id']),this['_suggestionState']['delete'](_0x53e90a),_0x3b2f5a;});}return _0x53e90a;}['_isBlockAttribute'](_0x257408){return this['_blockAttributeKeys']['has'](_0x257408);}['_updateSuggestionData'](_0x471089,_0x27623e){const _0x35fd2c=this['editor']['plugins']['get']('PendingActions'),_0x255119=this['getSuggestion'](_0x471089);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x255119['_saved']){const _0x4bf637=_0x35fd2c['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x471089,_0x27623e)['then'](()=>{_0x35fd2c['remove'](_0x4bf637);});}else _0x255119['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x471089,_0x27623e);});}}['_getSuggestionData'](_0x5f4c58){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x22e281('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5f4c58);}['_handleNewSuggestionMarker'](_0x483a8e){const {id:_0x2ad3b5,type:_0x3441e6,subType:_0x49fd45,authorId:_0x2c97e7}=this['_splitMarkerName'](_0x483a8e),_0x48b7b5=this['_suggestions']['get'](_0x2ad3b5)||this['_createSuggestion'](_0x3441e6,_0x49fd45,_0x2ad3b5,_0x2c97e7,{});switch(this['_checkSuggestionCorrectness'](_0x48b7b5,_0x3441e6,_0x49fd45,_0x2c97e7),this['_suggestionState']['get'](_0x48b7b5)){case'notReady':this['_getSuggestionData'](_0x2ad3b5)['then'](_0x371d64=>{let _0xc52b72=Promise['resolve']();_0x371d64['hasComments']&&(_0xc52b72=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ad3b5})),_0xc52b72['then'](()=>{this['addSuggestionData'](_0x371d64)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x48b7b5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ad3b5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x48b7b5,'ready'),this['fire']('suggestionLoaded',_0x48b7b5);break;case'ready':this['fire']('suggestionChanged',_0x48b7b5);}return _0x48b7b5['addMarkerName'](_0x483a8e),_0x48b7b5;}['_refreshSuggestionsChain'](_0x3a42aa){const _0x3a5bc6=Array['from'](_0x3a42aa),_0x42a042=_0x3a5bc6['filter'](_0x573775=>'attribute'==_0x573775['type']);this['_refreshAttributeSuggestionsChain'](_0x42a042);const _0x4ca5a1=_0x3a5bc6['filter'](_0x426fdc=>!_0x426fdc['isMultiRange']&&'attribute'!=_0x426fdc['type']),_0x30e6b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ba22c=>!_0x4ba22c['isMultiRange']&&'attribute'!=_0x4ba22c['type']),_0x5309b3=_0x30e6b8['filter'](_0x48baf7=>!_0x3a42aa['has'](_0x48baf7)),_0x225a37=new Map(_0x30e6b8['map'](_0x3bc287=>[_0x3bc287,this['_suggestionFactory']['getSuggestionCallback'](_0x3bc287['type'],_0x3bc287['subType'],'chain')])),_0x3c32ca=new Map(_0x30e6b8['map'](_0x5ee0c7=>[_0x5ee0c7,_0x5ee0c7['getFirstRange']()])),_0x335daf=new Set(),_0x3cadcd=new Set();for(let _0x2b0d40=0x0;_0x2b0d40<_0x4ca5a1['length'];_0x2b0d40++)_0x4c7e79(_0x4ca5a1[_0x2b0d40],_0x4ca5a1,_0x2b0d40+0x1);for(let _0x622794=0x0;_0x622794<_0x4ca5a1['length'];_0x622794++)_0x4c7e79(_0x4ca5a1[_0x622794],_0x5309b3,0x0);const _0x5e379b=new Set();for(let _0x39df9b=0x0;_0x39df9b<_0x4ca5a1['length'];_0x39df9b++){const _0x3eeab4=_0x4ca5a1[_0x39df9b];!_0x3cadcd['has'](_0x3eeab4)&&_0x3eeab4['previous']&&(_0x5e379b['add'](_0x3eeab4['previous']),_0x3eeab4['previous']['next']===_0x3eeab4&&(_0x3eeab4['previous']['next']=null),_0x3eeab4['previous']=null),!_0x335daf['has'](_0x3eeab4)&&_0x3eeab4['next']&&(_0x5e379b['add'](_0x3eeab4['next']),_0x3eeab4['next']['previous']===_0x3eeab4&&(_0x3eeab4['next']['previous']=null),_0x3eeab4['next']=null);}function _0x4c7e79(_0x21ceb8,_0x32af44,_0x2b40ff){for(let _0x5f2020=_0x2b40ff;_0x5f2020<_0x32af44['length'];_0x5f2020++){const _0x1e191a=_0x5bd9a4(_0x21ceb8,_0x32af44[_0x5f2020]);_0x1e191a&&(_0x1e191a[0x0]['next']=_0x1e191a[0x1],_0x1e191a[0x1]['previous']=_0x1e191a[0x0],_0x335daf['add'](_0x1e191a[0x0]),_0x3cadcd['add'](_0x1e191a[0x1]));}}function _0x5bd9a4(_0x168735,_0x4e0d6f){if(_0x168735['author']['id']!==_0x4e0d6f['author']['id'])return null;const _0x5f1087=_0x225a37['get'](_0x168735)(_0x168735,_0x4e0d6f,_0x3c32ca['get'](_0x168735),_0x3c32ca['get'](_0x4e0d6f));if(!_0x5f1087)return null;return _0x225a37['get'](_0x4e0d6f)(_0x168735,_0x4e0d6f,_0x3c32ca['get'](_0x168735),_0x3c32ca['get'](_0x4e0d6f))?_0x5f1087[0x1]['commentThread']&&_0x5f1087[0x1]['commentThread']['length']?null:_0x5f1087:null;}_0x5e379b['size']&&this['_refreshSuggestionsChain'](_0x5e379b);}['_refreshAttributeSuggestionsChain'](_0x5b305e){if(0x0==_0x5b305e['length'])return;const _0x1cc34e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26ba95=>'attribute'==_0x26ba95['type']&&_0x26ba95['_isDataLoaded']),_0x1db9f3=[],_0x598388=new Map();for(const _0xe648f of _0x1cc34e){const _0xe0b2c2=_0x1ccdda(_0xe648f['attributes']);_0x598388['has'](_0xe0b2c2)||(_0x598388['set'](_0xe0b2c2,_0x1db9f3['length']),_0x1db9f3['push']([]));const _0x25459b=_0x598388['get'](_0xe0b2c2);_0x1db9f3[_0x25459b]['push'](_0xe648f);}!(function(){_0x1db9f3['sort']((_0x8228d0,_0x11e0c7)=>{const _0x553f92=_0x8228d0[0x0]['createdAt'],_0x512f9c=_0x11e0c7[0x0]['createdAt'];return _0x553f92==_0x512f9c?_0x8228d0[0x0]['attributes']['groupId']<_0x11e0c7[0x0]['attributes']['groupId']?-0x1:0x1:_0x553f92<_0x512f9c?-0x1:0x1;});for(const _0x17ee22 of _0x1db9f3)_0x17ee22['sort']((_0x31cfa4,_0x23e388)=>_0x31cfa4['id']<_0x23e388['id']?-0x1:0x1);}());for(let _0x2222d4=0x0;_0x2222d4<_0x1db9f3['length'];_0x2222d4++){if(0x0==_0x1db9f3[_0x2222d4]['length'])continue;const _0x580474=[];for(let _0xe150e8=_0x2222d4+0x1;_0xe150e8<_0x1db9f3['length'];_0xe150e8++)0x0!=_0x1db9f3[_0xe150e8]['length']&&_0x1b5fa9(_0x1db9f3[_0x2222d4],_0x1db9f3[_0xe150e8])&&_0x580474['push'](_0xe150e8);for(const _0x1d5e9a of _0x580474)_0x1db9f3[_0x2222d4]=_0x1db9f3[_0x2222d4]['concat'](_0x1db9f3[_0x1d5e9a]),_0x1db9f3[_0x1d5e9a]=[];}for(const _0x5601a7 of _0x1db9f3)for(let _0x37671c=0x0;_0x37671c<_0x5601a7['length'];_0x37671c++){const _0x241558=_0x5601a7[_0x37671c+0x1]||null;_0x5601a7[_0x37671c]['next']!==_0x241558&&(_0x5601a7[_0x37671c]['next']=_0x241558);}for(const _0x13af60 of _0x1db9f3)for(let _0xbf4ea2=0x0;_0xbf4ea2<_0x13af60['length'];_0xbf4ea2++){const _0x48a826=_0x13af60[_0xbf4ea2-0x1]||null;_0x13af60[_0xbf4ea2]['previous']!==_0x48a826&&(_0x13af60[_0xbf4ea2]['previous']=_0x48a826);}function _0x1b5fa9(_0x4b9491,_0x5e7446){if(_0x4b9491[0x0]['attributes']['groupId']!==_0x5e7446[0x0]['attributes']['groupId']&&_0x4b9491[0x0]['author']!==_0x5e7446[0x0]['author'])return!0x1;if(!function(_0x47e346,_0x50ea47){if(!_0x47e346['hasComments']&&!_0x50ea47['hasComments'])return!0x0;if(_0x47e346['hasComments']&&_0x50ea47['hasComments'])return!0x1;if(_0x47e346['hasComments']&&_0x50ea47['createdAt']<_0x47e346['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x50ea47['hasComments']&&_0x47e346['createdAt']<_0x50ea47['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b9491[0x0],_0x5e7446[0x0]))return!0x1;const _0x32012c=Ft(_0x4b9491[0x0]['attributes'],['groupId','trackingSessionId']),_0x5653e5=Ft(_0x5e7446[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x341aca(_0x32012c,_0x5653e5))return!0x1;if(_0x4b9491[0x0]['attributes']['groupId']==_0x5e7446[0x0]['attributes']['groupId'])return!0x0;if(_0x4b9491[0x0]['attributes']['trackingSessionId']!==_0x5e7446[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b9491['every'](_0x197e6e=>_0x5e7446['some'](_0x164056=>_0x197e6e['getFirstRange']()['isEqual'](_0x164056['getFirstRange']())))&&_0x5e7446['every'](_0x203795=>_0x4b9491['some'](_0x48ae16=>_0x203795['getFirstRange']()['isEqual'](_0x48ae16['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4eaef1){const _0x207177=Array['from'](_0x4eaef1),_0x450c66=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ebeca=_0x450c66['filter'](_0x5c9ab1=>!_0x4eaef1['has'](_0x5c9ab1)),_0x33902d=new Map(_0x207177['map'](_0x5ab4cd=>[_0x5ab4cd,this['_suggestionFactory']['getSuggestionCallback'](_0x5ab4cd['type'],_0x5ab4cd['subType'],'join')])),_0x41de30=new Map(_0x450c66['map'](_0x446864=>[_0x446864,_0x446864['getRanges']()]));for(let _0x47dbcd=0x0;_0x47dbcd<_0x207177['length'];_0x47dbcd++){if(_0x76e2ad(this,_0x207177[_0x47dbcd],_0x207177,_0x47dbcd+0x1))return!0x0;}for(let _0x125694=0x0;_0x125694<_0x207177['length'];_0x125694++){if(_0x76e2ad(this,_0x207177[_0x125694],_0x3ebeca,0x0))return!0x0;}return!0x1;function _0x76e2ad(_0x3878d7,_0x282518,_0x2309f3,_0x34cf2b){for(let _0x348816=_0x34cf2b;_0x348816<_0x2309f3['length'];_0x348816++){const _0x2f1987=_0x2309f3[_0x348816];if(_0x2f1987['type']!==_0x282518['type']||_0x2f1987['author']['id']!==_0x282518['author']['id']||_0x2f1987['subType']!==_0x282518['subType'])continue;if(!Qt(_0x282518,_0x2f1987))continue;if('attribute'==_0x282518['type']&&_0x282518['data']['oldValue']!=_0x2f1987['data']['oldValue'])continue;if('attribute'==_0x282518['type']&&_0x3878d7['_isBlockAttribute'](_0x282518['data']['key']))continue;if('formatBlock'==_0x282518['type']){const _0x3eb421=_0x3878d7['editor']['model'],_0x108e08=_0x282518['getContainedElement']();if(_0x108e08&&(_0x3eb421['schema']['isObject'](_0x108e08)||_0x3eb421['schema']['isLimit'](_0x108e08)))continue;}const _0x52e638=_0x33902d['get'](_0x282518),_0x8c91e9=_0x41de30['get'](_0x282518),_0x4972e3=_0x41de30['get'](_0x2f1987),_0x40c096=_0x282518['commentThread']&&_0x282518['commentThread']['length'],_0x348a3a=_0x2f1987['commentThread']&&_0x2f1987['commentThread']['length'];if(!_0x40c096&&_0x52e638(_0x4972e3,_0x8c91e9))return _0x3878d7['_joinSuggestions'](_0x2f1987,_0x282518),_0x41de30['delete'](_0x282518),!0x0;if(!_0x348a3a&&_0x52e638(_0x8c91e9,_0x4972e3))return _0x3878d7['_joinSuggestions'](_0x282518,_0x2f1987),_0x41de30['delete'](_0x2f1987),!0x0;}return!0x1;}}['_joinSuggestions'](_0x25408e,_0x4fdd9c){if(_0x25408e['isMultiRange']){for(const _0x2baedc of _0x4fdd9c['getRanges']())_0x25408e['addRange'](_0x2baedc);}else{const _0x57dc90=_0x4fdd9c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x25408e,this['_model']['createRange'](_0x25408e['getFirstRange']()['start'],_0x57dc90));}_0x4fdd9c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x59c0a3,_0x865c93,_0x820fa6){const _0x3dacd0=_0x59c0a3['startsWith']('format')||_0x59c0a3['startsWith']('attribute')?'FORMATTING':_0x59c0a3['toUpperCase']();return c(this['editor']['locale'],_0x865c93+'_'+_0x3dacd0+'_SUGGESTION_ANNOUNCEMENT',_0x820fa6);}['_initAriaMarkerChangeAnnouncements'](){const _0x306206=this['editor'];if(!_0x306206['ui'])return;const {ariaLiveAnnouncer:_0x1e7e3f}=_0x306206['ui'];_0x59208b(this['_model'],({left:_0x17a0b5,entered:_0x554e1e})=>{for(const _0x3b906c of _0x17a0b5){const {group:_0xe48631,type:_0x21c703}=this['_splitMarkerName'](_0x3b906c['name']);if('suggestion'===_0xe48631){_0x1e7e3f['announce'](this['_getMarkerAnnouncementText'](_0x21c703,'LEAVE'));break;}}for(const _0x483bd2 of _0x554e1e){const {group:_0x581293,type:_0x436bbe}=this['_splitMarkerName'](_0x483bd2['name']);if('suggestion'===_0x581293){_0x1e7e3f['announce'](this['_getMarkerAnnouncementText'](_0x436bbe,'ENTER',_0x5b49cc(_0x5b1368)));break;}}});}['_processAttributeChanges'](_0x491e10){if(this['_recordAttributeSuggestions'])return!0x1;const _0x42af17=this['editor'],_0x3fd7ef=_0x42af17['model']['document']['differ']['getChanges']();if(0x0==_0x3fd7ef['length'])return!0x1;const _0x1bb90c=[],_0x2b8b1c=_0x3fd7ef['filter'](_0xf16ccb=>'attribute'==_0xf16ccb['type']),_0xb3bb42=_0x3fd7ef['filter'](_0x56a761=>'insert'==_0x56a761['type']&&'$text'!=_0x56a761['name']),_0x4d24c3=_0x3fd7ef['filter'](_0x5129ed=>'remove'==_0x5129ed['type']&&'$text'!=_0x5129ed['name']);for(const _0x3bcfbb of _0x2b8b1c)_0x1bb90c['push']({'key':_0x3bcfbb['attributeKey'],'newValue':_0x3bcfbb['attributeNewValue'],'oldValue':_0x3bcfbb['attributeOldValue'],'range':qt(_0x3bcfbb['range'],_0x42af17['model'])});for(const _0x465980 of _0xb3bb42){const _0x30b0b3=_0x4d24c3['find'](_0x78f87a=>_0x78f87a['position']['isEqual'](_0x465980['position']));_0x30b0b3&&_0x1bb90c['push']({'key':u,'newValue':_0x465980['name'],'oldValue':_0x30b0b3['name'],'range':_0x42af17['model']['createRangeOn'](_0x465980['position']['nodeAfter'])});}return 0x0!=_0x1bb90c['length']&&this['_reduceExistingSuggestions'](_0x491e10,_0x1bb90c);}['_processAttributeSuggestions'](_0x1d7982){let _0x1c472e=!0x1;const _0x4ee7a7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x146b21=>_0x146b21['data']['newRange']&&_0x146b21['name']['startsWith']('suggestion:attribute:'));for(const _0x457ca1 of _0x4ee7a7){const {subType:_0x56198c,id:_0x5015e5}=this['_splitMarkerName'](_0x457ca1['name']),_0x4d4b31=_0x56198c['split']('|')[0x0];for(const _0xe9b4bb of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe9b4bb['id']!=_0x5015e5&&'attribute'==_0xe9b4bb['type']&&_0xe9b4bb['data']&&_0xe9b4bb['data']['key']==_0x4d4b31&&_0xe9b4bb['getFirstRange']()['isIntersecting'](_0x457ca1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe9b4bb,_0x457ca1['data']['newRange'],_0x1d7982),_0x1c472e=!0x0);}return _0x1c472e;}['_recordAttributeChanges'](_0x50bd58){this['_recordAttributeSuggestions']=!0x0,_0x50bd58();}['_isRegisteredAttribute'](_0x213f20){const _0x334500=this['_isBlockAttribute'](_0x213f20),_0x3ce21f=this['_inlineAttributeKeys']['has'](_0x213f20);return _0x334500||_0x3ce21f;}['_reduceExistingSuggestions'](_0x3bf146,_0x377d13){if(0x0==_0x377d13['length'])return!0x1;let _0x21992a=!0x1;for(const _0x17fa38 of _0x377d13){const _0x34dd5f=this['_findSuggestions'](_0x17fa38['range'],'attribute')['filter'](_0x265ba5=>!_0x265ba5['meta']['isNextTo'])['map'](_0x533594=>_0x533594['suggestion']),_0x336c92=_0x1ccdda({'newValue':_0x17fa38['newValue']});_0x34dd5f['filter'](_0xfc3ee5=>{const [_0x1c6605,_0x340d51]=_0xfc3ee5['subType']['split']('|');return _0x1c6605==_0x17fa38['key']&&_0x340d51!=_0x336c92;})['forEach'](_0x591e3d=>{this['_reduceSuggestionAttributeRange'](_0x591e3d,_0x17fa38['range'],_0x3bf146),_0x21992a=!0x0;});}return _0x21992a;}['_reduceSuggestionAttributeRange'](_0x56756f,_0x1bb274,_0x50e0bb){const _0x398c66=_0x56756f['getFirstRange']()['getDifference'](_0x1bb274);0x0!==_0x398c66['length']?0x1!==_0x398c66['length']?this['_breakSuggestionMarker'](_0x56756f,_0x1bb274['start'],_0x1bb274['end']):this['_setSuggestionRange'](_0x56756f,_0x398c66[0x0]):_0x50e0bb['removeMarker'](_0x56756f['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x129f66){this['_editor']=_0x129f66,this['_model']=_0x129f66['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xd9a5b8,_0x14ccf9,_0x2bfd33,_0x956454,_0x5613bc,_0x457fe2,_0x44cbda){return new o(this['_model'],{'type':_0xd9a5b8,'subType':_0x14ccf9,'id':_0x2bfd33,'originalSuggestionId':_0x44cbda,'author':_0x956454,'creator':_0x956454,'attributes':_0x5613bc,'onAttributesChange':_0x457fe2,'onAccept':(..._0xe2a174)=>this['getSuggestionCallback'](_0xd9a5b8,_0x14ccf9,'accept')(..._0xe2a174),'onDiscard':(..._0x14b791)=>this['getSuggestionCallback'](_0xd9a5b8,_0x14ccf9,'discard')(..._0x14b791)});}['registerCustomCallback'](_0x430b41,_0x3d929e,_0x3c8689,_0x4d1d3f){const _0x2a9a7b=_0x430b41+':'+_0x3d929e+':'+_0x3c8689;this['_customCallbacks']['set'](_0x2a9a7b,_0x4d1d3f);}['getSuggestionCallback'](_0x2b1f55,_0x47940e,_0x10f56d){const _0x1444c9=_0x2b1f55+':'+_0x47940e+':'+_0x10f56d;return this['_customCallbacks']['get'](_0x1444c9)||this['_defaultCallbacks']['get'](_0x2b1f55+':'+_0x10f56d);}['_registerDefaultCallbacks'](){const _0x12f64b=()=>!0x1,_0x1d67e2=_0x1a75c7=>{_0x1a75c7['sort']((_0x2925cd,_0x115a11)=>_0x2925cd['start']['isBefore'](_0x115a11['start'])?0x1:-0x1),this['_model']['change'](_0x375336=>{for(const _0x532e7a of _0x1a75c7){let _0x13118b;_0x13118b=_0x532e7a['end']['isAtEnd']&&_0x532e7a['end']['parent']==_0x532e7a['start']['nodeAfter']?_0x375336['createSelection'](_0x532e7a['start']['nodeAfter'],'on'):_0x375336['createSelection'](_0x532e7a),this['_model']['deleteContent'](_0x13118b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1ef179=(_0x34698f,_0x354753)=>{_0x354753&&this['_model']['change'](_0x18d57c=>{const {commandName:_0x6495e1,commandParams:_0x3728bc=[]}=_0x354753,_0x11c32d=_0x34698f['map'](_0x20f1e6=>(Lt(_0x20f1e6)&&(_0x20f1e6=this['_model']['createRange'](_0x20f1e6['end'])),_0x20f1e6))['filter'](_0x592ead=>'$graveyard'!==_0x592ead['root']['rootName']);if(_0x11c32d['length']<0x1)return;const _0x4572fe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f3a7b=>_0x31030b['fromRange'](_0x3f3a7b));_0x18d57c['setSelection'](_0x11c32d);for(const _0x5c3926 of this['_editor']['commands']['commands']())_0x5c3926['refresh']();_0x3728bc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x6495e1,..._0x3728bc);const _0x3ff483=_0x4572fe['filter'](_0x3845ff=>'$graveyard'!=_0x3845ff['root']['rootName']);_0x3ff483['length']>0x0&&_0x18d57c['setSelection'](_0x3ff483);for(const _0x5cae24 of _0x4572fe)_0x5cae24['detach']();});},_0x54e261=(_0x12b5ad,_0x3ea3e6)=>0x1==_0x12b5ad['length']&&0x1==_0x3ea3e6['length']&&_0x12b5ad[0x0]['end']['isEqual'](_0x3ea3e6[0x0]['start']),_0x276913=(_0x51b9b1,_0x39abe6,_0x421c0b,_0x2634e2)=>Wt(_0x51b9b1,_0x39abe6,_0x421c0b,_0x2634e2)?[_0x51b9b1,_0x39abe6]:Wt(_0x39abe6,_0x51b9b1,_0x2634e2,_0x421c0b)?[_0x39abe6,_0x51b9b1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x12f64b),this['_defaultCallbacks']['set']('insertion:discard',_0x1d67e2),this['_defaultCallbacks']['set']('insertion:join',_0x54e261),this['_defaultCallbacks']['set']('insertion:chain',_0x276913),this['_defaultCallbacks']['set']('deletion:accept',_0x1d67e2),this['_defaultCallbacks']['set']('deletion:discard',_0x12f64b),this['_defaultCallbacks']['set']('deletion:join',_0x54e261),this['_defaultCallbacks']['set']('deletion:chain',_0x276913),this['_defaultCallbacks']['set']('formatInline:accept',_0x1ef179),this['_defaultCallbacks']['set']('formatInline:discard',_0x12f64b),this['_defaultCallbacks']['set']('formatInline:join',_0x54e261),this['_defaultCallbacks']['set']('formatInline:chain',_0x12f64b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1ef179),this['_defaultCallbacks']['set']('formatBlock:discard',_0x12f64b),this['_defaultCallbacks']['set']('formatBlock:join',_0x54e261),this['_defaultCallbacks']['set']('formatBlock:chain',_0x12f64b),this['_defaultCallbacks']['set']('attribute:accept',_0x12f64b),this['_defaultCallbacks']['set']('attribute:discard',(_0x174d73,_0x563dab)=>{if(!_0x563dab)return;const _0x4a380d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x447588=>{if(_0x563dab['key']==u)for(const _0x14e449 of _0x174d73){const _0xf4202c=_0x14e449['start']['nodeAfter'],_0x1a0843=_0x563dab['oldValue'];_0x447588['rename'](_0xf4202c,_0x1a0843);}else{if(_0x4a380d['_isBlockAttribute'](_0x563dab['key'])){for(const _0x4092ee of _0x174d73)void 0x0!==_0x563dab['oldValue']?_0x447588['setAttribute'](_0x563dab['key'],_0x563dab['oldValue'],_0x4092ee['start']['nodeAfter']):_0x447588['removeAttribute'](_0x563dab['key'],_0x4092ee['start']['nodeAfter']);}else{for(const _0x2505f5 of _0x174d73)_0x563dab['oldValue']?_0x447588['setAttribute'](_0x563dab['key'],_0x563dab['oldValue'],_0x2505f5):_0x447588['removeAttribute'](_0x563dab['key'],_0x2505f5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x54e261);}}function Gt(_0x5e5b0e,_0x979fa4,_0x26f429){for(const _0x3d2a40 of _0x979fa4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3d2a40['root']==_0x3d2a40)return!0x1;if(!_0x26f429['containsItem'](_0x3d2a40))return!0x1;if(_0x5e5b0e['isObject'](_0x3d2a40)||_0x5e5b0e['isLimit'](_0x3d2a40))return!0x0;}return!0x1;}function Lt(_0x55f20a){return _0x55f20a['end']['parent']==_0x55f20a['start']['nodeAfter']&&_0x55f20a['end']['isAtStart'];}function Jt(_0xada3b6,_0x18c75b,_0x4bca1f,_0x1a12c9){const _0x1f08b5=_0x48b93d=>!_0x48b93d['item']['is']('$textProxy')&&!_0x1a12c9['isObject'](_0x48b93d['item']),_0x4c9ac2=_0xada3b6['start']['getLastMatchingPosition'](_0x1f08b5),_0x417fc=_0xada3b6['end']['getLastMatchingPosition'](_0x1f08b5,{'direction':'backward'});return(!_0xada3b6['start']['isEqual'](_0x4c9ac2)||!_0xada3b6['end']['isEqual'](_0x417fc))&&(_0x4c9ac2['isBefore'](_0x417fc)?_0x4bca1f['updateMarker'](_0x18c75b,{'range':_0x4bca1f['createRange'](_0x4c9ac2,_0x417fc)}):_0x4bca1f['removeMarker'](_0x18c75b),!0x0);}function Kt(_0x19ccaf){return _0x1ccdda(_0x19ccaf);}function Ht(_0x2286b5){const _0x4ff968=_0x2286b5['start']['nodeAfter'];return _0x4ff968&&_0x4ff968['is']('element');}function qt(_0x33bd32,_0x39f6df){return null==_0x33bd32['end']['nodeBefore']&&_0x33bd32['end']['parent']==_0x33bd32['start']['nodeAfter']?zt(_0x33bd32['start']['nodeAfter'],_0x39f6df):_0x33bd32;}function zt(_0x151093,_0x34743e){const _0x5e69c2=_0x34743e['schema']['isObject'](_0x151093)||_0x34743e['schema']['isSelectable'](_0x151093);return _0x34743e['createRange'](_0x34743e['createPositionAt'](_0x151093,'before'),_0x5e69c2?_0x34743e['createPositionAfter'](_0x151093):_0x34743e['createPositionAt'](_0x151093,'end'));}function Wt(_0x3e290c,_0x354fcf,_0x12d7f4,_0x4e617e){return!!Qt(_0x3e290c,_0x354fcf)&&_0x12d7f4['end']['isEqual'](_0x4e617e['start']);}function Qt(_0x4ddacd,_0xc8f1b7){if(!_0x4ddacd['_isDataLoaded']||!_0xc8f1b7['_isDataLoaded'])return!0x1;const _0x3b9863=new Set(Object['keys'](_0x4ddacd['attributes'])),_0x21f000=new Set(Object['keys'](_0xc8f1b7['attributes']));if(_0x3b9863['delete']('groupId'),_0x21f000['delete']('groupId'),0x0==_0x3b9863['size']&&0x0==_0x21f000['size'])return!0x0;if(_0x3b9863['size']!=_0x21f000['size'])return!0x1;const _0x4aa415={..._0x4ddacd['attributes']},_0x52f5a8={..._0xc8f1b7['attributes']};return delete _0x4aa415['groupId'],delete _0x52f5a8['groupId'],JSON['stringify'](_0x4aa415)==JSON['stringify'](_0x52f5a8);}function Xt(_0x188be4,_0x5e2edb){const _0x142005=Yt(_0x188be4['attributes']),_0x290f64=Yt(_0x5e2edb);if(!_0x188be4['_isDataLoaded'])return!0x1;for(const _0x531fa0 of Object['keys'](_0x290f64))if(!_0x341aca(_0x142005[_0x531fa0],_0x290f64[_0x531fa0]))return!0x1;return!0x0;}function Yt(_0x1b5811){const _0x3dec11=Object['assign']({},_0x1b5811);return delete _0x3dec11['skipNestingCheck'],delete _0x3dec11['tablePasteChainId'],_0x3dec11;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x5cc920(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2d1082,_0x45bbab,_0x46b9b2,_0x1a90f7){super(),this['model']=_0x45bbab,this['view']=_0x46b9b2,this['commentThreadController']=_0x1a90f7,this['_editor']=_0x2d1082,this['_acceptCommand']=_0x2d1082['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2d1082['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d886e,_0x2a7d6b)=>_0x3d886e||_0x2a7d6b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4834ef=>_0x4834ef&&this['_editor']['model']['canEditAt'](_0x45bbab['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x53e130=>_0x53e130&&this['_editor']['model']['canEditAt'](_0x45bbab['getRanges']())),this['_pendingAction']=null,_0x46b9b2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x46b9b2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x46b9b2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x46b9b2,'change:isDirty',()=>{_0x46b9b2['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 _0x1b3932=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b3932);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x291469{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xeab294,_0x3a864c,_0x4c5002,_0x1d2c39){super(_0xeab294),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x157aee(_0xeab294,c(_0xeab294,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a864c['authoredAt']),this['bind']('authoredAt')['to'](_0x3a864c),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',_0x3a864c,'authoredAt',this,'descriptionParts',(_0x30e0c9,_0xf82a11,_0x5a6522)=>{const _0x21d744=_0x5a6522['map'](_0x2971ab=>ls(_0x2971ab['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x30e0c9-0x1,_0x3a864c['author']['name'],_0xf82a11?_0x1d2c39['formatDateTime'](_0xf82a11):'',new DOMParser()['parseFromString'](_0x21d744,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20d6ce(),this['focusTracker']=new _0x472103(),this['keystrokes']=new _0x19725c(),this['focusCycler']=new _0x5ebc77({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2e8c49=>_0x2e8c49['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3a864c,this['_localUser']=_0x4c5002,this['_config']=_0x1d2c39,_0x1d2c39['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x45c66c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3aa438}=this['_config'];this['commentsListView']=new _0x3aa438(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',_0x2a0e1c=>_0x2a0e1c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5160bb,_0x30ff72)=>_0x5160bb||!!_0x30ff72);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x16d6ee}=this['_config'],_0x2cbbcf=new _0x16d6ee(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x90ca96=_0x2cbbcf['commentInputView'];return _0x2cbbcf['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x90ca96,'value',(_0x2df1cc,_0x3ff413,_0x2a2af6)=>!!_0x2a2af6||_0x2df1cc&&!_0x3ff413),_0x90ca96['on']('submit',(_0x159908,_0x262ce8)=>{this['fire']('addComment',_0x262ce8),_0x90ca96['editor']['setData']('');}),_0x90ca96['on']('cancel',()=>this['focus']()),_0x90ca96['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cbbcf;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xf4f347,_0x3c29b0,_0x515286,_0x35f066){super(_0xf4f347,_0x3c29b0,_0x515286,_0x35f066),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a5dd3=>_0x2a5dd3&&_0x2a5dd3[0x0]?_0x2a5dd3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe3e924,_0x4560e0)=>{let _0x5cd9e0='';for(const _0x574a2b of _0xe3e924)_0x5cd9e0+='<p>'+ls(_0x574a2b['content'],_0x574a2b['color'])+'</p>';return _0x4560e0?_0x5cd9e0:ti(_0x5cd9e0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x35f066['SuggestionView'](_0xf4f347,_0x3c29b0,{'formatDateTime':_0x35f066['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 _0x97212=this['bindTemplate'],_0x58ee1d=[this['suggestionView']];return this['commentsListView']&&_0x58ee1d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x58ee1d['push'](this['commentThreadInputView']),_0x58ee1d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x97212['if']('isActive','ck-suggestion-wrapper--active'),_0x97212['to']('type',_0x2f6a08=>'ck-suggestion-'+_0x2f6a08),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':_0x97212['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x58ee1d};}['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 _0x291469{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x588731,_0x410361,_0x393706){super(_0x588731),this['_model']=_0x410361,this['_config']=_0x393706,this['set']('description',''),this['bind']('authoredAt')['to'](_0x410361),this['acceptButton']=this['_createButton'](c(_0x588731,'Accept\x20suggestion'),_0x457e96,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x588731,'Discard\x20suggestion'),_0x4fe476,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4f7cc0(_0x588731,_0x410361['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20d6ce([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x472103(),this['keystrokes']=new _0x19725c(),this['focusCycler']=new _0x5ebc77({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x529480=>_0x529480['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x23712a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x23712a['innerHTML']=this['description'],this['on']('change:description',(_0x5db016,_0x1c6663,_0x571795)=>{_0x23712a['innerHTML']=_0x571795;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4f9791=this['bindTemplate'],_0x4d0f76=[{'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':_0x4f9791['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4f9791['to']('authoredAt',_0x45b483=>this['_config']['formatDateTime'](_0x45b483))}]}]},{'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']&&_0x4d0f76['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':_0x4d0f76}]};}['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'](_0xf0b913,_0x26ce76,_0x4ad437,_0x48e23e,_0x47b35b){const _0x45e8ac=new _0x354998(this['locale']);return _0x45e8ac['set']({'label':_0xf0b913,'icon':_0x26ce76,'tooltip':!0x0,'tooltipPosition':_0x47b35b}),_0x45e8ac['extendTemplate']({'attributes':{'class':_0x4ad437}}),_0x45e8ac['on']('execute',()=>{this['fire'](_0x48e23e,this['_model']['id']);}),_0x45e8ac;}['_setupKeyboardNavigation'](){const _0x49daca=this['element'];this['keystrokes']['listenTo'](_0x49daca);for(const _0x2b1024 of this['focusables'])this['focusTracker']['add'](_0x2b1024['element']),this['keystrokes']['listenTo'](_0x2b1024['element']);this['keystrokes']['set']('enter',(_0x2ba7e9,_0xf9a421)=>{_0x49daca===_0x2ba7e9['target']&&(this['focusCycler']['focusFirst'](),_0xf9a421());}),this['keystrokes']['set']('esc',(_0x1d14bc,_0x135f6b)=>{_0x49daca!==_0x1d14bc['target']&&(this['focus'](),_0x135f6b());});}}class d extends _0x113b76{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3ac7df,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c4e27){super(_0x3c4e27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x448258=this['editor']['config'];_0x448258['define']('trackChanges.SuggestionThreadView',fe),_0x448258['define']('trackChanges.SuggestionView',we),_0x448258['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x448258['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5c9449,_0x22b087){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2988a8,_0x5ac04a]of this['_handleControllerBuffer']){const _0x5b79e2=this['_suggestionToController']['has'](_0x2988a8);_0x5b79e2||_0x5ac04a?_0x5b79e2&&_0x5ac04a&&this['_destroyController'](_0x2988a8):this['_initializeController'](_0x2988a8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5c9449,_0x22b087);}['init'](){const _0x5dc2de=this['editor'],_0x30c687=_0x5dc2de['plugins']['get']('TrackChangesEditing'),_0x5828c9=_0x5dc2de['plugins']['get']('Annotations'),_0x37904d=_0x5dc2de['plugins']['get']('EditorAnnotations'),_0x43c22c=_0x5dc2de['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x37904d['addSourceCollector'](()=>{const _0x487597=[];for(const [_0x3526ae,_0x44d5a5]of Array['from'](this['_suggestionToController'])){const _0x2d0205=_0x3526ae['getAllAdjacentSuggestions'](),_0x71574b=[];for(const _0x4e450e of _0x2d0205){if(!_0x4e450e['isInContent'])continue;if(_0x4e450e['isMultiRange']){_0x71574b['push'](..._0x4e450e['getRanges']());continue;}const _0x32eae4=_0x4e450e['getFirstRange']();if(_0x71574b['length']>0x0){const _0x5d1bdc=_0x71574b[0x0]['getJoined'](_0x32eae4);if(_0x5d1bdc){_0x71574b[0x0]=_0x5d1bdc;continue;}}_0x71574b['push'](_0x32eae4);}_0x487597['push']([_0x44d5a5['view'],_0x71574b]);}return _0x487597;}),this['listenTo'](_0x30c687,'suggestionLoaded',(_0x22baee,_0x9b89c7)=>{this['listenTo'](_0x9b89c7,'change:previous',(_0x477ce1,_0x1e035c,_0x2d6d3d,_0x3cccd5)=>{_0x9b89c7['isInContent']&&(null==_0x2d6d3d?(this['_updateController'](_0x3cccd5['head']),this['_handleSuggestionControllerDelayed'](_0x9b89c7,!0x1)):(this['_updateController'](_0x2d6d3d['head']),null==_0x3cccd5&&this['_handleSuggestionControllerDelayed'](_0x9b89c7,!0x0)));}),null!==_0x9b89c7['previous']?this['_updateController'](_0x9b89c7['head']):this['_handleSuggestionControllerDelayed'](_0x9b89c7,!0x1);}),this['listenTo'](_0x30c687,'suggestionUnloaded',(_0x43d8c8,_0x1513e7,_0x54a750)=>{this['stopListening'](_0x1513e7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1513e7),this['_suggestionToController']['has'](_0x1513e7)&&this['_destroyController'](_0x1513e7),_0x54a750&&this['_updateController'](_0x54a750['head']);}),this['listenTo'](_0x30c687,'suggestionChanged',(_0x171e26,_0x19f7b8)=>{this['_updateController'](_0x19f7b8);}),this['listenTo'](_0x5828c9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43c22c,'addComment',(_0x5b46e4,{threadId:_0x54e918,isFromAdapter:_0xc46df5})=>{if(_0xc46df5||!_0x30c687['hasSuggestion'](_0x54e918))return;const _0x2fe03e=_0x30c687['getSuggestion'](_0x54e918);this['_suggestionToController']['get'](_0x2fe03e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22a4f0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x165c7c;for(const _0x2f2d11 in _0x22a4f0){const _0x482a84=_0x2f2d11,_0x2671f0=_0x22a4f0[_0x482a84];if('trackChangesLicenseKeyValid'==_0x2671f0||'trackChangesLicenseKeyInvalid'==_0x2671f0||'trackChangesLicenseKeyExpired'==_0x2671f0||'trackChangesLicenseKeyDomainLimit'==_0x2671f0||'trackChangesLicenseKeyNotAllowed'==_0x2671f0||'trackChangesLicenseKeyEvaluationLimit'==_0x2671f0||'trackChangesLicenseKeyTrialLimit'==_0x2671f0||'trackChangesLicenseKeyUsageLimit'==_0x2671f0){delete _0x22a4f0[_0x482a84],_0x165c7c=_0x2671f0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x165c7c&&_0x22a4f0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x165c7c&&_0x22a4f0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x165c7c&&_0x22a4f0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x165c7c&&_0x22a4f0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x165c7c&&_0x22a4f0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x165c7c&&_0x22a4f0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x165c7c&&_0x22a4f0['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x18097a=this['editor']['plugins']['get']('Annotations'),_0x4610f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c71ac=Array['from'](_0x18097a['activeAnnotations'],_0x1bcdaf=>_0x1bcdaf['innerView'])['filter'](_0x261567=>this['_viewToController']['has'](_0x261567)),_0x364c9f=[];for(const _0x3bb067 of _0x3c71ac){const _0x9589b2=this['_viewToController']['get'](_0x3bb067)['model']['getAllAdjacentSuggestions']();_0x364c9f['push'](..._0x9589b2['reduce']((_0x20923b,_0x24288b)=>[..._0x20923b,..._0x24288b['getMarkerNames']()],[]));}_0x4610f1['activeMarkers']=_0x364c9f;}['_addUIComponentsToFactory'](){const _0x2f420c=this['editor'],_0x38d35f=_0x2f420c['locale'],_0x8ff287=c(_0x38d35f,'Track\x20changes'),_0x4d6ec2=new _0x2e9906([{'type':'switchbutton','model':new _0x8d2af7({'withText':!0x0,'isToggleable':!0x0,'label':_0x8ff287,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x8d2af7({'withText':!0x0,'label':c(_0x38d35f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x8d2af7({'withText':!0x0,'label':c(_0x38d35f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x8d2af7({'withText':!0x0,'label':c(_0x38d35f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x8d2af7({'withText':!0x0,'label':c(_0x38d35f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2f420c['plugins']['has']('TrackChangesPreview')&&_0x4d6ec2['addMany']([{'type':'separator'},{'type':'button','model':new _0x8d2af7({'withText':!0x0,'label':c(_0x38d35f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x319fd4 of _0x4d6ec2)if(ke(_0x319fd4)){const _0x2134cf=_0x2f420c['commands']['get'](_0x319fd4['model']['commandName']);_0x319fd4['model']['bind']('isOn','isEnabled')['to'](_0x2134cf,'value','isEnabled');}_0x2f420c['ui']['componentFactory']['add']('trackChanges',_0x333e5c=>this['_createToolbarButton'](_0x333e5c,_0x4d6ec2,_0x8ff287)),_0x2f420c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x501a99=>this['_createMenuBarMenu'](_0x501a99,_0x4d6ec2,_0x8ff287));}['_createToolbarButton'](_0x34157f,_0x443cab,_0x240cda){const _0x1566c5=_0x1f5cb9(_0x34157f,_0x356b08),_0x19f79b=this['editor']['commands']['get']('trackChanges');_0x1566c5['buttonView']['set']({'tooltip':_0x240cda,'label':_0x240cda,'icon':_0x33025e}),_0x1566c5['buttonView']['bind']('isOn')['to'](_0x19f79b,'value'),_0x1566c5['buttonView']['on']('execute',()=>{_0x19f79b['execute'](),this['editor']['editing']['view']['focus']();}),_0x57e017(_0x1566c5,_0x443cab,{'role':'menu'});const _0x32dd56=[];for(const _0x2b5341 of _0x443cab)ke(_0x2b5341)&&_0x32dd56['push'](this['editor']['commands']['get'](_0x2b5341['model']['commandName']));const _0x1a87ea=_0x1566c5['buttonView'];return _0x1a87ea['actionView']['unbind']('isEnabled'),_0x1a87ea['arrowView']['unbind']('isEnabled'),_0x1a87ea['actionView']['bind']('isEnabled')['to'](_0x19f79b,'isEnabled'),_0x1a87ea['arrowView']['bind']('isEnabled')['toMany'](_0x32dd56,'isEnabled',(..._0x51b2eb)=>_0x51b2eb['some'](_0x25dd11=>_0x25dd11)),_0x1566c5['on']('execute',_0x4a3f05=>{this['editor']['execute'](_0x4a3f05['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1566c5;}['_createMenuBarMenu'](_0x58e038,_0x2ab510,_0x2e1c56){const _0x441d21=new _0x25e41e(_0x58e038),_0x28583b=this['editor']['commands']['get']('trackChanges');_0x441d21['buttonView']['set']({'label':_0x2e1c56,'icon':_0x33025e});const _0x32b2c6=new _0x52580f(_0x58e038);for(const _0x5cd515 of _0x2ab510){if('separator'==_0x5cd515['type']){_0x32b2c6['items']['add'](new _0x165f95(_0x58e038));continue;}const _0x440a27=new _0x44bbd8(_0x58e038,_0x441d21),_0x1ec3c4=new _0x4b51c4(_0x58e038),_0x49d784=_0x5cd515['model'];_0x1ec3c4['bind'](...Object['keys'](_0x49d784))['to'](_0x49d784),_0x1ec3c4['delegate']('execute')['to'](_0x441d21),_0x1ec3c4['on']('execute',()=>{this['editor']['execute'](_0x49d784['commandName']),this['editor']['editing']['view']['focus']();}),_0x440a27['children']['add'](_0x1ec3c4),_0x32b2c6['items']['add'](_0x440a27);}return _0x441d21['bind']('isEnabled')['to'](_0x28583b,'isEnabled'),_0x441d21['panelView']['children']['add'](_0x32b2c6),_0x441d21;}['_initializeController'](_0x46d55a){const _0xf636a8=this['editor'],_0x55a33a=_0xf636a8['config'],_0x2dac57=_0xf636a8['plugins']['get']('Annotations'),_0x598ed2=_0xf636a8['plugins']['get']('CommentsRepository'),_0x1f2765=_0xf636a8['plugins']['get']('EditorAnnotations'),_0x4a4251=_0xf636a8['plugins']['get'](_0x3ac7df)['me'],_0x5eeae2=_0x55a33a['get']('trackChanges')['SuggestionThreadView'],_0x4ab447=_0x55a33a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3a2bee,CommentThreadInputView:_0x464896}=_0xf636a8['plugins']['get']('CommentsUI');let _0x3d0ea9,_0x2b37fa,_0x3762e1;this['_annotationViews']['has'](_0x46d55a['id'])?(_0x2b37fa=this['_annotationViews']['get'](_0x46d55a['id']),_0x3d0ea9=_0x2b37fa['mainView']):(_0x3d0ea9=new _0x5eeae2(_0xf636a8['locale'],_0x46d55a,_0x4a4251,{'disableComments':this['_disableComments'],'editorConfig':{..._0x55a33a['get']('comments.editorConfig'),'licenseKey':_0x55a33a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x55a33a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55a33a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55a33a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2a4733(_0x55a33a['get']('locale'),_0xf636a8['locale']),'CommentView':_0x55a33a['get']('comments')['CommentView'],'CommentsListView':_0x3a2bee,'CommentThreadInputView':_0x464896,'SuggestionView':_0x4ab447}),_0x3d0ea9['suggestionView']['acceptButton']['on']('execute',()=>{_0xf636a8['editing']['view']['focus']();}),_0x3d0ea9['suggestionView']['discardButton']['on']('execute',()=>{_0xf636a8['editing']['view']['focus']();}),_0x2b37fa=_0x2dac57['createAnnotationView'](this['editor']['locale'],_0x3d0ea9),_0x2b37fa['bind']('isDirty')['to'](_0x3d0ea9,'isDirty'),_0x2b37fa['bind']('length')['to'](_0x3d0ea9),_0x2b37fa['bind']('type')['to'](_0x3d0ea9,'type',_0x839301=>'suggestion-'+_0x839301),_0x3d0ea9['on']('escape',()=>{_0x3762e1['fire']('escape');}),this['_annotationViews']['set'](_0x46d55a['id'],_0x2b37fa));const _0xf8af9f=_0x598ed2['createCommentThreadController'](_0x46d55a['commentThread'],_0x3d0ea9),_0x56bc1d=new pe(_0xf636a8,_0x46d55a,_0x3d0ea9,_0xf8af9f),_0x4d2501=_0x46d55a['getAllAdjacentSuggestions']()['filter'](_0x4ac154=>_0x4ac154['isInContent']);_0x3d0ea9['descriptionParts']=_0xf636a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4d2501),this['_suggestionToController']['set'](_0x46d55a,_0x56bc1d),this['_viewToController']['set'](_0x3d0ea9,_0x56bc1d),_0x3762e1=_0x2dac57['createAnnotation']({'view':_0x2b37fa,'target':()=>{const _0x1b66e2=[],_0x19fdb0=_0x46d55a['getAllAdjacentSuggestions']()['filter'](_0x140f29=>_0x140f29['isInContent']);for(const _0x5c3876 of _0x19fdb0)_0x1b66e2['push'](..._0x5c3876['getMarkers']());return _0x203c17(_0xf636a8['editing'],_0x1b66e2);},'type':()=>'suggestion-'+_0x56bc1d['view']['type']}),_0x598ed2['_bindAnnotationToEditors'](_0x3d0ea9,_0x3762e1),_0x2dac57['add'](_0x3762e1),_0x1f2765['registerAnnotation'](_0x3762e1);}['_destroyController'](_0x761d19){const _0x55ede5=this['editor']['plugins']['get']('CommentsRepository'),_0x5eb38e=this['editor']['plugins']['get']('Annotations'),_0xf328b7=this['_suggestionToController']['get'](_0x761d19),_0x1c786f=_0xf328b7['view'],_0x3f2d95=_0x5eb38e['getByInnerView'](_0x1c786f);_0x55ede5['_unbindEditors'](_0x1c786f),_0x3f2d95&&_0x5eb38e['remove'](_0x3f2d95),this['_suggestionToController']['delete'](_0x761d19),this['_viewToController']['delete'](_0x1c786f),_0xf328b7['destroy']();}['_updateController'](_0x53dc47){if(!_0x53dc47['isInContent']||!this['_suggestionToController']['has'](_0x53dc47))return;const _0x3b102f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5caa85=this['_suggestionToController']['get'](_0x53dc47),_0x448320=_0x53dc47['getAllAdjacentSuggestions']();_0x5caa85['view']['descriptionParts']=_0x3b102f['descriptionFactory']['getDescriptions'](_0x448320);}['destroy'](){for(const _0x1a028f of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a028f);for(const _0x15facb of this['_annotationViews']['values']())_0x15facb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3a61b9){return'model'in _0x3a61b9;}class k extends _0x113b76{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x12bf94){this['editor']['plugins']['get'](p)['adapter']=_0x12bf94;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4a713c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4a713c);}['getSuggestions']({skipNotAttached:_0x4db927=!0x1,toJSON:_0xb3a36c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4db927,'toJSON':_0xb3a36c});}['getSuggestion'](_0x152850){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x152850);}}const w=['Pagination'];class T extends _0x113b76{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1004f0=this['editor'];if(_0x1004f0['config']['define']('trackChangesData.editorCreator',_0x152190=>{const _0x3a3c27=_0x1004f0['model']['document']['getRootNames']()['reduce']((_0x50b611,_0x1c94cc)=>(_0x50b611[_0x1c94cc]='',_0x50b611),{});return _0x1004f0['constructor']['create'](_0x3a3c27,_0x152190);}),'function'!=typeof _0x1004f0['config']['get']('trackChangesData')['editorCreator'])throw new _0x22e281('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1d1ae9){return N(this['editor'],!0x0,_0x1d1ae9);}['getDataWithDiscardedSuggestions'](_0x45bf99){return N(this['editor'],!0x1,_0x45bf99);}}class D extends _0x113b76{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e994e){function _0x2c982a(_0x11ba3c){return _0x11ba3c['map'](_0x37c767=>String['fromCharCode'](_0x37c767))['join']('');}super(_0x3e994e),this['result']='end',_0x3e994e[_0x2c982a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c982a([0x76,0x69,0x65,0x77])][_0x2c982a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c982a([0x61,0x75,0x74,0x6f]),_0x3e994e[_0x2c982a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c982a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c982a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c982a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c982a([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 Ge(_0x45d7c1){return void 0x0!==_0x45d7c1['getRootsAttributes'];}async function N(_0x5bf760,_0x2ce0f7,_0x3a669c){const _0x594ee7=_0x303604(_0x5bf760,w);_0x594ee7['plugins']['push'](p,D),_0x594ee7['rootsAttributes']=Ge(_0x5bf760)?_0x5bf760['getRootsAttributes']():void 0x0;const _0x37a8b3=document['createDocumentFragment'](),_0x207e75=_0x5bf760['config']['get']('trackChangesData')['editorCreator'],_0x1ffc1b=await _0x207e75(_0x594ee7,()=>function(_0x31cff8){const _0xffddd0=document['createElement']('div');return _0x31cff8['appendChild'](_0xffddd0),_0xffddd0;}(_0x37a8b3));!function(_0x47184e,_0x448ad6){const _0x6b70bb=_0x47184e['model']['document']['getRootNames']()['reduce']((_0x55fc72,_0x1b2035)=>(_0x55fc72[_0x1b2035]=_0x47184e['data']['get']({'rootName':_0x1b2035}),_0x55fc72),{}),_0x2395e8=_0x47184e['plugins']['get']('Users')['users']['map'](_0x34db07=>({'id':_0x34db07['id'],'name':_0x34db07['name']})),_0x5a4bb2=_0x47184e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ef134=_0x47184e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x498c47=_0x448ad6['plugins']['get']('Users'),_0x51cd5c=_0x448ad6['plugins']['get']('TrackChangesEditing'),_0xcc9e7f=_0x448ad6['plugins']['get']('CommentsRepository');for(const _0x291480 of _0xcc9e7f['getCommentThreads']())_0x291480['remove']();for(const _0x18bd38 of _0x2395e8)_0x498c47['getUser'](_0x18bd38['id'])||_0x498c47['addUser'](_0x18bd38);_0x498c47['me']||_0x498c47['useAnonymousUser']();for(const _0xa3ae30 of _0x2ef134)_0xcc9e7f['addCommentThread'](_0xa3ae30);for(const _0x118eaa of _0x5a4bb2)_0x51cd5c['addSuggestionData'](_0x118eaa);_0x448ad6['data']['set'](_0x6b70bb);}(_0x5bf760,_0x1ffc1b),_0x1ffc1b['execute'](_0x2ce0f7?'acceptAllSuggestions':'discardAllSuggestions');const _0x54aa75=Ge(_0x1ffc1b)?_0x1ffc1b['getFullData'](_0x3a669c):_0x1ffc1b['data']['get'](_0x3a669c);return await _0x1ffc1b['destroy'](),_0x54aa75;}class Me extends _0x291469{['options'];constructor(_0x2b7e59,_0x2cb6b4){super(_0x2b7e59),this['options']=_0x2cb6b4,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'](_0xaf5763,_0x3c2636){if(!this['element'])return;const _0x268a99=[];for(const [_0x2497c8,_0x285003]of _0xaf5763){const _0x1ab138=document['createElement']('div');_0x1ab138['setAttribute']('data-ck-root-name',_0x2497c8),_0x1ab138['className']=_0x285003['classes']+'\x20ck-track-changes-preview__root-container',_0x1ab138['innerHTML']=_0x285003['content'],_0x268a99['push'](_0x1ab138);}_0x3c2636(this['element'],_0x268a99),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xe01dff{constructor(_0x309ff5){super(_0x309ff5),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1da5e2=this['editor'],_0x356c87=_0x1da5e2['locale'],_0x36f80b=_0x1da5e2['plugins']['get']('Dialog');let _0x47bd8c;const _0x4f2822=function(_0x585bf0){const _0x29c3fe={};if('editables'in _0x585bf0['ui']['view']){for(const [_0x1321b3,_0x5bba5e]of Object['entries'](_0x585bf0['ui']['view']['editables']))_0x29c3fe[_0x1321b3]=_0x5bba5e['element'];}else _0x29c3fe[_0x585bf0['model']['document']['getRootNames']()[0x0]]=_0x585bf0['ui']['view']['editable']['element'];return _0x29c3fe;}(_0x1da5e2),_0x3c3425=function(_0x34fb77){let _0x1befa6=0x0;for(const _0xb5b78c of Object['values'](_0x34fb77))_0x1befa6=Math['max'](_0x1befa6,_0xb5b78c['getBoundingClientRect']()['width']);let _0x44bd18=0x0;for(const _0x1fb734 of Object['values'](_0x34fb77))_0x44bd18+=_0x1fb734['getBoundingClientRect']()['height'];const _0x4dd754=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4213f6=Math['min'](_0x44bd18,_0x4dd754);return{'width':_0x1befa6,'height':_0x4213f6};}(_0x4f2822);_0x36f80b['show']({'id':'finalContentPreview','title':c(_0x356c87,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x356c87,{'dialogRects':_0x3c3425}),'onHide':()=>{_0x47bd8c['detachFromDom']();},'onShow':()=>{_0x1da5e2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2d5ba7=>{const _0x3c91fc=this['_standarizeRootsData'](_0x2d5ba7,_0x1da5e2,_0x4f2822);_0x36f80b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3c91fc,_0x1da5e2['config']['get']('trackChanges.preview.renderFunction'));}),_0x47bd8c=new _0x310ede(_0x356c87,[_0x36f80b['view']]),_0x47bd8c['attachToDom'](),_0x47bd8c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1da5e2['once']('destroy',()=>{_0x47bd8c['detachFromDom']();});const _0x5a06f8=_0x36f80b['view']['headerView']['class'];_0x36f80b['view']['headerView']['class']=_0x5a06f8?_0x5a06f8+'\x20ck-reset_all':'ck-reset_all',_0x36f80b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x36f80b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x593b36=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4c6485=_0x593b36['previewMode'],_0x4dccf8={};if('$labels'===_0x4c6485){for(const _0x594bd3 of _0x593b36['getMergeFieldsIds']())_0x4dccf8[_0x594bd3]=_0x593b36['getLabel'](_0x594bd3)||_0x594bd3;}else{const _0x72e1e4='$defaultValues'===_0x4c6485?_0x593b36['getDefaultValues']():_0x593b36['getDataSetValues'](_0x4c6485,!0x0);for(const _0x30c30e of Object['entries'](_0x72e1e4)){const [_0x37654a,_0x124b40]=_0x30c30e;_0x4dccf8[_0x37654a]=null!==_0x124b40?_0x124b40:_0x593b36['getLabel'](_0x37654a)||_0x37654a;}}return{'mergeFieldsData':_0x4dccf8};}['_standarizeRootsData'](_0x165aae,_0x5a7a76,_0x1bf6c1){let _0x56d9c4;if('string'==typeof _0x165aae){const _0x44f6b2=_0x5a7a76['model']['document']['getRootNames']()[0x0];_0x56d9c4={[_0x44f6b2]:_0x165aae};}else _0x56d9c4=_0x165aae;const _0x471172=this['_fixMediaEmbeds'](_0x56d9c4,_0x5a7a76),_0x4c64a6=function(_0x2a8272,_0x5df1af){for(const [_0x212bfb,_0x2b1268]of _0x2a8272)_0x2b1268['classes']=_0x5df1af[_0x212bfb]['classList']['value']['replace']('ck-focused','');return _0x2a8272;}(this['_sortRoots'](_0x5a7a76)['reduce']((_0x2eb895,_0x258692)=>(_0x2eb895['push']([_0x258692,{'content':_0x471172[_0x258692],'classes':''}]),_0x2eb895),[]),_0x1bf6c1);return _0x4c64a6;}['_fixMediaEmbeds'](_0x1f35fc,_0x318724){if(!_0x318724['plugins']['has']('MediaEmbedEditing'))return _0x1f35fc;const _0x4e55a6=_0x318724['plugins']['get']('MediaEmbedEditing');for(const [_0x166f70,_0x87f41f]of Object['entries'](_0x1f35fc)){const _0x6a7792=document['createElement']('div');_0x6a7792['innerHTML']=_0x87f41f,(_0x6a7792['querySelectorAll']('figure.media')['forEach'](_0x4d82da=>{const _0x5b0656=_0x4d82da['querySelector']('oembed');if(_0x5b0656){const _0x500bf4=_0x5b0656['getAttribute']('url');if(_0x500bf4){const _0x1f8113=_0x4e55a6['registry']['getMediaViewElement'](new _0x2d58b3(_0x318724['editing']['view']['document']),_0x500bf4,{'elementName':'','renderForEditingView':!0x0}),_0x137da7=document['createElement']('div');_0x137da7['classList']['add']('ck-media__wrapper'),_0x1f8113['render'](_0x137da7,_0x318724['editing']['view']['domConverter']),_0x5b0656['replaceWith'](_0x137da7);}}}),_0x1f35fc[_0x166f70]=_0x6a7792['innerHTML']);}return _0x1f35fc;}['_sortRoots'](_0x2d6d77){if(!function(_0x5c8a7d){return void 0x0!==_0x5c8a7d['getRootsAttributes'];}(_0x2d6d77))return _0x2d6d77['model']['document']['getRootNames']();const _0x300f16=[],_0x93d57e=new Map();for(const _0x347efb of _0x2d6d77['model']['document']['getRootNames']()){const _0x3cf2fd=_0x2d6d77['editing']['view']['getDomRoot'](_0x347efb)['getClientRects']()['item'](0x0);_0x300f16['push'](_0x347efb),_0x93d57e['set'](_0x347efb,_0x3cf2fd);}return _0x300f16['sort']((_0x464a7d,_0x3accf6)=>{const _0x42dbb2=_0x93d57e['get'](_0x464a7d),_0x11cd86=_0x93d57e['get'](_0x3accf6);return _0x42dbb2['y']-_0x11cd86['y']||_0x42dbb2['x']-_0x11cd86['x'];}),_0x300f16;}}class te extends _0x113b76{static get['requires'](){return[T,_0x567d55];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ff7d8){super(_0x3ff7d8),_0x3ff7d8['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3ff7d8['config']['define']('trackChanges.preview.renderFunction',(_0x3072d7,_0x3f25a3)=>{for(const _0x388b69 of _0x3f25a3)_0x3072d7['appendChild'](_0x388b69);});}}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 _0x56553e,Plugin as _0x11ea7f,PendingActions as _0x2727c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1cd3be,ObservableMixin as _0x18406a,uid as _0x12ee37,priorities as _0x2ef4ce,insertToPriorityArray as _0x29ae24,toArray as _0x388c61,logWarning as _0x5dfb16,getEnvKeystrokeText as _0x31ad4f,FocusTracker as _0x596630,KeystrokeHandler as _0x5bb128,Collection as _0x5e4040}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2dc50c,IconCancel as _0x359719,IconTrackChanges as _0x46fdee}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1d84f3,View as _0x2ae501,ViewCollection as _0x5357b9,FocusCycler as _0x455afc,ViewModel as _0x166277,createDropdown as _0x46612d,SplitButtonView as _0x214ce7,addListToDropdown as _0x5cdae9,MenuBarMenuView as _0x292dc9,MenuBarMenuListView as _0x22298c,ListSeparatorView as _0x4e76ca,MenuBarMenuListItemView as _0x20b265,MenuBarMenuListItemButtonView as _0x5a7002,BodyCollection as _0x369a10,Dialog as _0x4de383}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x19fdf5,hashObject as _0x2bf3c4,surroundingMarkersDetector as _0x55f8e2,FOCUS_ANNOTATION_KEYSTROKE as _0x55609f,AriaDescriptionView as _0xffefc0,setupThreadKeyboardNavigation as _0xd9160f,trimHtml as ti,UserView as _0x4a2fec,LateFocusButtonView as _0xbaa962,getDateTimeFormatter as _0x33eb5c,getAllMarkersDomElementsSorted as _0x123e60,sanitizeEditorConfig as _0x481b18}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3e9916,LiveRange as _0x53edc8,LivePosition as _0x130d1d,DowncastWriter as _0x3d3be1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x9867d8,toWidget as _0x1a15a4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2a9f3a,set as _0x3e8089,isEqual as _0x2aed50,unset as _0x5303ea,omit as Ft}from'es-toolkit/compat';import{Delete as _0x544c25,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x120978}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x420ad0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x56553e{['_enabledCommands'];constructor(_0x57dac7,_0x4315f3){super(_0x57dac7),this['_enabledCommands']=_0x4315f3,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 _0x3b7f34 of this['editor']['commands']['commands']())_0x3b7f34['affectsData']&&!this['_enabledCommands']['has'](_0x3b7f34)&&_0x3b7f34['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x214eae of this['editor']['commands']['commands']())_0x214eae['affectsData']&&!this['_enabledCommands']['has'](_0x214eae)&&_0x214eae['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x56553e{['_suggestions'];constructor(_0x53b5bc,_0x3b9fd0){super(_0x53b5bc),this['_suggestions']=_0x3b9fd0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4a1fa3){const _0xc858bf=this['_suggestions']['get'](_0x4a1fa3);if(!_0xc858bf)throw new _0x1cd3be('track-changes-accept-suggestion-not-found',this);const _0x5856b8=_0xc858bf['getRanges']();this['editor']['model']['canEditAt'](_0x5856b8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc858bf);}}class O extends _0x56553e{['_suggestions'];constructor(_0x42c6eb,_0x42bfed){super(_0x42c6eb),this['_suggestions']=_0x42bfed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c482a){const _0x2585f9=this['_suggestions']['get'](_0x5c482a);if(!_0x2585f9)throw new _0x1cd3be('track-changes-discard-suggestion-not-found',this);const _0x3c1f45=_0x2585f9['getRanges']();this['editor']['model']['canEditAt'](_0x3c1f45)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2585f9);}}function ls(_0xa95808,_0x40e292){let _0x1ebd89='';return _0x1ebd89+=_0xa95808['split']('*')['map']((_0x13fa54,_0x53daff)=>_0x53daff%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x13fa54)+'</span>':nn(_0x13fa54))['join'](''),_0x40e292&&(_0x1ebd89+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x40e292['value']+'\x22\x20title=\x22'+_0x40e292['title']+'\x22></span>'),_0x1ebd89;}function nn(_0x4447d2){const _0x576266=document['createElement']('span');return _0x576266['innerText']=_0x4447d2,_0x576266['innerHTML'];}function ts(_0x31a25a){return _0x31a25a['sort']((_0x2cf154,_0x3ad4fd)=>'deletion'==_0x2cf154['type']&&'deletion'!=_0x3ad4fd['type']?-0x1:'deletion'!=_0x2cf154['type']&&'deletion'==_0x3ad4fd['type']?0x1:0x0);}function to(_0x49d482,_0x55d6f2){let _0x367b58,_0x5c09ec=0x0;const _0x8cb6c8=[],_0x337c1d=_0x55d6f2['schema'];for(;_0x5c09ec<_0x49d482['length'];){const _0x4496a1=_0x49d482[_0x5c09ec],_0xfc7033=_0x49d482[_0x5c09ec+0x1];_0x367b58||(_0x367b58=_0x55d6f2['createPositionBefore'](_0x4496a1)),on(_0x55d6f2,_0x4496a1,_0xfc7033)||(_0x8cb6c8['push'](_0x55d6f2['createRange'](_0x367b58,_0x337c1d['isObject'](_0x4496a1)?_0x55d6f2['createPositionAfter'](_0x4496a1):_0x55d6f2['createPositionAt'](_0x4496a1,'end'))),_0x367b58=null),_0x5c09ec++;}return _0x8cb6c8;}function on(_0x24b862,_0x401d88,_0x4efa78){if(!_0x4efa78)return!0x1;const _0x4fc5fd=_0x24b862['createPositionAfter'](_0x401d88),_0x1fefe5=_0x24b862['createPositionBefore'](_0x4efa78);return _0x4fc5fd['isTouching'](_0x1fefe5);}function rs(_0x4473da,_0x225952,_0x209773){for(;_0x209773['length'];){const _0x50b7e9=_0x209773['splice'](0x0,0x64);_0x4473da['change'](()=>{for(const _0x3f5db1 of _0x50b7e9)_0x3f5db1['isInContent']&&_0x225952['execute'](_0x3f5db1['id']);});}}class R extends _0x56553e{['_command'];['_suggestions'];constructor(_0x45e733,_0x4a1e0e,_0x219b3f){super(_0x45e733),this['_command']=_0x4a1e0e,this['_suggestions']=_0x219b3f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3accd8=Array['from'](this['_suggestions']['values']())['some'](_0x1f20d1=>_0x1f20d1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3accd8;}['execute'](){const _0x2cb624=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3d591c of _0x2cb624){const _0x55fbe0=_0x3d591c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55fbe0))return;}rs(this['editor']['model'],this['_command'],_0x2cb624);}}class E extends _0x56553e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x45fda1,_0x163b07,_0x3d37ee){super(_0x45fda1),this['_command']=_0x163b07,this['_suggestions']=_0x3d37ee,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f983a=this['editor']['model']['document']['selection'],_0x52ee75=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x403c86,_0x16c47e){const _0x27920c=Array['from'](_0x403c86['getRanges']()),_0x464699=new Set();for(const _0x2df66f of _0x16c47e)if(_0x2df66f['isInContent']){for(const _0x597eef of _0x27920c)for(const _0x88b3e5 of _0x2df66f['getRanges']())(_0x597eef['isIntersecting'](_0x88b3e5)||_0x403c86['isCollapsed']&&!_0x2df66f['isMultiRange']&&_0x2df66f['next']&&_0x88b3e5['end']['isTouching'](_0x597eef['start']))&&_0x464699['add'](_0x2df66f);}return _0x464699;}(_0x1f983a,_0x52ee75),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4ec389=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3d81bc of _0x4ec389){const _0x539eac=_0x3d81bc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x539eac))return;}rs(this['editor']['model'],this['_command'],_0x4ec389);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x18406a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x100a79,_0xb59c27){super(),this['id']=_0xb59c27['id'],this['type']=_0xb59c27['type'],this['subType']=_0xb59c27['subType']||null,this['author']=_0xb59c27['author'],this['creator']=_0xb59c27['creator']||_0xb59c27['author'],this['isExternal']=Boolean(_0xb59c27['attributes']&&_0xb59c27['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb59c27['originalSuggestionId']||null,this['_model']=_0x100a79,this['_onAccept']=_0xb59c27['onAccept'],this['_onDiscard']=_0xb59c27['onDiscard'],this['_onAttributesChange']=_0xb59c27['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb59c27['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 _0x2eab23=this;for(;_0x2eab23['previous'];)_0x2eab23=_0x2eab23['previous'];return _0x2eab23;}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'](_0x405ff0){this['_markerNames']['add'](_0x405ff0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c9e3e=>this['_model']['markers']['get'](_0x1c9e3e))['filter'](_0x53c7f7=>_0x53c7f7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x267fa8=>{for(const _0x4990d8 of this['getMarkers']())_0x267fa8['removeMarker'](_0x4990d8);}),this['_markerNames']['clear']();}['removeMarker'](_0x52d601){this['_model']['change'](_0x545bfb=>{_0x545bfb['removeMarker'](_0x52d601);}),this['_markerNames']['delete'](_0x52d601);}['addRange'](_0x1521c2){const _0x174cf4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x174cf4),this['_model']['change'](_0x166559=>{_0x166559['addMarker'](_0x174cf4,{'range':_0x1521c2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x25fc6c){for(const _0x384231 of this['getRanges']())if(_0x384231['isIntersecting'](_0x25fc6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x58d982=>_0x58d982['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x444fa1,_0x14dc91)=>[..._0x444fa1,..._0x14dc91['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4f3277=this['getRanges']();if(0x1!=_0x4f3277['length'])return null;const _0x190227=_0x4f3277[0x0],_0x2b696e=_0x190227['start']['nodeAfter'],_0x24a485=_0x190227['end']['nodeBefore'];return _0x2b696e instanceof _0x3e9916?_0x2b696e!=_0x24a485?null:_0x2b696e: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 _0xb79b2f=[];let _0x2d1953=this['head'];for(;_0x2d1953;)_0xb79b2f['push'](_0x2d1953),_0x2d1953=_0x2d1953['next'];return _0xb79b2f;}['setAttribute'](_0x5a8b57,_0xf73634){const _0x16407a=_0x2a9f3a(this['attributes']);_0x3e8089(_0x16407a,_0x5a8b57,_0xf73634),_0x2aed50(_0x16407a,this['attributes'])||(this['attributes']=_0x16407a,this['_onAttributesChange'](_0x16407a));}['removeAttribute'](_0x30c292){const _0x35404a=_0x2a9f3a(this['attributes']);_0x5303ea(_0x35404a,_0x30c292),_0x2aed50(_0x35404a,this['attributes'])||(this['attributes']=_0x35404a,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 _0x12ee37()['substr'](0x1,0x5);}}function c(_0x26cac0,_0x288126,_0xaa40cd){const _0x219865=_0x26cac0['t'],t=_0x26cac0['t'];switch(_0x288126){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',_0xaa40cd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xaa40cd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xaa40cd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xaa40cd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xaa40cd);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',_0xaa40cd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xaa40cd);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',_0xaa40cd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xaa40cd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xaa40cd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xaa40cd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xaa40cd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xaa40cd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xaa40cd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xaa40cd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xaa40cd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xaa40cd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xaa40cd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xaa40cd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xaa40cd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xaa40cd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xaa40cd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xaa40cd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xaa40cd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xaa40cd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xaa40cd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xaa40cd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xaa40cd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xaa40cd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xaa40cd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xaa40cd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xaa40cd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xaa40cd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xaa40cd);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'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xaa40cd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xaa40cd);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'},_0xaa40cd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xaa40cd);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 _0x219865({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xaa40cd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x219865({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xaa40cd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xaa40cd);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'},_0xaa40cd);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'},_0xaa40cd);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'},_0xaa40cd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x288126;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xcc7fda,_0x30bc5e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xcc7fda,this['_locale']=_0x30bc5e;}['getDescriptions'](_0x30fe66){const _0x5ceeb7=[],_0x4abd5c=new Set(),_0xe9663a=new Set();for(let _0x227ac1=0x0;_0x227ac1<_0x30fe66['length'];_0x227ac1++){const _0x169f8a=_0x30fe66[_0x227ac1];if(!_0x169f8a['isInContent'])continue;const _0x221257=this['_handleCustomCallbackDescription'](_0x169f8a);if(_0x221257){if(null!=_0x169f8a['subType']){if(_0x4abd5c['has'](_0x169f8a['subType']))continue;_0x4abd5c['add'](_0x169f8a['subType']);}_0x5ceeb7['push'](_0x221257);}else{if('attribute'!=_0x169f8a['type'])'insertion'!=_0x169f8a['type']&&'deletion'!=_0x169f8a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ceeb7,_0x169f8a,_0x30fe66[_0x227ac1+0x1]);else{const _0x5680dc=_0x169f8a['data']['key'];if(_0xe9663a['has'](_0x5680dc))continue;_0xe9663a['add'](_0x169f8a['data']['key']),_0x5680dc==u?this['_handleRenameSuggestionDescription'](_0x5ceeb7,_0x169f8a):this['_handleAttributeSuggestionDescription'](_0x5ceeb7,_0x169f8a);}}}return this['_resolveDescriptionItems'](_0x5ceeb7);}['registerDescriptionCallback'](_0x5e8fae){this['_customCallbacks']['push'](_0x5e8fae);}['registerElementLabel'](_0x597128,_0x596036,_0x12f458=_0x2ef4ce['normal']){'function'==typeof _0x597128?_0x29ae24(this['_itemLabelsCallbacks'],{'matchingCallback':_0x597128,'label':_0x596036,'priority':_0x12f458}):this['_itemLabels']['set'](_0x597128,_0x596036);}['registerAttributeLabel'](_0x11b9f3,_0x541c5b){this['_attributeLabels']['set'](_0x11b9f3,_0x541c5b);}['getItemLabel'](_0x2b7cc7,_0x249e50=0x1){let _0x141b5a;for(const _0x4cb955 of this['_itemLabelsCallbacks'])if(_0x4cb955['matchingCallback'](_0x2b7cc7)){_0x141b5a=_0x4cb955['label'];break;}return _0x141b5a||(_0x141b5a=this['_itemLabels']['get'](_0x2b7cc7['name'])),_0x141b5a?_0x141b5a(_0x249e50):0x1!==_0x249e50?_0x249e50+'\x20'+_0x2b7cc7['name']+'s':''+_0x2b7cc7['name'];}['_addDescriptionItems'](_0xb7560d,_0x538a52){const _0x53f58b=_0x538a52['getFirstRange']()['getWalker'](),_0x49ecf5='insertion'==_0x538a52['type']?'add':'remove';for(const _0x48a386 of _0x53f58b){const _0x4889e7=_0x48a386['item'],_0x5d43cb=_0xb7560d[_0xb7560d['length']-0x1];if(_0x4889e7['is']('$textProxy'))_0x5d43cb&&_0x5d43cb['type']['indexOf']('Container')>-0x1&&_0xb7560d['pop'](),_0x5d43cb&&'text'==_0x5d43cb['type']?_0x5d43cb[_0x49ecf5]+=_0x4889e7['data']:_0xb7560d['push']({'type':'text','add':'add'==_0x49ecf5?_0x4889e7['data']:'','remove':'remove'==_0x49ecf5?_0x4889e7['data']:''});else{if(this['_schema']['isObject'](_0x4889e7)){const _0x5f573e=_0x4889e7;if(_0x5d43cb&&_0x5d43cb['type']['indexOf']('Container')>-0x1&&_0xb7560d['pop'](),'elementEnd'==_0x48a386['type'])continue;_0x5d43cb&&_0x5d43cb['type']==_0x49ecf5+'Object'&&_0x5d43cb['element']['name']==_0x5f573e['name']?_0x5d43cb['quantity']++:_0xb7560d['push']({'type':_0x49ecf5+'Object','element':_0x5f573e,'quantity':0x1}),_0x53f58b['skip'](_0x4ee379=>!('elementEnd'==_0x4ee379['type']&&_0x4ee379['item']==_0x4889e7));}else{if(this['_schema']['checkChild'](_0x4889e7,'$text')||_0x4889e7['is']('element','softBreak')){const _0x57f499=_0x4889e7;if('add'==_0x49ecf5&&'elementStart'==_0x48a386['type']||'remove'==_0x49ecf5&&'elementEnd'==_0x48a386['type'])continue;if(_0x5d43cb&&-0x1==_0x5d43cb['type']['indexOf']('Container')){'text'==_0x5d43cb['type']&&(_0x5d43cb[_0x49ecf5]+='\x0a');continue;}let _0x2318bb;if(_0x2318bb='add'==_0x49ecf5?_0x57f499['nextSibling']&&!this['_schema']['isObject'](_0x57f499['nextSibling'])?_0x57f499['nextSibling']:null:_0x57f499['previousSibling']&&!this['_schema']['isObject'](_0x57f499['previousSibling'])?_0x57f499['previousSibling']:null,_0x57f499['isEmpty']||_0x2318bb&&_0x2318bb['isEmpty']){const _0x352c17=_0x2318bb&&_0x2318bb['isEmpty']?_0x2318bb:_0x57f499;_0x5d43cb&&_0x5d43cb['type']==_0x49ecf5+'EmptyContainer'&&_0x5d43cb['element']['name']==_0x352c17['name']?_0x5d43cb['quantity']++:_0xb7560d['push']({'type':_0x49ecf5+'EmptyContainer','element':_0x352c17,'quantity':0x1});}else _0xb7560d['push']({'type':_0x49ecf5+'Container','element':_0x57f499});}}}}}['_resolveDescriptionItems'](_0x16390d){const _0x3a7ce4=this['_locale'],_0x2668ae=[],_0x396f87=[],_0xf40285=[];for(const _0x258180 of _0x16390d)switch(_0x258180['type']){case'text':if(_0x258180['add']=_0x258180['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x258180['remove']=_0x258180['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x258180['add']&&''!=_0x258180['remove']){_0x2668ae['push']({'type':'replace','content':c(_0x3a7ce4,'REPLACE_TEXT',['\x22'+_0x258180['remove']+'\x22','\x22'+_0x258180['add']+'\x22'])});continue;}if(null!=_0x258180['add']['match'](/^ +$/)){_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0',c(_0x3a7ce4,'ELEMENT_SPACE',_0x258180['add']['length']))});continue;}if(null!=_0x258180['remove']['match'](/^ +$/)){_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0',c(_0x3a7ce4,'ELEMENT_SPACE',_0x258180['remove']['length']))});continue;}if(''!=_0x258180['add']){_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0','\x22'+_0x258180['add']+'\x22')});continue;}_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0','\x22'+_0x258180['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Insert:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Remove:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'addContainer':_0x2668ae['push']({'type':'insertion','content':c(_0x3a7ce4,'*Split:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'removeContainer':_0x2668ae['push']({'type':'deletion','content':c(_0x3a7ce4,'*Merge:*\x20%0',this['getItemLabel'](_0x258180['element'],_0x258180['quantity']))});continue;case'addFormat':_0x396f87['push'](_0x258180['key']);continue;case'removeFormat':_0xf40285['push'](_0x258180['key']);continue;default:_0x2668ae['push'](_0x258180);}if(_0x396f87['length']){const _0x159a0d=_0x396f87['map'](_0x5d50b3=>this['_attributeLabels']['has'](_0x5d50b3)?this['_attributeLabels']['get'](_0x5d50b3):_0x5d50b3)['join'](',\x20');_0x2668ae['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x159a0d)});}if(_0xf40285['length']){const _0x4e39e7=_0xf40285['map'](_0x4f8a99=>this['_attributeLabels']['has'](_0x4f8a99)?this['_attributeLabels']['get'](_0x4f8a99):_0x4f8a99)['join'](',\x20');_0x2668ae['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e39e7)});}return _0x2668ae;}['_handleCustomCallbackDescription'](_0x239a75){for(const _0x1d3c4f of this['_customCallbacks']){const _0x597b35=_0x1d3c4f(_0x239a75);if(_0x597b35&&'type'in _0x597b35)return _0x597b35;}}['_handleAttributeSuggestionDescription'](_0x1bdbc8,_0x30985e){const _0x95c82b=_0x30985e['data'],_0x27a3c0=void 0x0===_0x95c82b['newValue']?'removeFormat':'addFormat';_0x1bdbc8['push']({'type':_0x27a3c0,'key':_0x95c82b['key']});}['_handleRenameSuggestionDescription'](_0x30f162,_0x30bf7f){_0x30f162['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x30bf7f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3994be,_0xcfabee,_0x46cff3){if(this['_addDescriptionItems'](_0x3994be,_0xcfabee),_0x46cff3&&_0x46cff3['getFirstRange']()&&!_0xcfabee['getFirstRange']()['end']['isEqual'](_0x46cff3['getFirstRange']()['start'])){const _0x30135d=_0x3994be[_0x3994be['length']-0x1],_0x10b976='insertion'==_0xcfabee['type']?'add':'remove';_0x30135d&&'text'==_0x30135d['type']&&(_0x30135d[_0x10b976]+='\x0a');}}}class U extends _0x11ea7f{['afterInit'](){const _0x5afa87=this['editor'],_0x33792c=_0x5afa87['plugins']['get']('TrackChangesEditing');_0x5afa87['commands']['get']('showAIAssistant')&&_0x33792c['enableCommand']('showAIAssistant');}}class V extends _0x11ea7f{['afterInit'](){const _0x394e42=this['editor'],_0x581dfc=_0x394e42['locale'];if(!_0x394e42['plugins']['has']('AlignmentEditing'))return;const _0x2cf0c5=_0x394e42['plugins']['get']('TrackChangesEditing');_0x2cf0c5['enableDefaultAttributesIntegration']('alignment'),_0x2cf0c5['registerBlockAttribute']('alignment'),_0x2cf0c5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x581dfc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cef9=this['editor'],_0x250d7d=_0x19cef9['locale'];_0x19cef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x273974=>{if('formatBlock'!=_0x273974['type'])return;const {data:_0x482cf1}=_0x273974;if(_0x482cf1&&'alignment'==_0x482cf1['commandName']){const _0x40eee1=_0x482cf1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x250d7d,'*Format:*\x20%0',function(_0x1e5da2){switch(_0x1e5da2){case'left':return c(_0x250d7d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x250d7d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x250d7d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x250d7d,'FORMAT_JUSTIFY_TEXT');}}(_0x40eee1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x11ea7f{['afterInit'](){const _0x388fa1=this['editor'],_0x42819a=_0x388fa1['plugins']['get']('TrackChangesEditing'),_0x100e55=_0x388fa1['locale'];for(const _0x24846e of Zt){if(!_0x388fa1['plugins']['has'](_0x24846e))continue;const _0x3f81c1=_0x24846e['slice'](0x0,-0x7)['toLowerCase'](),_0x510d84='FORMAT_'+_0x3f81c1['toUpperCase']();_0x42819a['enableDefaultAttributesIntegration'](_0x3f81c1),_0x42819a['registerInlineAttribute'](_0x3f81c1),_0x42819a['descriptionFactory']['registerAttributeLabel'](_0x3f81c1,c(_0x100e55,_0x510d84));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x448949=this['editor'],_0x2af97e=_0x448949['locale'],_0x339696=_0x448949['plugins']['get']('TrackChangesEditing');function _0x52a48f(_0x4ad98b,_0x2755a2){_0x339696['descriptionFactory']['registerDescriptionCallback'](_0x23f779=>{if('formatInline'!=_0x23f779['type'])return;const {data:_0x1132ac}=_0x23f779;return _0x1132ac&&_0x1132ac['commandName']===_0x4ad98b?_0x1132ac['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2af97e,'*Format:*\x20%0',_0x2755a2)}:{'type':'format','content':c(_0x2af97e,'*Remove\x20format:*\x20%0',_0x2755a2)}:void 0x0;});}_0x52a48f('bold',c(_0x2af97e,'FORMAT_BOLD')),_0x52a48f('italic',c(_0x2af97e,'FORMAT_ITALIC')),_0x52a48f('underline',c(_0x2af97e,'FORMAT_UNDERLINE')),_0x52a48f('code',c(_0x2af97e,'FORMAT_CODE')),_0x52a48f('strikethrough',c(_0x2af97e,'FORMAT_STRIKETHROUGH')),_0x52a48f('subscript',c(_0x2af97e,'FORMAT_SUBSCRIPT')),_0x52a48f('superscript',c(_0x2af97e,'FORMAT_SUPERSCRIPT'));}}class G extends _0x11ea7f{['afterInit'](){const _0x5039aa=this['editor'],_0x1b0b8d=_0x5039aa['locale'];if(!_0x5039aa['plugins']['has']('BlockQuoteEditing'))return;const _0x1cace7=_0x5039aa['plugins']['get']('TrackChangesEditing'),_0x434cb6=this['editor']['commands']['get']('blockQuote');_0x1cace7['enableCommand']('blockQuote',(_0x11810c,_0x44621b={})=>{const _0x136001=this['editor']['model']['document']['selection'],_0x392bce=_0x44621b&&void 0x0!==_0x44621b['forceValue']?_0x44621b['forceValue']:!_0x434cb6['value'];let _0x3602f9=[];if(_0x392bce){const _0x418a4d=Array['from'](_0x136001['getSelectedBlocks']())['filter'](_0x1b6c66=>oo(_0x1b6c66)||function(_0x1785e7,_0x275748){const _0x8b8212=_0x275748['checkChild'](_0x1785e7['parent'],'blockQuote'),_0x5d6dcb=_0x275748['checkChild'](['$root','blockQuote'],_0x1785e7);return _0x8b8212&&_0x5d6dcb;}(_0x1b6c66,this['editor']['model']['schema']));_0x3602f9=to(_0x418a4d,_0x5039aa['model']);}else{const _0x43ee84=Array['from'](_0x136001['getSelectedBlocks']())['filter'](_0x4dffff=>oo(_0x4dffff));_0x3602f9=to(_0x43ee84,_0x5039aa['model']);}_0x5039aa['model']['change'](()=>{for(const _0x1943ae of _0x3602f9)_0x1cace7['markBlockFormat'](_0x1943ae,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x392bce}]});});}),_0x1cace7['descriptionFactory']['registerDescriptionCallback'](_0x38d18b=>{const {data:_0x3a9ce6}=_0x38d18b;if(_0x3a9ce6&&'blockQuote'==_0x3a9ce6['commandName']){const _0x11bc40=c(_0x1b0b8d,'ELEMENT_BLOCK_QUOTE');return _0x3a9ce6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b0b8d,'*Set\x20format:*\x20%0',_0x11bc40)}:{'type':'format','content':c(_0x1b0b8d,'*Remove\x20format:*\x20%0',_0x11bc40)};}});}}function oo(_0x5f310a){return'blockQuote'==_0x5f310a['parent']['name'];}class L extends _0x11ea7f{['afterInit'](){const _0x309e18=this['editor'],_0x30e7b1=_0x309e18['locale'],_0x5f1f31=_0x309e18['plugins']['get']('TrackChangesEditing');_0x309e18['plugins']['has']('BookmarkEditing')&&(_0x5f1f31['enableCommand']('insertBookmark'),_0x5f1f31['enableDefaultAttributesIntegration']('updateBookmark'),_0x5f1f31['registerBlockAttribute']('bookmarkId'),_0x5f1f31['descriptionFactory']['registerDescriptionCallback'](_0x9bc879=>{if('insertion'!=_0x9bc879['type']&&'deletion'!=_0x9bc879['type']&&'attribute'!=_0x9bc879['type'])return;const _0x21c433=_0x9bc879['getContainedElement']();if(null==_0x21c433)return;if(!_0x21c433['is']('element','bookmark'))return;const _0x1d6620=_0x21c433['getAttribute']('bookmarkId');if('insertion'==_0x9bc879['type'])return{'type':'insertion','content':c(_0x30e7b1,'*Insert:*\x20%0','\x22'+_0x1d6620+'\x22\x20'+c(_0x30e7b1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x9bc879['type'])return{'type':'deletion','content':c(_0x30e7b1,'*Remove:*\x20%0','\x22'+_0x1d6620+'\x22\x20'+c(_0x30e7b1,'ELEMENT_BOOKMARK'))};const {data:_0x24f98f}=_0x9bc879;if(!_0x24f98f||'bookmarkId'!=_0x24f98f['key'])return;return{'type':'format','content':c(_0x30e7b1,'*Set\x20bookmark:*\x20%0','\x22'+_0x24f98f['newValue']+'\x22')};}));}}class J extends _0x11ea7f{['afterInit'](){const _0x39e8d1=this['editor'];_0x39e8d1['plugins']['has']('CaseChange')&&(_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x39e8d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x11ea7f{['afterInit'](){const _0x5da135=this['editor'];_0x5da135['commands']['get']('ckbox')&&_0x5da135['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x11ea7f{['afterInit'](){const _0x5525ef=this['editor'];if(!_0x5525ef['plugins']['has']('CodeBlock'))return;const _0x3193f1=_0x5525ef['plugins']['get']('TrackChangesEditing'),_0x5c8062=_0x5525ef['locale'],_0x33ac2e=_0x5525ef['config']['get']('codeBlock')['languages'],_0x321e01=_0x5525ef['commands']['get']('codeBlock');_0x3193f1['enableCommand']('indentCodeBlock'),_0x3193f1['enableCommand']('outdentCodeBlock'),_0x3193f1['enableCommand']('codeBlock',(_0x443484,_0x4dc424={})=>{const _0x5acb0b=_0x5525ef['model'],_0x44e3b8=_0x5525ef['model']['document']['selection'],_0x3ec977=_0x4dc424&&void 0x0!==_0x4dc424['forceValue']?_0x4dc424['forceValue']:!_0x321e01['value'];let _0x4df317;_0x4dc424['language']||(_0x4dc424['language']=_0x33ac2e[0x0]['language']),_0x4df317=_0x3ec977?Array['from'](_0x44e3b8['getSelectedBlocks']())['filter'](_0xdca95c=>eo(_0xdca95c)||function(_0x42ec25,_0xf7b517){if(_0x42ec25['is']('rootElement')||_0xf7b517['isLimit'](_0x42ec25))return!0x1;return _0xf7b517['checkChild'](_0x42ec25['parent'],'codeBlock');}(_0xdca95c,_0x5acb0b['schema'])):Array['from'](_0x44e3b8['getSelectedBlocks']())['filter'](_0x13cedb=>eo(_0x13cedb));const _0x6c2cd9=to(_0x4df317,_0x5acb0b);_0x5acb0b['change'](()=>{for(const _0x528de3 of _0x6c2cd9)_0x3193f1['markBlockFormat'](_0x528de3,{'commandName':'codeBlock','commandParams':[{..._0x4dc424,'forceValue':_0x3ec977}],'formatGroupId':'blockName'});});}),(_0x3193f1['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ae932=>c(_0x5c8062,'ELEMENT_CODE_BLOCK',_0x2ae932)),_0x3193f1['descriptionFactory']['registerDescriptionCallback'](_0x2eef16=>{if('formatBlock'!=_0x2eef16['type'])return;const _0x57c69b=_0x5c8062['t'],{data:_0x29469f}=_0x2eef16;if(!_0x29469f||'codeBlock'!=_0x29469f['commandName'])return;const _0xed40ad=_0x29469f['commandParams'][0x0]['language'],_0xa0296b=_0x57c69b(_0x33ac2e['find'](_0x29ebfb=>_0x29ebfb['language']===_0xed40ad)['label'])['toLowerCase']();return _0x29469f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c8062,'*Set\x20format:*\x20%0',c(_0x5c8062,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa0296b+')')}:{'type':'format','content':c(_0x5c8062,'*Remove\x20format:*\x20%0',c(_0x5c8062,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xa2ac5f){return'codeBlock'==_0xa2ac5f['name'];}class q extends _0x11ea7f{['afterInit'](){const _0x230f86=this['editor'];if(!_0x230f86['plugins']['has']('CommentsEditing'))return;_0x230f86['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x10bc29,_0x18120a,_0xb5aed8){const _0x2d0c5d=[];for(const _0x1e759b of _0x18120a['getItems']())_0x1e759b['hasAttribute'](_0x10bc29)&&_0x2d0c5d['push'](_0xb5aed8['createRangeOn'](_0x1e759b));return _0x2d0c5d;}function Fe(_0x584a16,_0x501a34,{showActiveMarker:_0x16d1c6=!0x0}={}){const _0x4fe7bd=_0x584a16['plugins']['get']('TrackChangesEditing');return(_0x3bffd6,_0x2c937e,_0xcf6625)=>{if(!_0xcf6625['consumable']['test'](_0x2c937e['markerRange'],_0x3bffd6['name']))return;const _0xf62d27=_0x2c937e['markerRange']['getWalker'](),_0x3acdd1=_0x2c937e['markerRange']['start'],_0x238a9e=_0x584a16['model']['schema'];let _0x2c2909=null,_0x4cfba2=null,_0x171e44=!0x1,_0x17006c=!0x1;for(const _0x45508a of _0xf62d27){const _0xe5a50c=_0x45508a['item'];_0x171e44=_0x171e44||_0x238a9e['isContent'](_0xe5a50c);const _0xc2361f=_0xcf6625['mapper']['toViewElement'](_0xe5a50c);if(_0xc2361f&&_0xc2361f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45508a['type']&&(_0x238a9e['isBlock'](_0xe5a50c)&&!_0x238a9e['isLimit'](_0xe5a50c)&&(_0xe5a50c['nextSibling']||_0x3acdd1['isAtEnd']?_0x2c2909&&_0x2c2909['parent']==_0xe5a50c||(_0x2c2909=_0xe5a50c,_0x5529d4(_0x45508a['previousPosition']),_0x17006c=!0x0):_0x4cfba2=_0x4cfba2||_0x45508a['previousPosition']));}function _0x5529d4(_0x2ed454){const {id:_0x173ca8,authorId:_0x576bf5}=_0x4fe7bd['_splitMarkerName'](_0x2c937e['markerName']),_0x4db8ab=_0xcf6625['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x501a34,'data-suggestion':_0x173ca8,'data-author-id':_0x576bf5}),_0x4b3060=_0xcf6625['mapper']['toViewPosition'](_0x2ed454);_0x16d1c6&&_0x4fe7bd['activeMarkers']['includes'](_0x2c937e['markerName'])&&_0xcf6625['writer']['addClass']('ck-suggestion-marker--active',_0x4db8ab),_0xcf6625['writer']['insert'](_0x4b3060,_0x4db8ab),_0xcf6625['mapper']['bindElementToMarker'](_0x4db8ab,_0x2c937e['markerName']);}_0x171e44||_0x17006c||!_0x4cfba2||_0x5529d4(_0x4cfba2);};}class z extends _0x11ea7f{static get['requires'](){return[_0x544c25];}['init'](){const _0xdb427e=this['editor'],_0x38e2e9=_0xdb427e['plugins']['get']('TrackChangesEditing');_0x38e2e9['enableCommand']('delete');const _0x2564ef=_0xdb427e['commands']['get']('deleteForward');_0x38e2e9['enableCommand']('deleteForward',(_0x5351b0,_0x5e0b39={})=>{const _0x11dabc=_0xdb427e['model']['createSelection'](_0xdb427e['model']['document']['selection']);_0x11dabc['isCollapsed']&&_0xdb427e['model']['modifySelection'](_0x11dabc,{'direction':'forward','unit':_0x5e0b39['unit']});const _0x4be3cc=_0x11dabc['getFirstRange'](),_0x2559fa=_0x53edc8['fromRange'](_0x4be3cc);let _0xbe987;_0x5351b0(_0x5e0b39),_0xbe987='$graveyard'==_0x2559fa['root']['rootName']?_0xdb427e['model']['createRange'](_0x4be3cc['start']):_0xdb427e['model']['createRange'](_0x2559fa['start'],_0x2559fa['end']),_0x2559fa['detach'](),_0xdb427e['model']['enqueueChange'](_0x2564ef['buffer']['batch'],_0x5a5c66=>{_0x2564ef['buffer']['lock'](),_0x5a5c66['setSelection'](_0x5a5c66['createRange'](_0xbe987['end'])),_0x2564ef['buffer']['unlock']();});}),_0xdb427e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0xdb427e,'merge'),{'priority':'high'}),_0xdb427e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x225377,_0x46b390,_0x3ea239)=>{_0x3ea239['options']['showSuggestionHighlights']&&Fe(_0xdb427e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x225377,_0x46b390,_0x3ea239);},{'priority':'high'}),_0xdb427e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x306923,_0x4aa8d5,_0x4ab60c)=>{const _0x2c9cd1=_0x4ab60c['mapper']['markerNameToElements'](_0x4aa8d5['markerName']);if(_0x2c9cd1){for(const _0x2f62ad of _0x2c9cd1)_0x2f62ad['is']('uiElement')&&(_0x4ab60c['mapper']['unbindElementFromMarkerName'](_0x2f62ad,_0x4aa8d5['markerName']),_0x4ab60c['writer']['remove'](_0x2f62ad));}},{'priority':'high'});}}class W extends _0x11ea7f{['afterInit'](){const _0x11dfcf=this['editor'];if(!_0x11dfcf['plugins']['has']('ListEditing'))return;const _0x2bed8b=_0x11dfcf['locale'],_0x13534b=_0x11dfcf['plugins']['get']('TrackChangesEditing'),_0x12f728=_0x11dfcf['plugins']['has']('TodoListEditing'),_0x37bc1b=!!_0x11dfcf['config']['get']('list.multiBlock');function _0x2ab931(_0xf398f){return{'type':'format','content':''+c(_0x2bed8b,'*Set\x20format:*\x20%0',_0xf398f)};}function _0x48518c(_0x2e3b1){return{'type':'format','content':''+c(_0x2bed8b,'*Remove\x20format:*\x20%0',_0x2e3b1)};}_0x13534b['enableDefaultAttributesIntegration']('numberedList'),_0x13534b['enableDefaultAttributesIntegration']('bulletedList'),_0x13534b['enableDefaultAttributesIntegration']('customNumberedList'),_0x13534b['enableDefaultAttributesIntegration']('customBulletedList'),_0x13534b['enableDefaultAttributesIntegration']('indentList'),_0x13534b['enableDefaultAttributesIntegration']('outdentList'),_0x13534b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x13534b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x13534b['registerBlockAttribute']('listItemId'),_0x13534b['registerBlockAttribute']('listType'),_0x13534b['registerBlockAttribute']('listIndent'),_0x37bc1b&&(_0x13534b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x13534b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12f728&&(_0x13534b['enableDefaultAttributesIntegration']('todoList'),_0x13534b['enableDefaultAttributesIntegration']('checkTodoList'),_0x13534b['registerBlockAttribute']('todoListChecked'),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x49d547=>{const {data:_0x5e45d7}=_0x49d547;if(_0x5e45d7&&'todoListChecked'==_0x5e45d7['key'])return{'type':'format','content':_0x5e45d7['newValue']?c(_0x2bed8b,'*Check\x20item*'):c(_0x2bed8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x316870=>{if(_0x316870['batch']['isUndo'])return!0x1;let _0x1ceab2=!0x1;const _0x340400=_0x13534b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18041b=>'todoListChecked'===_0x13534b['_getAttributeKey'](_0x18041b));for(const _0x3b4edd of _0x340400){'todo'!=_0x3b4edd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x13534b['_findSuggestions'](_0x3b4edd['getFirstRange'](),'attribute')['find'](_0x484933=>'listType'===_0x13534b['_getAttributeKey'](_0x484933['suggestion']))||(_0x316870['removeMarker'](_0x3b4edd['getFirstMarker']()),_0x1ceab2=!0x0));}return _0x1ceab2;})),_0x13534b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2bed8b,'FORMAT_INDENT'));const _0x7af824={'type':'format','content':''};_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x512418=>{const {data:_0x51e6aa}=_0x512418;if(!_0x51e6aa||'listType'!=_0x51e6aa['key'])return;let _0x1b395a=_0x512418['head'];for(;_0x1b395a;){if(_0x1b395a['data']&&(('listStyle'==_0x1b395a['data']['key']||'listMarkerStyle'==_0x1b395a['data']['key'])&&(_0x1b395a['data']['newValue']&&'default'!=_0x1b395a['data']['newValue']||'default'!=_0x1b395a['data']['oldValue']&&!_0x51e6aa['newValue'])||!_0x37bc1b&&_0x1b395a['data']['key']==u))return _0x7af824;_0x1b395a=_0x1b395a['next'];}if(null==_0x51e6aa['newValue'])switch(_0x51e6aa['oldValue']){case'bulleted':return _0x48518c(c(_0x2bed8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48518c(c(_0x2bed8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48518c(c(_0x2bed8b,'ELEMENT_TODO_LIST'));}switch(_0x51e6aa['newValue']){case'bulleted':return _0x2ab931(c(_0x2bed8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ab931(c(_0x2bed8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ab931(c(_0x2bed8b,'ELEMENT_TODO_LIST'));}}),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x36b2f5=>{const {data:_0x1e40be}=_0x36b2f5;if(_0x1e40be&&'listIndent'==_0x1e40be['key'])return null==_0x1e40be['newValue']||null==_0x1e40be['oldValue']&&0x0==_0x1e40be['newValue']?_0x7af824:void 0x0;}),_0x13534b['descriptionFactory']['registerDescriptionCallback'](_0x5614a3=>{if('attribute'!=_0x5614a3['type'])return;const {data:_0x1d6bd9}=_0x5614a3;if(!_0x1d6bd9||'listItemId'!=_0x1d6bd9['key'])return;const _0x400537=Te(_0x5614a3);return'newValue'==_0x400537?{'type':'format','content':c(_0x2bed8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x400537?{'type':'format','content':c(_0x2bed8b,'*Split:*\x20list\x20item')}:_0x7af824;}),_0x11dfcf['model']['document']['registerPostFixer'](_0x59bc46=>this['listItemIdFixer'](_0x59bc46)),_0x11dfcf['model']['document']['registerPostFixer'](_0x3992a2=>this['noTrackChangesFixer'](_0x3992a2)),_0x11dfcf['model']['document']['on']('change:data',(_0x339d00,_0x42306c)=>{if(_0x42306c['isUndo']||!_0x42306c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x11b855){if(_0x11b855['batch']['isUndo']||!_0x11b855['batch']['isLocal'])return!0x1;let _0xe2ac22=!0x1;const _0x38038d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3423e1=>_0x3423e1['data']&&'listItemId'==_0x3423e1['data']['key'])['filter'](_0x381372=>_0x381372['data']['newValue']&&_0x381372['data']['oldValue']);for(const _0x29252c of _0x38038d)Te(_0x29252c)||(_0x11b855['removeMarker'](_0x29252c['getFirstMarker']()),_0xe2ac22=!0x0);return _0xe2ac22;}['noTrackChangesFixer'](_0x106b43){if(_0x106b43['batch']['isUndo']||!_0x106b43['batch']['isLocal'])return!0x1;const _0x4145bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4145bb['trackChangesCommand']['value'])return!0x1;let _0x6a83a8=!0x1;const _0x5d1317=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x497d3d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x111a1d=>'attribute'==_0x111a1d['type'])['filter'](_0x2fbc60=>_0x5d1317['includes'](_0x2fbc60['attributeKey']));if(0x0==_0x497d3d['length'])return _0x6a83a8;for(const _0x371d89 of _0x497d3d){const _0xf436b9=_0x4145bb['_findSuggestions'](_0x371d89['range'],'attribute')['filter'](_0x4cd352=>!_0x4cd352['meta']['isNextTo'])['map'](_0x3f4f97=>_0x3f4f97['suggestion'])['filter'](_0x4aee34=>{const _0x50bb2a=_0x4145bb['_getAttributeKey'](_0x4aee34);return _0x5d1317['includes'](_0x50bb2a);});if(_0xf436b9['length']){for(const _0x252bb0 of _0xf436b9)_0x106b43['removeMarker'](_0x252bb0['getFirstMarker']());_0x6a83a8=!0x0;}}return _0x6a83a8;}['assureChains'](){const _0x2135fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15ed47=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4de280;const _0x1ff6cf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x22498f=>{if(_0x22498f['data']['oldRange']||!_0x22498f['data']['newRange'])return null;if(!_0x22498f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24a63a}=_0x2135fb['_splitMarkerName'](_0x22498f['name']);if(!_0x2135fb['hasSuggestion'](_0x24a63a))return null;const _0x26b2d7=_0x2135fb['getSuggestion'](_0x24a63a);return _0x15ed47['includes'](_0x26b2d7['data']['key']);})['map'](_0x5a7ea1=>{const {id:_0x33504a}=_0x2135fb['_splitMarkerName'](_0x5a7ea1['name']),_0x5f5987=_0x2135fb['getSuggestion'](_0x33504a);return _0x4de280=_0x5f5987['attributes']['groupId'],_0x5f5987['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1ff6cf['size'])return;const _0x459f48=_0x2135fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5186f8=>'attribute'==_0x5186f8['type']&&_0x5186f8['data']&&_0x15ed47['includes'](_0x5186f8['data']['key'])&&_0x5186f8['attributes']['groupId']!=_0x4de280)['map'](_0xcfb9a2=>({'listItem':_0xcfb9a2['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcfb9a2['attributes']['groupId']})),_0x500f16=new Set();for(const {groupId:_0x40f9f8,listItem:_0x3af73f}of _0x459f48)_0x1ff6cf['has'](_0x3af73f)&&_0x500f16['add'](_0x40f9f8);for(const _0x1eafc3 of _0x2135fb['getSuggestions']())_0x500f16['has'](_0x1eafc3['attributes']['groupId'])&&_0x1eafc3['setAttribute']('groupId',_0x4de280);}['_supportLegacySuggestions'](){const _0x4a2af3=this['editor'],_0x1e8cf0=_0x4a2af3['locale'],_0x14683c=_0x4a2af3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14683c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x47334f,_0x4adef7){const _0x9a2a44=[];for(let _0x2af7fc of _0x47334f)_0x2af7fc['start']['nodeAfter']===_0x2af7fc['end']['parent']&&(_0x2af7fc=_0x4a2af3['model']['createRange'](_0x4a2af3['model']['createPositionAt'](_0x2af7fc['start']['nodeAfter'],0x0))),_0x9a2a44['push'](_0x2af7fc);_0x4a2af3['model']['change'](_0x2a01e3=>{const _0xb87117=_0x4a2af3['model']['document']['selection'],_0x23807d=Array['from'](_0xb87117['getRanges']())['map'](_0x32b8ef=>_0x53edc8['fromRange'](_0x32b8ef));_0x2a01e3['setSelection'](_0x9a2a44),_0x4a2af3['commands']['get'](_0x4adef7['commandName'])['refresh'](),_0x4adef7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a2af3['execute'](_0x4adef7['commandName'],..._0x4adef7['commandParams']),_0x2a01e3['setSelection'](_0x23807d);for(const _0x3cf0f2 of _0x23807d)_0x3cf0f2['detach']();});}),_0x14683c['descriptionFactory']['registerElementLabel'](function(_0x2b1844){const _0x480c60=!_0x4a2af3['model']['schema']['isObject'](_0x2b1844),_0x562bf1=_0x2b1844['previousSibling'],_0x417c88=_0x2b1844['nextSibling'],_0x1aaa5d=_0x2b1844['getAttribute']('listItemId'),_0x5e8106=!_0x562bf1||_0x562bf1['getAttribute']('listItemId')!==_0x1aaa5d,_0x2433f6=!_0x417c88||_0x417c88['getAttribute']('listItemId')!==_0x1aaa5d;return _0x480c60&&Boolean(_0x1aaa5d)&&_0x5e8106&&_0x2433f6;},_0x388886=>c(_0x1e8cf0,'ELEMENT_LIST_ITEM',_0x388886));}['_registerLegacyDescription'](){const _0x178e42=this['editor'],_0x44ee8b=_0x178e42['locale'];function _0x155797(_0x503693){const _0x207f0a=_0x178e42['commands']['get']('bulletedList')['value'],_0x1755f5=_0x178e42['commands']['get']('numberedList')['value'];return'numberedList'===_0x503693?_0x207f0a:_0x1755f5;}_0x178e42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x22d43f){if('formatBlock'!=_0x22d43f['type'])return;const {data:_0x5d320a}=_0x22d43f;if(!_0x5d320a)return;let _0x1ee24b,_0x7a9005,_0x1d091f,_0x1cd5ad;switch(_0x5d320a['commandName']){case'bulletedList':_0x1d091f=_0x5d320a['commandParams'][0x0]['forceValue'],_0x1cd5ad=_0x155797(_0x5d320a['commandName']),_0x1ee24b=_0x1d091f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cd5ad&&_0x178e42['config']['get']('list.multiBlock')||(_0x1ee24b='*Change\x20to:*\x20%0'),_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d091f=_0x5d320a['commandParams'][0x0]['forceValue'],_0x1cd5ad=_0x155797(_0x5d320a['commandName']),_0x1ee24b=_0x1d091f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cd5ad&&_0x178e42['config']['get']('list.multiBlock')||(_0x1ee24b='*Change\x20to:*\x20%0'),_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ee24b='*Indent:*\x20%0',_0x7a9005={'type':'format','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ee24b=function(_0x5cb85b){const _0x95c63e=_0x5cb85b['getFirstRange']();let _0x2c13cf=_0x95c63e['start']['nodeAfter'];for(;_0x2c13cf&&_0x95c63e['containsItem'](_0x2c13cf);){if(_0x2c13cf['getAttribute']('listIndent')>0x0)return!0x1;_0x2c13cf=_0x2c13cf['nextSibling'];}return!0x0;}(_0x22d43f)?c(_0x44ee8b,'*Format:*\x20remove\x20from\x20%0',c(_0x44ee8b,function(_0x173579){return'ELEMENT_'+_0x173579['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x22d43f))):c(_0x44ee8b,'*Outdent:*\x20%0',c(_0x44ee8b,'ELEMENT_LIST_ITEM')),_0x7a9005={'type':'format','content':_0x1ee24b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d320a['multipleBlocks']&&(_0x1ee24b='*Merge:*\x20%0',_0x7a9005={'type':'deletion','content':c(_0x44ee8b,_0x1ee24b,c(_0x44ee8b,'ELEMENT_LIST_ITEM'))});}return _0x7a9005;});}}function Te(_0x3031af){let _0x1a0ae5=_0x3031af['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a0ae5;){const _0x5d6750=_0x1a0ae5['getAttribute']('listItemId');if(!_0x5d6750)return!0x1;if(_0x5d6750==_0x3031af['data']['newValue'])return'newValue';if(_0x5d6750==_0x3031af['data']['oldValue'])return'oldValue';_0x1a0ae5=_0x1a0ae5['previousSibling'];}return!0x1;}class Se extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5df778=this['editor']['config']['get']('list.properties'),_0x4f2e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5df778['styles']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listStyle'),_0x4f2e1e['registerBlockAttribute']('listStyle')),_0x5df778['reversed']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listReversed'),_0x4f2e1e['registerBlockAttribute']('listReversed')),_0x5df778['startIndex']&&(_0x4f2e1e['enableDefaultAttributesIntegration']('listStart'),_0x4f2e1e['registerBlockAttribute']('listStart'));const _0x109754={'type':'format','content':''};_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x83b7d=this['editor']['locale'];_0x4f2e1e['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x83b7d,'FORMAT_LIST_REVERSED')),_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](_0x25cecd=>{const {data:_0x3d5bf5}=_0x25cecd;if(_0x3d5bf5&&'listReversed'==_0x3d5bf5['key'])return null==_0x3d5bf5['newValue']||0x0==_0x3d5bf5['newValue']&&null==_0x3d5bf5['oldValue']?_0x109754:void 0x0;}),_0x4f2e1e['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x83b7d,'FORMAT_LIST_START')),_0x4f2e1e['descriptionFactory']['registerDescriptionCallback'](_0x2fff9f=>{const {data:_0x48c735}=_0x2fff9f;if(_0x48c735&&'listStart'==_0x48c735['key'])return null==_0x48c735['newValue']||0x1==_0x48c735['newValue']&&null==_0x48c735['oldValue']?_0x109754:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2fe280=>{if(_0x2fe280['batch']['isUndo'])return!0x1;let _0x553b11=!0x1;const _0x2bb257=_0x4f2e1e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x504216=>{const _0xd45990=_0x4f2e1e['_getAttributeKey'](_0x504216);return'listStart'==_0xd45990||'listReversed'==_0xd45990;});for(const _0x428ee7 of _0x2bb257){const _0x4ac297=_0x428ee7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4ac297||'customNumbered'==_0x4ac297)continue;_0x4f2e1e['_findSuggestions'](_0x428ee7['getFirstRange'](),'attribute')['find'](_0x3f5ad9=>'listType'==_0x4f2e1e['_getAttributeKey'](_0x3f5ad9['suggestion']))||(_0x2fe280['removeMarker'](_0x428ee7['getFirstMarker']()),_0x553b11=!0x0);}return _0x553b11;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51edb1){const _0x32d667=this['editor']['locale'],{data:_0x5a6b44}=_0x51edb1,_0x5adb91={'type':'format','content':''};if(!_0x5a6b44||'listStyle'!=_0x5a6b44['key'])return;if(!_0x5a6b44['oldValue'])return'default'==_0x5a6b44['newValue']?_0x5adb91:{'type':'format','content':''+c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['newValue'])))};if(!_0x5a6b44['newValue']){if('default'==_0x5a6b44['oldValue'])return _0x5adb91;let _0x4b5688=_0x51edb1['head'];for(;_0x4b5688;){if(_0x4b5688['data']&&'listType'==_0x4b5688['data']['key']&&_0x4b5688['data']['newValue'])return _0x5adb91;_0x4b5688=_0x4b5688['next'];}return{'type':'format','content':''+c(_0x32d667,'*Remove\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['oldValue'])))};}if('default'!=_0x5a6b44['newValue'])return{'type':'format','content':''+c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,this['_getTranslationKeyForListStyle'](_0x5a6b44['newValue'])))};let _0x1b734e=_0x51edb1['head'];for(;_0x1b734e;){if(_0x1b734e['data']&&'listType'==_0x1b734e['data']['key']&&_0x1b734e['data']['newValue']&&_0x1b734e['data']['oldValue'])return _0x5adb91;_0x1b734e=_0x1b734e['next'];}return{'type':'format','content':c(_0x32d667,'*Set\x20format:*\x20%0',c(_0x32d667,'ELEMENT_'+_0x51edb1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5a59c9=this['editor'],_0x55ddc7=_0x5a59c9['locale'];_0x5a59c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43500c=>{if('formatBlock'!=_0x43500c['type'])return;const {data:_0x567de7}=_0x43500c;if(!_0x567de7)return;let _0x1b54a9,_0x119575;switch(_0x567de7['commandName']){case'listStyle':_0x1b54a9='*Change\x20to:*\x20%0',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9,c(_0x55ddc7,this['_getTranslationKeyForListStyle'](_0x567de7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b54a9=_0x567de7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9)};break;case'listStart':_0x1b54a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x119575={'type':'format','content':c(_0x55ddc7,_0x1b54a9,_0x567de7['commandParams'][0x0]['startIndex'])};}return _0x119575;});}['_getTranslationKeyForListStyle'](_0x330e16){return'ELEMENT_'+function(_0x12ef83){if(_e['includes'](_0x12ef83))return'bulleted';if(Re['includes'](_0x12ef83))return'numbered';return null;}(_0x330e16)['toUpperCase']()+'_LIST_'+_0x330e16['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x11ea7f{['afterInit'](){const _0x570c19=this['editor'];_0x570c19['commands']['get']('emoji')&&_0x570c19['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x11ea7f{static get['requires'](){return[_0x120978];}['init'](){const _0x50883d=this['editor'],_0x12e9ff=_0x50883d['plugins']['get']('TrackChangesEditing'),_0x23ec8d=_0x50883d['commands']['get']('enter');_0x12e9ff['enableCommand']('enter',()=>{_0x50883d['model']['change'](_0x5d8253=>{const _0x2ee180=_0x50883d['model']['document']['selection'],_0x4944dc=_0x2ee180['getFirstPosition'](),_0x4c9a5b=_0x53edc8['fromRange'](_0x2ee180['getFirstRange']());if(_0x23ec8d['enterBlock'](_0x5d8253)){const _0x5597b3=_0x50883d['model']['createPositionAt'](_0x4944dc['parent']['nextSibling'],0x0),_0x53bc8e=_0x5d8253['createRange'](_0x4944dc,_0x5597b3);_0x12e9ff['markInsertion'](_0x53bc8e);}else _0x5d8253['setSelection'](_0x5d8253['createRange'](_0x4c9a5b['end']));_0x4c9a5b['detach'](),_0x23ec8d['fire']('afterExecute',{'writer':_0x5d8253});});}),_0x50883d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x50883d,'split'),{'priority':'high'}),_0x50883d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x26d287,_0x2855fd,_0x2593a6)=>{const _0x34979a=_0x2593a6['mapper']['markerNameToElements'](_0x2855fd['markerName']);if(_0x34979a){for(const _0x59f85c of _0x34979a)_0x59f85c['hasClass']('ck-suggestion-marker-split')&&(_0x2593a6['mapper']['unbindElementFromMarkerName'](_0x59f85c,_0x2855fd['markerName']),_0x2593a6['writer']['remove'](_0x59f85c));}},{'priority':'high'}),_0x50883d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36b371,_0x445e22,_0x5ba6b2)=>{_0x5ba6b2['options']['showSuggestionHighlights']&&Fe(_0x50883d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36b371,_0x445e22,_0x5ba6b2);},{'priority':'high'});}}class Z extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x330370=this['editor']['plugins']['get']('TrackChangesEditing');_0x330370['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x330370['enableCommand']('findNext'),_0x330370['enableCommand']('findPrevious'),_0x330370['enableCommand']('replace'),_0x330370['enableCommand']('replaceAll');}['handleFindCommand'](_0x348393,_0x2262c5,_0x1083e6={}){const _0x4fc4bc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x348393(_0x1e7fa3=>{let _0x11efc4=('string'==typeof _0x2262c5?_0x4fc4bc['findByTextCallback'](_0x2262c5,_0x1083e6):_0x2262c5)(_0x1e7fa3);Array['isArray'](_0x11efc4)&&(_0x11efc4={'results':_0x11efc4,'searchText':'string'==typeof _0x2262c5?_0x2262c5:''});const _0x468117=_0x11efc4['results']['filter'](_0x527d0e=>!0x1===this['_isInDeletionRange'](_0x527d0e,_0x1e7fa3['item']));return{..._0x11efc4,'results':_0x468117};},_0x1083e6);}['_isInDeletionRange'](_0x260df6,_0x47022d){const _0x5d0ad0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47022d,_0x260df6['start']),this['editor']['model']['createPositionAt'](_0x47022d,_0x260df6['end']));for(const _0x34a67b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d0ad0['getIntersection'](_0x34a67b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x11ea7f{['afterInit'](){const _0x2871e1=this['editor']['locale'],_0xb7b70=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c8e7d,commandName:_0x31bd07}of ro)this['editor']['plugins']['has'](_0x4c8e7d)&&(_0xb7b70['enableDefaultAttributesIntegration'](_0x31bd07),_0xb7b70['registerInlineAttribute'](_0x31bd07));_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2871e1,'FORMAT_FONT_SIZE')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2871e1,'FORMAT_FONT_FAMILY')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2871e1,'FORMAT_FONT_COLOR')),_0xb7b70['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2871e1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47d088=this['editor'],_0x3380d4=_0x47d088['locale'];_0x47d088['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27666e=>{const _0xa7b87c=_0x3380d4['t'];if('formatInline'!=_0x27666e['type'])return;const {data:_0x2573da}=_0x27666e;if(null!=_0x2573da){if('fontSize'==_0x2573da['commandName']){const _0x3be5c3=_0x2573da['commandParams'][0x0]['value'];if(_0x3be5c3){const _0x479d07=_0xa7b87c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x779e8d=>_0x779e8d['model']==_0x3be5c3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20size:*\x20%0',_0x479d07)};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2573da['commandName']){const _0x5722b7=_0x2573da['commandParams'][0x0]['value'];return _0x5722b7?{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20family:*\x20%0',_0x5722b7)}:{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2573da['commandName']){const _0x57bb62=_0x2573da['commandParams'][0x0]['value'];if(_0x57bb62){const _0x26bbc3=_0x1d84f3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16dc7a=>_0x16dc7a['model']==_0x57bb62);let _0x58a8fe=_0x57bb62,_0x4389e0='';return _0x26bbc3&&(_0x58a8fe=_0x26bbc3['label'],_0x4389e0=_0xa7b87c(_0x58a8fe)['toLowerCase']()),{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20color:*\x20%0',_0x4389e0)['trim'](),'color':{'value':_0x57bb62,'title':_0x4389e0||_0x58a8fe}};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2573da['commandName']){const _0x1e210e=_0x2573da['commandParams'][0x0]['value'];if(_0x1e210e){const _0x5ea47b=_0x1d84f3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x12b8c9=>_0x12b8c9['model']==_0x1e210e);let _0x27c1c1=_0x1e210e,_0x203dfe='';return _0x5ea47b&&(_0x27c1c1=_0x5ea47b['label'],_0x203dfe=_0xa7b87c(_0x27c1c1)['toLowerCase']()),{'type':'format','content':c(_0x3380d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x203dfe)['trim'](),'color':{'value':_0x1e210e,'title':_0x203dfe||_0x27c1c1}};}return{'type':'format','content':c(_0x3380d4,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x11ea7f{['afterInit'](){const _0x1c8bcc=this['editor'],_0x1c45db=_0x1c8bcc['plugins']['get']('TrackChangesEditing'),_0x2ae975=_0x1c8bcc['commands']['get']('copyFormat'),_0x4e72d9=_0x1c8bcc['commands']['get']('pasteFormat');_0x2ae975&&_0x4e72d9&&(_0x1c45db['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c45db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x585e9e=this['editor'],_0x43b621=_0x585e9e['locale'];_0x585e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b0ed2=>{if('formatBlock'!=_0x4b0ed2['type']&&'formatInline'!=_0x4b0ed2['type'])return;const {data:_0x27681c}=_0x4b0ed2;if(_0x27681c&&'pasteFormat'===_0x27681c['commandName']){const _0x464ffb=[],_0x52a8b8=_0x27681c['commandParams'][0x0];for(const [_0x79f919,_0x4b4392]of Object['entries'](_0x52a8b8))_0x464ffb['push'](so(_0x585e9e,_0x79f919,_0x4b4392));return _0x464ffb['length']?{'type':'format','content':c(_0x43b621,'*Set\x20format\x20to:*\x20%0',_0x464ffb['join'](',\x20'))}:{'type':'format','content':c(_0x43b621,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1b7f3c,_0x4c58db,_0x2c83e7){const _0x5794c2=_0x1b7f3c['locale']['t'],_0x3427ea=_0x4c58db['split'](/(?=[A-Z])/)['join']('\x20'),_0x344e24=_0x5794c2(_0x3427ea['charAt'](0x0)['toUpperCase']()+_0x3427ea['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c83e7)return _0x344e24;if('fontColor'===_0x4c58db||'fontBackgroundColor'===_0x4c58db){const _0x1e79aa=_0x1d84f3(_0x1b7f3c['config']['get']('fontColor.colors'))['find'](_0x255e63=>_0x255e63['model']==_0x2c83e7);return _0x344e24+'\x20('+(_0x1e79aa?_0x5794c2(_0x1e79aa['label'])['toLowerCase']():_0x2c83e7)+')';}if('fontSize'===_0x4c58db&&isNaN(parseFloat(_0x2c83e7))){const _0x15cae0=_0x1b7f3c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b7f3c['config']['get']('fontSize.options'))['find'](_0x5a58a8=>_0x5a58a8['model']==_0x2c83e7);return _0x344e24+'\x20('+(_0x15cae0?_0x5794c2(_0x15cae0['title'])['toLowerCase']():_0x2c83e7)+')';}return _0x344e24+'\x20('+_0x2c83e7+')';}class et extends _0x11ea7f{['_headingOptions'];['afterInit'](){const _0x4f6885=this['editor'];if(!_0x4f6885['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f6885['config']['get']('heading.options');const _0x5da9ca=_0x4f6885['locale'],_0x38f783=_0x4f6885['plugins']['get']('TrackChangesEditing');_0x38f783['enableDefaultAttributesIntegration']('heading');for(const _0x30c113 of this['_headingOptions'])'paragraph'!=_0x30c113['model']&&_0x38f783['descriptionFactory']['registerElementLabel'](_0x30c113['model'],_0xfee632=>{const _0x137e9d=this['_getHeadingLevel'](_0x30c113['model']);return null!==_0x137e9d?_0x515ff1(_0xfee632,_0x137e9d):_0x3c70d4(_0xfee632,_0x30c113['title']);});function _0x515ff1(_0x378790,_0x47a0d7){return c(_0x5da9ca,'ELEMENT_HEADING',[_0x378790,_0x47a0d7]);}function _0x3c70d4(_0x4c9a1f,_0x480e51){return c(_0x5da9ca,'ELEMENT_HEADING_CUSTOM',[_0x4c9a1f,_0x480e51]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x196325=this['editor'],_0x4d0043=_0x196325['locale'];function _0xb7623c(_0x307538,_0x5be59e){return c(_0x4d0043,'ELEMENT_HEADING_CUSTOM',[_0x307538,_0x5be59e]);}_0x196325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5083c7=>{if('formatBlock'!=_0x5083c7['type'])return;const {data:_0x28a7c7}=_0x5083c7;if(_0x28a7c7&&'heading'==_0x28a7c7['commandName']){const _0x2d93ec=_0x28a7c7['commandParams'][0x0]['value'],_0x5ee88d=this['_getHeadingLevel'](_0x2d93ec);if(null!==_0x5ee88d)return{'type':'format','content':c(_0x4d0043,'*Change\x20to:*\x20%0',(_0x295719=0x1,_0xcd9989=_0x5ee88d,c(_0x4d0043,'ELEMENT_HEADING',[_0x295719,_0xcd9989])))};const _0x180fd9=this['_headingOptions']['find'](_0x3fe2b3=>_0x3fe2b3['model']===_0x2d93ec)['title'];return{'type':'format','content':c(_0x4d0043,'*Change\x20to:*\x20%0',_0xb7623c(0x1,_0x180fd9))};}var _0x295719,_0xcd9989;});}['_getHeadingLevel'](_0xbb551a){const _0x4c724a=_0xbb551a['match'](/^heading(\d+)/);if(_0x4c724a)return _0x4c724a[0x1];const _0xe30f5a=this['_headingOptions']?.['find'](_0x16b0c7=>_0x16b0c7['model']==_0xbb551a);if(_0xe30f5a&&_0xe30f5a['view']){const _0x25889f=_0xe30f5a['view'],_0x2c2f50=(_0x25889f['name']??_0x25889f)['match'](/^h(\d+)/);if(_0x2c2f50)return _0x2c2f50[0x1];}return null;}}class nt extends _0x11ea7f{['afterInit'](){const _0x3b2ee6=this['editor'];if(!_0x3b2ee6['plugins']['has']('HighlightEditing'))return;const _0x30b574=_0x3b2ee6['plugins']['get']('TrackChangesEditing'),_0x1987ec=_0x3b2ee6['locale'];_0x30b574['enableDefaultAttributesIntegration']('highlight'),_0x30b574['registerInlineAttribute']('highlight'),_0x30b574['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1987ec,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38355f=this['editor'],_0x5023d5=_0x38355f['locale'];_0x38355f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d7ac3=>{if('formatInline'!=_0x9d7ac3['type'])return;const {data:_0x57e50a}=_0x9d7ac3;if(_0x57e50a&&'highlight'==_0x57e50a['commandName']){const _0x43b327=_0x5023d5['t'],_0x5736a4=_0x57e50a['commandParams'][0x0]['value'];if(_0x5736a4){const _0xcc65ad=_0x38355f['config']['get']('highlight.options')['find'](_0x222eed=>_0x222eed['model']==_0x5736a4),_0x11e045=_0x43b327(_0xcc65ad['title'])['toLowerCase']();return{'type':'format','content':c(_0x5023d5,'*Set\x20highlight:*\x20%0',_0x11e045),'color':{'value':_0xcc65ad['color'],'title':_0xcc65ad['title']}};}return{'type':'format','content':c(_0x5023d5,'*Remove\x20highlight*',c(_0x5023d5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x11ea7f{['afterInit'](){const _0x424905=this['editor'];if(!_0x424905['plugins']['has']('HorizontalLineEditing'))return;_0x424905['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a16b5=_0x424905['plugins']['get']('TrackChangesEditing'),_0x16e0b2=_0x424905['locale'];_0x3a16b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1e4604=>c(_0x16e0b2,'ELEMENT_HORIZONTAL_LINE',_0x1e4604)),_0x424905['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x269679,{writer:_0x3a6530,options:_0x411c55})=>{if(!_0x411c55['showSuggestionHighlights'])return null;const _0x588fd1=_0x3a6530['createContainerElement']('div'),_0x1abeac=_0x3a6530['createEmptyElement']('hr');return _0x3a6530['addClass']('ck-horizontal-line',_0x588fd1),_0x3a6530['insert'](_0x3a6530['createPositionAt'](_0x588fd1,0x0),_0x1abeac),_0x588fd1;},'converterPriority':'high'});}}class ot extends _0x11ea7f{['afterInit'](){const _0x3dba2a=this['editor'];if(!_0x3dba2a['plugins']['has']('HtmlEmbed'))return;const _0x4fe8c1=_0x3dba2a['plugins']['get']('TrackChangesEditing'),_0x560b5e=_0x3dba2a['locale'];_0x4fe8c1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1a7bc2=>c(_0x560b5e,'ELEMENT_HTML_EMBED',_0x1a7bc2)),_0x4fe8c1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4fe8c1['registerBlockAttribute']('value'),_0x4fe8c1['descriptionFactory']['registerDescriptionCallback'](_0x154911=>{if('attribute'!=_0x154911['type'])return;const {data:_0x2c3b1b}=_0x154911;if(_0x2c3b1b&&'value'==_0x2c3b1b['key']&&_0x154911['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2fb513=c(_0x560b5e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x560b5e,'*Change\x20%0\x20content*',_0x2fb513)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41a79b=this['editor'],_0x2f72d6=_0x41a79b['locale'];_0x41a79b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dcf6=>{if('formatBlock'!=_0x40dcf6['type'])return;const {data:_0x1e03eb}=_0x40dcf6;if(_0x1e03eb&&'htmlEmbed'==_0x1e03eb['commandName']){const _0x2e3f80=c(_0x2f72d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2f72d6,'*Change\x20%0\x20content*',_0x2e3f80)};}});}}class rt extends _0x11ea7f{['afterInit'](){const _0xf55a5=this['editor'];if(!_0xf55a5['plugins']['has']('ImageEditing'))return;const _0x2f2ce3=_0xf55a5['plugins']['get']('TrackChangesEditing'),_0x33b3ba=_0xf55a5['plugins']['get']('ImageUtils'),_0xb87c04=_0xf55a5['locale'];_0x2f2ce3['enableCommand']('insertImage'),_0x2f2ce3['descriptionFactory']['registerElementLabel']('imageBlock',_0x28d65f=>c(_0xb87c04,'ELEMENT_IMAGE',_0x28d65f)),_0x2f2ce3['descriptionFactory']['registerElementLabel']('imageInline',_0x580250=>c(_0xb87c04,'ELEMENT_INLINE_IMAGE',_0x580250)),_0x2f2ce3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xb87c04,'ELEMENT_CAPTION')),_0xf55a5['plugins']['has']('ImageUploadEditing')&&_0x2f2ce3['enableCommand']('uploadImage'),_0xf55a5['plugins']['has']('ImageBlockEditing')&&_0xf55a5['plugins']['has']('ImageInlineEditing')&&(_0x2f2ce3['enableCommand']('imageTypeInline',(_0x217178,_0x183bd8)=>{const _0x5a7ea0=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']);_0xf55a5['model']['change'](()=>{_0x2f2ce3['markBlockFormat'](_0x5a7ea0,{'commandName':'imageTypeInline','commandParams':[_0x183bd8]},[],'convertBlockImageToInline');});}),_0x2f2ce3['enableCommand']('imageTypeBlock',(_0x1d8224,_0x5b5b44)=>{_0xf55a5['model']['change'](_0xfee0a9=>{let _0x29ec6d=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x3a6dfc=_0xfee0a9['createRangeOn'](_0x29ec6d);const _0x43bb4f=_0x130d1d['fromPosition'](_0x3a6dfc['start'],'toPrevious'),_0x28fba6=_0x130d1d['fromPosition'](_0x3a6dfc['end'],'toNext');_0x2f2ce3['forceDefaultExecution'](()=>_0x1d8224(_0x5b5b44)),_0x29ec6d=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x3a6dfc=_0xfee0a9['createRangeOn'](_0x29ec6d);const _0x5cdb66=_0xfee0a9['createRange'](_0x43bb4f,_0x28fba6);_0x43bb4f['detach'](),_0x28fba6['detach'](),_0x2f2ce3['markBlockFormat'](_0x29ec6d,{'commandName':'imageTypeInline','commandParams':[_0x5b5b44]},[],'convertInlineImageToBlock'),_0x5cdb66['start']['isBefore'](_0x3a6dfc['start'])&&_0x2f2ce3['markInsertion'](_0xfee0a9['createRange'](_0x5cdb66['start'],_0x3a6dfc['start']),'convertInlineImageToBlock'),_0x3a6dfc['end']['isBefore'](_0x5cdb66['end'])&&_0x2f2ce3['markInsertion'](_0xfee0a9['createRange'](_0x3a6dfc['end'],_0x5cdb66['end']),'convertInlineImageToBlock');});}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2f2ce3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x488ebd])=>{const _0x816d9a=_0x2f2ce3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33b4b5=_0x488ebd['start'],_0x252880=_0x488ebd['end'];const _0x1f9c3b=_0xf55a5['model']['schema']['getNearestSelectionRange'](_0x33b4b5,'backward'),_0x4ca5cd=_0xf55a5['model']['schema']['getNearestSelectionRange'](_0x252880,'forward');_0x1f9c3b['isCollapsed']&&(_0x33b4b5=_0x1f9c3b['start']),_0x4ca5cd['isCollapsed']&&(_0x252880=_0x4ca5cd['end']),_0x816d9a([_0xf55a5['model']['createRange'](_0x33b4b5,_0x252880)]);}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x28513f),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x28513f)),_0xf55a5['plugins']['has']('ImageCaptionEditing')&&(_0x2f2ce3['enableCommand']('toggleImageCaption',(_0x4bfb98,_0x4ecdc0)=>{const _0x191390=_0xf55a5['plugins']['get']('ImageCaptionUtils');let _0x3331fd=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x5c4487=_0x191390['getCaptionFromImageModelElement'](_0x3331fd);_0xf55a5['model']['change'](()=>{if(_0x5c4487)return void _0x2f2ce3['markDeletion'](_0xf55a5['model']['createRangeOn'](_0x5c4487));const _0xd12349=_0x33b3ba['isBlockImage'](_0x3331fd);_0x4bfb98(_0x4ecdc0),_0x3331fd=_0x33b3ba['getClosestSelectedImageElement'](_0xf55a5['model']['document']['selection']),_0x5c4487=_0x191390['getCaptionFromImageModelElement'](_0x3331fd),_0x2f2ce3['markInsertion'](_0xf55a5['model']['createRangeOn'](_0x5c4487),_0xd12349?null:'imageCaption');});}),_0x2f2ce3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x28513f));const _0x1c5d7e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x172002(_0x5af7ea,_0x1a1d7d){const _0x53f64e=_0x1c5d7e['findIndex'](({type:_0x458333,subType:_0x3c6d54})=>_0x5af7ea['type']==_0x458333&&_0x5af7ea['subType']==_0x3c6d54),_0x5d7c6f=_0x1c5d7e['findIndex'](({type:_0x2a6409,subType:_0x266bc3})=>_0x1a1d7d['type']==_0x2a6409&&_0x1a1d7d['subType']==_0x266bc3);if(_0x53f64e<0x0||_0x5d7c6f<0x0)return!0x1;const _0x4d246e=_0x5af7ea['getFirstRange'](),_0x550b8d=_0x1a1d7d['getFirstRange']();if((0x0==_0x53f64e||0x1==_0x53f64e)&&0x2==_0x5d7c6f&&_0x4d246e['isIntersecting'](_0x550b8d))return!0x0;if(0x2==_0x53f64e&&0x3==_0x5d7c6f){const _0x2f3e3f=_0x2f2ce3['_findSuggestions'](_0x4d246e,'insertion')['filter'](({suggestion:_0x350980,meta:_0x59d5cd})=>_0x59d5cd['isOwn']&&'convertInlineImageToBlock'==_0x350980['subType']);if(_0x2f3e3f['length']>0x1&&_0x550b8d['end']['isEqual'](_0x4d246e['start']))return!0x0;if(0x1==_0x2f3e3f['length']&&(_0x4d246e['start']['isEqual'](_0x550b8d['end'])||_0x4d246e['end']['isEqual'](_0x550b8d['start'])))return!0x0;}if(0x3==_0x53f64e&&0x3==_0x5d7c6f&&_0x4d246e['start']['isBefore'](_0x550b8d['start'])){const _0x528ce0=_0x4d246e['end']['nodeAfter'],_0x26cecb=_0x550b8d['start']['nodeBefore'];return _0x33b3ba['isBlockImage'](_0x528ce0)&&_0x528ce0===_0x26cecb;}return!0x1;}function _0x28513f(_0x3c833f,_0x46295f){return _0x172002(_0x3c833f,_0x46295f)?[_0x3c833f,_0x46295f]:_0x172002(_0x46295f,_0x3c833f)?[_0x46295f,_0x3c833f]:null;}_0xf55a5['plugins']['has']('ImageResize')&&(_0x2f2ce3['enableDefaultAttributesIntegration']('resizeImage'),_0x2f2ce3['registerBlockAttribute']('resizedWidth'),_0x2f2ce3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xb87c04,'FORMAT_IMAGE_SIZE'))),_0xf55a5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2f2ce3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f2ce3['registerBlockAttribute']('alt')),_0xf55a5['plugins']['has']('PictureEditing')&&(_0x2f2ce3['registerBlockAttribute']('sources'),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0xf4ce9c=>{if('attribute'!=_0xf4ce9c['type'])return;const {data:_0x1e64ac}=_0xf4ce9c;return _0x1e64ac&&'sources'==_0x1e64ac['key']?{'type':'format','content':''}:void 0x0;})),_0xf55a5['plugins']['has']('ImageSizeAttributes')&&(_0x2f2ce3['registerBlockAttribute']('width'),_0x2f2ce3['registerBlockAttribute']('height'),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x85b3e5=>{if('attribute'!=_0x85b3e5['type'])return;const {data:_0x2fd73c}=_0x85b3e5;return!_0x2fd73c||'width'!=_0x2fd73c['key']&&'height'!=_0x2fd73c['key']?void 0x0:{'type':'format','content':''};})),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0xa6be69=>{if(!!_0x1c5d7e['find'](({type:_0x92d26a,subType:_0x55cec2})=>_0xa6be69['type']==_0x92d26a&&_0xa6be69['subType']==_0x55cec2))return _0xa6be69['previous']?{}:void 0x0;}),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x317e6e=>{if('insertion'==_0x317e6e['type']||'deletion'==_0x317e6e['type']){const _0x56962a=_0x317e6e['getContainedElement']();if(_0x56962a&&_0x56962a['is']('element','caption'))return{'type':'insertion'==_0x317e6e['type']?'addObject':'removeObject','element':_0x56962a,'quantity':0x1};}}),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x45b318=>'formatBlock'==_0x45b318['type']&&'convertInlineImageToBlock'==_0x45b318['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x45b318['type']&&'convertBlockImageToInline'==_0x45b318['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2f2ce3['descriptionFactory']['registerDescriptionCallback'](_0x440b7e=>{if('attribute'!=_0x440b7e['type'])return;const {data:_0x4906b0}=_0x440b7e;if(!_0x4906b0||'alt'!=_0x4906b0['key'])return;const _0xc6e537=_0x4906b0['newValue'];return _0xc6e537?{'type':'format','content':c(_0xb87c04,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc6e537+'\x22')}:{'type':'format','content':c(_0xb87c04,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cc7b=this['editor'],_0x443644=_0x19cc7b['locale'];_0x19cc7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9503=>{if('formatBlock'!=_0x1c9503['type']&&'formatInline'!=_0x1c9503['type'])return;const {data:_0x393479}=_0x1c9503;if(_0x393479){if('imageTextAlternative'==_0x393479['commandName']){const _0xb1a486=_0x393479['commandParams'][0x0]['newValue'];return _0xb1a486?{'type':'format','content':c(_0x443644,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb1a486+'\x22')}:{'type':'format','content':c(_0x443644,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x393479['commandName']){const _0x3ef1ad=_0x393479['commandParams'][0x0]['width'];return _0x3ef1ad?{'type':'format','content':c(_0x443644,'*Set\x20image\x20width:*\x20%0',_0x3ef1ad)}:{'type':'format','content':c(_0x443644,'*Reset\x20image\x20width*')};}}});}}class at extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4ba206=this['editor']['locale'],_0x3ca18f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ca18f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3ca18f['registerBlockAttribute']('src'),_0x3ca18f['descriptionFactory']['registerDescriptionCallback'](_0x2bd729=>{if('attribute'!=_0x2bd729['type'])return;const {data:_0x46151a}=_0x2bd729;return _0x46151a&&'src'==_0x46151a['key']?_0x46151a['newValue']&&_0x46151a['oldValue']?{'type':'format','content':c(_0x4ba206,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x372a22=this['editor']['plugins']['get']('TrackChangesEditing');_0x372a22['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x372a22['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372a22['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x372a22['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5d71=this['editor'],_0x68229d=_0x5d5d71['locale'];_0x5d5d71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ef0f4=>{if('formatBlock'!=_0x2ef0f4['type']&&'formatInline'!=_0x2ef0f4['type'])return;const {data:_0x23edbd}=_0x2ef0f4;if(!_0x23edbd||'replaceImageSource'!=_0x23edbd['commandName'])return;return{'type':'format','content':c(_0x68229d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x11ea7f{['afterInit'](){const _0x2a5ee9=this['editor'];if(!_0x2a5ee9['plugins']['has']('ImageStyleEditing'))return;const _0x108efe=_0x2a5ee9['plugins']['get']('TrackChangesEditing'),_0x36517e=_0x2a5ee9['plugins']['get']('ImageUtils'),_0x6e18a7={};_0x108efe['enableCommand']('imageStyle',(_0x38180a,_0x3de9ee)=>{const _0x26e905=_0x2a5ee9['plugins']['get']('Users')['me'],_0x2ed83c=_0x2a5ee9['commands']['get']('imageStyle');let _0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),_0x1c1aeb=_0x2a5ee9['model']['createRangeOn'](_0x378386),_0x202ec8=_0x2ed83c['value'];if(_0x202ec8==_0x3de9ee['value'])return;const _0x80bb8e={'commandName':'imageStyle','commandParams':[_0x3de9ee],'formatGroupId':_0x12ee37()};_0x2a5ee9['model']['change'](()=>{if(_0x108efe['getSuggestions']()['filter'](_0x3b4539=>_0x3b4539['isInContent']&&_0x26e905==_0x3b4539['author']&&('formatBlock'==_0x3b4539['type']||'formatInline'==_0x3b4539['type'])&&('imageStylePreApply'==_0x3b4539['subType']||'imageStylePostApply'==_0x3b4539['subType'])&&_0x3b4539['getFirstRange']()['isEqual'](_0x1c1aeb))['forEach'](_0x320249=>_0x108efe['discardSuggestion'](_0x320249['head'])),_0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),_0x1c1aeb=_0x2a5ee9['model']['createRangeOn'](_0x378386),_0x2ed83c['refresh'](),_0x2a5ee9['commands']['get']('imageTypeInline')['refresh'](),_0x2a5ee9['commands']['get']('imageTypeBlock')['refresh'](),_0x202ec8=_0x2ed83c['value'],_0x202ec8!=_0x3de9ee['value'])return _0x36517e['isInlineImage'](_0x378386)&&_0x2ed83c['shouldConvertImageType'](_0x3de9ee['value'],_0x378386)?(_0x38180a({..._0x3de9ee,'setImageSizes':!0x1}),_0x378386=_0x36517e['getClosestSelectedImageElement'](_0x2a5ee9['model']['document']['selection']),void _0x108efe['markBlockFormat'](_0x378386,{..._0x80bb8e,'commandReversedParams':[{'value':_0x202ec8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x36517e['isBlockImage'](_0x378386)?_0x108efe['markBlockFormat'](_0x378386,_0x80bb8e,[],'imageStylePostApply'):_0x108efe['markInlineFormat'](_0x1c1aeb,_0x80bb8e,'imageStylePostApply'));});});for(const _0x43ca73 of _0x2a5ee9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x6e18a7[_0x43ca73['name']]=_0x43ca73['title']['toLowerCase']();_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x405ca6])=>{_0x36517e['setImageNaturalSizeAttributes'](_0x405ca6['getContainedElement']());}),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16eb6d,_0x2e8e62)=>{_0x108efe['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16eb6d,{'commandName':_0x2e8e62['commandName'],'commandParams':_0x2e8e62['commandReversedParams']});}),_0x108efe['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5b9273,_0x4f3583){if(_0x3ea8b8(_0x5b9273,_0x4f3583))return[_0x5b9273,_0x4f3583];if(_0x3ea8b8(_0x4f3583,_0x5b9273))return[_0x4f3583,_0x5b9273];return null;});const _0x26e558=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ea8b8(_0x1a7d1a,_0x44c515){const _0x2013f4=_0x26e558['findIndex'](({type:_0x5a2a38,subType:_0x266c61})=>_0x1a7d1a['type']==_0x5a2a38&&_0x1a7d1a['subType']==_0x266c61),_0x517f43=_0x26e558['findIndex'](({type:_0x3bedf1,subType:_0x3747cf})=>_0x44c515['type']==_0x3bedf1&&_0x44c515['subType']==_0x3747cf);if(_0x2013f4<0x0||_0x517f43<0x0)return!0x1;const _0x41581c=_0x1a7d1a['getFirstRange'](),_0x397e35=_0x44c515['getFirstRange']();if((0x0==_0x2013f4||0x1==_0x2013f4)&&0x2==_0x517f43&&_0x41581c['isIntersecting'](_0x397e35))return!0x0;if(0x2==_0x2013f4&&0x3==_0x517f43){const _0x2b2d3e=_0x108efe['_findSuggestions'](_0x41581c,'insertion')['filter'](({suggestion:_0x380cbc,meta:_0x16fe58})=>_0x16fe58['isOwn']&&'convertInlineImageToBlock'==_0x380cbc['subType']);if(_0x2b2d3e['length']>0x1&&_0x397e35['end']['isEqual'](_0x41581c['start']))return!0x0;if(0x1==_0x2b2d3e['length']&&(_0x41581c['start']['isEqual'](_0x397e35['end'])||_0x41581c['end']['isEqual'](_0x397e35['start'])))return!0x0;}if(0x3==_0x2013f4&&0x3==_0x517f43&&_0x41581c['start']['isBefore'](_0x397e35['start'])){const _0x19e380=_0x41581c['end']['nodeAfter'],_0x3fcafd=_0x397e35['start']['nodeBefore'];return _0x36517e['isBlockImage'](_0x19e380)&&_0x19e380===_0x3fcafd;}return!0x1;}_0x2a5ee9['model']['document']['registerPostFixer'](()=>{let _0x52963f=!0x1;const _0x396ca3=Array['from'](_0x2a5ee9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f827f,data:_0x28abf8}of _0x396ca3){const {group:_0x4a70b9,type:_0x51c4b0,subType:_0x285f91,id:_0x2c6efb}=_0x108efe['_splitMarkerName'](_0x2f827f);if('suggestion'==_0x4a70b9&&_0x108efe['hasSuggestion'](_0x2c6efb)){if('formatBlock'==_0x51c4b0&&('imageStylePreApply'==_0x285f91||'imageStylePostApply'==_0x285f91)){const _0x312dd3=_0x108efe['getSuggestion'](_0x2c6efb);if(_0x28abf8['newRange']){const _0x296709=_0x312dd3['getFirstRange']()['getContainedElement']();if(_0x36517e['isBlockImage'](_0x296709))continue;_0x108efe['discardSuggestion'](_0x312dd3),_0x52963f=!0x0;}}if('insertion'==_0x51c4b0&&'imageCaption'==_0x285f91&&!_0x28abf8['newRange']){const _0x475991=_0x108efe['getSuggestion'](_0x2c6efb);_0x475991['next']&&_0x475991['next']['isInContent']&&(_0x108efe['discardSuggestion'](_0x475991['next']),_0x52963f=!0x0);}}}return _0x52963f;}),this['_registerLegacyDescription'](_0x6e18a7);}['_registerLegacyDescription'](_0x3c2160){const _0x3fba56=this['editor'],_0x4b4b5c=_0x3fba56['locale'];_0x3fba56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e5ce2=>{if('formatBlock'!=_0x3e5ce2['type']&&'formatInline'!=_0x3e5ce2['type'])return;const {data:_0x1a1f15}=_0x3e5ce2;if(!_0x1a1f15||'imageStyle'!=_0x1a1f15['commandName'])return;const _0x2607be=_0x1a1f15['commandParams'][0x0]['value'];return _0x5dc564('side'===_0x2607be?c(_0x4b4b5c,'FORMAT_SIDE_IMAGE'):_0x3c2160[_0x2607be]||_0x2607be);function _0x5dc564(_0x442841){return{'type':'format','content':c(_0x4b4b5c,'*Format:*\x20%0',_0x442841)};}});}}class ut extends _0x11ea7f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25efe8){super(_0x25efe8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2b64fa=this['editor'],_0x5b8f67=_0x2b64fa['commands']['get']('importWord'),_0x508958=_0x2b64fa['commands']['get']('trackChanges');_0x5b8f67&&(_0x5b8f67['on']('execute',(_0x2e9047,[,_0x1a6d47])=>{this['_trackChangesValueDuringImport']=_0x508958['value'],_0x1a6d47['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b8f67,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b8f67,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x508958['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2b64fa['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5be994,_0xf9f265){const {suggestions:_0x1261e2}=_0xf9f265,_0x160b8a=this['editor']['commands']['get']('trackChanges'),_0x2d34b6=_0x160b8a['value'];this['_trackChangesValueDuringImport']!==_0x2d34b6&&(_0x160b8a['execute'](),this['_trackChangesExecuted']=!0x0),_0x1261e2&&_0x1261e2['forEach'](({id:_0x2efa65,type:_0x35ff26,author:_0x1fd057,created_at:_0x5eeb78})=>{const _0x1307aa={'id':_0x2efa65,'type':_0x35ff26,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fd057,'createdAt':_0x5eeb78?new Date(_0x5eeb78):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1307aa);});}}class ft extends _0x11ea7f{['afterInit'](){const _0x5664f1=this['editor'],_0x30c688=_0x5664f1['plugins']['get']('TrackChangesEditing');if(_0x5664f1['plugins']['has']('IndentEditing')&&(_0x30c688['enableCommand']('indent'),_0x30c688['enableCommand']('outdent')),_0x5664f1['plugins']['has']('IndentBlock')){for(const _0x14cad8 of['indentBlock','outdentBlock'])_0x30c688['enableDefaultAttributesIntegration'](_0x14cad8);}const _0x680512=_0x5664f1['locale'];_0x30c688['registerBlockAttribute']('blockIndent'),_0x30c688['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x680512,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18de10=this['editor'],_0x3c54ea=_0x18de10['locale'],_0x22442e=_0x18de10['plugins']['get']('TrackChangesEditing');_0x22442e['descriptionFactory']['registerDescriptionCallback'](_0x19801e=>{if('formatBlock'!=_0x19801e['type'])return;const {data:_0xf0fb01}=_0x19801e;if(!_0xf0fb01)return;if('indentBlock'!=_0xf0fb01['commandName']&&'outdentBlock'!=_0xf0fb01['commandName'])return;const _0x2dbf54=_0x19801e['getItems']()[0x0],_0x3b9046=_0x22442e['descriptionFactory']['getItemLabel'](_0x2dbf54);return'indentBlock'==_0xf0fb01['commandName']?{'type':'format','content':c(_0x3c54ea,'*Indent:*\x20%0',_0x3b9046)}:'outdentBlock'==_0xf0fb01['commandName']?{'type':'format','content':c(_0x3c54ea,'*Outdent:*\x20%0',_0x3b9046)}:void 0x0;});}}class ht extends _0x11ea7f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x11ea7f{['afterInit'](){const _0x51141c=this['editor'];if(!_0x51141c['plugins']['has']('LinkEditing'))return;const _0x49a7ac=_0x51141c['plugins']['get']('TrackChangesEditing'),_0x1008e0=_0x51141c['commands']['get']('link');_0x49a7ac['enableDefaultAttributesIntegration']('link'),_0x49a7ac['enableDefaultAttributesIntegration']('unlink'),_0x49a7ac['registerInlineAttribute']('linkHref');for(const _0x50bf44 of _0x1008e0['manualDecorators'])_0x49a7ac['registerInlineAttribute'](_0x50bf44['id']),_0x49a7ac['descriptionFactory']['registerAttributeLabel'](_0x50bf44['id'],'link\x20('+_0x50bf44['label']['toLowerCase']()+')');_0x49a7ac['descriptionFactory']['registerDescriptionCallback'](_0x3ada8f=>{if('attribute'!=_0x3ada8f['type'])return;const {data:_0x45c013}=_0x3ada8f;if(!_0x45c013||'linkHref'!=_0x45c013['key'])return;const _0x2dfbb3=_0x45c013['newValue'],_0x2009f5=_0x51141c['locale'];return{'type':'format','content':null==_0x2dfbb3?c(_0x2009f5,'*Remove\x20link*'):c(_0x2009f5,'*Set\x20link:*\x20%0','\x22'+_0x2dfbb3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a535e=this['editor'],_0x1d1365=_0x5a535e['locale'];_0x5a535e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c8615=>{if('formatInline'!=_0x5c8615['type'])return;const {data:_0x1c6d13}=_0x5c8615;if(_0x1c6d13){if('link'==_0x1c6d13['commandName']){const _0x33948f=_0x1c6d13['commandParams'][0x0];return{'type':'format','content':c(_0x1d1365,'*Set\x20link:*\x20%0','\x22'+_0x33948f+'\x22')};}return'unlink'==_0x1c6d13['commandName']?{'type':'format','content':c(_0x1d1365,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x11ea7f{['afterInit'](){const _0x58fcac=this['editor'],_0x5d0b9a=_0x58fcac['locale'];if(!_0x58fcac['plugins']['has']('LegacyListEditing'))return;const _0x240b0f=_0x58fcac['plugins']['get']('TrackChangesEditing'),_0x40208e=_0x58fcac['plugins']['has']('LegacyTodoListEditing');function _0x1b7db8(_0x17a48f){return()=>{const _0x5852d8=_0x58fcac['model']['document']['selection'],_0x5b66e5=_0x58fcac['commands']['get'](_0x17a48f);if(_0x5b66e5['value'])return void _0x58fcac['execute']('paragraph',{});const _0x3da584=_0x17a48f['slice'](0x0,-0x4),_0x19f990=function(_0x4b3a3c,_0xa22ef8,_0x5e74e7){let _0x4a10cd=Array['from'](_0x4b3a3c)['filter'](_0x47432e=>function(_0xa70d50,_0x10fcfd){return _0x10fcfd['checkChild'](_0xa70d50['parent'],'listItem')&&!_0x10fcfd['isObject'](_0xa70d50);}(_0x47432e,_0x5e74e7));_0x4a10cd=_0x4a10cd['filter'](_0x67caf4=>!_0x67caf4['is']('element','listItem')||_0x67caf4['getAttribute']('listType')!=_0xa22ef8);const _0x31e73b=new Set();for(const _0xa06357 of _0x4a10cd)_0xa06357['is']('element','listItem')?_0x31e73b['add'](Le(_0xa06357)):_0x31e73b['add'](_0xa06357);return Array['from'](_0x31e73b);}(_0x5852d8['getSelectedBlocks'](),_0x3da584,_0x58fcac['model']['schema']);_0x58fcac['model']['change'](()=>{for(const _0x5558df of _0x19f990)_0x240b0f['markBlockFormat'](_0x5558df,{'commandName':_0x17a48f,'commandParams':[{'forceValue':!_0x5b66e5['value']}],'formatGroupId':'blockName'},Ee(_0x5558df));});};}function _0x3f601f(_0x4e628c){return()=>{const _0x46d618=function(_0x399638){let _0x135f7a=Array['from'](_0x399638);const _0x44ce34=_0x135f7a['findIndex'](_0x4542d3=>'listItem'!=_0x4542d3['name']);return _0x44ce34>-0x1&&(_0x135f7a=_0x135f7a['slice'](0x0,_0x44ce34)),_0x135f7a;}(_0x58fcac['model']['document']['selection']['getSelectedBlocks']()),_0xe02905=_0x58fcac['model']['createRange'](_0x58fcac['model']['createPositionAt'](_0x46d618[0x0],'before'),_0x58fcac['model']['createPositionAt'](_0x46d618[_0x46d618['length']-0x1],'end'));_0x58fcac['model']['change'](()=>{_0x240b0f['markBlockFormat'](_0xe02905,{'commandName':_0x4e628c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x237d34){const _0x2b3627=new Set();for(const _0x3daed9 of _0x237d34){let _0x5edda6=_0x3daed9['nextSibling'];for(;_0x5edda6&&_0x5edda6['getAttribute']('listIndent')>_0x3daed9['getAttribute']('listIndent');)_0x2b3627['add'](_0x5edda6),_0x5edda6=_0x5edda6['nextSibling'];}return Array['from'](_0x2b3627);}(_0x46d618));});};}_0x240b0f['enableCommand']('numberedList',_0x1b7db8('numberedList')),_0x240b0f['enableCommand']('bulletedList',_0x1b7db8('bulletedList')),_0x40208e&&_0x240b0f['enableCommand']('todoList',_0x1b7db8('todoList')),_0x240b0f['enableCommand']('indentList',_0x3f601f('indentList')),_0x240b0f['enableCommand']('outdentList',_0x3f601f('outdentList')),_0x40208e&&_0x240b0f['enableCommand']('checkTodoList',()=>{const _0x462710=_0x58fcac['commands']['get']('checkTodoList'),_0x9c6702=Array['from'](_0x462710['_selectedElements']);_0x9c6702['filter'](_0x34a9d5=>_0x34a9d5['getAttribute']('todoListChecked')!=_0x462710['value']),_0x58fcac['model']['change'](()=>{for(const _0x473013 of _0x9c6702)_0x240b0f['markBlockFormat'](_0x473013,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x462710['value']}]});});}),_0x240b0f['descriptionFactory']['registerElementLabel']('listItem',_0x237db4=>c(_0x5d0b9a,'ELEMENT_LIST_ITEM',_0x237db4)),_0x240b0f['descriptionFactory']['registerDescriptionCallback'](_0xfdfdd3=>{if('formatBlock'!=_0xfdfdd3['type']&&'formatInline'!=_0xfdfdd3['type'])return;const {data:_0x22e5a1}=_0xfdfdd3;if(_0x22e5a1){if('numberedList'==_0x22e5a1['commandName']||'bulletedList'==_0x22e5a1['commandName']||'todoList'==_0x22e5a1['commandName'])switch(_0x22e5a1['commandName']['replace']('List','')){case'bulleted':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d0883(c(_0x5d0b9a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x22e5a1['commandName'])return{'type':'format','content':c(_0x5d0b9a,'*Indent:*\x20%0',c(_0x5d0b9a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x22e5a1['commandName'])return{'type':'format','content':c(_0x5d0b9a,'*Outdent:*\x20%0',c(_0x5d0b9a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x22e5a1['commandName'])return _0x22e5a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d0b9a,'*Check\x20item*')}:{'type':'format','content':c(_0x5d0b9a,'*Uncheck\x20item*')};}function _0x1d0883(_0x31ef1e){return{'type':'format','content':c(_0x5d0b9a,'*Change\x20to:*\x20%0',_0x31ef1e)};}});}}function Le(_0x23be5f){const _0x50177d=_0x23be5f['getAttribute']('listIndent');if(0x0==_0x50177d)return _0x23be5f;let _0x3f14ea=_0x23be5f;for(;_0x23be5f['previousSibling']&&_0x23be5f['previousSibling']['is']('element','listItem');){const _0x3ee536=_0x23be5f['previousSibling']['getAttribute']('listIndent');if(_0x3ee536==_0x50177d)_0x3f14ea=_0x23be5f['previousSibling'];else{if(_0x3ee536<_0x50177d)break;}_0x23be5f=_0x23be5f['previousSibling'];}return _0x3f14ea;}function Ee(_0x6e9df7){const _0x227a69=[];if(_0x6e9df7['is']('element','listItem')&&_0x6e9df7['getAttribute']('listIndent')>0x0){let _0x5558bb=_0x6e9df7['nextSibling'];for(;_0x5558bb&&'listItem'==_0x5558bb['name']&&_0x5558bb['getAttribute']('listIndent')==_0x6e9df7['getAttribute']('listIndent');)_0x227a69['push'](_0x5558bb),_0x5558bb=_0x5558bb['nextSibling'];}return _0x227a69;}class Q extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x197c0d=this['editor']['config']['get']('list.properties'),_0x2553af=this['editor']['plugins']['get']('TrackChangesEditing');_0x197c0d['styles']&&_0x2553af['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x197c0d['reversed']&&_0x2553af['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x197c0d['startIndex']&&_0x2553af['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2553af['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b3a41,_0x439c25={}){const _0xf8f0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e8b1a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf8f0a['markMultiRangeBlockFormat'](_0x4e8b1a,{'commandName':'listStyle','commandParams':[{'type':_0x439c25['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x40df91,_0x1398ef={}){const _0x4be023=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fdb56=this['_getSuggestionBlocks'](_0x286801=>_0x286801['is']('element','listItem')&&'numbered'===_0x286801['getAttribute']('listType'));if(_0x2fdb56['length']<0x1)return;const _0x71f6a0=_0x2fdb56['map'](_0x4b4ae4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b4ae4,'before'),this['editor']['model']['createPositionAt'](_0x4b4ae4,0x0)));this['editor']['model']['change'](()=>{_0x4be023['markMultiRangeBlockFormat'](_0x71f6a0,{'commandName':'listReversed','commandParams':[{'reversed':_0x1398ef['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x579fd9,_0x5d6641={}){const _0x360ed8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x466bd0=this['_getSuggestionBlocks'](_0x5dc23b=>_0x5dc23b['is']('element','listItem')&&'numbered'===_0x5dc23b['getAttribute']('listType'));if(_0x466bd0['length']<0x1)return;const _0x14da97=_0x466bd0['map'](_0x400e8c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x400e8c,'before'),this['editor']['model']['createPositionAt'](_0x400e8c,0x0)));this['editor']['model']['change'](()=>{_0x360ed8['markMultiRangeBlockFormat'](_0x14da97,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d6641['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4507a8){if('formatBlock'!=_0x4507a8['type']&&'formatInline'!=_0x4507a8['type'])return;const _0x6bd375=this['editor']['locale'],{data:_0x4d369f}=_0x4507a8;if(!_0x4d369f)return;let _0x169f38,_0x297f78;switch(_0x4d369f['commandName']){case'listStyle':_0x169f38='*Change\x20to:*\x20%0',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38,c(_0x6bd375,this['_getTranslationKeyForListStyle'](_0x4d369f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x169f38=_0x4d369f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38)};break;case'listStart':_0x169f38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x297f78={'type':'format','content':c(_0x6bd375,_0x169f38,_0x4d369f['commandParams'][0x0]['startIndex'])};}return _0x297f78;}['_getSuggestionBlocksForListStyle'](){const _0x3cabcd=this['editor']['plugins']['get']('LegacyListUtils');let _0x358310=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x358310[0x0]?.['is']('element','listItem')&&_0x358310['unshift'](..._0x3cabcd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x358310[_0x358310['length']-0x1]?.['is']('element','listItem')&&_0x358310['push'](..._0x3cabcd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x358310=[...new Set(_0x358310)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x358310=_0x358310['filter'](_0x218dc8=>_0x218dc8['is']('element','listItem'))),_0x358310;}['_getSuggestionBlocks'](_0x51c915){const _0x35c3f9=this['editor']['plugins']['get']('LegacyListUtils');let _0x34d2e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x51c915)['map'](_0x31f254=>{const _0x386559=this['editor']['model']['createPositionAt'](_0x31f254,0x0);return[..._0x35c3f9['getSiblingNodes'](_0x386559,'backward'),..._0x35c3f9['getSiblingNodes'](_0x386559,'forward')];})['flat']();return _0x34d2e8=[...new Set(_0x34d2e8)],_0x34d2e8;}['_getTranslationKeyForListStyle'](_0x34378f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x34378f)||'default')['toUpperCase']()+'_LIST_'+_0x34378f['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x11ea7f{['afterInit'](){const _0xac8a17=this['editor'];if(!_0xac8a17['plugins']['has']('MediaEmbedEditing'))return;const _0x3ba106=_0xac8a17['plugins']['get']('TrackChangesEditing'),_0x3da6ee=_0xac8a17['locale'];_0x3ba106['enableCommand']('mediaEmbed'),_0x3ba106['descriptionFactory']['registerElementLabel']('media',_0x268aab=>c(_0x3da6ee,'ELEMENT_MEDIA',_0x268aab)),_0xac8a17['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5a3632,{writer:_0x3dacdb,options:_0x30f28a})=>{if(_0x30f28a['showSuggestionHighlights'])return _0x3dacdb['createEmptyElement']('div');},'converterPriority':'high'}),_0xac8a17['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3dd702,_0x1d0bef,_0x36a5b1)=>{_0x36a5b1['options']['showSuggestionHighlights']&&_0x3dd702['stop']();},{'priority':'high'});}}class pt extends _0x11ea7f{['afterInit'](){const _0x225016=this['editor'];_0x225016['plugins']['has']('MentionEditing')&&_0x225016['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x11ea7f{['afterInit'](){const _0x3c2fc6=this['editor'];if(!_0x3c2fc6['plugins']['has']('MergeFieldsEditing'))return;const _0x2a608b=_0x3c2fc6['plugins']['get']('TrackChangesEditing'),_0x231b75=_0x3c2fc6['locale'];_0x2a608b['enableCommand']('insertMergeField'),_0x2a608b['enableCommand']('insertMergeFieldBlock'),_0x2a608b['enableCommand']('insertMergeFieldImage'),_0x2a608b['descriptionFactory']['registerElementLabel']('mergeField',_0x3e1143=>c(_0x231b75,'ELEMENT_MERGE_FIELD',_0x3e1143)),_0x2a608b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f9e60=>c(_0x231b75,'ELEMENT_MERGE_FIELD',_0x1f9e60)),_0x2a608b['descriptionFactory']['registerDescriptionCallback'](_0x5cf920=>{if('insertion'!=_0x5cf920['type']&&'deletion'!=_0x5cf920['type'])return;const _0x3fa0c7=_0x5cf920['getContainedElement']();if(null==_0x3fa0c7)return;const _0xcb62a4=_0x3c2fc6['plugins']['get']('MergeFieldsEditing');let _0x1dd6be;switch(_0xcb62a4['getMergeFieldType'](_0x3fa0c7)){case null:return;case'image':{const _0x114c45=_0xcb62a4['unwrapAffixes'](_0x3fa0c7['getAttribute']('src'));_0x1dd6be=_0xcb62a4['getLabel'](_0x114c45)||_0x114c45;break;}default:{const _0x40a961=_0x3fa0c7['getAttribute']('id');_0x1dd6be=_0xcb62a4['getLabel'](_0x40a961)||_0x40a961;break;}}return'insertion'==_0x5cf920['type']?{'type':'insertion','content':c(_0x231b75,'*Insert:*\x20%0','\x22'+_0x1dd6be+'\x22\x20'+c(_0x231b75,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x231b75,'*Remove:*\x20%0','\x22'+_0x1dd6be+'\x22\x20'+c(_0x231b75,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x11ea7f{['afterInit'](){const _0x18d4a6=this['editor'],_0x15fc7d=_0x18d4a6['plugins']['get']('TrackChangesEditing');_0x18d4a6['plugins']['has']('MultiLevelList')&&(_0x15fc7d['enableDefaultAttributesIntegration']('multiLevelList'),_0x15fc7d['registerBlockAttribute']('listMarkerStyle'),_0x15fc7d['descriptionFactory']['registerDescriptionCallback'](_0x6dfd1b=>this['handleDescriptions'](_0x6dfd1b)));}['handleDescriptions'](_0x4827d1){const _0xdb5448=this['editor']['locale'],{data:_0x11c1d4}=_0x4827d1,_0x2f121b={'type':'format','content':''};if(_0x11c1d4&&'listMarkerStyle'==_0x11c1d4['key']){if(!_0x11c1d4['oldValue'])return{'type':'format','content':c(_0xdb5448,'*Set\x20format:*\x20%0',c(_0xdb5448,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c1d4['newValue']+')'};if(!_0x11c1d4['newValue']){let _0x429540=_0x4827d1['head'];for(;_0x429540;){if(_0x429540['data']&&'listType'==_0x429540['data']['key']&&_0x429540['data']['newValue'])return _0x2f121b;_0x429540=_0x429540['next'];}return{'type':'format','content':c(_0xdb5448,'*Remove\x20format:*\x20%0',c(_0xdb5448,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x11c1d4['oldValue']+')'};}}}}class bt extends _0x11ea7f{['afterInit'](){const _0x42804e=this['editor'];if(!_0x42804e['plugins']['has']('PageBreakEditing'))return;_0x42804e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3cebbb=_0x42804e['plugins']['get']('TrackChangesEditing'),_0x18ceed=_0x42804e['locale'];_0x3cebbb['descriptionFactory']['registerElementLabel']('pageBreak',_0x31cf16=>c(_0x18ceed,'ELEMENT_PAGE_BREAK',_0x31cf16));}}class yt extends _0x11ea7f{['afterInit'](){const _0x1b3137=this['editor'];if(!_0x1b3137['plugins']['has']('Paragraph'))return;const _0x259352=_0x1b3137['locale'],_0x3c276e=_0x1b3137['plugins']['get']('TrackChangesEditing');_0x3c276e['descriptionFactory']['registerElementLabel']('paragraph',_0x8cdbdf=>c(_0x259352,'ELEMENT_PARAGRAPH',_0x8cdbdf)),_0x3c276e['enableDefaultAttributesIntegration']('paragraph'),_0x3c276e['enableCommand']('insertParagraph'),_0x1b3137['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b3137),{'priority':'highest'}),_0x1b3137['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc18875,_0x5856dc,_0x46e9b9)=>{_0x46e9b9['options']['showSuggestionHighlights']&&nr(_0x1b3137,{'showActiveMarker':!0x1})(_0xc18875,_0x5856dc,_0x46e9b9);},{'priority':'highest'});const _0x304e0=_0x3c276e['descriptionFactory'];_0x304e0['registerDescriptionCallback'](_0x4d02d9=>{if('insertion'!==_0x4d02d9['type'])return;const {start:_0xf26fa1,end:_0x21e3b9}=_0x4d02d9['getFirstRange']();if(!_0xf26fa1['isTouching'](_0x21e3b9)||!_0xf26fa1['nodeAfter'])return;const _0x52fb71=_0x1b3137['model']['schema'],_0x483926=_0xf26fa1['nodeAfter'];return _0x52fb71['isBlock'](_0x483926)&&!_0x52fb71['isLimit'](_0x483926)&&_0x52fb71['checkChild'](_0x483926,'$text')?{'type':'insertion','content':c(_0x259352,'*Insert:*\x20%0',_0x304e0['getItemLabel'](_0x483926,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549783=this['editor'],_0xdb7ea7=_0x549783['locale'];_0x549783['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1925ed=>{if('formatBlock'!=_0x1925ed['type'])return;const {data:_0x427310}=_0x1925ed;return _0x427310&&'paragraph'==_0x427310['commandName']?{'type':'format','content':c(_0xdb7ea7,'*Change\x20to:*\x20%0',c(_0xdb7ea7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x333433,{showActiveMarker:_0x49468b=!0x0}={}){return(_0x429b55,_0x3076c7,_0x274d34)=>{const _0x349ae6=_0x333433['plugins']['get']('TrackChangesEditing'),_0x5899f5=_0x3076c7['markerRange']['start'],_0x4a042f=_0x3076c7['markerRange']['end'],_0x6eb75=_0x333433['model']['schema'];if(!_0x5899f5['isTouching'](_0x4a042f)||!_0x5899f5['nodeAfter'])return;const _0x58dac6=_0x5899f5['nodeAfter'];if(_0x6eb75['isBlock'](_0x58dac6)&&!_0x6eb75['isLimit'](_0x58dac6)&&_0x6eb75['checkChild'](_0x58dac6,'$text')){if(!_0x274d34['consumable']['consume'](_0x3076c7['markerRange'],_0x429b55['name']))return;const {id:_0x3c503e,authorId:_0x3e7a41}=_0x349ae6['_splitMarkerName'](_0x3076c7['markerName']),_0x31c74a=_0x274d34['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3c503e,'data-author-id':_0x3e7a41}),_0x1af0e7=_0x274d34['mapper']['toViewPosition'](_0x4a042f);_0x49468b&&_0x349ae6['activeMarkers']['includes'](_0x3076c7['markerName'])&&_0x274d34['writer']['addClass']('ck-suggestion-marker--active',_0x31c74a),_0x274d34['writer']['insert'](_0x1af0e7,_0x31c74a),_0x274d34['mapper']['bindElementToMarker'](_0x31c74a,_0x3076c7['markerName']);}};}class St extends _0x11ea7f{['afterInit'](){const _0xb4d035=this['editor'];_0xb4d035['commands']['get']('replaceSource')&&_0xb4d035['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x11ea7f{['afterInit'](){const _0x484a12=this['editor'];if(!_0x484a12['plugins']['has']('RemoveFormatEditing'))return;_0x484a12['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae033=this['editor'];_0x4ae033['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x321efd=>{if('formatBlock'!=_0x321efd['type']&&'formatInline'!=_0x321efd['type'])return;const {data:_0x170072}=_0x321efd;return _0x170072&&'removeFormat'==_0x170072['commandName']?{'type':'format','content':c(_0x4ae033['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x11ea7f{['afterInit'](){const _0x32a584=this['editor'];if(!_0x32a584['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x321e07=_0x32a584['plugins']['get']('TrackChangesEditing');_0x321e07['enableCommand']('goToPreviousRestrictedEditingException'),_0x321e07['enableCommand']('goToNextRestrictedEditingException');const _0x516990=_0x32a584['plugins']['get']('RestrictedEditingModeEditing');_0x516990['enableCommand']('trackChanges'),_0x516990['enableCommand']('acceptSuggestion'),_0x516990['enableCommand']('discardSuggestion'),_0x516990['enableCommand']('acceptAllSuggestions'),_0x516990['enableCommand']('discardAllSuggestions'),_0x516990['enableCommand']('acceptSelectedSuggestions'),_0x516990['enableCommand']('discardSelectedSuggestions');}}class At extends _0x11ea7f{['afterInit'](){const _0x1d7c3b=this['editor'];if(!_0x1d7c3b['plugins']['has']('ShiftEnter'))return;const _0xb72cbf=_0x1d7c3b['plugins']['get']('TrackChangesEditing');_0xb72cbf['enableCommand']('shiftEnter'),_0x1d7c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1d7c3b),{'priority':'high'}),_0x1d7c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1d7c3b),{'priority':'high'}),_0x1d7c3b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54a8dc,_0x85b27d,_0x5c29b2)=>{_0x5c29b2['options']['showSuggestionHighlights']&&je(_0x1d7c3b,{'showActiveMarker':!0x1})(_0x54a8dc,_0x85b27d,_0x5c29b2);}),_0xb72cbf['descriptionFactory']['registerElementLabel']('softBreak',_0x3d370a=>c(_0x1d7c3b['locale'],'ELEMENT_LINE_BREAK',_0x3d370a));}}function je(_0x4cca5a,{showActiveMarker:_0x3f4678=!0x0}={}){return(_0x50db50,_0x4c39f8,_0xc19a39)=>{const _0x5841f7=_0x4cca5a['plugins']['get']('TrackChangesEditing');if(!_0xc19a39['consumable']['test'](_0x4c39f8['markerRange'],_0x50db50['name']))return;const _0xa0db9=_0x4cca5a['model'];for(const _0x3d56bd of _0x4c39f8['markerRange']['getItems']()){if(!_0x3d56bd['is']('element','softBreak'))continue;const _0x6664dc='deletion'==_0x4c39f8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x59cfba,authorId:_0xd010f0}=_0x5841f7['_splitMarkerName'](_0x4c39f8['markerName']),_0x53aff7=_0xc19a39['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6664dc,'data-suggestion':_0x59cfba,'data-author-id':_0xd010f0}),_0x21fad6=_0xc19a39['mapper']['toViewPosition'](_0xa0db9['createPositionBefore'](_0x3d56bd));_0x3f4678&&_0x5841f7['activeMarkers']['includes'](_0x4c39f8['markerName'])&&_0xc19a39['writer']['addClass']('ck-suggestion-marker--active',_0x53aff7),_0xc19a39['writer']['insert'](_0x21fad6,_0x53aff7),_0xc19a39['mapper']['bindElementToMarker'](_0x53aff7,_0x4c39f8['markerName']);}};}class _t extends _0x11ea7f{['afterInit'](){const _0x5839c6=this['editor'],_0x252dca=_0x5839c6['model'],_0xd1d59a=_0x5839c6['locale'];if(!_0x5839c6['plugins']['has']('StandardEditingModeEditing'))return;const _0x260f3f=_0x5839c6['plugins']['get']('TrackChangesEditing'),_0x4cc4bd='restrictedEditingException',_0x4bbbbf=_0x5839c6['commands']['get'](_0x4cc4bd);_0x260f3f['enableCommand'](_0x4cc4bd,(_0xab85e1,_0xb26ee2={})=>{const _0x34999e=_0x252dca['document']['selection'];if(_0x34999e['isCollapsed'])return void _0xab85e1(_0xb26ee2);const _0x56e3f8=void 0x0!==_0xb26ee2['forceValue']?_0xb26ee2['forceValue']:!_0x4bbbbf['value'];_0x252dca['change'](()=>{const _0x2047f6=Array['from'](_0x34999e['getRanges']());for(const _0x5d2f63 of _0x2047f6){const _0x1490dc=_0x56e3f8?[_0x5d2f63]:io(_0x4cc4bd,_0x5d2f63,_0x252dca);for(const _0x1fa435 of _0x1490dc)_0x260f3f['markInlineFormat'](_0x1fa435,{'commandName':_0x4cc4bd,'commandParams':[{'forceValue':_0x56e3f8}]});}});}),_0x260f3f['descriptionFactory']['registerDescriptionCallback'](_0x345e0b=>{if('formatBlock'!=_0x345e0b['type']&&'formatInline'!=_0x345e0b['type'])return;const {data:_0x50a485}=_0x345e0b;return _0x50a485&&_0x50a485['commandName']==_0x4cc4bd?_0x50a485['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd1d59a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xd1d59a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x11ea7f{['afterInit'](){const _0x569873=this['editor'];if(!_0x569873['plugins']['has']('Style')||!_0x569873['plugins']['has']('DataSchema'))return;const _0x2b9327=_0x569873['plugins']['get']('TrackChangesEditing'),_0x16f435=_0x569873['locale'],_0x26eac4=_0x569873['config']['get']('style')||{},_0x17a881=_0x569873['plugins']['get']('GeneralHtmlSupport'),_0x3d9f59=_0x569873['plugins']['get']('StyleUtils')['normalizeConfig'](_0x569873['plugins']['get']('DataSchema'),_0x26eac4['definitions']);_0x2b9327['enableDefaultAttributesIntegration']('style');const _0x3fa994=new Set();for(const _0x4ae774 of _0x3d9f59['block']){const _0x729aca=_0x17a881['getGhsAttributeNameForElement'](_0x4ae774['element']);_0x3fa994['add'](_0x729aca);}const _0x595e30=new Set();for(const _0x1aba5d of _0x3d9f59['inline']){const _0x26838b=_0x17a881['getGhsAttributeNameForElement'](_0x1aba5d['element']);_0x595e30['add'](_0x26838b);for(const _0x519102 of _0x1aba5d['ghsAttributes'])_0x595e30['add'](_0x519102);}for(const _0x8d2ef of _0x3fa994)_0x2b9327['registerBlockAttribute'](_0x8d2ef),_0x2b9327['descriptionFactory']['registerAttributeLabel'](_0x8d2ef,c(_0x16f435,'FORMAT_STYLE'));for(const _0x1201db of _0x595e30)_0x2b9327['registerInlineAttribute'](_0x1201db),_0x2b9327['descriptionFactory']['registerAttributeLabel'](_0x1201db,c(_0x16f435,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383ac5=this['editor'],_0x466390=_0x383ac5['locale'];_0x383ac5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a29c=>{if('formatBlock'!=_0x13a29c['type']&&'formatInline'!=_0x13a29c['type'])return;const {data:_0x24ee61}=_0x13a29c;return _0x24ee61&&'style'===_0x24ee61['commandName']?_0x24ee61['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x466390,'*Set\x20format:*\x20%0',_0x24ee61['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x466390,'*Remove\x20format:*\x20%0',_0x24ee61['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x11ea7f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x16f027){super(_0x16f027),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x32d315=this['editor'],_0x26b9a2=_0x32d315['model']['document']['selection'];if(!_0x32d315['plugins']['has']('TableEditing'))return;const _0x539c10=_0x32d315['locale'],_0x19a292=_0x32d315['plugins']['get']('TrackChangesEditing'),_0x5dffbf=_0x32d315['plugins']['get']('TableUtils');_0x19a292['descriptionFactory']['registerElementLabel']('table',_0x317ef2=>c(_0x539c10,'ELEMENT_TABLE',_0x317ef2)),this['_setupColumnsRowsFixing'](),_0x19a292['enableCommand']('insertTable'),_0x19a292['enableCommand']('selectTableRow'),_0x19a292['enableCommand']('selectTableColumn');for(const _0x1ca67a of['insertTableRowAbove','insertTableRowBelow']){const _0x3a2e27=_0x32d315['commands']['get'](_0x1ca67a);_0x19a292['enableCommand'](_0x1ca67a,_0x423c78=>{_0x32d315['model']['change'](_0x3ca5ca=>{_0x423c78();const _0xd0c01a='above'===_0x3a2e27['order'],_0x4e13ae=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0x32e891=_0x5dffbf['getRowIndexes'](_0x4e13ae),_0x1b8c8d=_0xd0c01a?_0x32e891['first']-0x1:_0x32e891['last']+0x1,_0x1d4b0e=_0x4e13ae[0x0]['findAncestor']('table'),_0x8e4e5=_0x5dffbf['createTableWalker'](_0x1d4b0e,{'startRow':_0x1b8c8d,'endRow':_0x1b8c8d}),_0x1badea=Array['from'](_0x8e4e5)['map'](_0x5e00bb=>_0x3ca5ca['createRangeOn'](_0x5e00bb['cell']));_0x19a292['markMultiRangeInsertion'](_0x1badea,'tableRow');});});}for(const _0x5af938 of['insertTableColumnLeft','insertTableColumnRight']){const _0x29961e=_0x32d315['commands']['get'](_0x5af938);_0x19a292['enableCommand'](_0x5af938,_0x3b0734=>{_0x32d315['model']['change'](_0x24e659=>{_0x3b0734();const _0x323a53='left'===_0x29961e['order'],_0x748e96=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0xac200c=_0x5dffbf['getColumnIndexes'](_0x748e96),_0x103196=_0x323a53?_0xac200c['first']-0x1:_0xac200c['last']+0x1,_0x4aefd7=_0x748e96[0x0]['findAncestor']('table'),_0x574b5b=_0x5dffbf['createTableWalker'](_0x4aefd7,{'startRow':0x0,'column':_0x103196,'includeAllSlots':!0x1}),_0xcabc89=Array['from'](_0x574b5b)['map'](_0x599a63=>_0x24e659['createRangeOn'](_0x599a63['cell']));_0x19a292['markMultiRangeInsertion'](_0xcabc89,'tableColumn');});});}for(const _0x272960 of['removeTableRow','removeTableColumn']){const _0x19c523=_0x272960['substr'](0xb),_0x5513aa=_0x19c523['toLowerCase'](),_0x2bf58b=_0x5513aa['substr'](0x0,0x3)+'span',_0x5699b0='table'+_0x19c523,_0x2254f0='min'+_0x19c523,_0x2a7746='max'+_0x19c523;_0x19a292['enableCommand'](_0x272960,()=>{_0x32d315['model']['change'](_0x424a70=>{const _0x33bc53=_0x5dffbf['getSelectionAffectedTableCells'](_0x26b9a2),_0x4a3a28=_0x33bc53[0x0]['findAncestor']('table');let _0x4c8478;if('removeTableRow'==_0x272960){const _0x518936=_0x5dffbf['getRowIndexes'](_0x33bc53);_0x4c8478={'startRow':_0x518936['first'],'endRow':_0x518936['last'],'includeAllSlots':!0x0};}else{const _0x50d2d0=_0x5dffbf['getColumnIndexes'](_0x33bc53);_0x4c8478={'startColumn':_0x50d2d0['first'],'endColumn':_0x50d2d0['last'],'includeAllSlots':!0x0};}const _0x2ee648=_0x5dffbf['createTableWalker'](_0x4a3a28,_0x4c8478),_0x55496e=Array['from'](_0x2ee648)['map'](({cell:_0x55c57d})=>_0x55c57d),_0x2acb42=xe(_0x55496e['filter'](_0x4a17c8=>_0x4a17c8['hasAttribute'](_0x2bf58b))),_0x1c27a8=xe(_0x55496e['filter'](_0x2ad321=>!_0x2ad321['hasAttribute'](_0x2bf58b)))['map'](_0x471c85=>_0x424a70['createRangeOn'](_0x471c85)),_0x27ba68=_0x19a292['markMultiRangeDeletion'](_0x1c27a8,_0x5699b0);if(_0x27ba68&&('tableRow'==_0x27ba68['subType']||'tableColumn'==_0x27ba68['subType'])){const _0x250289=this['_getSuggestionCoords'](_0x27ba68);for(const _0x5836e0 of _0x2acb42){const _0x52ec00=_0x424a70['createRangeOn'](_0x5836e0),_0xe3a269=_0x5dffbf['getCellLocation'](_0x5836e0),_0x5792dd=_0x5836e0['getAttribute'](_0x2bf58b)-0x1,_0x15e5ef=_0x250289[_0x2254f0],_0x1006e5=_0x250289[_0x2a7746];_0x15e5ef<=_0xe3a269[_0x5513aa]&&_0xe3a269[_0x5513aa]+_0x5792dd<=_0x1006e5&&_0x27ba68['addRange'](_0x52ec00);}}});});}function _0x3435c0(_0x397cdc){const _0x22cf31=Array['from'](_0x26b9a2['getRanges']())['map'](_0x418f86=>_0x53edc8['fromRange'](_0x418f86));_0x32d315['model']['change'](_0x532703=>{const _0x42fc23=_0x532703['batch'];_0x397cdc=_0x397cdc['filter'](_0x44a9f6=>'$graveyard'!=_0x44a9f6['root']['rootName']),_0x532703['setSelection'](_0x397cdc),_0x32d315['commands']['get']('removeTableRow')['refresh'](),_0x32d315['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x32d315['model']['enqueueChange'](()=>{_0x32d315['model']['enqueueChange'](_0x42fc23,_0x10f84e=>{const _0x1da987=_0x22cf31['filter'](_0x4cf7fa=>'$graveyard'!=_0x4cf7fa['root']['rootName']);_0x1da987['length']>0x0&&_0x10f84e['setSelection'](_0x1da987);for(const _0x44440c of _0x22cf31)_0x44440c['detach']();});});});}function _0x25dbfc(_0x416b57){_0x32d315['model']['change'](_0x24a14e=>{const _0x3de626=Array['from'](_0x26b9a2['getRanges']())['map'](_0x3db02f=>_0x53edc8['fromRange'](_0x3db02f)),_0xd808b5=[];for(const _0x5da7bf of _0x416b57)for(const _0x3a12fa of _0x5da7bf['getItems']({'shallow':!0x0}))_0xd808b5['push'](_0x3a12fa);for(const _0x27b42c of _0xd808b5)'$graveyard'!=_0x27b42c['root']['rootName']&&(_0x24a14e['setSelection'](_0x24a14e['createPositionAt'](_0x27b42c,0x0)),_0x32d315['commands']['get']('removeTableColumn')['refresh'](),_0x32d315['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x717979=_0x3de626['filter'](_0x109dee=>'$graveyard'!=_0x109dee['root']['rootName']);_0x717979['length']>0x0&&_0x24a14e['setSelection'](_0x717979);for(const _0x1adf29 of _0x3de626)_0x1adf29['detach']();});}function _0x4e29e7(_0x5c8fe6,_0x93992d){return _0x93992d['every'](_0x5cbaa6=>_0x5c8fe6['some'](_0x1c6986=>_0x1c6986['end']['isEqual'](_0x5cbaa6['start'])||_0x5cbaa6['end']['isEqual'](_0x1c6986['start'])));}function _0x49a266(_0x459a03,_0x52e2a2){return!_0x459a03['some'](_0x53cf3b=>_0x52e2a2['some'](_0x4b728c=>_0x53cf3b['isIntersecting'](_0x4b728c)))&&_0x459a03['some'](_0x3ad67e=>_0x52e2a2['some'](_0x1fba5b=>_0x3ad67e['end']['isTouching'](_0x1fba5b['start'])));}_0x32d315['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d0d46,_0x24d84d,_0x313fe4)=>{if(!_0x313fe4['options']['showSuggestionHighlights'])return;const _0x223140=_0x24d84d['item'];if(!_0x223140||!_0x223140['is']('element','tableCell'))return;const _0x39bfd4=_0x313fe4['mapper']['toViewElement'](_0x223140);if(_0x39bfd4){const {id:_0x1bbb2b,authorId:_0xaacbd}=_0x19a292['_splitMarkerName'](_0x24d84d['markerName']);_0x9867d8(_0x39bfd4,_0x313fe4['writer'],(_0x43a9e5,_0x1b3821,_0x1ce5ab)=>{_0x1ce5ab['addClass'](_0x388c61(_0x1b3821['classes']),_0x43a9e5),_0x1ce5ab['setAttribute']('data-suggestion-id',_0x1bbb2b,_0x43a9e5),_0x1ce5ab['setAttribute']('data-author-id',_0xaacbd,_0x43a9e5);},(_0x4378e5,_0x3fcf91,_0x59b75b)=>{_0x59b75b['removeClass'](_0x388c61(_0x3fcf91['classes']),_0x4378e5),_0x59b75b['removeAttribute']('data-suggestion-id',_0x4378e5),_0x59b75b['removeAttribute']('data-author-id',_0x4378e5);});}},{'priority':'highest'}),_0x19a292['descriptionFactory']['registerDescriptionCallback'](_0x331956=>{if('insertion'!=_0x331956['type']&&'deletion'!=_0x331956['type'])return;const _0x267a62=_0x331956['getContainedElement']();if(null!=_0x267a62&&_0x267a62['is']('element','table')){if('insertion'==_0x331956['type']){const _0x5afd73=_0x331956['getItems']()['filter'](_0xa19fd9=>_0xa19fd9['is']('$textProxy'))['map'](_0x3a4c6a=>_0x3a4c6a['data']);if(_0x5afd73['length'])return{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5afd73['join']('\x20')+'\x22'))};}if('deletion'==_0x331956['type']){const _0x39aa08=_0x331956['getItems']()['filter'](_0x3d3dea=>_0x3d3dea['is']('$textProxy'))['map'](_0x483b11=>_0x483b11['data']);if(_0x39aa08['length'])return{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39aa08['join']('\x20')+'\x22'))};}}}),_0x19a292['descriptionFactory']['registerDescriptionCallback'](_0x5d48fe=>{if('tableRow'==_0x5d48fe['subType']){const _0x25445b=_0x5d48fe['getItems']()['filter'](_0x4500f8=>_0x4500f8['is']('$textProxy'))['map'](_0xe51178=>_0xe51178['data']),_0x55c9fa=this['_getSuggestionCoords'](_0x5d48fe),_0x4077d2=_0x55c9fa['maxRow']-_0x55c9fa['minRow']+0x1;if('insertion'==_0x5d48fe['type'])return _0x25445b['length']?{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4077d2,'\x22'+_0x25445b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW',_0x4077d2))};if('deletion'==_0x5d48fe['type'])return _0x25445b['length']?{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4077d2,'\x22'+_0x25445b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_ROW',_0x4077d2))};}if('tableColumn'==_0x5d48fe['subType']){const _0x1a5f29=_0x5d48fe['getItems']()['filter'](_0x1ff1db=>_0x1ff1db['is']('$textProxy'))['map'](_0x122e84=>_0x122e84['data']),_0x332ec3=this['_getSuggestionCoords'](_0x5d48fe),_0xf465e2=_0x332ec3['maxColumn']-_0x332ec3['minColumn']+0x1;if('insertion'==_0x5d48fe['type'])return _0x1a5f29['length']?{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf465e2,'\x22'+_0x1a5f29['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x539c10,'*Insert:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN',_0xf465e2))};if('deletion'==_0x5d48fe['type'])return _0x1a5f29['length']?{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xf465e2,'\x22'+_0x1a5f29['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x539c10,'*Remove:*\x20%0',c(_0x539c10,'ELEMENT_TABLE_COLUMN',_0xf465e2))};}}),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3435c0),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3435c0),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25dbfc),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25dbfc),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e29e7),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e29e7),_0x19a292['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x49a266),_0x19a292['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x49a266);}['_acceptFormatSuggestionCallbackFactory'](){const _0xee329b=this['editor'],_0x5c2106=_0xee329b['model']['document']['selection'];return(_0x493e48,_0x489bf3)=>{_0xee329b['model']['change'](_0x94ef1f=>{const {commandName:_0x1a6ef3,commandParams:_0x1aff7a}=_0x489bf3;let _0xf7a774=_0x493e48[0x0]['end']['nodeBefore'];_0x1aff7a&&_0x1aff7a[0x0]&&!0x1===_0x1aff7a[0x0]['forceValue']&&(_0xf7a774=_0x493e48[0x0]['start']['nodeAfter']);const _0x659e80=_0x94ef1f['createRangeIn'](_0xf7a774);if('$graveyard'==_0x659e80['root']['rootName'])return;const _0x3c027e=Array['from'](_0x5c2106['getRanges']())['map'](_0x5600d0=>_0x53edc8['fromRange'](_0x5600d0));_0x94ef1f['setSelection'](_0x659e80),_0xee329b['commands']['get'](_0x1a6ef3)['refresh'](),_0x1aff7a['push']({'forceDefaultExecution':!0x0}),_0xee329b['execute'](_0x1a6ef3,..._0x1aff7a);const _0xc26ab0=_0x3c027e['filter'](_0x5cf156=>'$graveyard'!=_0x5cf156['root']['rootName']);_0xc26ab0['length']>0x0&&_0x94ef1f['setSelection'](_0xc26ab0);for(const _0xe9c1cc of _0x3c027e)_0xe9c1cc['detach']();});};}['_getCoordsForCells'](_0x5580b3){const _0x256054=this['editor']['plugins']['get']('TableUtils');let _0x59de3f=Number['MAX_SAFE_INTEGER'],_0x4b42af=Number['MIN_SAFE_INTEGER'],_0x55232d=Number['MAX_SAFE_INTEGER'],_0x467048=Number['MIN_SAFE_INTEGER'];for(const _0x374c16 of _0x5580b3){if('$graveyard'==_0x374c16['root']['rootName'])continue;const {row:_0x1aa4e5,column:_0x1df1e8}=_0x256054['getCellLocation'](_0x374c16),_0x40eeb1=_0x374c16['hasAttribute']('rowspan')?_0x374c16['getAttribute']('rowspan')-0x1:0x0,_0x5724bb=_0x374c16['hasAttribute']('colspan')?_0x374c16['getAttribute']('colspan')-0x1:0x0;_0x59de3f=_0x1aa4e5<_0x59de3f?_0x1aa4e5:_0x59de3f,_0x4b42af=_0x1aa4e5+_0x40eeb1>_0x4b42af?_0x1aa4e5+_0x40eeb1:_0x4b42af,_0x55232d=_0x1df1e8<_0x55232d?_0x1df1e8:_0x55232d,_0x467048=_0x1df1e8+_0x5724bb>_0x467048?_0x1df1e8+_0x5724bb:_0x467048;}return{'minRow':_0x59de3f,'maxRow':_0x4b42af,'minColumn':_0x55232d,'maxColumn':_0x467048};}['_setupColumnsRowsFixing'](){const _0x165081=this['editor'],_0x5a1874=_0x165081['plugins']['get']('TrackChangesEditing'),_0x51e4d4=_0x165081['plugins']['get']('TableUtils');_0x165081['model']['document']['on']('change:data',()=>{const _0x27f650=Array['from'](_0x165081['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26da7f,data:_0x419f91}of _0x27f650){const {group:_0x173bbd,id:_0x14080d,subType:_0x3c0507}=_0x5a1874['_splitMarkerName'](_0x26da7f);if('suggestion'!=_0x173bbd)continue;if(null!=_0x419f91['oldRange'])continue;const _0x3f9183=_0x5a1874['getSuggestion'](_0x14080d);this['_tablePostFixingSubtypes']['includes'](_0x3c0507)&&this['_tableSuggestions']['add'](_0x3f9183);}},{'priority':'low'});const _0x13df6a=(_0x367b00,_0x47fb26)=>{let _0x1d95b7=!0x1;const _0x2f275b=_0x47fb26['createRangeOn'](_0x367b00),_0x46f7da=_0x367b00['findAncestor']('table'),_0x178d4d=_0x51e4d4['getCellLocation'](_0x367b00);for(const _0x2c46ca of this['_tableSuggestions']){const _0x5d4384=_0x2c46ca['subType'],_0x3f652b=_0x5d4384['startsWith']('tablePaste'),_0x577b56=_0x5d4384['substr'](_0x3f652b?0xa:0x5),_0x3873da=_0x577b56['toLowerCase'](),_0x5e2ca0=_0x3873da['substr'](0x0,0x3)+'span',_0x2cd275='min'+_0x577b56,_0x52ca38='max'+_0x577b56;if(!_0x2c46ca['isInContent'])continue;if(_0x46f7da!=_0x2c46ca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2c46ca['isIntersectingWithRange'](_0x2f275b))continue;const _0x2fcbf1=_0x367b00['hasAttribute'](_0x5e2ca0)?_0x367b00['getAttribute'](_0x5e2ca0)-0x1:0x0,_0x391d5c=this['_getSuggestionCoords'](_0x2c46ca),_0x36b201=_0x391d5c[_0x2cd275],_0x3db841=_0x391d5c[_0x52ca38];_0x36b201<=_0x178d4d[_0x3873da]&&_0x178d4d[_0x3873da]+_0x2fcbf1<=_0x3db841&&(_0x2c46ca['addRange'](_0x2f275b),_0x1d95b7=!0x0);}return _0x1d95b7;};_0x165081['model']['document']['registerPostFixer'](_0x576e52=>{let _0x5b9231=!0x1;for(const _0x2f6343 of _0x165081['model']['document']['differ']['getChanges']())if('insert'==_0x2f6343['type']){if('tableRow'==_0x2f6343['name']){for(const _0x243335 of _0x2f6343['position']['nodeAfter']['getChildren']())_0x5b9231=_0x5b9231||_0x13df6a(_0x243335,_0x576e52);}else'tableCell'==_0x2f6343['name']&&(_0x5b9231=_0x5b9231||_0x13df6a(_0x2f6343['position']['nodeAfter'],_0x576e52));}return _0x5b9231;});}['_getSuggestionCoords'](_0x3fd583){return this['_getCoordsForCells'](_0x3fd583['getRanges']()['map'](_0x5f4e3e=>_0x5f4e3e['start']['nodeAfter']));}}function xe(_0x6e7bd2){return Array['from'](new Set(_0x6e7bd2)['values']());}class Nt extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3dff12=this['editor'],_0x83674a=_0x3dff12['model']['document']['selection'],_0x1caff8=_0x3dff12['locale'];if(!_0x3dff12['plugins']['has']('TableEditing'))return;const _0x8bf8b3=_0x3dff12['plugins']['get']('TrackChangesEditing'),_0x45b504=_0x3dff12['plugins']['get']('TableUtils'),_0x3b1664=_0x3dff12['plugins']['get'](Ct);_0x3b1664['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8bf8b3['enableCommand']('mergeTableCells',()=>{const _0xc327a6=_0x45b504['getSelectionAffectedTableCells'](_0x3dff12['model']['document']['selection']);_0x3dff12['model']['change'](()=>{_0x8bf8b3['markMultiRangeBlockFormat'](_0xc327a6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3dff12['commands']['get']('mergeTableCells')['on']('execute',(_0x5359cf,_0x4280f1)=>{_0x3dff12['commands']['get']('trackChanges')['value']&&(_0x4280f1['length']>0x0&&_0x4280f1[_0x4280f1['length']-0x1]&&_0x4280f1[_0x4280f1['length']-0x1]['forceDefaultExecution']||_0x8bf8b3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5359cf['stop']());},{'priority':'highest'});for(const _0x28b6dc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x429594=_0x3dff12['commands']['get'](_0x28b6dc);_0x8bf8b3['enableCommand'](_0x28b6dc,()=>{const _0x514162=_0x3dff12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x329986=>_0x329986['is']('element','tableCell')),_0x2c1b64=_0x429594['value'];_0x3dff12['model']['change'](()=>{_0x8bf8b3['markMultiRangeBlockFormat']([_0x514162,_0x2c1b64],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41f772 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d3bdf=_0x3dff12['commands']['get'](_0x41f772);_0x8bf8b3['enableCommand'](_0x41f772,()=>{const _0x73cf2d=_0x45b504['getSelectionAffectedTableCells'](_0x3dff12['model']['document']['selection'])[0x0],_0x50c4d2=_0x73cf2d['findAncestor']('table'),{column:_0x2bba6b,row:_0x7b72d8}=_0x45b504['getCellLocation'](_0x73cf2d);let _0x2b0dcd=[];if('horizontally'==_0x1d3bdf['direction']){const _0x380988=_0x45b504['createTableWalker'](_0x50c4d2,{'startRow':_0x7b72d8,'endRow':_0x7b72d8,'includeAllSlots':!0x0});_0x2b0dcd=Array['from'](_0x380988)['map'](_0x418885=>_0x418885['cell']);}else{const _0x2d5ef1=_0x45b504['createTableWalker'](_0x50c4d2,{'column':_0x2bba6b,'includeAllSlots':!0x0});_0x2b0dcd=Array['from'](_0x2d5ef1)['map'](_0x353bf7=>_0x353bf7['cell']);}_0x3dff12['model']['change'](_0x3a2f4f=>{_0x8bf8b3['markBlockFormat'](_0x3a2f4f['createRangeOn'](_0x73cf2d),{'commandName':_0x41f772,'commandParams':[]},_0x2b0dcd,_0x41f772);});});}_0x8bf8b3['descriptionFactory']['registerDescriptionCallback'](_0x34b2e0=>{if('formatBlock'!=_0x34b2e0['type']&&'formatInline'!=_0x34b2e0['type'])return;const {data:_0x2002d5}=_0x34b2e0;return _0x2002d5&&'mergeTableCells'==_0x2002d5['commandName']?{'type':'format','content':c(_0x1caff8,'*Merge\x20cells*')}:void 0x0;}),_0x8bf8b3['descriptionFactory']['registerDescriptionCallback'](_0x39779e=>{if('formatBlock'!=_0x39779e['type']&&'formatInline'!=_0x39779e['type'])return;const {data:_0xe412dc}=_0x39779e;return _0xe412dc?'splitTableCellVertically'==_0xe412dc['commandName']?{'type':'format','content':c(_0x1caff8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xe412dc['commandName']?{'type':'format','content':c(_0x1caff8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb5505e=_0x3b1664['_acceptFormatSuggestionCallbackFactory']();for(const _0x28db5b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28db5b,'accept',_0xb5505e);for(const _0xccbf23 of['splitTableCellVertically','splitTableCellHorizontally'])_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xccbf23,'accept',_0xb5505e);_0x8bf8b3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x52a28c=>{_0x3dff12['model']['change'](_0x43bf2f=>{const _0x279dda=Array['from'](_0x83674a['getRanges']())['map'](_0x52ae8b=>_0x53edc8['fromRange'](_0x52ae8b));_0x43bf2f['setSelection'](_0x52a28c),_0x3dff12['commands']['get']('mergeTableCells')['refresh'](),_0x3dff12['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23efb7=_0x279dda['filter'](_0x33c424=>'$graveyard'!=_0x33c424['root']['rootName']);_0x23efb7['length']>0x0&&_0x43bf2f['setSelection'](_0x23efb7);for(const _0xd6c72e of _0x279dda)_0xd6c72e['detach']();});});for(const _0x130e3e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x73f03d=_0x3dff12['commands']['get'](_0x130e3e);_0x73f03d['on']('set:isEnabled',(_0x1a23a7,_0x191950,_0x5da7ea)=>{if(_0x5da7ea){const _0x552f8e=_0x3dff12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5da987=>_0x5da987['is']('element','tableCell'));this['_areMergableCells'](_0x73f03d['value'],_0x552f8e)||(_0x1a23a7['return']=!0x1,_0x1a23a7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2886cc=this['editor']['commands']['get']('mergeTableCells'),_0x3e0162=this['editor']['plugins']['get']('TableUtils');if(!_0x2886cc['isEnabled'])return!0x1;const _0x1e3ab5=_0x3e0162['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b8b38 of _0x1e3ab5)for(const _0x27fd73 of _0x1e3ab5)if(_0x1b8b38!=_0x27fd73&&!this['_areMergableCells'](_0x1b8b38,_0x27fd73))return!0x1;return!0x0;}['_areMergableCells'](_0x28db6d,_0x5a93ab){const _0x1bf77e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f4ae5=this['editor']['model']['createRangeOn'](_0x28db6d),_0x557cde=this['editor']['model']['createRangeOn'](_0x5a93ab),_0x323772=new Set(),_0xa18608=new Set();for(const _0x405dc4 of _0x1bf77e['getSuggestions']())if(('insertion'==_0x405dc4['type']||'deletion'==_0x405dc4['type']||'mergeTableCells'==_0x405dc4['subType'])&&_0x405dc4['isInContent']){for(const _0x502674 of _0x405dc4['getRanges']())_0x502674['containsRange'](_0x4f4ae5,!0x0)&&_0x323772['add'](_0x405dc4['type']+':'+_0x405dc4['author']['id']),_0x502674['containsRange'](_0x557cde,!0x0)&&_0xa18608['add'](_0x405dc4['type']+':'+_0x405dc4['author']['id']);}if(_0x323772['size']!=_0xa18608['size'])return!0x1;for(const _0x3d178d of _0x323772)if(!_0xa18608['has'](_0x3d178d))return!0x1;return!0x0;}}class Dt extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x1339aa=this['editor'];if(!_0x1339aa['plugins']['has']('TableEditing'))return;const _0xe5642e=_0x1339aa['locale'],_0x25e672=_0x1339aa['plugins']['get']('TrackChangesEditing');_0x25e672['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x25e672['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x25e672['registerBlockAttribute']('headingRows'),_0x25e672['registerBlockAttribute']('headingColumns'),_0x25e672['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xe5642e,'FORMAT_HEADER_ROW')),_0x25e672['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xe5642e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285d59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x486a62=this['editor']['plugins']['get']('TableUtils'),_0x22670e=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1e3c1a({showActiveMarker:_0x20d86e=!0x0,setDataAttribute:_0x27f24f=!0x0}={}){return(_0x6486b5,_0x3b6b36,_0x5a2ad1)=>{const {type:_0x226bed,id:_0x594a70}=_0x285d59['_splitMarkerName'](_0x3b6b36['markerName']),_0x23d8b8=_0x285d59['getSuggestion'](_0x594a70),_0x32a31b=_0x23d8b8['data'];if('formatBlock'!=_0x23d8b8['type']||!_0x32a31b||'setTableColumnHeader'!=_0x32a31b['commandName'])return;if(_0x3b6b36['item'])return void _0x6486b5['stop']();if(!_0x5a2ad1['consumable']['consume'](_0x3b6b36['markerRange'],_0x6486b5['name']))return;const _0x511d44=_0x3b6b36['markerRange']['start']['nodeAfter'],_0x202f8d=_0x3b6b36['markerRange']['end']['nodeBefore'],_0x57fbf8=_0x511d44['parent']['parent'],{column:_0x1377ff}=_0x486a62['getCellLocation'](_0x511d44),{column:_0x264114}=_0x486a62['getCellLocation'](_0x202f8d);for(let _0x3bdfdf=_0x1377ff;_0x3bdfdf<=_0x264114;_0x3bdfdf++){const _0x2d4533=_0x486a62['createTableWalker'](_0x57fbf8,{'column':_0x3bdfdf,'includeAllSlots':!0x1});for(const _0x47743b of _0x2d4533){const _0x3c2f8d=_0x47743b['cell'],_0xf4c2c9=_0x5a2ad1['mapper']['toViewElement'](_0x3c2f8d);_0x5a2ad1['writer']['addClass']('ck-suggestion-marker-'+_0x226bed,_0xf4c2c9),_0x27f24f&&_0x5a2ad1['writer']['setAttribute']('data-suggestion',_0x594a70,_0xf4c2c9),_0x5a2ad1['mapper']['bindElementToMarker'](_0xf4c2c9,_0x3b6b36['markerName']),_0x20d86e&&(_0x285d59['activeMarkers']['includes'](_0x3b6b36['markerName'])?_0x5a2ad1['writer']['addClass']('ck-suggestion-marker--active',_0xf4c2c9):_0x5a2ad1['writer']['removeClass']('ck-suggestion-marker--active',_0xf4c2c9));}}};}_0x285d59['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x22670e),_0x285d59['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x22670e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1e3c1a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a66e9,_0x4a0dc9,_0x4bff93)=>{_0x4bff93['options']['showSuggestionHighlights']&&_0x1e3c1a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a66e9,_0x4a0dc9,_0x4bff93);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55825b,_0x4154a6,_0x409a84)=>{const {type:_0x405162,id:_0x5adb2b}=_0x285d59['_splitMarkerName'](_0x4154a6['markerName']),_0x6c5315=_0x285d59['getSuggestion'](_0x5adb2b),_0x30777d=_0x6c5315['data'];if('formatBlock'!=_0x6c5315['type']||!_0x30777d||'setTableColumnHeader'!=_0x30777d['commandName'])return;const _0x544a26=_0x409a84['mapper']['markerNameToElements'](_0x4154a6['markerName']);if(_0x544a26){for(const _0x39024b of _0x544a26)_0x409a84['writer']['removeClass']('ck-suggestion-marker-'+_0x405162,_0x39024b),_0x409a84['writer']['removeClass']('ck-suggestion-marker--active',_0x39024b),_0x409a84['writer']['removeAttribute']('data-suggestion',_0x39024b),_0x409a84['mapper']['unbindElementFromMarkerName'](_0x39024b,_0x4154a6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x192a14=this['editor'],_0x12d5a1=_0x192a14['locale'];function _0x32a69a(_0x143187){return{'type':'format','content':c(_0x12d5a1,'*Format:*\x20%0',_0x143187)};}_0x192a14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23d2ce=>{if('formatBlock'!=_0x23d2ce['type'])return;const {data:_0x50ffa0}=_0x23d2ce;if(_0x50ffa0){if('setTableRowHeader'==_0x50ffa0['commandName']){const _0x5677a5=_0x50ffa0['commandParams'][0x0]['forceValue'];return _0x32a69a(c(_0x12d5a1,_0x5677a5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50ffa0['commandName']){const _0x5e95be=_0x50ffa0['commandParams'][0x0]['forceValue'];return _0x32a69a(c(_0x12d5a1,_0x5e95be?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x11ea7f{['afterInit'](){const _0x38a34f=this['editor'],_0x2135b9=_0x38a34f['locale'],_0x191efb=_0x38a34f['plugins']['get']('TrackChangesEditing');function _0x26fa6d(_0x970ecc){return{'type':'format','content':''+c(_0x2135b9,'*Set\x20table\x20type:*\x20%0',_0x970ecc)};}_0x38a34f['plugins']['has']('TableLayout')&&(_0x191efb['enableCommand']('insertTableLayout'),_0x191efb['enableDefaultAttributesIntegration']('tableType'),_0x191efb['registerBlockAttribute']('tableType'),_0x191efb['descriptionFactory']['registerElementLabel'](_0x2300ef=>_0x2300ef['is']('element','table')&&'layout'===_0x2300ef['getAttribute']('tableType'),_0x277c6e=>c(_0x2135b9,'ELEMENT_LAYOUT_TABLE',_0x277c6e)),_0x191efb['descriptionFactory']['registerDescriptionCallback'](_0x24b733=>{const {data:_0x5e5ed5}=_0x24b733;if(_0x5e5ed5&&'tableType'==_0x5e5ed5['key'])switch(_0x5e5ed5['newValue']){case'layout':return _0x26fa6d(c(_0x2135b9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x26fa6d(c(_0x2135b9,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xdbc75e=>[_0xdbc75e,null]));class $t extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x554337=this['editor'];if(!_0x554337['plugins']['has']('TableClipboard'))return;const _0x203391=_0x554337['plugins']['get']('TrackChangesEditing'),_0x4bf84f=_0x554337['plugins']['get']('TableUtils'),_0x5218b6=_0x554337['plugins']['get'](Ct),_0x4310b1=_0x554337['plugins']['get']('TableClipboard'),_0x42ad63=_0x554337['plugins']['get']('TableSelection'),_0x5d2221=_0x554337['plugins']['get'](_0x420ad0);_0x5218b6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x554337['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x554337['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x19c498=null,_0x39af78=!0x1;_0x5d2221['on']('contentInsertion',(_0x2c94ad,_0x532d06)=>{_0x39af78='paste'===_0x532d06['method'];}),_0x554337['model']['on']('insertContent',(_0x5912f2,_0x5ca9e7)=>{if(!_0x39af78&&null===_0x42ad63['getSelectedTableCells']())return;const [_0x1617b2,_0x4f8039]=_0x5ca9e7,_0x1c857f=_0x5ca9e7[_0x5ca9e7['length']-0x1];_0x1c857f&&_0x1c857f['forceDefaultExecution']||_0x203391['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x36699d,_0x4d8bd8,_0x1f8f37,_0x572fce,_0x5217da){if(_0x4d8bd8&&!_0x4d8bd8['is']('documentSelection'))return!0x1;const _0x8e5dd2=_0x5217da['getTableIfOnlyTableInContent'](_0x36699d,_0x1f8f37);if(!_0x8e5dd2||!He(_0x8e5dd2,void 0x0,_0x572fce))return!0x1;const _0x2479cc=_0x572fce['getSelectionAffectedTableCells'](_0x1f8f37['document']['selection']);if(!_0x2479cc['length'])return!0x1;const _0x4d1405=_0x2479cc[0x0]['findAncestor']('table'),_0x4ff110=_0x572fce['getRowIndexes'](_0x2479cc),_0x3e2bcf=_0x572fce['getColumnIndexes'](_0x2479cc),_0x2f172e={'startRow':_0x4ff110['first'],'endRow':_0x4ff110['last'],'startColumn':_0x3e2bcf['first'],'endColumn':_0x3e2bcf['last']};return 0x1==_0x2479cc['length']&&(_0x2f172e['endRow']+=_0x572fce['getRows'](_0x8e5dd2)-0x1,_0x2f172e['endColumn']+=_0x572fce['getColumns'](_0x8e5dd2)-0x1),He(_0x4d1405,_0x2f172e,_0x572fce);}(_0x1617b2,_0x4f8039,_0x554337['model'],_0x4bf84f,_0x4310b1)&&(_0x5912f2['stop'](),_0x19c498={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x554337['model']['change'](()=>{_0x554337['model']['insertContent'](_0x5ca9e7[0x0],_0x5ca9e7[0x1],_0x5ca9e7[0x2],{'forceDefaultExecution':!0x0});const _0x59a071=_0x12ee37(),{rowInsertionRanges:_0x420357,columnInsertionRanges:_0x19f681,insertionRanges:_0x6fa5f8,deletionRanges:_0x29caa2,cells:_0xbc989d}=_0x19c498;_0x420357['length']&&_0x203391['markMultiRangeInsertion'](_0x420357,'tablePasteRow',{'tablePasteChainId':_0x59a071}),_0x19f681['length']&&_0x203391['markMultiRangeInsertion'](_0x19f681,'tablePasteColumn',{'tablePasteChainId':_0x59a071}),_0x6fa5f8['length']&&(_0x203391['markMultiRangeInsertion'](_0x6fa5f8,'tablePaste',{'tablePasteChainId':_0x59a071,'skipNestingCheck':!0x0}),_0x6fa5f8['forEach'](_0x48a2ec=>_0x48a2ec['detach']?.())),_0x29caa2['length']&&(_0x203391['markMultiRangeDeletion'](_0x29caa2,'tablePaste',{'tablePasteChainId':_0x59a071,'skipNestingCheck':!0x0}),_0x29caa2['forEach'](_0x3644f4=>_0x3644f4['detach']?.()));const _0x14cf71=_0x203391['markMultiRangeBlockFormat'](_0xbc989d['map'](({element:_0x2bafb5})=>_0x2bafb5),{'formatGroupId':_0x12ee37()},[],'tablePasteCell',{'tablePasteChainId':_0x59a071});if(_0x14cf71){const _0x27e4d3=_0x14cf71['getMarkers'](),_0x59f7e1=[];for(const {element:_0x5d882a,attributes:_0xfec53e}of _0xbc989d){if(!_0xfec53e)continue;const _0x49012a=_0x554337['model']['createRangeOn'](_0x5d882a),_0x534f12=_0x27e4d3['find'](_0x1ab3f0=>_0x1ab3f0['getRange']()['isEqual'](_0x49012a));_0x534f12&&_0x59f7e1['push']([_0x534f12['name'],_0xfec53e]);}_0x59f7e1['length']&&_0x14cf71['setAttribute']('markerAttributes',Object['fromEntries'](_0x59f7e1));}_0x19c498=null;}));},{'priority':_0x2ef4ce['high']+0xa}),_0x5d2221['on']('contentInsertion',()=>{_0x39af78=!0x1;},{'priority':'lowest'}),_0x554337['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x399f45,_0x103408)=>{const [_0x389cd0,_0x5a2ac9,,_0xac6e7b]=_0x103408;if(!_0x19c498)return;_0x399f45['stop']();const _0x5ba741=_0x389cd0['cell'],_0x32abd6=_0x5a2ac9,_0x16288e=De(_0x5ba741),_0x5a3f5c=De(_0x32abd6);_0x399f45['return']=_0x5ba741;let _0x4ca267=null,_0x4862e2=null;if(_0x5a3f5c||_0x16288e){if(_0x16288e&&!_0x5a3f5c){_0xac6e7b['remove'](_0x5ba741['getChild'](0x0));for(const _0x7b01b7 of Array['from'](_0x32abd6['getChildren']()))_0xac6e7b['insert'](_0x7b01b7,_0x5ba741,'end');const _0x1836c3=_0x19c498['rowInsertionIndexes']['includes'](_0x389cd0['row']),_0x448bb5=_0x19c498['columnInsertionIndexes']['includes'](_0x389cd0['column']);_0x1836c3||_0x448bb5||(_0x4ca267=_0x53edc8['fromRange'](_0xac6e7b['createRangeIn'](_0x5ba741)));}else _0x5a3f5c&&!_0x16288e&&(_0x4862e2=_0xac6e7b['createRangeIn'](_0x5ba741));}else{const _0xf3a4df=_0xac6e7b['createElement']('tableCellSuggestion'),_0x49ead1=_0xac6e7b['createElement']('tableCellSuggestion');_0xac6e7b['wrap'](_0xac6e7b['createRangeIn'](_0x5ba741),_0x49ead1),_0xac6e7b['insert'](_0xf3a4df,_0x5ba741,0x0);for(const _0x57356c of Array['from'](_0x32abd6['getChildren']()))_0xac6e7b['insert'](_0x57356c,_0xf3a4df,'end');_0x4ca267=_0x53edc8['fromRange'](_0xac6e7b['createRangeOn'](_0xf3a4df)),_0x4862e2=_0x53edc8['fromRange'](_0xac6e7b['createRangeOn'](_0x49ead1));}const _0x4c944c=Array['from'](_0x32abd6['getAttributes']())['filter'](([_0x3c52a8])=>Oe['includes'](_0x3c52a8));_0x19c498['cells']['push']({'element':_0x5ba741,'attributes':_0x4c944c['length']?Object['fromEntries'](_0x4c944c):null}),_0x4ca267&&_0x19c498['insertionRanges']['push'](_0x4ca267),_0x4862e2&&_0x19c498['deletionRanges']['push'](_0x4862e2);},{'priority':'high'}),_0x4bf84f['on']('insertColumns',(_0x497644,_0x409772)=>{const [_0xb4d49a,_0xa35f4b={}]=_0x409772;if(!_0x19c498)return;const _0x53fc9d=_0xa35f4b['at']||0x0,_0x37e236=_0xa35f4b['columns']||0x1;_0x19c498['columnInsertionIndexes']=new Array(_0x37e236)['fill'](_0x53fc9d)['map']((_0x2ed0f1,_0x1aeb96)=>_0x2ed0f1+_0x1aeb96);for(const {cell:_0xa68d0d}of _0x4bf84f['createTableWalker'](_0xb4d49a,{'startColumn':_0x53fc9d,'endColumn':_0x53fc9d+_0x37e236-0x1}))_0x19c498['columnInsertionRanges']['push'](_0x554337['model']['createRangeOn'](_0xa68d0d));},{'priority':'low'}),_0x4bf84f['on']('insertRows',(_0x18b85e,_0x229a69)=>{const [_0x3c1dfd,_0x5ab546={}]=_0x229a69;if(!_0x19c498)return;const _0x1a7892=_0x5ab546['at']||0x0,_0x59ee2c=_0x5ab546['rows']||0x1;_0x19c498['rowInsertionIndexes']=new Array(_0x59ee2c)['fill'](_0x1a7892)['map']((_0x584a5c,_0x207432)=>_0x584a5c+_0x207432);for(const {cell:_0x9f86c1}of _0x4bf84f['createTableWalker'](_0x3c1dfd,{'startRow':_0x1a7892,'endRow':_0x1a7892+_0x59ee2c-0x1}))_0x19c498['rowInsertionRanges']['push'](_0x554337['model']['createRangeOn'](_0x9f86c1));},{'priority':'low'}),_0x203391['descriptionFactory']['registerDescriptionCallback'](_0xf9850a=>{if(_0xf9850a['subType']&&_0xf9850a['subType']['startsWith']('tablePaste'))return _0xf9850a['previous']?{}:{'type':'insertion','content':c(_0x554337['locale'],'*Replace\x20table\x20cells*')};});const _0x128228=()=>!0x1;for(const _0x1d95fc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x203391['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d95fc,'join',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d95fc,'join',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d95fc,'join',_0x128228);_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x128228),_0x203391['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48062d,_0x300be7,_0x4d70fa)=>{const _0x4aa8d4=_0x48062d['map'](_0x192cc6=>_0x192cc6['getContainedElement']())['filter'](_0x1ec175=>_0x1ec175),_0x3c301d=new Map(_0x4aa8d4['map'](_0x1472d8=>[_0x1472d8,null]));if(_0x19c498){for(const {element:_0x4578ea,attributes:_0x4a9f4d}of _0x19c498['cells'])_0x4a9f4d&&_0x3c301d['set'](_0x4578ea,_0x4a9f4d);}else{if(_0x4d70fa&&_0x4d70fa['markerAttributes'])for(const [_0x42240d,_0x2f2dbd]of Object['entries'](_0x4d70fa['markerAttributes'])){const _0x113bc5=_0x554337['model']['markers']['get'](_0x42240d),_0x4035f4=_0x113bc5?_0x113bc5['getRange']()['getContainedElement']():null;_0x4035f4&&_0x3c301d['set'](_0x4035f4,_0x2f2dbd);}}_0x554337['model']['change'](_0x53c7fa=>{for(const [_0x100f07,_0x475356]of _0x3c301d)_0x53c7fa['setAttributes']({...Ue,..._0x475356},_0x100f07);});});const _0x56fd72=(_0x5d471d,_0x3b0fe8)=>{_0x203391['_suggestionFactory']['registerCustomCallback'](_0x5d471d,'tablePaste',_0x3b0fe8,(_0x53d29e,_0x23cc40,_0xfbda1e)=>{_0x554337['model']['change'](_0x2eea58=>{const _0x3b7191=[];for(const _0x41d806 of _0x53d29e){const _0x2deee9=_0x41d806['start']['nodeAfter'];_0x2deee9['is']('element','tableCellSuggestion')&&_0x3b7191['push'](_0x2deee9);}_0x203391['_suggestionFactory']['getSuggestionCallback'](_0x5d471d,null,_0x3b0fe8)(_0x53d29e,_0x23cc40,_0xfbda1e);for(const _0x192fb0 of _0x3b7191)'$graveyard'!=_0x192fb0['root']['rootName']&&_0x2eea58['unwrap'](_0x192fb0);});});};_0x56fd72('insertion','accept'),_0x56fd72('insertion','discard'),_0x56fd72('deletion','accept'),_0x56fd72('deletion','discard'),_0x203391['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a8e6d=>{const _0x3c2bb5=_0x2a8e6d['map'](_0x4927e6=>_0x4927e6['getContainedElement']()),_0x1f8619=_0x3c2bb5[0x0]['findAncestor']('table'),{minRow:_0x459051,maxRow:_0x46950a}=_0x5218b6['_getCoordsForCells'](_0x3c2bb5);_0x4bf84f['removeRows'](_0x1f8619,{'at':_0x459051,'rows':_0x46950a-_0x459051+0x1});}),_0x203391['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x309e4f=>{const _0x54ccbc=_0x309e4f['map'](_0x502fde=>_0x502fde['getContainedElement']()),_0x5b1055=_0x54ccbc[0x0]['findAncestor']('table'),{minColumn:_0x15396c,maxColumn:_0x558f5f}=_0x5218b6['_getCoordsForCells'](_0x54ccbc);_0x4bf84f['removeColumns'](_0x5b1055,{'at':_0x15396c,'columns':_0x558f5f-_0x15396c+0x1});});const _0x331ae4=(_0x3c033d,_0x120ae3)=>{if(!_0x120ae3['subType']||!_0x120ae3['subType']['startsWith']('tablePaste'))return;const _0x4a4351=_0x120ae3['attributes']['tablePasteChainId'],_0x5cce91=_0x203391['getSuggestions']()['filter'](_0x45c871=>_0x45c871['isInContent']&&_0x45c871['attributes']&&_0x45c871['attributes']['tablePasteChainId']==_0x4a4351);_0x5cce91['length']&&_0x120ae3['getAllAdjacentSuggestions']()['length']!=_0x5cce91['length']&&_0x5cce91['reduce']((_0x3ec4e6,_0x141721)=>(_0x3ec4e6['next']=_0x141721,_0x141721['previous']=_0x3ec4e6,_0x141721));};function _0xdf0cce(_0xe18a19,_0x389b4b=!0x0){const {id:_0x18c954,authorId:_0x26ab58}=_0x203391['_splitMarkerName'](_0xe18a19['markerName']),_0x2bb800=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a2a9a=_0x203391['activeMarkers']['includes'](_0xe18a19['markerName']);return _0x3a2a9a&&_0x2bb800['push']('ck-suggestion-marker--active'),{'classes':_0x2bb800,'attributes':{'data-suggestion':_0x18c954,'data-author-id':_0x26ab58},'priority':_0x3a2a9a&&_0x389b4b?0xbc2:0xbb8};}_0x203391['on']('suggestionLoaded',_0x331ae4,{'priority':'high'}),_0x203391['on']('suggestionUnloaded',_0x331ae4,{'priority':'high'}),_0x554337['model']['document']['registerPostFixer'](()=>{let _0x24a1f6=!0x1;const _0x2ca42d=Array['from'](_0x554337['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1668fd,data:_0xad1363}of _0x2ca42d){const {group:_0x1f2a8d,type:_0x5af998,id:_0x277f70}=_0x203391['_splitMarkerName'](_0x1668fd);if('suggestion'!=_0x1f2a8d||'deletion'!=_0x5af998||_0xad1363['oldRange'])continue;if(!_0x203391['hasSuggestion'](_0x277f70))continue;const _0x23cf30=_0x203391['getSuggestion'](_0x277f70)['getRanges'](),_0x3eee01=_0x554337['plugins']['get']('Users')['me'];for(const _0x3a110a of _0x203391['getSuggestions']()){if(!_0x3a110a['isInContent']||_0x3a110a['author']!=_0x3eee01)continue;if('formatBlock'!=_0x3a110a['type']||'tablePasteCell'!=_0x3a110a['subType'])continue;if(_0x3a110a['getRanges']()['every'](_0x582bb7=>_0x23cf30['some'](_0xedf3fb=>_0xedf3fb['containsRange'](_0x582bb7,!0x0)))){for(const _0x1de381 of _0x3a110a['getAllAdjacentSuggestions']())_0x1de381['isInContent']&&(_0x1de381['discard'](),_0x24a1f6=!0x0);}}}return _0x24a1f6;}),_0x554337['model']['document']['registerPostFixer'](_0x3d7609=>{const _0x2c551e=_0x554337['commands']['get']('redo');if(!_0x2c551e||!_0x2c551e['_createdBatches']['has'](_0x3d7609['batch']))return!0x1;let _0x4be0c0=!0x1;const _0x5521a1=_0x554337['plugins']['get']('Users')['me'],_0x319bae=_0x554337['model']['document']['differ']['getChanges'](),_0x5a18b7=Array['from'](_0x554337['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5db6cc,data:_0x3e734a})=>{const {group:_0x36bd9d,subType:_0x157a22,authorId:_0x3eb99b}=_0x203391['_splitMarkerName'](_0x5db6cc);return'suggestion'==_0x36bd9d&&'tablePaste'==_0x157a22&&_0x3eb99b==_0x5521a1['id']&&!_0x3e734a['oldRange'];});for(const _0x32e0d8 of _0x319bae){if('insert'!=_0x32e0d8['type']||'tableCellSuggestion'!=_0x32e0d8['name']||0x1!=_0x32e0d8['length'])continue;const _0x25d679=_0x3d7609['createRange'](_0x32e0d8['position'],_0x32e0d8['position']['getShiftedBy'](0x1));if(!_0x5a18b7['find'](({data:_0x552424})=>_0x552424['newRange']['isEqual'](_0x25d679))){for(const {name:_0x4b1318,data:_0x159abe}of _0x5a18b7)if(_0x25d679['containsRange'](_0x159abe['newRange'])){_0x3d7609['updateMarker'](_0x4b1318,{'range':_0x25d679}),_0x4be0c0=!0x0;break;}}}return _0x4be0c0;}),_0x554337['model']['document']['registerPostFixer'](_0x21bc9a=>{let _0xab1298=!0x1;const _0x1fdcc5=_0x554337['plugins']['get']('Users')['me'],_0x4d7999=_0x203391['getSuggestions']()['filter'](_0x2d4d5c=>_0x2d4d5c['isInContent']&&_0x2d4d5c['author']==_0x1fdcc5),_0x1b0c05=new Set(),_0x7624b8=new Set();for(const _0x496e46 of _0x4d7999)if('tablePaste'==_0x496e46['subType'])for(const _0x2f3d18 of _0x496e46['getMarkers']()){const _0x547dab=_0x2f3d18['getRange']()['getContainedElement']();if(_0x547dab){if(_0x547dab['is']('element','tableCellSuggestion')&&De(_0x547dab)){_0x496e46['removeMarker'](_0x2f3d18['name']),_0x1b0c05['add'](_0x547dab),_0xab1298=!0x0;const _0x403961=_0x547dab['nextSibling'],_0x3f0826=_0x547dab['previousSibling'],_0x5ca727=_0x403961&&_0x403961['is']('element','tableCellSuggestion'),_0x511f3d=_0x3f0826&&_0x3f0826['is']('element','tableCellSuggestion');_0x5ca727&&!_0x1b0c05['has'](_0x403961)&&_0x7624b8['add'](_0x403961),_0x511f3d&&!_0x1b0c05['has'](_0x3f0826)&&_0x7624b8['add'](_0x3f0826);}else _0x547dab['is']('element','paragraph')&&_0x547dab['isEmpty']&&(_0x496e46['removeMarker'](_0x2f3d18['name']),_0xab1298=!0x0);}}else{if('tablePasteCell'==_0x496e46['subType']){if(!_0x496e46['attributes']||!_0x496e46['attributes']['tablePasteChainId'])continue;const _0x560901=_0x496e46['attributes']['markerAttributes'];if(_0x560901&&Object['keys'](_0x560901)['length'])continue;const _0x342cd1=_0x496e46['attributes']['tablePasteChainId'];let _0x532253=!0x0,_0x42c187=!0x0;for(const _0x260a39 of _0x4d7999)if(_0x260a39['subType']&&_0x260a39['subType']['startsWith']('tablePaste')){if(!_0x260a39['attributes']['tablePasteChainId']){_0x42c187=!0x1;break;}if(_0x260a39['id']!=_0x496e46['id']&&_0x260a39['attributes']['tablePasteChainId']==_0x342cd1){_0x532253=!0x1;break;}}_0x42c187&&_0x532253&&(_0x496e46['removeMarkers'](),_0xab1298=!0x0);}}for(const _0x5e63e5 of _0x1b0c05)_0x21bc9a['remove'](_0x5e63e5);for(const _0x328edc of _0x7624b8)_0x21bc9a['unwrap'](_0x328edc);return _0xab1298;}),_0x554337['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x95c54a=>_0xdf0cce(_0x95c54a),'converterPriority':'high'}),_0x554337['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5f58b0,_0x5ccc05)=>_0x5ccc05['options']['showSuggestionHighlights']?_0xdf0cce(_0x5f58b0,!0x1):null,'converterPriority':'high'});const _0x123734=_0x554337['editing']['view'];this['listenTo'](_0x123734['document'],'clipboardOutput',(_0x2bfaa3,_0x25c1de)=>{const _0x2f1ed7=[];for(const _0x3687fb of _0x123734['createRangeIn'](_0x25c1de['content'])['getItems']())_0x3687fb['is']('element','suggestion-td')&&_0x2f1ed7['push'](_0x3687fb);_0x123734['change'](_0x187342=>{for(const _0x2fef39 of _0x2f1ed7)_0x187342['move'](_0x187342['createRangeIn'](_0x2fef39),_0x187342['createPositionBefore'](_0x2fef39)),_0x187342['remove'](_0x2fef39);});});}}function De(_0x2668b9){if(_0x2668b9['isEmpty'])return!0x0;const _0x596bb8=_0x2668b9['getChild'](0x0);return _0x596bb8['is']('element','paragraph')&&_0x596bb8['isEmpty'];}function He(_0x4aa6d3,_0xfa0ac1={},_0x509517){for(const {isAnchor:_0x284ca9,cellHeight:_0x8f0601,cellWidth:_0x255bcd}of _0x509517['createTableWalker'](_0x4aa6d3,{'includeAllSlots':!0x0,..._0xfa0ac1}))if(!_0x284ca9||0x1!=_0x8f0601||0x1!=_0x255bcd)return!0x1;return!0x0;}class Bt extends _0x11ea7f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55616e=this['editor']['plugins']['get']('TrackChangesEditing');_0x55616e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55616e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55616e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55616e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55616e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55616e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2bf3e2,_0x46194f){const _0x4c19bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x31eab2=_0x46194f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x56fca2=_0x2f5f['getColumnGroupElement'](_0x31eab2);let _0x187a75=_0x56fca2?_0x2f5f['getTableColumnsWidths'](_0x56fca2):null,_0x27d124=_0x31eab2['getAttribute']('tableWidth')||null;const _0x403132=_0x46194f['tableWidth']||_0x27d124,_0x4fea93=_0x46194f['columnWidths']||_0x187a75,_0xab4289=this['editor']['plugins']['get']('Users')['me'];for(const _0x5597ac of _0x4c19bc['getSuggestions']()){const _0x4e9384=_0x5597ac['getContainedElement']();if('resizeTable'===_0x5597ac['subType']&&_0x4e9384===_0x31eab2){_0x5597ac['author']!==_0xab4289&&_0x5597ac['discard']();const _0x5dd346=_0x5597ac['data']['commandParams'];_0x27d124=_0x5dd346[0x0]['tableWidth'],_0x187a75=_0x5dd346[0x0]['columnWidths'];break;}}_0x2bf3e2({'table':_0x31eab2,'tableWidth':_0x403132,'columnWidths':_0x4fea93}),_0x4c19bc['markBlockFormat'](_0x31eab2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27d124,'columnWidths':_0x187a75}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x124b0e){if('formatBlock'!=_0x124b0e['type']&&'formatInline'!=_0x124b0e['type'])return;const {data:_0x984f28}=_0x124b0e;if(_0x984f28&&'resizeTable'===_0x984f28['formatGroupId']){const _0x164973='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x164973)};}}}class xt extends _0x11ea7f{['afterInit'](){const _0x51d1af=this['editor'];_0x51d1af['plugins']['has']('Template')&&_0x51d1af['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x11ea7f{['afterInit'](){const _0x54f835=this['editor'];if(!_0x54f835['commands']['get']('insertTableOfContents'))return;_0x54f835['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b9d83=_0x54f835['plugins']['get']('TrackChangesEditing'),_0x512569=_0x54f835['locale'];_0x4b9d83['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47b8cd=>c(_0x512569,'ELEMENT_TABLE_OF_CONTENTS',_0x47b8cd));}}class Rt extends _0x11ea7f{['afterInit'](){const _0x56db5d=this['editor'];if(!_0x56db5d['plugins']['has']('Title'))return;const _0x304040=_0x56db5d['plugins']['get']('TrackChangesEditing');_0x304040['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x56db5d['locale'],'ELEMENT_TITLE')),_0x56db5d['model']['document']['registerPostFixer'](_0xa43b9=>{let _0x2f70c7=!0x1;const _0x4921d7=Array['from'](_0x56db5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ee3f6,data:_0x30caf5}of _0x4921d7){const {group:_0x381dea}=_0x304040['_splitMarkerName'](_0x4ee3f6);if('suggestion'!==_0x381dea||!_0x30caf5['newRange'])continue;const _0x36856f=_0x30caf5['newRange'],_0x58a9f9=_0x36856f['end']['nodeBefore'];if(!_0x58a9f9||!_0x58a9f9['is']('element','title-content'))continue;if(!_0x36856f['start']['isTouching'](_0x36856f['end']))continue;const _0x515462=_0x56db5d['model']['schema']['getNearestSelectionRange'](_0x36856f['end'],'forward');if(_0x515462&&_0x515462['isCollapsed']){const _0x4b43e1=_0xa43b9['createRange'](_0x36856f['start'],_0x515462['start']);_0x4b43e1['isEqual'](_0x36856f)||(_0xa43b9['updateMarker'](_0x4ee3f6,{'range':_0x4b43e1}),_0x2f70c7=!0x0);}_0x2f70c7||(_0xa43b9['removeMarker'](_0x4ee3f6),_0x2f70c7=!0x0);}return _0x2f70c7;});}}class Tt extends _0x11ea7f{['afterInit'](){const _0x2a2043=this['editor'],_0x394218=_0x2a2043['plugins']['get']('TrackChangesEditing');_0x2a2043['plugins']['has']('Uploadcare')&&(_0x394218['enableCommand']('uploadcare'),_0x2a2043['plugins']['has']('UploadcareImageEdit')&&(_0x394218['enableCommand']('uploadcareImageEdit'),_0x394218['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x394218['registerBlockAttribute']('uploadcareImageId'),_0x394218['descriptionFactory']['registerDescriptionCallback'](_0x284d90=>{if('attribute'!=_0x284d90['type'])return;const {data:_0x1b3ce6}=_0x284d90;return _0x1b3ce6&&'uploadcareImageId'==_0x1b3ce6['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x11ea7f{['afterInit'](){const _0x44c5f8=this['editor'],_0x5f4539=_0x44c5f8['plugins']['get']('TrackChangesEditing');_0x44c5f8['plugins']['has']('UndoEditing')&&(_0x5f4539['enableCommand']('undo'),_0x5f4539['enableCommand']('redo'));}}class Ut extends _0x11ea7f{static get['requires'](){return[Ct];}['afterInit'](){const _0x4619fa=this['editor'];if(!_0x4619fa['plugins']['has']('TableCaptionEditing'))return;_0x4619fa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x11ea7f{['tableProperties'];['tableCellProperties'];constructor(_0x49ac2c){super(_0x49ac2c),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 _0x54a2ee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5cdc0f of this['tableProperties'])_0x54a2ee['enableCommand'](_0x5cdc0f,(_0x106f51,_0x209fd4)=>{const _0x495823=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5cdc0f,[_0x495823],this['tableProperties'],'tableProperties',_0x106f51,_0x209fd4);});_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x54a2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x207c71,_0x50283a)=>this['handleDiscardAction'](this['tableProperties'],_0x207c71,_0x50283a)),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a5cf8 of this['tableCellProperties'])_0x54a2ee['enableCommand'](_0x3a5cf8,(_0x280c0f,_0x25959e)=>{const _0x138241=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a5cf8,_0x138241,this['tableCellProperties'],'tableCellProperties',_0x280c0f,_0x25959e);});_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x54a2ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x54d716,_0x6942ff)=>this['handleDiscardAction'](this['tableCellProperties'],_0x54d716,_0x6942ff)),_0x54a2ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x54a2ee['descriptionFactory']['registerDescriptionCallback'](_0x56c315=>this['handleSuggestionDescription'](_0x56c315));}['_handlePropertyChange'](_0x518e94,_0x316fbd,_0x5b4772,_0x2bbb17,_0x304342,_0x182613){const _0x381914=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x182613['batch'],()=>{for(const _0xe865d5 of _0x316fbd){if(this['_getSuggestion'](_0xe865d5,_0x2bbb17))_0x304342(_0x182613);else{const _0x960dc3={};for(const _0x1e20c1 of _0x5b4772){const _0x5cc699=_0xe865d5['getAttribute'](_0x1e20c1);void 0x0!==_0x5cc699&&(_0x960dc3[_0x1e20c1]=_0x5cc699);}_0x304342(_0x182613),_0x381914['markBlockFormat'](_0xe865d5,{'commandParams':[_0x960dc3]},[],_0x2bbb17);}}});}['handleDiscardAction'](_0xb69d50,_0x4b4c83,_0x363be5){const _0x435a46=_0x4b4c83[0x0]['start']['nodeAfter'],_0x1975e3=_0x363be5['commandParams'][0x0];this['editor']['model']['change'](_0x27cfae=>{for(const _0x516724 of _0xb69d50)void 0x0!==_0x1975e3[_0x516724]?_0x27cfae['setAttribute'](_0x516724,_0x1975e3[_0x516724],_0x435a46):_0x27cfae['removeAttribute'](_0x516724,_0x435a46);});}['handleSuggestionDescription'](_0x2db5ba){if(_0x2db5ba['data'])switch(_0x2db5ba['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'](_0x5afcfc,_0x16dbba){const _0x2e32f2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1dd0a9 of _0x2e32f2['getSuggestions']({'skipNotAttached':!0x0})){const _0x42a5ac=_0x1dd0a9['getContainedElement']();if(_0x1dd0a9['subType']===_0x16dbba&&_0x42a5ac===_0x5afcfc)return _0x1dd0a9;}return null;}}const u='$elementName';class p extends _0x11ea7f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x19fdf5,_0x2727c4,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b11f0){super(_0x5b11f0),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x172e3e,_0x5076e9,_0x5f2e9a,_0x40b756)=>{this['_model']['change'](()=>{for(const _0x1883af of[..._0x40b756,..._0x5f2e9a])this['_model']['markers']['has'](_0x1883af)&&_0x5b11f0['editing']['reconvertMarker'](_0x1883af);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b11f0['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(),_0x5b11f0['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b11f0['config']['get']('trackChanges.trackFormatChanges'),_0x5b11f0['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b11f0['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b11f0,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x34ce2a=this['editor'],_0x732589=(_0x2a9802,_0x23cd68)=>{if('attribute'!=_0x2a9802)return'ck-suggestion-marker-'+_0x2a9802;const _0x1fb1b5=_0x23cd68['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fb1b5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x34ce2a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d4a43=>{const {id:_0x59e30e,authorId:_0x564fae,type:_0xbdb5,subType:_0x267317}=this['_splitMarkerName'](_0x2d4a43['markerName']),_0x185f61=['ck-suggestion-marker',_0x732589(_0xbdb5,_0x267317)];let _0x387cec=0xbb8;return this['activeMarkers']['includes'](_0x2d4a43['markerName'])&&(_0x185f61['push']('ck-suggestion-marker--active'),_0x387cec=0xbc2),'deletion'==_0xbdb5&&(_0x387cec+=0x5),{'classes':_0x185f61,'attributes':{'data-suggestion':_0x59e30e,'data-author-id':_0x564fae},'priority':_0x387cec};}}),_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x5578c2=>{_0x5578c2['on']('addMarker:suggestion',(_0xbd54d8,_0x5c1543,_0x147c05)=>{if(!_0x147c05['options']['showSuggestionHighlights'])return;const _0xc44a65=_0x5c1543['item'];if(!_0xc44a65)return;const _0x1c2b85=_0x147c05['mapper']['toViewElement'](_0xc44a65);_0x34ce2a['model']['schema']['isObject'](_0xc44a65)&&_0x1c2b85&&!_0x1c2b85['getCustomProperty']('widget')&&_0x1c2b85['is']('containerElement')&&_0x1a15a4(_0x1c2b85,_0x147c05['writer']);},{'priority':'high'});}),_0x34ce2a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x427320,_0x1e1731)=>{if(!_0x1e1731['options']['showSuggestionHighlights'])return null;const {id:_0xe99ecc,authorId:_0x243bae,type:_0xcf248d,subType:_0x5cb379}=this['_splitMarkerName'](_0x427320['markerName']);return{'classes':['ck-suggestion-marker',_0x732589(_0xcf248d,_0x5cb379)],'priority':0xbb8,'attributes':{'data-suggestion':_0xe99ecc,'data-author-id':_0x243bae}};}});const _0x155e62=({showActiveMarkers:_0x293fb0=!0x0,isAttributeSuggestion:_0x4a8019=!0x1}={})=>(_0x445140,_0x2fbc04,_0x2f260f)=>{if(!_0x2fbc04['item'])return;const {id:_0x33c577,authorId:_0x26330f}=this['_splitMarkerName'](_0x2fbc04['markerName']);if(_0x4a8019){const _0x335586=this['_suggestions']['get'](_0x33c577),_0x6b8c8d=this['_getAttributeKey'](_0x335586);if(!this['_isBlockAttribute'](_0x6b8c8d))return;}if(_0x2fbc04['item']['is']('selection'))return void _0x2f260f['consumable']['consume'](_0x2fbc04['item'],_0x445140['name']);const _0x3eff0c=_0x2f260f['mapper']['toViewElement'](_0x2fbc04['item']);if(_0x2fbc04['item']['is']('element')&&_0x34ce2a['model']['schema']['isBlock'](_0x2fbc04['item'])&&!_0x3eff0c['getCustomProperty']('addHighlight')){_0x2f260f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3eff0c),_0x2f260f['writer']['setAttribute']('data-suggestion',_0x33c577,_0x3eff0c),_0x2f260f['writer']['setAttribute']('data-author-id',_0x26330f,_0x3eff0c),_0x2f260f['mapper']['bindElementToMarker'](_0x3eff0c,_0x2fbc04['markerName']),_0x293fb0&&(this['activeMarkers']['includes'](_0x2fbc04['markerName'])?_0x2f260f['writer']['addClass']('ck-suggestion-marker--active',_0x3eff0c):_0x2f260f['writer']['removeClass']('ck-suggestion-marker--active',_0x3eff0c));for(const _0x39e2ba of _0x34ce2a['model']['createRangeIn'](_0x2fbc04['item'])['getItems']())_0x2f260f['consumable']['consume'](_0x39e2ba,_0x445140['name']);_0x2f260f['consumable']['consume'](_0x2fbc04['item'],_0x445140['name']);}};_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x5a5d8e=>{_0x5a5d8e['on']('addMarker:suggestion:formatBlock',(_0x5e7b4f,_0x3b0e71,_0xa28161)=>{_0xa28161['options']['showSuggestionHighlights']&&_0x155e62({'showActiveMarkers':!0x1})(_0x5e7b4f,_0x3b0e71,_0xa28161);},{'priority':'highest'});}),_0x34ce2a['conversion']['for']('dataDowncast')['add'](_0x322d01=>{_0x322d01['on']('addMarker:suggestion:attribute',(_0x1c627d,_0x3c460d,_0x503015)=>{_0x503015['options']['showSuggestionHighlights']&&_0x155e62({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c627d,_0x3c460d,_0x503015);},{'priority':'highest'});}),_0x34ce2a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e5179,_0x144b39)=>{if(_0x144b39['options']['showSuggestionHighlights']){const {id:_0x2e090c,authorId:_0x369f0e}=this['_splitMarkerName'](_0x2e5179);return _0x2e5179['includes'](':split')||_0x2e5179['includes'](':merge')?{'group':'suggestion','name':_0x2e5179['substr'](0xb),'attributes':{'data-suggestion':_0x2e090c,'data-author-id':_0x369f0e}}:null;}return{'group':'suggestion','name':_0x2e5179['substr'](0xb)};}}),_0x34ce2a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x66ecc5,{writer:_0x3cf1bf})=>{let _0x44cce1='suggestion:'+_0x66ecc5['getAttribute']('suggestion-type')+':'+_0x66ecc5['getAttribute']('id');return _0x66ecc5['getAttribute']('marker-count')&&(_0x44cce1+=':'+_0x66ecc5['getAttribute']('marker-count')),_0x3cf1bf['createElement']('$marker',{'data-name':_0x44cce1});}}),_0x34ce2a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x1779f3=>{_0x1779f3['on']('addMarker:suggestion:formatBlock',_0x155e62(),{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0xfd470a=>{_0xfd470a['on']('addMarker:suggestion:attribute',_0x155e62({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x4f7e55=>{_0x4f7e55['on']('removeMarker:suggestion:formatBlock',(_0x5161ad,_0x3a2616,_0x51041b)=>{const _0x418488=_0x51041b['mapper']['markerNameToElements'](_0x3a2616['markerName']);if(_0x418488){for(const _0x19f39a of _0x418488)_0x19f39a['getCustomProperty']('addHighlight')||(_0x51041b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19f39a),_0x51041b['writer']['removeAttribute']('data-suggestion',_0x19f39a),_0x51041b['writer']['removeAttribute']('data-author-id',_0x19f39a),_0x51041b['mapper']['unbindElementFromMarkerName'](_0x19f39a,_0x3a2616['markerName']));}},{'priority':'high'});}),_0x34ce2a['conversion']['for']('editingDowncast')['add'](_0x472c5e=>{_0x472c5e['on']('removeMarker:suggestion:attribute',(_0x335a66,_0x5e62db,_0x36381e)=>{const _0x7eb216=_0x36381e['mapper']['markerNameToElements'](_0x5e62db['markerName']);if(!_0x7eb216)return;const {id:_0x41083f}=this['_splitMarkerName'](_0x5e62db['markerName']),_0xe666c7=this['_suggestions']['get'](_0x41083f),_0x59cf6a=this['_getAttributeKey'](_0xe666c7);if(this['_isBlockAttribute'](_0x59cf6a)){for(const _0x464b75 of _0x7eb216)_0x464b75['getCustomProperty']('addHighlight')||(_0x36381e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x464b75),_0x36381e['writer']['removeAttribute']('data-suggestion',_0x464b75),_0x36381e['writer']['removeAttribute']('data-author-id',_0x464b75),_0x36381e['mapper']['unbindElementFromMarkerName'](_0x464b75,_0x5e62db['markerName']));}},{'priority':'high'});}),_0x34ce2a['model']['document']['registerPostFixer'](_0xe86eda=>{let _0x2caf17=!0x1;const _0x9b3532=Array['from'](_0x34ce2a['model']['document']['differ']['getChangedMarkers']()),_0x8ae176=new Set();for(const {name:_0x17625e,data:_0x556caa}of _0x9b3532){const {group:_0x2ab1f7,type:_0x41a3c2,subType:_0x307728,id:_0x47cea8}=this['_splitMarkerName'](_0x17625e);if('suggestion'!==_0x2ab1f7)continue;const _0x64edf4=this['_suggestions']['get'](_0x47cea8);if(null!=_0x556caa['newRange']){'formatInline'==_0x41a3c2&&(_0x2caf17=_0x2caf17||Jt(_0x556caa['newRange'],_0x17625e,_0xe86eda,_0x34ce2a['model']['schema']));const _0x297917='attribute'==_0x41a3c2&&this['_isBlockAttribute'](_0x307728['split']('|')[0x0]);if(_0x556caa['newRange']['isCollapsed']||'$graveyard'==_0x556caa['newRange']['root']['rootName']||'formatBlock'==_0x41a3c2&&!Ht(_0x556caa['newRange'])||_0x297917&&!Ht(_0x556caa['newRange'])||'deletion'==_0x41a3c2&&!(!Lt(_0x4a3c79=_0x556caa['newRange'])&&!function(_0x5e100e){return _0x5e100e['start']['parent']==_0x5e100e['end']['nodeBefore']&&_0x5e100e['start']['isAtEnd'];}(_0x4a3c79)))_0xe86eda['removeMarker'](_0x17625e),_0x2caf17=!0x0;else{if(!_0x64edf4||!_0x64edf4['isInContent'])continue;if(_0x556caa['newRange']&&_0x556caa['oldRange']&&_0x556caa['newRange']['isEqual'](_0x556caa['oldRange']))continue;_0x8ae176['add'](_0x64edf4);}}}var _0x4a3c79;return _0x8ae176['size']>0x0&&(_0x2caf17=!!this['_joinWithAdjacentSuggestions'](_0x8ae176)||_0x2caf17),_0x2caf17;}),_0x34ce2a['model']['document']['registerPostFixer'](_0x2346b1=>{let _0x5128df=!0x1;for(const _0x403e16 of _0x34ce2a['model']['document']['differ']['getChanges']())if('insert'==_0x403e16['type'])for(const _0x3e79c of this['_suggestions']['values']()){if(_0x3e79c['isMultiRange']||!_0x3e79c['isInContent'])continue;const _0x28f5a7='formatBlock'==_0x3e79c['type'],_0x362921=this['_getAttributeKey'](_0x3e79c),_0x30212b=_0x362921&&this['_isBlockAttribute'](_0x362921);if(!_0x28f5a7&&!_0x30212b)continue;const _0x1b5f8c=_0x3e79c['getFirstRange']();if(_0x1b5f8c['start']['parent']!=_0x1b5f8c['end']['parent']&&!_0x1b5f8c['end']['isAtEnd']){const _0x30a6b3=_0x34ce2a['model']['createPositionAt'](_0x1b5f8c['start']['nodeAfter'],'end'),_0x287268=_0x34ce2a['model']['createRange'](_0x1b5f8c['start'],_0x30a6b3);_0x2346b1['updateMarker'](_0x3e79c['getFirstMarker'](),{'range':_0x287268}),_0x5128df=!0x0;}}return _0x5128df;}),_0x34ce2a['model']['document']['registerPostFixer'](_0x4a9d5f=>this['_processAttributeChanges'](_0x4a9d5f)),_0x34ce2a['model']['document']['registerPostFixer'](_0x114bb4=>!_0x114bb4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x114bb4)),_0x34ce2a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x34ce2a['model']['document']['on']('change:data',(_0xfa5b16,_0x42cb8d)=>{if(!_0x42cb8d['isLocal']||_0x42cb8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4cb9c0=_0x34ce2a['model']['document']['differ']['getChanges']();if(0x0==_0x4cb9c0['length'])return;const _0x5c9b41=[],_0x374e09=_0x4cb9c0['filter'](_0x275a56=>'attribute'==_0x275a56['type']),_0x525198=_0x4cb9c0['filter'](_0x14d07b=>'insert'==_0x14d07b['type']&&'$text'!=_0x14d07b['name']);for(const _0x1fbd31 of _0x374e09)this['_isRegisteredAttribute'](_0x1fbd31['attributeKey'])&&_0x5c9b41['push']({'key':_0x1fbd31['attributeKey'],'newValue':_0x1fbd31['attributeNewValue'],'oldValue':_0x1fbd31['attributeOldValue'],'range':qt(_0x1fbd31['range'],_0x34ce2a['model'])});for(const _0x1dd001 of _0x525198){if('rename'!=_0x1dd001['action']&&'refresh'!=_0x1dd001['action'])continue;const _0x1cec82=zt(_0x1dd001['position']['nodeAfter'],_0x34ce2a['model']),_0x33d961=_0x1dd001['before'];'rename'==_0x1dd001['action']&&_0x5c9b41['push']({'key':u,'newValue':_0x1dd001['name'],'oldValue':_0x33d961['name'],'range':_0x1cec82});for(const [_0x5d2c78,_0x13a182]of _0x33d961['attributes']){if(!this['_isRegisteredAttribute'](_0x5d2c78))continue;const _0x5a40cc=_0x1dd001['attributes']['get'](_0x5d2c78);_0x13a182!==_0x5a40cc&&_0x5c9b41['push']({'key':_0x5d2c78,'newValue':_0x5a40cc,'oldValue':_0x13a182,'range':_0x1cec82});}for(const [_0x277502,_0x1236e4]of _0x1dd001['attributes'])this['_isRegisteredAttribute'](_0x277502)&&(_0x33d961['attributes']['has'](_0x277502)||_0x5c9b41['push']({'key':_0x277502,'newValue':_0x1236e4,'oldValue':null,'range':_0x1cec82}));}0x0!=_0x5c9b41['length']&&_0x34ce2a['model']['enqueueChange'](_0x42cb8d,_0xf72838=>{const _0x1a4e8f=_0x12ee37();for(const {range:_0x172497,key:_0x5e2fd2,oldValue:_0x3916d6,newValue:_0x48f43b}of _0x5c9b41)this['markAttributeChange'](_0x172497,_0x5e2fd2,_0x3916d6,_0x48f43b,{'groupId':_0x1a4e8f});this['_reduceExistingSuggestions'](_0xf72838,_0x5c9b41);});},{'priority':'lowest'}),_0x34ce2a['model']['markers']['on']('update:suggestion',(_0xdb0b13,_0x4582fb,_0x13424f)=>{if(null==_0x13424f){const {id:_0x2086e1}=this['_splitMarkerName'](_0x4582fb['name']),_0x1a3e3b=this['_suggestions']['get'](_0x2086e1);_0x1a3e3b&&_0x1a3e3b['addMarkerName'](_0x4582fb['name']);}}),_0x34ce2a['model']['document']['on']('change:data',()=>{const _0x58859b=Array['from'](_0x34ce2a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x19a53f=>'suggestion'===this['_splitMarkerName'](_0x19a53f['name'])['group']);if(0x0===_0x58859b['length'])return;_0x58859b['sort']((_0x3d14aa,_0x48e8c4)=>{const _0x1a81bb=_0x3d14aa['data']['oldRange'],_0x113954=_0x48e8c4['data']['oldRange'];return null===_0x1a81bb&&null===_0x113954?0x0:null===_0x1a81bb&&null!==_0x113954?-0x1:null!==_0x1a81bb&&null===_0x113954?0x1:_0x1a81bb['start']['isBefore'](_0x113954['start'])?-0x1:0x1;});const _0x1798ad=new Set(),_0x3bb617=new Set();for(const {name:_0x5cf2e3,data:_0x56b557}of _0x58859b){const {id:_0x1825f5}=this['_splitMarkerName'](_0x5cf2e3);if(null===_0x56b557['oldRange']){const _0x4b3954=this['_handleNewSuggestionMarker'](_0x5cf2e3);_0x3bb617['add'](_0x4b3954);}else{const _0xf9bcf4=this['_suggestions']['get'](_0x1825f5);null!==_0x56b557['newRange']||_0xf9bcf4['isInContent']?(_0x1798ad['add'](_0xf9bcf4['head']),_0x3bb617['add'](_0xf9bcf4)):this['_removeSuggestion'](_0xf9bcf4);}}_0x3bb617['size']>0x0&&this['_refreshSuggestionsChain'](_0x3bb617);for(const _0x950dae of _0x1798ad)this['fire']('suggestionChanged',_0x950dae);}),_0x34ce2a['model']['on']('applyOperation',(_0x37f65e,_0x3a234e)=>{const _0x13990b=_0x3a234e[0x0];if(!this['_suggestions']['size'])return;if(!_0x13990b['isDocumentOperation'])return;if(_0x13990b['batch']['isUndo']||!_0x13990b['batch']['isLocal'])return;let _0x52727a,_0x401d4a;switch(_0x13990b['type']){case'insert':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['position']),_0x401d4a=_0x52727a['getShiftedBy'](_0x13990b['howMany']);break;case'split':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['splitPosition']),_0x401d4a=_0x34ce2a['model']['createPositionAt'](_0x13990b['moveTargetPosition']);break;case'move':_0x52727a=_0x34ce2a['model']['createPositionAt'](_0x13990b['targetPosition']),_0x401d4a=_0x52727a['getShiftedBy'](_0x13990b['howMany']);break;default:return;}const _0xd3c5da=_0x34ce2a['model']['createRange'](_0x52727a,_0x401d4a);_0x34ce2a['model']['change'](()=>{for(const {suggestion:_0x20f785,meta:_0x5bbf43}of this['_findSuggestions'](_0xd3c5da)){if(_0x20f785['isMultiRange'])continue;if('formatInline'==_0x20f785['type'])continue;const _0x5bc0f1=this['_getAttributeKey'](_0x20f785);if(_0x5bc0f1&&this['_isBlockAttribute'](_0x5bc0f1)&&'split'!=_0x13990b['type'])continue;const _0x12c1af=_0x20f785['data']&&_0x20f785['data']['multipleBlocks'];('formatBlock'!=_0x20f785['type']||'split'==_0x13990b['type']&&!_0x12c1af)&&(_0x5bbf43['containsRangeInObject']||'insertion'==_0x20f785['type']&&_0x5bbf43['isOwn']||_0x20f785['getFirstRange']()['containsRange'](_0xd3c5da)&&this['_breakSuggestionMarker'](_0x20f785,_0x52727a,_0x401d4a));}});},{'priority':'lowest'}),_0x34ce2a['model']['on']('deleteContent',(_0x4c3140,_0x38cc24)=>{const _0x44a0e0=_0x38cc24[0x0],_0x44577b=_0x38cc24[0x1];if(_0x44577b&&_0x44577b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x44a0e0['isCollapsed'])return;const _0x61d597=_0x34ce2a['model']['schema'],{start:_0x50f1a1,end:_0x4a6f1a}=_0x44a0e0['getFirstRange'](),_0xbbd397=_0x50f1a1['nodeAfter']&&_0x61d597['isLimit'](_0x50f1a1['nodeAfter'])?null:_0x61d597['getNearestSelectionRange'](_0x50f1a1,'forward'),_0x55f98a=_0x4a6f1a['nodeBefore']&&_0x61d597['isLimit'](_0x4a6f1a['nodeBefore'])?null:_0x61d597['getNearestSelectionRange'](_0x4a6f1a,'backward'),_0x10592e=_0x34ce2a['model']['createRange'](_0xbbd397?_0xbbd397['start']:_0x50f1a1,_0x55f98a?_0x55f98a['end']:_0x4a6f1a);_0x34ce2a['model']['change'](_0x2a1723=>{this['markDeletion'](_0x10592e);const _0x506054=_0x34ce2a['model']['schema']['getNearestSelectionRange'](_0x10592e['start']);_0x44a0e0['is']('documentSelection')?_0x2a1723['setSelection'](_0x506054):_0x44a0e0['setTo'](_0x506054);}),_0x4c3140['stop']();},{'priority':_0x2ef4ce['normal']+0xa}),_0x34ce2a['model']['on']('insertContent',(_0x51a924,_0x2729b0)=>{const _0x4fcf21=_0x2729b0[_0x2729b0['length']-0x1];_0x4fcf21&&_0x4fcf21['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x34ce2a['model']['change'](()=>{let _0x3fafd1=_0x34ce2a['model']['insertContent'](_0x2729b0[0x0],_0x2729b0[0x1],_0x2729b0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3fafd1)return;_0x51a924['return']=_0x3fafd1['clone']();const _0x442ac7=_0x3fafd1['end']['nodeBefore'],_0x5a5b15=_0x34ce2a['model']['schema'];_0x442ac7&&_0x5a5b15['isBlock'](_0x442ac7)&&!_0x5a5b15['isObject'](_0x442ac7)&&(_0x3fafd1=_0x34ce2a['model']['createRange'](_0x3fafd1['start'],_0x34ce2a['model']['createPositionAt'](_0x442ac7,'end'))),this['markInsertion'](_0x3fafd1);}),_0x51a924['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26d0cb=new x(_0x34ce2a,this['_suggestions']);_0x34ce2a['commands']['add']('acceptSuggestion',_0x26d0cb),this['enableCommand']('acceptSuggestion');const _0x22e3dc=new O(_0x34ce2a,this['_suggestions']);_0x34ce2a['commands']['add']('discardSuggestion',_0x22e3dc),this['enableCommand']('discardSuggestion'),_0x34ce2a['commands']['add']('acceptAllSuggestions',new R(_0x34ce2a,_0x26d0cb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x34ce2a['commands']['add']('discardAllSuggestions',new R(_0x34ce2a,_0x22e3dc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x34ce2a['commands']['add']('acceptSelectedSuggestions',new E(_0x34ce2a,_0x26d0cb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x34ce2a['commands']['add']('discardSelectedSuggestions',new E(_0x34ce2a,_0x22e3dc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2af871=_0x34ce2a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2af871,'addComment',(_0x4eb114,{threadId:_0x326d26})=>{const _0x383319=this['_suggestions']['get'](_0x326d26);_0x383319&&_0x383319['commentThread']&&0x1===_0x383319['commentThread']['length']&&this['_updateSuggestionData'](_0x326d26,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2af871,'removeComment',(_0x3c6b22,{threadId:_0x1730b2})=>{const _0xb74508=this['_suggestions']['get'](_0x1730b2);_0xb74508&&_0xb74508['commentThread']&&!_0xb74508['commentThread']['length']&&this['_updateSuggestionData'](_0x1730b2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x22fa7a){const _0x36e233=_0x11a22a([0x35,0x50,0x4c,0x53,0x46,0x4a,0x52,0x47,0x6f,0x43,0x44,0x37,0x57,0x32,0x51,0x39,0x75,0x4f,0x33,0x4d,0x71,0x63,0x34,0x59,0x30,0x61,0x4b,0x76,0x55,0x48,0x4e,0x45,0x74,0x62,0x70,0x69,0x42,0x6a,0x6d,0x72,0x41,0x36,0x54,0x58,0x68,0x6c,0x66,0x31,0x64,0x38,0x77,0x73,0x6e,0x65,0x49,0x6b,0x7a,0x5a,0x67,0x79,0x56,0x78]),_0x449c62=0x1c3fef4,_0x456729=0x1c49424^_0x449c62,_0x30ad91=window[_0x11a22a([0x44,0x61,0x74,0x65])][_0x11a22a([0x6e,0x6f,0x77])](),_0x44f2d7=_0x22fa7a[_0x11a22a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b879d=new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xebef6c=>{_0x44f2d7[_0x11a22a([0x6f,0x6e,0x63,0x65])](_0x11a22a([0x72,0x65,0x61,0x64,0x79]),_0xebef6c);}),_0x1c0b39={[_0x11a22a([0x6b,0x74,0x79])]:_0x11a22a([0x45,0x43]),[_0x11a22a([0x75,0x73,0x65])]:_0x11a22a([0x73,0x69,0x67]),[_0x11a22a([0x63,0x72,0x76])]:_0x11a22a([0x50,0x2d,0x32,0x35,0x36]),[_0x11a22a([0x78])]:_0x11a22a([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]),[_0x11a22a([0x79])]:_0x11a22a([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]),[_0x11a22a([0x61,0x6c,0x67])]:_0x11a22a([0x45,0x53,0x32,0x35,0x36])},_0xec3d7c=_0x44f2d7[_0x11a22a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11a22a([0x67,0x65,0x74])](_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fe8b0(){let _0x34781d,_0x4787ba=null,_0x3720f9=null;try{if(_0xec3d7c==_0x11a22a([0x47,0x50,0x4c]))return _0x11a22a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34781d=_0x157442(),!_0x34781d)return _0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34781d[_0x11a22a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3720f9=_0x1623c5(_0x34781d[_0x11a22a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34781d[_0x11a22a([0x6a,0x74,0x69])])),await _0x4666ad()?_0x3fd7f0()?_0x15c095()?_0x11a22a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x195901()?(_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a22a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4787ba=_0x3cd6ea(_0x11a22a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a22a([0x74,0x72,0x69,0x61,0x6c])&&(_0x4787ba=_0x3cd6ea(_0x11a22a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x677645()):_0x11a22a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11a22a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11a22a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15c095(){const _0x4dde09=[_0x11a22a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11a22a([0x74,0x72,0x69,0x61,0x6c])][_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30ad91/0x3e8:0xe10*_0x456729;return _0x34781d[_0x11a22a([0x65,0x78,0x70])]<_0x4dde09;}function _0x3fd7f0(){const _0x3c55f1=_0x34781d[_0x11a22a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c55f1)return!0x1;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x2a])))return!0x0;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x54,0x43])))return!0x0;if(_0x3c55f1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x52,0x54,0x43]))){if(_0x404574())return!0x0;if(_0x1ee6a6()||_0x2773b9())return!0x0;}return!0x1;}function _0x195901(){const _0x4f14e1=_0x34781d[_0x11a22a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f14e1||0x0==_0x4f14e1[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ba3d8}=new URL(window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f14e1[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ba3d8))return!0x0;const _0x1d0288=_0x1ba3d8[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e]));return _0x4f14e1[_0x11a22a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4479f9=>_0x4479f9[_0x11a22a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a22a([0x2a])))[_0x11a22a([0x6d,0x61,0x70])](_0x3881a5=>_0x3881a5[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e])))[_0x11a22a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x199444=>_0x199444[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d0288[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a22a([0x6d,0x61,0x70])](_0x69a9f=>Array(_0x1d0288[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x69a9f[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a22a([0x66,0x69,0x6c,0x6c])](_0x69a9f[0x0]===_0x11a22a([0x2a])?_0x11a22a([0x2a]):'')[_0x11a22a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x69a9f))[_0x11a22a([0x73,0x6f,0x6d,0x65])](_0x2a9b4d=>_0x1d0288[_0x11a22a([0x65,0x76,0x65,0x72,0x79])]((_0x3b966f,_0x49f4fc)=>_0x2a9b4d[_0x49f4fc]===_0x3b966f||_0x2a9b4d[_0x49f4fc]===_0x11a22a([0x2a])));}function _0x677645(){return _0x4787ba&&_0x3720f9?new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc83147,_0x14a7b4)=>{_0x4787ba[_0x11a22a([0x74,0x68,0x65,0x6e])](_0xc83147,_0x14a7b4),_0x3720f9[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x473096=>{_0x473096!=_0x11a22a([0x56,0x61,0x6c,0x69,0x64])&&_0xc83147(_0x473096);},_0x14a7b4);}):_0x4787ba||_0x3720f9||_0x11a22a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1623c5(_0x3c484e,_0x9cc0d8){return new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27653c=>{if(_0x4f5852())return _0x27653c(_0x11a22a([0x56,0x61,0x6c,0x69,0x64]));_0x2ab860(),_0x44f2d7[_0x11a22a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a0b3f=!0x1;const _0x4acbb1=_0x12ee37();function _0x5f1590(_0x3ef6e4){return!!_0x3ef6e4&&(typeof _0x3ef6e4===_0x11a22a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ef6e4===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ef6e4[_0x11a22a([0x74,0x68,0x65,0x6e])]===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ef6e4[_0x11a22a([0x63,0x61,0x74,0x63,0x68])]===_0x11a22a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ea74e(_0x2ba884){_0x282069(_0x2ba884)[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x2d29a9=>{if(!_0x2d29a9||_0x2d29a9[_0x11a22a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11a22a([0x6f,0x6b]))return _0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2aed12(_0x175afd(_0x4acbb1+_0x9cc0d8))!=_0x2d29a9[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11a22a([0x56,0x61,0x6c,0x69,0x64]);})[_0x11a22a([0x74,0x68,0x65,0x6e])](_0xf74856=>(_0x504145(),_0xf74856),()=>{const _0x549934=_0x11ee21();return null==_0x549934?(_0x504145(),_0x11a22a([0x56,0x61,0x6c,0x69,0x64])):_0x11a22a(_0x30ad91-_0x549934>(0x25cf7af4^_0x449c62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x27653c)[_0x11a22a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x332924=0x1f51074^_0x449c62;function _0x504145(){const _0x340818=_0x11a22a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aed12(_0x175afd(_0x3c484e)),_0x1e3409=_0x150360(_0x2aed12(window[_0x11a22a([0x4d,0x61,0x74,0x68])][_0x11a22a([0x63,0x65,0x69,0x6c])](_0x30ad91/_0x332924)));window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a22a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x340818,_0x1e3409);}function _0x11ee21(){const _0x2b2e72=_0x11a22a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aed12(_0x175afd(_0x3c484e)),_0x1f6fed=window[_0x11a22a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a22a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b2e72);return _0x1f6fed?window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x150360(_0x1f6fed),0x10)*_0x332924:null;}function _0x282069(_0x202c5b){return new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c12e5,_0x4449c6)=>{_0x202c5b[_0x11a22a([0x74,0x68,0x65,0x6e])](_0x4c12e5,_0x4449c6),window[_0x11a22a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4449c6,0x1c22a34^_0x449c62);});}}_0x44f2d7[_0x11a22a([0x6f,0x6e])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59de3c,_0x13121a)=>{if(_0x13121a[0x0]!=_0x3c484e)return _0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13121a[0x1]={..._0x13121a[0x1],[_0x11a22a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4acbb1};},{[_0x11a22a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a22a([0x68,0x69,0x67,0x68])}),_0x44f2d7[_0x11a22a([0x6f,0x6e])](_0x11a22a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x319eb4=>{_0x5f1590(_0x319eb4[_0x11a22a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a0b3f=!0x0,_0x5ea74e(_0x319eb4[_0x11a22a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11a22a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a22a([0x6c,0x6f,0x77])}),_0x2b879d[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>{_0x1a0b3f||_0x27653c(_0x11a22a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f5852(){return _0x44f2d7[_0x11a22a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a22a([0x76,0x69,0x65,0x77])][_0x11a22a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11a22a([0x61,0x75,0x74,0x6f]);}function _0x2ab860(){_0x44f2d7[_0x11a22a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a22a([0x76,0x69,0x65,0x77])][_0x11a22a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11a22a([0x61,0x75,0x74,0x6f]);}}function _0x3cd6ea(_0x11acfe){const _0x1ab3be=[new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a690a=>setTimeout(_0x4a690a,0x1cac038^_0x449c62)),_0x2b879d[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8d7fe1=>{let _0x3bddaf=0x0;_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x6f,0x6e])](_0x11a22a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c9c03,_0x583e12)=>{_0x583e12[0x0][_0x11a22a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bddaf++,_0x3bddaf==(0x1c3ff0c^_0x449c62)&&(_0x8d7fe1(),_0x2c9c03[_0x11a22a([0x6f,0x66,0x66])]());});}))];return window[_0x11a22a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11a22a([0x72,0x61,0x63,0x65])](_0x1ab3be)[_0x11a22a([0x74,0x68,0x65,0x6e])](()=>_0x11acfe);}async function _0x11b24b(){await _0x2b879d,_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7de8,_0x44f2d7[_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a22a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7de8,_0x44f2d7[_0x11a22a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11a22a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x404574(){return _0x35cd84(_0x11a22a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x121128(_0x11a22a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11a22a([0x73,0x74,0x61,0x74,0x65])]==_0x11a22a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ee6a6(){return _0x35cd84(_0x11a22a([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 _0x2773b9(){return _0x35cd84(_0x11a22a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x496fdd(_0x2013d1){const _0x5f2c16=_0x162d0a();_0x44f2d7[_0x5f2c16]=_0x11a22a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2013d1,_0x2013d1!=_0x11a22a([0x56,0x61,0x6c,0x69,0x64])&&_0x11b24b();}function _0x162d0a(){const _0x3e1cff=window[_0x11a22a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11a22a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11a22a([0x6e,0x6f,0x77])]())[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11a22a([0x2e]),'');let _0x40293a=_0x11a22a([0x50]);for(let _0x13c707=0x0;_0x13c707<_0x3e1cff[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13c707+=0x2){let _0x369c22=window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1cff[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13c707,_0x13c707+0x2));_0x369c22>=_0x36e233[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x369c22-=_0x36e233[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40293a+=_0x36e233[_0x369c22];}return _0x40293a;}function _0x157442(){const _0xdbcf9f=_0xec3d7c[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e]));if(0x3!=_0xdbcf9f[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a660c(_0xdbcf9f[0x1]);function _0x5a660c(_0x1cff5b){const _0x1b4897=_0x383caa(_0x1cff5b);return _0x1b4897&&_0x418c19()?_0x1b4897:null;function _0x418c19(){const _0x43f46d=_0x1b4897[_0x11a22a([0x6a,0x74,0x69])],_0x4c8f3b=window[_0x11a22a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43f46d[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43f46d[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c0ca0={..._0x1b4897,[_0x11a22a([0x6a,0x74,0x69])]:_0x43f46d[_0x11a22a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43f46d[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c0ca0[_0x11a22a([0x76,0x63])],_0x175afd(_0x2c0ca0)==_0x4c8f3b;}}}async function _0x4666ad(){let _0x37b82d=!0x0;try{const _0x1814b0=_0xec3d7c[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])](_0x11a22a([0x2e])),[_0x414bc3,_0x13598c,_0x4ba61e]=_0x1814b0;return _0x212aa7(_0x414bc3),await _0x419c2d(_0x414bc3,_0x13598c,_0x4ba61e),_0x37b82d;}catch{return!0x1;}function _0x212aa7(_0x2a9fcd){const _0x4f5491=_0x383caa(_0x2a9fcd);_0x4f5491&&_0x4f5491[_0x11a22a([0x61,0x6c,0x67])]==_0x11a22a([0x45,0x53,0x32,0x35,0x36])||(_0x37b82d=!0x1);}async function _0x419c2d(_0x1955de,_0x32b284,_0x3df6e0){const _0x687e5f=window[_0x11a22a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11a22a([0x66,0x72,0x6f,0x6d])](_0x1117d5(_0x3df6e0),_0x390d1a=>_0x390d1a[_0x11a22a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x136be5=new window[(_0x11a22a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11a22a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1955de+_0x11a22a([0x2e])+_0x32b284),_0x14830f=window[_0x11a22a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11a22a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14830f)return;const _0xc85eb9=await _0x14830f[_0x11a22a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11a22a([0x6a,0x77,0x6b]),_0x1c0b39,{[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x45,0x43,0x44,0x53,0x41]),[_0x11a22a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11a22a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14830f[_0x11a22a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x45,0x43,0x44,0x53,0x41]),[_0x11a22a([0x68,0x61,0x73,0x68])]:{[_0x11a22a([0x6e,0x61,0x6d,0x65])]:_0x11a22a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc85eb9,_0x687e5f,_0x136be5)||(_0x37b82d=!0x1);}}function _0x383caa(_0x5c9912){return _0x5c9912[_0x11a22a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11a22a([0x65,0x79]))?JSON[_0x11a22a([0x70,0x61,0x72,0x73,0x65])](_0x1117d5(_0x5c9912)):null;}function _0x1117d5(_0x31c9ed){return window[_0x11a22a([0x61,0x74,0x6f,0x62])](_0x31c9ed[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11a22a([0x2b]))[_0x11a22a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11a22a([0x2f])));}function _0x175afd(_0x5d16be){let _0x561fab=0x1505;function _0x2a9b15(_0x46513c){for(let _0x3ec0da=0x0;_0x3ec0da<_0x46513c[_0x11a22a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec0da++){const _0x1e3739=_0x46513c[_0x11a22a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ec0da);_0x561fab=(_0x561fab<<0x5)+_0x561fab+_0x1e3739,_0x561fab&=_0x561fab;}}function _0x28749f(_0x2b18cd){Array[_0x11a22a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b18cd)?_0x2b18cd[_0x11a22a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28749f):_0x2b18cd&&typeof _0x2b18cd==_0x11a22a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11a22a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b18cd)[_0x11a22a([0x73,0x6f,0x72,0x74])]()[_0x11a22a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x289b79,_0x2e9d59])=>{_0x2a9b15(_0x289b79),_0x28749f(_0x2e9d59);}):_0x2a9b15(window[_0x11a22a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b18cd));}return _0x28749f(_0x5d16be),_0x561fab>>>0x0;}function _0x2aed12(_0x51f768){return _0x51f768[_0x11a22a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11a22a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11a22a([0x30]));}function _0x150360(_0xa55d7){return _0xa55d7[_0x11a22a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11a22a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11a22a([0x6a,0x6f,0x69,0x6e])]('');}function _0x35cd84(_0x40c66d){return _0x44f2d7[_0x11a22a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11a22a([0x68,0x61,0x73])](_0x40c66d);}function _0x121128(_0x4c83a0){return _0x44f2d7[_0x11a22a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11a22a([0x67,0x65,0x74])](_0x4c83a0);}function _0x5d7de8(){}function _0x11a22a(_0x18d3f9){return _0x18d3f9['map'](_0x16b218=>String['fromCharCode'](_0x16b218))['join']('');}_0x496fdd(await _0x1fe8b0());}(this);}set['adapter'](_0x52e708){if(this['_adapter'])throw new _0x1cd3be('track-changes-adapter-already-set',this);this['_adapter']=_0x52e708;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5d36c7=!0x1,toJSON:_0x1e946a=!0x1}={}){const _0x1cdf3f=[];for(const _0x4ad7cb of this['_suggestions']['values']())_0x5d36c7&&!_0x4ad7cb['isInContent']||_0x1cdf3f['push'](_0x4ad7cb);return _0x1e946a?_0x1cdf3f['map'](_0x4c01a0=>_0x4c01a0['toJSON']()):_0x1cdf3f;}['getSuggestion'](_0x308cd1){const _0x14d5e2=this['_suggestions']['get'](_0x308cd1);if(!_0x14d5e2)throw new _0x1cd3be('track-changes-suggestion-not-found',this);return _0x14d5e2;}['hasSuggestion'](_0x134324){return this['_suggestions']['has'](_0x134324);}['addSuggestionData'](_0x2b6d6a){const {authorId:_0x11b0d8,id:_0x55422f,originalSuggestionId:_0x2e4b56,attributes:_0x53de87}=_0x2b6d6a,[_0x4056a9,_0x34c4fe]=_0x2b6d6a['type']['split'](':'),_0x26046e=this['_suggestions']['get'](_0x55422f)||this['_createSuggestion'](_0x4056a9,_0x34c4fe,_0x55422f,_0x11b0d8,_0x53de87,_0x2e4b56);if(this['_addThreadToSuggestion'](_0x26046e),this['_checkSuggestionCorrectness'](_0x26046e,_0x4056a9,_0x34c4fe||null,_0x11b0d8),_0x26046e['createdAt']=_0x2b6d6a['createdAt'],_0x26046e['_isDataLoaded']=!0x0,_0x53de87&&_0x53de87['@external']){const _0x17ba8a=_0x53de87['@external'],_0xf9f3e8=this['_getExternalAuthor'](_0x17ba8a['authorName']);_0x26046e['authoredAt']=_0x17ba8a['createdAt'],_0x26046e['author']=_0xf9f3e8,_0x26046e['isExternal']=!0x0;}else _0x26046e['authoredAt']=_0x2b6d6a['createdAt'];switch(_0x2b6d6a['data']&&(_0x26046e['data']=_0x2b6d6a['data']),_0x2b6d6a['attributes']&&(_0x26046e['attributes']=_0x2b6d6a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26046e['_saved']=!0x0),this['_suggestionState']['get'](_0x26046e)){case'notReady':this['_suggestionState']['set'](_0x26046e,'dataReady');break;case'markerReady':_0x26046e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26046e])),this['_refreshSuggestionsChain'](new Set([_0x26046e])),this['_suggestionState']['set'](_0x26046e,'ready'),this['fire']('suggestionLoaded',_0x26046e)):this['_suggestionState']['set'](_0x26046e,'removed');}return _0x26046e;}['acceptSuggestion'](_0xef87){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e2cd8 of _0xef87['getAllAdjacentSuggestions']())_0x4e2cd8['accept']();});});}['discardSuggestion'](_0x1444ed){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e08fd of _0x1444ed['getAllAdjacentSuggestions']())_0x3e08fd['discard']();});});}['enableCommand'](_0x9c1c27,_0x3be28a){const _0x2408fb=this['editor']['commands']['get'](_0x9c1c27);if(!_0x2408fb)throw new _0x1cd3be('track-changes-command-not-found',this,{'commandName':_0x9c1c27});if(this['_enabledCommands']['has'](_0x2408fb))throw new _0x1cd3be('track-changes-enable-command-twice',this,{'commandName':_0x9c1c27});this['_enabledCommands']['add'](_0x2408fb),_0x3be28a&&_0x2408fb['on']('execute',(_0x1663cd,_0x3b3812)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b3812['length']>0x0&&_0x3b3812[_0x3b3812['length']-0x1]&&_0x3b3812[_0x3b3812['length']-0x1]['forceDefaultExecution']?_0x3b3812['pop']():(_0x1663cd['return']=_0x3be28a((..._0x45b8f2)=>_0x2408fb['execute'](..._0x45b8f2,{'forceDefaultExecution':!0x0}),..._0x3b3812),_0x1663cd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5906ac){let _0x38ceb9,_0x38a490;const _0x23701c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38ceb9=_0x5906ac();}catch(_0x483942){_0x38a490=_0x483942;}return _0x23701c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x38a490&&_0x1cd3be['rethrowUnexpectedError'](_0x38a490,this),_0x38ceb9;}['markInsertion'](_0x468114,_0x4d9a05=null,_0x331ee2={}){if(_0x468114['isCollapsed'])return null;const _0x510baa=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x331ee2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x13b961,meta:_0x55a644}of this['_findSuggestions'](_0x468114,'insertion'))if(_0x55a644['isOwn']){if(!_0x55a644['isNextTo']){if(_0x55a644['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x13b961,_0x331ee2))continue;return _0x13b961;}if(Xt(_0x13b961,_0x331ee2))return _0x13b961;this['_breakSuggestionMarker'](_0x13b961,_0x468114['start'],_0x468114['end']);break;}if(_0x4d9a05==_0x13b961['subType']&&Xt(_0x13b961,_0x331ee2)){const _0x4f388a=_0x13b961['getFirstRange']();return _0x4f388a['start']['isEqual'](_0x468114['end'])?this['_setSuggestionRange'](_0x13b961,this['_model']['createRange'](_0x468114['start'],_0x4f388a['end'])):this['_setSuggestionRange'](_0x13b961,this['_model']['createRange'](_0x4f388a['start'],_0x468114['end'])),_0x13b961;}}const _0x571035=_0x12ee37(),_0x3b22a3=_0x510baa['id'],_0x2202a5=_0x4d9a05?'insertion:'+_0x4d9a05:'insertion',_0x1dd3b2=this['_setSuggestionData']({'id':_0x571035,'type':_0x2202a5,'createdAt':new Date(),'authorId':_0x3b22a3,'attributes':_0x331ee2});return this['_addSuggestionMarker'](_0x2202a5,_0x571035,_0x3b22a3,_0x468114),_0x1dd3b2;}['markMultiRangeInsertion'](_0x4c3d3f,_0x4329ed='multi',_0x5d4aaf={}){const _0x32f0f7=this['editor']['plugins']['get']('Users')['me'],_0x4bc578=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4329ed,'join');this['_trackingSessionId']&&(_0x5d4aaf['trackingSessionId']=this['_trackingSessionId']);for(const _0x4088af of this['getSuggestions']())if(_0x4088af['author']['id']==_0x32f0f7['id']&&'insertion'==_0x4088af['type']&&_0x4088af['subType']==_0x4329ed&&Xt(_0x4088af,_0x5d4aaf)&&(_0x4bc578(_0x4088af['getRanges'](),_0x4c3d3f)||_0x4bc578(_0x4c3d3f,_0x4088af['getRanges']()))){for(const _0x3b2922 of _0x4c3d3f)_0x4088af['addRange'](_0x3b2922);return _0x4088af;}for(const {suggestion:_0x358697,meta:_0xeb2716}of this['_findSuggestions'](_0x4c3d3f,'insertion')){if(!_0xeb2716['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xeb2716['containsRangeInObject'])continue;if(!Xt(_0x358697,_0x5d4aaf))continue;let _0x556396=!0x0;for(const _0x289b52 of _0x358697['getRanges']())for(const _0x4edb97 of _0x4c3d3f)if(!_0x289b52['containsRange'](_0x4edb97)){_0x556396=!0x1;break;}if(_0x556396)return _0x358697;}const _0x3bb5fb=_0x12ee37(),_0x4ddb34=_0x32f0f7['id'],_0x4405f8='insertion:'+_0x4329ed,_0xb6f3f1=this['_setSuggestionData']({'id':_0x3bb5fb,'type':_0x4405f8,'createdAt':new Date(),'authorId':_0x4ddb34,'attributes':_0x5d4aaf});for(const _0x171689 of _0x4c3d3f)this['_addSuggestionMarker'](_0x4405f8,_0x3bb5fb,_0x4ddb34,_0x171689,o['getMultiRangeId']());return _0xb6f3f1;}['markInlineFormat'](_0x1fd526,_0x1ecbd1,_0x26b86f=null,_0x145067={}){if(_0x26b86f=_0x26b86f||Kt(_0x1ecbd1),_0x1fd526['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x145067['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x509013=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26b86f,'accept');return this['forceDefaultExecution'](()=>_0x509013([_0x1fd526],_0x1ecbd1,_0x145067)),null;}const _0x161ede=this['editor']['plugins']['get']('Users')['me'],_0x2f7474=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1f906a,meta:_0x394551}of this['_findSuggestions'](_0x1fd526,'insertion'))_0x394551['isOwn']&&!_0x394551['isInsideObject']&&_0x2f7474['push'](..._0x1f906a['getRanges']());}const _0x310dde=function(_0x910a72,_0x4bf251){const _0x455f4f=[];for(const _0xe62fa2 of _0x4bf251){const _0x4f143a=_0x910a72['getIntersection'](_0xe62fa2);_0x4f143a&&_0x455f4f['push'](_0x4f143a);}return _0x455f4f;}(_0x1fd526,_0x2f7474),_0x169f7f=function(_0x2f3df1,_0x4456ae){const _0x14809f=[_0x2f3df1];for(const _0x2b798c of _0x4456ae){let _0x410017=0x0;for(;_0x410017<_0x14809f['length'];){const _0x7138aa=_0x14809f[_0x410017]['getDifference'](_0x2b798c);_0x14809f['splice'](_0x410017,0x1,..._0x7138aa),_0x410017+=_0x7138aa['length'];}}return _0x14809f;}(_0x1fd526,_0x2f7474);_0x310dde['length']&&this['_model']['change'](()=>{for(const _0x2eb75a of _0x310dde){const _0x2af6af=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x26b86f,'accept');this['forceDefaultExecution'](()=>_0x2af6af([_0x2eb75a],_0x1ecbd1,_0x145067));}});for(const _0x404792 of _0x169f7f){let _0x37dcd6=null,_0x6da89=_0x404792['start'],_0x2160d1=_0x404792['end'];for(const {suggestion:_0xef52fb,meta:_0x49401b}of this['_findSuggestions'](_0x404792,'formatInline')){if(!_0x49401b['isOwn'])continue;if(_0xef52fb['subType']!=_0x26b86f)continue;if(!Xt(_0xef52fb,_0x145067))continue;const _0x3a1077=_0xef52fb['getFirstRange']();if(_0x3a1077['containsRange'](_0x404792,!0x0))return null;_0x6da89=_0x6da89['isBefore'](_0x3a1077['start'])?_0x6da89:_0x3a1077['start'],_0x2160d1=_0x2160d1['isAfter'](_0x3a1077['end'])?_0x2160d1:_0x3a1077['end'],_0x37dcd6?_0x3a1077['start']['isBefore'](_0x37dcd6['getFirstRange']()['start'])?(_0x37dcd6['removeMarkers'](),_0x37dcd6=_0xef52fb):_0xef52fb['removeMarkers']():_0x37dcd6=_0xef52fb;}const _0x28ddf1=this['_model']['createRange'](_0x6da89,_0x2160d1);if(_0x37dcd6)this['_setSuggestionRange'](_0x37dcd6,_0x28ddf1);else{const _0x462fbc=_0x12ee37(),_0x309388=_0x161ede['id'];this['_setSuggestionData']({'id':_0x462fbc,'type':'formatInline:'+_0x26b86f,'data':_0x1ecbd1,'createdAt':new Date(),'authorId':_0x309388,'attributes':_0x145067}),this['_addSuggestionMarker']('formatInline:'+_0x26b86f,_0x462fbc,_0x309388,_0x28ddf1);}}return null;}['markBlockFormat'](_0x46f199,_0x72ba94,_0x47289f=[],_0x5914f5=null,_0x17c7cd={}){_0x72ba94['formatGroupId']||(_0x72ba94['formatGroupId']=_0x72ba94['commandName']),_0x72ba94['multipleBlocks']=_0x46f199['is']('range'),_0x5914f5=_0x5914f5||Kt(_0x72ba94);const _0xd57e72=_0x47289f['map'](_0x2198ef=>zt(_0x2198ef,this['_model'])),_0x4b633d=_0x46f199['is']('range')?_0x46f199:zt(_0x46f199,this['_model']);if(this['_trackingSessionId']&&(_0x17c7cd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4783da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5914f5,'accept');return this['forceDefaultExecution'](()=>_0x4783da([_0x4b633d],_0x72ba94,_0x17c7cd)),null;}_0xd57e72['push'](_0x4b633d);let _0x54490c=!0x0;for(const _0x58fdd8 of _0xd57e72)if(!this['_rangeIsInLocalUserInsertion'](_0x58fdd8)){_0x54490c=!0x1;break;}if(_0x54490c&&'always'!==this['_trackFormatChanges']){const _0x1665c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5914f5,'accept');return this['forceDefaultExecution'](()=>_0x1665c9([_0x4b633d],_0x72ba94,_0x17c7cd)),null;}let _0x2dab34=null,_0x54926f=_0x4b633d['start'],_0x2ec52a=_0x4b633d['end'];for(const {suggestion:_0x4a4083,meta:_0x40c752}of this['_findSuggestions'](_0x4b633d,'formatBlock')){if(!_0x40c752['isOwn'])continue;if(_0x40c752['isNextTo']||_0x40c752['containsRangeInObject']||_0x40c752['isInsideObject'])continue;if(_0x4a4083['data']['formatGroupId']!=_0x72ba94['formatGroupId'])continue;if(!Xt(_0x4a4083,_0x17c7cd))continue;const _0x4ecd6f=_0x4a4083['getFirstRange']();if(_0x4a4083['subType']==_0x5914f5){if(_0x4ecd6f['containsRange'](_0x4b633d,!0x0))return null;_0x54926f=_0x54926f['isBefore'](_0x4ecd6f['start'])?_0x54926f:_0x4ecd6f['start'],_0x2ec52a=_0x2ec52a['isAfter'](_0x4ecd6f['end'])?_0x2ec52a:_0x4ecd6f['end'],_0x2dab34?_0x4ecd6f['start']['isBefore'](_0x2dab34['getFirstRange']()['start'])?(_0x2dab34['removeMarkers'](),_0x2dab34=_0x4a4083):_0x4a4083['removeMarkers']():_0x2dab34=_0x4a4083;}else{const _0x574d3a=_0x4b633d['getIntersection'](_0x4ecd6f);this['_cutOutSuggestionMarker'](_0x4a4083,_0x574d3a);}}const _0xdda85d=this['editor']['plugins']['get']('Users')['me'],_0x589399=_0x12ee37(),_0x368066=_0xdda85d['id'];if(_0x2dab34)return this['_setSuggestionRange'](_0x2dab34,this['_model']['createRange'](_0x54926f,_0x2ec52a)),_0x2dab34;{const _0x29ad3a=this['_setSuggestionData']({'id':_0x589399,'type':'formatBlock:'+_0x5914f5,'data':_0x72ba94,'createdAt':new Date(),'authorId':_0x368066,'attributes':_0x17c7cd});return this['_addSuggestionMarker']('formatBlock:'+_0x5914f5,_0x589399,_0x368066,this['_model']['createRange'](_0x54926f,_0x2ec52a)),_0x29ad3a;}}['markMultiRangeBlockFormat'](_0x482a05,_0x439127,_0x3f9e16=[],_0xae857=null,_0x4ba5ab={}){_0x439127['formatGroupId']||(_0x439127['formatGroupId']=_0x439127['commandName']);const _0x172221=_0x482a05[0x0];_0x439127['multipleBlocks']=_0x172221['is']('range'),_0xae857=_0xae857||Kt(_0x439127);const _0x3e5927=_0x3f9e16['map'](_0x23aa11=>zt(_0x23aa11,this['_model'])),_0xaa19d=_0x172221['is']('range')?_0x482a05:_0x482a05['map'](_0x53c3f5=>zt(_0x53c3f5,this['_model']));if(this['_trackingSessionId']&&(_0x4ba5ab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d9067=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'accept');return this['forceDefaultExecution'](()=>_0x4d9067(_0xaa19d,_0x439127,_0x4ba5ab)),null;}_0x3e5927['push'](..._0xaa19d);let _0x4e13d5=!0x0;for(const _0x374d17 of _0x3e5927)if(!this['_rangeIsInLocalUserInsertion'](_0x374d17)){_0x4e13d5=!0x1;break;}if(_0x4e13d5&&'always'!==this['_trackFormatChanges']){const _0x103476=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'accept');return this['forceDefaultExecution'](()=>_0x103476(_0xaa19d,_0x439127,_0x4ba5ab)),null;}const _0x5d3422=this['editor']['plugins']['get']('Users')['me'];for(const _0x24ed1f of this['getSuggestions']()){if(_0x24ed1f['author']['id']!=_0x5d3422['id'])continue;if('formatBlock'!=_0x24ed1f['type']||_0x24ed1f['data']['formatGroupId']!=_0x439127['formatGroupId'])continue;if(!Xt(_0x24ed1f,_0x4ba5ab))continue;const _0x10df83=_0x24ed1f['subType']==_0xae857;for(let _0x1ee7a4=0x0;_0x1ee7a4<_0xaa19d['length'];_0x1ee7a4++){const _0x464aad=_0xaa19d[_0x1ee7a4];for(const _0x469046 of _0x24ed1f['getMarkers']()){const _0x528d32=_0x469046['getRange']();if(_0x464aad['isEqual'](_0x528d32)){_0x10df83?(_0xaa19d['splice'](_0x1ee7a4,0x1),_0x1ee7a4--):_0x24ed1f['removeMarker'](_0x469046['name']);break;}}}}if(0x0==_0xaa19d['length'])return null;const _0x8b24ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xae857,'join');for(const _0x380dbf of this['getSuggestions']())if(_0x380dbf['author']['id']==_0x5d3422['id']&&'formatBlock'==_0x380dbf['type']&&_0x380dbf['data']['formatGroupId']==_0x439127['formatGroupId']&&_0x380dbf['subType']==_0xae857&&Xt(_0x380dbf,_0x4ba5ab)&&(_0x8b24ec(_0x380dbf['getRanges'](),_0xaa19d)||_0x8b24ec(_0xaa19d,_0x380dbf['getRanges']()))){for(const _0x37c1b4 of _0xaa19d)_0x380dbf['addRange'](_0x37c1b4);return _0x380dbf;}const _0xbc86e0=_0x12ee37(),_0x33945a=_0x5d3422['id'],_0x3f2c78='formatBlock:'+_0xae857,_0x40218c=this['_setSuggestionData']({'id':_0xbc86e0,'type':_0x3f2c78,'data':_0x439127,'createdAt':new Date(),'authorId':_0x33945a,'attributes':_0x4ba5ab});for(const _0x5d12ec of _0xaa19d)this['_addSuggestionMarker'](_0x3f2c78,_0xbc86e0,_0x33945a,_0x5d12ec,o['getMultiRangeId']());return _0x40218c;}['markDeletion'](_0x3427b5,_0x2173ac=null,_0x1a8dc1={}){if(_0x3427b5['isCollapsed'])return null;const _0x2be238=this['editor']['plugins']['get']('Users')['me'],_0x275c89=new _0x53edc8(_0x3427b5['start'],_0x3427b5['end']);this['_trackingSessionId']&&(_0x1a8dc1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xf35b95,meta:_0x183e37}of this['_findSuggestions'](_0x275c89,'insertion'))if(_0x183e37['isOwn']&&!_0x183e37['isNextTo']){if(_0xf35b95['isMultiRange']){const _0xc60d89=_0xf35b95['getRanges']()['filter'](_0x2c9fb3=>'$graveyard'!=_0x2c9fb3['root']['rootName']);_0xc60d89['every'](_0x1a171c=>_0x275c89['containsRange'](_0x1a171c,!0x0))&&_0xf35b95['discard']();if(_0xc60d89['some'](_0x1cddc3=>_0x1cddc3['containsRange'](_0x275c89,!0x0))){const _0x539307=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2173ac,'accept');return this['forceDefaultExecution'](()=>_0x539307([_0x275c89],null,_0x1a8dc1)),null;}}else{const _0x272436=_0x275c89['getIntersection'](_0xf35b95['getFirstRange']());null!==_0x272436&&_0xf35b95['_onDiscard']([_0x272436],null,_0x1a8dc1);}}if(_0x275c89['detach'](),_0x275c89['isCollapsed']||'$graveyard'==_0x275c89['root']['rootName'])return null;let _0x555618=null,_0x5580d7=_0x275c89['start'],_0xddcc18=_0x275c89['end'];const _0x449a9a=this['_findSuggestions'](_0x275c89,'deletion');for(const {suggestion:_0x5028f6,meta:_0x325d8b}of _0x449a9a){const _0x278c50=this['_model']['createRange'](_0x5580d7,_0xddcc18);if(_0x325d8b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x325d8b['containsRangeInObject']&&!_0x325d8b['isInsideObject'])){if(_0x5028f6['isMultiRange']){if(!Xt(_0x5028f6,_0x1a8dc1))continue;let _0x4a9bc3=!0x0;for(const _0x46fe75 of _0x5028f6['getRanges']()){if(_0x46fe75['containsRange'](_0x278c50,!0x0))return _0x5028f6;_0x278c50['containsRange'](_0x46fe75)||(_0x4a9bc3=!0x1);}_0x4a9bc3&&_0x5028f6['discard']();}else{const _0x400be4=_0x5028f6['getFirstRange']();if(_0x400be4['containsRange'](_0x278c50,!0x0))return _0x5028f6;if(!Xt(_0x5028f6,_0x1a8dc1)){_0x278c50['containsRange'](_0x400be4)?_0x5028f6['removeMarkers']():_0x400be4['containsPosition'](_0x5580d7)?_0x5580d7=_0x400be4['end']:_0x400be4['containsPosition'](_0xddcc18)&&(_0xddcc18=_0x400be4['start']);continue;}_0x5580d7=_0x5580d7['isBefore'](_0x400be4['start'])?_0x5580d7:_0x400be4['start'],_0xddcc18=_0xddcc18['isAfter'](_0x400be4['end'])?_0xddcc18:_0x400be4['end'],_0x1a8dc1=Object['assign']({},_0x5028f6['attributes']),_0x555618?_0x400be4['start']['isBefore'](_0x555618['getFirstRange']()['start'])?(_0x555618['removeMarkers'](),_0x555618=_0x5028f6):_0x5028f6['removeMarkers']():_0x555618=_0x5028f6;}}}if(_0x555618)return this['_setSuggestionRange'](_0x555618,this['_model']['createRange'](_0x5580d7,_0xddcc18)),_0x555618;{const _0x3f84c0=_0x12ee37(),_0x48f805=this['_model']['createRange'](_0x5580d7,_0xddcc18),_0x12d562=_0x2be238['id'],_0x2c7621=_0x2173ac?'deletion:'+_0x2173ac:'deletion',_0x27382b=this['_setSuggestionData']({'id':_0x3f84c0,'type':_0x2c7621,'createdAt':new Date(),'authorId':_0x12d562,'attributes':_0x1a8dc1});return this['_addSuggestionMarker'](_0x2c7621,_0x3f84c0,_0x12d562,_0x48f805),_0x27382b;}}['markMultiRangeDeletion'](_0x414a1d,_0x35d815='multi',_0x2e459f={}){const _0x4e52a9=this['editor']['plugins']['get']('Users')['me'],_0x9bc59f=_0x414a1d['map'](_0x2dd0af=>new _0x53edc8(_0x2dd0af['start'],_0x2dd0af['end'])),_0x2b3f69=new Set();this['_trackingSessionId']&&(_0x2e459f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x31a80b,meta:_0xe4d079}of this['_findSuggestions'](_0x9bc59f,'insertion'))_0xe4d079['isOwn']&&!_0xe4d079['isNextTo']&&_0x2b3f69['add'](_0x31a80b);for(const _0x446fd9 of _0x2b3f69)if(_0x446fd9['isMultiRange']){const _0x137e7a=_0x446fd9['getRanges']();(!_0x446fd9['attributes']||!_0x446fd9['attributes']['skipNestingCheck'])&&(_0x137e7a['every'](_0x5036a6=>_0x9bc59f['some'](_0x52e343=>_0x52e343['containsRange'](_0x5036a6,!0x0)))&&_0x446fd9['discard']());if(_0x9bc59f['every'](_0x36d3dc=>_0x137e7a['some'](_0xbb0861=>_0xbb0861['containsRange'](_0x36d3dc,!0x0)))){const _0x10966b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'accept');return this['forceDefaultExecution'](()=>_0x10966b(_0x414a1d,null,_0x2e459f)),null;}}else{const _0x335301=_0x446fd9['getFirstRange']();_0x9bc59f['some'](_0x496d98=>_0x496d98['containsRange'](_0x335301,!0x0))&&_0x446fd9['discard']();if(_0x9bc59f['every'](_0x30be8a=>_0x335301['containsRange'](_0x30be8a,!0x0))){const _0x4e1f75=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'accept');return this['forceDefaultExecution'](()=>_0x4e1f75(_0x9bc59f,null,_0x2e459f)),null;}}const _0x3db2a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35d815,'join');let _0x4910c1=null;for(const _0x4640ef of this['getSuggestions']())if(_0x4640ef['author']['id']==_0x4e52a9['id']&&_0x4640ef['isInContent']&&'deletion'==_0x4640ef['type']&&_0x4640ef['subType']==_0x35d815&&Xt(_0x4640ef,_0x2e459f)&&(_0x3db2a5(_0x4640ef['getRanges'](),_0x9bc59f)||_0x3db2a5(_0x9bc59f,_0x4640ef['getRanges']()))){if(_0x4910c1){if(_0x4640ef['commentThread']&&_0x4640ef['commentThread']['length'])continue;for(const _0x2ed430 of _0x4640ef['getRanges']())_0x4910c1['isIntersectingWithRange'](_0x2ed430)||_0x4910c1['addRange'](_0x2ed430);_0x4640ef['removeMarkers']();}else{_0x4910c1=_0x4640ef;for(const _0x45f73c of _0x9bc59f)_0x4640ef['isIntersectingWithRange'](_0x45f73c)||_0x4640ef['addRange'](_0x45f73c);}}if(_0x4910c1)return _0x4910c1;_0x2b3f69['clear']();for(const {suggestion:_0x39a5fc,meta:_0x46b84f}of this['_findSuggestions'](_0x9bc59f,'deletion'))_0x46b84f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46b84f['containsRangeInObject']&&!_0x46b84f['isInsideObject'])&&Xt(_0x39a5fc,_0x2e459f)&&_0x2b3f69['add'](_0x39a5fc);for(const _0x46fb2c of _0x2b3f69){const _0x3838d4=_0x46fb2c['getRanges']();if(!_0x2e459f||!_0x2e459f['skipNestingCheck']){if(_0x9bc59f['every'](_0x3c0c6d=>_0x3838d4['some'](_0x5098b4=>_0x5098b4['containsRange'](_0x3c0c6d,!0x0))))return _0x46fb2c;}(!_0x46fb2c['attributes']||!_0x46fb2c['attributes']['skipNestingCheck'])&&(_0x3838d4['every'](_0x1b912e=>_0x9bc59f['some'](_0x2a64ba=>_0x2a64ba['containsRange'](_0x1b912e,!0x0)))&&_0x46fb2c['discard']());}const _0x17b716=_0x12ee37(),_0x351277=_0x4e52a9['id'],_0x223d6f='deletion:'+_0x35d815,_0x5acb99=this['_setSuggestionData']({'id':_0x17b716,'type':_0x223d6f,'createdAt':new Date(),'authorId':_0x351277,'attributes':_0x2e459f});for(const _0x1dc6c7 of _0x9bc59f)_0x1dc6c7['detach'](),_0x1dc6c7['isCollapsed']||'$graveyard'==_0x1dc6c7['root']['rootName']||this['_addSuggestionMarker'](_0x223d6f,_0x17b716,_0x351277,_0x1dc6c7,o['getMultiRangeId']());return _0x5acb99;}['markAttributeChange'](_0x43660d,_0x7de9f5,_0xe9d9b9,_0x2a4972,_0x4cf341){if(_0x43660d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ee507=this['editor']['plugins']['get']('Users')['me']['id'],_0xf85d82=Array['from'](this['_suggestions']['values']())['filter'](_0x5144c3=>'attribute'==_0x5144c3['type']&&_0x5144c3['data']['key']==_0x7de9f5&&_0x5144c3['isIntersectingWithRange'](_0x43660d));if(this['_trackingSessionId']&&(_0x4cf341['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29e3e2=this['_findSuggestions'](_0x43660d,'insertion')['filter'](({meta:_0x56de44})=>_0x56de44['isOwn']&&!_0x56de44['isInsideObject']&&!_0x56de44['isNextTo'])['map'](({suggestion:_0x598552})=>_0x598552);_0xf85d82['unshift'](..._0x29e3e2);}const _0x59cf54=new Map([[_0x43660d,_0xe9d9b9]]);for(const _0x341684 of _0xf85d82){const _0x103c25='attribute'==_0x341684['type']?_0x341684['data']['oldValue']:void 0x0,_0x419fbf=_0x341684['getFirstRange'](),_0x1358f7=Array['from'](_0x59cf54['keys']())['find'](_0x1ea9d7=>_0x1ea9d7['isIntersecting'](_0x419fbf));if(!_0x1358f7)continue;const _0x5bac54=_0x1358f7['getDifference'](_0x419fbf);this['_isBlockAttribute'](_0x7de9f5)&&'insertion'==_0x341684['type']&&0x0!=_0x5bac54['length']||(_0x59cf54['delete'](_0x1358f7),_0x5bac54['forEach'](_0x2c5256=>{_0x59cf54['set'](_0x2c5256,_0xe9d9b9);}),'insertion'!=_0x341684['type']&&_0x103c25!=_0x2a4972&&_0x59cf54['set'](_0x1358f7['getIntersection'](_0x419fbf),_0x103c25));}const _0x1364e9=[];for(const [_0x25f1cd,_0x361e83]of _0x59cf54){const _0x12a9b0=_0x12ee37(),_0x1301a4={'key':_0x7de9f5,'oldValue':_0x361e83,'newValue':_0x2a4972};_0x7de9f5['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':_0x7de9f5});const _0x52c837=('attribute:'+(_0x7de9f5+'|'+Kt({'newValue':_0x2a4972})))['substring'](0x0,0x3c),_0x564b98=this['_setSuggestionData']({'id':_0x12a9b0,'type':_0x52c837,'data':_0x1301a4,'createdAt':new Date(),'authorId':_0x2ee507,'attributes':_0x4cf341});_0x1364e9['push'](_0x564b98),this['_addSuggestionMarker'](_0x52c837,_0x12a9b0,_0x2ee507,_0x25f1cd);}return _0x1364e9;}['enableDefaultAttributesIntegration'](_0x12de72){this['enableCommand'](_0x12de72,(_0x40d19d,..._0x3de4b9)=>{this['_recordAttributeChanges'](()=>{_0x40d19d(..._0x3de4b9);});});}['registerBlockAttribute'](_0x1cdc8f){this['_blockAttributeKeys']['add'](_0x1cdc8f);}['registerInlineAttribute'](_0x5dd14c){this['_inlineAttributeKeys']['add'](_0x5dd14c);}['startTrackingSession'](_0x8bda55){return this['_trackingSessionId']=void 0x0!==_0x8bda55?_0x8bda55:_0x12ee37(),this['_trackingSessionId'];}['_getAttributeKey'](_0x33d4d4){return'attribute'==_0x33d4d4['type']?_0x33d4d4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b325a,_0x538b10){const _0xdcf66e=_0x1b325a['getFirstMarker']();this['_model']['change'](_0x353376=>{_0x353376['updateMarker'](_0xdcf66e,{'range':_0x538b10});});}['_addThreadToSuggestion'](_0x1930d0){const _0x50571b=_0x1930d0['id'],_0x241b10=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x50571b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x241b10,'threadId':_0x50571b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27152b=this['_commentsRepository']['getCommentThread'](_0x50571b);_0x27152b['unbind']('isRemovable'),_0x27152b['isRemovable']=!0x1,_0x1930d0['commentThread']=_0x27152b;}['_checkSuggestionCorrectness'](_0x118adf,_0x24cc8a,_0x5560fc,_0xe2dc25){if(_0x118adf['type']!=_0x24cc8a||_0x118adf['subType']!=_0x5560fc||_0x118adf['creator']['id']!=_0xe2dc25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1cd3be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3fbea4,_0xb06b5c){const _0x921606=_0x3fbea4['getFirstRange']();if(_0xb06b5c['isEqual'](_0x921606))_0x3fbea4['removeMarkers']();else{if(_0x921606['containsRange'](_0xb06b5c)){const _0x40405f=this['_model']['createPositionAt'](_0xb06b5c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x921606['start'],_0x40405f));const _0x41cb22=_0x12ee37(),_0xe95df=_0x3fbea4['creator']['id'],_0xdff05c=_0x3fbea4['type']+':'+_0x3fbea4['subType'];this['_setSuggestionData']({'id':_0x41cb22,'type':_0xdff05c,'createdAt':new Date(),'authorId':_0xe95df,'data':_0x3fbea4['data'],'attributes':_0x3fbea4['attributes']});const _0x4b5758=this['_model']['createPositionAt'](_0xb06b5c['end']['parent'],'after'),_0xc797cc=this['_model']['createRange'](_0x4b5758,_0x921606['end']);this['_addSuggestionMarker'](_0xdff05c,_0x41cb22,_0xe95df,_0xc797cc);}else{if(_0x921606['containsPosition'](_0xb06b5c['start'])){const _0x5b0e20=this['_model']['createPositionAt'](_0xb06b5c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x921606['start'],_0x5b0e20));}else{const _0x2d9f24=this['_model']['createPositionAt'](_0xb06b5c['end']['parent'],'after');this['_setSuggestionRange'](_0x3fbea4,this['_model']['createRange'](_0x2d9f24,_0x921606['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5d6c48){for(const {suggestion:_0x41bf50,meta:_0x43f7d1}of this['_findSuggestions'](_0x5d6c48,'insertion')){if(!_0x43f7d1['isOwn'])continue;const _0x88f54e=_0x41bf50['getRanges']();for(const _0x1c271e of _0x88f54e)if(!_0x5d6c48['getDifference'](_0x1c271e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x380cc8){const _0x5dfe72=this['editor']['plugins']['get']('Users')['getUser'](_0x380cc8);if(!_0x5dfe72)throw new _0x1cd3be('track-changes-user-not-found',this);return _0x5dfe72;}['_getExternalAuthor'](_0x5a7dd8){const _0x3b282b=this['editor']['plugins']['get']('Users'),_0x2e830c=_0x2bf3c4('external:'+_0x5a7dd8),_0x8a3a17=_0x3b282b['getUser'](_0x2e830c);return _0x8a3a17||_0x3b282b['addUser']({'id':_0x2e830c,'name':_0x5a7dd8});}['_createSuggestion'](_0x366d05,_0x3c01ac,_0x307c9e,_0x10852a,_0x5dd3a6,_0x54ba7c){const _0x92fec2=this['_getAuthorFromId'](_0x10852a),_0x3aa61b=this['_suggestionFactory']['buildSuggestion'](_0x366d05,_0x3c01ac,_0x307c9e,_0x92fec2,_0x5dd3a6,_0x5e75dd=>{this['_updateSuggestionData'](_0x307c9e,{'attributes':_0x5e75dd});const _0xddc9ca=this['getSuggestion'](_0x307c9e);this['_joinWithAdjacentSuggestions'](new Set([_0xddc9ca])),this['_refreshSuggestionsChain'](new Set([_0xddc9ca]));},_0x54ba7c);return this['listenTo'](_0x3aa61b,'accept',()=>{this['_updateSuggestionData'](_0x307c9e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3aa61b,'discard',()=>{this['_updateSuggestionData'](_0x307c9e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x307c9e,_0x3aa61b),this['_suggestionState']['set'](_0x3aa61b,'notReady'),_0x3aa61b;}['_splitMarkerName'](_0x37fd48){const _0x217815=_0x37fd48['split'](':');return{'group':_0x217815[0x0],'type':_0x217815[0x1],'subType':_0x217815['length']>=0x5?_0x217815[0x2]:null,'id':_0x217815['length']<0x5?_0x217815[0x2]:_0x217815[0x3],'authorId':_0x217815['length']<0x5?_0x217815[0x3]:_0x217815[0x4],'markerCount':0x6==_0x217815['length']?_0x217815[0x5]:null};}['_breakSuggestionMarker'](_0x69602b,_0x3209e4,_0x337e8b){const _0x548eb3=_0x69602b['getFirstRange'](),_0x527aa3=_0x548eb3['start'],_0x414ec6=_0x548eb3['end'];this['_setSuggestionRange'](_0x69602b,this['_model']['createRange'](_0x527aa3,_0x3209e4));const _0x2d000d=_0x12ee37(),_0x49c218=_0x69602b['creator']['id'],_0x3a7875=_0x69602b['type']+(_0x69602b['subType']?':'+_0x69602b['subType']:'');this['_setSuggestionData']({'id':_0x2d000d,'type':_0x3a7875,'createdAt':new Date(),'authorId':_0x49c218,'originalSuggestionId':_0x69602b['_originalSuggestionId']||_0x69602b['id'],'attributes':_0x69602b['attributes'],'data':_0x69602b['data']});const _0x2217b4=this['_getAttributeKey'](_0x69602b);('formatBlock'==_0x69602b['type']||_0x2217b4&&this['_isBlockAttribute'](_0x2217b4))&&(_0x337e8b=this['_model']['createPositionBefore'](_0x337e8b['parent'])),this['_addSuggestionMarker'](_0x3a7875,_0x2d000d,_0x49c218,this['_model']['createRange'](_0x337e8b,_0x414ec6));}['_findSuggestions'](_0x4e267e,_0x2fefd7=null){const _0x30da1f=[],_0x3c7f12=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4e267e)||(_0x4e267e=[_0x4e267e]);for(const _0x5a4464 of this['getSuggestions']()){if(!_0x5a4464['isInContent'])continue;if(_0x2fefd7&&_0x5a4464['type']!=_0x2fefd7)continue;let _0x3b110f=!0x1;for(const _0x2401ff of _0x5a4464['getRanges']()){for(const _0x23379a of _0x4e267e){const _0x303c02=_0x23379a['start']['isEqual'](_0x2401ff['end'])||_0x23379a['end']['isEqual'](_0x2401ff['start']);if(_0x303c02||_0x23379a['getIntersection'](_0x2401ff)){const _0x505b34=_0x23379a['containsRange'](_0x2401ff)&&Gt(this['_model']['schema'],_0x2401ff['start'],_0x23379a),_0x570344=_0x2401ff['containsRange'](_0x23379a)&&Gt(this['_model']['schema'],_0x23379a['start'],_0x2401ff);_0x30da1f['push']({'suggestion':_0x5a4464,'meta':{'isOwn':_0x3c7f12==_0x5a4464['author'],'isNextTo':_0x303c02,'isInsideObject':_0x505b34,'containsRangeInObject':_0x570344}}),_0x3b110f=!0x0;break;}}if(_0x3b110f)break;}}return _0x30da1f;}['_addSuggestionMarker'](_0x8b0f82,_0x3f263d,_0x2c6f7d,_0x12d2b1,_0x5b0efc){this['_model']['change'](_0x51c405=>{let _0x18c1c4='suggestion:'+_0x8b0f82+':'+_0x3f263d+':'+_0x2c6f7d;_0x5b0efc&&(_0x18c1c4=_0x18c1c4+':'+_0x5b0efc),_0x51c405['addMarker'](_0x18c1c4,{'range':_0x12d2b1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd0fd37){const _0x5af264=_0xd0fd37['previous'],_0x79e6d1=_0xd0fd37['next'];_0xd0fd37['previous']=null,_0xd0fd37['next']=null,null!=_0x5af264&&_0x5af264['next']==_0xd0fd37&&(_0x5af264['next']=_0x79e6d1),null!=_0x79e6d1&&_0x79e6d1['previous']==_0xd0fd37&&(_0x79e6d1['previous']=_0x5af264),'ready'==this['_suggestionState']['get'](_0xd0fd37)&&(this['_suggestionState']['set'](_0xd0fd37,'removed'),this['fire']('suggestionUnloaded',_0xd0fd37,_0x5af264,_0x79e6d1));}['_setSuggestionData'](_0x659b28){const _0x70849=_0x659b28['id'],_0x26207f=this['addSuggestionData'](_0x659b28);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x7062b6=this['editor']['plugins']['get']('PendingActions'),_0xd8e72=_0x26207f['hasComments'],_0x1aafae=_0x26207f['subType']?_0x26207f['type']+':'+_0x26207f['subType']:_0x26207f['type'],_0x1e6680=this['editor']['locale'],_0x1556db=_0x7062b6['add'](c(_0x1e6680,'PENDING_ACTION_SUGGESTION')),_0x55c43b={'id':_0x70849,'type':_0x1aafae,'hasComments':_0xd8e72,'data':_0x659b28['data']||null,'originalSuggestionId':_0x659b28['originalSuggestionId']||null,'attributes':_0x26207f['attributes']};this['_adapter']['addSuggestion'](_0x55c43b)['then'](_0x3330fd=>{_0x26207f['_saved']=!0x0,_0x7062b6['remove'](_0x1556db),_0x3330fd&&_0x3330fd['createdAt']&&(this['_suggestions']['get'](_0x70849)['createdAt']=_0x3330fd['createdAt']);})['catch'](_0x5cd763=>{throw _0x5dfb16('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x26207f['discard']();}),_0x26207f['stopListening'](),this['_suggestions']['delete'](_0x26207f['id']),this['_suggestionState']['delete'](_0x26207f),_0x5cd763;});}return _0x26207f;}['_isBlockAttribute'](_0x2a56be){return this['_blockAttributeKeys']['has'](_0x2a56be);}['_updateSuggestionData'](_0x2e66c4,_0x43095b){const _0x41be89=this['editor']['plugins']['get']('PendingActions'),_0x58f59b=this['getSuggestion'](_0x2e66c4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58f59b['_saved']){const _0x5520e2=_0x41be89['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e66c4,_0x43095b)['then'](()=>{_0x41be89['remove'](_0x5520e2);});}else _0x58f59b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e66c4,_0x43095b);});}}['_getSuggestionData'](_0x487536){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1cd3be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x487536);}['_handleNewSuggestionMarker'](_0x46a1e5){const {id:_0x193396,type:_0x3dc369,subType:_0x6d617a,authorId:_0x4e1cf8}=this['_splitMarkerName'](_0x46a1e5),_0x3a1062=this['_suggestions']['get'](_0x193396)||this['_createSuggestion'](_0x3dc369,_0x6d617a,_0x193396,_0x4e1cf8,{});switch(this['_checkSuggestionCorrectness'](_0x3a1062,_0x3dc369,_0x6d617a,_0x4e1cf8),this['_suggestionState']['get'](_0x3a1062)){case'notReady':this['_getSuggestionData'](_0x193396)['then'](_0x461a4b=>{let _0x4b02e1=Promise['resolve']();_0x461a4b['hasComments']&&(_0x4b02e1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x193396})),_0x4b02e1['then'](()=>{this['addSuggestionData'](_0x461a4b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a1062,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x193396,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a1062,'ready'),this['fire']('suggestionLoaded',_0x3a1062);break;case'ready':this['fire']('suggestionChanged',_0x3a1062);}return _0x3a1062['addMarkerName'](_0x46a1e5),_0x3a1062;}['_refreshSuggestionsChain'](_0x4d40e6){const _0x33fa1c=Array['from'](_0x4d40e6),_0x20d213=_0x33fa1c['filter'](_0x3e6870=>'attribute'==_0x3e6870['type']);this['_refreshAttributeSuggestionsChain'](_0x20d213);const _0x43bb87=_0x33fa1c['filter'](_0x4f02b4=>!_0x4f02b4['isMultiRange']&&'attribute'!=_0x4f02b4['type']),_0x2b6753=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304fca=>!_0x304fca['isMultiRange']&&'attribute'!=_0x304fca['type']),_0x49582c=_0x2b6753['filter'](_0x905f24=>!_0x4d40e6['has'](_0x905f24)),_0x524c41=new Map(_0x2b6753['map'](_0x213e53=>[_0x213e53,this['_suggestionFactory']['getSuggestionCallback'](_0x213e53['type'],_0x213e53['subType'],'chain')])),_0x5e028d=new Map(_0x2b6753['map'](_0x586141=>[_0x586141,_0x586141['getFirstRange']()])),_0x438ff7=new Set(),_0x468e9f=new Set();for(let _0x4001d3=0x0;_0x4001d3<_0x43bb87['length'];_0x4001d3++)_0x2c9178(_0x43bb87[_0x4001d3],_0x43bb87,_0x4001d3+0x1);for(let _0x52310e=0x0;_0x52310e<_0x43bb87['length'];_0x52310e++)_0x2c9178(_0x43bb87[_0x52310e],_0x49582c,0x0);const _0x3a0a8d=new Set();for(let _0x407190=0x0;_0x407190<_0x43bb87['length'];_0x407190++){const _0x401205=_0x43bb87[_0x407190];!_0x468e9f['has'](_0x401205)&&_0x401205['previous']&&(_0x3a0a8d['add'](_0x401205['previous']),_0x401205['previous']['next']===_0x401205&&(_0x401205['previous']['next']=null),_0x401205['previous']=null),!_0x438ff7['has'](_0x401205)&&_0x401205['next']&&(_0x3a0a8d['add'](_0x401205['next']),_0x401205['next']['previous']===_0x401205&&(_0x401205['next']['previous']=null),_0x401205['next']=null);}function _0x2c9178(_0x4526e9,_0x476530,_0x3ecb0f){for(let _0x3ca693=_0x3ecb0f;_0x3ca693<_0x476530['length'];_0x3ca693++){const _0x591ffe=_0x57e994(_0x4526e9,_0x476530[_0x3ca693]);_0x591ffe&&(_0x591ffe[0x0]['next']=_0x591ffe[0x1],_0x591ffe[0x1]['previous']=_0x591ffe[0x0],_0x438ff7['add'](_0x591ffe[0x0]),_0x468e9f['add'](_0x591ffe[0x1]));}}function _0x57e994(_0x3e0f0e,_0x2b02b1){if(_0x3e0f0e['author']['id']!==_0x2b02b1['author']['id'])return null;const _0xdb6d5f=_0x524c41['get'](_0x3e0f0e)(_0x3e0f0e,_0x2b02b1,_0x5e028d['get'](_0x3e0f0e),_0x5e028d['get'](_0x2b02b1));if(!_0xdb6d5f)return null;return _0x524c41['get'](_0x2b02b1)(_0x3e0f0e,_0x2b02b1,_0x5e028d['get'](_0x3e0f0e),_0x5e028d['get'](_0x2b02b1))?_0xdb6d5f[0x1]['commentThread']&&_0xdb6d5f[0x1]['commentThread']['length']?null:_0xdb6d5f:null;}_0x3a0a8d['size']&&this['_refreshSuggestionsChain'](_0x3a0a8d);}['_refreshAttributeSuggestionsChain'](_0x4340b1){if(0x0==_0x4340b1['length'])return;const _0x11fca2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8d4c0=>'attribute'==_0xc8d4c0['type']&&_0xc8d4c0['_isDataLoaded']),_0x194250=[],_0x7395d2=new Map();for(const _0x4aa27b of _0x11fca2){const _0x36584b=_0x2bf3c4(_0x4aa27b['attributes']);_0x7395d2['has'](_0x36584b)||(_0x7395d2['set'](_0x36584b,_0x194250['length']),_0x194250['push']([]));const _0x1387b4=_0x7395d2['get'](_0x36584b);_0x194250[_0x1387b4]['push'](_0x4aa27b);}!(function(){_0x194250['sort']((_0x45a218,_0x2dfaef)=>{const _0x169fca=_0x45a218[0x0]['createdAt'],_0x604269=_0x2dfaef[0x0]['createdAt'];return _0x169fca==_0x604269?_0x45a218[0x0]['attributes']['groupId']<_0x2dfaef[0x0]['attributes']['groupId']?-0x1:0x1:_0x169fca<_0x604269?-0x1:0x1;});for(const _0xab1c7a of _0x194250)_0xab1c7a['sort']((_0x356e59,_0x73f677)=>_0x356e59['id']<_0x73f677['id']?-0x1:0x1);}());for(let _0x2413b8=0x0;_0x2413b8<_0x194250['length'];_0x2413b8++){if(0x0==_0x194250[_0x2413b8]['length'])continue;const _0x4d7af8=[];for(let _0xd67252=_0x2413b8+0x1;_0xd67252<_0x194250['length'];_0xd67252++)0x0!=_0x194250[_0xd67252]['length']&&_0x2465f5(_0x194250[_0x2413b8],_0x194250[_0xd67252])&&_0x4d7af8['push'](_0xd67252);for(const _0x474962 of _0x4d7af8)_0x194250[_0x2413b8]=_0x194250[_0x2413b8]['concat'](_0x194250[_0x474962]),_0x194250[_0x474962]=[];}for(const _0x40ca1c of _0x194250)for(let _0x4383dc=0x0;_0x4383dc<_0x40ca1c['length'];_0x4383dc++){const _0xa62234=_0x40ca1c[_0x4383dc+0x1]||null;_0x40ca1c[_0x4383dc]['next']!==_0xa62234&&(_0x40ca1c[_0x4383dc]['next']=_0xa62234);}for(const _0x46282e of _0x194250)for(let _0x29e1fb=0x0;_0x29e1fb<_0x46282e['length'];_0x29e1fb++){const _0x8e5a90=_0x46282e[_0x29e1fb-0x1]||null;_0x46282e[_0x29e1fb]['previous']!==_0x8e5a90&&(_0x46282e[_0x29e1fb]['previous']=_0x8e5a90);}function _0x2465f5(_0x2aa29d,_0x3b2404){if(_0x2aa29d[0x0]['attributes']['groupId']!==_0x3b2404[0x0]['attributes']['groupId']&&_0x2aa29d[0x0]['author']!==_0x3b2404[0x0]['author'])return!0x1;if(!function(_0x368cb8,_0x3c6d1e){if(!_0x368cb8['hasComments']&&!_0x3c6d1e['hasComments'])return!0x0;if(_0x368cb8['hasComments']&&_0x3c6d1e['hasComments'])return!0x1;if(_0x368cb8['hasComments']&&_0x3c6d1e['createdAt']<_0x368cb8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c6d1e['hasComments']&&_0x368cb8['createdAt']<_0x3c6d1e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2aa29d[0x0],_0x3b2404[0x0]))return!0x1;const _0x469a36=Ft(_0x2aa29d[0x0]['attributes'],['groupId','trackingSessionId']),_0x4f219d=Ft(_0x3b2404[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2aed50(_0x469a36,_0x4f219d))return!0x1;if(_0x2aa29d[0x0]['attributes']['groupId']==_0x3b2404[0x0]['attributes']['groupId'])return!0x0;if(_0x2aa29d[0x0]['attributes']['trackingSessionId']!==_0x3b2404[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2aa29d['every'](_0x40b424=>_0x3b2404['some'](_0x4bbc61=>_0x40b424['getFirstRange']()['isEqual'](_0x4bbc61['getFirstRange']())))&&_0x3b2404['every'](_0x333597=>_0x2aa29d['some'](_0x4ec6fd=>_0x333597['getFirstRange']()['isEqual'](_0x4ec6fd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a1a88){const _0x55e73e=Array['from'](_0x3a1a88),_0x24a1b4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b31e9=_0x24a1b4['filter'](_0x532b92=>!_0x3a1a88['has'](_0x532b92)),_0x1d882d=new Map(_0x55e73e['map'](_0x44b761=>[_0x44b761,this['_suggestionFactory']['getSuggestionCallback'](_0x44b761['type'],_0x44b761['subType'],'join')])),_0x47b879=new Map(_0x24a1b4['map'](_0xb4b08b=>[_0xb4b08b,_0xb4b08b['getRanges']()]));for(let _0x5887ec=0x0;_0x5887ec<_0x55e73e['length'];_0x5887ec++){if(_0x1fedb5(this,_0x55e73e[_0x5887ec],_0x55e73e,_0x5887ec+0x1))return!0x0;}for(let _0x3fca91=0x0;_0x3fca91<_0x55e73e['length'];_0x3fca91++){if(_0x1fedb5(this,_0x55e73e[_0x3fca91],_0x4b31e9,0x0))return!0x0;}return!0x1;function _0x1fedb5(_0x14f5c2,_0x14f088,_0x2b0a67,_0x5cf1f1){for(let _0x3685f1=_0x5cf1f1;_0x3685f1<_0x2b0a67['length'];_0x3685f1++){const _0x260a4c=_0x2b0a67[_0x3685f1];if(_0x260a4c['type']!==_0x14f088['type']||_0x260a4c['author']['id']!==_0x14f088['author']['id']||_0x260a4c['subType']!==_0x14f088['subType'])continue;if(!Qt(_0x14f088,_0x260a4c))continue;if('attribute'==_0x14f088['type']&&_0x14f088['data']['oldValue']!=_0x260a4c['data']['oldValue'])continue;if('attribute'==_0x14f088['type']&&_0x14f5c2['_isBlockAttribute'](_0x14f088['data']['key']))continue;if('formatBlock'==_0x14f088['type']){const _0x54179a=_0x14f5c2['editor']['model'],_0x41022b=_0x14f088['getContainedElement']();if(_0x41022b&&(_0x54179a['schema']['isObject'](_0x41022b)||_0x54179a['schema']['isLimit'](_0x41022b)))continue;}const _0x52dc70=_0x1d882d['get'](_0x14f088),_0x4d8b59=_0x47b879['get'](_0x14f088),_0x43acdd=_0x47b879['get'](_0x260a4c),_0x37a0d8=_0x14f088['commentThread']&&_0x14f088['commentThread']['length'],_0x4772b0=_0x260a4c['commentThread']&&_0x260a4c['commentThread']['length'];if(!_0x37a0d8&&_0x52dc70(_0x43acdd,_0x4d8b59))return _0x14f5c2['_joinSuggestions'](_0x260a4c,_0x14f088),_0x47b879['delete'](_0x14f088),!0x0;if(!_0x4772b0&&_0x52dc70(_0x4d8b59,_0x43acdd))return _0x14f5c2['_joinSuggestions'](_0x14f088,_0x260a4c),_0x47b879['delete'](_0x260a4c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f5d86,_0x5ee740){if(_0x5f5d86['isMultiRange']){for(const _0x2660fd of _0x5ee740['getRanges']())_0x5f5d86['addRange'](_0x2660fd);}else{const _0x291e8d=_0x5ee740['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f5d86,this['_model']['createRange'](_0x5f5d86['getFirstRange']()['start'],_0x291e8d));}_0x5ee740['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3ef890,_0x4d4fcd,_0x1acbdb){const _0x1fc060=_0x3ef890['startsWith']('format')||_0x3ef890['startsWith']('attribute')?'FORMATTING':_0x3ef890['toUpperCase']();return c(this['editor']['locale'],_0x4d4fcd+'_'+_0x1fc060+'_SUGGESTION_ANNOUNCEMENT',_0x1acbdb);}['_initAriaMarkerChangeAnnouncements'](){const _0x5957b9=this['editor'];if(!_0x5957b9['ui'])return;const {ariaLiveAnnouncer:_0x16a26e}=_0x5957b9['ui'];_0x55f8e2(this['_model'],({left:_0x3f9c79,entered:_0x1c1ab4})=>{for(const _0x20317f of _0x3f9c79){const {group:_0x2376b7,type:_0x55af52}=this['_splitMarkerName'](_0x20317f['name']);if('suggestion'===_0x2376b7){_0x16a26e['announce'](this['_getMarkerAnnouncementText'](_0x55af52,'LEAVE'));break;}}for(const _0x17886b of _0x1c1ab4){const {group:_0x24ccd6,type:_0x1e8d15}=this['_splitMarkerName'](_0x17886b['name']);if('suggestion'===_0x24ccd6){_0x16a26e['announce'](this['_getMarkerAnnouncementText'](_0x1e8d15,'ENTER',_0x31ad4f(_0x55609f)));break;}}});}['_processAttributeChanges'](_0x2e286d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x8b46e9=this['editor'],_0x37ab06=_0x8b46e9['model']['document']['differ']['getChanges']();if(0x0==_0x37ab06['length'])return!0x1;const _0x4b75d3=[],_0x5d6ba4=_0x37ab06['filter'](_0x4b6238=>'attribute'==_0x4b6238['type']),_0x225cd9=_0x37ab06['filter'](_0x1df5e4=>'insert'==_0x1df5e4['type']&&'$text'!=_0x1df5e4['name']),_0x554146=_0x37ab06['filter'](_0x196117=>'remove'==_0x196117['type']&&'$text'!=_0x196117['name']);for(const _0x23d44b of _0x5d6ba4)_0x4b75d3['push']({'key':_0x23d44b['attributeKey'],'newValue':_0x23d44b['attributeNewValue'],'oldValue':_0x23d44b['attributeOldValue'],'range':qt(_0x23d44b['range'],_0x8b46e9['model'])});for(const _0x31fd8e of _0x225cd9){const _0x43fb94=_0x554146['find'](_0x578d35=>_0x578d35['position']['isEqual'](_0x31fd8e['position']));_0x43fb94&&_0x4b75d3['push']({'key':u,'newValue':_0x31fd8e['name'],'oldValue':_0x43fb94['name'],'range':_0x8b46e9['model']['createRangeOn'](_0x31fd8e['position']['nodeAfter'])});}return 0x0!=_0x4b75d3['length']&&this['_reduceExistingSuggestions'](_0x2e286d,_0x4b75d3);}['_processAttributeSuggestions'](_0x3c8018){let _0x1de3b2=!0x1;const _0x134c94=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdb55af=>_0xdb55af['data']['newRange']&&_0xdb55af['name']['startsWith']('suggestion:attribute:'));for(const _0x3fedd0 of _0x134c94){const {subType:_0x511c4c,id:_0x2a19b2}=this['_splitMarkerName'](_0x3fedd0['name']),_0x2ba58f=_0x511c4c['split']('|')[0x0];for(const _0x38713a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x38713a['id']!=_0x2a19b2&&'attribute'==_0x38713a['type']&&_0x38713a['data']&&_0x38713a['data']['key']==_0x2ba58f&&_0x38713a['getFirstRange']()['isIntersecting'](_0x3fedd0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x38713a,_0x3fedd0['data']['newRange'],_0x3c8018),_0x1de3b2=!0x0);}return _0x1de3b2;}['_recordAttributeChanges'](_0x57452a){this['_recordAttributeSuggestions']=!0x0,_0x57452a();}['_isRegisteredAttribute'](_0x54e718){const _0x2980e2=this['_isBlockAttribute'](_0x54e718),_0x1c7d5c=this['_inlineAttributeKeys']['has'](_0x54e718);return _0x2980e2||_0x1c7d5c;}['_reduceExistingSuggestions'](_0x3cde5c,_0x470ef8){if(0x0==_0x470ef8['length'])return!0x1;let _0x2013e8=!0x1;for(const _0x43d878 of _0x470ef8){const _0x50d085=this['_findSuggestions'](_0x43d878['range'],'attribute')['filter'](_0x48e8e0=>!_0x48e8e0['meta']['isNextTo'])['map'](_0x3ce4f3=>_0x3ce4f3['suggestion']),_0x5a457b=_0x2bf3c4({'newValue':_0x43d878['newValue']});_0x50d085['filter'](_0x5cea4b=>{const [_0x423530,_0x5834ed]=_0x5cea4b['subType']['split']('|');return _0x423530==_0x43d878['key']&&_0x5834ed!=_0x5a457b;})['forEach'](_0x5d19f7=>{this['_reduceSuggestionAttributeRange'](_0x5d19f7,_0x43d878['range'],_0x3cde5c),_0x2013e8=!0x0;});}return _0x2013e8;}['_reduceSuggestionAttributeRange'](_0x2cd7e4,_0x297d6b,_0x24f7f1){const _0x3fb180=_0x2cd7e4['getFirstRange']()['getDifference'](_0x297d6b);0x0!==_0x3fb180['length']?0x1!==_0x3fb180['length']?this['_breakSuggestionMarker'](_0x2cd7e4,_0x297d6b['start'],_0x297d6b['end']):this['_setSuggestionRange'](_0x2cd7e4,_0x3fb180[0x0]):_0x24f7f1['removeMarker'](_0x2cd7e4['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x237b03){this['_editor']=_0x237b03,this['_model']=_0x237b03['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f3d97,_0x38aa43,_0x401981,_0x422eff,_0x262d91,_0x5adaa5,_0x3738e6){return new o(this['_model'],{'type':_0x2f3d97,'subType':_0x38aa43,'id':_0x401981,'originalSuggestionId':_0x3738e6,'author':_0x422eff,'creator':_0x422eff,'attributes':_0x262d91,'onAttributesChange':_0x5adaa5,'onAccept':(..._0x26087c)=>this['getSuggestionCallback'](_0x2f3d97,_0x38aa43,'accept')(..._0x26087c),'onDiscard':(..._0x294eb9)=>this['getSuggestionCallback'](_0x2f3d97,_0x38aa43,'discard')(..._0x294eb9)});}['registerCustomCallback'](_0x274b92,_0x167b77,_0x53a2fd,_0x5582ef){const _0x57e2f4=_0x274b92+':'+_0x167b77+':'+_0x53a2fd;this['_customCallbacks']['set'](_0x57e2f4,_0x5582ef);}['getSuggestionCallback'](_0x4f7df8,_0x215c36,_0x22fdfd){const _0x104ea0=_0x4f7df8+':'+_0x215c36+':'+_0x22fdfd;return this['_customCallbacks']['get'](_0x104ea0)||this['_defaultCallbacks']['get'](_0x4f7df8+':'+_0x22fdfd);}['_registerDefaultCallbacks'](){const _0x290e93=()=>!0x1,_0x34d115=_0x45abd2=>{_0x45abd2['sort']((_0x234ce9,_0x26add9)=>_0x234ce9['start']['isBefore'](_0x26add9['start'])?0x1:-0x1),this['_model']['change'](_0xa71b1a=>{for(const _0x170c1a of _0x45abd2){let _0x4d819c;_0x4d819c=_0x170c1a['end']['isAtEnd']&&_0x170c1a['end']['parent']==_0x170c1a['start']['nodeAfter']?_0xa71b1a['createSelection'](_0x170c1a['start']['nodeAfter'],'on'):_0xa71b1a['createSelection'](_0x170c1a),this['_model']['deleteContent'](_0x4d819c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5aa881=(_0x548f65,_0x4b7fd7)=>{_0x4b7fd7&&this['_model']['change'](_0x128279=>{const {commandName:_0x5c8225,commandParams:_0x5abf35=[]}=_0x4b7fd7,_0x13048c=_0x548f65['map'](_0x3262c7=>(Lt(_0x3262c7)&&(_0x3262c7=this['_model']['createRange'](_0x3262c7['end'])),_0x3262c7))['filter'](_0x2bbaaa=>'$graveyard'!==_0x2bbaaa['root']['rootName']);if(_0x13048c['length']<0x1)return;const _0x315847=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d7008=>_0x53edc8['fromRange'](_0x3d7008));_0x128279['setSelection'](_0x13048c);for(const _0x322dc5 of this['_editor']['commands']['commands']())_0x322dc5['refresh']();_0x5abf35['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c8225,..._0x5abf35);const _0x476b82=_0x315847['filter'](_0x40a3a7=>'$graveyard'!=_0x40a3a7['root']['rootName']);_0x476b82['length']>0x0&&_0x128279['setSelection'](_0x476b82);for(const _0x277070 of _0x315847)_0x277070['detach']();});},_0x1d61f8=(_0x16a00c,_0x4ee61d)=>0x1==_0x16a00c['length']&&0x1==_0x4ee61d['length']&&_0x16a00c[0x0]['end']['isEqual'](_0x4ee61d[0x0]['start']),_0x422d4b=(_0xd98f8b,_0x51f5d1,_0x13738e,_0x527bec)=>Wt(_0xd98f8b,_0x51f5d1,_0x13738e,_0x527bec)?[_0xd98f8b,_0x51f5d1]:Wt(_0x51f5d1,_0xd98f8b,_0x527bec,_0x13738e)?[_0x51f5d1,_0xd98f8b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x290e93),this['_defaultCallbacks']['set']('insertion:discard',_0x34d115),this['_defaultCallbacks']['set']('insertion:join',_0x1d61f8),this['_defaultCallbacks']['set']('insertion:chain',_0x422d4b),this['_defaultCallbacks']['set']('deletion:accept',_0x34d115),this['_defaultCallbacks']['set']('deletion:discard',_0x290e93),this['_defaultCallbacks']['set']('deletion:join',_0x1d61f8),this['_defaultCallbacks']['set']('deletion:chain',_0x422d4b),this['_defaultCallbacks']['set']('formatInline:accept',_0x5aa881),this['_defaultCallbacks']['set']('formatInline:discard',_0x290e93),this['_defaultCallbacks']['set']('formatInline:join',_0x1d61f8),this['_defaultCallbacks']['set']('formatInline:chain',_0x290e93),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5aa881),this['_defaultCallbacks']['set']('formatBlock:discard',_0x290e93),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d61f8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x290e93),this['_defaultCallbacks']['set']('attribute:accept',_0x290e93),this['_defaultCallbacks']['set']('attribute:discard',(_0x48b955,_0x2e210d)=>{if(!_0x2e210d)return;const _0x3f4a12=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3cb766=>{if(_0x2e210d['key']==u)for(const _0x1117e3 of _0x48b955){const _0x5e9c78=_0x1117e3['start']['nodeAfter'],_0x214211=_0x2e210d['oldValue'];_0x3cb766['rename'](_0x5e9c78,_0x214211);}else{if(_0x3f4a12['_isBlockAttribute'](_0x2e210d['key'])){for(const _0xe8e61e of _0x48b955)void 0x0!==_0x2e210d['oldValue']?_0x3cb766['setAttribute'](_0x2e210d['key'],_0x2e210d['oldValue'],_0xe8e61e['start']['nodeAfter']):_0x3cb766['removeAttribute'](_0x2e210d['key'],_0xe8e61e['start']['nodeAfter']);}else{for(const _0x270a74 of _0x48b955)_0x2e210d['oldValue']?_0x3cb766['setAttribute'](_0x2e210d['key'],_0x2e210d['oldValue'],_0x270a74):_0x3cb766['removeAttribute'](_0x2e210d['key'],_0x270a74);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d61f8);}}function Gt(_0x4b6eec,_0x30584d,_0xa3dfbf){for(const _0x2e0451 of _0x30584d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e0451['root']==_0x2e0451)return!0x1;if(!_0xa3dfbf['containsItem'](_0x2e0451))return!0x1;if(_0x4b6eec['isObject'](_0x2e0451)||_0x4b6eec['isLimit'](_0x2e0451))return!0x0;}return!0x1;}function Lt(_0x4f6c1c){return _0x4f6c1c['end']['parent']==_0x4f6c1c['start']['nodeAfter']&&_0x4f6c1c['end']['isAtStart'];}function Jt(_0x508e77,_0x23ad65,_0x3fef23,_0x323e67){const _0x5d909b=_0x3c29b3=>!_0x3c29b3['item']['is']('$textProxy')&&!_0x323e67['isObject'](_0x3c29b3['item']),_0x54ad0a=_0x508e77['start']['getLastMatchingPosition'](_0x5d909b),_0x39f87b=_0x508e77['end']['getLastMatchingPosition'](_0x5d909b,{'direction':'backward'});return(!_0x508e77['start']['isEqual'](_0x54ad0a)||!_0x508e77['end']['isEqual'](_0x39f87b))&&(_0x54ad0a['isBefore'](_0x39f87b)?_0x3fef23['updateMarker'](_0x23ad65,{'range':_0x3fef23['createRange'](_0x54ad0a,_0x39f87b)}):_0x3fef23['removeMarker'](_0x23ad65),!0x0);}function Kt(_0x1742f7){return _0x2bf3c4(_0x1742f7);}function Ht(_0xc6dd7a){const _0x3f2d93=_0xc6dd7a['start']['nodeAfter'];return _0x3f2d93&&_0x3f2d93['is']('element');}function qt(_0x17d2bf,_0x3803c7){return null==_0x17d2bf['end']['nodeBefore']&&_0x17d2bf['end']['parent']==_0x17d2bf['start']['nodeAfter']?zt(_0x17d2bf['start']['nodeAfter'],_0x3803c7):_0x17d2bf;}function zt(_0x8c8dac,_0x2c4d39){const _0x4bb23c=_0x2c4d39['schema']['isObject'](_0x8c8dac)||_0x2c4d39['schema']['isSelectable'](_0x8c8dac);return _0x2c4d39['createRange'](_0x2c4d39['createPositionAt'](_0x8c8dac,'before'),_0x4bb23c?_0x2c4d39['createPositionAfter'](_0x8c8dac):_0x2c4d39['createPositionAt'](_0x8c8dac,'end'));}function Wt(_0x5750a6,_0x301a73,_0x43e659,_0x53087b){return!!Qt(_0x5750a6,_0x301a73)&&_0x43e659['end']['isEqual'](_0x53087b['start']);}function Qt(_0x48e10c,_0x96b419){if(!_0x48e10c['_isDataLoaded']||!_0x96b419['_isDataLoaded'])return!0x1;const _0x2d7b56=new Set(Object['keys'](_0x48e10c['attributes'])),_0x164de9=new Set(Object['keys'](_0x96b419['attributes']));if(_0x2d7b56['delete']('groupId'),_0x164de9['delete']('groupId'),0x0==_0x2d7b56['size']&&0x0==_0x164de9['size'])return!0x0;if(_0x2d7b56['size']!=_0x164de9['size'])return!0x1;const _0x23f65c={..._0x48e10c['attributes']},_0x498f3e={..._0x96b419['attributes']};return delete _0x23f65c['groupId'],delete _0x498f3e['groupId'],JSON['stringify'](_0x23f65c)==JSON['stringify'](_0x498f3e);}function Xt(_0x5e1e60,_0x3edf03){const _0x35b5ec=Yt(_0x5e1e60['attributes']),_0x2d7445=Yt(_0x3edf03);if(!_0x5e1e60['_isDataLoaded'])return!0x1;for(const _0x2a1560 of Object['keys'](_0x2d7445))if(!_0x2aed50(_0x35b5ec[_0x2a1560],_0x2d7445[_0x2a1560]))return!0x1;return!0x0;}function Yt(_0x10ed61){const _0x3c3262=Object['assign']({},_0x10ed61);return delete _0x3c3262['skipNestingCheck'],delete _0x3c3262['tablePasteChainId'],_0x3c3262;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x18406a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b5035,_0x529e54,_0xfd6122,_0x5a8d39){super(),this['model']=_0x529e54,this['view']=_0xfd6122,this['commentThreadController']=_0x5a8d39,this['_editor']=_0x5b5035,this['_acceptCommand']=_0x5b5035['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b5035['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19140e,_0x2015a2)=>_0x19140e||_0x2015a2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f2a53=>_0x4f2a53&&this['_editor']['model']['canEditAt'](_0x529e54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ebe9d=>_0x2ebe9d&&this['_editor']['model']['canEditAt'](_0x529e54['getRanges']())),this['_pendingAction']=null,_0xfd6122['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xfd6122,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xfd6122,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xfd6122,'change:isDirty',()=>{_0xfd6122['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 _0x4434ff=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4434ff);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2ae501{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x14672e,_0x225d71,_0x538f18,_0x5e2905){super(_0x14672e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xffefc0(_0x14672e,c(_0x14672e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x225d71['authoredAt']),this['bind']('authoredAt')['to'](_0x225d71),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',_0x225d71,'authoredAt',this,'descriptionParts',(_0x5bc58d,_0xf136b2,_0x3f13f9)=>{const _0x556e45=_0x3f13f9['map'](_0x48325f=>ls(_0x48325f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5bc58d-0x1,_0x225d71['author']['name'],_0xf136b2?_0x5e2905['formatDateTime'](_0xf136b2):'',new DOMParser()['parseFromString'](_0x556e45,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5357b9(),this['focusTracker']=new _0x596630(),this['keystrokes']=new _0x5bb128(),this['focusCycler']=new _0x455afc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3bfe5a=>_0x3bfe5a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x225d71,this['_localUser']=_0x538f18,this['_config']=_0x5e2905,_0x5e2905['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xd9160f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4ba694}=this['_config'];this['commentsListView']=new _0x4ba694(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',_0x1574ea=>_0x1574ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9a89c1,_0x84fe24)=>_0x9a89c1||!!_0x84fe24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c79fe}=this['_config'],_0x14b564=new _0x1c79fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x32b22b=_0x14b564['commentInputView'];return _0x14b564['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x32b22b,'value',(_0x5ba69e,_0x372937,_0x112fa1)=>!!_0x112fa1||_0x5ba69e&&!_0x372937),_0x32b22b['on']('submit',(_0x39f5fb,_0x5f22b6)=>{this['fire']('addComment',_0x5f22b6),_0x32b22b['editor']['setData']('');}),_0x32b22b['on']('cancel',()=>this['focus']()),_0x32b22b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x14b564;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x206a92,_0x439068,_0x4a9aba,_0xa2376){super(_0x206a92,_0x439068,_0x4a9aba,_0xa2376),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b051e=>_0x3b051e&&_0x3b051e[0x0]?_0x3b051e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x321d16,_0x524532)=>{let _0x3c3423='';for(const _0x1195b9 of _0x321d16)_0x3c3423+='<p>'+ls(_0x1195b9['content'],_0x1195b9['color'])+'</p>';return _0x524532?_0x3c3423:ti(_0x3c3423,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xa2376['SuggestionView'](_0x206a92,_0x439068,{'formatDateTime':_0xa2376['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 _0x578839=this['bindTemplate'],_0x12b48c=[this['suggestionView']];return this['commentsListView']&&_0x12b48c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12b48c['push'](this['commentThreadInputView']),_0x12b48c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x578839['if']('isActive','ck-suggestion-wrapper--active'),_0x578839['to']('type',_0x902bb2=>'ck-suggestion-'+_0x902bb2),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':_0x578839['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12b48c};}['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 _0x2ae501{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17dc50,_0x3c28ff,_0x402242){super(_0x17dc50),this['_model']=_0x3c28ff,this['_config']=_0x402242,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3c28ff),this['acceptButton']=this['_createButton'](c(_0x17dc50,'Accept\x20suggestion'),_0x2dc50c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x17dc50,'Discard\x20suggestion'),_0x359719,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a2fec(_0x17dc50,_0x3c28ff['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5357b9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x596630(),this['keystrokes']=new _0x5bb128(),this['focusCycler']=new _0x455afc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49ae24=>_0x49ae24['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a7103=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a7103['innerHTML']=this['description'],this['on']('change:description',(_0x5045d2,_0x2e4047,_0x40d8da)=>{_0x2a7103['innerHTML']=_0x40d8da;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3eb201=this['bindTemplate'],_0x178062=[{'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':_0x3eb201['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3eb201['to']('authoredAt',_0x225d4c=>this['_config']['formatDateTime'](_0x225d4c))}]}]},{'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']&&_0x178062['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':_0x178062}]};}['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'](_0x575d98,_0x531ede,_0x162356,_0x4fb60e,_0x289ddc){const _0x555087=new _0xbaa962(this['locale']);return _0x555087['set']({'label':_0x575d98,'icon':_0x531ede,'tooltip':!0x0,'tooltipPosition':_0x289ddc}),_0x555087['extendTemplate']({'attributes':{'class':_0x162356}}),_0x555087['on']('execute',()=>{this['fire'](_0x4fb60e,this['_model']['id']);}),_0x555087;}['_setupKeyboardNavigation'](){const _0x21b216=this['element'];this['keystrokes']['listenTo'](_0x21b216);for(const _0x3087d7 of this['focusables'])this['focusTracker']['add'](_0x3087d7['element']),this['keystrokes']['listenTo'](_0x3087d7['element']);this['keystrokes']['set']('enter',(_0x4cf937,_0x2caf23)=>{_0x21b216===_0x4cf937['target']&&(this['focusCycler']['focusFirst'](),_0x2caf23());}),this['keystrokes']['set']('esc',(_0x322875,_0x5a92df)=>{_0x21b216!==_0x322875['target']&&(this['focus'](),_0x5a92df());});}}class d extends _0x11ea7f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19fdf5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x162ab6){super(_0x162ab6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5d0987=this['editor']['config'];_0x5d0987['define']('trackChanges.SuggestionThreadView',fe),_0x5d0987['define']('trackChanges.SuggestionView',we),_0x5d0987['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5d0987['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fb19a,_0x1c3ac1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xdd2ca,_0x1f1973]of this['_handleControllerBuffer']){const _0x401436=this['_suggestionToController']['has'](_0xdd2ca);_0x401436||_0x1f1973?_0x401436&&_0x1f1973&&this['_destroyController'](_0xdd2ca):this['_initializeController'](_0xdd2ca);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fb19a,_0x1c3ac1);}['init'](){const _0x4785d8=this['editor'],_0x3da9c7=_0x4785d8['plugins']['get']('TrackChangesEditing'),_0x323544=_0x4785d8['plugins']['get']('Annotations'),_0x12bf7a=_0x4785d8['plugins']['get']('EditorAnnotations'),_0x393284=_0x4785d8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12bf7a['addSourceCollector'](()=>{const _0x3f6868=[];for(const [_0x30881d,_0x4f512b]of Array['from'](this['_suggestionToController'])){const _0x40223e=_0x30881d['getAllAdjacentSuggestions'](),_0x470355=[];for(const _0x8bf924 of _0x40223e){if(!_0x8bf924['isInContent'])continue;if(_0x8bf924['isMultiRange']){_0x470355['push'](..._0x8bf924['getRanges']());continue;}const _0x1b4586=_0x8bf924['getFirstRange']();if(_0x470355['length']>0x0){const _0x5a6988=_0x470355[0x0]['getJoined'](_0x1b4586);if(_0x5a6988){_0x470355[0x0]=_0x5a6988;continue;}}_0x470355['push'](_0x1b4586);}_0x3f6868['push']([_0x4f512b['view'],_0x470355]);}return _0x3f6868;}),this['listenTo'](_0x3da9c7,'suggestionLoaded',(_0x188dae,_0x2bbf56)=>{this['listenTo'](_0x2bbf56,'change:previous',(_0x3d7a2b,_0x37f8b8,_0x5254ad,_0x457898)=>{_0x2bbf56['isInContent']&&(null==_0x5254ad?(this['_updateController'](_0x457898['head']),this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x1)):(this['_updateController'](_0x5254ad['head']),null==_0x457898&&this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x0)));}),null!==_0x2bbf56['previous']?this['_updateController'](_0x2bbf56['head']):this['_handleSuggestionControllerDelayed'](_0x2bbf56,!0x1);}),this['listenTo'](_0x3da9c7,'suggestionUnloaded',(_0xe712b4,_0x2f0568,_0x1a0b7e)=>{this['stopListening'](_0x2f0568,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f0568),this['_suggestionToController']['has'](_0x2f0568)&&this['_destroyController'](_0x2f0568),_0x1a0b7e&&this['_updateController'](_0x1a0b7e['head']);}),this['listenTo'](_0x3da9c7,'suggestionChanged',(_0x3ba121,_0x1c61cc)=>{this['_updateController'](_0x1c61cc);}),this['listenTo'](_0x323544,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x393284,'addComment',(_0x2931c1,{threadId:_0x18e483,isFromAdapter:_0x7d37ac})=>{if(_0x7d37ac||!_0x3da9c7['hasSuggestion'](_0x18e483))return;const _0x3a3411=_0x3da9c7['getSuggestion'](_0x18e483);this['_suggestionToController']['get'](_0x3a3411)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xde509a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1311fd;for(const _0x2bf058 in _0xde509a){const _0x3406e9=_0x2bf058,_0x1cd0aa=_0xde509a[_0x3406e9];if('trackChangesLicenseKeyValid'==_0x1cd0aa||'trackChangesLicenseKeyInvalid'==_0x1cd0aa||'trackChangesLicenseKeyExpired'==_0x1cd0aa||'trackChangesLicenseKeyDomainLimit'==_0x1cd0aa||'trackChangesLicenseKeyNotAllowed'==_0x1cd0aa||'trackChangesLicenseKeyEvaluationLimit'==_0x1cd0aa||'trackChangesLicenseKeyTrialLimit'==_0x1cd0aa||'trackChangesLicenseKeyUsageLimit'==_0x1cd0aa){delete _0xde509a[_0x3406e9],_0x1311fd=_0x1cd0aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1311fd&&_0xde509a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1311fd&&_0xde509a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1311fd&&_0xde509a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1311fd&&_0xde509a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a1db8=this['editor']['plugins']['get']('Annotations'),_0x5863cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b5f96=Array['from'](_0x2a1db8['activeAnnotations'],_0x1b6375=>_0x1b6375['innerView'])['filter'](_0x54254d=>this['_viewToController']['has'](_0x54254d)),_0x3af8a1=[];for(const _0x1afb40 of _0x4b5f96){const _0xaebe9=this['_viewToController']['get'](_0x1afb40)['model']['getAllAdjacentSuggestions']();_0x3af8a1['push'](..._0xaebe9['reduce']((_0x267031,_0x343095)=>[..._0x267031,..._0x343095['getMarkerNames']()],[]));}_0x5863cc['activeMarkers']=_0x3af8a1;}['_addUIComponentsToFactory'](){const _0x212d9f=this['editor'],_0x104221=_0x212d9f['locale'],_0x5f508d=c(_0x104221,'Track\x20changes'),_0x3c37a9=new _0x5e4040([{'type':'switchbutton','model':new _0x166277({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f508d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x212d9f['plugins']['has']('TrackChangesPreview')&&_0x3c37a9['addMany']([{'type':'separator'},{'type':'button','model':new _0x166277({'withText':!0x0,'label':c(_0x104221,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5c119f of _0x3c37a9)if(ke(_0x5c119f)){const _0x3751ee=_0x212d9f['commands']['get'](_0x5c119f['model']['commandName']);_0x5c119f['model']['bind']('isOn','isEnabled')['to'](_0x3751ee,'value','isEnabled');}_0x212d9f['ui']['componentFactory']['add']('trackChanges',_0x599f73=>this['_createToolbarButton'](_0x599f73,_0x3c37a9,_0x5f508d)),_0x212d9f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c667c=>this['_createMenuBarMenu'](_0x5c667c,_0x3c37a9,_0x5f508d));}['_createToolbarButton'](_0x28fc2c,_0xef0fb8,_0x2018f0){const _0x50fb0e=_0x46612d(_0x28fc2c,_0x214ce7),_0x411302=this['editor']['commands']['get']('trackChanges');_0x50fb0e['buttonView']['set']({'tooltip':_0x2018f0,'label':_0x2018f0,'icon':_0x46fdee}),_0x50fb0e['buttonView']['bind']('isOn')['to'](_0x411302,'value'),_0x50fb0e['buttonView']['on']('execute',()=>{_0x411302['execute'](),this['editor']['editing']['view']['focus']();}),_0x5cdae9(_0x50fb0e,_0xef0fb8,{'role':'menu'});const _0x2e6029=[];for(const _0x2b9abe of _0xef0fb8)ke(_0x2b9abe)&&_0x2e6029['push'](this['editor']['commands']['get'](_0x2b9abe['model']['commandName']));const _0x57105c=_0x50fb0e['buttonView'];return _0x57105c['actionView']['unbind']('isEnabled'),_0x57105c['arrowView']['unbind']('isEnabled'),_0x57105c['actionView']['bind']('isEnabled')['to'](_0x411302,'isEnabled'),_0x57105c['arrowView']['bind']('isEnabled')['toMany'](_0x2e6029,'isEnabled',(..._0x30c167)=>_0x30c167['some'](_0xe0b604=>_0xe0b604)),_0x50fb0e['on']('execute',_0x21fa01=>{this['editor']['execute'](_0x21fa01['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50fb0e;}['_createMenuBarMenu'](_0x130810,_0x14ad75,_0x49f640){const _0x23d17d=new _0x292dc9(_0x130810),_0x31d1bb=this['editor']['commands']['get']('trackChanges');_0x23d17d['buttonView']['set']({'label':_0x49f640,'icon':_0x46fdee});const _0x4954c5=new _0x22298c(_0x130810);for(const _0x58b316 of _0x14ad75){if('separator'==_0x58b316['type']){_0x4954c5['items']['add'](new _0x4e76ca(_0x130810));continue;}const _0x13122a=new _0x20b265(_0x130810,_0x23d17d),_0x51d436=new _0x5a7002(_0x130810),_0x4a98d5=_0x58b316['model'];_0x51d436['bind'](...Object['keys'](_0x4a98d5))['to'](_0x4a98d5),_0x51d436['delegate']('execute')['to'](_0x23d17d),_0x51d436['on']('execute',()=>{this['editor']['execute'](_0x4a98d5['commandName']),this['editor']['editing']['view']['focus']();}),_0x13122a['children']['add'](_0x51d436),_0x4954c5['items']['add'](_0x13122a);}return _0x23d17d['bind']('isEnabled')['to'](_0x31d1bb,'isEnabled'),_0x23d17d['panelView']['children']['add'](_0x4954c5),_0x23d17d;}['_initializeController'](_0x3da678){const _0x285aa3=this['editor'],_0x4da8cc=_0x285aa3['config'],_0x2776a0=_0x285aa3['plugins']['get']('Annotations'),_0x341988=_0x285aa3['plugins']['get']('CommentsRepository'),_0x21b300=_0x285aa3['plugins']['get']('EditorAnnotations'),_0x590365=_0x285aa3['plugins']['get'](_0x19fdf5)['me'],_0x219119=_0x4da8cc['get']('trackChanges')['SuggestionThreadView'],_0x21d359=_0x4da8cc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5b380e,CommentThreadInputView:_0x35936d}=_0x285aa3['plugins']['get']('CommentsUI');let _0xb4f2d7,_0x194f67,_0x40fc28;this['_annotationViews']['has'](_0x3da678['id'])?(_0x194f67=this['_annotationViews']['get'](_0x3da678['id']),_0xb4f2d7=_0x194f67['mainView']):(_0xb4f2d7=new _0x219119(_0x285aa3['locale'],_0x3da678,_0x590365,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4da8cc['get']('comments.editorConfig'),'licenseKey':_0x4da8cc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4da8cc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4da8cc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4da8cc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33eb5c(_0x4da8cc['get']('locale'),_0x285aa3['locale']),'CommentView':_0x4da8cc['get']('comments')['CommentView'],'CommentsListView':_0x5b380e,'CommentThreadInputView':_0x35936d,'SuggestionView':_0x21d359}),_0xb4f2d7['suggestionView']['acceptButton']['on']('execute',()=>{_0x285aa3['editing']['view']['focus']();}),_0xb4f2d7['suggestionView']['discardButton']['on']('execute',()=>{_0x285aa3['editing']['view']['focus']();}),_0x194f67=_0x2776a0['createAnnotationView'](this['editor']['locale'],_0xb4f2d7),_0x194f67['bind']('isDirty')['to'](_0xb4f2d7,'isDirty'),_0x194f67['bind']('length')['to'](_0xb4f2d7),_0x194f67['bind']('type')['to'](_0xb4f2d7,'type',_0x26ea4b=>'suggestion-'+_0x26ea4b),_0xb4f2d7['on']('escape',()=>{_0x40fc28['fire']('escape');}),this['_annotationViews']['set'](_0x3da678['id'],_0x194f67));const _0x1db52b=_0x341988['createCommentThreadController'](_0x3da678['commentThread'],_0xb4f2d7),_0x3c68ad=new pe(_0x285aa3,_0x3da678,_0xb4f2d7,_0x1db52b),_0x5555ac=_0x3da678['getAllAdjacentSuggestions']()['filter'](_0x5dd2c8=>_0x5dd2c8['isInContent']);_0xb4f2d7['descriptionParts']=_0x285aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5555ac),this['_suggestionToController']['set'](_0x3da678,_0x3c68ad),this['_viewToController']['set'](_0xb4f2d7,_0x3c68ad),_0x40fc28=_0x2776a0['createAnnotation']({'view':_0x194f67,'target':()=>{const _0x3eb164=[],_0x2a6673=_0x3da678['getAllAdjacentSuggestions']()['filter'](_0x104069=>_0x104069['isInContent']);for(const _0x46d8b8 of _0x2a6673)_0x3eb164['push'](..._0x46d8b8['getMarkers']());return _0x123e60(_0x285aa3['editing'],_0x3eb164);},'type':()=>'suggestion-'+_0x3c68ad['view']['type']}),_0x341988['_bindAnnotationToEditors'](_0xb4f2d7,_0x40fc28),_0x2776a0['add'](_0x40fc28),_0x21b300['registerAnnotation'](_0x40fc28);}['_destroyController'](_0x21ca26){const _0x5c79ee=this['editor']['plugins']['get']('CommentsRepository'),_0x48cfb7=this['editor']['plugins']['get']('Annotations'),_0x4811f5=this['_suggestionToController']['get'](_0x21ca26),_0x4e0467=_0x4811f5['view'],_0x465f38=_0x48cfb7['getByInnerView'](_0x4e0467);_0x5c79ee['_unbindEditors'](_0x4e0467),_0x465f38&&_0x48cfb7['remove'](_0x465f38),this['_suggestionToController']['delete'](_0x21ca26),this['_viewToController']['delete'](_0x4e0467),_0x4811f5['destroy']();}['_updateController'](_0x5856fe){if(!_0x5856fe['isInContent']||!this['_suggestionToController']['has'](_0x5856fe))return;const _0x349fd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28ce6e=this['_suggestionToController']['get'](_0x5856fe),_0x21bb29=_0x5856fe['getAllAdjacentSuggestions']();_0x28ce6e['view']['descriptionParts']=_0x349fd0['descriptionFactory']['getDescriptions'](_0x21bb29);}['destroy'](){for(const _0xb16d08 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb16d08);for(const _0x12fca8 of this['_annotationViews']['values']())_0x12fca8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x16ce10){return'model'in _0x16ce10;}class k extends _0x11ea7f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x520c76){this['editor']['plugins']['get'](p)['adapter']=_0x520c76;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4835f3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4835f3);}['getSuggestions']({skipNotAttached:_0x7e98b=!0x1,toJSON:_0x1a0db8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x7e98b,'toJSON':_0x1a0db8});}['getSuggestion'](_0x4200ce){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4200ce);}}const w=['Pagination'];class T extends _0x11ea7f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x481e25=this['editor'];if(_0x481e25['config']['define']('trackChangesData.editorCreator',_0xbbed96=>{const _0x5d75c9=_0x481e25['model']['document']['getRootNames']()['reduce']((_0x134f7d,_0x14803e)=>(_0x134f7d[_0x14803e]='',_0x134f7d),{});return _0x481e25['constructor']['create'](_0x5d75c9,_0xbbed96);}),'function'!=typeof _0x481e25['config']['get']('trackChangesData')['editorCreator'])throw new _0x1cd3be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b8d56){return N(this['editor'],!0x0,_0x2b8d56);}['getDataWithDiscardedSuggestions'](_0x4fd7ac){return N(this['editor'],!0x1,_0x4fd7ac);}}class D extends _0x11ea7f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34bfcc){function _0x250f06(_0x45c457){return _0x45c457['map'](_0x4962c7=>String['fromCharCode'](_0x4962c7))['join']('');}super(_0x34bfcc),this['result']='end',_0x34bfcc[_0x250f06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x250f06([0x76,0x69,0x65,0x77])][_0x250f06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x250f06([0x61,0x75,0x74,0x6f]),_0x34bfcc[_0x250f06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x250f06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x250f06([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x250f06([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x250f06([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 Ge(_0x40cae4){return void 0x0!==_0x40cae4['getRootsAttributes'];}async function N(_0x1a549c,_0x4086b2,_0x3af22a){const _0x1e80d3=_0x481b18(_0x1a549c,w);_0x1e80d3['plugins']['push'](p,D),_0x1e80d3['rootsAttributes']=Ge(_0x1a549c)?_0x1a549c['getRootsAttributes']():void 0x0;const _0x18368a=document['createDocumentFragment'](),_0x1f48a1=_0x1a549c['config']['get']('trackChangesData')['editorCreator'],_0x234ad0=await _0x1f48a1(_0x1e80d3,()=>function(_0x1fd882){const _0x2c03f6=document['createElement']('div');return _0x1fd882['appendChild'](_0x2c03f6),_0x2c03f6;}(_0x18368a));!function(_0x47c7c6,_0x44edbd){const _0xd95689=_0x47c7c6['model']['document']['getRootNames']()['reduce']((_0x2fe1f1,_0x148f57)=>(_0x2fe1f1[_0x148f57]=_0x47c7c6['data']['get']({'rootName':_0x148f57}),_0x2fe1f1),{}),_0x43be96=_0x47c7c6['plugins']['get']('Users')['users']['map'](_0x112be5=>({'id':_0x112be5['id'],'name':_0x112be5['name']})),_0x7944c9=_0x47c7c6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x344326=_0x47c7c6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x15c310=_0x44edbd['plugins']['get']('Users'),_0x5e80dd=_0x44edbd['plugins']['get']('TrackChangesEditing'),_0x5d121b=_0x44edbd['plugins']['get']('CommentsRepository');for(const _0x320116 of _0x5d121b['getCommentThreads']())_0x320116['remove']();for(const _0x1ea055 of _0x43be96)_0x15c310['getUser'](_0x1ea055['id'])||_0x15c310['addUser'](_0x1ea055);_0x15c310['me']||_0x15c310['useAnonymousUser']();for(const _0x540d43 of _0x344326)_0x5d121b['addCommentThread'](_0x540d43);for(const _0x18b1ba of _0x7944c9)_0x5e80dd['addSuggestionData'](_0x18b1ba);_0x44edbd['data']['set'](_0xd95689);}(_0x1a549c,_0x234ad0),_0x234ad0['execute'](_0x4086b2?'acceptAllSuggestions':'discardAllSuggestions');const _0x5ba4a2=Ge(_0x234ad0)?_0x234ad0['getFullData'](_0x3af22a):_0x234ad0['data']['get'](_0x3af22a);return await _0x234ad0['destroy'](),_0x5ba4a2;}class Me extends _0x2ae501{['options'];constructor(_0xfd16a9,_0x1b8e89){super(_0xfd16a9),this['options']=_0x1b8e89,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'](_0x5240a8,_0xacd5ca){if(!this['element'])return;const _0x25fd34=[];for(const [_0x21784a,_0x1bec30]of _0x5240a8){const _0x17f8e7=document['createElement']('div');_0x17f8e7['setAttribute']('data-ck-root-name',_0x21784a),_0x17f8e7['className']=_0x1bec30['classes']+'\x20ck-track-changes-preview__root-container',_0x17f8e7['innerHTML']=_0x1bec30['content'],_0x25fd34['push'](_0x17f8e7);}_0xacd5ca(this['element'],_0x25fd34),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x56553e{constructor(_0x16b332){super(_0x16b332),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x43b0d1=this['editor'],_0x161739=_0x43b0d1['locale'],_0x372d99=_0x43b0d1['plugins']['get']('Dialog');let _0x322474;const _0x469120=function(_0x13ed6c){const _0x3151d0={};if('editables'in _0x13ed6c['ui']['view']){for(const [_0x5f58bc,_0x5788ac]of Object['entries'](_0x13ed6c['ui']['view']['editables']))_0x3151d0[_0x5f58bc]=_0x5788ac['element'];}else _0x3151d0[_0x13ed6c['model']['document']['getRootNames']()[0x0]]=_0x13ed6c['ui']['view']['editable']['element'];return _0x3151d0;}(_0x43b0d1),_0x4c4f1e=function(_0x2e28ca){let _0x2fb2f9=0x0;for(const _0xd66887 of Object['values'](_0x2e28ca))_0x2fb2f9=Math['max'](_0x2fb2f9,_0xd66887['getBoundingClientRect']()['width']);let _0x3ad84e=0x0;for(const _0x1ffe57 of Object['values'](_0x2e28ca))_0x3ad84e+=_0x1ffe57['getBoundingClientRect']()['height'];const _0x2f7b4b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5ad83a=Math['min'](_0x3ad84e,_0x2f7b4b);return{'width':_0x2fb2f9,'height':_0x5ad83a};}(_0x469120);_0x372d99['show']({'id':'finalContentPreview','title':c(_0x161739,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x161739,{'dialogRects':_0x4c4f1e}),'onHide':()=>{_0x322474['detachFromDom']();},'onShow':()=>{_0x43b0d1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x379c07=>{const _0x31407a=this['_standarizeRootsData'](_0x379c07,_0x43b0d1,_0x469120);_0x372d99['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31407a,_0x43b0d1['config']['get']('trackChanges.preview.renderFunction'));}),_0x322474=new _0x369a10(_0x161739,[_0x372d99['view']]),_0x322474['attachToDom'](),_0x322474['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x43b0d1['once']('destroy',()=>{_0x322474['detachFromDom']();});const _0x584d98=_0x372d99['view']['headerView']['class'];_0x372d99['view']['headerView']['class']=_0x584d98?_0x584d98+'\x20ck-reset_all':'ck-reset_all',_0x372d99['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x372d99['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5ae26e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x10cf45=_0x5ae26e['previewMode'],_0x5145b3={};if('$labels'===_0x10cf45){for(const _0x4e4cee of _0x5ae26e['getMergeFieldsIds']())_0x5145b3[_0x4e4cee]=_0x5ae26e['getLabel'](_0x4e4cee)||_0x4e4cee;}else{const _0x87dee8='$defaultValues'===_0x10cf45?_0x5ae26e['getDefaultValues']():_0x5ae26e['getDataSetValues'](_0x10cf45,!0x0);for(const _0x30cbbf of Object['entries'](_0x87dee8)){const [_0x3dd726,_0x43fb8b]=_0x30cbbf;_0x5145b3[_0x3dd726]=null!==_0x43fb8b?_0x43fb8b:_0x5ae26e['getLabel'](_0x3dd726)||_0x3dd726;}}return{'mergeFieldsData':_0x5145b3};}['_standarizeRootsData'](_0x388e5a,_0x3bf585,_0x2cb5ac){let _0xd07637;if('string'==typeof _0x388e5a){const _0x2a1216=_0x3bf585['model']['document']['getRootNames']()[0x0];_0xd07637={[_0x2a1216]:_0x388e5a};}else _0xd07637=_0x388e5a;const _0x340799=this['_fixMediaEmbeds'](_0xd07637,_0x3bf585),_0x59fdff=function(_0x1c48b1,_0x132df7){for(const [_0x59544b,_0x32590e]of _0x1c48b1)_0x32590e['classes']=_0x132df7[_0x59544b]['classList']['value']['replace']('ck-focused','');return _0x1c48b1;}(this['_sortRoots'](_0x3bf585)['reduce']((_0x5e64c0,_0x1d7892)=>(_0x5e64c0['push']([_0x1d7892,{'content':_0x340799[_0x1d7892],'classes':''}]),_0x5e64c0),[]),_0x2cb5ac);return _0x59fdff;}['_fixMediaEmbeds'](_0x55dea0,_0x5a79a7){if(!_0x5a79a7['plugins']['has']('MediaEmbedEditing'))return _0x55dea0;const _0x3d08f2=_0x5a79a7['plugins']['get']('MediaEmbedEditing');for(const [_0x4db3d9,_0x175acb]of Object['entries'](_0x55dea0)){const _0x37b5a6=document['createElement']('div');_0x37b5a6['innerHTML']=_0x175acb,(_0x37b5a6['querySelectorAll']('figure.media')['forEach'](_0x48968c=>{const _0x1f301f=_0x48968c['querySelector']('oembed');if(_0x1f301f){const _0x1ced47=_0x1f301f['getAttribute']('url');if(_0x1ced47){const _0x329663=_0x3d08f2['registry']['getMediaViewElement'](new _0x3d3be1(_0x5a79a7['editing']['view']['document']),_0x1ced47,{'elementName':'','renderForEditingView':!0x0}),_0x5209dd=document['createElement']('div');_0x5209dd['classList']['add']('ck-media__wrapper'),_0x329663['render'](_0x5209dd,_0x5a79a7['editing']['view']['domConverter']),_0x1f301f['replaceWith'](_0x5209dd);}}}),_0x55dea0[_0x4db3d9]=_0x37b5a6['innerHTML']);}return _0x55dea0;}['_sortRoots'](_0x128631){if(!function(_0x25f1fb){return void 0x0!==_0x25f1fb['getRootsAttributes'];}(_0x128631))return _0x128631['model']['document']['getRootNames']();const _0x3edd5d=[],_0x224283=new Map();for(const _0x55092e of _0x128631['model']['document']['getRootNames']()){const _0x2cde53=_0x128631['editing']['view']['getDomRoot'](_0x55092e)['getClientRects']()['item'](0x0);_0x3edd5d['push'](_0x55092e),_0x224283['set'](_0x55092e,_0x2cde53);}return _0x3edd5d['sort']((_0x4f6bdd,_0x2d552a)=>{const _0x4b533e=_0x224283['get'](_0x4f6bdd),_0x39ba12=_0x224283['get'](_0x2d552a);return _0x4b533e['y']-_0x39ba12['y']||_0x4b533e['x']-_0x39ba12['x'];}),_0x3edd5d;}}class te extends _0x11ea7f{static get['requires'](){return[T,_0x4de383];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54249b){super(_0x54249b),_0x54249b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x54249b['config']['define']('trackChanges.preview.renderFunction',(_0x490506,_0xeb4692)=>{for(const _0x27e5bb of _0xeb4692)_0x490506['appendChild'](_0x27e5bb);});}}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};