@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250207.0 → 0.0.0-nightly-20250209.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x286688,PendingActions as _0x22eeeb,icons as _0x54f2da}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x436bcf,ObservableMixin as _0x4580c0,uid as _0x32598d,priorities as _0x1b5222,insertToPriorityArray as _0x5bf910,logWarning as _0x3edaee,getEnvKeystrokeText as _0x343307,FocusTracker as _0x468dcb,KeystrokeHandler as _0x1e6617,Collection as _0x3d9ae5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3e248a,View as _0x5d2a58,ViewCollection as _0x45a9ce,FocusCycler as ts,ViewModel as _0xa40ffc,createDropdown as _0x3d40cd,SplitButtonView as _0x4fb29d,addListToDropdown as _0x2636e7,MenuBarMenuView as _0x85b609,MenuBarMenuListView as _0x196779,ListSeparatorView as _0x207c1a,MenuBarMenuListItemView as _0x55e11e,MenuBarMenuListItemButtonView as _0x533feb,BodyCollection as _0x1eac28,Dialog as _0x1214d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x122d88,hashObject as _0xfb3446,surroundingMarkersDetector as _0x3ba4a5,FOCUS_ANNOTATION_KEYSTROKE as _0x523b65,AriaDescriptionView as _0x2adf89,setupThreadKeyboardNavigation as _0x4cbd67,trimHtml as _0x17e155,UserView as _0x5e38fe,LateFocusButtonView as _0x385fd2,getDateTimeFormatter as _0x274689,getAllMarkersDomElementsSorted as _0x15a27b,sanitizeEditorConfig as _0x53015a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2874a2,LiveRange as _0xe90d55,LivePosition as _0x23408d,DowncastWriter as _0x14c1d0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xe14a28,toWidget as _0x25657a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b71dd,set as _0x5f5815,isEqual as _0x13fe29,unset as _0x28af8b,omit as Et}from'lodash-es';import{Delete as _0x122464,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x586af3,ShiftEnter as _0xcba925}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x59bede,_0x50e4d5){super(_0x59bede),this['_enabledCommands']=_0x50e4d5,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 _0x155cc0 of this['editor']['commands']['commands']())_0x155cc0['affectsData']&&!this['_enabledCommands']['has'](_0x155cc0)&&_0x155cc0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x20ff98 of this['editor']['commands']['commands']())_0x20ff98['affectsData']&&!this['_enabledCommands']['has'](_0x20ff98)&&_0x20ff98['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x469b32,_0x46afa9){super(_0x469b32),this['_suggestions']=_0x46afa9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d17c3){const _0x52a894=this['_suggestions']['get'](_0x4d17c3);if(!_0x52a894)throw new _0x436bcf('track-changes-accept-suggestion-not-found',this);const _0x5f310f=_0x52a894['getRanges']();this['editor']['model']['canEditAt'](_0x5f310f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x52a894);}}class R extends Qt{['_suggestions'];constructor(_0x1b5f2b,_0x41e900){super(_0x1b5f2b),this['_suggestions']=_0x41e900,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59da9c){const _0x23e820=this['_suggestions']['get'](_0x59da9c);if(!_0x23e820)throw new _0x436bcf('track-changes-discard-suggestion-not-found',this);const _0x442488=_0x23e820['getRanges']();this['editor']['model']['canEditAt'](_0x442488)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x23e820);}}function ns(_0x57bb10,_0x21aadf){let _0x305224='';return _0x305224+=_0x57bb10['split']('*')['map']((_0x18e1cd,_0x4034b6)=>_0x4034b6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x18e1cd)+'</span>':nn(_0x18e1cd))['join'](''),_0x21aadf&&(_0x305224+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x21aadf['value']+'\x22\x20title=\x22'+_0x21aadf['title']+'\x22></span>'),_0x305224;}function nn(_0xdbadc9){const _0x34bd72=document['createElement']('span');return _0x34bd72['innerText']=_0xdbadc9,_0x34bd72['innerHTML'];}function Xt(_0x19727c){return _0x19727c['sort']((_0x47763f,_0x2f8668)=>'deletion'==_0x47763f['type']&&'deletion'!=_0x2f8668['type']?-0x1:'deletion'!=_0x47763f['type']&&'deletion'==_0x2f8668['type']?0x1:0x0);}function to(_0x9deea8,_0x5da985){let _0x3ddc2b,_0x185fd6=0x0;const _0x125ebb=[],_0x2c79a0=_0x5da985['schema'];for(;_0x185fd6<_0x9deea8['length'];){const _0x200b3e=_0x9deea8[_0x185fd6],_0x310e7a=_0x9deea8[_0x185fd6+0x1];_0x3ddc2b||(_0x3ddc2b=_0x5da985['createPositionBefore'](_0x200b3e)),on(_0x5da985,_0x200b3e,_0x310e7a)||(_0x125ebb['push'](_0x5da985['createRange'](_0x3ddc2b,_0x2c79a0['isObject'](_0x200b3e)?_0x5da985['createPositionAfter'](_0x200b3e):_0x5da985['createPositionAt'](_0x200b3e,'end'))),_0x3ddc2b=null),_0x185fd6++;}return _0x125ebb;}function on(_0x1c5d77,_0xf0792b,_0x4763a5){if(!_0x4763a5)return!0x1;const _0x3447ff=_0x1c5d77['createPositionAfter'](_0xf0792b),_0x2228e5=_0x1c5d77['createPositionBefore'](_0x4763a5);return _0x3447ff['isTouching'](_0x2228e5);}function Yt(_0x311173,_0xacb815,_0x214d00){for(;_0x214d00['length'];){const _0x3c9cec=_0x214d00['splice'](0x0,0x64);_0x311173['change'](()=>{for(const _0x37262c of _0x3c9cec)_0x37262c['isInContent']&&_0xacb815['execute'](_0x37262c['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x19f44a,_0x4ae378,_0x10b672){super(_0x19f44a),this['_command']=_0x4ae378,this['_suggestions']=_0x10b672,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f53a8=Array['from'](this['_suggestions']['values']())['some'](_0x190a50=>_0x190a50['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f53a8;}['execute'](){const _0x119eb8=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x1e0c27 of _0x119eb8){const _0xecb8d4=_0x1e0c27['getRanges']();if(!this['editor']['model']['canEditAt'](_0xecb8d4))return;}Yt(this['editor']['model'],this['_command'],_0x119eb8);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1ce1b7,_0x112d01,_0x309149){super(_0x1ce1b7),this['_command']=_0x112d01,this['_suggestions']=_0x309149,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x432354=this['editor']['model']['document']['selection'],_0xee4f1b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x27374e,_0x279634){const _0x43003a=Array['from'](_0x27374e['getRanges']()),_0x289943=new Set();for(const _0x4a8f49 of _0x279634)if(_0x4a8f49['isInContent']){for(const _0x1c0769 of _0x43003a)for(const _0x3a6616 of _0x4a8f49['getRanges']())(_0x1c0769['isIntersecting'](_0x3a6616)||_0x27374e['isCollapsed']&&!_0x4a8f49['isMultiRange']&&_0x4a8f49['next']&&_0x3a6616['end']['isTouching'](_0x1c0769['start']))&&_0x289943['add'](_0x4a8f49);}return _0x289943;}(_0x432354,_0xee4f1b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x30ff20=Xt(Array['from'](this['_selectedSuggestions']));for(const _0xf053b of _0x30ff20){const _0x11641e=_0xf053b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x11641e))return;}Yt(this['editor']['model'],this['_command'],_0x30ff20);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x4580c0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5e7852,_0xfd3367){super(),this['id']=_0xfd3367['id'],this['type']=_0xfd3367['type'],this['subType']=_0xfd3367['subType']||null,this['author']=_0xfd3367['author'],this['creator']=_0xfd3367['creator']||_0xfd3367['author'],this['isExternal']=Boolean(_0xfd3367['attributes']&&_0xfd3367['attributes']['@external']),this['data']=null,this['_model']=_0x5e7852,this['_onAccept']=_0xfd3367['onAccept'],this['_onDiscard']=_0xfd3367['onDiscard'],this['_onAttributesChange']=_0xfd3367['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xfd3367['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 _0x458a21=this;for(;_0x458a21['previous'];)_0x458a21=_0x458a21['previous'];return _0x458a21;}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'](_0x30fb3b){this['_markerNames']['add'](_0x30fb3b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x14b986=>this['_model']['markers']['get'](_0x14b986))['filter'](_0x327973=>_0x327973);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3803a2=>{for(const _0x4c34bd of this['getMarkers']())_0x3803a2['removeMarker'](_0x4c34bd);}),this['_markerNames']['clear']();}['removeMarker'](_0x2c308f){this['_model']['change'](_0x36b99d=>{_0x36b99d['removeMarker'](_0x2c308f);}),this['_markerNames']['delete'](_0x2c308f);}['addRange'](_0x529238){const _0x4c25b5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4c25b5),this['_model']['change'](_0x46e142=>{_0x46e142['addMarker'](_0x4c25b5,{'range':_0x529238,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58e5cb){for(const _0x118748 of this['getRanges']())if(_0x118748['isIntersecting'](_0x58e5cb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3fe0cc=>_0x3fe0cc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x483027,_0x59a319)=>[..._0x483027,..._0x59a319['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b0f4b=this['getRanges']();if(0x1!=_0x3b0f4b['length'])return null;const _0x2515c6=_0x3b0f4b[0x0],_0x1537ff=_0x2515c6['start']['nodeAfter'],_0x51704e=_0x2515c6['end']['nodeBefore'];return _0x1537ff instanceof _0x2874a2?_0x1537ff!=_0x51704e?null:_0x1537ff: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 _0x49ee97=[];let _0x101fb5=this['head'];for(;_0x101fb5;)_0x49ee97['push'](_0x101fb5),_0x101fb5=_0x101fb5['next'];return _0x49ee97;}['setAttribute'](_0x43b818,_0x30e32f){const _0x15690a=_0x1b71dd(this['attributes']);_0x5f5815(_0x15690a,_0x43b818,_0x30e32f),_0x13fe29(_0x15690a,this['attributes'])||(this['attributes']=_0x15690a,this['_onAttributesChange'](_0x15690a));}['removeAttribute'](_0x474ed4){const _0x42f9a2=_0x1b71dd(this['attributes']);_0x28af8b(_0x42f9a2,_0x474ed4),_0x13fe29(_0x42f9a2,this['attributes'])||(this['attributes']=_0x42f9a2,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 _0x32598d()['substr'](0x1,0x5);}}function o(_0xfb44ed,_0x2b9584,_0x250a79){const _0x8c7598=_0xfb44ed['t'],t=_0xfb44ed['t'];switch(_0x2b9584){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',_0x250a79);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x250a79);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x250a79);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x250a79);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x250a79);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',_0x250a79);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x250a79);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',_0x250a79);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x250a79);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x250a79);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x250a79);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x250a79);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x250a79);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x250a79);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x250a79);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x250a79);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x250a79);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x250a79);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x250a79);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x250a79);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x250a79);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x250a79);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x250a79);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x250a79);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'},_0x250a79);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x250a79);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x250a79);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x250a79);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x250a79);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x250a79);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'},_0x250a79);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x250a79);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x250a79);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x250a79);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x250a79);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'},_0x250a79);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x250a79);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'},_0x250a79);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'},_0x250a79);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x250a79);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'},_0x250a79);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x250a79);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'},_0x250a79);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x250a79);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x250a79);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'},_0x250a79);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x250a79);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 _0x8c7598({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x250a79);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x8c7598({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x250a79);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x250a79);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'},_0x250a79);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'},_0x250a79);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'},_0x250a79);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2b9584;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3af00d,_0x260dfd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3af00d,this['_locale']=_0x260dfd;}['getDescriptions'](_0x1ba6ae){const _0x45688d=[],_0x547e75=new Set(),_0x189df6=new Set();for(let _0x405b6=0x0;_0x405b6<_0x1ba6ae['length'];_0x405b6++){const _0x54d0e7=_0x1ba6ae[_0x405b6];if(!_0x54d0e7['isInContent'])continue;const _0x11d607=this['_handleCustomCallbackDescription'](_0x54d0e7);if(_0x11d607){if(null!=_0x54d0e7['subType']){if(_0x547e75['has'](_0x54d0e7['subType']))continue;_0x547e75['add'](_0x54d0e7['subType']);}_0x45688d['push'](_0x11d607);}else{if('attribute'!=_0x54d0e7['type'])'insertion'!=_0x54d0e7['type']&&'deletion'!=_0x54d0e7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x45688d,_0x54d0e7,_0x1ba6ae[_0x405b6+0x1]);else{const _0xe6f5e5=_0x54d0e7['data']['key'];if(_0x189df6['has'](_0xe6f5e5))continue;_0x189df6['add'](_0x54d0e7['data']['key']),_0xe6f5e5==m?this['_handleRenameSuggestionDescription'](_0x45688d,_0x54d0e7):this['_handleAttributeSuggestionDescription'](_0x45688d,_0x54d0e7);}}}return this['_resolveDescriptionItems'](_0x45688d);}['registerDescriptionCallback'](_0x2de487){this['_customCallbacks']['push'](_0x2de487);}['registerElementLabel'](_0x323137,_0x5128d7,_0xa2a3eb=_0x1b5222['normal']){'function'==typeof _0x323137?_0x5bf910(this['_itemLabelsCallbacks'],{'matchingCallback':_0x323137,'label':_0x5128d7,'priority':_0xa2a3eb}):this['_itemLabels']['set'](_0x323137,_0x5128d7);}['registerAttributeLabel'](_0x3d5356,_0x3f0839){this['_attributeLabels']['set'](_0x3d5356,_0x3f0839);}['getItemLabel'](_0x458382,_0x4792f9=0x1){let _0xcf7c88;for(const _0x56af5a of this['_itemLabelsCallbacks'])if(_0x56af5a['matchingCallback'](_0x458382)){_0xcf7c88=_0x56af5a['label'];break;}return _0xcf7c88||(_0xcf7c88=this['_itemLabels']['get'](_0x458382['name'])),_0xcf7c88?_0xcf7c88(_0x4792f9):0x1!==_0x4792f9?_0x4792f9+'\x20'+_0x458382['name']+'s':''+_0x458382['name'];}['_addDescriptionItems'](_0x5313fb,_0x2f419d){const _0x34fae9=_0x2f419d['getFirstRange']()['getWalker'](),_0x74ee06='insertion'==_0x2f419d['type']?'add':'remove';for(const _0x561532 of _0x34fae9){const _0x45fc35=_0x561532['item'],_0x3a21d3=_0x5313fb[_0x5313fb['length']-0x1];if(_0x45fc35['is']('$textProxy'))_0x3a21d3&&_0x3a21d3['type']['indexOf']('Container')>-0x1&&_0x5313fb['pop'](),_0x3a21d3&&'text'==_0x3a21d3['type']?_0x3a21d3[_0x74ee06]+=_0x45fc35['data']:_0x5313fb['push']({'type':'text','add':'add'==_0x74ee06?_0x45fc35['data']:'','remove':'remove'==_0x74ee06?_0x45fc35['data']:''});else{if(this['_schema']['isObject'](_0x45fc35)){const _0x32b2cc=_0x45fc35;if(_0x3a21d3&&_0x3a21d3['type']['indexOf']('Container')>-0x1&&_0x5313fb['pop'](),'elementEnd'==_0x561532['type'])continue;_0x3a21d3&&_0x3a21d3['type']==_0x74ee06+'Object'&&_0x3a21d3['element']['name']==_0x32b2cc['name']?_0x3a21d3['quantity']++:_0x5313fb['push']({'type':_0x74ee06+'Object','element':_0x32b2cc,'quantity':0x1}),_0x34fae9['skip'](_0x128d5e=>!('elementEnd'==_0x128d5e['type']&&_0x128d5e['item']==_0x45fc35));}else{if(this['_schema']['checkChild'](_0x45fc35,'$text')||_0x45fc35['is']('element','softBreak')){const _0x35dc04=_0x45fc35;if('add'==_0x74ee06&&'elementStart'==_0x561532['type']||'remove'==_0x74ee06&&'elementEnd'==_0x561532['type'])continue;if(_0x3a21d3&&-0x1==_0x3a21d3['type']['indexOf']('Container')){'text'==_0x3a21d3['type']&&(_0x3a21d3[_0x74ee06]+='\x0a');continue;}let _0x2c9149;if(_0x2c9149='add'==_0x74ee06?_0x35dc04['nextSibling']&&!this['_schema']['isObject'](_0x35dc04['nextSibling'])?_0x35dc04['nextSibling']:null:_0x35dc04['previousSibling']&&!this['_schema']['isObject'](_0x35dc04['previousSibling'])?_0x35dc04['previousSibling']:null,_0x35dc04['isEmpty']||_0x2c9149&&_0x2c9149['isEmpty']){const _0x376e9a=_0x2c9149&&_0x2c9149['isEmpty']?_0x2c9149:_0x35dc04;_0x3a21d3&&_0x3a21d3['type']==_0x74ee06+'EmptyContainer'&&_0x3a21d3['element']['name']==_0x376e9a['name']?_0x3a21d3['quantity']++:_0x5313fb['push']({'type':_0x74ee06+'EmptyContainer','element':_0x376e9a,'quantity':0x1});}else _0x5313fb['push']({'type':_0x74ee06+'Container','element':_0x35dc04});}}}}}['_resolveDescriptionItems'](_0x51f303){const _0x4729e2=this['_locale'],_0x170160=[],_0x37c073=[],_0x3a7b1c=[];for(const _0x55214f of _0x51f303)switch(_0x55214f['type']){case'text':if(_0x55214f['add']=_0x55214f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x55214f['remove']=_0x55214f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x55214f['add']&&''!=_0x55214f['remove']){_0x170160['push']({'type':'replace','content':o(_0x4729e2,'REPLACE_TEXT',['\x22'+_0x55214f['remove']+'\x22','\x22'+_0x55214f['add']+'\x22'])});continue;}if(null!=_0x55214f['add']['match'](/^ +$/)){_0x170160['push']({'type':'insertion','content':o(_0x4729e2,'*Insert:*\x20%0',o(_0x4729e2,'ELEMENT_SPACE',_0x55214f['add']['length']))});continue;}if(null!=_0x55214f['remove']['match'](/^ +$/)){_0x170160['push']({'type':'deletion','content':o(_0x4729e2,'*Remove:*\x20%0',o(_0x4729e2,'ELEMENT_SPACE',_0x55214f['remove']['length']))});continue;}if(''!=_0x55214f['add']){_0x170160['push']({'type':'insertion','content':o(_0x4729e2,'*Insert:*\x20%0','\x22'+_0x55214f['add']+'\x22')});continue;}_0x170160['push']({'type':'deletion','content':o(_0x4729e2,'*Remove:*\x20%0','\x22'+_0x55214f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x170160['push']({'type':'insertion','content':o(_0x4729e2,'*Insert:*\x20%0',this['getItemLabel'](_0x55214f['element'],_0x55214f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x170160['push']({'type':'deletion','content':o(_0x4729e2,'*Remove:*\x20%0',this['getItemLabel'](_0x55214f['element'],_0x55214f['quantity']))});continue;case'addContainer':_0x170160['push']({'type':'insertion','content':o(_0x4729e2,'*Split:*\x20%0',this['getItemLabel'](_0x55214f['element'],_0x55214f['quantity']))});continue;case'removeContainer':_0x170160['push']({'type':'deletion','content':o(_0x4729e2,'*Merge:*\x20%0',this['getItemLabel'](_0x55214f['element'],_0x55214f['quantity']))});continue;case'addFormat':_0x37c073['push'](_0x55214f['key']);continue;case'removeFormat':_0x3a7b1c['push'](_0x55214f['key']);continue;default:_0x170160['push'](_0x55214f);}if(_0x37c073['length']){const _0x414559=_0x37c073['map'](_0x35d08f=>this['_attributeLabels']['has'](_0x35d08f)?this['_attributeLabels']['get'](_0x35d08f):_0x35d08f)['join'](',\x20');_0x170160['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x414559)});}if(_0x3a7b1c['length']){const _0x3bcd94=_0x3a7b1c['map'](_0x2ae9f6=>this['_attributeLabels']['has'](_0x2ae9f6)?this['_attributeLabels']['get'](_0x2ae9f6):_0x2ae9f6)['join'](',\x20');_0x170160['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3bcd94)});}return _0x170160;}['_handleCustomCallbackDescription'](_0x507a3e){for(const _0x1f8620 of this['_customCallbacks']){const _0x316eb3=_0x1f8620(_0x507a3e);if(_0x316eb3&&'type'in _0x316eb3)return _0x316eb3;}}['_handleAttributeSuggestionDescription'](_0xf05796,_0x5cfd2f){const _0x550bc2=_0x5cfd2f['data'],_0x586924=void 0x0===_0x550bc2['newValue']?'removeFormat':'addFormat';_0xf05796['push']({'type':_0x586924,'key':_0x550bc2['key']});}['_handleRenameSuggestionDescription'](_0x184701,_0x3d212d){_0x184701['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d212d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x33bb0b,_0x1e6a16,_0x46a690){if(this['_addDescriptionItems'](_0x33bb0b,_0x1e6a16),_0x46a690&&_0x46a690['getFirstRange']()&&!_0x1e6a16['getFirstRange']()['end']['isEqual'](_0x46a690['getFirstRange']()['start'])){const _0x44046c=_0x33bb0b[_0x33bb0b['length']-0x1],_0x43c66b='insertion'==_0x1e6a16['type']?'add':'remove';_0x44046c&&'text'==_0x44046c['type']&&(_0x44046c[_0x43c66b]+='\x0a');}}}class U extends _0x286688{['afterInit'](){const _0xe6601c=this['editor'],_0x2027f2=_0xe6601c['plugins']['get']('TrackChangesEditing');_0xe6601c['commands']['get']('showAIAssistant')&&_0x2027f2['enableCommand']('showAIAssistant');}}class V extends _0x286688{['afterInit'](){const _0x3e1859=this['editor'],_0x2393bf=_0x3e1859['locale'];if(!_0x3e1859['plugins']['has']('AlignmentEditing'))return;const _0x16a874=_0x3e1859['plugins']['get']('TrackChangesEditing');_0x16a874['enableDefaultAttributesIntegration']('alignment'),_0x16a874['registerBlockAttribute']('alignment'),_0x16a874['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2393bf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x464456=this['editor'],_0x55b650=_0x464456['locale'];_0x464456['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x107c07=>{if('formatBlock'!=_0x107c07['type'])return;const {data:_0x1d1536}=_0x107c07;if(_0x1d1536&&'alignment'==_0x1d1536['commandName']){const _0x15c6c4=_0x1d1536['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x55b650,'*Format:*\x20%0',function(_0x5dbf01){switch(_0x5dbf01){case'left':return o(_0x55b650,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x55b650,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x55b650,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x55b650,'FORMAT_JUSTIFY_TEXT');}}(_0x15c6c4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x286688{['afterInit'](){const _0x32753e=this['editor'],_0x1b0447=_0x32753e['plugins']['get']('TrackChangesEditing'),_0x3a2fe1=_0x32753e['locale'];for(const _0x12b6a4 of ti){if(!_0x32753e['plugins']['has'](_0x12b6a4))continue;const _0x159ffe=_0x12b6a4['slice'](0x0,-0x7)['toLowerCase'](),_0x56347d='FORMAT_'+_0x159ffe['toUpperCase']();_0x1b0447['enableDefaultAttributesIntegration'](_0x159ffe),_0x1b0447['registerInlineAttribute'](_0x159ffe),_0x1b0447['descriptionFactory']['registerAttributeLabel'](_0x159ffe,o(_0x3a2fe1,_0x56347d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37cf06=this['editor'],_0x51d611=_0x37cf06['locale'],_0x3a742e=_0x37cf06['plugins']['get']('TrackChangesEditing');function _0x5bb9b6(_0x5a369b,_0x344a64){_0x3a742e['descriptionFactory']['registerDescriptionCallback'](_0xc04088=>{if('formatInline'!=_0xc04088['type'])return;const {data:_0x5a99ee}=_0xc04088;return _0x5a99ee&&_0x5a99ee['commandName']===_0x5a369b?_0x5a99ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51d611,'*Format:*\x20%0',_0x344a64)}:{'type':'format','content':o(_0x51d611,'*Remove\x20format:*\x20%0',_0x344a64)}:void 0x0;});}_0x5bb9b6('bold',o(_0x51d611,'FORMAT_BOLD')),_0x5bb9b6('italic',o(_0x51d611,'FORMAT_ITALIC')),_0x5bb9b6('underline',o(_0x51d611,'FORMAT_UNDERLINE')),_0x5bb9b6('code',o(_0x51d611,'FORMAT_CODE')),_0x5bb9b6('strikethrough',o(_0x51d611,'FORMAT_STRIKETHROUGH')),_0x5bb9b6('subscript',o(_0x51d611,'FORMAT_SUBSCRIPT')),_0x5bb9b6('superscript',o(_0x51d611,'FORMAT_SUPERSCRIPT'));}}class F extends _0x286688{['afterInit'](){const _0x549c25=this['editor'],_0x538036=_0x549c25['locale'];if(!_0x549c25['plugins']['has']('BlockQuoteEditing'))return;const _0x2ecf5f=_0x549c25['plugins']['get']('TrackChangesEditing'),_0x41932a=this['editor']['commands']['get']('blockQuote');_0x2ecf5f['enableCommand']('blockQuote',(_0x1114ce,_0x335d56={})=>{const _0x290875=this['editor']['model']['document']['selection'],_0x1a0a37=_0x335d56&&void 0x0!==_0x335d56['forceValue']?_0x335d56['forceValue']:!_0x41932a['value'];let _0x58b426=[];if(_0x1a0a37){const _0x2e3836=Array['from'](_0x290875['getSelectedBlocks']())['filter'](_0x42fdc9=>oo(_0x42fdc9)||function(_0x3777e2,_0x2b9dfb){const _0x5f1738=_0x2b9dfb['checkChild'](_0x3777e2['parent'],'blockQuote'),_0x48f47f=_0x2b9dfb['checkChild'](['$root','blockQuote'],_0x3777e2);return _0x5f1738&&_0x48f47f;}(_0x42fdc9,this['editor']['model']['schema']));_0x58b426=to(_0x2e3836,_0x549c25['model']);}else{const _0x35174f=Array['from'](_0x290875['getSelectedBlocks']())['filter'](_0x9076e=>oo(_0x9076e));_0x58b426=to(_0x35174f,_0x549c25['model']);}_0x549c25['model']['change'](()=>{for(const _0x3a6767 of _0x58b426)_0x2ecf5f['markBlockFormat'](_0x3a6767,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a0a37}]});});}),_0x2ecf5f['descriptionFactory']['registerDescriptionCallback'](_0x201926=>{const {data:_0x1c27c3}=_0x201926;if(_0x1c27c3&&'blockQuote'==_0x1c27c3['commandName']){const _0x7a1441=o(_0x538036,'ELEMENT_BLOCK_QUOTE');return _0x1c27c3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x538036,'*Set\x20format:*\x20%0',_0x7a1441)}:{'type':'format','content':o(_0x538036,'*Remove\x20format:*\x20%0',_0x7a1441)};}});}}function oo(_0x402159){return'blockQuote'==_0x402159['parent']['name'];}class L extends _0x286688{['afterInit'](){const _0x295072=this['editor'],_0x853d7b=_0x295072['locale'],_0x58c2f6=_0x295072['plugins']['get']('TrackChangesEditing');_0x295072['plugins']['has']('BookmarkEditing')&&(_0x58c2f6['enableCommand']('insertBookmark'),_0x58c2f6['enableDefaultAttributesIntegration']('updateBookmark'),_0x58c2f6['registerBlockAttribute']('bookmarkId'),_0x58c2f6['descriptionFactory']['registerDescriptionCallback'](_0x5e7e08=>{if('insertion'!=_0x5e7e08['type']&&'deletion'!=_0x5e7e08['type']&&'attribute'!=_0x5e7e08['type'])return;const _0x4181f7=_0x5e7e08['getContainedElement']();if(null==_0x4181f7)return;if(!_0x4181f7['is']('element','bookmark'))return;const _0x45cf3c=_0x4181f7['getAttribute']('bookmarkId');if('insertion'==_0x5e7e08['type'])return{'type':'insertion','content':o(_0x853d7b,'*Insert:*\x20%0','\x22'+_0x45cf3c+'\x22\x20'+o(_0x853d7b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5e7e08['type'])return{'type':'deletion','content':o(_0x853d7b,'*Remove:*\x20%0','\x22'+_0x45cf3c+'\x22\x20'+o(_0x853d7b,'ELEMENT_BOOKMARK'))};const {data:_0xfc5fdd}=_0x5e7e08;if(!_0xfc5fdd||'bookmarkId'!=_0xfc5fdd['key'])return;return{'type':'format','content':o(_0x853d7b,'*Set\x20bookmark:*\x20%0','\x22'+_0xfc5fdd['newValue']+'\x22')};}));}}class J extends _0x286688{['afterInit'](){const _0x7774f8=this['editor'];_0x7774f8['plugins']['has']('CaseChange')&&(_0x7774f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x7774f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x7774f8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x286688{['afterInit'](){const _0x2629bd=this['editor'];_0x2629bd['commands']['get']('ckbox')&&_0x2629bd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x286688{['afterInit'](){const _0x19fb08=this['editor'];if(!_0x19fb08['plugins']['has']('CodeBlock'))return;const _0x4da4f1=_0x19fb08['plugins']['get']('TrackChangesEditing'),_0x1fdb8a=_0x19fb08['locale'],_0x25b8d8=_0x19fb08['config']['get']('codeBlock')['languages'],_0x19f2c8=_0x19fb08['commands']['get']('codeBlock');_0x4da4f1['enableCommand']('indentCodeBlock'),_0x4da4f1['enableCommand']('outdentCodeBlock'),_0x4da4f1['enableCommand']('codeBlock',(_0x22f5fa,_0x26fe6b={})=>{const _0x8d75f6=_0x19fb08['model'],_0x59acc7=_0x19fb08['model']['document']['selection'],_0x1d4bb1=_0x26fe6b&&void 0x0!==_0x26fe6b['forceValue']?_0x26fe6b['forceValue']:!_0x19f2c8['value'];let _0x47e62c;_0x26fe6b['language']||(_0x26fe6b['language']=_0x25b8d8[0x0]['language']),_0x47e62c=_0x1d4bb1?Array['from'](_0x59acc7['getSelectedBlocks']())['filter'](_0x1a080d=>eo(_0x1a080d)||function(_0x4a72fd,_0x48cc92){if(_0x4a72fd['is']('rootElement')||_0x48cc92['isLimit'](_0x4a72fd))return!0x1;return _0x48cc92['checkChild'](_0x4a72fd['parent'],'codeBlock');}(_0x1a080d,_0x8d75f6['schema'])):Array['from'](_0x59acc7['getSelectedBlocks']())['filter'](_0x49a665=>eo(_0x49a665));const _0x4c0c10=to(_0x47e62c,_0x8d75f6);_0x8d75f6['change'](()=>{for(const _0x5be66c of _0x4c0c10)_0x4da4f1['markBlockFormat'](_0x5be66c,{'commandName':'codeBlock','commandParams':[{..._0x26fe6b,'forceValue':_0x1d4bb1}],'formatGroupId':'blockName'});});}),(_0x4da4f1['descriptionFactory']['registerElementLabel']('codeBlock',_0x5dd15d=>o(_0x1fdb8a,'ELEMENT_CODE_BLOCK',_0x5dd15d)),_0x4da4f1['descriptionFactory']['registerDescriptionCallback'](_0x25b676=>{if('formatBlock'!=_0x25b676['type'])return;const _0x49b628=_0x1fdb8a['t'],{data:_0xca88bb}=_0x25b676;if(!_0xca88bb||'codeBlock'!=_0xca88bb['commandName'])return;const _0x22333e=_0xca88bb['commandParams'][0x0]['language'],_0x283a8a=_0x49b628(_0x25b8d8['find'](_0x5c6c59=>_0x5c6c59['language']===_0x22333e)['label'])['toLowerCase']();return _0xca88bb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fdb8a,'*Set\x20format:*\x20%0',o(_0x1fdb8a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x283a8a+')')}:{'type':'format','content':o(_0x1fdb8a,'*Remove\x20format:*\x20%0',o(_0x1fdb8a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x37b214){return'codeBlock'==_0x37b214['name'];}class z extends _0x286688{['afterInit'](){const _0x23a707=this['editor'];if(!_0x23a707['plugins']['has']('CommentsEditing'))return;_0x23a707['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3988f9,_0x4a6dc0,_0x15c0ba){const _0xba1fb7=[];for(const _0x500307 of _0x4a6dc0['getItems']())_0x500307['hasAttribute'](_0x3988f9)&&_0xba1fb7['push'](_0x15c0ba['createRangeOn'](_0x500307));return _0xba1fb7;}function De(_0x54cbc1,_0x1c8ade,{showActiveMarker:_0x311b10=!0x0}={}){const _0x320ea9=_0x54cbc1['plugins']['get']('TrackChangesEditing');return(_0x31494c,_0x1476d7,_0x31197d)=>{if(!_0x31197d['consumable']['test'](_0x1476d7['markerRange'],_0x31494c['name']))return;const _0x21b492=_0x1476d7['markerRange']['getWalker'](),_0x578ccc=_0x1476d7['markerRange']['start'],_0x4a01e9=_0x54cbc1['model']['schema'];let _0x49e695=null,_0x3486be=null,_0x149050=!0x1,_0x33758c=!0x1;for(const _0x425bd7 of _0x21b492){const _0x5b3f96=_0x425bd7['item'];_0x149050=_0x149050||_0x4a01e9['isContent'](_0x5b3f96);const _0x2856fd=_0x31197d['mapper']['toViewElement'](_0x5b3f96);if(_0x2856fd&&_0x2856fd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x425bd7['type']&&(_0x4a01e9['isBlock'](_0x5b3f96)&&!_0x4a01e9['isLimit'](_0x5b3f96)&&(_0x5b3f96['nextSibling']||_0x578ccc['isAtEnd']?_0x49e695&&_0x49e695['parent']==_0x5b3f96||(_0x49e695=_0x5b3f96,_0x264925(_0x425bd7['previousPosition']),_0x33758c=!0x0):_0x3486be=_0x3486be||_0x425bd7['previousPosition']));}function _0x264925(_0x4617a8){const {authorId:_0x37c3ce}=_0x320ea9['_splitMarkerName'](_0x1476d7['markerName']),_0x42f5eb=_0x31197d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c8ade,'data-author-id':_0x37c3ce}),_0x25530b=_0x31197d['mapper']['toViewPosition'](_0x4617a8);_0x311b10&&_0x320ea9['activeMarkers']['includes'](_0x1476d7['markerName'])&&_0x31197d['writer']['addClass']('ck-suggestion-marker--active',_0x42f5eb),_0x31197d['writer']['insert'](_0x25530b,_0x42f5eb),_0x31197d['mapper']['bindElementToMarker'](_0x42f5eb,_0x1476d7['markerName']);}_0x149050||_0x33758c||!_0x3486be||_0x264925(_0x3486be);};}class K extends _0x286688{static get['requires'](){return[_0x122464];}['init'](){const _0x23286a=this['editor'],_0x2fedd9=_0x23286a['plugins']['get']('TrackChangesEditing');_0x2fedd9['enableCommand']('delete');const _0x2d1b4f=_0x23286a['commands']['get']('deleteForward');_0x2fedd9['enableCommand']('deleteForward',(_0x206e5e,_0x316729={})=>{const _0x313383=_0x23286a['model']['createSelection'](_0x23286a['model']['document']['selection']);_0x313383['isCollapsed']&&_0x23286a['model']['modifySelection'](_0x313383,{'direction':'forward','unit':_0x316729['unit']});const _0x193eaf=_0x313383['getFirstRange'](),_0x32bf5c=_0xe90d55['fromRange'](_0x193eaf);let _0x16d36e;_0x206e5e(_0x316729),_0x16d36e='$graveyard'==_0x32bf5c['root']['rootName']?_0x23286a['model']['createRange'](_0x193eaf['start']):_0x23286a['model']['createRange'](_0x32bf5c['start'],_0x32bf5c['end']),_0x32bf5c['detach'](),_0x23286a['model']['enqueueChange'](_0x2d1b4f['buffer']['batch'],_0x299058=>{_0x2d1b4f['buffer']['lock'](),_0x299058['setSelection'](_0x299058['createRange'](_0x16d36e['end'])),_0x2d1b4f['buffer']['unlock']();});}),_0x23286a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x23286a,'merge'),{'priority':'high'}),_0x23286a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x131b13,_0x4e7c88,_0x18b4ac)=>{_0x18b4ac['options']['showSuggestionHighlights']&&De(_0x23286a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x131b13,_0x4e7c88,_0x18b4ac);},{'priority':'high'}),_0x23286a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33b115,_0x129058,_0xc45981)=>{const _0x34199c=_0xc45981['mapper']['markerNameToElements'](_0x129058['markerName']);if(_0x34199c){for(const _0x49a8ff of _0x34199c)_0x49a8ff['is']('uiElement')&&(_0xc45981['mapper']['unbindElementFromMarkerName'](_0x49a8ff,_0x129058['markerName']),_0xc45981['writer']['remove'](_0x49a8ff));}},{'priority':'high'});}}class W extends _0x286688{['afterInit'](){const _0x9fc9a7=this['editor'];if(!_0x9fc9a7['plugins']['has']('ListEditing'))return;const _0x470a6b=_0x9fc9a7['locale'],_0x51a8e1=_0x9fc9a7['plugins']['get']('TrackChangesEditing'),_0x424f45=_0x9fc9a7['plugins']['has']('TodoListEditing'),_0xacda97=!!_0x9fc9a7['config']['get']('list.multiBlock');function _0x405113(_0x56dd3a){return{'type':'format','content':''+o(_0x470a6b,'*Set\x20format:*\x20%0',_0x56dd3a)};}function _0x30d564(_0x4a7e49){return{'type':'format','content':''+o(_0x470a6b,'*Remove\x20format:*\x20%0',_0x4a7e49)};}_0x51a8e1['enableDefaultAttributesIntegration']('numberedList'),_0x51a8e1['enableDefaultAttributesIntegration']('bulletedList'),_0x51a8e1['enableDefaultAttributesIntegration']('customNumberedList'),_0x51a8e1['enableDefaultAttributesIntegration']('customBulletedList'),_0x51a8e1['enableDefaultAttributesIntegration']('indentList'),_0x51a8e1['enableDefaultAttributesIntegration']('outdentList'),_0x51a8e1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x51a8e1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x51a8e1['registerBlockAttribute']('listItemId'),_0x51a8e1['registerBlockAttribute']('listType'),_0x51a8e1['registerBlockAttribute']('listIndent'),_0xacda97&&(_0x51a8e1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x51a8e1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x424f45&&(_0x51a8e1['enableDefaultAttributesIntegration']('todoList'),_0x51a8e1['enableDefaultAttributesIntegration']('checkTodoList'),_0x51a8e1['registerBlockAttribute']('todoListChecked'),_0x51a8e1['descriptionFactory']['registerDescriptionCallback'](_0x20a64d=>{const {data:_0x5d8bb9}=_0x20a64d;if(_0x5d8bb9&&'todoListChecked'==_0x5d8bb9['key'])return{'type':'format','content':_0x5d8bb9['newValue']?o(_0x470a6b,'*Check\x20item*'):o(_0x470a6b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ecc48=>{if(_0x1ecc48['batch']['isUndo'])return!0x1;let _0x103d26=!0x1;const _0x51d51b=_0x51a8e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaee822=>'todoListChecked'===_0x51a8e1['_getAttributeKey'](_0xaee822));for(const _0xc58b0f of _0x51d51b){'todo'!=_0xc58b0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x51a8e1['_findSuggestions'](_0xc58b0f['getFirstRange'](),'attribute')['find'](_0x21e386=>'listType'===_0x51a8e1['_getAttributeKey'](_0x21e386['suggestion']))||(_0x1ecc48['removeMarker'](_0xc58b0f['getFirstMarker']()),_0x103d26=!0x0));}return _0x103d26;})),_0x51a8e1['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x470a6b,'FORMAT_INDENT'));const _0xaed5fb={'type':'format','content':''};_0x51a8e1['descriptionFactory']['registerDescriptionCallback'](_0x5c2efd=>{const {data:_0x1a0039}=_0x5c2efd;if(!_0x1a0039||'listType'!=_0x1a0039['key'])return;let _0x1636e1=_0x5c2efd['head'];for(;_0x1636e1;){if(_0x1636e1['data']&&(('listStyle'==_0x1636e1['data']['key']||'listMarkerStyle'==_0x1636e1['data']['key'])&&(_0x1636e1['data']['newValue']&&'default'!=_0x1636e1['data']['newValue']||'default'!=_0x1636e1['data']['oldValue']&&!_0x1a0039['newValue'])||!_0xacda97&&_0x1636e1['data']['key']==m))return _0xaed5fb;_0x1636e1=_0x1636e1['next'];}if(null==_0x1a0039['newValue'])switch(_0x1a0039['oldValue']){case'bulleted':return _0x30d564(o(_0x470a6b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30d564(o(_0x470a6b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30d564(o(_0x470a6b,'ELEMENT_TODO_LIST'));}switch(_0x1a0039['newValue']){case'bulleted':return _0x405113(o(_0x470a6b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x405113(o(_0x470a6b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x405113(o(_0x470a6b,'ELEMENT_TODO_LIST'));}}),_0x51a8e1['descriptionFactory']['registerDescriptionCallback'](_0x19c4bb=>{const {data:_0x363cf7}=_0x19c4bb;if(_0x363cf7&&'listIndent'==_0x363cf7['key'])return null==_0x363cf7['newValue']||null==_0x363cf7['oldValue']&&0x0==_0x363cf7['newValue']?_0xaed5fb:void 0x0;}),_0x51a8e1['descriptionFactory']['registerDescriptionCallback'](_0x2f573e=>{if('attribute'!=_0x2f573e['type'])return;const {data:_0x2fdc01}=_0x2f573e;if(!_0x2fdc01||'listItemId'!=_0x2fdc01['key'])return;const _0x2be193=Te(_0x2f573e);return'newValue'==_0x2be193?{'type':'format','content':o(_0x470a6b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2be193?{'type':'format','content':o(_0x470a6b,'*Split:*\x20list\x20item')}:_0xaed5fb;}),_0x9fc9a7['model']['document']['registerPostFixer'](_0x138943=>this['listItemIdFixer'](_0x138943)),_0x9fc9a7['model']['document']['registerPostFixer'](_0x17a645=>this['noTrackChangesFixer'](_0x17a645)),_0x9fc9a7['model']['document']['on']('change:data',(_0x3aaf51,_0x34a9e6)=>{if(_0x34a9e6['isUndo']||!_0x34a9e6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2d0ce3){if(_0x2d0ce3['batch']['isUndo']||!_0x2d0ce3['batch']['isLocal'])return!0x1;let _0x53d3aa=!0x1;const _0x2d2f77=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3de24e=>_0x3de24e['data']&&'listItemId'==_0x3de24e['data']['key'])['filter'](_0x12d9eb=>_0x12d9eb['data']['newValue']&&_0x12d9eb['data']['oldValue']);for(const _0x218898 of _0x2d2f77)Te(_0x218898)||(_0x2d0ce3['removeMarker'](_0x218898['getFirstMarker']()),_0x53d3aa=!0x0);return _0x53d3aa;}['noTrackChangesFixer'](_0x37aebc){if(_0x37aebc['batch']['isUndo']||!_0x37aebc['batch']['isLocal'])return!0x1;const _0x1ebeba=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ebeba['trackChangesCommand']['value'])return!0x1;let _0xf579ad=!0x1;const _0x5ab8fb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2a8e10=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x55f8f0=>'attribute'==_0x55f8f0['type'])['filter'](_0x52f27f=>_0x5ab8fb['includes'](_0x52f27f['attributeKey']));if(0x0==_0x2a8e10['length'])return _0xf579ad;for(const _0x3e6f13 of _0x2a8e10){const _0x265c71=_0x1ebeba['_findSuggestions'](_0x3e6f13['range'],'attribute')['filter'](_0x29b206=>!_0x29b206['meta']['isNextTo'])['map'](_0x368400=>_0x368400['suggestion'])['filter'](_0x38eff2=>{const _0x5f3b5a=_0x1ebeba['_getAttributeKey'](_0x38eff2);return _0x5ab8fb['includes'](_0x5f3b5a);});if(_0x265c71['length']){for(const _0x3198d4 of _0x265c71)_0x37aebc['removeMarker'](_0x3198d4['getFirstMarker']());_0xf579ad=!0x0;}}return _0xf579ad;}['assureChains'](){const _0x2998d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366c0b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x56e8ff;const _0x75e4ca=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5635ac=>{if(_0x5635ac['data']['oldRange']||!_0x5635ac['data']['newRange'])return null;if(!_0x5635ac['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x25659c}=_0x2998d7['_splitMarkerName'](_0x5635ac['name']);if(!_0x2998d7['hasSuggestion'](_0x25659c))return null;const _0x567b80=_0x2998d7['getSuggestion'](_0x25659c);return _0x366c0b['includes'](_0x567b80['data']['key']);})['map'](_0x276b1a=>{const {id:_0x1634bd}=_0x2998d7['_splitMarkerName'](_0x276b1a['name']),_0x591cee=_0x2998d7['getSuggestion'](_0x1634bd);return _0x56e8ff=_0x591cee['attributes']['groupId'],_0x591cee['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x75e4ca['size'])return;const _0x4344f5=_0x2998d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcaa2c5=>'attribute'==_0xcaa2c5['type']&&_0xcaa2c5['data']&&_0x366c0b['includes'](_0xcaa2c5['data']['key'])&&_0xcaa2c5['attributes']['groupId']!=_0x56e8ff)['map'](_0x59e60c=>({'listItem':_0x59e60c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x59e60c['attributes']['groupId']})),_0x30dd3a=new Set();for(const {groupId:_0x2dd3d6,listItem:_0x5b0071}of _0x4344f5)_0x75e4ca['has'](_0x5b0071)&&_0x30dd3a['add'](_0x2dd3d6);for(const _0x35c260 of _0x2998d7['getSuggestions']())_0x30dd3a['has'](_0x35c260['attributes']['groupId'])&&_0x35c260['setAttribute']('groupId',_0x56e8ff);}['_supportLegacySuggestions'](){const _0x596794=this['editor'],_0x269336=_0x596794['locale'],_0x4955fc=_0x596794['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4955fc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x38850b,_0x2963e2){const _0x30da8b=[];for(let _0xb1fa7b of _0x38850b)_0xb1fa7b['start']['nodeAfter']===_0xb1fa7b['end']['parent']&&(_0xb1fa7b=_0x596794['model']['createRange'](_0x596794['model']['createPositionAt'](_0xb1fa7b['start']['nodeAfter'],0x0))),_0x30da8b['push'](_0xb1fa7b);_0x596794['model']['change'](_0x11f8ae=>{const _0x3d52e3=_0x596794['model']['document']['selection'],_0x401dad=Array['from'](_0x3d52e3['getRanges']())['map'](_0x464d61=>_0xe90d55['fromRange'](_0x464d61));_0x11f8ae['setSelection'](_0x30da8b),_0x596794['commands']['get'](_0x2963e2['commandName'])['refresh'](),_0x2963e2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x596794['execute'](_0x2963e2['commandName'],..._0x2963e2['commandParams']),_0x11f8ae['setSelection'](_0x401dad);for(const _0x3658c5 of _0x401dad)_0x3658c5['detach']();});}),_0x4955fc['descriptionFactory']['registerElementLabel'](function(_0x44c2a3){const _0x25dc9a=!_0x596794['model']['schema']['isObject'](_0x44c2a3),_0x45c9c1=_0x44c2a3['previousSibling'],_0x45d7b4=_0x44c2a3['nextSibling'],_0x2c7a9b=_0x44c2a3['getAttribute']('listItemId'),_0x14d216=!_0x45c9c1||_0x45c9c1['getAttribute']('listItemId')!==_0x2c7a9b,_0x4bd291=!_0x45d7b4||_0x45d7b4['getAttribute']('listItemId')!==_0x2c7a9b;return _0x25dc9a&&Boolean(_0x2c7a9b)&&_0x14d216&&_0x4bd291;},_0x15fec4=>o(_0x269336,'ELEMENT_LIST_ITEM',_0x15fec4));}['_registerLegacyDescription'](){const _0x1ed401=this['editor'],_0x38a349=_0x1ed401['locale'];function _0x3e311d(_0x2351f4){const _0x5bc84a=_0x1ed401['commands']['get']('bulletedList')['value'],_0x5072ae=_0x1ed401['commands']['get']('numberedList')['value'];return'numberedList'===_0x2351f4?_0x5bc84a:_0x5072ae;}_0x1ed401['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x8c4ad2){if('formatBlock'!=_0x8c4ad2['type'])return;const {data:_0x93f879}=_0x8c4ad2;if(!_0x93f879)return;let _0x552afe,_0x582b02,_0xfcb82,_0x511617;switch(_0x93f879['commandName']){case'bulletedList':_0xfcb82=_0x93f879['commandParams'][0x0]['forceValue'],_0x511617=_0x3e311d(_0x93f879['commandName']),_0x552afe=_0xfcb82?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x511617&&_0x1ed401['config']['get']('list.multiBlock')||(_0x552afe='*Change\x20to:*\x20%0'),_0x582b02={'type':'format','content':o(_0x38a349,_0x552afe,o(_0x38a349,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xfcb82=_0x93f879['commandParams'][0x0]['forceValue'],_0x511617=_0x3e311d(_0x93f879['commandName']),_0x552afe=_0xfcb82?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x511617&&_0x1ed401['config']['get']('list.multiBlock')||(_0x552afe='*Change\x20to:*\x20%0'),_0x582b02={'type':'format','content':o(_0x38a349,_0x552afe,o(_0x38a349,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x552afe='*Indent:*\x20%0',_0x582b02={'type':'format','content':o(_0x38a349,_0x552afe,o(_0x38a349,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x552afe=function(_0x55f320){const _0x5d8485=_0x55f320['getFirstRange']();let _0x9367ea=_0x5d8485['start']['nodeAfter'];for(;_0x9367ea&&_0x5d8485['containsItem'](_0x9367ea);){if(_0x9367ea['getAttribute']('listIndent')>0x0)return!0x1;_0x9367ea=_0x9367ea['nextSibling'];}return!0x0;}(_0x8c4ad2)?o(_0x38a349,'*Format:*\x20remove\x20from\x20%0',o(_0x38a349,function(_0x4ffd6a){return'ELEMENT_'+_0x4ffd6a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x8c4ad2))):o(_0x38a349,'*Outdent:*\x20%0',o(_0x38a349,'ELEMENT_LIST_ITEM')),_0x582b02={'type':'format','content':_0x552afe};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x93f879['multipleBlocks']&&(_0x552afe='*Merge:*\x20%0',_0x582b02={'type':'deletion','content':o(_0x38a349,_0x552afe,o(_0x38a349,'ELEMENT_LIST_ITEM'))});}return _0x582b02;});}}function Te(_0x569628){let _0x1f1575=_0x569628['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1f1575;){const _0x48cb83=_0x1f1575['getAttribute']('listItemId');if(!_0x48cb83)return!0x1;if(_0x48cb83==_0x569628['data']['newValue'])return'newValue';if(_0x48cb83==_0x569628['data']['oldValue'])return'oldValue';_0x1f1575=_0x1f1575['previousSibling'];}return!0x1;}class Se extends _0x286688{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x10736e=this['editor']['config']['get']('list.properties'),_0x565627=this['editor']['plugins']['get']('TrackChangesEditing');_0x10736e['styles']&&(_0x565627['enableDefaultAttributesIntegration']('listStyle'),_0x565627['registerBlockAttribute']('listStyle')),_0x10736e['reversed']&&(_0x565627['enableDefaultAttributesIntegration']('listReversed'),_0x565627['registerBlockAttribute']('listReversed')),_0x10736e['startIndex']&&(_0x565627['enableDefaultAttributesIntegration']('listStart'),_0x565627['registerBlockAttribute']('listStart'));const _0x1518ed={'type':'format','content':''};_0x565627['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xb94e5a=this['editor']['locale'];_0x565627['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xb94e5a,'FORMAT_LIST_REVERSED')),_0x565627['descriptionFactory']['registerDescriptionCallback'](_0x4397bc=>{const {data:_0x20d26d}=_0x4397bc;if(_0x20d26d&&'listReversed'==_0x20d26d['key'])return null==_0x20d26d['newValue']||0x0==_0x20d26d['newValue']&&null==_0x20d26d['oldValue']?_0x1518ed:void 0x0;}),_0x565627['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xb94e5a,'FORMAT_LIST_START')),_0x565627['descriptionFactory']['registerDescriptionCallback'](_0x146016=>{const {data:_0x16caca}=_0x146016;if(_0x16caca&&'listStart'==_0x16caca['key'])return null==_0x16caca['newValue']||0x1==_0x16caca['newValue']&&null==_0x16caca['oldValue']?_0x1518ed:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x190eb8=>{if(_0x190eb8['batch']['isUndo'])return!0x1;let _0x3e66eb=!0x1;const _0x481242=_0x565627['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a109=>{const _0x88bdad=_0x565627['_getAttributeKey'](_0x30a109);return'listStart'==_0x88bdad||'listReversed'==_0x88bdad;});for(const _0x3b1aa9 of _0x481242){const _0x311ec2=_0x3b1aa9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x311ec2||'customNumbered'==_0x311ec2)continue;_0x565627['_findSuggestions'](_0x3b1aa9['getFirstRange'](),'attribute')['find'](_0x105475=>'listType'==_0x565627['_getAttributeKey'](_0x105475['suggestion']))||(_0x190eb8['removeMarker'](_0x3b1aa9['getFirstMarker']()),_0x3e66eb=!0x0);}return _0x3e66eb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2806cb){const _0x1b4e43=this['editor']['locale'],{data:_0x373210}=_0x2806cb,_0x107e57={'type':'format','content':''};if(!_0x373210||'listStyle'!=_0x373210['key'])return;if(!_0x373210['oldValue'])return'default'==_0x373210['newValue']?_0x107e57:{'type':'format','content':''+o(_0x1b4e43,'*Set\x20format:*\x20%0',o(_0x1b4e43,this['_getTranslationKeyForListStyle'](_0x373210['newValue'])))};if(!_0x373210['newValue']){if('default'==_0x373210['oldValue'])return _0x107e57;let _0x52de79=_0x2806cb['head'];for(;_0x52de79;){if(_0x52de79['data']&&'listType'==_0x52de79['data']['key']&&_0x52de79['data']['newValue'])return _0x107e57;_0x52de79=_0x52de79['next'];}return{'type':'format','content':''+o(_0x1b4e43,'*Remove\x20format:*\x20%0',o(_0x1b4e43,this['_getTranslationKeyForListStyle'](_0x373210['oldValue'])))};}if('default'!=_0x373210['newValue'])return{'type':'format','content':''+o(_0x1b4e43,'*Set\x20format:*\x20%0',o(_0x1b4e43,this['_getTranslationKeyForListStyle'](_0x373210['newValue'])))};let _0x320b82=_0x2806cb['head'];for(;_0x320b82;){if(_0x320b82['data']&&'listType'==_0x320b82['data']['key']&&_0x320b82['data']['newValue']&&_0x320b82['data']['oldValue'])return _0x107e57;_0x320b82=_0x320b82['next'];}return{'type':'format','content':o(_0x1b4e43,'*Set\x20format:*\x20%0',o(_0x1b4e43,'ELEMENT_'+_0x2806cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc65e08=this['editor'],_0x4c394e=_0xc65e08['locale'];_0xc65e08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbbd3a0=>{if('formatBlock'!=_0xbbd3a0['type'])return;const {data:_0x38df9c}=_0xbbd3a0;if(!_0x38df9c)return;let _0x12ec51,_0x638bda;switch(_0x38df9c['commandName']){case'listStyle':_0x12ec51='*Change\x20to:*\x20%0',_0x638bda={'type':'format','content':o(_0x4c394e,_0x12ec51,o(_0x4c394e,this['_getTranslationKeyForListStyle'](_0x38df9c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12ec51=_0x38df9c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x638bda={'type':'format','content':o(_0x4c394e,_0x12ec51)};break;case'listStart':_0x12ec51='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x638bda={'type':'format','content':o(_0x4c394e,_0x12ec51,_0x38df9c['commandParams'][0x0]['startIndex'])};}return _0x638bda;});}['_getTranslationKeyForListStyle'](_0x54cb99){return'ELEMENT_'+function(_0x924460){if(_e['includes'](_0x924460))return'bulleted';if(Re['includes'](_0x924460))return'numbered';return null;}(_0x54cb99)['toUpperCase']()+'_LIST_'+_0x54cb99['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x286688{static get['requires'](){return[_0x586af3];}['init'](){const _0x120a45=this['editor'],_0x26bc4d=_0x120a45['plugins']['get']('TrackChangesEditing'),_0x3b6273=_0x120a45['commands']['get']('enter');_0x26bc4d['enableCommand']('enter',()=>{_0x120a45['model']['change'](_0x1a0497=>{const _0x2650d8=_0x120a45['model']['document']['selection'],_0xc6b84d=_0x2650d8['getFirstPosition'](),_0x2d7dd9=_0xe90d55['fromRange'](_0x2650d8['getFirstRange']());if(_0x3b6273['enterBlock'](_0x1a0497)){const _0x414f21=_0x120a45['model']['createPositionAt'](_0xc6b84d['parent']['nextSibling'],0x0),_0x401a7b=_0x1a0497['createRange'](_0xc6b84d,_0x414f21);_0x26bc4d['markInsertion'](_0x401a7b);}else _0x1a0497['setSelection'](_0x1a0497['createRange'](_0x2d7dd9['end']));_0x2d7dd9['detach'](),_0x3b6273['fire']('afterExecute',{'writer':_0x1a0497});});}),_0x120a45['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x120a45,'split'),{'priority':'high'}),_0x120a45['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xa0bd9c,_0x5047f7,_0x582110)=>{const _0x29b0d9=_0x582110['mapper']['markerNameToElements'](_0x5047f7['markerName']);if(_0x29b0d9){for(const _0x10c8d4 of _0x29b0d9)_0x10c8d4['hasClass']('ck-suggestion-marker-split')&&(_0x582110['mapper']['unbindElementFromMarkerName'](_0x10c8d4,_0x5047f7['markerName']),_0x582110['writer']['remove'](_0x10c8d4));}},{'priority':'high'}),_0x120a45['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2445ee,_0x1162a3,_0x22216d)=>{_0x22216d['options']['showSuggestionHighlights']&&De(_0x120a45,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2445ee,_0x1162a3,_0x22216d);},{'priority':'high'});}}class Y extends _0x286688{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x302e51=this['editor']['plugins']['get']('TrackChangesEditing');_0x302e51['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x302e51['enableCommand']('findNext'),_0x302e51['enableCommand']('findPrevious'),_0x302e51['enableCommand']('replace'),_0x302e51['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c3d2b,_0x53ff13,_0x39b7f3={}){const _0x8f8964=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c3d2b(_0x1faaa7=>{let _0x2639e7=('string'==typeof _0x53ff13?_0x8f8964['findByTextCallback'](_0x53ff13,_0x39b7f3):_0x53ff13)(_0x1faaa7);Array['isArray'](_0x2639e7)&&(_0x2639e7={'results':_0x2639e7,'searchText':'string'==typeof _0x53ff13?_0x53ff13:''});const _0x7c8a50=_0x2639e7['results']['filter'](_0x22a2af=>!0x1===this['_isInDeletionRange'](_0x22a2af,_0x1faaa7['item']));return{..._0x2639e7,'results':_0x7c8a50};},_0x39b7f3);}['_isInDeletionRange'](_0x104b77,_0x2b07bd){const _0x43de3b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b07bd,_0x104b77['start']),this['editor']['model']['createPositionAt'](_0x2b07bd,_0x104b77['end']));for(const _0x26cd96 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x43de3b['getIntersection'](_0x26cd96['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x286688{['afterInit'](){const _0x46dc07=this['editor']['locale'],_0x531302=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xb3a5dd,commandName:_0x153d01}of ro)this['editor']['plugins']['has'](_0xb3a5dd)&&(_0x531302['enableDefaultAttributesIntegration'](_0x153d01),_0x531302['registerInlineAttribute'](_0x153d01));_0x531302['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x46dc07,'FORMAT_FONT_SIZE')),_0x531302['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x46dc07,'FORMAT_FONT_FAMILY')),_0x531302['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x46dc07,'FORMAT_FONT_COLOR')),_0x531302['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x46dc07,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482830=this['editor'],_0x5f0251=_0x482830['locale'];_0x482830['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411aeb=>{const _0x800a14=_0x5f0251['t'];if('formatInline'!=_0x411aeb['type'])return;const {data:_0x38f2e9}=_0x411aeb;if(null!=_0x38f2e9){if('fontSize'==_0x38f2e9['commandName']){const _0x181ca1=_0x38f2e9['commandParams'][0x0]['value'];if(_0x181ca1){const _0x226830=_0x800a14(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xa61c07=>_0xa61c07['model']==_0x181ca1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5f0251,'*Set\x20font\x20size:*\x20%0',_0x226830)};}return{'type':'format','content':o(_0x5f0251,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x38f2e9['commandName']){const _0x1e1854=_0x38f2e9['commandParams'][0x0]['value'];return _0x1e1854?{'type':'format','content':o(_0x5f0251,'*Set\x20font\x20family:*\x20%0',_0x1e1854)}:{'type':'format','content':o(_0x5f0251,'*Reset\x20font\x20family*')};}if('fontColor'==_0x38f2e9['commandName']){const _0x25cd82=_0x38f2e9['commandParams'][0x0]['value'];if(_0x25cd82){const _0x195bf8=_0x3e248a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14e6ac=>_0x14e6ac['model']==_0x25cd82);let _0x196272=_0x25cd82,_0x53b811='';return _0x195bf8&&(_0x196272=_0x195bf8['label'],_0x53b811=_0x800a14(_0x196272)['toLowerCase']()),{'type':'format','content':o(_0x5f0251,'*Set\x20font\x20color:*\x20%0',_0x53b811)['trim'](),'color':{'value':_0x25cd82,'title':_0x53b811||_0x196272}};}return{'type':'format','content':o(_0x5f0251,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x38f2e9['commandName']){const _0x3b4eac=_0x38f2e9['commandParams'][0x0]['value'];if(_0x3b4eac){const _0x30931f=_0x3e248a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5ad479=>_0x5ad479['model']==_0x3b4eac);let _0x25d3c2=_0x3b4eac,_0x5a6ca3='';return _0x30931f&&(_0x25d3c2=_0x30931f['label'],_0x5a6ca3=_0x800a14(_0x25d3c2)['toLowerCase']()),{'type':'format','content':o(_0x5f0251,'*Set\x20font\x20background\x20color:*\x20%0',_0x5a6ca3)['trim'](),'color':{'value':_0x3b4eac,'title':_0x5a6ca3||_0x25d3c2}};}return{'type':'format','content':o(_0x5f0251,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x286688{['afterInit'](){const _0x3f2ea1=this['editor'],_0x3e2b91=_0x3f2ea1['plugins']['get']('TrackChangesEditing'),_0x20733f=_0x3f2ea1['commands']['get']('copyFormat'),_0x1a26ce=_0x3f2ea1['commands']['get']('pasteFormat');_0x20733f&&_0x1a26ce&&(_0x3e2b91['enableDefaultAttributesIntegration']('pasteFormat'),_0x3e2b91['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4989bb=this['editor'],_0x22c91d=_0x4989bb['locale'];_0x4989bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23231f=>{if('formatBlock'!=_0x23231f['type']&&'formatInline'!=_0x23231f['type'])return;const {data:_0x1fb5e7}=_0x23231f;if(_0x1fb5e7&&'pasteFormat'===_0x1fb5e7['commandName']){const _0x263fc8=[],_0x52ce8b=_0x1fb5e7['commandParams'][0x0];for(const [_0x2890ec,_0x3dca00]of Object['entries'](_0x52ce8b))_0x263fc8['push'](so(_0x4989bb,_0x2890ec,_0x3dca00));return _0x263fc8['length']?{'type':'format','content':o(_0x22c91d,'*Set\x20format\x20to:*\x20%0',_0x263fc8['join'](',\x20'))}:{'type':'format','content':o(_0x22c91d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3222e3,_0x56468d,_0x444804){const _0xa9d014=_0x3222e3['locale']['t'],_0x173a0c=_0x56468d['split'](/(?=[A-Z])/)['join']('\x20'),_0x47596a=_0xa9d014(_0x173a0c['charAt'](0x0)['toUpperCase']()+_0x173a0c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x444804)return _0x47596a;if('fontColor'===_0x56468d||'fontBackgroundColor'===_0x56468d){const _0x3e8c1c=_0x3e248a(_0x3222e3['config']['get']('fontColor.colors'))['find'](_0x2a8b86=>_0x2a8b86['model']==_0x444804);return _0x47596a+'\x20('+(_0x3e8c1c?_0xa9d014(_0x3e8c1c['label'])['toLowerCase']():_0x444804)+')';}if('fontSize'===_0x56468d&&isNaN(parseFloat(_0x444804))){const _0x7e97a7=_0x3222e3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3222e3['config']['get']('fontSize.options'))['find'](_0x44738e=>_0x44738e['model']==_0x444804);return _0x47596a+'\x20('+(_0x7e97a7?_0xa9d014(_0x7e97a7['title'])['toLowerCase']():_0x444804)+')';}return _0x47596a+'\x20('+_0x444804+')';}class nt extends _0x286688{['_headingOptions'];['afterInit'](){const _0xb67724=this['editor'];if(!_0xb67724['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xb67724['config']['get']('heading.options');const _0x442b4e=_0xb67724['locale'],_0x4ce383=_0xb67724['plugins']['get']('TrackChangesEditing');_0x4ce383['enableDefaultAttributesIntegration']('heading');for(const _0x5bb61c of this['_headingOptions'])'paragraph'!=_0x5bb61c['model']&&_0x4ce383['descriptionFactory']['registerElementLabel'](_0x5bb61c['model'],_0x36ad11=>{const _0x6b8713=this['_getHeadingLevel'](_0x5bb61c['model']);return null!==_0x6b8713?_0x48ea81(_0x36ad11,_0x6b8713):_0x2c0963(_0x36ad11,_0x5bb61c['title']);});function _0x48ea81(_0x2c3711,_0x247d86){return o(_0x442b4e,'ELEMENT_HEADING',[_0x2c3711,_0x247d86]);}function _0x2c0963(_0x257381,_0x363bc1){return o(_0x442b4e,'ELEMENT_HEADING_CUSTOM',[_0x257381,_0x363bc1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cc80d=this['editor'],_0x5790ec=_0x5cc80d['locale'];function _0x46817c(_0x2b09ef,_0x2cae7f){return o(_0x5790ec,'ELEMENT_HEADING_CUSTOM',[_0x2b09ef,_0x2cae7f]);}_0x5cc80d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48c9ba=>{if('formatBlock'!=_0x48c9ba['type'])return;const {data:_0x3fe476}=_0x48c9ba;if(_0x3fe476&&'heading'==_0x3fe476['commandName']){const _0x5e2f0c=_0x3fe476['commandParams'][0x0]['value'],_0xa999e1=this['_getHeadingLevel'](_0x5e2f0c);if(null!==_0xa999e1)return{'type':'format','content':o(_0x5790ec,'*Change\x20to:*\x20%0',(_0x1f1fac=0x1,_0x56a46f=_0xa999e1,o(_0x5790ec,'ELEMENT_HEADING',[_0x1f1fac,_0x56a46f])))};const _0x171cf3=this['_headingOptions']['find'](_0x3f80de=>_0x3f80de['model']===_0x5e2f0c)['title'];return{'type':'format','content':o(_0x5790ec,'*Change\x20to:*\x20%0',_0x46817c(0x1,_0x171cf3))};}var _0x1f1fac,_0x56a46f;});}['_getHeadingLevel'](_0x2d11a6){const _0x4b0adc=_0x2d11a6['match'](/^heading(\d+)/);if(_0x4b0adc)return _0x4b0adc[0x1];const _0x11584f=this['_headingOptions']?.['find'](_0x148115=>_0x148115['model']==_0x2d11a6);if(_0x11584f&&_0x11584f['view']){const _0x4c3032=_0x11584f['view'],_0x4fe375=(_0x4c3032['name']??_0x4c3032)['match'](/^h(\d+)/);if(_0x4fe375)return _0x4fe375[0x1];}return null;}}class it extends _0x286688{['afterInit'](){const _0x20243a=this['editor'];if(!_0x20243a['plugins']['has']('HighlightEditing'))return;const _0x2c46c5=_0x20243a['plugins']['get']('TrackChangesEditing'),_0x551046=_0x20243a['locale'];_0x2c46c5['enableDefaultAttributesIntegration']('highlight'),_0x2c46c5['registerInlineAttribute']('highlight'),_0x2c46c5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x551046,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28c949=this['editor'],_0xa8bedc=_0x28c949['locale'];_0x28c949['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22c246=>{if('formatInline'!=_0x22c246['type'])return;const {data:_0x4d72fc}=_0x22c246;if(_0x4d72fc&&'highlight'==_0x4d72fc['commandName']){const _0x5685cd=_0xa8bedc['t'],_0x381137=_0x4d72fc['commandParams'][0x0]['value'];if(_0x381137){const _0x279569=_0x28c949['config']['get']('highlight.options')['find'](_0x380799=>_0x380799['model']==_0x381137),_0xcb6708=_0x5685cd(_0x279569['title'])['toLowerCase']();return{'type':'format','content':o(_0xa8bedc,'*Set\x20highlight:*\x20%0',_0xcb6708),'color':{'value':_0x279569['color'],'title':_0x279569['title']}};}return{'type':'format','content':o(_0xa8bedc,'*Remove\x20highlight*',o(_0xa8bedc,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x286688{['afterInit'](){const _0x4dda20=this['editor'];if(!_0x4dda20['plugins']['has']('HorizontalLineEditing'))return;_0x4dda20['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x51d5b9=_0x4dda20['plugins']['get']('TrackChangesEditing'),_0xdd86f9=_0x4dda20['locale'];_0x51d5b9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3132b4=>o(_0xdd86f9,'ELEMENT_HORIZONTAL_LINE',_0x3132b4)),_0x4dda20['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x369be3,{writer:_0x462acd,options:_0xdf03f4})=>{if(!_0xdf03f4['showSuggestionHighlights'])return null;const _0x55ac13=_0x462acd['createContainerElement']('div'),_0x16dd2d=_0x462acd['createEmptyElement']('hr');return _0x462acd['addClass']('ck-horizontal-line',_0x55ac13),_0x462acd['insert'](_0x462acd['createPositionAt'](_0x55ac13,0x0),_0x16dd2d),_0x55ac13;},'converterPriority':'high'});}}class st extends _0x286688{['afterInit'](){const _0x55c904=this['editor'];if(!_0x55c904['plugins']['has']('HtmlEmbed'))return;const _0x15d43b=_0x55c904['plugins']['get']('TrackChangesEditing'),_0x44e041=_0x55c904['locale'];_0x15d43b['descriptionFactory']['registerElementLabel']('rawHtml',_0x485d46=>o(_0x44e041,'ELEMENT_HTML_EMBED',_0x485d46)),_0x15d43b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x15d43b['registerBlockAttribute']('value'),_0x15d43b['descriptionFactory']['registerDescriptionCallback'](_0x494ab3=>{if('attribute'!=_0x494ab3['type'])return;const {data:_0x4368a5}=_0x494ab3;if(_0x4368a5&&'value'==_0x4368a5['key']&&_0x494ab3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b2b28=o(_0x44e041,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x44e041,'*Change\x20%0\x20content*',_0x4b2b28)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296691=this['editor'],_0xa2a1aa=_0x296691['locale'];_0x296691['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49503d=>{if('formatBlock'!=_0x49503d['type'])return;const {data:_0x1cad1d}=_0x49503d;if(_0x1cad1d&&'htmlEmbed'==_0x1cad1d['commandName']){const _0x3ccc7f=o(_0xa2a1aa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa2a1aa,'*Change\x20%0\x20content*',_0x3ccc7f)};}});}}class ot extends _0x286688{['afterInit'](){const _0x53b4ac=this['editor'];if(!_0x53b4ac['plugins']['has']('ImageEditing'))return;const _0x4d3aba=_0x53b4ac['plugins']['get']('TrackChangesEditing'),_0x5ad7e8=_0x53b4ac['plugins']['get']('ImageUtils'),_0x318559=_0x53b4ac['locale'];_0x4d3aba['enableCommand']('insertImage'),_0x4d3aba['descriptionFactory']['registerElementLabel']('imageBlock',_0x179b35=>o(_0x318559,'ELEMENT_IMAGE',_0x179b35)),_0x4d3aba['descriptionFactory']['registerElementLabel']('imageInline',_0xd17334=>o(_0x318559,'ELEMENT_INLINE_IMAGE',_0xd17334)),_0x4d3aba['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x318559,'ELEMENT_CAPTION')),_0x53b4ac['plugins']['has']('ImageUploadEditing')&&_0x4d3aba['enableCommand']('uploadImage'),_0x53b4ac['plugins']['has']('ImageBlockEditing')&&_0x53b4ac['plugins']['has']('ImageInlineEditing')&&(_0x4d3aba['enableCommand']('imageTypeInline',(_0xb2f519,_0x3c6fe3)=>{const _0x19c0c7=_0x5ad7e8['getClosestSelectedImageElement'](_0x53b4ac['model']['document']['selection']);_0x53b4ac['model']['change'](()=>{_0x4d3aba['markBlockFormat'](_0x19c0c7,{'commandName':'imageTypeInline','commandParams':[_0x3c6fe3]},[],'convertBlockImageToInline');});}),_0x4d3aba['enableCommand']('imageTypeBlock',(_0x93a9d,_0x15e7cd)=>{_0x53b4ac['model']['change'](_0x2600f2=>{let _0x4066ea=_0x5ad7e8['getClosestSelectedImageElement'](_0x53b4ac['model']['document']['selection']),_0x238e99=_0x2600f2['createRangeOn'](_0x4066ea);const _0x10c980=_0x23408d['fromPosition'](_0x238e99['start'],'toPrevious'),_0x2f4fd4=_0x23408d['fromPosition'](_0x238e99['end'],'toNext');_0x4d3aba['forceDefaultExecution'](()=>_0x93a9d(_0x15e7cd)),_0x4066ea=_0x5ad7e8['getClosestSelectedImageElement'](_0x53b4ac['model']['document']['selection']),_0x238e99=_0x2600f2['createRangeOn'](_0x4066ea);const _0x59de2a=_0x2600f2['createRange'](_0x10c980,_0x2f4fd4);_0x10c980['detach'](),_0x2f4fd4['detach'](),_0x4d3aba['markBlockFormat'](_0x4066ea,{'commandName':'imageTypeInline','commandParams':[_0x15e7cd]},[],'convertInlineImageToBlock'),_0x59de2a['start']['isBefore'](_0x238e99['start'])&&_0x4d3aba['markInsertion'](_0x2600f2['createRange'](_0x59de2a['start'],_0x238e99['start']),'convertInlineImageToBlock'),_0x238e99['end']['isBefore'](_0x59de2a['end'])&&_0x4d3aba['markInsertion'](_0x2600f2['createRange'](_0x238e99['end'],_0x59de2a['end']),'convertInlineImageToBlock');});}),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d3aba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x57682a])=>{const _0x25cf0b=_0x4d3aba['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4c83f6=_0x57682a['start'],_0x48b1c8=_0x57682a['end'];const _0x459e8a=_0x53b4ac['model']['schema']['getNearestSelectionRange'](_0x4c83f6,'backward'),_0x4a8d19=_0x53b4ac['model']['schema']['getNearestSelectionRange'](_0x48b1c8,'forward');_0x459e8a['isCollapsed']&&(_0x4c83f6=_0x459e8a['start']),_0x4a8d19['isCollapsed']&&(_0x48b1c8=_0x4a8d19['end']),_0x25cf0b([_0x53b4ac['model']['createRange'](_0x4c83f6,_0x48b1c8)]);}),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1cdc5d),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1cdc5d)),_0x53b4ac['plugins']['has']('ImageCaptionEditing')&&(_0x4d3aba['enableCommand']('toggleImageCaption',(_0x217b48,_0x1c34df)=>{const _0x21c8a3=_0x53b4ac['plugins']['get']('ImageCaptionUtils');let _0x2b011a=_0x5ad7e8['getClosestSelectedImageElement'](_0x53b4ac['model']['document']['selection']),_0x382308=_0x21c8a3['getCaptionFromImageModelElement'](_0x2b011a);_0x53b4ac['model']['change'](()=>{if(_0x382308)return void _0x4d3aba['markDeletion'](_0x53b4ac['model']['createRangeOn'](_0x382308));const _0xc53c61=_0x5ad7e8['isBlockImage'](_0x2b011a);_0x217b48(_0x1c34df),_0x2b011a=_0x5ad7e8['getClosestSelectedImageElement'](_0x53b4ac['model']['document']['selection']),_0x382308=_0x21c8a3['getCaptionFromImageModelElement'](_0x2b011a),_0x4d3aba['markInsertion'](_0x53b4ac['model']['createRangeOn'](_0x382308),_0xc53c61?null:'imageCaption');});}),_0x4d3aba['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1cdc5d));const _0x43552e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1dcd00(_0x4c0039,_0x29c218){const _0x593af2=_0x43552e['findIndex'](({type:_0x3e6244,subType:_0x28b0dc})=>_0x4c0039['type']==_0x3e6244&&_0x4c0039['subType']==_0x28b0dc),_0x2c7ebb=_0x43552e['findIndex'](({type:_0x3876a6,subType:_0x592d87})=>_0x29c218['type']==_0x3876a6&&_0x29c218['subType']==_0x592d87);if(_0x593af2<0x0||_0x2c7ebb<0x0)return!0x1;const _0x108649=_0x4c0039['getFirstRange'](),_0x13b6c4=_0x29c218['getFirstRange']();if((0x0==_0x593af2||0x1==_0x593af2)&&0x2==_0x2c7ebb&&_0x108649['isIntersecting'](_0x13b6c4))return!0x0;if(0x2==_0x593af2&&0x3==_0x2c7ebb){const _0x35906e=_0x4d3aba['_findSuggestions'](_0x108649,'insertion')['filter'](({suggestion:_0x5e9fd8,meta:_0x474f89})=>_0x474f89['isOwn']&&'convertInlineImageToBlock'==_0x5e9fd8['subType']);if(_0x35906e['length']>0x1&&_0x13b6c4['end']['isEqual'](_0x108649['start']))return!0x0;if(0x1==_0x35906e['length']&&(_0x108649['start']['isEqual'](_0x13b6c4['end'])||_0x108649['end']['isEqual'](_0x13b6c4['start'])))return!0x0;}if(0x3==_0x593af2&&0x3==_0x2c7ebb&&_0x108649['start']['isBefore'](_0x13b6c4['start'])){const _0x372c02=_0x108649['end']['nodeAfter'],_0xc0b34d=_0x13b6c4['start']['nodeBefore'];return _0x5ad7e8['isBlockImage'](_0x372c02)&&_0x372c02===_0xc0b34d;}return!0x1;}function _0x1cdc5d(_0xa36f8f,_0x54bd7e){return _0x1dcd00(_0xa36f8f,_0x54bd7e)?[_0xa36f8f,_0x54bd7e]:_0x1dcd00(_0x54bd7e,_0xa36f8f)?[_0x54bd7e,_0xa36f8f]:null;}_0x53b4ac['plugins']['has']('ImageResize')&&(_0x4d3aba['enableDefaultAttributesIntegration']('resizeImage'),_0x4d3aba['registerBlockAttribute']('resizedWidth'),_0x4d3aba['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x318559,'FORMAT_IMAGE_SIZE'))),_0x53b4ac['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d3aba['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d3aba['registerBlockAttribute']('alt')),_0x53b4ac['plugins']['has']('PictureEditing')&&(_0x4d3aba['registerBlockAttribute']('sources'),_0x4d3aba['descriptionFactory']['registerDescriptionCallback'](_0x4d1983=>{if('attribute'!=_0x4d1983['type'])return;const {data:_0x2bf705}=_0x4d1983;return _0x2bf705&&'sources'==_0x2bf705['key']?{'type':'format','content':''}:void 0x0;})),_0x53b4ac['plugins']['has']('ImageSizeAttributes')&&(_0x4d3aba['registerBlockAttribute']('width'),_0x4d3aba['registerBlockAttribute']('height'),_0x4d3aba['descriptionFactory']['registerDescriptionCallback'](_0x38cf4a=>{if('attribute'!=_0x38cf4a['type'])return;const {data:_0x532e8b}=_0x38cf4a;return!_0x532e8b||'width'!=_0x532e8b['key']&&'height'!=_0x532e8b['key']?void 0x0:{'type':'format','content':''};})),_0x4d3aba['descriptionFactory']['registerDescriptionCallback'](_0x176cb8=>{if(!!_0x43552e['find'](({type:_0x1a118f,subType:_0x495866})=>_0x176cb8['type']==_0x1a118f&&_0x176cb8['subType']==_0x495866))return _0x176cb8['previous']?{}:void 0x0;}),_0x4d3aba['descriptionFactory']['registerDescriptionCallback'](_0x362aff=>{if('insertion'==_0x362aff['type']||'deletion'==_0x362aff['type']){const _0x555009=_0x362aff['getContainedElement']();if(_0x555009&&_0x555009['is']('element','caption'))return{'type':'insertion'==_0x362aff['type']?'addObject':'removeObject','element':_0x555009,'quantity':0x1};}}),_0x4d3aba['descriptionFactory']['registerDescriptionCallback'](_0x184b36=>'formatBlock'==_0x184b36['type']&&'convertInlineImageToBlock'==_0x184b36['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x184b36['type']&&'convertBlockImageToInline'==_0x184b36['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d3aba['descriptionFactory']['registerDescriptionCallback'](_0x2b8509=>{if('attribute'!=_0x2b8509['type'])return;const {data:_0x3c65d3}=_0x2b8509;if(!_0x3c65d3||'alt'!=_0x3c65d3['key'])return;const _0x3916c0=_0x3c65d3['newValue'];return _0x3916c0?{'type':'format','content':o(_0x318559,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3916c0+'\x22')}:{'type':'format','content':o(_0x318559,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d6f45=this['editor'],_0x57d776=_0x1d6f45['locale'];_0x1d6f45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e84f0=>{if('formatBlock'!=_0x2e84f0['type']&&'formatInline'!=_0x2e84f0['type'])return;const {data:_0x2cb541}=_0x2e84f0;if(_0x2cb541){if('imageTextAlternative'==_0x2cb541['commandName']){const _0x32e1bf=_0x2cb541['commandParams'][0x0]['newValue'];return _0x32e1bf?{'type':'format','content':o(_0x57d776,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32e1bf+'\x22')}:{'type':'format','content':o(_0x57d776,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cb541['commandName']){const _0x5b40c6=_0x2cb541['commandParams'][0x0]['width'];return _0x5b40c6?{'type':'format','content':o(_0x57d776,'*Set\x20image\x20width:*\x20%0',_0x5b40c6)}:{'type':'format','content':o(_0x57d776,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x286688{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4017f4=this['editor']['locale'],_0x3930ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x3930ae['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3930ae['registerBlockAttribute']('src'),_0x3930ae['descriptionFactory']['registerDescriptionCallback'](_0x129cd4=>{if('attribute'!=_0x129cd4['type'])return;const {data:_0x3bd0d3}=_0x129cd4;return _0x3bd0d3&&'src'==_0x3bd0d3['key']?_0x3bd0d3['newValue']&&_0x3bd0d3['oldValue']?{'type':'format','content':o(_0x4017f4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1adf30=this['editor']['plugins']['get']('TrackChangesEditing');_0x1adf30['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1adf30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1adf30['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1adf30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4340e8=this['editor'],_0x51368e=_0x4340e8['locale'];_0x4340e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4606f2=>{if('formatBlock'!=_0x4606f2['type']&&'formatInline'!=_0x4606f2['type'])return;const {data:_0x138256}=_0x4606f2;if(!_0x138256||'replaceImageSource'!=_0x138256['commandName'])return;return{'type':'format','content':o(_0x51368e,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x286688{['afterInit'](){const _0x16d076=this['editor'];if(!_0x16d076['plugins']['has']('ImageStyleEditing'))return;const _0x2d732b=_0x16d076['plugins']['get']('TrackChangesEditing'),_0x3b6ecc=_0x16d076['plugins']['get']('ImageUtils'),_0x62baf3={};_0x2d732b['enableCommand']('imageStyle',(_0x3bf088,_0x491f54)=>{const _0x29293f=_0x16d076['plugins']['get']('Users')['me'],_0x5a46ce=_0x16d076['commands']['get']('imageStyle');let _0x303bad=_0x3b6ecc['getClosestSelectedImageElement'](_0x16d076['model']['document']['selection']),_0x3facb8=_0x16d076['model']['createRangeOn'](_0x303bad),_0x45fcde=_0x5a46ce['value'];if(_0x45fcde==_0x491f54['value'])return;const _0x44d4a6={'commandName':'imageStyle','commandParams':[_0x491f54],'formatGroupId':_0x32598d()};_0x16d076['model']['change'](()=>{if(_0x2d732b['getSuggestions']()['filter'](_0x330f83=>_0x330f83['isInContent']&&_0x29293f==_0x330f83['author']&&('formatBlock'==_0x330f83['type']||'formatInline'==_0x330f83['type'])&&('imageStylePreApply'==_0x330f83['subType']||'imageStylePostApply'==_0x330f83['subType'])&&_0x330f83['getFirstRange']()['isEqual'](_0x3facb8))['forEach'](_0x3c2953=>_0x2d732b['discardSuggestion'](_0x3c2953['head'])),_0x303bad=_0x3b6ecc['getClosestSelectedImageElement'](_0x16d076['model']['document']['selection']),_0x3facb8=_0x16d076['model']['createRangeOn'](_0x303bad),_0x5a46ce['refresh'](),_0x16d076['commands']['get']('imageTypeInline')['refresh'](),_0x16d076['commands']['get']('imageTypeBlock')['refresh'](),_0x45fcde=_0x5a46ce['value'],_0x45fcde!=_0x491f54['value'])return _0x3b6ecc['isInlineImage'](_0x303bad)&&_0x5a46ce['shouldConvertImageType'](_0x491f54['value'],_0x303bad)?(_0x3bf088({..._0x491f54,'setImageSizes':!0x1}),_0x303bad=_0x3b6ecc['getClosestSelectedImageElement'](_0x16d076['model']['document']['selection']),void _0x2d732b['markBlockFormat'](_0x303bad,{..._0x44d4a6,'commandReversedParams':[{'value':_0x45fcde||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b6ecc['isBlockImage'](_0x303bad)?_0x2d732b['markBlockFormat'](_0x303bad,_0x44d4a6,[],'imageStylePostApply'):_0x2d732b['markInlineFormat'](_0x3facb8,_0x44d4a6,'imageStylePostApply'));});});for(const _0x284ae1 of _0x16d076['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x62baf3[_0x284ae1['name']]=_0x284ae1['title']['toLowerCase']();_0x2d732b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2d732b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2d732b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2d732b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4356a9])=>{_0x3b6ecc['setImageNaturalSizeAttributes'](_0x4356a9['getContainedElement']());}),_0x2d732b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x28fbf7,_0x3b0e3b)=>{_0x2d732b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x28fbf7,{'commandName':_0x3b0e3b['commandName'],'commandParams':_0x3b0e3b['commandReversedParams']});}),_0x2d732b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2fc107,_0xd214ef){if(_0x109de4(_0x2fc107,_0xd214ef))return[_0x2fc107,_0xd214ef];if(_0x109de4(_0xd214ef,_0x2fc107))return[_0xd214ef,_0x2fc107];return null;});const _0x4ff8a8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x109de4(_0x1db85e,_0x5af171){const _0x245e7e=_0x4ff8a8['findIndex'](({type:_0x88f819,subType:_0x4d3807})=>_0x1db85e['type']==_0x88f819&&_0x1db85e['subType']==_0x4d3807),_0x1cf910=_0x4ff8a8['findIndex'](({type:_0x5cb82d,subType:_0xe3aaf0})=>_0x5af171['type']==_0x5cb82d&&_0x5af171['subType']==_0xe3aaf0);if(_0x245e7e<0x0||_0x1cf910<0x0)return!0x1;const _0x2a5276=_0x1db85e['getFirstRange'](),_0x4f158c=_0x5af171['getFirstRange']();if((0x0==_0x245e7e||0x1==_0x245e7e)&&0x2==_0x1cf910&&_0x2a5276['isIntersecting'](_0x4f158c))return!0x0;if(0x2==_0x245e7e&&0x3==_0x1cf910){const _0x2bb678=_0x2d732b['_findSuggestions'](_0x2a5276,'insertion')['filter'](({suggestion:_0x3d9c2a,meta:_0x5dceb4})=>_0x5dceb4['isOwn']&&'convertInlineImageToBlock'==_0x3d9c2a['subType']);if(_0x2bb678['length']>0x1&&_0x4f158c['end']['isEqual'](_0x2a5276['start']))return!0x0;if(0x1==_0x2bb678['length']&&(_0x2a5276['start']['isEqual'](_0x4f158c['end'])||_0x2a5276['end']['isEqual'](_0x4f158c['start'])))return!0x0;}if(0x3==_0x245e7e&&0x3==_0x1cf910&&_0x2a5276['start']['isBefore'](_0x4f158c['start'])){const _0x4e63af=_0x2a5276['end']['nodeAfter'],_0x17a70f=_0x4f158c['start']['nodeBefore'];return _0x3b6ecc['isBlockImage'](_0x4e63af)&&_0x4e63af===_0x17a70f;}return!0x1;}_0x16d076['model']['document']['registerPostFixer'](()=>{let _0x1124d2=!0x1;const _0x307bec=Array['from'](_0x16d076['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x55c684,data:_0x2671fb}of _0x307bec){const {group:_0x4e75f8,type:_0x381e33,subType:_0x37d717,id:_0xb2eb81}=_0x2d732b['_splitMarkerName'](_0x55c684);if('suggestion'==_0x4e75f8&&_0x2d732b['hasSuggestion'](_0xb2eb81)){if('formatBlock'==_0x381e33&&('imageStylePreApply'==_0x37d717||'imageStylePostApply'==_0x37d717)){const _0x446851=_0x2d732b['getSuggestion'](_0xb2eb81);if(_0x2671fb['newRange']){const _0x41066b=_0x446851['getFirstRange']()['getContainedElement']();if(_0x3b6ecc['isBlockImage'](_0x41066b))continue;_0x2d732b['discardSuggestion'](_0x446851),_0x1124d2=!0x0;}}if('insertion'==_0x381e33&&'imageCaption'==_0x37d717&&!_0x2671fb['newRange']){const _0x25d15f=_0x2d732b['getSuggestion'](_0xb2eb81);_0x25d15f['next']&&_0x25d15f['next']['isInContent']&&(_0x2d732b['discardSuggestion'](_0x25d15f['next']),_0x1124d2=!0x0);}}}return _0x1124d2;}),this['_registerLegacyDescription'](_0x62baf3);}['_registerLegacyDescription'](_0x4b502e){const _0x3f9740=this['editor'],_0x5bcf49=_0x3f9740['locale'];_0x3f9740['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2189ed=>{if('formatBlock'!=_0x2189ed['type']&&'formatInline'!=_0x2189ed['type'])return;const {data:_0x51cbe8}=_0x2189ed;if(!_0x51cbe8||'imageStyle'!=_0x51cbe8['commandName'])return;const _0x3bd758=_0x51cbe8['commandParams'][0x0]['value'];return _0x2c8eaf('side'===_0x3bd758?o(_0x5bcf49,'FORMAT_SIDE_IMAGE'):_0x4b502e[_0x3bd758]||_0x3bd758);function _0x2c8eaf(_0x42a8cc){return{'type':'format','content':o(_0x5bcf49,'*Format:*\x20%0',_0x42a8cc)};}});}}class ct extends _0x286688{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39e487){super(_0x39e487),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x589e6f=this['editor'],_0xf34a31=_0x589e6f['commands']['get']('importWord'),_0x3e3fa0=_0x589e6f['commands']['get']('trackChanges');_0xf34a31&&(_0xf34a31['on']('execute',(_0x9dcbf8,[,_0x4adfee])=>{this['_trackChangesValueDuringImport']=_0x3e3fa0['value'],_0x4adfee['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf34a31,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf34a31,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e3fa0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x589e6f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb17acf,_0x103e9d){const {suggestions:_0x3de2b5}=_0x103e9d,_0x51e046=this['editor']['commands']['get']('trackChanges'),_0x2abf52=_0x51e046['value'];this['_trackChangesValueDuringImport']!==_0x2abf52&&(_0x51e046['execute'](),this['_trackChangesExecuted']=!0x0),_0x3de2b5&&_0x3de2b5['forEach'](({id:_0x3ff3af,type:_0x1b7a2b,author:_0x311ef7,created_at:_0x3f7a7e})=>{const _0x4929c4={'id':_0x3ff3af,'type':_0x1b7a2b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x311ef7,'createdAt':_0x3f7a7e?new Date(_0x3f7a7e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4929c4);});}}class ut extends _0x286688{['afterInit'](){const _0x37a030=this['editor'],_0x4840b6=_0x37a030['plugins']['get']('TrackChangesEditing');if(_0x37a030['plugins']['has']('IndentEditing')&&(_0x4840b6['enableCommand']('indent'),_0x4840b6['enableCommand']('outdent')),_0x37a030['plugins']['has']('IndentBlock')){for(const _0x4169ec of['indentBlock','outdentBlock'])_0x4840b6['enableDefaultAttributesIntegration'](_0x4169ec);}const _0x388b95=_0x37a030['locale'];_0x4840b6['registerBlockAttribute']('blockIndent'),_0x4840b6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x388b95,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4be982=this['editor'],_0x95d9f9=_0x4be982['locale'],_0x51c6a6=_0x4be982['plugins']['get']('TrackChangesEditing');_0x51c6a6['descriptionFactory']['registerDescriptionCallback'](_0x134c50=>{if('formatBlock'!=_0x134c50['type'])return;const {data:_0x48252c}=_0x134c50;if(!_0x48252c)return;if('indentBlock'!=_0x48252c['commandName']&&'outdentBlock'!=_0x48252c['commandName'])return;const _0xf7317a=_0x134c50['getItems']()[0x0],_0x495be6=_0x51c6a6['descriptionFactory']['getItemLabel'](_0xf7317a);return'indentBlock'==_0x48252c['commandName']?{'type':'format','content':o(_0x95d9f9,'*Indent:*\x20%0',_0x495be6)}:'outdentBlock'==_0x48252c['commandName']?{'type':'format','content':o(_0x95d9f9,'*Outdent:*\x20%0',_0x495be6)}:void 0x0;});}}class ft extends _0x286688{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x286688{['afterInit'](){const _0x4c5246=this['editor'];if(!_0x4c5246['plugins']['has']('LinkEditing'))return;const _0x76a151=_0x4c5246['plugins']['get']('TrackChangesEditing'),_0x51334f=_0x4c5246['commands']['get']('link');_0x76a151['enableDefaultAttributesIntegration']('link'),_0x76a151['enableDefaultAttributesIntegration']('unlink'),_0x76a151['registerInlineAttribute']('linkHref');for(const _0x347fdc of _0x51334f['manualDecorators'])_0x76a151['registerInlineAttribute'](_0x347fdc['id']),_0x76a151['descriptionFactory']['registerAttributeLabel'](_0x347fdc['id'],'link\x20('+_0x347fdc['label']['toLowerCase']()+')');_0x76a151['descriptionFactory']['registerDescriptionCallback'](_0x2ce56a=>{if('attribute'!=_0x2ce56a['type'])return;const {data:_0xcc487f}=_0x2ce56a;if(!_0xcc487f||'linkHref'!=_0xcc487f['key'])return;const _0x13082f=_0xcc487f['newValue'],_0x2dc398=_0x4c5246['locale'];return{'type':'format','content':null==_0x13082f?o(_0x2dc398,'*Remove\x20link*'):o(_0x2dc398,'*Set\x20link:*\x20%0','\x22'+_0x13082f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x258d6f=this['editor'],_0x5eb127=_0x258d6f['locale'];_0x258d6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x320c14=>{if('formatInline'!=_0x320c14['type'])return;const {data:_0x59d8c3}=_0x320c14;if(_0x59d8c3){if('link'==_0x59d8c3['commandName']){const _0x1809ee=_0x59d8c3['commandParams'][0x0];return{'type':'format','content':o(_0x5eb127,'*Set\x20link:*\x20%0','\x22'+_0x1809ee+'\x22')};}return'unlink'==_0x59d8c3['commandName']?{'type':'format','content':o(_0x5eb127,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x286688{['afterInit'](){const _0x5b46fe=this['editor'],_0x4419ee=_0x5b46fe['locale'];if(!_0x5b46fe['plugins']['has']('LegacyListEditing'))return;const _0x3d44b3=_0x5b46fe['plugins']['get']('TrackChangesEditing'),_0x52054e=_0x5b46fe['plugins']['has']('LegacyTodoListEditing');function _0x2c49da(_0x3f09fb){return()=>{const _0x325cd9=_0x5b46fe['model']['document']['selection'],_0x50bfbc=_0x5b46fe['commands']['get'](_0x3f09fb);if(_0x50bfbc['value'])return void _0x5b46fe['execute']('paragraph',{});const _0x1071d5=_0x3f09fb['slice'](0x0,-0x4),_0x4d62b8=function(_0x397d41,_0x3574ea,_0x2382d0){let _0x202e9e=Array['from'](_0x397d41)['filter'](_0x5bbb2b=>function(_0xe76b3c,_0x59f327){return _0x59f327['checkChild'](_0xe76b3c['parent'],'listItem')&&!_0x59f327['isObject'](_0xe76b3c);}(_0x5bbb2b,_0x2382d0));_0x202e9e=_0x202e9e['filter'](_0x681555=>!_0x681555['is']('element','listItem')||_0x681555['getAttribute']('listType')!=_0x3574ea);const _0x47feb4=new Set();for(const _0x3076da of _0x202e9e)_0x3076da['is']('element','listItem')?_0x47feb4['add'](Le(_0x3076da)):_0x47feb4['add'](_0x3076da);return Array['from'](_0x47feb4);}(_0x325cd9['getSelectedBlocks'](),_0x1071d5,_0x5b46fe['model']['schema']);_0x5b46fe['model']['change'](()=>{for(const _0x284e92 of _0x4d62b8)_0x3d44b3['markBlockFormat'](_0x284e92,{'commandName':_0x3f09fb,'commandParams':[{'forceValue':!_0x50bfbc['value']}],'formatGroupId':'blockName'},Ee(_0x284e92));});};}function _0x28907a(_0x470876){return()=>{const _0x3d3596=function(_0x46f8df){let _0x54b715=Array['from'](_0x46f8df);const _0x30722d=_0x54b715['findIndex'](_0x6ccbe4=>'listItem'!=_0x6ccbe4['name']);return _0x30722d>-0x1&&(_0x54b715=_0x54b715['slice'](0x0,_0x30722d)),_0x54b715;}(_0x5b46fe['model']['document']['selection']['getSelectedBlocks']()),_0x29bea9=_0x5b46fe['model']['createRange'](_0x5b46fe['model']['createPositionAt'](_0x3d3596[0x0],'before'),_0x5b46fe['model']['createPositionAt'](_0x3d3596[_0x3d3596['length']-0x1],'end'));_0x5b46fe['model']['change'](()=>{_0x3d44b3['markBlockFormat'](_0x29bea9,{'commandName':_0x470876,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5d152a){const _0x21a100=new Set();for(const _0x30888f of _0x5d152a){let _0x4305d1=_0x30888f['nextSibling'];for(;_0x4305d1&&_0x4305d1['getAttribute']('listIndent')>_0x30888f['getAttribute']('listIndent');)_0x21a100['add'](_0x4305d1),_0x4305d1=_0x4305d1['nextSibling'];}return Array['from'](_0x21a100);}(_0x3d3596));});};}_0x3d44b3['enableCommand']('numberedList',_0x2c49da('numberedList')),_0x3d44b3['enableCommand']('bulletedList',_0x2c49da('bulletedList')),_0x52054e&&_0x3d44b3['enableCommand']('todoList',_0x2c49da('todoList')),_0x3d44b3['enableCommand']('indentList',_0x28907a('indentList')),_0x3d44b3['enableCommand']('outdentList',_0x28907a('outdentList')),_0x52054e&&_0x3d44b3['enableCommand']('checkTodoList',()=>{const _0x6d2c4b=_0x5b46fe['commands']['get']('checkTodoList'),_0x3d03b7=Array['from'](_0x6d2c4b['_selectedElements']);_0x3d03b7['filter'](_0x51d61a=>_0x51d61a['getAttribute']('todoListChecked')!=_0x6d2c4b['value']),_0x5b46fe['model']['change'](()=>{for(const _0x22561b of _0x3d03b7)_0x3d44b3['markBlockFormat'](_0x22561b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x6d2c4b['value']}]});});}),_0x3d44b3['descriptionFactory']['registerElementLabel']('listItem',_0x402492=>o(_0x4419ee,'ELEMENT_LIST_ITEM',_0x402492)),_0x3d44b3['descriptionFactory']['registerDescriptionCallback'](_0x2215c0=>{if('formatBlock'!=_0x2215c0['type']&&'formatInline'!=_0x2215c0['type'])return;const {data:_0x5a3892}=_0x2215c0;if(_0x5a3892){if('numberedList'==_0x5a3892['commandName']||'bulletedList'==_0x5a3892['commandName']||'todoList'==_0x5a3892['commandName'])switch(_0x5a3892['commandName']['replace']('List','')){case'bulleted':return _0x56f296(o(_0x4419ee,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56f296(o(_0x4419ee,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56f296(o(_0x4419ee,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a3892['commandName'])return{'type':'format','content':o(_0x4419ee,'*Indent:*\x20%0',o(_0x4419ee,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a3892['commandName'])return{'type':'format','content':o(_0x4419ee,'*Outdent:*\x20%0',o(_0x4419ee,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a3892['commandName'])return _0x5a3892['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4419ee,'*Check\x20item*')}:{'type':'format','content':o(_0x4419ee,'*Uncheck\x20item*')};}function _0x56f296(_0x1397bf){return{'type':'format','content':o(_0x4419ee,'*Change\x20to:*\x20%0',_0x1397bf)};}});}}function Le(_0x5d98ef){const _0x5a064c=_0x5d98ef['getAttribute']('listIndent');if(0x0==_0x5a064c)return _0x5d98ef;let _0xb7f41a=_0x5d98ef;for(;_0x5d98ef['previousSibling']&&_0x5d98ef['previousSibling']['is']('element','listItem');){const _0x5b626e=_0x5d98ef['previousSibling']['getAttribute']('listIndent');if(_0x5b626e==_0x5a064c)_0xb7f41a=_0x5d98ef['previousSibling'];else{if(_0x5b626e<_0x5a064c)break;}_0x5d98ef=_0x5d98ef['previousSibling'];}return _0xb7f41a;}function Ee(_0x1d7a5e){const _0x4b9288=[];if(_0x1d7a5e['is']('element','listItem')&&_0x1d7a5e['getAttribute']('listIndent')>0x0){let _0x59c827=_0x1d7a5e['nextSibling'];for(;_0x59c827&&'listItem'==_0x59c827['name']&&_0x59c827['getAttribute']('listIndent')==_0x1d7a5e['getAttribute']('listIndent');)_0x4b9288['push'](_0x59c827),_0x59c827=_0x59c827['nextSibling'];}return _0x4b9288;}class Q extends _0x286688{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5db8ae=this['editor']['config']['get']('list.properties'),_0x51c58e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5db8ae['styles']&&_0x51c58e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5db8ae['reversed']&&_0x51c58e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5db8ae['startIndex']&&_0x51c58e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x51c58e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3c712e,_0x5d3474={}){const _0xbab0dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d71d9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xbab0dc['markMultiRangeBlockFormat'](_0x4d71d9,{'commandName':'listStyle','commandParams':[{'type':_0x5d3474['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41f4d8,_0x543b3e={}){const _0x1a21a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e1ebe=this['_getSuggestionBlocks'](_0x27ae33=>_0x27ae33['is']('element','listItem')&&'numbered'===_0x27ae33['getAttribute']('listType'));if(_0x1e1ebe['length']<0x1)return;const _0x21c97c=_0x1e1ebe['map'](_0x52b084=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52b084,'before'),this['editor']['model']['createPositionAt'](_0x52b084,0x0)));this['editor']['model']['change'](()=>{_0x1a21a2['markMultiRangeBlockFormat'](_0x21c97c,{'commandName':'listReversed','commandParams':[{'reversed':_0x543b3e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1405cf,_0x1d171c={}){const _0x58413d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d850=this['_getSuggestionBlocks'](_0x3f4c9f=>_0x3f4c9f['is']('element','listItem')&&'numbered'===_0x3f4c9f['getAttribute']('listType'));if(_0x38d850['length']<0x1)return;const _0x20c7c9=_0x38d850['map'](_0x57c0ad=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57c0ad,'before'),this['editor']['model']['createPositionAt'](_0x57c0ad,0x0)));this['editor']['model']['change'](()=>{_0x58413d['markMultiRangeBlockFormat'](_0x20c7c9,{'commandName':'listStart','commandParams':[{'startIndex':_0x1d171c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x586618){if('formatBlock'!=_0x586618['type']&&'formatInline'!=_0x586618['type'])return;const _0x32bdef=this['editor']['locale'],{data:_0x5b49da}=_0x586618;if(!_0x5b49da)return;let _0x3cbbc4,_0x4568ef;switch(_0x5b49da['commandName']){case'listStyle':_0x3cbbc4='*Change\x20to:*\x20%0',_0x4568ef={'type':'format','content':o(_0x32bdef,_0x3cbbc4,o(_0x32bdef,this['_getTranslationKeyForListStyle'](_0x5b49da['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cbbc4=_0x5b49da['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4568ef={'type':'format','content':o(_0x32bdef,_0x3cbbc4)};break;case'listStart':_0x3cbbc4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4568ef={'type':'format','content':o(_0x32bdef,_0x3cbbc4,_0x5b49da['commandParams'][0x0]['startIndex'])};}return _0x4568ef;}['_getSuggestionBlocksForListStyle'](){const _0x1cb12b=this['editor']['plugins']['get']('LegacyListUtils');let _0x10acc5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x10acc5[0x0]?.['is']('element','listItem')&&_0x10acc5['unshift'](..._0x1cb12b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x10acc5[_0x10acc5['length']-0x1]?.['is']('element','listItem')&&_0x10acc5['push'](..._0x1cb12b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x10acc5=[...new Set(_0x10acc5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x10acc5=_0x10acc5['filter'](_0x4b29c1=>_0x4b29c1['is']('element','listItem'))),_0x10acc5;}['_getSuggestionBlocks'](_0x5a43c6){const _0x2aab30=this['editor']['plugins']['get']('LegacyListUtils');let _0x956202=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a43c6)['map'](_0x4848b9=>{const _0x4404a9=this['editor']['model']['createPositionAt'](_0x4848b9,0x0);return[..._0x2aab30['getSiblingNodes'](_0x4404a9,'backward'),..._0x2aab30['getSiblingNodes'](_0x4404a9,'forward')];})['flat']();return _0x956202=[...new Set(_0x956202)],_0x956202;}['_getTranslationKeyForListStyle'](_0x468017){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x468017)||'default')['toUpperCase']()+'_LIST_'+_0x468017['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x286688{['afterInit'](){const _0x3e6877=this['editor'];if(!_0x3e6877['plugins']['has']('MediaEmbedEditing'))return;const _0x2596bf=_0x3e6877['plugins']['get']('TrackChangesEditing'),_0xd8e3aa=_0x3e6877['locale'];_0x2596bf['enableCommand']('mediaEmbed'),_0x2596bf['descriptionFactory']['registerElementLabel']('media',_0x2822f1=>o(_0xd8e3aa,'ELEMENT_MEDIA',_0x2822f1)),_0x3e6877['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xb63686,{writer:_0x1661dc,options:_0xf660e5})=>{if(_0xf660e5['showSuggestionHighlights'])return _0x1661dc['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e6877['data']['downcastDispatcher']['on']('attribute:url:media',(_0x569baa,_0x2d265b,_0x247edd)=>{_0x247edd['options']['showSuggestionHighlights']&&_0x569baa['stop']();},{'priority':'high'});}}class mt extends _0x286688{['afterInit'](){const _0xf9353d=this['editor'];_0xf9353d['plugins']['has']('MentionEditing')&&_0xf9353d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x286688{['afterInit'](){const _0x2272b4=this['editor'];if(!_0x2272b4['plugins']['has']('MergeFieldsEditing'))return;const _0x56ddb6=_0x2272b4['plugins']['get']('TrackChangesEditing'),_0x24a71f=_0x2272b4['locale'];_0x56ddb6['enableCommand']('insertMergeField'),_0x56ddb6['enableCommand']('insertMergeFieldBlock'),_0x56ddb6['enableCommand']('insertMergeFieldImage'),_0x56ddb6['descriptionFactory']['registerElementLabel']('mergeField',_0x39ce48=>o(_0x24a71f,'ELEMENT_MERGE_FIELD',_0x39ce48)),_0x56ddb6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3169cd=>o(_0x24a71f,'ELEMENT_MERGE_FIELD',_0x3169cd)),_0x56ddb6['descriptionFactory']['registerDescriptionCallback'](_0x122997=>{if('insertion'!=_0x122997['type']&&'deletion'!=_0x122997['type'])return;const _0xbeaf39=_0x122997['getContainedElement']();if(null==_0xbeaf39)return;const _0x2811bd=_0x2272b4['plugins']['get']('MergeFieldsEditing');let _0x1ad8ca;switch(_0x2811bd['getMergeFieldType'](_0xbeaf39)){case null:return;case'image':{const _0x496691=_0x2811bd['unwrapAffixes'](_0xbeaf39['getAttribute']('src'));_0x1ad8ca=_0x2811bd['getLabel'](_0x496691)||_0x496691;break;}default:{const _0x17a380=_0xbeaf39['getAttribute']('id');_0x1ad8ca=_0x2811bd['getLabel'](_0x17a380)||_0x17a380;break;}}return'insertion'==_0x122997['type']?{'type':'insertion','content':o(_0x24a71f,'*Insert:*\x20%0','\x22'+_0x1ad8ca+'\x22\x20'+o(_0x24a71f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x24a71f,'*Remove:*\x20%0','\x22'+_0x1ad8ca+'\x22\x20'+o(_0x24a71f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x286688{['afterInit'](){const _0x2067d2=this['editor'],_0x18bd9a=_0x2067d2['plugins']['get']('TrackChangesEditing');_0x2067d2['plugins']['has']('MultiLevelList')&&(_0x18bd9a['enableDefaultAttributesIntegration']('multiLevelList'),_0x18bd9a['registerBlockAttribute']('listMarkerStyle'),_0x18bd9a['descriptionFactory']['registerDescriptionCallback'](_0x491f62=>this['handleDescriptions'](_0x491f62)));}['handleDescriptions'](_0x30b522){const _0x3d4aa6=this['editor']['locale'],{data:_0x4d0bfe}=_0x30b522,_0x20304d={'type':'format','content':''};if(_0x4d0bfe&&'listMarkerStyle'==_0x4d0bfe['key']){if(!_0x4d0bfe['oldValue'])return{'type':'format','content':o(_0x3d4aa6,'*Set\x20format:*\x20%0',o(_0x3d4aa6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d0bfe['newValue']+')'};if(!_0x4d0bfe['newValue']){let _0x3d5a0f=_0x30b522['head'];for(;_0x3d5a0f;){if(_0x3d5a0f['data']&&'listType'==_0x3d5a0f['data']['key']&&_0x3d5a0f['data']['newValue'])return _0x20304d;_0x3d5a0f=_0x3d5a0f['next'];}return{'type':'format','content':o(_0x3d4aa6,'*Remove\x20format:*\x20%0',o(_0x3d4aa6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d0bfe['oldValue']+')'};}}}}class kt extends _0x286688{['afterInit'](){const _0x1e62e1=this['editor'];if(!_0x1e62e1['plugins']['has']('PageBreakEditing'))return;_0x1e62e1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x347aee=_0x1e62e1['plugins']['get']('TrackChangesEditing'),_0x1b8c11=_0x1e62e1['locale'];_0x347aee['descriptionFactory']['registerElementLabel']('pageBreak',_0x221144=>o(_0x1b8c11,'ELEMENT_PAGE_BREAK',_0x221144));}}class bt extends _0x286688{['afterInit'](){const _0x285ef6=this['editor'];if(!_0x285ef6['plugins']['has']('Paragraph'))return;const _0x515d0c=_0x285ef6['locale'],_0x3a0a9f=_0x285ef6['plugins']['get']('TrackChangesEditing');_0x3a0a9f['descriptionFactory']['registerElementLabel']('paragraph',_0x186b3d=>o(_0x515d0c,'ELEMENT_PARAGRAPH',_0x186b3d)),_0x3a0a9f['enableDefaultAttributesIntegration']('paragraph'),_0x3a0a9f['enableCommand']('insertParagraph'),_0x285ef6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x285ef6),{'priority':'highest'}),_0x285ef6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e1f6a,_0x5f2d65,_0x53697b)=>{_0x53697b['options']['showSuggestionHighlights']&&nr(_0x285ef6,{'showActiveMarker':!0x1})(_0x1e1f6a,_0x5f2d65,_0x53697b);},{'priority':'highest'});const _0x1c312f=_0x3a0a9f['descriptionFactory'];_0x1c312f['registerDescriptionCallback'](_0x496d11=>{if('insertion'!==_0x496d11['type'])return;const {start:_0x5ab89f,end:_0x1bfc34}=_0x496d11['getFirstRange']();if(!_0x5ab89f['isTouching'](_0x1bfc34)||!_0x5ab89f['nodeAfter'])return;const _0x1966b3=_0x285ef6['model']['schema'],_0x221b6d=_0x5ab89f['nodeAfter'];return _0x1966b3['isBlock'](_0x221b6d)&&!_0x1966b3['isLimit'](_0x221b6d)&&_0x1966b3['checkChild'](_0x221b6d,'$text')?{'type':'insertion','content':o(_0x515d0c,'*Insert:*\x20%0',_0x1c312f['getItemLabel'](_0x221b6d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eb0f6=this['editor'],_0x58ac8c=_0x5eb0f6['locale'];_0x5eb0f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4069cd=>{if('formatBlock'!=_0x4069cd['type'])return;const {data:_0x1bce85}=_0x4069cd;return _0x1bce85&&'paragraph'==_0x1bce85['commandName']?{'type':'format','content':o(_0x58ac8c,'*Change\x20to:*\x20%0',o(_0x58ac8c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45dd96,{showActiveMarker:_0x46c7ef=!0x0}={}){return(_0x5e6c28,_0x2bd1a9,_0x24bdb8)=>{const _0x36f6fc=_0x45dd96['plugins']['get']('TrackChangesEditing'),_0xe7081d=_0x2bd1a9['markerRange']['start'],_0x37a7a7=_0x2bd1a9['markerRange']['end'],_0x99fa33=_0x45dd96['model']['schema'];if(!_0xe7081d['isTouching'](_0x37a7a7)||!_0xe7081d['nodeAfter'])return;const _0x1e4b24=_0xe7081d['nodeAfter'];if(_0x99fa33['isBlock'](_0x1e4b24)&&!_0x99fa33['isLimit'](_0x1e4b24)&&_0x99fa33['checkChild'](_0x1e4b24,'$text')){if(!_0x24bdb8['consumable']['consume'](_0x2bd1a9['markerRange'],_0x5e6c28['name']))return;const {authorId:_0x5f39b4}=_0x36f6fc['_splitMarkerName'](_0x2bd1a9['markerName']),_0x2ee3b2=_0x24bdb8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5f39b4}),_0xeafe41=_0x24bdb8['mapper']['toViewPosition'](_0x37a7a7);_0x46c7ef&&_0x36f6fc['activeMarkers']['includes'](_0x2bd1a9['markerName'])&&_0x24bdb8['writer']['addClass']('ck-suggestion-marker--active',_0x2ee3b2),_0x24bdb8['writer']['insert'](_0xeafe41,_0x2ee3b2),_0x24bdb8['mapper']['bindElementToMarker'](_0x2ee3b2,_0x2bd1a9['markerName']);}};}class yt extends _0x286688{['afterInit'](){const _0x56cd3a=this['editor'];if(!_0x56cd3a['plugins']['has']('RemoveFormatEditing'))return;_0x56cd3a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x320f7a=this['editor'];_0x320f7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33b934=>{if('formatBlock'!=_0x33b934['type']&&'formatInline'!=_0x33b934['type'])return;const {data:_0x47d14d}=_0x33b934;return _0x47d14d&&'removeFormat'==_0x47d14d['commandName']?{'type':'format','content':o(_0x320f7a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x286688{['afterInit'](){const _0x273fb4=this['editor'];if(!_0x273fb4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x304ad9=_0x273fb4['plugins']['get']('TrackChangesEditing');_0x304ad9['enableCommand']('goToPreviousRestrictedEditingException'),_0x304ad9['enableCommand']('goToNextRestrictedEditingException');const _0x19e4c1=_0x273fb4['plugins']['get']('RestrictedEditingModeEditing');_0x19e4c1['enableCommand']('trackChanges'),_0x19e4c1['enableCommand']('acceptSuggestion'),_0x19e4c1['enableCommand']('discardSuggestion'),_0x19e4c1['enableCommand']('acceptAllSuggestions'),_0x19e4c1['enableCommand']('discardAllSuggestions'),_0x19e4c1['enableCommand']('acceptSelectedSuggestions'),_0x19e4c1['enableCommand']('discardSelectedSuggestions');}}class St extends _0x286688{static get['requires'](){return[_0xcba925];}['init'](){const _0x548ae9=this['editor'],_0x424650=_0x548ae9['plugins']['get']('TrackChangesEditing');_0x424650['enableCommand']('shiftEnter'),_0x548ae9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x548ae9),{'priority':'high'}),_0x548ae9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x548ae9),{'priority':'high'}),_0x548ae9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a9e44,_0x49e442,_0x2ca63e)=>{_0x2ca63e['options']['showSuggestionHighlights']&&je(_0x548ae9,{'showActiveMarker':!0x1})(_0x2a9e44,_0x49e442,_0x2ca63e);}),_0x424650['descriptionFactory']['registerElementLabel']('softBreak',_0x116777=>o(_0x548ae9['locale'],'ELEMENT_LINE_BREAK',_0x116777));}}function je(_0x4e76ca,{showActiveMarker:_0x229b27=!0x0}={}){return(_0x2c7306,_0xecf0bf,_0x5f4a9a)=>{const _0x2f08f3=_0x4e76ca['plugins']['get']('TrackChangesEditing');if(!_0x5f4a9a['consumable']['test'](_0xecf0bf['markerRange'],_0x2c7306['name']))return;const _0x391374=_0x4e76ca['model'];for(const _0x17e30d of _0xecf0bf['markerRange']['getItems']()){if(!_0x17e30d['is']('element','softBreak'))continue;const _0x14cf3b='deletion'==_0xecf0bf['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x53fcb4}=_0x2f08f3['_splitMarkerName'](_0xecf0bf['markerName']),_0x3bac71=_0x5f4a9a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14cf3b,'data-author-id':_0x53fcb4}),_0x411da5=_0x5f4a9a['mapper']['toViewPosition'](_0x391374['createPositionBefore'](_0x17e30d));_0x229b27&&_0x2f08f3['activeMarkers']['includes'](_0xecf0bf['markerName'])&&_0x5f4a9a['writer']['addClass']('ck-suggestion-marker--active',_0x3bac71),_0x5f4a9a['writer']['insert'](_0x411da5,_0x3bac71),_0x5f4a9a['mapper']['bindElementToMarker'](_0x3bac71,_0xecf0bf['markerName']);}};}class At extends _0x286688{['afterInit'](){const _0x5012b2=this['editor'],_0x18ac31=_0x5012b2['model'],_0x3fc49a=_0x5012b2['locale'];if(!_0x5012b2['plugins']['has']('StandardEditingModeEditing'))return;const _0x1a4c77=_0x5012b2['plugins']['get']('TrackChangesEditing'),_0x2322db='restrictedEditingException',_0x49eb18=_0x5012b2['commands']['get'](_0x2322db);_0x1a4c77['enableCommand'](_0x2322db,(_0x2e6940,_0x10a1df={})=>{const _0x237d35=_0x18ac31['document']['selection'];if(_0x237d35['isCollapsed'])return void _0x2e6940(_0x10a1df);const _0x457855=void 0x0!==_0x10a1df['forceValue']?_0x10a1df['forceValue']:!_0x49eb18['value'];_0x18ac31['change'](()=>{const _0x531f79=Array['from'](_0x237d35['getRanges']());for(const _0x1b3207 of _0x531f79){const _0x1b7efd=_0x457855?[_0x1b3207]:io(_0x2322db,_0x1b3207,_0x18ac31);for(const _0x57da42 of _0x1b7efd)_0x1a4c77['markInlineFormat'](_0x57da42,{'commandName':_0x2322db,'commandParams':[{'forceValue':_0x457855}]});}});}),_0x1a4c77['descriptionFactory']['registerDescriptionCallback'](_0xe159e0=>{if('formatBlock'!=_0xe159e0['type']&&'formatInline'!=_0xe159e0['type'])return;const {data:_0x33fe91}=_0xe159e0;return _0x33fe91&&_0x33fe91['commandName']==_0x2322db?_0x33fe91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fc49a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3fc49a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x286688{['afterInit'](){const _0x20b3eb=this['editor'];if(!_0x20b3eb['plugins']['has']('Style')||!_0x20b3eb['plugins']['has']('DataSchema'))return;const _0x4abe4e=_0x20b3eb['plugins']['get']('TrackChangesEditing'),_0x8562b7=_0x20b3eb['locale'],_0x59ecbb=_0x20b3eb['config']['get']('style')||{},_0x333fd4=_0x20b3eb['plugins']['get']('GeneralHtmlSupport'),_0x4e53bd=_0x20b3eb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x20b3eb['plugins']['get']('DataSchema'),_0x59ecbb['definitions']);_0x4abe4e['enableDefaultAttributesIntegration']('style');const _0x23d16e=new Set();for(const _0x3f004a of _0x4e53bd['block']){const _0x878970=_0x333fd4['getGhsAttributeNameForElement'](_0x3f004a['element']);_0x23d16e['add'](_0x878970);}const _0x10b381=new Set();for(const _0x5a350b of _0x4e53bd['inline']){const _0x47952a=_0x333fd4['getGhsAttributeNameForElement'](_0x5a350b['element']);_0x10b381['add'](_0x47952a);for(const _0x192e65 of _0x5a350b['ghsAttributes'])_0x10b381['add'](_0x192e65);}for(const _0x4589ff of _0x23d16e)_0x4abe4e['registerBlockAttribute'](_0x4589ff),_0x4abe4e['descriptionFactory']['registerAttributeLabel'](_0x4589ff,o(_0x8562b7,'FORMAT_STYLE'));for(const _0x51e0b6 of _0x10b381)_0x4abe4e['registerInlineAttribute'](_0x51e0b6),_0x4abe4e['descriptionFactory']['registerAttributeLabel'](_0x51e0b6,o(_0x8562b7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1606d7=this['editor'],_0x3768f8=_0x1606d7['locale'];_0x1606d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x162d5e=>{if('formatBlock'!=_0x162d5e['type']&&'formatInline'!=_0x162d5e['type'])return;const {data:_0x42dec5}=_0x162d5e;return _0x42dec5&&'style'===_0x42dec5['commandName']?_0x42dec5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3768f8,'*Set\x20format:*\x20%0',_0x42dec5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3768f8,'*Remove\x20format:*\x20%0',_0x42dec5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x286688{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x470b7b){super(_0x470b7b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x24fd6c=this['editor'],_0x531ab4=_0x24fd6c['model']['document']['selection'];if(!_0x24fd6c['plugins']['has']('TableEditing'))return;const _0x188cc6=_0x24fd6c['locale'],_0x193bf6=_0x24fd6c['plugins']['get']('TrackChangesEditing'),_0x2ab7a8=_0x24fd6c['plugins']['get']('TableUtils');_0x193bf6['descriptionFactory']['registerElementLabel']('table',_0x50a624=>o(_0x188cc6,'ELEMENT_TABLE',_0x50a624)),this['_setupColumnsRowsFixing'](),_0x193bf6['enableCommand']('insertTable'),_0x193bf6['enableCommand']('selectTableRow'),_0x193bf6['enableCommand']('selectTableColumn');for(const _0x45f201 of['insertTableRowAbove','insertTableRowBelow']){const _0x2a9037=_0x24fd6c['commands']['get'](_0x45f201);_0x193bf6['enableCommand'](_0x45f201,_0x774c50=>{_0x24fd6c['model']['change'](_0x14d13d=>{_0x774c50();const _0x500b3f='above'===_0x2a9037['order'],_0x2c75a5=_0x2ab7a8['getSelectionAffectedTableCells'](_0x531ab4),_0x8765b4=_0x2ab7a8['getRowIndexes'](_0x2c75a5),_0xcbe724=_0x500b3f?_0x8765b4['first']-0x1:_0x8765b4['last']+0x1,_0x1983b3=_0x2c75a5[0x0]['findAncestor']('table'),_0x1aa3b3=_0x2ab7a8['createTableWalker'](_0x1983b3,{'startRow':_0xcbe724,'endRow':_0xcbe724}),_0x41b559=Array['from'](_0x1aa3b3)['map'](_0x4440d2=>_0x14d13d['createRangeOn'](_0x4440d2['cell']));_0x193bf6['markMultiRangeInsertion'](_0x41b559,'tableRow');});});}for(const _0x592073 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a5876=_0x24fd6c['commands']['get'](_0x592073);_0x193bf6['enableCommand'](_0x592073,_0x44d02e=>{_0x24fd6c['model']['change'](_0x3a1944=>{_0x44d02e();const _0x1b5519='left'===_0x2a5876['order'],_0x2e8ae6=_0x2ab7a8['getSelectionAffectedTableCells'](_0x531ab4),_0x5f5c86=_0x2ab7a8['getColumnIndexes'](_0x2e8ae6),_0x136b1e=_0x1b5519?_0x5f5c86['first']-0x1:_0x5f5c86['last']+0x1,_0x4864d6=_0x2e8ae6[0x0]['findAncestor']('table'),_0x361eaa=_0x2ab7a8['createTableWalker'](_0x4864d6,{'startRow':0x0,'column':_0x136b1e,'includeAllSlots':!0x1}),_0x227ea6=Array['from'](_0x361eaa)['map'](_0xa300ed=>_0x3a1944['createRangeOn'](_0xa300ed['cell']));_0x193bf6['markMultiRangeInsertion'](_0x227ea6,'tableColumn');});});}for(const _0x17cb33 of['removeTableRow','removeTableColumn']){const _0x2f4d1d=_0x17cb33['substr'](0xb),_0x3deeda=_0x2f4d1d['toLowerCase'](),_0x496d3e=_0x3deeda['substr'](0x0,0x3)+'span',_0x306ec6='table'+_0x2f4d1d,_0x575d0c='min'+_0x2f4d1d,_0x2f5f0b='max'+_0x2f4d1d;_0x193bf6['enableCommand'](_0x17cb33,()=>{_0x24fd6c['model']['change'](_0x453f67=>{const _0x1ca8a2=_0x2ab7a8['getSelectionAffectedTableCells'](_0x531ab4),_0x23179=_0x1ca8a2[0x0]['findAncestor']('table');let _0x3d1b1b;if('removeTableRow'==_0x17cb33){const _0x47bfea=_0x2ab7a8['getRowIndexes'](_0x1ca8a2);_0x3d1b1b={'startRow':_0x47bfea['first'],'endRow':_0x47bfea['last'],'includeAllSlots':!0x0};}else{const _0x226a65=_0x2ab7a8['getColumnIndexes'](_0x1ca8a2);_0x3d1b1b={'startColumn':_0x226a65['first'],'endColumn':_0x226a65['last'],'includeAllSlots':!0x0};}const _0x220844=_0x2ab7a8['createTableWalker'](_0x23179,_0x3d1b1b),_0x3058f6=Array['from'](_0x220844)['map'](({cell:_0x4b96b8})=>_0x4b96b8),_0x1f9550=Ne(_0x3058f6['filter'](_0x5c4818=>_0x5c4818['hasAttribute'](_0x496d3e))),_0x58f6dc=Ne(_0x3058f6['filter'](_0x22fa0b=>!_0x22fa0b['hasAttribute'](_0x496d3e)))['map'](_0x220e29=>_0x453f67['createRangeOn'](_0x220e29)),_0x185e1f=_0x193bf6['markMultiRangeDeletion'](_0x58f6dc,_0x306ec6);if(_0x185e1f&&('tableRow'==_0x185e1f['subType']||'tableColumn'==_0x185e1f['subType'])){const _0x455e0a=this['_getSuggestionCoords'](_0x185e1f);for(const _0x438589 of _0x1f9550){const _0x531b17=_0x453f67['createRangeOn'](_0x438589),_0x3f749d=_0x2ab7a8['getCellLocation'](_0x438589),_0x481acb=_0x438589['getAttribute'](_0x496d3e)-0x1,_0x28a926=_0x455e0a[_0x575d0c],_0x18f7e2=_0x455e0a[_0x2f5f0b];_0x28a926<=_0x3f749d[_0x3deeda]&&_0x3f749d[_0x3deeda]+_0x481acb<=_0x18f7e2&&_0x185e1f['addRange'](_0x531b17);}}});});}function _0x59c85c(_0x16bc26){const _0x533dfb=Array['from'](_0x531ab4['getRanges']())['map'](_0x4e2324=>_0xe90d55['fromRange'](_0x4e2324));_0x24fd6c['model']['change'](_0x25245a=>{const _0x4b6564=_0x25245a['batch'];_0x16bc26=_0x16bc26['filter'](_0x51e35e=>'$graveyard'!=_0x51e35e['root']['rootName']),_0x25245a['setSelection'](_0x16bc26),_0x24fd6c['commands']['get']('removeTableRow')['refresh'](),_0x24fd6c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x24fd6c['model']['enqueueChange'](()=>{_0x24fd6c['model']['enqueueChange'](_0x4b6564,_0x5b978a=>{const _0x1610f6=_0x533dfb['filter'](_0x29a76f=>'$graveyard'!=_0x29a76f['root']['rootName']);_0x1610f6['length']>0x0&&_0x5b978a['setSelection'](_0x1610f6);for(const _0x60f7 of _0x533dfb)_0x60f7['detach']();});});});}function _0x354335(_0x42ae7e){_0x24fd6c['model']['change'](_0x489f68=>{const _0x2cf77b=Array['from'](_0x531ab4['getRanges']())['map'](_0x5deef7=>_0xe90d55['fromRange'](_0x5deef7)),_0x5daaf1=[];for(const _0x2242b1 of _0x42ae7e)for(const _0x1bb005 of _0x2242b1['getItems']({'shallow':!0x0}))_0x5daaf1['push'](_0x1bb005);for(const _0x4e4b67 of _0x5daaf1)'$graveyard'!=_0x4e4b67['root']['rootName']&&(_0x489f68['setSelection'](_0x489f68['createPositionAt'](_0x4e4b67,0x0)),_0x24fd6c['commands']['get']('removeTableColumn')['refresh'](),_0x24fd6c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x50254f=_0x2cf77b['filter'](_0x253aea=>'$graveyard'!=_0x253aea['root']['rootName']);_0x50254f['length']>0x0&&_0x489f68['setSelection'](_0x50254f);for(const _0x49a452 of _0x2cf77b)_0x49a452['detach']();});}function _0x5d896e(_0xa36f,_0x3cc2b2){return _0x3cc2b2['every'](_0x4ebbed=>_0xa36f['some'](_0x284fa0=>_0x284fa0['end']['isEqual'](_0x4ebbed['start'])||_0x4ebbed['end']['isEqual'](_0x284fa0['start'])));}function _0x4ffb4f(_0x4271c3,_0x3cdb2f){return!_0x4271c3['some'](_0x2c40b4=>_0x3cdb2f['some'](_0x18deb8=>_0x2c40b4['isIntersecting'](_0x18deb8)))&&_0x4271c3['some'](_0x1e794b=>_0x3cdb2f['some'](_0x2f8b51=>_0x1e794b['end']['isTouching'](_0x2f8b51['start'])));}_0x24fd6c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f5de9,_0x19784c,_0xdbd91e)=>{if(!_0xdbd91e['options']['showSuggestionHighlights'])return;const _0x36172a=_0x19784c['item'];if(!_0x36172a)return;const _0x4638bf=_0xdbd91e['mapper']['toViewElement'](_0x36172a);function _0x4a39ee(_0x5ca2b3){return Array['isArray'](_0x5ca2b3)?_0x5ca2b3:[_0x5ca2b3];}_0x4638bf&&'tableCell'===_0x36172a['name']&&_0xe14a28(_0x4638bf,_0xdbd91e['writer'],(_0x56fa7f,_0x4ce592,_0x1e4eb4)=>_0x1e4eb4['addClass'](_0x4a39ee(_0x4ce592['classes']),_0x56fa7f),(_0x52d1a4,_0x267307,_0x5e200e)=>_0x5e200e['removeClass'](_0x4a39ee(_0x267307['classes']),_0x52d1a4));},{'priority':'highest'}),_0x193bf6['descriptionFactory']['registerDescriptionCallback'](_0x469bf4=>{if('insertion'!=_0x469bf4['type']&&'deletion'!=_0x469bf4['type'])return;const _0xe4dfbe=_0x469bf4['getContainedElement']();if(null!=_0xe4dfbe&&_0xe4dfbe['is']('element','table')){if('insertion'==_0x469bf4['type']){const _0x54a81f=_0x469bf4['getItems']()['filter'](_0x3451f7=>_0x3451f7['is']('$textProxy'))['map'](_0x17b121=>_0x17b121['data']);if(_0x54a81f['length'])return{'type':'insertion','content':o(_0x188cc6,'*Insert:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54a81f['join']('\x20')+'\x22'))};}if('deletion'==_0x469bf4['type']){const _0x54000d=_0x469bf4['getItems']()['filter'](_0x163d71=>_0x163d71['is']('$textProxy'))['map'](_0x2f6e93=>_0x2f6e93['data']);if(_0x54000d['length'])return{'type':'deletion','content':o(_0x188cc6,'*Remove:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54000d['join']('\x20')+'\x22'))};}}}),_0x193bf6['descriptionFactory']['registerDescriptionCallback'](_0x2f6a22=>{if('tableRow'==_0x2f6a22['subType']){const _0x3de1d7=_0x2f6a22['getItems']()['filter'](_0x339790=>_0x339790['is']('$textProxy'))['map'](_0x285d2a=>_0x285d2a['data']),_0x578891=this['_getSuggestionCoords'](_0x2f6a22),_0x4d505a=_0x578891['maxRow']-_0x578891['minRow']+0x1;if('insertion'==_0x2f6a22['type'])return _0x3de1d7['length']?{'type':'insertion','content':o(_0x188cc6,'*Insert:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d505a,'\x22'+_0x3de1d7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x188cc6,'*Insert:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_ROW',_0x4d505a))};if('deletion'==_0x2f6a22['type'])return _0x3de1d7['length']?{'type':'deletion','content':o(_0x188cc6,'*Remove:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4d505a,'\x22'+_0x3de1d7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x188cc6,'*Remove:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_ROW',_0x4d505a))};}if('tableColumn'==_0x2f6a22['subType']){const _0x3c6782=_0x2f6a22['getItems']()['filter'](_0x728cf7=>_0x728cf7['is']('$textProxy'))['map'](_0x3ec2dc=>_0x3ec2dc['data']),_0x5546c5=this['_getSuggestionCoords'](_0x2f6a22),_0x339e5e=_0x5546c5['maxColumn']-_0x5546c5['minColumn']+0x1;if('insertion'==_0x2f6a22['type'])return _0x3c6782['length']?{'type':'insertion','content':o(_0x188cc6,'*Insert:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x339e5e,'\x22'+_0x3c6782['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x188cc6,'*Insert:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_COLUMN',_0x339e5e))};if('deletion'==_0x2f6a22['type'])return _0x3c6782['length']?{'type':'deletion','content':o(_0x188cc6,'*Remove:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x339e5e,'\x22'+_0x3c6782['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x188cc6,'*Remove:*\x20%0',o(_0x188cc6,'ELEMENT_TABLE_COLUMN',_0x339e5e))};}}),_0x193bf6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x59c85c),_0x193bf6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x59c85c),_0x193bf6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x354335),_0x193bf6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x354335),_0x193bf6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d896e),_0x193bf6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d896e),_0x193bf6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4ffb4f),_0x193bf6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4ffb4f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c123d=this['editor'],_0x268ddb=_0x5c123d['model']['document']['selection'];return(_0x2b995e,_0xbec230)=>{_0x5c123d['model']['change'](_0x3d7aa3=>{const {commandName:_0x4a9a8b,commandParams:_0x42041c}=_0xbec230;let _0x5a0dc2=_0x2b995e[0x0]['end']['nodeBefore'];_0x42041c&&_0x42041c[0x0]&&!0x1===_0x42041c[0x0]['forceValue']&&(_0x5a0dc2=_0x2b995e[0x0]['start']['nodeAfter']);const _0xfe8e3c=_0x3d7aa3['createRangeIn'](_0x5a0dc2);if('$graveyard'==_0xfe8e3c['root']['rootName'])return;const _0x5c0bb6=Array['from'](_0x268ddb['getRanges']())['map'](_0x1f1556=>_0xe90d55['fromRange'](_0x1f1556));_0x3d7aa3['setSelection'](_0xfe8e3c),_0x5c123d['commands']['get'](_0x4a9a8b)['refresh'](),_0x42041c['push']({'forceDefaultExecution':!0x0}),_0x5c123d['execute'](_0x4a9a8b,..._0x42041c);const _0x485ba2=_0x5c0bb6['filter'](_0x5d81c2=>'$graveyard'!=_0x5d81c2['root']['rootName']);_0x485ba2['length']>0x0&&_0x3d7aa3['setSelection'](_0x485ba2);for(const _0x20ba20 of _0x5c0bb6)_0x20ba20['detach']();});};}['_getCoordsForCells'](_0x3ca7c3){const _0x3c6eb2=this['editor']['plugins']['get']('TableUtils');let _0x2a3419=Number['MAX_SAFE_INTEGER'],_0x4970d4=Number['MIN_SAFE_INTEGER'],_0x5e714b=Number['MAX_SAFE_INTEGER'],_0x2dcb9a=Number['MIN_SAFE_INTEGER'];for(const _0x2bc098 of _0x3ca7c3){if('$graveyard'==_0x2bc098['root']['rootName'])continue;const {row:_0x5b8c86,column:_0xfea2f6}=_0x3c6eb2['getCellLocation'](_0x2bc098),_0x43637c=_0x2bc098['hasAttribute']('rowspan')?_0x2bc098['getAttribute']('rowspan')-0x1:0x0,_0x88ece7=_0x2bc098['hasAttribute']('colspan')?_0x2bc098['getAttribute']('colspan')-0x1:0x0;_0x2a3419=_0x5b8c86<_0x2a3419?_0x5b8c86:_0x2a3419,_0x4970d4=_0x5b8c86+_0x43637c>_0x4970d4?_0x5b8c86+_0x43637c:_0x4970d4,_0x5e714b=_0xfea2f6<_0x5e714b?_0xfea2f6:_0x5e714b,_0x2dcb9a=_0xfea2f6+_0x88ece7>_0x2dcb9a?_0xfea2f6+_0x88ece7:_0x2dcb9a;}return{'minRow':_0x2a3419,'maxRow':_0x4970d4,'minColumn':_0x5e714b,'maxColumn':_0x2dcb9a};}['_setupColumnsRowsFixing'](){const _0x321b8b=this['editor'],_0x280f59=_0x321b8b['plugins']['get']('TrackChangesEditing'),_0x2c6232=_0x321b8b['plugins']['get']('TableUtils');_0x321b8b['model']['document']['on']('change:data',()=>{const _0x42325d=Array['from'](_0x321b8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b4a5d,data:_0x3ecf94}of _0x42325d){const {group:_0x41eeef,id:_0x4b2152,subType:_0x27273c}=_0x280f59['_splitMarkerName'](_0x4b4a5d);if('suggestion'!=_0x41eeef)continue;if(null!=_0x3ecf94['oldRange'])continue;const _0x4ae340=_0x280f59['getSuggestion'](_0x4b2152);this['_tablePostFixingSubtypes']['includes'](_0x27273c)&&this['_tableSuggestions']['add'](_0x4ae340);}},{'priority':'low'});const _0x328366=(_0x5c201b,_0x1d67f9)=>{let _0x4a050f=!0x1;const _0x3c2363=_0x1d67f9['createRangeOn'](_0x5c201b),_0x10ee70=_0x5c201b['findAncestor']('table'),_0x2b9ac1=_0x2c6232['getCellLocation'](_0x5c201b);for(const _0x35be86 of this['_tableSuggestions']){const _0x1b84ff=_0x35be86['subType'],_0x3a3fe0=_0x1b84ff['startsWith']('tablePaste'),_0x124926=_0x1b84ff['substr'](_0x3a3fe0?0xa:0x5),_0x9d0c19=_0x124926['toLowerCase'](),_0x584bd0=_0x9d0c19['substr'](0x0,0x3)+'span',_0x334c67='min'+_0x124926,_0x468470='max'+_0x124926;if(!_0x35be86['isInContent'])continue;if(_0x10ee70!=_0x35be86['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x35be86['isIntersectingWithRange'](_0x3c2363))continue;const _0xf26447=_0x5c201b['hasAttribute'](_0x584bd0)?_0x5c201b['getAttribute'](_0x584bd0)-0x1:0x0,_0x5dec65=this['_getSuggestionCoords'](_0x35be86),_0x2b3d8f=_0x5dec65[_0x334c67],_0x48f0b3=_0x5dec65[_0x468470];_0x2b3d8f<=_0x2b9ac1[_0x9d0c19]&&_0x2b9ac1[_0x9d0c19]+_0xf26447<=_0x48f0b3&&(_0x35be86['addRange'](_0x3c2363),_0x4a050f=!0x0);}return _0x4a050f;};_0x321b8b['model']['document']['registerPostFixer'](_0x21b5be=>{let _0x20f704=!0x1;for(const _0x14692a of _0x321b8b['model']['document']['differ']['getChanges']())if('insert'==_0x14692a['type']){if('tableRow'==_0x14692a['name']){for(const _0x589b5b of _0x14692a['position']['nodeAfter']['getChildren']())_0x20f704=_0x20f704||_0x328366(_0x589b5b,_0x21b5be);}else'tableCell'==_0x14692a['name']&&(_0x20f704=_0x20f704||_0x328366(_0x14692a['position']['nodeAfter'],_0x21b5be));}return _0x20f704;});}['_getSuggestionCoords'](_0x86739f){return this['_getCoordsForCells'](_0x86739f['getRanges']()['map'](_0x4ce945=>_0x4ce945['start']['nodeAfter']));}}function Ne(_0x5bc268){return Array['from'](new Set(_0x5bc268)['values']());}class _t extends _0x286688{static get['requires'](){return[vt];}['afterInit'](){const _0x2718a8=this['editor'],_0x3e5b43=_0x2718a8['model']['document']['selection'],_0x1aa112=_0x2718a8['locale'];if(!_0x2718a8['plugins']['has']('TableEditing'))return;const _0x463afa=_0x2718a8['plugins']['get']('TrackChangesEditing'),_0x204cc2=_0x2718a8['plugins']['get']('TableUtils'),_0x5b7e01=_0x2718a8['plugins']['get'](vt);_0x5b7e01['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x463afa['enableCommand']('mergeTableCells',()=>{const _0x4ad9dd=_0x204cc2['getSelectionAffectedTableCells'](_0x2718a8['model']['document']['selection']);_0x2718a8['model']['change'](()=>{_0x463afa['markMultiRangeBlockFormat'](_0x4ad9dd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2718a8['commands']['get']('mergeTableCells')['on']('execute',(_0x2c05bb,_0x46eee2)=>{_0x2718a8['commands']['get']('trackChanges')['value']&&(_0x46eee2['length']>0x0&&_0x46eee2[_0x46eee2['length']-0x1]&&_0x46eee2[_0x46eee2['length']-0x1]['forceDefaultExecution']||_0x463afa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2c05bb['stop']());},{'priority':'highest'});for(const _0x61737a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3b9233=_0x2718a8['commands']['get'](_0x61737a);_0x463afa['enableCommand'](_0x61737a,()=>{const _0x462b45=_0x2718a8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x518aab=>_0x518aab['is']('element','tableCell')),_0x36401c=_0x3b9233['value'];_0x2718a8['model']['change'](()=>{_0x463afa['markMultiRangeBlockFormat']([_0x462b45,_0x36401c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f5ecc of['splitTableCellVertically','splitTableCellHorizontally']){const _0xa352d3=_0x2718a8['commands']['get'](_0x4f5ecc);_0x463afa['enableCommand'](_0x4f5ecc,()=>{const _0x37963d=_0x204cc2['getSelectionAffectedTableCells'](_0x2718a8['model']['document']['selection'])[0x0],_0x5f5ba9=_0x37963d['findAncestor']('table'),{column:_0x11be6d,row:_0x1b7d13}=_0x204cc2['getCellLocation'](_0x37963d);let _0x17fd0e=[];if('horizontally'==_0xa352d3['direction']){const _0x5d6db2=_0x204cc2['createTableWalker'](_0x5f5ba9,{'startRow':_0x1b7d13,'endRow':_0x1b7d13,'includeAllSlots':!0x0});_0x17fd0e=Array['from'](_0x5d6db2)['map'](_0x24c550=>_0x24c550['cell']);}else{const _0x1688c9=_0x204cc2['createTableWalker'](_0x5f5ba9,{'column':_0x11be6d,'includeAllSlots':!0x0});_0x17fd0e=Array['from'](_0x1688c9)['map'](_0x150a8e=>_0x150a8e['cell']);}_0x2718a8['model']['change'](_0x17c516=>{_0x463afa['markBlockFormat'](_0x17c516['createRangeOn'](_0x37963d),{'commandName':_0x4f5ecc,'commandParams':[]},_0x17fd0e,_0x4f5ecc);});});}_0x463afa['descriptionFactory']['registerDescriptionCallback'](_0x21b910=>{if('formatBlock'!=_0x21b910['type']&&'formatInline'!=_0x21b910['type'])return;const {data:_0x5f2bf7}=_0x21b910;return _0x5f2bf7&&'mergeTableCells'==_0x5f2bf7['commandName']?{'type':'format','content':o(_0x1aa112,'*Merge\x20cells*')}:void 0x0;}),_0x463afa['descriptionFactory']['registerDescriptionCallback'](_0x9919bc=>{if('formatBlock'!=_0x9919bc['type']&&'formatInline'!=_0x9919bc['type'])return;const {data:_0x44bc98}=_0x9919bc;return _0x44bc98?'splitTableCellVertically'==_0x44bc98['commandName']?{'type':'format','content':o(_0x1aa112,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x44bc98['commandName']?{'type':'format','content':o(_0x1aa112,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3289e8=_0x5b7e01['_acceptFormatSuggestionCallbackFactory']();for(const _0xeaa538 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x463afa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xeaa538,'accept',_0x3289e8);for(const _0x279c7a of['splitTableCellVertically','splitTableCellHorizontally'])_0x463afa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x279c7a,'accept',_0x3289e8);_0x463afa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11df4f=>{_0x2718a8['model']['change'](_0x441d86=>{const _0x150b3c=Array['from'](_0x3e5b43['getRanges']())['map'](_0x351b62=>_0xe90d55['fromRange'](_0x351b62));_0x441d86['setSelection'](_0x11df4f),_0x2718a8['commands']['get']('mergeTableCells')['refresh'](),_0x2718a8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5e86d5=_0x150b3c['filter'](_0x194adc=>'$graveyard'!=_0x194adc['root']['rootName']);_0x5e86d5['length']>0x0&&_0x441d86['setSelection'](_0x5e86d5);for(const _0x492758 of _0x150b3c)_0x492758['detach']();});});for(const _0x268270 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x564148=_0x2718a8['commands']['get'](_0x268270);_0x564148['on']('set:isEnabled',(_0x488e23,_0x3ed13e,_0x50a980)=>{if(_0x50a980){const _0x2cf155=_0x2718a8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x179982=>_0x179982['is']('element','tableCell'));this['_areMergableCells'](_0x564148['value'],_0x2cf155)||(_0x488e23['return']=!0x1,_0x488e23['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xff5bad=this['editor']['commands']['get']('mergeTableCells'),_0x1dcca5=this['editor']['plugins']['get']('TableUtils');if(!_0xff5bad['isEnabled'])return!0x1;const _0x5979bb=_0x1dcca5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d1b98 of _0x5979bb)for(const _0x3dd3fe of _0x5979bb)if(_0x4d1b98!=_0x3dd3fe&&!this['_areMergableCells'](_0x4d1b98,_0x3dd3fe))return!0x1;return!0x0;}['_areMergableCells'](_0x2155a1,_0x1cec15){const _0x289c9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35c5ce=this['editor']['model']['createRangeOn'](_0x2155a1),_0x4eae8c=this['editor']['model']['createRangeOn'](_0x1cec15),_0x4d132f=new Set(),_0x216ea1=new Set();for(const _0x5d4604 of _0x289c9a['getSuggestions']())if(('insertion'==_0x5d4604['type']||'deletion'==_0x5d4604['type']||'mergeTableCells'==_0x5d4604['subType'])&&_0x5d4604['isInContent']){for(const _0x2f2fc0 of _0x5d4604['getRanges']())_0x2f2fc0['containsRange'](_0x35c5ce,!0x0)&&_0x4d132f['add'](_0x5d4604['type']+':'+_0x5d4604['author']['id']),_0x2f2fc0['containsRange'](_0x4eae8c,!0x0)&&_0x216ea1['add'](_0x5d4604['type']+':'+_0x5d4604['author']['id']);}if(_0x4d132f['size']!=_0x216ea1['size'])return!0x1;for(const _0x28bfa7 of _0x4d132f)if(!_0x216ea1['has'](_0x28bfa7))return!0x1;return!0x0;}}class Ct extends _0x286688{static get['requires'](){return[vt];}['afterInit'](){const _0x3c7e34=this['editor'];if(!_0x3c7e34['plugins']['has']('TableEditing'))return;const _0x1c5054=_0x3c7e34['locale'],_0x2ba3f6=_0x3c7e34['plugins']['get']('TrackChangesEditing');_0x2ba3f6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2ba3f6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2ba3f6['registerBlockAttribute']('headingRows'),_0x2ba3f6['registerBlockAttribute']('headingColumns'),_0x2ba3f6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c5054,'FORMAT_HEADER_ROW')),_0x2ba3f6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c5054,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12e564=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b0ca=this['editor']['plugins']['get']('TableUtils'),_0xce95a9=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x5d665d({showActiveMarker:_0x32a38c=!0x0,setDataAttribute:_0x2264bf=!0x0}={}){return(_0x14a764,_0x534a66,_0x322b7a)=>{const {type:_0x585b8b,id:_0x5f104a}=_0x12e564['_splitMarkerName'](_0x534a66['markerName']),_0x4b4768=_0x12e564['getSuggestion'](_0x5f104a),_0x2af2b2=_0x4b4768['data'];if('formatBlock'!=_0x4b4768['type']||!_0x2af2b2||'setTableColumnHeader'!=_0x2af2b2['commandName'])return;if(_0x534a66['item'])return void _0x14a764['stop']();if(!_0x322b7a['consumable']['consume'](_0x534a66['markerRange'],_0x14a764['name']))return;const _0x9f9ca1=_0x534a66['markerRange']['start']['nodeAfter'],_0x5dee4f=_0x534a66['markerRange']['end']['nodeBefore'],_0x1c08a9=_0x9f9ca1['parent']['parent'],{column:_0x1e592a}=_0x37b0ca['getCellLocation'](_0x9f9ca1),{column:_0x1683e4}=_0x37b0ca['getCellLocation'](_0x5dee4f);for(let _0x249737=_0x1e592a;_0x249737<=_0x1683e4;_0x249737++){const _0x1e26a1=_0x37b0ca['createTableWalker'](_0x1c08a9,{'column':_0x249737,'includeAllSlots':!0x1});for(const _0x278ee9 of _0x1e26a1){const _0x56c8b1=_0x278ee9['cell'],_0x1fae30=_0x322b7a['mapper']['toViewElement'](_0x56c8b1);_0x322b7a['writer']['addClass']('ck-suggestion-marker-'+_0x585b8b,_0x1fae30),_0x2264bf&&_0x322b7a['writer']['setAttribute']('data-suggestion',_0x5f104a,_0x1fae30),_0x322b7a['mapper']['bindElementToMarker'](_0x1fae30,_0x534a66['markerName']),_0x32a38c&&(_0x12e564['activeMarkers']['includes'](_0x534a66['markerName'])?_0x322b7a['writer']['addClass']('ck-suggestion-marker--active',_0x1fae30):_0x322b7a['writer']['removeClass']('ck-suggestion-marker--active',_0x1fae30));}}};}_0x12e564['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xce95a9),_0x12e564['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xce95a9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5d665d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59c7f6,_0x2fe2d1,_0x45e2b9)=>{_0x45e2b9['options']['showSuggestionHighlights']&&_0x5d665d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59c7f6,_0x2fe2d1,_0x45e2b9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25edc2,_0x2b5f49,_0x3ce522)=>{const {type:_0xcff369,id:_0x3826e4}=_0x12e564['_splitMarkerName'](_0x2b5f49['markerName']),_0x533238=_0x12e564['getSuggestion'](_0x3826e4),_0x2ff772=_0x533238['data'];if('formatBlock'!=_0x533238['type']||!_0x2ff772||'setTableColumnHeader'!=_0x2ff772['commandName'])return;const _0x3dc60f=_0x3ce522['mapper']['markerNameToElements'](_0x2b5f49['markerName']);if(_0x3dc60f){for(const _0x524875 of _0x3dc60f)_0x3ce522['writer']['removeClass']('ck-suggestion-marker-'+_0xcff369,_0x524875),_0x3ce522['writer']['removeClass']('ck-suggestion-marker--active',_0x524875),_0x3ce522['writer']['removeAttribute']('data-suggestion',_0x524875),_0x3ce522['mapper']['unbindElementFromMarkerName'](_0x524875,_0x2b5f49['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ae272=this['editor'],_0x4b1fa8=_0x4ae272['locale'];function _0x39d4ae(_0x37c523){return{'type':'format','content':o(_0x4b1fa8,'*Format:*\x20%0',_0x37c523)};}_0x4ae272['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50ff20=>{if('formatBlock'!=_0x50ff20['type'])return;const {data:_0x290614}=_0x50ff20;if(_0x290614){if('setTableRowHeader'==_0x290614['commandName']){const _0x20f9f6=_0x290614['commandParams'][0x0]['forceValue'];return _0x39d4ae(o(_0x4b1fa8,_0x20f9f6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x290614['commandName']){const _0x492bb8=_0x290614['commandParams'][0x0]['forceValue'];return _0x39d4ae(o(_0x4b1fa8,_0x492bb8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xea71e0=>[_0xea71e0,null]));class Nt extends _0x286688{static get['requires'](){return[vt];}['afterInit'](){const _0x3e16e2=this['editor'];if(!_0x3e16e2['plugins']['has']('TableClipboard'))return;const _0x27dafa=_0x3e16e2['plugins']['get']('TrackChangesEditing'),_0xf467b0=_0x3e16e2['plugins']['get']('TableUtils'),_0x2d0fa8=_0x3e16e2['plugins']['get'](vt),_0x23498e=_0x3e16e2['plugins']['get']('TableClipboard');_0x2d0fa8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e16e2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e16e2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5bd36b=null;_0x3e16e2['model']['on']('insertContent',(_0x2df909,_0x54f372)=>{const [_0x9e3717,_0x478101]=_0x54f372,_0x1ccd45=_0x54f372[_0x54f372['length']-0x1];_0x1ccd45&&_0x1ccd45['forceDefaultExecution']||_0x27dafa['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10e176,_0x4071af,_0x332872,_0x477138,_0x4dd5fe){if(_0x4071af&&!_0x4071af['is']('documentSelection'))return!0x1;const _0x39018f=_0x4dd5fe['getTableIfOnlyTableInContent'](_0x10e176,_0x332872);if(!_0x39018f||!Ue(_0x39018f,void 0x0,_0x477138))return!0x1;const _0x1d69d3=_0x477138['getSelectionAffectedTableCells'](_0x332872['document']['selection']);if(!_0x1d69d3['length'])return!0x1;const _0x8279f=_0x1d69d3[0x0]['findAncestor']('table'),_0x6cf91c=_0x477138['getRowIndexes'](_0x1d69d3),_0x4c49b8=_0x477138['getColumnIndexes'](_0x1d69d3),_0x4011f8={'startRow':_0x6cf91c['first'],'endRow':_0x6cf91c['last'],'startColumn':_0x4c49b8['first'],'endColumn':_0x4c49b8['last']};return 0x1==_0x1d69d3['length']&&(_0x4011f8['endRow']+=_0x477138['getRows'](_0x39018f)-0x1,_0x4011f8['endColumn']+=_0x477138['getColumns'](_0x39018f)-0x1),Ue(_0x8279f,_0x4011f8,_0x477138);}(_0x9e3717,_0x478101,_0x3e16e2['model'],_0xf467b0,_0x23498e)&&(_0x2df909['stop'](),_0x5bd36b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e16e2['model']['change'](()=>{_0x3e16e2['model']['insertContent'](_0x54f372[0x0],_0x54f372[0x1],_0x54f372[0x2],{'forceDefaultExecution':!0x0});const _0x4bbbee=_0x32598d(),{rowInsertionRanges:_0x2ae4ac,columnInsertionRanges:_0x4a5942,insertionRanges:_0x4dc6f3,deletionRanges:_0x32b58d,cells:_0x292544}=_0x5bd36b;_0x2ae4ac['length']&&_0x27dafa['markMultiRangeInsertion'](_0x2ae4ac,'tablePasteRow',{'tablePasteChainId':_0x4bbbee}),_0x4a5942['length']&&_0x27dafa['markMultiRangeInsertion'](_0x4a5942,'tablePasteColumn',{'tablePasteChainId':_0x4bbbee}),_0x4dc6f3['length']&&(_0x27dafa['markMultiRangeInsertion'](_0x4dc6f3,'tablePaste',{'tablePasteChainId':_0x4bbbee,'skipNestingCheck':!0x0}),_0x4dc6f3['forEach'](_0x4998de=>_0x4998de['detach']?.())),_0x32b58d['length']&&(_0x27dafa['markMultiRangeDeletion'](_0x32b58d,'tablePaste',{'tablePasteChainId':_0x4bbbee,'skipNestingCheck':!0x0}),_0x32b58d['forEach'](_0x5e2827=>_0x5e2827['detach']?.()));const _0x4e291c=_0x27dafa['markMultiRangeBlockFormat'](_0x292544['map'](({element:_0x47219b})=>_0x47219b),{'formatGroupId':_0x32598d()},[],'tablePasteCell',{'tablePasteChainId':_0x4bbbee});if(_0x4e291c){const _0x5620c3=_0x4e291c['getMarkers'](),_0x2e00c7=[];for(const {element:_0x5d45f0,attributes:_0x4eac0a}of _0x292544){if(!_0x4eac0a)continue;const _0x1ce015=_0x3e16e2['model']['createRangeOn'](_0x5d45f0),_0x26df35=_0x5620c3['find'](_0xeb3e90=>_0xeb3e90['getRange']()['isEqual'](_0x1ce015));_0x26df35&&_0x2e00c7['push']([_0x26df35['name'],_0x4eac0a]);}_0x2e00c7['length']&&_0x4e291c['setAttribute']('markerAttributes',Object['fromEntries'](_0x2e00c7));}_0x5bd36b=null;}));},{'priority':_0x1b5222['high']+0xa}),_0x3e16e2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2c03ef,_0x5939c3)=>{const [_0x2da9d4,_0x3a9c39,,_0x556857]=_0x5939c3;if(!_0x5bd36b)return;_0x2c03ef['stop']();const _0x1dc84b=_0x2da9d4['cell'],_0x5898d0=_0x3a9c39,_0xadbc4d=Oe(_0x1dc84b),_0x1a3f78=Oe(_0x5898d0);_0x2c03ef['return']=_0x1dc84b;let _0x4a4e84=null,_0x1e1306=null;if(_0x1a3f78||_0xadbc4d){if(_0xadbc4d&&!_0x1a3f78){_0x556857['remove'](_0x1dc84b['getChild'](0x0));for(const _0x59a8c5 of Array['from'](_0x5898d0['getChildren']()))_0x556857['insert'](_0x59a8c5,_0x1dc84b,'end');const _0x122eb1=_0x5bd36b['rowInsertionIndexes']['includes'](_0x2da9d4['row']),_0x307ac8=_0x5bd36b['columnInsertionIndexes']['includes'](_0x2da9d4['column']);_0x122eb1||_0x307ac8||(_0x4a4e84=_0xe90d55['fromRange'](_0x556857['createRangeIn'](_0x1dc84b)));}else _0x1a3f78&&!_0xadbc4d&&(_0x1e1306=_0x556857['createRangeIn'](_0x1dc84b));}else{const _0x3b4372=_0x556857['createElement']('tableCellSuggestion'),_0x4feff9=_0x556857['createElement']('tableCellSuggestion');_0x556857['wrap'](_0x556857['createRangeIn'](_0x1dc84b),_0x4feff9),_0x556857['insert'](_0x3b4372,_0x1dc84b,0x0);for(const _0x165755 of Array['from'](_0x5898d0['getChildren']()))_0x556857['insert'](_0x165755,_0x3b4372,'end');_0x4a4e84=_0xe90d55['fromRange'](_0x556857['createRangeOn'](_0x3b4372)),_0x1e1306=_0xe90d55['fromRange'](_0x556857['createRangeOn'](_0x4feff9));}const _0x1e1ceb=Array['from'](_0x5898d0['getAttributes']())['filter'](([_0x1cf0d3])=>Be['includes'](_0x1cf0d3));_0x5bd36b['cells']['push']({'element':_0x1dc84b,'attributes':_0x1e1ceb['length']?Object['fromEntries'](_0x1e1ceb):null}),_0x4a4e84&&_0x5bd36b['insertionRanges']['push'](_0x4a4e84),_0x1e1306&&_0x5bd36b['deletionRanges']['push'](_0x1e1306);},{'priority':'high'}),_0xf467b0['on']('insertColumns',(_0x17f215,_0x424263)=>{const [_0x179ecc,_0xb9a94={}]=_0x424263;if(!_0x5bd36b)return;const _0x11aa03=_0xb9a94['at']||0x0,_0x3b2ee2=_0xb9a94['columns']||0x1;_0x5bd36b['columnInsertionIndexes']=new Array(_0x3b2ee2)['fill'](_0x11aa03)['map']((_0x504eab,_0x40e8f7)=>_0x504eab+_0x40e8f7);for(const {cell:_0x425cc7}of _0xf467b0['createTableWalker'](_0x179ecc,{'startColumn':_0x11aa03,'endColumn':_0x11aa03+_0x3b2ee2-0x1}))_0x5bd36b['columnInsertionRanges']['push'](_0x3e16e2['model']['createRangeOn'](_0x425cc7));},{'priority':'low'}),_0xf467b0['on']('insertRows',(_0x4677f5,_0x56e263)=>{const [_0x1bc444,_0x4d5113={}]=_0x56e263;if(!_0x5bd36b)return;const _0x161368=_0x4d5113['at']||0x0,_0x44cc57=_0x4d5113['rows']||0x1;_0x5bd36b['rowInsertionIndexes']=new Array(_0x44cc57)['fill'](_0x161368)['map']((_0x418a27,_0x5dde03)=>_0x418a27+_0x5dde03);for(const {cell:_0x23befc}of _0xf467b0['createTableWalker'](_0x1bc444,{'startRow':_0x161368,'endRow':_0x161368+_0x44cc57-0x1}))_0x5bd36b['rowInsertionRanges']['push'](_0x3e16e2['model']['createRangeOn'](_0x23befc));},{'priority':'low'}),_0x27dafa['descriptionFactory']['registerDescriptionCallback'](_0x4dcfd8=>{if(_0x4dcfd8['subType']&&_0x4dcfd8['subType']['startsWith']('tablePaste'))return _0x4dcfd8['previous']?{}:{'type':'insertion','content':o(_0x3e16e2['locale'],'*Replace\x20table\x20cells*')};});const _0x60f9e=()=>!0x1;for(const _0x3ad84c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x27dafa['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ad84c,'join',_0x60f9e),_0x27dafa['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ad84c,'join',_0x60f9e),_0x27dafa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ad84c,'join',_0x60f9e);_0x27dafa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x60f9e),_0x27dafa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x27d172,_0x5476c5,_0x392a5a)=>{const _0x6d7ea9=_0x27d172['map'](_0x3aa7d=>_0x3aa7d['getContainedElement']())['filter'](_0x4b633b=>_0x4b633b),_0x36f166=new Map(_0x6d7ea9['map'](_0x3afdd9=>[_0x3afdd9,null]));if(_0x5bd36b){for(const {element:_0x15cb6a,attributes:_0x4c08f6}of _0x5bd36b['cells'])_0x4c08f6&&_0x36f166['set'](_0x15cb6a,_0x4c08f6);}else{if(_0x392a5a&&_0x392a5a['markerAttributes'])for(const [_0x2284a2,_0x355c69]of Object['entries'](_0x392a5a['markerAttributes'])){const _0x58633e=_0x3e16e2['model']['markers']['get'](_0x2284a2),_0x2670bc=_0x58633e?_0x58633e['getRange']()['getContainedElement']():null;_0x2670bc&&_0x36f166['set'](_0x2670bc,_0x355c69);}}_0x3e16e2['model']['change'](_0x2cc792=>{for(const [_0x53e227,_0x1079ba]of _0x36f166)_0x2cc792['setAttributes']({...xe,..._0x1079ba},_0x53e227);});});const _0x4c5f48=(_0xd40169,_0x23bd1b)=>{_0x27dafa['_suggestionFactory']['registerCustomCallback'](_0xd40169,'tablePaste',_0x23bd1b,(_0x13f171,_0x475b99,_0x37b596)=>{_0x3e16e2['model']['change'](_0x2173bb=>{const _0x4a7535=[];for(const _0x2af3a1 of _0x13f171){const _0x761694=_0x2af3a1['start']['nodeAfter'];_0x761694['is']('element','tableCellSuggestion')&&_0x4a7535['push'](_0x761694);}_0x27dafa['_suggestionFactory']['getSuggestionCallback'](_0xd40169,null,_0x23bd1b)(_0x13f171,_0x475b99,_0x37b596);for(const _0x3ec3be of _0x4a7535)'$graveyard'!=_0x3ec3be['root']['rootName']&&_0x2173bb['unwrap'](_0x3ec3be);});});};_0x4c5f48('insertion','accept'),_0x4c5f48('insertion','discard'),_0x4c5f48('deletion','accept'),_0x4c5f48('deletion','discard'),_0x27dafa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x287c0b=>{const _0x350fe5=_0x287c0b['map'](_0x15c6a6=>_0x15c6a6['getContainedElement']()),_0x58724b=_0x350fe5[0x0]['findAncestor']('table'),{minRow:_0x554e90,maxRow:_0x26b668}=_0x2d0fa8['_getCoordsForCells'](_0x350fe5);_0xf467b0['removeRows'](_0x58724b,{'at':_0x554e90,'rows':_0x26b668-_0x554e90+0x1});}),_0x27dafa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x53c538=>{const _0x114dfe=_0x53c538['map'](_0x25d5e7=>_0x25d5e7['getContainedElement']()),_0x4a4a6c=_0x114dfe[0x0]['findAncestor']('table'),{minColumn:_0x3fe247,maxColumn:_0xc940fc}=_0x2d0fa8['_getCoordsForCells'](_0x114dfe);_0xf467b0['removeColumns'](_0x4a4a6c,{'at':_0x3fe247,'columns':_0xc940fc-_0x3fe247+0x1});});const _0x548c44=(_0x25b51e,_0x4a4d95)=>{if(!_0x4a4d95['subType']||!_0x4a4d95['subType']['startsWith']('tablePaste'))return;const _0x56d154=_0x4a4d95['attributes']['tablePasteChainId'],_0xb660ac=_0x27dafa['getSuggestions']()['filter'](_0x4a302a=>_0x4a302a['isInContent']&&_0x4a302a['attributes']&&_0x4a302a['attributes']['tablePasteChainId']==_0x56d154);_0xb660ac['length']&&_0x4a4d95['getAllAdjacentSuggestions']()['length']!=_0xb660ac['length']&&_0xb660ac['reduce']((_0x8f3fa0,_0x4ca5f1)=>(_0x8f3fa0['next']=_0x4ca5f1,_0x4ca5f1['previous']=_0x8f3fa0,_0x4ca5f1));};function _0x3665b3(_0x21aee5,_0x1bc518=!0x0){const {id:_0x1c3997,authorId:_0x9ebc3b}=_0x27dafa['_splitMarkerName'](_0x21aee5['markerName']),_0x332b78=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x329ebf=_0x27dafa['activeMarkers']['includes'](_0x21aee5['markerName']);return _0x329ebf&&_0x332b78['push']('ck-suggestion-marker--active'),{'classes':_0x332b78,'attributes':{'data-suggestion':_0x1c3997,'data-author-id':_0x9ebc3b},'priority':_0x329ebf&&_0x1bc518?0xbc2:0xbb8};}_0x27dafa['on']('suggestionLoaded',_0x548c44,{'priority':'high'}),_0x27dafa['on']('suggestionUnloaded',_0x548c44,{'priority':'high'}),_0x3e16e2['model']['document']['registerPostFixer'](()=>{let _0x27a237=!0x1;const _0x244541=Array['from'](_0x3e16e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ba751,data:_0x4fa9f4}of _0x244541){const {group:_0x3dcf8a,type:_0x22b5b7,id:_0x55b661}=_0x27dafa['_splitMarkerName'](_0x3ba751);if('suggestion'!=_0x3dcf8a||'deletion'!=_0x22b5b7||_0x4fa9f4['oldRange'])continue;if(!_0x27dafa['hasSuggestion'](_0x55b661))continue;const _0x239a92=_0x27dafa['getSuggestion'](_0x55b661)['getRanges'](),_0x3568fc=_0x3e16e2['plugins']['get']('Users')['me'];for(const _0xd4d8f6 of _0x27dafa['getSuggestions']()){if(!_0xd4d8f6['isInContent']||_0xd4d8f6['author']!=_0x3568fc)continue;if('formatBlock'!=_0xd4d8f6['type']||'tablePasteCell'!=_0xd4d8f6['subType'])continue;if(_0xd4d8f6['getRanges']()['every'](_0x46701d=>_0x239a92['some'](_0x4ea0ce=>_0x4ea0ce['containsRange'](_0x46701d,!0x0)))){for(const _0x5d3f9a of _0xd4d8f6['getAllAdjacentSuggestions']())_0x5d3f9a['isInContent']&&(_0x5d3f9a['discard'](),_0x27a237=!0x0);}}}return _0x27a237;}),_0x3e16e2['model']['document']['registerPostFixer'](_0x3e5562=>{const _0x403a3c=_0x3e16e2['commands']['get']('redo');if(!_0x403a3c||!_0x403a3c['_createdBatches']['has'](_0x3e5562['batch']))return!0x1;let _0x3b1c1a=!0x1;const _0x538cc1=_0x3e16e2['plugins']['get']('Users')['me'],_0x36a5f6=_0x3e16e2['model']['document']['differ']['getChanges'](),_0x31c00e=Array['from'](_0x3e16e2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4b72ee,data:_0x1e75ef})=>{const {group:_0x1f70d3,subType:_0x421fc6,authorId:_0x237724}=_0x27dafa['_splitMarkerName'](_0x4b72ee);return'suggestion'==_0x1f70d3&&'tablePaste'==_0x421fc6&&_0x237724==_0x538cc1['id']&&!_0x1e75ef['oldRange'];});for(const _0x31d1bd of _0x36a5f6){if('insert'!=_0x31d1bd['type']||'tableCellSuggestion'!=_0x31d1bd['name']||0x1!=_0x31d1bd['length'])continue;const _0x1e46cf=_0x3e5562['createRange'](_0x31d1bd['position'],_0x31d1bd['position']['getShiftedBy'](0x1));if(!_0x31c00e['find'](({data:_0x20eaae})=>_0x20eaae['newRange']['isEqual'](_0x1e46cf))){for(const {name:_0x243d54,data:_0x2880f9}of _0x31c00e)if(_0x1e46cf['containsRange'](_0x2880f9['newRange'])){_0x3e5562['updateMarker'](_0x243d54,{'range':_0x1e46cf}),_0x3b1c1a=!0x0;break;}}}return _0x3b1c1a;}),_0x3e16e2['model']['document']['registerPostFixer'](_0x2d1740=>{let _0x330a90=!0x1;const _0xc4582d=_0x3e16e2['plugins']['get']('Users')['me'],_0x4ab4be=_0x27dafa['getSuggestions']()['filter'](_0x1ba203=>_0x1ba203['isInContent']&&_0x1ba203['author']==_0xc4582d),_0x2deb2b=new Set(),_0x2363ac=new Set();for(const _0x5a4ed7 of _0x4ab4be)if('tablePaste'==_0x5a4ed7['subType'])for(const _0x36ea66 of _0x5a4ed7['getMarkers']()){const _0x2c294c=_0x36ea66['getRange']()['getContainedElement']();if(_0x2c294c){if(_0x2c294c['is']('element','tableCellSuggestion')&&Oe(_0x2c294c)){_0x5a4ed7['removeMarker'](_0x36ea66['name']),_0x2deb2b['add'](_0x2c294c),_0x330a90=!0x0;const _0x22b127=_0x2c294c['nextSibling'],_0x337cd5=_0x2c294c['previousSibling'],_0x504db1=_0x22b127&&_0x22b127['is']('element','tableCellSuggestion'),_0x15681c=_0x337cd5&&_0x337cd5['is']('element','tableCellSuggestion');_0x504db1&&!_0x2deb2b['has'](_0x22b127)&&_0x2363ac['add'](_0x22b127),_0x15681c&&!_0x2deb2b['has'](_0x337cd5)&&_0x2363ac['add'](_0x337cd5);}else _0x2c294c['is']('element','paragraph')&&_0x2c294c['isEmpty']&&(_0x5a4ed7['removeMarker'](_0x36ea66['name']),_0x330a90=!0x0);}}else{if('tablePasteCell'==_0x5a4ed7['subType']){if(!_0x5a4ed7['attributes']||!_0x5a4ed7['attributes']['tablePasteChainId'])continue;const _0x4e28d7=_0x5a4ed7['attributes']['markerAttributes'];if(_0x4e28d7&&Object['keys'](_0x4e28d7)['length'])continue;const _0x4e4f3a=_0x5a4ed7['attributes']['tablePasteChainId'];let _0x2a13d3=!0x0,_0x293894=!0x0;for(const _0xb31888 of _0x4ab4be)if(_0xb31888['subType']&&_0xb31888['subType']['startsWith']('tablePaste')){if(!_0xb31888['attributes']['tablePasteChainId']){_0x293894=!0x1;break;}if(_0xb31888['id']!=_0x5a4ed7['id']&&_0xb31888['attributes']['tablePasteChainId']==_0x4e4f3a){_0x2a13d3=!0x1;break;}}_0x293894&&_0x2a13d3&&(_0x5a4ed7['removeMarkers'](),_0x330a90=!0x0);}}for(const _0x3ab9b8 of _0x2deb2b)_0x2d1740['remove'](_0x3ab9b8);for(const _0x23786a of _0x2363ac)_0x2d1740['unwrap'](_0x23786a);return _0x330a90;}),_0x3e16e2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x6e1976=>_0x3665b3(_0x6e1976),'converterPriority':'high'}),_0x3e16e2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10884c,_0xf8e23d)=>_0xf8e23d['options']['showSuggestionHighlights']?_0x3665b3(_0x10884c,!0x1):null,'converterPriority':'high'});const _0x327db8=_0x3e16e2['editing']['view'];this['listenTo'](_0x327db8['document'],'clipboardOutput',(_0x3234c9,_0x5cb3d6)=>{const _0x21080c=[];for(const _0x511401 of _0x327db8['createRangeIn'](_0x5cb3d6['content'])['getItems']())_0x511401['is']('element','suggestion-td')&&_0x21080c['push'](_0x511401);_0x327db8['change'](_0xc624b2=>{for(const _0x12ddbf of _0x21080c)_0xc624b2['move'](_0xc624b2['createRangeIn'](_0x12ddbf),_0xc624b2['createPositionBefore'](_0x12ddbf)),_0xc624b2['remove'](_0x12ddbf);});});}}function Oe(_0x3a3402){if(_0x3a3402['isEmpty'])return!0x0;const _0xf69703=_0x3a3402['getChild'](0x0);return _0xf69703['is']('element','paragraph')&&_0xf69703['isEmpty'];}function Ue(_0x28aedc,_0x43fb8c={},_0x5c5a9c){for(const {isAnchor:_0x55ee41,cellHeight:_0x4a03b3,cellWidth:_0x5598ce}of _0x5c5a9c['createTableWalker'](_0x28aedc,{'includeAllSlots':!0x0,..._0x43fb8c}))if(!_0x55ee41||0x1!=_0x4a03b3||0x1!=_0x5598ce)return!0x1;return!0x0;}class Dt extends _0x286688{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5e369c=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e369c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5e369c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5e369c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e369c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5e369c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5e369c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x571a67,_0x4a2e27){const _0x224139=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40e477=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x536755=_0x4a2e27['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ee0d9=_0x40e477['getColumnGroupElement'](_0x536755);let _0x528131=_0x5ee0d9?_0x40e477['getTableColumnsWidths'](_0x5ee0d9):null,_0x559678=_0x536755['getAttribute']('tableWidth')||null;const _0x3ee190=_0x4a2e27['tableWidth']||_0x559678,_0xb15d88=_0x4a2e27['columnWidths']||_0x528131,_0x2f3f36=this['editor']['plugins']['get']('Users')['me'];for(const _0xfc3dbf of _0x224139['getSuggestions']()){const _0x405816=_0xfc3dbf['getContainedElement']();if('resizeTable'===_0xfc3dbf['subType']&&_0x405816===_0x536755){_0xfc3dbf['author']!==_0x2f3f36&&_0xfc3dbf['discard']();const _0x4e4656=_0xfc3dbf['data']['commandParams'];_0x559678=_0x4e4656[0x0]['tableWidth'],_0x528131=_0x4e4656[0x0]['columnWidths'];break;}}_0x571a67({'table':_0x536755,'tableWidth':_0x3ee190,'columnWidths':_0xb15d88}),_0x224139['markBlockFormat'](_0x536755,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x559678,'columnWidths':_0x528131}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14de3f){if('formatBlock'!=_0x14de3f['type']&&'formatInline'!=_0x14de3f['type'])return;const {data:_0x4bb87e}=_0x14de3f;if(_0x4bb87e&&'resizeTable'===_0x4bb87e['formatGroupId']){const _0x270e3a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x270e3a)};}}}class Mt extends _0x286688{['afterInit'](){const _0x19623e=this['editor'];_0x19623e['plugins']['has']('Template')&&_0x19623e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x286688{['afterInit'](){const _0x30e4de=this['editor'];if(!_0x30e4de['commands']['get']('insertTableOfContents'))return;_0x30e4de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5047e5=_0x30e4de['plugins']['get']('TrackChangesEditing'),_0x488ac3=_0x30e4de['locale'];_0x5047e5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x952012=>o(_0x488ac3,'ELEMENT_TABLE_OF_CONTENTS',_0x952012));}}class Bt extends _0x286688{['afterInit'](){const _0x14b0eb=this['editor'];if(!_0x14b0eb['plugins']['has']('Title'))return;const _0x439134=_0x14b0eb['plugins']['get']('TrackChangesEditing');_0x439134['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x14b0eb['locale'],'ELEMENT_TITLE')),_0x14b0eb['model']['document']['registerPostFixer'](_0x5092ee=>{let _0x3041c0=!0x1;const _0x15a79f=Array['from'](_0x14b0eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5636b4,data:_0x237b6c}of _0x15a79f){const {group:_0x1ee87a}=_0x439134['_splitMarkerName'](_0x5636b4);if('suggestion'!==_0x1ee87a||!_0x237b6c['newRange'])continue;const _0x2e0007=_0x237b6c['newRange'],_0x1bd16b=_0x2e0007['end']['nodeBefore'];if(!_0x1bd16b||!_0x1bd16b['is']('element','title-content'))continue;if(!_0x2e0007['start']['isTouching'](_0x2e0007['end']))continue;const _0x34d88d=_0x14b0eb['model']['schema']['getNearestSelectionRange'](_0x2e0007['end'],'forward');if(_0x34d88d&&_0x34d88d['isCollapsed']){const _0xad45a1=_0x5092ee['createRange'](_0x2e0007['start'],_0x34d88d['start']);_0xad45a1['isEqual'](_0x2e0007)||(_0x5092ee['updateMarker'](_0x5636b4,{'range':_0xad45a1}),_0x3041c0=!0x0);}_0x3041c0||(_0x5092ee['removeMarker'](_0x5636b4),_0x3041c0=!0x0);}return _0x3041c0;});}}class Ot extends _0x286688{['afterInit'](){const _0x3d636d=this['editor'],_0x20c47b=_0x3d636d['plugins']['get']('TrackChangesEditing');_0x3d636d['plugins']['has']('Uploadcare')&&(_0x20c47b['enableCommand']('uploadcare'),_0x3d636d['plugins']['has']('UploadcareImageEdit')&&(_0x20c47b['enableCommand']('uploadcareImageEdit'),_0x20c47b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x20c47b['registerBlockAttribute']('uploadcareImageId'),_0x20c47b['descriptionFactory']['registerDescriptionCallback'](_0x184c2f=>{if('attribute'!=_0x184c2f['type'])return;const {data:_0x1ea43c}=_0x184c2f;return _0x1ea43c&&'uploadcareImageId'==_0x1ea43c['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x286688{['afterInit'](){const _0x1955e8=this['editor'],_0x4ede05=_0x1955e8['plugins']['get']('TrackChangesEditing');_0x1955e8['plugins']['has']('UndoEditing')&&(_0x4ede05['enableCommand']('undo'),_0x4ede05['enableCommand']('redo'));}}class Tt extends _0x286688{static get['requires'](){return[vt];}['afterInit'](){const _0x1a3ef0=this['editor'];if(!_0x1a3ef0['plugins']['has']('TableCaptionEditing'))return;_0x1a3ef0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x286688{['tableProperties'];['tableCellProperties'];constructor(_0x5abd4f){super(_0x5abd4f),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 _0x23a454=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3ca66c of this['tableProperties'])_0x23a454['enableCommand'](_0x3ca66c,(_0x588b0a,_0x27f2d4)=>{const _0x55e769=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3ca66c,[_0x55e769],this['tableProperties'],'tableProperties',_0x588b0a,_0x27f2d4);});_0x23a454['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x23a454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23a454['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x182d2d,_0x548b2b)=>this['handleDiscardAction'](this['tableProperties'],_0x182d2d,_0x548b2b)),_0x23a454['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x302a63 of this['tableCellProperties'])_0x23a454['enableCommand'](_0x302a63,(_0x4c6c44,_0x3ed888)=>{const _0x45fbed=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x302a63,_0x45fbed,this['tableCellProperties'],'tableCellProperties',_0x4c6c44,_0x3ed888);});_0x23a454['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x23a454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23a454['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x314808,_0x34e129)=>this['handleDiscardAction'](this['tableCellProperties'],_0x314808,_0x34e129)),_0x23a454['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x23a454['descriptionFactory']['registerDescriptionCallback'](_0x23516d=>this['handleSuggestionDescription'](_0x23516d));}['_handlePropertyChange'](_0x4f83ab,_0x32ffa5,_0x300744,_0x30be58,_0x107727,_0x57258f){const _0x4f850e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x57258f['batch'],()=>{for(const _0x329114 of _0x32ffa5){if(this['_getSuggestion'](_0x329114,_0x30be58))_0x107727(_0x57258f);else{const _0x4e9dd9={};for(const _0x12e1b5 of _0x300744){const _0x315b62=_0x329114['getAttribute'](_0x12e1b5);void 0x0!==_0x315b62&&(_0x4e9dd9[_0x12e1b5]=_0x315b62);}_0x107727(_0x57258f),_0x4f850e['markBlockFormat'](_0x329114,{'commandParams':[_0x4e9dd9]},[],_0x30be58);}}});}['handleDiscardAction'](_0x309788,_0x534c33,_0x4ec22b){const _0x4b968a=_0x534c33[0x0]['start']['nodeAfter'],_0x5f37e2=_0x4ec22b['commandParams'][0x0];this['editor']['model']['change'](_0x4082aa=>{for(const _0x27c80d of _0x309788)void 0x0!==_0x5f37e2[_0x27c80d]?_0x4082aa['setAttribute'](_0x27c80d,_0x5f37e2[_0x27c80d],_0x4b968a):_0x4082aa['removeAttribute'](_0x27c80d,_0x4b968a);});}['handleSuggestionDescription'](_0x31da47){if(_0x31da47['data'])switch(_0x31da47['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x16fb0c,_0x4a8c29){const _0x3d090e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55ea41 of _0x3d090e['getSuggestions']({'skipNotAttached':!0x0})){const _0x5468d1=_0x55ea41['getContainedElement']();if(_0x55ea41['subType']===_0x4a8c29&&_0x5468d1===_0x16fb0c)return _0x55ea41;}return null;}}const m='$elementName';class p extends _0x286688{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x122d88,_0x22eeeb,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2748ef){super(_0x2748ef),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a08ba,_0x10178e,_0x1dc81a,_0x1ee49d)=>{this['_model']['change'](()=>{for(const _0x26fb14 of[..._0x1ee49d,..._0x1dc81a])this['_model']['markers']['has'](_0x26fb14)&&_0x2748ef['editing']['reconvertMarker'](_0x26fb14);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2748ef['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x2748ef['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2748ef['config']['get']('trackChanges.trackFormatChanges'),_0x2748ef['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2748ef['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2748ef,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5a8fa6=this['editor'],_0x1cdf20=(_0x7c5c36,_0x4cb349)=>{if('attribute'!=_0x7c5c36)return'ck-suggestion-marker-'+_0x7c5c36;const _0xd9d398=_0x4cb349['split']('|')[0x0];return this['_isBlockAttribute'](_0xd9d398)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5a8fa6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x20d310=>{const {id:_0x66a860,authorId:_0x1dc318,type:_0x2bc97f,subType:_0x374c4c}=this['_splitMarkerName'](_0x20d310['markerName']),_0x16fa74=['ck-suggestion-marker',_0x1cdf20(_0x2bc97f,_0x374c4c)];let _0x24b86f=0xbb8;return this['activeMarkers']['includes'](_0x20d310['markerName'])&&(_0x16fa74['push']('ck-suggestion-marker--active'),_0x24b86f=0xbc2),'deletion'==_0x2bc97f&&(_0x24b86f+=0x5),{'classes':_0x16fa74,'attributes':{'data-suggestion':_0x66a860,'data-author-id':_0x1dc318},'priority':_0x24b86f};}}),_0x5a8fa6['conversion']['for']('dataDowncast')['add'](_0xa6433e=>{_0xa6433e['on']('addMarker:suggestion',(_0x3f7420,_0x30ed00,_0x458ddf)=>{if(!_0x458ddf['options']['showSuggestionHighlights'])return;const _0x5a5d5f=_0x30ed00['item'];if(!_0x5a5d5f)return;const _0x28692f=_0x458ddf['mapper']['toViewElement'](_0x5a5d5f);_0x5a8fa6['model']['schema']['isObject'](_0x5a5d5f)&&_0x28692f&&!_0x28692f['getCustomProperty']('widget')&&_0x28692f['is']('containerElement')&&_0x25657a(_0x28692f,_0x458ddf['writer']);},{'priority':'high'});}),_0x5a8fa6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x326706,_0x3b2bcb)=>{if(!_0x3b2bcb['options']['showSuggestionHighlights'])return null;const {type:_0xa751f,subType:_0x3bec9c}=this['_splitMarkerName'](_0x326706['markerName']);return{'classes':['ck-suggestion-marker',_0x1cdf20(_0xa751f,_0x3bec9c)],'priority':0xbb8};}});const _0x364463=({showActiveMarkers:_0x10bfc5=!0x0,isAttributeSuggestion:_0x2cfeeb=!0x1}={})=>(_0x536ef9,_0x222ee5,_0x54e66c)=>{if(!_0x222ee5['item'])return;const {id:_0x4a7e3a,authorId:_0x564c05}=this['_splitMarkerName'](_0x222ee5['markerName']);if(_0x2cfeeb){const _0x54045c=this['_suggestions']['get'](_0x4a7e3a),_0x2962b0=this['_getAttributeKey'](_0x54045c);if(!this['_isBlockAttribute'](_0x2962b0))return;}if(_0x222ee5['item']['is']('selection'))return void _0x54e66c['consumable']['consume'](_0x222ee5['item'],_0x536ef9['name']);const _0x3f594b=_0x54e66c['mapper']['toViewElement'](_0x222ee5['item']);if(_0x222ee5['item']['is']('element')&&_0x5a8fa6['model']['schema']['isBlock'](_0x222ee5['item'])&&!_0x3f594b['getCustomProperty']('addHighlight')){_0x54e66c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3f594b),_0x54e66c['writer']['setAttribute']('data-suggestion',_0x4a7e3a,_0x3f594b),_0x54e66c['writer']['setAttribute']('data-author-id',_0x564c05,_0x3f594b),_0x54e66c['mapper']['bindElementToMarker'](_0x3f594b,_0x222ee5['markerName']),_0x10bfc5&&(this['activeMarkers']['includes'](_0x222ee5['markerName'])?_0x54e66c['writer']['addClass']('ck-suggestion-marker--active',_0x3f594b):_0x54e66c['writer']['removeClass']('ck-suggestion-marker--active',_0x3f594b));for(const _0x28d8a4 of _0x5a8fa6['model']['createRangeIn'](_0x222ee5['item'])['getItems']())_0x54e66c['consumable']['consume'](_0x28d8a4,_0x536ef9['name']);_0x54e66c['consumable']['consume'](_0x222ee5['item'],_0x536ef9['name']);}};_0x5a8fa6['conversion']['for']('dataDowncast')['add'](_0xd44cf2=>{_0xd44cf2['on']('addMarker:suggestion:formatBlock',(_0x8d96ee,_0xf4d160,_0x2337f8)=>{_0x2337f8['options']['showSuggestionHighlights']&&_0x364463({'showActiveMarkers':!0x1})(_0x8d96ee,_0xf4d160,_0x2337f8);},{'priority':'highest'});}),_0x5a8fa6['conversion']['for']('dataDowncast')['add'](_0x154814=>{_0x154814['on']('addMarker:suggestion:attribute',(_0x5e1d0b,_0x18dcea,_0x3cf8c8)=>{_0x3cf8c8['options']['showSuggestionHighlights']&&_0x364463({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5e1d0b,_0x18dcea,_0x3cf8c8);},{'priority':'highest'});}),_0x5a8fa6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3102a5,_0x3fb1ce)=>_0x3fb1ce['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3102a5['substr'](0xb)}}),_0x5a8fa6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4c68d4,{writer:_0x28c15f})=>{let _0x597250='suggestion:'+_0x4c68d4['getAttribute']('suggestion-type')+':'+_0x4c68d4['getAttribute']('id');return _0x4c68d4['getAttribute']('marker-count')&&(_0x597250+=':'+_0x4c68d4['getAttribute']('marker-count')),_0x28c15f['createElement']('$marker',{'data-name':_0x597250});}}),_0x5a8fa6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5a8fa6['conversion']['for']('editingDowncast')['add'](_0xa583d=>{_0xa583d['on']('addMarker:suggestion:formatBlock',_0x364463(),{'priority':'high'});}),_0x5a8fa6['conversion']['for']('editingDowncast')['add'](_0x5ae67d=>{_0x5ae67d['on']('addMarker:suggestion:attribute',_0x364463({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5a8fa6['conversion']['for']('editingDowncast')['add'](_0x5a2a4d=>{_0x5a2a4d['on']('removeMarker:suggestion:formatBlock',(_0x12888e,_0x42e1e4,_0x5f42c5)=>{const _0x3f9931=_0x5f42c5['mapper']['markerNameToElements'](_0x42e1e4['markerName']);if(_0x3f9931){for(const _0x32ac33 of _0x3f9931)_0x32ac33['getCustomProperty']('addHighlight')||(_0x5f42c5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x32ac33),_0x5f42c5['writer']['removeAttribute']('data-suggestion',_0x32ac33),_0x5f42c5['writer']['removeAttribute']('data-author-id',_0x32ac33),_0x5f42c5['mapper']['unbindElementFromMarkerName'](_0x32ac33,_0x42e1e4['markerName']));}},{'priority':'high'});}),_0x5a8fa6['conversion']['for']('editingDowncast')['add'](_0x5ead53=>{_0x5ead53['on']('removeMarker:suggestion:attribute',(_0xb1f89e,_0x15d581,_0x36027b)=>{const _0x149ddb=_0x36027b['mapper']['markerNameToElements'](_0x15d581['markerName']);if(!_0x149ddb)return;const {id:_0xf5dabe}=this['_splitMarkerName'](_0x15d581['markerName']),_0x376ac7=this['_suggestions']['get'](_0xf5dabe),_0xeb1200=this['_getAttributeKey'](_0x376ac7);if(this['_isBlockAttribute'](_0xeb1200)){for(const _0x2a7c7f of _0x149ddb)_0x2a7c7f['getCustomProperty']('addHighlight')||(_0x36027b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a7c7f),_0x36027b['writer']['removeAttribute']('data-suggestion',_0x2a7c7f),_0x36027b['writer']['removeAttribute']('data-author-id',_0x2a7c7f),_0x36027b['mapper']['unbindElementFromMarkerName'](_0x2a7c7f,_0x15d581['markerName']));}},{'priority':'high'});}),_0x5a8fa6['model']['document']['registerPostFixer'](_0x44c6d8=>{let _0x2b2b2c=!0x1;const _0x3297ad=Array['from'](_0x5a8fa6['model']['document']['differ']['getChangedMarkers']()),_0x210f6a=new Set();for(const {name:_0x340fdf,data:_0x5dbfda}of _0x3297ad){const {group:_0x327423,type:_0x4244fd,subType:_0x359740,id:_0x3f3592}=this['_splitMarkerName'](_0x340fdf);if('suggestion'!==_0x327423)continue;const _0x418997=this['_suggestions']['get'](_0x3f3592);if(null!=_0x5dbfda['newRange']){'formatInline'==_0x4244fd&&(_0x2b2b2c=_0x2b2b2c||Gt(_0x5dbfda['newRange'],_0x340fdf,_0x44c6d8,_0x5a8fa6['model']['schema']));const _0x57f475='attribute'==_0x4244fd&&this['_isBlockAttribute'](_0x359740['split']('|')[0x0]);if(_0x5dbfda['newRange']['isCollapsed']||'$graveyard'==_0x5dbfda['newRange']['root']['rootName']||'formatBlock'==_0x4244fd&&!Lt(_0x5dbfda['newRange'])||_0x57f475&&!Lt(_0x5dbfda['newRange'])||'deletion'==_0x4244fd&&!(!Pt(_0x118ff8=_0x5dbfda['newRange'])&&!function(_0x31c787){return _0x31c787['start']['parent']==_0x31c787['end']['nodeBefore']&&_0x31c787['start']['isAtEnd'];}(_0x118ff8)))_0x44c6d8['removeMarker'](_0x340fdf),_0x2b2b2c=!0x0;else{if(!_0x418997||!_0x418997['isInContent'])continue;if(_0x5dbfda['newRange']&&_0x5dbfda['oldRange']&&_0x5dbfda['newRange']['isEqual'](_0x5dbfda['oldRange']))continue;_0x210f6a['add'](_0x418997);}}}var _0x118ff8;return _0x210f6a['size']>0x0&&(_0x2b2b2c=!!this['_joinWithAdjacentSuggestions'](_0x210f6a)||_0x2b2b2c),_0x2b2b2c;}),_0x5a8fa6['model']['document']['registerPostFixer'](_0x977b42=>{let _0x37b3e1=!0x1;for(const _0x4442e2 of _0x5a8fa6['model']['document']['differ']['getChanges']())if('insert'==_0x4442e2['type'])for(const _0x433ba0 of this['_suggestions']['values']()){if(_0x433ba0['isMultiRange']||!_0x433ba0['isInContent'])continue;const _0x45ec0d='formatBlock'==_0x433ba0['type'],_0x3980c8=this['_getAttributeKey'](_0x433ba0),_0x32143c=_0x3980c8&&this['_isBlockAttribute'](_0x3980c8);if(!_0x45ec0d&&!_0x32143c)continue;const _0x1b126b=_0x433ba0['getFirstRange']();if(_0x1b126b['start']['parent']!=_0x1b126b['end']['parent']&&!_0x1b126b['end']['isAtEnd']){const _0x2fa82f=_0x5a8fa6['model']['createPositionAt'](_0x1b126b['start']['nodeAfter'],'end'),_0x19fbab=_0x5a8fa6['model']['createRange'](_0x1b126b['start'],_0x2fa82f);_0x977b42['updateMarker'](_0x433ba0['getFirstMarker'](),{'range':_0x19fbab}),_0x37b3e1=!0x0;}}return _0x37b3e1;}),_0x5a8fa6['model']['document']['registerPostFixer'](_0x4acc36=>this['_processAttributeChanges'](_0x4acc36)),_0x5a8fa6['model']['document']['registerPostFixer'](_0x3bf2e6=>!_0x3bf2e6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3bf2e6)),_0x5a8fa6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5a8fa6['model']['document']['on']('change:data',(_0x256386,_0x32e95d)=>{if(!_0x32e95d['isLocal']||_0x32e95d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x33e2f4=_0x5a8fa6['model']['document']['differ']['getChanges']();if(0x0==_0x33e2f4['length'])return;const _0x1b2597=[],_0x49f3da=_0x33e2f4['filter'](_0x5306fb=>'attribute'==_0x5306fb['type']),_0xfacb=_0x33e2f4['filter'](_0x177610=>'insert'==_0x177610['type']&&'$text'!=_0x177610['name']);for(const _0x5612cf of _0x49f3da)this['_isRegisteredAttribute'](_0x5612cf['attributeKey'])&&_0x1b2597['push']({'key':_0x5612cf['attributeKey'],'newValue':_0x5612cf['attributeNewValue'],'oldValue':_0x5612cf['attributeOldValue'],'range':Jt(_0x5612cf['range'],_0x5a8fa6['model'])});for(const _0x178f11 of _0xfacb){if('rename'!=_0x178f11['action']&&'refresh'!=_0x178f11['action'])continue;const _0x4f6721=Ht(_0x178f11['position']['nodeAfter'],_0x5a8fa6['model']),_0x477bd8=_0x178f11['before'];'rename'==_0x178f11['action']&&_0x1b2597['push']({'key':m,'newValue':_0x178f11['name'],'oldValue':_0x477bd8['name'],'range':_0x4f6721});for(const [_0x519709,_0x1e4b2a]of _0x477bd8['attributes']){if(!this['_isRegisteredAttribute'](_0x519709))continue;const _0x4d5e14=_0x178f11['attributes']['get'](_0x519709);_0x1e4b2a!==_0x4d5e14&&_0x1b2597['push']({'key':_0x519709,'newValue':_0x4d5e14,'oldValue':_0x1e4b2a,'range':_0x4f6721});}for(const [_0x3ed418,_0x222a22]of _0x178f11['attributes'])this['_isRegisteredAttribute'](_0x3ed418)&&(_0x477bd8['attributes']['has'](_0x3ed418)||_0x1b2597['push']({'key':_0x3ed418,'newValue':_0x222a22,'oldValue':null,'range':_0x4f6721}));}0x0!=_0x1b2597['length']&&_0x5a8fa6['model']['enqueueChange'](_0x32e95d,_0x34d478=>{const _0x4643f5=_0x32598d();for(const {range:_0x1b31cb,key:_0x1b695c,oldValue:_0x2d5708,newValue:_0xe15204}of _0x1b2597)this['markAttributeChange'](_0x1b31cb,_0x1b695c,_0x2d5708,_0xe15204,{'groupId':_0x4643f5});this['_reduceExistingSuggestions'](_0x34d478,_0x1b2597);});},{'priority':'lowest'}),_0x5a8fa6['model']['markers']['on']('update:suggestion',(_0x40225d,_0x28104c,_0x927953)=>{if(null==_0x927953){const {id:_0x2dad9c}=this['_splitMarkerName'](_0x28104c['name']),_0x13ee90=this['_suggestions']['get'](_0x2dad9c);_0x13ee90&&_0x13ee90['addMarkerName'](_0x28104c['name']);}}),_0x5a8fa6['model']['document']['on']('change:data',()=>{const _0x53dab5=Array['from'](_0x5a8fa6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x325067=>'suggestion'===this['_splitMarkerName'](_0x325067['name'])['group']);if(0x0===_0x53dab5['length'])return;_0x53dab5['sort']((_0x41e678,_0x1ba727)=>{const _0xd9a7ab=_0x41e678['data']['oldRange'],_0x11a43b=_0x1ba727['data']['oldRange'];return null===_0xd9a7ab&&null===_0x11a43b?0x0:null===_0xd9a7ab&&null!==_0x11a43b?-0x1:null!==_0xd9a7ab&&null===_0x11a43b?0x1:_0xd9a7ab['start']['isBefore'](_0x11a43b['start'])?-0x1:0x1;});const _0x480541=new Set(),_0x595b28=new Set();for(const {name:_0x51ad0d,data:_0xbf1987}of _0x53dab5){const {id:_0x7e9210}=this['_splitMarkerName'](_0x51ad0d);if(null===_0xbf1987['oldRange']){const _0x3a9544=this['_handleNewSuggestionMarker'](_0x51ad0d);_0x595b28['add'](_0x3a9544);}else{const _0x435aa6=this['_suggestions']['get'](_0x7e9210);null!==_0xbf1987['newRange']||_0x435aa6['isInContent']?(_0x480541['add'](_0x435aa6['head']),_0x595b28['add'](_0x435aa6)):this['_removeSuggestion'](_0x435aa6);}}_0x595b28['size']>0x0&&this['_refreshSuggestionsChain'](_0x595b28);for(const _0x5afce7 of _0x480541)this['fire']('suggestionChanged',_0x5afce7);}),_0x5a8fa6['model']['on']('applyOperation',(_0x5eafa2,_0xe97e91)=>{const _0x34bed4=_0xe97e91[0x0];if(!this['_suggestions']['size'])return;if(!_0x34bed4['isDocumentOperation'])return;if(_0x34bed4['batch']['isUndo']||!_0x34bed4['batch']['isLocal'])return;let _0x2e12e3,_0x1a2286;switch(_0x34bed4['type']){case'insert':_0x2e12e3=_0x5a8fa6['model']['createPositionAt'](_0x34bed4['position']),_0x1a2286=_0x2e12e3['getShiftedBy'](_0x34bed4['howMany']);break;case'split':_0x2e12e3=_0x5a8fa6['model']['createPositionAt'](_0x34bed4['splitPosition']),_0x1a2286=_0x5a8fa6['model']['createPositionAt'](_0x34bed4['moveTargetPosition']);break;case'move':_0x2e12e3=_0x5a8fa6['model']['createPositionAt'](_0x34bed4['targetPosition']),_0x1a2286=_0x2e12e3['getShiftedBy'](_0x34bed4['howMany']);break;default:return;}const _0x2bd5fe=_0x5a8fa6['model']['createRange'](_0x2e12e3,_0x1a2286);_0x5a8fa6['model']['change'](()=>{for(const {suggestion:_0x2a6571,meta:_0x5f03c7}of this['_findSuggestions'](_0x2bd5fe)){if(_0x2a6571['isMultiRange'])continue;if('formatInline'==_0x2a6571['type'])continue;const _0x20d425=this['_getAttributeKey'](_0x2a6571);if(_0x20d425&&this['_isBlockAttribute'](_0x20d425)&&'split'!=_0x34bed4['type'])continue;const _0x5cf07c=_0x2a6571['data']&&_0x2a6571['data']['multipleBlocks'];('formatBlock'!=_0x2a6571['type']||'split'==_0x34bed4['type']&&!_0x5cf07c)&&(_0x5f03c7['containsRangeInObject']||'insertion'==_0x2a6571['type']&&_0x5f03c7['isOwn']||_0x2a6571['getFirstRange']()['containsRange'](_0x2bd5fe)&&this['_breakSuggestionMarker'](_0x2a6571,_0x2e12e3,_0x1a2286));}});},{'priority':'lowest'}),_0x5a8fa6['model']['on']('deleteContent',(_0x2fcf19,_0x20c674)=>{const _0x262af1=_0x20c674[0x0],_0x4d82e4=_0x20c674[0x1];if(_0x4d82e4&&_0x4d82e4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x262af1['isCollapsed'])return;const _0x2512d7=_0x5a8fa6['model']['schema'],{start:_0x12c23d,end:_0x6d8865}=_0x262af1['getFirstRange'](),_0x33c301=_0x12c23d['nodeAfter']&&_0x2512d7['isLimit'](_0x12c23d['nodeAfter'])?null:_0x2512d7['getNearestSelectionRange'](_0x12c23d,'forward'),_0x4c2063=_0x6d8865['nodeBefore']&&_0x2512d7['isLimit'](_0x6d8865['nodeBefore'])?null:_0x2512d7['getNearestSelectionRange'](_0x6d8865,'backward'),_0x23c154=_0x5a8fa6['model']['createRange'](_0x33c301?_0x33c301['start']:_0x12c23d,_0x4c2063?_0x4c2063['end']:_0x6d8865);_0x5a8fa6['model']['change'](_0x5f46ab=>{this['markDeletion'](_0x23c154);const _0x4adf1b=_0x5a8fa6['model']['schema']['getNearestSelectionRange'](_0x23c154['start']);_0x262af1['is']('documentSelection')?_0x5f46ab['setSelection'](_0x4adf1b):_0x262af1['setTo'](_0x4adf1b);}),_0x2fcf19['stop']();},{'priority':_0x1b5222['normal']+0xa}),_0x5a8fa6['model']['on']('insertContent',(_0x144b8e,_0x4e48af)=>{const _0x23eee2=_0x4e48af[_0x4e48af['length']-0x1];_0x23eee2&&_0x23eee2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5a8fa6['model']['change'](()=>{let _0x250bc6=_0x5a8fa6['model']['insertContent'](_0x4e48af[0x0],_0x4e48af[0x1],_0x4e48af[0x2],{'forceDefaultExecution':!0x0});if(!_0x250bc6)return;_0x144b8e['return']=_0x250bc6['clone']();const _0x4200ac=_0x250bc6['end']['nodeBefore'],_0x99dd68=_0x5a8fa6['model']['schema'];_0x4200ac&&_0x99dd68['isBlock'](_0x4200ac)&&!_0x99dd68['isObject'](_0x4200ac)&&(_0x250bc6=_0x5a8fa6['model']['createRange'](_0x250bc6['start'],_0x5a8fa6['model']['createPositionAt'](_0x4200ac,'end'))),this['markInsertion'](_0x250bc6);}),_0x144b8e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2165f9=new O(_0x5a8fa6,this['_suggestions']);_0x5a8fa6['commands']['add']('acceptSuggestion',_0x2165f9),this['enableCommand']('acceptSuggestion');const _0x466da4=new R(_0x5a8fa6,this['_suggestions']);_0x5a8fa6['commands']['add']('discardSuggestion',_0x466da4),this['enableCommand']('discardSuggestion'),_0x5a8fa6['commands']['add']('acceptAllSuggestions',new x(_0x5a8fa6,_0x2165f9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5a8fa6['commands']['add']('discardAllSuggestions',new x(_0x5a8fa6,_0x466da4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5a8fa6['commands']['add']('acceptSelectedSuggestions',new E(_0x5a8fa6,_0x2165f9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5a8fa6['commands']['add']('discardSelectedSuggestions',new E(_0x5a8fa6,_0x466da4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5ebce2=_0x5a8fa6['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ebce2,'addComment',(_0x3de99d,{threadId:_0x410db8})=>{const _0x216d2c=this['_suggestions']['get'](_0x410db8);_0x216d2c&&_0x216d2c['commentThread']&&0x1===_0x216d2c['commentThread']['length']&&this['_updateSuggestionData'](_0x410db8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5ebce2,'removeComment',(_0x100dab,{threadId:_0x31500a})=>{const _0x284a5e=this['_suggestions']['get'](_0x31500a);_0x284a5e&&_0x284a5e['commentThread']&&!_0x284a5e['commentThread']['length']&&this['_updateSuggestionData'](_0x31500a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x30f1f6){const _0x33d3a3=_0x830685([0x62,0x63,0x37,0x55,0x31,0x57,0x79,0x4b,0x49,0x4f,0x36,0x54,0x74,0x68,0x32,0x47,0x4e,0x73,0x78,0x6e,0x77,0x4a,0x41,0x61,0x51,0x69,0x75,0x52,0x30,0x42,0x4c,0x66,0x33,0x67,0x50,0x38,0x53,0x6d,0x34,0x44,0x6f,0x7a,0x6a,0x6b,0x71,0x39,0x59,0x56,0x58,0x64,0x65,0x4d,0x48,0x70,0x6c,0x45,0x46,0x35,0x72,0x43,0x5a,0x76]),_0x1f200b=0x3a759e7e,_0xd47887=0x3a72c0ae^_0x1f200b,_0x509139=window[_0x830685([0x44,0x61,0x74,0x65])][_0x830685([0x6e,0x6f,0x77])](),_0x37c591=_0x30f1f6[_0x830685([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb966ee=new window[(_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd33a2d=>{_0x37c591[_0x830685([0x6f,0x6e,0x63,0x65])](_0x830685([0x72,0x65,0x61,0x64,0x79]),_0xd33a2d);}),_0x14504f={[_0x830685([0x6b,0x74,0x79])]:_0x830685([0x45,0x43]),[_0x830685([0x75,0x73,0x65])]:_0x830685([0x73,0x69,0x67]),[_0x830685([0x63,0x72,0x76])]:_0x830685([0x50,0x2d,0x32,0x35,0x36]),[_0x830685([0x78])]:_0x830685([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]),[_0x830685([0x79])]:_0x830685([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]),[_0x830685([0x61,0x6c,0x67])]:_0x830685([0x45,0x53,0x32,0x35,0x36])},_0x30b7e3=_0x37c591[_0x830685([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x830685([0x67,0x65,0x74])](_0x830685([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x142b1e(){let _0x51f0a4,_0xf9c9e9=null,_0x312be8=null;try{if(_0x30b7e3==_0x830685([0x47,0x50,0x4c]))return _0x830685([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51f0a4=_0x3601bc(),!_0x51f0a4)return _0x830685([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51f0a4[_0x830685([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x312be8=_0x449c79(_0x51f0a4[_0x830685([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51f0a4[_0x830685([0x6a,0x74,0x69])])),await _0x3e0823()?_0x4cd599()?_0x288d39()?_0x830685([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49993d()?(_0x51f0a4[_0x830685([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x830685([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf9c9e9=_0x593d8d(_0x830685([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51f0a4[_0x830685([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x830685([0x74,0x72,0x69,0x61,0x6c])&&(_0xf9c9e9=_0x593d8d(_0x830685([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51766c()):_0x830685([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x830685([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x830685([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x82ad5f){return _0x830685([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x288d39(){const _0x3750ba=[_0x830685([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x830685([0x74,0x72,0x69,0x61,0x6c])][_0x830685([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51f0a4[_0x830685([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x509139/0x3e8:0xe10*_0xd47887;return _0x51f0a4[_0x830685([0x65,0x78,0x70])]<_0x3750ba;}function _0x4cd599(){const _0x403418=_0x51f0a4[_0x830685([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x403418)return!0x1;if(_0x403418[_0x830685([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x830685([0x2a])))return!0x0;if(_0x403418[_0x830685([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x830685([0x54,0x43])))return!0x0;if(_0x403418[_0x830685([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x830685([0x52,0x54,0x43]))){if(_0x1f892b())return!0x0;if(_0x5bbd4c()||_0xa1fd6())return!0x0;}return!0x1;}function _0x49993d(){const _0xc14424=_0x51f0a4[_0x830685([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc14424||0x0==_0xc14424[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7d5702}=new URL(window[_0x830685([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc14424[_0x830685([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7d5702))return!0x0;const _0x5802e0=_0x7d5702[_0x830685([0x73,0x70,0x6c,0x69,0x74])](_0x830685([0x2e]));return _0xc14424[_0x830685([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4082ab=>_0x4082ab[_0x830685([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x830685([0x2a])))[_0x830685([0x6d,0x61,0x70])](_0x5205ed=>_0x5205ed[_0x830685([0x73,0x70,0x6c,0x69,0x74])](_0x830685([0x2e])))[_0x830685([0x73,0x6f,0x6d,0x65])](_0x162639=>_0x5802e0[_0x830685([0x65,0x76,0x65,0x72,0x79])]((_0x5b7cab,_0x3b9213)=>_0x162639[_0x3b9213]===_0x5b7cab||_0x162639[_0x3b9213]===_0x830685([0x2a])));}function _0x51766c(){return _0xf9c9e9&&_0x312be8?new window[(_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3574df,_0x186ac9)=>{_0xf9c9e9[_0x830685([0x74,0x68,0x65,0x6e])](_0x3574df,_0x186ac9),_0x312be8[_0x830685([0x74,0x68,0x65,0x6e])](_0x30be32=>{_0x30be32!=_0x830685([0x56,0x61,0x6c,0x69,0x64])&&_0x3574df(_0x30be32);},_0x186ac9);}):_0xf9c9e9||_0x312be8||_0x830685([0x56,0x61,0x6c,0x69,0x64]);}}function _0x449c79(_0x1026d0,_0x68779){return new window[(_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3617da=>{if(_0x298bcf())return _0x3617da(_0x830685([0x56,0x61,0x6c,0x69,0x64]));_0x8a412e(),_0x37c591[_0x830685([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x830685([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf6284=!0x1;const _0x229adf=_0x32598d();function _0x12711d(_0x31e3f7){return!!_0x31e3f7&&(typeof _0x31e3f7===_0x830685([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e3f7===_0x830685([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e3f7[_0x830685([0x74,0x68,0x65,0x6e])]===_0x830685([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e3f7[_0x830685([0x63,0x61,0x74,0x63,0x68])]===_0x830685([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12cc41(_0x572163){_0x12cfd9(_0x572163)[_0x830685([0x74,0x68,0x65,0x6e])](_0x2e74b7=>{if(!_0x2e74b7||_0x2e74b7[_0x830685([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x830685([0x6f,0x6b]))return _0x830685([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bd8cb(_0x46dfd6(_0x229adf+_0x68779))!=_0x2e74b7[_0x830685([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x830685([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x830685([0x56,0x61,0x6c,0x69,0x64]);})[_0x830685([0x74,0x68,0x65,0x6e])](_0x458661=>(_0x5a22a4(),_0x458661),()=>{const _0x129042=_0x342858();return null==_0x129042?(_0x5a22a4(),_0x830685([0x56,0x61,0x6c,0x69,0x64])):_0x830685(_0x509139-_0x129042>(0x1e791a7e^_0x1f200b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x830685([0x74,0x68,0x65,0x6e])](_0x3617da)[_0x830685([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3617da(_0x830685([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6bedbf=0x3a4370fe^_0x1f200b;function _0x5a22a4(){const _0x4a8d9d=_0x830685([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bd8cb(_0x46dfd6(_0x1026d0)),_0x2f3fe6=_0x1baeb7(_0x3bd8cb(window[_0x830685([0x4d,0x61,0x74,0x68])][_0x830685([0x63,0x65,0x69,0x6c])](_0x509139/_0x6bedbf)));window[_0x830685([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x830685([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a8d9d,_0x2f3fe6);}function _0x342858(){const _0x2db84e=_0x830685([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bd8cb(_0x46dfd6(_0x1026d0)),_0x5c3dae=window[_0x830685([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x830685([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2db84e);return _0x5c3dae?window[_0x830685([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1baeb7(_0x5c3dae),0x10)*_0x6bedbf:null;}function _0x12cfd9(_0x32ddbd){return new window[(_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b8291,_0x435bf4)=>{_0x32ddbd[_0x830685([0x74,0x68,0x65,0x6e])](_0x1b8291,_0x435bf4),window[_0x830685([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x435bf4,0x3a744abe^_0x1f200b);});}}_0x37c591[_0x830685([0x6f,0x6e])](_0x830685([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x231a3a,_0x12c4f4)=>{if(_0x12c4f4[0x0]!=_0x1026d0)return _0x3617da(_0x830685([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12c4f4[0x1]={..._0x12c4f4[0x1],[_0x830685([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x229adf};},{[_0x830685([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x830685([0x68,0x69,0x67,0x68])}),_0x37c591[_0x830685([0x6f,0x6e])](_0x830685([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5baa22=>{_0x12711d(_0x5baa22[_0x830685([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf6284=!0x0,_0x12cc41(_0x5baa22[_0x830685([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x830685([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x830685([0x6c,0x6f,0x77])}),_0xb966ee[_0x830685([0x74,0x68,0x65,0x6e])](()=>{_0xf6284||_0x3617da(_0x830685([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x298bcf(){return _0x37c591[_0x830685([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x830685([0x76,0x69,0x65,0x77])][_0x830685([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x830685([0x61,0x75,0x74,0x6f]);}function _0x8a412e(){_0x37c591[_0x830685([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x830685([0x76,0x69,0x65,0x77])][_0x830685([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x830685([0x61,0x75,0x74,0x6f]);}}function _0x593d8d(_0x43b43a){const _0x1eb55a=[new window[(_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261737=>setTimeout(_0x261737,0x3a7ca0b2^_0x1f200b)),_0xb966ee[_0x830685([0x74,0x68,0x65,0x6e])](()=>new window[(_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfcdd75=>{let _0x581ac5=0x0;_0x37c591[_0x830685([0x6d,0x6f,0x64,0x65,0x6c])][_0x830685([0x6f,0x6e])](_0x830685([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d947b,_0x23ae9e)=>{_0x23ae9e[0x0][_0x830685([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x581ac5++,_0x581ac5==(0x3a759f86^_0x1f200b)&&(_0xfcdd75(),_0x1d947b[_0x830685([0x6f,0x66,0x66])]());});}))];return window[_0x830685([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x830685([0x72,0x61,0x63,0x65])](_0x1eb55a)[_0x830685([0x74,0x68,0x65,0x6e])](()=>_0x43b43a);}async function _0xe6edab(){await _0xb966ee,_0x37c591[_0x830685([0x6d,0x6f,0x64,0x65,0x6c])][_0x830685([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3351b8,_0x37c591[_0x830685([0x6d,0x6f,0x64,0x65,0x6c])][_0x830685([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3351b8,_0x37c591[_0x830685([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x830685([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f892b(){return _0x1e5f18(_0x830685([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4ccd51(_0x830685([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x830685([0x73,0x74,0x61,0x74,0x65])]==_0x830685([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5bbd4c(){return _0x1e5f18(_0x830685([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 _0xa1fd6(){return _0x1e5f18(_0x830685([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x56d4f6(_0x4d6c14){const _0x342a8a=_0x4b0ab2();_0x37c591[_0x342a8a]=_0x830685([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d6c14,_0x4d6c14!=_0x830685([0x56,0x61,0x6c,0x69,0x64])&&_0xe6edab();}function _0x4b0ab2(){const _0x42dcab=window[_0x830685([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x830685([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x830685([0x6e,0x6f,0x77])]())[_0x830685([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x830685([0x2e]),'');let _0x518d65=_0x830685([0x62]);for(let _0x16a29d=0x0;_0x16a29d<_0x42dcab[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16a29d+=0x2){let _0x377f1a=window[_0x830685([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42dcab[_0x830685([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16a29d,_0x16a29d+0x2));_0x377f1a>=_0x33d3a3[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x377f1a-=_0x33d3a3[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x518d65+=_0x33d3a3[_0x377f1a];}return _0x518d65;}function _0x3601bc(){const _0x4f2aa1=_0x30b7e3[_0x830685([0x73,0x70,0x6c,0x69,0x74])](_0x830685([0x2e]));if(0x3!=_0x4f2aa1[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ef5ac(_0x4f2aa1[0x1]);function _0x4ef5ac(_0x4ff8c6){const _0x354a97=_0x46a095(_0x4ff8c6);return _0x354a97&&_0x26b0f9()?_0x354a97:null;function _0x26b0f9(){const _0x288e2c=_0x354a97[_0x830685([0x6a,0x74,0x69])],_0x1e70d1=window[_0x830685([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x288e2c[_0x830685([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x288e2c[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x305a93={..._0x354a97,[_0x830685([0x6a,0x74,0x69])]:_0x288e2c[_0x830685([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x288e2c[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x305a93[_0x830685([0x76,0x63])],_0x46dfd6(_0x305a93)==_0x1e70d1;}}}async function _0x3e0823(){let _0x2d2176=!0x0;try{const _0x419242=_0x30b7e3[_0x830685([0x73,0x70,0x6c,0x69,0x74])](_0x830685([0x2e])),[_0x4c1b46,_0x5a82e4,_0x16f624]=_0x419242;return _0x5d89eb(_0x4c1b46),await _0x1d2674(_0x4c1b46,_0x5a82e4,_0x16f624),_0x2d2176;}catch(_0x1511f1){return!0x1;}function _0x5d89eb(_0x48c348){const _0x3d1412=_0x46a095(_0x48c348);_0x3d1412&&_0x3d1412[_0x830685([0x61,0x6c,0x67])]==_0x830685([0x45,0x53,0x32,0x35,0x36])||(_0x2d2176=!0x1);}async function _0x1d2674(_0x26c2cc,_0x58c145,_0x58a2dd){const _0x2082d7=window[_0x830685([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x830685([0x66,0x72,0x6f,0x6d])](_0x320eec(_0x58a2dd),_0x5df7a8=>_0x5df7a8[_0x830685([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14a677=new window[(_0x830685([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x830685([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26c2cc+_0x830685([0x2e])+_0x58c145),_0x2517ee=window[_0x830685([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x830685([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2517ee)return;const _0x21adce=await _0x2517ee[_0x830685([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x830685([0x6a,0x77,0x6b]),_0x14504f,{[_0x830685([0x6e,0x61,0x6d,0x65])]:_0x830685([0x45,0x43,0x44,0x53,0x41]),[_0x830685([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x830685([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x830685([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2517ee[_0x830685([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x830685([0x6e,0x61,0x6d,0x65])]:_0x830685([0x45,0x43,0x44,0x53,0x41]),[_0x830685([0x68,0x61,0x73,0x68])]:{[_0x830685([0x6e,0x61,0x6d,0x65])]:_0x830685([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21adce,_0x2082d7,_0x14a677)||(_0x2d2176=!0x1);}}function _0x46a095(_0x272e6e){return _0x272e6e[_0x830685([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x830685([0x65,0x79]))?JSON[_0x830685([0x70,0x61,0x72,0x73,0x65])](_0x320eec(_0x272e6e)):null;}function _0x320eec(_0xad8c4b){return window[_0x830685([0x61,0x74,0x6f,0x62])](_0xad8c4b[_0x830685([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x830685([0x2b]))[_0x830685([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x830685([0x2f])));}function _0x46dfd6(_0x39dca3){let _0xe305a6=0x1505;function _0x318e7f(_0x443566){for(let _0x2db0c0=0x0;_0x2db0c0<_0x443566[_0x830685([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2db0c0++){const _0x31b599=_0x443566[_0x830685([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2db0c0);_0xe305a6=(_0xe305a6<<0x5)+_0xe305a6+_0x31b599,_0xe305a6&=_0xe305a6;}}function _0x5d86b0(_0x82c434){Array[_0x830685([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x82c434)?_0x82c434[_0x830685([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d86b0):_0x82c434&&typeof _0x82c434==_0x830685([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x830685([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x82c434)[_0x830685([0x73,0x6f,0x72,0x74])]()[_0x830685([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32c874,_0x5071ca])=>{_0x318e7f(_0x32c874),_0x5d86b0(_0x5071ca);}):_0x318e7f(window[_0x830685([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x82c434));}return _0x5d86b0(_0x39dca3),_0xe305a6>>>0x0;}function _0x3bd8cb(_0x4826c5){return _0x4826c5[_0x830685([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x830685([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x830685([0x30]));}function _0x1baeb7(_0x499172){return _0x499172[_0x830685([0x73,0x70,0x6c,0x69,0x74])]('')[_0x830685([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x830685([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e5f18(_0x2a7a36){return _0x37c591[_0x830685([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x830685([0x68,0x61,0x73])](_0x2a7a36);}function _0x4ccd51(_0xffdae6){return _0x37c591[_0x830685([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x830685([0x67,0x65,0x74])](_0xffdae6);}function _0x3351b8(){}function _0x830685(_0x1ec365){return _0x1ec365['map'](_0x31f807=>String['fromCharCode'](_0x31f807))['join']('');}_0x56d4f6(await _0x142b1e());}(this);}set['adapter'](_0x29da07){if(this['_adapter'])throw new _0x436bcf('track-changes-adapter-already-set',this);this['_adapter']=_0x29da07;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x454d7b=!0x1,toJSON:_0x2c80c8=!0x1}={}){const _0x404f2f=[];for(const _0x4d479f of this['_suggestions']['values']())_0x454d7b&&!_0x4d479f['isInContent']||_0x404f2f['push'](_0x4d479f);return _0x2c80c8?_0x404f2f['map'](_0x10daa3=>_0x10daa3['toJSON']()):_0x404f2f;}['getSuggestion'](_0x444db8){const _0x50b501=this['_suggestions']['get'](_0x444db8);if(!_0x50b501)throw new _0x436bcf('track-changes-suggestion-not-found',this);return _0x50b501;}['hasSuggestion'](_0x2cca3e){return this['_suggestions']['has'](_0x2cca3e);}['addSuggestionData'](_0x2e6272){const {authorId:_0x56d70f,id:_0x9799ad,attributes:_0x52d905}=_0x2e6272,[_0x29b1df,_0x418103]=_0x2e6272['type']['split'](':'),_0x427218=this['_suggestions']['get'](_0x9799ad)||this['_createSuggestion'](_0x29b1df,_0x418103,_0x9799ad,_0x56d70f,_0x52d905);if(this['_addThreadToSuggestion'](_0x427218),this['_checkSuggestionCorrectness'](_0x427218,_0x29b1df,_0x418103||null,_0x56d70f),_0x427218['createdAt']=_0x2e6272['createdAt'],_0x427218['_isDataLoaded']=!0x0,_0x52d905&&_0x52d905['@external']){const _0x2e26fe=_0x52d905['@external'],_0x5d4a66=this['_getExternalAuthor'](_0x2e26fe['authorName']);_0x427218['authoredAt']=_0x2e26fe['createdAt'],_0x427218['author']=_0x5d4a66,_0x427218['isExternal']=!0x0;}else _0x427218['authoredAt']=_0x2e6272['createdAt'];switch(_0x2e6272['data']&&(_0x427218['data']=_0x2e6272['data']),_0x2e6272['attributes']&&(_0x427218['attributes']=_0x2e6272['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x427218['_saved']=!0x0),this['_suggestionState']['get'](_0x427218)){case'notReady':this['_suggestionState']['set'](_0x427218,'dataReady');break;case'markerReady':_0x427218['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x427218])),this['_refreshSuggestionsChain'](new Set([_0x427218])),this['_suggestionState']['set'](_0x427218,'ready'),this['fire']('suggestionLoaded',_0x427218)):this['_suggestionState']['set'](_0x427218,'removed');}return _0x427218;}['acceptSuggestion'](_0x379edf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2758d7 of _0x379edf['getAllAdjacentSuggestions']())_0x2758d7['accept']();});});}['discardSuggestion'](_0x448492){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a2cf9 of _0x448492['getAllAdjacentSuggestions']())_0x3a2cf9['discard']();});});}['enableCommand'](_0x312763,_0xe56277){const _0x12fd98=this['editor']['commands']['get'](_0x312763);if(!_0x12fd98)throw new _0x436bcf('track-changes-command-not-found',this,{'commandName':_0x312763});if(this['_enabledCommands']['has'](_0x12fd98))throw new _0x436bcf('track-changes-enable-command-twice',this,{'commandName':_0x312763});this['_enabledCommands']['add'](_0x12fd98),_0xe56277&&_0x12fd98['on']('execute',(_0x35390a,_0x5e5e97)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e5e97['length']>0x0&&_0x5e5e97[_0x5e5e97['length']-0x1]&&_0x5e5e97[_0x5e5e97['length']-0x1]['forceDefaultExecution']?_0x5e5e97['pop']():(_0x35390a['return']=_0xe56277((..._0xc263d8)=>_0x12fd98['execute'](..._0xc263d8,{'forceDefaultExecution':!0x0}),..._0x5e5e97),_0x35390a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1504b6){let _0x4b79a7,_0x3f5942;const _0x1d9223=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4b79a7=_0x1504b6();}catch(_0x1766b5){_0x3f5942=_0x1766b5;}return _0x1d9223||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f5942&&_0x436bcf['rethrowUnexpectedError'](_0x3f5942,this),_0x4b79a7;}['markInsertion'](_0x380967,_0xf24f5d=null,_0x18cde9={}){if(_0x380967['isCollapsed'])return null;const _0xd32bd2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x192709,meta:_0x9add95}of this['_findSuggestions'](_0x380967,'insertion'))if(_0x9add95['isOwn']){if(!_0x9add95['isNextTo']){if(_0x9add95['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x192709,_0x18cde9))continue;return _0x192709;}if(Kt(_0x192709,_0x18cde9))return _0x192709;this['_breakSuggestionMarker'](_0x192709,_0x380967['start'],_0x380967['end']);break;}if(_0xf24f5d==_0x192709['subType']&&Kt(_0x192709,_0x18cde9)){const _0x27fd40=_0x192709['getFirstRange']();return _0x27fd40['start']['isEqual'](_0x380967['end'])?this['_setSuggestionRange'](_0x192709,this['_model']['createRange'](_0x380967['start'],_0x27fd40['end'])):this['_setSuggestionRange'](_0x192709,this['_model']['createRange'](_0x27fd40['start'],_0x380967['end'])),_0x192709;}}const _0x319b78=_0x32598d(),_0x33f9d2=_0xd32bd2['id'],_0x146a50=_0xf24f5d?'insertion:'+_0xf24f5d:'insertion',_0x1c23a5=this['_setSuggestionData']({'id':_0x319b78,'type':_0x146a50,'createdAt':new Date(),'authorId':_0x33f9d2,'attributes':_0x18cde9});return this['_addSuggestionMarker'](_0x146a50,_0x319b78,_0x33f9d2,_0x380967),_0x1c23a5;}['markMultiRangeInsertion'](_0x4c098a,_0x3e9028='multi',_0x3788c1={}){const _0x40e9c3=this['editor']['plugins']['get']('Users')['me'],_0x52f030=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e9028,'join');for(const _0x459ad3 of this['getSuggestions']())if(_0x459ad3['author']['id']==_0x40e9c3['id']&&'insertion'==_0x459ad3['type']&&_0x459ad3['subType']==_0x3e9028&&Kt(_0x459ad3,_0x3788c1)&&(_0x52f030(_0x459ad3['getRanges'](),_0x4c098a)||_0x52f030(_0x4c098a,_0x459ad3['getRanges']()))){for(const _0x102a05 of _0x4c098a)_0x459ad3['addRange'](_0x102a05);return _0x459ad3;}for(const {suggestion:_0x5068,meta:_0x3f9065}of this['_findSuggestions'](_0x4c098a,'insertion')){if(!_0x3f9065['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f9065['containsRangeInObject'])continue;if(!Kt(_0x5068,_0x3788c1))continue;let _0x55e2db=!0x0;for(const _0x1d2996 of _0x5068['getRanges']())for(const _0x2ae8ab of _0x4c098a)if(!_0x1d2996['containsRange'](_0x2ae8ab)){_0x55e2db=!0x1;break;}if(_0x55e2db)return _0x5068;}const _0x2b25d5=_0x32598d(),_0x4c12fd=_0x40e9c3['id'],_0x26dfd1='insertion:'+_0x3e9028,_0x59a66e=this['_setSuggestionData']({'id':_0x2b25d5,'type':_0x26dfd1,'createdAt':new Date(),'authorId':_0x4c12fd,'attributes':_0x3788c1});for(const _0x519840 of _0x4c098a)this['_addSuggestionMarker'](_0x26dfd1,_0x2b25d5,_0x4c12fd,_0x519840,u['getMultiRangeId']());return _0x59a66e;}['markInlineFormat'](_0x434916,_0x17e8a7,_0x58e753=null,_0x2ba750={}){if(_0x58e753=_0x58e753||Ft(_0x17e8a7),_0x434916['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4b6ddd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x58e753,'accept');return this['forceDefaultExecution'](()=>_0x4b6ddd([_0x434916],_0x17e8a7,_0x2ba750)),null;}const _0xd6f168=this['editor']['plugins']['get']('Users')['me'],_0x6103c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x338c35,meta:_0x2a77b7}of this['_findSuggestions'](_0x434916,'insertion'))_0x2a77b7['isOwn']&&!_0x2a77b7['isInsideObject']&&_0x6103c['push'](..._0x338c35['getRanges']());}const _0x16b96b=function(_0x18b57a,_0x578575){const _0x1afd88=[];for(const _0x5d2ce3 of _0x578575){const _0x5a20af=_0x18b57a['getIntersection'](_0x5d2ce3);_0x5a20af&&_0x1afd88['push'](_0x5a20af);}return _0x1afd88;}(_0x434916,_0x6103c),_0x2bd525=function(_0x12aa5f,_0x2f4d5d){const _0x47ad76=[_0x12aa5f];for(const _0x43d6cd of _0x2f4d5d){let _0x29f5ef=0x0;for(;_0x29f5ef<_0x47ad76['length'];){const _0x301bf1=_0x47ad76[_0x29f5ef]['getDifference'](_0x43d6cd);_0x47ad76['splice'](_0x29f5ef,0x1,..._0x301bf1),_0x29f5ef+=_0x301bf1['length'];}}return _0x47ad76;}(_0x434916,_0x6103c);_0x16b96b['length']&&this['_model']['change'](()=>{for(const _0xb5ad40 of _0x16b96b){const _0x1f1a9e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x58e753,'accept');this['forceDefaultExecution'](()=>_0x1f1a9e([_0xb5ad40],_0x17e8a7,_0x2ba750));}});for(const _0x2764b5 of _0x2bd525){let _0x2590e2=null,_0x53917a=_0x2764b5['start'],_0x1212dd=_0x2764b5['end'];for(const {suggestion:_0x10900e,meta:_0xbcb402}of this['_findSuggestions'](_0x2764b5,'formatInline')){if(!_0xbcb402['isOwn'])continue;if(_0x10900e['subType']!=_0x58e753)continue;if(!Kt(_0x10900e,_0x2ba750))continue;const _0xe46fc0=_0x10900e['getFirstRange']();if(_0xe46fc0['containsRange'](_0x2764b5,!0x0))return null;_0x53917a=_0x53917a['isBefore'](_0xe46fc0['start'])?_0x53917a:_0xe46fc0['start'],_0x1212dd=_0x1212dd['isAfter'](_0xe46fc0['end'])?_0x1212dd:_0xe46fc0['end'],_0x2590e2?_0xe46fc0['start']['isBefore'](_0x2590e2['getFirstRange']()['start'])?(_0x2590e2['removeMarkers'](),_0x2590e2=_0x10900e):_0x10900e['removeMarkers']():_0x2590e2=_0x10900e;}const _0x5bf550=this['_model']['createRange'](_0x53917a,_0x1212dd);if(_0x2590e2)this['_setSuggestionRange'](_0x2590e2,_0x5bf550);else{const _0x19056f=_0x32598d(),_0x1eaf36=_0xd6f168['id'];this['_setSuggestionData']({'id':_0x19056f,'type':'formatInline:'+_0x58e753,'data':_0x17e8a7,'createdAt':new Date(),'authorId':_0x1eaf36,'attributes':_0x2ba750}),this['_addSuggestionMarker']('formatInline:'+_0x58e753,_0x19056f,_0x1eaf36,_0x5bf550);}}return null;}['markBlockFormat'](_0x3fef9e,_0x31381b,_0x2279f5=[],_0x2ea7ab=null,_0x2e2435={}){_0x31381b['formatGroupId']||(_0x31381b['formatGroupId']=_0x31381b['commandName']),_0x31381b['multipleBlocks']=_0x3fef9e['is']('range'),_0x2ea7ab=_0x2ea7ab||Ft(_0x31381b);const _0x43e0d1=_0x2279f5['map'](_0x245724=>Ht(_0x245724,this['_model'])),_0x18c0a9=_0x3fef9e['is']('range')?_0x3fef9e:Ht(_0x3fef9e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x45a22f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ea7ab,'accept');return this['forceDefaultExecution'](()=>_0x45a22f([_0x18c0a9],_0x31381b,_0x2e2435)),null;}_0x43e0d1['push'](_0x18c0a9);let _0xaf3260=!0x0;for(const _0x3b3a80 of _0x43e0d1)if(!this['_rangeIsInLocalUserInsertion'](_0x3b3a80)){_0xaf3260=!0x1;break;}if(_0xaf3260&&'always'!==this['_trackFormatChanges']){const _0x400e7e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ea7ab,'accept');return this['forceDefaultExecution'](()=>_0x400e7e([_0x18c0a9],_0x31381b,_0x2e2435)),null;}let _0x2cabfe=null,_0x55ce99=_0x18c0a9['start'],_0x5003ab=_0x18c0a9['end'];for(const {suggestion:_0x2abd9c,meta:_0x58fc07}of this['_findSuggestions'](_0x18c0a9,'formatBlock')){if(!_0x58fc07['isOwn'])continue;if(_0x58fc07['isNextTo']||_0x58fc07['containsRangeInObject']||_0x58fc07['isInsideObject'])continue;if(_0x2abd9c['data']['formatGroupId']!=_0x31381b['formatGroupId'])continue;if(!Kt(_0x2abd9c,_0x2e2435))continue;const _0x2ed36a=_0x2abd9c['getFirstRange']();if(_0x2abd9c['subType']==_0x2ea7ab){if(_0x2ed36a['containsRange'](_0x18c0a9,!0x0))return null;_0x55ce99=_0x55ce99['isBefore'](_0x2ed36a['start'])?_0x55ce99:_0x2ed36a['start'],_0x5003ab=_0x5003ab['isAfter'](_0x2ed36a['end'])?_0x5003ab:_0x2ed36a['end'],_0x2cabfe?_0x2ed36a['start']['isBefore'](_0x2cabfe['getFirstRange']()['start'])?(_0x2cabfe['removeMarkers'](),_0x2cabfe=_0x2abd9c):_0x2abd9c['removeMarkers']():_0x2cabfe=_0x2abd9c;}else{const _0x533d15=_0x18c0a9['getIntersection'](_0x2ed36a);this['_cutOutSuggestionMarker'](_0x2abd9c,_0x533d15);}}const _0x578a27=this['editor']['plugins']['get']('Users')['me'],_0x1c80a8=_0x32598d(),_0x5dc558=_0x578a27['id'];if(_0x2cabfe)return this['_setSuggestionRange'](_0x2cabfe,this['_model']['createRange'](_0x55ce99,_0x5003ab)),_0x2cabfe;{const _0x271528=this['_setSuggestionData']({'id':_0x1c80a8,'type':'formatBlock:'+_0x2ea7ab,'data':_0x31381b,'createdAt':new Date(),'authorId':_0x5dc558,'attributes':_0x2e2435});return this['_addSuggestionMarker']('formatBlock:'+_0x2ea7ab,_0x1c80a8,_0x5dc558,this['_model']['createRange'](_0x55ce99,_0x5003ab)),_0x271528;}}['markMultiRangeBlockFormat'](_0x48e649,_0x26270c,_0x4a2cc0=[],_0x15154d=null,_0x10fc7d={}){_0x26270c['formatGroupId']||(_0x26270c['formatGroupId']=_0x26270c['commandName']);const _0x11aa20=_0x48e649[0x0];_0x26270c['multipleBlocks']=_0x11aa20['is']('range'),_0x15154d=_0x15154d||Ft(_0x26270c);const _0xb1b4dc=_0x4a2cc0['map'](_0x26a1a8=>Ht(_0x26a1a8,this['_model'])),_0x5e7c49=_0x11aa20['is']('range')?_0x48e649:_0x48e649['map'](_0x12a7d4=>Ht(_0x12a7d4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x336b3f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15154d,'accept');return this['forceDefaultExecution'](()=>_0x336b3f(_0x5e7c49,_0x26270c,_0x10fc7d)),null;}_0xb1b4dc['push'](..._0x5e7c49);let _0x31441e=!0x0;for(const _0x34cfa7 of _0xb1b4dc)if(!this['_rangeIsInLocalUserInsertion'](_0x34cfa7)){_0x31441e=!0x1;break;}if(_0x31441e&&'always'!==this['_trackFormatChanges']){const _0x4e3e16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15154d,'accept');return this['forceDefaultExecution'](()=>_0x4e3e16(_0x5e7c49,_0x26270c,_0x10fc7d)),null;}const _0x1bc299=this['editor']['plugins']['get']('Users')['me'];for(const _0x2198c2 of this['getSuggestions']()){if(_0x2198c2['author']['id']!=_0x1bc299['id'])continue;if('formatBlock'!=_0x2198c2['type']||_0x2198c2['data']['formatGroupId']!=_0x26270c['formatGroupId'])continue;if(!Kt(_0x2198c2,_0x10fc7d))continue;const _0x2a8fc0=_0x2198c2['subType']==_0x15154d;for(let _0x29d332=0x0;_0x29d332<_0x5e7c49['length'];_0x29d332++){const _0x21cc32=_0x5e7c49[_0x29d332];for(const _0x8743bd of _0x2198c2['getMarkers']()){const _0x259190=_0x8743bd['getRange']();if(_0x21cc32['isEqual'](_0x259190)){_0x2a8fc0?(_0x5e7c49['splice'](_0x29d332,0x1),_0x29d332--):_0x2198c2['removeMarker'](_0x8743bd['name']);break;}}}}if(0x0==_0x5e7c49['length'])return null;const _0x4cd00c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15154d,'join');for(const _0x25e0c5 of this['getSuggestions']())if(_0x25e0c5['author']['id']==_0x1bc299['id']&&'formatBlock'==_0x25e0c5['type']&&_0x25e0c5['data']['formatGroupId']==_0x26270c['formatGroupId']&&_0x25e0c5['subType']==_0x15154d&&Kt(_0x25e0c5,_0x10fc7d)&&(_0x4cd00c(_0x25e0c5['getRanges'](),_0x5e7c49)||_0x4cd00c(_0x5e7c49,_0x25e0c5['getRanges']()))){for(const _0x343f1e of _0x5e7c49)_0x25e0c5['addRange'](_0x343f1e);return _0x25e0c5;}const _0x400086=_0x32598d(),_0x1b25cb=_0x1bc299['id'],_0x2614b9='formatBlock:'+_0x15154d,_0x482263=this['_setSuggestionData']({'id':_0x400086,'type':_0x2614b9,'data':_0x26270c,'createdAt':new Date(),'authorId':_0x1b25cb,'attributes':_0x10fc7d});for(const _0x130fda of _0x5e7c49)this['_addSuggestionMarker'](_0x2614b9,_0x400086,_0x1b25cb,_0x130fda,u['getMultiRangeId']());return _0x482263;}['markDeletion'](_0x41706c,_0x2a3ae1=null,_0x42afda={}){if(_0x41706c['isCollapsed'])return null;const _0x493270=this['editor']['plugins']['get']('Users')['me'],_0x48ecf4=new _0xe90d55(_0x41706c['start'],_0x41706c['end']);for(const {suggestion:_0x166c4d,meta:_0x45fffa}of this['_findSuggestions'](_0x48ecf4,'insertion'))if(_0x45fffa['isOwn']&&!_0x45fffa['isNextTo']){if(_0x166c4d['isMultiRange']){const _0x162909=_0x166c4d['getRanges']()['filter'](_0x22cd8e=>'$graveyard'!=_0x22cd8e['root']['rootName']);_0x162909['every'](_0x38476b=>_0x48ecf4['containsRange'](_0x38476b,!0x0))&&_0x166c4d['discard']();if(_0x162909['some'](_0x267dfe=>_0x267dfe['containsRange'](_0x48ecf4,!0x0))){const _0x48b544=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2a3ae1,'accept');return this['forceDefaultExecution'](()=>_0x48b544([_0x48ecf4],null,_0x42afda)),null;}}else{const _0x1aee44=_0x48ecf4['getIntersection'](_0x166c4d['getFirstRange']());null!==_0x1aee44&&_0x166c4d['_onDiscard']([_0x1aee44],null,_0x42afda);}}if(_0x48ecf4['detach'](),_0x48ecf4['isCollapsed']||'$graveyard'==_0x48ecf4['root']['rootName'])return null;let _0x534917=null,_0x2c7075=_0x48ecf4['start'],_0x53f2d7=_0x48ecf4['end'];const _0x1f2898=this['_findSuggestions'](_0x48ecf4,'deletion');for(const {suggestion:_0x25a9ee,meta:_0x1932e5}of _0x1f2898){const _0x38c506=this['_model']['createRange'](_0x2c7075,_0x53f2d7);if(_0x1932e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1932e5['containsRangeInObject']&&!_0x1932e5['isInsideObject'])){if(_0x25a9ee['isMultiRange']){if(!Kt(_0x25a9ee,_0x42afda))continue;let _0xc8849c=!0x0;for(const _0x2ff1f6 of _0x25a9ee['getRanges']()){if(_0x2ff1f6['containsRange'](_0x38c506,!0x0))return _0x25a9ee;_0x38c506['containsRange'](_0x2ff1f6)||(_0xc8849c=!0x1);}_0xc8849c&&_0x25a9ee['discard']();}else{const _0x320598=_0x25a9ee['getFirstRange']();if(_0x320598['containsRange'](_0x38c506,!0x0))return _0x25a9ee;if(!Kt(_0x25a9ee,_0x42afda)){_0x38c506['containsRange'](_0x320598)?_0x25a9ee['removeMarkers']():_0x320598['containsPosition'](_0x2c7075)?_0x2c7075=_0x320598['end']:_0x320598['containsPosition'](_0x53f2d7)&&(_0x53f2d7=_0x320598['start']);continue;}_0x2c7075=_0x2c7075['isBefore'](_0x320598['start'])?_0x2c7075:_0x320598['start'],_0x53f2d7=_0x53f2d7['isAfter'](_0x320598['end'])?_0x53f2d7:_0x320598['end'],_0x42afda=Object['assign']({},_0x25a9ee['attributes']),_0x534917?_0x320598['start']['isBefore'](_0x534917['getFirstRange']()['start'])?(_0x534917['removeMarkers'](),_0x534917=_0x25a9ee):_0x25a9ee['removeMarkers']():_0x534917=_0x25a9ee;}}}if(_0x534917)return this['_setSuggestionRange'](_0x534917,this['_model']['createRange'](_0x2c7075,_0x53f2d7)),_0x534917;{const _0x4a4fd6=_0x32598d(),_0x212154=this['_model']['createRange'](_0x2c7075,_0x53f2d7),_0xc7c595=_0x493270['id'],_0x323408=_0x2a3ae1?'deletion:'+_0x2a3ae1:'deletion',_0x4fe033=this['_setSuggestionData']({'id':_0x4a4fd6,'type':_0x323408,'createdAt':new Date(),'authorId':_0xc7c595,'attributes':_0x42afda});return this['_addSuggestionMarker'](_0x323408,_0x4a4fd6,_0xc7c595,_0x212154),_0x4fe033;}}['markMultiRangeDeletion'](_0x36b1ac,_0x21e1c6='multi',_0xc2486c={}){const _0x3d3b6f=this['editor']['plugins']['get']('Users')['me'],_0x232714=_0x36b1ac['map'](_0x14aff5=>new _0xe90d55(_0x14aff5['start'],_0x14aff5['end'])),_0x47f2e3=new Set();for(const {suggestion:_0x5b85a6,meta:_0x52b116}of this['_findSuggestions'](_0x232714,'insertion'))_0x52b116['isOwn']&&!_0x52b116['isNextTo']&&_0x47f2e3['add'](_0x5b85a6);for(const _0x4fe493 of _0x47f2e3)if(_0x4fe493['isMultiRange']){const _0x35f03e=_0x4fe493['getRanges']();(!_0x4fe493['attributes']||!_0x4fe493['attributes']['skipNestingCheck'])&&(_0x35f03e['every'](_0x2d79b0=>_0x232714['some'](_0x4ebaa9=>_0x4ebaa9['containsRange'](_0x2d79b0,!0x0)))&&_0x4fe493['discard']());if(_0x232714['every'](_0x31c259=>_0x35f03e['some'](_0x16c7dc=>_0x16c7dc['containsRange'](_0x31c259,!0x0)))){const _0x29d4bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21e1c6,'accept');return this['forceDefaultExecution'](()=>_0x29d4bf(_0x36b1ac,null,_0xc2486c)),null;}}else{const _0x16aac6=_0x4fe493['getFirstRange']();_0x232714['some'](_0x1aa231=>_0x1aa231['containsRange'](_0x16aac6,!0x0))&&_0x4fe493['discard']();if(_0x232714['every'](_0x2baf74=>_0x16aac6['containsRange'](_0x2baf74,!0x0))){const _0x131717=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21e1c6,'accept');return this['forceDefaultExecution'](()=>_0x131717(_0x232714,null,_0xc2486c)),null;}}const _0x5bf188=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21e1c6,'join');let _0x35bf53=null;for(const _0x2f7bcf of this['getSuggestions']())if(_0x2f7bcf['author']['id']==_0x3d3b6f['id']&&_0x2f7bcf['isInContent']&&'deletion'==_0x2f7bcf['type']&&_0x2f7bcf['subType']==_0x21e1c6&&Kt(_0x2f7bcf,_0xc2486c)&&(_0x5bf188(_0x2f7bcf['getRanges'](),_0x232714)||_0x5bf188(_0x232714,_0x2f7bcf['getRanges']()))){if(_0x35bf53){if(_0x2f7bcf['commentThread']&&_0x2f7bcf['commentThread']['length'])continue;for(const _0x3e20eb of _0x2f7bcf['getRanges']())_0x35bf53['isIntersectingWithRange'](_0x3e20eb)||_0x35bf53['addRange'](_0x3e20eb);_0x2f7bcf['removeMarkers']();}else{_0x35bf53=_0x2f7bcf;for(const _0x3fb858 of _0x232714)_0x2f7bcf['isIntersectingWithRange'](_0x3fb858)||_0x2f7bcf['addRange'](_0x3fb858);}}if(_0x35bf53)return _0x35bf53;_0x47f2e3['clear']();for(const {suggestion:_0x2b266b,meta:_0x2dc5f8}of this['_findSuggestions'](_0x232714,'deletion'))_0x2dc5f8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2dc5f8['containsRangeInObject']&&!_0x2dc5f8['isInsideObject'])&&Kt(_0x2b266b,_0xc2486c)&&_0x47f2e3['add'](_0x2b266b);for(const _0x28dab3 of _0x47f2e3){const _0x53dbf9=_0x28dab3['getRanges']();if(!_0xc2486c||!_0xc2486c['skipNestingCheck']){if(_0x232714['every'](_0x23bbe0=>_0x53dbf9['some'](_0x1a1989=>_0x1a1989['containsRange'](_0x23bbe0,!0x0))))return _0x28dab3;}(!_0x28dab3['attributes']||!_0x28dab3['attributes']['skipNestingCheck'])&&(_0x53dbf9['every'](_0x3a1cb1=>_0x232714['some'](_0xe02026=>_0xe02026['containsRange'](_0x3a1cb1,!0x0)))&&_0x28dab3['discard']());}const _0x3a7c1e=_0x32598d(),_0x50fc2d=_0x3d3b6f['id'],_0x1f12cd='deletion:'+_0x21e1c6,_0xfb51a=this['_setSuggestionData']({'id':_0x3a7c1e,'type':_0x1f12cd,'createdAt':new Date(),'authorId':_0x50fc2d,'attributes':_0xc2486c});for(const _0x5b7460 of _0x232714)_0x5b7460['detach'](),_0x5b7460['isCollapsed']||'$graveyard'==_0x5b7460['root']['rootName']||this['_addSuggestionMarker'](_0x1f12cd,_0x3a7c1e,_0x50fc2d,_0x5b7460,u['getMultiRangeId']());return _0xfb51a;}['markAttributeChange'](_0x465327,_0x2bb0c9,_0x24e1dd,_0x3421f1,_0x59a8aa){if(_0x465327['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x20263e=this['editor']['plugins']['get']('Users')['me']['id'],_0xfc43c3=Array['from'](this['_suggestions']['values']())['filter'](_0x2fc942=>'attribute'==_0x2fc942['type']&&_0x2fc942['data']['key']==_0x2bb0c9&&_0x2fc942['isIntersectingWithRange'](_0x465327));if('default'===this['_trackFormatChanges']){const _0x5ac9b4=this['_findSuggestions'](_0x465327,'insertion')['filter'](({meta:_0x44e864})=>_0x44e864['isOwn']&&!_0x44e864['isInsideObject']&&!_0x44e864['isNextTo'])['map'](({suggestion:_0x562ce2})=>_0x562ce2);_0xfc43c3['unshift'](..._0x5ac9b4);}const _0x3b3103=new Map([[_0x465327,_0x24e1dd]]);for(const _0xc134af of _0xfc43c3){const _0x71c528='attribute'==_0xc134af['type']?_0xc134af['data']['oldValue']:void 0x0,_0x2feeae=_0xc134af['getFirstRange'](),_0x539155=Array['from'](_0x3b3103['keys']())['find'](_0x36cc75=>_0x36cc75['isIntersecting'](_0x2feeae));if(!_0x539155)continue;const _0x474961=_0x539155['getDifference'](_0x2feeae);this['_isBlockAttribute'](_0x2bb0c9)&&'insertion'==_0xc134af['type']&&0x0!=_0x474961['length']||(_0x3b3103['delete'](_0x539155),_0x474961['forEach'](_0x209fba=>{_0x3b3103['set'](_0x209fba,_0x24e1dd);}),'insertion'!=_0xc134af['type']&&_0x71c528!=_0x3421f1&&_0x3b3103['set'](_0x539155['getIntersection'](_0x2feeae),_0x71c528));}const _0x38dd93=[];for(const [_0x1d3a39,_0x566d85]of _0x3b3103){const _0x476d22=_0x32598d(),_0x34a3af={'key':_0x2bb0c9,'oldValue':_0x566d85,'newValue':_0x3421f1};_0x2bb0c9['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':_0x2bb0c9});const _0x38cebc=('attribute:'+(_0x2bb0c9+'|'+Ft({'newValue':_0x3421f1})))['substring'](0x0,0x3c),_0x5eb593=this['_setSuggestionData']({'id':_0x476d22,'type':_0x38cebc,'data':_0x34a3af,'createdAt':new Date(),'authorId':_0x20263e,'attributes':_0x59a8aa});_0x38dd93['push'](_0x5eb593),this['_addSuggestionMarker'](_0x38cebc,_0x476d22,_0x20263e,_0x1d3a39);}return _0x38dd93;}['enableDefaultAttributesIntegration'](_0xc5e5a0){this['enableCommand'](_0xc5e5a0,(_0x3f5034,..._0x27ae10)=>{this['_recordAttributeChanges'](()=>{_0x3f5034(..._0x27ae10);});});}['registerBlockAttribute'](_0x468506){this['_blockAttributeKeys']['add'](_0x468506);}['registerInlineAttribute'](_0x44953e){this['_inlineAttributeKeys']['add'](_0x44953e);}['_getAttributeKey'](_0xcf93bb){return'attribute'==_0xcf93bb['type']?_0xcf93bb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x513e03,_0x697ed9){const _0x5074ce=_0x513e03['getFirstMarker']();this['_model']['change'](_0x4a3dcb=>{_0x4a3dcb['updateMarker'](_0x5074ce,{'range':_0x697ed9});});}['_addThreadToSuggestion'](_0x56c519){const _0x42909c=_0x56c519['id'],_0x328c36=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x42909c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x328c36,'threadId':_0x42909c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x447413=this['_commentsRepository']['getCommentThread'](_0x42909c);_0x447413['unbind']('isRemovable'),_0x447413['isRemovable']=!0x1,_0x56c519['commentThread']=_0x447413;}['_checkSuggestionCorrectness'](_0x5e06ee,_0xd3ad4c,_0xe47c0d,_0x114d32){if(_0x5e06ee['type']!=_0xd3ad4c||_0x5e06ee['subType']!=_0xe47c0d||_0x5e06ee['creator']['id']!=_0x114d32)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x436bcf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x337fff,_0x3c5fc2){const _0x6a5adc=_0x337fff['getFirstRange']();if(_0x3c5fc2['isEqual'](_0x6a5adc))_0x337fff['removeMarkers']();else{if(_0x6a5adc['containsRange'](_0x3c5fc2)){const _0xc90155=this['_model']['createPositionAt'](_0x3c5fc2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x337fff,this['_model']['createRange'](_0x6a5adc['start'],_0xc90155));const _0x279f48=_0x32598d(),_0x2ab3f8=_0x337fff['creator']['id'],_0x53ebb7=_0x337fff['type']+':'+_0x337fff['subType'];this['_setSuggestionData']({'id':_0x279f48,'type':_0x53ebb7,'createdAt':new Date(),'authorId':_0x2ab3f8,'data':_0x337fff['data'],'attributes':_0x337fff['attributes']});const _0xace4d3=this['_model']['createPositionAt'](_0x3c5fc2['end']['parent'],'after'),_0x28a66c=this['_model']['createRange'](_0xace4d3,_0x6a5adc['end']);this['_addSuggestionMarker'](_0x53ebb7,_0x279f48,_0x2ab3f8,_0x28a66c);}else{if(_0x6a5adc['containsPosition'](_0x3c5fc2['start'])){const _0x1fd5ad=this['_model']['createPositionAt'](_0x3c5fc2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x337fff,this['_model']['createRange'](_0x6a5adc['start'],_0x1fd5ad));}else{const _0x1ba2be=this['_model']['createPositionAt'](_0x3c5fc2['end']['parent'],'after');this['_setSuggestionRange'](_0x337fff,this['_model']['createRange'](_0x1ba2be,_0x6a5adc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x8eb688){for(const {suggestion:_0x3be131,meta:_0x1c27d3}of this['_findSuggestions'](_0x8eb688,'insertion')){if(!_0x1c27d3['isOwn'])continue;const _0x2328af=_0x3be131['getRanges']();for(const _0x5f4f06 of _0x2328af)if(!_0x8eb688['getDifference'](_0x5f4f06)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xb2c52b){const _0x42673b=this['editor']['plugins']['get']('Users')['getUser'](_0xb2c52b);if(!_0x42673b)throw new _0x436bcf('track-changes-user-not-found',this);return _0x42673b;}['_getExternalAuthor'](_0x4e38ea){const _0x3a43bd=this['editor']['plugins']['get']('Users'),_0x5d50bd=_0xfb3446('external:'+_0x4e38ea),_0x212978=_0x3a43bd['getUser'](_0x5d50bd);return _0x212978||_0x3a43bd['addUser']({'id':_0x5d50bd,'name':_0x4e38ea});}['_createSuggestion'](_0xda28ca,_0x2ad163,_0x1d19a4,_0x39425b,_0x905fb1){const _0x1cd48c=this['_getAuthorFromId'](_0x39425b),_0x174162=this['_suggestionFactory']['buildSuggestion'](_0xda28ca,_0x2ad163,_0x1d19a4,_0x1cd48c,_0x905fb1,_0xc3cfe2=>{this['_updateSuggestionData'](_0x1d19a4,{'attributes':_0xc3cfe2});const _0x3a83f1=this['getSuggestion'](_0x1d19a4);this['_joinWithAdjacentSuggestions'](new Set([_0x3a83f1])),this['_refreshSuggestionsChain'](new Set([_0x3a83f1]));});return this['listenTo'](_0x174162,'accept',()=>{this['_updateSuggestionData'](_0x1d19a4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x174162,'discard',()=>{this['_updateSuggestionData'](_0x1d19a4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d19a4,_0x174162),this['_suggestionState']['set'](_0x174162,'notReady'),_0x174162;}['_splitMarkerName'](_0x3f1198){const _0x22c723=_0x3f1198['split'](':');return{'group':_0x22c723[0x0],'type':_0x22c723[0x1],'subType':_0x22c723['length']>=0x5?_0x22c723[0x2]:null,'id':_0x22c723['length']<0x5?_0x22c723[0x2]:_0x22c723[0x3],'authorId':_0x22c723['length']<0x5?_0x22c723[0x3]:_0x22c723[0x4],'markerCount':0x6==_0x22c723['length']?_0x22c723[0x5]:null};}['_breakSuggestionMarker'](_0x341c58,_0x39d018,_0x35f618){const _0x390167=_0x341c58['getFirstRange'](),_0x462a41=_0x390167['start'],_0x442e8a=_0x390167['end'];this['_setSuggestionRange'](_0x341c58,this['_model']['createRange'](_0x462a41,_0x39d018));const _0x5798cc=_0x32598d(),_0xc946a3=_0x341c58['creator']['id'],_0x198a4c=_0x341c58['type']+(_0x341c58['subType']?':'+_0x341c58['subType']:'');this['_setSuggestionData']({'id':_0x5798cc,'type':_0x198a4c,'createdAt':new Date(),'authorId':_0xc946a3,'originalSuggestionId':_0x341c58['id'],'attributes':_0x341c58['attributes'],'data':_0x341c58['data']});const _0x40b932=this['_getAttributeKey'](_0x341c58);('formatBlock'==_0x341c58['type']||_0x40b932&&this['_isBlockAttribute'](_0x40b932))&&(_0x35f618=this['_model']['createPositionBefore'](_0x35f618['parent'])),this['_addSuggestionMarker'](_0x198a4c,_0x5798cc,_0xc946a3,this['_model']['createRange'](_0x35f618,_0x442e8a));}['_findSuggestions'](_0x430c57,_0x619873=null){const _0x2b3270=[],_0x2a6d45=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x430c57)||(_0x430c57=[_0x430c57]);for(const _0x1a6d1f of this['getSuggestions']()){if(!_0x1a6d1f['isInContent'])continue;if(_0x619873&&_0x1a6d1f['type']!=_0x619873)continue;let _0x348694=!0x1;for(const _0x5c8dba of _0x1a6d1f['getRanges']()){for(const _0x32a9d9 of _0x430c57){const _0x1b4029=_0x32a9d9['start']['isEqual'](_0x5c8dba['end'])||_0x32a9d9['end']['isEqual'](_0x5c8dba['start']);if(_0x1b4029||_0x32a9d9['getIntersection'](_0x5c8dba)){const _0x16067d=_0x32a9d9['containsRange'](_0x5c8dba)&&Vt(this['_model']['schema'],_0x5c8dba['start'],_0x32a9d9),_0x5edb27=_0x5c8dba['containsRange'](_0x32a9d9)&&Vt(this['_model']['schema'],_0x32a9d9['start'],_0x5c8dba);_0x2b3270['push']({'suggestion':_0x1a6d1f,'meta':{'isOwn':_0x2a6d45==_0x1a6d1f['author'],'isNextTo':_0x1b4029,'isInsideObject':_0x16067d,'containsRangeInObject':_0x5edb27}}),_0x348694=!0x0;break;}}if(_0x348694)break;}}return _0x2b3270;}['_addSuggestionMarker'](_0x5969f7,_0x17142c,_0x33cbe9,_0x577b8a,_0x1611fd){this['_model']['change'](_0x74ba34=>{let _0x5064a1='suggestion:'+_0x5969f7+':'+_0x17142c+':'+_0x33cbe9;_0x1611fd&&(_0x5064a1=_0x5064a1+':'+_0x1611fd),_0x74ba34['addMarker'](_0x5064a1,{'range':_0x577b8a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5d6501){const _0x54aedb=_0x5d6501['previous'],_0x19657f=_0x5d6501['next'];_0x5d6501['previous']=null,_0x5d6501['next']=null,null!=_0x54aedb&&_0x54aedb['next']==_0x5d6501&&(_0x54aedb['next']=_0x19657f),null!=_0x19657f&&_0x19657f['previous']==_0x5d6501&&(_0x19657f['previous']=_0x54aedb),'ready'==this['_suggestionState']['get'](_0x5d6501)&&(this['_suggestionState']['set'](_0x5d6501,'removed'),this['fire']('suggestionUnloaded',_0x5d6501,_0x54aedb,_0x19657f));}['_setSuggestionData'](_0x42281e){const _0x5d1306=_0x42281e['id'],_0xe5fc6b=this['addSuggestionData'](_0x42281e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x508248=this['editor']['plugins']['get']('PendingActions'),_0x40291e=_0xe5fc6b['hasComments'],_0x6d7a26=_0xe5fc6b['subType']?_0xe5fc6b['type']+':'+_0xe5fc6b['subType']:_0xe5fc6b['type'],_0x5e6d29=this['editor']['locale'],_0x37a22d=_0x508248['add'](o(_0x5e6d29,'PENDING_ACTION_SUGGESTION')),_0x2adb4b={'id':_0x5d1306,'type':_0x6d7a26,'hasComments':_0x40291e,'data':_0x42281e['data']||null,'originalSuggestionId':_0x42281e['originalSuggestionId']||null,'attributes':_0xe5fc6b['attributes']};this['_adapter']['addSuggestion'](_0x2adb4b)['then'](_0x218046=>{_0xe5fc6b['_saved']=!0x0,_0x508248['remove'](_0x37a22d),_0x218046&&_0x218046['createdAt']&&(this['_suggestions']['get'](_0x5d1306)['createdAt']=_0x218046['createdAt']);})['catch'](_0x4dc4e3=>{throw _0x3edaee('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xe5fc6b['discard']();}),_0xe5fc6b['stopListening'](),this['_suggestions']['delete'](_0xe5fc6b['id']),this['_suggestionState']['delete'](_0xe5fc6b),_0x4dc4e3;});}return _0xe5fc6b;}['_isBlockAttribute'](_0x410ab9){return this['_blockAttributeKeys']['has'](_0x410ab9);}['_updateSuggestionData'](_0x1d11f4,_0x46a58c){const _0xcbfeb1=this['editor']['plugins']['get']('PendingActions'),_0x1fc29f=this['getSuggestion'](_0x1d11f4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1fc29f['_saved']){const _0x46f734=_0xcbfeb1['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1d11f4,_0x46a58c)['then'](()=>{_0xcbfeb1['remove'](_0x46f734);});}else _0x1fc29f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1d11f4,_0x46a58c);});}}['_getSuggestionData'](_0x5dc7ce){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x436bcf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5dc7ce);}['_handleNewSuggestionMarker'](_0x851be9){const {id:_0x30107d,type:_0x5523fb,subType:_0x229a80,authorId:_0x4e20f3}=this['_splitMarkerName'](_0x851be9),_0x3a4db2=this['_suggestions']['get'](_0x30107d)||this['_createSuggestion'](_0x5523fb,_0x229a80,_0x30107d,_0x4e20f3,{});switch(this['_checkSuggestionCorrectness'](_0x3a4db2,_0x5523fb,_0x229a80,_0x4e20f3),this['_suggestionState']['get'](_0x3a4db2)){case'notReady':this['_getSuggestionData'](_0x30107d)['then'](_0x35bfb1=>{let _0x4667d1=Promise['resolve']();_0x35bfb1['hasComments']&&(_0x4667d1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30107d})),_0x4667d1['then'](()=>{this['addSuggestionData'](_0x35bfb1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a4db2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30107d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a4db2,'ready'),this['fire']('suggestionLoaded',_0x3a4db2);break;case'ready':this['fire']('suggestionChanged',_0x3a4db2);}return _0x3a4db2['addMarkerName'](_0x851be9),_0x3a4db2;}['_refreshSuggestionsChain'](_0x22be57){const _0x5e9206=Array['from'](_0x22be57),_0x2a8826=_0x5e9206['filter'](_0x538f58=>'attribute'==_0x538f58['type']);this['_refreshAttributeSuggestionsChain'](_0x2a8826);const _0x5f0fd6=_0x5e9206['filter'](_0x3ba903=>!_0x3ba903['isMultiRange']&&'attribute'!=_0x3ba903['type']),_0x156239=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa806fa=>!_0xa806fa['isMultiRange']&&'attribute'!=_0xa806fa['type']),_0x34d2f2=_0x156239['filter'](_0x513ee0=>!_0x22be57['has'](_0x513ee0)),_0x3f640d=new Map(_0x156239['map'](_0x4baff8=>[_0x4baff8,this['_suggestionFactory']['getSuggestionCallback'](_0x4baff8['type'],_0x4baff8['subType'],'chain')])),_0x5e6c89=new Map(_0x156239['map'](_0x204412=>[_0x204412,_0x204412['getFirstRange']()])),_0x3d150a=new Set(),_0x313284=new Set();for(let _0x2d73d2=0x0;_0x2d73d2<_0x5f0fd6['length'];_0x2d73d2++)_0x10dc1a(_0x5f0fd6[_0x2d73d2],_0x5f0fd6,_0x2d73d2+0x1);for(let _0x5ba3c9=0x0;_0x5ba3c9<_0x5f0fd6['length'];_0x5ba3c9++)_0x10dc1a(_0x5f0fd6[_0x5ba3c9],_0x34d2f2,0x0);const _0x13936e=new Set();for(let _0x1aef9d=0x0;_0x1aef9d<_0x5f0fd6['length'];_0x1aef9d++){const _0x592535=_0x5f0fd6[_0x1aef9d];!_0x313284['has'](_0x592535)&&_0x592535['previous']&&(_0x13936e['add'](_0x592535['previous']),_0x592535['previous']['next']===_0x592535&&(_0x592535['previous']['next']=null),_0x592535['previous']=null),!_0x3d150a['has'](_0x592535)&&_0x592535['next']&&(_0x13936e['add'](_0x592535['next']),_0x592535['next']['previous']===_0x592535&&(_0x592535['next']['previous']=null),_0x592535['next']=null);}function _0x10dc1a(_0x2c16cd,_0x123050,_0x45927f){for(let _0x219266=_0x45927f;_0x219266<_0x123050['length'];_0x219266++){const _0x2692de=_0x485ea2(_0x2c16cd,_0x123050[_0x219266]);_0x2692de&&(_0x2692de[0x0]['next']=_0x2692de[0x1],_0x2692de[0x1]['previous']=_0x2692de[0x0],_0x3d150a['add'](_0x2692de[0x0]),_0x313284['add'](_0x2692de[0x1]));}}function _0x485ea2(_0x1f8498,_0x20ab9d){if(_0x1f8498['author']['id']!==_0x20ab9d['author']['id'])return null;const _0x2abc3d=_0x3f640d['get'](_0x1f8498)(_0x1f8498,_0x20ab9d,_0x5e6c89['get'](_0x1f8498),_0x5e6c89['get'](_0x20ab9d));if(!_0x2abc3d)return null;return _0x3f640d['get'](_0x20ab9d)(_0x1f8498,_0x20ab9d,_0x5e6c89['get'](_0x1f8498),_0x5e6c89['get'](_0x20ab9d))?_0x2abc3d[0x1]['commentThread']&&_0x2abc3d[0x1]['commentThread']['length']?null:_0x2abc3d:null;}_0x13936e['size']&&this['_refreshSuggestionsChain'](_0x13936e);}['_refreshAttributeSuggestionsChain'](_0x1c1a35){if(0x0==_0x1c1a35['length'])return;const _0x59bd8c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x338aea=>'attribute'==_0x338aea['type']&&_0x338aea['_isDataLoaded']),_0x497500=[],_0x1c1579=new Map();for(const _0x3fdc47 of _0x59bd8c){const _0x565e01=_0xfb3446(_0x3fdc47['attributes']);_0x1c1579['has'](_0x565e01)||(_0x1c1579['set'](_0x565e01,_0x497500['length']),_0x497500['push']([]));const _0x1b45e3=_0x1c1579['get'](_0x565e01);_0x497500[_0x1b45e3]['push'](_0x3fdc47);}!(function(){_0x497500['sort']((_0x4386f7,_0x3a870f)=>{const _0x5aae0d=_0x4386f7[0x0]['createdAt'],_0x1312d0=_0x3a870f[0x0]['createdAt'];return _0x5aae0d==_0x1312d0?_0x4386f7[0x0]['attributes']['groupId']<_0x3a870f[0x0]['attributes']['groupId']?-0x1:0x1:_0x5aae0d<_0x1312d0?-0x1:0x1;});for(const _0x1ec19d of _0x497500)_0x1ec19d['sort']((_0x3ca866,_0x268795)=>_0x3ca866['id']<_0x268795['id']?-0x1:0x1);}());for(let _0x465075=0x0;_0x465075<_0x497500['length'];_0x465075++){if(0x0==_0x497500[_0x465075]['length'])continue;const _0x169da3=[];for(let _0x1d972a=_0x465075+0x1;_0x1d972a<_0x497500['length'];_0x1d972a++)0x0!=_0x497500[_0x1d972a]['length']&&_0x3b2b2f(_0x497500[_0x465075],_0x497500[_0x1d972a])&&_0x169da3['push'](_0x1d972a);for(const _0x50b7ef of _0x169da3)_0x497500[_0x465075]=_0x497500[_0x465075]['concat'](_0x497500[_0x50b7ef]),_0x497500[_0x50b7ef]=[];}for(const _0x26016b of _0x497500)for(let _0x3b1248=0x0;_0x3b1248<_0x26016b['length'];_0x3b1248++){const _0x19c511=_0x26016b[_0x3b1248+0x1]||null;_0x26016b[_0x3b1248]['next']!==_0x19c511&&(_0x26016b[_0x3b1248]['next']=_0x19c511);}for(const _0x2d0a24 of _0x497500)for(let _0x350b16=0x0;_0x350b16<_0x2d0a24['length'];_0x350b16++){const _0x54d687=_0x2d0a24[_0x350b16-0x1]||null;_0x2d0a24[_0x350b16]['previous']!==_0x54d687&&(_0x2d0a24[_0x350b16]['previous']=_0x54d687);}function _0x3b2b2f(_0x11ce08,_0x5eb020){if(_0x11ce08[0x0]['attributes']['groupId']!==_0x5eb020[0x0]['attributes']['groupId']&&_0x11ce08[0x0]['author']!==_0x5eb020[0x0]['author'])return!0x1;if(!function(_0xf4600,_0x538ba7){if(!_0xf4600['hasComments']&&!_0x538ba7['hasComments'])return!0x0;if(_0xf4600['hasComments']&&_0x538ba7['hasComments'])return!0x1;if(_0xf4600['hasComments']&&_0x538ba7['createdAt']<_0xf4600['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x538ba7['hasComments']&&_0xf4600['createdAt']<_0x538ba7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x11ce08[0x0],_0x5eb020[0x0]))return!0x1;const _0x220f1a=Et(_0x11ce08[0x0]['attributes'],'groupId'),_0x2c7852=Et(_0x5eb020[0x0]['attributes'],'groupId');if(!_0x13fe29(_0x220f1a,_0x2c7852))return!0x1;return!!_0x11ce08['every'](_0x2cba6c=>_0x5eb020['some'](_0x2cf4f4=>_0x2cba6c['getFirstRange']()['isEqual'](_0x2cf4f4['getFirstRange']())))&&_0x5eb020['every'](_0xa14e00=>_0x11ce08['some'](_0x1610ab=>_0xa14e00['getFirstRange']()['isEqual'](_0x1610ab['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1e81b1){const _0x85528d=Array['from'](_0x1e81b1),_0x2e872b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2fc66f=_0x2e872b['filter'](_0x46ff18=>!_0x1e81b1['has'](_0x46ff18)),_0x1d69bc=new Map(_0x85528d['map'](_0x3f0c80=>[_0x3f0c80,this['_suggestionFactory']['getSuggestionCallback'](_0x3f0c80['type'],_0x3f0c80['subType'],'join')])),_0x1c6c1e=new Map(_0x2e872b['map'](_0x35deb1=>[_0x35deb1,_0x35deb1['getRanges']()]));for(let _0x30366f=0x0;_0x30366f<_0x85528d['length'];_0x30366f++){if(_0x1c3f45(this,_0x85528d[_0x30366f],_0x85528d,_0x30366f+0x1))return!0x0;}for(let _0x5c58cb=0x0;_0x5c58cb<_0x85528d['length'];_0x5c58cb++){if(_0x1c3f45(this,_0x85528d[_0x5c58cb],_0x2fc66f,0x0))return!0x0;}return!0x1;function _0x1c3f45(_0x10c04d,_0x6a2423,_0x1f19da,_0x356e89){for(let _0x48d0bf=_0x356e89;_0x48d0bf<_0x1f19da['length'];_0x48d0bf++){const _0x4eae3e=_0x1f19da[_0x48d0bf];if(_0x4eae3e['type']!==_0x6a2423['type']||_0x4eae3e['author']['id']!==_0x6a2423['author']['id']||_0x4eae3e['subType']!==_0x6a2423['subType'])continue;if(!zt(_0x6a2423,_0x4eae3e))continue;if('attribute'==_0x6a2423['type']&&_0x6a2423['data']['oldValue']!=_0x4eae3e['data']['oldValue'])continue;if('attribute'==_0x6a2423['type']&&_0x10c04d['_isBlockAttribute'](_0x6a2423['data']['key']))continue;if('formatBlock'==_0x6a2423['type']){const _0x483c33=_0x10c04d['editor']['model'],_0x2a4392=_0x6a2423['getContainedElement']();if(_0x2a4392&&(_0x483c33['schema']['isObject'](_0x2a4392)||_0x483c33['schema']['isLimit'](_0x2a4392)))continue;}const _0x215e76=_0x1d69bc['get'](_0x6a2423),_0x2264e0=_0x1c6c1e['get'](_0x6a2423),_0x56deb7=_0x1c6c1e['get'](_0x4eae3e),_0xd78e20=_0x6a2423['commentThread']&&_0x6a2423['commentThread']['length'],_0x387298=_0x4eae3e['commentThread']&&_0x4eae3e['commentThread']['length'];if(!_0xd78e20&&_0x215e76(_0x56deb7,_0x2264e0))return _0x10c04d['_joinSuggestions'](_0x4eae3e,_0x6a2423),_0x1c6c1e['delete'](_0x6a2423),!0x0;if(!_0x387298&&_0x215e76(_0x2264e0,_0x56deb7))return _0x10c04d['_joinSuggestions'](_0x6a2423,_0x4eae3e),_0x1c6c1e['delete'](_0x4eae3e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x93b516,_0x442d85){if(_0x93b516['isMultiRange']){for(const _0x17f57c of _0x442d85['getRanges']())_0x93b516['addRange'](_0x17f57c);}else{const _0x20a5af=_0x442d85['getFirstRange']()['end'];this['_setSuggestionRange'](_0x93b516,this['_model']['createRange'](_0x93b516['getFirstRange']()['start'],_0x20a5af));}_0x442d85['removeMarkers']();}['_getMarkerAnnouncementText'](_0x590364,_0xd3ad4a,_0x4e16ae){const _0x417757=_0x590364['startsWith']('format')||_0x590364['startsWith']('attribute')?'FORMATTING':_0x590364['toUpperCase']();return o(this['editor']['locale'],_0xd3ad4a+'_'+_0x417757+'_SUGGESTION_ANNOUNCEMENT',_0x4e16ae);}['_initAriaMarkerChangeAnnouncements'](){const _0x5021c1=this['editor'];if(!_0x5021c1['ui'])return;const {ariaLiveAnnouncer:_0xfea5b7}=_0x5021c1['ui'];_0x3ba4a5(this['_model'],({left:_0x2ee241,entered:_0x5b6f1a})=>{for(const _0x5f3171 of _0x2ee241){const {group:_0x3661df,type:_0x247f62}=this['_splitMarkerName'](_0x5f3171['name']);if('suggestion'===_0x3661df){_0xfea5b7['announce'](this['_getMarkerAnnouncementText'](_0x247f62,'LEAVE'));break;}}for(const _0x30e99a of _0x5b6f1a){const {group:_0x1812ba,type:_0x388c7e}=this['_splitMarkerName'](_0x30e99a['name']);if('suggestion'===_0x1812ba){_0xfea5b7['announce'](this['_getMarkerAnnouncementText'](_0x388c7e,'ENTER',_0x343307(_0x523b65)));break;}}});}['_processAttributeChanges'](_0x57307f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1385ef=this['editor'],_0x2af565=_0x1385ef['model']['document']['differ']['getChanges']();if(0x0==_0x2af565['length'])return!0x1;const _0x1316f5=[],_0x1e178a=_0x2af565['filter'](_0x1bb776=>'attribute'==_0x1bb776['type']),_0x56d8dc=_0x2af565['filter'](_0x51c26e=>'insert'==_0x51c26e['type']&&'$text'!=_0x51c26e['name']),_0x1eac84=_0x2af565['filter'](_0x3a1819=>'remove'==_0x3a1819['type']&&'$text'!=_0x3a1819['name']);for(const _0x5e322e of _0x1e178a)_0x1316f5['push']({'key':_0x5e322e['attributeKey'],'newValue':_0x5e322e['attributeNewValue'],'oldValue':_0x5e322e['attributeOldValue'],'range':Jt(_0x5e322e['range'],_0x1385ef['model'])});for(const _0x413ed5 of _0x56d8dc){const _0x71b02c=_0x1eac84['find'](_0x4a57da=>_0x4a57da['position']['isEqual'](_0x413ed5['position']));_0x71b02c&&_0x1316f5['push']({'key':m,'newValue':_0x413ed5['name'],'oldValue':_0x71b02c['name'],'range':_0x1385ef['model']['createRangeOn'](_0x413ed5['position']['nodeAfter'])});}return 0x0!=_0x1316f5['length']&&this['_reduceExistingSuggestions'](_0x57307f,_0x1316f5);}['_processAttributeSuggestions'](_0x20f3bb){let _0x5922b6=!0x1;const _0x2e9493=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b1788=>_0x2b1788['data']['newRange']&&_0x2b1788['name']['startsWith']('suggestion:attribute:'));for(const _0x1b2c63 of _0x2e9493){const {subType:_0x2b13ba,id:_0x1c4c37}=this['_splitMarkerName'](_0x1b2c63['name']),_0x47a947=_0x2b13ba['split']('|')[0x0];for(const _0x395e63 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x395e63['id']!=_0x1c4c37&&'attribute'==_0x395e63['type']&&_0x395e63['data']&&_0x395e63['data']['key']==_0x47a947&&_0x395e63['getFirstRange']()['isIntersecting'](_0x1b2c63['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x395e63,_0x1b2c63['data']['newRange'],_0x20f3bb),_0x5922b6=!0x0);}return _0x5922b6;}['_recordAttributeChanges'](_0x4794e3){this['_recordAttributeSuggestions']=!0x0,_0x4794e3();}['_isRegisteredAttribute'](_0x1c4bd2){const _0x391f31=this['_isBlockAttribute'](_0x1c4bd2),_0xb279e8=this['_inlineAttributeKeys']['has'](_0x1c4bd2);return _0x391f31||_0xb279e8;}['_reduceExistingSuggestions'](_0x43644b,_0x1f728f){if(0x0==_0x1f728f['length'])return!0x1;let _0x5d8009=!0x1;for(const _0x4604ba of _0x1f728f){const _0x54c550=this['_findSuggestions'](_0x4604ba['range'],'attribute')['filter'](_0x4fd940=>!_0x4fd940['meta']['isNextTo'])['map'](_0x1270e5=>_0x1270e5['suggestion']),_0x254e44=_0xfb3446({'newValue':_0x4604ba['newValue']});_0x54c550['filter'](_0x4815d6=>{const [_0x4555d8,_0x727a94]=_0x4815d6['subType']['split']('|');return _0x4555d8==_0x4604ba['key']&&_0x727a94!=_0x254e44;})['forEach'](_0x477109=>{this['_reduceSuggestionAttributeRange'](_0x477109,_0x4604ba['range'],_0x43644b),_0x5d8009=!0x0;});}return _0x5d8009;}['_reduceSuggestionAttributeRange'](_0x58f1eb,_0x2df9ed,_0x20cb4e){const _0x2339b4=_0x58f1eb['getFirstRange']()['getDifference'](_0x2df9ed);0x0!==_0x2339b4['length']?0x1!==_0x2339b4['length']?this['_breakSuggestionMarker'](_0x58f1eb,_0x2df9ed['start'],_0x2df9ed['end']):this['_setSuggestionRange'](_0x58f1eb,_0x2339b4[0x0]):_0x20cb4e['removeMarker'](_0x58f1eb['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xceb77b){this['_editor']=_0xceb77b,this['_model']=_0xceb77b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x33f0be,_0x10c52e,_0x1ceca8,_0x363be6,_0x262ae5,_0x387f9b){return new u(this['_model'],{'type':_0x33f0be,'subType':_0x10c52e,'id':_0x1ceca8,'author':_0x363be6,'creator':_0x363be6,'attributes':_0x262ae5,'onAttributesChange':_0x387f9b,'onAccept':(..._0x44f491)=>this['getSuggestionCallback'](_0x33f0be,_0x10c52e,'accept')(..._0x44f491),'onDiscard':(..._0x303b61)=>this['getSuggestionCallback'](_0x33f0be,_0x10c52e,'discard')(..._0x303b61)});}['registerCustomCallback'](_0x2bb7eb,_0x4b1fc4,_0x500b77,_0x3a36a9){const _0xe267bf=_0x2bb7eb+':'+_0x4b1fc4+':'+_0x500b77;this['_customCallbacks']['set'](_0xe267bf,_0x3a36a9);}['getSuggestionCallback'](_0xd25339,_0x33aaa4,_0x1280c7){const _0x466198=_0xd25339+':'+_0x33aaa4+':'+_0x1280c7;return this['_customCallbacks']['get'](_0x466198)||this['_defaultCallbacks']['get'](_0xd25339+':'+_0x1280c7);}['_registerDefaultCallbacks'](){const _0x3c9228=()=>!0x1,_0xd0e532=_0x15e174=>{_0x15e174['sort']((_0x1475f2,_0x560cfc)=>_0x1475f2['start']['isBefore'](_0x560cfc['start'])?0x1:-0x1),this['_model']['change'](_0x120a7f=>{for(const _0x3040ff of _0x15e174){let _0x1df016;_0x1df016=_0x3040ff['end']['isAtEnd']&&_0x3040ff['end']['parent']==_0x3040ff['start']['nodeAfter']?_0x120a7f['createSelection'](_0x3040ff['start']['nodeAfter'],'on'):_0x120a7f['createSelection'](_0x3040ff),this['_model']['deleteContent'](_0x1df016,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a87fa=(_0x1eac8a,_0x36d2a1)=>{_0x36d2a1&&this['_model']['change'](_0xaf6834=>{const {commandName:_0x465e3e,commandParams:_0x13b3b1=[]}=_0x36d2a1,_0x475383=_0x1eac8a['map'](_0x4578d4=>(Pt(_0x4578d4)&&(_0x4578d4=this['_model']['createRange'](_0x4578d4['end'])),_0x4578d4))['filter'](_0x4400f3=>'$graveyard'!==_0x4400f3['root']['rootName']);if(_0x475383['length']<0x1)return;const _0x29f23e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3055da=>_0xe90d55['fromRange'](_0x3055da));_0xaf6834['setSelection'](_0x475383);for(const _0x14361e of this['_editor']['commands']['commands']())_0x14361e['refresh']();_0x13b3b1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x465e3e,..._0x13b3b1);const _0x434263=_0x29f23e['filter'](_0x512371=>'$graveyard'!=_0x512371['root']['rootName']);_0x434263['length']>0x0&&_0xaf6834['setSelection'](_0x434263);for(const _0x1f9769 of _0x29f23e)_0x1f9769['detach']();});},_0x3c3d22=(_0x51784b,_0x59bb4a)=>0x1==_0x51784b['length']&&0x1==_0x59bb4a['length']&&_0x51784b[0x0]['end']['isEqual'](_0x59bb4a[0x0]['start']),_0x4fa9ec=(_0x47be1e,_0x387b6d,_0xdfeff0,_0x27b0ce)=>qt(_0x47be1e,_0x387b6d,_0xdfeff0,_0x27b0ce)?[_0x47be1e,_0x387b6d]:qt(_0x387b6d,_0x47be1e,_0x27b0ce,_0xdfeff0)?[_0x387b6d,_0x47be1e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c9228),this['_defaultCallbacks']['set']('insertion:discard',_0xd0e532),this['_defaultCallbacks']['set']('insertion:join',_0x3c3d22),this['_defaultCallbacks']['set']('insertion:chain',_0x4fa9ec),this['_defaultCallbacks']['set']('deletion:accept',_0xd0e532),this['_defaultCallbacks']['set']('deletion:discard',_0x3c9228),this['_defaultCallbacks']['set']('deletion:join',_0x3c3d22),this['_defaultCallbacks']['set']('deletion:chain',_0x4fa9ec),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a87fa),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c9228),this['_defaultCallbacks']['set']('formatInline:join',_0x3c3d22),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c9228),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a87fa),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c9228),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c3d22),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c9228),this['_defaultCallbacks']['set']('attribute:accept',_0x3c9228),this['_defaultCallbacks']['set']('attribute:discard',(_0x3f089a,_0x58af7f)=>{if(!_0x58af7f)return;const _0x55ea6f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4617e7=>{if(_0x58af7f['key']==m)for(const _0x21a00e of _0x3f089a){const _0x1c2a6c=_0x21a00e['start']['nodeAfter'],_0x149dea=_0x58af7f['oldValue'];_0x4617e7['rename'](_0x1c2a6c,_0x149dea);}else{if(_0x55ea6f['_isBlockAttribute'](_0x58af7f['key'])){for(const _0x867992 of _0x3f089a)void 0x0!==_0x58af7f['oldValue']?_0x4617e7['setAttribute'](_0x58af7f['key'],_0x58af7f['oldValue'],_0x867992['start']['nodeAfter']):_0x4617e7['removeAttribute'](_0x58af7f['key'],_0x867992['start']['nodeAfter']);}else{for(const _0x21411c of _0x3f089a)_0x58af7f['oldValue']?_0x4617e7['setAttribute'](_0x58af7f['key'],_0x58af7f['oldValue'],_0x21411c):_0x4617e7['removeAttribute'](_0x58af7f['key'],_0x21411c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c3d22);}}function Vt(_0x60b0b8,_0x351f10,_0x131ee3){for(const _0x320db3 of _0x351f10['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x320db3['root']==_0x320db3)return!0x1;if(!_0x131ee3['containsItem'](_0x320db3))return!0x1;if(_0x60b0b8['isObject'](_0x320db3)||_0x60b0b8['isLimit'](_0x320db3))return!0x0;}return!0x1;}function Pt(_0x521026){return _0x521026['end']['parent']==_0x521026['start']['nodeAfter']&&_0x521026['end']['isAtStart'];}function Gt(_0x13b89e,_0x54c67d,_0x3bbd40,_0x3ca01d){const _0x3285ea=_0x7d71b6=>!_0x7d71b6['item']['is']('$textProxy')&&!_0x3ca01d['isObject'](_0x7d71b6['item']),_0x21ddf6=_0x13b89e['start']['getLastMatchingPosition'](_0x3285ea),_0x1f80b0=_0x13b89e['end']['getLastMatchingPosition'](_0x3285ea,{'direction':'backward'});return(!_0x13b89e['start']['isEqual'](_0x21ddf6)||!_0x13b89e['end']['isEqual'](_0x1f80b0))&&(_0x21ddf6['isBefore'](_0x1f80b0)?_0x3bbd40['updateMarker'](_0x54c67d,{'range':_0x3bbd40['createRange'](_0x21ddf6,_0x1f80b0)}):_0x3bbd40['removeMarker'](_0x54c67d),!0x0);}function Ft(_0x56a6aa){return _0xfb3446(_0x56a6aa);}function Lt(_0x4a57a7){const _0x2b371c=_0x4a57a7['start']['nodeAfter'];return _0x2b371c&&_0x2b371c['is']('element');}function Jt(_0x67c0d,_0x3e2564){return null==_0x67c0d['end']['nodeBefore']&&_0x67c0d['end']['parent']==_0x67c0d['start']['nodeAfter']?Ht(_0x67c0d['start']['nodeAfter'],_0x3e2564):_0x67c0d;}function Ht(_0xc7bb9b,_0x2d8aaf){const _0x5d2101=_0x2d8aaf['schema']['isObject'](_0xc7bb9b)||_0x2d8aaf['schema']['isSelectable'](_0xc7bb9b);return _0x2d8aaf['createRange'](_0x2d8aaf['createPositionAt'](_0xc7bb9b,'before'),_0x5d2101?_0x2d8aaf['createPositionAfter'](_0xc7bb9b):_0x2d8aaf['createPositionAt'](_0xc7bb9b,'end'));}function qt(_0x21d800,_0x37146f,_0x3d4b89,_0x4e404a){return!!zt(_0x21d800,_0x37146f)&&_0x3d4b89['end']['isEqual'](_0x4e404a['start']);}function zt(_0xc71173,_0x2bacaa){if(!_0xc71173['_isDataLoaded']||!_0x2bacaa['_isDataLoaded'])return!0x1;const _0x2bf2b6=new Set(Object['keys'](_0xc71173['attributes'])),_0x5889d7=new Set(Object['keys'](_0x2bacaa['attributes']));if(_0x2bf2b6['delete']('groupId'),_0x5889d7['delete']('groupId'),0x0==_0x2bf2b6['size']&&0x0==_0x5889d7['size'])return!0x0;if(_0x2bf2b6['size']!=_0x5889d7['size'])return!0x1;const _0x4a529e={..._0xc71173['attributes']},_0x1955df={..._0x2bacaa['attributes']};return delete _0x4a529e['groupId'],delete _0x1955df['groupId'],JSON['stringify'](_0x4a529e)==JSON['stringify'](_0x1955df);}function Kt(_0x4042b9,_0x3affb5){const _0x411a03=Wt(_0x4042b9['attributes']),_0x310888=Wt(_0x3affb5);if(!_0x4042b9['_isDataLoaded'])return!0x1;for(const _0x386caa of Object['keys'](_0x310888))if(!_0x13fe29(_0x411a03[_0x386caa],_0x310888[_0x386caa]))return!0x1;return!0x0;}function Wt(_0x10f98c){const _0x3e76e4=Object['assign']({},_0x10f98c);return delete _0x3e76e4['skipNestingCheck'],delete _0x3e76e4['tablePasteChainId'],_0x3e76e4;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x4580c0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3c973f,_0x1849fb,_0x2432ba,_0x1de74c){super(),this['model']=_0x1849fb,this['view']=_0x2432ba,this['commentThreadController']=_0x1de74c,this['_editor']=_0x3c973f,this['_acceptCommand']=_0x3c973f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3c973f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x48c086,_0x4da34e)=>_0x48c086||_0x4da34e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x449911=>_0x449911&&this['_editor']['model']['canEditAt'](_0x1849fb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ae204=>_0x2ae204&&this['_editor']['model']['canEditAt'](_0x1849fb['getRanges']())),this['_pendingAction']=null,_0x2432ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2432ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2432ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2432ba,'change:isDirty',()=>{_0x2432ba['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 _0x50a394=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x50a394);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5d2a58{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x223436,_0x544c78,_0x3278e6,_0x4f0e1e){super(_0x223436),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2adf89(_0x223436,o(_0x223436,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x544c78['authoredAt']),this['bind']('authoredAt')['to'](_0x544c78),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',_0x544c78,'authoredAt',this,'descriptionParts',(_0x4da72d,_0x213fa1,_0x1d5e22)=>{const _0x17fd7a=_0x1d5e22['map'](_0x45b988=>ns(_0x45b988['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4da72d-0x1,_0x544c78['author']['name'],_0x213fa1?_0x4f0e1e['formatDateTime'](_0x213fa1):'',new DOMParser()['parseFromString'](_0x17fd7a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x45a9ce(),this['focusTracker']=new _0x468dcb(),this['keystrokes']=new _0x1e6617(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5497eb=>_0x5497eb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x544c78,this['_localUser']=_0x3278e6,this['_config']=_0x4f0e1e,_0x4f0e1e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4cbd67(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5148f7}=this['_config'];this['commentsListView']=new _0x5148f7(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',_0x471683=>_0x471683+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x94ee59,_0x31492e)=>_0x94ee59||!!_0x31492e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xe6d01d}=this['_config'],_0x3fd41c=new _0xe6d01d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1edf42=_0x3fd41c['commentInputView'];return _0x3fd41c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1edf42,'value',(_0x5a087,_0x375fec,_0x4863bf)=>!!_0x4863bf||_0x5a087&&!_0x375fec),_0x1edf42['on']('submit',(_0x5a0405,_0x5425aa)=>{this['fire']('addComment',_0x5425aa),_0x1edf42['editor']['setData']('');}),_0x1edf42['on']('cancel',()=>this['focus']()),_0x1edf42['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3fd41c;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x306530,_0x211a71,_0x9cbba2,_0x376a0f){super(_0x306530,_0x211a71,_0x9cbba2,_0x376a0f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x252b2a=>_0x252b2a&&_0x252b2a[0x0]?_0x252b2a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22f5b1,_0x45789e)=>{let _0x4b14bc='';for(const _0x6bda03 of _0x22f5b1)_0x4b14bc+='<p>'+ns(_0x6bda03['content'],_0x6bda03['color'])+'</p>';return _0x45789e?_0x4b14bc:_0x17e155(_0x4b14bc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x376a0f['SuggestionView'](_0x306530,_0x211a71,{'formatDateTime':_0x376a0f['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 _0x277404=this['bindTemplate'],_0x588864=[this['suggestionView']];return this['commentsListView']&&_0x588864['push'](this['commentsListView']),this['commentThreadInputView']&&_0x588864['push'](this['commentThreadInputView']),_0x588864['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x277404['if']('isActive','ck-suggestion-wrapper--active'),_0x277404['to']('type',_0xe9a3d6=>'ck-suggestion-'+_0xe9a3d6),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':_0x277404['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x588864};}['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 fe extends _0x5d2a58{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xefd187,_0x3b29c6,_0x12e69c){super(_0xefd187),this['_model']=_0x3b29c6,this['_config']=_0x12e69c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3b29c6),this['acceptButton']=this['_createButton'](o(_0xefd187,'Accept\x20suggestion'),_0x54f2da['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xefd187,'Discard\x20suggestion'),_0x54f2da['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5e38fe(_0xefd187,_0x3b29c6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x45a9ce([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x468dcb(),this['keystrokes']=new _0x1e6617(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3aab02=>_0x3aab02['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e43f9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e43f9['innerHTML']=this['description'],this['on']('change:description',(_0x2636b0,_0xba2323,_0x534bf)=>{_0x3e43f9['innerHTML']=_0x534bf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x47e0d8=this['bindTemplate'],_0xe1f45=[{'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':_0x47e0d8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x47e0d8['to']('authoredAt',_0x1dc578=>this['_config']['formatDateTime'](_0x1dc578))}]}]},{'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']&&_0xe1f45['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':_0xe1f45}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4d47e9,_0x35f6f8,_0x145e06,_0x1ef6cc,_0xbbd6c3){const _0x525843=new _0x385fd2(this['locale']);return _0x525843['set']({'label':_0x4d47e9,'icon':_0x35f6f8,'tooltip':!0x0,'tooltipPosition':_0xbbd6c3}),_0x525843['extendTemplate']({'attributes':{'class':_0x145e06}}),_0x525843['on']('execute',()=>{this['fire'](_0x1ef6cc,this['_model']['id']);}),_0x525843;}['_setupKeyboardNavigation'](){const _0x848a25=this['element'];this['keystrokes']['listenTo'](_0x848a25);for(const _0x49997d of this['focusables'])this['focusTracker']['add'](_0x49997d['element']),this['keystrokes']['listenTo'](_0x49997d['element']);this['keystrokes']['set']('enter',(_0x547edd,_0x46bad0)=>{_0x848a25===_0x547edd['target']&&(this['focusCycler']['focusFirst'](),_0x46bad0());}),this['keystrokes']['set']('esc',(_0x50fec3,_0x23131f)=>{_0x848a25!==_0x50fec3['target']&&(this['focus'](),_0x23131f());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x286688{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x122d88,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x509ee7){super(_0x509ee7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x49a549=this['editor']['config'];_0x49a549['define']('trackChanges.SuggestionThreadView',pe),_0x49a549['define']('trackChanges.SuggestionView',fe),_0x49a549['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x49a549['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a1ce7,_0x2a8fcd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5ec1ba,_0xab9e43]of this['_handleControllerBuffer']){const _0x4374d3=this['_suggestionToController']['has'](_0x5ec1ba);_0x4374d3||_0xab9e43?_0x4374d3&&_0xab9e43&&this['_destroyController'](_0x5ec1ba):this['_initializeController'](_0x5ec1ba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a1ce7,_0x2a8fcd);}['init'](){const _0xf73523=this['editor'],_0x2ec0b9=_0xf73523['plugins']['get']('TrackChangesEditing'),_0x4ccb47=_0xf73523['plugins']['get']('Annotations'),_0x45f959=_0xf73523['plugins']['get']('EditorAnnotations'),_0x4272d7=_0xf73523['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x45f959['addSourceCollector'](()=>{const _0x3045c7=[];for(const [_0x32141f,_0x20377e]of Array['from'](this['_suggestionToController'])){const _0x50d78d=_0x32141f['getAllAdjacentSuggestions'](),_0x4076d5=[];for(const _0x9e3e53 of _0x50d78d){if(!_0x9e3e53['isInContent'])continue;if(_0x9e3e53['isMultiRange']){_0x4076d5['push'](..._0x9e3e53['getRanges']());continue;}const _0xa1ef44=_0x9e3e53['getFirstRange']();if(_0x4076d5['length']>0x0){const _0x290288=_0x4076d5[0x0]['getJoined'](_0xa1ef44);if(_0x290288){_0x4076d5[0x0]=_0x290288;continue;}}_0x4076d5['push'](_0xa1ef44);}_0x3045c7['push']([_0x20377e['view'],_0x4076d5]);}return _0x3045c7;}),this['listenTo'](_0x2ec0b9,'suggestionLoaded',(_0x305c81,_0x8614c6)=>{this['listenTo'](_0x8614c6,'change:previous',(_0x28f10e,_0x4efd80,_0x3a5a31,_0x6de96e)=>{_0x8614c6['isInContent']&&(null==_0x3a5a31?(this['_updateController'](_0x6de96e['head']),this['_handleSuggestionControllerDelayed'](_0x8614c6,!0x1)):(this['_updateController'](_0x3a5a31['head']),null==_0x6de96e&&this['_handleSuggestionControllerDelayed'](_0x8614c6,!0x0)));}),null!==_0x8614c6['previous']?this['_updateController'](_0x8614c6['head']):this['_handleSuggestionControllerDelayed'](_0x8614c6,!0x1);}),this['listenTo'](_0x2ec0b9,'suggestionUnloaded',(_0x15a724,_0x2fd848,_0x2f2ef9)=>{this['stopListening'](_0x2fd848,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2fd848),this['_suggestionToController']['has'](_0x2fd848)&&this['_destroyController'](_0x2fd848),_0x2f2ef9&&this['_updateController'](_0x2f2ef9['head']);}),this['listenTo'](_0x2ec0b9,'suggestionChanged',(_0x384316,_0x5d71a8)=>{this['_updateController'](_0x5d71a8);}),this['listenTo'](_0x4ccb47,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4272d7,'addComment',(_0x3fe595,{threadId:_0x7e52fb,isFromAdapter:_0x4de887})=>{if(_0x4de887||!_0x2ec0b9['hasSuggestion'](_0x7e52fb))return;const _0x13fbac=_0x2ec0b9['getSuggestion'](_0x7e52fb);this['_suggestionToController']['get'](_0x13fbac)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21d4d2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e410a;for(const _0x365ba9 in _0x21d4d2){const _0x12662f=_0x365ba9,_0xe87ab9=_0x21d4d2[_0x12662f];if('trackChangesLicenseKeyValid'==_0xe87ab9||'trackChangesLicenseKeyInvalid'==_0xe87ab9||'trackChangesLicenseKeyExpired'==_0xe87ab9||'trackChangesLicenseKeyDomainLimit'==_0xe87ab9||'trackChangesLicenseKeyNotAllowed'==_0xe87ab9||'trackChangesLicenseKeyEvaluationLimit'==_0xe87ab9||'trackChangesLicenseKeyTrialLimit'==_0xe87ab9||'trackChangesLicenseKeyUsageLimit'==_0xe87ab9){delete _0x21d4d2[_0x12662f],_0x1e410a=_0xe87ab9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e410a&&_0x21d4d2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e410a&&_0x21d4d2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e410a&&_0x21d4d2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e410a&&_0x21d4d2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e410a&&_0x21d4d2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1e410a&&_0x21d4d2['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e410a&&_0x21d4d2['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4e968a=this['editor']['plugins']['get']('Annotations'),_0x47fb0c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x614523=Array['from'](_0x4e968a['activeAnnotations'],_0x3978d9=>_0x3978d9['innerView'])['filter'](_0xfcedfc=>this['_viewToController']['has'](_0xfcedfc)),_0x374035=[];for(const _0x4e7e2a of _0x614523){const _0x2047ec=this['_viewToController']['get'](_0x4e7e2a)['model']['getAllAdjacentSuggestions']();_0x374035['push'](..._0x2047ec['reduce']((_0x1a6007,_0x4a0dc1)=>[..._0x1a6007,..._0x4a0dc1['getMarkerNames']()],[]));}_0x47fb0c['activeMarkers']=_0x374035;}['_addUIComponentsToFactory'](){const _0x49f63a=this['editor'],_0x4183e0=_0x49f63a['locale'],_0x1bc758=o(_0x4183e0,'Track\x20changes'),_0x776d92=new _0x3d9ae5([{'type':'switchbutton','model':new _0xa40ffc({'withText':!0x0,'isToggleable':!0x0,'label':_0x1bc758,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xa40ffc({'withText':!0x0,'label':o(_0x4183e0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa40ffc({'withText':!0x0,'label':o(_0x4183e0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa40ffc({'withText':!0x0,'label':o(_0x4183e0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xa40ffc({'withText':!0x0,'label':o(_0x4183e0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x49f63a['plugins']['has']('TrackChangesPreview')&&_0x776d92['addMany']([{'type':'separator'},{'type':'button','model':new _0xa40ffc({'withText':!0x0,'label':o(_0x4183e0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5f3df2 of _0x776d92)if(ke(_0x5f3df2)){const _0x1c8fbb=_0x49f63a['commands']['get'](_0x5f3df2['model']['commandName']);_0x5f3df2['model']['bind']('isOn','isEnabled')['to'](_0x1c8fbb,'value','isEnabled');}_0x49f63a['ui']['componentFactory']['add']('trackChanges',_0x3fbffd=>this['_createToolbarButton'](_0x3fbffd,_0x776d92,_0x1bc758)),_0x49f63a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f7a6d=>this['_createMenuBarMenu'](_0x1f7a6d,_0x776d92,_0x1bc758));}['_createToolbarButton'](_0x5279ec,_0x413efc,_0x166b62){const _0x1a9160=_0x3d40cd(_0x5279ec,_0x4fb29d),_0x4ecc66=this['editor']['commands']['get']('trackChanges');_0x1a9160['buttonView']['set']({'tooltip':_0x166b62,'label':_0x166b62,'icon':we}),_0x1a9160['buttonView']['bind']('isOn')['to'](_0x4ecc66,'value'),_0x1a9160['buttonView']['on']('execute',()=>{_0x4ecc66['execute'](),this['editor']['editing']['view']['focus']();}),_0x2636e7(_0x1a9160,_0x413efc,{'role':'menu'});const _0x477d8a=[];for(const _0x55c9e9 of _0x413efc)ke(_0x55c9e9)&&_0x477d8a['push'](this['editor']['commands']['get'](_0x55c9e9['model']['commandName']));const _0x37fa0a=_0x1a9160['buttonView'];return _0x37fa0a['actionView']['unbind']('isEnabled'),_0x37fa0a['arrowView']['unbind']('isEnabled'),_0x37fa0a['actionView']['bind']('isEnabled')['to'](_0x4ecc66,'isEnabled'),_0x37fa0a['arrowView']['bind']('isEnabled')['toMany'](_0x477d8a,'isEnabled',(..._0x13e84d)=>_0x13e84d['some'](_0x2b4b9b=>_0x2b4b9b)),_0x1a9160['on']('execute',_0x4f4f90=>{this['editor']['execute'](_0x4f4f90['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a9160;}['_createMenuBarMenu'](_0x100c4d,_0x477feb,_0x444e50){const _0x3d3501=new _0x85b609(_0x100c4d),_0x1df13c=this['editor']['commands']['get']('trackChanges');_0x3d3501['buttonView']['set']({'label':_0x444e50,'icon':we});const _0x168587=new _0x196779(_0x100c4d);for(const _0x490803 of _0x477feb){if('separator'==_0x490803['type']){_0x168587['items']['add'](new _0x207c1a(_0x100c4d));continue;}const _0x51d91c=new _0x55e11e(_0x100c4d,_0x3d3501),_0x1ce4d8=new _0x533feb(_0x100c4d),_0x5f2f70=_0x490803['model'];_0x1ce4d8['bind'](...Object['keys'](_0x5f2f70))['to'](_0x5f2f70),_0x1ce4d8['delegate']('execute')['to'](_0x3d3501),_0x1ce4d8['on']('execute',()=>{this['editor']['execute'](_0x5f2f70['commandName']),this['editor']['editing']['view']['focus']();}),_0x51d91c['children']['add'](_0x1ce4d8),_0x168587['items']['add'](_0x51d91c);}return _0x3d3501['bind']('isEnabled')['to'](_0x1df13c,'isEnabled'),_0x3d3501['panelView']['children']['add'](_0x168587),_0x3d3501;}['_initializeController'](_0x15ac61){const _0x5059fd=this['editor'],_0x57f7d2=_0x5059fd['config'],_0x4e34bc=_0x5059fd['plugins']['get']('Annotations'),_0x3b330e=_0x5059fd['plugins']['get']('CommentsRepository'),_0x2b1f92=_0x5059fd['plugins']['get']('EditorAnnotations'),_0x3cf8b9=_0x5059fd['plugins']['get'](_0x122d88)['me'],_0x3a096d=_0x57f7d2['get']('trackChanges')['SuggestionThreadView'],_0x4ce125=_0x57f7d2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2778da,CommentThreadInputView:_0x5d09c9}=_0x5059fd['plugins']['get']('CommentsUI');let _0x40c8b0,_0xb75e54,_0x271b5f;this['_annotationViews']['has'](_0x15ac61['id'])?(_0xb75e54=this['_annotationViews']['get'](_0x15ac61['id']),_0x40c8b0=_0xb75e54['mainView']):(_0x40c8b0=new _0x3a096d(_0x5059fd['locale'],_0x15ac61,_0x3cf8b9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x57f7d2['get']('comments.editorConfig'),'licenseKey':_0x57f7d2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x57f7d2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x57f7d2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x57f7d2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x274689(_0x57f7d2['get']('locale')),'CommentView':_0x57f7d2['get']('comments')['CommentView'],'CommentsListView':_0x2778da,'CommentThreadInputView':_0x5d09c9,'SuggestionView':_0x4ce125}),_0x40c8b0['suggestionView']['acceptButton']['on']('execute',()=>{_0x5059fd['editing']['view']['focus']();}),_0x40c8b0['suggestionView']['discardButton']['on']('execute',()=>{_0x5059fd['editing']['view']['focus']();}),_0xb75e54=_0x4e34bc['createAnnotationView'](this['editor']['locale'],_0x40c8b0),_0xb75e54['bind']('isDirty')['to'](_0x40c8b0,'isDirty'),_0xb75e54['bind']('length')['to'](_0x40c8b0),_0xb75e54['bind']('type')['to'](_0x40c8b0,'type',_0x125f43=>'suggestion-'+_0x125f43),_0x40c8b0['on']('escape',()=>{_0x271b5f['fire']('escape');}),this['_annotationViews']['set'](_0x15ac61['id'],_0xb75e54));const _0x5b19fc=_0x3b330e['createCommentThreadController'](_0x15ac61['commentThread'],_0x40c8b0),_0x352f10=new Ce(_0x5059fd,_0x15ac61,_0x40c8b0,_0x5b19fc),_0x1afc6b=_0x15ac61['getAllAdjacentSuggestions']()['filter'](_0x1ab0f2=>_0x1ab0f2['isInContent']);_0x40c8b0['descriptionParts']=_0x5059fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1afc6b),this['_suggestionToController']['set'](_0x15ac61,_0x352f10),this['_viewToController']['set'](_0x40c8b0,_0x352f10),_0x271b5f=_0x4e34bc['createAnnotation']({'view':_0xb75e54,'target':()=>{const _0x1f8cbe=[],_0x17f039=_0x15ac61['getAllAdjacentSuggestions']()['filter'](_0x1634c5=>_0x1634c5['isInContent']);for(const _0x464175 of _0x17f039)_0x1f8cbe['push'](..._0x464175['getMarkers']());return _0x15a27b(_0x5059fd['editing'],_0x1f8cbe);},'type':()=>'suggestion-'+_0x352f10['view']['type']}),_0x3b330e['_bindAnnotationToEditors'](_0x40c8b0,_0x271b5f),_0x4e34bc['add'](_0x271b5f),_0x2b1f92['registerAnnotation'](_0x271b5f);}['_destroyController'](_0x5efb18){const _0x5887fc=this['editor']['plugins']['get']('CommentsRepository'),_0x4783ba=this['editor']['plugins']['get']('Annotations'),_0x55d34b=this['_suggestionToController']['get'](_0x5efb18),_0x333383=_0x55d34b['view'],_0xb85151=_0x4783ba['getByInnerView'](_0x333383);_0x5887fc['_unbindEditors'](_0x333383),_0xb85151&&_0x4783ba['remove'](_0xb85151),this['_suggestionToController']['delete'](_0x5efb18),this['_viewToController']['delete'](_0x333383),_0x55d34b['destroy']();}['_updateController'](_0x159b94){if(!_0x159b94['isInContent']||!this['_suggestionToController']['has'](_0x159b94))return;const _0x4352ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584b3c=this['_suggestionToController']['get'](_0x159b94),_0x3b978e=_0x159b94['getAllAdjacentSuggestions']();_0x584b3c['view']['descriptionParts']=_0x4352ae['descriptionFactory']['getDescriptions'](_0x3b978e);}['destroy'](){for(const _0x3f2651 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f2651);for(const _0x4dbf61 of this['_annotationViews']['values']())_0x4dbf61['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x26dd25){return'model'in _0x26dd25;}class k extends _0x286688{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x14dbb5){this['editor']['plugins']['get'](p)['adapter']=_0x14dbb5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x23c28e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x23c28e);}['getSuggestions']({skipNotAttached:_0x3bf03f=!0x1,toJSON:_0x244421=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3bf03f,'toJSON':_0x244421});}['getSuggestion'](_0x37f1e6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x37f1e6);}}const w=['Pagination'];class T extends _0x286688{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x166a2c=this['editor'];if(_0x166a2c['config']['define']('trackChangesData.editorCreator',_0x56070b=>{const _0x589516=_0x166a2c['model']['document']['getRootNames']()['reduce']((_0x2e4634,_0x533168)=>(_0x2e4634[_0x533168]='',_0x2e4634),{});return _0x166a2c['constructor']['create'](_0x589516,_0x56070b);}),'function'!=typeof _0x166a2c['config']['get']('trackChangesData')['editorCreator'])throw new _0x436bcf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x258bd3){return N(this['editor'],!0x0,_0x258bd3);}['getDataWithDiscardedSuggestions'](_0x552505){return N(this['editor'],!0x1,_0x552505);}}class D extends _0x286688{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13b89d){function _0xcda495(_0x469cac){return _0x469cac['map'](_0x4e6433=>String['fromCharCode'](_0x4e6433))['join']('');}super(_0x13b89d),this['result']='end',_0x13b89d[_0xcda495([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcda495([0x76,0x69,0x65,0x77])][_0xcda495([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcda495([0x61,0x75,0x74,0x6f]),_0x13b89d[_0xcda495([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xcda495([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcda495([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xcda495([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xcda495([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3e555c){return void 0x0!==_0x3e555c['getRootsAttributes'];}async function N(_0xace6e,_0x5b47b7,_0x51b313){const _0x10a0ff=_0x53015a(_0xace6e,w);_0x10a0ff['plugins']['push'](p,D),_0x10a0ff['rootsAttributes']=Fe(_0xace6e)?_0xace6e['getRootsAttributes']():void 0x0;const _0x228b33=document['createDocumentFragment'](),_0x499f44=_0xace6e['config']['get']('trackChangesData')['editorCreator'],_0x2c6a22=await _0x499f44(_0x10a0ff,()=>function(_0x207c00){const _0xd75f36=document['createElement']('div');return _0x207c00['appendChild'](_0xd75f36),_0xd75f36;}(_0x228b33));!function(_0x5b34a0,_0x4e394a){const _0x5980c9=_0x5b34a0['model']['document']['getRootNames']()['reduce']((_0xf535a7,_0x4542bc)=>(_0xf535a7[_0x4542bc]=_0x5b34a0['data']['get']({'rootName':_0x4542bc}),_0xf535a7),{}),_0x89f2e2=_0x5b34a0['plugins']['get']('Users')['users']['map'](_0x3f49e4=>({'id':_0x3f49e4['id'],'name':_0x3f49e4['name']})),_0x1e5750=_0x5b34a0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x325a1a=_0x5b34a0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17de2d=_0x4e394a['plugins']['get']('Users'),_0x247b85=_0x4e394a['plugins']['get']('TrackChangesEditing'),_0x51313a=_0x4e394a['plugins']['get']('CommentsRepository');for(const _0x518445 of _0x51313a['getCommentThreads']())_0x518445['remove']();for(const _0x2b8f3d of _0x89f2e2)_0x17de2d['getUser'](_0x2b8f3d['id'])||_0x17de2d['addUser'](_0x2b8f3d);_0x17de2d['me']||_0x17de2d['useAnonymousUser']();for(const _0x46bb1f of _0x325a1a)_0x51313a['addCommentThread'](_0x46bb1f);for(const _0x156ee1 of _0x1e5750)_0x247b85['addSuggestionData'](_0x156ee1);_0x4e394a['data']['set'](_0x5980c9);}(_0xace6e,_0x2c6a22),_0x2c6a22['execute'](_0x5b47b7?'acceptAllSuggestions':'discardAllSuggestions');const _0x57474f=Fe(_0x2c6a22)?_0x2c6a22['getFullData'](_0x51b313):_0x2c6a22['data']['get'](_0x51b313);return await _0x2c6a22['destroy'](),_0x57474f;}class Me extends _0x5d2a58{['options'];constructor(_0x135faf,_0x54a305){super(_0x135faf),this['options']=_0x54a305,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'](_0x1704d5,_0x175e86){if(!this['element'])return;const _0x3c7b7a=[];for(const [_0x1e684b,_0x30355a]of _0x1704d5){const _0x13ad1b=document['createElement']('div');_0x13ad1b['setAttribute']('data-ck-root-name',_0x1e684b),_0x13ad1b['className']=_0x30355a['classes']+'\x20ck-track-changes-preview__root-container',_0x13ad1b['innerHTML']=_0x30355a['content'],_0x3c7b7a['push'](_0x13ad1b);}_0x175e86(this['element'],_0x3c7b7a),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x5962ac){super(_0x5962ac),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x8c5cbb=this['editor'],_0x12b16b=_0x8c5cbb['locale'],_0x24a7b7=_0x8c5cbb['plugins']['get']('Dialog');let _0x5ebe88;const _0xe92cb2=function(_0x183989){const _0x1663e7={};if('editables'in _0x183989['ui']['view']){for(const [_0x19a23b,_0x895c5e]of Object['entries'](_0x183989['ui']['view']['editables']))_0x1663e7[_0x19a23b]=_0x895c5e['element'];}else _0x1663e7[_0x183989['model']['document']['getRootNames']()[0x0]]=_0x183989['ui']['view']['editable']['element'];return _0x1663e7;}(_0x8c5cbb),_0x36b0c9=function(_0x40b9aa){let _0x367268=0x0;for(const _0x3cfe3a of Object['values'](_0x40b9aa))_0x367268=Math['max'](_0x367268,_0x3cfe3a['getBoundingClientRect']()['width']);let _0x41b0de=0x0;for(const _0x1fcabe of Object['values'](_0x40b9aa))_0x41b0de+=_0x1fcabe['getBoundingClientRect']()['height'];const _0x58777d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x189a24=Math['min'](_0x41b0de,_0x58777d);return{'width':_0x367268,'height':_0x189a24};}(_0xe92cb2);_0x24a7b7['show']({'id':'finalContentPreview','title':o(_0x12b16b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x12b16b,{'dialogRects':_0x36b0c9}),'onHide':()=>{_0x5ebe88['detachFromDom']();},'onShow':()=>{_0x8c5cbb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3d53eb=>{const _0xd38c6d=this['_standarizeRootsData'](_0x3d53eb,_0x8c5cbb,_0xe92cb2);_0x24a7b7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd38c6d,_0x8c5cbb['config']['get']('trackChanges.preview.renderFunction'));}),_0x5ebe88=new _0x1eac28(_0x12b16b,[_0x24a7b7['view']]),_0x5ebe88['attachToDom'](),_0x5ebe88['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x8c5cbb['once']('destroy',()=>{_0x5ebe88['detachFromDom']();});const _0x5952dd=_0x24a7b7['view']['headerView']['class'];_0x24a7b7['view']['headerView']['class']=_0x5952dd?_0x5952dd+'\x20ck-reset_all':'ck-reset_all',_0x24a7b7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x24a7b7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2d9cac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3521b9=_0x2d9cac['previewMode'],_0x229a05={};if('$labels'===_0x3521b9){for(const _0x1e85aa of _0x2d9cac['getMergeFieldsIds']())_0x229a05[_0x1e85aa]=_0x2d9cac['getLabel'](_0x1e85aa)||_0x1e85aa;}else{const _0x94ea38='$defaultValues'===_0x3521b9?_0x2d9cac['getDefaultValues']():_0x2d9cac['getDataSetValues'](_0x3521b9,!0x0);for(const _0x477ca5 of Object['entries'](_0x94ea38)){const [_0x44f6cb,_0x2c0ab1]=_0x477ca5;_0x229a05[_0x44f6cb]=null!==_0x2c0ab1?_0x2c0ab1:_0x2d9cac['getLabel'](_0x44f6cb)||_0x44f6cb;}}return{'mergeFieldsData':_0x229a05};}['_standarizeRootsData'](_0xa367a0,_0x55eac0,_0x151c9a){let _0x1419bb;if('string'==typeof _0xa367a0){const _0x3c19d8=_0x55eac0['model']['document']['getRootNames']()[0x0];_0x1419bb={[_0x3c19d8]:_0xa367a0};}else _0x1419bb=_0xa367a0;const _0x47ce37=this['_fixMediaEmbeds'](_0x1419bb,_0x55eac0),_0x830351=function(_0x4199a4,_0xd4aeb5){for(const [_0xd64a61,_0x13e916]of _0x4199a4)_0x13e916['classes']=_0xd4aeb5[_0xd64a61]['classList']['value']['replace']('ck-focused','');return _0x4199a4;}(this['_sortRoots'](_0x55eac0)['reduce']((_0x4d59a0,_0x5c297a)=>(_0x4d59a0['push']([_0x5c297a,{'content':_0x47ce37[_0x5c297a],'classes':''}]),_0x4d59a0),[]),_0x151c9a);return _0x830351;}['_fixMediaEmbeds'](_0xe1819,_0x392a5b){if(!_0x392a5b['plugins']['has']('MediaEmbedEditing'))return _0xe1819;const _0x4b1184=_0x392a5b['plugins']['get']('MediaEmbedEditing');for(const [_0x332437,_0x8ba2b]of Object['entries'](_0xe1819)){const _0x5819e2=document['createElement']('div');_0x5819e2['innerHTML']=_0x8ba2b,(_0x5819e2['querySelectorAll']('figure.media')['forEach'](_0x26618f=>{const _0x577966=_0x26618f['querySelector']('oembed');if(_0x577966){const _0x43557d=_0x577966['getAttribute']('url');if(_0x43557d){const _0x31e3fb=_0x4b1184['registry']['getMediaViewElement'](new _0x14c1d0(_0x392a5b['editing']['view']['document']),_0x43557d,{'elementName':'','renderForEditingView':!0x0}),_0x18bfbf=document['createElement']('div');_0x18bfbf['classList']['add']('ck-media__wrapper'),_0x31e3fb['render'](_0x18bfbf,_0x392a5b['editing']['view']['domConverter']),_0x577966['replaceWith'](_0x18bfbf);}}}),_0xe1819[_0x332437]=_0x5819e2['innerHTML']);}return _0xe1819;}['_sortRoots'](_0xc406ad){if(!function(_0xd41d71){return void 0x0!==_0xd41d71['getRootsAttributes'];}(_0xc406ad))return _0xc406ad['model']['document']['getRootNames']();const _0x38cfe1=[],_0x422b9d=new Map();for(const _0x25e0d5 of _0xc406ad['model']['document']['getRootNames']()){const _0x41bf86=_0xc406ad['editing']['view']['getDomRoot'](_0x25e0d5)['getClientRects']()['item'](0x0);_0x38cfe1['push'](_0x25e0d5),_0x422b9d['set'](_0x25e0d5,_0x41bf86);}return _0x38cfe1['sort']((_0x441c52,_0x3dc16d)=>{const _0x4e4e81=_0x422b9d['get'](_0x441c52),_0x73ad5b=_0x422b9d['get'](_0x3dc16d);return _0x4e4e81['y']-_0x73ad5b['y']||_0x4e4e81['x']-_0x73ad5b['x'];}),_0x38cfe1;}}class te extends _0x286688{static get['requires'](){return[T,_0x1214d9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x487ae6){super(_0x487ae6),_0x487ae6['commands']['add']('previewFinalContent',new re(this['editor'])),_0x487ae6['config']['define']('trackChanges.preview.renderFunction',(_0xe96986,_0x38d445)=>{for(const _0x12160d of _0x38d445)_0xe96986['appendChild'](_0x12160d);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x32d277,PendingActions as _0x46e603,icons as _0x1280c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c4487,ObservableMixin as _0x6fb9b,uid as _0x12e0b6,priorities as _0x3e5933,insertToPriorityArray as _0x3a2fa8,logWarning as _0x194bc4,getEnvKeystrokeText as _0xe7169f,FocusTracker as _0x127950,KeystrokeHandler as _0x260502,Collection as _0x3a7b8e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9dac81,View as _0x19b550,ViewCollection as _0xd0bff9,FocusCycler as ts,ViewModel as _0x127161,createDropdown as _0x111af9,SplitButtonView as _0x4045c4,addListToDropdown as _0x387a00,MenuBarMenuView as _0x544f32,MenuBarMenuListView as _0x10e9be,ListSeparatorView as _0x1b58c6,MenuBarMenuListItemView as _0x30c9f3,MenuBarMenuListItemButtonView as _0x28a4cd,BodyCollection as _0x2cf5af,Dialog as _0x2e48b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x485da9,hashObject as _0x1f57d0,surroundingMarkersDetector as _0x54a2c9,FOCUS_ANNOTATION_KEYSTROKE as _0x1980b7,AriaDescriptionView as _0x3d12d4,setupThreadKeyboardNavigation as _0x418455,trimHtml as _0x5e35a2,UserView as _0x163e6a,LateFocusButtonView as _0x3e0fbb,getDateTimeFormatter as _0x4fcd9d,getAllMarkersDomElementsSorted as _0x54bfae,sanitizeEditorConfig as _0x218599}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45cc74,LiveRange as _0x14dd4f,LivePosition as _0x1adf65,DowncastWriter as _0x2200ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb393f7,toWidget as _0x20d843}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4538e0,set as _0x315543,isEqual as _0x42e77d,unset as _0x585406,omit as Et}from'lodash-es';import{Delete as _0x4c5371,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xc65384,ShiftEnter as _0x4ae6b1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x1ef2e1,_0x4aeb3f){super(_0x1ef2e1),this['_enabledCommands']=_0x4aeb3f,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 _0x3c234d of this['editor']['commands']['commands']())_0x3c234d['affectsData']&&!this['_enabledCommands']['has'](_0x3c234d)&&_0x3c234d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x939c5b of this['editor']['commands']['commands']())_0x939c5b['affectsData']&&!this['_enabledCommands']['has'](_0x939c5b)&&_0x939c5b['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x5629d4,_0x101918){super(_0x5629d4),this['_suggestions']=_0x101918,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e5b1b){const _0x3f03bd=this['_suggestions']['get'](_0x4e5b1b);if(!_0x3f03bd)throw new _0x3c4487('track-changes-accept-suggestion-not-found',this);const _0x3d9ce5=_0x3f03bd['getRanges']();this['editor']['model']['canEditAt'](_0x3d9ce5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f03bd);}}class R extends Qt{['_suggestions'];constructor(_0x52f0af,_0x12489c){super(_0x52f0af),this['_suggestions']=_0x12489c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2760fe){const _0x482cc8=this['_suggestions']['get'](_0x2760fe);if(!_0x482cc8)throw new _0x3c4487('track-changes-discard-suggestion-not-found',this);const _0x23abee=_0x482cc8['getRanges']();this['editor']['model']['canEditAt'](_0x23abee)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x482cc8);}}function ns(_0x489950,_0x4f3fb8){let _0xcafa34='';return _0xcafa34+=_0x489950['split']('*')['map']((_0x5b6312,_0x4793dd)=>_0x4793dd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5b6312)+'</span>':nn(_0x5b6312))['join'](''),_0x4f3fb8&&(_0xcafa34+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4f3fb8['value']+'\x22\x20title=\x22'+_0x4f3fb8['title']+'\x22></span>'),_0xcafa34;}function nn(_0x3eb8fa){const _0x2dfe1c=document['createElement']('span');return _0x2dfe1c['innerText']=_0x3eb8fa,_0x2dfe1c['innerHTML'];}function Xt(_0x5e5e23){return _0x5e5e23['sort']((_0x175940,_0x3cdf96)=>'deletion'==_0x175940['type']&&'deletion'!=_0x3cdf96['type']?-0x1:'deletion'!=_0x175940['type']&&'deletion'==_0x3cdf96['type']?0x1:0x0);}function to(_0x4cc98f,_0xf04925){let _0x552505,_0x1087e9=0x0;const _0x1c4086=[],_0x18e46c=_0xf04925['schema'];for(;_0x1087e9<_0x4cc98f['length'];){const _0x40c19a=_0x4cc98f[_0x1087e9],_0x18c8c3=_0x4cc98f[_0x1087e9+0x1];_0x552505||(_0x552505=_0xf04925['createPositionBefore'](_0x40c19a)),on(_0xf04925,_0x40c19a,_0x18c8c3)||(_0x1c4086['push'](_0xf04925['createRange'](_0x552505,_0x18e46c['isObject'](_0x40c19a)?_0xf04925['createPositionAfter'](_0x40c19a):_0xf04925['createPositionAt'](_0x40c19a,'end'))),_0x552505=null),_0x1087e9++;}return _0x1c4086;}function on(_0x299e21,_0x267fd5,_0x253f67){if(!_0x253f67)return!0x1;const _0x144b78=_0x299e21['createPositionAfter'](_0x267fd5),_0x48a701=_0x299e21['createPositionBefore'](_0x253f67);return _0x144b78['isTouching'](_0x48a701);}function Yt(_0x261203,_0x3e72c3,_0x5228d2){for(;_0x5228d2['length'];){const _0x1ef5e7=_0x5228d2['splice'](0x0,0x64);_0x261203['change'](()=>{for(const _0x5f3d80 of _0x1ef5e7)_0x5f3d80['isInContent']&&_0x3e72c3['execute'](_0x5f3d80['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x2c3600,_0xb999ed,_0x5f0365){super(_0x2c3600),this['_command']=_0xb999ed,this['_suggestions']=_0x5f0365,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x435b43=Array['from'](this['_suggestions']['values']())['some'](_0x337c48=>_0x337c48['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x435b43;}['execute'](){const _0x1e7674=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x5df445 of _0x1e7674){const _0x5c2936=_0x5df445['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c2936))return;}Yt(this['editor']['model'],this['_command'],_0x1e7674);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a0e1c,_0x241d2d,_0x526944){super(_0x4a0e1c),this['_command']=_0x241d2d,this['_suggestions']=_0x526944,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x486460=this['editor']['model']['document']['selection'],_0x1b0d3a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4fd1f0,_0x30bf14){const _0x4f3c63=Array['from'](_0x4fd1f0['getRanges']()),_0x1fc5cb=new Set();for(const _0x3092ca of _0x30bf14)if(_0x3092ca['isInContent']){for(const _0x5061bf of _0x4f3c63)for(const _0xd0806d of _0x3092ca['getRanges']())(_0x5061bf['isIntersecting'](_0xd0806d)||_0x4fd1f0['isCollapsed']&&!_0x3092ca['isMultiRange']&&_0x3092ca['next']&&_0xd0806d['end']['isTouching'](_0x5061bf['start']))&&_0x1fc5cb['add'](_0x3092ca);}return _0x1fc5cb;}(_0x486460,_0x1b0d3a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x207e3e=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x535467 of _0x207e3e){const _0x28d6e9=_0x535467['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28d6e9))return;}Yt(this['editor']['model'],this['_command'],_0x207e3e);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x6fb9b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x413174,_0x5cc3c3){super(),this['id']=_0x5cc3c3['id'],this['type']=_0x5cc3c3['type'],this['subType']=_0x5cc3c3['subType']||null,this['author']=_0x5cc3c3['author'],this['creator']=_0x5cc3c3['creator']||_0x5cc3c3['author'],this['isExternal']=Boolean(_0x5cc3c3['attributes']&&_0x5cc3c3['attributes']['@external']),this['data']=null,this['_model']=_0x413174,this['_onAccept']=_0x5cc3c3['onAccept'],this['_onDiscard']=_0x5cc3c3['onDiscard'],this['_onAttributesChange']=_0x5cc3c3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5cc3c3['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 _0x35b491=this;for(;_0x35b491['previous'];)_0x35b491=_0x35b491['previous'];return _0x35b491;}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'](_0x1ed62a){this['_markerNames']['add'](_0x1ed62a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2096c5=>this['_model']['markers']['get'](_0x2096c5))['filter'](_0xd5cf5c=>_0xd5cf5c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x498419=>{for(const _0x4d2b97 of this['getMarkers']())_0x498419['removeMarker'](_0x4d2b97);}),this['_markerNames']['clear']();}['removeMarker'](_0x1f6f7c){this['_model']['change'](_0xf373ef=>{_0xf373ef['removeMarker'](_0x1f6f7c);}),this['_markerNames']['delete'](_0x1f6f7c);}['addRange'](_0x3af636){const _0x68f1ca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x68f1ca),this['_model']['change'](_0x173de6=>{_0x173de6['addMarker'](_0x68f1ca,{'range':_0x3af636,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e3377){for(const _0x1d97b2 of this['getRanges']())if(_0x1d97b2['isIntersecting'](_0x3e3377))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46d6f5=>_0x46d6f5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4bc200,_0xa4a238)=>[..._0x4bc200,..._0xa4a238['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3f2e83=this['getRanges']();if(0x1!=_0x3f2e83['length'])return null;const _0x32d5ff=_0x3f2e83[0x0],_0x563b20=_0x32d5ff['start']['nodeAfter'],_0x5206c1=_0x32d5ff['end']['nodeBefore'];return _0x563b20 instanceof _0x45cc74?_0x563b20!=_0x5206c1?null:_0x563b20: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 _0x3019d3=[];let _0x23d0ca=this['head'];for(;_0x23d0ca;)_0x3019d3['push'](_0x23d0ca),_0x23d0ca=_0x23d0ca['next'];return _0x3019d3;}['setAttribute'](_0x3a6179,_0x3bf1cb){const _0x55350c=_0x4538e0(this['attributes']);_0x315543(_0x55350c,_0x3a6179,_0x3bf1cb),_0x42e77d(_0x55350c,this['attributes'])||(this['attributes']=_0x55350c,this['_onAttributesChange'](_0x55350c));}['removeAttribute'](_0x3ea053){const _0x36b9c0=_0x4538e0(this['attributes']);_0x585406(_0x36b9c0,_0x3ea053),_0x42e77d(_0x36b9c0,this['attributes'])||(this['attributes']=_0x36b9c0,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 _0x12e0b6()['substr'](0x1,0x5);}}function o(_0x617f0c,_0x29ab23,_0x46edcb){const _0x7c1e65=_0x617f0c['t'],t=_0x617f0c['t'];switch(_0x29ab23){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',_0x46edcb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46edcb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46edcb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46edcb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46edcb);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',_0x46edcb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46edcb);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',_0x46edcb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46edcb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46edcb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46edcb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46edcb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46edcb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46edcb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46edcb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46edcb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46edcb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46edcb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46edcb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46edcb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46edcb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46edcb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46edcb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46edcb);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'},_0x46edcb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46edcb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46edcb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46edcb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46edcb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46edcb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46edcb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46edcb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46edcb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46edcb);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 _0x7c1e65({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46edcb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x7c1e65({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46edcb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x29ab23;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d5f79,_0x17a7ab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d5f79,this['_locale']=_0x17a7ab;}['getDescriptions'](_0x445669){const _0x308257=[],_0x2e512d=new Set(),_0x3844c1=new Set();for(let _0x5238c3=0x0;_0x5238c3<_0x445669['length'];_0x5238c3++){const _0x487177=_0x445669[_0x5238c3];if(!_0x487177['isInContent'])continue;const _0x6b35d2=this['_handleCustomCallbackDescription'](_0x487177);if(_0x6b35d2){if(null!=_0x487177['subType']){if(_0x2e512d['has'](_0x487177['subType']))continue;_0x2e512d['add'](_0x487177['subType']);}_0x308257['push'](_0x6b35d2);}else{if('attribute'!=_0x487177['type'])'insertion'!=_0x487177['type']&&'deletion'!=_0x487177['type']||this['_handleInsertRemoveSuggestionDescription'](_0x308257,_0x487177,_0x445669[_0x5238c3+0x1]);else{const _0x3a9d22=_0x487177['data']['key'];if(_0x3844c1['has'](_0x3a9d22))continue;_0x3844c1['add'](_0x487177['data']['key']),_0x3a9d22==m?this['_handleRenameSuggestionDescription'](_0x308257,_0x487177):this['_handleAttributeSuggestionDescription'](_0x308257,_0x487177);}}}return this['_resolveDescriptionItems'](_0x308257);}['registerDescriptionCallback'](_0x269bc6){this['_customCallbacks']['push'](_0x269bc6);}['registerElementLabel'](_0x1af446,_0x22d942,_0x2e2eaa=_0x3e5933['normal']){'function'==typeof _0x1af446?_0x3a2fa8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1af446,'label':_0x22d942,'priority':_0x2e2eaa}):this['_itemLabels']['set'](_0x1af446,_0x22d942);}['registerAttributeLabel'](_0x539157,_0x4f07ed){this['_attributeLabels']['set'](_0x539157,_0x4f07ed);}['getItemLabel'](_0x42f12e,_0x39dd51=0x1){let _0x27f383;for(const _0x5f34e1 of this['_itemLabelsCallbacks'])if(_0x5f34e1['matchingCallback'](_0x42f12e)){_0x27f383=_0x5f34e1['label'];break;}return _0x27f383||(_0x27f383=this['_itemLabels']['get'](_0x42f12e['name'])),_0x27f383?_0x27f383(_0x39dd51):0x1!==_0x39dd51?_0x39dd51+'\x20'+_0x42f12e['name']+'s':''+_0x42f12e['name'];}['_addDescriptionItems'](_0x524b30,_0x37ca78){const _0x20ea06=_0x37ca78['getFirstRange']()['getWalker'](),_0x1cd5cc='insertion'==_0x37ca78['type']?'add':'remove';for(const _0x4e4510 of _0x20ea06){const _0x11323e=_0x4e4510['item'],_0x358a0d=_0x524b30[_0x524b30['length']-0x1];if(_0x11323e['is']('$textProxy'))_0x358a0d&&_0x358a0d['type']['indexOf']('Container')>-0x1&&_0x524b30['pop'](),_0x358a0d&&'text'==_0x358a0d['type']?_0x358a0d[_0x1cd5cc]+=_0x11323e['data']:_0x524b30['push']({'type':'text','add':'add'==_0x1cd5cc?_0x11323e['data']:'','remove':'remove'==_0x1cd5cc?_0x11323e['data']:''});else{if(this['_schema']['isObject'](_0x11323e)){const _0x38b14c=_0x11323e;if(_0x358a0d&&_0x358a0d['type']['indexOf']('Container')>-0x1&&_0x524b30['pop'](),'elementEnd'==_0x4e4510['type'])continue;_0x358a0d&&_0x358a0d['type']==_0x1cd5cc+'Object'&&_0x358a0d['element']['name']==_0x38b14c['name']?_0x358a0d['quantity']++:_0x524b30['push']({'type':_0x1cd5cc+'Object','element':_0x38b14c,'quantity':0x1}),_0x20ea06['skip'](_0x22ae42=>!('elementEnd'==_0x22ae42['type']&&_0x22ae42['item']==_0x11323e));}else{if(this['_schema']['checkChild'](_0x11323e,'$text')||_0x11323e['is']('element','softBreak')){const _0x15808c=_0x11323e;if('add'==_0x1cd5cc&&'elementStart'==_0x4e4510['type']||'remove'==_0x1cd5cc&&'elementEnd'==_0x4e4510['type'])continue;if(_0x358a0d&&-0x1==_0x358a0d['type']['indexOf']('Container')){'text'==_0x358a0d['type']&&(_0x358a0d[_0x1cd5cc]+='\x0a');continue;}let _0x4858a7;if(_0x4858a7='add'==_0x1cd5cc?_0x15808c['nextSibling']&&!this['_schema']['isObject'](_0x15808c['nextSibling'])?_0x15808c['nextSibling']:null:_0x15808c['previousSibling']&&!this['_schema']['isObject'](_0x15808c['previousSibling'])?_0x15808c['previousSibling']:null,_0x15808c['isEmpty']||_0x4858a7&&_0x4858a7['isEmpty']){const _0x467bc7=_0x4858a7&&_0x4858a7['isEmpty']?_0x4858a7:_0x15808c;_0x358a0d&&_0x358a0d['type']==_0x1cd5cc+'EmptyContainer'&&_0x358a0d['element']['name']==_0x467bc7['name']?_0x358a0d['quantity']++:_0x524b30['push']({'type':_0x1cd5cc+'EmptyContainer','element':_0x467bc7,'quantity':0x1});}else _0x524b30['push']({'type':_0x1cd5cc+'Container','element':_0x15808c});}}}}}['_resolveDescriptionItems'](_0x5a20e5){const _0x57bc89=this['_locale'],_0x3b80d2=[],_0x588ec0=[],_0xed432=[];for(const _0x436c3f of _0x5a20e5)switch(_0x436c3f['type']){case'text':if(_0x436c3f['add']=_0x436c3f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x436c3f['remove']=_0x436c3f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x436c3f['add']&&''!=_0x436c3f['remove']){_0x3b80d2['push']({'type':'replace','content':o(_0x57bc89,'REPLACE_TEXT',['\x22'+_0x436c3f['remove']+'\x22','\x22'+_0x436c3f['add']+'\x22'])});continue;}if(null!=_0x436c3f['add']['match'](/^ +$/)){_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0',o(_0x57bc89,'ELEMENT_SPACE',_0x436c3f['add']['length']))});continue;}if(null!=_0x436c3f['remove']['match'](/^ +$/)){_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0',o(_0x57bc89,'ELEMENT_SPACE',_0x436c3f['remove']['length']))});continue;}if(''!=_0x436c3f['add']){_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0','\x22'+_0x436c3f['add']+'\x22')});continue;}_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0','\x22'+_0x436c3f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'addContainer':_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Split:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'removeContainer':_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Merge:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'addFormat':_0x588ec0['push'](_0x436c3f['key']);continue;case'removeFormat':_0xed432['push'](_0x436c3f['key']);continue;default:_0x3b80d2['push'](_0x436c3f);}if(_0x588ec0['length']){const _0x4850b6=_0x588ec0['map'](_0xafc0a1=>this['_attributeLabels']['has'](_0xafc0a1)?this['_attributeLabels']['get'](_0xafc0a1):_0xafc0a1)['join'](',\x20');_0x3b80d2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4850b6)});}if(_0xed432['length']){const _0x495398=_0xed432['map'](_0x34f367=>this['_attributeLabels']['has'](_0x34f367)?this['_attributeLabels']['get'](_0x34f367):_0x34f367)['join'](',\x20');_0x3b80d2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x495398)});}return _0x3b80d2;}['_handleCustomCallbackDescription'](_0x29a58c){for(const _0x1aeaaf of this['_customCallbacks']){const _0x3e8ee9=_0x1aeaaf(_0x29a58c);if(_0x3e8ee9&&'type'in _0x3e8ee9)return _0x3e8ee9;}}['_handleAttributeSuggestionDescription'](_0x511597,_0x559a28){const _0x2faa0f=_0x559a28['data'],_0x5b7d98=void 0x0===_0x2faa0f['newValue']?'removeFormat':'addFormat';_0x511597['push']({'type':_0x5b7d98,'key':_0x2faa0f['key']});}['_handleRenameSuggestionDescription'](_0x2fdd74,_0x371ffc){_0x2fdd74['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x371ffc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x462a8c,_0x20094a,_0x5429a4){if(this['_addDescriptionItems'](_0x462a8c,_0x20094a),_0x5429a4&&_0x5429a4['getFirstRange']()&&!_0x20094a['getFirstRange']()['end']['isEqual'](_0x5429a4['getFirstRange']()['start'])){const _0x3638c1=_0x462a8c[_0x462a8c['length']-0x1],_0x5274ff='insertion'==_0x20094a['type']?'add':'remove';_0x3638c1&&'text'==_0x3638c1['type']&&(_0x3638c1[_0x5274ff]+='\x0a');}}}class U extends _0x32d277{['afterInit'](){const _0x59dbdd=this['editor'],_0x1774db=_0x59dbdd['plugins']['get']('TrackChangesEditing');_0x59dbdd['commands']['get']('showAIAssistant')&&_0x1774db['enableCommand']('showAIAssistant');}}class V extends _0x32d277{['afterInit'](){const _0x374ae0=this['editor'],_0x43f583=_0x374ae0['locale'];if(!_0x374ae0['plugins']['has']('AlignmentEditing'))return;const _0x35b0e5=_0x374ae0['plugins']['get']('TrackChangesEditing');_0x35b0e5['enableDefaultAttributesIntegration']('alignment'),_0x35b0e5['registerBlockAttribute']('alignment'),_0x35b0e5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x43f583,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198fde=this['editor'],_0x5e21a4=_0x198fde['locale'];_0x198fde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5f4c=>{if('formatBlock'!=_0x2e5f4c['type'])return;const {data:_0x2c8620}=_0x2e5f4c;if(_0x2c8620&&'alignment'==_0x2c8620['commandName']){const _0x202a74=_0x2c8620['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5e21a4,'*Format:*\x20%0',function(_0x2bb794){switch(_0x2bb794){case'left':return o(_0x5e21a4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5e21a4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5e21a4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5e21a4,'FORMAT_JUSTIFY_TEXT');}}(_0x202a74))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x32d277{['afterInit'](){const _0x1fc509=this['editor'],_0x14a099=_0x1fc509['plugins']['get']('TrackChangesEditing'),_0x2762d9=_0x1fc509['locale'];for(const _0x1e39ad of ti){if(!_0x1fc509['plugins']['has'](_0x1e39ad))continue;const _0x4ee649=_0x1e39ad['slice'](0x0,-0x7)['toLowerCase'](),_0x4f442b='FORMAT_'+_0x4ee649['toUpperCase']();_0x14a099['enableDefaultAttributesIntegration'](_0x4ee649),_0x14a099['registerInlineAttribute'](_0x4ee649),_0x14a099['descriptionFactory']['registerAttributeLabel'](_0x4ee649,o(_0x2762d9,_0x4f442b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc4ad=this['editor'],_0x4e3b72=_0x1dc4ad['locale'],_0x56284f=_0x1dc4ad['plugins']['get']('TrackChangesEditing');function _0x1dbf4d(_0x5a78c7,_0x5a303d){_0x56284f['descriptionFactory']['registerDescriptionCallback'](_0x27887d=>{if('formatInline'!=_0x27887d['type'])return;const {data:_0x5be476}=_0x27887d;return _0x5be476&&_0x5be476['commandName']===_0x5a78c7?_0x5be476['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e3b72,'*Format:*\x20%0',_0x5a303d)}:{'type':'format','content':o(_0x4e3b72,'*Remove\x20format:*\x20%0',_0x5a303d)}:void 0x0;});}_0x1dbf4d('bold',o(_0x4e3b72,'FORMAT_BOLD')),_0x1dbf4d('italic',o(_0x4e3b72,'FORMAT_ITALIC')),_0x1dbf4d('underline',o(_0x4e3b72,'FORMAT_UNDERLINE')),_0x1dbf4d('code',o(_0x4e3b72,'FORMAT_CODE')),_0x1dbf4d('strikethrough',o(_0x4e3b72,'FORMAT_STRIKETHROUGH')),_0x1dbf4d('subscript',o(_0x4e3b72,'FORMAT_SUBSCRIPT')),_0x1dbf4d('superscript',o(_0x4e3b72,'FORMAT_SUPERSCRIPT'));}}class F extends _0x32d277{['afterInit'](){const _0xeac70b=this['editor'],_0x3dc1c8=_0xeac70b['locale'];if(!_0xeac70b['plugins']['has']('BlockQuoteEditing'))return;const _0x2559f3=_0xeac70b['plugins']['get']('TrackChangesEditing'),_0x3ad922=this['editor']['commands']['get']('blockQuote');_0x2559f3['enableCommand']('blockQuote',(_0x31438f,_0x234bff={})=>{const _0x429553=this['editor']['model']['document']['selection'],_0x10ebca=_0x234bff&&void 0x0!==_0x234bff['forceValue']?_0x234bff['forceValue']:!_0x3ad922['value'];let _0x2a9558=[];if(_0x10ebca){const _0x49e35d=Array['from'](_0x429553['getSelectedBlocks']())['filter'](_0x211bc1=>oo(_0x211bc1)||function(_0x1a5dfa,_0x418fee){const _0x3ccfde=_0x418fee['checkChild'](_0x1a5dfa['parent'],'blockQuote'),_0xee2764=_0x418fee['checkChild'](['$root','blockQuote'],_0x1a5dfa);return _0x3ccfde&&_0xee2764;}(_0x211bc1,this['editor']['model']['schema']));_0x2a9558=to(_0x49e35d,_0xeac70b['model']);}else{const _0x52f5a3=Array['from'](_0x429553['getSelectedBlocks']())['filter'](_0x2f2548=>oo(_0x2f2548));_0x2a9558=to(_0x52f5a3,_0xeac70b['model']);}_0xeac70b['model']['change'](()=>{for(const _0x4e897e of _0x2a9558)_0x2559f3['markBlockFormat'](_0x4e897e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10ebca}]});});}),_0x2559f3['descriptionFactory']['registerDescriptionCallback'](_0x2823f9=>{const {data:_0x571cf7}=_0x2823f9;if(_0x571cf7&&'blockQuote'==_0x571cf7['commandName']){const _0x1ba73f=o(_0x3dc1c8,'ELEMENT_BLOCK_QUOTE');return _0x571cf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dc1c8,'*Set\x20format:*\x20%0',_0x1ba73f)}:{'type':'format','content':o(_0x3dc1c8,'*Remove\x20format:*\x20%0',_0x1ba73f)};}});}}function oo(_0x151ae8){return'blockQuote'==_0x151ae8['parent']['name'];}class L extends _0x32d277{['afterInit'](){const _0x44f2e2=this['editor'],_0x5bdf7c=_0x44f2e2['locale'],_0x110949=_0x44f2e2['plugins']['get']('TrackChangesEditing');_0x44f2e2['plugins']['has']('BookmarkEditing')&&(_0x110949['enableCommand']('insertBookmark'),_0x110949['enableDefaultAttributesIntegration']('updateBookmark'),_0x110949['registerBlockAttribute']('bookmarkId'),_0x110949['descriptionFactory']['registerDescriptionCallback'](_0x50cbcc=>{if('insertion'!=_0x50cbcc['type']&&'deletion'!=_0x50cbcc['type']&&'attribute'!=_0x50cbcc['type'])return;const _0x121596=_0x50cbcc['getContainedElement']();if(null==_0x121596)return;if(!_0x121596['is']('element','bookmark'))return;const _0x3ee900=_0x121596['getAttribute']('bookmarkId');if('insertion'==_0x50cbcc['type'])return{'type':'insertion','content':o(_0x5bdf7c,'*Insert:*\x20%0','\x22'+_0x3ee900+'\x22\x20'+o(_0x5bdf7c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x50cbcc['type'])return{'type':'deletion','content':o(_0x5bdf7c,'*Remove:*\x20%0','\x22'+_0x3ee900+'\x22\x20'+o(_0x5bdf7c,'ELEMENT_BOOKMARK'))};const {data:_0x37279e}=_0x50cbcc;if(!_0x37279e||'bookmarkId'!=_0x37279e['key'])return;return{'type':'format','content':o(_0x5bdf7c,'*Set\x20bookmark:*\x20%0','\x22'+_0x37279e['newValue']+'\x22')};}));}}class J extends _0x32d277{['afterInit'](){const _0x299b78=this['editor'];_0x299b78['plugins']['has']('CaseChange')&&(_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x32d277{['afterInit'](){const _0xf246c2=this['editor'];_0xf246c2['commands']['get']('ckbox')&&_0xf246c2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x32d277{['afterInit'](){const _0x3d135d=this['editor'];if(!_0x3d135d['plugins']['has']('CodeBlock'))return;const _0x59a31d=_0x3d135d['plugins']['get']('TrackChangesEditing'),_0x31fef8=_0x3d135d['locale'],_0x19ff2d=_0x3d135d['config']['get']('codeBlock')['languages'],_0x5f1880=_0x3d135d['commands']['get']('codeBlock');_0x59a31d['enableCommand']('indentCodeBlock'),_0x59a31d['enableCommand']('outdentCodeBlock'),_0x59a31d['enableCommand']('codeBlock',(_0x3489b7,_0x16f2c1={})=>{const _0x2b0133=_0x3d135d['model'],_0x537c99=_0x3d135d['model']['document']['selection'],_0x2f0134=_0x16f2c1&&void 0x0!==_0x16f2c1['forceValue']?_0x16f2c1['forceValue']:!_0x5f1880['value'];let _0x4e664c;_0x16f2c1['language']||(_0x16f2c1['language']=_0x19ff2d[0x0]['language']),_0x4e664c=_0x2f0134?Array['from'](_0x537c99['getSelectedBlocks']())['filter'](_0x490563=>eo(_0x490563)||function(_0xb17ed7,_0x1ab9e2){if(_0xb17ed7['is']('rootElement')||_0x1ab9e2['isLimit'](_0xb17ed7))return!0x1;return _0x1ab9e2['checkChild'](_0xb17ed7['parent'],'codeBlock');}(_0x490563,_0x2b0133['schema'])):Array['from'](_0x537c99['getSelectedBlocks']())['filter'](_0x1f8189=>eo(_0x1f8189));const _0x4f0429=to(_0x4e664c,_0x2b0133);_0x2b0133['change'](()=>{for(const _0x15890f of _0x4f0429)_0x59a31d['markBlockFormat'](_0x15890f,{'commandName':'codeBlock','commandParams':[{..._0x16f2c1,'forceValue':_0x2f0134}],'formatGroupId':'blockName'});});}),(_0x59a31d['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e4ca7=>o(_0x31fef8,'ELEMENT_CODE_BLOCK',_0x5e4ca7)),_0x59a31d['descriptionFactory']['registerDescriptionCallback'](_0x4499a2=>{if('formatBlock'!=_0x4499a2['type'])return;const _0xe224c9=_0x31fef8['t'],{data:_0x5a76bf}=_0x4499a2;if(!_0x5a76bf||'codeBlock'!=_0x5a76bf['commandName'])return;const _0xfcc7e0=_0x5a76bf['commandParams'][0x0]['language'],_0x5951d=_0xe224c9(_0x19ff2d['find'](_0x447d3e=>_0x447d3e['language']===_0xfcc7e0)['label'])['toLowerCase']();return _0x5a76bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31fef8,'*Set\x20format:*\x20%0',o(_0x31fef8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5951d+')')}:{'type':'format','content':o(_0x31fef8,'*Remove\x20format:*\x20%0',o(_0x31fef8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4c6b34){return'codeBlock'==_0x4c6b34['name'];}class z extends _0x32d277{['afterInit'](){const _0x3ddf36=this['editor'];if(!_0x3ddf36['plugins']['has']('CommentsEditing'))return;_0x3ddf36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x572181,_0x56ac81,_0x589b57){const _0x301512=[];for(const _0x444fb3 of _0x56ac81['getItems']())_0x444fb3['hasAttribute'](_0x572181)&&_0x301512['push'](_0x589b57['createRangeOn'](_0x444fb3));return _0x301512;}function De(_0x3163a0,_0x42c275,{showActiveMarker:_0x47321a=!0x0}={}){const _0x3178d9=_0x3163a0['plugins']['get']('TrackChangesEditing');return(_0xd96937,_0x1b26b6,_0x50b0f1)=>{if(!_0x50b0f1['consumable']['test'](_0x1b26b6['markerRange'],_0xd96937['name']))return;const _0x3bf2f6=_0x1b26b6['markerRange']['getWalker'](),_0x65b99a=_0x1b26b6['markerRange']['start'],_0x755913=_0x3163a0['model']['schema'];let _0x498a7b=null,_0x35ad86=null,_0x51165f=!0x1,_0x3d8fe4=!0x1;for(const _0x58c066 of _0x3bf2f6){const _0x426bc8=_0x58c066['item'];_0x51165f=_0x51165f||_0x755913['isContent'](_0x426bc8);const _0x3ce40a=_0x50b0f1['mapper']['toViewElement'](_0x426bc8);if(_0x3ce40a&&_0x3ce40a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58c066['type']&&(_0x755913['isBlock'](_0x426bc8)&&!_0x755913['isLimit'](_0x426bc8)&&(_0x426bc8['nextSibling']||_0x65b99a['isAtEnd']?_0x498a7b&&_0x498a7b['parent']==_0x426bc8||(_0x498a7b=_0x426bc8,_0x4abde7(_0x58c066['previousPosition']),_0x3d8fe4=!0x0):_0x35ad86=_0x35ad86||_0x58c066['previousPosition']));}function _0x4abde7(_0x2b0c0a){const {authorId:_0x133165}=_0x3178d9['_splitMarkerName'](_0x1b26b6['markerName']),_0x12e7f2=_0x50b0f1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42c275,'data-author-id':_0x133165}),_0x528624=_0x50b0f1['mapper']['toViewPosition'](_0x2b0c0a);_0x47321a&&_0x3178d9['activeMarkers']['includes'](_0x1b26b6['markerName'])&&_0x50b0f1['writer']['addClass']('ck-suggestion-marker--active',_0x12e7f2),_0x50b0f1['writer']['insert'](_0x528624,_0x12e7f2),_0x50b0f1['mapper']['bindElementToMarker'](_0x12e7f2,_0x1b26b6['markerName']);}_0x51165f||_0x3d8fe4||!_0x35ad86||_0x4abde7(_0x35ad86);};}class K extends _0x32d277{static get['requires'](){return[_0x4c5371];}['init'](){const _0x59c56b=this['editor'],_0x52c508=_0x59c56b['plugins']['get']('TrackChangesEditing');_0x52c508['enableCommand']('delete');const _0x1a768a=_0x59c56b['commands']['get']('deleteForward');_0x52c508['enableCommand']('deleteForward',(_0x28a10e,_0x28a84a={})=>{const _0xb7db70=_0x59c56b['model']['createSelection'](_0x59c56b['model']['document']['selection']);_0xb7db70['isCollapsed']&&_0x59c56b['model']['modifySelection'](_0xb7db70,{'direction':'forward','unit':_0x28a84a['unit']});const _0x2c3dbd=_0xb7db70['getFirstRange'](),_0x59ebf3=_0x14dd4f['fromRange'](_0x2c3dbd);let _0xb0bab6;_0x28a10e(_0x28a84a),_0xb0bab6='$graveyard'==_0x59ebf3['root']['rootName']?_0x59c56b['model']['createRange'](_0x2c3dbd['start']):_0x59c56b['model']['createRange'](_0x59ebf3['start'],_0x59ebf3['end']),_0x59ebf3['detach'](),_0x59c56b['model']['enqueueChange'](_0x1a768a['buffer']['batch'],_0x4c6512=>{_0x1a768a['buffer']['lock'](),_0x4c6512['setSelection'](_0x4c6512['createRange'](_0xb0bab6['end'])),_0x1a768a['buffer']['unlock']();});}),_0x59c56b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x59c56b,'merge'),{'priority':'high'}),_0x59c56b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x27bdf2,_0x201bb9,_0x1e818f)=>{_0x1e818f['options']['showSuggestionHighlights']&&De(_0x59c56b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x27bdf2,_0x201bb9,_0x1e818f);},{'priority':'high'}),_0x59c56b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1902a0,_0x2c3dad,_0x4c35f6)=>{const _0x3dc0ff=_0x4c35f6['mapper']['markerNameToElements'](_0x2c3dad['markerName']);if(_0x3dc0ff){for(const _0x55604d of _0x3dc0ff)_0x55604d['is']('uiElement')&&(_0x4c35f6['mapper']['unbindElementFromMarkerName'](_0x55604d,_0x2c3dad['markerName']),_0x4c35f6['writer']['remove'](_0x55604d));}},{'priority':'high'});}}class W extends _0x32d277{['afterInit'](){const _0x19de56=this['editor'];if(!_0x19de56['plugins']['has']('ListEditing'))return;const _0x44f395=_0x19de56['locale'],_0x5e03ad=_0x19de56['plugins']['get']('TrackChangesEditing'),_0x1bfe78=_0x19de56['plugins']['has']('TodoListEditing'),_0x1d70ea=!!_0x19de56['config']['get']('list.multiBlock');function _0x13f0a8(_0x1e65b8){return{'type':'format','content':''+o(_0x44f395,'*Set\x20format:*\x20%0',_0x1e65b8)};}function _0x3b4610(_0x3711f5){return{'type':'format','content':''+o(_0x44f395,'*Remove\x20format:*\x20%0',_0x3711f5)};}_0x5e03ad['enableDefaultAttributesIntegration']('numberedList'),_0x5e03ad['enableDefaultAttributesIntegration']('bulletedList'),_0x5e03ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x5e03ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x5e03ad['enableDefaultAttributesIntegration']('indentList'),_0x5e03ad['enableDefaultAttributesIntegration']('outdentList'),_0x5e03ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5e03ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e03ad['registerBlockAttribute']('listItemId'),_0x5e03ad['registerBlockAttribute']('listType'),_0x5e03ad['registerBlockAttribute']('listIndent'),_0x1d70ea&&(_0x5e03ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5e03ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1bfe78&&(_0x5e03ad['enableDefaultAttributesIntegration']('todoList'),_0x5e03ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x5e03ad['registerBlockAttribute']('todoListChecked'),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x195cf3=>{const {data:_0x2027f5}=_0x195cf3;if(_0x2027f5&&'todoListChecked'==_0x2027f5['key'])return{'type':'format','content':_0x2027f5['newValue']?o(_0x44f395,'*Check\x20item*'):o(_0x44f395,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5bf56f=>{if(_0x5bf56f['batch']['isUndo'])return!0x1;let _0x2aff77=!0x1;const _0x1d633e=_0x5e03ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3747f5=>'todoListChecked'===_0x5e03ad['_getAttributeKey'](_0x3747f5));for(const _0x448e9a of _0x1d633e){'todo'!=_0x448e9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5e03ad['_findSuggestions'](_0x448e9a['getFirstRange'](),'attribute')['find'](_0x50a25d=>'listType'===_0x5e03ad['_getAttributeKey'](_0x50a25d['suggestion']))||(_0x5bf56f['removeMarker'](_0x448e9a['getFirstMarker']()),_0x2aff77=!0x0));}return _0x2aff77;})),_0x5e03ad['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44f395,'FORMAT_INDENT'));const _0x55f30c={'type':'format','content':''};_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0xd2bb02=>{const {data:_0xd1af07}=_0xd2bb02;if(!_0xd1af07||'listType'!=_0xd1af07['key'])return;let _0x40b168=_0xd2bb02['head'];for(;_0x40b168;){if(_0x40b168['data']&&(('listStyle'==_0x40b168['data']['key']||'listMarkerStyle'==_0x40b168['data']['key'])&&(_0x40b168['data']['newValue']&&'default'!=_0x40b168['data']['newValue']||'default'!=_0x40b168['data']['oldValue']&&!_0xd1af07['newValue'])||!_0x1d70ea&&_0x40b168['data']['key']==m))return _0x55f30c;_0x40b168=_0x40b168['next'];}if(null==_0xd1af07['newValue'])switch(_0xd1af07['oldValue']){case'bulleted':return _0x3b4610(o(_0x44f395,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b4610(o(_0x44f395,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b4610(o(_0x44f395,'ELEMENT_TODO_LIST'));}switch(_0xd1af07['newValue']){case'bulleted':return _0x13f0a8(o(_0x44f395,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13f0a8(o(_0x44f395,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13f0a8(o(_0x44f395,'ELEMENT_TODO_LIST'));}}),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x55d802=>{const {data:_0x155eaf}=_0x55d802;if(_0x155eaf&&'listIndent'==_0x155eaf['key'])return null==_0x155eaf['newValue']||null==_0x155eaf['oldValue']&&0x0==_0x155eaf['newValue']?_0x55f30c:void 0x0;}),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x4871ea=>{if('attribute'!=_0x4871ea['type'])return;const {data:_0x48298f}=_0x4871ea;if(!_0x48298f||'listItemId'!=_0x48298f['key'])return;const _0x566cb0=Te(_0x4871ea);return'newValue'==_0x566cb0?{'type':'format','content':o(_0x44f395,'*Merge:*\x20list\x20item')}:'oldValue'==_0x566cb0?{'type':'format','content':o(_0x44f395,'*Split:*\x20list\x20item')}:_0x55f30c;}),_0x19de56['model']['document']['registerPostFixer'](_0x22be3b=>this['listItemIdFixer'](_0x22be3b)),_0x19de56['model']['document']['registerPostFixer'](_0x575b68=>this['noTrackChangesFixer'](_0x575b68)),_0x19de56['model']['document']['on']('change:data',(_0x2fa27e,_0x58f1dd)=>{if(_0x58f1dd['isUndo']||!_0x58f1dd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e3fbd){if(_0x2e3fbd['batch']['isUndo']||!_0x2e3fbd['batch']['isLocal'])return!0x1;let _0x4c7cd0=!0x1;const _0x30a964=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a6cec=>_0x3a6cec['data']&&'listItemId'==_0x3a6cec['data']['key'])['filter'](_0x40f6a7=>_0x40f6a7['data']['newValue']&&_0x40f6a7['data']['oldValue']);for(const _0x38fac2 of _0x30a964)Te(_0x38fac2)||(_0x2e3fbd['removeMarker'](_0x38fac2['getFirstMarker']()),_0x4c7cd0=!0x0);return _0x4c7cd0;}['noTrackChangesFixer'](_0x480fb3){if(_0x480fb3['batch']['isUndo']||!_0x480fb3['batch']['isLocal'])return!0x1;const _0xeaef08=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xeaef08['trackChangesCommand']['value'])return!0x1;let _0x222c68=!0x1;const _0x33c8e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23ef13=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4630e1=>'attribute'==_0x4630e1['type'])['filter'](_0x26a235=>_0x33c8e8['includes'](_0x26a235['attributeKey']));if(0x0==_0x23ef13['length'])return _0x222c68;for(const _0x14b7c4 of _0x23ef13){const _0x1155ef=_0xeaef08['_findSuggestions'](_0x14b7c4['range'],'attribute')['filter'](_0x426fdd=>!_0x426fdd['meta']['isNextTo'])['map'](_0xccfe25=>_0xccfe25['suggestion'])['filter'](_0x4a0a3c=>{const _0x3e2f05=_0xeaef08['_getAttributeKey'](_0x4a0a3c);return _0x33c8e8['includes'](_0x3e2f05);});if(_0x1155ef['length']){for(const _0x2cd03e of _0x1155ef)_0x480fb3['removeMarker'](_0x2cd03e['getFirstMarker']());_0x222c68=!0x0;}}return _0x222c68;}['assureChains'](){const _0x3737f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37df11=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc421fe;const _0x5c64ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4303e0=>{if(_0x4303e0['data']['oldRange']||!_0x4303e0['data']['newRange'])return null;if(!_0x4303e0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x52c10a}=_0x3737f9['_splitMarkerName'](_0x4303e0['name']);if(!_0x3737f9['hasSuggestion'](_0x52c10a))return null;const _0x1b4e9a=_0x3737f9['getSuggestion'](_0x52c10a);return _0x37df11['includes'](_0x1b4e9a['data']['key']);})['map'](_0xc25f86=>{const {id:_0x5b3256}=_0x3737f9['_splitMarkerName'](_0xc25f86['name']),_0x1d2c30=_0x3737f9['getSuggestion'](_0x5b3256);return _0xc421fe=_0x1d2c30['attributes']['groupId'],_0x1d2c30['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c64ba['size'])return;const _0x4b08c8=_0x3737f9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba538f=>'attribute'==_0xba538f['type']&&_0xba538f['data']&&_0x37df11['includes'](_0xba538f['data']['key'])&&_0xba538f['attributes']['groupId']!=_0xc421fe)['map'](_0x21630e=>({'listItem':_0x21630e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x21630e['attributes']['groupId']})),_0x51cac8=new Set();for(const {groupId:_0x55a4c2,listItem:_0x88825b}of _0x4b08c8)_0x5c64ba['has'](_0x88825b)&&_0x51cac8['add'](_0x55a4c2);for(const _0x46a6ec of _0x3737f9['getSuggestions']())_0x51cac8['has'](_0x46a6ec['attributes']['groupId'])&&_0x46a6ec['setAttribute']('groupId',_0xc421fe);}['_supportLegacySuggestions'](){const _0x109305=this['editor'],_0x18fd80=_0x109305['locale'],_0x14c5cf=_0x109305['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14c5cf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ffb44,_0x3b1131){const _0x31d413=[];for(let _0x345500 of _0x1ffb44)_0x345500['start']['nodeAfter']===_0x345500['end']['parent']&&(_0x345500=_0x109305['model']['createRange'](_0x109305['model']['createPositionAt'](_0x345500['start']['nodeAfter'],0x0))),_0x31d413['push'](_0x345500);_0x109305['model']['change'](_0x4ca0b7=>{const _0x3a3572=_0x109305['model']['document']['selection'],_0x1b534f=Array['from'](_0x3a3572['getRanges']())['map'](_0x579529=>_0x14dd4f['fromRange'](_0x579529));_0x4ca0b7['setSelection'](_0x31d413),_0x109305['commands']['get'](_0x3b1131['commandName'])['refresh'](),_0x3b1131['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x109305['execute'](_0x3b1131['commandName'],..._0x3b1131['commandParams']),_0x4ca0b7['setSelection'](_0x1b534f);for(const _0x1f242a of _0x1b534f)_0x1f242a['detach']();});}),_0x14c5cf['descriptionFactory']['registerElementLabel'](function(_0x55ef69){const _0x3d5a80=!_0x109305['model']['schema']['isObject'](_0x55ef69),_0x2261f1=_0x55ef69['previousSibling'],_0x464bb5=_0x55ef69['nextSibling'],_0xfef34e=_0x55ef69['getAttribute']('listItemId'),_0x5ea3d9=!_0x2261f1||_0x2261f1['getAttribute']('listItemId')!==_0xfef34e,_0x2cced5=!_0x464bb5||_0x464bb5['getAttribute']('listItemId')!==_0xfef34e;return _0x3d5a80&&Boolean(_0xfef34e)&&_0x5ea3d9&&_0x2cced5;},_0x33f141=>o(_0x18fd80,'ELEMENT_LIST_ITEM',_0x33f141));}['_registerLegacyDescription'](){const _0x3c61ed=this['editor'],_0x68990f=_0x3c61ed['locale'];function _0x5be3c3(_0x3d6a1a){const _0x266d95=_0x3c61ed['commands']['get']('bulletedList')['value'],_0x34be82=_0x3c61ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d6a1a?_0x266d95:_0x34be82;}_0x3c61ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d2481){if('formatBlock'!=_0x5d2481['type'])return;const {data:_0x570af9}=_0x5d2481;if(!_0x570af9)return;let _0x911850,_0x2fd532,_0xde4350,_0x153db8;switch(_0x570af9['commandName']){case'bulletedList':_0xde4350=_0x570af9['commandParams'][0x0]['forceValue'],_0x153db8=_0x5be3c3(_0x570af9['commandName']),_0x911850=_0xde4350?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x153db8&&_0x3c61ed['config']['get']('list.multiBlock')||(_0x911850='*Change\x20to:*\x20%0'),_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xde4350=_0x570af9['commandParams'][0x0]['forceValue'],_0x153db8=_0x5be3c3(_0x570af9['commandName']),_0x911850=_0xde4350?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x153db8&&_0x3c61ed['config']['get']('list.multiBlock')||(_0x911850='*Change\x20to:*\x20%0'),_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x911850='*Indent:*\x20%0',_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x911850=function(_0x45f9c8){const _0x33e329=_0x45f9c8['getFirstRange']();let _0x1e4f8e=_0x33e329['start']['nodeAfter'];for(;_0x1e4f8e&&_0x33e329['containsItem'](_0x1e4f8e);){if(_0x1e4f8e['getAttribute']('listIndent')>0x0)return!0x1;_0x1e4f8e=_0x1e4f8e['nextSibling'];}return!0x0;}(_0x5d2481)?o(_0x68990f,'*Format:*\x20remove\x20from\x20%0',o(_0x68990f,function(_0x3ccb8c){return'ELEMENT_'+_0x3ccb8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d2481))):o(_0x68990f,'*Outdent:*\x20%0',o(_0x68990f,'ELEMENT_LIST_ITEM')),_0x2fd532={'type':'format','content':_0x911850};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x570af9['multipleBlocks']&&(_0x911850='*Merge:*\x20%0',_0x2fd532={'type':'deletion','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_LIST_ITEM'))});}return _0x2fd532;});}}function Te(_0x57b144){let _0x52e323=_0x57b144['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x52e323;){const _0x9619f3=_0x52e323['getAttribute']('listItemId');if(!_0x9619f3)return!0x1;if(_0x9619f3==_0x57b144['data']['newValue'])return'newValue';if(_0x9619f3==_0x57b144['data']['oldValue'])return'oldValue';_0x52e323=_0x52e323['previousSibling'];}return!0x1;}class Se extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x324721=this['editor']['config']['get']('list.properties'),_0x3b17c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x324721['styles']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listStyle'),_0x3b17c5['registerBlockAttribute']('listStyle')),_0x324721['reversed']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listReversed'),_0x3b17c5['registerBlockAttribute']('listReversed')),_0x324721['startIndex']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listStart'),_0x3b17c5['registerBlockAttribute']('listStart'));const _0x4abe1b={'type':'format','content':''};_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ffe4b=this['editor']['locale'];_0x3b17c5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ffe4b,'FORMAT_LIST_REVERSED')),_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](_0x37ac45=>{const {data:_0x6e28f3}=_0x37ac45;if(_0x6e28f3&&'listReversed'==_0x6e28f3['key'])return null==_0x6e28f3['newValue']||0x0==_0x6e28f3['newValue']&&null==_0x6e28f3['oldValue']?_0x4abe1b:void 0x0;}),_0x3b17c5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ffe4b,'FORMAT_LIST_START')),_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](_0x47b4cf=>{const {data:_0x2e65f5}=_0x47b4cf;if(_0x2e65f5&&'listStart'==_0x2e65f5['key'])return null==_0x2e65f5['newValue']||0x1==_0x2e65f5['newValue']&&null==_0x2e65f5['oldValue']?_0x4abe1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14715a=>{if(_0x14715a['batch']['isUndo'])return!0x1;let _0x479b01=!0x1;const _0x42764e=_0x3b17c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ba884=>{const _0x4d21c5=_0x3b17c5['_getAttributeKey'](_0x5ba884);return'listStart'==_0x4d21c5||'listReversed'==_0x4d21c5;});for(const _0x59c9c5 of _0x42764e){const _0x3bd771=_0x59c9c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3bd771||'customNumbered'==_0x3bd771)continue;_0x3b17c5['_findSuggestions'](_0x59c9c5['getFirstRange'](),'attribute')['find'](_0xac7c8a=>'listType'==_0x3b17c5['_getAttributeKey'](_0xac7c8a['suggestion']))||(_0x14715a['removeMarker'](_0x59c9c5['getFirstMarker']()),_0x479b01=!0x0);}return _0x479b01;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cc41d){const _0x11dc63=this['editor']['locale'],{data:_0x21ab34}=_0x2cc41d,_0x4f9f84={'type':'format','content':''};if(!_0x21ab34||'listStyle'!=_0x21ab34['key'])return;if(!_0x21ab34['oldValue'])return'default'==_0x21ab34['newValue']?_0x4f9f84:{'type':'format','content':''+o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['newValue'])))};if(!_0x21ab34['newValue']){if('default'==_0x21ab34['oldValue'])return _0x4f9f84;let _0x3823b6=_0x2cc41d['head'];for(;_0x3823b6;){if(_0x3823b6['data']&&'listType'==_0x3823b6['data']['key']&&_0x3823b6['data']['newValue'])return _0x4f9f84;_0x3823b6=_0x3823b6['next'];}return{'type':'format','content':''+o(_0x11dc63,'*Remove\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['oldValue'])))};}if('default'!=_0x21ab34['newValue'])return{'type':'format','content':''+o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['newValue'])))};let _0x3aef28=_0x2cc41d['head'];for(;_0x3aef28;){if(_0x3aef28['data']&&'listType'==_0x3aef28['data']['key']&&_0x3aef28['data']['newValue']&&_0x3aef28['data']['oldValue'])return _0x4f9f84;_0x3aef28=_0x3aef28['next'];}return{'type':'format','content':o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,'ELEMENT_'+_0x2cc41d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x491cc5=this['editor'],_0x387907=_0x491cc5['locale'];_0x491cc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a8af=>{if('formatBlock'!=_0x28a8af['type'])return;const {data:_0x1ee152}=_0x28a8af;if(!_0x1ee152)return;let _0x4602a3,_0x274e98;switch(_0x1ee152['commandName']){case'listStyle':_0x4602a3='*Change\x20to:*\x20%0',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3,o(_0x387907,this['_getTranslationKeyForListStyle'](_0x1ee152['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4602a3=_0x1ee152['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3)};break;case'listStart':_0x4602a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3,_0x1ee152['commandParams'][0x0]['startIndex'])};}return _0x274e98;});}['_getTranslationKeyForListStyle'](_0x5dd8b4){return'ELEMENT_'+function(_0x37be40){if(_e['includes'](_0x37be40))return'bulleted';if(Re['includes'](_0x37be40))return'numbered';return null;}(_0x5dd8b4)['toUpperCase']()+'_LIST_'+_0x5dd8b4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32d277{static get['requires'](){return[_0xc65384];}['init'](){const _0x1a1d95=this['editor'],_0x2bc819=_0x1a1d95['plugins']['get']('TrackChangesEditing'),_0xef40a3=_0x1a1d95['commands']['get']('enter');_0x2bc819['enableCommand']('enter',()=>{_0x1a1d95['model']['change'](_0x3d1b17=>{const _0x291c4e=_0x1a1d95['model']['document']['selection'],_0x21609a=_0x291c4e['getFirstPosition'](),_0xa34627=_0x14dd4f['fromRange'](_0x291c4e['getFirstRange']());if(_0xef40a3['enterBlock'](_0x3d1b17)){const _0x5776e7=_0x1a1d95['model']['createPositionAt'](_0x21609a['parent']['nextSibling'],0x0),_0x15641b=_0x3d1b17['createRange'](_0x21609a,_0x5776e7);_0x2bc819['markInsertion'](_0x15641b);}else _0x3d1b17['setSelection'](_0x3d1b17['createRange'](_0xa34627['end']));_0xa34627['detach'](),_0xef40a3['fire']('afterExecute',{'writer':_0x3d1b17});});}),_0x1a1d95['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1a1d95,'split'),{'priority':'high'}),_0x1a1d95['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xada386,_0x800653,_0x185983)=>{const _0x5e0dad=_0x185983['mapper']['markerNameToElements'](_0x800653['markerName']);if(_0x5e0dad){for(const _0x187c9c of _0x5e0dad)_0x187c9c['hasClass']('ck-suggestion-marker-split')&&(_0x185983['mapper']['unbindElementFromMarkerName'](_0x187c9c,_0x800653['markerName']),_0x185983['writer']['remove'](_0x187c9c));}},{'priority':'high'}),_0x1a1d95['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b8102,_0x5ba37e,_0x350aed)=>{_0x350aed['options']['showSuggestionHighlights']&&De(_0x1a1d95,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b8102,_0x5ba37e,_0x350aed);},{'priority':'high'});}}class Y extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x460912=this['editor']['plugins']['get']('TrackChangesEditing');_0x460912['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x460912['enableCommand']('findNext'),_0x460912['enableCommand']('findPrevious'),_0x460912['enableCommand']('replace'),_0x460912['enableCommand']('replaceAll');}['handleFindCommand'](_0x1a7fc9,_0x43ecd7,_0xe43343={}){const _0x28bdb4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1a7fc9(_0x539307=>{let _0x141d86=('string'==typeof _0x43ecd7?_0x28bdb4['findByTextCallback'](_0x43ecd7,_0xe43343):_0x43ecd7)(_0x539307);Array['isArray'](_0x141d86)&&(_0x141d86={'results':_0x141d86,'searchText':'string'==typeof _0x43ecd7?_0x43ecd7:''});const _0x3e3314=_0x141d86['results']['filter'](_0xfcfbbf=>!0x1===this['_isInDeletionRange'](_0xfcfbbf,_0x539307['item']));return{..._0x141d86,'results':_0x3e3314};},_0xe43343);}['_isInDeletionRange'](_0x52b076,_0x1993fe){const _0x5cb9cd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1993fe,_0x52b076['start']),this['editor']['model']['createPositionAt'](_0x1993fe,_0x52b076['end']));for(const _0x543838 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5cb9cd['getIntersection'](_0x543838['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x32d277{['afterInit'](){const _0x4a29be=this['editor']['locale'],_0x395033=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4101f0,commandName:_0x2c6d64}of ro)this['editor']['plugins']['has'](_0x4101f0)&&(_0x395033['enableDefaultAttributesIntegration'](_0x2c6d64),_0x395033['registerInlineAttribute'](_0x2c6d64));_0x395033['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4a29be,'FORMAT_FONT_SIZE')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4a29be,'FORMAT_FONT_FAMILY')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4a29be,'FORMAT_FONT_COLOR')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4a29be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3758e5=this['editor'],_0x35370f=_0x3758e5['locale'];_0x3758e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ae71=>{const _0x4940af=_0x35370f['t'];if('formatInline'!=_0x42ae71['type'])return;const {data:_0x271765}=_0x42ae71;if(null!=_0x271765){if('fontSize'==_0x271765['commandName']){const _0x2ca4ec=_0x271765['commandParams'][0x0]['value'];if(_0x2ca4ec){const _0x491030=_0x4940af(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5a817a=>_0x5a817a['model']==_0x2ca4ec)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35370f,'*Set\x20font\x20size:*\x20%0',_0x491030)};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x271765['commandName']){const _0x15f9a5=_0x271765['commandParams'][0x0]['value'];return _0x15f9a5?{'type':'format','content':o(_0x35370f,'*Set\x20font\x20family:*\x20%0',_0x15f9a5)}:{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x271765['commandName']){const _0x558705=_0x271765['commandParams'][0x0]['value'];if(_0x558705){const _0x6c11e=_0x9dac81(this['editor']['config']['get']('fontColor.colors'))['find'](_0x51699a=>_0x51699a['model']==_0x558705);let _0xe74109=_0x558705,_0x1dd66e='';return _0x6c11e&&(_0xe74109=_0x6c11e['label'],_0x1dd66e=_0x4940af(_0xe74109)['toLowerCase']()),{'type':'format','content':o(_0x35370f,'*Set\x20font\x20color:*\x20%0',_0x1dd66e)['trim'](),'color':{'value':_0x558705,'title':_0x1dd66e||_0xe74109}};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x271765['commandName']){const _0x3ef7e2=_0x271765['commandParams'][0x0]['value'];if(_0x3ef7e2){const _0x45456d=_0x9dac81(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x472035=>_0x472035['model']==_0x3ef7e2);let _0x6c69f0=_0x3ef7e2,_0x4e626b='';return _0x45456d&&(_0x6c69f0=_0x45456d['label'],_0x4e626b=_0x4940af(_0x6c69f0)['toLowerCase']()),{'type':'format','content':o(_0x35370f,'*Set\x20font\x20background\x20color:*\x20%0',_0x4e626b)['trim'](),'color':{'value':_0x3ef7e2,'title':_0x4e626b||_0x6c69f0}};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x32d277{['afterInit'](){const _0x309d29=this['editor'],_0x22eb85=_0x309d29['plugins']['get']('TrackChangesEditing'),_0x35ef7f=_0x309d29['commands']['get']('copyFormat'),_0x1a4c57=_0x309d29['commands']['get']('pasteFormat');_0x35ef7f&&_0x1a4c57&&(_0x22eb85['enableDefaultAttributesIntegration']('pasteFormat'),_0x22eb85['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2763b6=this['editor'],_0x186671=_0x2763b6['locale'];_0x2763b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a76c2=>{if('formatBlock'!=_0x1a76c2['type']&&'formatInline'!=_0x1a76c2['type'])return;const {data:_0x18f202}=_0x1a76c2;if(_0x18f202&&'pasteFormat'===_0x18f202['commandName']){const _0x40d35c=[],_0x3c354e=_0x18f202['commandParams'][0x0];for(const [_0x4dfbb2,_0x596099]of Object['entries'](_0x3c354e))_0x40d35c['push'](so(_0x2763b6,_0x4dfbb2,_0x596099));return _0x40d35c['length']?{'type':'format','content':o(_0x186671,'*Set\x20format\x20to:*\x20%0',_0x40d35c['join'](',\x20'))}:{'type':'format','content':o(_0x186671,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa76cd,_0x371257,_0x5a8287){const _0x496d3f=_0xa76cd['locale']['t'],_0x38b466=_0x371257['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c514b=_0x496d3f(_0x38b466['charAt'](0x0)['toUpperCase']()+_0x38b466['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5a8287)return _0x1c514b;if('fontColor'===_0x371257||'fontBackgroundColor'===_0x371257){const _0xa3a7fb=_0x9dac81(_0xa76cd['config']['get']('fontColor.colors'))['find'](_0x33b60b=>_0x33b60b['model']==_0x5a8287);return _0x1c514b+'\x20('+(_0xa3a7fb?_0x496d3f(_0xa3a7fb['label'])['toLowerCase']():_0x5a8287)+')';}if('fontSize'===_0x371257&&isNaN(parseFloat(_0x5a8287))){const _0x22f4b6=_0xa76cd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa76cd['config']['get']('fontSize.options'))['find'](_0x1fe36e=>_0x1fe36e['model']==_0x5a8287);return _0x1c514b+'\x20('+(_0x22f4b6?_0x496d3f(_0x22f4b6['title'])['toLowerCase']():_0x5a8287)+')';}return _0x1c514b+'\x20('+_0x5a8287+')';}class nt extends _0x32d277{['_headingOptions'];['afterInit'](){const _0x55e319=this['editor'];if(!_0x55e319['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55e319['config']['get']('heading.options');const _0x2e28df=_0x55e319['locale'],_0x4c6d89=_0x55e319['plugins']['get']('TrackChangesEditing');_0x4c6d89['enableDefaultAttributesIntegration']('heading');for(const _0x477618 of this['_headingOptions'])'paragraph'!=_0x477618['model']&&_0x4c6d89['descriptionFactory']['registerElementLabel'](_0x477618['model'],_0x4a97b2=>{const _0x525d3b=this['_getHeadingLevel'](_0x477618['model']);return null!==_0x525d3b?_0x475128(_0x4a97b2,_0x525d3b):_0x4bb9d2(_0x4a97b2,_0x477618['title']);});function _0x475128(_0xf49c47,_0x9f5e45){return o(_0x2e28df,'ELEMENT_HEADING',[_0xf49c47,_0x9f5e45]);}function _0x4bb9d2(_0x1d07f5,_0x58ec2e){return o(_0x2e28df,'ELEMENT_HEADING_CUSTOM',[_0x1d07f5,_0x58ec2e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x927245=this['editor'],_0x3503ed=_0x927245['locale'];function _0x18b1b9(_0x23c607,_0x40a6b4){return o(_0x3503ed,'ELEMENT_HEADING_CUSTOM',[_0x23c607,_0x40a6b4]);}_0x927245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72f655=>{if('formatBlock'!=_0x72f655['type'])return;const {data:_0x2aee2f}=_0x72f655;if(_0x2aee2f&&'heading'==_0x2aee2f['commandName']){const _0x21e00c=_0x2aee2f['commandParams'][0x0]['value'],_0x9c87b1=this['_getHeadingLevel'](_0x21e00c);if(null!==_0x9c87b1)return{'type':'format','content':o(_0x3503ed,'*Change\x20to:*\x20%0',(_0x5aa635=0x1,_0x1bc03b=_0x9c87b1,o(_0x3503ed,'ELEMENT_HEADING',[_0x5aa635,_0x1bc03b])))};const _0x44d6de=this['_headingOptions']['find'](_0x2c6f36=>_0x2c6f36['model']===_0x21e00c)['title'];return{'type':'format','content':o(_0x3503ed,'*Change\x20to:*\x20%0',_0x18b1b9(0x1,_0x44d6de))};}var _0x5aa635,_0x1bc03b;});}['_getHeadingLevel'](_0x555e7d){const _0x36343d=_0x555e7d['match'](/^heading(\d+)/);if(_0x36343d)return _0x36343d[0x1];const _0x147785=this['_headingOptions']?.['find'](_0x21a8d5=>_0x21a8d5['model']==_0x555e7d);if(_0x147785&&_0x147785['view']){const _0x4bff1a=_0x147785['view'],_0x3c7c5a=(_0x4bff1a['name']??_0x4bff1a)['match'](/^h(\d+)/);if(_0x3c7c5a)return _0x3c7c5a[0x1];}return null;}}class it extends _0x32d277{['afterInit'](){const _0x1fd659=this['editor'];if(!_0x1fd659['plugins']['has']('HighlightEditing'))return;const _0x4e541a=_0x1fd659['plugins']['get']('TrackChangesEditing'),_0x5463da=_0x1fd659['locale'];_0x4e541a['enableDefaultAttributesIntegration']('highlight'),_0x4e541a['registerInlineAttribute']('highlight'),_0x4e541a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5463da,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc46d=this['editor'],_0x3f0e80=_0x1fc46d['locale'];_0x1fc46d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2547d2=>{if('formatInline'!=_0x2547d2['type'])return;const {data:_0x130a06}=_0x2547d2;if(_0x130a06&&'highlight'==_0x130a06['commandName']){const _0x1ba02b=_0x3f0e80['t'],_0x422730=_0x130a06['commandParams'][0x0]['value'];if(_0x422730){const _0x5f4829=_0x1fc46d['config']['get']('highlight.options')['find'](_0x35c3bc=>_0x35c3bc['model']==_0x422730),_0x3925c1=_0x1ba02b(_0x5f4829['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f0e80,'*Set\x20highlight:*\x20%0',_0x3925c1),'color':{'value':_0x5f4829['color'],'title':_0x5f4829['title']}};}return{'type':'format','content':o(_0x3f0e80,'*Remove\x20highlight*',o(_0x3f0e80,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x32d277{['afterInit'](){const _0xbf3d74=this['editor'];if(!_0xbf3d74['plugins']['has']('HorizontalLineEditing'))return;_0xbf3d74['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x21e9d6=_0xbf3d74['plugins']['get']('TrackChangesEditing'),_0x22b380=_0xbf3d74['locale'];_0x21e9d6['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd5bb2d=>o(_0x22b380,'ELEMENT_HORIZONTAL_LINE',_0xd5bb2d)),_0xbf3d74['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ed6cb,{writer:_0x1828d6,options:_0x54049e})=>{if(!_0x54049e['showSuggestionHighlights'])return null;const _0x46865b=_0x1828d6['createContainerElement']('div'),_0x26a9e5=_0x1828d6['createEmptyElement']('hr');return _0x1828d6['addClass']('ck-horizontal-line',_0x46865b),_0x1828d6['insert'](_0x1828d6['createPositionAt'](_0x46865b,0x0),_0x26a9e5),_0x46865b;},'converterPriority':'high'});}}class st extends _0x32d277{['afterInit'](){const _0x5c8a2b=this['editor'];if(!_0x5c8a2b['plugins']['has']('HtmlEmbed'))return;const _0x1de44c=_0x5c8a2b['plugins']['get']('TrackChangesEditing'),_0x1c28e1=_0x5c8a2b['locale'];_0x1de44c['descriptionFactory']['registerElementLabel']('rawHtml',_0x50615a=>o(_0x1c28e1,'ELEMENT_HTML_EMBED',_0x50615a)),_0x1de44c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1de44c['registerBlockAttribute']('value'),_0x1de44c['descriptionFactory']['registerDescriptionCallback'](_0x1994fc=>{if('attribute'!=_0x1994fc['type'])return;const {data:_0x3dda3b}=_0x1994fc;if(_0x3dda3b&&'value'==_0x3dda3b['key']&&_0x1994fc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x67ed86=o(_0x1c28e1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c28e1,'*Change\x20%0\x20content*',_0x67ed86)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31940a=this['editor'],_0x40b6c3=_0x31940a['locale'];_0x31940a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eadd4=>{if('formatBlock'!=_0x4eadd4['type'])return;const {data:_0x294240}=_0x4eadd4;if(_0x294240&&'htmlEmbed'==_0x294240['commandName']){const _0x4af025=o(_0x40b6c3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x40b6c3,'*Change\x20%0\x20content*',_0x4af025)};}});}}class ot extends _0x32d277{['afterInit'](){const _0x49ba12=this['editor'];if(!_0x49ba12['plugins']['has']('ImageEditing'))return;const _0x101bee=_0x49ba12['plugins']['get']('TrackChangesEditing'),_0x556d7e=_0x49ba12['plugins']['get']('ImageUtils'),_0x17836a=_0x49ba12['locale'];_0x101bee['enableCommand']('insertImage'),_0x101bee['descriptionFactory']['registerElementLabel']('imageBlock',_0x216e29=>o(_0x17836a,'ELEMENT_IMAGE',_0x216e29)),_0x101bee['descriptionFactory']['registerElementLabel']('imageInline',_0x1e1fad=>o(_0x17836a,'ELEMENT_INLINE_IMAGE',_0x1e1fad)),_0x101bee['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x17836a,'ELEMENT_CAPTION')),_0x49ba12['plugins']['has']('ImageUploadEditing')&&_0x101bee['enableCommand']('uploadImage'),_0x49ba12['plugins']['has']('ImageBlockEditing')&&_0x49ba12['plugins']['has']('ImageInlineEditing')&&(_0x101bee['enableCommand']('imageTypeInline',(_0x49d577,_0x650116)=>{const _0x53e826=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']);_0x49ba12['model']['change'](()=>{_0x101bee['markBlockFormat'](_0x53e826,{'commandName':'imageTypeInline','commandParams':[_0x650116]},[],'convertBlockImageToInline');});}),_0x101bee['enableCommand']('imageTypeBlock',(_0x551d6a,_0x342aea)=>{_0x49ba12['model']['change'](_0x1fd227=>{let _0x29fd15=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x37a2ba=_0x1fd227['createRangeOn'](_0x29fd15);const _0x22056a=_0x1adf65['fromPosition'](_0x37a2ba['start'],'toPrevious'),_0x5c23c1=_0x1adf65['fromPosition'](_0x37a2ba['end'],'toNext');_0x101bee['forceDefaultExecution'](()=>_0x551d6a(_0x342aea)),_0x29fd15=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x37a2ba=_0x1fd227['createRangeOn'](_0x29fd15);const _0x546865=_0x1fd227['createRange'](_0x22056a,_0x5c23c1);_0x22056a['detach'](),_0x5c23c1['detach'](),_0x101bee['markBlockFormat'](_0x29fd15,{'commandName':'imageTypeInline','commandParams':[_0x342aea]},[],'convertInlineImageToBlock'),_0x546865['start']['isBefore'](_0x37a2ba['start'])&&_0x101bee['markInsertion'](_0x1fd227['createRange'](_0x546865['start'],_0x37a2ba['start']),'convertInlineImageToBlock'),_0x37a2ba['end']['isBefore'](_0x546865['end'])&&_0x101bee['markInsertion'](_0x1fd227['createRange'](_0x37a2ba['end'],_0x546865['end']),'convertInlineImageToBlock');});}),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x101bee['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1555b8])=>{const _0x179223=_0x101bee['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2daabc=_0x1555b8['start'],_0x41f816=_0x1555b8['end'];const _0x3900b8=_0x49ba12['model']['schema']['getNearestSelectionRange'](_0x2daabc,'backward'),_0x2bb3c7=_0x49ba12['model']['schema']['getNearestSelectionRange'](_0x41f816,'forward');_0x3900b8['isCollapsed']&&(_0x2daabc=_0x3900b8['start']),_0x2bb3c7['isCollapsed']&&(_0x41f816=_0x2bb3c7['end']),_0x179223([_0x49ba12['model']['createRange'](_0x2daabc,_0x41f816)]);}),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3716a6),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3716a6)),_0x49ba12['plugins']['has']('ImageCaptionEditing')&&(_0x101bee['enableCommand']('toggleImageCaption',(_0x3e42a5,_0x41bdbd)=>{const _0x422dfa=_0x49ba12['plugins']['get']('ImageCaptionUtils');let _0x2dc42b=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x5d477f=_0x422dfa['getCaptionFromImageModelElement'](_0x2dc42b);_0x49ba12['model']['change'](()=>{if(_0x5d477f)return void _0x101bee['markDeletion'](_0x49ba12['model']['createRangeOn'](_0x5d477f));const _0x18a239=_0x556d7e['isBlockImage'](_0x2dc42b);_0x3e42a5(_0x41bdbd),_0x2dc42b=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x5d477f=_0x422dfa['getCaptionFromImageModelElement'](_0x2dc42b),_0x101bee['markInsertion'](_0x49ba12['model']['createRangeOn'](_0x5d477f),_0x18a239?null:'imageCaption');});}),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3716a6));const _0x5583de=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d615e(_0x1d9e1d,_0x3df6e4){const _0x3bb64b=_0x5583de['findIndex'](({type:_0x1ffef2,subType:_0x40ee65})=>_0x1d9e1d['type']==_0x1ffef2&&_0x1d9e1d['subType']==_0x40ee65),_0x1ff7b0=_0x5583de['findIndex'](({type:_0x2d02df,subType:_0x3014c5})=>_0x3df6e4['type']==_0x2d02df&&_0x3df6e4['subType']==_0x3014c5);if(_0x3bb64b<0x0||_0x1ff7b0<0x0)return!0x1;const _0x3e5c1e=_0x1d9e1d['getFirstRange'](),_0x28093a=_0x3df6e4['getFirstRange']();if((0x0==_0x3bb64b||0x1==_0x3bb64b)&&0x2==_0x1ff7b0&&_0x3e5c1e['isIntersecting'](_0x28093a))return!0x0;if(0x2==_0x3bb64b&&0x3==_0x1ff7b0){const _0x4b4451=_0x101bee['_findSuggestions'](_0x3e5c1e,'insertion')['filter'](({suggestion:_0xe37eac,meta:_0x30637b})=>_0x30637b['isOwn']&&'convertInlineImageToBlock'==_0xe37eac['subType']);if(_0x4b4451['length']>0x1&&_0x28093a['end']['isEqual'](_0x3e5c1e['start']))return!0x0;if(0x1==_0x4b4451['length']&&(_0x3e5c1e['start']['isEqual'](_0x28093a['end'])||_0x3e5c1e['end']['isEqual'](_0x28093a['start'])))return!0x0;}if(0x3==_0x3bb64b&&0x3==_0x1ff7b0&&_0x3e5c1e['start']['isBefore'](_0x28093a['start'])){const _0x56c2f0=_0x3e5c1e['end']['nodeAfter'],_0x5cf400=_0x28093a['start']['nodeBefore'];return _0x556d7e['isBlockImage'](_0x56c2f0)&&_0x56c2f0===_0x5cf400;}return!0x1;}function _0x3716a6(_0x3846c0,_0x45be8b){return _0x4d615e(_0x3846c0,_0x45be8b)?[_0x3846c0,_0x45be8b]:_0x4d615e(_0x45be8b,_0x3846c0)?[_0x45be8b,_0x3846c0]:null;}_0x49ba12['plugins']['has']('ImageResize')&&(_0x101bee['enableDefaultAttributesIntegration']('resizeImage'),_0x101bee['registerBlockAttribute']('resizedWidth'),_0x101bee['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x17836a,'FORMAT_IMAGE_SIZE'))),_0x49ba12['plugins']['has']('ImageTextAlternativeEditing')&&(_0x101bee['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x101bee['registerBlockAttribute']('alt')),_0x49ba12['plugins']['has']('PictureEditing')&&(_0x101bee['registerBlockAttribute']('sources'),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x7a8e4c=>{if('attribute'!=_0x7a8e4c['type'])return;const {data:_0x563dcc}=_0x7a8e4c;return _0x563dcc&&'sources'==_0x563dcc['key']?{'type':'format','content':''}:void 0x0;})),_0x49ba12['plugins']['has']('ImageSizeAttributes')&&(_0x101bee['registerBlockAttribute']('width'),_0x101bee['registerBlockAttribute']('height'),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x2ca697=>{if('attribute'!=_0x2ca697['type'])return;const {data:_0x54c0d2}=_0x2ca697;return!_0x54c0d2||'width'!=_0x54c0d2['key']&&'height'!=_0x54c0d2['key']?void 0x0:{'type':'format','content':''};})),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x34c36f=>{if(!!_0x5583de['find'](({type:_0x20fe78,subType:_0x3e88d1})=>_0x34c36f['type']==_0x20fe78&&_0x34c36f['subType']==_0x3e88d1))return _0x34c36f['previous']?{}:void 0x0;}),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x3abfc2=>{if('insertion'==_0x3abfc2['type']||'deletion'==_0x3abfc2['type']){const _0x14917b=_0x3abfc2['getContainedElement']();if(_0x14917b&&_0x14917b['is']('element','caption'))return{'type':'insertion'==_0x3abfc2['type']?'addObject':'removeObject','element':_0x14917b,'quantity':0x1};}}),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x298088=>'formatBlock'==_0x298088['type']&&'convertInlineImageToBlock'==_0x298088['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x298088['type']&&'convertBlockImageToInline'==_0x298088['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x58b589=>{if('attribute'!=_0x58b589['type'])return;const {data:_0x342834}=_0x58b589;if(!_0x342834||'alt'!=_0x342834['key'])return;const _0x44c90d=_0x342834['newValue'];return _0x44c90d?{'type':'format','content':o(_0x17836a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44c90d+'\x22')}:{'type':'format','content':o(_0x17836a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18dc23=this['editor'],_0x3be3ec=_0x18dc23['locale'];_0x18dc23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272d41=>{if('formatBlock'!=_0x272d41['type']&&'formatInline'!=_0x272d41['type'])return;const {data:_0x272ce6}=_0x272d41;if(_0x272ce6){if('imageTextAlternative'==_0x272ce6['commandName']){const _0x1fa2fe=_0x272ce6['commandParams'][0x0]['newValue'];return _0x1fa2fe?{'type':'format','content':o(_0x3be3ec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fa2fe+'\x22')}:{'type':'format','content':o(_0x3be3ec,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x272ce6['commandName']){const _0x4cfe3e=_0x272ce6['commandParams'][0x0]['width'];return _0x4cfe3e?{'type':'format','content':o(_0x3be3ec,'*Set\x20image\x20width:*\x20%0',_0x4cfe3e)}:{'type':'format','content':o(_0x3be3ec,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19e6e7=this['editor']['locale'],_0x29f27a=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f27a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29f27a['registerBlockAttribute']('src'),_0x29f27a['descriptionFactory']['registerDescriptionCallback'](_0xeccfcb=>{if('attribute'!=_0xeccfcb['type'])return;const {data:_0x59cafb}=_0xeccfcb;return _0x59cafb&&'src'==_0x59cafb['key']?_0x59cafb['newValue']&&_0x59cafb['oldValue']?{'type':'format','content':o(_0x19e6e7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x53b14b=this['editor']['plugins']['get']('TrackChangesEditing');_0x53b14b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x53b14b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53b14b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x53b14b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e9ae=this['editor'],_0x5daa1d=_0x52e9ae['locale'];_0x52e9ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5515c9=>{if('formatBlock'!=_0x5515c9['type']&&'formatInline'!=_0x5515c9['type'])return;const {data:_0x1254d9}=_0x5515c9;if(!_0x1254d9||'replaceImageSource'!=_0x1254d9['commandName'])return;return{'type':'format','content':o(_0x5daa1d,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x32d277{['afterInit'](){const _0x2f1316=this['editor'];if(!_0x2f1316['plugins']['has']('ImageStyleEditing'))return;const _0x543c0c=_0x2f1316['plugins']['get']('TrackChangesEditing'),_0x851765=_0x2f1316['plugins']['get']('ImageUtils'),_0x55bc26={};_0x543c0c['enableCommand']('imageStyle',(_0x7ad9ad,_0x4ca501)=>{const _0x52690d=_0x2f1316['plugins']['get']('Users')['me'],_0x47c4ce=_0x2f1316['commands']['get']('imageStyle');let _0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),_0x52d98f=_0x2f1316['model']['createRangeOn'](_0x43371b),_0x10f439=_0x47c4ce['value'];if(_0x10f439==_0x4ca501['value'])return;const _0x1de771={'commandName':'imageStyle','commandParams':[_0x4ca501],'formatGroupId':_0x12e0b6()};_0x2f1316['model']['change'](()=>{if(_0x543c0c['getSuggestions']()['filter'](_0x3cba7e=>_0x3cba7e['isInContent']&&_0x52690d==_0x3cba7e['author']&&('formatBlock'==_0x3cba7e['type']||'formatInline'==_0x3cba7e['type'])&&('imageStylePreApply'==_0x3cba7e['subType']||'imageStylePostApply'==_0x3cba7e['subType'])&&_0x3cba7e['getFirstRange']()['isEqual'](_0x52d98f))['forEach'](_0x55d2ce=>_0x543c0c['discardSuggestion'](_0x55d2ce['head'])),_0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),_0x52d98f=_0x2f1316['model']['createRangeOn'](_0x43371b),_0x47c4ce['refresh'](),_0x2f1316['commands']['get']('imageTypeInline')['refresh'](),_0x2f1316['commands']['get']('imageTypeBlock')['refresh'](),_0x10f439=_0x47c4ce['value'],_0x10f439!=_0x4ca501['value'])return _0x851765['isInlineImage'](_0x43371b)&&_0x47c4ce['shouldConvertImageType'](_0x4ca501['value'],_0x43371b)?(_0x7ad9ad({..._0x4ca501,'setImageSizes':!0x1}),_0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),void _0x543c0c['markBlockFormat'](_0x43371b,{..._0x1de771,'commandReversedParams':[{'value':_0x10f439||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x851765['isBlockImage'](_0x43371b)?_0x543c0c['markBlockFormat'](_0x43371b,_0x1de771,[],'imageStylePostApply'):_0x543c0c['markInlineFormat'](_0x52d98f,_0x1de771,'imageStylePostApply'));});});for(const _0x4175d3 of _0x2f1316['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55bc26[_0x4175d3['name']]=_0x4175d3['title']['toLowerCase']();_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8c8dc2])=>{_0x851765['setImageNaturalSizeAttributes'](_0x8c8dc2['getContainedElement']());}),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3041c0,_0x2fce1d)=>{_0x543c0c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3041c0,{'commandName':_0x2fce1d['commandName'],'commandParams':_0x2fce1d['commandReversedParams']});}),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15278b,_0x4b5a84){if(_0x585fc0(_0x15278b,_0x4b5a84))return[_0x15278b,_0x4b5a84];if(_0x585fc0(_0x4b5a84,_0x15278b))return[_0x4b5a84,_0x15278b];return null;});const _0x1123cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x585fc0(_0x46a6ac,_0x395e55){const _0x51146c=_0x1123cd['findIndex'](({type:_0x4a0939,subType:_0x1f62d1})=>_0x46a6ac['type']==_0x4a0939&&_0x46a6ac['subType']==_0x1f62d1),_0x474cbb=_0x1123cd['findIndex'](({type:_0x53638f,subType:_0x3c2e52})=>_0x395e55['type']==_0x53638f&&_0x395e55['subType']==_0x3c2e52);if(_0x51146c<0x0||_0x474cbb<0x0)return!0x1;const _0x55b12c=_0x46a6ac['getFirstRange'](),_0x57b4ae=_0x395e55['getFirstRange']();if((0x0==_0x51146c||0x1==_0x51146c)&&0x2==_0x474cbb&&_0x55b12c['isIntersecting'](_0x57b4ae))return!0x0;if(0x2==_0x51146c&&0x3==_0x474cbb){const _0x31ebea=_0x543c0c['_findSuggestions'](_0x55b12c,'insertion')['filter'](({suggestion:_0x45a0ac,meta:_0xc00bb})=>_0xc00bb['isOwn']&&'convertInlineImageToBlock'==_0x45a0ac['subType']);if(_0x31ebea['length']>0x1&&_0x57b4ae['end']['isEqual'](_0x55b12c['start']))return!0x0;if(0x1==_0x31ebea['length']&&(_0x55b12c['start']['isEqual'](_0x57b4ae['end'])||_0x55b12c['end']['isEqual'](_0x57b4ae['start'])))return!0x0;}if(0x3==_0x51146c&&0x3==_0x474cbb&&_0x55b12c['start']['isBefore'](_0x57b4ae['start'])){const _0x56bab7=_0x55b12c['end']['nodeAfter'],_0x566e82=_0x57b4ae['start']['nodeBefore'];return _0x851765['isBlockImage'](_0x56bab7)&&_0x56bab7===_0x566e82;}return!0x1;}_0x2f1316['model']['document']['registerPostFixer'](()=>{let _0x32f511=!0x1;const _0xc4b6cc=Array['from'](_0x2f1316['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f7db,data:_0x564fbd}of _0xc4b6cc){const {group:_0x455de3,type:_0x5cb822,subType:_0xc600a2,id:_0x147086}=_0x543c0c['_splitMarkerName'](_0x25f7db);if('suggestion'==_0x455de3&&_0x543c0c['hasSuggestion'](_0x147086)){if('formatBlock'==_0x5cb822&&('imageStylePreApply'==_0xc600a2||'imageStylePostApply'==_0xc600a2)){const _0x1394d0=_0x543c0c['getSuggestion'](_0x147086);if(_0x564fbd['newRange']){const _0x462fab=_0x1394d0['getFirstRange']()['getContainedElement']();if(_0x851765['isBlockImage'](_0x462fab))continue;_0x543c0c['discardSuggestion'](_0x1394d0),_0x32f511=!0x0;}}if('insertion'==_0x5cb822&&'imageCaption'==_0xc600a2&&!_0x564fbd['newRange']){const _0x1c5d39=_0x543c0c['getSuggestion'](_0x147086);_0x1c5d39['next']&&_0x1c5d39['next']['isInContent']&&(_0x543c0c['discardSuggestion'](_0x1c5d39['next']),_0x32f511=!0x0);}}}return _0x32f511;}),this['_registerLegacyDescription'](_0x55bc26);}['_registerLegacyDescription'](_0x380b0b){const _0x16f5f9=this['editor'],_0x3f0b25=_0x16f5f9['locale'];_0x16f5f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9d8f=>{if('formatBlock'!=_0x3b9d8f['type']&&'formatInline'!=_0x3b9d8f['type'])return;const {data:_0x20b3a0}=_0x3b9d8f;if(!_0x20b3a0||'imageStyle'!=_0x20b3a0['commandName'])return;const _0x38808d=_0x20b3a0['commandParams'][0x0]['value'];return _0x5ea5c9('side'===_0x38808d?o(_0x3f0b25,'FORMAT_SIDE_IMAGE'):_0x380b0b[_0x38808d]||_0x38808d);function _0x5ea5c9(_0x36aa31){return{'type':'format','content':o(_0x3f0b25,'*Format:*\x20%0',_0x36aa31)};}});}}class ct extends _0x32d277{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd0c414){super(_0xd0c414),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x16abb3=this['editor'],_0x2baa6c=_0x16abb3['commands']['get']('importWord'),_0x11d0fa=_0x16abb3['commands']['get']('trackChanges');_0x2baa6c&&(_0x2baa6c['on']('execute',(_0x520abb,[,_0x4d2037])=>{this['_trackChangesValueDuringImport']=_0x11d0fa['value'],_0x4d2037['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2baa6c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2baa6c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11d0fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x16abb3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x129bf9,_0x9f8fcd){const {suggestions:_0x227de4}=_0x9f8fcd,_0x397c0c=this['editor']['commands']['get']('trackChanges'),_0x4de27e=_0x397c0c['value'];this['_trackChangesValueDuringImport']!==_0x4de27e&&(_0x397c0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x227de4&&_0x227de4['forEach'](({id:_0xb79457,type:_0x165809,author:_0x11869b,created_at:_0x57904b})=>{const _0x4925d0={'id':_0xb79457,'type':_0x165809,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x11869b,'createdAt':_0x57904b?new Date(_0x57904b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4925d0);});}}class ut extends _0x32d277{['afterInit'](){const _0x341783=this['editor'],_0x3fb91f=_0x341783['plugins']['get']('TrackChangesEditing');if(_0x341783['plugins']['has']('IndentEditing')&&(_0x3fb91f['enableCommand']('indent'),_0x3fb91f['enableCommand']('outdent')),_0x341783['plugins']['has']('IndentBlock')){for(const _0x537961 of['indentBlock','outdentBlock'])_0x3fb91f['enableDefaultAttributesIntegration'](_0x537961);}const _0x39e625=_0x341783['locale'];_0x3fb91f['registerBlockAttribute']('blockIndent'),_0x3fb91f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39e625,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84e184=this['editor'],_0x4bd954=_0x84e184['locale'],_0x52a7d6=_0x84e184['plugins']['get']('TrackChangesEditing');_0x52a7d6['descriptionFactory']['registerDescriptionCallback'](_0x25adb7=>{if('formatBlock'!=_0x25adb7['type'])return;const {data:_0x1259b1}=_0x25adb7;if(!_0x1259b1)return;if('indentBlock'!=_0x1259b1['commandName']&&'outdentBlock'!=_0x1259b1['commandName'])return;const _0x3301e0=_0x25adb7['getItems']()[0x0],_0x19c1f0=_0x52a7d6['descriptionFactory']['getItemLabel'](_0x3301e0);return'indentBlock'==_0x1259b1['commandName']?{'type':'format','content':o(_0x4bd954,'*Indent:*\x20%0',_0x19c1f0)}:'outdentBlock'==_0x1259b1['commandName']?{'type':'format','content':o(_0x4bd954,'*Outdent:*\x20%0',_0x19c1f0)}:void 0x0;});}}class ft extends _0x32d277{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x32d277{['afterInit'](){const _0x4075b5=this['editor'];if(!_0x4075b5['plugins']['has']('LinkEditing'))return;const _0x50cb7a=_0x4075b5['plugins']['get']('TrackChangesEditing'),_0x565027=_0x4075b5['commands']['get']('link');_0x50cb7a['enableDefaultAttributesIntegration']('link'),_0x50cb7a['enableDefaultAttributesIntegration']('unlink'),_0x50cb7a['registerInlineAttribute']('linkHref');for(const _0x182b46 of _0x565027['manualDecorators'])_0x50cb7a['registerInlineAttribute'](_0x182b46['id']),_0x50cb7a['descriptionFactory']['registerAttributeLabel'](_0x182b46['id'],'link\x20('+_0x182b46['label']['toLowerCase']()+')');_0x50cb7a['descriptionFactory']['registerDescriptionCallback'](_0x2ef529=>{if('attribute'!=_0x2ef529['type'])return;const {data:_0x36275b}=_0x2ef529;if(!_0x36275b||'linkHref'!=_0x36275b['key'])return;const _0x3fbc96=_0x36275b['newValue'],_0x537b7f=_0x4075b5['locale'];return{'type':'format','content':null==_0x3fbc96?o(_0x537b7f,'*Remove\x20link*'):o(_0x537b7f,'*Set\x20link:*\x20%0','\x22'+_0x3fbc96+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f75d9=this['editor'],_0x939987=_0x1f75d9['locale'];_0x1f75d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30518d=>{if('formatInline'!=_0x30518d['type'])return;const {data:_0x44835d}=_0x30518d;if(_0x44835d){if('link'==_0x44835d['commandName']){const _0x488bdb=_0x44835d['commandParams'][0x0];return{'type':'format','content':o(_0x939987,'*Set\x20link:*\x20%0','\x22'+_0x488bdb+'\x22')};}return'unlink'==_0x44835d['commandName']?{'type':'format','content':o(_0x939987,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x32d277{['afterInit'](){const _0x30fc05=this['editor'],_0x59f7c1=_0x30fc05['locale'];if(!_0x30fc05['plugins']['has']('LegacyListEditing'))return;const _0x2e0a42=_0x30fc05['plugins']['get']('TrackChangesEditing'),_0x8b2f8e=_0x30fc05['plugins']['has']('LegacyTodoListEditing');function _0x40e134(_0x406977){return()=>{const _0x26b6d2=_0x30fc05['model']['document']['selection'],_0xa8baa2=_0x30fc05['commands']['get'](_0x406977);if(_0xa8baa2['value'])return void _0x30fc05['execute']('paragraph',{});const _0x3fa533=_0x406977['slice'](0x0,-0x4),_0x4bc4e1=function(_0x205efe,_0x2ad0e7,_0x47840f){let _0x7ad5d8=Array['from'](_0x205efe)['filter'](_0x3d0ab7=>function(_0x25b511,_0x443b85){return _0x443b85['checkChild'](_0x25b511['parent'],'listItem')&&!_0x443b85['isObject'](_0x25b511);}(_0x3d0ab7,_0x47840f));_0x7ad5d8=_0x7ad5d8['filter'](_0x556de5=>!_0x556de5['is']('element','listItem')||_0x556de5['getAttribute']('listType')!=_0x2ad0e7);const _0x3da1bb=new Set();for(const _0x2b980d of _0x7ad5d8)_0x2b980d['is']('element','listItem')?_0x3da1bb['add'](Le(_0x2b980d)):_0x3da1bb['add'](_0x2b980d);return Array['from'](_0x3da1bb);}(_0x26b6d2['getSelectedBlocks'](),_0x3fa533,_0x30fc05['model']['schema']);_0x30fc05['model']['change'](()=>{for(const _0x48d280 of _0x4bc4e1)_0x2e0a42['markBlockFormat'](_0x48d280,{'commandName':_0x406977,'commandParams':[{'forceValue':!_0xa8baa2['value']}],'formatGroupId':'blockName'},Ee(_0x48d280));});};}function _0x36fcbb(_0x1c6686){return()=>{const _0x312388=function(_0x25fcc8){let _0x572307=Array['from'](_0x25fcc8);const _0xb4627e=_0x572307['findIndex'](_0x361088=>'listItem'!=_0x361088['name']);return _0xb4627e>-0x1&&(_0x572307=_0x572307['slice'](0x0,_0xb4627e)),_0x572307;}(_0x30fc05['model']['document']['selection']['getSelectedBlocks']()),_0x314531=_0x30fc05['model']['createRange'](_0x30fc05['model']['createPositionAt'](_0x312388[0x0],'before'),_0x30fc05['model']['createPositionAt'](_0x312388[_0x312388['length']-0x1],'end'));_0x30fc05['model']['change'](()=>{_0x2e0a42['markBlockFormat'](_0x314531,{'commandName':_0x1c6686,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16b3bb){const _0x4ca50c=new Set();for(const _0xd92001 of _0x16b3bb){let _0xe39f9d=_0xd92001['nextSibling'];for(;_0xe39f9d&&_0xe39f9d['getAttribute']('listIndent')>_0xd92001['getAttribute']('listIndent');)_0x4ca50c['add'](_0xe39f9d),_0xe39f9d=_0xe39f9d['nextSibling'];}return Array['from'](_0x4ca50c);}(_0x312388));});};}_0x2e0a42['enableCommand']('numberedList',_0x40e134('numberedList')),_0x2e0a42['enableCommand']('bulletedList',_0x40e134('bulletedList')),_0x8b2f8e&&_0x2e0a42['enableCommand']('todoList',_0x40e134('todoList')),_0x2e0a42['enableCommand']('indentList',_0x36fcbb('indentList')),_0x2e0a42['enableCommand']('outdentList',_0x36fcbb('outdentList')),_0x8b2f8e&&_0x2e0a42['enableCommand']('checkTodoList',()=>{const _0x2064b1=_0x30fc05['commands']['get']('checkTodoList'),_0x4cd0dd=Array['from'](_0x2064b1['_selectedElements']);_0x4cd0dd['filter'](_0xf100a7=>_0xf100a7['getAttribute']('todoListChecked')!=_0x2064b1['value']),_0x30fc05['model']['change'](()=>{for(const _0x3d5078 of _0x4cd0dd)_0x2e0a42['markBlockFormat'](_0x3d5078,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2064b1['value']}]});});}),_0x2e0a42['descriptionFactory']['registerElementLabel']('listItem',_0x19f9f9=>o(_0x59f7c1,'ELEMENT_LIST_ITEM',_0x19f9f9)),_0x2e0a42['descriptionFactory']['registerDescriptionCallback'](_0x13af1c=>{if('formatBlock'!=_0x13af1c['type']&&'formatInline'!=_0x13af1c['type'])return;const {data:_0x49d464}=_0x13af1c;if(_0x49d464){if('numberedList'==_0x49d464['commandName']||'bulletedList'==_0x49d464['commandName']||'todoList'==_0x49d464['commandName'])switch(_0x49d464['commandName']['replace']('List','')){case'bulleted':return _0x4913f9(o(_0x59f7c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4913f9(o(_0x59f7c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4913f9(o(_0x59f7c1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49d464['commandName'])return{'type':'format','content':o(_0x59f7c1,'*Indent:*\x20%0',o(_0x59f7c1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49d464['commandName'])return{'type':'format','content':o(_0x59f7c1,'*Outdent:*\x20%0',o(_0x59f7c1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49d464['commandName'])return _0x49d464['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59f7c1,'*Check\x20item*')}:{'type':'format','content':o(_0x59f7c1,'*Uncheck\x20item*')};}function _0x4913f9(_0x592a82){return{'type':'format','content':o(_0x59f7c1,'*Change\x20to:*\x20%0',_0x592a82)};}});}}function Le(_0x324dda){const _0x50efab=_0x324dda['getAttribute']('listIndent');if(0x0==_0x50efab)return _0x324dda;let _0x10fb1d=_0x324dda;for(;_0x324dda['previousSibling']&&_0x324dda['previousSibling']['is']('element','listItem');){const _0x247ab8=_0x324dda['previousSibling']['getAttribute']('listIndent');if(_0x247ab8==_0x50efab)_0x10fb1d=_0x324dda['previousSibling'];else{if(_0x247ab8<_0x50efab)break;}_0x324dda=_0x324dda['previousSibling'];}return _0x10fb1d;}function Ee(_0x181df9){const _0x1bb176=[];if(_0x181df9['is']('element','listItem')&&_0x181df9['getAttribute']('listIndent')>0x0){let _0x1d1e80=_0x181df9['nextSibling'];for(;_0x1d1e80&&'listItem'==_0x1d1e80['name']&&_0x1d1e80['getAttribute']('listIndent')==_0x181df9['getAttribute']('listIndent');)_0x1bb176['push'](_0x1d1e80),_0x1d1e80=_0x1d1e80['nextSibling'];}return _0x1bb176;}class Q extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x248357=this['editor']['config']['get']('list.properties'),_0x168107=this['editor']['plugins']['get']('TrackChangesEditing');_0x248357['styles']&&_0x168107['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x248357['reversed']&&_0x168107['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x248357['startIndex']&&_0x168107['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x168107['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d36ad,_0x2795e8={}){const _0x5e2e5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5880f7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e2e5b['markMultiRangeBlockFormat'](_0x5880f7,{'commandName':'listStyle','commandParams':[{'type':_0x2795e8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25f651,_0x3c055a={}){const _0x5063db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x371e77=this['_getSuggestionBlocks'](_0x556556=>_0x556556['is']('element','listItem')&&'numbered'===_0x556556['getAttribute']('listType'));if(_0x371e77['length']<0x1)return;const _0x1e0c09=_0x371e77['map'](_0x3df67e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3df67e,'before'),this['editor']['model']['createPositionAt'](_0x3df67e,0x0)));this['editor']['model']['change'](()=>{_0x5063db['markMultiRangeBlockFormat'](_0x1e0c09,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c055a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x57cdf3,_0x3684ed={}){const _0x1ef0c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x275f12=this['_getSuggestionBlocks'](_0x3f7072=>_0x3f7072['is']('element','listItem')&&'numbered'===_0x3f7072['getAttribute']('listType'));if(_0x275f12['length']<0x1)return;const _0x55a3e9=_0x275f12['map'](_0x244117=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244117,'before'),this['editor']['model']['createPositionAt'](_0x244117,0x0)));this['editor']['model']['change'](()=>{_0x1ef0c5['markMultiRangeBlockFormat'](_0x55a3e9,{'commandName':'listStart','commandParams':[{'startIndex':_0x3684ed['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3405c2){if('formatBlock'!=_0x3405c2['type']&&'formatInline'!=_0x3405c2['type'])return;const _0x52f83a=this['editor']['locale'],{data:_0x19ebc7}=_0x3405c2;if(!_0x19ebc7)return;let _0x54a1a9,_0xfc5c7d;switch(_0x19ebc7['commandName']){case'listStyle':_0x54a1a9='*Change\x20to:*\x20%0',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9,o(_0x52f83a,this['_getTranslationKeyForListStyle'](_0x19ebc7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54a1a9=_0x19ebc7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9)};break;case'listStart':_0x54a1a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9,_0x19ebc7['commandParams'][0x0]['startIndex'])};}return _0xfc5c7d;}['_getSuggestionBlocksForListStyle'](){const _0x38e7ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x25ff34=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25ff34[0x0]?.['is']('element','listItem')&&_0x25ff34['unshift'](..._0x38e7ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25ff34[_0x25ff34['length']-0x1]?.['is']('element','listItem')&&_0x25ff34['push'](..._0x38e7ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25ff34=[...new Set(_0x25ff34)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25ff34=_0x25ff34['filter'](_0x35dfed=>_0x35dfed['is']('element','listItem'))),_0x25ff34;}['_getSuggestionBlocks'](_0xd27535){const _0x36479a=this['editor']['plugins']['get']('LegacyListUtils');let _0x192116=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd27535)['map'](_0x178e12=>{const _0x18e19c=this['editor']['model']['createPositionAt'](_0x178e12,0x0);return[..._0x36479a['getSiblingNodes'](_0x18e19c,'backward'),..._0x36479a['getSiblingNodes'](_0x18e19c,'forward')];})['flat']();return _0x192116=[...new Set(_0x192116)],_0x192116;}['_getTranslationKeyForListStyle'](_0x279fec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x279fec)||'default')['toUpperCase']()+'_LIST_'+_0x279fec['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32d277{['afterInit'](){const _0x1ebdba=this['editor'];if(!_0x1ebdba['plugins']['has']('MediaEmbedEditing'))return;const _0x3d3ee6=_0x1ebdba['plugins']['get']('TrackChangesEditing'),_0x851992=_0x1ebdba['locale'];_0x3d3ee6['enableCommand']('mediaEmbed'),_0x3d3ee6['descriptionFactory']['registerElementLabel']('media',_0x5e01eb=>o(_0x851992,'ELEMENT_MEDIA',_0x5e01eb)),_0x1ebdba['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fe02f,{writer:_0x3ee633,options:_0x35b934})=>{if(_0x35b934['showSuggestionHighlights'])return _0x3ee633['createEmptyElement']('div');},'converterPriority':'high'}),_0x1ebdba['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7eee8b,_0xd51397,_0x3f5265)=>{_0x3f5265['options']['showSuggestionHighlights']&&_0x7eee8b['stop']();},{'priority':'high'});}}class mt extends _0x32d277{['afterInit'](){const _0x13f44a=this['editor'];_0x13f44a['plugins']['has']('MentionEditing')&&_0x13f44a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x32d277{['afterInit'](){const _0x150a80=this['editor'];if(!_0x150a80['plugins']['has']('MergeFieldsEditing'))return;const _0x41cafe=_0x150a80['plugins']['get']('TrackChangesEditing'),_0x2d2db4=_0x150a80['locale'];_0x41cafe['enableCommand']('insertMergeField'),_0x41cafe['enableCommand']('insertMergeFieldBlock'),_0x41cafe['enableCommand']('insertMergeFieldImage'),_0x41cafe['descriptionFactory']['registerElementLabel']('mergeField',_0x305b83=>o(_0x2d2db4,'ELEMENT_MERGE_FIELD',_0x305b83)),_0x41cafe['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xb82db4=>o(_0x2d2db4,'ELEMENT_MERGE_FIELD',_0xb82db4)),_0x41cafe['descriptionFactory']['registerDescriptionCallback'](_0x5a62a4=>{if('insertion'!=_0x5a62a4['type']&&'deletion'!=_0x5a62a4['type'])return;const _0x1a6e42=_0x5a62a4['getContainedElement']();if(null==_0x1a6e42)return;const _0x4ef083=_0x150a80['plugins']['get']('MergeFieldsEditing');let _0xf9ae07;switch(_0x4ef083['getMergeFieldType'](_0x1a6e42)){case null:return;case'image':{const _0x4976fe=_0x4ef083['unwrapAffixes'](_0x1a6e42['getAttribute']('src'));_0xf9ae07=_0x4ef083['getLabel'](_0x4976fe)||_0x4976fe;break;}default:{const _0x510674=_0x1a6e42['getAttribute']('id');_0xf9ae07=_0x4ef083['getLabel'](_0x510674)||_0x510674;break;}}return'insertion'==_0x5a62a4['type']?{'type':'insertion','content':o(_0x2d2db4,'*Insert:*\x20%0','\x22'+_0xf9ae07+'\x22\x20'+o(_0x2d2db4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2d2db4,'*Remove:*\x20%0','\x22'+_0xf9ae07+'\x22\x20'+o(_0x2d2db4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x32d277{['afterInit'](){const _0x294468=this['editor'],_0x46ea7e=_0x294468['plugins']['get']('TrackChangesEditing');_0x294468['plugins']['has']('MultiLevelList')&&(_0x46ea7e['enableDefaultAttributesIntegration']('multiLevelList'),_0x46ea7e['registerBlockAttribute']('listMarkerStyle'),_0x46ea7e['descriptionFactory']['registerDescriptionCallback'](_0x40c7ac=>this['handleDescriptions'](_0x40c7ac)));}['handleDescriptions'](_0x47a7b7){const _0x169531=this['editor']['locale'],{data:_0xc5fd30}=_0x47a7b7,_0x785c9b={'type':'format','content':''};if(_0xc5fd30&&'listMarkerStyle'==_0xc5fd30['key']){if(!_0xc5fd30['oldValue'])return{'type':'format','content':o(_0x169531,'*Set\x20format:*\x20%0',o(_0x169531,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc5fd30['newValue']+')'};if(!_0xc5fd30['newValue']){let _0x1b5c0c=_0x47a7b7['head'];for(;_0x1b5c0c;){if(_0x1b5c0c['data']&&'listType'==_0x1b5c0c['data']['key']&&_0x1b5c0c['data']['newValue'])return _0x785c9b;_0x1b5c0c=_0x1b5c0c['next'];}return{'type':'format','content':o(_0x169531,'*Remove\x20format:*\x20%0',o(_0x169531,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc5fd30['oldValue']+')'};}}}}class kt extends _0x32d277{['afterInit'](){const _0x5962f3=this['editor'];if(!_0x5962f3['plugins']['has']('PageBreakEditing'))return;_0x5962f3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x49aea=_0x5962f3['plugins']['get']('TrackChangesEditing'),_0x204c3c=_0x5962f3['locale'];_0x49aea['descriptionFactory']['registerElementLabel']('pageBreak',_0xf7fc5e=>o(_0x204c3c,'ELEMENT_PAGE_BREAK',_0xf7fc5e));}}class bt extends _0x32d277{['afterInit'](){const _0x4c2e26=this['editor'];if(!_0x4c2e26['plugins']['has']('Paragraph'))return;const _0x5f3e62=_0x4c2e26['locale'],_0x1d9b3f=_0x4c2e26['plugins']['get']('TrackChangesEditing');_0x1d9b3f['descriptionFactory']['registerElementLabel']('paragraph',_0x9863ba=>o(_0x5f3e62,'ELEMENT_PARAGRAPH',_0x9863ba)),_0x1d9b3f['enableDefaultAttributesIntegration']('paragraph'),_0x1d9b3f['enableCommand']('insertParagraph'),_0x4c2e26['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c2e26),{'priority':'highest'}),_0x4c2e26['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bbe92,_0x41cd38,_0x36a207)=>{_0x36a207['options']['showSuggestionHighlights']&&nr(_0x4c2e26,{'showActiveMarker':!0x1})(_0x1bbe92,_0x41cd38,_0x36a207);},{'priority':'highest'});const _0x5721dc=_0x1d9b3f['descriptionFactory'];_0x5721dc['registerDescriptionCallback'](_0x174b40=>{if('insertion'!==_0x174b40['type'])return;const {start:_0x12f565,end:_0xfa7f14}=_0x174b40['getFirstRange']();if(!_0x12f565['isTouching'](_0xfa7f14)||!_0x12f565['nodeAfter'])return;const _0x38adc3=_0x4c2e26['model']['schema'],_0xd7a3c2=_0x12f565['nodeAfter'];return _0x38adc3['isBlock'](_0xd7a3c2)&&!_0x38adc3['isLimit'](_0xd7a3c2)&&_0x38adc3['checkChild'](_0xd7a3c2,'$text')?{'type':'insertion','content':o(_0x5f3e62,'*Insert:*\x20%0',_0x5721dc['getItemLabel'](_0xd7a3c2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf659=this['editor'],_0x1a5b2c=_0x3cf659['locale'];_0x3cf659['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aee43=>{if('formatBlock'!=_0x4aee43['type'])return;const {data:_0x4aec1e}=_0x4aee43;return _0x4aec1e&&'paragraph'==_0x4aec1e['commandName']?{'type':'format','content':o(_0x1a5b2c,'*Change\x20to:*\x20%0',o(_0x1a5b2c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2d9e83,{showActiveMarker:_0x3ab1cc=!0x0}={}){return(_0x5c2c0f,_0xabee8f,_0x1bcda6)=>{const _0x5b03ba=_0x2d9e83['plugins']['get']('TrackChangesEditing'),_0xa18821=_0xabee8f['markerRange']['start'],_0x27cdcb=_0xabee8f['markerRange']['end'],_0x25ecee=_0x2d9e83['model']['schema'];if(!_0xa18821['isTouching'](_0x27cdcb)||!_0xa18821['nodeAfter'])return;const _0x186de7=_0xa18821['nodeAfter'];if(_0x25ecee['isBlock'](_0x186de7)&&!_0x25ecee['isLimit'](_0x186de7)&&_0x25ecee['checkChild'](_0x186de7,'$text')){if(!_0x1bcda6['consumable']['consume'](_0xabee8f['markerRange'],_0x5c2c0f['name']))return;const {authorId:_0x1dc193}=_0x5b03ba['_splitMarkerName'](_0xabee8f['markerName']),_0x2ae2af=_0x1bcda6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1dc193}),_0x48a423=_0x1bcda6['mapper']['toViewPosition'](_0x27cdcb);_0x3ab1cc&&_0x5b03ba['activeMarkers']['includes'](_0xabee8f['markerName'])&&_0x1bcda6['writer']['addClass']('ck-suggestion-marker--active',_0x2ae2af),_0x1bcda6['writer']['insert'](_0x48a423,_0x2ae2af),_0x1bcda6['mapper']['bindElementToMarker'](_0x2ae2af,_0xabee8f['markerName']);}};}class yt extends _0x32d277{['afterInit'](){const _0x4b08ed=this['editor'];if(!_0x4b08ed['plugins']['has']('RemoveFormatEditing'))return;_0x4b08ed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430d55=this['editor'];_0x430d55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x191b3d=>{if('formatBlock'!=_0x191b3d['type']&&'formatInline'!=_0x191b3d['type'])return;const {data:_0x4ee1e7}=_0x191b3d;return _0x4ee1e7&&'removeFormat'==_0x4ee1e7['commandName']?{'type':'format','content':o(_0x430d55['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x32d277{['afterInit'](){const _0x31c958=this['editor'];if(!_0x31c958['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x83754f=_0x31c958['plugins']['get']('TrackChangesEditing');_0x83754f['enableCommand']('goToPreviousRestrictedEditingException'),_0x83754f['enableCommand']('goToNextRestrictedEditingException');const _0x2fb335=_0x31c958['plugins']['get']('RestrictedEditingModeEditing');_0x2fb335['enableCommand']('trackChanges'),_0x2fb335['enableCommand']('acceptSuggestion'),_0x2fb335['enableCommand']('discardSuggestion'),_0x2fb335['enableCommand']('acceptAllSuggestions'),_0x2fb335['enableCommand']('discardAllSuggestions'),_0x2fb335['enableCommand']('acceptSelectedSuggestions'),_0x2fb335['enableCommand']('discardSelectedSuggestions');}}class St extends _0x32d277{static get['requires'](){return[_0x4ae6b1];}['init'](){const _0x5da2c9=this['editor'],_0x2c97fc=_0x5da2c9['plugins']['get']('TrackChangesEditing');_0x2c97fc['enableCommand']('shiftEnter'),_0x5da2c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5da2c9),{'priority':'high'}),_0x5da2c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5da2c9),{'priority':'high'}),_0x5da2c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x591b63,_0x4768c5,_0x1857f8)=>{_0x1857f8['options']['showSuggestionHighlights']&&je(_0x5da2c9,{'showActiveMarker':!0x1})(_0x591b63,_0x4768c5,_0x1857f8);}),_0x2c97fc['descriptionFactory']['registerElementLabel']('softBreak',_0x3f15ef=>o(_0x5da2c9['locale'],'ELEMENT_LINE_BREAK',_0x3f15ef));}}function je(_0x2caa22,{showActiveMarker:_0x3d9f29=!0x0}={}){return(_0x1c915b,_0x137350,_0xa1dec3)=>{const _0x10852c=_0x2caa22['plugins']['get']('TrackChangesEditing');if(!_0xa1dec3['consumable']['test'](_0x137350['markerRange'],_0x1c915b['name']))return;const _0x4402d8=_0x2caa22['model'];for(const _0x1d487c of _0x137350['markerRange']['getItems']()){if(!_0x1d487c['is']('element','softBreak'))continue;const _0x5e8ec5='deletion'==_0x137350['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x278957}=_0x10852c['_splitMarkerName'](_0x137350['markerName']),_0xd052d1=_0xa1dec3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e8ec5,'data-author-id':_0x278957}),_0x2fbd6e=_0xa1dec3['mapper']['toViewPosition'](_0x4402d8['createPositionBefore'](_0x1d487c));_0x3d9f29&&_0x10852c['activeMarkers']['includes'](_0x137350['markerName'])&&_0xa1dec3['writer']['addClass']('ck-suggestion-marker--active',_0xd052d1),_0xa1dec3['writer']['insert'](_0x2fbd6e,_0xd052d1),_0xa1dec3['mapper']['bindElementToMarker'](_0xd052d1,_0x137350['markerName']);}};}class At extends _0x32d277{['afterInit'](){const _0x13b3af=this['editor'],_0x5856e2=_0x13b3af['model'],_0x10bc1a=_0x13b3af['locale'];if(!_0x13b3af['plugins']['has']('StandardEditingModeEditing'))return;const _0x19bcae=_0x13b3af['plugins']['get']('TrackChangesEditing'),_0x11eb8d='restrictedEditingException',_0x7befad=_0x13b3af['commands']['get'](_0x11eb8d);_0x19bcae['enableCommand'](_0x11eb8d,(_0x32cec0,_0x34a680={})=>{const _0x37fabd=_0x5856e2['document']['selection'];if(_0x37fabd['isCollapsed'])return void _0x32cec0(_0x34a680);const _0x11b2bb=void 0x0!==_0x34a680['forceValue']?_0x34a680['forceValue']:!_0x7befad['value'];_0x5856e2['change'](()=>{const _0xe581f8=Array['from'](_0x37fabd['getRanges']());for(const _0x48fe8d of _0xe581f8){const _0x399a8c=_0x11b2bb?[_0x48fe8d]:io(_0x11eb8d,_0x48fe8d,_0x5856e2);for(const _0x59a0f1 of _0x399a8c)_0x19bcae['markInlineFormat'](_0x59a0f1,{'commandName':_0x11eb8d,'commandParams':[{'forceValue':_0x11b2bb}]});}});}),_0x19bcae['descriptionFactory']['registerDescriptionCallback'](_0x4f9a4c=>{if('formatBlock'!=_0x4f9a4c['type']&&'formatInline'!=_0x4f9a4c['type'])return;const {data:_0x3a2986}=_0x4f9a4c;return _0x3a2986&&_0x3a2986['commandName']==_0x11eb8d?_0x3a2986['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10bc1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10bc1a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x32d277{['afterInit'](){const _0x4de1d9=this['editor'];if(!_0x4de1d9['plugins']['has']('Style')||!_0x4de1d9['plugins']['has']('DataSchema'))return;const _0x1b88f0=_0x4de1d9['plugins']['get']('TrackChangesEditing'),_0x43bedc=_0x4de1d9['locale'],_0x2be0ec=_0x4de1d9['config']['get']('style')||{},_0x5803b9=_0x4de1d9['plugins']['get']('GeneralHtmlSupport'),_0x366129=_0x4de1d9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4de1d9['plugins']['get']('DataSchema'),_0x2be0ec['definitions']);_0x1b88f0['enableDefaultAttributesIntegration']('style');const _0x34d9ce=new Set();for(const _0x48e330 of _0x366129['block']){const _0x25769c=_0x5803b9['getGhsAttributeNameForElement'](_0x48e330['element']);_0x34d9ce['add'](_0x25769c);}const _0xccc9a9=new Set();for(const _0x19251a of _0x366129['inline']){const _0x2567c1=_0x5803b9['getGhsAttributeNameForElement'](_0x19251a['element']);_0xccc9a9['add'](_0x2567c1);for(const _0x3cba56 of _0x19251a['ghsAttributes'])_0xccc9a9['add'](_0x3cba56);}for(const _0x5bc8c0 of _0x34d9ce)_0x1b88f0['registerBlockAttribute'](_0x5bc8c0),_0x1b88f0['descriptionFactory']['registerAttributeLabel'](_0x5bc8c0,o(_0x43bedc,'FORMAT_STYLE'));for(const _0x632b66 of _0xccc9a9)_0x1b88f0['registerInlineAttribute'](_0x632b66),_0x1b88f0['descriptionFactory']['registerAttributeLabel'](_0x632b66,o(_0x43bedc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ca68=this['editor'],_0xd5b052=_0x11ca68['locale'];_0x11ca68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519358=>{if('formatBlock'!=_0x519358['type']&&'formatInline'!=_0x519358['type'])return;const {data:_0x320a70}=_0x519358;return _0x320a70&&'style'===_0x320a70['commandName']?_0x320a70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd5b052,'*Set\x20format:*\x20%0',_0x320a70['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd5b052,'*Remove\x20format:*\x20%0',_0x320a70['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x32d277{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x33b744){super(_0x33b744),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x42d3c6=this['editor'],_0x3b4a27=_0x42d3c6['model']['document']['selection'];if(!_0x42d3c6['plugins']['has']('TableEditing'))return;const _0x1901f8=_0x42d3c6['locale'],_0x1114ab=_0x42d3c6['plugins']['get']('TrackChangesEditing'),_0x248d7d=_0x42d3c6['plugins']['get']('TableUtils');_0x1114ab['descriptionFactory']['registerElementLabel']('table',_0x565ba1=>o(_0x1901f8,'ELEMENT_TABLE',_0x565ba1)),this['_setupColumnsRowsFixing'](),_0x1114ab['enableCommand']('insertTable'),_0x1114ab['enableCommand']('selectTableRow'),_0x1114ab['enableCommand']('selectTableColumn');for(const _0x58f335 of['insertTableRowAbove','insertTableRowBelow']){const _0x3488ac=_0x42d3c6['commands']['get'](_0x58f335);_0x1114ab['enableCommand'](_0x58f335,_0x3707ee=>{_0x42d3c6['model']['change'](_0x21f2eb=>{_0x3707ee();const _0x3a34b4='above'===_0x3488ac['order'],_0x492c91=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x498bb6=_0x248d7d['getRowIndexes'](_0x492c91),_0x25e386=_0x3a34b4?_0x498bb6['first']-0x1:_0x498bb6['last']+0x1,_0x547059=_0x492c91[0x0]['findAncestor']('table'),_0x51edf7=_0x248d7d['createTableWalker'](_0x547059,{'startRow':_0x25e386,'endRow':_0x25e386}),_0x460a16=Array['from'](_0x51edf7)['map'](_0x22510c=>_0x21f2eb['createRangeOn'](_0x22510c['cell']));_0x1114ab['markMultiRangeInsertion'](_0x460a16,'tableRow');});});}for(const _0x45e873 of['insertTableColumnLeft','insertTableColumnRight']){const _0x220971=_0x42d3c6['commands']['get'](_0x45e873);_0x1114ab['enableCommand'](_0x45e873,_0x3eb3e0=>{_0x42d3c6['model']['change'](_0x528ca7=>{_0x3eb3e0();const _0xf32010='left'===_0x220971['order'],_0x3401e3=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x13a4e2=_0x248d7d['getColumnIndexes'](_0x3401e3),_0x421a42=_0xf32010?_0x13a4e2['first']-0x1:_0x13a4e2['last']+0x1,_0x3e5d88=_0x3401e3[0x0]['findAncestor']('table'),_0xf13a=_0x248d7d['createTableWalker'](_0x3e5d88,{'startRow':0x0,'column':_0x421a42,'includeAllSlots':!0x1}),_0x5aa3ac=Array['from'](_0xf13a)['map'](_0x5ea627=>_0x528ca7['createRangeOn'](_0x5ea627['cell']));_0x1114ab['markMultiRangeInsertion'](_0x5aa3ac,'tableColumn');});});}for(const _0xe64396 of['removeTableRow','removeTableColumn']){const _0xc3828a=_0xe64396['substr'](0xb),_0x1a4862=_0xc3828a['toLowerCase'](),_0x2db53b=_0x1a4862['substr'](0x0,0x3)+'span',_0x3fc01a='table'+_0xc3828a,_0x3711ae='min'+_0xc3828a,_0xd92beb='max'+_0xc3828a;_0x1114ab['enableCommand'](_0xe64396,()=>{_0x42d3c6['model']['change'](_0x3775c1=>{const _0x505d13=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x594bdf=_0x505d13[0x0]['findAncestor']('table');let _0x1975ba;if('removeTableRow'==_0xe64396){const _0x440bd3=_0x248d7d['getRowIndexes'](_0x505d13);_0x1975ba={'startRow':_0x440bd3['first'],'endRow':_0x440bd3['last'],'includeAllSlots':!0x0};}else{const _0x4bcc73=_0x248d7d['getColumnIndexes'](_0x505d13);_0x1975ba={'startColumn':_0x4bcc73['first'],'endColumn':_0x4bcc73['last'],'includeAllSlots':!0x0};}const _0x4acc08=_0x248d7d['createTableWalker'](_0x594bdf,_0x1975ba),_0x32fa30=Array['from'](_0x4acc08)['map'](({cell:_0x5a2b83})=>_0x5a2b83),_0x1d1a76=Ne(_0x32fa30['filter'](_0x42fcb8=>_0x42fcb8['hasAttribute'](_0x2db53b))),_0x1d0510=Ne(_0x32fa30['filter'](_0x2282d3=>!_0x2282d3['hasAttribute'](_0x2db53b)))['map'](_0x4e88ac=>_0x3775c1['createRangeOn'](_0x4e88ac)),_0x55fd25=_0x1114ab['markMultiRangeDeletion'](_0x1d0510,_0x3fc01a);if(_0x55fd25&&('tableRow'==_0x55fd25['subType']||'tableColumn'==_0x55fd25['subType'])){const _0xfee2da=this['_getSuggestionCoords'](_0x55fd25);for(const _0x54734f of _0x1d1a76){const _0x415872=_0x3775c1['createRangeOn'](_0x54734f),_0x248ecd=_0x248d7d['getCellLocation'](_0x54734f),_0x2ca234=_0x54734f['getAttribute'](_0x2db53b)-0x1,_0x1e6e37=_0xfee2da[_0x3711ae],_0x40fece=_0xfee2da[_0xd92beb];_0x1e6e37<=_0x248ecd[_0x1a4862]&&_0x248ecd[_0x1a4862]+_0x2ca234<=_0x40fece&&_0x55fd25['addRange'](_0x415872);}}});});}function _0x5d8160(_0x5b7dad){const _0x39b889=Array['from'](_0x3b4a27['getRanges']())['map'](_0x2fad5c=>_0x14dd4f['fromRange'](_0x2fad5c));_0x42d3c6['model']['change'](_0x59948e=>{const _0x331c38=_0x59948e['batch'];_0x5b7dad=_0x5b7dad['filter'](_0x305804=>'$graveyard'!=_0x305804['root']['rootName']),_0x59948e['setSelection'](_0x5b7dad),_0x42d3c6['commands']['get']('removeTableRow')['refresh'](),_0x42d3c6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x42d3c6['model']['enqueueChange'](()=>{_0x42d3c6['model']['enqueueChange'](_0x331c38,_0x4bf3bf=>{const _0x72fe8a=_0x39b889['filter'](_0x1e5fbd=>'$graveyard'!=_0x1e5fbd['root']['rootName']);_0x72fe8a['length']>0x0&&_0x4bf3bf['setSelection'](_0x72fe8a);for(const _0x5ba268 of _0x39b889)_0x5ba268['detach']();});});});}function _0x53f1d6(_0x8928da){_0x42d3c6['model']['change'](_0x35a05b=>{const _0x151e87=Array['from'](_0x3b4a27['getRanges']())['map'](_0x883b8b=>_0x14dd4f['fromRange'](_0x883b8b)),_0x2d0121=[];for(const _0x324797 of _0x8928da)for(const _0x3406c2 of _0x324797['getItems']({'shallow':!0x0}))_0x2d0121['push'](_0x3406c2);for(const _0x1747ab of _0x2d0121)'$graveyard'!=_0x1747ab['root']['rootName']&&(_0x35a05b['setSelection'](_0x35a05b['createPositionAt'](_0x1747ab,0x0)),_0x42d3c6['commands']['get']('removeTableColumn')['refresh'](),_0x42d3c6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x398988=_0x151e87['filter'](_0x1fd560=>'$graveyard'!=_0x1fd560['root']['rootName']);_0x398988['length']>0x0&&_0x35a05b['setSelection'](_0x398988);for(const _0x48499c of _0x151e87)_0x48499c['detach']();});}function _0x44d2d4(_0x41b755,_0x38aa1c){return _0x38aa1c['every'](_0x5a6d91=>_0x41b755['some'](_0x367453=>_0x367453['end']['isEqual'](_0x5a6d91['start'])||_0x5a6d91['end']['isEqual'](_0x367453['start'])));}function _0x5d094a(_0x17a2e0,_0x1ca951){return!_0x17a2e0['some'](_0x1b7342=>_0x1ca951['some'](_0x1d21dd=>_0x1b7342['isIntersecting'](_0x1d21dd)))&&_0x17a2e0['some'](_0x403cef=>_0x1ca951['some'](_0x38e81c=>_0x403cef['end']['isTouching'](_0x38e81c['start'])));}_0x42d3c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b23ef,_0x59d475,_0xab5394)=>{if(!_0xab5394['options']['showSuggestionHighlights'])return;const _0x20e810=_0x59d475['item'];if(!_0x20e810)return;const _0x5218a1=_0xab5394['mapper']['toViewElement'](_0x20e810);function _0x2b6460(_0x390052){return Array['isArray'](_0x390052)?_0x390052:[_0x390052];}_0x5218a1&&'tableCell'===_0x20e810['name']&&_0xb393f7(_0x5218a1,_0xab5394['writer'],(_0x5e65e4,_0x38bbff,_0x5425e7)=>_0x5425e7['addClass'](_0x2b6460(_0x38bbff['classes']),_0x5e65e4),(_0x3d7725,_0xc16e6,_0x4c2c3b)=>_0x4c2c3b['removeClass'](_0x2b6460(_0xc16e6['classes']),_0x3d7725));},{'priority':'highest'}),_0x1114ab['descriptionFactory']['registerDescriptionCallback'](_0x3e246f=>{if('insertion'!=_0x3e246f['type']&&'deletion'!=_0x3e246f['type'])return;const _0x461d2f=_0x3e246f['getContainedElement']();if(null!=_0x461d2f&&_0x461d2f['is']('element','table')){if('insertion'==_0x3e246f['type']){const _0x4cdd73=_0x3e246f['getItems']()['filter'](_0x48290c=>_0x48290c['is']('$textProxy'))['map'](_0x35d1d7=>_0x35d1d7['data']);if(_0x4cdd73['length'])return{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cdd73['join']('\x20')+'\x22'))};}if('deletion'==_0x3e246f['type']){const _0x51a776=_0x3e246f['getItems']()['filter'](_0x390fbb=>_0x390fbb['is']('$textProxy'))['map'](_0x57b3bb=>_0x57b3bb['data']);if(_0x51a776['length'])return{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51a776['join']('\x20')+'\x22'))};}}}),_0x1114ab['descriptionFactory']['registerDescriptionCallback'](_0x2140e3=>{if('tableRow'==_0x2140e3['subType']){const _0x4c228c=_0x2140e3['getItems']()['filter'](_0x5eacbd=>_0x5eacbd['is']('$textProxy'))['map'](_0x24e65b=>_0x24e65b['data']),_0x37f8f1=this['_getSuggestionCoords'](_0x2140e3),_0x48f000=_0x37f8f1['maxRow']-_0x37f8f1['minRow']+0x1;if('insertion'==_0x2140e3['type'])return _0x4c228c['length']?{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48f000,'\x22'+_0x4c228c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW',_0x48f000))};if('deletion'==_0x2140e3['type'])return _0x4c228c['length']?{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48f000,'\x22'+_0x4c228c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW',_0x48f000))};}if('tableColumn'==_0x2140e3['subType']){const _0x42b803=_0x2140e3['getItems']()['filter'](_0x40b5e1=>_0x40b5e1['is']('$textProxy'))['map'](_0x175911=>_0x175911['data']),_0x5e232c=this['_getSuggestionCoords'](_0x2140e3),_0x2dd508=_0x5e232c['maxColumn']-_0x5e232c['minColumn']+0x1;if('insertion'==_0x2140e3['type'])return _0x42b803['length']?{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dd508,'\x22'+_0x42b803['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN',_0x2dd508))};if('deletion'==_0x2140e3['type'])return _0x42b803['length']?{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dd508,'\x22'+_0x42b803['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN',_0x2dd508))};}}),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d8160),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d8160),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53f1d6),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53f1d6),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x44d2d4),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x44d2d4),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d094a),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d094a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32561e=this['editor'],_0x44dea2=_0x32561e['model']['document']['selection'];return(_0x7da9d5,_0x5d288b)=>{_0x32561e['model']['change'](_0x317807=>{const {commandName:_0x21ee55,commandParams:_0x11fe45}=_0x5d288b;let _0x4288bd=_0x7da9d5[0x0]['end']['nodeBefore'];_0x11fe45&&_0x11fe45[0x0]&&!0x1===_0x11fe45[0x0]['forceValue']&&(_0x4288bd=_0x7da9d5[0x0]['start']['nodeAfter']);const _0x57c04f=_0x317807['createRangeIn'](_0x4288bd);if('$graveyard'==_0x57c04f['root']['rootName'])return;const _0x89d1e5=Array['from'](_0x44dea2['getRanges']())['map'](_0x38ac82=>_0x14dd4f['fromRange'](_0x38ac82));_0x317807['setSelection'](_0x57c04f),_0x32561e['commands']['get'](_0x21ee55)['refresh'](),_0x11fe45['push']({'forceDefaultExecution':!0x0}),_0x32561e['execute'](_0x21ee55,..._0x11fe45);const _0xaef996=_0x89d1e5['filter'](_0x47a93=>'$graveyard'!=_0x47a93['root']['rootName']);_0xaef996['length']>0x0&&_0x317807['setSelection'](_0xaef996);for(const _0x1dbd77 of _0x89d1e5)_0x1dbd77['detach']();});};}['_getCoordsForCells'](_0x2cabe8){const _0x5a39cf=this['editor']['plugins']['get']('TableUtils');let _0x62db3=Number['MAX_SAFE_INTEGER'],_0xf4a5fc=Number['MIN_SAFE_INTEGER'],_0x1b731f=Number['MAX_SAFE_INTEGER'],_0x3391c6=Number['MIN_SAFE_INTEGER'];for(const _0x11599d of _0x2cabe8){if('$graveyard'==_0x11599d['root']['rootName'])continue;const {row:_0x15340a,column:_0x5906d8}=_0x5a39cf['getCellLocation'](_0x11599d),_0x423765=_0x11599d['hasAttribute']('rowspan')?_0x11599d['getAttribute']('rowspan')-0x1:0x0,_0x476e1a=_0x11599d['hasAttribute']('colspan')?_0x11599d['getAttribute']('colspan')-0x1:0x0;_0x62db3=_0x15340a<_0x62db3?_0x15340a:_0x62db3,_0xf4a5fc=_0x15340a+_0x423765>_0xf4a5fc?_0x15340a+_0x423765:_0xf4a5fc,_0x1b731f=_0x5906d8<_0x1b731f?_0x5906d8:_0x1b731f,_0x3391c6=_0x5906d8+_0x476e1a>_0x3391c6?_0x5906d8+_0x476e1a:_0x3391c6;}return{'minRow':_0x62db3,'maxRow':_0xf4a5fc,'minColumn':_0x1b731f,'maxColumn':_0x3391c6};}['_setupColumnsRowsFixing'](){const _0x5e1427=this['editor'],_0x374d2c=_0x5e1427['plugins']['get']('TrackChangesEditing'),_0x4dd91b=_0x5e1427['plugins']['get']('TableUtils');_0x5e1427['model']['document']['on']('change:data',()=>{const _0x3d4024=Array['from'](_0x5e1427['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x284566,data:_0x559c2a}of _0x3d4024){const {group:_0x42df26,id:_0x3c4ead,subType:_0xd74c3a}=_0x374d2c['_splitMarkerName'](_0x284566);if('suggestion'!=_0x42df26)continue;if(null!=_0x559c2a['oldRange'])continue;const _0x1987fe=_0x374d2c['getSuggestion'](_0x3c4ead);this['_tablePostFixingSubtypes']['includes'](_0xd74c3a)&&this['_tableSuggestions']['add'](_0x1987fe);}},{'priority':'low'});const _0x56b2c7=(_0x100db3,_0x423ccf)=>{let _0x3514f6=!0x1;const _0x58110b=_0x423ccf['createRangeOn'](_0x100db3),_0xc1d9a6=_0x100db3['findAncestor']('table'),_0x692e60=_0x4dd91b['getCellLocation'](_0x100db3);for(const _0x161fa1 of this['_tableSuggestions']){const _0x52fa75=_0x161fa1['subType'],_0xd0ae43=_0x52fa75['startsWith']('tablePaste'),_0x310f98=_0x52fa75['substr'](_0xd0ae43?0xa:0x5),_0x55649e=_0x310f98['toLowerCase'](),_0x2b1abc=_0x55649e['substr'](0x0,0x3)+'span',_0x22b1a8='min'+_0x310f98,_0xdc794b='max'+_0x310f98;if(!_0x161fa1['isInContent'])continue;if(_0xc1d9a6!=_0x161fa1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x161fa1['isIntersectingWithRange'](_0x58110b))continue;const _0x3e641c=_0x100db3['hasAttribute'](_0x2b1abc)?_0x100db3['getAttribute'](_0x2b1abc)-0x1:0x0,_0x1712f1=this['_getSuggestionCoords'](_0x161fa1),_0x3b7032=_0x1712f1[_0x22b1a8],_0x55cd64=_0x1712f1[_0xdc794b];_0x3b7032<=_0x692e60[_0x55649e]&&_0x692e60[_0x55649e]+_0x3e641c<=_0x55cd64&&(_0x161fa1['addRange'](_0x58110b),_0x3514f6=!0x0);}return _0x3514f6;};_0x5e1427['model']['document']['registerPostFixer'](_0x120cb9=>{let _0x57d35e=!0x1;for(const _0x486d0e of _0x5e1427['model']['document']['differ']['getChanges']())if('insert'==_0x486d0e['type']){if('tableRow'==_0x486d0e['name']){for(const _0x2431a7 of _0x486d0e['position']['nodeAfter']['getChildren']())_0x57d35e=_0x57d35e||_0x56b2c7(_0x2431a7,_0x120cb9);}else'tableCell'==_0x486d0e['name']&&(_0x57d35e=_0x57d35e||_0x56b2c7(_0x486d0e['position']['nodeAfter'],_0x120cb9));}return _0x57d35e;});}['_getSuggestionCoords'](_0x1b4013){return this['_getCoordsForCells'](_0x1b4013['getRanges']()['map'](_0x53fe31=>_0x53fe31['start']['nodeAfter']));}}function Ne(_0x2dfc57){return Array['from'](new Set(_0x2dfc57)['values']());}class _t extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x4c2e46=this['editor'],_0x342ded=_0x4c2e46['model']['document']['selection'],_0x3cc898=_0x4c2e46['locale'];if(!_0x4c2e46['plugins']['has']('TableEditing'))return;const _0x204651=_0x4c2e46['plugins']['get']('TrackChangesEditing'),_0x479093=_0x4c2e46['plugins']['get']('TableUtils'),_0x39ee4b=_0x4c2e46['plugins']['get'](vt);_0x39ee4b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x204651['enableCommand']('mergeTableCells',()=>{const _0x30ea39=_0x479093['getSelectionAffectedTableCells'](_0x4c2e46['model']['document']['selection']);_0x4c2e46['model']['change'](()=>{_0x204651['markMultiRangeBlockFormat'](_0x30ea39,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c2e46['commands']['get']('mergeTableCells')['on']('execute',(_0x5aba41,_0x22159c)=>{_0x4c2e46['commands']['get']('trackChanges')['value']&&(_0x22159c['length']>0x0&&_0x22159c[_0x22159c['length']-0x1]&&_0x22159c[_0x22159c['length']-0x1]['forceDefaultExecution']||_0x204651['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5aba41['stop']());},{'priority':'highest'});for(const _0x1d9ddf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25914d=_0x4c2e46['commands']['get'](_0x1d9ddf);_0x204651['enableCommand'](_0x1d9ddf,()=>{const _0x25efe1=_0x4c2e46['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f60aa=>_0x3f60aa['is']('element','tableCell')),_0x4957e9=_0x25914d['value'];_0x4c2e46['model']['change'](()=>{_0x204651['markMultiRangeBlockFormat']([_0x25efe1,_0x4957e9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x10aa02 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x192441=_0x4c2e46['commands']['get'](_0x10aa02);_0x204651['enableCommand'](_0x10aa02,()=>{const _0x324f38=_0x479093['getSelectionAffectedTableCells'](_0x4c2e46['model']['document']['selection'])[0x0],_0x597e44=_0x324f38['findAncestor']('table'),{column:_0x2f349e,row:_0x4beb77}=_0x479093['getCellLocation'](_0x324f38);let _0x4576eb=[];if('horizontally'==_0x192441['direction']){const _0x1bb1c0=_0x479093['createTableWalker'](_0x597e44,{'startRow':_0x4beb77,'endRow':_0x4beb77,'includeAllSlots':!0x0});_0x4576eb=Array['from'](_0x1bb1c0)['map'](_0x15d700=>_0x15d700['cell']);}else{const _0x59e742=_0x479093['createTableWalker'](_0x597e44,{'column':_0x2f349e,'includeAllSlots':!0x0});_0x4576eb=Array['from'](_0x59e742)['map'](_0x39f6a7=>_0x39f6a7['cell']);}_0x4c2e46['model']['change'](_0x4ad30f=>{_0x204651['markBlockFormat'](_0x4ad30f['createRangeOn'](_0x324f38),{'commandName':_0x10aa02,'commandParams':[]},_0x4576eb,_0x10aa02);});});}_0x204651['descriptionFactory']['registerDescriptionCallback'](_0x21ccda=>{if('formatBlock'!=_0x21ccda['type']&&'formatInline'!=_0x21ccda['type'])return;const {data:_0x3b76f7}=_0x21ccda;return _0x3b76f7&&'mergeTableCells'==_0x3b76f7['commandName']?{'type':'format','content':o(_0x3cc898,'*Merge\x20cells*')}:void 0x0;}),_0x204651['descriptionFactory']['registerDescriptionCallback'](_0x4660c6=>{if('formatBlock'!=_0x4660c6['type']&&'formatInline'!=_0x4660c6['type'])return;const {data:_0x3c4db4}=_0x4660c6;return _0x3c4db4?'splitTableCellVertically'==_0x3c4db4['commandName']?{'type':'format','content':o(_0x3cc898,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c4db4['commandName']?{'type':'format','content':o(_0x3cc898,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x331ea7=_0x39ee4b['_acceptFormatSuggestionCallbackFactory']();for(const _0x54b9ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54b9ff,'accept',_0x331ea7);for(const _0x738dbe of['splitTableCellVertically','splitTableCellHorizontally'])_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x738dbe,'accept',_0x331ea7);_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ab738=>{_0x4c2e46['model']['change'](_0x312d75=>{const _0xfaef2=Array['from'](_0x342ded['getRanges']())['map'](_0x17431c=>_0x14dd4f['fromRange'](_0x17431c));_0x312d75['setSelection'](_0x4ab738),_0x4c2e46['commands']['get']('mergeTableCells')['refresh'](),_0x4c2e46['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b6538=_0xfaef2['filter'](_0x4bae36=>'$graveyard'!=_0x4bae36['root']['rootName']);_0x3b6538['length']>0x0&&_0x312d75['setSelection'](_0x3b6538);for(const _0x271e73 of _0xfaef2)_0x271e73['detach']();});});for(const _0x7d08ff of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x504985=_0x4c2e46['commands']['get'](_0x7d08ff);_0x504985['on']('set:isEnabled',(_0x19488e,_0x59aa70,_0x4da146)=>{if(_0x4da146){const _0x2dbe27=_0x4c2e46['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x570fc1=>_0x570fc1['is']('element','tableCell'));this['_areMergableCells'](_0x504985['value'],_0x2dbe27)||(_0x19488e['return']=!0x1,_0x19488e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55b018=this['editor']['commands']['get']('mergeTableCells'),_0x3a3541=this['editor']['plugins']['get']('TableUtils');if(!_0x55b018['isEnabled'])return!0x1;const _0x296d07=_0x3a3541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ab8ed of _0x296d07)for(const _0x2ca5ce of _0x296d07)if(_0x2ab8ed!=_0x2ca5ce&&!this['_areMergableCells'](_0x2ab8ed,_0x2ca5ce))return!0x1;return!0x0;}['_areMergableCells'](_0x502e42,_0x113dcd){const _0x15da75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28c55a=this['editor']['model']['createRangeOn'](_0x502e42),_0x34097f=this['editor']['model']['createRangeOn'](_0x113dcd),_0x33e724=new Set(),_0x3ed867=new Set();for(const _0x892931 of _0x15da75['getSuggestions']())if(('insertion'==_0x892931['type']||'deletion'==_0x892931['type']||'mergeTableCells'==_0x892931['subType'])&&_0x892931['isInContent']){for(const _0x4a96d5 of _0x892931['getRanges']())_0x4a96d5['containsRange'](_0x28c55a,!0x0)&&_0x33e724['add'](_0x892931['type']+':'+_0x892931['author']['id']),_0x4a96d5['containsRange'](_0x34097f,!0x0)&&_0x3ed867['add'](_0x892931['type']+':'+_0x892931['author']['id']);}if(_0x33e724['size']!=_0x3ed867['size'])return!0x1;for(const _0x1f6fbb of _0x33e724)if(!_0x3ed867['has'](_0x1f6fbb))return!0x1;return!0x0;}}class Ct extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x1bf4da=this['editor'];if(!_0x1bf4da['plugins']['has']('TableEditing'))return;const _0x1bf07e=_0x1bf4da['locale'],_0x16a7e8=_0x1bf4da['plugins']['get']('TrackChangesEditing');_0x16a7e8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x16a7e8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x16a7e8['registerBlockAttribute']('headingRows'),_0x16a7e8['registerBlockAttribute']('headingColumns'),_0x16a7e8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1bf07e,'FORMAT_HEADER_ROW')),_0x16a7e8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1bf07e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c902=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e8bf=this['editor']['plugins']['get']('TableUtils'),_0x383208=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x143e65({showActiveMarker:_0x2d825b=!0x0,setDataAttribute:_0x4174b9=!0x0}={}){return(_0x554e0d,_0xf101b8,_0x490734)=>{const {type:_0x1b82a9,id:_0x53285e}=_0x43c902['_splitMarkerName'](_0xf101b8['markerName']),_0x1c892c=_0x43c902['getSuggestion'](_0x53285e),_0x1ed6de=_0x1c892c['data'];if('formatBlock'!=_0x1c892c['type']||!_0x1ed6de||'setTableColumnHeader'!=_0x1ed6de['commandName'])return;if(_0xf101b8['item'])return void _0x554e0d['stop']();if(!_0x490734['consumable']['consume'](_0xf101b8['markerRange'],_0x554e0d['name']))return;const _0x2b63fe=_0xf101b8['markerRange']['start']['nodeAfter'],_0x517ee5=_0xf101b8['markerRange']['end']['nodeBefore'],_0x1f3a30=_0x2b63fe['parent']['parent'],{column:_0x21f50b}=_0x14e8bf['getCellLocation'](_0x2b63fe),{column:_0x56f9a2}=_0x14e8bf['getCellLocation'](_0x517ee5);for(let _0xa2e835=_0x21f50b;_0xa2e835<=_0x56f9a2;_0xa2e835++){const _0x46fd70=_0x14e8bf['createTableWalker'](_0x1f3a30,{'column':_0xa2e835,'includeAllSlots':!0x1});for(const _0xcc7894 of _0x46fd70){const _0x29fc31=_0xcc7894['cell'],_0x46deb8=_0x490734['mapper']['toViewElement'](_0x29fc31);_0x490734['writer']['addClass']('ck-suggestion-marker-'+_0x1b82a9,_0x46deb8),_0x4174b9&&_0x490734['writer']['setAttribute']('data-suggestion',_0x53285e,_0x46deb8),_0x490734['mapper']['bindElementToMarker'](_0x46deb8,_0xf101b8['markerName']),_0x2d825b&&(_0x43c902['activeMarkers']['includes'](_0xf101b8['markerName'])?_0x490734['writer']['addClass']('ck-suggestion-marker--active',_0x46deb8):_0x490734['writer']['removeClass']('ck-suggestion-marker--active',_0x46deb8));}}};}_0x43c902['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x383208),_0x43c902['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x383208),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x143e65(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x404ce8,_0x247994,_0x553596)=>{_0x553596['options']['showSuggestionHighlights']&&_0x143e65({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x404ce8,_0x247994,_0x553596);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1155e4,_0x2c9619,_0xd61e85)=>{const {type:_0x47b7fb,id:_0x12e194}=_0x43c902['_splitMarkerName'](_0x2c9619['markerName']),_0x52c09c=_0x43c902['getSuggestion'](_0x12e194),_0x2fa6d6=_0x52c09c['data'];if('formatBlock'!=_0x52c09c['type']||!_0x2fa6d6||'setTableColumnHeader'!=_0x2fa6d6['commandName'])return;const _0x416abe=_0xd61e85['mapper']['markerNameToElements'](_0x2c9619['markerName']);if(_0x416abe){for(const _0x4cf179 of _0x416abe)_0xd61e85['writer']['removeClass']('ck-suggestion-marker-'+_0x47b7fb,_0x4cf179),_0xd61e85['writer']['removeClass']('ck-suggestion-marker--active',_0x4cf179),_0xd61e85['writer']['removeAttribute']('data-suggestion',_0x4cf179),_0xd61e85['mapper']['unbindElementFromMarkerName'](_0x4cf179,_0x2c9619['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf4da02=this['editor'],_0x1d66a2=_0xf4da02['locale'];function _0x10918c(_0x2c5784){return{'type':'format','content':o(_0x1d66a2,'*Format:*\x20%0',_0x2c5784)};}_0xf4da02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27d485=>{if('formatBlock'!=_0x27d485['type'])return;const {data:_0xe75452}=_0x27d485;if(_0xe75452){if('setTableRowHeader'==_0xe75452['commandName']){const _0xf2991=_0xe75452['commandParams'][0x0]['forceValue'];return _0x10918c(o(_0x1d66a2,_0xf2991?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe75452['commandName']){const _0x286c4=_0xe75452['commandParams'][0x0]['forceValue'];return _0x10918c(o(_0x1d66a2,_0x286c4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xe7b38a=>[_0xe7b38a,null]));class Nt extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x531162=this['editor'];if(!_0x531162['plugins']['has']('TableClipboard'))return;const _0xda7204=_0x531162['plugins']['get']('TrackChangesEditing'),_0x3de8e0=_0x531162['plugins']['get']('TableUtils'),_0x2b5d87=_0x531162['plugins']['get'](vt),_0x49ddf0=_0x531162['plugins']['get']('TableClipboard');_0x2b5d87['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x531162['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x531162['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2c7df3=null;_0x531162['model']['on']('insertContent',(_0x212f88,_0x1bd73d)=>{const [_0x48c311,_0x53eb67]=_0x1bd73d,_0x3d5b57=_0x1bd73d[_0x1bd73d['length']-0x1];_0x3d5b57&&_0x3d5b57['forceDefaultExecution']||_0xda7204['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3028e1,_0x51323f,_0x50e39e,_0xd46d70,_0x47d821){if(_0x51323f&&!_0x51323f['is']('documentSelection'))return!0x1;const _0x29c728=_0x47d821['getTableIfOnlyTableInContent'](_0x3028e1,_0x50e39e);if(!_0x29c728||!Ue(_0x29c728,void 0x0,_0xd46d70))return!0x1;const _0x18ece2=_0xd46d70['getSelectionAffectedTableCells'](_0x50e39e['document']['selection']);if(!_0x18ece2['length'])return!0x1;const _0x480dc1=_0x18ece2[0x0]['findAncestor']('table'),_0x3731d8=_0xd46d70['getRowIndexes'](_0x18ece2),_0x393c05=_0xd46d70['getColumnIndexes'](_0x18ece2),_0x381979={'startRow':_0x3731d8['first'],'endRow':_0x3731d8['last'],'startColumn':_0x393c05['first'],'endColumn':_0x393c05['last']};return 0x1==_0x18ece2['length']&&(_0x381979['endRow']+=_0xd46d70['getRows'](_0x29c728)-0x1,_0x381979['endColumn']+=_0xd46d70['getColumns'](_0x29c728)-0x1),Ue(_0x480dc1,_0x381979,_0xd46d70);}(_0x48c311,_0x53eb67,_0x531162['model'],_0x3de8e0,_0x49ddf0)&&(_0x212f88['stop'](),_0x2c7df3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x531162['model']['change'](()=>{_0x531162['model']['insertContent'](_0x1bd73d[0x0],_0x1bd73d[0x1],_0x1bd73d[0x2],{'forceDefaultExecution':!0x0});const _0x1c2145=_0x12e0b6(),{rowInsertionRanges:_0x3d2128,columnInsertionRanges:_0x5a6afc,insertionRanges:_0x1000ab,deletionRanges:_0x5e015a,cells:_0x49fb12}=_0x2c7df3;_0x3d2128['length']&&_0xda7204['markMultiRangeInsertion'](_0x3d2128,'tablePasteRow',{'tablePasteChainId':_0x1c2145}),_0x5a6afc['length']&&_0xda7204['markMultiRangeInsertion'](_0x5a6afc,'tablePasteColumn',{'tablePasteChainId':_0x1c2145}),_0x1000ab['length']&&(_0xda7204['markMultiRangeInsertion'](_0x1000ab,'tablePaste',{'tablePasteChainId':_0x1c2145,'skipNestingCheck':!0x0}),_0x1000ab['forEach'](_0x133c72=>_0x133c72['detach']?.())),_0x5e015a['length']&&(_0xda7204['markMultiRangeDeletion'](_0x5e015a,'tablePaste',{'tablePasteChainId':_0x1c2145,'skipNestingCheck':!0x0}),_0x5e015a['forEach'](_0x4bb058=>_0x4bb058['detach']?.()));const _0x28428e=_0xda7204['markMultiRangeBlockFormat'](_0x49fb12['map'](({element:_0x739594})=>_0x739594),{'formatGroupId':_0x12e0b6()},[],'tablePasteCell',{'tablePasteChainId':_0x1c2145});if(_0x28428e){const _0x547c63=_0x28428e['getMarkers'](),_0x522acb=[];for(const {element:_0x19b7d5,attributes:_0x4808af}of _0x49fb12){if(!_0x4808af)continue;const _0x2263d2=_0x531162['model']['createRangeOn'](_0x19b7d5),_0x239517=_0x547c63['find'](_0x57019a=>_0x57019a['getRange']()['isEqual'](_0x2263d2));_0x239517&&_0x522acb['push']([_0x239517['name'],_0x4808af]);}_0x522acb['length']&&_0x28428e['setAttribute']('markerAttributes',Object['fromEntries'](_0x522acb));}_0x2c7df3=null;}));},{'priority':_0x3e5933['high']+0xa}),_0x531162['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3edbc0,_0x189dda)=>{const [_0xa4ba98,_0x4db285,,_0x4e3e22]=_0x189dda;if(!_0x2c7df3)return;_0x3edbc0['stop']();const _0x3a2ca1=_0xa4ba98['cell'],_0x59a097=_0x4db285,_0x22e89=Oe(_0x3a2ca1),_0x471b4e=Oe(_0x59a097);_0x3edbc0['return']=_0x3a2ca1;let _0x17fc54=null,_0xb9e8fd=null;if(_0x471b4e||_0x22e89){if(_0x22e89&&!_0x471b4e){_0x4e3e22['remove'](_0x3a2ca1['getChild'](0x0));for(const _0x5b1b48 of Array['from'](_0x59a097['getChildren']()))_0x4e3e22['insert'](_0x5b1b48,_0x3a2ca1,'end');const _0x51aa27=_0x2c7df3['rowInsertionIndexes']['includes'](_0xa4ba98['row']),_0x3b1eb0=_0x2c7df3['columnInsertionIndexes']['includes'](_0xa4ba98['column']);_0x51aa27||_0x3b1eb0||(_0x17fc54=_0x14dd4f['fromRange'](_0x4e3e22['createRangeIn'](_0x3a2ca1)));}else _0x471b4e&&!_0x22e89&&(_0xb9e8fd=_0x4e3e22['createRangeIn'](_0x3a2ca1));}else{const _0x50545d=_0x4e3e22['createElement']('tableCellSuggestion'),_0x2af8aa=_0x4e3e22['createElement']('tableCellSuggestion');_0x4e3e22['wrap'](_0x4e3e22['createRangeIn'](_0x3a2ca1),_0x2af8aa),_0x4e3e22['insert'](_0x50545d,_0x3a2ca1,0x0);for(const _0x1bba70 of Array['from'](_0x59a097['getChildren']()))_0x4e3e22['insert'](_0x1bba70,_0x50545d,'end');_0x17fc54=_0x14dd4f['fromRange'](_0x4e3e22['createRangeOn'](_0x50545d)),_0xb9e8fd=_0x14dd4f['fromRange'](_0x4e3e22['createRangeOn'](_0x2af8aa));}const _0x10c4fb=Array['from'](_0x59a097['getAttributes']())['filter'](([_0x29aa65])=>Be['includes'](_0x29aa65));_0x2c7df3['cells']['push']({'element':_0x3a2ca1,'attributes':_0x10c4fb['length']?Object['fromEntries'](_0x10c4fb):null}),_0x17fc54&&_0x2c7df3['insertionRanges']['push'](_0x17fc54),_0xb9e8fd&&_0x2c7df3['deletionRanges']['push'](_0xb9e8fd);},{'priority':'high'}),_0x3de8e0['on']('insertColumns',(_0x4786c7,_0x31b4e1)=>{const [_0x10e43c,_0x6b99cd={}]=_0x31b4e1;if(!_0x2c7df3)return;const _0xa04ae6=_0x6b99cd['at']||0x0,_0x4317c8=_0x6b99cd['columns']||0x1;_0x2c7df3['columnInsertionIndexes']=new Array(_0x4317c8)['fill'](_0xa04ae6)['map']((_0x94165,_0x3564b2)=>_0x94165+_0x3564b2);for(const {cell:_0x17939f}of _0x3de8e0['createTableWalker'](_0x10e43c,{'startColumn':_0xa04ae6,'endColumn':_0xa04ae6+_0x4317c8-0x1}))_0x2c7df3['columnInsertionRanges']['push'](_0x531162['model']['createRangeOn'](_0x17939f));},{'priority':'low'}),_0x3de8e0['on']('insertRows',(_0x250a08,_0x4f6784)=>{const [_0x30c1e5,_0x37c351={}]=_0x4f6784;if(!_0x2c7df3)return;const _0x32588d=_0x37c351['at']||0x0,_0x35959c=_0x37c351['rows']||0x1;_0x2c7df3['rowInsertionIndexes']=new Array(_0x35959c)['fill'](_0x32588d)['map']((_0x1ca45f,_0x25ff4e)=>_0x1ca45f+_0x25ff4e);for(const {cell:_0x1c7c16}of _0x3de8e0['createTableWalker'](_0x30c1e5,{'startRow':_0x32588d,'endRow':_0x32588d+_0x35959c-0x1}))_0x2c7df3['rowInsertionRanges']['push'](_0x531162['model']['createRangeOn'](_0x1c7c16));},{'priority':'low'}),_0xda7204['descriptionFactory']['registerDescriptionCallback'](_0x4318e6=>{if(_0x4318e6['subType']&&_0x4318e6['subType']['startsWith']('tablePaste'))return _0x4318e6['previous']?{}:{'type':'insertion','content':o(_0x531162['locale'],'*Replace\x20table\x20cells*')};});const _0x3981ce=()=>!0x1;for(const _0x24a53c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion',_0x24a53c,'join',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('deletion',_0x24a53c,'join',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24a53c,'join',_0x3981ce);_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11aed4,_0xc7f8b7,_0x384b5b)=>{const _0x30ba53=_0x11aed4['map'](_0x6b8387=>_0x6b8387['getContainedElement']())['filter'](_0x2ec071=>_0x2ec071),_0x29b14e=new Map(_0x30ba53['map'](_0x317db9=>[_0x317db9,null]));if(_0x2c7df3){for(const {element:_0x1c819c,attributes:_0x2348cc}of _0x2c7df3['cells'])_0x2348cc&&_0x29b14e['set'](_0x1c819c,_0x2348cc);}else{if(_0x384b5b&&_0x384b5b['markerAttributes'])for(const [_0x14794f,_0x381400]of Object['entries'](_0x384b5b['markerAttributes'])){const _0x2a8e08=_0x531162['model']['markers']['get'](_0x14794f),_0x107d39=_0x2a8e08?_0x2a8e08['getRange']()['getContainedElement']():null;_0x107d39&&_0x29b14e['set'](_0x107d39,_0x381400);}}_0x531162['model']['change'](_0x5971ea=>{for(const [_0x332de2,_0x4e7c8b]of _0x29b14e)_0x5971ea['setAttributes']({...xe,..._0x4e7c8b},_0x332de2);});});const _0x40ccdf=(_0x1d4500,_0x5919c9)=>{_0xda7204['_suggestionFactory']['registerCustomCallback'](_0x1d4500,'tablePaste',_0x5919c9,(_0x45b137,_0x249862,_0x17ee38)=>{_0x531162['model']['change'](_0x1a51ef=>{const _0x558ba5=[];for(const _0x37a387 of _0x45b137){const _0x3cf5cf=_0x37a387['start']['nodeAfter'];_0x3cf5cf['is']('element','tableCellSuggestion')&&_0x558ba5['push'](_0x3cf5cf);}_0xda7204['_suggestionFactory']['getSuggestionCallback'](_0x1d4500,null,_0x5919c9)(_0x45b137,_0x249862,_0x17ee38);for(const _0x3499ad of _0x558ba5)'$graveyard'!=_0x3499ad['root']['rootName']&&_0x1a51ef['unwrap'](_0x3499ad);});});};_0x40ccdf('insertion','accept'),_0x40ccdf('insertion','discard'),_0x40ccdf('deletion','accept'),_0x40ccdf('deletion','discard'),_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4658b2=>{const _0x405d83=_0x4658b2['map'](_0x4cc3c1=>_0x4cc3c1['getContainedElement']()),_0x5b09a2=_0x405d83[0x0]['findAncestor']('table'),{minRow:_0x1094e3,maxRow:_0x27825d}=_0x2b5d87['_getCoordsForCells'](_0x405d83);_0x3de8e0['removeRows'](_0x5b09a2,{'at':_0x1094e3,'rows':_0x27825d-_0x1094e3+0x1});}),_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x48bf3f=>{const _0xa85608=_0x48bf3f['map'](_0x147a55=>_0x147a55['getContainedElement']()),_0x4d23fd=_0xa85608[0x0]['findAncestor']('table'),{minColumn:_0x113bbe,maxColumn:_0x268621}=_0x2b5d87['_getCoordsForCells'](_0xa85608);_0x3de8e0['removeColumns'](_0x4d23fd,{'at':_0x113bbe,'columns':_0x268621-_0x113bbe+0x1});});const _0x3a9edd=(_0x5d7aa1,_0x457257)=>{if(!_0x457257['subType']||!_0x457257['subType']['startsWith']('tablePaste'))return;const _0xe46420=_0x457257['attributes']['tablePasteChainId'],_0x37302c=_0xda7204['getSuggestions']()['filter'](_0x5d9b1b=>_0x5d9b1b['isInContent']&&_0x5d9b1b['attributes']&&_0x5d9b1b['attributes']['tablePasteChainId']==_0xe46420);_0x37302c['length']&&_0x457257['getAllAdjacentSuggestions']()['length']!=_0x37302c['length']&&_0x37302c['reduce']((_0x168ba6,_0x79a87b)=>(_0x168ba6['next']=_0x79a87b,_0x79a87b['previous']=_0x168ba6,_0x79a87b));};function _0x2804e9(_0xb85fcf,_0xa4f7e6=!0x0){const {id:_0x43e2cc,authorId:_0x31ec38}=_0xda7204['_splitMarkerName'](_0xb85fcf['markerName']),_0x4aae60=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2fd413=_0xda7204['activeMarkers']['includes'](_0xb85fcf['markerName']);return _0x2fd413&&_0x4aae60['push']('ck-suggestion-marker--active'),{'classes':_0x4aae60,'attributes':{'data-suggestion':_0x43e2cc,'data-author-id':_0x31ec38},'priority':_0x2fd413&&_0xa4f7e6?0xbc2:0xbb8};}_0xda7204['on']('suggestionLoaded',_0x3a9edd,{'priority':'high'}),_0xda7204['on']('suggestionUnloaded',_0x3a9edd,{'priority':'high'}),_0x531162['model']['document']['registerPostFixer'](()=>{let _0xabdc=!0x1;const _0x2ec2a6=Array['from'](_0x531162['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x473bff,data:_0x55611c}of _0x2ec2a6){const {group:_0xaa3934,type:_0x1f3824,id:_0x4dece2}=_0xda7204['_splitMarkerName'](_0x473bff);if('suggestion'!=_0xaa3934||'deletion'!=_0x1f3824||_0x55611c['oldRange'])continue;if(!_0xda7204['hasSuggestion'](_0x4dece2))continue;const _0x176645=_0xda7204['getSuggestion'](_0x4dece2)['getRanges'](),_0x5d8a58=_0x531162['plugins']['get']('Users')['me'];for(const _0x4e9919 of _0xda7204['getSuggestions']()){if(!_0x4e9919['isInContent']||_0x4e9919['author']!=_0x5d8a58)continue;if('formatBlock'!=_0x4e9919['type']||'tablePasteCell'!=_0x4e9919['subType'])continue;if(_0x4e9919['getRanges']()['every'](_0x5c3a94=>_0x176645['some'](_0x3d2be7=>_0x3d2be7['containsRange'](_0x5c3a94,!0x0)))){for(const _0x45c957 of _0x4e9919['getAllAdjacentSuggestions']())_0x45c957['isInContent']&&(_0x45c957['discard'](),_0xabdc=!0x0);}}}return _0xabdc;}),_0x531162['model']['document']['registerPostFixer'](_0x21638a=>{const _0x2f5c9b=_0x531162['commands']['get']('redo');if(!_0x2f5c9b||!_0x2f5c9b['_createdBatches']['has'](_0x21638a['batch']))return!0x1;let _0x27944f=!0x1;const _0x8fb1ad=_0x531162['plugins']['get']('Users')['me'],_0x2065f4=_0x531162['model']['document']['differ']['getChanges'](),_0x7d6c05=Array['from'](_0x531162['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4a8443,data:_0x3a2b23})=>{const {group:_0x5520a3,subType:_0x340f88,authorId:_0x556165}=_0xda7204['_splitMarkerName'](_0x4a8443);return'suggestion'==_0x5520a3&&'tablePaste'==_0x340f88&&_0x556165==_0x8fb1ad['id']&&!_0x3a2b23['oldRange'];});for(const _0x23aa65 of _0x2065f4){if('insert'!=_0x23aa65['type']||'tableCellSuggestion'!=_0x23aa65['name']||0x1!=_0x23aa65['length'])continue;const _0xce32ee=_0x21638a['createRange'](_0x23aa65['position'],_0x23aa65['position']['getShiftedBy'](0x1));if(!_0x7d6c05['find'](({data:_0x5ec11c})=>_0x5ec11c['newRange']['isEqual'](_0xce32ee))){for(const {name:_0xcf919a,data:_0x5177ce}of _0x7d6c05)if(_0xce32ee['containsRange'](_0x5177ce['newRange'])){_0x21638a['updateMarker'](_0xcf919a,{'range':_0xce32ee}),_0x27944f=!0x0;break;}}}return _0x27944f;}),_0x531162['model']['document']['registerPostFixer'](_0x52d659=>{let _0x440113=!0x1;const _0x4ecf61=_0x531162['plugins']['get']('Users')['me'],_0x4a9806=_0xda7204['getSuggestions']()['filter'](_0x311792=>_0x311792['isInContent']&&_0x311792['author']==_0x4ecf61),_0x410daf=new Set(),_0xb86be0=new Set();for(const _0x405720 of _0x4a9806)if('tablePaste'==_0x405720['subType'])for(const _0x230207 of _0x405720['getMarkers']()){const _0x37bc8f=_0x230207['getRange']()['getContainedElement']();if(_0x37bc8f){if(_0x37bc8f['is']('element','tableCellSuggestion')&&Oe(_0x37bc8f)){_0x405720['removeMarker'](_0x230207['name']),_0x410daf['add'](_0x37bc8f),_0x440113=!0x0;const _0x1b13b7=_0x37bc8f['nextSibling'],_0x4fea40=_0x37bc8f['previousSibling'],_0x23121b=_0x1b13b7&&_0x1b13b7['is']('element','tableCellSuggestion'),_0x4f6a58=_0x4fea40&&_0x4fea40['is']('element','tableCellSuggestion');_0x23121b&&!_0x410daf['has'](_0x1b13b7)&&_0xb86be0['add'](_0x1b13b7),_0x4f6a58&&!_0x410daf['has'](_0x4fea40)&&_0xb86be0['add'](_0x4fea40);}else _0x37bc8f['is']('element','paragraph')&&_0x37bc8f['isEmpty']&&(_0x405720['removeMarker'](_0x230207['name']),_0x440113=!0x0);}}else{if('tablePasteCell'==_0x405720['subType']){if(!_0x405720['attributes']||!_0x405720['attributes']['tablePasteChainId'])continue;const _0x23fc5d=_0x405720['attributes']['markerAttributes'];if(_0x23fc5d&&Object['keys'](_0x23fc5d)['length'])continue;const _0x12160c=_0x405720['attributes']['tablePasteChainId'];let _0x59582f=!0x0,_0x3d1a25=!0x0;for(const _0x2782f4 of _0x4a9806)if(_0x2782f4['subType']&&_0x2782f4['subType']['startsWith']('tablePaste')){if(!_0x2782f4['attributes']['tablePasteChainId']){_0x3d1a25=!0x1;break;}if(_0x2782f4['id']!=_0x405720['id']&&_0x2782f4['attributes']['tablePasteChainId']==_0x12160c){_0x59582f=!0x1;break;}}_0x3d1a25&&_0x59582f&&(_0x405720['removeMarkers'](),_0x440113=!0x0);}}for(const _0x55211c of _0x410daf)_0x52d659['remove'](_0x55211c);for(const _0xa4539b of _0xb86be0)_0x52d659['unwrap'](_0xa4539b);return _0x440113;}),_0x531162['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x113814=>_0x2804e9(_0x113814),'converterPriority':'high'}),_0x531162['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34262d,_0x4cea2e)=>_0x4cea2e['options']['showSuggestionHighlights']?_0x2804e9(_0x34262d,!0x1):null,'converterPriority':'high'});const _0x1c1970=_0x531162['editing']['view'];this['listenTo'](_0x1c1970['document'],'clipboardOutput',(_0xcda16b,_0x13fae8)=>{const _0x164648=[];for(const _0x932ef6 of _0x1c1970['createRangeIn'](_0x13fae8['content'])['getItems']())_0x932ef6['is']('element','suggestion-td')&&_0x164648['push'](_0x932ef6);_0x1c1970['change'](_0x20ea22=>{for(const _0x9abc45 of _0x164648)_0x20ea22['move'](_0x20ea22['createRangeIn'](_0x9abc45),_0x20ea22['createPositionBefore'](_0x9abc45)),_0x20ea22['remove'](_0x9abc45);});});}}function Oe(_0x538668){if(_0x538668['isEmpty'])return!0x0;const _0x4ae32f=_0x538668['getChild'](0x0);return _0x4ae32f['is']('element','paragraph')&&_0x4ae32f['isEmpty'];}function Ue(_0x5be4ce,_0x430e97={},_0x2e03ef){for(const {isAnchor:_0x140807,cellHeight:_0x2d05d9,cellWidth:_0x17819e}of _0x2e03ef['createTableWalker'](_0x5be4ce,{'includeAllSlots':!0x0,..._0x430e97}))if(!_0x140807||0x1!=_0x2d05d9||0x1!=_0x17819e)return!0x1;return!0x0;}class Dt extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x583347=this['editor']['plugins']['get']('TrackChangesEditing');_0x583347['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x583347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x583347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x583347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x583347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x583347['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e726c,_0x5aa5c7){const _0x1a1dda=this['editor']['plugins']['get']('TrackChangesEditing'),_0xacf96e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x532e2d=_0x5aa5c7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3e1efb=_0xacf96e['getColumnGroupElement'](_0x532e2d);let _0xe962d8=_0x3e1efb?_0xacf96e['getTableColumnsWidths'](_0x3e1efb):null,_0x286ee2=_0x532e2d['getAttribute']('tableWidth')||null;const _0x814777=_0x5aa5c7['tableWidth']||_0x286ee2,_0x4725e7=_0x5aa5c7['columnWidths']||_0xe962d8,_0x17cde8=this['editor']['plugins']['get']('Users')['me'];for(const _0x56532d of _0x1a1dda['getSuggestions']()){const _0x1a1b4b=_0x56532d['getContainedElement']();if('resizeTable'===_0x56532d['subType']&&_0x1a1b4b===_0x532e2d){_0x56532d['author']!==_0x17cde8&&_0x56532d['discard']();const _0x40ab32=_0x56532d['data']['commandParams'];_0x286ee2=_0x40ab32[0x0]['tableWidth'],_0xe962d8=_0x40ab32[0x0]['columnWidths'];break;}}_0x5e726c({'table':_0x532e2d,'tableWidth':_0x814777,'columnWidths':_0x4725e7}),_0x1a1dda['markBlockFormat'](_0x532e2d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x286ee2,'columnWidths':_0xe962d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d0631){if('formatBlock'!=_0x4d0631['type']&&'formatInline'!=_0x4d0631['type'])return;const {data:_0x5047f7}=_0x4d0631;if(_0x5047f7&&'resizeTable'===_0x5047f7['formatGroupId']){const _0x28feb1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28feb1)};}}}class Mt extends _0x32d277{['afterInit'](){const _0x55e03d=this['editor'];_0x55e03d['plugins']['has']('Template')&&_0x55e03d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x32d277{['afterInit'](){const _0x51e8c7=this['editor'];if(!_0x51e8c7['commands']['get']('insertTableOfContents'))return;_0x51e8c7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a6cd8=_0x51e8c7['plugins']['get']('TrackChangesEditing'),_0x198666=_0x51e8c7['locale'];_0x3a6cd8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5279f9=>o(_0x198666,'ELEMENT_TABLE_OF_CONTENTS',_0x5279f9));}}class Bt extends _0x32d277{['afterInit'](){const _0x2e1448=this['editor'];if(!_0x2e1448['plugins']['has']('Title'))return;const _0xeae00e=_0x2e1448['plugins']['get']('TrackChangesEditing');_0xeae00e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e1448['locale'],'ELEMENT_TITLE')),_0x2e1448['model']['document']['registerPostFixer'](_0x557878=>{let _0x48783a=!0x1;const _0x2ec03f=Array['from'](_0x2e1448['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x189bfc,data:_0x39e8b1}of _0x2ec03f){const {group:_0x1c9bb5}=_0xeae00e['_splitMarkerName'](_0x189bfc);if('suggestion'!==_0x1c9bb5||!_0x39e8b1['newRange'])continue;const _0x3848e4=_0x39e8b1['newRange'],_0x1e5976=_0x3848e4['end']['nodeBefore'];if(!_0x1e5976||!_0x1e5976['is']('element','title-content'))continue;if(!_0x3848e4['start']['isTouching'](_0x3848e4['end']))continue;const _0x8a415c=_0x2e1448['model']['schema']['getNearestSelectionRange'](_0x3848e4['end'],'forward');if(_0x8a415c&&_0x8a415c['isCollapsed']){const _0x15ac68=_0x557878['createRange'](_0x3848e4['start'],_0x8a415c['start']);_0x15ac68['isEqual'](_0x3848e4)||(_0x557878['updateMarker'](_0x189bfc,{'range':_0x15ac68}),_0x48783a=!0x0);}_0x48783a||(_0x557878['removeMarker'](_0x189bfc),_0x48783a=!0x0);}return _0x48783a;});}}class Ot extends _0x32d277{['afterInit'](){const _0x43a900=this['editor'],_0x3d9905=_0x43a900['plugins']['get']('TrackChangesEditing');_0x43a900['plugins']['has']('Uploadcare')&&(_0x3d9905['enableCommand']('uploadcare'),_0x43a900['plugins']['has']('UploadcareImageEdit')&&(_0x3d9905['enableCommand']('uploadcareImageEdit'),_0x3d9905['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d9905['registerBlockAttribute']('uploadcareImageId'),_0x3d9905['descriptionFactory']['registerDescriptionCallback'](_0x22ea06=>{if('attribute'!=_0x22ea06['type'])return;const {data:_0xa362fa}=_0x22ea06;return _0xa362fa&&'uploadcareImageId'==_0xa362fa['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x32d277{['afterInit'](){const _0x17dc17=this['editor'],_0x2251fd=_0x17dc17['plugins']['get']('TrackChangesEditing');_0x17dc17['plugins']['has']('UndoEditing')&&(_0x2251fd['enableCommand']('undo'),_0x2251fd['enableCommand']('redo'));}}class Tt extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x1d5ae8=this['editor'];if(!_0x1d5ae8['plugins']['has']('TableCaptionEditing'))return;_0x1d5ae8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x32d277{['tableProperties'];['tableCellProperties'];constructor(_0x458d3d){super(_0x458d3d),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 _0x1ddb21=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x226aea of this['tableProperties'])_0x1ddb21['enableCommand'](_0x226aea,(_0x1d5db4,_0x379bfe)=>{const _0x39fa17=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x226aea,[_0x39fa17],this['tableProperties'],'tableProperties',_0x1d5db4,_0x379bfe);});_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ddb21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x558f75,_0x3fda26)=>this['handleDiscardAction'](this['tableProperties'],_0x558f75,_0x3fda26)),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xabf80b of this['tableCellProperties'])_0x1ddb21['enableCommand'](_0xabf80b,(_0x417cb2,_0x4e020d)=>{const _0x4cf3ca=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xabf80b,_0x4cf3ca,this['tableCellProperties'],'tableCellProperties',_0x417cb2,_0x4e020d);});_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ddb21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4472c8,_0x2786d3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4472c8,_0x2786d3)),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ddb21['descriptionFactory']['registerDescriptionCallback'](_0x57bb0f=>this['handleSuggestionDescription'](_0x57bb0f));}['_handlePropertyChange'](_0x5e07b9,_0x349677,_0x3b48a5,_0x4f7b0c,_0xb2ae11,_0x334fd5){const _0x558f93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x334fd5['batch'],()=>{for(const _0x225b43 of _0x349677){if(this['_getSuggestion'](_0x225b43,_0x4f7b0c))_0xb2ae11(_0x334fd5);else{const _0xc7be58={};for(const _0x20222b of _0x3b48a5){const _0x3a1aee=_0x225b43['getAttribute'](_0x20222b);void 0x0!==_0x3a1aee&&(_0xc7be58[_0x20222b]=_0x3a1aee);}_0xb2ae11(_0x334fd5),_0x558f93['markBlockFormat'](_0x225b43,{'commandParams':[_0xc7be58]},[],_0x4f7b0c);}}});}['handleDiscardAction'](_0xde30c0,_0x31f16c,_0x4551f8){const _0x2814d5=_0x31f16c[0x0]['start']['nodeAfter'],_0x35d0ca=_0x4551f8['commandParams'][0x0];this['editor']['model']['change'](_0x101f60=>{for(const _0x330b1f of _0xde30c0)void 0x0!==_0x35d0ca[_0x330b1f]?_0x101f60['setAttribute'](_0x330b1f,_0x35d0ca[_0x330b1f],_0x2814d5):_0x101f60['removeAttribute'](_0x330b1f,_0x2814d5);});}['handleSuggestionDescription'](_0x359a65){if(_0x359a65['data'])switch(_0x359a65['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xea32ae,_0x506168){const _0x19a71a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4550a9 of _0x19a71a['getSuggestions']({'skipNotAttached':!0x0})){const _0x1aac2c=_0x4550a9['getContainedElement']();if(_0x4550a9['subType']===_0x506168&&_0x1aac2c===_0xea32ae)return _0x4550a9;}return null;}}const m='$elementName';class p extends _0x32d277{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x485da9,_0x46e603,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30fecf){super(_0x30fecf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4be8ea,_0x4a05b2,_0x1a89b9,_0x11d765)=>{this['_model']['change'](()=>{for(const _0x54ba95 of[..._0x11d765,..._0x1a89b9])this['_model']['markers']['has'](_0x54ba95)&&_0x30fecf['editing']['reconvertMarker'](_0x54ba95);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x30fecf['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x30fecf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x30fecf['config']['get']('trackChanges.trackFormatChanges'),_0x30fecf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x30fecf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x30fecf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa9e272=this['editor'],_0x261897=(_0x4bac06,_0x40ffa6)=>{if('attribute'!=_0x4bac06)return'ck-suggestion-marker-'+_0x4bac06;const _0x482557=_0x40ffa6['split']('|')[0x0];return this['_isBlockAttribute'](_0x482557)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa9e272['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5e9ebe=>{const {id:_0x210129,authorId:_0xc0710e,type:_0x126a18,subType:_0x4528ff}=this['_splitMarkerName'](_0x5e9ebe['markerName']),_0x23b941=['ck-suggestion-marker',_0x261897(_0x126a18,_0x4528ff)];let _0x47993a=0xbb8;return this['activeMarkers']['includes'](_0x5e9ebe['markerName'])&&(_0x23b941['push']('ck-suggestion-marker--active'),_0x47993a=0xbc2),'deletion'==_0x126a18&&(_0x47993a+=0x5),{'classes':_0x23b941,'attributes':{'data-suggestion':_0x210129,'data-author-id':_0xc0710e},'priority':_0x47993a};}}),_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x3abe32=>{_0x3abe32['on']('addMarker:suggestion',(_0x5ca709,_0x36a2b7,_0x50b1fb)=>{if(!_0x50b1fb['options']['showSuggestionHighlights'])return;const _0x2a989a=_0x36a2b7['item'];if(!_0x2a989a)return;const _0x1a778b=_0x50b1fb['mapper']['toViewElement'](_0x2a989a);_0xa9e272['model']['schema']['isObject'](_0x2a989a)&&_0x1a778b&&!_0x1a778b['getCustomProperty']('widget')&&_0x1a778b['is']('containerElement')&&_0x20d843(_0x1a778b,_0x50b1fb['writer']);},{'priority':'high'});}),_0xa9e272['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4be133,_0x226bd6)=>{if(!_0x226bd6['options']['showSuggestionHighlights'])return null;const {type:_0x3378cd,subType:_0x35abf7}=this['_splitMarkerName'](_0x4be133['markerName']);return{'classes':['ck-suggestion-marker',_0x261897(_0x3378cd,_0x35abf7)],'priority':0xbb8};}});const _0x41df3c=({showActiveMarkers:_0x4cf66d=!0x0,isAttributeSuggestion:_0x1041f9=!0x1}={})=>(_0x3f7625,_0x2f2ffd,_0x517919)=>{if(!_0x2f2ffd['item'])return;const {id:_0xcde694,authorId:_0x541686}=this['_splitMarkerName'](_0x2f2ffd['markerName']);if(_0x1041f9){const _0x30586e=this['_suggestions']['get'](_0xcde694),_0x5c16f2=this['_getAttributeKey'](_0x30586e);if(!this['_isBlockAttribute'](_0x5c16f2))return;}if(_0x2f2ffd['item']['is']('selection'))return void _0x517919['consumable']['consume'](_0x2f2ffd['item'],_0x3f7625['name']);const _0x31e070=_0x517919['mapper']['toViewElement'](_0x2f2ffd['item']);if(_0x2f2ffd['item']['is']('element')&&_0xa9e272['model']['schema']['isBlock'](_0x2f2ffd['item'])&&!_0x31e070['getCustomProperty']('addHighlight')){_0x517919['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x31e070),_0x517919['writer']['setAttribute']('data-suggestion',_0xcde694,_0x31e070),_0x517919['writer']['setAttribute']('data-author-id',_0x541686,_0x31e070),_0x517919['mapper']['bindElementToMarker'](_0x31e070,_0x2f2ffd['markerName']),_0x4cf66d&&(this['activeMarkers']['includes'](_0x2f2ffd['markerName'])?_0x517919['writer']['addClass']('ck-suggestion-marker--active',_0x31e070):_0x517919['writer']['removeClass']('ck-suggestion-marker--active',_0x31e070));for(const _0x1f0f5a of _0xa9e272['model']['createRangeIn'](_0x2f2ffd['item'])['getItems']())_0x517919['consumable']['consume'](_0x1f0f5a,_0x3f7625['name']);_0x517919['consumable']['consume'](_0x2f2ffd['item'],_0x3f7625['name']);}};_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x241a9b=>{_0x241a9b['on']('addMarker:suggestion:formatBlock',(_0x27252e,_0x1dca2e,_0x77b224)=>{_0x77b224['options']['showSuggestionHighlights']&&_0x41df3c({'showActiveMarkers':!0x1})(_0x27252e,_0x1dca2e,_0x77b224);},{'priority':'highest'});}),_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x47a71e=>{_0x47a71e['on']('addMarker:suggestion:attribute',(_0xb4d389,_0x3d4b58,_0x364a34)=>{_0x364a34['options']['showSuggestionHighlights']&&_0x41df3c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb4d389,_0x3d4b58,_0x364a34);},{'priority':'highest'});}),_0xa9e272['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x20d00f,_0x26ddac)=>_0x26ddac['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x20d00f['substr'](0xb)}}),_0xa9e272['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50ba56,{writer:_0x54d040})=>{let _0x4a393b='suggestion:'+_0x50ba56['getAttribute']('suggestion-type')+':'+_0x50ba56['getAttribute']('id');return _0x50ba56['getAttribute']('marker-count')&&(_0x4a393b+=':'+_0x50ba56['getAttribute']('marker-count')),_0x54d040['createElement']('$marker',{'data-name':_0x4a393b});}}),_0xa9e272['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x3876f0=>{_0x3876f0['on']('addMarker:suggestion:formatBlock',_0x41df3c(),{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x36257d=>{_0x36257d['on']('addMarker:suggestion:attribute',_0x41df3c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x5cd4ff=>{_0x5cd4ff['on']('removeMarker:suggestion:formatBlock',(_0x4cc626,_0x3b13ee,_0x381c37)=>{const _0x54b94a=_0x381c37['mapper']['markerNameToElements'](_0x3b13ee['markerName']);if(_0x54b94a){for(const _0x296f39 of _0x54b94a)_0x296f39['getCustomProperty']('addHighlight')||(_0x381c37['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x296f39),_0x381c37['writer']['removeAttribute']('data-suggestion',_0x296f39),_0x381c37['writer']['removeAttribute']('data-author-id',_0x296f39),_0x381c37['mapper']['unbindElementFromMarkerName'](_0x296f39,_0x3b13ee['markerName']));}},{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x2bbfc9=>{_0x2bbfc9['on']('removeMarker:suggestion:attribute',(_0x54bfab,_0x8f802,_0x21208a)=>{const _0x1607c6=_0x21208a['mapper']['markerNameToElements'](_0x8f802['markerName']);if(!_0x1607c6)return;const {id:_0x3539e0}=this['_splitMarkerName'](_0x8f802['markerName']),_0x34366f=this['_suggestions']['get'](_0x3539e0),_0x1da1f1=this['_getAttributeKey'](_0x34366f);if(this['_isBlockAttribute'](_0x1da1f1)){for(const _0x34a711 of _0x1607c6)_0x34a711['getCustomProperty']('addHighlight')||(_0x21208a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34a711),_0x21208a['writer']['removeAttribute']('data-suggestion',_0x34a711),_0x21208a['writer']['removeAttribute']('data-author-id',_0x34a711),_0x21208a['mapper']['unbindElementFromMarkerName'](_0x34a711,_0x8f802['markerName']));}},{'priority':'high'});}),_0xa9e272['model']['document']['registerPostFixer'](_0x5d17c3=>{let _0x578f2e=!0x1;const _0x504b1a=Array['from'](_0xa9e272['model']['document']['differ']['getChangedMarkers']()),_0x453a88=new Set();for(const {name:_0x4b3f1e,data:_0x50f740}of _0x504b1a){const {group:_0x5c1c41,type:_0x27294e,subType:_0x3a2e7e,id:_0x29e16c}=this['_splitMarkerName'](_0x4b3f1e);if('suggestion'!==_0x5c1c41)continue;const _0x2bafaa=this['_suggestions']['get'](_0x29e16c);if(null!=_0x50f740['newRange']){'formatInline'==_0x27294e&&(_0x578f2e=_0x578f2e||Gt(_0x50f740['newRange'],_0x4b3f1e,_0x5d17c3,_0xa9e272['model']['schema']));const _0x3b163e='attribute'==_0x27294e&&this['_isBlockAttribute'](_0x3a2e7e['split']('|')[0x0]);if(_0x50f740['newRange']['isCollapsed']||'$graveyard'==_0x50f740['newRange']['root']['rootName']||'formatBlock'==_0x27294e&&!Lt(_0x50f740['newRange'])||_0x3b163e&&!Lt(_0x50f740['newRange'])||'deletion'==_0x27294e&&!(!Pt(_0x12b586=_0x50f740['newRange'])&&!function(_0x39aa36){return _0x39aa36['start']['parent']==_0x39aa36['end']['nodeBefore']&&_0x39aa36['start']['isAtEnd'];}(_0x12b586)))_0x5d17c3['removeMarker'](_0x4b3f1e),_0x578f2e=!0x0;else{if(!_0x2bafaa||!_0x2bafaa['isInContent'])continue;if(_0x50f740['newRange']&&_0x50f740['oldRange']&&_0x50f740['newRange']['isEqual'](_0x50f740['oldRange']))continue;_0x453a88['add'](_0x2bafaa);}}}var _0x12b586;return _0x453a88['size']>0x0&&(_0x578f2e=!!this['_joinWithAdjacentSuggestions'](_0x453a88)||_0x578f2e),_0x578f2e;}),_0xa9e272['model']['document']['registerPostFixer'](_0x4b6e73=>{let _0x5d49a8=!0x1;for(const _0x20789e of _0xa9e272['model']['document']['differ']['getChanges']())if('insert'==_0x20789e['type'])for(const _0x3df08c of this['_suggestions']['values']()){if(_0x3df08c['isMultiRange']||!_0x3df08c['isInContent'])continue;const _0x4d648f='formatBlock'==_0x3df08c['type'],_0x1c6fcf=this['_getAttributeKey'](_0x3df08c),_0x158560=_0x1c6fcf&&this['_isBlockAttribute'](_0x1c6fcf);if(!_0x4d648f&&!_0x158560)continue;const _0x8afd9=_0x3df08c['getFirstRange']();if(_0x8afd9['start']['parent']!=_0x8afd9['end']['parent']&&!_0x8afd9['end']['isAtEnd']){const _0x2619ae=_0xa9e272['model']['createPositionAt'](_0x8afd9['start']['nodeAfter'],'end'),_0x3642b0=_0xa9e272['model']['createRange'](_0x8afd9['start'],_0x2619ae);_0x4b6e73['updateMarker'](_0x3df08c['getFirstMarker'](),{'range':_0x3642b0}),_0x5d49a8=!0x0;}}return _0x5d49a8;}),_0xa9e272['model']['document']['registerPostFixer'](_0x4c90a1=>this['_processAttributeChanges'](_0x4c90a1)),_0xa9e272['model']['document']['registerPostFixer'](_0x24a0ad=>!_0x24a0ad['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24a0ad)),_0xa9e272['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa9e272['model']['document']['on']('change:data',(_0xc01cad,_0x4e75b0)=>{if(!_0x4e75b0['isLocal']||_0x4e75b0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x551bf2=_0xa9e272['model']['document']['differ']['getChanges']();if(0x0==_0x551bf2['length'])return;const _0x3638d4=[],_0xd0d2a8=_0x551bf2['filter'](_0x4880f8=>'attribute'==_0x4880f8['type']),_0xb089a0=_0x551bf2['filter'](_0x5ddf5d=>'insert'==_0x5ddf5d['type']&&'$text'!=_0x5ddf5d['name']);for(const _0x1beac8 of _0xd0d2a8)this['_isRegisteredAttribute'](_0x1beac8['attributeKey'])&&_0x3638d4['push']({'key':_0x1beac8['attributeKey'],'newValue':_0x1beac8['attributeNewValue'],'oldValue':_0x1beac8['attributeOldValue'],'range':Jt(_0x1beac8['range'],_0xa9e272['model'])});for(const _0xb1d467 of _0xb089a0){if('rename'!=_0xb1d467['action']&&'refresh'!=_0xb1d467['action'])continue;const _0x2e9ee0=Ht(_0xb1d467['position']['nodeAfter'],_0xa9e272['model']),_0x4ea2a7=_0xb1d467['before'];'rename'==_0xb1d467['action']&&_0x3638d4['push']({'key':m,'newValue':_0xb1d467['name'],'oldValue':_0x4ea2a7['name'],'range':_0x2e9ee0});for(const [_0x2f9b0f,_0x3971b1]of _0x4ea2a7['attributes']){if(!this['_isRegisteredAttribute'](_0x2f9b0f))continue;const _0x18e1ab=_0xb1d467['attributes']['get'](_0x2f9b0f);_0x3971b1!==_0x18e1ab&&_0x3638d4['push']({'key':_0x2f9b0f,'newValue':_0x18e1ab,'oldValue':_0x3971b1,'range':_0x2e9ee0});}for(const [_0x583047,_0x3be4f7]of _0xb1d467['attributes'])this['_isRegisteredAttribute'](_0x583047)&&(_0x4ea2a7['attributes']['has'](_0x583047)||_0x3638d4['push']({'key':_0x583047,'newValue':_0x3be4f7,'oldValue':null,'range':_0x2e9ee0}));}0x0!=_0x3638d4['length']&&_0xa9e272['model']['enqueueChange'](_0x4e75b0,_0x3956cd=>{const _0x2a6d02=_0x12e0b6();for(const {range:_0x4b2b5c,key:_0x5daf54,oldValue:_0x427403,newValue:_0x51f6e7}of _0x3638d4)this['markAttributeChange'](_0x4b2b5c,_0x5daf54,_0x427403,_0x51f6e7,{'groupId':_0x2a6d02});this['_reduceExistingSuggestions'](_0x3956cd,_0x3638d4);});},{'priority':'lowest'}),_0xa9e272['model']['markers']['on']('update:suggestion',(_0x525bc2,_0x35f6ec,_0x3e2526)=>{if(null==_0x3e2526){const {id:_0x123d8c}=this['_splitMarkerName'](_0x35f6ec['name']),_0x5a2e62=this['_suggestions']['get'](_0x123d8c);_0x5a2e62&&_0x5a2e62['addMarkerName'](_0x35f6ec['name']);}}),_0xa9e272['model']['document']['on']('change:data',()=>{const _0x5713c0=Array['from'](_0xa9e272['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b9013=>'suggestion'===this['_splitMarkerName'](_0x5b9013['name'])['group']);if(0x0===_0x5713c0['length'])return;_0x5713c0['sort']((_0x5f43b4,_0x1c7fd9)=>{const _0x253919=_0x5f43b4['data']['oldRange'],_0x32b41c=_0x1c7fd9['data']['oldRange'];return null===_0x253919&&null===_0x32b41c?0x0:null===_0x253919&&null!==_0x32b41c?-0x1:null!==_0x253919&&null===_0x32b41c?0x1:_0x253919['start']['isBefore'](_0x32b41c['start'])?-0x1:0x1;});const _0x585854=new Set(),_0x3a5a89=new Set();for(const {name:_0x28beaa,data:_0x4b8550}of _0x5713c0){const {id:_0x3c9e99}=this['_splitMarkerName'](_0x28beaa);if(null===_0x4b8550['oldRange']){const _0x14d5d4=this['_handleNewSuggestionMarker'](_0x28beaa);_0x3a5a89['add'](_0x14d5d4);}else{const _0x2ec9c6=this['_suggestions']['get'](_0x3c9e99);null!==_0x4b8550['newRange']||_0x2ec9c6['isInContent']?(_0x585854['add'](_0x2ec9c6['head']),_0x3a5a89['add'](_0x2ec9c6)):this['_removeSuggestion'](_0x2ec9c6);}}_0x3a5a89['size']>0x0&&this['_refreshSuggestionsChain'](_0x3a5a89);for(const _0x2e1f0f of _0x585854)this['fire']('suggestionChanged',_0x2e1f0f);}),_0xa9e272['model']['on']('applyOperation',(_0x537066,_0x48531b)=>{const _0x40130f=_0x48531b[0x0];if(!this['_suggestions']['size'])return;if(!_0x40130f['isDocumentOperation'])return;if(_0x40130f['batch']['isUndo']||!_0x40130f['batch']['isLocal'])return;let _0x277667,_0x4dd983;switch(_0x40130f['type']){case'insert':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['position']),_0x4dd983=_0x277667['getShiftedBy'](_0x40130f['howMany']);break;case'split':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['splitPosition']),_0x4dd983=_0xa9e272['model']['createPositionAt'](_0x40130f['moveTargetPosition']);break;case'move':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['targetPosition']),_0x4dd983=_0x277667['getShiftedBy'](_0x40130f['howMany']);break;default:return;}const _0x456315=_0xa9e272['model']['createRange'](_0x277667,_0x4dd983);_0xa9e272['model']['change'](()=>{for(const {suggestion:_0x37fbbd,meta:_0xaf1234}of this['_findSuggestions'](_0x456315)){if(_0x37fbbd['isMultiRange'])continue;if('formatInline'==_0x37fbbd['type'])continue;const _0x5894b4=this['_getAttributeKey'](_0x37fbbd);if(_0x5894b4&&this['_isBlockAttribute'](_0x5894b4)&&'split'!=_0x40130f['type'])continue;const _0x4f00d6=_0x37fbbd['data']&&_0x37fbbd['data']['multipleBlocks'];('formatBlock'!=_0x37fbbd['type']||'split'==_0x40130f['type']&&!_0x4f00d6)&&(_0xaf1234['containsRangeInObject']||'insertion'==_0x37fbbd['type']&&_0xaf1234['isOwn']||_0x37fbbd['getFirstRange']()['containsRange'](_0x456315)&&this['_breakSuggestionMarker'](_0x37fbbd,_0x277667,_0x4dd983));}});},{'priority':'lowest'}),_0xa9e272['model']['on']('deleteContent',(_0xed520,_0x41621b)=>{const _0x5a79af=_0x41621b[0x0],_0x5eecaf=_0x41621b[0x1];if(_0x5eecaf&&_0x5eecaf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5a79af['isCollapsed'])return;const _0x598a07=_0xa9e272['model']['schema'],{start:_0x821ca4,end:_0x337381}=_0x5a79af['getFirstRange'](),_0x2e8db1=_0x821ca4['nodeAfter']&&_0x598a07['isLimit'](_0x821ca4['nodeAfter'])?null:_0x598a07['getNearestSelectionRange'](_0x821ca4,'forward'),_0x4041e2=_0x337381['nodeBefore']&&_0x598a07['isLimit'](_0x337381['nodeBefore'])?null:_0x598a07['getNearestSelectionRange'](_0x337381,'backward'),_0x577c2a=_0xa9e272['model']['createRange'](_0x2e8db1?_0x2e8db1['start']:_0x821ca4,_0x4041e2?_0x4041e2['end']:_0x337381);_0xa9e272['model']['change'](_0x3ca73e=>{this['markDeletion'](_0x577c2a);const _0x355063=_0xa9e272['model']['schema']['getNearestSelectionRange'](_0x577c2a['start']);_0x5a79af['is']('documentSelection')?_0x3ca73e['setSelection'](_0x355063):_0x5a79af['setTo'](_0x355063);}),_0xed520['stop']();},{'priority':_0x3e5933['normal']+0xa}),_0xa9e272['model']['on']('insertContent',(_0x2e126d,_0x55f61e)=>{const _0x2432b6=_0x55f61e[_0x55f61e['length']-0x1];_0x2432b6&&_0x2432b6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa9e272['model']['change'](()=>{let _0x4ecaf5=_0xa9e272['model']['insertContent'](_0x55f61e[0x0],_0x55f61e[0x1],_0x55f61e[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ecaf5)return;_0x2e126d['return']=_0x4ecaf5['clone']();const _0x5f03b8=_0x4ecaf5['end']['nodeBefore'],_0x4fda17=_0xa9e272['model']['schema'];_0x5f03b8&&_0x4fda17['isBlock'](_0x5f03b8)&&!_0x4fda17['isObject'](_0x5f03b8)&&(_0x4ecaf5=_0xa9e272['model']['createRange'](_0x4ecaf5['start'],_0xa9e272['model']['createPositionAt'](_0x5f03b8,'end'))),this['markInsertion'](_0x4ecaf5);}),_0x2e126d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x25e082=new O(_0xa9e272,this['_suggestions']);_0xa9e272['commands']['add']('acceptSuggestion',_0x25e082),this['enableCommand']('acceptSuggestion');const _0x21db64=new R(_0xa9e272,this['_suggestions']);_0xa9e272['commands']['add']('discardSuggestion',_0x21db64),this['enableCommand']('discardSuggestion'),_0xa9e272['commands']['add']('acceptAllSuggestions',new x(_0xa9e272,_0x25e082,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa9e272['commands']['add']('discardAllSuggestions',new x(_0xa9e272,_0x21db64,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa9e272['commands']['add']('acceptSelectedSuggestions',new E(_0xa9e272,_0x25e082,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa9e272['commands']['add']('discardSelectedSuggestions',new E(_0xa9e272,_0x21db64,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17a795=_0xa9e272['plugins']['get']('CommentsRepository');this['listenTo'](_0x17a795,'addComment',(_0x3a39f4,{threadId:_0x153b44})=>{const _0x1350bf=this['_suggestions']['get'](_0x153b44);_0x1350bf&&_0x1350bf['commentThread']&&0x1===_0x1350bf['commentThread']['length']&&this['_updateSuggestionData'](_0x153b44,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17a795,'removeComment',(_0x27aeb8,{threadId:_0x65cdfa})=>{const _0x227581=this['_suggestions']['get'](_0x65cdfa);_0x227581&&_0x227581['commentThread']&&!_0x227581['commentThread']['length']&&this['_updateSuggestionData'](_0x65cdfa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x794031){const _0x885b89=_0x506754([0x45,0x65,0x71,0x47,0x66,0x4a,0x6e,0x63,0x41,0x39,0x64,0x44,0x4e,0x30,0x6c,0x46,0x35,0x6b,0x56,0x50,0x7a,0x62,0x5a,0x73,0x76,0x32,0x58,0x6f,0x51,0x43,0x78,0x53,0x4d,0x55,0x69,0x54,0x6a,0x79,0x75,0x33,0x37,0x72,0x67,0x49,0x4b,0x61,0x57,0x31,0x48,0x38,0x36,0x4c,0x42,0x77,0x52,0x68,0x74,0x4f,0x6d,0x59,0x70,0x34]),_0x319cf4=0x1353a7b2,_0x3cdff3=0x1354f8b2^_0x319cf4,_0x150266=window[_0x506754([0x44,0x61,0x74,0x65])][_0x506754([0x6e,0x6f,0x77])](),_0x1e5f3f=_0x794031[_0x506754([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x457df7=new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5981f8=>{_0x1e5f3f[_0x506754([0x6f,0x6e,0x63,0x65])](_0x506754([0x72,0x65,0x61,0x64,0x79]),_0x5981f8);}),_0x336579={[_0x506754([0x6b,0x74,0x79])]:_0x506754([0x45,0x43]),[_0x506754([0x75,0x73,0x65])]:_0x506754([0x73,0x69,0x67]),[_0x506754([0x63,0x72,0x76])]:_0x506754([0x50,0x2d,0x32,0x35,0x36]),[_0x506754([0x78])]:_0x506754([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]),[_0x506754([0x79])]:_0x506754([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]),[_0x506754([0x61,0x6c,0x67])]:_0x506754([0x45,0x53,0x32,0x35,0x36])},_0x12acbd=_0x1e5f3f[_0x506754([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x506754([0x67,0x65,0x74])](_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41355e(){let _0x158591,_0xe1d1d6=null,_0x33a5e0=null;try{if(_0x12acbd==_0x506754([0x47,0x50,0x4c]))return _0x506754([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x158591=_0x1f2b8d(),!_0x158591)return _0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x158591[_0x506754([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33a5e0=_0x15b335(_0x158591[_0x506754([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x158591[_0x506754([0x6a,0x74,0x69])])),await _0x452f77()?_0x42b2ef()?_0x133902()?_0x506754([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25752b()?(_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x506754([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe1d1d6=_0x421964(_0x506754([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x506754([0x74,0x72,0x69,0x61,0x6c])&&(_0xe1d1d6=_0x421964(_0x506754([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5433d3()):_0x506754([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x506754([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x575d87){return _0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x133902(){const _0x332dfe=[_0x506754([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x506754([0x74,0x72,0x69,0x61,0x6c])][_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x150266/0x3e8:0xe10*_0x3cdff3;return _0x158591[_0x506754([0x65,0x78,0x70])]<_0x332dfe;}function _0x42b2ef(){const _0x315ede=_0x158591[_0x506754([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x315ede)return!0x1;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x2a])))return!0x0;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x54,0x43])))return!0x0;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x52,0x54,0x43]))){if(_0x803976())return!0x0;if(_0x1cdb3e()||_0x3e5de7())return!0x0;}return!0x1;}function _0x25752b(){const _0xdcfcdf=_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdcfcdf||0x0==_0xdcfcdf[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x146aef}=new URL(window[_0x506754([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdcfcdf[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x146aef))return!0x0;const _0x36b885=_0x146aef[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e]));return _0xdcfcdf[_0x506754([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x539112=>_0x539112[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x2a])))[_0x506754([0x6d,0x61,0x70])](_0x5be559=>_0x5be559[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e])))[_0x506754([0x73,0x6f,0x6d,0x65])](_0x4c4bbe=>_0x36b885[_0x506754([0x65,0x76,0x65,0x72,0x79])]((_0x31ad5c,_0xe1f457)=>_0x4c4bbe[_0xe1f457]===_0x31ad5c||_0x4c4bbe[_0xe1f457]===_0x506754([0x2a])));}function _0x5433d3(){return _0xe1d1d6&&_0x33a5e0?new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa7cf,_0x17c262)=>{_0xe1d1d6[_0x506754([0x74,0x68,0x65,0x6e])](_0x2aa7cf,_0x17c262),_0x33a5e0[_0x506754([0x74,0x68,0x65,0x6e])](_0x28b127=>{_0x28b127!=_0x506754([0x56,0x61,0x6c,0x69,0x64])&&_0x2aa7cf(_0x28b127);},_0x17c262);}):_0xe1d1d6||_0x33a5e0||_0x506754([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15b335(_0x3f8f69,_0x372351){return new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25dc0e=>{if(_0x4af935())return _0x25dc0e(_0x506754([0x56,0x61,0x6c,0x69,0x64]));_0xf675a6(),_0x1e5f3f[_0x506754([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5452de=!0x1;const _0x3a7328=_0x12e0b6();function _0x1f6ac9(_0x46eaed){return!!_0x46eaed&&(typeof _0x46eaed===_0x506754([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46eaed===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46eaed[_0x506754([0x74,0x68,0x65,0x6e])]===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46eaed[_0x506754([0x63,0x61,0x74,0x63,0x68])]===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x22eb59(_0x620a60){_0x3c1b62(_0x620a60)[_0x506754([0x74,0x68,0x65,0x6e])](_0x25e111=>{if(!_0x25e111||_0x25e111[_0x506754([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x506754([0x6f,0x6b]))return _0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b8409(_0x4646ea(_0x3a7328+_0x372351))!=_0x25e111[_0x506754([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x506754([0x56,0x61,0x6c,0x69,0x64]);})[_0x506754([0x74,0x68,0x65,0x6e])](_0x9a6bff=>(_0x12f305(),_0x9a6bff),()=>{const _0x2435f9=_0x22cdd0();return null==_0x2435f9?(_0x12f305(),_0x506754([0x56,0x61,0x6c,0x69,0x64])):_0x506754(_0x150266-_0x2435f9>(0x375f23b2^_0x319cf4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x506754([0x74,0x68,0x65,0x6e])](_0x25dc0e)[_0x506754([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x60f1a5=0x13654932^_0x319cf4;function _0x12f305(){const _0x44b9fb=_0x506754([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b8409(_0x4646ea(_0x3f8f69)),_0xb25e4c=_0x20260b(_0x3b8409(window[_0x506754([0x4d,0x61,0x74,0x68])][_0x506754([0x63,0x65,0x69,0x6c])](_0x150266/_0x60f1a5)));window[_0x506754([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x506754([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b9fb,_0xb25e4c);}function _0x22cdd0(){const _0x351c55=_0x506754([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b8409(_0x4646ea(_0x3f8f69)),_0x13c193=window[_0x506754([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x506754([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x351c55);return _0x13c193?window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20260b(_0x13c193),0x10)*_0x60f1a5:null;}function _0x3c1b62(_0x2e3917){return new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a897e,_0x312be1)=>{_0x2e3917[_0x506754([0x74,0x68,0x65,0x6e])](_0x1a897e,_0x312be1),window[_0x506754([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x312be1,0x13527372^_0x319cf4);});}}_0x1e5f3f[_0x506754([0x6f,0x6e])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3eb880,_0x593ef4)=>{if(_0x593ef4[0x0]!=_0x3f8f69)return _0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x593ef4[0x1]={..._0x593ef4[0x1],[_0x506754([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a7328};},{[_0x506754([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x506754([0x68,0x69,0x67,0x68])}),_0x1e5f3f[_0x506754([0x6f,0x6e])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5557df=>{_0x1f6ac9(_0x5557df[_0x506754([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5452de=!0x0,_0x22eb59(_0x5557df[_0x506754([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x506754([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x506754([0x6c,0x6f,0x77])}),_0x457df7[_0x506754([0x74,0x68,0x65,0x6e])](()=>{_0x5452de||_0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4af935(){return _0x1e5f3f[_0x506754([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506754([0x76,0x69,0x65,0x77])][_0x506754([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x506754([0x61,0x75,0x74,0x6f]);}function _0xf675a6(){_0x1e5f3f[_0x506754([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506754([0x76,0x69,0x65,0x77])][_0x506754([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x506754([0x61,0x75,0x74,0x6f]);}}function _0x421964(_0x5f5624){const _0x41d544=[new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cef86=>setTimeout(_0x4cef86,0x135a997e^_0x319cf4)),_0x457df7[_0x506754([0x74,0x68,0x65,0x6e])](()=>new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494874=>{let _0x559c0f=0x0;_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x6f,0x6e])](_0x506754([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f30de,_0x396513)=>{_0x396513[0x0][_0x506754([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x559c0f++,_0x559c0f==(0x1353a64a^_0x319cf4)&&(_0x494874(),_0x4f30de[_0x506754([0x6f,0x66,0x66])]());});}))];return window[_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x506754([0x72,0x61,0x63,0x65])](_0x41d544)[_0x506754([0x74,0x68,0x65,0x6e])](()=>_0x5f5624);}async function _0x2f8027(){await _0x457df7,_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc4d6f6,_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc4d6f6,_0x1e5f3f[_0x506754([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x506754([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x803976(){return _0x28fdf4(_0x506754([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a4836(_0x506754([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x506754([0x73,0x74,0x61,0x74,0x65])]==_0x506754([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1cdb3e(){return _0x28fdf4(_0x506754([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 _0x3e5de7(){return _0x28fdf4(_0x506754([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4957c3(_0x36ed76){const _0xafa67f=_0x4d21cd();_0x1e5f3f[_0xafa67f]=_0x506754([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36ed76,_0x36ed76!=_0x506754([0x56,0x61,0x6c,0x69,0x64])&&_0x2f8027();}function _0x4d21cd(){const _0x472e27=window[_0x506754([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x506754([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x506754([0x6e,0x6f,0x77])]())[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x506754([0x2e]),'');let _0x37f995=_0x506754([0x45]);for(let _0xa4fa30=0x0;_0xa4fa30<_0x472e27[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa4fa30+=0x2){let _0x57a7dd=window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472e27[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa4fa30,_0xa4fa30+0x2));_0x57a7dd>=_0x885b89[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57a7dd-=_0x885b89[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37f995+=_0x885b89[_0x57a7dd];}return _0x37f995;}function _0x1f2b8d(){const _0x5d0939=_0x12acbd[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e]));if(0x3!=_0x5d0939[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d77a2(_0x5d0939[0x1]);function _0x1d77a2(_0x1873ed){const _0x24ab75=_0x2e583d(_0x1873ed);return _0x24ab75&&_0x11900d()?_0x24ab75:null;function _0x11900d(){const _0x3befe5=_0x24ab75[_0x506754([0x6a,0x74,0x69])],_0xb9e25f=window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3befe5[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3befe5[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a2e2a={..._0x24ab75,[_0x506754([0x6a,0x74,0x69])]:_0x3befe5[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3befe5[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a2e2a[_0x506754([0x76,0x63])],_0x4646ea(_0x1a2e2a)==_0xb9e25f;}}}async function _0x452f77(){let _0x3d1437=!0x0;try{const _0x4b3644=_0x12acbd[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e])),[_0x159ff2,_0x215bb8,_0x7bf158]=_0x4b3644;return _0x303398(_0x159ff2),await _0x7f2bb3(_0x159ff2,_0x215bb8,_0x7bf158),_0x3d1437;}catch(_0x54354b){return!0x1;}function _0x303398(_0x51a057){const _0x535366=_0x2e583d(_0x51a057);_0x535366&&_0x535366[_0x506754([0x61,0x6c,0x67])]==_0x506754([0x45,0x53,0x32,0x35,0x36])||(_0x3d1437=!0x1);}async function _0x7f2bb3(_0x353b97,_0x3f71a1,_0x330de7){const _0x11053e=window[_0x506754([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x506754([0x66,0x72,0x6f,0x6d])](_0x123aa4(_0x330de7),_0x4aa73a=>_0x4aa73a[_0x506754([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e5ae7=new window[(_0x506754([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x506754([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x353b97+_0x506754([0x2e])+_0x3f71a1),_0x51765d=window[_0x506754([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x506754([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51765d)return;const _0x282c12=await _0x51765d[_0x506754([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x506754([0x6a,0x77,0x6b]),_0x336579,{[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x45,0x43,0x44,0x53,0x41]),[_0x506754([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x506754([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x506754([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51765d[_0x506754([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x45,0x43,0x44,0x53,0x41]),[_0x506754([0x68,0x61,0x73,0x68])]:{[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x282c12,_0x11053e,_0x4e5ae7)||(_0x3d1437=!0x1);}}function _0x2e583d(_0x5cc45e){return _0x5cc45e[_0x506754([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x506754([0x65,0x79]))?JSON[_0x506754([0x70,0x61,0x72,0x73,0x65])](_0x123aa4(_0x5cc45e)):null;}function _0x123aa4(_0x4d74b9){return window[_0x506754([0x61,0x74,0x6f,0x62])](_0x4d74b9[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x506754([0x2b]))[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x506754([0x2f])));}function _0x4646ea(_0x1d0e1f){let _0x294ae2=0x1505;function _0x326641(_0x2ac656){for(let _0x54aead=0x0;_0x54aead<_0x2ac656[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54aead++){const _0x1a24b2=_0x2ac656[_0x506754([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54aead);_0x294ae2=(_0x294ae2<<0x5)+_0x294ae2+_0x1a24b2,_0x294ae2&=_0x294ae2;}}function _0x299384(_0x24404a){Array[_0x506754([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24404a)?_0x24404a[_0x506754([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299384):_0x24404a&&typeof _0x24404a==_0x506754([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x506754([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24404a)[_0x506754([0x73,0x6f,0x72,0x74])]()[_0x506754([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x332660,_0x1826dc])=>{_0x326641(_0x332660),_0x299384(_0x1826dc);}):_0x326641(window[_0x506754([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24404a));}return _0x299384(_0x1d0e1f),_0x294ae2>>>0x0;}function _0x3b8409(_0x24e117){return _0x24e117[_0x506754([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x506754([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x506754([0x30]));}function _0x20260b(_0x165340){return _0x165340[_0x506754([0x73,0x70,0x6c,0x69,0x74])]('')[_0x506754([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x506754([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fdf4(_0x19427e){return _0x1e5f3f[_0x506754([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x506754([0x68,0x61,0x73])](_0x19427e);}function _0x2a4836(_0x1b342f){return _0x1e5f3f[_0x506754([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x506754([0x67,0x65,0x74])](_0x1b342f);}function _0xc4d6f6(){}function _0x506754(_0x45f227){return _0x45f227['map'](_0x412fd8=>String['fromCharCode'](_0x412fd8))['join']('');}_0x4957c3(await _0x41355e());}(this);}set['adapter'](_0x44a6e3){if(this['_adapter'])throw new _0x3c4487('track-changes-adapter-already-set',this);this['_adapter']=_0x44a6e3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15aca0=!0x1,toJSON:_0x3b5553=!0x1}={}){const _0x198f33=[];for(const _0x2e9c3d of this['_suggestions']['values']())_0x15aca0&&!_0x2e9c3d['isInContent']||_0x198f33['push'](_0x2e9c3d);return _0x3b5553?_0x198f33['map'](_0x23c825=>_0x23c825['toJSON']()):_0x198f33;}['getSuggestion'](_0x278225){const _0x36360f=this['_suggestions']['get'](_0x278225);if(!_0x36360f)throw new _0x3c4487('track-changes-suggestion-not-found',this);return _0x36360f;}['hasSuggestion'](_0x317cbc){return this['_suggestions']['has'](_0x317cbc);}['addSuggestionData'](_0x575222){const {authorId:_0x48a609,id:_0x2afc0d,attributes:_0x121670}=_0x575222,[_0x1c04e9,_0x206c36]=_0x575222['type']['split'](':'),_0x46ba4c=this['_suggestions']['get'](_0x2afc0d)||this['_createSuggestion'](_0x1c04e9,_0x206c36,_0x2afc0d,_0x48a609,_0x121670);if(this['_addThreadToSuggestion'](_0x46ba4c),this['_checkSuggestionCorrectness'](_0x46ba4c,_0x1c04e9,_0x206c36||null,_0x48a609),_0x46ba4c['createdAt']=_0x575222['createdAt'],_0x46ba4c['_isDataLoaded']=!0x0,_0x121670&&_0x121670['@external']){const _0x4dc5ef=_0x121670['@external'],_0x5935ad=this['_getExternalAuthor'](_0x4dc5ef['authorName']);_0x46ba4c['authoredAt']=_0x4dc5ef['createdAt'],_0x46ba4c['author']=_0x5935ad,_0x46ba4c['isExternal']=!0x0;}else _0x46ba4c['authoredAt']=_0x575222['createdAt'];switch(_0x575222['data']&&(_0x46ba4c['data']=_0x575222['data']),_0x575222['attributes']&&(_0x46ba4c['attributes']=_0x575222['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46ba4c['_saved']=!0x0),this['_suggestionState']['get'](_0x46ba4c)){case'notReady':this['_suggestionState']['set'](_0x46ba4c,'dataReady');break;case'markerReady':_0x46ba4c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46ba4c])),this['_refreshSuggestionsChain'](new Set([_0x46ba4c])),this['_suggestionState']['set'](_0x46ba4c,'ready'),this['fire']('suggestionLoaded',_0x46ba4c)):this['_suggestionState']['set'](_0x46ba4c,'removed');}return _0x46ba4c;}['acceptSuggestion'](_0x27ff0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2193c7 of _0x27ff0d['getAllAdjacentSuggestions']())_0x2193c7['accept']();});});}['discardSuggestion'](_0x2c361a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34b943 of _0x2c361a['getAllAdjacentSuggestions']())_0x34b943['discard']();});});}['enableCommand'](_0x48476a,_0x475e0e){const _0x18a4bd=this['editor']['commands']['get'](_0x48476a);if(!_0x18a4bd)throw new _0x3c4487('track-changes-command-not-found',this,{'commandName':_0x48476a});if(this['_enabledCommands']['has'](_0x18a4bd))throw new _0x3c4487('track-changes-enable-command-twice',this,{'commandName':_0x48476a});this['_enabledCommands']['add'](_0x18a4bd),_0x475e0e&&_0x18a4bd['on']('execute',(_0x4ea479,_0x29b0de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29b0de['length']>0x0&&_0x29b0de[_0x29b0de['length']-0x1]&&_0x29b0de[_0x29b0de['length']-0x1]['forceDefaultExecution']?_0x29b0de['pop']():(_0x4ea479['return']=_0x475e0e((..._0x23e7f6)=>_0x18a4bd['execute'](..._0x23e7f6,{'forceDefaultExecution':!0x0}),..._0x29b0de),_0x4ea479['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a940b){let _0x585027,_0x4b7d28;const _0x17d5e0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x585027=_0x4a940b();}catch(_0x2b1257){_0x4b7d28=_0x2b1257;}return _0x17d5e0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b7d28&&_0x3c4487['rethrowUnexpectedError'](_0x4b7d28,this),_0x585027;}['markInsertion'](_0x2018e9,_0x5bf14c=null,_0x37341a={}){if(_0x2018e9['isCollapsed'])return null;const _0x1544f0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x33f6fe,meta:_0x1e7f76}of this['_findSuggestions'](_0x2018e9,'insertion'))if(_0x1e7f76['isOwn']){if(!_0x1e7f76['isNextTo']){if(_0x1e7f76['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x33f6fe,_0x37341a))continue;return _0x33f6fe;}if(Kt(_0x33f6fe,_0x37341a))return _0x33f6fe;this['_breakSuggestionMarker'](_0x33f6fe,_0x2018e9['start'],_0x2018e9['end']);break;}if(_0x5bf14c==_0x33f6fe['subType']&&Kt(_0x33f6fe,_0x37341a)){const _0x5cbf04=_0x33f6fe['getFirstRange']();return _0x5cbf04['start']['isEqual'](_0x2018e9['end'])?this['_setSuggestionRange'](_0x33f6fe,this['_model']['createRange'](_0x2018e9['start'],_0x5cbf04['end'])):this['_setSuggestionRange'](_0x33f6fe,this['_model']['createRange'](_0x5cbf04['start'],_0x2018e9['end'])),_0x33f6fe;}}const _0x54e85c=_0x12e0b6(),_0x10dc65=_0x1544f0['id'],_0x3fc37a=_0x5bf14c?'insertion:'+_0x5bf14c:'insertion',_0x43ed80=this['_setSuggestionData']({'id':_0x54e85c,'type':_0x3fc37a,'createdAt':new Date(),'authorId':_0x10dc65,'attributes':_0x37341a});return this['_addSuggestionMarker'](_0x3fc37a,_0x54e85c,_0x10dc65,_0x2018e9),_0x43ed80;}['markMultiRangeInsertion'](_0x52bced,_0x243ada='multi',_0xb54347={}){const _0x14d8e8=this['editor']['plugins']['get']('Users')['me'],_0x361cde=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x243ada,'join');for(const _0x25428d of this['getSuggestions']())if(_0x25428d['author']['id']==_0x14d8e8['id']&&'insertion'==_0x25428d['type']&&_0x25428d['subType']==_0x243ada&&Kt(_0x25428d,_0xb54347)&&(_0x361cde(_0x25428d['getRanges'](),_0x52bced)||_0x361cde(_0x52bced,_0x25428d['getRanges']()))){for(const _0x4af5cc of _0x52bced)_0x25428d['addRange'](_0x4af5cc);return _0x25428d;}for(const {suggestion:_0x5dc582,meta:_0x595d0e}of this['_findSuggestions'](_0x52bced,'insertion')){if(!_0x595d0e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x595d0e['containsRangeInObject'])continue;if(!Kt(_0x5dc582,_0xb54347))continue;let _0x167ad8=!0x0;for(const _0x1e20a5 of _0x5dc582['getRanges']())for(const _0x46510a of _0x52bced)if(!_0x1e20a5['containsRange'](_0x46510a)){_0x167ad8=!0x1;break;}if(_0x167ad8)return _0x5dc582;}const _0x2ffd47=_0x12e0b6(),_0x284f52=_0x14d8e8['id'],_0x3a5924='insertion:'+_0x243ada,_0x6aa059=this['_setSuggestionData']({'id':_0x2ffd47,'type':_0x3a5924,'createdAt':new Date(),'authorId':_0x284f52,'attributes':_0xb54347});for(const _0x5bc9d3 of _0x52bced)this['_addSuggestionMarker'](_0x3a5924,_0x2ffd47,_0x284f52,_0x5bc9d3,u['getMultiRangeId']());return _0x6aa059;}['markInlineFormat'](_0x45e55f,_0x421494,_0xf4bc48=null,_0x1f995e={}){if(_0xf4bc48=_0xf4bc48||Ft(_0x421494),_0x45e55f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4d7039=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf4bc48,'accept');return this['forceDefaultExecution'](()=>_0x4d7039([_0x45e55f],_0x421494,_0x1f995e)),null;}const _0x156f5f=this['editor']['plugins']['get']('Users')['me'],_0x1fa912=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x217d51,meta:_0x4ee76d}of this['_findSuggestions'](_0x45e55f,'insertion'))_0x4ee76d['isOwn']&&!_0x4ee76d['isInsideObject']&&_0x1fa912['push'](..._0x217d51['getRanges']());}const _0x3d3216=function(_0x4a3a5b,_0x50f1fc){const _0x674faa=[];for(const _0x5104a6 of _0x50f1fc){const _0x2efc1c=_0x4a3a5b['getIntersection'](_0x5104a6);_0x2efc1c&&_0x674faa['push'](_0x2efc1c);}return _0x674faa;}(_0x45e55f,_0x1fa912),_0x40f0d7=function(_0x5a0fce,_0x4cdfac){const _0x2656c4=[_0x5a0fce];for(const _0x3f2db3 of _0x4cdfac){let _0x2e263b=0x0;for(;_0x2e263b<_0x2656c4['length'];){const _0xcf5849=_0x2656c4[_0x2e263b]['getDifference'](_0x3f2db3);_0x2656c4['splice'](_0x2e263b,0x1,..._0xcf5849),_0x2e263b+=_0xcf5849['length'];}}return _0x2656c4;}(_0x45e55f,_0x1fa912);_0x3d3216['length']&&this['_model']['change'](()=>{for(const _0x4c4db2 of _0x3d3216){const _0x4e037f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf4bc48,'accept');this['forceDefaultExecution'](()=>_0x4e037f([_0x4c4db2],_0x421494,_0x1f995e));}});for(const _0xbe183d of _0x40f0d7){let _0x91fa61=null,_0x1ae08b=_0xbe183d['start'],_0x56539b=_0xbe183d['end'];for(const {suggestion:_0x5b06af,meta:_0x25e7fa}of this['_findSuggestions'](_0xbe183d,'formatInline')){if(!_0x25e7fa['isOwn'])continue;if(_0x5b06af['subType']!=_0xf4bc48)continue;if(!Kt(_0x5b06af,_0x1f995e))continue;const _0xe12c9c=_0x5b06af['getFirstRange']();if(_0xe12c9c['containsRange'](_0xbe183d,!0x0))return null;_0x1ae08b=_0x1ae08b['isBefore'](_0xe12c9c['start'])?_0x1ae08b:_0xe12c9c['start'],_0x56539b=_0x56539b['isAfter'](_0xe12c9c['end'])?_0x56539b:_0xe12c9c['end'],_0x91fa61?_0xe12c9c['start']['isBefore'](_0x91fa61['getFirstRange']()['start'])?(_0x91fa61['removeMarkers'](),_0x91fa61=_0x5b06af):_0x5b06af['removeMarkers']():_0x91fa61=_0x5b06af;}const _0xc6bf6=this['_model']['createRange'](_0x1ae08b,_0x56539b);if(_0x91fa61)this['_setSuggestionRange'](_0x91fa61,_0xc6bf6);else{const _0x5194d3=_0x12e0b6(),_0x294d55=_0x156f5f['id'];this['_setSuggestionData']({'id':_0x5194d3,'type':'formatInline:'+_0xf4bc48,'data':_0x421494,'createdAt':new Date(),'authorId':_0x294d55,'attributes':_0x1f995e}),this['_addSuggestionMarker']('formatInline:'+_0xf4bc48,_0x5194d3,_0x294d55,_0xc6bf6);}}return null;}['markBlockFormat'](_0x11ff61,_0x580d8f,_0x1e5f28=[],_0x51c132=null,_0x257f97={}){_0x580d8f['formatGroupId']||(_0x580d8f['formatGroupId']=_0x580d8f['commandName']),_0x580d8f['multipleBlocks']=_0x11ff61['is']('range'),_0x51c132=_0x51c132||Ft(_0x580d8f);const _0x3c1b1f=_0x1e5f28['map'](_0x2072a2=>Ht(_0x2072a2,this['_model'])),_0x1356db=_0x11ff61['is']('range')?_0x11ff61:Ht(_0x11ff61,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4ef5be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51c132,'accept');return this['forceDefaultExecution'](()=>_0x4ef5be([_0x1356db],_0x580d8f,_0x257f97)),null;}_0x3c1b1f['push'](_0x1356db);let _0x20ab3a=!0x0;for(const _0x8d4906 of _0x3c1b1f)if(!this['_rangeIsInLocalUserInsertion'](_0x8d4906)){_0x20ab3a=!0x1;break;}if(_0x20ab3a&&'always'!==this['_trackFormatChanges']){const _0x18e3e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51c132,'accept');return this['forceDefaultExecution'](()=>_0x18e3e4([_0x1356db],_0x580d8f,_0x257f97)),null;}let _0x259642=null,_0x2582a8=_0x1356db['start'],_0x42fff5=_0x1356db['end'];for(const {suggestion:_0x1de33f,meta:_0x1241fd}of this['_findSuggestions'](_0x1356db,'formatBlock')){if(!_0x1241fd['isOwn'])continue;if(_0x1241fd['isNextTo']||_0x1241fd['containsRangeInObject']||_0x1241fd['isInsideObject'])continue;if(_0x1de33f['data']['formatGroupId']!=_0x580d8f['formatGroupId'])continue;if(!Kt(_0x1de33f,_0x257f97))continue;const _0x2b3063=_0x1de33f['getFirstRange']();if(_0x1de33f['subType']==_0x51c132){if(_0x2b3063['containsRange'](_0x1356db,!0x0))return null;_0x2582a8=_0x2582a8['isBefore'](_0x2b3063['start'])?_0x2582a8:_0x2b3063['start'],_0x42fff5=_0x42fff5['isAfter'](_0x2b3063['end'])?_0x42fff5:_0x2b3063['end'],_0x259642?_0x2b3063['start']['isBefore'](_0x259642['getFirstRange']()['start'])?(_0x259642['removeMarkers'](),_0x259642=_0x1de33f):_0x1de33f['removeMarkers']():_0x259642=_0x1de33f;}else{const _0x4ce73c=_0x1356db['getIntersection'](_0x2b3063);this['_cutOutSuggestionMarker'](_0x1de33f,_0x4ce73c);}}const _0x187ae5=this['editor']['plugins']['get']('Users')['me'],_0x1f22f9=_0x12e0b6(),_0x4d39c4=_0x187ae5['id'];if(_0x259642)return this['_setSuggestionRange'](_0x259642,this['_model']['createRange'](_0x2582a8,_0x42fff5)),_0x259642;{const _0x49b48f=this['_setSuggestionData']({'id':_0x1f22f9,'type':'formatBlock:'+_0x51c132,'data':_0x580d8f,'createdAt':new Date(),'authorId':_0x4d39c4,'attributes':_0x257f97});return this['_addSuggestionMarker']('formatBlock:'+_0x51c132,_0x1f22f9,_0x4d39c4,this['_model']['createRange'](_0x2582a8,_0x42fff5)),_0x49b48f;}}['markMultiRangeBlockFormat'](_0x14302e,_0x2af82b,_0x192781=[],_0x3cc6ed=null,_0x1d25d1={}){_0x2af82b['formatGroupId']||(_0x2af82b['formatGroupId']=_0x2af82b['commandName']);const _0x4d6025=_0x14302e[0x0];_0x2af82b['multipleBlocks']=_0x4d6025['is']('range'),_0x3cc6ed=_0x3cc6ed||Ft(_0x2af82b);const _0x2c0417=_0x192781['map'](_0x332ee9=>Ht(_0x332ee9,this['_model'])),_0x199dfa=_0x4d6025['is']('range')?_0x14302e:_0x14302e['map'](_0x42de76=>Ht(_0x42de76,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b76ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'accept');return this['forceDefaultExecution'](()=>_0x3b76ed(_0x199dfa,_0x2af82b,_0x1d25d1)),null;}_0x2c0417['push'](..._0x199dfa);let _0x21efd1=!0x0;for(const _0x2dcbd3 of _0x2c0417)if(!this['_rangeIsInLocalUserInsertion'](_0x2dcbd3)){_0x21efd1=!0x1;break;}if(_0x21efd1&&'always'!==this['_trackFormatChanges']){const _0xbf1124=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'accept');return this['forceDefaultExecution'](()=>_0xbf1124(_0x199dfa,_0x2af82b,_0x1d25d1)),null;}const _0x43cb3f=this['editor']['plugins']['get']('Users')['me'];for(const _0x165939 of this['getSuggestions']()){if(_0x165939['author']['id']!=_0x43cb3f['id'])continue;if('formatBlock'!=_0x165939['type']||_0x165939['data']['formatGroupId']!=_0x2af82b['formatGroupId'])continue;if(!Kt(_0x165939,_0x1d25d1))continue;const _0x2b55cd=_0x165939['subType']==_0x3cc6ed;for(let _0x221109=0x0;_0x221109<_0x199dfa['length'];_0x221109++){const _0x1a4958=_0x199dfa[_0x221109];for(const _0x4dbb60 of _0x165939['getMarkers']()){const _0x55eb1f=_0x4dbb60['getRange']();if(_0x1a4958['isEqual'](_0x55eb1f)){_0x2b55cd?(_0x199dfa['splice'](_0x221109,0x1),_0x221109--):_0x165939['removeMarker'](_0x4dbb60['name']);break;}}}}if(0x0==_0x199dfa['length'])return null;const _0x7722f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'join');for(const _0x447a98 of this['getSuggestions']())if(_0x447a98['author']['id']==_0x43cb3f['id']&&'formatBlock'==_0x447a98['type']&&_0x447a98['data']['formatGroupId']==_0x2af82b['formatGroupId']&&_0x447a98['subType']==_0x3cc6ed&&Kt(_0x447a98,_0x1d25d1)&&(_0x7722f(_0x447a98['getRanges'](),_0x199dfa)||_0x7722f(_0x199dfa,_0x447a98['getRanges']()))){for(const _0x38a5f3 of _0x199dfa)_0x447a98['addRange'](_0x38a5f3);return _0x447a98;}const _0x5fcd42=_0x12e0b6(),_0x131334=_0x43cb3f['id'],_0x3c1f8e='formatBlock:'+_0x3cc6ed,_0x2683d9=this['_setSuggestionData']({'id':_0x5fcd42,'type':_0x3c1f8e,'data':_0x2af82b,'createdAt':new Date(),'authorId':_0x131334,'attributes':_0x1d25d1});for(const _0x18f906 of _0x199dfa)this['_addSuggestionMarker'](_0x3c1f8e,_0x5fcd42,_0x131334,_0x18f906,u['getMultiRangeId']());return _0x2683d9;}['markDeletion'](_0x2156c5,_0x1cec58=null,_0x434a4e={}){if(_0x2156c5['isCollapsed'])return null;const _0x266ed2=this['editor']['plugins']['get']('Users')['me'],_0x360065=new _0x14dd4f(_0x2156c5['start'],_0x2156c5['end']);for(const {suggestion:_0x2fd8bd,meta:_0x1da0f2}of this['_findSuggestions'](_0x360065,'insertion'))if(_0x1da0f2['isOwn']&&!_0x1da0f2['isNextTo']){if(_0x2fd8bd['isMultiRange']){const _0x2364af=_0x2fd8bd['getRanges']()['filter'](_0x3ef516=>'$graveyard'!=_0x3ef516['root']['rootName']);_0x2364af['every'](_0x3aa693=>_0x360065['containsRange'](_0x3aa693,!0x0))&&_0x2fd8bd['discard']();if(_0x2364af['some'](_0x2e7a95=>_0x2e7a95['containsRange'](_0x360065,!0x0))){const _0x4a9d0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1cec58,'accept');return this['forceDefaultExecution'](()=>_0x4a9d0b([_0x360065],null,_0x434a4e)),null;}}else{const _0x42d6bf=_0x360065['getIntersection'](_0x2fd8bd['getFirstRange']());null!==_0x42d6bf&&_0x2fd8bd['_onDiscard']([_0x42d6bf],null,_0x434a4e);}}if(_0x360065['detach'](),_0x360065['isCollapsed']||'$graveyard'==_0x360065['root']['rootName'])return null;let _0x35e43d=null,_0x479fb3=_0x360065['start'],_0x862d4c=_0x360065['end'];const _0x4e932c=this['_findSuggestions'](_0x360065,'deletion');for(const {suggestion:_0x37a630,meta:_0x1f5c94}of _0x4e932c){const _0x1619f0=this['_model']['createRange'](_0x479fb3,_0x862d4c);if(_0x1f5c94['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f5c94['containsRangeInObject']&&!_0x1f5c94['isInsideObject'])){if(_0x37a630['isMultiRange']){if(!Kt(_0x37a630,_0x434a4e))continue;let _0x38d46b=!0x0;for(const _0x59c65a of _0x37a630['getRanges']()){if(_0x59c65a['containsRange'](_0x1619f0,!0x0))return _0x37a630;_0x1619f0['containsRange'](_0x59c65a)||(_0x38d46b=!0x1);}_0x38d46b&&_0x37a630['discard']();}else{const _0x5ad824=_0x37a630['getFirstRange']();if(_0x5ad824['containsRange'](_0x1619f0,!0x0))return _0x37a630;if(!Kt(_0x37a630,_0x434a4e)){_0x1619f0['containsRange'](_0x5ad824)?_0x37a630['removeMarkers']():_0x5ad824['containsPosition'](_0x479fb3)?_0x479fb3=_0x5ad824['end']:_0x5ad824['containsPosition'](_0x862d4c)&&(_0x862d4c=_0x5ad824['start']);continue;}_0x479fb3=_0x479fb3['isBefore'](_0x5ad824['start'])?_0x479fb3:_0x5ad824['start'],_0x862d4c=_0x862d4c['isAfter'](_0x5ad824['end'])?_0x862d4c:_0x5ad824['end'],_0x434a4e=Object['assign']({},_0x37a630['attributes']),_0x35e43d?_0x5ad824['start']['isBefore'](_0x35e43d['getFirstRange']()['start'])?(_0x35e43d['removeMarkers'](),_0x35e43d=_0x37a630):_0x37a630['removeMarkers']():_0x35e43d=_0x37a630;}}}if(_0x35e43d)return this['_setSuggestionRange'](_0x35e43d,this['_model']['createRange'](_0x479fb3,_0x862d4c)),_0x35e43d;{const _0x75250e=_0x12e0b6(),_0x45d1d3=this['_model']['createRange'](_0x479fb3,_0x862d4c),_0x1ff243=_0x266ed2['id'],_0x593527=_0x1cec58?'deletion:'+_0x1cec58:'deletion',_0x445f25=this['_setSuggestionData']({'id':_0x75250e,'type':_0x593527,'createdAt':new Date(),'authorId':_0x1ff243,'attributes':_0x434a4e});return this['_addSuggestionMarker'](_0x593527,_0x75250e,_0x1ff243,_0x45d1d3),_0x445f25;}}['markMultiRangeDeletion'](_0x5e7f81,_0x3db0b7='multi',_0x3e9b9c={}){const _0x4f1206=this['editor']['plugins']['get']('Users')['me'],_0x2a56af=_0x5e7f81['map'](_0x1139e7=>new _0x14dd4f(_0x1139e7['start'],_0x1139e7['end'])),_0x1b1c4e=new Set();for(const {suggestion:_0xeaef6a,meta:_0xacc4b2}of this['_findSuggestions'](_0x2a56af,'insertion'))_0xacc4b2['isOwn']&&!_0xacc4b2['isNextTo']&&_0x1b1c4e['add'](_0xeaef6a);for(const _0x444ed7 of _0x1b1c4e)if(_0x444ed7['isMultiRange']){const _0x155247=_0x444ed7['getRanges']();(!_0x444ed7['attributes']||!_0x444ed7['attributes']['skipNestingCheck'])&&(_0x155247['every'](_0xc02959=>_0x2a56af['some'](_0x33d0fc=>_0x33d0fc['containsRange'](_0xc02959,!0x0)))&&_0x444ed7['discard']());if(_0x2a56af['every'](_0x18841b=>_0x155247['some'](_0x56a8d2=>_0x56a8d2['containsRange'](_0x18841b,!0x0)))){const _0x4c3587=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'accept');return this['forceDefaultExecution'](()=>_0x4c3587(_0x5e7f81,null,_0x3e9b9c)),null;}}else{const _0x1b7c2a=_0x444ed7['getFirstRange']();_0x2a56af['some'](_0x191d59=>_0x191d59['containsRange'](_0x1b7c2a,!0x0))&&_0x444ed7['discard']();if(_0x2a56af['every'](_0x2bb139=>_0x1b7c2a['containsRange'](_0x2bb139,!0x0))){const _0x5a0fb0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'accept');return this['forceDefaultExecution'](()=>_0x5a0fb0(_0x2a56af,null,_0x3e9b9c)),null;}}const _0x26e42b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'join');let _0x18abac=null;for(const _0x1eaced of this['getSuggestions']())if(_0x1eaced['author']['id']==_0x4f1206['id']&&_0x1eaced['isInContent']&&'deletion'==_0x1eaced['type']&&_0x1eaced['subType']==_0x3db0b7&&Kt(_0x1eaced,_0x3e9b9c)&&(_0x26e42b(_0x1eaced['getRanges'](),_0x2a56af)||_0x26e42b(_0x2a56af,_0x1eaced['getRanges']()))){if(_0x18abac){if(_0x1eaced['commentThread']&&_0x1eaced['commentThread']['length'])continue;for(const _0xa94f15 of _0x1eaced['getRanges']())_0x18abac['isIntersectingWithRange'](_0xa94f15)||_0x18abac['addRange'](_0xa94f15);_0x1eaced['removeMarkers']();}else{_0x18abac=_0x1eaced;for(const _0x560a79 of _0x2a56af)_0x1eaced['isIntersectingWithRange'](_0x560a79)||_0x1eaced['addRange'](_0x560a79);}}if(_0x18abac)return _0x18abac;_0x1b1c4e['clear']();for(const {suggestion:_0x79f312,meta:_0x50332b}of this['_findSuggestions'](_0x2a56af,'deletion'))_0x50332b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50332b['containsRangeInObject']&&!_0x50332b['isInsideObject'])&&Kt(_0x79f312,_0x3e9b9c)&&_0x1b1c4e['add'](_0x79f312);for(const _0x4225d1 of _0x1b1c4e){const _0x4eea4b=_0x4225d1['getRanges']();if(!_0x3e9b9c||!_0x3e9b9c['skipNestingCheck']){if(_0x2a56af['every'](_0x67c02f=>_0x4eea4b['some'](_0x3d31d8=>_0x3d31d8['containsRange'](_0x67c02f,!0x0))))return _0x4225d1;}(!_0x4225d1['attributes']||!_0x4225d1['attributes']['skipNestingCheck'])&&(_0x4eea4b['every'](_0x4cacb8=>_0x2a56af['some'](_0x554fdd=>_0x554fdd['containsRange'](_0x4cacb8,!0x0)))&&_0x4225d1['discard']());}const _0x30b20f=_0x12e0b6(),_0xba21ae=_0x4f1206['id'],_0x20c433='deletion:'+_0x3db0b7,_0x3715a0=this['_setSuggestionData']({'id':_0x30b20f,'type':_0x20c433,'createdAt':new Date(),'authorId':_0xba21ae,'attributes':_0x3e9b9c});for(const _0x5a3767 of _0x2a56af)_0x5a3767['detach'](),_0x5a3767['isCollapsed']||'$graveyard'==_0x5a3767['root']['rootName']||this['_addSuggestionMarker'](_0x20c433,_0x30b20f,_0xba21ae,_0x5a3767,u['getMultiRangeId']());return _0x3715a0;}['markAttributeChange'](_0x362af2,_0xae4326,_0x287c4c,_0x201072,_0x298484){if(_0x362af2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3006d4=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a7a57=Array['from'](this['_suggestions']['values']())['filter'](_0x153aa5=>'attribute'==_0x153aa5['type']&&_0x153aa5['data']['key']==_0xae4326&&_0x153aa5['isIntersectingWithRange'](_0x362af2));if('default'===this['_trackFormatChanges']){const _0x5f2ec9=this['_findSuggestions'](_0x362af2,'insertion')['filter'](({meta:_0x3e07cf})=>_0x3e07cf['isOwn']&&!_0x3e07cf['isInsideObject']&&!_0x3e07cf['isNextTo'])['map'](({suggestion:_0x423d00})=>_0x423d00);_0x1a7a57['unshift'](..._0x5f2ec9);}const _0x115298=new Map([[_0x362af2,_0x287c4c]]);for(const _0x14c6dc of _0x1a7a57){const _0x96470e='attribute'==_0x14c6dc['type']?_0x14c6dc['data']['oldValue']:void 0x0,_0x444b05=_0x14c6dc['getFirstRange'](),_0x4adb04=Array['from'](_0x115298['keys']())['find'](_0x14ab0c=>_0x14ab0c['isIntersecting'](_0x444b05));if(!_0x4adb04)continue;const _0x50fce6=_0x4adb04['getDifference'](_0x444b05);this['_isBlockAttribute'](_0xae4326)&&'insertion'==_0x14c6dc['type']&&0x0!=_0x50fce6['length']||(_0x115298['delete'](_0x4adb04),_0x50fce6['forEach'](_0x35636a=>{_0x115298['set'](_0x35636a,_0x287c4c);}),'insertion'!=_0x14c6dc['type']&&_0x96470e!=_0x201072&&_0x115298['set'](_0x4adb04['getIntersection'](_0x444b05),_0x96470e));}const _0x2a6cdc=[];for(const [_0x5063b5,_0x3b2791]of _0x115298){const _0x4bc830=_0x12e0b6(),_0x1d255b={'key':_0xae4326,'oldValue':_0x3b2791,'newValue':_0x201072};_0xae4326['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':_0xae4326});const _0x1d31dc=('attribute:'+(_0xae4326+'|'+Ft({'newValue':_0x201072})))['substring'](0x0,0x3c),_0x34b582=this['_setSuggestionData']({'id':_0x4bc830,'type':_0x1d31dc,'data':_0x1d255b,'createdAt':new Date(),'authorId':_0x3006d4,'attributes':_0x298484});_0x2a6cdc['push'](_0x34b582),this['_addSuggestionMarker'](_0x1d31dc,_0x4bc830,_0x3006d4,_0x5063b5);}return _0x2a6cdc;}['enableDefaultAttributesIntegration'](_0x359e5e){this['enableCommand'](_0x359e5e,(_0x14090a,..._0x18c2bd)=>{this['_recordAttributeChanges'](()=>{_0x14090a(..._0x18c2bd);});});}['registerBlockAttribute'](_0x49d4c0){this['_blockAttributeKeys']['add'](_0x49d4c0);}['registerInlineAttribute'](_0x54c184){this['_inlineAttributeKeys']['add'](_0x54c184);}['_getAttributeKey'](_0x44ae1a){return'attribute'==_0x44ae1a['type']?_0x44ae1a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x157539,_0x3c0ae3){const _0x2acc42=_0x157539['getFirstMarker']();this['_model']['change'](_0x1165a3=>{_0x1165a3['updateMarker'](_0x2acc42,{'range':_0x3c0ae3});});}['_addThreadToSuggestion'](_0x2bb11f){const _0x11e6fb=_0x2bb11f['id'],_0x5e66eb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x11e6fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e66eb,'threadId':_0x11e6fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4faa92=this['_commentsRepository']['getCommentThread'](_0x11e6fb);_0x4faa92['unbind']('isRemovable'),_0x4faa92['isRemovable']=!0x1,_0x2bb11f['commentThread']=_0x4faa92;}['_checkSuggestionCorrectness'](_0x2f5aa7,_0x486870,_0x1aab2d,_0x13e81b){if(_0x2f5aa7['type']!=_0x486870||_0x2f5aa7['subType']!=_0x1aab2d||_0x2f5aa7['creator']['id']!=_0x13e81b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c4487('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3628a7,_0x416d61){const _0x4137a5=_0x3628a7['getFirstRange']();if(_0x416d61['isEqual'](_0x4137a5))_0x3628a7['removeMarkers']();else{if(_0x4137a5['containsRange'](_0x416d61)){const _0x5ae5ab=this['_model']['createPositionAt'](_0x416d61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x4137a5['start'],_0x5ae5ab));const _0x5e875c=_0x12e0b6(),_0x3dfbad=_0x3628a7['creator']['id'],_0xc276f=_0x3628a7['type']+':'+_0x3628a7['subType'];this['_setSuggestionData']({'id':_0x5e875c,'type':_0xc276f,'createdAt':new Date(),'authorId':_0x3dfbad,'data':_0x3628a7['data'],'attributes':_0x3628a7['attributes']});const _0x4a529a=this['_model']['createPositionAt'](_0x416d61['end']['parent'],'after'),_0x30e775=this['_model']['createRange'](_0x4a529a,_0x4137a5['end']);this['_addSuggestionMarker'](_0xc276f,_0x5e875c,_0x3dfbad,_0x30e775);}else{if(_0x4137a5['containsPosition'](_0x416d61['start'])){const _0x476b48=this['_model']['createPositionAt'](_0x416d61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x4137a5['start'],_0x476b48));}else{const _0x19a24d=this['_model']['createPositionAt'](_0x416d61['end']['parent'],'after');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x19a24d,_0x4137a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xa0c970){for(const {suggestion:_0x4c92bd,meta:_0x195866}of this['_findSuggestions'](_0xa0c970,'insertion')){if(!_0x195866['isOwn'])continue;const _0x269ea6=_0x4c92bd['getRanges']();for(const _0x46e560 of _0x269ea6)if(!_0xa0c970['getDifference'](_0x46e560)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5984a1){const _0x34450d=this['editor']['plugins']['get']('Users')['getUser'](_0x5984a1);if(!_0x34450d)throw new _0x3c4487('track-changes-user-not-found',this);return _0x34450d;}['_getExternalAuthor'](_0x166958){const _0x3ec05b=this['editor']['plugins']['get']('Users'),_0x3c9f3b=_0x1f57d0('external:'+_0x166958),_0x300c5e=_0x3ec05b['getUser'](_0x3c9f3b);return _0x300c5e||_0x3ec05b['addUser']({'id':_0x3c9f3b,'name':_0x166958});}['_createSuggestion'](_0x1ae764,_0x315b39,_0x4c98a9,_0x461782,_0x156743){const _0x354bff=this['_getAuthorFromId'](_0x461782),_0x5d72ea=this['_suggestionFactory']['buildSuggestion'](_0x1ae764,_0x315b39,_0x4c98a9,_0x354bff,_0x156743,_0x33afb7=>{this['_updateSuggestionData'](_0x4c98a9,{'attributes':_0x33afb7});const _0x41dd77=this['getSuggestion'](_0x4c98a9);this['_joinWithAdjacentSuggestions'](new Set([_0x41dd77])),this['_refreshSuggestionsChain'](new Set([_0x41dd77]));});return this['listenTo'](_0x5d72ea,'accept',()=>{this['_updateSuggestionData'](_0x4c98a9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5d72ea,'discard',()=>{this['_updateSuggestionData'](_0x4c98a9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c98a9,_0x5d72ea),this['_suggestionState']['set'](_0x5d72ea,'notReady'),_0x5d72ea;}['_splitMarkerName'](_0x37904f){const _0x233d54=_0x37904f['split'](':');return{'group':_0x233d54[0x0],'type':_0x233d54[0x1],'subType':_0x233d54['length']>=0x5?_0x233d54[0x2]:null,'id':_0x233d54['length']<0x5?_0x233d54[0x2]:_0x233d54[0x3],'authorId':_0x233d54['length']<0x5?_0x233d54[0x3]:_0x233d54[0x4],'markerCount':0x6==_0x233d54['length']?_0x233d54[0x5]:null};}['_breakSuggestionMarker'](_0x3e4bfa,_0x3dd81f,_0x1621ca){const _0x2671f8=_0x3e4bfa['getFirstRange'](),_0x585b7d=_0x2671f8['start'],_0x39fef5=_0x2671f8['end'];this['_setSuggestionRange'](_0x3e4bfa,this['_model']['createRange'](_0x585b7d,_0x3dd81f));const _0x57fd21=_0x12e0b6(),_0x226c12=_0x3e4bfa['creator']['id'],_0x587da3=_0x3e4bfa['type']+(_0x3e4bfa['subType']?':'+_0x3e4bfa['subType']:'');this['_setSuggestionData']({'id':_0x57fd21,'type':_0x587da3,'createdAt':new Date(),'authorId':_0x226c12,'originalSuggestionId':_0x3e4bfa['id'],'attributes':_0x3e4bfa['attributes'],'data':_0x3e4bfa['data']});const _0x2a3de8=this['_getAttributeKey'](_0x3e4bfa);('formatBlock'==_0x3e4bfa['type']||_0x2a3de8&&this['_isBlockAttribute'](_0x2a3de8))&&(_0x1621ca=this['_model']['createPositionBefore'](_0x1621ca['parent'])),this['_addSuggestionMarker'](_0x587da3,_0x57fd21,_0x226c12,this['_model']['createRange'](_0x1621ca,_0x39fef5));}['_findSuggestions'](_0x21efb8,_0x1879a4=null){const _0x2554ee=[],_0x1ab8c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21efb8)||(_0x21efb8=[_0x21efb8]);for(const _0x138d1a of this['getSuggestions']()){if(!_0x138d1a['isInContent'])continue;if(_0x1879a4&&_0x138d1a['type']!=_0x1879a4)continue;let _0x4618f6=!0x1;for(const _0x46c9ff of _0x138d1a['getRanges']()){for(const _0x5011a9 of _0x21efb8){const _0x235c5e=_0x5011a9['start']['isEqual'](_0x46c9ff['end'])||_0x5011a9['end']['isEqual'](_0x46c9ff['start']);if(_0x235c5e||_0x5011a9['getIntersection'](_0x46c9ff)){const _0x36830c=_0x5011a9['containsRange'](_0x46c9ff)&&Vt(this['_model']['schema'],_0x46c9ff['start'],_0x5011a9),_0x3c36b=_0x46c9ff['containsRange'](_0x5011a9)&&Vt(this['_model']['schema'],_0x5011a9['start'],_0x46c9ff);_0x2554ee['push']({'suggestion':_0x138d1a,'meta':{'isOwn':_0x1ab8c0==_0x138d1a['author'],'isNextTo':_0x235c5e,'isInsideObject':_0x36830c,'containsRangeInObject':_0x3c36b}}),_0x4618f6=!0x0;break;}}if(_0x4618f6)break;}}return _0x2554ee;}['_addSuggestionMarker'](_0x1fc44c,_0x2159b3,_0x38f26d,_0x399873,_0x2535b8){this['_model']['change'](_0x17eed9=>{let _0x141ac6='suggestion:'+_0x1fc44c+':'+_0x2159b3+':'+_0x38f26d;_0x2535b8&&(_0x141ac6=_0x141ac6+':'+_0x2535b8),_0x17eed9['addMarker'](_0x141ac6,{'range':_0x399873,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18eef7){const _0x287d77=_0x18eef7['previous'],_0x33cde0=_0x18eef7['next'];_0x18eef7['previous']=null,_0x18eef7['next']=null,null!=_0x287d77&&_0x287d77['next']==_0x18eef7&&(_0x287d77['next']=_0x33cde0),null!=_0x33cde0&&_0x33cde0['previous']==_0x18eef7&&(_0x33cde0['previous']=_0x287d77),'ready'==this['_suggestionState']['get'](_0x18eef7)&&(this['_suggestionState']['set'](_0x18eef7,'removed'),this['fire']('suggestionUnloaded',_0x18eef7,_0x287d77,_0x33cde0));}['_setSuggestionData'](_0x3c6f3b){const _0x531d4c=_0x3c6f3b['id'],_0x1f1110=this['addSuggestionData'](_0x3c6f3b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42cc1b=this['editor']['plugins']['get']('PendingActions'),_0x443ba0=_0x1f1110['hasComments'],_0x52c2c5=_0x1f1110['subType']?_0x1f1110['type']+':'+_0x1f1110['subType']:_0x1f1110['type'],_0x4e8b2b=this['editor']['locale'],_0x542df3=_0x42cc1b['add'](o(_0x4e8b2b,'PENDING_ACTION_SUGGESTION')),_0x3e98de={'id':_0x531d4c,'type':_0x52c2c5,'hasComments':_0x443ba0,'data':_0x3c6f3b['data']||null,'originalSuggestionId':_0x3c6f3b['originalSuggestionId']||null,'attributes':_0x1f1110['attributes']};this['_adapter']['addSuggestion'](_0x3e98de)['then'](_0x1f63b2=>{_0x1f1110['_saved']=!0x0,_0x42cc1b['remove'](_0x542df3),_0x1f63b2&&_0x1f63b2['createdAt']&&(this['_suggestions']['get'](_0x531d4c)['createdAt']=_0x1f63b2['createdAt']);})['catch'](_0x5692fb=>{throw _0x194bc4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f1110['discard']();}),_0x1f1110['stopListening'](),this['_suggestions']['delete'](_0x1f1110['id']),this['_suggestionState']['delete'](_0x1f1110),_0x5692fb;});}return _0x1f1110;}['_isBlockAttribute'](_0x16f25e){return this['_blockAttributeKeys']['has'](_0x16f25e);}['_updateSuggestionData'](_0x32f459,_0x2c22ce){const _0xc0e0ae=this['editor']['plugins']['get']('PendingActions'),_0x4a31be=this['getSuggestion'](_0x32f459);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a31be['_saved']){const _0x31834e=_0xc0e0ae['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32f459,_0x2c22ce)['then'](()=>{_0xc0e0ae['remove'](_0x31834e);});}else _0x4a31be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32f459,_0x2c22ce);});}}['_getSuggestionData'](_0x5ab8bc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c4487('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5ab8bc);}['_handleNewSuggestionMarker'](_0x5c9460){const {id:_0x1aca59,type:_0x4a529c,subType:_0x1a4ad3,authorId:_0x2bb46c}=this['_splitMarkerName'](_0x5c9460),_0x1abb8a=this['_suggestions']['get'](_0x1aca59)||this['_createSuggestion'](_0x4a529c,_0x1a4ad3,_0x1aca59,_0x2bb46c,{});switch(this['_checkSuggestionCorrectness'](_0x1abb8a,_0x4a529c,_0x1a4ad3,_0x2bb46c),this['_suggestionState']['get'](_0x1abb8a)){case'notReady':this['_getSuggestionData'](_0x1aca59)['then'](_0x57537a=>{let _0x2722bb=Promise['resolve']();_0x57537a['hasComments']&&(_0x2722bb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1aca59})),_0x2722bb['then'](()=>{this['addSuggestionData'](_0x57537a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1abb8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1aca59,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1abb8a,'ready'),this['fire']('suggestionLoaded',_0x1abb8a);break;case'ready':this['fire']('suggestionChanged',_0x1abb8a);}return _0x1abb8a['addMarkerName'](_0x5c9460),_0x1abb8a;}['_refreshSuggestionsChain'](_0xe32ec6){const _0x3bda3f=Array['from'](_0xe32ec6),_0xc825d8=_0x3bda3f['filter'](_0x30ef5c=>'attribute'==_0x30ef5c['type']);this['_refreshAttributeSuggestionsChain'](_0xc825d8);const _0x3b24f0=_0x3bda3f['filter'](_0x2a3cc2=>!_0x2a3cc2['isMultiRange']&&'attribute'!=_0x2a3cc2['type']),_0x57ca3e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x198f4c=>!_0x198f4c['isMultiRange']&&'attribute'!=_0x198f4c['type']),_0x352fda=_0x57ca3e['filter'](_0x29ef22=>!_0xe32ec6['has'](_0x29ef22)),_0x5e8292=new Map(_0x57ca3e['map'](_0x85c16f=>[_0x85c16f,this['_suggestionFactory']['getSuggestionCallback'](_0x85c16f['type'],_0x85c16f['subType'],'chain')])),_0x4cc650=new Map(_0x57ca3e['map'](_0xe24ef0=>[_0xe24ef0,_0xe24ef0['getFirstRange']()])),_0x2de314=new Set(),_0x279a18=new Set();for(let _0x3ca75a=0x0;_0x3ca75a<_0x3b24f0['length'];_0x3ca75a++)_0x2e9777(_0x3b24f0[_0x3ca75a],_0x3b24f0,_0x3ca75a+0x1);for(let _0x1dfb3d=0x0;_0x1dfb3d<_0x3b24f0['length'];_0x1dfb3d++)_0x2e9777(_0x3b24f0[_0x1dfb3d],_0x352fda,0x0);const _0x4fbeeb=new Set();for(let _0x2018b9=0x0;_0x2018b9<_0x3b24f0['length'];_0x2018b9++){const _0x15e513=_0x3b24f0[_0x2018b9];!_0x279a18['has'](_0x15e513)&&_0x15e513['previous']&&(_0x4fbeeb['add'](_0x15e513['previous']),_0x15e513['previous']['next']===_0x15e513&&(_0x15e513['previous']['next']=null),_0x15e513['previous']=null),!_0x2de314['has'](_0x15e513)&&_0x15e513['next']&&(_0x4fbeeb['add'](_0x15e513['next']),_0x15e513['next']['previous']===_0x15e513&&(_0x15e513['next']['previous']=null),_0x15e513['next']=null);}function _0x2e9777(_0x163d6f,_0x5297f4,_0x23d2ec){for(let _0x347004=_0x23d2ec;_0x347004<_0x5297f4['length'];_0x347004++){const _0x2e5883=_0x28f30c(_0x163d6f,_0x5297f4[_0x347004]);_0x2e5883&&(_0x2e5883[0x0]['next']=_0x2e5883[0x1],_0x2e5883[0x1]['previous']=_0x2e5883[0x0],_0x2de314['add'](_0x2e5883[0x0]),_0x279a18['add'](_0x2e5883[0x1]));}}function _0x28f30c(_0x22e757,_0x411bc){if(_0x22e757['author']['id']!==_0x411bc['author']['id'])return null;const _0x1befca=_0x5e8292['get'](_0x22e757)(_0x22e757,_0x411bc,_0x4cc650['get'](_0x22e757),_0x4cc650['get'](_0x411bc));if(!_0x1befca)return null;return _0x5e8292['get'](_0x411bc)(_0x22e757,_0x411bc,_0x4cc650['get'](_0x22e757),_0x4cc650['get'](_0x411bc))?_0x1befca[0x1]['commentThread']&&_0x1befca[0x1]['commentThread']['length']?null:_0x1befca:null;}_0x4fbeeb['size']&&this['_refreshSuggestionsChain'](_0x4fbeeb);}['_refreshAttributeSuggestionsChain'](_0x3cc2cf){if(0x0==_0x3cc2cf['length'])return;const _0x26a821=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x298d43=>'attribute'==_0x298d43['type']&&_0x298d43['_isDataLoaded']),_0x1ee4c2=[],_0x5e292f=new Map();for(const _0x50ad4f of _0x26a821){const _0x2243c8=_0x1f57d0(_0x50ad4f['attributes']);_0x5e292f['has'](_0x2243c8)||(_0x5e292f['set'](_0x2243c8,_0x1ee4c2['length']),_0x1ee4c2['push']([]));const _0x326bd1=_0x5e292f['get'](_0x2243c8);_0x1ee4c2[_0x326bd1]['push'](_0x50ad4f);}!(function(){_0x1ee4c2['sort']((_0x65d29b,_0x355c0d)=>{const _0x2739ea=_0x65d29b[0x0]['createdAt'],_0x2481ba=_0x355c0d[0x0]['createdAt'];return _0x2739ea==_0x2481ba?_0x65d29b[0x0]['attributes']['groupId']<_0x355c0d[0x0]['attributes']['groupId']?-0x1:0x1:_0x2739ea<_0x2481ba?-0x1:0x1;});for(const _0x58adc7 of _0x1ee4c2)_0x58adc7['sort']((_0x83ab35,_0x3cc693)=>_0x83ab35['id']<_0x3cc693['id']?-0x1:0x1);}());for(let _0x1b1273=0x0;_0x1b1273<_0x1ee4c2['length'];_0x1b1273++){if(0x0==_0x1ee4c2[_0x1b1273]['length'])continue;const _0x91f2c=[];for(let _0x103f86=_0x1b1273+0x1;_0x103f86<_0x1ee4c2['length'];_0x103f86++)0x0!=_0x1ee4c2[_0x103f86]['length']&&_0x215308(_0x1ee4c2[_0x1b1273],_0x1ee4c2[_0x103f86])&&_0x91f2c['push'](_0x103f86);for(const _0x411083 of _0x91f2c)_0x1ee4c2[_0x1b1273]=_0x1ee4c2[_0x1b1273]['concat'](_0x1ee4c2[_0x411083]),_0x1ee4c2[_0x411083]=[];}for(const _0x31b7b4 of _0x1ee4c2)for(let _0x5b824b=0x0;_0x5b824b<_0x31b7b4['length'];_0x5b824b++){const _0x27397c=_0x31b7b4[_0x5b824b+0x1]||null;_0x31b7b4[_0x5b824b]['next']!==_0x27397c&&(_0x31b7b4[_0x5b824b]['next']=_0x27397c);}for(const _0x4ac90c of _0x1ee4c2)for(let _0x56aa9e=0x0;_0x56aa9e<_0x4ac90c['length'];_0x56aa9e++){const _0x454300=_0x4ac90c[_0x56aa9e-0x1]||null;_0x4ac90c[_0x56aa9e]['previous']!==_0x454300&&(_0x4ac90c[_0x56aa9e]['previous']=_0x454300);}function _0x215308(_0x469ebd,_0x44f93f){if(_0x469ebd[0x0]['attributes']['groupId']!==_0x44f93f[0x0]['attributes']['groupId']&&_0x469ebd[0x0]['author']!==_0x44f93f[0x0]['author'])return!0x1;if(!function(_0x23c05d,_0x261a9c){if(!_0x23c05d['hasComments']&&!_0x261a9c['hasComments'])return!0x0;if(_0x23c05d['hasComments']&&_0x261a9c['hasComments'])return!0x1;if(_0x23c05d['hasComments']&&_0x261a9c['createdAt']<_0x23c05d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x261a9c['hasComments']&&_0x23c05d['createdAt']<_0x261a9c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x469ebd[0x0],_0x44f93f[0x0]))return!0x1;const _0x5cd459=Et(_0x469ebd[0x0]['attributes'],'groupId'),_0x4c1c78=Et(_0x44f93f[0x0]['attributes'],'groupId');if(!_0x42e77d(_0x5cd459,_0x4c1c78))return!0x1;return!!_0x469ebd['every'](_0x4bb337=>_0x44f93f['some'](_0x156b6e=>_0x4bb337['getFirstRange']()['isEqual'](_0x156b6e['getFirstRange']())))&&_0x44f93f['every'](_0x67cdc2=>_0x469ebd['some'](_0x38de28=>_0x67cdc2['getFirstRange']()['isEqual'](_0x38de28['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4c4c04){const _0x50463a=Array['from'](_0x4c4c04),_0xa3219d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12a51c=_0xa3219d['filter'](_0xec8128=>!_0x4c4c04['has'](_0xec8128)),_0x54aa9d=new Map(_0x50463a['map'](_0x1ece1d=>[_0x1ece1d,this['_suggestionFactory']['getSuggestionCallback'](_0x1ece1d['type'],_0x1ece1d['subType'],'join')])),_0x561813=new Map(_0xa3219d['map'](_0x4bbb77=>[_0x4bbb77,_0x4bbb77['getRanges']()]));for(let _0x1b3e09=0x0;_0x1b3e09<_0x50463a['length'];_0x1b3e09++){if(_0x3d574d(this,_0x50463a[_0x1b3e09],_0x50463a,_0x1b3e09+0x1))return!0x0;}for(let _0x128e79=0x0;_0x128e79<_0x50463a['length'];_0x128e79++){if(_0x3d574d(this,_0x50463a[_0x128e79],_0x12a51c,0x0))return!0x0;}return!0x1;function _0x3d574d(_0x40fda6,_0x589281,_0x5c81e8,_0x420fd9){for(let _0x56386b=_0x420fd9;_0x56386b<_0x5c81e8['length'];_0x56386b++){const _0x586b8b=_0x5c81e8[_0x56386b];if(_0x586b8b['type']!==_0x589281['type']||_0x586b8b['author']['id']!==_0x589281['author']['id']||_0x586b8b['subType']!==_0x589281['subType'])continue;if(!zt(_0x589281,_0x586b8b))continue;if('attribute'==_0x589281['type']&&_0x589281['data']['oldValue']!=_0x586b8b['data']['oldValue'])continue;if('attribute'==_0x589281['type']&&_0x40fda6['_isBlockAttribute'](_0x589281['data']['key']))continue;if('formatBlock'==_0x589281['type']){const _0x19081f=_0x40fda6['editor']['model'],_0x44244b=_0x589281['getContainedElement']();if(_0x44244b&&(_0x19081f['schema']['isObject'](_0x44244b)||_0x19081f['schema']['isLimit'](_0x44244b)))continue;}const _0x28136e=_0x54aa9d['get'](_0x589281),_0x58b6fe=_0x561813['get'](_0x589281),_0x2c426d=_0x561813['get'](_0x586b8b),_0x36be63=_0x589281['commentThread']&&_0x589281['commentThread']['length'],_0x1b6638=_0x586b8b['commentThread']&&_0x586b8b['commentThread']['length'];if(!_0x36be63&&_0x28136e(_0x2c426d,_0x58b6fe))return _0x40fda6['_joinSuggestions'](_0x586b8b,_0x589281),_0x561813['delete'](_0x589281),!0x0;if(!_0x1b6638&&_0x28136e(_0x58b6fe,_0x2c426d))return _0x40fda6['_joinSuggestions'](_0x589281,_0x586b8b),_0x561813['delete'](_0x586b8b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x12aed4,_0x1a0a15){if(_0x12aed4['isMultiRange']){for(const _0x43dc82 of _0x1a0a15['getRanges']())_0x12aed4['addRange'](_0x43dc82);}else{const _0x57a8b8=_0x1a0a15['getFirstRange']()['end'];this['_setSuggestionRange'](_0x12aed4,this['_model']['createRange'](_0x12aed4['getFirstRange']()['start'],_0x57a8b8));}_0x1a0a15['removeMarkers']();}['_getMarkerAnnouncementText'](_0x48203c,_0x141e9d,_0x342693){const _0x2eba5c=_0x48203c['startsWith']('format')||_0x48203c['startsWith']('attribute')?'FORMATTING':_0x48203c['toUpperCase']();return o(this['editor']['locale'],_0x141e9d+'_'+_0x2eba5c+'_SUGGESTION_ANNOUNCEMENT',_0x342693);}['_initAriaMarkerChangeAnnouncements'](){const _0xe15c0=this['editor'];if(!_0xe15c0['ui'])return;const {ariaLiveAnnouncer:_0x56eb77}=_0xe15c0['ui'];_0x54a2c9(this['_model'],({left:_0x4d176c,entered:_0x414dd0})=>{for(const _0x19b7c5 of _0x4d176c){const {group:_0xd95183,type:_0x16cc8a}=this['_splitMarkerName'](_0x19b7c5['name']);if('suggestion'===_0xd95183){_0x56eb77['announce'](this['_getMarkerAnnouncementText'](_0x16cc8a,'LEAVE'));break;}}for(const _0x455820 of _0x414dd0){const {group:_0xaa572b,type:_0x53dd8b}=this['_splitMarkerName'](_0x455820['name']);if('suggestion'===_0xaa572b){_0x56eb77['announce'](this['_getMarkerAnnouncementText'](_0x53dd8b,'ENTER',_0xe7169f(_0x1980b7)));break;}}});}['_processAttributeChanges'](_0x3e69c7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x107080=this['editor'],_0x4a87a0=_0x107080['model']['document']['differ']['getChanges']();if(0x0==_0x4a87a0['length'])return!0x1;const _0x7a9a5=[],_0x3719fa=_0x4a87a0['filter'](_0x561793=>'attribute'==_0x561793['type']),_0x2d39c2=_0x4a87a0['filter'](_0xd157ae=>'insert'==_0xd157ae['type']&&'$text'!=_0xd157ae['name']),_0x30f7eb=_0x4a87a0['filter'](_0x47d0ca=>'remove'==_0x47d0ca['type']&&'$text'!=_0x47d0ca['name']);for(const _0x2d5a19 of _0x3719fa)_0x7a9a5['push']({'key':_0x2d5a19['attributeKey'],'newValue':_0x2d5a19['attributeNewValue'],'oldValue':_0x2d5a19['attributeOldValue'],'range':Jt(_0x2d5a19['range'],_0x107080['model'])});for(const _0x3b85b1 of _0x2d39c2){const _0x2b394e=_0x30f7eb['find'](_0x5cc4af=>_0x5cc4af['position']['isEqual'](_0x3b85b1['position']));_0x2b394e&&_0x7a9a5['push']({'key':m,'newValue':_0x3b85b1['name'],'oldValue':_0x2b394e['name'],'range':_0x107080['model']['createRangeOn'](_0x3b85b1['position']['nodeAfter'])});}return 0x0!=_0x7a9a5['length']&&this['_reduceExistingSuggestions'](_0x3e69c7,_0x7a9a5);}['_processAttributeSuggestions'](_0x10ff04){let _0x27556e=!0x1;const _0x15c0e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b0bf2=>_0x5b0bf2['data']['newRange']&&_0x5b0bf2['name']['startsWith']('suggestion:attribute:'));for(const _0x5c8f24 of _0x15c0e0){const {subType:_0x584d0b,id:_0x532257}=this['_splitMarkerName'](_0x5c8f24['name']),_0x37de6c=_0x584d0b['split']('|')[0x0];for(const _0x1e4bda of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1e4bda['id']!=_0x532257&&'attribute'==_0x1e4bda['type']&&_0x1e4bda['data']&&_0x1e4bda['data']['key']==_0x37de6c&&_0x1e4bda['getFirstRange']()['isIntersecting'](_0x5c8f24['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1e4bda,_0x5c8f24['data']['newRange'],_0x10ff04),_0x27556e=!0x0);}return _0x27556e;}['_recordAttributeChanges'](_0x1722e5){this['_recordAttributeSuggestions']=!0x0,_0x1722e5();}['_isRegisteredAttribute'](_0xfc9068){const _0x23f524=this['_isBlockAttribute'](_0xfc9068),_0x185762=this['_inlineAttributeKeys']['has'](_0xfc9068);return _0x23f524||_0x185762;}['_reduceExistingSuggestions'](_0x189680,_0x204393){if(0x0==_0x204393['length'])return!0x1;let _0x5c7e67=!0x1;for(const _0x5a5aef of _0x204393){const _0x14d913=this['_findSuggestions'](_0x5a5aef['range'],'attribute')['filter'](_0x5abced=>!_0x5abced['meta']['isNextTo'])['map'](_0x5ee1a6=>_0x5ee1a6['suggestion']),_0x28f08f=_0x1f57d0({'newValue':_0x5a5aef['newValue']});_0x14d913['filter'](_0x576f03=>{const [_0x2e1b7f,_0x2969f6]=_0x576f03['subType']['split']('|');return _0x2e1b7f==_0x5a5aef['key']&&_0x2969f6!=_0x28f08f;})['forEach'](_0x55991a=>{this['_reduceSuggestionAttributeRange'](_0x55991a,_0x5a5aef['range'],_0x189680),_0x5c7e67=!0x0;});}return _0x5c7e67;}['_reduceSuggestionAttributeRange'](_0x404011,_0x4f9462,_0x2ebe70){const _0xe439bb=_0x404011['getFirstRange']()['getDifference'](_0x4f9462);0x0!==_0xe439bb['length']?0x1!==_0xe439bb['length']?this['_breakSuggestionMarker'](_0x404011,_0x4f9462['start'],_0x4f9462['end']):this['_setSuggestionRange'](_0x404011,_0xe439bb[0x0]):_0x2ebe70['removeMarker'](_0x404011['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x34e842){this['_editor']=_0x34e842,this['_model']=_0x34e842['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x233703,_0x36070c,_0x226054,_0x479c34,_0x3cf3c7,_0x5bbf3){return new u(this['_model'],{'type':_0x233703,'subType':_0x36070c,'id':_0x226054,'author':_0x479c34,'creator':_0x479c34,'attributes':_0x3cf3c7,'onAttributesChange':_0x5bbf3,'onAccept':(..._0x2b439e)=>this['getSuggestionCallback'](_0x233703,_0x36070c,'accept')(..._0x2b439e),'onDiscard':(..._0x39fab3)=>this['getSuggestionCallback'](_0x233703,_0x36070c,'discard')(..._0x39fab3)});}['registerCustomCallback'](_0x342f04,_0x4aac89,_0xd162c7,_0x4b6cba){const _0x4a323a=_0x342f04+':'+_0x4aac89+':'+_0xd162c7;this['_customCallbacks']['set'](_0x4a323a,_0x4b6cba);}['getSuggestionCallback'](_0x12c1af,_0x2aebe8,_0x5d02a2){const _0x3fad12=_0x12c1af+':'+_0x2aebe8+':'+_0x5d02a2;return this['_customCallbacks']['get'](_0x3fad12)||this['_defaultCallbacks']['get'](_0x12c1af+':'+_0x5d02a2);}['_registerDefaultCallbacks'](){const _0xb0dc43=()=>!0x1,_0x2da8f1=_0x2a0441=>{_0x2a0441['sort']((_0x1a2e62,_0x39f672)=>_0x1a2e62['start']['isBefore'](_0x39f672['start'])?0x1:-0x1),this['_model']['change'](_0x1c5bff=>{for(const _0x169b45 of _0x2a0441){let _0x1f5394;_0x1f5394=_0x169b45['end']['isAtEnd']&&_0x169b45['end']['parent']==_0x169b45['start']['nodeAfter']?_0x1c5bff['createSelection'](_0x169b45['start']['nodeAfter'],'on'):_0x1c5bff['createSelection'](_0x169b45),this['_model']['deleteContent'](_0x1f5394,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49838e=(_0x33fe3e,_0x310d15)=>{_0x310d15&&this['_model']['change'](_0x1e5e1b=>{const {commandName:_0x1a92e6,commandParams:_0x3b7b1d=[]}=_0x310d15,_0x465b00=_0x33fe3e['map'](_0x83da99=>(Pt(_0x83da99)&&(_0x83da99=this['_model']['createRange'](_0x83da99['end'])),_0x83da99))['filter'](_0x1cc5b2=>'$graveyard'!==_0x1cc5b2['root']['rootName']);if(_0x465b00['length']<0x1)return;const _0x369b94=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x374d5c=>_0x14dd4f['fromRange'](_0x374d5c));_0x1e5e1b['setSelection'](_0x465b00);for(const _0x1d823e of this['_editor']['commands']['commands']())_0x1d823e['refresh']();_0x3b7b1d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a92e6,..._0x3b7b1d);const _0x122925=_0x369b94['filter'](_0x530f4c=>'$graveyard'!=_0x530f4c['root']['rootName']);_0x122925['length']>0x0&&_0x1e5e1b['setSelection'](_0x122925);for(const _0x52c9b0 of _0x369b94)_0x52c9b0['detach']();});},_0xcbf3f2=(_0x4386ce,_0x47be51)=>0x1==_0x4386ce['length']&&0x1==_0x47be51['length']&&_0x4386ce[0x0]['end']['isEqual'](_0x47be51[0x0]['start']),_0x23677d=(_0x39069f,_0xbfc4c5,_0x42777c,_0x1e035b)=>qt(_0x39069f,_0xbfc4c5,_0x42777c,_0x1e035b)?[_0x39069f,_0xbfc4c5]:qt(_0xbfc4c5,_0x39069f,_0x1e035b,_0x42777c)?[_0xbfc4c5,_0x39069f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xb0dc43),this['_defaultCallbacks']['set']('insertion:discard',_0x2da8f1),this['_defaultCallbacks']['set']('insertion:join',_0xcbf3f2),this['_defaultCallbacks']['set']('insertion:chain',_0x23677d),this['_defaultCallbacks']['set']('deletion:accept',_0x2da8f1),this['_defaultCallbacks']['set']('deletion:discard',_0xb0dc43),this['_defaultCallbacks']['set']('deletion:join',_0xcbf3f2),this['_defaultCallbacks']['set']('deletion:chain',_0x23677d),this['_defaultCallbacks']['set']('formatInline:accept',_0x49838e),this['_defaultCallbacks']['set']('formatInline:discard',_0xb0dc43),this['_defaultCallbacks']['set']('formatInline:join',_0xcbf3f2),this['_defaultCallbacks']['set']('formatInline:chain',_0xb0dc43),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49838e),this['_defaultCallbacks']['set']('formatBlock:discard',_0xb0dc43),this['_defaultCallbacks']['set']('formatBlock:join',_0xcbf3f2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xb0dc43),this['_defaultCallbacks']['set']('attribute:accept',_0xb0dc43),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b0431,_0x331201)=>{if(!_0x331201)return;const _0x2c2439=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51361f=>{if(_0x331201['key']==m)for(const _0x87ed4e of _0x3b0431){const _0x3fdff3=_0x87ed4e['start']['nodeAfter'],_0x4564fe=_0x331201['oldValue'];_0x51361f['rename'](_0x3fdff3,_0x4564fe);}else{if(_0x2c2439['_isBlockAttribute'](_0x331201['key'])){for(const _0x188287 of _0x3b0431)void 0x0!==_0x331201['oldValue']?_0x51361f['setAttribute'](_0x331201['key'],_0x331201['oldValue'],_0x188287['start']['nodeAfter']):_0x51361f['removeAttribute'](_0x331201['key'],_0x188287['start']['nodeAfter']);}else{for(const _0x314ec0 of _0x3b0431)_0x331201['oldValue']?_0x51361f['setAttribute'](_0x331201['key'],_0x331201['oldValue'],_0x314ec0):_0x51361f['removeAttribute'](_0x331201['key'],_0x314ec0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcbf3f2);}}function Vt(_0x3fc1b2,_0x1f9ffc,_0x28f2de){for(const _0x2fbeb0 of _0x1f9ffc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2fbeb0['root']==_0x2fbeb0)return!0x1;if(!_0x28f2de['containsItem'](_0x2fbeb0))return!0x1;if(_0x3fc1b2['isObject'](_0x2fbeb0)||_0x3fc1b2['isLimit'](_0x2fbeb0))return!0x0;}return!0x1;}function Pt(_0x15d480){return _0x15d480['end']['parent']==_0x15d480['start']['nodeAfter']&&_0x15d480['end']['isAtStart'];}function Gt(_0x505bbf,_0x4c59b9,_0x53d5f3,_0x11aa2a){const _0x1509a4=_0x1bde25=>!_0x1bde25['item']['is']('$textProxy')&&!_0x11aa2a['isObject'](_0x1bde25['item']),_0x38c64e=_0x505bbf['start']['getLastMatchingPosition'](_0x1509a4),_0x555859=_0x505bbf['end']['getLastMatchingPosition'](_0x1509a4,{'direction':'backward'});return(!_0x505bbf['start']['isEqual'](_0x38c64e)||!_0x505bbf['end']['isEqual'](_0x555859))&&(_0x38c64e['isBefore'](_0x555859)?_0x53d5f3['updateMarker'](_0x4c59b9,{'range':_0x53d5f3['createRange'](_0x38c64e,_0x555859)}):_0x53d5f3['removeMarker'](_0x4c59b9),!0x0);}function Ft(_0x538b20){return _0x1f57d0(_0x538b20);}function Lt(_0x1f8787){const _0x333a90=_0x1f8787['start']['nodeAfter'];return _0x333a90&&_0x333a90['is']('element');}function Jt(_0x45fdc4,_0x39528c){return null==_0x45fdc4['end']['nodeBefore']&&_0x45fdc4['end']['parent']==_0x45fdc4['start']['nodeAfter']?Ht(_0x45fdc4['start']['nodeAfter'],_0x39528c):_0x45fdc4;}function Ht(_0x1f20e9,_0x140abf){const _0x5ab211=_0x140abf['schema']['isObject'](_0x1f20e9)||_0x140abf['schema']['isSelectable'](_0x1f20e9);return _0x140abf['createRange'](_0x140abf['createPositionAt'](_0x1f20e9,'before'),_0x5ab211?_0x140abf['createPositionAfter'](_0x1f20e9):_0x140abf['createPositionAt'](_0x1f20e9,'end'));}function qt(_0x1b9ef5,_0x5319db,_0x5664a0,_0x3a4af7){return!!zt(_0x1b9ef5,_0x5319db)&&_0x5664a0['end']['isEqual'](_0x3a4af7['start']);}function zt(_0x472507,_0x3e1dc2){if(!_0x472507['_isDataLoaded']||!_0x3e1dc2['_isDataLoaded'])return!0x1;const _0xd0f94=new Set(Object['keys'](_0x472507['attributes'])),_0x468484=new Set(Object['keys'](_0x3e1dc2['attributes']));if(_0xd0f94['delete']('groupId'),_0x468484['delete']('groupId'),0x0==_0xd0f94['size']&&0x0==_0x468484['size'])return!0x0;if(_0xd0f94['size']!=_0x468484['size'])return!0x1;const _0x1af45f={..._0x472507['attributes']},_0x151b35={..._0x3e1dc2['attributes']};return delete _0x1af45f['groupId'],delete _0x151b35['groupId'],JSON['stringify'](_0x1af45f)==JSON['stringify'](_0x151b35);}function Kt(_0x16cdeb,_0x5e996a){const _0x15f2bf=Wt(_0x16cdeb['attributes']),_0x546fed=Wt(_0x5e996a);if(!_0x16cdeb['_isDataLoaded'])return!0x1;for(const _0x3a83a1 of Object['keys'](_0x546fed))if(!_0x42e77d(_0x15f2bf[_0x3a83a1],_0x546fed[_0x3a83a1]))return!0x1;return!0x0;}function Wt(_0x4b92b1){const _0x5a0cc4=Object['assign']({},_0x4b92b1);return delete _0x5a0cc4['skipNestingCheck'],delete _0x5a0cc4['tablePasteChainId'],_0x5a0cc4;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x6fb9b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x546043,_0x3c5153,_0x3b324b,_0x406669){super(),this['model']=_0x3c5153,this['view']=_0x3b324b,this['commentThreadController']=_0x406669,this['_editor']=_0x546043,this['_acceptCommand']=_0x546043['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x546043['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa2192a,_0x3d27e8)=>_0xa2192a||_0x3d27e8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x508820=>_0x508820&&this['_editor']['model']['canEditAt'](_0x3c5153['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26254b=>_0x26254b&&this['_editor']['model']['canEditAt'](_0x3c5153['getRanges']())),this['_pendingAction']=null,_0x3b324b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b324b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b324b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b324b,'change:isDirty',()=>{_0x3b324b['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 _0x342e3d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x342e3d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x19b550{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x567a91,_0x4077b8,_0xde6427,_0x535fa9){super(_0x567a91),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d12d4(_0x567a91,o(_0x567a91,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4077b8['authoredAt']),this['bind']('authoredAt')['to'](_0x4077b8),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',_0x4077b8,'authoredAt',this,'descriptionParts',(_0x355957,_0x1e5580,_0x326b83)=>{const _0x59f2ae=_0x326b83['map'](_0x1546ba=>ns(_0x1546ba['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x355957-0x1,_0x4077b8['author']['name'],_0x1e5580?_0x535fa9['formatDateTime'](_0x1e5580):'',new DOMParser()['parseFromString'](_0x59f2ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0xd0bff9(),this['focusTracker']=new _0x127950(),this['keystrokes']=new _0x260502(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x658957=>_0x658957['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4077b8,this['_localUser']=_0xde6427,this['_config']=_0x535fa9,_0x535fa9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x418455(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3553d9}=this['_config'];this['commentsListView']=new _0x3553d9(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',_0x25ba29=>_0x25ba29+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f32e4,_0x16440d)=>_0x2f32e4||!!_0x16440d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f5393}=this['_config'],_0x13d845=new _0x5f5393(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ad8ca=_0x13d845['commentInputView'];return _0x13d845['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ad8ca,'value',(_0x5f3401,_0x3c51f5,_0x583e53)=>!!_0x583e53||_0x5f3401&&!_0x3c51f5),_0x1ad8ca['on']('submit',(_0x272e92,_0x443630)=>{this['fire']('addComment',_0x443630),_0x1ad8ca['editor']['setData']('');}),_0x1ad8ca['on']('cancel',()=>this['focus']()),_0x1ad8ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x13d845;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x5e9955,_0x54cd57,_0x52ab29,_0x50eb93){super(_0x5e9955,_0x54cd57,_0x52ab29,_0x50eb93),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb98ce4=>_0xb98ce4&&_0xb98ce4[0x0]?_0xb98ce4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x78c9ee,_0x52bf17)=>{let _0x13fda8='';for(const _0x47613a of _0x78c9ee)_0x13fda8+='<p>'+ns(_0x47613a['content'],_0x47613a['color'])+'</p>';return _0x52bf17?_0x13fda8:_0x5e35a2(_0x13fda8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50eb93['SuggestionView'](_0x5e9955,_0x54cd57,{'formatDateTime':_0x50eb93['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 _0x10780c=this['bindTemplate'],_0x3e62e7=[this['suggestionView']];return this['commentsListView']&&_0x3e62e7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e62e7['push'](this['commentThreadInputView']),_0x3e62e7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x10780c['if']('isActive','ck-suggestion-wrapper--active'),_0x10780c['to']('type',_0x2f19d4=>'ck-suggestion-'+_0x2f19d4),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':_0x10780c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e62e7};}['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 fe extends _0x19b550{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4cc5dd,_0x1a5ac5,_0x463482){super(_0x4cc5dd),this['_model']=_0x1a5ac5,this['_config']=_0x463482,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a5ac5),this['acceptButton']=this['_createButton'](o(_0x4cc5dd,'Accept\x20suggestion'),_0x1280c7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4cc5dd,'Discard\x20suggestion'),_0x1280c7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x163e6a(_0x4cc5dd,_0x1a5ac5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xd0bff9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x127950(),this['keystrokes']=new _0x260502(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3877cf=>_0x3877cf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x294547=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x294547['innerHTML']=this['description'],this['on']('change:description',(_0x335dfc,_0x3caa50,_0x2122b4)=>{_0x294547['innerHTML']=_0x2122b4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x54d6de=this['bindTemplate'],_0x1c5bcf=[{'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':_0x54d6de['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x54d6de['to']('authoredAt',_0x45a481=>this['_config']['formatDateTime'](_0x45a481))}]}]},{'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']&&_0x1c5bcf['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':_0x1c5bcf}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x341b1c,_0xc9a0db,_0x15e9fe,_0x55155e,_0xdcc685){const _0xec196c=new _0x3e0fbb(this['locale']);return _0xec196c['set']({'label':_0x341b1c,'icon':_0xc9a0db,'tooltip':!0x0,'tooltipPosition':_0xdcc685}),_0xec196c['extendTemplate']({'attributes':{'class':_0x15e9fe}}),_0xec196c['on']('execute',()=>{this['fire'](_0x55155e,this['_model']['id']);}),_0xec196c;}['_setupKeyboardNavigation'](){const _0x5eaaaf=this['element'];this['keystrokes']['listenTo'](_0x5eaaaf);for(const _0x56b278 of this['focusables'])this['focusTracker']['add'](_0x56b278['element']),this['keystrokes']['listenTo'](_0x56b278['element']);this['keystrokes']['set']('enter',(_0x347bf7,_0x366943)=>{_0x5eaaaf===_0x347bf7['target']&&(this['focusCycler']['focusFirst'](),_0x366943());}),this['keystrokes']['set']('esc',(_0x462893,_0x422094)=>{_0x5eaaaf!==_0x462893['target']&&(this['focus'](),_0x422094());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x32d277{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x485da9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48526c){super(_0x48526c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1425b2=this['editor']['config'];_0x1425b2['define']('trackChanges.SuggestionThreadView',pe),_0x1425b2['define']('trackChanges.SuggestionView',fe),_0x1425b2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1425b2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4eb3ec,_0x7746d6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11b47a,_0x24012a]of this['_handleControllerBuffer']){const _0x486895=this['_suggestionToController']['has'](_0x11b47a);_0x486895||_0x24012a?_0x486895&&_0x24012a&&this['_destroyController'](_0x11b47a):this['_initializeController'](_0x11b47a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4eb3ec,_0x7746d6);}['init'](){const _0x226675=this['editor'],_0x11727b=_0x226675['plugins']['get']('TrackChangesEditing'),_0x37c180=_0x226675['plugins']['get']('Annotations'),_0x1d7e0f=_0x226675['plugins']['get']('EditorAnnotations'),_0x5ac451=_0x226675['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d7e0f['addSourceCollector'](()=>{const _0x345f2b=[];for(const [_0x20ccbe,_0x47f78a]of Array['from'](this['_suggestionToController'])){const _0xd0108b=_0x20ccbe['getAllAdjacentSuggestions'](),_0x86b578=[];for(const _0x2bf0c7 of _0xd0108b){if(!_0x2bf0c7['isInContent'])continue;if(_0x2bf0c7['isMultiRange']){_0x86b578['push'](..._0x2bf0c7['getRanges']());continue;}const _0x44ae79=_0x2bf0c7['getFirstRange']();if(_0x86b578['length']>0x0){const _0x16b843=_0x86b578[0x0]['getJoined'](_0x44ae79);if(_0x16b843){_0x86b578[0x0]=_0x16b843;continue;}}_0x86b578['push'](_0x44ae79);}_0x345f2b['push']([_0x47f78a['view'],_0x86b578]);}return _0x345f2b;}),this['listenTo'](_0x11727b,'suggestionLoaded',(_0x4bc457,_0x4a3ce8)=>{this['listenTo'](_0x4a3ce8,'change:previous',(_0x336678,_0x2d668f,_0x19473d,_0x43d1c8)=>{_0x4a3ce8['isInContent']&&(null==_0x19473d?(this['_updateController'](_0x43d1c8['head']),this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x1)):(this['_updateController'](_0x19473d['head']),null==_0x43d1c8&&this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x0)));}),null!==_0x4a3ce8['previous']?this['_updateController'](_0x4a3ce8['head']):this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x1);}),this['listenTo'](_0x11727b,'suggestionUnloaded',(_0x5ac303,_0x58980f,_0x1a31b5)=>{this['stopListening'](_0x58980f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x58980f),this['_suggestionToController']['has'](_0x58980f)&&this['_destroyController'](_0x58980f),_0x1a31b5&&this['_updateController'](_0x1a31b5['head']);}),this['listenTo'](_0x11727b,'suggestionChanged',(_0x27a5a2,_0x27c59e)=>{this['_updateController'](_0x27c59e);}),this['listenTo'](_0x37c180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ac451,'addComment',(_0x5c4b90,{threadId:_0x57227d,isFromAdapter:_0x511bfa})=>{if(_0x511bfa||!_0x11727b['hasSuggestion'](_0x57227d))return;const _0x14a619=_0x11727b['getSuggestion'](_0x57227d);this['_suggestionToController']['get'](_0x14a619)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f38da=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f09cd;for(const _0x1ed79d in _0x4f38da){const _0x528734=_0x1ed79d,_0x54da9b=_0x4f38da[_0x528734];if('trackChangesLicenseKeyValid'==_0x54da9b||'trackChangesLicenseKeyInvalid'==_0x54da9b||'trackChangesLicenseKeyExpired'==_0x54da9b||'trackChangesLicenseKeyDomainLimit'==_0x54da9b||'trackChangesLicenseKeyNotAllowed'==_0x54da9b||'trackChangesLicenseKeyEvaluationLimit'==_0x54da9b||'trackChangesLicenseKeyTrialLimit'==_0x54da9b||'trackChangesLicenseKeyUsageLimit'==_0x54da9b){delete _0x4f38da[_0x528734],_0x5f09cd=_0x54da9b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5f09cd&&_0x4f38da['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5f09cd&&_0x4f38da['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5f09cd&&_0x4f38da['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4e32ff=this['editor']['plugins']['get']('Annotations'),_0x530a1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x279a22=Array['from'](_0x4e32ff['activeAnnotations'],_0x23be5e=>_0x23be5e['innerView'])['filter'](_0x4df129=>this['_viewToController']['has'](_0x4df129)),_0x31ac35=[];for(const _0x1b6343 of _0x279a22){const _0x5a68ea=this['_viewToController']['get'](_0x1b6343)['model']['getAllAdjacentSuggestions']();_0x31ac35['push'](..._0x5a68ea['reduce']((_0x20ee3d,_0x319faa)=>[..._0x20ee3d,..._0x319faa['getMarkerNames']()],[]));}_0x530a1f['activeMarkers']=_0x31ac35;}['_addUIComponentsToFactory'](){const _0x53e4bf=this['editor'],_0x81efaa=_0x53e4bf['locale'],_0x31aee0=o(_0x81efaa,'Track\x20changes'),_0x1d9cc6=new _0x3a7b8e([{'type':'switchbutton','model':new _0x127161({'withText':!0x0,'isToggleable':!0x0,'label':_0x31aee0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x53e4bf['plugins']['has']('TrackChangesPreview')&&_0x1d9cc6['addMany']([{'type':'separator'},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2acbe3 of _0x1d9cc6)if(ke(_0x2acbe3)){const _0x56a7aa=_0x53e4bf['commands']['get'](_0x2acbe3['model']['commandName']);_0x2acbe3['model']['bind']('isOn','isEnabled')['to'](_0x56a7aa,'value','isEnabled');}_0x53e4bf['ui']['componentFactory']['add']('trackChanges',_0x25eadf=>this['_createToolbarButton'](_0x25eadf,_0x1d9cc6,_0x31aee0)),_0x53e4bf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x201e19=>this['_createMenuBarMenu'](_0x201e19,_0x1d9cc6,_0x31aee0));}['_createToolbarButton'](_0x5ea632,_0x449448,_0x1c15b9){const _0x39fbc9=_0x111af9(_0x5ea632,_0x4045c4),_0x4aa18d=this['editor']['commands']['get']('trackChanges');_0x39fbc9['buttonView']['set']({'tooltip':_0x1c15b9,'label':_0x1c15b9,'icon':we}),_0x39fbc9['buttonView']['bind']('isOn')['to'](_0x4aa18d,'value'),_0x39fbc9['buttonView']['on']('execute',()=>{_0x4aa18d['execute'](),this['editor']['editing']['view']['focus']();}),_0x387a00(_0x39fbc9,_0x449448,{'role':'menu'});const _0x2b4e05=[];for(const _0x598687 of _0x449448)ke(_0x598687)&&_0x2b4e05['push'](this['editor']['commands']['get'](_0x598687['model']['commandName']));const _0x58d4d4=_0x39fbc9['buttonView'];return _0x58d4d4['actionView']['unbind']('isEnabled'),_0x58d4d4['arrowView']['unbind']('isEnabled'),_0x58d4d4['actionView']['bind']('isEnabled')['to'](_0x4aa18d,'isEnabled'),_0x58d4d4['arrowView']['bind']('isEnabled')['toMany'](_0x2b4e05,'isEnabled',(..._0x1a4028)=>_0x1a4028['some'](_0x14bd76=>_0x14bd76)),_0x39fbc9['on']('execute',_0x456c45=>{this['editor']['execute'](_0x456c45['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x39fbc9;}['_createMenuBarMenu'](_0x20c0a8,_0x231ada,_0x250842){const _0x21ee00=new _0x544f32(_0x20c0a8),_0x21a7d5=this['editor']['commands']['get']('trackChanges');_0x21ee00['buttonView']['set']({'label':_0x250842,'icon':we});const _0x3ea7aa=new _0x10e9be(_0x20c0a8);for(const _0x52046c of _0x231ada){if('separator'==_0x52046c['type']){_0x3ea7aa['items']['add'](new _0x1b58c6(_0x20c0a8));continue;}const _0x2d308a=new _0x30c9f3(_0x20c0a8,_0x21ee00),_0x3bc495=new _0x28a4cd(_0x20c0a8),_0x15169a=_0x52046c['model'];_0x3bc495['bind'](...Object['keys'](_0x15169a))['to'](_0x15169a),_0x3bc495['delegate']('execute')['to'](_0x21ee00),_0x3bc495['on']('execute',()=>{this['editor']['execute'](_0x15169a['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d308a['children']['add'](_0x3bc495),_0x3ea7aa['items']['add'](_0x2d308a);}return _0x21ee00['bind']('isEnabled')['to'](_0x21a7d5,'isEnabled'),_0x21ee00['panelView']['children']['add'](_0x3ea7aa),_0x21ee00;}['_initializeController'](_0x1b33f8){const _0x3748dd=this['editor'],_0x17646f=_0x3748dd['config'],_0x1b96c7=_0x3748dd['plugins']['get']('Annotations'),_0x4f2767=_0x3748dd['plugins']['get']('CommentsRepository'),_0x2b00a1=_0x3748dd['plugins']['get']('EditorAnnotations'),_0x4f0884=_0x3748dd['plugins']['get'](_0x485da9)['me'],_0x56d4db=_0x17646f['get']('trackChanges')['SuggestionThreadView'],_0x30ae8c=_0x17646f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x7afce5,CommentThreadInputView:_0x48138a}=_0x3748dd['plugins']['get']('CommentsUI');let _0x21ffe5,_0x99ed33,_0x713152;this['_annotationViews']['has'](_0x1b33f8['id'])?(_0x99ed33=this['_annotationViews']['get'](_0x1b33f8['id']),_0x21ffe5=_0x99ed33['mainView']):(_0x21ffe5=new _0x56d4db(_0x3748dd['locale'],_0x1b33f8,_0x4f0884,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17646f['get']('comments.editorConfig'),'licenseKey':_0x17646f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17646f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17646f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17646f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fcd9d(_0x17646f['get']('locale')),'CommentView':_0x17646f['get']('comments')['CommentView'],'CommentsListView':_0x7afce5,'CommentThreadInputView':_0x48138a,'SuggestionView':_0x30ae8c}),_0x21ffe5['suggestionView']['acceptButton']['on']('execute',()=>{_0x3748dd['editing']['view']['focus']();}),_0x21ffe5['suggestionView']['discardButton']['on']('execute',()=>{_0x3748dd['editing']['view']['focus']();}),_0x99ed33=_0x1b96c7['createAnnotationView'](this['editor']['locale'],_0x21ffe5),_0x99ed33['bind']('isDirty')['to'](_0x21ffe5,'isDirty'),_0x99ed33['bind']('length')['to'](_0x21ffe5),_0x99ed33['bind']('type')['to'](_0x21ffe5,'type',_0x470410=>'suggestion-'+_0x470410),_0x21ffe5['on']('escape',()=>{_0x713152['fire']('escape');}),this['_annotationViews']['set'](_0x1b33f8['id'],_0x99ed33));const _0x505103=_0x4f2767['createCommentThreadController'](_0x1b33f8['commentThread'],_0x21ffe5),_0x4bf4fb=new Ce(_0x3748dd,_0x1b33f8,_0x21ffe5,_0x505103),_0x4a78d4=_0x1b33f8['getAllAdjacentSuggestions']()['filter'](_0x2d7215=>_0x2d7215['isInContent']);_0x21ffe5['descriptionParts']=_0x3748dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a78d4),this['_suggestionToController']['set'](_0x1b33f8,_0x4bf4fb),this['_viewToController']['set'](_0x21ffe5,_0x4bf4fb),_0x713152=_0x1b96c7['createAnnotation']({'view':_0x99ed33,'target':()=>{const _0x4aa4b0=[],_0x29bae0=_0x1b33f8['getAllAdjacentSuggestions']()['filter'](_0x21e423=>_0x21e423['isInContent']);for(const _0x547d01 of _0x29bae0)_0x4aa4b0['push'](..._0x547d01['getMarkers']());return _0x54bfae(_0x3748dd['editing'],_0x4aa4b0);},'type':()=>'suggestion-'+_0x4bf4fb['view']['type']}),_0x4f2767['_bindAnnotationToEditors'](_0x21ffe5,_0x713152),_0x1b96c7['add'](_0x713152),_0x2b00a1['registerAnnotation'](_0x713152);}['_destroyController'](_0x3fb59d){const _0x11a219=this['editor']['plugins']['get']('CommentsRepository'),_0x6e4543=this['editor']['plugins']['get']('Annotations'),_0x2f5027=this['_suggestionToController']['get'](_0x3fb59d),_0x4daae3=_0x2f5027['view'],_0x335230=_0x6e4543['getByInnerView'](_0x4daae3);_0x11a219['_unbindEditors'](_0x4daae3),_0x335230&&_0x6e4543['remove'](_0x335230),this['_suggestionToController']['delete'](_0x3fb59d),this['_viewToController']['delete'](_0x4daae3),_0x2f5027['destroy']();}['_updateController'](_0x589a99){if(!_0x589a99['isInContent']||!this['_suggestionToController']['has'](_0x589a99))return;const _0x463b75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x260308=this['_suggestionToController']['get'](_0x589a99),_0x40b7d7=_0x589a99['getAllAdjacentSuggestions']();_0x260308['view']['descriptionParts']=_0x463b75['descriptionFactory']['getDescriptions'](_0x40b7d7);}['destroy'](){for(const _0x56112c of this['_suggestionToController']['keys']())this['_destroyController'](_0x56112c);for(const _0x3ed665 of this['_annotationViews']['values']())_0x3ed665['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1e7823){return'model'in _0x1e7823;}class k extends _0x32d277{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x214503){this['editor']['plugins']['get'](p)['adapter']=_0x214503;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x432269){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x432269);}['getSuggestions']({skipNotAttached:_0x2c3daa=!0x1,toJSON:_0xb8f8cf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c3daa,'toJSON':_0xb8f8cf});}['getSuggestion'](_0x16cbad){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16cbad);}}const w=['Pagination'];class T extends _0x32d277{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x32af8c=this['editor'];if(_0x32af8c['config']['define']('trackChangesData.editorCreator',_0x985f31=>{const _0x58a32f=_0x32af8c['model']['document']['getRootNames']()['reduce']((_0x19ded0,_0x7e8309)=>(_0x19ded0[_0x7e8309]='',_0x19ded0),{});return _0x32af8c['constructor']['create'](_0x58a32f,_0x985f31);}),'function'!=typeof _0x32af8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c4487('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e522f){return N(this['editor'],!0x0,_0x4e522f);}['getDataWithDiscardedSuggestions'](_0x236238){return N(this['editor'],!0x1,_0x236238);}}class D extends _0x32d277{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5022bd){function _0x51c2b6(_0x3e7321){return _0x3e7321['map'](_0x4aef57=>String['fromCharCode'](_0x4aef57))['join']('');}super(_0x5022bd),this['result']='end',_0x5022bd[_0x51c2b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51c2b6([0x76,0x69,0x65,0x77])][_0x51c2b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51c2b6([0x61,0x75,0x74,0x6f]),_0x5022bd[_0x51c2b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51c2b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51c2b6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51c2b6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51c2b6([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3147b3){return void 0x0!==_0x3147b3['getRootsAttributes'];}async function N(_0x4992f2,_0x66cf4,_0x36b686){const _0x490772=_0x218599(_0x4992f2,w);_0x490772['plugins']['push'](p,D),_0x490772['rootsAttributes']=Fe(_0x4992f2)?_0x4992f2['getRootsAttributes']():void 0x0;const _0x48bd6b=document['createDocumentFragment'](),_0x5b154b=_0x4992f2['config']['get']('trackChangesData')['editorCreator'],_0x34023d=await _0x5b154b(_0x490772,()=>function(_0x47275d){const _0x3135b6=document['createElement']('div');return _0x47275d['appendChild'](_0x3135b6),_0x3135b6;}(_0x48bd6b));!function(_0x53933,_0x5a6111){const _0xd90222=_0x53933['model']['document']['getRootNames']()['reduce']((_0x4238d3,_0x7f21a1)=>(_0x4238d3[_0x7f21a1]=_0x53933['data']['get']({'rootName':_0x7f21a1}),_0x4238d3),{}),_0x220460=_0x53933['plugins']['get']('Users')['users']['map'](_0x50a0cc=>({'id':_0x50a0cc['id'],'name':_0x50a0cc['name']})),_0x35d0a0=_0x53933['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x18ecc8=_0x53933['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3273cf=_0x5a6111['plugins']['get']('Users'),_0x9c1f84=_0x5a6111['plugins']['get']('TrackChangesEditing'),_0x52ee17=_0x5a6111['plugins']['get']('CommentsRepository');for(const _0x4ce4ea of _0x52ee17['getCommentThreads']())_0x4ce4ea['remove']();for(const _0x2f6383 of _0x220460)_0x3273cf['getUser'](_0x2f6383['id'])||_0x3273cf['addUser'](_0x2f6383);_0x3273cf['me']||_0x3273cf['useAnonymousUser']();for(const _0x12a1b9 of _0x18ecc8)_0x52ee17['addCommentThread'](_0x12a1b9);for(const _0x3ff0a2 of _0x35d0a0)_0x9c1f84['addSuggestionData'](_0x3ff0a2);_0x5a6111['data']['set'](_0xd90222);}(_0x4992f2,_0x34023d),_0x34023d['execute'](_0x66cf4?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a8268=Fe(_0x34023d)?_0x34023d['getFullData'](_0x36b686):_0x34023d['data']['get'](_0x36b686);return await _0x34023d['destroy'](),_0x3a8268;}class Me extends _0x19b550{['options'];constructor(_0x4ba204,_0x1bee87){super(_0x4ba204),this['options']=_0x1bee87,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'](_0x214fa2,_0x55e49e){if(!this['element'])return;const _0x12d39b=[];for(const [_0x2a071e,_0x1a4ad1]of _0x214fa2){const _0x10bd15=document['createElement']('div');_0x10bd15['setAttribute']('data-ck-root-name',_0x2a071e),_0x10bd15['className']=_0x1a4ad1['classes']+'\x20ck-track-changes-preview__root-container',_0x10bd15['innerHTML']=_0x1a4ad1['content'],_0x12d39b['push'](_0x10bd15);}_0x55e49e(this['element'],_0x12d39b),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x1ed033){super(_0x1ed033),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1404d3=this['editor'],_0x48a2b0=_0x1404d3['locale'],_0x329f77=_0x1404d3['plugins']['get']('Dialog');let _0x1291bc;const _0x1c1885=function(_0x492872){const _0x550c7a={};if('editables'in _0x492872['ui']['view']){for(const [_0x4fefbf,_0x2448ff]of Object['entries'](_0x492872['ui']['view']['editables']))_0x550c7a[_0x4fefbf]=_0x2448ff['element'];}else _0x550c7a[_0x492872['model']['document']['getRootNames']()[0x0]]=_0x492872['ui']['view']['editable']['element'];return _0x550c7a;}(_0x1404d3),_0x37e0a4=function(_0x5c3f73){let _0x7285ad=0x0;for(const _0x537bdc of Object['values'](_0x5c3f73))_0x7285ad=Math['max'](_0x7285ad,_0x537bdc['getBoundingClientRect']()['width']);let _0x24e163=0x0;for(const _0x1ecef0 of Object['values'](_0x5c3f73))_0x24e163+=_0x1ecef0['getBoundingClientRect']()['height'];const _0x4f6a2c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x55e9b5=Math['min'](_0x24e163,_0x4f6a2c);return{'width':_0x7285ad,'height':_0x55e9b5};}(_0x1c1885);_0x329f77['show']({'id':'finalContentPreview','title':o(_0x48a2b0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x48a2b0,{'dialogRects':_0x37e0a4}),'onHide':()=>{_0x1291bc['detachFromDom']();},'onShow':()=>{_0x1404d3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4ca59f=>{const _0x464930=this['_standarizeRootsData'](_0x4ca59f,_0x1404d3,_0x1c1885);_0x329f77['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x464930,_0x1404d3['config']['get']('trackChanges.preview.renderFunction'));}),_0x1291bc=new _0x2cf5af(_0x48a2b0,[_0x329f77['view']]),_0x1291bc['attachToDom'](),_0x1291bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1404d3['once']('destroy',()=>{_0x1291bc['detachFromDom']();});const _0x42bc3f=_0x329f77['view']['headerView']['class'];_0x329f77['view']['headerView']['class']=_0x42bc3f?_0x42bc3f+'\x20ck-reset_all':'ck-reset_all',_0x329f77['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x329f77['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1b131d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x27e654=_0x1b131d['previewMode'],_0x2deb4c={};if('$labels'===_0x27e654){for(const _0x3604c2 of _0x1b131d['getMergeFieldsIds']())_0x2deb4c[_0x3604c2]=_0x1b131d['getLabel'](_0x3604c2)||_0x3604c2;}else{const _0x671826='$defaultValues'===_0x27e654?_0x1b131d['getDefaultValues']():_0x1b131d['getDataSetValues'](_0x27e654,!0x0);for(const _0x5445f9 of Object['entries'](_0x671826)){const [_0x3ef151,_0x1170d9]=_0x5445f9;_0x2deb4c[_0x3ef151]=null!==_0x1170d9?_0x1170d9:_0x1b131d['getLabel'](_0x3ef151)||_0x3ef151;}}return{'mergeFieldsData':_0x2deb4c};}['_standarizeRootsData'](_0x23264b,_0x316fc1,_0x297bf6){let _0x20f6ae;if('string'==typeof _0x23264b){const _0x4c31fc=_0x316fc1['model']['document']['getRootNames']()[0x0];_0x20f6ae={[_0x4c31fc]:_0x23264b};}else _0x20f6ae=_0x23264b;const _0x52c224=this['_fixMediaEmbeds'](_0x20f6ae,_0x316fc1),_0x230fa6=function(_0x3d8217,_0x27a751){for(const [_0x3aa661,_0x1b2397]of _0x3d8217)_0x1b2397['classes']=_0x27a751[_0x3aa661]['classList']['value']['replace']('ck-focused','');return _0x3d8217;}(this['_sortRoots'](_0x316fc1)['reduce']((_0xc5440e,_0x4822a7)=>(_0xc5440e['push']([_0x4822a7,{'content':_0x52c224[_0x4822a7],'classes':''}]),_0xc5440e),[]),_0x297bf6);return _0x230fa6;}['_fixMediaEmbeds'](_0x1d0568,_0x48aac3){if(!_0x48aac3['plugins']['has']('MediaEmbedEditing'))return _0x1d0568;const _0x21d3c4=_0x48aac3['plugins']['get']('MediaEmbedEditing');for(const [_0x28e37f,_0x5d071b]of Object['entries'](_0x1d0568)){const _0x120079=document['createElement']('div');_0x120079['innerHTML']=_0x5d071b,(_0x120079['querySelectorAll']('figure.media')['forEach'](_0x9b2bd5=>{const _0x522a0e=_0x9b2bd5['querySelector']('oembed');if(_0x522a0e){const _0x41ef6a=_0x522a0e['getAttribute']('url');if(_0x41ef6a){const _0x8db9f6=_0x21d3c4['registry']['getMediaViewElement'](new _0x2200ff(_0x48aac3['editing']['view']['document']),_0x41ef6a,{'elementName':'','renderForEditingView':!0x0}),_0x57ac86=document['createElement']('div');_0x57ac86['classList']['add']('ck-media__wrapper'),_0x8db9f6['render'](_0x57ac86,_0x48aac3['editing']['view']['domConverter']),_0x522a0e['replaceWith'](_0x57ac86);}}}),_0x1d0568[_0x28e37f]=_0x120079['innerHTML']);}return _0x1d0568;}['_sortRoots'](_0x13437){if(!function(_0x2d1d29){return void 0x0!==_0x2d1d29['getRootsAttributes'];}(_0x13437))return _0x13437['model']['document']['getRootNames']();const _0xc79dd7=[],_0x4e730e=new Map();for(const _0x147388 of _0x13437['model']['document']['getRootNames']()){const _0x224cdf=_0x13437['editing']['view']['getDomRoot'](_0x147388)['getClientRects']()['item'](0x0);_0xc79dd7['push'](_0x147388),_0x4e730e['set'](_0x147388,_0x224cdf);}return _0xc79dd7['sort']((_0x5893f6,_0x58ebbb)=>{const _0x29ec17=_0x4e730e['get'](_0x5893f6),_0x1d5630=_0x4e730e['get'](_0x58ebbb);return _0x29ec17['y']-_0x1d5630['y']||_0x29ec17['x']-_0x1d5630['x'];}),_0xc79dd7;}}class te extends _0x32d277{static get['requires'](){return[T,_0x2e48b0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x203d3b){super(_0x203d3b),_0x203d3b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x203d3b['config']['define']('trackChanges.preview.renderFunction',(_0x3368f5,_0x512d1b)=>{for(const _0x3483a6 of _0x512d1b)_0x3368f5['appendChild'](_0x3483a6);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};