@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20260104.0 → 0.0.0-nightly-next-20260105.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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x39cbb0,Plugin as _0x34b1ca,PendingActions as _0x2270a1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x42d154,ObservableMixin as _0x52c5f4,uid as _0x632a3,priorities as _0x294cc6,insertToPriorityArray as _0x4b204e,logWarning as _0x129820,getEnvKeystrokeText as _0x3838cf,FocusTracker as _0x567748,KeystrokeHandler as _0x5a4ff2,Collection as _0xfe8ed2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x217b51,IconCancel as _0xfe0a8f,IconTrackChanges as _0x12dd8a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x368de8,View as _0x182a1a,ViewCollection as _0x40f7e7,FocusCycler as _0x8de34f,UIModel as _0x5db8d1,createDropdown as _0x2c42d9,SplitButtonView as _0x278594,addListToDropdown as _0x432f5e,MenuBarMenuView as _0x4c5bd6,MenuBarMenuListView as _0x1d2a31,ListSeparatorView as _0x141401,MenuBarMenuListItemView as _0x478031,MenuBarMenuListItemButtonView as _0x459b73,BodyCollection as _0x2c63eb,Dialog as _0x2cdbb1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x223080,DocumentCompare as _0x84e023,hashObject as _0x2d3f6d,surroundingMarkersDetector as _0x451d9f,FOCUS_ANNOTATION_KEYSTROKE as _0x3851b7,AriaDescriptionView as _0x7a80da,setupThreadKeyboardNavigation as _0x364aa7,trimHtml as _0x37f433,UserView as _0x3cd60f,LateFocusButtonView as _0x181c0b,getDateTimeFormatter as _0x551e34,getAllMarkersDomElementsSorted as _0x5899d8,sanitizeEditorConfig as _0x54f4b0}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2d669a,ModelLiveRange as _0x4b2c9,ModelLivePosition as _0x5a3ec7,ViewDowncastWriter as _0x247b31}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x37eda8,set as _0x25c573,isEqual as _0x42ac9f,unset as _0x59411b,omit as Pt}from'es-toolkit/compat';import{Delete as _0xf843cb,Input as _0x53688b}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ac467}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2fc127}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x39cbb0{['_enabledCommands'];constructor(_0x153559,_0x536984){super(_0x153559),this['_enabledCommands']=_0x536984,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 _0x324d60 of this['editor']['commands']['commands']())_0x324d60['affectsData']&&!this['_enabledCommands']['has'](_0x324d60)&&_0x324d60['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x56c503 of this['editor']['commands']['commands']())_0x56c503['affectsData']&&!this['_enabledCommands']['has'](_0x56c503)&&_0x56c503['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x39cbb0{['_suggestions'];constructor(_0x246afb,_0x340e1f){super(_0x246afb),this['_suggestions']=_0x340e1f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5de21a){const _0x5354cf=this['_suggestions']['get'](_0x5de21a);if(!_0x5354cf)throw new _0x42d154('track-changes-accept-suggestion-not-found',this);const _0x507caf=_0x5354cf['getRanges']();this['editor']['model']['canEditAt'](_0x507caf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5354cf);}}class D extends _0x39cbb0{['_suggestions'];constructor(_0x29242c,_0x1eb135){super(_0x29242c),this['_suggestions']=_0x1eb135,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa9e955){const _0x43b68b=this['_suggestions']['get'](_0xa9e955);if(!_0x43b68b)throw new _0x42d154('track-changes-discard-suggestion-not-found',this);const _0x27d60b=_0x43b68b['getRanges']();this['editor']['model']['canEditAt'](_0x27d60b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x43b68b);}}function ls(_0x534933,_0x343fb0){let _0x1a089d='';return _0x1a089d+=_0x534933['split']('*')['map']((_0x531394,_0xce2c48)=>_0xce2c48%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x531394)+'</span>':rn(_0x531394))['join'](''),_0x343fb0&&(_0x1a089d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x343fb0['value']+'\x22\x20title=\x22'+_0x343fb0['title']+'\x22></span>'),_0x1a089d;}function rn(_0x4d20d5){const _0x2a6ffe=document['createElement']('span');return _0x2a6ffe['innerText']=_0x4d20d5,_0x2a6ffe['innerHTML'];}function ts(_0x518513){return _0x518513['sort']((_0xb35902,_0x155d45)=>'attribute'===_0xb35902['type']&&'attribute'!==_0x155d45['type']?-0x1:'attribute'!==_0xb35902['type']&&'attribute'===_0x155d45['type']?0x1:'deletion'==_0xb35902['type']&&'deletion'!=_0x155d45['type']?-0x1:'deletion'!=_0xb35902['type']&&'deletion'==_0x155d45['type']?0x1:0x0);}function to(_0x40503e,_0x6c87a7){let _0x1d406c,_0x428358=0x0;const _0xd4a189=[],_0x406f5c=_0x6c87a7['schema'];for(;_0x428358<_0x40503e['length'];){const _0x3ffce8=_0x40503e[_0x428358],_0x5d61b8=_0x40503e[_0x428358+0x1];_0x1d406c||(_0x1d406c=_0x6c87a7['createPositionBefore'](_0x3ffce8)),cn(_0x6c87a7,_0x3ffce8,_0x5d61b8)||(_0xd4a189['push'](_0x6c87a7['createRange'](_0x1d406c,_0x406f5c['isObject'](_0x3ffce8)?_0x6c87a7['createPositionAfter'](_0x3ffce8):_0x6c87a7['createPositionAt'](_0x3ffce8,'end'))),_0x1d406c=null),_0x428358++;}return _0xd4a189;}function cn(_0x4b4859,_0x1f5859,_0x255f07){if(!_0x255f07)return!0x1;const _0x2d2458=_0x4b4859['createPositionAfter'](_0x1f5859),_0xf6f5cd=_0x4b4859['createPositionBefore'](_0x255f07);return _0x2d2458['isTouching'](_0xf6f5cd);}function rs(_0x34f942,_0x2ae0c4,_0x33643e){for(;_0x33643e['length'];){const _0x33c45a=_0x33643e['splice'](0x0,0x64);_0x34f942['change'](()=>{for(const _0x14f4c9 of _0x33c45a)_0x14f4c9['isInContent']&&_0x2ae0c4['execute'](_0x14f4c9['id']);});}}class B extends _0x39cbb0{['_command'];['_suggestions'];constructor(_0x3cc3dc,_0x40a2cb,_0x3ffce7){super(_0x3cc3dc),this['_command']=_0x40a2cb,this['_suggestions']=_0x3ffce7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x122694=Array['from'](this['_suggestions']['values']())['some'](_0x4cbd18=>_0x4cbd18['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x122694;}['execute'](){const _0x280025=ts(Array['from'](this['_suggestions']['values']()));for(const _0x516f65 of _0x280025){const _0x476c66=_0x516f65['getRanges']();if(!this['editor']['model']['canEditAt'](_0x476c66))return;}rs(this['editor']['model'],this['_command'],_0x280025);}}class O extends _0x39cbb0{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xa1ebcb,_0x2a3009,_0xa07521){super(_0xa1ebcb),this['_command']=_0x2a3009,this['_suggestions']=_0xa07521,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x538fb7=this['editor']['model']['document']['selection'],_0x264aba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f8ee7,_0x40da73){const _0x36b5c2=Array['from'](_0x4f8ee7['getRanges']()),_0x34a69f=new Set();for(const _0x5018fe of _0x40da73)if(_0x5018fe['isInContent']){for(const _0x293d65 of _0x36b5c2)for(const _0x325be0 of _0x5018fe['getRanges']())(_0x293d65['isIntersecting'](_0x325be0)||_0x4f8ee7['isCollapsed']&&!_0x5018fe['isMultiRange']&&_0x5018fe['next']&&_0x325be0['end']['isTouching'](_0x293d65['start']))&&_0x34a69f['add'](_0x5018fe);}return _0x34a69f;}(_0x538fb7,_0x264aba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xb636bc=ts(Array['from'](this['_selectedSuggestions']));for(const _0x30ddf5 of _0xb636bc){const _0x42331d=_0x30ddf5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42331d))return;}rs(this['editor']['model'],this['_command'],_0xb636bc);}}class x extends/* #__PURE__ -- @preserve */
24
- _0x52c5f4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x26cb0c,_0x2de271){super(),this['id']=_0x2de271['id'],this['type']=_0x2de271['type'],this['subType']=_0x2de271['subType']||null,this['author']=_0x2de271['author'],this['creator']=_0x2de271['creator']||_0x2de271['author'],this['isExternal']=Boolean(_0x2de271['attributes']&&_0x2de271['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2de271['originalSuggestionId']||null,this['_model']=_0x26cb0c,this['_onAccept']=_0x2de271['onAccept'],this['_onDiscard']=_0x2de271['onDiscard'],this['_onAttributesChange']=_0x2de271['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2de271['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 _0x5c6b6e=this;for(;_0x5c6b6e['previous'];)_0x5c6b6e=_0x5c6b6e['previous'];return _0x5c6b6e;}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'](_0x36b093){this['_markerNames']['add'](_0x36b093);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x59f601=>this['_model']['markers']['get'](_0x59f601))['filter'](_0x49958d=>_0x49958d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3a0d1a=>{for(const _0x3b7868 of this['getMarkers']())_0x3a0d1a['removeMarker'](_0x3b7868);}),this['_markerNames']['clear']();}['removeMarker'](_0x137486){this['_model']['change'](_0x3aafab=>{_0x3aafab['removeMarker'](_0x137486);}),this['_markerNames']['delete'](_0x137486);}['addRange'](_0x81ebd8){const _0x29f155='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x29f155),this['_model']['change'](_0x2d8d3d=>{_0x2d8d3d['addMarker'](_0x29f155,{'range':_0x81ebd8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3916be){for(const _0x30bf29 of this['getRanges']())if(_0x30bf29['isIntersecting'](_0x3916be))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4b53a6=>_0x4b53a6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a239a,_0x2e73d3)=>[..._0x4a239a,..._0x2e73d3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x21c0e4=this['getRanges']();if(0x1!=_0x21c0e4['length'])return null;const _0x103bde=_0x21c0e4[0x0],_0x157a7f=_0x103bde['start']['nodeAfter'],_0x17bb86=_0x103bde['end']['nodeBefore'];return _0x157a7f instanceof _0x2d669a?_0x157a7f!=_0x17bb86?null:_0x157a7f: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 _0xac5ba1=[];let _0x5e10e0=this['head'];for(;_0x5e10e0;)_0xac5ba1['push'](_0x5e10e0),_0x5e10e0=_0x5e10e0['next'];return _0xac5ba1;}['setAttribute'](_0x19415f,_0x42814e){const _0x3fa378=_0x37eda8(this['attributes']);_0x25c573(_0x3fa378,_0x19415f,_0x42814e),_0x42ac9f(_0x3fa378,this['attributes'])||(this['attributes']=_0x3fa378,this['_onAttributesChange'](_0x3fa378));}['removeAttribute'](_0x513c6c){const _0x50d39c=_0x37eda8(this['attributes']);_0x59411b(_0x50d39c,_0x513c6c),_0x42ac9f(_0x50d39c,this['attributes'])||(this['attributes']=_0x50d39c,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 _0x632a3()['substr'](0x1,0x5);}}function o(_0x3ada43,_0x3b0e22,_0x5ed2bb){const _0x48c14a=_0x3ada43['t'],t=_0x3ada43['t'];switch(_0x3b0e22){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',_0x5ed2bb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5ed2bb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5ed2bb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5ed2bb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5ed2bb);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',_0x5ed2bb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5ed2bb);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',_0x5ed2bb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5ed2bb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5ed2bb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5ed2bb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5ed2bb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5ed2bb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5ed2bb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5ed2bb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5ed2bb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5ed2bb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5ed2bb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5ed2bb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5ed2bb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5ed2bb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5ed2bb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5ed2bb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5ed2bb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5ed2bb);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'},_0x5ed2bb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5ed2bb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5ed2bb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5ed2bb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5ed2bb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5ed2bb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5ed2bb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5ed2bb);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'},_0x5ed2bb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5ed2bb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5ed2bb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5ed2bb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5ed2bb);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'},_0x5ed2bb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5ed2bb);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'},_0x5ed2bb);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x5ed2bb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5ed2bb);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'},_0x5ed2bb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5ed2bb);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'},_0x5ed2bb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5ed2bb);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5ed2bb);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5ed2bb);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5ed2bb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5ed2bb);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'},_0x5ed2bb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5ed2bb);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 _0x48c14a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5ed2bb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x48c14a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5ed2bb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5ed2bb);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'},_0x5ed2bb);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'},_0x5ed2bb);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'},_0x5ed2bb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3b0e22;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1eec23,_0x3d38f0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1eec23,this['_locale']=_0x3d38f0;}['getDescriptions'](_0xa7e44f){const _0x469c8b=[],_0x3d96c8=new Set(),_0x258206=new Set();for(let _0xb62a9a=0x0;_0xb62a9a<_0xa7e44f['length'];_0xb62a9a++){const _0xc54a70=_0xa7e44f[_0xb62a9a];if(!_0xc54a70['isInContent'])continue;const _0x3c84e2=this['_handleCustomCallbackDescription'](_0xc54a70);if(_0x3c84e2){if(null!=_0xc54a70['subType']){if(_0x3d96c8['has'](_0xc54a70['subType']))continue;_0x3d96c8['add'](_0xc54a70['subType']);}_0x469c8b['push'](_0x3c84e2);}else{if('attribute'==_0xc54a70['type']){const _0x520593=_0xc54a70['data']['key'];if(_0x258206['has'](_0x520593))continue;_0x258206['add'](_0xc54a70['data']['key']),_0x520593==m?this['_handleRenameSuggestionDescription'](_0x469c8b,_0xc54a70):this['_handleAttributeSuggestionDescription'](_0x469c8b,_0xc54a70);continue;}'insertion'!=_0xc54a70['type']&&'deletion'!=_0xc54a70['type']||this['_handleInsertRemoveSuggestionDescription'](_0x469c8b,_0xc54a70,_0xa7e44f[_0xb62a9a+0x1]);}}return this['_resolveDescriptionItems'](_0x469c8b);}['registerDescriptionCallback'](_0x784edf){this['_customCallbacks']['push'](_0x784edf);}['registerElementLabel'](_0x58e916,_0x476547,_0x1cb9ec=_0x294cc6['normal']){'function'==typeof _0x58e916?_0x4b204e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x58e916,'label':_0x476547,'priority':_0x1cb9ec}):this['_itemLabels']['set'](_0x58e916,_0x476547);}['registerAttributeLabel'](_0x36acb5,_0x1e6f2c){this['_attributeLabels']['set'](_0x36acb5,_0x1e6f2c);}['getItemLabel'](_0x303c14,_0x4458bf=0x1){let _0x227657;for(const _0x5a8bed of this['_itemLabelsCallbacks'])if(_0x5a8bed['matchingCallback'](_0x303c14)){_0x227657=_0x5a8bed['label'];break;}return _0x227657||(_0x227657=this['_itemLabels']['get'](_0x303c14['name'])),_0x227657?_0x227657(_0x4458bf):0x1!==_0x4458bf?_0x4458bf+'\x20'+_0x303c14['name']+'s':''+_0x303c14['name'];}['_addDescriptionItems'](_0x26c970,_0x447e47){const _0x720d18=_0x447e47['getFirstRange']()['getWalker'](),_0x58d04b='insertion'==_0x447e47['type']?'add':'remove';for(const _0xd0651b of _0x720d18){const _0x71493a=_0xd0651b['item'],_0x8a4a6f=_0x26c970[_0x26c970['length']-0x1];if(_0x71493a['is']('$textProxy'))_0x8a4a6f&&_0x8a4a6f['type']['indexOf']('Container')>-0x1&&_0x26c970['pop'](),_0x8a4a6f&&'text'==_0x8a4a6f['type']?_0x8a4a6f[_0x58d04b]+=_0x71493a['data']:_0x26c970['push']({'type':'text','add':'add'==_0x58d04b?_0x71493a['data']:'','remove':'remove'==_0x58d04b?_0x71493a['data']:''});else{if(this['_schema']['isObject'](_0x71493a)){const _0xd3aa68=_0x71493a;if(_0x8a4a6f&&_0x8a4a6f['type']['indexOf']('Container')>-0x1&&_0x26c970['pop'](),'elementEnd'==_0xd0651b['type'])continue;_0x8a4a6f&&_0x8a4a6f['type']==_0x58d04b+'Object'&&_0x8a4a6f['element']['name']==_0xd3aa68['name']?_0x8a4a6f['quantity']++:_0x26c970['push']({'type':_0x58d04b+'Object','element':_0xd3aa68,'quantity':0x1}),_0x720d18['skip'](_0x545e6a=>!('elementEnd'==_0x545e6a['type']&&_0x545e6a['item']==_0x71493a));}else{if(this['_schema']['checkChild'](_0x71493a,'$text')||_0x71493a['is']('element','softBreak')){const _0x408eaf=_0x71493a;if('add'==_0x58d04b&&'elementStart'==_0xd0651b['type']||'remove'==_0x58d04b&&'elementEnd'==_0xd0651b['type'])continue;if(_0x8a4a6f&&-0x1==_0x8a4a6f['type']['indexOf']('Container')){'text'==_0x8a4a6f['type']&&(_0x8a4a6f[_0x58d04b]+='\x0a');continue;}let _0x2e840e;if(_0x2e840e='add'==_0x58d04b?_0x408eaf['nextSibling']&&!this['_schema']['isObject'](_0x408eaf['nextSibling'])?_0x408eaf['nextSibling']:null:_0x408eaf['previousSibling']&&!this['_schema']['isObject'](_0x408eaf['previousSibling'])?_0x408eaf['previousSibling']:null,_0x408eaf['isEmpty']||_0x2e840e&&_0x2e840e['isEmpty']){const _0x5e9080=_0x2e840e&&_0x2e840e['isEmpty']?_0x2e840e:_0x408eaf;_0x8a4a6f&&_0x8a4a6f['type']==_0x58d04b+'EmptyContainer'&&_0x8a4a6f['element']['name']==_0x5e9080['name']?_0x8a4a6f['quantity']++:_0x26c970['push']({'type':_0x58d04b+'EmptyContainer','element':_0x5e9080,'quantity':0x1});}else _0x26c970['push']({'type':_0x58d04b+'Container','element':_0x408eaf});}}}}}['_resolveDescriptionItems'](_0x227609){const _0x1a2f37=this['_locale'],_0x4f4e78=[],_0x148c6d=[],_0x398d9c=[];for(const _0x1cd1cf of _0x227609)switch(_0x1cd1cf['type']){case'text':if(_0x1cd1cf['add']=_0x1cd1cf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1cd1cf['remove']=_0x1cd1cf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1cd1cf['add']&&''!=_0x1cd1cf['remove']){_0x4f4e78['push']({'type':'replace','content':o(_0x1a2f37,'REPLACE_TEXT',['\x22'+_0x1cd1cf['remove']+'\x22','\x22'+_0x1cd1cf['add']+'\x22'])});continue;}if(null!=_0x1cd1cf['add']['match'](/^ +$/)){_0x4f4e78['push']({'type':'insertion','content':o(_0x1a2f37,'*Insert:*\x20%0',o(_0x1a2f37,'ELEMENT_SPACE',_0x1cd1cf['add']['length']))});continue;}if(null!=_0x1cd1cf['remove']['match'](/^ +$/)){_0x4f4e78['push']({'type':'deletion','content':o(_0x1a2f37,'*Remove:*\x20%0',o(_0x1a2f37,'ELEMENT_SPACE',_0x1cd1cf['remove']['length']))});continue;}if(''!=_0x1cd1cf['add']){_0x4f4e78['push']({'type':'insertion','content':o(_0x1a2f37,'*Insert:*\x20%0','\x22'+_0x1cd1cf['add']+'\x22')});continue;}_0x4f4e78['push']({'type':'deletion','content':o(_0x1a2f37,'*Remove:*\x20%0','\x22'+_0x1cd1cf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4f4e78['push']({'type':'insertion','content':o(_0x1a2f37,'*Insert:*\x20%0',this['getItemLabel'](_0x1cd1cf['element'],_0x1cd1cf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4f4e78['push']({'type':'deletion','content':o(_0x1a2f37,'*Remove:*\x20%0',this['getItemLabel'](_0x1cd1cf['element'],_0x1cd1cf['quantity']))});continue;case'addContainer':_0x4f4e78['push']({'type':'insertion','content':o(_0x1a2f37,'*Split:*\x20%0',this['getItemLabel'](_0x1cd1cf['element'],_0x1cd1cf['quantity']))});continue;case'removeContainer':_0x4f4e78['push']({'type':'deletion','content':o(_0x1a2f37,'*Merge:*\x20%0',this['getItemLabel'](_0x1cd1cf['element'],_0x1cd1cf['quantity']))});continue;case'addFormat':_0x148c6d['push'](_0x1cd1cf['key']);continue;case'removeFormat':_0x398d9c['push'](_0x1cd1cf['key']);continue;default:_0x4f4e78['push'](_0x1cd1cf);}if(_0x148c6d['length']){const _0xcfa755=_0x148c6d['map'](_0x2cf863=>this['_attributeLabels']['has'](_0x2cf863)?this['_attributeLabels']['get'](_0x2cf863):_0x2cf863)['join'](',\x20');_0x4f4e78['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xcfa755)});}if(_0x398d9c['length']){const _0x4cc8fa=_0x398d9c['map'](_0x59c120=>this['_attributeLabels']['has'](_0x59c120)?this['_attributeLabels']['get'](_0x59c120):_0x59c120)['join'](',\x20');_0x4f4e78['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4cc8fa)});}return _0x4f4e78;}['_handleCustomCallbackDescription'](_0x734159){for(const _0x99df5c of this['_customCallbacks']){const _0x51b12f=_0x99df5c(_0x734159);if(_0x51b12f&&'type'in _0x51b12f)return _0x51b12f;}}['_handleAttributeSuggestionDescription'](_0x1a5836,_0x3d9954){const _0x90e0dd=_0x3d9954['data'],_0x189444=void 0x0===_0x90e0dd['newValue']?'removeFormat':'addFormat';_0x1a5836['push']({'type':_0x189444,'key':_0x90e0dd['key']});}['_handleRenameSuggestionDescription'](_0x10f8c2,_0x53478f){_0x10f8c2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53478f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1832ac,_0x2356f7,_0x5e20ba){if(this['_addDescriptionItems'](_0x1832ac,_0x2356f7),_0x5e20ba&&_0x5e20ba['getFirstRange']()&&!_0x2356f7['getFirstRange']()['end']['isEqual'](_0x5e20ba['getFirstRange']()['start'])){const _0x12ee0f=_0x1832ac[_0x1832ac['length']-0x1],_0x534f80='insertion'==_0x2356f7['type']?'add':'remove';_0x12ee0f&&'text'==_0x12ee0f['type']&&(_0x12ee0f[_0x534f80]+='\x0a');}}}class R extends _0x34b1ca{['afterInit'](){const _0x240890=this['editor'],_0x205aec=_0x240890['plugins']['get']('TrackChangesEditing');_0x240890['commands']['get']('showAIAssistant')&&_0x205aec['enableCommand']('showAIAssistant');}}class T extends _0x34b1ca{['afterInit'](){const _0x3a8b24=this['editor'],_0x3c6adb=_0x3a8b24['plugins']['get']('TrackChangesEditing');_0x3a8b24['commands']['get']('toggleAi')&&_0x3c6adb['enableCommand']('toggleAi');}}class E extends _0x34b1ca{['afterInit'](){const _0x2dcc97=this['editor'],_0x195ba3=_0x2dcc97['plugins']['get']('TrackChangesEditing');_0x2dcc97['commands']['get']('aiQuickAction')&&_0x195ba3['enableCommand']('aiQuickAction');}}class U extends _0x34b1ca{['afterInit'](){const _0x2cc7a9=this['editor'],_0x377f17=_0x2cc7a9['locale'];if(!_0x2cc7a9['plugins']['has']('AlignmentEditing'))return;const _0x45cf39=_0x2cc7a9['plugins']['get']('TrackChangesEditing');_0x45cf39['enableDefaultAttributesIntegration']('alignment'),_0x45cf39['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x377f17,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e9a0=this['editor'],_0x5ec2be=_0x38e9a0['locale'];_0x38e9a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x453ac8=>{if('formatBlock'!=_0x453ac8['type'])return;const {data:_0x4cff30}=_0x453ac8;if(_0x4cff30&&'alignment'==_0x4cff30['commandName']){const _0x26d78b=_0x4cff30['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5ec2be,'*Format:*\x20%0',function(_0x1fd63e){switch(_0x1fd63e){case'left':return o(_0x5ec2be,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5ec2be,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5ec2be,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5ec2be,'FORMAT_JUSTIFY_TEXT');}}(_0x26d78b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x34b1ca{['afterInit'](){const _0x12d3b0=this['editor'],_0x4189d9=_0x12d3b0['plugins']['get']('TrackChangesEditing'),_0x170f0b=_0x12d3b0['locale'];for(const _0x125927 of ti){if(!_0x12d3b0['plugins']['has'](_0x125927))continue;const _0x555f13=_0x125927['slice'](0x0,-0x7)['toLowerCase'](),_0x14025c='FORMAT_'+_0x555f13['toUpperCase']();_0x4189d9['enableDefaultAttributesIntegration'](_0x555f13),_0x4189d9['descriptionFactory']['registerAttributeLabel'](_0x555f13,o(_0x170f0b,_0x14025c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b70c1=this['editor'],_0x4403ad=_0x5b70c1['locale'],_0x5a1934=_0x5b70c1['plugins']['get']('TrackChangesEditing');function _0x1229f3(_0x306ade,_0x1288b1){_0x5a1934['descriptionFactory']['registerDescriptionCallback'](_0x34fae7=>{if('formatInline'!=_0x34fae7['type'])return;const {data:_0x4b725a}=_0x34fae7;return _0x4b725a&&_0x4b725a['commandName']===_0x306ade?_0x4b725a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4403ad,'*Format:*\x20%0',_0x1288b1)}:{'type':'format','content':o(_0x4403ad,'*Remove\x20format:*\x20%0',_0x1288b1)}:void 0x0;});}_0x1229f3('bold',o(_0x4403ad,'FORMAT_BOLD')),_0x1229f3('italic',o(_0x4403ad,'FORMAT_ITALIC')),_0x1229f3('underline',o(_0x4403ad,'FORMAT_UNDERLINE')),_0x1229f3('code',o(_0x4403ad,'FORMAT_CODE')),_0x1229f3('strikethrough',o(_0x4403ad,'FORMAT_STRIKETHROUGH')),_0x1229f3('subscript',o(_0x4403ad,'FORMAT_SUBSCRIPT')),_0x1229f3('superscript',o(_0x4403ad,'FORMAT_SUPERSCRIPT'));}}class F extends _0x34b1ca{['afterInit'](){const _0x248ca9=this['editor'],_0x10e812=_0x248ca9['locale'];if(!_0x248ca9['plugins']['has']('BlockQuoteEditing'))return;const _0x3c9715=_0x248ca9['plugins']['get']('TrackChangesEditing'),_0x5e047=this['editor']['commands']['get']('blockQuote');_0x3c9715['enableCommand']('blockQuote',(_0x53d72d,_0x40e74e={})=>{const _0x8f1cad=this['editor']['model']['document']['selection'],_0x24293d=_0x40e74e&&void 0x0!==_0x40e74e['forceValue']?_0x40e74e['forceValue']:!_0x5e047['value'];let _0x300065=[];if(_0x24293d){const _0x1ef9c2=Array['from'](_0x8f1cad['getSelectedBlocks']())['filter'](_0x3fc6ba=>oo(_0x3fc6ba)||function(_0x4c62c4,_0x3c0cc4){const _0x1dd4b9=_0x3c0cc4['checkChild'](_0x4c62c4['parent'],'blockQuote'),_0x5e01f1=_0x3c0cc4['checkChild'](['$root','blockQuote'],_0x4c62c4);return _0x1dd4b9&&_0x5e01f1;}(_0x3fc6ba,this['editor']['model']['schema']));_0x300065=to(_0x1ef9c2,_0x248ca9['model']);}else{const _0x330ef2=Array['from'](_0x8f1cad['getSelectedBlocks']())['filter'](_0x3aeb55=>oo(_0x3aeb55));_0x300065=to(_0x330ef2,_0x248ca9['model']);}_0x248ca9['model']['change'](()=>{for(const _0x3e5959 of _0x300065)_0x3c9715['markBlockFormat'](_0x3e5959,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x24293d}]});});}),_0x3c9715['descriptionFactory']['registerDescriptionCallback'](_0x3c93fb=>{const {data:_0xf25922}=_0x3c93fb;if(_0xf25922&&'blockQuote'==_0xf25922['commandName']){const _0x102afc=o(_0x10e812,'ELEMENT_BLOCK_QUOTE');return _0xf25922['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10e812,'*Set\x20format:*\x20%0',_0x102afc)}:{'type':'format','content':o(_0x10e812,'*Remove\x20format:*\x20%0',_0x102afc)};}});}}function oo(_0x47d5a6){return'blockQuote'==_0x47d5a6['parent']['name'];}class G extends _0x34b1ca{['afterInit'](){const _0x3c0479=this['editor'],_0x23aaaa=_0x3c0479['locale'],_0x35a225=_0x3c0479['plugins']['get']('TrackChangesEditing');_0x3c0479['plugins']['has']('BookmarkEditing')&&(_0x35a225['enableCommand']('insertBookmark'),_0x35a225['enableDefaultAttributesIntegration']('updateBookmark'),_0x35a225['descriptionFactory']['registerDescriptionCallback'](_0xc5dc4b=>{if('insertion'!=_0xc5dc4b['type']&&'deletion'!=_0xc5dc4b['type']&&'attribute'!=_0xc5dc4b['type'])return;const _0x17a029=_0xc5dc4b['getContainedElement']();if(null==_0x17a029)return;if(!_0x17a029['is']('element','bookmark'))return;const _0x13f181=_0x17a029['getAttribute']('bookmarkId');if('insertion'==_0xc5dc4b['type'])return{'type':'insertion','content':o(_0x23aaaa,'*Insert:*\x20%0','\x22'+_0x13f181+'\x22\x20'+o(_0x23aaaa,'ELEMENT_BOOKMARK'))};if('deletion'==_0xc5dc4b['type'])return{'type':'deletion','content':o(_0x23aaaa,'*Remove:*\x20%0','\x22'+_0x13f181+'\x22\x20'+o(_0x23aaaa,'ELEMENT_BOOKMARK'))};const {data:_0x2e9963}=_0xc5dc4b;if(!_0x2e9963||'bookmarkId'!=_0x2e9963['key'])return;return{'type':'format','content':o(_0x23aaaa,'*Set\x20bookmark:*\x20%0','\x22'+_0x2e9963['newValue']+'\x22')};}));}}class L extends _0x34b1ca{['afterInit'](){const _0x175dae=this['editor'];_0x175dae['plugins']['has']('CaseChange')&&(_0x175dae['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x175dae['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x175dae['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x34b1ca{['afterInit'](){const _0x6f1738=this['editor'];_0x6f1738['commands']['get']('ckbox')&&_0x6f1738['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x34b1ca{['afterInit'](){const _0x2cd2f2=this['editor'];if(!_0x2cd2f2['plugins']['has']('CodeBlock'))return;const _0x4430d7=_0x2cd2f2['plugins']['get']('TrackChangesEditing'),_0x5f055c=_0x2cd2f2['locale'],_0x24d071=_0x2cd2f2['config']['get']('codeBlock')['languages'],_0x10dbef=_0x2cd2f2['commands']['get']('codeBlock');_0x4430d7['enableCommand']('indentCodeBlock'),_0x4430d7['enableCommand']('outdentCodeBlock'),_0x4430d7['enableCommand']('codeBlock',(_0x5f3cae,_0x1b4dca={})=>{const _0x3c038c=_0x2cd2f2['model'],_0x1d055e=_0x2cd2f2['model']['document']['selection'],_0x3d764c=_0x1b4dca&&void 0x0!==_0x1b4dca['forceValue']?_0x1b4dca['forceValue']:!_0x10dbef['value'];let _0x30bc1d;_0x1b4dca['language']||(_0x1b4dca['language']=_0x24d071[0x0]['language']),_0x30bc1d=_0x3d764c?Array['from'](_0x1d055e['getSelectedBlocks']())['filter'](_0x23c9cd=>co(_0x23c9cd)||function(_0x5048da,_0x367d0e){if(_0x5048da['is']('rootElement')||_0x367d0e['isLimit'](_0x5048da))return!0x1;return _0x367d0e['checkChild'](_0x5048da['parent'],'codeBlock');}(_0x23c9cd,_0x3c038c['schema'])):Array['from'](_0x1d055e['getSelectedBlocks']())['filter'](_0x502ae7=>co(_0x502ae7));const _0x4e1db1=to(_0x30bc1d,_0x3c038c);_0x3c038c['change'](()=>{for(const _0x43c806 of _0x4e1db1)_0x4430d7['markBlockFormat'](_0x43c806,{'commandName':'codeBlock','commandParams':[{..._0x1b4dca,'forceValue':_0x3d764c}],'formatGroupId':'blockName'});});}),(_0x4430d7['descriptionFactory']['registerElementLabel']('codeBlock',_0x75180e=>o(_0x5f055c,'ELEMENT_CODE_BLOCK',_0x75180e)),_0x4430d7['descriptionFactory']['registerDescriptionCallback'](_0x205c76=>{if('formatBlock'!=_0x205c76['type'])return;const _0x474e53=_0x5f055c['t'],{data:_0x1fec8d}=_0x205c76;if(!_0x1fec8d||'codeBlock'!=_0x1fec8d['commandName'])return;const _0x554204=_0x1fec8d['commandParams'][0x0]['language'],_0x24b512=_0x474e53(_0x24d071['find'](_0x4e216f=>_0x4e216f['language']===_0x554204)['label'])['toLowerCase']();return _0x1fec8d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f055c,'*Set\x20format:*\x20%0',o(_0x5f055c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x24b512+')')}:{'type':'format','content':o(_0x5f055c,'*Remove\x20format:*\x20%0',o(_0x5f055c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3a3bb2){return'codeBlock'==_0x3a3bb2['name'];}class z extends _0x34b1ca{['afterInit'](){const _0x11881a=this['editor'];if(!_0x11881a['plugins']['has']('CommentsEditing'))return;_0x11881a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x34b1ca{static get['requires'](){return[_0xf843cb];}['init'](){const _0x391e84=this['editor'],_0x5802c7=_0x391e84['plugins']['get']('TrackChangesEditing');_0x5802c7['enableCommand']('delete');const _0x3110e1=_0x391e84['commands']['get']('deleteForward');_0x5802c7['enableCommand']('deleteForward',(_0x2cc8c5,_0x51295d={})=>{const _0x2c1752=_0x391e84['model']['createSelection'](_0x391e84['model']['document']['selection']);_0x2c1752['isCollapsed']&&_0x391e84['model']['modifySelection'](_0x2c1752,{'direction':'forward','unit':_0x51295d['unit']});const _0x393a4b=_0x2c1752['getFirstRange'](),_0x55fa73=_0x4b2c9['fromRange'](_0x393a4b);let _0x4662b8;_0x2cc8c5(_0x51295d),_0x4662b8='$graveyard'==_0x55fa73['root']['rootName']?_0x391e84['model']['createRange'](_0x393a4b['start']):_0x391e84['model']['createRange'](_0x55fa73['start'],_0x55fa73['end']),_0x55fa73['detach'](),_0x391e84['model']['enqueueChange'](_0x3110e1['buffer']['batch'],_0x1b76a1=>{_0x3110e1['buffer']['lock'](),_0x1b76a1['setSelection'](_0x1b76a1['createRange'](_0x4662b8['end'])),_0x3110e1['buffer']['unlock']();});});}}class W extends _0x34b1ca{['afterInit'](){const _0x21bfd4=this['editor'];if(!_0x21bfd4['plugins']['has']('ListEditing'))return;const _0x4b5941=_0x21bfd4['locale'],_0x400a31=_0x21bfd4['plugins']['get']('TrackChangesEditing'),_0x247db8=_0x21bfd4['plugins']['has']('TodoListEditing'),_0x21c88c=!!_0x21bfd4['config']['get']('list.multiBlock');function _0x28692b(_0x5d1c30){return{'type':'format','content':''+o(_0x4b5941,'*Set\x20format:*\x20%0',_0x5d1c30)};}function _0x510abf(_0x61df90){return{'type':'format','content':''+o(_0x4b5941,'*Remove\x20format:*\x20%0',_0x61df90)};}_0x400a31['enableDefaultAttributesIntegration']('numberedList'),_0x400a31['enableDefaultAttributesIntegration']('bulletedList'),_0x400a31['enableDefaultAttributesIntegration']('customNumberedList'),_0x400a31['enableDefaultAttributesIntegration']('customBulletedList'),_0x400a31['enableDefaultAttributesIntegration']('indentList'),_0x400a31['enableDefaultAttributesIntegration']('outdentList'),_0x400a31['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x400a31['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x21c88c&&(_0x400a31['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x400a31['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x247db8&&(_0x400a31['enableDefaultAttributesIntegration']('todoList'),_0x400a31['enableDefaultAttributesIntegration']('checkTodoList'),_0x400a31['descriptionFactory']['registerDescriptionCallback'](_0x172b25=>{const {data:_0x1c011b}=_0x172b25;if(_0x1c011b&&'todoListChecked'==_0x1c011b['key'])return{'type':'format','content':_0x1c011b['newValue']?o(_0x4b5941,'*Check\x20item*'):o(_0x4b5941,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3706a1=>{if(_0x3706a1['batch']['isUndo'])return!0x1;let _0x3a00d0=!0x1;const _0x2734d9=_0x400a31['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e9929=>'todoListChecked'===_0x400a31['_getAttributeKey'](_0x4e9929));for(const _0x157990 of _0x2734d9){'todo'!=_0x157990['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x400a31['_findSuggestions'](_0x157990['getFirstRange'](),'attribute')['find'](_0x5b769c=>'listType'===_0x400a31['_getAttributeKey'](_0x5b769c['suggestion']))||(_0x3706a1['removeMarker'](_0x157990['getFirstMarker']()),_0x3a00d0=!0x0));}return _0x3a00d0;})),_0x400a31['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b5941,'FORMAT_INDENT'));const _0x13acb4={'type':'format','content':''};_0x400a31['descriptionFactory']['registerDescriptionCallback'](_0x359d39=>{const {data:_0x2aba60}=_0x359d39;if(!_0x2aba60||'listType'!=_0x2aba60['key'])return;let _0xe701b9=_0x359d39['head'];for(;_0xe701b9;){if(_0xe701b9['data']&&(('listStyle'==_0xe701b9['data']['key']||'listMarkerStyle'==_0xe701b9['data']['key'])&&(_0xe701b9['data']['newValue']&&'default'!=_0xe701b9['data']['newValue']||'default'!=_0xe701b9['data']['oldValue']&&!_0x2aba60['newValue'])||!_0x21c88c&&_0xe701b9['data']['key']==m))return _0x13acb4;_0xe701b9=_0xe701b9['next'];}if(null==_0x2aba60['newValue'])switch(_0x2aba60['oldValue']){case'bulleted':return _0x510abf(o(_0x4b5941,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x510abf(o(_0x4b5941,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x510abf(o(_0x4b5941,'ELEMENT_TODO_LIST'));}switch(_0x2aba60['newValue']){case'bulleted':return _0x28692b(o(_0x4b5941,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28692b(o(_0x4b5941,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28692b(o(_0x4b5941,'ELEMENT_TODO_LIST'));}}),_0x400a31['descriptionFactory']['registerDescriptionCallback'](_0x2435d9=>{const {data:_0x5662c5}=_0x2435d9;if(_0x5662c5&&'listIndent'==_0x5662c5['key'])return null==_0x5662c5['newValue']||null==_0x5662c5['oldValue']&&0x0==_0x5662c5['newValue']?_0x13acb4:void 0x0;}),_0x400a31['descriptionFactory']['registerDescriptionCallback'](_0x2bc27b=>{if('attribute'!=_0x2bc27b['type'])return;const {data:_0x5b1be7}=_0x2bc27b;if(!_0x5b1be7||'listItemId'!=_0x5b1be7['key'])return;const _0x51ace0=Te(_0x2bc27b);return'newValue'==_0x51ace0?{'type':'format','content':o(_0x4b5941,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51ace0?{'type':'format','content':o(_0x4b5941,'*Split:*\x20list\x20item')}:_0x13acb4;}),_0x21bfd4['model']['document']['registerPostFixer'](_0x29f83b=>this['listItemIdFixer'](_0x29f83b)),_0x21bfd4['model']['document']['registerPostFixer'](_0x435e51=>this['noTrackChangesFixer'](_0x435e51)),_0x21bfd4['model']['document']['on']('change:data',(_0x15468d,_0x14b1ec)=>{if(_0x14b1ec['isUndo']||!_0x14b1ec['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x458889){if(_0x458889['batch']['isUndo']||!_0x458889['batch']['isLocal'])return!0x1;let _0x2e965d=!0x1;const _0xa0ebd9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x436e74=>_0x436e74['data']&&'listItemId'==_0x436e74['data']['key'])['filter'](_0x590844=>_0x590844['data']['newValue']&&_0x590844['data']['oldValue']);for(const _0x49d35d of _0xa0ebd9)Te(_0x49d35d)||(_0x458889['removeMarker'](_0x49d35d['getFirstMarker']()),_0x2e965d=!0x0);return _0x2e965d;}['noTrackChangesFixer'](_0x4f6fd7){if(_0x4f6fd7['batch']['isUndo']||!_0x4f6fd7['batch']['isLocal'])return!0x1;const _0x31f92c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x31f92c['trackChangesCommand']['value'])return!0x1;let _0x5eb8ab=!0x1;const _0x3ebf47=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3dc6b8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x565dee=>'attribute'==_0x565dee['type'])['filter'](_0x1307e2=>_0x3ebf47['includes'](_0x1307e2['attributeKey']));if(0x0==_0x3dc6b8['length'])return _0x5eb8ab;for(const _0xe71ceb of _0x3dc6b8){const _0x3eac3a=_0x31f92c['_findSuggestions'](_0xe71ceb['range'],'attribute')['filter'](_0x295567=>!_0x295567['meta']['isNextTo'])['map'](_0x50c69c=>_0x50c69c['suggestion'])['filter'](_0x340fae=>{const _0x7f005f=_0x31f92c['_getAttributeKey'](_0x340fae);return _0x3ebf47['includes'](_0x7f005f);});if(_0x3eac3a['length']){for(const _0x1a5ed1 of _0x3eac3a)_0x4f6fd7['removeMarker'](_0x1a5ed1['getFirstMarker']());_0x5eb8ab=!0x0;}}return _0x5eb8ab;}['assureChains'](){const _0x5abb06=this['editor']['plugins']['get']('TrackChangesEditing'),_0x257b07=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c7a85;const _0x3a1811=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a6f4c=>{if(_0x5a6f4c['data']['oldRange']||!_0x5a6f4c['data']['newRange'])return null;if(!_0x5a6f4c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e672b}=_0x5abb06['_splitMarkerName'](_0x5a6f4c['name']);if(!_0x5abb06['hasSuggestion'](_0x1e672b))return null;const _0x47a573=_0x5abb06['getSuggestion'](_0x1e672b);return _0x257b07['includes'](_0x47a573['data']['key']);})['map'](_0x36d4a8=>{const {id:_0x2a939d}=_0x5abb06['_splitMarkerName'](_0x36d4a8['name']),_0x3b9c75=_0x5abb06['getSuggestion'](_0x2a939d);return _0x1c7a85=_0x3b9c75['attributes']['groupId'],_0x3b9c75['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a1811['size'])return;const _0x5971ba=_0x5abb06['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12a6a4=>'attribute'==_0x12a6a4['type']&&_0x12a6a4['data']&&_0x257b07['includes'](_0x12a6a4['data']['key'])&&_0x12a6a4['attributes']['groupId']!=_0x1c7a85)['map'](_0x3121fd=>({'listItem':_0x3121fd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3121fd['attributes']['groupId']})),_0x1fef4a=new Set();for(const {groupId:_0x15bc06,listItem:_0x6c2e66}of _0x5971ba)_0x3a1811['has'](_0x6c2e66)&&_0x1fef4a['add'](_0x15bc06);for(const _0x172ed5 of _0x5abb06['getSuggestions']())_0x1fef4a['has'](_0x172ed5['attributes']['groupId'])&&_0x172ed5['setAttribute']('groupId',_0x1c7a85);}['_supportLegacySuggestions'](){const _0x3303c5=this['editor'],_0x733c0=_0x3303c5['locale'],_0x18ee1e=_0x3303c5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18ee1e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x54a5c8,_0x6e0c5b){const _0x3b7437=[];for(let _0x5726fe of _0x54a5c8)_0x5726fe['start']['nodeAfter']===_0x5726fe['end']['parent']&&(_0x5726fe=_0x3303c5['model']['createRange'](_0x3303c5['model']['createPositionAt'](_0x5726fe['start']['nodeAfter'],0x0))),_0x3b7437['push'](_0x5726fe);_0x3303c5['model']['change'](_0x5eb51e=>{const _0x535282=_0x3303c5['model']['document']['selection'],_0x244f20=Array['from'](_0x535282['getRanges']())['map'](_0x2210fe=>_0x4b2c9['fromRange'](_0x2210fe));_0x5eb51e['setSelection'](_0x3b7437),_0x3303c5['commands']['get'](_0x6e0c5b['commandName'])['refresh'](),_0x6e0c5b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3303c5['execute'](_0x6e0c5b['commandName'],..._0x6e0c5b['commandParams']),_0x5eb51e['setSelection'](_0x244f20);for(const _0xe4c25b of _0x244f20)_0xe4c25b['detach']();});}),_0x18ee1e['descriptionFactory']['registerElementLabel'](function(_0x3dd1a2){const _0x280a88=!_0x3303c5['model']['schema']['isObject'](_0x3dd1a2),_0x1a61a8=_0x3dd1a2['previousSibling'],_0x185dc8=_0x3dd1a2['nextSibling'],_0x25ffa6=_0x3dd1a2['getAttribute']('listItemId'),_0x3adf5b=!_0x1a61a8||_0x1a61a8['getAttribute']('listItemId')!==_0x25ffa6,_0x1c26cc=!_0x185dc8||_0x185dc8['getAttribute']('listItemId')!==_0x25ffa6;return _0x280a88&&Boolean(_0x25ffa6)&&_0x3adf5b&&_0x1c26cc;},_0x387b43=>o(_0x733c0,'ELEMENT_LIST_ITEM',_0x387b43));}['_registerLegacyDescription'](){const _0xf2466f=this['editor'],_0x1ed420=_0xf2466f['locale'];function _0x57ce8c(_0x2578c8){const _0x59502b=_0xf2466f['commands']['get']('bulletedList')['value'],_0x1fcbfd=_0xf2466f['commands']['get']('numberedList')['value'];return'numberedList'===_0x2578c8?_0x59502b:_0x1fcbfd;}_0xf2466f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xcab581){if('formatBlock'!=_0xcab581['type'])return;const {data:_0xadadd1}=_0xcab581;if(!_0xadadd1)return;let _0x5b94c2,_0x373af8,_0x56bd0b,_0x211f73;switch(_0xadadd1['commandName']){case'bulletedList':_0x56bd0b=_0xadadd1['commandParams'][0x0]['forceValue'],_0x211f73=_0x57ce8c(_0xadadd1['commandName']),_0x5b94c2=_0x56bd0b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x211f73&&_0xf2466f['config']['get']('list.multiBlock')||(_0x5b94c2='*Change\x20to:*\x20%0'),_0x373af8={'type':'format','content':o(_0x1ed420,_0x5b94c2,o(_0x1ed420,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x56bd0b=_0xadadd1['commandParams'][0x0]['forceValue'],_0x211f73=_0x57ce8c(_0xadadd1['commandName']),_0x5b94c2=_0x56bd0b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x211f73&&_0xf2466f['config']['get']('list.multiBlock')||(_0x5b94c2='*Change\x20to:*\x20%0'),_0x373af8={'type':'format','content':o(_0x1ed420,_0x5b94c2,o(_0x1ed420,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5b94c2='*Indent:*\x20%0',_0x373af8={'type':'format','content':o(_0x1ed420,_0x5b94c2,o(_0x1ed420,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5b94c2=function(_0x57bd63){const _0x1250e4=_0x57bd63['getFirstRange']();let _0x303092=_0x1250e4['start']['nodeAfter'];for(;_0x303092&&_0x1250e4['containsItem'](_0x303092);){if(_0x303092['getAttribute']('listIndent')>0x0)return!0x1;_0x303092=_0x303092['nextSibling'];}return!0x0;}(_0xcab581)?o(_0x1ed420,'*Format:*\x20remove\x20from\x20%0',o(_0x1ed420,function(_0x8bcc6a){return'ELEMENT_'+_0x8bcc6a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xcab581))):o(_0x1ed420,'*Outdent:*\x20%0',o(_0x1ed420,'ELEMENT_LIST_ITEM')),_0x373af8={'type':'format','content':_0x5b94c2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xadadd1['multipleBlocks']&&(_0x5b94c2='*Merge:*\x20%0',_0x373af8={'type':'deletion','content':o(_0x1ed420,_0x5b94c2,o(_0x1ed420,'ELEMENT_LIST_ITEM'))});}return _0x373af8;});}}function Te(_0x2eb6c7){let _0x3a0a8d=_0x2eb6c7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3a0a8d;){const _0x29b706=_0x3a0a8d['getAttribute']('listItemId');if(!_0x29b706)return!0x1;if(_0x29b706==_0x2eb6c7['data']['newValue'])return'newValue';if(_0x29b706==_0x2eb6c7['data']['oldValue'])return'oldValue';_0x3a0a8d=_0x3a0a8d['previousSibling'];}return!0x1;}class H extends _0x34b1ca{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x555b38=this['editor']['config']['get']('list.properties'),_0x1ddc56=this['editor']['plugins']['get']('TrackChangesEditing');_0x555b38['styles']&&_0x1ddc56['enableDefaultAttributesIntegration']('listStyle'),_0x555b38['reversed']&&_0x1ddc56['enableDefaultAttributesIntegration']('listReversed'),_0x555b38['startIndex']&&_0x1ddc56['enableDefaultAttributesIntegration']('listStart');const _0x1f9105={'type':'format','content':''};_0x1ddc56['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x18aa82=this['editor']['locale'];_0x1ddc56['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x18aa82,'FORMAT_LIST_REVERSED')),_0x1ddc56['descriptionFactory']['registerDescriptionCallback'](_0x3a6293=>{const {data:_0x12c249}=_0x3a6293;if(_0x12c249&&'listReversed'==_0x12c249['key'])return null==_0x12c249['newValue']||0x0==_0x12c249['newValue']&&null==_0x12c249['oldValue']?_0x1f9105:void 0x0;}),_0x1ddc56['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x18aa82,'FORMAT_LIST_START')),_0x1ddc56['descriptionFactory']['registerDescriptionCallback'](_0xcaba24=>{const {data:_0x4eed82}=_0xcaba24;if(_0x4eed82&&'listStart'==_0x4eed82['key'])return null==_0x4eed82['newValue']||0x1==_0x4eed82['newValue']&&null==_0x4eed82['oldValue']?_0x1f9105:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e38a3=>{if(_0x2e38a3['batch']['isUndo'])return!0x1;let _0x4a5446=!0x1;const _0x1fc514=_0x1ddc56['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e9af1=>{const _0x1f1322=_0x1ddc56['_getAttributeKey'](_0x3e9af1);return'listStart'==_0x1f1322||'listReversed'==_0x1f1322;});for(const _0xf9b286 of _0x1fc514){const _0x177db6=_0xf9b286['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x177db6||'customNumbered'==_0x177db6)continue;_0x1ddc56['_findSuggestions'](_0xf9b286['getFirstRange'](),'attribute')['find'](_0x1766c4=>'listType'==_0x1ddc56['_getAttributeKey'](_0x1766c4['suggestion']))||(_0x2e38a3['removeMarker'](_0xf9b286['getFirstMarker']()),_0x4a5446=!0x0);}return _0x4a5446;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xc334a5){const _0x26967d=this['editor']['locale'],{data:_0x39c338}=_0xc334a5,_0x559feb={'type':'format','content':''};if(!_0x39c338||'listStyle'!=_0x39c338['key'])return;if(!_0x39c338['oldValue'])return'default'==_0x39c338['newValue']?_0x559feb:{'type':'format','content':''+o(_0x26967d,'*Set\x20format:*\x20%0',o(_0x26967d,this['_getTranslationKeyForListStyle'](_0x39c338['newValue'])))};if(!_0x39c338['newValue']){if('default'==_0x39c338['oldValue'])return _0x559feb;let _0x469a6e=_0xc334a5['head'];for(;_0x469a6e;){if(_0x469a6e['data']&&'listType'==_0x469a6e['data']['key']&&_0x469a6e['data']['newValue'])return _0x559feb;_0x469a6e=_0x469a6e['next'];}return{'type':'format','content':''+o(_0x26967d,'*Remove\x20format:*\x20%0',o(_0x26967d,this['_getTranslationKeyForListStyle'](_0x39c338['oldValue'])))};}if('default'!=_0x39c338['newValue'])return{'type':'format','content':''+o(_0x26967d,'*Set\x20format:*\x20%0',o(_0x26967d,this['_getTranslationKeyForListStyle'](_0x39c338['newValue'])))};let _0x4c43fb=_0xc334a5['head'];for(;_0x4c43fb;){if(_0x4c43fb['data']&&'listType'==_0x4c43fb['data']['key']&&_0x4c43fb['data']['newValue']&&_0x4c43fb['data']['oldValue'])return _0x559feb;_0x4c43fb=_0x4c43fb['next'];}return{'type':'format','content':o(_0x26967d,'*Set\x20format:*\x20%0',o(_0x26967d,'ELEMENT_'+_0xc334a5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x50be04=this['editor'],_0x15ac8f=_0x50be04['locale'];_0x50be04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21b859=>{if('formatBlock'!=_0x21b859['type'])return;const {data:_0x3e31dd}=_0x21b859;if(!_0x3e31dd)return;let _0x1aa714,_0x4f2a66;switch(_0x3e31dd['commandName']){case'listStyle':_0x1aa714='*Change\x20to:*\x20%0',_0x4f2a66={'type':'format','content':o(_0x15ac8f,_0x1aa714,o(_0x15ac8f,this['_getTranslationKeyForListStyle'](_0x3e31dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1aa714=_0x3e31dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f2a66={'type':'format','content':o(_0x15ac8f,_0x1aa714)};break;case'listStart':_0x1aa714='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f2a66={'type':'format','content':o(_0x15ac8f,_0x1aa714,_0x3e31dd['commandParams'][0x0]['startIndex'])};}return _0x4f2a66;});}['_getTranslationKeyForListStyle'](_0x34e673){return'ELEMENT_'+function(_0x184532){if(ye['includes'](_0x184532))return'bulleted';if(Se['includes'](_0x184532))return'numbered';return null;}(_0x34e673)['toUpperCase']()+'_LIST_'+_0x34e673['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x34b1ca{['afterInit'](){const _0x4a2095=this['editor'];_0x4a2095['commands']['get']('emoji')&&_0x4a2095['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x34b1ca{static get['requires'](){return[_0x2ac467];}['init'](){const _0x4ce0b2=this['editor'],_0x2eb3fc=_0x4ce0b2['plugins']['get']('TrackChangesEditing'),_0x5d3ae6=_0x4ce0b2['commands']['get']('enter');_0x2eb3fc['enableCommand']('enter',()=>{_0x4ce0b2['model']['change'](_0x3184ed=>{const _0x2aaae2=_0x4ce0b2['model']['document']['selection'],_0x1f090c=_0x2aaae2['getFirstPosition'](),_0x459a56=_0x4b2c9['fromRange'](_0x2aaae2['getFirstRange']());if(_0x5d3ae6['enterBlock'](_0x3184ed)){const _0x859b0b=_0x4ce0b2['model']['createPositionAt'](_0x1f090c['parent']['nextSibling'],0x0),_0x53f02a=_0x3184ed['createRange'](_0x1f090c,_0x859b0b);_0x2eb3fc['markInsertion'](_0x53f02a);}else _0x3184ed['setSelection'](_0x3184ed['createRange'](_0x459a56['end']));_0x459a56['detach'](),_0x5d3ae6['fire']('afterExecute',{'writer':_0x3184ed});});});}}class Y extends _0x34b1ca{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48a059=this['editor']['plugins']['get']('TrackChangesEditing');_0x48a059['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48a059['enableCommand']('findNext'),_0x48a059['enableCommand']('findPrevious'),_0x48a059['enableCommand']('replace'),_0x48a059['enableCommand']('replaceAll');}['handleFindCommand'](_0x35e28c,_0x3d9241,_0x160ea4={}){const _0x41d906=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x35e28c(_0x38117a=>{let _0x5a49dd=('string'==typeof _0x3d9241?_0x41d906['findByTextCallback'](_0x3d9241,_0x160ea4):_0x3d9241)(_0x38117a);Array['isArray'](_0x5a49dd)&&(_0x5a49dd={'results':_0x5a49dd,'searchText':'string'==typeof _0x3d9241?_0x3d9241:''});const _0x24149d=_0x5a49dd['results']['filter'](_0x436acc=>!0x1===this['_isInDeletionRange'](_0x436acc,_0x38117a['item']));return{..._0x5a49dd,'results':_0x24149d};},_0x160ea4);}['_isInDeletionRange'](_0xa030ee,_0x39f28f){const _0x2ac1c6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39f28f,_0xa030ee['start']),this['editor']['model']['createPositionAt'](_0x39f28f,_0xa030ee['end']));for(const _0x553766 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2ac1c6['getIntersection'](_0x553766['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x34b1ca{['afterInit'](){const _0x585db0=this['editor']['locale'],_0x81200b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d8525,commandName:_0x518d99}of eo)this['editor']['plugins']['has'](_0x5d8525)&&_0x81200b['enableDefaultAttributesIntegration'](_0x518d99);_0x81200b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x585db0,'FORMAT_FONT_SIZE')),_0x81200b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x585db0,'FORMAT_FONT_FAMILY')),_0x81200b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x585db0,'FORMAT_FONT_COLOR')),_0x81200b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x585db0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a30dd=this['editor'],_0x1e7242=_0x1a30dd['locale'];_0x1a30dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357b6a=>{const _0xe77239=_0x1e7242['t'];if('formatInline'!=_0x357b6a['type'])return;const {data:_0x4e4792}=_0x357b6a;if(null!=_0x4e4792){if('fontSize'==_0x4e4792['commandName']){const _0x5032b6=_0x4e4792['commandParams'][0x0]['value'];if(_0x5032b6){const _0x1c059c=_0xe77239(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x307516=>_0x307516['model']==_0x5032b6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e7242,'*Set\x20font\x20size:*\x20%0',_0x1c059c)};}return{'type':'format','content':o(_0x1e7242,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e4792['commandName']){const _0x557872=_0x4e4792['commandParams'][0x0]['value'];return _0x557872?{'type':'format','content':o(_0x1e7242,'*Set\x20font\x20family:*\x20%0',_0x557872)}:{'type':'format','content':o(_0x1e7242,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e4792['commandName']){const _0x2ba51f=_0x4e4792['commandParams'][0x0]['value'];if(_0x2ba51f){const _0x59eaa5=_0x368de8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3bd5ed=>_0x3bd5ed['model']==_0x2ba51f);let _0x19e7c1=_0x2ba51f,_0xe8574='';return _0x59eaa5&&(_0x19e7c1=_0x59eaa5['label'],_0xe8574=_0xe77239(_0x19e7c1)['toLowerCase']()),{'type':'format','content':o(_0x1e7242,'*Set\x20font\x20color:*\x20%0',_0xe8574)['trim'](),'color':{'value':_0x2ba51f,'title':_0xe8574||_0x19e7c1}};}return{'type':'format','content':o(_0x1e7242,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e4792['commandName']){const _0xd5f348=_0x4e4792['commandParams'][0x0]['value'];if(_0xd5f348){const _0x2afada=_0x368de8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x40edc8=>_0x40edc8['model']==_0xd5f348);let _0x2c1f01=_0xd5f348,_0x376497='';return _0x2afada&&(_0x2c1f01=_0x2afada['label'],_0x376497=_0xe77239(_0x2c1f01)['toLowerCase']()),{'type':'format','content':o(_0x1e7242,'*Set\x20font\x20background\x20color:*\x20%0',_0x376497)['trim'](),'color':{'value':_0xd5f348,'title':_0x376497||_0x2c1f01}};}return{'type':'format','content':o(_0x1e7242,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x34b1ca{['afterInit'](){const {plugins:_0x4b6f1f}=this['editor'];_0x4b6f1f['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4b6f1f['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3b95f7,plugins:_0x498bd0,commands:_0xf6ba7}=this['editor'],_0x54fe0e=_0x498bd0['get']('TrackChangesEditing');_0xf6ba7['get']('footnotesStyle')&&_0x54fe0e['enableDefaultAttributesIntegration']('footnotesStyle'),_0xf6ba7['get']('footnotesStart')&&_0x54fe0e['enableDefaultAttributesIntegration']('footnotesStart'),_0x54fe0e['registerBlockAttribute']('footnotesListStyle'),_0x54fe0e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x3b95f7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x54fe0e['registerBlockAttribute']('footnotesListStart'),_0x54fe0e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x3b95f7,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xd0ad59=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x44f2bf,commands:_0x47716b}=this['editor'];_0x47716b['get']('insertFootnote')&&_0xd0ad59['enableCommand']('insertFootnote'),_0xd0ad59['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1c5756=>o(_0x44f2bf,'ELEMENT_FOOTNOTE_REF',_0x1c5756)),_0xd0ad59['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x522c04=>o(_0x44f2bf,'ELEMENT_FOOTNOTE_DEFINITION',_0x522c04)),_0xd0ad59['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x544d7b=>o(_0x44f2bf,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x544d7b));}}class nt extends _0x34b1ca{['afterInit'](){const _0x2e92a8=this['editor'],_0x2259a7=_0x2e92a8['plugins']['get']('TrackChangesEditing'),_0x15dbf9=_0x2e92a8['commands']['get']('copyFormat'),_0x12d6b2=_0x2e92a8['commands']['get']('pasteFormat');_0x15dbf9&&_0x12d6b2&&(_0x2259a7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2259a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x53627f=this['editor'],_0x3f2142=_0x53627f['locale'];_0x53627f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467e0b=>{if('formatBlock'!=_0x467e0b['type']&&'formatInline'!=_0x467e0b['type'])return;const {data:_0x4811f9}=_0x467e0b;if(_0x4811f9&&'pasteFormat'===_0x4811f9['commandName']){const _0x445228=[],_0x9e8a3=_0x4811f9['commandParams'][0x0];for(const [_0x31e89d,_0x26fae1]of Object['entries'](_0x9e8a3))_0x445228['push'](ro(_0x53627f,_0x31e89d,_0x26fae1));return _0x445228['length']?{'type':'format','content':o(_0x3f2142,'*Set\x20format\x20to:*\x20%0',_0x445228['join'](',\x20'))}:{'type':'format','content':o(_0x3f2142,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1d2e0b,_0x51117f,_0x17265e){const _0x720249=_0x1d2e0b['locale']['t'],_0x20d793=_0x51117f['split'](/(?=[A-Z])/)['join']('\x20'),_0x1da9a7=_0x720249(_0x20d793['charAt'](0x0)['toUpperCase']()+_0x20d793['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x17265e)return _0x1da9a7;if('fontColor'===_0x51117f||'fontBackgroundColor'===_0x51117f){const _0x213b14=_0x368de8(_0x1d2e0b['config']['get']('fontColor.colors'))['find'](_0x33c5ca=>_0x33c5ca['model']==_0x17265e);return _0x1da9a7+'\x20('+(_0x213b14?_0x720249(_0x213b14['label'])['toLowerCase']():_0x17265e)+')';}if('fontSize'===_0x51117f&&isNaN(parseFloat(_0x17265e))){const _0x22945c=_0x1d2e0b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d2e0b['config']['get']('fontSize.options'))['find'](_0x4aaa6b=>_0x4aaa6b['model']==_0x17265e);return _0x1da9a7+'\x20('+(_0x22945c?_0x720249(_0x22945c['title'])['toLowerCase']():_0x17265e)+')';}return _0x1da9a7+'\x20('+_0x17265e+')';}class it extends _0x34b1ca{['_headingOptions'];['afterInit'](){const _0x50c514=this['editor'];if(!_0x50c514['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x50c514['config']['get']('heading.options');const _0x3b7100=_0x50c514['locale'],_0xb0832f=_0x50c514['plugins']['get']('TrackChangesEditing');_0xb0832f['enableDefaultAttributesIntegration']('heading');for(const _0x111149 of this['_headingOptions'])'paragraph'!=_0x111149['model']&&_0xb0832f['descriptionFactory']['registerElementLabel'](_0x111149['model'],_0x1d0d56=>{const _0x3b224d=this['_getHeadingLevel'](_0x111149['model']);return null!==_0x3b224d?_0x10fc82(_0x1d0d56,_0x3b224d):_0x1d2845(_0x1d0d56,_0x111149['title']);});function _0x10fc82(_0x3782de,_0x4fc1dc){return o(_0x3b7100,'ELEMENT_HEADING',[_0x3782de,_0x4fc1dc]);}function _0x1d2845(_0x44e601,_0x141c3a){return o(_0x3b7100,'ELEMENT_HEADING_CUSTOM',[_0x44e601,_0x141c3a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e44b7=this['editor'],_0x297176=_0x4e44b7['locale'];function _0x457d79(_0x436978,_0xe46b88){return o(_0x297176,'ELEMENT_HEADING_CUSTOM',[_0x436978,_0xe46b88]);}_0x4e44b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa580=>{if('formatBlock'!=_0x1aa580['type'])return;const {data:_0x42e1e6}=_0x1aa580;if(_0x42e1e6&&'heading'==_0x42e1e6['commandName']){const _0x1f1506=_0x42e1e6['commandParams'][0x0]['value'],_0x36eeb2=this['_getHeadingLevel'](_0x1f1506);if(null!==_0x36eeb2)return{'type':'format','content':o(_0x297176,'*Change\x20to:*\x20%0',(_0x5be524=0x1,_0x2dd4e3=_0x36eeb2,o(_0x297176,'ELEMENT_HEADING',[_0x5be524,_0x2dd4e3])))};const _0x4036cb=this['_headingOptions']['find'](_0x57dd66=>_0x57dd66['model']===_0x1f1506)['title'];return{'type':'format','content':o(_0x297176,'*Change\x20to:*\x20%0',_0x457d79(0x1,_0x4036cb))};}var _0x5be524,_0x2dd4e3;});}['_getHeadingLevel'](_0x39f87b){const _0x1f3a59=_0x39f87b['match'](/^heading(\d+)/);if(_0x1f3a59)return _0x1f3a59[0x1];const _0x34def0=this['_headingOptions']?.['find'](_0x36cdf4=>_0x36cdf4['model']==_0x39f87b);if(_0x34def0&&_0x34def0['view']){const _0x2ae948=_0x34def0['view'],_0x1310e0=(_0x2ae948['name']??_0x2ae948)['match'](/^h(\d+)/);if(_0x1310e0)return _0x1310e0[0x1];}return null;}}class et extends _0x34b1ca{['afterInit'](){const _0x3faa7c=this['editor'];if(!_0x3faa7c['plugins']['has']('HighlightEditing'))return;const _0x320bc3=_0x3faa7c['plugins']['get']('TrackChangesEditing'),_0x353c48=_0x3faa7c['locale'];_0x320bc3['enableDefaultAttributesIntegration']('highlight'),_0x320bc3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x353c48,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56db61=this['editor'],_0xbfca6=_0x56db61['locale'];_0x56db61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x165c23=>{if('formatInline'!=_0x165c23['type'])return;const {data:_0x4a5141}=_0x165c23;if(_0x4a5141&&'highlight'==_0x4a5141['commandName']){const _0x17fb91=_0xbfca6['t'],_0x9d134=_0x4a5141['commandParams'][0x0]['value'];if(_0x9d134){const _0x2a75b0=_0x56db61['config']['get']('highlight.options')['find'](_0x581e3e=>_0x581e3e['model']==_0x9d134),_0x43e861=_0x17fb91(_0x2a75b0['title'])['toLowerCase']();return{'type':'format','content':o(_0xbfca6,'*Set\x20highlight:*\x20%0',_0x43e861),'color':{'value':_0x2a75b0['color'],'title':_0x2a75b0['title']}};}return{'type':'format','content':o(_0xbfca6,'*Remove\x20highlight*',o(_0xbfca6,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x34b1ca{['afterInit'](){const _0x50f8bd=this['editor'];if(!_0x50f8bd['plugins']['has']('HorizontalLineEditing'))return;_0x50f8bd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5736dd=_0x50f8bd['plugins']['get']('TrackChangesEditing'),_0x151369=_0x50f8bd['locale'];_0x5736dd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x452c31=>o(_0x151369,'ELEMENT_HORIZONTAL_LINE',_0x452c31));}}class ot extends _0x34b1ca{['afterInit'](){const _0x4d6b5e=this['editor'];if(!_0x4d6b5e['plugins']['has']('HtmlEmbed'))return;const _0x47b92d=_0x4d6b5e['plugins']['get']('TrackChangesEditing'),_0x55ee99=_0x4d6b5e['locale'];_0x47b92d['descriptionFactory']['registerElementLabel']('rawHtml',_0x43cc82=>o(_0x55ee99,'ELEMENT_HTML_EMBED',_0x43cc82)),_0x47b92d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47b92d['descriptionFactory']['registerDescriptionCallback'](_0x30bd06=>{if('attribute'!=_0x30bd06['type'])return;const {data:_0x53d309}=_0x30bd06;if(_0x53d309&&'value'==_0x53d309['key']&&_0x30bd06['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x311f63=o(_0x55ee99,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x55ee99,'*Change\x20%0\x20content*',_0x311f63)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe34ab9=this['editor'],_0x299695=_0xe34ab9['locale'];_0xe34ab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27c3de=>{if('formatBlock'!=_0x27c3de['type'])return;const {data:_0xdd87ec}=_0x27c3de;if(_0xdd87ec&&'htmlEmbed'==_0xdd87ec['commandName']){const _0x4e18e9=o(_0x299695,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x299695,'*Change\x20%0\x20content*',_0x4e18e9)};}});}}class rt extends _0x34b1ca{['afterInit'](){const _0x433b20=this['editor'];if(!_0x433b20['plugins']['has']('ImageEditing'))return;const _0xead81c=_0x433b20['plugins']['get']('TrackChangesEditing'),_0x29a976=_0x433b20['plugins']['get']('ImageUtils'),_0xa2dda6=_0x433b20['locale'];_0xead81c['enableCommand']('insertImage'),_0xead81c['descriptionFactory']['registerElementLabel']('imageBlock',_0x2da700=>o(_0xa2dda6,'ELEMENT_IMAGE',_0x2da700)),_0xead81c['descriptionFactory']['registerElementLabel']('imageInline',_0x23573c=>o(_0xa2dda6,'ELEMENT_INLINE_IMAGE',_0x23573c)),_0xead81c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xa2dda6,'ELEMENT_CAPTION')),_0x433b20['plugins']['has']('ImageUploadEditing')&&_0xead81c['enableCommand']('uploadImage'),_0x433b20['plugins']['has']('ImageBlockEditing')&&_0x433b20['plugins']['has']('ImageInlineEditing')&&(_0xead81c['enableCommand']('imageTypeInline',(_0x5e607d,_0x1d8288)=>{const _0xf650e9=_0x29a976['getClosestSelectedImageElement'](_0x433b20['model']['document']['selection']);_0x433b20['model']['change'](()=>{_0xead81c['markBlockFormat'](_0xf650e9,{'commandName':'imageTypeInline','commandParams':[_0x1d8288]},[],'convertBlockImageToInline');});}),_0xead81c['enableCommand']('imageTypeBlock',(_0x488083,_0x2f186c)=>{_0x433b20['model']['change'](_0x47df2f=>{let _0x2cd045=_0x29a976['getClosestSelectedImageElement'](_0x433b20['model']['document']['selection']),_0x336233=_0x47df2f['createRangeOn'](_0x2cd045);const _0x5463c2=_0x5a3ec7['fromPosition'](_0x336233['start'],'toPrevious'),_0x209c87=_0x5a3ec7['fromPosition'](_0x336233['end'],'toNext');_0xead81c['forceDefaultExecution'](()=>_0x488083(_0x2f186c)),_0x2cd045=_0x29a976['getClosestSelectedImageElement'](_0x433b20['model']['document']['selection']),_0x336233=_0x47df2f['createRangeOn'](_0x2cd045);const _0x2ec19e=_0x47df2f['createRange'](_0x5463c2,_0x209c87);_0x5463c2['detach'](),_0x209c87['detach'](),_0xead81c['markBlockFormat'](_0x2cd045,{'commandName':'imageTypeInline','commandParams':[_0x2f186c]},[],'convertInlineImageToBlock'),_0x2ec19e['start']['isBefore'](_0x336233['start'])&&_0xead81c['markInsertion'](_0x47df2f['createRange'](_0x2ec19e['start'],_0x336233['start']),'convertInlineImageToBlock'),_0x336233['end']['isBefore'](_0x2ec19e['end'])&&_0xead81c['markInsertion'](_0x47df2f['createRange'](_0x336233['end'],_0x2ec19e['end']),'convertInlineImageToBlock');});}),_0xead81c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xead81c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xead81c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xead81c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xead81c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xead81c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d9b01])=>{const _0x1ee722=_0xead81c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x195a9e=_0x5d9b01['start'],_0x2edade=_0x5d9b01['end'];const _0x427bca=_0x433b20['model']['schema']['getNearestSelectionRange'](_0x195a9e,'backward'),_0x104d9b=_0x433b20['model']['schema']['getNearestSelectionRange'](_0x2edade,'forward');_0x427bca['isCollapsed']&&(_0x195a9e=_0x427bca['start']),_0x104d9b['isCollapsed']&&(_0x2edade=_0x104d9b['end']),_0x1ee722([_0x433b20['model']['createRange'](_0x195a9e,_0x2edade)]);}),_0xead81c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x257350),_0xead81c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x257350)),_0x433b20['plugins']['has']('ImageCaptionEditing')&&(_0xead81c['enableCommand']('toggleImageCaption',(_0x2e4a10,_0x1b8dd2)=>{const _0x167af9=_0x433b20['plugins']['get']('ImageCaptionUtils');let _0x3d3019=_0x29a976['getClosestSelectedImageElement'](_0x433b20['model']['document']['selection']),_0x412013=_0x167af9['getCaptionFromImageModelElement'](_0x3d3019);_0x433b20['model']['change'](()=>{if(_0x412013)return void _0xead81c['markDeletion'](_0x433b20['model']['createRangeOn'](_0x412013));const _0x202e58=_0x29a976['isBlockImage'](_0x3d3019);_0x2e4a10(_0x1b8dd2),_0x3d3019=_0x29a976['getClosestSelectedImageElement'](_0x433b20['model']['document']['selection']),_0x412013=_0x167af9['getCaptionFromImageModelElement'](_0x3d3019),_0xead81c['markInsertion'](_0x433b20['model']['createRangeOn'](_0x412013),_0x202e58?null:'imageCaption');});}),_0xead81c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x257350));const _0x84f199=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d7476(_0x39b91c,_0x311429){const _0x3fe3ca=_0x84f199['findIndex'](({type:_0x11e3ad,subType:_0x571d69})=>_0x39b91c['type']==_0x11e3ad&&_0x39b91c['subType']==_0x571d69),_0x68851d=_0x84f199['findIndex'](({type:_0x1ad90c,subType:_0x581aae})=>_0x311429['type']==_0x1ad90c&&_0x311429['subType']==_0x581aae);if(_0x3fe3ca<0x0||_0x68851d<0x0)return!0x1;const _0x169049=_0x39b91c['getFirstRange'](),_0x312319=_0x311429['getFirstRange']();if((0x0==_0x3fe3ca||0x1==_0x3fe3ca)&&0x2==_0x68851d&&_0x169049['isIntersecting'](_0x312319))return!0x0;if(0x2==_0x3fe3ca&&0x3==_0x68851d){const _0x1685f7=_0xead81c['_findSuggestions'](_0x169049,'insertion')['filter'](({suggestion:_0x481520,meta:_0x10c7d9})=>_0x10c7d9['isOwn']&&'convertInlineImageToBlock'==_0x481520['subType']);if(_0x1685f7['length']>0x1&&_0x312319['end']['isEqual'](_0x169049['start']))return!0x0;if(0x1==_0x1685f7['length']&&(_0x169049['start']['isEqual'](_0x312319['end'])||_0x169049['end']['isEqual'](_0x312319['start'])))return!0x0;}if(0x3==_0x3fe3ca&&0x3==_0x68851d&&_0x169049['start']['isBefore'](_0x312319['start'])){const _0x340558=_0x169049['end']['nodeAfter'],_0x138498=_0x312319['start']['nodeBefore'];return _0x29a976['isBlockImage'](_0x340558)&&_0x340558===_0x138498;}return!0x1;}function _0x257350(_0x643234,_0x22610d){return _0x3d7476(_0x643234,_0x22610d)?[_0x643234,_0x22610d]:_0x3d7476(_0x22610d,_0x643234)?[_0x22610d,_0x643234]:null;}_0x433b20['plugins']['has']('ImageResize')&&(_0xead81c['enableDefaultAttributesIntegration']('resizeImage'),_0xead81c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xa2dda6,'FORMAT_IMAGE_SIZE'))),_0x433b20['plugins']['has']('ImageTextAlternativeEditing')&&_0xead81c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x433b20['plugins']['has']('PictureEditing')&&_0xead81c['descriptionFactory']['registerDescriptionCallback'](_0x34f305=>{if('attribute'!=_0x34f305['type'])return;const {data:_0x127c69}=_0x34f305;return _0x127c69&&'sources'==_0x127c69['key']?{'type':'format','content':''}:void 0x0;}),_0x433b20['plugins']['has']('ImageSizeAttributes')&&_0xead81c['descriptionFactory']['registerDescriptionCallback'](_0x2e0329=>{if('attribute'!=_0x2e0329['type'])return;const {data:_0x35420f}=_0x2e0329;return!_0x35420f||'width'!=_0x35420f['key']&&'height'!=_0x35420f['key']?void 0x0:{'type':'format','content':''};}),_0xead81c['descriptionFactory']['registerDescriptionCallback'](_0x524b64=>{if(!!_0x84f199['find'](({type:_0x183026,subType:_0x35aae5})=>_0x524b64['type']==_0x183026&&_0x524b64['subType']==_0x35aae5))return _0x524b64['previous']?{}:void 0x0;}),_0xead81c['descriptionFactory']['registerDescriptionCallback'](_0x404b85=>{if('insertion'==_0x404b85['type']||'deletion'==_0x404b85['type']){const _0x2c22b0=_0x404b85['getContainedElement']();if(_0x2c22b0&&_0x2c22b0['is']('element','caption'))return{'type':'insertion'==_0x404b85['type']?'addObject':'removeObject','element':_0x2c22b0,'quantity':0x1};}}),_0xead81c['descriptionFactory']['registerDescriptionCallback'](_0x511019=>'formatBlock'==_0x511019['type']&&'convertInlineImageToBlock'==_0x511019['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x511019['type']&&'convertBlockImageToInline'==_0x511019['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xead81c['descriptionFactory']['registerDescriptionCallback'](_0x1cabae=>{if('attribute'!=_0x1cabae['type'])return;const {data:_0xf0918e}=_0x1cabae;if(!_0xf0918e||'alt'!=_0xf0918e['key'])return;const _0x4a7419=_0xf0918e['newValue'];return _0x4a7419?{'type':'format','content':o(_0xa2dda6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a7419+'\x22')}:{'type':'format','content':o(_0xa2dda6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34f1b7=this['editor'],_0x299686=_0x34f1b7['locale'];_0x34f1b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22429b=>{if('formatBlock'!=_0x22429b['type']&&'formatInline'!=_0x22429b['type'])return;const {data:_0x19cc77}=_0x22429b;if(_0x19cc77){if('imageTextAlternative'==_0x19cc77['commandName']){const _0x48cae8=_0x19cc77['commandParams'][0x0]['newValue'];return _0x48cae8?{'type':'format','content':o(_0x299686,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48cae8+'\x22')}:{'type':'format','content':o(_0x299686,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x19cc77['commandName']){const _0x1c77e8=_0x19cc77['commandParams'][0x0]['width'];return _0x1c77e8?{'type':'format','content':o(_0x299686,'*Set\x20image\x20width:*\x20%0',_0x1c77e8)}:{'type':'format','content':o(_0x299686,'*Reset\x20image\x20width*')};}}});}}class at extends _0x34b1ca{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x385441=this['editor']['locale'],_0x29cce0=this['editor']['plugins']['get']('TrackChangesEditing');_0x29cce0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29cce0['descriptionFactory']['registerDescriptionCallback'](_0x681240=>{if('attribute'!=_0x681240['type'])return;const {data:_0xe4d68d}=_0x681240;return _0xe4d68d&&'src'==_0xe4d68d['key']?_0xe4d68d['newValue']&&_0xe4d68d['oldValue']?{'type':'format','content':o(_0x385441,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e6cca=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e6cca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1e6cca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e6cca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1e6cca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x176ebc=this['editor'],_0x27b3ca=_0x176ebc['locale'];_0x176ebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x113fec=>{if('formatBlock'!=_0x113fec['type']&&'formatInline'!=_0x113fec['type'])return;const {data:_0x41ab1d}=_0x113fec;if(!_0x41ab1d||'replaceImageSource'!=_0x41ab1d['commandName'])return;return{'type':'format','content':o(_0x27b3ca,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x34b1ca{['afterInit'](){const _0x2ce321=this['editor'];if(!_0x2ce321['plugins']['has']('ImageStyleEditing'))return;const _0x44f8ce=_0x2ce321['plugins']['get']('TrackChangesEditing'),_0x209062=_0x2ce321['plugins']['get']('ImageUtils'),_0xd00f8c={};_0x44f8ce['enableCommand']('imageStyle',(_0x436557,_0x2655c6)=>{const _0x3256ab=_0x2ce321['plugins']['get']('Users')['me'],_0x5c17cd=_0x2ce321['commands']['get']('imageStyle');let _0x21a5b3=_0x209062['getClosestSelectedImageElement'](_0x2ce321['model']['document']['selection']),_0x579887=_0x2ce321['model']['createRangeOn'](_0x21a5b3),_0x22a5b7=_0x5c17cd['value'];if(_0x22a5b7==_0x2655c6['value'])return;const _0xb51483={'commandName':'imageStyle','commandParams':[_0x2655c6],'formatGroupId':_0x632a3()};_0x2ce321['model']['change'](()=>{if(_0x44f8ce['getSuggestions']()['filter'](_0x5a56ec=>_0x5a56ec['isInContent']&&_0x3256ab==_0x5a56ec['author']&&('formatBlock'==_0x5a56ec['type']||'formatInline'==_0x5a56ec['type'])&&('imageStylePreApply'==_0x5a56ec['subType']||'imageStylePostApply'==_0x5a56ec['subType'])&&_0x5a56ec['getFirstRange']()['isEqual'](_0x579887))['forEach'](_0x1e66f9=>_0x44f8ce['discardSuggestion'](_0x1e66f9['head'])),_0x21a5b3=_0x209062['getClosestSelectedImageElement'](_0x2ce321['model']['document']['selection']),_0x579887=_0x2ce321['model']['createRangeOn'](_0x21a5b3),_0x5c17cd['refresh'](),_0x2ce321['commands']['get']('imageTypeInline')['refresh'](),_0x2ce321['commands']['get']('imageTypeBlock')['refresh'](),_0x22a5b7=_0x5c17cd['value'],_0x22a5b7!=_0x2655c6['value'])return _0x209062['isInlineImage'](_0x21a5b3)&&_0x5c17cd['shouldConvertImageType'](_0x2655c6['value'],_0x21a5b3)?(_0x436557({..._0x2655c6,'setImageSizes':!0x1}),_0x21a5b3=_0x209062['getClosestSelectedImageElement'](_0x2ce321['model']['document']['selection']),void _0x44f8ce['markBlockFormat'](_0x21a5b3,{..._0xb51483,'commandReversedParams':[{'value':_0x22a5b7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x209062['isBlockImage'](_0x21a5b3)?_0x44f8ce['markBlockFormat'](_0x21a5b3,_0xb51483,[],'imageStylePostApply'):_0x44f8ce['markInlineFormat'](_0x579887,_0xb51483,'imageStylePostApply'));});});for(const _0x4e2d77 of _0x2ce321['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xd00f8c[_0x4e2d77['name']]=_0x4e2d77['title']['toLowerCase']();_0x44f8ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x44f8ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x44f8ce['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x44f8ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44c565])=>{_0x209062['setImageNaturalSizeAttributes'](_0x44c565['getContainedElement']());}),_0x44f8ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x39e9b9,_0x180829)=>{_0x44f8ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x39e9b9,{'commandName':_0x180829['commandName'],'commandParams':_0x180829['commandReversedParams']});}),_0x44f8ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a7c70,_0x310470){if(_0x11e8ce(_0x2a7c70,_0x310470))return[_0x2a7c70,_0x310470];if(_0x11e8ce(_0x310470,_0x2a7c70))return[_0x310470,_0x2a7c70];return null;});const _0x47d205=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11e8ce(_0xe5045b,_0x330bce){const _0x461817=_0x47d205['findIndex'](({type:_0x43166f,subType:_0x52c115})=>_0xe5045b['type']==_0x43166f&&_0xe5045b['subType']==_0x52c115),_0x4b3604=_0x47d205['findIndex'](({type:_0x13e6a5,subType:_0x842bdb})=>_0x330bce['type']==_0x13e6a5&&_0x330bce['subType']==_0x842bdb);if(_0x461817<0x0||_0x4b3604<0x0)return!0x1;const _0x487a6a=_0xe5045b['getFirstRange'](),_0xd1864b=_0x330bce['getFirstRange']();if((0x0==_0x461817||0x1==_0x461817)&&0x2==_0x4b3604&&_0x487a6a['isIntersecting'](_0xd1864b))return!0x0;if(0x2==_0x461817&&0x3==_0x4b3604){const _0x2b9d59=_0x44f8ce['_findSuggestions'](_0x487a6a,'insertion')['filter'](({suggestion:_0x487d3e,meta:_0x197f85})=>_0x197f85['isOwn']&&'convertInlineImageToBlock'==_0x487d3e['subType']);if(_0x2b9d59['length']>0x1&&_0xd1864b['end']['isEqual'](_0x487a6a['start']))return!0x0;if(0x1==_0x2b9d59['length']&&(_0x487a6a['start']['isEqual'](_0xd1864b['end'])||_0x487a6a['end']['isEqual'](_0xd1864b['start'])))return!0x0;}if(0x3==_0x461817&&0x3==_0x4b3604&&_0x487a6a['start']['isBefore'](_0xd1864b['start'])){const _0x259a76=_0x487a6a['end']['nodeAfter'],_0x2b8877=_0xd1864b['start']['nodeBefore'];return _0x209062['isBlockImage'](_0x259a76)&&_0x259a76===_0x2b8877;}return!0x1;}_0x2ce321['model']['document']['registerPostFixer'](()=>{let _0x135c01=!0x1;const _0x10425e=Array['from'](_0x2ce321['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ebea1,data:_0xab6b45}of _0x10425e){const {group:_0x3ceb0b,type:_0x183b4d,subType:_0x35be4c,id:_0x15422a}=_0x44f8ce['_splitMarkerName'](_0x2ebea1);if('suggestion'==_0x3ceb0b&&_0x44f8ce['hasSuggestion'](_0x15422a)){if('formatBlock'==_0x183b4d&&('imageStylePreApply'==_0x35be4c||'imageStylePostApply'==_0x35be4c)){const _0x232cfc=_0x44f8ce['getSuggestion'](_0x15422a);if(_0xab6b45['newRange']){const _0x55519f=_0x232cfc['getFirstRange']()['getContainedElement']();if(_0x209062['isBlockImage'](_0x55519f))continue;_0x44f8ce['discardSuggestion'](_0x232cfc),_0x135c01=!0x0;}}if('insertion'==_0x183b4d&&'imageCaption'==_0x35be4c&&!_0xab6b45['newRange']){const _0x15d258=_0x44f8ce['getSuggestion'](_0x15422a);_0x15d258['next']&&_0x15d258['next']['isInContent']&&(_0x44f8ce['discardSuggestion'](_0x15d258['next']),_0x135c01=!0x0);}}}return _0x135c01;}),this['_registerLegacyDescription'](_0xd00f8c);}['_registerLegacyDescription'](_0x231a74){const _0x53a08a=this['editor'],_0x36989d=_0x53a08a['locale'];_0x53a08a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb5b4=>{if('formatBlock'!=_0x2cb5b4['type']&&'formatInline'!=_0x2cb5b4['type'])return;const {data:_0x52a4a1}=_0x2cb5b4;if(!_0x52a4a1||'imageStyle'!=_0x52a4a1['commandName'])return;const _0x16d176=_0x52a4a1['commandParams'][0x0]['value'];return _0x322c33('side'===_0x16d176?o(_0x36989d,'FORMAT_SIDE_IMAGE'):_0x231a74[_0x16d176]||_0x16d176);function _0x322c33(_0x413edd){return{'type':'format','content':o(_0x36989d,'*Format:*\x20%0',_0x413edd)};}});}}class ut extends _0x34b1ca{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x26ed0a){super(_0x26ed0a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5f3124=this['editor'],_0x13ac7d=_0x5f3124['commands']['get']('importWord'),_0x41c947=_0x5f3124['commands']['get']('trackChanges');_0x13ac7d&&(_0x13ac7d['on']('execute',(_0x310432,[,_0x2f24c8])=>{this['_trackChangesValueDuringImport']=_0x41c947['value'],_0x2f24c8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13ac7d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13ac7d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x41c947['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5f3124['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x113dae,_0x4a796e){const {suggestions:_0x3e38f8}=_0x4a796e,_0xaffc4c=this['editor']['commands']['get']('trackChanges'),_0x3c9df3=_0xaffc4c['value'];this['_trackChangesValueDuringImport']!==_0x3c9df3&&(_0xaffc4c['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e38f8&&_0x3e38f8['forEach'](({id:_0x3b011a,type:_0x257c23,author:_0x40d19f,created_at:_0x5a3cd4})=>{const _0x40063e={'id':_0x3b011a,'type':_0x257c23,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x40d19f,'createdAt':_0x5a3cd4?new Date(_0x5a3cd4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x40063e);});}}class ft extends _0x34b1ca{['afterInit'](){const _0x1253b2=this['editor'],_0x452330=_0x1253b2['plugins']['get']('TrackChangesEditing');if(_0x1253b2['plugins']['has']('IndentEditing')&&(_0x452330['enableCommand']('indent'),_0x452330['enableCommand']('outdent')),_0x1253b2['plugins']['has']('IndentBlock')){for(const _0x34924c of['indentBlock','outdentBlock'])_0x452330['enableDefaultAttributesIntegration'](_0x34924c);}const _0x4da0ed=_0x1253b2['locale'];_0x452330['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4da0ed,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29c444=this['editor'],_0x5f4ef8=_0x29c444['locale'],_0x211432=_0x29c444['plugins']['get']('TrackChangesEditing');_0x211432['descriptionFactory']['registerDescriptionCallback'](_0x4efab0=>{if('formatBlock'!=_0x4efab0['type'])return;const {data:_0x4c55b7}=_0x4efab0;if(!_0x4c55b7)return;if('indentBlock'!=_0x4c55b7['commandName']&&'outdentBlock'!=_0x4c55b7['commandName'])return;const _0x2f3ec9=_0x4efab0['getItems']()[0x0],_0x32e344=_0x211432['descriptionFactory']['getItemLabel'](_0x2f3ec9);return'indentBlock'==_0x4c55b7['commandName']?{'type':'format','content':o(_0x5f4ef8,'*Indent:*\x20%0',_0x32e344)}:'outdentBlock'==_0x4c55b7['commandName']?{'type':'format','content':o(_0x5f4ef8,'*Outdent:*\x20%0',_0x32e344)}:void 0x0;});}}class ht extends _0x34b1ca{static get['requires'](){return[_0x53688b];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x34b1ca{['afterInit'](){const _0x4cb88f=this['editor'];if(!_0x4cb88f['plugins']['has']('LinkEditing'))return;const _0x5909a3=_0x4cb88f['plugins']['get']('TrackChangesEditing'),_0x46a80e=_0x4cb88f['commands']['get']('link');_0x5909a3['enableDefaultAttributesIntegration']('link'),_0x5909a3['enableDefaultAttributesIntegration']('unlink');for(const _0x10bf80 of _0x46a80e['manualDecorators'])_0x5909a3['descriptionFactory']['registerAttributeLabel'](_0x10bf80['id'],'link\x20('+_0x10bf80['label']['toLowerCase']()+')');_0x5909a3['descriptionFactory']['registerDescriptionCallback'](_0x1ef801=>{if('attribute'!=_0x1ef801['type'])return;const {data:_0x2d01ab}=_0x1ef801;if(!_0x2d01ab||'linkHref'!=_0x2d01ab['key'])return;const _0x149020=_0x2d01ab['newValue'],_0x5ae07f=_0x4cb88f['locale'];return{'type':'format','content':null==_0x149020?o(_0x5ae07f,'*Remove\x20link*'):o(_0x5ae07f,'*Set\x20link:*\x20%0','\x22'+_0x149020+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e3bc=this['editor'],_0x3f6f3b=_0x53e3bc['locale'];_0x53e3bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40666c=>{if('formatInline'!=_0x40666c['type'])return;const {data:_0x5c91c6}=_0x40666c;if(_0x5c91c6){if('link'==_0x5c91c6['commandName']){const _0x2a5211=_0x5c91c6['commandParams'][0x0];return{'type':'format','content':o(_0x3f6f3b,'*Set\x20link:*\x20%0','\x22'+_0x2a5211+'\x22')};}return'unlink'==_0x5c91c6['commandName']?{'type':'format','content':o(_0x3f6f3b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x34b1ca{['afterInit'](){const _0x4f2980=this['editor'],_0x4a8464=_0x4f2980['locale'];if(!_0x4f2980['plugins']['has']('LegacyListEditing'))return;const _0x12a46a=_0x4f2980['plugins']['get']('TrackChangesEditing'),_0x275e55=_0x4f2980['plugins']['has']('LegacyTodoListEditing');function _0x190d63(_0x11fad9){return()=>{const _0x253f23=_0x4f2980['model']['document']['selection'],_0x27fba1=_0x4f2980['commands']['get'](_0x11fad9);if(_0x27fba1['value'])return void _0x4f2980['execute']('paragraph',{});const _0x4ca987=_0x11fad9['slice'](0x0,-0x4),_0x3f0ca3=function(_0x28abed,_0x4b7c74,_0x1af788){let _0xbe8ca9=Array['from'](_0x28abed)['filter'](_0x46f36=>function(_0xd877c,_0x1926cf){return _0x1926cf['checkChild'](_0xd877c['parent'],'listItem')&&!_0x1926cf['isObject'](_0xd877c);}(_0x46f36,_0x1af788));_0xbe8ca9=_0xbe8ca9['filter'](_0x59f216=>!_0x59f216['is']('element','listItem')||_0x59f216['getAttribute']('listType')!=_0x4b7c74);const _0x445e9d=new Set();for(const _0x120af9 of _0xbe8ca9)_0x120af9['is']('element','listItem')?_0x445e9d['add'](Le(_0x120af9)):_0x445e9d['add'](_0x120af9);return Array['from'](_0x445e9d);}(_0x253f23['getSelectedBlocks'](),_0x4ca987,_0x4f2980['model']['schema']);_0x4f2980['model']['change'](()=>{for(const _0xfdd9e0 of _0x3f0ca3)_0x12a46a['markBlockFormat'](_0xfdd9e0,{'commandName':_0x11fad9,'commandParams':[{'forceValue':!_0x27fba1['value']}],'formatGroupId':'blockName'},Ee(_0xfdd9e0));});};}function _0x525675(_0x1907fe){return()=>{const _0x1a9569=function(_0x32a804){let _0xb45ded=Array['from'](_0x32a804);const _0x37d7ee=_0xb45ded['findIndex'](_0x16087a=>'listItem'!=_0x16087a['name']);return _0x37d7ee>-0x1&&(_0xb45ded=_0xb45ded['slice'](0x0,_0x37d7ee)),_0xb45ded;}(_0x4f2980['model']['document']['selection']['getSelectedBlocks']()),_0xfb377d=_0x4f2980['model']['createRange'](_0x4f2980['model']['createPositionAt'](_0x1a9569[0x0],'before'),_0x4f2980['model']['createPositionAt'](_0x1a9569[_0x1a9569['length']-0x1],'end'));_0x4f2980['model']['change'](()=>{_0x12a46a['markBlockFormat'](_0xfb377d,{'commandName':_0x1907fe,'commandParams':[],'formatGroupId':'listIndent'},function(_0x15d7a4){const _0x52d650=new Set();for(const _0x51e7bd of _0x15d7a4){let _0x5e5fdb=_0x51e7bd['nextSibling'];for(;_0x5e5fdb&&_0x5e5fdb['getAttribute']('listIndent')>_0x51e7bd['getAttribute']('listIndent');)_0x52d650['add'](_0x5e5fdb),_0x5e5fdb=_0x5e5fdb['nextSibling'];}return Array['from'](_0x52d650);}(_0x1a9569));});};}_0x12a46a['enableCommand']('numberedList',_0x190d63('numberedList')),_0x12a46a['enableCommand']('bulletedList',_0x190d63('bulletedList')),_0x275e55&&_0x12a46a['enableCommand']('todoList',_0x190d63('todoList')),_0x12a46a['enableCommand']('indentList',_0x525675('indentList')),_0x12a46a['enableCommand']('outdentList',_0x525675('outdentList')),_0x275e55&&_0x12a46a['enableCommand']('checkTodoList',()=>{const _0x3b4b7f=_0x4f2980['commands']['get']('checkTodoList'),_0x3c7e58=Array['from'](_0x3b4b7f['_selectedElements']);_0x3c7e58['filter'](_0x1589ab=>_0x1589ab['getAttribute']('todoListChecked')!=_0x3b4b7f['value']),_0x4f2980['model']['change'](()=>{for(const _0x452e94 of _0x3c7e58)_0x12a46a['markBlockFormat'](_0x452e94,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3b4b7f['value']}]});});}),_0x12a46a['descriptionFactory']['registerElementLabel']('listItem',_0x29dc04=>o(_0x4a8464,'ELEMENT_LIST_ITEM',_0x29dc04)),_0x12a46a['descriptionFactory']['registerDescriptionCallback'](_0x1bef6b=>{if('formatBlock'!=_0x1bef6b['type']&&'formatInline'!=_0x1bef6b['type'])return;const {data:_0x4ace2f}=_0x1bef6b;if(_0x4ace2f){if('numberedList'==_0x4ace2f['commandName']||'bulletedList'==_0x4ace2f['commandName']||'todoList'==_0x4ace2f['commandName'])switch(_0x4ace2f['commandName']['replace']('List','')){case'bulleted':return _0x201219(o(_0x4a8464,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x201219(o(_0x4a8464,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x201219(o(_0x4a8464,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4ace2f['commandName'])return{'type':'format','content':o(_0x4a8464,'*Indent:*\x20%0',o(_0x4a8464,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4ace2f['commandName'])return{'type':'format','content':o(_0x4a8464,'*Outdent:*\x20%0',o(_0x4a8464,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4ace2f['commandName'])return _0x4ace2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a8464,'*Check\x20item*')}:{'type':'format','content':o(_0x4a8464,'*Uncheck\x20item*')};}function _0x201219(_0x3d7af9){return{'type':'format','content':o(_0x4a8464,'*Change\x20to:*\x20%0',_0x3d7af9)};}});}}function Le(_0x457e8d){const _0x9029be=_0x457e8d['getAttribute']('listIndent');if(0x0==_0x9029be)return _0x457e8d;let _0x1eeebc=_0x457e8d;for(;_0x457e8d['previousSibling']&&_0x457e8d['previousSibling']['is']('element','listItem');){const _0x3daebc=_0x457e8d['previousSibling']['getAttribute']('listIndent');if(_0x3daebc==_0x9029be)_0x1eeebc=_0x457e8d['previousSibling'];else{if(_0x3daebc<_0x9029be)break;}_0x457e8d=_0x457e8d['previousSibling'];}return _0x1eeebc;}function Ee(_0x3baa37){const _0x158995=[];if(_0x3baa37['is']('element','listItem')&&_0x3baa37['getAttribute']('listIndent')>0x0){let _0x281359=_0x3baa37['nextSibling'];for(;_0x281359&&'listItem'==_0x281359['name']&&_0x281359['getAttribute']('listIndent')==_0x3baa37['getAttribute']('listIndent');)_0x158995['push'](_0x281359),_0x281359=_0x281359['nextSibling'];}return _0x158995;}class mt extends _0x34b1ca{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f2ff5=this['editor']['config']['get']('list.properties'),_0x45c5b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f2ff5['styles']&&_0x45c5b4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f2ff5['reversed']&&_0x45c5b4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f2ff5['startIndex']&&_0x45c5b4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x45c5b4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x351653,_0x4e8746={}){const _0x41b038=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5de13e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x41b038['markMultiRangeBlockFormat'](_0x5de13e,{'commandName':'listStyle','commandParams':[{'type':_0x4e8746['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x152c87,_0x5ad7fb={}){const _0x19ea02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502cdf=this['_getSuggestionBlocks'](_0x11b489=>_0x11b489['is']('element','listItem')&&'numbered'===_0x11b489['getAttribute']('listType'));if(_0x502cdf['length']<0x1)return;const _0x557a53=_0x502cdf['map'](_0x298708=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x298708,'before'),this['editor']['model']['createPositionAt'](_0x298708,0x0)));this['editor']['model']['change'](()=>{_0x19ea02['markMultiRangeBlockFormat'](_0x557a53,{'commandName':'listReversed','commandParams':[{'reversed':_0x5ad7fb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x45c903,_0x2696f8={}){const _0x124a6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1118f2=this['_getSuggestionBlocks'](_0xdc194e=>_0xdc194e['is']('element','listItem')&&'numbered'===_0xdc194e['getAttribute']('listType'));if(_0x1118f2['length']<0x1)return;const _0x5cfcdf=_0x1118f2['map'](_0x3e52b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e52b8,'before'),this['editor']['model']['createPositionAt'](_0x3e52b8,0x0)));this['editor']['model']['change'](()=>{_0x124a6e['markMultiRangeBlockFormat'](_0x5cfcdf,{'commandName':'listStart','commandParams':[{'startIndex':_0x2696f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f677b){if('formatBlock'!=_0x4f677b['type']&&'formatInline'!=_0x4f677b['type'])return;const _0x15bc70=this['editor']['locale'],{data:_0x5cae20}=_0x4f677b;if(!_0x5cae20)return;let _0x335a97,_0x329798;switch(_0x5cae20['commandName']){case'listStyle':_0x335a97='*Change\x20to:*\x20%0',_0x329798={'type':'format','content':o(_0x15bc70,_0x335a97,o(_0x15bc70,this['_getTranslationKeyForListStyle'](_0x5cae20['commandParams'][0x0]['type'])))};break;case'listReversed':_0x335a97=_0x5cae20['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x329798={'type':'format','content':o(_0x15bc70,_0x335a97)};break;case'listStart':_0x335a97='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x329798={'type':'format','content':o(_0x15bc70,_0x335a97,_0x5cae20['commandParams'][0x0]['startIndex'])};}return _0x329798;}['_getSuggestionBlocksForListStyle'](){const _0x218cf3=this['editor']['plugins']['get']('LegacyListUtils');let _0x29ebeb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x29ebeb[0x0]?.['is']('element','listItem')&&_0x29ebeb['unshift'](..._0x218cf3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x29ebeb[_0x29ebeb['length']-0x1]?.['is']('element','listItem')&&_0x29ebeb['push'](..._0x218cf3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x29ebeb=[...new Set(_0x29ebeb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x29ebeb=_0x29ebeb['filter'](_0x534fbb=>_0x534fbb['is']('element','listItem'))),_0x29ebeb;}['_getSuggestionBlocks'](_0x10d1ce){const _0x33bd7e=this['editor']['plugins']['get']('LegacyListUtils');let _0xf167a0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x10d1ce)['map'](_0x3d17b2=>{const _0x47eb84=this['editor']['model']['createPositionAt'](_0x3d17b2,0x0);return[..._0x33bd7e['getSiblingNodes'](_0x47eb84,'backward'),..._0x33bd7e['getSiblingNodes'](_0x47eb84,'forward')];})['flat']();return _0xf167a0=[...new Set(_0xf167a0)],_0xf167a0;}['_getTranslationKeyForListStyle'](_0x2e77d6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2e77d6)||'default')['toUpperCase']()+'_LIST_'+_0x2e77d6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x34b1ca{['afterInit'](){const _0x707115=this['editor'];if(!_0x707115['plugins']['has']('MediaEmbedEditing'))return;const _0x350d9c=_0x707115['plugins']['get']('TrackChangesEditing'),_0x1eefff=_0x707115['locale'];_0x350d9c['enableCommand']('mediaEmbed'),_0x350d9c['descriptionFactory']['registerElementLabel']('media',_0x361c17=>o(_0x1eefff,'ELEMENT_MEDIA',_0x361c17));}}class pt extends _0x34b1ca{['afterInit'](){const _0x5b0693=this['editor'];_0x5b0693['plugins']['has']('MentionEditing')&&_0x5b0693['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x34b1ca{['afterInit'](){const _0x5b1dc0=this['editor'];if(!_0x5b1dc0['plugins']['has']('MergeFieldsEditing'))return;const _0x4a7b50=_0x5b1dc0['plugins']['get']('TrackChangesEditing'),_0x2df937=_0x5b1dc0['locale'];_0x4a7b50['enableCommand']('insertMergeField'),_0x4a7b50['enableCommand']('insertMergeFieldBlock'),_0x4a7b50['enableCommand']('insertMergeFieldImage'),_0x4a7b50['descriptionFactory']['registerElementLabel']('mergeField',_0x16a47c=>o(_0x2df937,'ELEMENT_MERGE_FIELD',_0x16a47c)),_0x4a7b50['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2746be=>o(_0x2df937,'ELEMENT_MERGE_FIELD',_0x2746be)),_0x4a7b50['descriptionFactory']['registerDescriptionCallback'](_0x4b7fdc=>{if('insertion'!=_0x4b7fdc['type']&&'deletion'!=_0x4b7fdc['type'])return;const _0x28a4e0=_0x4b7fdc['getContainedElement']();if(null==_0x28a4e0)return;const _0x5d8ae9=_0x5b1dc0['plugins']['get']('MergeFieldsEditing');let _0x3b0374;switch(_0x5d8ae9['getMergeFieldType'](_0x28a4e0)){case null:return;case'image':{const _0x122777=_0x5d8ae9['unwrapAffixes'](_0x28a4e0['getAttribute']('src'));_0x3b0374=_0x5d8ae9['getLabel'](_0x122777)||_0x122777;break;}default:{const _0x588a0e=_0x28a4e0['getAttribute']('id');_0x3b0374=_0x5d8ae9['getLabel'](_0x588a0e)||_0x588a0e;break;}}return'insertion'==_0x4b7fdc['type']?{'type':'insertion','content':o(_0x2df937,'*Insert:*\x20%0','\x22'+_0x3b0374+'\x22\x20'+o(_0x2df937,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2df937,'*Remove:*\x20%0','\x22'+_0x3b0374+'\x22\x20'+o(_0x2df937,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x34b1ca{['afterInit'](){const _0x23bd06=this['editor'],_0x27a59b=_0x23bd06['plugins']['get']('TrackChangesEditing');_0x23bd06['plugins']['has']('MultiLevelList')&&(_0x27a59b['enableDefaultAttributesIntegration']('multiLevelList'),_0x27a59b['descriptionFactory']['registerDescriptionCallback'](_0x3e33fa=>this['handleDescriptions'](_0x3e33fa)));}['handleDescriptions'](_0xc20b7f){const _0x4449fd=this['editor']['locale'],{data:_0x292819}=_0xc20b7f,_0x4ad3c8={'type':'format','content':''};if(_0x292819&&'listMarkerStyle'==_0x292819['key']){if(!_0x292819['oldValue'])return{'type':'format','content':o(_0x4449fd,'*Set\x20format:*\x20%0',o(_0x4449fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x292819['newValue']+')'};if(!_0x292819['newValue']){let _0x501bb8=_0xc20b7f['head'];for(;_0x501bb8;){if(_0x501bb8['data']&&'listType'==_0x501bb8['data']['key']&&_0x501bb8['data']['newValue'])return _0x4ad3c8;_0x501bb8=_0x501bb8['next'];}return{'type':'format','content':o(_0x4449fd,'*Remove\x20format:*\x20%0',o(_0x4449fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x292819['oldValue']+')'};}}}}class bt extends _0x34b1ca{['afterInit'](){const _0x295087=this['editor'];if(!_0x295087['plugins']['has']('PageBreakEditing'))return;_0x295087['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x390f32=_0x295087['plugins']['get']('TrackChangesEditing'),_0x274761=_0x295087['locale'];_0x390f32['descriptionFactory']['registerElementLabel']('pageBreak',_0xc0b70e=>o(_0x274761,'ELEMENT_PAGE_BREAK',_0xc0b70e));}}class yt extends _0x34b1ca{['afterInit'](){const _0x3b8c1b=this['editor'];if(!_0x3b8c1b['plugins']['has']('Paragraph'))return;const _0x32497d=_0x3b8c1b['locale'],_0x4fa4a5=_0x3b8c1b['plugins']['get']('TrackChangesEditing');_0x4fa4a5['descriptionFactory']['registerElementLabel']('paragraph',_0x1b1d55=>o(_0x32497d,'ELEMENT_PARAGRAPH',_0x1b1d55)),_0x4fa4a5['enableDefaultAttributesIntegration']('paragraph'),_0x4fa4a5['enableCommand']('insertParagraph');const _0x30a49c=_0x4fa4a5['descriptionFactory'];_0x30a49c['registerDescriptionCallback'](_0x242b72=>{if('insertion'!==_0x242b72['type'])return;const {start:_0x283aa6,end:_0x1e5452}=_0x242b72['getFirstRange']();if(!_0x283aa6['isTouching'](_0x1e5452)||!_0x283aa6['nodeAfter'])return;const _0x5202a6=_0x3b8c1b['model']['schema'],_0x39ecbe=_0x283aa6['nodeAfter'];return _0x5202a6['isBlock'](_0x39ecbe)&&!_0x5202a6['isLimit'](_0x39ecbe)&&_0x5202a6['checkChild'](_0x39ecbe,'$text')?{'type':'insertion','content':o(_0x32497d,'*Insert:*\x20%0',_0x30a49c['getItemLabel'](_0x39ecbe,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4af540=this['editor'],_0x2f926f=_0x4af540['locale'];_0x4af540['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a14ec=>{if('formatBlock'!=_0x1a14ec['type'])return;const {data:_0x5c659b}=_0x1a14ec;return _0x5c659b&&'paragraph'==_0x5c659b['commandName']?{'type':'format','content':o(_0x2f926f,'*Change\x20to:*\x20%0',o(_0x2f926f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x34b1ca{['afterInit'](){const _0x422285=this['editor'];_0x422285['commands']['get']('replaceSource')&&_0x422285['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x34b1ca{['afterInit'](){const _0x1b56cd=this['editor'];if(!_0x1b56cd['plugins']['has']('RemoveFormatEditing'))return;_0x1b56cd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbb9b32=this['editor'];_0xbb9b32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33151d=>{if('formatBlock'!=_0x33151d['type']&&'formatInline'!=_0x33151d['type'])return;const {data:_0x11f1ff}=_0x33151d;return _0x11f1ff&&'removeFormat'==_0x11f1ff['commandName']?{'type':'format','content':o(_0xbb9b32['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x34b1ca{['afterInit'](){const _0x4d0b28=this['editor'];if(!_0x4d0b28['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x282baf=_0x4d0b28['plugins']['get']('TrackChangesEditing');_0x282baf['enableCommand']('goToPreviousRestrictedEditingException'),_0x282baf['enableCommand']('goToNextRestrictedEditingException');const _0x2dd258=_0x4d0b28['plugins']['get']('RestrictedEditingModeEditing');_0x2dd258['enableCommand']('trackChanges'),_0x2dd258['enableCommand']('acceptSuggestion'),_0x2dd258['enableCommand']('discardSuggestion'),_0x2dd258['enableCommand']('acceptAllSuggestions'),_0x2dd258['enableCommand']('discardAllSuggestions'),_0x2dd258['enableCommand']('acceptSelectedSuggestions'),_0x2dd258['enableCommand']('discardSelectedSuggestions');}}class At extends _0x34b1ca{['afterInit'](){const _0x1c1426=this['editor'];if(!_0x1c1426['plugins']['has']('ShiftEnter'))return;const _0x30e27b=_0x1c1426['plugins']['get']('TrackChangesEditing');_0x30e27b['enableCommand']('shiftEnter'),_0x30e27b['descriptionFactory']['registerElementLabel']('softBreak',_0xdea094=>o(_0x1c1426['locale'],'ELEMENT_LINE_BREAK',_0xdea094));}}function an(_0x348e03,_0x1c282f,_0x444949){const _0xb64396=[];for(const _0x22cd56 of _0x1c282f['getItems']())_0x22cd56['hasAttribute'](_0x348e03)&&_0xb64396['push'](_0x444949['createRangeOn'](_0x22cd56));return _0xb64396;}class _t extends _0x34b1ca{['afterInit'](){const _0x855c3c=this['editor'],_0x67a0a6=_0x855c3c['plugins']['get']('TrackChangesEditing');_0x855c3c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x67a0a6['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5ecd98=this['editor'],_0x81126b=_0x5ecd98['model'],_0x5c51a3=_0x5ecd98['locale'],_0x409e4e=_0x5ecd98['plugins']['get']('TrackChangesEditing'),_0x1ae66a='restrictedEditingException',_0x2b3e86=_0x5ecd98['commands']['get'](_0x1ae66a);_0x409e4e['enableCommand'](_0x1ae66a,(_0x1eb97b,_0x1b9eb1={})=>{const _0x2ccc84=_0x81126b['document']['selection'];if(_0x2ccc84['isCollapsed'])return void _0x1eb97b(_0x1b9eb1);const _0x4a4672=void 0x0!==_0x1b9eb1['forceValue']?_0x1b9eb1['forceValue']:!_0x2b3e86['value'];_0x81126b['change'](()=>{const _0x217132=Array['from'](_0x2ccc84['getRanges']());for(const _0x5a88c2 of _0x217132){const _0xd8dd3c=_0x4a4672?[_0x5a88c2]:an(_0x1ae66a,_0x5a88c2,_0x81126b);for(const _0x72b4df of _0xd8dd3c)_0x409e4e['markInlineFormat'](_0x72b4df,{'commandName':_0x1ae66a,'commandParams':[{'forceValue':_0x4a4672}]});}});}),_0x409e4e['descriptionFactory']['registerDescriptionCallback'](_0x4b3274=>{if('formatBlock'!=_0x4b3274['type']&&'formatInline'!=_0x4b3274['type'])return;const {data:_0x13a9b4}=_0x4b3274;return _0x13a9b4&&_0x13a9b4['commandName']==_0x1ae66a?_0x13a9b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c51a3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c51a3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xe9aded=this['editor'],_0x4a9a05=_0xe9aded['locale'],_0x3899d5=_0xe9aded['plugins']['get']('TrackChangesEditing'),_0x50187e='restrictedEditingExceptionBlock',_0x53dba7=this['editor']['commands']['get'](_0x50187e);_0x3899d5['enableCommand'](_0x50187e,(_0x33259c,_0x154f7c={})=>{const _0x36ecbd=this['editor']['model']['document']['selection'],_0x1cd743=_0x154f7c&&void 0x0!==_0x154f7c['forceValue']?_0x154f7c['forceValue']:!_0x53dba7['value'];let _0x455e33=[];if(_0x1cd743){const _0xf8b091=Array['from'](_0x36ecbd['getSelectedBlocks']())['filter'](_0xea9ce9=>function(_0x55ce33){return!!_0x55ce33['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xea9ce9)||function(_0x19cc45,_0x188c3b){const _0x5371e3=_0x188c3b['createContext'](_0x19cc45['parent']);if(!_0x188c3b['checkChild'](_0x5371e3,'restrictedEditingException'))return!0x1;if(!_0x188c3b['checkChild'](_0x5371e3['push']('restrictedEditingException'),_0x19cc45))return!0x1;return!0x0;}(_0xea9ce9,this['editor']['model']['schema']));_0x455e33=to(_0xf8b091,_0xe9aded['model']);}else{const _0xfe60aa=Array['from'](_0x36ecbd['getSelectedBlocks']())['map'](_0x29ca55=>function(_0x50c331){let _0x2ead21=_0x50c331;for(;_0x2ead21['parent'];){if('restrictedEditingException'==_0x2ead21['parent']['name'])return _0x2ead21;_0x2ead21=_0x2ead21['parent'];}return null;}(_0x29ca55))['filter'](_0x45bfdd=>!!_0x45bfdd);_0x455e33=to(_0xfe60aa,_0xe9aded['model']);}_0xe9aded['model']['change'](()=>{for(const _0x4e8243 of _0x455e33)_0x3899d5['markBlockFormat'](_0x4e8243,{'commandName':_0x50187e,'commandParams':[{'forceValue':_0x1cd743}]});});}),_0x3899d5['descriptionFactory']['registerDescriptionCallback'](_0xaaf9ff=>{const {data:_0x110211}=_0xaaf9ff;if(_0x110211&&_0x110211['commandName']==_0x50187e)return _0x110211['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a9a05,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4a9a05,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x34b1ca{['afterInit'](){const _0x1f7c9c=this['editor'];if(!_0x1f7c9c['plugins']['has']('Style')||!_0x1f7c9c['plugins']['has']('DataSchema'))return;const _0x3b7a25=_0x1f7c9c['plugins']['get']('TrackChangesEditing'),_0x494d8e=_0x1f7c9c['locale'],_0x48de76=_0x1f7c9c['config']['get']('style')||{},_0x14bc35=_0x1f7c9c['plugins']['get']('GeneralHtmlSupport'),_0x2571d5=_0x1f7c9c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f7c9c['plugins']['get']('DataSchema'),_0x48de76['definitions']);_0x3b7a25['enableDefaultAttributesIntegration']('style');const _0x4108f7=new Set();for(const _0x1934da of _0x2571d5['block']){const _0x4c7f7c=_0x14bc35['getGhsAttributeNameForElement'](_0x1934da['element']);_0x4108f7['add'](_0x4c7f7c);}const _0x4a1a5a=new Set();for(const _0x380e3d of _0x2571d5['inline']){const _0x370bba=_0x14bc35['getGhsAttributeNameForElement'](_0x380e3d['element']);_0x4a1a5a['add'](_0x370bba);for(const _0x35cebb of _0x380e3d['ghsAttributes'])_0x4a1a5a['add'](_0x35cebb);}for(const _0x4a379b of _0x4108f7)_0x3b7a25['descriptionFactory']['registerAttributeLabel'](_0x4a379b,o(_0x494d8e,'FORMAT_STYLE'));for(const _0x1315f8 of _0x4a1a5a)_0x3b7a25['descriptionFactory']['registerAttributeLabel'](_0x1315f8,o(_0x494d8e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22d024=this['editor'],_0x4986fb=_0x22d024['locale'];_0x22d024['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6e268=>{if('formatBlock'!=_0xc6e268['type']&&'formatInline'!=_0xc6e268['type'])return;const {data:_0x715046}=_0xc6e268;return _0x715046&&'style'===_0x715046['commandName']?_0x715046['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4986fb,'*Set\x20format:*\x20%0',_0x715046['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4986fb,'*Remove\x20format:*\x20%0',_0x715046['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x34b1ca{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x53f804){super(_0x53f804),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x53b1e7=this['editor'],_0x6925d5=_0x53b1e7['model']['document']['selection'];if(!_0x53b1e7['plugins']['has']('TableEditing'))return;const _0x5adc4d=_0x53b1e7['locale'],_0x8ad7ba=_0x53b1e7['plugins']['get']('TrackChangesEditing'),_0x1212e3=_0x53b1e7['plugins']['get']('TableUtils');_0x8ad7ba['descriptionFactory']['registerElementLabel']('table',_0x3c02c1=>o(_0x5adc4d,'ELEMENT_TABLE',_0x3c02c1)),this['_setupColumnsRowsFixing'](),_0x8ad7ba['enableCommand']('insertTable'),_0x8ad7ba['enableCommand']('selectTableRow'),_0x8ad7ba['enableCommand']('selectTableColumn');for(const _0x55d63c of['insertTableRowAbove','insertTableRowBelow']){const _0xe8944f=_0x53b1e7['commands']['get'](_0x55d63c);_0x8ad7ba['enableCommand'](_0x55d63c,_0x2ee467=>{_0x53b1e7['model']['change'](_0x1eb356=>{_0x2ee467();const _0xfc8a4b='above'===_0xe8944f['order'],_0x28be2f=_0x1212e3['getSelectionAffectedTableCells'](_0x6925d5),_0x13d7e1=_0x1212e3['getRowIndexes'](_0x28be2f),_0x22da6e=_0xfc8a4b?_0x13d7e1['first']-0x1:_0x13d7e1['last']+0x1,_0x1a47ac=_0x28be2f[0x0]['findAncestor']('table'),_0x1ecb58=_0x1212e3['createTableWalker'](_0x1a47ac,{'startRow':_0x22da6e,'endRow':_0x22da6e}),_0x742624=Array['from'](_0x1ecb58)['map'](_0x53ff70=>_0x1eb356['createRangeOn'](_0x53ff70['cell']));_0x8ad7ba['markMultiRangeInsertion'](_0x742624,'tableRow');});});}for(const _0x370f97 of['insertTableColumnLeft','insertTableColumnRight']){const _0x167a78=_0x53b1e7['commands']['get'](_0x370f97);_0x8ad7ba['enableCommand'](_0x370f97,_0x542755=>{_0x53b1e7['model']['change'](_0x2185cf=>{_0x542755();const _0x47ef41='left'===_0x167a78['order'],_0xb38db8=_0x1212e3['getSelectionAffectedTableCells'](_0x6925d5),_0x1fd38d=_0x1212e3['getColumnIndexes'](_0xb38db8),_0x28beb7=_0x47ef41?_0x1fd38d['first']-0x1:_0x1fd38d['last']+0x1,_0x214db9=_0xb38db8[0x0]['findAncestor']('table'),_0xd45dc7=_0x1212e3['createTableWalker'](_0x214db9,{'startRow':0x0,'column':_0x28beb7,'includeAllSlots':!0x1}),_0x45c49e=Array['from'](_0xd45dc7)['map'](_0x12d6eb=>_0x2185cf['createRangeOn'](_0x12d6eb['cell']));_0x8ad7ba['markMultiRangeInsertion'](_0x45c49e,'tableColumn');});});}for(const _0x64f961 of['removeTableRow','removeTableColumn']){const _0x41a1c3=_0x64f961['substr'](0xb),_0xd174ec=_0x41a1c3['toLowerCase'](),_0x2783b0=_0xd174ec['substr'](0x0,0x3)+'span',_0xb8209a='table'+_0x41a1c3,_0x4d9402='min'+_0x41a1c3,_0x4b1c57='max'+_0x41a1c3;_0x8ad7ba['enableCommand'](_0x64f961,()=>{_0x53b1e7['model']['change'](_0x5b9a0f=>{const _0x386741=_0x1212e3['getSelectionAffectedTableCells'](_0x6925d5),_0x3f09c5=_0x386741[0x0]['findAncestor']('table');let _0x34db1d;if('removeTableRow'==_0x64f961){const _0x31ad4e=_0x1212e3['getRowIndexes'](_0x386741);_0x34db1d={'startRow':_0x31ad4e['first'],'endRow':_0x31ad4e['last'],'includeAllSlots':!0x0};}else{const _0x277b37=_0x1212e3['getColumnIndexes'](_0x386741);_0x34db1d={'startColumn':_0x277b37['first'],'endColumn':_0x277b37['last'],'includeAllSlots':!0x0};}const _0x233ca5=_0x1212e3['createTableWalker'](_0x3f09c5,_0x34db1d),_0x1c49f8=Array['from'](_0x233ca5)['map'](({cell:_0x44864a})=>_0x44864a),_0x4ab68f=_e(_0x1c49f8['filter'](_0x21aa7b=>_0x21aa7b['hasAttribute'](_0x2783b0))),_0x3f5adf=_e(_0x1c49f8['filter'](_0x5a4e4a=>!_0x5a4e4a['hasAttribute'](_0x2783b0)))['map'](_0x422fe6=>_0x5b9a0f['createRangeOn'](_0x422fe6)),_0x2f862a=_0x8ad7ba['markMultiRangeDeletion'](_0x3f5adf,_0xb8209a);if(_0x2f862a&&('tableRow'==_0x2f862a['subType']||'tableColumn'==_0x2f862a['subType'])){const _0x4f9170=this['_getSuggestionCoords'](_0x2f862a);for(const _0x4e6202 of _0x4ab68f){const _0x81c827=_0x5b9a0f['createRangeOn'](_0x4e6202),_0x3819bf=_0x1212e3['getCellLocation'](_0x4e6202),_0x22b3a2=_0x4e6202['getAttribute'](_0x2783b0)-0x1,_0x3781a9=_0x4f9170[_0x4d9402],_0x1e0d91=_0x4f9170[_0x4b1c57];_0x3781a9<=_0x3819bf[_0xd174ec]&&_0x3819bf[_0xd174ec]+_0x22b3a2<=_0x1e0d91&&_0x2f862a['addRange'](_0x81c827);}}});});}function _0x1094c7(_0x70834c){const _0x5145ed=Array['from'](_0x6925d5['getRanges']())['map'](_0x5a655f=>_0x4b2c9['fromRange'](_0x5a655f));_0x53b1e7['model']['change'](_0x45102b=>{const _0x1a0ab4=_0x45102b['batch'];_0x70834c=_0x70834c['filter'](_0x472951=>'$graveyard'!=_0x472951['root']['rootName']),_0x45102b['setSelection'](_0x70834c),_0x53b1e7['commands']['get']('removeTableRow')['refresh'](),_0x53b1e7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53b1e7['model']['enqueueChange'](()=>{_0x53b1e7['model']['enqueueChange'](_0x1a0ab4,_0x3ae3dd=>{const _0xcc1a20=_0x5145ed['filter'](_0x1884ef=>'$graveyard'!=_0x1884ef['root']['rootName']);_0xcc1a20['length']>0x0&&_0x3ae3dd['setSelection'](_0xcc1a20);for(const _0x189cae of _0x5145ed)_0x189cae['detach']();});});});}function _0x1b3488(_0x372bd9){_0x53b1e7['model']['change'](_0x3f48b9=>{const _0x56908e=Array['from'](_0x6925d5['getRanges']())['map'](_0x14ba2f=>_0x4b2c9['fromRange'](_0x14ba2f)),_0x47ec16=[];for(const _0x404708 of _0x372bd9)for(const _0x2901f3 of _0x404708['getItems']({'shallow':!0x0}))_0x47ec16['push'](_0x2901f3);for(const _0x494476 of _0x47ec16)'$graveyard'!=_0x494476['root']['rootName']&&(_0x3f48b9['setSelection'](_0x3f48b9['createPositionAt'](_0x494476,0x0)),_0x53b1e7['commands']['get']('removeTableColumn')['refresh'](),_0x53b1e7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47aa96=_0x56908e['filter'](_0x22d59b=>'$graveyard'!=_0x22d59b['root']['rootName']);_0x47aa96['length']>0x0&&_0x3f48b9['setSelection'](_0x47aa96);for(const _0x6a1187 of _0x56908e)_0x6a1187['detach']();});}function _0x456837(_0x340f9a,_0x4dcbe1){return _0x4dcbe1['every'](_0x40038b=>_0x340f9a['some'](_0xb80a3b=>_0xb80a3b['end']['isEqual'](_0x40038b['start'])||_0x40038b['end']['isEqual'](_0xb80a3b['start'])));}function _0x1d939a(_0x5cb63b,_0x23123e){return!_0x5cb63b['some'](_0x39ed5f=>_0x23123e['some'](_0x3835e9=>_0x39ed5f['isIntersecting'](_0x3835e9)))&&_0x5cb63b['some'](_0x34d996=>_0x23123e['some'](_0x2f3f99=>_0x34d996['end']['isTouching'](_0x2f3f99['start'])));}_0x8ad7ba['descriptionFactory']['registerDescriptionCallback'](_0x1a5e82=>{if('insertion'!=_0x1a5e82['type']&&'deletion'!=_0x1a5e82['type'])return;const _0x30e3ad=_0x1a5e82['getContainedElement']();if(null!=_0x30e3ad&&_0x30e3ad['is']('element','table')){if('insertion'==_0x1a5e82['type']){const _0x49e641=_0x1a5e82['getItems']()['filter'](_0x22bd09=>_0x22bd09['is']('$textProxy'))['map'](_0x489467=>_0x489467['data']);if(_0x49e641['length'])return{'type':'insertion','content':o(_0x5adc4d,'*Insert:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49e641['join']('\x20')+'\x22'))};}if('deletion'==_0x1a5e82['type']){const _0x18e6a7=_0x1a5e82['getItems']()['filter'](_0x54b9c9=>_0x54b9c9['is']('$textProxy'))['map'](_0x303331=>_0x303331['data']);if(_0x18e6a7['length'])return{'type':'deletion','content':o(_0x5adc4d,'*Remove:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18e6a7['join']('\x20')+'\x22'))};}}}),_0x8ad7ba['descriptionFactory']['registerDescriptionCallback'](_0x54e021=>{if('tableRow'==_0x54e021['subType']){const _0x50da58=_0x54e021['getItems']()['filter'](_0x3277d7=>_0x3277d7['is']('$textProxy'))['map'](_0x403c97=>_0x403c97['data']),_0x36e4bf=this['_getSuggestionCoords'](_0x54e021),_0x268064=_0x36e4bf['maxRow']-_0x36e4bf['minRow']+0x1;if('insertion'==_0x54e021['type'])return _0x50da58['length']?{'type':'insertion','content':o(_0x5adc4d,'*Insert:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x268064,'\x22'+_0x50da58['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5adc4d,'*Insert:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_ROW',_0x268064))};if('deletion'==_0x54e021['type'])return _0x50da58['length']?{'type':'deletion','content':o(_0x5adc4d,'*Remove:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x268064,'\x22'+_0x50da58['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5adc4d,'*Remove:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_ROW',_0x268064))};}if('tableColumn'==_0x54e021['subType']){const _0x16bc9f=_0x54e021['getItems']()['filter'](_0x42fc17=>_0x42fc17['is']('$textProxy'))['map'](_0x2eb828=>_0x2eb828['data']),_0x41f1ef=this['_getSuggestionCoords'](_0x54e021),_0xa68268=_0x41f1ef['maxColumn']-_0x41f1ef['minColumn']+0x1;if('insertion'==_0x54e021['type'])return _0x16bc9f['length']?{'type':'insertion','content':o(_0x5adc4d,'*Insert:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xa68268,'\x22'+_0x16bc9f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5adc4d,'*Insert:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_COLUMN',_0xa68268))};if('deletion'==_0x54e021['type'])return _0x16bc9f['length']?{'type':'deletion','content':o(_0x5adc4d,'*Remove:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xa68268,'\x22'+_0x16bc9f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5adc4d,'*Remove:*\x20%0',o(_0x5adc4d,'ELEMENT_TABLE_COLUMN',_0xa68268))};}}),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1094c7),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1094c7),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1b3488),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1b3488),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x456837),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x456837),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1d939a),_0x8ad7ba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1d939a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2efce9=this['editor'],_0x373007=_0x2efce9['model']['document']['selection'];return(_0x286c57,_0x1f7905)=>{_0x2efce9['model']['change'](_0x54ca1f=>{const {commandName:_0x311992,commandParams:_0x2772cf}=_0x1f7905;let _0x225624=_0x286c57[0x0]['end']['nodeBefore'];_0x2772cf&&_0x2772cf[0x0]&&!0x1===_0x2772cf[0x0]['forceValue']&&(_0x225624=_0x286c57[0x0]['start']['nodeAfter']);const _0x286d91=_0x54ca1f['createRangeIn'](_0x225624);if('$graveyard'==_0x286d91['root']['rootName'])return;const _0x5884a6=Array['from'](_0x373007['getRanges']())['map'](_0x5c9e04=>_0x4b2c9['fromRange'](_0x5c9e04));_0x54ca1f['setSelection'](_0x286d91),_0x2efce9['commands']['get'](_0x311992)['refresh'](),_0x2772cf['push']({'forceDefaultExecution':!0x0}),_0x2efce9['execute'](_0x311992,..._0x2772cf);const _0x350196=_0x5884a6['filter'](_0x924245=>'$graveyard'!=_0x924245['root']['rootName']);_0x350196['length']>0x0&&_0x54ca1f['setSelection'](_0x350196);for(const _0x240c31 of _0x5884a6)_0x240c31['detach']();});};}['_getCoordsForCells'](_0x5a645a){const _0x39c304=this['editor']['plugins']['get']('TableUtils');let _0x3f96b6=Number['MAX_SAFE_INTEGER'],_0x2ebd0b=Number['MIN_SAFE_INTEGER'],_0x3f868d=Number['MAX_SAFE_INTEGER'],_0x205cd7=Number['MIN_SAFE_INTEGER'];for(const _0x553865 of _0x5a645a){if('$graveyard'==_0x553865['root']['rootName'])continue;const {row:_0x1d4953,column:_0x1b30d2}=_0x39c304['getCellLocation'](_0x553865),_0x450bca=_0x553865['hasAttribute']('rowspan')?_0x553865['getAttribute']('rowspan')-0x1:0x0,_0x3cc36b=_0x553865['hasAttribute']('colspan')?_0x553865['getAttribute']('colspan')-0x1:0x0;_0x3f96b6=_0x1d4953<_0x3f96b6?_0x1d4953:_0x3f96b6,_0x2ebd0b=_0x1d4953+_0x450bca>_0x2ebd0b?_0x1d4953+_0x450bca:_0x2ebd0b,_0x3f868d=_0x1b30d2<_0x3f868d?_0x1b30d2:_0x3f868d,_0x205cd7=_0x1b30d2+_0x3cc36b>_0x205cd7?_0x1b30d2+_0x3cc36b:_0x205cd7;}return{'minRow':_0x3f96b6,'maxRow':_0x2ebd0b,'minColumn':_0x3f868d,'maxColumn':_0x205cd7};}['_setupColumnsRowsFixing'](){const _0x442cc2=this['editor'],_0x8d164d=_0x442cc2['plugins']['get']('TrackChangesEditing'),_0x91ab92=_0x442cc2['plugins']['get']('TableUtils');_0x442cc2['model']['document']['on']('change:data',()=>{const _0x34de2e=Array['from'](_0x442cc2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8af9ff,data:_0x3e43e6}of _0x34de2e){const {group:_0x583a38,id:_0x472524,subType:_0x1774e9}=_0x8d164d['_splitMarkerName'](_0x8af9ff);if('suggestion'!=_0x583a38)continue;if(null!=_0x3e43e6['oldRange'])continue;const _0x458a1c=_0x8d164d['getSuggestion'](_0x472524);this['_tablePostFixingSubtypes']['includes'](_0x1774e9)&&this['_tableSuggestions']['add'](_0x458a1c);}},{'priority':'low'});const _0x2bed25=(_0x3cc2b8,_0x2a6628)=>{let _0x50901c=!0x1;const _0x391744=_0x2a6628['createRangeOn'](_0x3cc2b8),_0x34c368=_0x3cc2b8['findAncestor']('table'),_0x12a1dc=_0x91ab92['getCellLocation'](_0x3cc2b8);for(const _0x268344 of this['_tableSuggestions']){const _0x44e1ad=_0x268344['subType'],_0x387bc0=_0x44e1ad['startsWith']('tablePaste'),_0x35d916=_0x44e1ad['substr'](_0x387bc0?0xa:0x5),_0x104db1=_0x35d916['toLowerCase'](),_0x562492=_0x104db1['substr'](0x0,0x3)+'span',_0x3e35d0='min'+_0x35d916,_0xd9ba80='max'+_0x35d916;if(!_0x268344['isInContent'])continue;if(_0x34c368!=_0x268344['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x268344['isIntersectingWithRange'](_0x391744))continue;const _0x1bac27=_0x3cc2b8['hasAttribute'](_0x562492)?_0x3cc2b8['getAttribute'](_0x562492)-0x1:0x0,_0x511ab2=this['_getSuggestionCoords'](_0x268344),_0x1f2583=_0x511ab2[_0x3e35d0],_0x3852ef=_0x511ab2[_0xd9ba80];_0x1f2583<=_0x12a1dc[_0x104db1]&&_0x12a1dc[_0x104db1]+_0x1bac27<=_0x3852ef&&(_0x268344['addRange'](_0x391744),_0x50901c=!0x0);}return _0x50901c;};_0x442cc2['model']['document']['registerPostFixer'](_0x55eb35=>{let _0x55dc3d=!0x1;for(const _0x20303c of _0x442cc2['model']['document']['differ']['getChanges']())if('insert'==_0x20303c['type']){if('tableRow'==_0x20303c['name']){for(const _0x5943ee of _0x20303c['position']['nodeAfter']['getChildren']())_0x55dc3d=_0x55dc3d||_0x2bed25(_0x5943ee,_0x55eb35);}else'tableCell'==_0x20303c['name']&&(_0x55dc3d=_0x55dc3d||_0x2bed25(_0x20303c['position']['nodeAfter'],_0x55eb35));}return _0x55dc3d;});}['_getSuggestionCoords'](_0x4525f5){return this['_getCoordsForCells'](_0x4525f5['getRanges']()['map'](_0x3fce0e=>_0x3fce0e['start']['nodeAfter']));}}function _e(_0x59fbe7){return Array['from'](new Set(_0x59fbe7)['values']());}class $t extends _0x34b1ca{static get['requires'](){return[Nt];}['afterInit'](){const _0x5290cf=this['editor'],_0x59252e=_0x5290cf['model']['document']['selection'],_0x484156=_0x5290cf['locale'];if(!_0x5290cf['plugins']['has']('TableEditing'))return;const _0x4d63ca=_0x5290cf['plugins']['get']('TrackChangesEditing'),_0x499048=_0x5290cf['plugins']['get']('TableUtils'),_0x4c308c=_0x5290cf['plugins']['get'](Nt);_0x4c308c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4d63ca['enableCommand']('mergeTableCells',()=>{const _0x473ee7=_0x499048['getSelectionAffectedTableCells'](_0x5290cf['model']['document']['selection']);_0x5290cf['model']['change'](()=>{_0x4d63ca['markMultiRangeBlockFormat'](_0x473ee7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5290cf['commands']['get']('mergeTableCells')['on']('execute',(_0x956063,_0x579327)=>{_0x5290cf['commands']['get']('trackChanges')['value']&&(_0x579327['length']>0x0&&_0x579327[_0x579327['length']-0x1]&&_0x579327[_0x579327['length']-0x1]['forceDefaultExecution']||_0x4d63ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x956063['stop']());},{'priority':'highest'});for(const _0x2f313d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xd746aa=_0x5290cf['commands']['get'](_0x2f313d);_0x4d63ca['enableCommand'](_0x2f313d,()=>{const _0x455488=_0x5290cf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1dad5c=>_0x1dad5c['is']('element','tableCell')),_0x12e376=_0xd746aa['value'];_0x5290cf['model']['change'](()=>{_0x4d63ca['markMultiRangeBlockFormat']([_0x455488,_0x12e376],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x58ceeb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x15970a=_0x5290cf['commands']['get'](_0x58ceeb);_0x4d63ca['enableCommand'](_0x58ceeb,()=>{const _0x4468ce=_0x499048['getSelectionAffectedTableCells'](_0x5290cf['model']['document']['selection'])[0x0],_0x55ed70=_0x4468ce['findAncestor']('table'),{column:_0x58e8a5,row:_0x4d752c}=_0x499048['getCellLocation'](_0x4468ce);let _0x577737=[];if('horizontally'==_0x15970a['direction']){const _0xb707dd=_0x499048['createTableWalker'](_0x55ed70,{'startRow':_0x4d752c,'endRow':_0x4d752c,'includeAllSlots':!0x0});_0x577737=Array['from'](_0xb707dd)['map'](_0x148c83=>_0x148c83['cell']);}else{const _0x29e17e=_0x499048['createTableWalker'](_0x55ed70,{'column':_0x58e8a5,'includeAllSlots':!0x0});_0x577737=Array['from'](_0x29e17e)['map'](_0x31b021=>_0x31b021['cell']);}_0x5290cf['model']['change'](_0x3e69c1=>{_0x4d63ca['markBlockFormat'](_0x3e69c1['createRangeOn'](_0x4468ce),{'commandName':_0x58ceeb,'commandParams':[]},_0x577737,_0x58ceeb);});});}_0x4d63ca['descriptionFactory']['registerDescriptionCallback'](_0x3a5e0c=>{if('formatBlock'!=_0x3a5e0c['type']&&'formatInline'!=_0x3a5e0c['type'])return;const {data:_0x1cf50a}=_0x3a5e0c;return _0x1cf50a&&'mergeTableCells'==_0x1cf50a['commandName']?{'type':'format','content':o(_0x484156,'*Merge\x20cells*')}:void 0x0;}),_0x4d63ca['descriptionFactory']['registerDescriptionCallback'](_0x5258fe=>{if('formatBlock'!=_0x5258fe['type']&&'formatInline'!=_0x5258fe['type'])return;const {data:_0x3446d8}=_0x5258fe;return _0x3446d8?'splitTableCellVertically'==_0x3446d8['commandName']?{'type':'format','content':o(_0x484156,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3446d8['commandName']?{'type':'format','content':o(_0x484156,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5879f8=_0x4c308c['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d4d44 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4d63ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d4d44,'accept',_0x5879f8);for(const _0x5da926 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4d63ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5da926,'accept',_0x5879f8);_0x4d63ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b4c36=>{_0x5290cf['model']['change'](_0x3ff40d=>{const _0x164196=Array['from'](_0x59252e['getRanges']())['map'](_0x284d6f=>_0x4b2c9['fromRange'](_0x284d6f));_0x3ff40d['setSelection'](_0x1b4c36),_0x5290cf['commands']['get']('mergeTableCells')['refresh'](),_0x5290cf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22121c=_0x164196['filter'](_0x442de4=>'$graveyard'!=_0x442de4['root']['rootName']);_0x22121c['length']>0x0&&_0x3ff40d['setSelection'](_0x22121c);for(const _0x241b33 of _0x164196)_0x241b33['detach']();});});for(const _0x3f799f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31f0f1=_0x5290cf['commands']['get'](_0x3f799f);_0x31f0f1['on']('set:isEnabled',(_0x1487e4,_0x3dfb46,_0x2f8743)=>{if(_0x2f8743){const _0x52e5ab=_0x5290cf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc1765d=>_0xc1765d['is']('element','tableCell'));this['_areMergableCells'](_0x31f0f1['value'],_0x52e5ab)||(_0x1487e4['return']=!0x1,_0x1487e4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x20f9d2=this['editor']['commands']['get']('mergeTableCells'),_0x12a3a5=this['editor']['plugins']['get']('TableUtils');if(!_0x20f9d2['isEnabled'])return!0x1;const _0xf61005=_0x12a3a5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1ff011 of _0xf61005)for(const _0x5bddae of _0xf61005)if(_0x1ff011!=_0x5bddae&&!this['_areMergableCells'](_0x1ff011,_0x5bddae))return!0x1;return!0x0;}['_areMergableCells'](_0x3df858,_0x20edf5){const _0x10e4a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41fc21=this['editor']['model']['createRangeOn'](_0x3df858),_0x259a37=this['editor']['model']['createRangeOn'](_0x20edf5),_0x1280e4=new Set(),_0x493f63=new Set();for(const _0x48689b of _0x10e4a1['getSuggestions']())if(('insertion'==_0x48689b['type']||'deletion'==_0x48689b['type']||'mergeTableCells'==_0x48689b['subType'])&&_0x48689b['isInContent']){for(const _0x4841e8 of _0x48689b['getRanges']())_0x4841e8['containsRange'](_0x41fc21,!0x0)&&_0x1280e4['add'](_0x48689b['type']+':'+_0x48689b['author']['id']),_0x4841e8['containsRange'](_0x259a37,!0x0)&&_0x493f63['add'](_0x48689b['type']+':'+_0x48689b['author']['id']);}if(_0x1280e4['size']!=_0x493f63['size'])return!0x1;for(const _0x3ab41e of _0x1280e4)if(!_0x493f63['has'](_0x3ab41e))return!0x1;return!0x0;}}class vt extends _0x34b1ca{static get['requires'](){return[Nt];}['afterInit'](){const _0x62fe0b=this['editor'];if(!_0x62fe0b['plugins']['has']('TableEditing'))return;const _0x143241=_0x62fe0b['locale'],_0x48c78a=_0x62fe0b['plugins']['get']('TrackChangesEditing');_0x48c78a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x48c78a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x48c78a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x143241,'FORMAT_HEADER_ROW')),_0x48c78a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x143241,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27937a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c1812=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x27937a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2c1812),_0x27937a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2c1812),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2d0745=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50425f=this['editor']['plugins']['get']('TableUtils');function _0x4a2710({showActiveMarker:_0x4628e6=!0x0,setDataAttribute:_0x59e36b=!0x0}={}){return(_0xe6cf24,_0x59b71e,_0x4ddc81)=>{const {type:_0xd1d34d,id:_0x5ab1a9}=_0x2d0745['_splitMarkerName'](_0x59b71e['markerName']);if(!_0x2d0745['hasSuggestion'](_0x5ab1a9))return;const _0x7981fc=_0x2d0745['getSuggestion'](_0x5ab1a9),_0x3b2cfb=_0x7981fc['data'];if('formatBlock'!=_0x7981fc['type']||!_0x3b2cfb||'setTableColumnHeader'!=_0x3b2cfb['commandName'])return;if(_0x59b71e['item'])return void _0xe6cf24['stop']();if(!_0x4ddc81['consumable']['consume'](_0x59b71e['markerRange'],_0xe6cf24['name']))return;const _0xbdfafc=_0x59b71e['markerRange']['start']['nodeAfter'],_0x5516a6=_0x59b71e['markerRange']['end']['nodeBefore'],_0x92e7bd=_0xbdfafc['parent']['parent'],{column:_0x4b1da5}=_0x50425f['getCellLocation'](_0xbdfafc),{column:_0xd6ae2}=_0x50425f['getCellLocation'](_0x5516a6);for(let _0x1c9529=_0x4b1da5;_0x1c9529<=_0xd6ae2;_0x1c9529++){const _0x587182=_0x50425f['createTableWalker'](_0x92e7bd,{'column':_0x1c9529,'includeAllSlots':!0x1});for(const _0x4f39be of _0x587182){const _0x2ea94a=_0x4f39be['cell'],_0x24f910=_0x4ddc81['mapper']['toViewElement'](_0x2ea94a);_0x4ddc81['writer']['addClass']('ck-suggestion-marker-'+_0xd1d34d,_0x24f910),_0x59e36b&&_0x4ddc81['writer']['setAttribute']('data-suggestion',_0x5ab1a9,_0x24f910),_0x4ddc81['mapper']['bindElementToMarker'](_0x24f910,_0x59b71e['markerName']),_0x4628e6&&(_0x2d0745['activeMarkers']['includes'](_0x59b71e['markerName'])?_0x4ddc81['writer']['addClass']('ck-suggestion-marker--active',_0x24f910):_0x4ddc81['writer']['removeClass']('ck-suggestion-marker--active',_0x24f910));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a2710(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x345679,_0x4c3391,_0x32094e)=>{_0x32094e['options']['showSuggestionHighlights']&&_0x4a2710({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x345679,_0x4c3391,_0x32094e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1b9820,_0x43193d,_0x5c1480)=>{const {type:_0xa49cf2,id:_0x37d0cb}=_0x2d0745['_splitMarkerName'](_0x43193d['markerName']);if(!_0x2d0745['hasSuggestion'](_0x37d0cb))return;const _0x8cea92=_0x2d0745['getSuggestion'](_0x37d0cb),_0x7d1bd3=_0x8cea92['data'];if('formatBlock'!=_0x8cea92['type']||!_0x7d1bd3||'setTableColumnHeader'!=_0x7d1bd3['commandName'])return;const _0x2929cc=_0x5c1480['mapper']['markerNameToElements'](_0x43193d['markerName']);if(_0x2929cc){for(const _0x1f35eb of _0x2929cc)_0x5c1480['writer']['removeClass']('ck-suggestion-marker-'+_0xa49cf2,_0x1f35eb),_0x5c1480['writer']['removeClass']('ck-suggestion-marker--active',_0x1f35eb),_0x5c1480['writer']['removeAttribute']('data-suggestion',_0x1f35eb),_0x5c1480['mapper']['unbindElementFromMarkerName'](_0x1f35eb,_0x43193d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xb4e47a=this['editor'],_0x21bc4e=_0xb4e47a['locale'];function _0x1c3d4e(_0x18eb82){return{'type':'format','content':o(_0x21bc4e,'*Format:*\x20%0',_0x18eb82)};}_0xb4e47a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d58f=>{if('formatBlock'!=_0x38d58f['type'])return;const {data:_0x4050e8}=_0x38d58f;if(_0x4050e8){if('setTableRowHeader'==_0x4050e8['commandName']){const _0x1dcd1f=_0x4050e8['commandParams'][0x0]['forceValue'];return _0x1c3d4e(o(_0x21bc4e,_0x1dcd1f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4050e8['commandName']){const _0x252b24=_0x4050e8['commandParams'][0x0]['forceValue'];return _0x1c3d4e(o(_0x21bc4e,_0x252b24?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x34b1ca{['afterInit'](){const _0x15186d=this['editor'],_0x155b20=_0x15186d['locale'],_0x2ade8c=_0x15186d['plugins']['get']('TrackChangesEditing');function _0x149cb0(_0x3eb272){return{'type':'format','content':''+o(_0x155b20,'*Set\x20table\x20type:*\x20%0',_0x3eb272)};}_0x15186d['plugins']['has']('TableLayout')&&(_0x2ade8c['enableCommand']('insertTableLayout'),_0x2ade8c['enableDefaultAttributesIntegration']('tableType'),_0x2ade8c['descriptionFactory']['registerElementLabel'](_0x1fab4a=>_0x1fab4a['is']('element','table')&&'layout'===_0x1fab4a['getAttribute']('tableType'),_0x3f7163=>o(_0x155b20,'ELEMENT_LAYOUT_TABLE',_0x3f7163)),_0x2ade8c['descriptionFactory']['registerDescriptionCallback'](_0x25195d=>{const {data:_0x3b404d}=_0x25195d;if(_0x3b404d&&'tableType'==_0x3b404d['key'])switch(_0x3b404d['newValue']){case'layout':return _0x149cb0(o(_0x155b20,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x149cb0(o(_0x155b20,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x40415d=>[_0x40415d,null]));class Bt extends _0x34b1ca{static get['requires'](){return[Nt];}['afterInit'](){const _0x4e105a=this['editor'];if(!_0x4e105a['plugins']['has']('TableClipboard'))return;const _0x4ab5ad=_0x4e105a['plugins']['get']('TrackChangesEditing'),_0x7d939b=_0x4e105a['plugins']['get']('TableUtils'),_0x4149ac=_0x4e105a['plugins']['get'](Nt),_0xdaa9e9=_0x4e105a['plugins']['get']('TableClipboard'),_0x6152de=_0x4e105a['plugins']['get']('TableSelection'),_0x5c472c=_0x4e105a['plugins']['get'](_0x2fc127);_0x4149ac['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4e105a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4e105a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x442f61=null,_0x6d6585=!0x1;_0x5c472c['on']('contentInsertion',(_0x475ae5,_0x1d9906)=>{_0x6d6585='paste'===_0x1d9906['method'];}),_0x4e105a['model']['on']('insertContent',(_0x314e73,_0x3138d3)=>{if(!_0x6d6585&&null===_0x6152de['getSelectedTableCells']())return;const [_0x264206,_0x42a0f0]=_0x3138d3,_0x560afe=_0x3138d3[_0x3138d3['length']-0x1];_0x560afe&&_0x560afe['forceDefaultExecution']||_0x4ab5ad['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x400cbb,_0x37a104,_0x31f7b3,_0xf1de81,_0x4e4521){if(_0x37a104&&!_0x37a104['is']('documentSelection'))return!0x1;const _0x2f329e=_0x4e4521['getTableIfOnlyTableInContent'](_0x400cbb,_0x31f7b3);if(!_0x2f329e||!Oe(_0x2f329e,void 0x0,_0xf1de81))return!0x1;const _0x4bd2cf=_0xf1de81['getSelectionAffectedTableCells'](_0x31f7b3['document']['selection']);if(!_0x4bd2cf['length'])return!0x1;const _0x2b8049=_0x4bd2cf[0x0]['findAncestor']('table'),_0xedaeed=_0xf1de81['getRowIndexes'](_0x4bd2cf),_0xf0eab7=_0xf1de81['getColumnIndexes'](_0x4bd2cf),_0x51dec5={'startRow':_0xedaeed['first'],'endRow':_0xedaeed['last'],'startColumn':_0xf0eab7['first'],'endColumn':_0xf0eab7['last']};return 0x1==_0x4bd2cf['length']&&(_0x51dec5['endRow']+=_0xf1de81['getRows'](_0x2f329e)-0x1,_0x51dec5['endColumn']+=_0xf1de81['getColumns'](_0x2f329e)-0x1),Oe(_0x2b8049,_0x51dec5,_0xf1de81);}(_0x264206,_0x42a0f0,_0x4e105a['model'],_0x7d939b,_0xdaa9e9)&&(_0x314e73['stop'](),_0x442f61={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e105a['model']['change'](()=>{_0x4e105a['model']['insertContent'](_0x3138d3[0x0],_0x3138d3[0x1],_0x3138d3[0x2],{'forceDefaultExecution':!0x0});const _0x45887a=_0x632a3(),{rowInsertionRanges:_0x51a115,columnInsertionRanges:_0x1b3e33,insertionRanges:_0x4d93ad,deletionRanges:_0x5bd886,cells:_0x368a85}=_0x442f61;_0x51a115['length']&&_0x4ab5ad['markMultiRangeInsertion'](_0x51a115,'tablePasteRow',{'tablePasteChainId':_0x45887a}),_0x1b3e33['length']&&_0x4ab5ad['markMultiRangeInsertion'](_0x1b3e33,'tablePasteColumn',{'tablePasteChainId':_0x45887a}),_0x4d93ad['length']&&(_0x4ab5ad['markMultiRangeInsertion'](_0x4d93ad,'tablePaste',{'tablePasteChainId':_0x45887a,'skipNestingCheck':!0x0}),_0x4d93ad['forEach'](_0x40f272=>_0x40f272['detach']?.())),_0x5bd886['length']&&(_0x4ab5ad['markMultiRangeDeletion'](_0x5bd886,'tablePaste',{'tablePasteChainId':_0x45887a,'skipNestingCheck':!0x0}),_0x5bd886['forEach'](_0xd51710=>_0xd51710['detach']?.()));const _0x287caa=_0x4ab5ad['markMultiRangeBlockFormat'](_0x368a85['map'](({element:_0x57a262})=>_0x57a262),{'formatGroupId':_0x632a3()},[],'tablePasteCell',{'tablePasteChainId':_0x45887a});if(_0x287caa){const _0x457e1f=_0x287caa['getMarkers'](),_0x355f7b=[];for(const {element:_0x963c3,attributes:_0x1e1f79}of _0x368a85){if(!_0x1e1f79)continue;const _0x4ea9e6=_0x4e105a['model']['createRangeOn'](_0x963c3),_0x14e7b8=_0x457e1f['find'](_0xba507c=>_0xba507c['getRange']()['isEqual'](_0x4ea9e6));_0x14e7b8&&_0x355f7b['push']([_0x14e7b8['name'],_0x1e1f79]);}_0x355f7b['length']&&_0x287caa['setAttribute']('markerAttributes',Object['fromEntries'](_0x355f7b));}_0x442f61=null;}));},{'priority':_0x294cc6['high']+0xa}),_0x5c472c['on']('contentInsertion',()=>{_0x6d6585=!0x1;},{'priority':'lowest'}),_0x4e105a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe046c9,_0x5153f9)=>{const [_0x2c36ce,_0x21486a,,_0x31a236]=_0x5153f9;if(!_0x442f61)return;_0xe046c9['stop']();const _0x3a47bd=_0x2c36ce['cell'],_0x39d5a7=_0x21486a,_0x1a3cd8=Be(_0x3a47bd),_0x4d3db2=Be(_0x39d5a7);_0xe046c9['return']=_0x3a47bd;let _0xc24ef6=null,_0x21edbd=null;if(_0x4d3db2||_0x1a3cd8){if(_0x1a3cd8&&!_0x4d3db2){_0x31a236['remove'](_0x3a47bd['getChild'](0x0));for(const _0xa776e of Array['from'](_0x39d5a7['getChildren']()))_0x31a236['insert'](_0xa776e,_0x3a47bd,'end');const _0x51598e=_0x442f61['rowInsertionIndexes']['includes'](_0x2c36ce['row']),_0x96a954=_0x442f61['columnInsertionIndexes']['includes'](_0x2c36ce['column']);_0x51598e||_0x96a954||(_0xc24ef6=_0x4b2c9['fromRange'](_0x31a236['createRangeIn'](_0x3a47bd)));}else _0x4d3db2&&!_0x1a3cd8&&(_0x21edbd=_0x31a236['createRangeIn'](_0x3a47bd));}else{const _0x1bcb88=_0x31a236['createElement']('tableCellSuggestion'),_0x2764f3=_0x31a236['createElement']('tableCellSuggestion');_0x31a236['wrap'](_0x31a236['createRangeIn'](_0x3a47bd),_0x2764f3),_0x31a236['insert'](_0x1bcb88,_0x3a47bd,0x0);for(const _0x1a49b3 of Array['from'](_0x39d5a7['getChildren']()))_0x31a236['insert'](_0x1a49b3,_0x1bcb88,'end');_0xc24ef6=_0x4b2c9['fromRange'](_0x31a236['createRangeOn'](_0x1bcb88)),_0x21edbd=_0x4b2c9['fromRange'](_0x31a236['createRangeOn'](_0x2764f3));}const _0x40593b=Array['from'](_0x39d5a7['getAttributes']())['filter'](([_0x32c8bb])=>Re['includes'](_0x32c8bb));_0x442f61['cells']['push']({'element':_0x3a47bd,'attributes':_0x40593b['length']?Object['fromEntries'](_0x40593b):null}),_0xc24ef6&&_0x442f61['insertionRanges']['push'](_0xc24ef6),_0x21edbd&&_0x442f61['deletionRanges']['push'](_0x21edbd);},{'priority':'high'}),_0x7d939b['on']('insertColumns',(_0x39bd67,_0x396b75)=>{const [_0x5e42e1,_0x282a2b={}]=_0x396b75;if(!_0x442f61)return;const _0x365358=_0x282a2b['at']||0x0,_0x37243a=_0x282a2b['columns']||0x1;_0x442f61['columnInsertionIndexes']=new Array(_0x37243a)['fill'](_0x365358)['map']((_0x3722eb,_0x2c92a6)=>_0x3722eb+_0x2c92a6);for(const {cell:_0x2cb1e8}of _0x7d939b['createTableWalker'](_0x5e42e1,{'startColumn':_0x365358,'endColumn':_0x365358+_0x37243a-0x1}))_0x442f61['columnInsertionRanges']['push'](_0x4e105a['model']['createRangeOn'](_0x2cb1e8));},{'priority':'low'}),_0x7d939b['on']('insertRows',(_0x27ce0b,_0x2fb497)=>{const [_0x339421,_0x13cf5c={}]=_0x2fb497;if(!_0x442f61)return;const _0xdd992f=_0x13cf5c['at']||0x0,_0x4696e5=_0x13cf5c['rows']||0x1;_0x442f61['rowInsertionIndexes']=new Array(_0x4696e5)['fill'](_0xdd992f)['map']((_0x239591,_0x2df7cb)=>_0x239591+_0x2df7cb);for(const {cell:_0x274aa6}of _0x7d939b['createTableWalker'](_0x339421,{'startRow':_0xdd992f,'endRow':_0xdd992f+_0x4696e5-0x1}))_0x442f61['rowInsertionRanges']['push'](_0x4e105a['model']['createRangeOn'](_0x274aa6));},{'priority':'low'}),_0x4ab5ad['descriptionFactory']['registerDescriptionCallback'](_0x2485f1=>{if(_0x2485f1['subType']&&_0x2485f1['subType']['startsWith']('tablePaste'))return _0x2485f1['previous']?{}:{'type':'insertion','content':o(_0x4e105a['locale'],'*Replace\x20table\x20cells*')};});const _0x4df058=()=>!0x1;for(const _0x48c707 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('insertion',_0x48c707,'join',_0x4df058),_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('deletion',_0x48c707,'join',_0x4df058),_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48c707,'join',_0x4df058);_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4df058),_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc8eb4a,_0x5ca237,_0x4643bf)=>{const _0x3be324=_0xc8eb4a['map'](_0x4e41f4=>_0x4e41f4['getContainedElement']())['filter'](_0x2d4617=>_0x2d4617),_0x3833cf=new Map(_0x3be324['map'](_0x53e975=>[_0x53e975,null]));if(_0x442f61){for(const {element:_0x6f9fdb,attributes:_0x15a938}of _0x442f61['cells'])_0x15a938&&_0x3833cf['set'](_0x6f9fdb,_0x15a938);}else{if(_0x4643bf&&_0x4643bf['markerAttributes'])for(const [_0x20a695,_0x308174]of Object['entries'](_0x4643bf['markerAttributes'])){const _0x57d25c=_0x4e105a['model']['markers']['get'](_0x20a695),_0x213264=_0x57d25c?_0x57d25c['getRange']()['getContainedElement']():null;_0x213264&&_0x3833cf['set'](_0x213264,_0x308174);}}_0x4e105a['model']['change'](_0x2a54c7=>{for(const [_0x54d384,_0x5bc767]of _0x3833cf)_0x2a54c7['setAttributes']({...Ae,..._0x5bc767},_0x54d384);});});const _0x35be56=(_0x2b0b88,_0x43b757)=>{_0x4ab5ad['_suggestionFactory']['registerCustomCallback'](_0x2b0b88,'tablePaste',_0x43b757,(_0x2d0800,_0x1a0053,_0x47b305)=>{_0x4e105a['model']['change'](_0x4d81c0=>{const _0x1a5bbf=[];for(const _0x495c1b of _0x2d0800){const _0x46897b=_0x495c1b['start']['nodeAfter'];_0x46897b['is']('element','tableCellSuggestion')&&_0x1a5bbf['push'](_0x46897b);}_0x4ab5ad['_suggestionFactory']['getSuggestionCallback'](_0x2b0b88,null,_0x43b757)(_0x2d0800,_0x1a0053,_0x47b305);for(const _0x2ff469 of _0x1a5bbf)'$graveyard'!=_0x2ff469['root']['rootName']&&_0x4d81c0['unwrap'](_0x2ff469);});});};_0x35be56('insertion','accept'),_0x35be56('insertion','discard'),_0x35be56('deletion','accept'),_0x35be56('deletion','discard'),_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x579252=>{const _0x226b15=_0x579252['map'](_0x48c8d2=>_0x48c8d2['getContainedElement']()),_0x31893a=_0x226b15[0x0]['findAncestor']('table'),{minRow:_0x483c93,maxRow:_0x6b480f}=_0x4149ac['_getCoordsForCells'](_0x226b15);_0x7d939b['removeRows'](_0x31893a,{'at':_0x483c93,'rows':_0x6b480f-_0x483c93+0x1});}),_0x4ab5ad['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x54c027=>{const _0x54f24b=_0x54c027['map'](_0x575ef6=>_0x575ef6['getContainedElement']()),_0x4886df=_0x54f24b[0x0]['findAncestor']('table'),{minColumn:_0x21ee04,maxColumn:_0x4b1e1b}=_0x4149ac['_getCoordsForCells'](_0x54f24b);_0x7d939b['removeColumns'](_0x4886df,{'at':_0x21ee04,'columns':_0x4b1e1b-_0x21ee04+0x1});});const _0x18a395=(_0x1b7932,_0x117d82)=>{if(!_0x117d82['subType']||!_0x117d82['subType']['startsWith']('tablePaste'))return;const _0xb9a332=_0x117d82['attributes']['tablePasteChainId'],_0x444a30=_0x4ab5ad['getSuggestions']()['filter'](_0x4b3d78=>_0x4b3d78['isInContent']&&_0x4b3d78['attributes']&&_0x4b3d78['attributes']['tablePasteChainId']==_0xb9a332);_0x444a30['length']&&_0x117d82['getAllAdjacentSuggestions']()['length']!=_0x444a30['length']&&_0x444a30['reduce']((_0xfdf1d5,_0x84010a)=>(_0xfdf1d5['next']=_0x84010a,_0x84010a['previous']=_0xfdf1d5,_0x84010a));};function _0x8ca8c(_0x5d68c2,_0x46435c=!0x0){const {id:_0x3522e3,authorId:_0x933bc}=_0x4ab5ad['_splitMarkerName'](_0x5d68c2['markerName']),_0x3e6bee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1afe15=_0x4ab5ad['activeMarkers']['includes'](_0x5d68c2['markerName']);return _0x1afe15&&_0x3e6bee['push']('ck-suggestion-marker--active'),{'classes':_0x3e6bee,'attributes':{'data-suggestion':_0x3522e3,'data-author-id':_0x933bc},'priority':_0x1afe15&&_0x46435c?0xbc2:0xbb8};}_0x4ab5ad['on']('suggestionLoaded',_0x18a395,{'priority':'high'}),_0x4ab5ad['on']('suggestionUnloaded',_0x18a395,{'priority':'high'}),_0x4e105a['model']['document']['registerPostFixer'](()=>{let _0x55de08=!0x1;const _0xa8d2a5=Array['from'](_0x4e105a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x321849,data:_0x2234e2}of _0xa8d2a5){const {group:_0x248725,type:_0x52bb26,id:_0x253605}=_0x4ab5ad['_splitMarkerName'](_0x321849);if('suggestion'!=_0x248725||'deletion'!=_0x52bb26||_0x2234e2['oldRange'])continue;if(!_0x4ab5ad['hasSuggestion'](_0x253605))continue;const _0x516f38=_0x4ab5ad['getSuggestion'](_0x253605)['getRanges'](),_0x56bee5=_0x4e105a['plugins']['get']('Users')['me'];for(const _0x29dded of _0x4ab5ad['getSuggestions']()){if(!_0x29dded['isInContent']||_0x29dded['author']!=_0x56bee5)continue;if('formatBlock'!=_0x29dded['type']||'tablePasteCell'!=_0x29dded['subType'])continue;if(_0x29dded['getRanges']()['every'](_0x370f27=>_0x516f38['some'](_0x53c87=>_0x53c87['containsRange'](_0x370f27,!0x0)))){for(const _0x2d1796 of _0x29dded['getAllAdjacentSuggestions']())_0x2d1796['isInContent']&&(_0x2d1796['discard'](),_0x55de08=!0x0);}}}return _0x55de08;}),_0x4e105a['model']['document']['registerPostFixer'](_0x34e67a=>{const _0xe123d9=_0x4e105a['commands']['get']('redo');if(!_0xe123d9||!_0xe123d9['_createdBatches']['has'](_0x34e67a['batch']))return!0x1;let _0x5ee627=!0x1;const _0x5ab68f=_0x4e105a['plugins']['get']('Users')['me'],_0x536a84=_0x4e105a['model']['document']['differ']['getChanges'](),_0x51576e=Array['from'](_0x4e105a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1df804,data:_0x101134})=>{const {group:_0x503e9f,subType:_0x1af559,authorId:_0x248c3d}=_0x4ab5ad['_splitMarkerName'](_0x1df804);return'suggestion'==_0x503e9f&&'tablePaste'==_0x1af559&&_0x248c3d==_0x5ab68f['id']&&!_0x101134['oldRange'];});for(const _0x257402 of _0x536a84){if('insert'!=_0x257402['type']||'tableCellSuggestion'!=_0x257402['name']||0x1!=_0x257402['length'])continue;const _0x30c926=_0x34e67a['createRange'](_0x257402['position'],_0x257402['position']['getShiftedBy'](0x1));if(!_0x51576e['find'](({data:_0x4f6b39})=>_0x4f6b39['newRange']['isEqual'](_0x30c926))){for(const {name:_0x7c6ebd,data:_0x5db035}of _0x51576e)if(_0x30c926['containsRange'](_0x5db035['newRange'])){_0x34e67a['updateMarker'](_0x7c6ebd,{'range':_0x30c926}),_0x5ee627=!0x0;break;}}}return _0x5ee627;}),_0x4e105a['model']['document']['registerPostFixer'](_0x28053b=>{let _0x520490=!0x1;const _0x10a333=_0x4e105a['plugins']['get']('Users')['me'],_0x17ec17=_0x4ab5ad['getSuggestions']()['filter'](_0xb6d27a=>_0xb6d27a['isInContent']&&_0xb6d27a['author']==_0x10a333),_0x191dd2=new Set(),_0x5dc00d=new Set();for(const _0x40cd83 of _0x17ec17)if('tablePaste'==_0x40cd83['subType'])for(const _0x2c1751 of _0x40cd83['getMarkers']()){const _0x450b04=_0x2c1751['getRange']()['getContainedElement']();if(_0x450b04){if(_0x450b04['is']('element','tableCellSuggestion')&&Be(_0x450b04)){_0x40cd83['removeMarker'](_0x2c1751['name']),_0x191dd2['add'](_0x450b04),_0x520490=!0x0;const _0x46d819=_0x450b04['nextSibling'],_0x2770ce=_0x450b04['previousSibling'],_0x5ea816=_0x46d819&&_0x46d819['is']('element','tableCellSuggestion'),_0x455549=_0x2770ce&&_0x2770ce['is']('element','tableCellSuggestion');_0x5ea816&&!_0x191dd2['has'](_0x46d819)&&_0x5dc00d['add'](_0x46d819),_0x455549&&!_0x191dd2['has'](_0x2770ce)&&_0x5dc00d['add'](_0x2770ce);}else _0x450b04['is']('element','paragraph')&&_0x450b04['isEmpty']&&(_0x40cd83['removeMarker'](_0x2c1751['name']),_0x520490=!0x0);}}else{if('tablePasteCell'==_0x40cd83['subType']){if(!_0x40cd83['attributes']||!_0x40cd83['attributes']['tablePasteChainId'])continue;const _0x388ab9=_0x40cd83['attributes']['markerAttributes'];if(_0x388ab9&&Object['keys'](_0x388ab9)['length'])continue;const _0x1ea7b7=_0x40cd83['attributes']['tablePasteChainId'];let _0x52d2ff=!0x0,_0x541388=!0x0;for(const _0x4ffd6c of _0x17ec17)if(_0x4ffd6c['subType']&&_0x4ffd6c['subType']['startsWith']('tablePaste')){if(!_0x4ffd6c['attributes']['tablePasteChainId']){_0x541388=!0x1;break;}if(_0x4ffd6c['id']!=_0x40cd83['id']&&_0x4ffd6c['attributes']['tablePasteChainId']==_0x1ea7b7){_0x52d2ff=!0x1;break;}}_0x541388&&_0x52d2ff&&(_0x40cd83['removeMarkers'](),_0x520490=!0x0);}}for(const _0x42ed5f of _0x191dd2)_0x28053b['remove'](_0x42ed5f);for(const _0x1cf156 of _0x5dc00d)_0x28053b['unwrap'](_0x1cf156);return _0x520490;}),_0x4e105a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x284c63=>_0x8ca8c(_0x284c63),'converterPriority':'high'}),_0x4e105a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x397a26,_0x2573c1)=>_0x2573c1['options']['showSuggestionHighlights']?_0x8ca8c(_0x397a26,!0x1):null,'converterPriority':'high'});const _0x3a9006=_0x4e105a['editing']['view'];this['listenTo'](_0x3a9006['document'],'clipboardOutput',(_0x4c63e7,_0xb0a516)=>{const _0x3387aa=[];for(const _0x43340c of _0x3a9006['createRangeIn'](_0xb0a516['content'])['getItems']())_0x43340c['is']('element','suggestion-td')&&_0x3387aa['push'](_0x43340c);_0x3a9006['change'](_0x46abb3=>{for(const _0x3f5b28 of _0x3387aa)_0x46abb3['move'](_0x46abb3['createRangeIn'](_0x3f5b28),_0x46abb3['createPositionBefore'](_0x3f5b28)),_0x46abb3['remove'](_0x3f5b28);});});}}function Be(_0x45771d){if(_0x45771d['isEmpty'])return!0x0;const _0x730673=_0x45771d['getChild'](0x0);return _0x730673['is']('element','paragraph')&&_0x730673['isEmpty'];}function Oe(_0x2a295,_0x5975a0={},_0x2d9738){for(const {isAnchor:_0x4e07dd,cellHeight:_0x4b707d,cellWidth:_0x33c84f}of _0x2d9738['createTableWalker'](_0x2a295,{'includeAllSlots':!0x0,..._0x5975a0}))if(!_0x4e07dd||0x1!=_0x4b707d||0x1!=_0x33c84f)return!0x1;return!0x0;}class Ot extends _0x34b1ca{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa84809=this['editor']['plugins']['get']('TrackChangesEditing');_0xa84809['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa84809['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa84809['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa84809['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa84809['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa84809['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x45733a,_0x55a1d4){const _0x3efea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x112d44=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13432b=_0x55a1d4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5699ea=_0x112d44['getColumnGroupElement'](_0x13432b);let _0x13c1a1=_0x5699ea?_0x112d44['getTableColumnsWidths'](_0x5699ea):null,_0x2e70c7=_0x13432b['getAttribute']('tableWidth')||null;const _0x5543e8=_0x55a1d4['tableWidth']||_0x2e70c7,_0x2a36af=_0x55a1d4['columnWidths']||_0x13c1a1,_0x1b7d18=this['editor']['plugins']['get']('Users')['me'];for(const _0x155c02 of _0x3efea['getSuggestions']()){const _0x2fcc1e=_0x155c02['getContainedElement']();if('resizeTable'===_0x155c02['subType']&&_0x2fcc1e===_0x13432b){_0x155c02['author']!==_0x1b7d18&&_0x155c02['discard']();const _0x2ea33d=_0x155c02['data']['commandParams'];_0x2e70c7=_0x2ea33d[0x0]['tableWidth'],_0x13c1a1=_0x2ea33d[0x0]['columnWidths'];break;}}_0x45733a({'table':_0x13432b,'tableWidth':_0x5543e8,'columnWidths':_0x2a36af}),_0x3efea['markBlockFormat'](_0x13432b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2e70c7,'columnWidths':_0x13c1a1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xce1357){if('formatBlock'!=_0xce1357['type']&&'formatInline'!=_0xce1357['type'])return;const {data:_0x5614ed}=_0xce1357;if(_0x5614ed&&'resizeTable'===_0x5614ed['formatGroupId']){const _0x3b5c6c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3b5c6c)};}}}class xt extends _0x34b1ca{['afterInit'](){const _0x27b6d2=this['editor'];_0x27b6d2['plugins']['has']('Template')&&_0x27b6d2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x34b1ca{['afterInit'](){const _0x2590b8=this['editor'];if(!_0x2590b8['commands']['get']('insertTableOfContents'))return;_0x2590b8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2b2222=_0x2590b8['plugins']['get']('TrackChangesEditing'),_0x5cf2f4=_0x2590b8['locale'];_0x2b2222['descriptionFactory']['registerElementLabel']('tableOfContents',_0xa069a4=>o(_0x5cf2f4,'ELEMENT_TABLE_OF_CONTENTS',_0xa069a4));}}class Rt extends _0x34b1ca{['afterInit'](){const _0x389faa=this['editor'];if(!_0x389faa['plugins']['has']('Title'))return;const _0x1898a6=_0x389faa['plugins']['get']('TrackChangesEditing');_0x1898a6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x389faa['locale'],'ELEMENT_TITLE')),_0x389faa['model']['document']['registerPostFixer'](_0x6150d8=>{let _0xa46732=!0x1;const _0x508681=Array['from'](_0x389faa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c0a16,data:_0x44eda3}of _0x508681){const {group:_0x1ffe2c}=_0x1898a6['_splitMarkerName'](_0x1c0a16);if('suggestion'!==_0x1ffe2c||!_0x44eda3['newRange'])continue;const _0xdac6c=_0x44eda3['newRange'],_0x378ae4=_0xdac6c['end']['nodeBefore'];if(!_0x378ae4||!_0x378ae4['is']('element','title-content'))continue;if(!_0xdac6c['start']['isTouching'](_0xdac6c['end']))continue;const _0x5b1f1e=_0x389faa['model']['schema']['getNearestSelectionRange'](_0xdac6c['end'],'forward');if(_0x5b1f1e&&_0x5b1f1e['isCollapsed']){const _0x1ad551=_0x6150d8['createRange'](_0xdac6c['start'],_0x5b1f1e['start']);_0x1ad551['isEqual'](_0xdac6c)||(_0x6150d8['updateMarker'](_0x1c0a16,{'range':_0x1ad551}),_0xa46732=!0x0);}_0xa46732||(_0x6150d8['removeMarker'](_0x1c0a16),_0xa46732=!0x0);}return _0xa46732;});}}class Tt extends _0x34b1ca{['afterInit'](){const _0x3c150c=this['editor'],_0x254249=_0x3c150c['plugins']['get']('TrackChangesEditing');_0x3c150c['plugins']['has']('Uploadcare')&&(_0x254249['enableCommand']('uploadcare'),_0x3c150c['plugins']['has']('UploadcareImageEdit')&&(_0x254249['enableCommand']('uploadcareImageEdit'),_0x254249['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x254249['descriptionFactory']['registerDescriptionCallback'](_0x5ec074=>{if('attribute'!=_0x5ec074['type'])return;const {data:_0x4d7c89}=_0x5ec074;return _0x4d7c89&&'uploadcareImageId'==_0x4d7c89['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x34b1ca{['afterInit'](){const _0x1c13ee=this['editor'],_0x3af24d=_0x1c13ee['plugins']['get']('TrackChangesEditing');_0x1c13ee['plugins']['has']('UndoEditing')&&(_0x3af24d['enableCommand']('undo'),_0x3af24d['enableCommand']('redo'));}}class Ut extends _0x34b1ca{static get['requires'](){return[Nt];}['afterInit'](){const _0x59f625=this['editor'];if(!_0x59f625['plugins']['has']('TableCaptionEditing'))return;_0x59f625['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x34b1ca{['tableProperties'];['tableCellProperties'];constructor(_0x5bb598){super(_0x5bb598),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5734b5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1f970a of this['tableProperties'])_0x5734b5['enableCommand'](_0x1f970a,(_0x5c1114,_0x1788e5)=>{const _0x3861a4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1f970a,[_0x3861a4],this['tableProperties'],'tableProperties',_0x5c1114,_0x1788e5);});_0x5734b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5734b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5734b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40540a,_0x5568eb)=>this['handleDiscardAction'](this['tableProperties'],_0x40540a,_0x5568eb)),_0x5734b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x262ac7 of this['tableCellProperties'])this['editor']['commands']['get'](_0x262ac7)&&_0x5734b5['enableCommand'](_0x262ac7,(_0x494004,_0x1e5d4b)=>{const _0x13cb3c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x262ac7,_0x13cb3c,this['tableCellProperties'],'tableCellProperties',_0x494004,_0x1e5d4b);});_0x5734b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5734b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5734b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xdd0fc6,_0x199331)=>this['handleDiscardAction'](this['tableCellProperties'],_0xdd0fc6,_0x199331)),_0x5734b5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x5734b5['registerBlockAttribute']('tableCellType'),_0x5734b5['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x5734b5['descriptionFactory']['registerDescriptionCallback'](_0x277a4c=>this['handleSuggestionDescription'](_0x277a4c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x12c9ee,_0x4c7cfb,_0x537ce1,_0x274fd9,_0x721b1,_0x2340be){const _0x2dcd27=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2340be['batch'],()=>{for(const _0x19c4ba of _0x4c7cfb){if(this['_getSuggestion'](_0x19c4ba,_0x274fd9))_0x721b1(_0x2340be);else{const _0x5a5cb6={};for(const _0x1ea16d of _0x537ce1){const _0x1bdc61=_0x19c4ba['getAttribute'](_0x1ea16d);void 0x0!==_0x1bdc61&&(_0x5a5cb6[_0x1ea16d]=_0x1bdc61);}_0x721b1(_0x2340be),_0x2dcd27['markBlockFormat'](_0x19c4ba,{'commandParams':[_0x5a5cb6]},[],_0x274fd9);}}});}['handleDiscardAction'](_0x503d3f,_0x26695c,_0x46c1b5){const _0x5e994e=_0x26695c[0x0]['start']['nodeAfter'],_0x5bdfef=_0x46c1b5['commandParams'][0x0];this['editor']['model']['change'](_0x1b8762=>{for(const _0x20c558 of _0x503d3f)void 0x0!==_0x5bdfef[_0x20c558]?_0x1b8762['setAttribute'](_0x20c558,_0x5bdfef[_0x20c558],_0x5e994e):_0x1b8762['removeAttribute'](_0x20c558,_0x5e994e);});}['handleSuggestionDescription'](_0x37d630){if(_0x37d630['data'])switch(_0x37d630['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'](_0x109a2e,_0x1a1e2c){const _0x2635c5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3b9b93 of _0x2635c5['getSuggestions']({'skipNotAttached':!0x0})){const _0x11ea57=_0x3b9b93['getContainedElement']();if(_0x3b9b93['subType']===_0x1a1e2c&&_0x11ea57===_0x109a2e)return _0x3b9b93;}return null;}['_registerTablePropertiesAttributes'](){const _0x5688c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d236f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x29a31c of _0x1d236f){const _0x324517=_0x29a31c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5688c4['descriptionFactory']['registerAttributeLabel'](_0x29a31c,o(this['editor']['locale'],'FORMAT_'+_0x324517));}}}class Ft extends _0x34b1ca{['afterInit'](){const _0x270957=this['editor'];if(!_0x270957['plugins']['has']('LineHeight'))return;const _0x26209a=_0x270957['plugins']['get']('TrackChangesEditing'),_0x18e709=_0x270957['locale'];_0x26209a['enableDefaultAttributesIntegration']('lineHeight'),_0x26209a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x18e709,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x34b1ca{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x223080,_0x2270a1,_0x84e023,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4119d3){super(_0x4119d3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c78db,_0x58a283,_0x4ffa39,_0x10b21e)=>{this['_model']['change'](()=>{for(const _0x18a391 of[..._0x10b21e,..._0x4ffa39])this['_model']['markers']['has'](_0x18a391)&&_0x4119d3['editing']['reconvertMarker'](_0x18a391);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4119d3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4119d3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4119d3['config']['get']('trackChanges.trackFormatChanges'),_0x4119d3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4119d3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4119d3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3341e7=this['editor'];_0x3341e7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb8583d,{writer:_0x2e3925})=>{let _0x45a774='suggestion:'+_0xb8583d['getAttribute']('suggestion-type')+':'+_0xb8583d['getAttribute']('id');return _0xb8583d['getAttribute']('marker-count')&&(_0x45a774+=':'+_0xb8583d['getAttribute']('marker-count')),_0x2e3925['createElement']('$marker',{'data-name':_0x45a774});}}),_0x3341e7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3341e7['model']['document']['registerPostFixer'](_0x1e80b2=>{let _0x4457b3=!0x1;const _0x13915b=Array['from'](_0x3341e7['model']['document']['differ']['getChangedMarkers']()),_0x3bb31b=new Set();for(const {name:_0x4dac5b,data:_0x5f476c}of _0x13915b){const {group:_0x3aa11c,type:_0x554d68,subType:_0x3beeb1,id:_0x4cd4ba}=this['_splitMarkerName'](_0x4dac5b);if('suggestion'!==_0x3aa11c)continue;const _0x157b0e=_0x3beeb1?'suggestion:'+_0x554d68+':'+_0x3beeb1+':'+_0x4cd4ba:'suggestion:'+_0x554d68+':'+_0x4cd4ba,_0x545ff7=_0x3341e7['model']['markers']['getMarkersGroup'](_0x157b0e),_0x1ac433=_0x3341e7['model']['markers']['get'](_0x4dac5b),_0x2ca8b5=this['_suggestions']['get'](_0x4cd4ba);if(null!=_0x5f476c['newRange']){'formatInline'==_0x554d68&&(_0x4457b3=_0x4457b3||Wt(_0x5f476c['newRange'],_0x4dac5b,_0x1e80b2,_0x3341e7['model']['schema']));const _0x119002='attribute'==_0x554d68&&this['_isBlockAttribute'](_0x3beeb1['split']('|')[0x0]),_0x24c5b3='attribute'==_0x554d68&&this['_isInlineAttribute'](_0x3beeb1['split']('|')[0x0]);if(_0x5f476c['newRange']['isCollapsed']||'$graveyard'==_0x5f476c['newRange']['root']['rootName']||'formatBlock'==_0x554d68&&!Qt(_0x5f476c['newRange'])||_0x119002&&!Qt(_0x5f476c['newRange'])||_0x24c5b3&&Xt(_0x5f476c['newRange'])||'deletion'==_0x554d68&&Xt(_0x5f476c['newRange'])||_0x1ac433&&Yt(_0x1ac433,_0x545ff7))_0x1e80b2['removeMarker'](_0x4dac5b),_0x4457b3=!0x0;else{if(!_0x2ca8b5||!_0x2ca8b5['isInContent'])continue;if(_0x5f476c['newRange']&&_0x5f476c['oldRange']&&_0x5f476c['newRange']['isEqual'](_0x5f476c['oldRange']))continue;_0x3bb31b['add'](_0x2ca8b5);}}}return _0x3bb31b['size']>0x0&&(_0x4457b3=!!this['_joinWithAdjacentSuggestions'](_0x3bb31b)||_0x4457b3),_0x4457b3;}),_0x3341e7['model']['document']['registerPostFixer'](_0x4238a6=>{let _0x245a5c=!0x1;for(const _0x5f457d of _0x3341e7['model']['document']['differ']['getChanges']())if('insert'==_0x5f457d['type'])for(const _0x4d661a of this['_suggestions']['values']()){if(_0x4d661a['isMultiRange']||!_0x4d661a['isInContent'])continue;const _0x5585fe='formatBlock'==_0x4d661a['type'],_0x481880=this['_getAttributeKey'](_0x4d661a),_0x24005f=_0x481880&&this['_isBlockAttribute'](_0x481880);if(!_0x5585fe&&!_0x24005f)continue;const _0x58642a=_0x4d661a['getFirstRange']();if(_0x58642a['start']['parent']!=_0x58642a['end']['parent']&&!_0x58642a['end']['isAtEnd']){const _0x41e219=_0x3341e7['model']['createPositionAt'](_0x58642a['start']['nodeAfter'],'end'),_0x4b6344=_0x3341e7['model']['createRange'](_0x58642a['start'],_0x41e219);_0x4238a6['updateMarker'](_0x4d661a['getFirstMarker'](),{'range':_0x4b6344}),_0x245a5c=!0x0;}}return _0x245a5c;}),_0x3341e7['model']['document']['registerPostFixer'](_0x4e8e72=>this['_processAttributeChanges'](_0x4e8e72)),_0x3341e7['model']['document']['registerPostFixer'](_0x367b80=>!_0x367b80['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x367b80)),_0x3341e7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3341e7['model']['document']['on']('change:data',(_0x4bdc2f,_0x7aa91f)=>{if(!_0x7aa91f['isLocal']||_0x7aa91f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x59060b=_0x3341e7['model']['document']['differ']['getChanges']();if(0x0==_0x59060b['length'])return;const _0x541fff=[],_0x29546d=_0x59060b['filter'](_0x2e203f=>'attribute'==_0x2e203f['type']),_0x55758b=_0x59060b['filter'](_0x2e9a9a=>'insert'==_0x2e9a9a['type']&&'$text'!=_0x2e9a9a['name']);for(const _0x3a8c4f of _0x29546d)this['_isRegisteredAttribute'](_0x3a8c4f['attributeKey'])&&_0x541fff['push']({'key':_0x3a8c4f['attributeKey'],'newValue':_0x3a8c4f['attributeNewValue'],'oldValue':_0x3a8c4f['attributeOldValue'],'range':Zt(_0x3a8c4f['range'],_0x3341e7['model'])});for(const _0x28a4a4 of _0x55758b){if('rename'!=_0x28a4a4['action']&&'refresh'!=_0x28a4a4['action'])continue;const _0x3aaa3a=tn(_0x28a4a4['position']['nodeAfter'],_0x3341e7['model']),_0x29e913=_0x28a4a4['before'];'rename'==_0x28a4a4['action']&&_0x541fff['push']({'key':m,'newValue':_0x28a4a4['name'],'oldValue':_0x29e913['name'],'range':_0x3aaa3a});for(const [_0x432f8e,_0x10d224]of _0x29e913['attributes']){if(!this['_isRegisteredAttribute'](_0x432f8e))continue;const _0x36ce21=_0x28a4a4['attributes']['get'](_0x432f8e);_0x10d224!==_0x36ce21&&_0x541fff['push']({'key':_0x432f8e,'newValue':_0x36ce21,'oldValue':_0x10d224,'range':_0x3aaa3a});}for(const [_0x2717c5,_0x37b8cc]of _0x28a4a4['attributes'])this['_isRegisteredAttribute'](_0x2717c5)&&(_0x29e913['attributes']['has'](_0x2717c5)||_0x541fff['push']({'key':_0x2717c5,'newValue':_0x37b8cc,'oldValue':null,'range':_0x3aaa3a}));}0x0!=_0x541fff['length']&&_0x3341e7['model']['enqueueChange'](_0x7aa91f,_0x554069=>{const _0x58cc08=_0x632a3();for(const {range:_0x4d321b,key:_0x40b333,oldValue:_0x26957c,newValue:_0x2b5266}of _0x541fff)this['markAttributeChange'](_0x4d321b,_0x40b333,_0x26957c,_0x2b5266,{'groupId':_0x58cc08});this['_reduceExistingSuggestions'](_0x554069,_0x541fff);});},{'priority':'lowest'}),_0x3341e7['model']['markers']['on']('update:suggestion',(_0x3c5526,_0x5ab5ad,_0x3667d6)=>{if(null==_0x3667d6){const {id:_0x547f63}=this['_splitMarkerName'](_0x5ab5ad['name']),_0x41640e=this['_suggestions']['get'](_0x547f63);_0x41640e&&_0x41640e['addMarkerName'](_0x5ab5ad['name']);}}),_0x3341e7['model']['document']['on']('change:data',()=>{const _0x3b2211=Array['from'](_0x3341e7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5555c1=>'suggestion'===this['_splitMarkerName'](_0x5555c1['name'])['group']);if(0x0===_0x3b2211['length'])return;_0x3b2211['sort']((_0x232008,_0x314774)=>{const _0x5affd2=_0x232008['data']['oldRange'],_0x210156=_0x314774['data']['oldRange'];return null===_0x5affd2&&null===_0x210156?0x0:null===_0x5affd2&&null!==_0x210156?-0x1:null!==_0x5affd2&&null===_0x210156?0x1:_0x5affd2['start']['isBefore'](_0x210156['start'])?-0x1:0x1;});const _0x3f19d7=new Set(),_0x3fc68f=new Set();for(const {name:_0x2015c8,data:_0x418776}of _0x3b2211){const {id:_0x11d435}=this['_splitMarkerName'](_0x2015c8);if(null===_0x418776['oldRange']){const _0x1721b0=this['_handleNewSuggestionMarker'](_0x2015c8);_0x3fc68f['add'](_0x1721b0);}else{const _0x413625=this['_suggestions']['get'](_0x11d435);null!==_0x418776['newRange']||_0x413625['isInContent']?(_0x3f19d7['add'](_0x413625['head']),_0x3fc68f['add'](_0x413625)):this['_removeSuggestion'](_0x413625);}}_0x3fc68f['size']>0x0&&this['_refreshSuggestionsChain'](_0x3fc68f);for(const _0x5f11f3 of _0x3f19d7)this['fire']('suggestionChanged',_0x5f11f3);}),_0x3341e7['model']['on']('applyOperation',(_0x3e5d6a,_0x5042e4)=>{const _0x5c10c3=_0x5042e4[0x0];if(!this['_suggestions']['size'])return;if(!_0x5c10c3['isDocumentOperation'])return;if(_0x5c10c3['batch']['isUndo']||!_0x5c10c3['batch']['isLocal'])return;let _0x5a6c33,_0x943586;switch(_0x5c10c3['type']){case'insert':_0x5a6c33=_0x3341e7['model']['createPositionAt'](_0x5c10c3['position']),_0x943586=_0x5a6c33['getShiftedBy'](_0x5c10c3['howMany']);break;case'split':_0x5a6c33=_0x3341e7['model']['createPositionAt'](_0x5c10c3['splitPosition']),_0x943586=_0x3341e7['model']['createPositionAt'](_0x5c10c3['moveTargetPosition']);break;case'move':_0x5a6c33=_0x3341e7['model']['createPositionAt'](_0x5c10c3['targetPosition']),_0x943586=_0x5a6c33['getShiftedBy'](_0x5c10c3['howMany']);break;default:return;}const _0x29445c=_0x3341e7['model']['createRange'](_0x5a6c33,_0x943586);_0x3341e7['model']['change'](()=>{for(const {suggestion:_0x19690d,meta:_0x4e52e4}of this['_findSuggestions'](_0x29445c)){if(_0x19690d['isMultiRange'])continue;if('formatInline'==_0x19690d['type'])continue;const _0x491ccc=this['_getAttributeKey'](_0x19690d);if(_0x491ccc&&this['_isBlockAttribute'](_0x491ccc)&&'split'!=_0x5c10c3['type'])continue;const _0x4cf21e=_0x19690d['data']&&_0x19690d['data']['multipleBlocks'];('formatBlock'!=_0x19690d['type']||'split'==_0x5c10c3['type']&&!_0x4cf21e)&&(_0x4e52e4['containsRangeInObject']||'insertion'==_0x19690d['type']&&_0x4e52e4['isOwn']||_0x19690d['getFirstRange']()['containsRange'](_0x29445c)&&this['_breakSuggestionMarker'](_0x19690d,_0x5a6c33,_0x943586));}});},{'priority':'lowest'}),_0x3341e7['model']['on']('deleteContent',(_0x2ba0be,_0x4db8cb)=>{const _0x2acd5f=_0x4db8cb[0x0],_0x5c86d6=_0x4db8cb[0x1];if(_0x5c86d6&&_0x5c86d6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2acd5f['isCollapsed'])return;const _0x77d9fd=_0x3341e7['model']['schema'],{start:_0x3fce3e,end:_0x4e949a}=_0x2acd5f['getFirstRange'](),_0x4efc1d=_0x3fce3e['nodeAfter']&&_0x77d9fd['isLimit'](_0x3fce3e['nodeAfter'])?null:_0x77d9fd['getNearestSelectionRange'](_0x3fce3e,'forward'),_0x39bfec=_0x4e949a['nodeBefore']&&_0x77d9fd['isLimit'](_0x4e949a['nodeBefore'])?null:_0x77d9fd['getNearestSelectionRange'](_0x4e949a,'backward'),_0x1caa8d=_0x3341e7['model']['createRange'](_0x4efc1d?_0x4efc1d['start']:_0x3fce3e,_0x39bfec?_0x39bfec['end']:_0x4e949a);_0x3341e7['model']['change'](_0x1c4d90=>{this['markDeletion'](_0x1caa8d);const _0x3fe80f=_0x3341e7['model']['schema']['getNearestSelectionRange'](_0x1caa8d['start']);_0x2acd5f['is']('documentSelection')?_0x1c4d90['setSelection'](_0x3fe80f):_0x2acd5f['setTo'](_0x3fe80f);}),_0x2ba0be['stop']();},{'priority':_0x294cc6['normal']+0xa}),_0x3341e7['model']['on']('insertContent',(_0x360eb4,_0x207198)=>{const _0x2c6d79=_0x207198[_0x207198['length']-0x1];_0x2c6d79&&_0x2c6d79['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3341e7['model']['change'](()=>{let _0x313352=_0x3341e7['model']['insertContent'](_0x207198[0x0],_0x207198[0x1],_0x207198[0x2],{'forceDefaultExecution':!0x0});if(!_0x313352)return;_0x360eb4['return']=_0x313352['clone']();const _0x3dad0e=_0x313352['end']['nodeBefore'],_0x234b01=_0x3341e7['model']['schema'];_0x3dad0e&&_0x234b01['isBlock'](_0x3dad0e)&&!_0x234b01['isObject'](_0x3dad0e)&&(_0x313352=_0x3341e7['model']['createRange'](_0x313352['start'],_0x3341e7['model']['createPositionAt'](_0x3dad0e,'end'))),this['markInsertion'](_0x313352);}),_0x360eb4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x428fc4=new v(_0x3341e7,this['_suggestions']);_0x3341e7['commands']['add']('acceptSuggestion',_0x428fc4),this['enableCommand']('acceptSuggestion');const _0x34a172=new D(_0x3341e7,this['_suggestions']);_0x3341e7['commands']['add']('discardSuggestion',_0x34a172),this['enableCommand']('discardSuggestion'),_0x3341e7['commands']['add']('acceptAllSuggestions',new B(_0x3341e7,_0x428fc4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3341e7['commands']['add']('discardAllSuggestions',new B(_0x3341e7,_0x34a172,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3341e7['commands']['add']('acceptSelectedSuggestions',new O(_0x3341e7,_0x428fc4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3341e7['commands']['add']('discardSelectedSuggestions',new O(_0x3341e7,_0x34a172,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x26d5a0=_0x3341e7['plugins']['get']('CommentsRepository');this['listenTo'](_0x26d5a0,'addComment',(_0x4e07f6,{threadId:_0x8c125b})=>{const _0x4c2954=this['_suggestions']['get'](_0x8c125b);_0x4c2954&&_0x4c2954['commentThread']&&0x1===_0x4c2954['commentThread']['length']&&this['_updateSuggestionData'](_0x8c125b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x26d5a0,'removeComment',(_0x1c8fcf,{threadId:_0x178d09})=>{const _0x47d887=this['_suggestions']['get'](_0x178d09);_0x47d887&&_0x47d887['commentThread']&&!_0x47d887['commentThread']['length']&&this['_updateSuggestionData'](_0x178d09,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x7c8564){const _0x2a0531=_0x3fc2da([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x35f6a2=0x3d8d0df,_0x311ed7=0x3dfad07^_0x35f6a2,_0x10db06=window[_0x3fc2da([0x44,0x61,0x74,0x65])][_0x3fc2da([0x6e,0x6f,0x77])](),_0x236cbc=_0x7c8564[_0x3fc2da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3353aa=new window[(_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34921a=>{_0x236cbc[_0x3fc2da([0x6f,0x6e,0x63,0x65])](_0x3fc2da([0x72,0x65,0x61,0x64,0x79]),_0x34921a);}),_0xaa8347={[_0x3fc2da([0x6b,0x74,0x79])]:_0x3fc2da([0x45,0x43]),[_0x3fc2da([0x75,0x73,0x65])]:_0x3fc2da([0x73,0x69,0x67]),[_0x3fc2da([0x63,0x72,0x76])]:_0x3fc2da([0x50,0x2d,0x32,0x35,0x36]),[_0x3fc2da([0x78])]:_0x3fc2da([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]),[_0x3fc2da([0x79])]:_0x3fc2da([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]),[_0x3fc2da([0x61,0x6c,0x67])]:_0x3fc2da([0x45,0x53,0x32,0x35,0x36])},_0x500bad=_0x236cbc[_0x3fc2da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fc2da([0x67,0x65,0x74])](_0x3fc2da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e060e(){let _0x54da3c,_0x659de3=null,_0x1c25ce=null;try{if(_0x500bad==_0x3fc2da([0x47,0x50,0x4c]))return _0x3fc2da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54da3c=_0x583f30(),!_0x54da3c)return _0x3fc2da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54da3c[_0x3fc2da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c25ce=_0x16b164(_0x54da3c[_0x3fc2da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54da3c[_0x3fc2da([0x6a,0x74,0x69])])),await _0x2ed77a()?_0x18e6a9()?_0x4fc454()?_0x3fc2da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x279271()?(_0x54da3c[_0x3fc2da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fc2da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x659de3=_0x1eb31e(_0x3fc2da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54da3c[_0x3fc2da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fc2da([0x74,0x72,0x69,0x61,0x6c])&&(_0x659de3=_0x1eb31e(_0x3fc2da([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32cdf9()):_0x3fc2da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fc2da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fc2da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3fc2da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fc454(){const _0x402532=[_0x3fc2da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fc2da([0x74,0x72,0x69,0x61,0x6c])][_0x3fc2da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54da3c[_0x3fc2da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10db06/0x3e8:0xe10*_0x311ed7;return _0x54da3c[_0x3fc2da([0x65,0x78,0x70])]<_0x402532;}function _0x18e6a9(){const _0x6e0aa6=_0x54da3c[_0x3fc2da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6e0aa6)return!0x1;if(_0x6e0aa6[_0x3fc2da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc2da([0x2a])))return!0x0;if(_0x6e0aa6[_0x3fc2da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc2da([0x54,0x43])))return!0x0;if(_0x6e0aa6[_0x3fc2da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc2da([0x52,0x54,0x43]))){if(_0x2b3b08())return!0x0;if(_0x26a73c()||_0x4b0979())return!0x0;}return!0x1;}function _0x279271(){const _0x14d5ec=_0x54da3c[_0x3fc2da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14d5ec||0x0==_0x14d5ec[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x567709}=new URL(window[_0x3fc2da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14d5ec[_0x3fc2da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x567709))return!0x0;const _0x1ef420=_0x567709[_0x3fc2da([0x73,0x70,0x6c,0x69,0x74])](_0x3fc2da([0x2e]));return _0x14d5ec[_0x3fc2da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb74b02=>_0xb74b02[_0x3fc2da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc2da([0x2a])))[_0x3fc2da([0x6d,0x61,0x70])](_0x3bace9=>_0x3bace9[_0x3fc2da([0x73,0x70,0x6c,0x69,0x74])](_0x3fc2da([0x2e])))[_0x3fc2da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x500a86=>_0x500a86[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ef420[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fc2da([0x6d,0x61,0x70])](_0x30010e=>Array(_0x1ef420[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30010e[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fc2da([0x66,0x69,0x6c,0x6c])](_0x30010e[0x0]===_0x3fc2da([0x2a])?_0x3fc2da([0x2a]):'')[_0x3fc2da([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30010e))[_0x3fc2da([0x73,0x6f,0x6d,0x65])](_0x3e312f=>_0x1ef420[_0x3fc2da([0x65,0x76,0x65,0x72,0x79])]((_0x48a7d2,_0xbaead8)=>_0x3e312f[_0xbaead8]===_0x48a7d2||_0x3e312f[_0xbaead8]===_0x3fc2da([0x2a])));}function _0x32cdf9(){return _0x659de3&&_0x1c25ce?new window[(_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406972,_0x14a39f)=>{_0x659de3[_0x3fc2da([0x74,0x68,0x65,0x6e])](_0x406972,_0x14a39f),_0x1c25ce[_0x3fc2da([0x74,0x68,0x65,0x6e])](_0x1866e4=>{_0x1866e4!=_0x3fc2da([0x56,0x61,0x6c,0x69,0x64])&&_0x406972(_0x1866e4);},_0x14a39f);}):_0x659de3||_0x1c25ce||_0x3fc2da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16b164(_0x53ea95,_0x5edf17){return new window[(_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182afe=>{if(_0x40382d())return _0x182afe(_0x3fc2da([0x56,0x61,0x6c,0x69,0x64]));_0x3fd7bb(),_0x236cbc[_0x3fc2da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fc2da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf4fc4d=!0x1;const _0x2489cd=_0x632a3();function _0x390148(_0x549747){return!!_0x549747&&(typeof _0x549747===_0x3fc2da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x549747===_0x3fc2da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x549747[_0x3fc2da([0x74,0x68,0x65,0x6e])]===_0x3fc2da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x549747[_0x3fc2da([0x63,0x61,0x74,0x63,0x68])]===_0x3fc2da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3778cb(_0x35163d){_0x5b1116(_0x35163d)[_0x3fc2da([0x74,0x68,0x65,0x6e])](_0x50a3d2=>{if(!_0x50a3d2||_0x50a3d2[_0x3fc2da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fc2da([0x6f,0x6b]))return _0x3fc2da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f4e41(_0x7109a6(_0x2489cd+_0x5edf17))!=_0x50a3d2[_0x3fc2da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fc2da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fc2da([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fc2da([0x74,0x68,0x65,0x6e])](_0x51e541=>(_0x3f442b(),_0x51e541),()=>{const _0x7bf69e=_0x11b50d();return null==_0x7bf69e?(_0x3f442b(),_0x3fc2da([0x56,0x61,0x6c,0x69,0x64])):_0x3fc2da(_0x10db06-_0x7bf69e>(0x27d454df^_0x35f6a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fc2da([0x74,0x68,0x65,0x6e])](_0x182afe)[_0x3fc2da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x182afe(_0x3fc2da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3981cd=0x3ee3e5f^_0x35f6a2;function _0x3f442b(){const _0x41d68a=_0x3fc2da([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f4e41(_0x7109a6(_0x53ea95)),_0x4ea2d7=_0x29033d(_0x4f4e41(window[_0x3fc2da([0x4d,0x61,0x74,0x68])][_0x3fc2da([0x63,0x65,0x69,0x6c])](_0x10db06/_0x3981cd)));window[_0x3fc2da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fc2da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41d68a,_0x4ea2d7);}function _0x11b50d(){const _0x5dff2f=_0x3fc2da([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f4e41(_0x7109a6(_0x53ea95)),_0x5077a0=window[_0x3fc2da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fc2da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dff2f);return _0x5077a0?window[_0x3fc2da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29033d(_0x5077a0),0x10)*_0x3981cd:null;}function _0x5b1116(_0x3283a0){return new window[(_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10ffb3,_0x5ccc89)=>{_0x3283a0[_0x3fc2da([0x74,0x68,0x65,0x6e])](_0x10ffb3,_0x5ccc89),window[_0x3fc2da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ccc89,0x3d9041f^_0x35f6a2);});}}_0x236cbc[_0x3fc2da([0x6f,0x6e])](_0x3fc2da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb15efe,_0x5a32bd)=>{if(_0x5a32bd[0x0]!=_0x53ea95)return _0x182afe(_0x3fc2da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a32bd[0x1]={..._0x5a32bd[0x1],[_0x3fc2da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2489cd};},{[_0x3fc2da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fc2da([0x68,0x69,0x67,0x68])}),_0x236cbc[_0x3fc2da([0x6f,0x6e])](_0x3fc2da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e9f5e=>{_0x390148(_0x2e9f5e[_0x3fc2da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf4fc4d=!0x0,_0x3778cb(_0x2e9f5e[_0x3fc2da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fc2da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fc2da([0x6c,0x6f,0x77])}),_0x3353aa[_0x3fc2da([0x74,0x68,0x65,0x6e])](()=>{_0xf4fc4d||_0x182afe(_0x3fc2da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40382d(){return _0x236cbc[_0x3fc2da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fc2da([0x76,0x69,0x65,0x77])][_0x3fc2da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fc2da([0x61,0x75,0x74,0x6f]);}function _0x3fd7bb(){_0x236cbc[_0x3fc2da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fc2da([0x76,0x69,0x65,0x77])][_0x3fc2da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fc2da([0x61,0x75,0x74,0x6f]);}}function _0x1eb31e(_0x2c8e40){const _0xf53e2c=[new window[(_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26f38a=>setTimeout(_0x26f38a,0x3d1ee13^_0x35f6a2)),_0x3353aa[_0x3fc2da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x305528=>{let _0x34aa58=0x0;_0x236cbc[_0x3fc2da([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fc2da([0x6f,0x6e])](_0x3fc2da([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x535ce3,_0x22628d)=>{_0x22628d[0x0][_0x3fc2da([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34aa58++,_0x34aa58==(0x3d8d537^_0x35f6a2)&&(_0x305528(),_0x535ce3[_0x3fc2da([0x6f,0x66,0x66])]());});}))];return window[_0x3fc2da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fc2da([0x72,0x61,0x63,0x65])](_0xf53e2c)[_0x3fc2da([0x74,0x68,0x65,0x6e])](()=>_0x2c8e40);}async function _0x331bbe(){await _0x3353aa,_0x236cbc[_0x3fc2da([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fc2da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc0c7,_0x236cbc[_0x3fc2da([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fc2da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc0c7,_0x236cbc[_0x3fc2da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fc2da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b3b08(){return _0x376a2a(_0x3fc2da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x19b046(_0x3fc2da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3fc2da([0x73,0x74,0x61,0x74,0x65])]==_0x3fc2da([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x26a73c(){return _0x376a2a(_0x3fc2da([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 _0x4b0979(){return _0x376a2a(_0x3fc2da([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f2af5(_0xe8e962){const _0x11095f=_0x535580();_0x236cbc[_0x11095f]=_0x3fc2da([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe8e962,_0xe8e962!=_0x3fc2da([0x56,0x61,0x6c,0x69,0x64])&&_0x331bbe();}function _0x535580(){const _0x34dd92=window[_0x3fc2da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fc2da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fc2da([0x6e,0x6f,0x77])]())[_0x3fc2da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fc2da([0x2e]),'');let _0x1a5769=_0x3fc2da([0x52]);for(let _0x3cc466=0x0;_0x3cc466<_0x34dd92[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cc466+=0x2){let _0x3ed8d0=window[_0x3fc2da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34dd92[_0x3fc2da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cc466,_0x3cc466+0x2));_0x3ed8d0>=_0x2a0531[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ed8d0-=_0x2a0531[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a5769+=_0x2a0531[_0x3ed8d0];}return _0x1a5769;}function _0x583f30(){const _0x815152=_0x500bad[_0x3fc2da([0x73,0x70,0x6c,0x69,0x74])](_0x3fc2da([0x2e]));if(0x3!=_0x815152[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x382f54(_0x815152[0x1]);function _0x382f54(_0x510675){const _0x556712=_0x25bbde(_0x510675);return _0x556712&&_0x13c6c7()?_0x556712:null;function _0x13c6c7(){const _0x3780f5=_0x556712[_0x3fc2da([0x6a,0x74,0x69])],_0x159778=window[_0x3fc2da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3780f5[_0x3fc2da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3780f5[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd7159d={..._0x556712,[_0x3fc2da([0x6a,0x74,0x69])]:_0x3780f5[_0x3fc2da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3780f5[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd7159d[_0x3fc2da([0x76,0x63])],_0x7109a6(_0xd7159d)==_0x159778;}}}async function _0x2ed77a(){let _0x480080=!0x0;try{const _0x1b449c=_0x500bad[_0x3fc2da([0x73,0x70,0x6c,0x69,0x74])](_0x3fc2da([0x2e])),[_0x9ce0d,_0x1cae83,_0x3acef0]=_0x1b449c;return _0x5f0595(_0x9ce0d),await _0x4944ed(_0x9ce0d,_0x1cae83,_0x3acef0),_0x480080;}catch{return!0x1;}function _0x5f0595(_0x538f60){const _0x3672a1=_0x25bbde(_0x538f60);_0x3672a1&&_0x3672a1[_0x3fc2da([0x61,0x6c,0x67])]==_0x3fc2da([0x45,0x53,0x32,0x35,0x36])||(_0x480080=!0x1);}async function _0x4944ed(_0x3310f4,_0x551058,_0x50f3c2){const _0x52f503=window[_0x3fc2da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fc2da([0x66,0x72,0x6f,0x6d])](_0x2561d3(_0x50f3c2),_0x4799cf=>_0x4799cf[_0x3fc2da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d4e95=new window[(_0x3fc2da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fc2da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3310f4+_0x3fc2da([0x2e])+_0x551058),_0x20487e=window[_0x3fc2da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fc2da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20487e)return;const _0x1c7e1f=await _0x20487e[_0x3fc2da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fc2da([0x6a,0x77,0x6b]),_0xaa8347,{[_0x3fc2da([0x6e,0x61,0x6d,0x65])]:_0x3fc2da([0x45,0x43,0x44,0x53,0x41]),[_0x3fc2da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fc2da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fc2da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20487e[_0x3fc2da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fc2da([0x6e,0x61,0x6d,0x65])]:_0x3fc2da([0x45,0x43,0x44,0x53,0x41]),[_0x3fc2da([0x68,0x61,0x73,0x68])]:{[_0x3fc2da([0x6e,0x61,0x6d,0x65])]:_0x3fc2da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c7e1f,_0x52f503,_0x4d4e95)||(_0x480080=!0x1);}}function _0x25bbde(_0x133ccb){return _0x133ccb[_0x3fc2da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fc2da([0x65,0x79]))?JSON[_0x3fc2da([0x70,0x61,0x72,0x73,0x65])](_0x2561d3(_0x133ccb)):null;}function _0x2561d3(_0x3eb0a1){return window[_0x3fc2da([0x61,0x74,0x6f,0x62])](_0x3eb0a1[_0x3fc2da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fc2da([0x2b]))[_0x3fc2da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fc2da([0x2f])));}function _0x7109a6(_0x2138af){let _0x55dc54=0x1505;function _0x449cbc(_0x59ff76){for(let _0x2a4120=0x0;_0x2a4120<_0x59ff76[_0x3fc2da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a4120++){const _0xe47d51=_0x59ff76[_0x3fc2da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a4120);_0x55dc54=(_0x55dc54<<0x5)+_0x55dc54+_0xe47d51,_0x55dc54&=_0x55dc54;}}function _0x331615(_0x4efe85){Array[_0x3fc2da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4efe85)?_0x4efe85[_0x3fc2da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x331615):_0x4efe85&&typeof _0x4efe85==_0x3fc2da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fc2da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4efe85)[_0x3fc2da([0x73,0x6f,0x72,0x74])]()[_0x3fc2da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcf7984,_0x4783af])=>{_0x449cbc(_0xcf7984),_0x331615(_0x4783af);}):_0x449cbc(window[_0x3fc2da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4efe85));}return _0x331615(_0x2138af),_0x55dc54>>>0x0;}function _0x4f4e41(_0x37aa4e){return _0x37aa4e[_0x3fc2da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fc2da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fc2da([0x30]));}function _0x29033d(_0x5480fa){return _0x5480fa[_0x3fc2da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fc2da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fc2da([0x6a,0x6f,0x69,0x6e])]('');}function _0x376a2a(_0x3ae932){return _0x236cbc[_0x3fc2da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3fc2da([0x68,0x61,0x73])](_0x3ae932);}function _0x19b046(_0x153625){return _0x236cbc[_0x3fc2da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3fc2da([0x67,0x65,0x74])](_0x153625);}function _0x4bc0c7(){}function _0x3fc2da(_0x48bcf0){return _0x48bcf0['map'](_0x5412d6=>String['fromCharCode'](_0x5412d6))['join']('');}_0x4f2af5(await _0x4e060e());}(this);}set['adapter'](_0x1b177c){if(this['_adapter'])throw new _0x42d154('track-changes-adapter-already-set',this);this['_adapter']=_0x1b177c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x178357=!0x1,toJSON:_0x5d3dda=!0x1}={}){const _0x17b43=[];for(const _0x517e98 of this['_suggestions']['values']())_0x178357&&!_0x517e98['isInContent']||_0x17b43['push'](_0x517e98);return _0x5d3dda?_0x17b43['map'](_0x121216=>_0x121216['toJSON']()):_0x17b43;}['getSuggestion'](_0x444bef){const _0x56b0fe=this['_suggestions']['get'](_0x444bef);if(!_0x56b0fe)throw new _0x42d154('track-changes-suggestion-not-found',this);return _0x56b0fe;}['hasSuggestion'](_0x5bc297){return this['_suggestions']['has'](_0x5bc297);}['addSuggestionData'](_0x4db7ff){const {authorId:_0x3a3101,id:_0x2b4c1d,originalSuggestionId:_0x21e852,attributes:_0x10d982}=_0x4db7ff,[_0x262384,_0x139411]=_0x4db7ff['type']['split'](':'),_0x293cfe=this['_suggestions']['get'](_0x2b4c1d)||this['_createSuggestion'](_0x262384,_0x139411,_0x2b4c1d,_0x3a3101,_0x10d982,_0x21e852);if(this['_addThreadToSuggestion'](_0x293cfe),this['_checkSuggestionCorrectness'](_0x293cfe,_0x262384,_0x139411||null,_0x3a3101),_0x293cfe['createdAt']=_0x4db7ff['createdAt'],_0x293cfe['_isDataLoaded']=!0x0,_0x10d982&&_0x10d982['@external']){const _0x3ce592=_0x10d982['@external'],_0x3ba15e=this['_getExternalAuthor'](_0x3ce592['authorName']);_0x293cfe['authoredAt']=_0x3ce592['createdAt'],_0x293cfe['author']=_0x3ba15e,_0x293cfe['isExternal']=!0x0;}else _0x293cfe['authoredAt']=_0x4db7ff['createdAt'];switch(_0x4db7ff['data']&&(_0x293cfe['data']=_0x4db7ff['data']),_0x4db7ff['attributes']&&(_0x293cfe['attributes']=_0x4db7ff['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x293cfe['_saved']=!0x0),this['_suggestionState']['get'](_0x293cfe)){case'notReady':this['_suggestionState']['set'](_0x293cfe,'dataReady');break;case'markerReady':_0x293cfe['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x293cfe])),this['_refreshSuggestionsChain'](new Set([_0x293cfe])),this['_suggestionState']['set'](_0x293cfe,'ready'),this['fire']('suggestionLoaded',_0x293cfe)):this['_suggestionState']['set'](_0x293cfe,'removed');}return _0x293cfe;}['acceptSuggestion'](_0x2836cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x237510 of _0x2836cb['getAllAdjacentSuggestions']())_0x237510['accept']();});});}['discardSuggestion'](_0xcaf162){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x463361 of _0xcaf162['getAllAdjacentSuggestions']())_0x463361['discard']();});});}['enableCommand'](_0x2bd93f,_0x43bde3){const _0x201cd1=this['editor']['commands']['get'](_0x2bd93f);if(!_0x201cd1)throw new _0x42d154('track-changes-command-not-found',this,{'commandName':_0x2bd93f});if(this['_enabledCommands']['has'](_0x201cd1))throw new _0x42d154('track-changes-enable-command-twice',this,{'commandName':_0x2bd93f});this['_enabledCommands']['add'](_0x201cd1),_0x43bde3&&_0x201cd1['on']('execute',(_0x4c11b2,_0x1ed544)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ed544['length']>0x0&&_0x1ed544[_0x1ed544['length']-0x1]&&_0x1ed544[_0x1ed544['length']-0x1]['forceDefaultExecution']?_0x1ed544['pop']():(_0x4c11b2['return']=_0x43bde3((..._0x398a58)=>_0x201cd1['execute'](..._0x398a58,{'forceDefaultExecution':!0x0}),..._0x1ed544),_0x4c11b2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4c1d11){let _0x38c9c6,_0x267d99;const _0x13bba1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38c9c6=_0x4c1d11();}catch(_0x5814b7){_0x267d99=_0x5814b7;}return _0x13bba1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x267d99&&_0x42d154['rethrowUnexpectedError'](_0x267d99,this),_0x38c9c6;}['markInsertion'](_0x24a886,_0x243ac3=null,_0x4ec876={}){if(_0x24a886['isCollapsed'])return null;const _0x461161=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4ec876['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x115d1f,meta:_0x1e3a96}of this['_findSuggestions'](_0x24a886,'insertion'))if(_0x1e3a96['isOwn']){if(!_0x1e3a96['isNextTo']){if(_0x1e3a96['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x115d1f,_0x4ec876))continue;return _0x115d1f;}if(sn(_0x115d1f,_0x4ec876))return _0x115d1f;this['_breakSuggestionMarker'](_0x115d1f,_0x24a886['start'],_0x24a886['end']);break;}if(_0x243ac3==_0x115d1f['subType']&&sn(_0x115d1f,_0x4ec876)){const _0x1ae2a4=_0x115d1f['getFirstRange']();return _0x1ae2a4['start']['isEqual'](_0x24a886['end'])?this['_setSuggestionRange'](_0x115d1f,this['_model']['createRange'](_0x24a886['start'],_0x1ae2a4['end'])):this['_setSuggestionRange'](_0x115d1f,this['_model']['createRange'](_0x1ae2a4['start'],_0x24a886['end'])),_0x115d1f;}}const _0x2982d2=_0x632a3(),_0x4bf96f=_0x461161['id'],_0x15c562=_0x243ac3?'insertion:'+_0x243ac3:'insertion',_0x1f955d=this['_setSuggestionData']({'id':_0x2982d2,'type':_0x15c562,'createdAt':new Date(),'authorId':_0x4bf96f,'attributes':_0x4ec876});return this['_addSuggestionMarker'](_0x15c562,_0x2982d2,_0x4bf96f,_0x24a886),_0x1f955d;}['markMultiRangeInsertion'](_0x1522dd,_0x41475e='multi',_0x51230d={}){const _0x20f4a3=this['editor']['plugins']['get']('Users')['me'],_0x531245=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x41475e,'join');this['_trackingSessionId']&&(_0x51230d['trackingSessionId']=this['_trackingSessionId']);for(const _0x3c89a9 of this['getSuggestions']())if(_0x3c89a9['author']['id']==_0x20f4a3['id']&&'insertion'==_0x3c89a9['type']&&_0x3c89a9['subType']==_0x41475e&&sn(_0x3c89a9,_0x51230d)&&(_0x531245(_0x3c89a9['getRanges'](),_0x1522dd)||_0x531245(_0x1522dd,_0x3c89a9['getRanges']()))){for(const _0x1438f0 of _0x1522dd)_0x3c89a9['addRange'](_0x1438f0);return _0x3c89a9;}for(const {suggestion:_0x309fa6,meta:_0x32fd9e}of this['_findSuggestions'](_0x1522dd,'insertion')){if(!_0x32fd9e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32fd9e['containsRangeInObject'])continue;if(!sn(_0x309fa6,_0x51230d))continue;let _0x2fc96d=!0x0;for(const _0x63e2e4 of _0x309fa6['getRanges']())for(const _0xa78ade of _0x1522dd)if(!_0x63e2e4['containsRange'](_0xa78ade)){_0x2fc96d=!0x1;break;}if(_0x2fc96d)return _0x309fa6;}const _0x3642da=_0x632a3(),_0x386777=_0x20f4a3['id'],_0x2fcd24='insertion:'+_0x41475e,_0x346ca7=this['_setSuggestionData']({'id':_0x3642da,'type':_0x2fcd24,'createdAt':new Date(),'authorId':_0x386777,'attributes':_0x51230d});for(const _0x1aec0b of _0x1522dd)this['_addSuggestionMarker'](_0x2fcd24,_0x3642da,_0x386777,_0x1aec0b,x['getMultiRangeId']());return _0x346ca7;}['markInlineFormat'](_0x5bb36c,_0x35c0e0,_0x530fb5=null,_0x9a9334={}){if(_0x530fb5=_0x530fb5||Ht(_0x35c0e0),_0x5bb36c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x9a9334['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45c4ec=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x530fb5,'accept');return this['forceDefaultExecution'](()=>_0x45c4ec([_0x5bb36c],_0x35c0e0,_0x9a9334)),null;}const _0x5356b0=this['editor']['plugins']['get']('Users')['me'],_0xb5f3cc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x197351,meta:_0x580be9}of this['_findSuggestions'](_0x5bb36c,'insertion'))_0x580be9['isOwn']&&!_0x580be9['isInsideObject']&&_0xb5f3cc['push'](..._0x197351['getRanges']());}const _0x23a1f3=function(_0x1b5226,_0x142cb1){const _0x412384=[];for(const _0x4b9c67 of _0x142cb1){const _0x38f5fa=_0x1b5226['getIntersection'](_0x4b9c67);_0x38f5fa&&_0x412384['push'](_0x38f5fa);}return _0x412384;}(_0x5bb36c,_0xb5f3cc),_0xa134a7=function(_0x1c1871,_0x42a1c8){const _0x17bd01=[_0x1c1871];for(const _0x100b6d of _0x42a1c8){let _0x15cab3=0x0;for(;_0x15cab3<_0x17bd01['length'];){const _0x5e89c1=_0x17bd01[_0x15cab3]['getDifference'](_0x100b6d);_0x17bd01['splice'](_0x15cab3,0x1,..._0x5e89c1),_0x15cab3+=_0x5e89c1['length'];}}return _0x17bd01;}(_0x5bb36c,_0xb5f3cc);_0x23a1f3['length']&&this['_model']['change'](()=>{for(const _0x3ba0e7 of _0x23a1f3){const _0xacdc4d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x530fb5,'accept');this['forceDefaultExecution'](()=>_0xacdc4d([_0x3ba0e7],_0x35c0e0,_0x9a9334));}});for(const _0x36a8f2 of _0xa134a7){let _0x404d70=null,_0x53d442=_0x36a8f2['start'],_0x3cc4a2=_0x36a8f2['end'];for(const {suggestion:_0x56beb5,meta:_0x8dd045}of this['_findSuggestions'](_0x36a8f2,'formatInline')){if(!_0x8dd045['isOwn'])continue;if(_0x56beb5['subType']!=_0x530fb5)continue;if(!sn(_0x56beb5,_0x9a9334))continue;const _0x1ed209=_0x56beb5['getFirstRange']();if(_0x1ed209['containsRange'](_0x36a8f2,!0x0))return null;_0x53d442=_0x53d442['isBefore'](_0x1ed209['start'])?_0x53d442:_0x1ed209['start'],_0x3cc4a2=_0x3cc4a2['isAfter'](_0x1ed209['end'])?_0x3cc4a2:_0x1ed209['end'],_0x404d70?_0x1ed209['start']['isBefore'](_0x404d70['getFirstRange']()['start'])?(_0x404d70['removeMarkers'](),_0x404d70=_0x56beb5):_0x56beb5['removeMarkers']():_0x404d70=_0x56beb5;}const _0x1f07f6=this['_model']['createRange'](_0x53d442,_0x3cc4a2);if(_0x404d70)this['_setSuggestionRange'](_0x404d70,_0x1f07f6);else{const _0x544cc5=_0x632a3(),_0x1f786a=_0x5356b0['id'];this['_setSuggestionData']({'id':_0x544cc5,'type':'formatInline:'+_0x530fb5,'data':_0x35c0e0,'createdAt':new Date(),'authorId':_0x1f786a,'attributes':_0x9a9334}),this['_addSuggestionMarker']('formatInline:'+_0x530fb5,_0x544cc5,_0x1f786a,_0x1f07f6);}}return null;}['markBlockFormat'](_0x172acd,_0x1a719c,_0xe8fb84=[],_0x30bc7d=null,_0x329a48={}){_0x1a719c['formatGroupId']||(_0x1a719c['formatGroupId']=_0x1a719c['commandName']),_0x1a719c['multipleBlocks']=_0x172acd['is']('range'),_0x30bc7d=_0x30bc7d||Ht(_0x1a719c);const _0x17471e=_0xe8fb84['map'](_0x3e3ef8=>tn(_0x3e3ef8,this['_model'])),_0x2d172c=_0x172acd['is']('range')?_0x172acd:tn(_0x172acd,this['_model']);if(this['_trackingSessionId']&&(_0x329a48['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xb74461=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30bc7d,'accept');return this['forceDefaultExecution'](()=>_0xb74461([_0x2d172c],_0x1a719c,_0x329a48)),null;}_0x17471e['push'](_0x2d172c);let _0x3ccd76=!0x0;for(const _0x5314e7 of _0x17471e)if(!this['_rangeIsInLocalUserInsertion'](_0x5314e7)){_0x3ccd76=!0x1;break;}if(_0x3ccd76&&'always'!==this['_trackFormatChanges']){const _0x4adb2a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30bc7d,'accept');return this['forceDefaultExecution'](()=>_0x4adb2a([_0x2d172c],_0x1a719c,_0x329a48)),null;}let _0x1c4dd9=null,_0x5a47d5=_0x2d172c['start'],_0x4ddc1d=_0x2d172c['end'];for(const {suggestion:_0x36b69b,meta:_0x5e56f8}of this['_findSuggestions'](_0x2d172c,'formatBlock')){if(!_0x5e56f8['isOwn'])continue;if(_0x5e56f8['isNextTo']||_0x5e56f8['containsRangeInObject']||_0x5e56f8['isInsideObject'])continue;if(_0x36b69b['data']['formatGroupId']!=_0x1a719c['formatGroupId'])continue;if(!sn(_0x36b69b,_0x329a48))continue;const _0x2340fa=_0x36b69b['getFirstRange']();if(_0x36b69b['subType']==_0x30bc7d){if(_0x2340fa['containsRange'](_0x2d172c,!0x0))return null;_0x5a47d5=_0x5a47d5['isBefore'](_0x2340fa['start'])?_0x5a47d5:_0x2340fa['start'],_0x4ddc1d=_0x4ddc1d['isAfter'](_0x2340fa['end'])?_0x4ddc1d:_0x2340fa['end'],_0x1c4dd9?_0x2340fa['start']['isBefore'](_0x1c4dd9['getFirstRange']()['start'])?(_0x1c4dd9['removeMarkers'](),_0x1c4dd9=_0x36b69b):_0x36b69b['removeMarkers']():_0x1c4dd9=_0x36b69b;}else{const _0x3260aa=_0x2d172c['getIntersection'](_0x2340fa);this['_cutOutSuggestionMarker'](_0x36b69b,_0x3260aa);}}const _0x409942=this['editor']['plugins']['get']('Users')['me'],_0x4dd571=_0x632a3(),_0x61761a=_0x409942['id'];if(_0x1c4dd9)return this['_setSuggestionRange'](_0x1c4dd9,this['_model']['createRange'](_0x5a47d5,_0x4ddc1d)),_0x1c4dd9;{const _0x28cada=this['_setSuggestionData']({'id':_0x4dd571,'type':'formatBlock:'+_0x30bc7d,'data':_0x1a719c,'createdAt':new Date(),'authorId':_0x61761a,'attributes':_0x329a48});return this['_addSuggestionMarker']('formatBlock:'+_0x30bc7d,_0x4dd571,_0x61761a,this['_model']['createRange'](_0x5a47d5,_0x4ddc1d)),_0x28cada;}}['markMultiRangeBlockFormat'](_0x407ac4,_0x476755,_0x22b3f1=[],_0xf2a9dd=null,_0xf7bbf9={}){_0x476755['formatGroupId']||(_0x476755['formatGroupId']=_0x476755['commandName']);const _0x3443bc=_0x407ac4[0x0];_0x476755['multipleBlocks']=_0x3443bc['is']('range'),_0xf2a9dd=_0xf2a9dd||Ht(_0x476755);const _0x4b611d=_0x22b3f1['map'](_0x4d897=>tn(_0x4d897,this['_model'])),_0xa99bf3=_0x3443bc['is']('range')?_0x407ac4:_0x407ac4['map'](_0x2ad67a=>tn(_0x2ad67a,this['_model']));if(this['_trackingSessionId']&&(_0xf7bbf9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1393d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf2a9dd,'accept');return this['forceDefaultExecution'](()=>_0x1393d6(_0xa99bf3,_0x476755,_0xf7bbf9)),null;}_0x4b611d['push'](..._0xa99bf3);let _0x5b8a5d=!0x0;for(const _0x361fb1 of _0x4b611d)if(!this['_rangeIsInLocalUserInsertion'](_0x361fb1)){_0x5b8a5d=!0x1;break;}if(_0x5b8a5d&&'always'!==this['_trackFormatChanges']){const _0xabf1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf2a9dd,'accept');return this['forceDefaultExecution'](()=>_0xabf1(_0xa99bf3,_0x476755,_0xf7bbf9)),null;}const _0x5ccf37=this['editor']['plugins']['get']('Users')['me'];for(const _0xcf0fda of this['getSuggestions']()){const _0x4e06b4=_0xcf0fda['data'];if(_0xcf0fda['author']['id']!=_0x5ccf37['id'])continue;if('formatBlock'!=_0xcf0fda['type']||_0x4e06b4['formatGroupId']!=_0x476755['formatGroupId'])continue;if(!sn(_0xcf0fda,_0xf7bbf9))continue;const _0x4116cd=_0xcf0fda['subType']==_0xf2a9dd;for(let _0x486c18=0x0;_0x486c18<_0xa99bf3['length'];_0x486c18++){const _0x46c7fd=_0xa99bf3[_0x486c18];for(const _0x314d93 of _0xcf0fda['getMarkers']()){const _0x4d2720=_0x314d93['getRange']();if(_0x46c7fd['isEqual'](_0x4d2720)){_0x4116cd?(_0xa99bf3['splice'](_0x486c18,0x1),_0x486c18--):_0xcf0fda['removeMarker'](_0x314d93['name']);break;}}}}if(0x0==_0xa99bf3['length'])return null;const _0xc00b9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf2a9dd,'join');for(const _0x443f4d of this['getSuggestions']()){const _0x565975=_0x443f4d['data'];if(_0x443f4d['author']['id']==_0x5ccf37['id']&&('formatBlock'==_0x443f4d['type']&&_0x565975['formatGroupId']==_0x476755['formatGroupId']&&_0x443f4d['subType']==_0xf2a9dd&&sn(_0x443f4d,_0xf7bbf9)&&(_0xc00b9e(_0x443f4d['getRanges'](),_0xa99bf3)||_0xc00b9e(_0xa99bf3,_0x443f4d['getRanges']())))){for(const _0x5efbf7 of _0xa99bf3)_0x443f4d['addRange'](_0x5efbf7);return _0x443f4d;}}const _0x2f8db6=_0x632a3(),_0x103d70=_0x5ccf37['id'],_0x4bf6fc='formatBlock:'+_0xf2a9dd,_0x7bcb65=this['_setSuggestionData']({'id':_0x2f8db6,'type':_0x4bf6fc,'data':_0x476755,'createdAt':new Date(),'authorId':_0x103d70,'attributes':_0xf7bbf9});for(const _0x423023 of _0xa99bf3)this['_addSuggestionMarker'](_0x4bf6fc,_0x2f8db6,_0x103d70,_0x423023,x['getMultiRangeId']());return _0x7bcb65;}['markDeletion'](_0x4e7da8,_0x5ee10f=null,_0x27ee90={}){if(_0x4e7da8['isCollapsed'])return null;const _0x2bf4b2=this['editor']['plugins']['get']('Users')['me'],_0x104685=new _0x4b2c9(_0x4e7da8['start'],_0x4e7da8['end']);this['_trackingSessionId']&&(_0x27ee90['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1b0dbd,meta:_0x622f5b}of this['_findSuggestions'](_0x104685,'insertion'))if(_0x622f5b['isOwn']&&!_0x622f5b['isNextTo']){if(_0x1b0dbd['isMultiRange']){const _0x2428d8=_0x1b0dbd['getRanges']()['filter'](_0x1eacfa=>'$graveyard'!=_0x1eacfa['root']['rootName']);_0x2428d8['every'](_0x4eba23=>_0x104685['containsRange'](_0x4eba23,!0x0))&&_0x1b0dbd['discard']();if(_0x2428d8['some'](_0x45f612=>_0x45f612['containsRange'](_0x104685,!0x0))){const _0x45a696=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee10f,'accept');return this['forceDefaultExecution'](()=>_0x45a696([_0x104685],null,_0x27ee90)),null;}}else{const _0x207485=_0x104685['getIntersection'](_0x1b0dbd['getFirstRange']());null!==_0x207485&&_0x1b0dbd['_onDiscard']([_0x207485],null,_0x27ee90);}}if(_0x104685['detach'](),_0x104685['isCollapsed']||'$graveyard'==_0x104685['root']['rootName'])return null;let _0x325e28=null,_0x47a06b=_0x104685['start'],_0x284c6d=_0x104685['end'];const _0x3a6423=this['_findSuggestions'](_0x104685,'deletion');for(const {suggestion:_0x8ebffb,meta:_0x4330d7}of _0x3a6423){const _0x1490e8=this['_model']['createRange'](_0x47a06b,_0x284c6d);if(_0x4330d7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4330d7['containsRangeInObject']&&!_0x4330d7['isInsideObject'])){if(_0x8ebffb['isMultiRange']){if(!sn(_0x8ebffb,_0x27ee90))continue;let _0xb26c63=!0x0;for(const _0x3564d4 of _0x8ebffb['getRanges']()){if(_0x3564d4['containsRange'](_0x1490e8,!0x0))return _0x8ebffb;_0x1490e8['containsRange'](_0x3564d4)||(_0xb26c63=!0x1);}_0xb26c63&&_0x8ebffb['discard']();}else{const _0x18ef5e=_0x8ebffb['getFirstRange']();if(_0x18ef5e['containsRange'](_0x1490e8,!0x0))return _0x8ebffb;if(!sn(_0x8ebffb,_0x27ee90)){_0x1490e8['containsRange'](_0x18ef5e)?_0x8ebffb['removeMarkers']():_0x18ef5e['containsPosition'](_0x47a06b)?_0x47a06b=_0x18ef5e['end']:_0x18ef5e['containsPosition'](_0x284c6d)&&(_0x284c6d=_0x18ef5e['start']);continue;}_0x47a06b=_0x47a06b['isBefore'](_0x18ef5e['start'])?_0x47a06b:_0x18ef5e['start'],_0x284c6d=_0x284c6d['isAfter'](_0x18ef5e['end'])?_0x284c6d:_0x18ef5e['end'],_0x27ee90=Object['assign']({},_0x8ebffb['attributes']),_0x325e28?_0x18ef5e['start']['isBefore'](_0x325e28['getFirstRange']()['start'])?(_0x325e28['removeMarkers'](),_0x325e28=_0x8ebffb):_0x8ebffb['removeMarkers']():_0x325e28=_0x8ebffb;}}}if(_0x325e28)return this['_setSuggestionRange'](_0x325e28,this['_model']['createRange'](_0x47a06b,_0x284c6d)),_0x325e28;{const _0xf4d329=_0x632a3(),_0x4ab776=this['_model']['createRange'](_0x47a06b,_0x284c6d),_0x38ff82=_0x2bf4b2['id'],_0x73b0c1=_0x5ee10f?'deletion:'+_0x5ee10f:'deletion',_0xbb52e8=this['_setSuggestionData']({'id':_0xf4d329,'type':_0x73b0c1,'createdAt':new Date(),'authorId':_0x38ff82,'attributes':_0x27ee90});return this['_addSuggestionMarker'](_0x73b0c1,_0xf4d329,_0x38ff82,_0x4ab776),_0xbb52e8;}}['markMultiRangeDeletion'](_0x45d12e,_0x2b7609='multi',_0x409bd2={}){const _0x531aa5=this['editor']['plugins']['get']('Users')['me'],_0x212522=_0x45d12e['map'](_0x5a7299=>new _0x4b2c9(_0x5a7299['start'],_0x5a7299['end'])),_0x5852b4=new Set();this['_trackingSessionId']&&(_0x409bd2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c24b0,meta:_0x3c065d}of this['_findSuggestions'](_0x212522,'insertion'))_0x3c065d['isOwn']&&!_0x3c065d['isNextTo']&&_0x5852b4['add'](_0x5c24b0);for(const _0x4c25cd of _0x5852b4)if(_0x4c25cd['isMultiRange']){const _0x3a9065=_0x4c25cd['getRanges']();(!_0x4c25cd['attributes']||!_0x4c25cd['attributes']['skipNestingCheck'])&&(_0x3a9065['every'](_0xa34fb1=>_0x212522['some'](_0x274957=>_0x274957['containsRange'](_0xa34fb1,!0x0)))&&_0x4c25cd['discard']());if(_0x212522['every'](_0x303018=>_0x3a9065['some'](_0x1a7a7f=>_0x1a7a7f['containsRange'](_0x303018,!0x0)))){const _0x1cc3f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b7609,'accept');return this['forceDefaultExecution'](()=>_0x1cc3f3(_0x45d12e,null,_0x409bd2)),null;}}else{const _0x304ba6=_0x4c25cd['getFirstRange']();_0x212522['some'](_0x5ec694=>_0x5ec694['containsRange'](_0x304ba6,!0x0))&&_0x4c25cd['discard']();if(_0x212522['every'](_0x330b36=>_0x304ba6['containsRange'](_0x330b36,!0x0))){const _0x29e6fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b7609,'accept');return this['forceDefaultExecution'](()=>_0x29e6fb(_0x212522,null,_0x409bd2)),null;}}const _0x1ff16b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b7609,'join');let _0xaf6358=null;for(const _0x5ccf18 of this['getSuggestions']())if(_0x5ccf18['author']['id']==_0x531aa5['id']&&_0x5ccf18['isInContent']&&'deletion'==_0x5ccf18['type']&&_0x5ccf18['subType']==_0x2b7609&&sn(_0x5ccf18,_0x409bd2)&&(_0x1ff16b(_0x5ccf18['getRanges'](),_0x212522)||_0x1ff16b(_0x212522,_0x5ccf18['getRanges']()))){if(_0xaf6358){if(_0x5ccf18['commentThread']&&_0x5ccf18['commentThread']['length'])continue;for(const _0x4b3400 of _0x5ccf18['getRanges']())_0xaf6358['isIntersectingWithRange'](_0x4b3400)||_0xaf6358['addRange'](_0x4b3400);_0x5ccf18['removeMarkers']();}else{_0xaf6358=_0x5ccf18;for(const _0x3ca914 of _0x212522)_0x5ccf18['isIntersectingWithRange'](_0x3ca914)||_0x5ccf18['addRange'](_0x3ca914);}}if(_0xaf6358)return _0xaf6358;_0x5852b4['clear']();for(const {suggestion:_0x526060,meta:_0x586e0d}of this['_findSuggestions'](_0x212522,'deletion'))_0x586e0d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x586e0d['containsRangeInObject']&&!_0x586e0d['isInsideObject'])&&sn(_0x526060,_0x409bd2)&&_0x5852b4['add'](_0x526060);for(const _0x5103b3 of _0x5852b4){const _0x3ea7b7=_0x5103b3['getRanges']();if(!_0x409bd2||!_0x409bd2['skipNestingCheck']){if(_0x212522['every'](_0x559540=>_0x3ea7b7['some'](_0x37e989=>_0x37e989['containsRange'](_0x559540,!0x0))))return _0x5103b3;}(!_0x5103b3['attributes']||!_0x5103b3['attributes']['skipNestingCheck'])&&(_0x3ea7b7['every'](_0x44ed9e=>_0x212522['some'](_0x50155c=>_0x50155c['containsRange'](_0x44ed9e,!0x0)))&&_0x5103b3['discard']());}const _0x2c1a3c=_0x632a3(),_0x869910=_0x531aa5['id'],_0x369de0='deletion:'+_0x2b7609,_0x347cab=this['_setSuggestionData']({'id':_0x2c1a3c,'type':_0x369de0,'createdAt':new Date(),'authorId':_0x869910,'attributes':_0x409bd2});for(const _0xbb3b8f of _0x212522)_0xbb3b8f['detach'](),_0xbb3b8f['isCollapsed']||'$graveyard'==_0xbb3b8f['root']['rootName']||this['_addSuggestionMarker'](_0x369de0,_0x2c1a3c,_0x869910,_0xbb3b8f,x['getMultiRangeId']());return _0x347cab;}['markAttributeChange'](_0x240623,_0x26ca2c,_0x4ae340,_0x32cfa8,_0x938f68){if(_0x240623['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x56f721=this['editor']['plugins']['get']('Users')['me']['id'],_0x567380=Array['from'](this['_suggestions']['values']())['filter'](_0x15a063=>'attribute'==_0x15a063['type']&&_0x15a063['data']['key']==_0x26ca2c&&_0x15a063['isIntersectingWithRange'](_0x240623));if(this['_trackingSessionId']&&(_0x938f68['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5e17aa=this['_findSuggestions'](_0x240623,'insertion')['filter'](({meta:_0x20a575})=>_0x20a575['isOwn']&&!_0x20a575['isInsideObject']&&!_0x20a575['isNextTo'])['map'](({suggestion:_0xdcf4d5})=>_0xdcf4d5);_0x567380['unshift'](..._0x5e17aa);}const _0x599717=new Map([[_0x240623,_0x4ae340]]);for(const _0x2798cf of _0x567380){const _0x269780='attribute'==_0x2798cf['type']?_0x2798cf['data']['oldValue']:void 0x0,_0x59a41f=_0x2798cf['getFirstRange'](),_0x387f73=Array['from'](_0x599717['keys']())['find'](_0x1db2fb=>_0x1db2fb['isIntersecting'](_0x59a41f));if(!_0x387f73)continue;const _0x170301=_0x387f73['getDifference'](_0x59a41f);this['_isBlockAttribute'](_0x26ca2c)&&'insertion'==_0x2798cf['type']&&0x0!=_0x170301['length']||(_0x599717['delete'](_0x387f73),_0x170301['forEach'](_0x1f969f=>{_0x599717['set'](_0x1f969f,_0x4ae340);}),'insertion'!=_0x2798cf['type']&&_0x269780!=_0x32cfa8&&_0x599717['set'](_0x387f73['getIntersection'](_0x59a41f),_0x269780));}const _0x6772db=[];for(const [_0x34c115,_0x5544dd]of _0x599717){const _0x116fc6=_0x632a3(),_0x2b9ed1={'key':_0x26ca2c,'oldValue':_0x5544dd,'newValue':_0x32cfa8};_0x26ca2c['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':_0x26ca2c});const _0x347d76=('attribute:'+(_0x26ca2c+'|'+Ht({'newValue':_0x32cfa8})))['substring'](0x0,0x3c),_0x1aba71=this['_setSuggestionData']({'id':_0x116fc6,'type':_0x347d76,'data':_0x2b9ed1,'createdAt':new Date(),'authorId':_0x56f721,'attributes':_0x938f68});_0x6772db['push'](_0x1aba71),this['_addSuggestionMarker'](_0x347d76,_0x116fc6,_0x56f721,_0x34c115);}return _0x6772db;}['enableDefaultAttributesIntegration'](_0x5866db){this['enableCommand'](_0x5866db,(_0xd79be,..._0x36f103)=>{this['recordAttributeChanges'](()=>{_0xd79be(..._0x36f103);});});}['registerBlockAttribute'](_0x37f74c){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x37f74c);}['registerInlineAttribute'](_0x1b9867){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1b9867);}['startTrackingSession'](_0x51a282){return this['_trackingSessionId']=void 0x0!==_0x51a282?_0x51a282:_0x632a3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x41a258){return'attribute'==_0x41a258['type']?_0x41a258['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x2fbb6a){if(0x0==_0x2fbb6a['length'])return;const _0x1e3a29=this['editor'],_0x9f68d3=_0x1e3a29['plugins']['get'](_0x84e023),_0x36bf04=[];_0x1e3a29['model']['change'](_0x243a36=>{for(let _0x14e79c=0x0;_0x14e79c<_0x2fbb6a['length'];_0x14e79c++){const _0x47c9cf=_0x2fbb6a[_0x14e79c];if(_0x47c9cf['baseVersion']=_0x1e3a29['model']['document']['version'],_0x47c9cf['isDocumentOperation']=!0x0,_0x9f68d3['isMarkedRemoveOperation'](_0x47c9cf)){const _0x23f27e=Lt(_0x47c9cf['newRange'],_0x1e3a29['model']);_0x36bf04['unshift'](_0x4b2c9['fromRange'](_0x23f27e));}else switch(_0x47c9cf['type']){case'rename':{const _0x436c15=_0x47c9cf['oldName'],_0x20d63a=_0x47c9cf['newName'];if(_0x436c15==_0x20d63a)break;_0x243a36['batch']['addOperation'](_0x47c9cf),_0x1e3a29['model']['applyOperation'](_0x47c9cf);const _0x886420='$elementName',_0x48c9e8=_0x47c9cf['position'],_0x55fc3e=_0x1e3a29['model']['createRange'](_0x48c9e8,_0x1e3a29['model']['createPositionAt'](_0x48c9e8['nodeAfter'],'end'));this['markAttributeChange'](_0x55fc3e,_0x886420,_0x436c15,_0x20d63a,{'groupId':_0x632a3()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1b633b=_0x47c9cf['oldValue'],_0x2a8319=_0x47c9cf['newValue'];if(_0x1b633b==_0x2a8319)break;_0x243a36['batch']['addOperation'](_0x47c9cf),_0x1e3a29['model']['applyOperation'](_0x47c9cf);const _0x374395=_0x47c9cf['key'];if(!this['_isRegisteredAttribute'](_0x374395))break;const _0x227d83=Lt(_0x47c9cf['range'],_0x1e3a29['model']);this['markAttributeChange'](_0x227d83,_0x374395,_0x1b633b,_0x2a8319,{'groupId':_0x632a3()});break;}case'insert':{_0x243a36['batch']['addOperation'](_0x47c9cf),_0x1e3a29['model']['applyOperation'](_0x47c9cf);if(_0x2fbb6a[_0x14e79c+0x1]&&'move'==_0x2fbb6a[_0x14e79c+0x1]['type'])break;const _0x40eeb=_0x47c9cf['position'],_0x337831=_0x47c9cf['howMany'],_0x27c039=Lt(_0x1e3a29['model']['createRange'](_0x40eeb,_0x40eeb['getShiftedBy'](_0x337831)),_0x1e3a29['model']);this['markInsertion'](_0x27c039);break;}case'split':{_0x243a36['batch']['addOperation'](_0x47c9cf),_0x1e3a29['model']['applyOperation'](_0x47c9cf);const _0x370bc2=_0x47c9cf['splitPosition'],_0x15630f=_0x47c9cf['moveTargetPosition'];this['markInsertion'](_0x1e3a29['model']['createRange'](_0x370bc2,_0x15630f));break;}case'move':case'remove':_0x243a36['batch']['addOperation'](_0x47c9cf),_0x1e3a29['model']['applyOperation'](_0x47c9cf);}}for(const _0x2e6fee of _0x36bf04)_0x2e6fee['detach'](),this['markDeletion'](_0x2e6fee);});}['_setSuggestionRange'](_0x341fd9,_0x21f04c){const _0x3ebe42=_0x341fd9['getFirstMarker']();this['_model']['change'](_0x568cb4=>{_0x568cb4['updateMarker'](_0x3ebe42,{'range':_0x21f04c});});}['_addThreadToSuggestion'](_0x2ed655){const _0x2c070a=_0x2ed655['id'],_0x202baa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c070a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x202baa,'threadId':_0x2c070a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b3b54=this['_commentsRepository']['getCommentThread'](_0x2c070a);_0x3b3b54['unbind']('isRemovable'),_0x3b3b54['isRemovable']=!0x1,_0x2ed655['commentThread']=_0x3b3b54;}['_checkSuggestionCorrectness'](_0x4576c5,_0x2d0440,_0x251c3b,_0x1a5e0f){if(_0x4576c5['type']!=_0x2d0440||_0x4576c5['subType']!=_0x251c3b||_0x4576c5['creator']['id']!=_0x1a5e0f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x42d154('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4962db,_0x490480){const _0x3c0676=_0x4962db['getFirstRange']();if(_0x490480['isEqual'](_0x3c0676))_0x4962db['removeMarkers']();else{if(_0x3c0676['containsRange'](_0x490480)){const _0x16312b=this['_model']['createPositionAt'](_0x490480['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4962db,this['_model']['createRange'](_0x3c0676['start'],_0x16312b));const _0x3cbfbb=_0x632a3(),_0x2272e4=_0x4962db['creator']['id'],_0x15d7b6=_0x4962db['type']+':'+_0x4962db['subType'];this['_setSuggestionData']({'id':_0x3cbfbb,'type':_0x15d7b6,'createdAt':new Date(),'authorId':_0x2272e4,'data':_0x4962db['data'],'attributes':_0x4962db['attributes']});const _0x151171=this['_model']['createPositionAt'](_0x490480['end']['parent'],'after'),_0x4e132f=this['_model']['createRange'](_0x151171,_0x3c0676['end']);this['_addSuggestionMarker'](_0x15d7b6,_0x3cbfbb,_0x2272e4,_0x4e132f);}else{if(_0x3c0676['containsPosition'](_0x490480['start'])){const _0x47bff4=this['_model']['createPositionAt'](_0x490480['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4962db,this['_model']['createRange'](_0x3c0676['start'],_0x47bff4));}else{const _0x26a045=this['_model']['createPositionAt'](_0x490480['end']['parent'],'after');this['_setSuggestionRange'](_0x4962db,this['_model']['createRange'](_0x26a045,_0x3c0676['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x12ca01){for(const {suggestion:_0x25af90,meta:_0x55a947}of this['_findSuggestions'](_0x12ca01,'insertion')){if(!_0x55a947['isOwn'])continue;const _0x312a1f=_0x25af90['getRanges']();for(const _0x39d5f5 of _0x312a1f)if(!_0x12ca01['getDifference'](_0x39d5f5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10eae6){return this['editor']['plugins']['get']('Users')['getUser'](_0x10eae6);}['_getExternalAuthor'](_0x3102cc){const _0x39d1b4=this['editor']['plugins']['get']('Users'),_0x1331e6=_0x2d3f6d('external:'+_0x3102cc),_0x3385f2=_0x39d1b4['getUser'](_0x1331e6);return _0x3385f2||_0x39d1b4['addUser']({'id':_0x1331e6,'name':_0x3102cc});}['_createSuggestion'](_0x1fddce,_0xa7699d,_0x6eeea3,_0x154b29,_0x8e6a75,_0x4909ec){const _0x159464=this['_getAuthorFromId'](_0x154b29);if(!_0x159464)throw new _0x42d154('track-changes-user-not-found',this,{'authorId':_0x154b29,'suggestionId':_0x6eeea3});const _0xd11999=this['_suggestionFactory']['buildSuggestion'](_0x1fddce,_0xa7699d,_0x6eeea3,_0x159464,_0x8e6a75,_0x3c937e=>{this['_updateSuggestionData'](_0x6eeea3,{'attributes':_0x3c937e});const _0x126b90=this['getSuggestion'](_0x6eeea3);this['_joinWithAdjacentSuggestions'](new Set([_0x126b90])),this['_refreshSuggestionsChain'](new Set([_0x126b90]));},_0x4909ec);return this['listenTo'](_0xd11999,'accept',()=>{this['_updateSuggestionData'](_0x6eeea3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xd11999,'discard',()=>{this['_updateSuggestionData'](_0x6eeea3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x6eeea3,_0xd11999),this['_suggestionState']['set'](_0xd11999,'notReady'),_0xd11999;}['_splitMarkerName'](_0x45a0b5){return Gt(_0x45a0b5);}['_breakSuggestionMarker'](_0x2748fb,_0x35ea32,_0x2c7dda){const _0x5a46b8=_0x2748fb['getFirstRange'](),_0x2b36af=_0x5a46b8['start'],_0x3af9eb=_0x5a46b8['end'];this['_setSuggestionRange'](_0x2748fb,this['_model']['createRange'](_0x2b36af,_0x35ea32));const _0x40f5d2=_0x632a3(),_0x220adc=_0x2748fb['creator']['id'],_0x366943=_0x2748fb['type']+(_0x2748fb['subType']?':'+_0x2748fb['subType']:'');this['_setSuggestionData']({'id':_0x40f5d2,'type':_0x366943,'createdAt':new Date(),'authorId':_0x220adc,'originalSuggestionId':_0x2748fb['_originalSuggestionId']||_0x2748fb['id'],'attributes':_0x2748fb['attributes'],'data':_0x2748fb['data']});const _0x3814ad=this['_getAttributeKey'](_0x2748fb);('formatBlock'==_0x2748fb['type']||_0x3814ad&&this['_isBlockAttribute'](_0x3814ad))&&(_0x2c7dda=this['_model']['createPositionBefore'](_0x2c7dda['parent'])),this['_addSuggestionMarker'](_0x366943,_0x40f5d2,_0x220adc,this['_model']['createRange'](_0x2c7dda,_0x3af9eb));}['_findSuggestions'](_0x214a5e,_0x17d19a=null){const _0x4db5f5=[],_0x17db7e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x214a5e)||(_0x214a5e=[_0x214a5e]);for(const _0x204ce2 of this['getSuggestions']()){if(!_0x204ce2['isInContent'])continue;if(_0x17d19a&&_0x204ce2['type']!=_0x17d19a)continue;let _0xe041e7=!0x1;for(const _0x466138 of _0x204ce2['getRanges']()){for(const _0x3d492b of _0x214a5e){const _0x125587=_0x3d492b['start']['isEqual'](_0x466138['end'])||_0x3d492b['end']['isEqual'](_0x466138['start']);if(_0x125587||_0x3d492b['getIntersection'](_0x466138)){const _0x52a5e7=_0x3d492b['containsRange'](_0x466138)&&zt(this['_model']['schema'],_0x466138['start'],_0x3d492b),_0x529113=_0x466138['containsRange'](_0x3d492b)&&zt(this['_model']['schema'],_0x3d492b['start'],_0x466138);_0x4db5f5['push']({'suggestion':_0x204ce2,'meta':{'isOwn':_0x17db7e==_0x204ce2['author'],'isNextTo':_0x125587,'isInsideObject':_0x52a5e7,'containsRangeInObject':_0x529113}}),_0xe041e7=!0x0;break;}}if(_0xe041e7)break;}}return _0x4db5f5;}['_addSuggestionMarker'](_0x42c61d,_0x2e9aa7,_0x744654,_0x14e7d0,_0x5c1c13){this['_model']['change'](_0x327d2f=>{let _0x160bb5='suggestion:'+_0x42c61d+':'+_0x2e9aa7+':'+_0x744654;_0x5c1c13&&(_0x160bb5=_0x160bb5+':'+_0x5c1c13),_0x327d2f['addMarker'](_0x160bb5,{'range':_0x14e7d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf4a58b){const _0x27afa8=_0xf4a58b['previous'],_0x4f0ee9=_0xf4a58b['next'];_0xf4a58b['previous']=null,_0xf4a58b['next']=null,null!=_0x27afa8&&_0x27afa8['next']==_0xf4a58b&&(_0x27afa8['next']=_0x4f0ee9),null!=_0x4f0ee9&&_0x4f0ee9['previous']==_0xf4a58b&&(_0x4f0ee9['previous']=_0x27afa8),'ready'==this['_suggestionState']['get'](_0xf4a58b)&&(this['_suggestionState']['set'](_0xf4a58b,'removed'),this['fire']('suggestionUnloaded',_0xf4a58b,_0x27afa8,_0x4f0ee9));}['_setSuggestionData'](_0x4d5eeb){const _0x3fc165=_0x4d5eeb['id'],_0x441a5a=this['addSuggestionData'](_0x4d5eeb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x16c148=this['editor']['plugins']['get']('PendingActions'),_0x3beaf6=_0x441a5a['hasComments'],_0x5cea5b=_0x441a5a['subType']?_0x441a5a['type']+':'+_0x441a5a['subType']:_0x441a5a['type'],_0x1b7fdf=this['editor']['locale'],_0x50b26d=_0x16c148['add'](o(_0x1b7fdf,'PENDING_ACTION_SUGGESTION')),_0x5d2766={'id':_0x3fc165,'type':_0x5cea5b,'hasComments':_0x3beaf6,'data':_0x4d5eeb['data']||null,'originalSuggestionId':_0x4d5eeb['originalSuggestionId']||null,'attributes':_0x441a5a['attributes']};this['_adapter']['addSuggestion'](_0x5d2766)['then'](_0x1ed6c3=>{_0x441a5a['_saved']=!0x0,_0x16c148['remove'](_0x50b26d),_0x1ed6c3&&_0x1ed6c3['createdAt']&&(this['_suggestions']['get'](_0x3fc165)['createdAt']=_0x1ed6c3['createdAt']);})['catch'](_0x34afdf=>{throw _0x129820('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x441a5a['discard']();}),_0x441a5a['stopListening'](),this['_suggestions']['delete'](_0x441a5a['id']),this['_suggestionState']['delete'](_0x441a5a),_0x34afdf;});}return _0x441a5a;}['_isBlockAttribute'](_0x67bb70){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x67bb70);}['_isInlineAttribute'](_0xfe571c){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0xfe571c);}['_updateSuggestionData'](_0xf25e22,_0x66dd5b){const _0x5a6be9=this['editor']['plugins']['get']('PendingActions'),_0x3633b0=this['getSuggestion'](_0xf25e22);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3633b0['_saved']){const _0x3a0d2f=_0x5a6be9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xf25e22,_0x66dd5b)['then'](()=>{_0x5a6be9['remove'](_0x3a0d2f);});}else _0x3633b0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xf25e22,_0x66dd5b);});}}['_getSuggestionData'](_0x648d47){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x42d154('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x648d47);}['_handleNewSuggestionMarker'](_0xe71a3e){const {id:_0x206805,type:_0x49cf82,subType:_0x29d8ea,authorId:_0x3ec2e5}=this['_splitMarkerName'](_0xe71a3e),_0x4123f6=this['_suggestions']['get'](_0x206805)||this['_createSuggestion'](_0x49cf82,_0x29d8ea,_0x206805,_0x3ec2e5,{});switch(this['_checkSuggestionCorrectness'](_0x4123f6,_0x49cf82,_0x29d8ea,_0x3ec2e5),this['_suggestionState']['get'](_0x4123f6)){case'notReady':this['_getSuggestionData'](_0x206805)['then'](_0x2f9fb2=>{let _0x5dfa09=Promise['resolve']();_0x2f9fb2['hasComments']&&(_0x5dfa09=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x206805})),_0x5dfa09['then'](()=>{this['addSuggestionData'](_0x2f9fb2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4123f6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x206805,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4123f6,'ready'),this['fire']('suggestionLoaded',_0x4123f6);break;case'ready':this['fire']('suggestionChanged',_0x4123f6);}return _0x4123f6['addMarkerName'](_0xe71a3e),_0x4123f6;}['_refreshSuggestionsChain'](_0x30aaf1){const _0x5a7321=Array['from'](_0x30aaf1),_0x471227=_0x5a7321['filter'](_0x326972=>'attribute'==_0x326972['type']);this['_refreshAttributeSuggestionsChain'](_0x471227);const _0x11be54=_0x5a7321['filter'](_0x23fcf8=>!_0x23fcf8['isMultiRange']&&'attribute'!=_0x23fcf8['type']),_0x477d01=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c988e=>!_0x4c988e['isMultiRange']&&'attribute'!=_0x4c988e['type']),_0x3c49ac=_0x477d01['filter'](_0x475c4f=>!_0x30aaf1['has'](_0x475c4f)),_0x5c3d1f=new Map(_0x477d01['map'](_0x3db580=>[_0x3db580,this['_suggestionFactory']['getSuggestionCallback'](_0x3db580['type'],_0x3db580['subType'],'chain')])),_0x16587b=new Map(_0x477d01['map'](_0x38edca=>[_0x38edca,_0x38edca['getFirstRange']()])),_0x348307=new Set(),_0x5ae0cc=new Set();for(let _0x57955d=0x0;_0x57955d<_0x11be54['length'];_0x57955d++)_0x5d1d19(_0x11be54[_0x57955d],_0x11be54,_0x57955d+0x1);for(let _0x111f83=0x0;_0x111f83<_0x11be54['length'];_0x111f83++)_0x5d1d19(_0x11be54[_0x111f83],_0x3c49ac,0x0);const _0x118bdc=new Set();for(let _0x304eca=0x0;_0x304eca<_0x11be54['length'];_0x304eca++){const _0x37f925=_0x11be54[_0x304eca];!_0x5ae0cc['has'](_0x37f925)&&_0x37f925['previous']&&(_0x118bdc['add'](_0x37f925['previous']),_0x37f925['previous']['next']===_0x37f925&&(_0x37f925['previous']['next']=null),_0x37f925['previous']=null),!_0x348307['has'](_0x37f925)&&_0x37f925['next']&&(_0x118bdc['add'](_0x37f925['next']),_0x37f925['next']['previous']===_0x37f925&&(_0x37f925['next']['previous']=null),_0x37f925['next']=null);}function _0x5d1d19(_0x27af23,_0x375d89,_0x2f9bb0){for(let _0x384147=_0x2f9bb0;_0x384147<_0x375d89['length'];_0x384147++){const _0x1a5a0f=_0x3dc4d7(_0x27af23,_0x375d89[_0x384147]);_0x1a5a0f&&(_0x1a5a0f[0x0]['next']=_0x1a5a0f[0x1],_0x1a5a0f[0x1]['previous']=_0x1a5a0f[0x0],_0x348307['add'](_0x1a5a0f[0x0]),_0x5ae0cc['add'](_0x1a5a0f[0x1]));}}function _0x3dc4d7(_0x818f41,_0x59ab0a){if(_0x818f41['author']['id']!==_0x59ab0a['author']['id'])return null;const _0x4904e9=_0x5c3d1f['get'](_0x818f41)(_0x818f41,_0x59ab0a,_0x16587b['get'](_0x818f41),_0x16587b['get'](_0x59ab0a));if(!_0x4904e9)return null;return _0x5c3d1f['get'](_0x59ab0a)(_0x818f41,_0x59ab0a,_0x16587b['get'](_0x818f41),_0x16587b['get'](_0x59ab0a))?_0x4904e9[0x1]['commentThread']&&_0x4904e9[0x1]['commentThread']['length']?null:_0x4904e9:null;}_0x118bdc['size']&&this['_refreshSuggestionsChain'](_0x118bdc);}['_refreshAttributeSuggestionsChain'](_0x4deea8){if(0x0==_0x4deea8['length'])return;const _0x4ade59=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30774b=>'attribute'==_0x30774b['type']&&_0x30774b['_isDataLoaded']),_0x14bc5f=[],_0x40c7ed=new Map();for(const _0x5156a7 of _0x4ade59){const _0x3a8014=_0x2d3f6d(_0x5156a7['attributes']);_0x40c7ed['has'](_0x3a8014)||(_0x40c7ed['set'](_0x3a8014,_0x14bc5f['length']),_0x14bc5f['push']([]));const _0x21bde7=_0x40c7ed['get'](_0x3a8014);_0x14bc5f[_0x21bde7]['push'](_0x5156a7);}!(function(){_0x14bc5f['sort']((_0x31be7b,_0x1abd92)=>{const _0x944814=_0x31be7b[0x0]['createdAt'],_0x3a5ae5=_0x1abd92[0x0]['createdAt'];return _0x944814==_0x3a5ae5?_0x31be7b[0x0]['attributes']['groupId']<_0x1abd92[0x0]['attributes']['groupId']?-0x1:0x1:_0x944814<_0x3a5ae5?-0x1:0x1;});for(const _0x14432b of _0x14bc5f)_0x14432b['sort']((_0x44740,_0x4a709e)=>_0x44740['id']<_0x4a709e['id']?-0x1:0x1);}());for(let _0x3b588c=0x0;_0x3b588c<_0x14bc5f['length'];_0x3b588c++){if(0x0==_0x14bc5f[_0x3b588c]['length'])continue;const _0x21e82c=[];for(let _0x4b74e7=_0x3b588c+0x1;_0x4b74e7<_0x14bc5f['length'];_0x4b74e7++)0x0!=_0x14bc5f[_0x4b74e7]['length']&&_0x4dd185(_0x14bc5f[_0x3b588c],_0x14bc5f[_0x4b74e7])&&_0x21e82c['push'](_0x4b74e7);for(const _0x4f8d09 of _0x21e82c)_0x14bc5f[_0x3b588c]=_0x14bc5f[_0x3b588c]['concat'](_0x14bc5f[_0x4f8d09]),_0x14bc5f[_0x4f8d09]=[];}for(const _0x2a91a6 of _0x14bc5f)for(let _0x4237f1=0x0;_0x4237f1<_0x2a91a6['length'];_0x4237f1++){const _0x2d4e2a=_0x2a91a6[_0x4237f1+0x1]||null;_0x2a91a6[_0x4237f1]['next']!==_0x2d4e2a&&(_0x2a91a6[_0x4237f1]['next']=_0x2d4e2a);}for(const _0x1293be of _0x14bc5f)for(let _0x534b2e=0x0;_0x534b2e<_0x1293be['length'];_0x534b2e++){const _0x12e57e=_0x1293be[_0x534b2e-0x1]||null;_0x1293be[_0x534b2e]['previous']!==_0x12e57e&&(_0x1293be[_0x534b2e]['previous']=_0x12e57e);}function _0x4dd185(_0x6a7358,_0x311384){if(_0x6a7358[0x0]['attributes']['groupId']!==_0x311384[0x0]['attributes']['groupId']&&_0x6a7358[0x0]['author']!==_0x311384[0x0]['author'])return!0x1;if(!function(_0x4a8588,_0x244907){if(!_0x4a8588['hasComments']&&!_0x244907['hasComments'])return!0x0;if(_0x4a8588['hasComments']&&_0x244907['hasComments'])return!0x1;if(_0x4a8588['hasComments']&&_0x244907['createdAt']<_0x4a8588['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x244907['hasComments']&&_0x4a8588['createdAt']<_0x244907['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6a7358[0x0],_0x311384[0x0]))return!0x1;const _0x57b5b5=Pt(_0x6a7358[0x0]['attributes'],['groupId','trackingSessionId']),_0x579ca8=Pt(_0x311384[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x42ac9f(_0x57b5b5,_0x579ca8))return!0x1;if(_0x6a7358[0x0]['attributes']['groupId']==_0x311384[0x0]['attributes']['groupId'])return!0x0;if(_0x6a7358[0x0]['attributes']['trackingSessionId']!==_0x311384[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6a7358['every'](_0xbe4509=>_0x311384['some'](_0x2e4c97=>_0xbe4509['getFirstRange']()['isEqual'](_0x2e4c97['getFirstRange']())))&&_0x311384['every'](_0x38199c=>_0x6a7358['some'](_0x518752=>_0x38199c['getFirstRange']()['isEqual'](_0x518752['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56953a){const _0xd61c11=Array['from'](_0x56953a),_0x13d8bb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5cef7c=_0x13d8bb['filter'](_0x558ab6=>!_0x56953a['has'](_0x558ab6)),_0x45ecc3=new Map(_0xd61c11['map'](_0x2e3823=>[_0x2e3823,this['_suggestionFactory']['getSuggestionCallback'](_0x2e3823['type'],_0x2e3823['subType'],'join')])),_0x1dfc88=new Map(_0x13d8bb['map'](_0x5c78d7=>[_0x5c78d7,_0x5c78d7['getRanges']()]));for(let _0x3386c2=0x0;_0x3386c2<_0xd61c11['length'];_0x3386c2++){if(_0x4bc10d(this,_0xd61c11[_0x3386c2],_0xd61c11,_0x3386c2+0x1))return!0x0;}for(let _0x30845e=0x0;_0x30845e<_0xd61c11['length'];_0x30845e++){if(_0x4bc10d(this,_0xd61c11[_0x30845e],_0x5cef7c,0x0))return!0x0;}return!0x1;function _0x4bc10d(_0x1cef6b,_0x35843c,_0x2b3b49,_0x32d918){for(let _0x224f13=_0x32d918;_0x224f13<_0x2b3b49['length'];_0x224f13++){const _0x38832e=_0x2b3b49[_0x224f13];if(_0x38832e['type']!==_0x35843c['type']||_0x38832e['author']['id']!==_0x35843c['author']['id']||_0x38832e['subType']!==_0x35843c['subType'])continue;if(!en(_0x35843c,_0x38832e))continue;if('attribute'==_0x35843c['type']&&_0x35843c['data']['oldValue']!=_0x38832e['data']['oldValue'])continue;if('attribute'==_0x35843c['type']&&_0x1cef6b['_isBlockAttribute'](_0x35843c['data']['key']))continue;if('formatBlock'==_0x35843c['type']){const _0x1a522d=_0x1cef6b['editor']['model'],_0x704ce4=_0x35843c['getContainedElement']();if(_0x704ce4&&(_0x1a522d['schema']['isObject'](_0x704ce4)||_0x1a522d['schema']['isLimit'](_0x704ce4)))continue;}const _0x2b1777=_0x45ecc3['get'](_0x35843c),_0x2c87f2=_0x1dfc88['get'](_0x35843c),_0x184bd2=_0x1dfc88['get'](_0x38832e),_0x11acb7=_0x35843c['commentThread']&&_0x35843c['commentThread']['length'],_0x5a616b=_0x38832e['commentThread']&&_0x38832e['commentThread']['length'];if(!_0x11acb7&&_0x2b1777(_0x184bd2,_0x2c87f2))return _0x1cef6b['_joinSuggestions'](_0x38832e,_0x35843c),_0x1dfc88['delete'](_0x35843c),!0x0;if(!_0x5a616b&&_0x2b1777(_0x2c87f2,_0x184bd2))return _0x1cef6b['_joinSuggestions'](_0x35843c,_0x38832e),_0x1dfc88['delete'](_0x38832e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3aaec9,_0x4c963a){if(_0x3aaec9['isMultiRange']){for(const _0x4d2d22 of _0x4c963a['getRanges']())_0x3aaec9['addRange'](_0x4d2d22);}else{const _0x507dc8=_0x4c963a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3aaec9,this['_model']['createRange'](_0x3aaec9['getFirstRange']()['start'],_0x507dc8));}_0x4c963a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f0a74,_0x29c52d,_0x1dca8d){const _0x473159=_0x3f0a74['startsWith']('format')||_0x3f0a74['startsWith']('attribute')?'FORMATTING':_0x3f0a74['toUpperCase']();return o(this['editor']['locale'],_0x29c52d+'_'+_0x473159+'_SUGGESTION_ANNOUNCEMENT',_0x1dca8d);}['_initAriaMarkerChangeAnnouncements'](){const _0x2cb7cc=this['editor'];if(!_0x2cb7cc['ui'])return;const {ariaLiveAnnouncer:_0x2d7802}=_0x2cb7cc['ui'];_0x451d9f(this['_model'],({left:_0x46d496,entered:_0x29cc6a})=>{for(const _0x1494de of _0x46d496){const {group:_0x51b28b,type:_0x3e04e8}=this['_splitMarkerName'](_0x1494de['name']);if('suggestion'===_0x51b28b){_0x2d7802['announce'](this['_getMarkerAnnouncementText'](_0x3e04e8,'LEAVE'));break;}}for(const _0x42ed44 of _0x29cc6a){const {group:_0x45e153,type:_0x1cd3db}=this['_splitMarkerName'](_0x42ed44['name']);if('suggestion'===_0x45e153){_0x2d7802['announce'](this['_getMarkerAnnouncementText'](_0x1cd3db,'ENTER',_0x3838cf(_0x3851b7)));break;}}});}['_processAttributeChanges'](_0x2965b4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x953c29=this['editor'],_0x69240=_0x953c29['model']['document']['differ']['getChanges']();if(0x0==_0x69240['length'])return!0x1;const _0x362c62=[],_0x32bd33=_0x69240['filter'](_0x50e495=>'attribute'==_0x50e495['type']),_0x4443f1=_0x69240['filter'](_0x200711=>'insert'==_0x200711['type']&&'$text'!=_0x200711['name']),_0xab8c13=_0x69240['filter'](_0x27c16f=>'remove'==_0x27c16f['type']&&'$text'!=_0x27c16f['name']);for(const _0x11c2b3 of _0x32bd33)_0x362c62['push']({'key':_0x11c2b3['attributeKey'],'newValue':_0x11c2b3['attributeNewValue'],'oldValue':_0x11c2b3['attributeOldValue'],'range':Zt(_0x11c2b3['range'],_0x953c29['model'])});for(const _0x56d672 of _0x4443f1){const _0x2acfb0=_0xab8c13['find'](_0x567864=>_0x567864['position']['isEqual'](_0x56d672['position']));_0x2acfb0&&_0x362c62['push']({'key':m,'newValue':_0x56d672['name'],'oldValue':_0x2acfb0['name'],'range':_0x953c29['model']['createRangeOn'](_0x56d672['position']['nodeAfter'])});}return 0x0!=_0x362c62['length']&&this['_reduceExistingSuggestions'](_0x2965b4,_0x362c62);}['_processAttributeSuggestions'](_0x3214e5){let _0x32e2d9=!0x1;const _0x52d795=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xf9561f=>_0xf9561f['data']['newRange']&&_0xf9561f['name']['startsWith']('suggestion:attribute:'));for(const _0x587662 of _0x52d795){const {subType:_0x2d11e1,id:_0x1e3031}=this['_splitMarkerName'](_0x587662['name']),_0x2d9b37=_0x2d11e1['split']('|')[0x0];for(const _0x255b7e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x255b7e['id']!=_0x1e3031&&'attribute'==_0x255b7e['type']&&_0x255b7e['data']&&_0x255b7e['data']['key']==_0x2d9b37&&_0x255b7e['getFirstRange']()['isIntersecting'](_0x587662['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x255b7e,_0x587662['data']['newRange'],_0x3214e5),_0x32e2d9=!0x0);}return _0x32e2d9;}['recordAttributeChanges'](_0x15675f){this['_recordAttributeSuggestions']=!0x0,_0x15675f();}['_isRegisteredAttribute'](_0x165448){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x165448);}['_reduceExistingSuggestions'](_0x39bd61,_0x56e8c3){if(0x0==_0x56e8c3['length'])return!0x1;let _0x516f25=!0x1;for(const _0x38778d of _0x56e8c3){const _0x2a12e8=this['_findSuggestions'](_0x38778d['range'],'attribute')['filter'](_0x20a92c=>!_0x20a92c['meta']['isNextTo'])['map'](_0x4ca949=>_0x4ca949['suggestion']),_0x2cd2d0=_0x2d3f6d({'newValue':_0x38778d['newValue']});_0x2a12e8['filter'](_0x3b5762=>{const [_0xf59c91,_0xa4de42]=_0x3b5762['subType']['split']('|');return _0xf59c91==_0x38778d['key']&&_0xa4de42!=_0x2cd2d0;})['forEach'](_0x282590=>{this['_reduceSuggestionAttributeRange'](_0x282590,_0x38778d['range'],_0x39bd61),_0x516f25=!0x0;});}return _0x516f25;}['_reduceSuggestionAttributeRange'](_0x1e8c8f,_0x1927e4,_0x3831bb){const _0x5b9053=_0x1e8c8f['getFirstRange']()['getDifference'](_0x1927e4);0x0!==_0x5b9053['length']?0x1!==_0x5b9053['length']?this['_breakSuggestionMarker'](_0x1e8c8f,_0x1927e4['start'],_0x1927e4['end']):this['_setSuggestionRange'](_0x1e8c8f,_0x5b9053[0x0]):_0x3831bb['removeMarker'](_0x1e8c8f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x503eae){this['_editor']=_0x503eae,this['_model']=_0x503eae['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4cfaa6,_0x4ab27b,_0x16f1df,_0x1ec853,_0x5a93fe,_0x1547b8,_0x2ce069){return new x(this['_model'],{'type':_0x4cfaa6,'subType':_0x4ab27b,'id':_0x16f1df,'originalSuggestionId':_0x2ce069,'author':_0x1ec853,'creator':_0x1ec853,'attributes':_0x5a93fe,'onAttributesChange':_0x1547b8,'onAccept':(..._0x263b5f)=>this['getSuggestionCallback'](_0x4cfaa6,_0x4ab27b,'accept')(..._0x263b5f),'onDiscard':(..._0x350e12)=>this['getSuggestionCallback'](_0x4cfaa6,_0x4ab27b,'discard')(..._0x350e12)});}['registerCustomCallback'](_0x4c381e,_0x53ccc7,_0x1f9e50,_0xfb562c){const _0x2bb0be=_0x4c381e+':'+_0x53ccc7+':'+_0x1f9e50;this['_customCallbacks']['set'](_0x2bb0be,_0xfb562c);}['getSuggestionCallback'](_0x12c137,_0x44e7e5,_0x28d938){const _0x18530a=_0x12c137+':'+_0x44e7e5+':'+_0x28d938;return this['_customCallbacks']['get'](_0x18530a)||this['_defaultCallbacks']['get'](_0x12c137+':'+_0x28d938);}['_registerDefaultCallbacks'](){const _0x3decca=()=>!0x1,_0x2eb406=_0x2629d0=>{_0x2629d0['sort']((_0x945727,_0xbc8456)=>_0x945727['start']['isBefore'](_0xbc8456['start'])?0x1:-0x1),this['_model']['change'](_0x5f42b8=>{for(const _0x7cc16d of _0x2629d0){let _0x507370;_0x507370=_0x7cc16d['end']['isAtEnd']&&_0x7cc16d['end']['parent']==_0x7cc16d['start']['nodeAfter']?_0x5f42b8['createSelection'](_0x7cc16d['start']['nodeAfter'],'on'):_0x5f42b8['createSelection'](_0x7cc16d),this['_model']['deleteContent'](_0x507370,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3d2bdb=(_0x3dfa07,_0x1da12a)=>{_0x1da12a&&this['_model']['change'](_0x1bdc80=>{const {commandName:_0x506349,commandParams:_0x2ac03d=[]}=_0x1da12a,_0x219ffb=_0x3dfa07['map'](_0x381aa3=>(Kt(_0x381aa3)&&(_0x381aa3=this['_model']['createRange'](_0x381aa3['end'])),_0x381aa3))['filter'](_0x4ab7f0=>'$graveyard'!==_0x4ab7f0['root']['rootName']);if(_0x219ffb['length']<0x1)return;const _0x5933a5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15266e=>_0x4b2c9['fromRange'](_0x15266e));_0x1bdc80['setSelection'](_0x219ffb);for(const _0x5f2e2e of this['_editor']['commands']['commands']())_0x5f2e2e['refresh']();_0x2ac03d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x506349,..._0x2ac03d);const _0x3a3e2e=_0x5933a5['filter'](_0x36afe6=>'$graveyard'!=_0x36afe6['root']['rootName']);_0x3a3e2e['length']>0x0&&_0x1bdc80['setSelection'](_0x3a3e2e);for(const _0x21439d of _0x5933a5)_0x21439d['detach']();});},_0x2e8b20=(_0x191492,_0x50f998)=>0x1==_0x191492['length']&&0x1==_0x50f998['length']&&_0x191492[0x0]['end']['isEqual'](_0x50f998[0x0]['start']),_0x56907a=(_0x40ccb0,_0x18ea06,_0xb548e3,_0x55ae96)=>nn(_0x40ccb0,_0x18ea06,_0xb548e3,_0x55ae96)?[_0x40ccb0,_0x18ea06]:nn(_0x18ea06,_0x40ccb0,_0x55ae96,_0xb548e3)?[_0x18ea06,_0x40ccb0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3decca),this['_defaultCallbacks']['set']('insertion:discard',_0x2eb406),this['_defaultCallbacks']['set']('insertion:join',_0x2e8b20),this['_defaultCallbacks']['set']('insertion:chain',_0x56907a),this['_defaultCallbacks']['set']('deletion:accept',_0x2eb406),this['_defaultCallbacks']['set']('deletion:discard',_0x3decca),this['_defaultCallbacks']['set']('deletion:join',_0x2e8b20),this['_defaultCallbacks']['set']('deletion:chain',_0x56907a),this['_defaultCallbacks']['set']('formatInline:accept',_0x3d2bdb),this['_defaultCallbacks']['set']('formatInline:discard',_0x3decca),this['_defaultCallbacks']['set']('formatInline:join',_0x2e8b20),this['_defaultCallbacks']['set']('formatInline:chain',_0x3decca),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3d2bdb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3decca),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e8b20),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3decca),this['_defaultCallbacks']['set']('attribute:accept',_0x3decca),this['_defaultCallbacks']['set']('attribute:discard',(_0x243e4f,_0x34140f)=>{if(!_0x34140f)return;const _0x391e83=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x6133=>{if(_0x34140f['key']==m)for(const _0x3760d2 of _0x243e4f){const _0x4598e7=_0x3760d2['start']['nodeAfter'],_0x13ec8b=_0x34140f['oldValue'];_0x6133['rename'](_0x4598e7,_0x13ec8b);}else{if(_0x391e83['_isBlockAttribute'](_0x34140f['key'])){for(const _0x350fe3 of _0x243e4f)void 0x0!==_0x34140f['oldValue']?_0x6133['setAttribute'](_0x34140f['key'],_0x34140f['oldValue'],_0x350fe3['start']['nodeAfter']):_0x6133['removeAttribute'](_0x34140f['key'],_0x350fe3['start']['nodeAfter']);}else{for(const _0x3dfb82 of _0x243e4f)_0x34140f['oldValue']?_0x6133['setAttribute'](_0x34140f['key'],_0x34140f['oldValue'],_0x3dfb82):_0x6133['removeAttribute'](_0x34140f['key'],_0x3dfb82);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e8b20);}}function zt(_0x51d6ec,_0xac5f4e,_0x35c20a){for(const _0x351720 of _0xac5f4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x351720['root']==_0x351720)return!0x1;if(!_0x35c20a['containsItem'](_0x351720))return!0x1;if(_0x51d6ec['isObject'](_0x351720)||_0x51d6ec['isLimit'](_0x351720))return!0x0;}return!0x1;}function Kt(_0x19d67){return _0x19d67['end']['parent']==_0x19d67['start']['nodeAfter']&&_0x19d67['end']['isAtStart'];}function Wt(_0x3ca232,_0x14d9db,_0x499267,_0x19a31f){const _0x3ba2f3=_0x1c0c1d=>!_0x1c0c1d['item']['is']('$textProxy')&&!_0x19a31f['isObject'](_0x1c0c1d['item']),_0x53ea80=_0x3ca232['start']['getLastMatchingPosition'](_0x3ba2f3),_0x3939fd=_0x3ca232['end']['getLastMatchingPosition'](_0x3ba2f3,{'direction':'backward'});return(!_0x3ca232['start']['isEqual'](_0x53ea80)||!_0x3ca232['end']['isEqual'](_0x3939fd))&&(_0x53ea80['isBefore'](_0x3939fd)?_0x499267['updateMarker'](_0x14d9db,{'range':_0x499267['createRange'](_0x53ea80,_0x3939fd)}):_0x499267['removeMarker'](_0x14d9db),!0x0);}function Ht(_0x14277d){return _0x2d3f6d(_0x14277d);}function Qt(_0x552e15){const _0x57f94a=_0x552e15['start']['nodeAfter'];return _0x57f94a&&_0x57f94a['is']('element');}function Xt(_0x2c4260){return Kt(_0x2c4260)||function(_0x2a3ed4){return _0x2a3ed4['start']['parent']==_0x2a3ed4['end']['nodeBefore']&&_0x2a3ed4['start']['isAtEnd'];}(_0x2c4260);}function Yt(_0x22ac75,_0x2e7b4f){try{const _0x4b5e78=_0x22ac75['getRange']();for(const _0x45c549 of _0x2e7b4f)if(_0x22ac75!==_0x45c549&&_0x4b5e78&&_0x4b5e78['isIntersecting'](_0x45c549['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1741e8,_0x2aedda){return null==_0x1741e8['end']['nodeBefore']&&_0x1741e8['end']['parent']==_0x1741e8['start']['nodeAfter']?tn(_0x1741e8['start']['nodeAfter'],_0x2aedda):_0x1741e8;}function tn(_0x5ce8d4,_0x42b588){const _0x210851=_0x42b588['schema']['isObject'](_0x5ce8d4)||_0x42b588['schema']['isSelectable'](_0x5ce8d4);return _0x42b588['createRange'](_0x42b588['createPositionAt'](_0x5ce8d4,'before'),_0x210851?_0x42b588['createPositionAfter'](_0x5ce8d4):_0x42b588['createPositionAt'](_0x5ce8d4,'end'));}function nn(_0x26f41b,_0xdd53d,_0x5f3de0,_0x37335b){return!!en(_0x26f41b,_0xdd53d)&&_0x5f3de0['end']['isEqual'](_0x37335b['start']);}function en(_0x29ac81,_0x44987a){if(!_0x29ac81['_isDataLoaded']||!_0x44987a['_isDataLoaded'])return!0x1;const _0x4881ab=new Set(Object['keys'](_0x29ac81['attributes'])),_0x4307f4=new Set(Object['keys'](_0x44987a['attributes']));if(_0x4881ab['delete']('groupId'),_0x4307f4['delete']('groupId'),0x0==_0x4881ab['size']&&0x0==_0x4307f4['size'])return!0x0;if(_0x4881ab['size']!=_0x4307f4['size'])return!0x1;const _0x4d1e3a={..._0x29ac81['attributes']},_0x405e73={..._0x44987a['attributes']};return delete _0x4d1e3a['groupId'],delete _0x405e73['groupId'],JSON['stringify'](_0x4d1e3a)==JSON['stringify'](_0x405e73);}function sn(_0x4ccee0,_0x45af97){const _0x196ad5=on(_0x4ccee0['attributes']),_0x33529b=on(_0x45af97);if(!_0x4ccee0['_isDataLoaded'])return!0x1;for(const _0x4f280a of Object['keys'](_0x33529b))if(!_0x42ac9f(_0x196ad5[_0x4f280a],_0x33529b[_0x4f280a]))return!0x1;return!0x0;}function on(_0x21c327){const _0xe8b460=Object['assign']({},_0x21c327);return delete _0xe8b460['skipNestingCheck'],delete _0xe8b460['tablePasteChainId'],_0xe8b460;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x52c5f4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x587725,_0x3b0f4a,_0x44e0c7,_0x3b98d6){super(),this['model']=_0x3b0f4a,this['view']=_0x44e0c7,this['commentThreadController']=_0x3b98d6,this['_editor']=_0x587725,this['_acceptCommand']=_0x587725['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x587725['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4dee68,_0x591774)=>_0x4dee68||_0x591774),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x535589=>_0x535589&&this['_editor']['model']['canEditAt'](_0x3b0f4a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3223d0=>_0x3223d0&&this['_editor']['model']['canEditAt'](_0x3b0f4a['getRanges']())),this['_pendingAction']=null,_0x44e0c7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x44e0c7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x44e0c7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x44e0c7,'change:isDirty',()=>{_0x44e0c7['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 _0x5bd352=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5bd352);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x182a1a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x53342b,_0x1e2264,_0x5f53f9,_0x147cdc){super(_0x53342b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x7a80da(_0x53342b,o(_0x53342b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e2264['authoredAt']),this['bind']('authoredAt')['to'](_0x1e2264),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',_0x1e2264,'authoredAt',this,'descriptionParts',(_0x1ce918,_0x45bf4e,_0x7cf433)=>{const _0x744497=_0x7cf433['map'](_0xc417e0=>ls(_0xc417e0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ce918-0x1,_0x1e2264['author']['name'],_0x45bf4e?_0x147cdc['formatDateTime'](_0x45bf4e):'',new DOMParser()['parseFromString'](_0x744497,'text/html')['body']['textContent']]);}),this['focusables']=new _0x40f7e7(),this['focusTracker']=new _0x567748(),this['keystrokes']=new _0x5a4ff2(),this['focusCycler']=new _0x8de34f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x332b3d=>_0x332b3d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e2264,this['_localUser']=_0x5f53f9,this['_config']=_0x147cdc,_0x147cdc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x364aa7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4b134b}=this['_config'];this['commentsListView']=new _0x4b134b(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',_0x3c50c4=>_0x3c50c4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x357190,_0x264821)=>_0x357190||!!_0x264821);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4855bd}=this['_config'],_0x55c0de=new _0x4855bd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x19c5c9=_0x55c0de['commentInputView'];return _0x55c0de['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x19c5c9,'value',(_0x4a442d,_0x28a46a,_0x3d6f5)=>!!_0x3d6f5||_0x4a442d&&!_0x28a46a),_0x19c5c9['on']('submit',(_0x4ad7ce,_0x4352a9)=>{this['fire']('addComment',_0x4352a9),_0x19c5c9['editor']['setData']('');}),_0x19c5c9['on']('cancel',()=>this['focus']()),_0x19c5c9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55c0de;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x179f55,_0x483497,_0x505783,_0x2700dc){super(_0x179f55,_0x483497,_0x505783,_0x2700dc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5b2348=>_0x5b2348&&_0x5b2348[0x0]?_0x5b2348[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x288db4,_0x302511)=>{let _0x29c826='';for(const _0x238f8f of _0x288db4)_0x29c826+='<p>'+ls(_0x238f8f['content'],_0x238f8f['color'])+'</p>';return _0x302511?_0x29c826:_0x37f433(_0x29c826,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2700dc['SuggestionView'](_0x179f55,_0x483497,{'formatDateTime':_0x2700dc['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 _0x584f6f=this['bindTemplate'],_0x4eea58=[this['suggestionView']];return this['commentsListView']&&_0x4eea58['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4eea58['push'](this['commentThreadInputView']),_0x4eea58['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x584f6f['if']('isActive','ck-suggestion-wrapper--active'),_0x584f6f['to']('type',_0x2c5830=>'ck-suggestion-'+_0x2c5830),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':_0x584f6f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4eea58};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x182a1a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5184a8,_0xb06850,_0x495135){super(_0x5184a8),this['_model']=_0xb06850,this['_config']=_0x495135,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb06850),this['acceptButton']=this['_createButton'](o(_0x5184a8,'Accept\x20suggestion'),_0x217b51,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5184a8,'Discard\x20suggestion'),_0xfe0a8f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cd60f(_0x5184a8,_0xb06850['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x40f7e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x567748(),this['keystrokes']=new _0x5a4ff2(),this['focusCycler']=new _0x8de34f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x281590=>_0x281590['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x98dd5c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x98dd5c['innerHTML']=this['description'],this['on']('change:description',(_0x10d489,_0x478f2e,_0x1304e9)=>{_0x98dd5c['innerHTML']=_0x1304e9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xce2c1e=this['bindTemplate'],_0xbb102d=[{'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':_0xce2c1e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xce2c1e['to']('authoredAt',_0x1a2c63=>this['_config']['formatDateTime'](_0x1a2c63))}]}]},{'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']&&_0xbb102d['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':_0xbb102d}]};}['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'](_0x148c10,_0x2f7658,_0x58af30,_0x160989,_0xf5f53a){const _0x37b2ae=new _0x181c0b(this['locale']);return _0x37b2ae['set']({'label':_0x148c10,'icon':_0x2f7658,'tooltip':!0x0,'tooltipPosition':_0xf5f53a}),_0x37b2ae['extendTemplate']({'attributes':{'class':_0x58af30}}),_0x37b2ae['on']('execute',()=>{this['fire'](_0x160989,this['_model']['id']);}),_0x37b2ae;}['_setupKeyboardNavigation'](){const _0x262e33=this['element'];this['keystrokes']['listenTo'](_0x262e33);for(const _0x77d2ec of this['focusables'])this['focusTracker']['add'](_0x77d2ec['element']),this['keystrokes']['listenTo'](_0x77d2ec['element']);this['keystrokes']['set']('enter',(_0x548fa1,_0x4049a2)=>{_0x262e33===_0x548fa1['target']&&(this['focusCycler']['focusFirst'](),_0x4049a2());}),this['keystrokes']['set']('esc',(_0x2f5027,_0x33105b)=>{_0x262e33!==_0x2f5027['target']&&(this['focus'](),_0x33105b());});}}class u extends _0x34b1ca{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x223080,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cbba4){super(_0x1cbba4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d0ceb=this['editor']['config'];_0x4d0ceb['define']('trackChanges.SuggestionThreadView',fe),_0x4d0ceb['define']('trackChanges.SuggestionView',we),_0x4d0ceb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d0ceb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5aee04,_0x167358){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x53b9e0,_0x56dbb6]of this['_handleControllerBuffer']){const _0x58e66e=this['_suggestionToController']['has'](_0x53b9e0);_0x58e66e||_0x56dbb6?_0x58e66e&&_0x56dbb6&&this['_destroyController'](_0x53b9e0):this['_initializeController'](_0x53b9e0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5aee04,_0x167358);}['init'](){const _0x52e0b7=this['editor'],_0x4d87b6=_0x52e0b7['plugins']['get']('TrackChangesEditing'),_0x1c3b32=_0x52e0b7['plugins']['get']('Annotations'),_0x3539be=_0x52e0b7['plugins']['get']('EditorAnnotations'),_0x56700f=_0x52e0b7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3539be['addSourceCollector'](()=>{const _0x49e1a2=[];for(const [_0xf1d144,_0x3d6a28]of Array['from'](this['_suggestionToController'])){const _0x576936=_0xf1d144['getAllAdjacentSuggestions'](),_0x1cc1eb=[];for(const _0x2fad04 of _0x576936){if(!_0x2fad04['isInContent'])continue;if(_0x2fad04['isMultiRange']){_0x1cc1eb['push'](..._0x2fad04['getRanges']());continue;}const _0xaf8d53=_0x2fad04['getFirstRange']();if(_0x1cc1eb['length']>0x0){const _0x194ed5=_0x1cc1eb[0x0]['getJoined'](_0xaf8d53);if(_0x194ed5){_0x1cc1eb[0x0]=_0x194ed5;continue;}}_0x1cc1eb['push'](_0xaf8d53);}_0x49e1a2['push']([_0x3d6a28['view'],_0x1cc1eb]);}return _0x49e1a2;}),this['listenTo'](_0x4d87b6,'suggestionLoaded',(_0x54312b,_0x4b4d01)=>{this['listenTo'](_0x4b4d01,'change:previous',(_0x5b820f,_0x31d922,_0x4faa17,_0x45e444)=>{_0x4b4d01['isInContent']&&(null==_0x4faa17?(this['_updateController'](_0x45e444['head']),this['_handleSuggestionControllerDelayed'](_0x4b4d01,!0x1)):(this['_updateController'](_0x4faa17['head']),null==_0x45e444&&this['_handleSuggestionControllerDelayed'](_0x4b4d01,!0x0)));}),null!==_0x4b4d01['previous']?this['_updateController'](_0x4b4d01['head']):this['_handleSuggestionControllerDelayed'](_0x4b4d01,!0x1);}),this['listenTo'](_0x4d87b6,'suggestionUnloaded',(_0x394cf6,_0x24a3e0,_0x10c076)=>{this['stopListening'](_0x24a3e0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24a3e0),this['_suggestionToController']['has'](_0x24a3e0)&&this['_destroyController'](_0x24a3e0),_0x10c076&&this['_updateController'](_0x10c076['head']);}),this['listenTo'](_0x4d87b6,'suggestionChanged',(_0x87767,_0x565e5f)=>{this['_updateController'](_0x565e5f);}),this['listenTo'](_0x1c3b32,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56700f,'addComment',(_0x5bbcf2,{threadId:_0x53c90e,isFromAdapter:_0x562b6f})=>{if(_0x562b6f||!_0x4d87b6['hasSuggestion'](_0x53c90e))return;const _0x14c03d=_0x4d87b6['getSuggestion'](_0x53c90e);this['_suggestionToController']['get'](_0x14c03d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8045fe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x79539b;for(const _0x26a2e3 in _0x8045fe){const _0x41d588=_0x26a2e3,_0x50de63=_0x8045fe[_0x41d588];if('trackChangesLicenseKeyValid'==_0x50de63||'trackChangesLicenseKeyInvalid'==_0x50de63||'trackChangesLicenseKeyExpired'==_0x50de63||'trackChangesLicenseKeyDomainLimit'==_0x50de63||'trackChangesLicenseKeyNotAllowed'==_0x50de63||'trackChangesLicenseKeyEvaluationLimit'==_0x50de63||'trackChangesLicenseKeyTrialLimit'==_0x50de63||'trackChangesLicenseKeyUsageLimit'==_0x50de63){delete _0x8045fe[_0x41d588],_0x79539b=_0x50de63,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x79539b&&_0x8045fe['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x79539b&&_0x8045fe['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x79539b&&_0x8045fe['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x79539b&&_0x8045fe['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x79539b&&_0x8045fe['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x79539b&&_0x8045fe['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x79539b&&_0x8045fe['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x30e542){const _0x35388a=this['_suggestionToController']['get'](_0x30e542);if(!_0x35388a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x35388a['view'])||null;}['getSuggestionForAnnotation'](_0x78ef4d){const _0xd3b798=this['_viewToController']['get'](_0x78ef4d['innerView']);return _0xd3b798?_0xd3b798['model']:null;}['_refreshActiveMarkers'](){const _0x4cf4ff=this['editor']['plugins']['get']('Annotations'),_0x6e3cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fa342=Array['from'](_0x4cf4ff['activeAnnotations'],_0x4eab73=>_0x4eab73['innerView'])['filter'](_0x41d228=>this['_viewToController']['has'](_0x41d228)),_0x18dadc=[];for(const _0x2e80e4 of _0x4fa342){const _0x1c047c=this['_viewToController']['get'](_0x2e80e4)['model']['getAllAdjacentSuggestions']();_0x18dadc['push'](..._0x1c047c['reduce']((_0x1c17d5,_0x474724)=>[..._0x1c17d5,..._0x474724['getMarkerNames']()],[]));}_0x6e3cd['activeMarkers']=_0x18dadc;}['_addUIComponentsToFactory'](){const _0xca60ef=this['editor'],_0x1877a1=_0xca60ef['locale'],_0x1e18b7=o(_0x1877a1,'Track\x20changes'),_0x4d12f6=new _0xfe8ed2([{'type':'switchbutton','model':new _0x5db8d1({'withText':!0x0,'isToggleable':!0x0,'label':_0x1e18b7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5db8d1({'withText':!0x0,'label':o(_0x1877a1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5db8d1({'withText':!0x0,'label':o(_0x1877a1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5db8d1({'withText':!0x0,'label':o(_0x1877a1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5db8d1({'withText':!0x0,'label':o(_0x1877a1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xca60ef['plugins']['has']('TrackChangesPreview')&&_0x4d12f6['addMany']([{'type':'separator'},{'type':'button','model':new _0x5db8d1({'withText':!0x0,'label':o(_0x1877a1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x75bc8e of _0x4d12f6)if(ke(_0x75bc8e)){const _0x3b0c61=_0xca60ef['commands']['get'](_0x75bc8e['model']['commandName']);_0x75bc8e['model']['bind']('isOn','isEnabled')['to'](_0x3b0c61,'value','isEnabled');}_0xca60ef['ui']['componentFactory']['add']('trackChanges',_0x222487=>this['_createToolbarButton'](_0x222487,_0x4d12f6,_0x1e18b7)),_0xca60ef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x552c52=>this['_createMenuBarMenu'](_0x552c52,_0x4d12f6,_0x1e18b7));}['_createToolbarButton'](_0x4c0ed6,_0x43d00e,_0x2aa087){const _0x54014c=_0x2c42d9(_0x4c0ed6,_0x278594),_0x15e48d=this['editor']['commands']['get']('trackChanges');_0x54014c['buttonView']['set']({'tooltip':_0x2aa087,'label':_0x2aa087,'icon':_0x12dd8a}),_0x54014c['buttonView']['bind']('isOn')['to'](_0x15e48d,'value'),_0x54014c['buttonView']['on']('execute',()=>{_0x15e48d['execute'](),this['editor']['editing']['view']['focus']();}),_0x432f5e(_0x54014c,_0x43d00e,{'role':'menu'});const _0x23b283=[];for(const _0x409351 of _0x43d00e)ke(_0x409351)&&_0x23b283['push'](this['editor']['commands']['get'](_0x409351['model']['commandName']));const _0x132d28=_0x54014c['buttonView'];return _0x132d28['actionView']['unbind']('isEnabled'),_0x132d28['arrowView']['unbind']('isEnabled'),_0x132d28['actionView']['bind']('isEnabled')['to'](_0x15e48d,'isEnabled'),_0x132d28['arrowView']['bind']('isEnabled')['toMany'](_0x23b283,'isEnabled',(..._0x13fc8f)=>_0x13fc8f['some'](_0x42b7fd=>_0x42b7fd)),_0x54014c['on']('execute',_0xb0aa6a=>{this['editor']['execute'](_0xb0aa6a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x54014c;}['_createMenuBarMenu'](_0x3de18d,_0x5de545,_0x55f9a1){const _0x223ad8=new _0x4c5bd6(_0x3de18d),_0x2cc514=this['editor']['commands']['get']('trackChanges');_0x223ad8['buttonView']['set']({'label':_0x55f9a1,'icon':_0x12dd8a});const _0x47007d=new _0x1d2a31(_0x3de18d);for(const _0x128ba3 of _0x5de545){if('separator'==_0x128ba3['type']){_0x47007d['items']['add'](new _0x141401(_0x3de18d));continue;}const _0x25ee21=new _0x478031(_0x3de18d,_0x223ad8),_0x1328b5=new _0x459b73(_0x3de18d),_0x20ebd1=_0x128ba3['model'];_0x1328b5['bind'](...Object['keys'](_0x20ebd1))['to'](_0x20ebd1),_0x1328b5['delegate']('execute')['to'](_0x223ad8),_0x1328b5['on']('execute',()=>{this['editor']['execute'](_0x20ebd1['commandName']),this['editor']['editing']['view']['focus']();}),_0x25ee21['children']['add'](_0x1328b5),_0x47007d['items']['add'](_0x25ee21);}return _0x223ad8['bind']('isEnabled')['to'](_0x2cc514,'isEnabled'),_0x223ad8['panelView']['children']['add'](_0x47007d),_0x223ad8;}['_initializeController'](_0x11bb88){const _0x284f6f=this['editor'],_0x24ecfe=_0x284f6f['config'],_0x3834c2=_0x284f6f['plugins']['get']('Annotations'),_0x1cfd51=_0x284f6f['plugins']['get']('CommentsRepository'),_0x8c45d5=_0x284f6f['plugins']['get']('EditorAnnotations'),_0xc6d378=_0x284f6f['plugins']['get'](_0x223080)['me'],_0x11a269=_0x24ecfe['get']('trackChanges')['SuggestionThreadView'],_0xb5655e=_0x24ecfe['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4affab,CommentThreadInputView:_0x2e3888}=_0x284f6f['plugins']['get']('CommentsUI');let _0x4a22ab,_0xca78ac,_0x56b546;this['_annotationViews']['has'](_0x11bb88['id'])?(_0xca78ac=this['_annotationViews']['get'](_0x11bb88['id']),_0x4a22ab=_0xca78ac['mainView']):(_0x4a22ab=new _0x11a269(_0x284f6f['locale'],_0x11bb88,_0xc6d378,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24ecfe['get']('comments.editorConfig'),'licenseKey':_0x24ecfe['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24ecfe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24ecfe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24ecfe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x551e34(_0x24ecfe['get']('locale'),_0x284f6f['locale']),'CommentView':_0x24ecfe['get']('comments')['CommentView'],'CommentsListView':_0x4affab,'CommentThreadInputView':_0x2e3888,'SuggestionView':_0xb5655e}),_0x4a22ab['suggestionView']['acceptButton']['on']('execute',()=>{_0x284f6f['editing']['view']['focus']();}),_0x4a22ab['suggestionView']['discardButton']['on']('execute',()=>{_0x284f6f['editing']['view']['focus']();}),_0xca78ac=_0x3834c2['createAnnotationView'](this['editor']['locale'],_0x4a22ab),_0xca78ac['bind']('isDirty')['to'](_0x4a22ab,'isDirty'),_0xca78ac['bind']('length')['to'](_0x4a22ab),_0xca78ac['bind']('type')['to'](_0x4a22ab,'type',_0x5b284b=>'suggestion-'+_0x5b284b),_0x4a22ab['on']('escape',()=>{_0x56b546['fire']('escape');}),this['_annotationViews']['set'](_0x11bb88['id'],_0xca78ac));const _0x50931e=_0x1cfd51['createCommentThreadController'](_0x11bb88['commentThread'],_0x4a22ab),_0x49852f=new pe(_0x284f6f,_0x11bb88,_0x4a22ab,_0x50931e),_0xe2d88d=_0x11bb88['getAllAdjacentSuggestions']()['filter'](_0x386c3d=>_0x386c3d['isInContent']);_0x4a22ab['descriptionParts']=_0x284f6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xe2d88d),this['_suggestionToController']['set'](_0x11bb88,_0x49852f),this['_viewToController']['set'](_0x4a22ab,_0x49852f);const _0x4df7f8=()=>{const _0x853892=[],_0x45e573=_0x11bb88['getAllAdjacentSuggestions']()['filter'](_0x49da06=>_0x49da06['isInContent']);for(const _0x2e7727 of _0x45e573)_0x853892['push'](..._0x2e7727['getMarkers']());return _0x5899d8(_0x284f6f['editing'],_0x853892);};_0x56b546=_0x3834c2['createAnnotation']({'view':_0xca78ac,'target':_0x4df7f8,'type':()=>'suggestion-'+_0x49852f['view']['type'],'isVisible':!!_0x4df7f8()}),_0x1cfd51['_bindAnnotationToEditors'](_0x4a22ab,_0x56b546),_0x3834c2['add'](_0x56b546),_0x8c45d5['registerAnnotation'](_0x56b546);}['_destroyController'](_0x248427){const _0x3941df=this['editor']['plugins']['get']('CommentsRepository'),_0x4a807f=this['editor']['plugins']['get']('Annotations'),_0x12e3f5=this['_suggestionToController']['get'](_0x248427),_0x409226=_0x12e3f5['view'],_0x11cd26=_0x4a807f['getByInnerView'](_0x409226);_0x3941df['_unbindEditors'](_0x409226),_0x11cd26&&_0x4a807f['remove'](_0x11cd26),this['_suggestionToController']['delete'](_0x248427),this['_viewToController']['delete'](_0x409226),_0x12e3f5['destroy']();}['_updateController'](_0x4272a3){if(!_0x4272a3['isInContent']||!this['_suggestionToController']['has'](_0x4272a3))return;const _0x53d7dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bbe27=this['_suggestionToController']['get'](_0x4272a3),_0x307ea8=_0x4272a3['getAllAdjacentSuggestions']();_0x4bbe27['view']['descriptionParts']=_0x53d7dd['descriptionFactory']['getDescriptions'](_0x307ea8);}['destroy'](){for(const _0x49c804 of this['_suggestionToController']['keys']())this['_destroyController'](_0x49c804);for(const _0x1dbd54 of this['_annotationViews']['values']())_0x1dbd54['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1d6267){return'model'in _0x1d6267;}class Ne extends _0x34b1ca{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xc0171c){this['editor']['plugins']['get'](d)['adapter']=_0xc0171c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5b0909){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5b0909);}['getSuggestions']({skipNotAttached:_0xbb5f8=!0x1,toJSON:_0x187cdb=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xbb5f8,'toJSON':_0x187cdb});}['getSuggestion'](_0x19fe39){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x19fe39);}}const p=['Pagination'];class re extends _0x34b1ca{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a4ae7=this['editor'];if(_0x5a4ae7['config']['define']('trackChangesData.editorCreator',_0x38c942=>{const _0x322efd=_0x5a4ae7['model']['document']['getRootNames']()['reduce']((_0x158c36,_0x36bab9)=>(_0x158c36[_0x36bab9]='',_0x158c36),{});return _0x5a4ae7['constructor']['create'](_0x322efd,_0x38c942);}),'function'!=typeof _0x5a4ae7['config']['get']('trackChangesData')['editorCreator'])throw new _0x42d154('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x273699){return P(this['editor'],!0x0,_0x273699);}['getDataWithDiscardedSuggestions'](_0x5a7bf7){return P(this['editor'],!0x1,_0x5a7bf7);}}class Fe extends _0x34b1ca{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31d373){function _0x1557c0(_0x2eef88){return _0x2eef88['map'](_0x1056c1=>String['fromCharCode'](_0x1056c1))['join']('');}super(_0x31d373),this['result']='end',_0x31d373[_0x1557c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1557c0([0x76,0x69,0x65,0x77])][_0x1557c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1557c0([0x61,0x75,0x74,0x6f]),_0x31d373[_0x1557c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1557c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1557c0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1557c0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1557c0([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 De(_0x41de3b){return void 0x0!==_0x41de3b['getRootsAttributes'];}async function P(_0x1d79ce,_0x4700df,_0x5e53b0){const _0x3d2364=_0x54f4b0(_0x1d79ce,p);_0x3d2364['plugins']['push'](d,Fe),_0x3d2364['rootsAttributes']=De(_0x1d79ce)?_0x1d79ce['getRootsAttributes']():void 0x0;const _0x3a1dee=document['createDocumentFragment'](),_0x27d74c=_0x1d79ce['config']['get']('trackChangesData')['editorCreator'],_0x2be5f1=await _0x27d74c(_0x3d2364,()=>function(_0x35c057){const _0x2405f5=document['createElement']('div');return _0x35c057['appendChild'](_0x2405f5),_0x2405f5;}(_0x3a1dee));!function(_0x37871d,_0x48f9fa){const _0x4c897b=_0x37871d['model']['document']['getRootNames']()['reduce']((_0x581736,_0x584d99)=>(_0x581736[_0x584d99]=_0x37871d['data']['get']({'rootName':_0x584d99}),_0x581736),{}),_0x3723dd=_0x37871d['plugins']['get']('Users')['users']['map'](_0x15151a=>({'id':_0x15151a['id'],'name':_0x15151a['name']})),_0x49b7e4=_0x37871d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1745d7=_0x37871d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54ed15=_0x48f9fa['plugins']['get']('Users'),_0x571be9=_0x48f9fa['plugins']['get']('TrackChangesEditing'),_0x4e24ce=_0x48f9fa['plugins']['get']('CommentsRepository');for(const _0x53b114 of _0x4e24ce['getCommentThreads']())_0x53b114['remove']();for(const _0x56074a of _0x3723dd)_0x54ed15['getUser'](_0x56074a['id'])||_0x54ed15['addUser'](_0x56074a);_0x54ed15['me']||_0x54ed15['useAnonymousUser']();for(const _0x1d2db2 of _0x1745d7)_0x4e24ce['addCommentThread'](_0x1d2db2);for(const _0x14fadf of _0x49b7e4)_0x571be9['addSuggestionData'](_0x14fadf);_0x48f9fa['data']['set'](_0x4c897b);}(_0x1d79ce,_0x2be5f1),_0x2be5f1['execute'](_0x4700df?'acceptAllSuggestions':'discardAllSuggestions');const _0x1810f3=De(_0x2be5f1)?_0x2be5f1['getFullData'](_0x5e53b0):_0x2be5f1['data']['get'](_0x5e53b0);return await _0x2be5f1['destroy'](),_0x1810f3;}class Me extends _0x182a1a{['options'];constructor(_0xd5c28a,_0x338237){super(_0xd5c28a),this['options']=_0x338237,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'](_0x387726,_0x3d5727){if(!this['element'])return;const _0x41a609=[];for(const [_0x5633b0,_0xf76a10]of _0x387726){const _0x5ba2ce=document['createElement']('div');_0x5ba2ce['setAttribute']('data-ck-root-name',_0x5633b0),_0x5ba2ce['className']=_0xf76a10['classes']+'\x20ck-track-changes-preview__root-container',_0x5ba2ce['innerHTML']=_0xf76a10['content'],_0x41a609['push'](_0x5ba2ce);}_0x3d5727(this['element'],_0x41a609),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x39cbb0{constructor(_0x5c2d26){super(_0x5c2d26),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x435a67=this['editor'],_0x19c84f=_0x435a67['locale'],_0x2cbeb6=_0x435a67['plugins']['get']('Dialog');let _0x281612;const _0x7b187a=function(_0x5b2f5e){const _0x4f3f6e={};if('editables'in _0x5b2f5e['ui']['view']){for(const [_0x5e9317,_0x468acf]of Object['entries'](_0x5b2f5e['ui']['view']['editables']))_0x4f3f6e[_0x5e9317]=_0x468acf['element'];}else _0x4f3f6e[_0x5b2f5e['model']['document']['getRootNames']()[0x0]]=_0x5b2f5e['ui']['view']['editable']['element'];return _0x4f3f6e;}(_0x435a67),_0x41a3ca=function(_0x110cd7){let _0x7d9952=0x0;for(const _0x4a25b4 of Object['values'](_0x110cd7))_0x7d9952=Math['max'](_0x7d9952,_0x4a25b4['getBoundingClientRect']()['width']);let _0x232a47=0x0;for(const _0x11a98f of Object['values'](_0x110cd7))_0x232a47+=_0x11a98f['getBoundingClientRect']()['height'];const _0x4e51bb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x43948d=Math['min'](_0x232a47,_0x4e51bb);return{'width':_0x7d9952,'height':_0x43948d};}(_0x7b187a);_0x2cbeb6['show']({'id':'finalContentPreview','title':o(_0x19c84f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x19c84f,{'dialogRects':_0x41a3ca}),'onHide':()=>{_0x281612['detachFromDom']();},'onShow':()=>{_0x435a67['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x206b59=>{const _0x3ade49=this['_standarizeRootsData'](_0x206b59,_0x435a67,_0x7b187a);_0x2cbeb6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3ade49,_0x435a67['config']['get']('trackChanges.preview.renderFunction'));}),_0x281612=new _0x2c63eb(_0x19c84f,[_0x2cbeb6['view']]),_0x281612['attachToDom'](),_0x281612['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x435a67['once']('destroy',()=>{_0x281612['detachFromDom']();});const _0x4a000d=_0x2cbeb6['view']['headerView']['class'];_0x2cbeb6['view']['headerView']['class']=_0x4a000d?_0x4a000d+'\x20ck-reset_all':'ck-reset_all',_0x2cbeb6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2cbeb6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1a9dd2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x25d6a0=_0x1a9dd2['previewMode'],_0x134d3e={};if('$labels'===_0x25d6a0){for(const _0x458787 of _0x1a9dd2['getMergeFieldsIds']())_0x134d3e[_0x458787]=_0x1a9dd2['getLabel'](_0x458787)||_0x458787;}else{const _0x357aa5='$defaultValues'===_0x25d6a0?_0x1a9dd2['getDefaultValues']():_0x1a9dd2['getDataSetValues'](_0x25d6a0,!0x0);for(const _0x42fe7d of Object['entries'](_0x357aa5)){const [_0x4084e8,_0x3e0517]=_0x42fe7d;_0x134d3e[_0x4084e8]=null!==_0x3e0517?_0x3e0517:_0x1a9dd2['getLabel'](_0x4084e8)||_0x4084e8;}}return{'mergeFieldsData':_0x134d3e};}['_standarizeRootsData'](_0x2dec6c,_0x1a694b,_0x5e4e5d){let _0x2de1a7;if('string'==typeof _0x2dec6c){const _0x8742a6=_0x1a694b['model']['document']['getRootNames']()[0x0];_0x2de1a7={[_0x8742a6]:_0x2dec6c};}else _0x2de1a7=_0x2dec6c;const _0x2fa256=this['_fixMediaEmbeds'](_0x2de1a7,_0x1a694b),_0x1501e1=function(_0x3bf918,_0x3fffa7){for(const [_0x5b676e,_0x1c8009]of _0x3bf918)_0x1c8009['classes']=_0x3fffa7[_0x5b676e]['classList']['value']['replace']('ck-focused','');return _0x3bf918;}(this['_sortRoots'](_0x1a694b)['reduce']((_0x192713,_0x17b3ae)=>(_0x192713['push']([_0x17b3ae,{'content':_0x2fa256[_0x17b3ae],'classes':''}]),_0x192713),[]),_0x5e4e5d);return _0x1501e1;}['_fixMediaEmbeds'](_0x5eb0b4,_0x1b953f){if(!_0x1b953f['plugins']['has']('MediaEmbedEditing'))return _0x5eb0b4;const _0x5ec6c6=_0x1b953f['plugins']['get']('MediaEmbedEditing');for(const [_0x586255,_0x2495d5]of Object['entries'](_0x5eb0b4)){const _0x68123d=document['createElement']('div');_0x68123d['innerHTML']=_0x2495d5,(_0x68123d['querySelectorAll']('figure.media')['forEach'](_0x3ac6b4=>{const _0x5c0d94=_0x3ac6b4['querySelector']('oembed');if(_0x5c0d94){const _0x3655f9=_0x5c0d94['getAttribute']('url');if(_0x3655f9){const _0x506ae6=_0x5ec6c6['registry']['getMediaViewElement'](new _0x247b31(_0x1b953f['editing']['view']['document']),_0x3655f9,{'elementName':'','renderForEditingView':!0x0}),_0x1df41a=document['createElement']('div');_0x1df41a['classList']['add']('ck-media__wrapper'),_0x506ae6['render'](_0x1df41a,_0x1b953f['editing']['view']['domConverter']),_0x5c0d94['replaceWith'](_0x1df41a);}}}),_0x5eb0b4[_0x586255]=_0x68123d['innerHTML']);}return _0x5eb0b4;}['_sortRoots'](_0x5a30fe){if(!function(_0x3c121b){return void 0x0!==_0x3c121b['getRootsAttributes'];}(_0x5a30fe))return _0x5a30fe['model']['document']['getRootNames']();const _0x405a19=[],_0x5e4b27=new Map();for(const _0x348a65 of _0x5a30fe['model']['document']['getRootNames']()){const _0x11871a=_0x5a30fe['editing']['view']['getDomRoot'](_0x348a65)['getClientRects']()['item'](0x0);_0x405a19['push'](_0x348a65),_0x5e4b27['set'](_0x348a65,_0x11871a);}return _0x405a19['sort']((_0x2ae18a,_0x412470)=>{const _0x300ac5=_0x5e4b27['get'](_0x2ae18a),_0x465c89=_0x5e4b27['get'](_0x412470);return _0x300ac5['y']-_0x465c89['y']||_0x300ac5['x']-_0x465c89['x'];}),_0x405a19;}}class Ue extends _0x34b1ca{static get['requires'](){return[re,_0x2cdbb1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x318bce){super(_0x318bce),_0x318bce['commands']['add']('previewFinalContent',new te(this['editor'])),_0x318bce['config']['define']('trackChanges.preview.renderFunction',(_0x30cb9f,_0x4720e6)=>{for(const _0xfe482c of _0x4720e6)_0x30cb9f['appendChild'](_0xfe482c);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x1549d2,Plugin as _0x2b7268,PendingActions as _0x343fd7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a89fc,ObservableMixin as _0x5a9315,uid as _0x5e874e,priorities as _0x1f7fbf,insertToPriorityArray as _0xef79ed,logWarning as _0x3f8597,getEnvKeystrokeText as _0x585c9e,FocusTracker as _0x30a188,KeystrokeHandler as _0x324e8e,Collection as _0x3de56a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x58eec4,IconCancel as _0x331ba6,IconTrackChanges as _0x2b29cc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2ee61b,View as _0x2f32c2,ViewCollection as _0x4d346c,FocusCycler as _0x445b5c,UIModel as _0x4e094d,createDropdown as _0x4be02b,SplitButtonView as _0x1b5f9d,addListToDropdown as _0x182496,MenuBarMenuView as _0x84077f,MenuBarMenuListView as _0x1d70c9,ListSeparatorView as _0x8aea7,MenuBarMenuListItemView as _0x53363a,MenuBarMenuListItemButtonView as _0x1cd62d,BodyCollection as _0x40e428,Dialog as _0x4cd8ba}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xd032c0,DocumentCompare as _0x43fc24,hashObject as _0x6671e8,surroundingMarkersDetector as _0x2e4ad1,FOCUS_ANNOTATION_KEYSTROKE as _0x3157d9,AriaDescriptionView as _0x2c1c29,setupThreadKeyboardNavigation as _0x494016,trimHtml as _0x42b599,UserView as _0x2eb0a7,LateFocusButtonView as _0x10d7b8,getDateTimeFormatter as _0x3a70e7,getAllMarkersDomElementsSorted as _0x1f9e71,sanitizeEditorConfig as _0x210fd8}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x547b49,ModelLiveRange as _0x5af68e,ModelLivePosition as _0x455de7,ViewDowncastWriter as _0x4b5742}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1dc7b0,set as _0x58c823,isEqual as _0x4b5a5b,unset as _0x135c7c,omit as Pt}from'es-toolkit/compat';import{Delete as _0xa0d044,Input as _0x5dea73}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x40a202}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x28285e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x1549d2{['_enabledCommands'];constructor(_0x244937,_0x6d1002){super(_0x244937),this['_enabledCommands']=_0x6d1002,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 _0x27c428 of this['editor']['commands']['commands']())_0x27c428['affectsData']&&!this['_enabledCommands']['has'](_0x27c428)&&_0x27c428['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x30b0d2 of this['editor']['commands']['commands']())_0x30b0d2['affectsData']&&!this['_enabledCommands']['has'](_0x30b0d2)&&_0x30b0d2['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x1549d2{['_suggestions'];constructor(_0xc98d3d,_0x2158c5){super(_0xc98d3d),this['_suggestions']=_0x2158c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3dca6f){const _0x35fd1c=this['_suggestions']['get'](_0x3dca6f);if(!_0x35fd1c)throw new _0x5a89fc('track-changes-accept-suggestion-not-found',this);const _0x592ab2=_0x35fd1c['getRanges']();this['editor']['model']['canEditAt'](_0x592ab2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x35fd1c);}}class D extends _0x1549d2{['_suggestions'];constructor(_0x7fad90,_0xb2c1e7){super(_0x7fad90),this['_suggestions']=_0xb2c1e7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5718f0){const _0xde92bc=this['_suggestions']['get'](_0x5718f0);if(!_0xde92bc)throw new _0x5a89fc('track-changes-discard-suggestion-not-found',this);const _0x4b97f9=_0xde92bc['getRanges']();this['editor']['model']['canEditAt'](_0x4b97f9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xde92bc);}}function ls(_0x585310,_0x147267){let _0xd2f7b8='';return _0xd2f7b8+=_0x585310['split']('*')['map']((_0xc25c20,_0x21ab74)=>_0x21ab74%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xc25c20)+'</span>':rn(_0xc25c20))['join'](''),_0x147267&&(_0xd2f7b8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x147267['value']+'\x22\x20title=\x22'+_0x147267['title']+'\x22></span>'),_0xd2f7b8;}function rn(_0x4414a9){const _0x221269=document['createElement']('span');return _0x221269['innerText']=_0x4414a9,_0x221269['innerHTML'];}function ts(_0x4822c9){return _0x4822c9['sort']((_0x43d257,_0x25cecf)=>'attribute'===_0x43d257['type']&&'attribute'!==_0x25cecf['type']?-0x1:'attribute'!==_0x43d257['type']&&'attribute'===_0x25cecf['type']?0x1:'deletion'==_0x43d257['type']&&'deletion'!=_0x25cecf['type']?-0x1:'deletion'!=_0x43d257['type']&&'deletion'==_0x25cecf['type']?0x1:0x0);}function to(_0x5b84e2,_0x54cb5d){let _0x20740d,_0x446679=0x0;const _0x380d4a=[],_0x1ef67b=_0x54cb5d['schema'];for(;_0x446679<_0x5b84e2['length'];){const _0x1515ac=_0x5b84e2[_0x446679],_0x2f7a81=_0x5b84e2[_0x446679+0x1];_0x20740d||(_0x20740d=_0x54cb5d['createPositionBefore'](_0x1515ac)),cn(_0x54cb5d,_0x1515ac,_0x2f7a81)||(_0x380d4a['push'](_0x54cb5d['createRange'](_0x20740d,_0x1ef67b['isObject'](_0x1515ac)?_0x54cb5d['createPositionAfter'](_0x1515ac):_0x54cb5d['createPositionAt'](_0x1515ac,'end'))),_0x20740d=null),_0x446679++;}return _0x380d4a;}function cn(_0x3d4a3f,_0x2c6f8a,_0xf5d4da){if(!_0xf5d4da)return!0x1;const _0x3095b4=_0x3d4a3f['createPositionAfter'](_0x2c6f8a),_0x208829=_0x3d4a3f['createPositionBefore'](_0xf5d4da);return _0x3095b4['isTouching'](_0x208829);}function rs(_0x5d4ef1,_0x1ca8a0,_0xbf26ec){for(;_0xbf26ec['length'];){const _0x3b3191=_0xbf26ec['splice'](0x0,0x64);_0x5d4ef1['change'](()=>{for(const _0x1bde34 of _0x3b3191)_0x1bde34['isInContent']&&_0x1ca8a0['execute'](_0x1bde34['id']);});}}class B extends _0x1549d2{['_command'];['_suggestions'];constructor(_0x1ec685,_0x5221c7,_0x217f03){super(_0x1ec685),this['_command']=_0x5221c7,this['_suggestions']=_0x217f03,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c4e24=Array['from'](this['_suggestions']['values']())['some'](_0x9a150f=>_0x9a150f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3c4e24;}['execute'](){const _0x4c384a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x137926 of _0x4c384a){const _0x532e03=_0x137926['getRanges']();if(!this['editor']['model']['canEditAt'](_0x532e03))return;}rs(this['editor']['model'],this['_command'],_0x4c384a);}}class O extends _0x1549d2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x50d436,_0x312271,_0x443508){super(_0x50d436),this['_command']=_0x312271,this['_suggestions']=_0x443508,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x383787=this['editor']['model']['document']['selection'],_0x3aa4af=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x32d6a1,_0x338180){const _0x381bd4=Array['from'](_0x32d6a1['getRanges']()),_0x12e6f4=new Set();for(const _0x5503ff of _0x338180)if(_0x5503ff['isInContent']){for(const _0x3b2a14 of _0x381bd4)for(const _0x54373e of _0x5503ff['getRanges']())(_0x3b2a14['isIntersecting'](_0x54373e)||_0x32d6a1['isCollapsed']&&!_0x5503ff['isMultiRange']&&_0x5503ff['next']&&_0x54373e['end']['isTouching'](_0x3b2a14['start']))&&_0x12e6f4['add'](_0x5503ff);}return _0x12e6f4;}(_0x383787,_0x3aa4af),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2ac6f7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b75a5 of _0x2ac6f7){const _0x3f610e=_0x4b75a5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f610e))return;}rs(this['editor']['model'],this['_command'],_0x2ac6f7);}}class x extends/* #__PURE__ -- @preserve */
24
+ _0x5a9315(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e4602,_0x1fc00e){super(),this['id']=_0x1fc00e['id'],this['type']=_0x1fc00e['type'],this['subType']=_0x1fc00e['subType']||null,this['author']=_0x1fc00e['author'],this['creator']=_0x1fc00e['creator']||_0x1fc00e['author'],this['isExternal']=Boolean(_0x1fc00e['attributes']&&_0x1fc00e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1fc00e['originalSuggestionId']||null,this['_model']=_0x2e4602,this['_onAccept']=_0x1fc00e['onAccept'],this['_onDiscard']=_0x1fc00e['onDiscard'],this['_onAttributesChange']=_0x1fc00e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fc00e['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 _0x246c2a=this;for(;_0x246c2a['previous'];)_0x246c2a=_0x246c2a['previous'];return _0x246c2a;}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'](_0x35b4ed){this['_markerNames']['add'](_0x35b4ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b6e30=>this['_model']['markers']['get'](_0x4b6e30))['filter'](_0x27044b=>_0x27044b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x312e2e=>{for(const _0x114fbf of this['getMarkers']())_0x312e2e['removeMarker'](_0x114fbf);}),this['_markerNames']['clear']();}['removeMarker'](_0x546a90){this['_model']['change'](_0x1ab8bb=>{_0x1ab8bb['removeMarker'](_0x546a90);}),this['_markerNames']['delete'](_0x546a90);}['addRange'](_0x57c6b6){const _0x165511='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x165511),this['_model']['change'](_0x3b6d4e=>{_0x3b6d4e['addMarker'](_0x165511,{'range':_0x57c6b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x508b34){for(const _0x3f6ce7 of this['getRanges']())if(_0x3f6ce7['isIntersecting'](_0x508b34))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4b9482=>_0x4b9482['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53991d,_0x21dfea)=>[..._0x53991d,..._0x21dfea['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3dac74=this['getRanges']();if(0x1!=_0x3dac74['length'])return null;const _0x57fdd8=_0x3dac74[0x0],_0x11de3a=_0x57fdd8['start']['nodeAfter'],_0xc255e9=_0x57fdd8['end']['nodeBefore'];return _0x11de3a instanceof _0x547b49?_0x11de3a!=_0xc255e9?null:_0x11de3a: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 _0x37c264=[];let _0x1e89ca=this['head'];for(;_0x1e89ca;)_0x37c264['push'](_0x1e89ca),_0x1e89ca=_0x1e89ca['next'];return _0x37c264;}['setAttribute'](_0x5a8b2a,_0x42a780){const _0x3f1b51=_0x1dc7b0(this['attributes']);_0x58c823(_0x3f1b51,_0x5a8b2a,_0x42a780),_0x4b5a5b(_0x3f1b51,this['attributes'])||(this['attributes']=_0x3f1b51,this['_onAttributesChange'](_0x3f1b51));}['removeAttribute'](_0x225ad6){const _0x563a43=_0x1dc7b0(this['attributes']);_0x135c7c(_0x563a43,_0x225ad6),_0x4b5a5b(_0x563a43,this['attributes'])||(this['attributes']=_0x563a43,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 _0x5e874e()['substr'](0x1,0x5);}}function o(_0xf675fc,_0x3335c7,_0x5450a3){const _0x58ed66=_0xf675fc['t'],t=_0xf675fc['t'];switch(_0x3335c7){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',_0x5450a3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5450a3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5450a3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5450a3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5450a3);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',_0x5450a3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5450a3);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',_0x5450a3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5450a3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5450a3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5450a3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5450a3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5450a3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5450a3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5450a3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5450a3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5450a3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5450a3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5450a3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5450a3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5450a3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5450a3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5450a3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5450a3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5450a3);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'},_0x5450a3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5450a3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5450a3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5450a3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5450a3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5450a3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5450a3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5450a3);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'},_0x5450a3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5450a3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5450a3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5450a3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5450a3);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'},_0x5450a3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5450a3);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'},_0x5450a3);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x5450a3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5450a3);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'},_0x5450a3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5450a3);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'},_0x5450a3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5450a3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5450a3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5450a3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5450a3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5450a3);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'},_0x5450a3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5450a3);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 _0x58ed66({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5450a3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x58ed66({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5450a3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5450a3);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'},_0x5450a3);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'},_0x5450a3);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'},_0x5450a3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3335c7;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4765c6,_0xd8e991){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4765c6,this['_locale']=_0xd8e991;}['getDescriptions'](_0x39c323){const _0x12e08e=[],_0x531486=new Set(),_0x11d845=new Set();for(let _0x599f7e=0x0;_0x599f7e<_0x39c323['length'];_0x599f7e++){const _0x216416=_0x39c323[_0x599f7e];if(!_0x216416['isInContent'])continue;const _0x2e9e57=this['_handleCustomCallbackDescription'](_0x216416);if(_0x2e9e57){if(null!=_0x216416['subType']){if(_0x531486['has'](_0x216416['subType']))continue;_0x531486['add'](_0x216416['subType']);}_0x12e08e['push'](_0x2e9e57);}else{if('attribute'==_0x216416['type']){const _0x12cc0c=_0x216416['data']['key'];if(_0x11d845['has'](_0x12cc0c))continue;_0x11d845['add'](_0x216416['data']['key']),_0x12cc0c==m?this['_handleRenameSuggestionDescription'](_0x12e08e,_0x216416):this['_handleAttributeSuggestionDescription'](_0x12e08e,_0x216416);continue;}'insertion'!=_0x216416['type']&&'deletion'!=_0x216416['type']||this['_handleInsertRemoveSuggestionDescription'](_0x12e08e,_0x216416,_0x39c323[_0x599f7e+0x1]);}}return this['_resolveDescriptionItems'](_0x12e08e);}['registerDescriptionCallback'](_0x55c8b7){this['_customCallbacks']['push'](_0x55c8b7);}['registerElementLabel'](_0xc5dae3,_0x5211bd,_0x584ff0=_0x1f7fbf['normal']){'function'==typeof _0xc5dae3?_0xef79ed(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc5dae3,'label':_0x5211bd,'priority':_0x584ff0}):this['_itemLabels']['set'](_0xc5dae3,_0x5211bd);}['registerAttributeLabel'](_0x34e0cf,_0x5da4d6){this['_attributeLabels']['set'](_0x34e0cf,_0x5da4d6);}['getItemLabel'](_0x3c00fe,_0x4e67e2=0x1){let _0x1f68ed;for(const _0x19b7de of this['_itemLabelsCallbacks'])if(_0x19b7de['matchingCallback'](_0x3c00fe)){_0x1f68ed=_0x19b7de['label'];break;}return _0x1f68ed||(_0x1f68ed=this['_itemLabels']['get'](_0x3c00fe['name'])),_0x1f68ed?_0x1f68ed(_0x4e67e2):0x1!==_0x4e67e2?_0x4e67e2+'\x20'+_0x3c00fe['name']+'s':''+_0x3c00fe['name'];}['_addDescriptionItems'](_0x3dd34b,_0x564b61){const _0x132afc=_0x564b61['getFirstRange']()['getWalker'](),_0x5c742a='insertion'==_0x564b61['type']?'add':'remove';for(const _0x1757a9 of _0x132afc){const _0x157090=_0x1757a9['item'],_0x4494a7=_0x3dd34b[_0x3dd34b['length']-0x1];if(_0x157090['is']('$textProxy'))_0x4494a7&&_0x4494a7['type']['indexOf']('Container')>-0x1&&_0x3dd34b['pop'](),_0x4494a7&&'text'==_0x4494a7['type']?_0x4494a7[_0x5c742a]+=_0x157090['data']:_0x3dd34b['push']({'type':'text','add':'add'==_0x5c742a?_0x157090['data']:'','remove':'remove'==_0x5c742a?_0x157090['data']:''});else{if(this['_schema']['isObject'](_0x157090)){const _0x26c4f4=_0x157090;if(_0x4494a7&&_0x4494a7['type']['indexOf']('Container')>-0x1&&_0x3dd34b['pop'](),'elementEnd'==_0x1757a9['type'])continue;_0x4494a7&&_0x4494a7['type']==_0x5c742a+'Object'&&_0x4494a7['element']['name']==_0x26c4f4['name']?_0x4494a7['quantity']++:_0x3dd34b['push']({'type':_0x5c742a+'Object','element':_0x26c4f4,'quantity':0x1}),_0x132afc['skip'](_0x54df74=>!('elementEnd'==_0x54df74['type']&&_0x54df74['item']==_0x157090));}else{if(this['_schema']['checkChild'](_0x157090,'$text')||_0x157090['is']('element','softBreak')){const _0x36e0c4=_0x157090;if('add'==_0x5c742a&&'elementStart'==_0x1757a9['type']||'remove'==_0x5c742a&&'elementEnd'==_0x1757a9['type'])continue;if(_0x4494a7&&-0x1==_0x4494a7['type']['indexOf']('Container')){'text'==_0x4494a7['type']&&(_0x4494a7[_0x5c742a]+='\x0a');continue;}let _0x16e6a2;if(_0x16e6a2='add'==_0x5c742a?_0x36e0c4['nextSibling']&&!this['_schema']['isObject'](_0x36e0c4['nextSibling'])?_0x36e0c4['nextSibling']:null:_0x36e0c4['previousSibling']&&!this['_schema']['isObject'](_0x36e0c4['previousSibling'])?_0x36e0c4['previousSibling']:null,_0x36e0c4['isEmpty']||_0x16e6a2&&_0x16e6a2['isEmpty']){const _0x2b0ddd=_0x16e6a2&&_0x16e6a2['isEmpty']?_0x16e6a2:_0x36e0c4;_0x4494a7&&_0x4494a7['type']==_0x5c742a+'EmptyContainer'&&_0x4494a7['element']['name']==_0x2b0ddd['name']?_0x4494a7['quantity']++:_0x3dd34b['push']({'type':_0x5c742a+'EmptyContainer','element':_0x2b0ddd,'quantity':0x1});}else _0x3dd34b['push']({'type':_0x5c742a+'Container','element':_0x36e0c4});}}}}}['_resolveDescriptionItems'](_0x3dd869){const _0x23e232=this['_locale'],_0x1feb88=[],_0x2f8577=[],_0x5eb37a=[];for(const _0x1e48c0 of _0x3dd869)switch(_0x1e48c0['type']){case'text':if(_0x1e48c0['add']=_0x1e48c0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e48c0['remove']=_0x1e48c0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e48c0['add']&&''!=_0x1e48c0['remove']){_0x1feb88['push']({'type':'replace','content':o(_0x23e232,'REPLACE_TEXT',['\x22'+_0x1e48c0['remove']+'\x22','\x22'+_0x1e48c0['add']+'\x22'])});continue;}if(null!=_0x1e48c0['add']['match'](/^ +$/)){_0x1feb88['push']({'type':'insertion','content':o(_0x23e232,'*Insert:*\x20%0',o(_0x23e232,'ELEMENT_SPACE',_0x1e48c0['add']['length']))});continue;}if(null!=_0x1e48c0['remove']['match'](/^ +$/)){_0x1feb88['push']({'type':'deletion','content':o(_0x23e232,'*Remove:*\x20%0',o(_0x23e232,'ELEMENT_SPACE',_0x1e48c0['remove']['length']))});continue;}if(''!=_0x1e48c0['add']){_0x1feb88['push']({'type':'insertion','content':o(_0x23e232,'*Insert:*\x20%0','\x22'+_0x1e48c0['add']+'\x22')});continue;}_0x1feb88['push']({'type':'deletion','content':o(_0x23e232,'*Remove:*\x20%0','\x22'+_0x1e48c0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1feb88['push']({'type':'insertion','content':o(_0x23e232,'*Insert:*\x20%0',this['getItemLabel'](_0x1e48c0['element'],_0x1e48c0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1feb88['push']({'type':'deletion','content':o(_0x23e232,'*Remove:*\x20%0',this['getItemLabel'](_0x1e48c0['element'],_0x1e48c0['quantity']))});continue;case'addContainer':_0x1feb88['push']({'type':'insertion','content':o(_0x23e232,'*Split:*\x20%0',this['getItemLabel'](_0x1e48c0['element'],_0x1e48c0['quantity']))});continue;case'removeContainer':_0x1feb88['push']({'type':'deletion','content':o(_0x23e232,'*Merge:*\x20%0',this['getItemLabel'](_0x1e48c0['element'],_0x1e48c0['quantity']))});continue;case'addFormat':_0x2f8577['push'](_0x1e48c0['key']);continue;case'removeFormat':_0x5eb37a['push'](_0x1e48c0['key']);continue;default:_0x1feb88['push'](_0x1e48c0);}if(_0x2f8577['length']){const _0x4b937c=_0x2f8577['map'](_0x5c8815=>this['_attributeLabels']['has'](_0x5c8815)?this['_attributeLabels']['get'](_0x5c8815):_0x5c8815)['join'](',\x20');_0x1feb88['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4b937c)});}if(_0x5eb37a['length']){const _0x4dae40=_0x5eb37a['map'](_0x45af10=>this['_attributeLabels']['has'](_0x45af10)?this['_attributeLabels']['get'](_0x45af10):_0x45af10)['join'](',\x20');_0x1feb88['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4dae40)});}return _0x1feb88;}['_handleCustomCallbackDescription'](_0x5acdc8){for(const _0x46ccf7 of this['_customCallbacks']){const _0x203e35=_0x46ccf7(_0x5acdc8);if(_0x203e35&&'type'in _0x203e35)return _0x203e35;}}['_handleAttributeSuggestionDescription'](_0x2b94bc,_0x1ef4f7){const _0x5df067=_0x1ef4f7['data'],_0x5760f9=void 0x0===_0x5df067['newValue']?'removeFormat':'addFormat';_0x2b94bc['push']({'type':_0x5760f9,'key':_0x5df067['key']});}['_handleRenameSuggestionDescription'](_0x129715,_0x16acd){_0x129715['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x16acd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x409b3b,_0x22286d,_0x5a760c){if(this['_addDescriptionItems'](_0x409b3b,_0x22286d),_0x5a760c&&_0x5a760c['getFirstRange']()&&!_0x22286d['getFirstRange']()['end']['isEqual'](_0x5a760c['getFirstRange']()['start'])){const _0x85be86=_0x409b3b[_0x409b3b['length']-0x1],_0x5113dd='insertion'==_0x22286d['type']?'add':'remove';_0x85be86&&'text'==_0x85be86['type']&&(_0x85be86[_0x5113dd]+='\x0a');}}}class R extends _0x2b7268{['afterInit'](){const _0x5d634b=this['editor'],_0x26990c=_0x5d634b['plugins']['get']('TrackChangesEditing');_0x5d634b['commands']['get']('showAIAssistant')&&_0x26990c['enableCommand']('showAIAssistant');}}class T extends _0x2b7268{['afterInit'](){const _0x509b03=this['editor'],_0x34240f=_0x509b03['plugins']['get']('TrackChangesEditing');_0x509b03['commands']['get']('toggleAi')&&_0x34240f['enableCommand']('toggleAi');}}class E extends _0x2b7268{['afterInit'](){const _0x27281d=this['editor'],_0x190b53=_0x27281d['plugins']['get']('TrackChangesEditing');_0x27281d['commands']['get']('aiQuickAction')&&_0x190b53['enableCommand']('aiQuickAction');}}class U extends _0x2b7268{['afterInit'](){const _0x3114bd=this['editor'],_0x368bf0=_0x3114bd['locale'];if(!_0x3114bd['plugins']['has']('AlignmentEditing'))return;const _0x5ce406=_0x3114bd['plugins']['get']('TrackChangesEditing');_0x5ce406['enableDefaultAttributesIntegration']('alignment'),_0x5ce406['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x368bf0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23a9f7=this['editor'],_0x38d9aa=_0x23a9f7['locale'];_0x23a9f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3324d4=>{if('formatBlock'!=_0x3324d4['type'])return;const {data:_0x242a78}=_0x3324d4;if(_0x242a78&&'alignment'==_0x242a78['commandName']){const _0x245b5d=_0x242a78['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x38d9aa,'*Format:*\x20%0',function(_0x9f53ed){switch(_0x9f53ed){case'left':return o(_0x38d9aa,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x38d9aa,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x38d9aa,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x38d9aa,'FORMAT_JUSTIFY_TEXT');}}(_0x245b5d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2b7268{['afterInit'](){const _0x5e0c9b=this['editor'],_0x26c9ce=_0x5e0c9b['plugins']['get']('TrackChangesEditing'),_0x4ae238=_0x5e0c9b['locale'];for(const _0x4ce041 of ti){if(!_0x5e0c9b['plugins']['has'](_0x4ce041))continue;const _0x477298=_0x4ce041['slice'](0x0,-0x7)['toLowerCase'](),_0x28f811='FORMAT_'+_0x477298['toUpperCase']();_0x26c9ce['enableDefaultAttributesIntegration'](_0x477298),_0x26c9ce['descriptionFactory']['registerAttributeLabel'](_0x477298,o(_0x4ae238,_0x28f811));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51a5ef=this['editor'],_0xd94dfa=_0x51a5ef['locale'],_0x14a57e=_0x51a5ef['plugins']['get']('TrackChangesEditing');function _0x1355c2(_0x342948,_0x16511e){_0x14a57e['descriptionFactory']['registerDescriptionCallback'](_0x39db9e=>{if('formatInline'!=_0x39db9e['type'])return;const {data:_0x3ee246}=_0x39db9e;return _0x3ee246&&_0x3ee246['commandName']===_0x342948?_0x3ee246['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd94dfa,'*Format:*\x20%0',_0x16511e)}:{'type':'format','content':o(_0xd94dfa,'*Remove\x20format:*\x20%0',_0x16511e)}:void 0x0;});}_0x1355c2('bold',o(_0xd94dfa,'FORMAT_BOLD')),_0x1355c2('italic',o(_0xd94dfa,'FORMAT_ITALIC')),_0x1355c2('underline',o(_0xd94dfa,'FORMAT_UNDERLINE')),_0x1355c2('code',o(_0xd94dfa,'FORMAT_CODE')),_0x1355c2('strikethrough',o(_0xd94dfa,'FORMAT_STRIKETHROUGH')),_0x1355c2('subscript',o(_0xd94dfa,'FORMAT_SUBSCRIPT')),_0x1355c2('superscript',o(_0xd94dfa,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2b7268{['afterInit'](){const _0x4565a4=this['editor'],_0x11feb9=_0x4565a4['locale'];if(!_0x4565a4['plugins']['has']('BlockQuoteEditing'))return;const _0xb57b60=_0x4565a4['plugins']['get']('TrackChangesEditing'),_0x5018af=this['editor']['commands']['get']('blockQuote');_0xb57b60['enableCommand']('blockQuote',(_0xbf296c,_0xf1ec81={})=>{const _0x177c00=this['editor']['model']['document']['selection'],_0x4186c7=_0xf1ec81&&void 0x0!==_0xf1ec81['forceValue']?_0xf1ec81['forceValue']:!_0x5018af['value'];let _0x2e2996=[];if(_0x4186c7){const _0x984e17=Array['from'](_0x177c00['getSelectedBlocks']())['filter'](_0x3134b9=>oo(_0x3134b9)||function(_0x33359e,_0x3c57a0){const _0x4cb92c=_0x3c57a0['checkChild'](_0x33359e['parent'],'blockQuote'),_0x13d4ff=_0x3c57a0['checkChild'](['$root','blockQuote'],_0x33359e);return _0x4cb92c&&_0x13d4ff;}(_0x3134b9,this['editor']['model']['schema']));_0x2e2996=to(_0x984e17,_0x4565a4['model']);}else{const _0x1c8915=Array['from'](_0x177c00['getSelectedBlocks']())['filter'](_0x263d81=>oo(_0x263d81));_0x2e2996=to(_0x1c8915,_0x4565a4['model']);}_0x4565a4['model']['change'](()=>{for(const _0x25c6a1 of _0x2e2996)_0xb57b60['markBlockFormat'](_0x25c6a1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4186c7}]});});}),_0xb57b60['descriptionFactory']['registerDescriptionCallback'](_0x16ac14=>{const {data:_0x3a223d}=_0x16ac14;if(_0x3a223d&&'blockQuote'==_0x3a223d['commandName']){const _0x44bd96=o(_0x11feb9,'ELEMENT_BLOCK_QUOTE');return _0x3a223d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11feb9,'*Set\x20format:*\x20%0',_0x44bd96)}:{'type':'format','content':o(_0x11feb9,'*Remove\x20format:*\x20%0',_0x44bd96)};}});}}function oo(_0x3fbcf4){return'blockQuote'==_0x3fbcf4['parent']['name'];}class G extends _0x2b7268{['afterInit'](){const _0x2e6a48=this['editor'],_0x1e9376=_0x2e6a48['locale'],_0x3229c8=_0x2e6a48['plugins']['get']('TrackChangesEditing');_0x2e6a48['plugins']['has']('BookmarkEditing')&&(_0x3229c8['enableCommand']('insertBookmark'),_0x3229c8['enableDefaultAttributesIntegration']('updateBookmark'),_0x3229c8['descriptionFactory']['registerDescriptionCallback'](_0x283d75=>{if('insertion'!=_0x283d75['type']&&'deletion'!=_0x283d75['type']&&'attribute'!=_0x283d75['type'])return;const _0x13c0b7=_0x283d75['getContainedElement']();if(null==_0x13c0b7)return;if(!_0x13c0b7['is']('element','bookmark'))return;const _0x580606=_0x13c0b7['getAttribute']('bookmarkId');if('insertion'==_0x283d75['type'])return{'type':'insertion','content':o(_0x1e9376,'*Insert:*\x20%0','\x22'+_0x580606+'\x22\x20'+o(_0x1e9376,'ELEMENT_BOOKMARK'))};if('deletion'==_0x283d75['type'])return{'type':'deletion','content':o(_0x1e9376,'*Remove:*\x20%0','\x22'+_0x580606+'\x22\x20'+o(_0x1e9376,'ELEMENT_BOOKMARK'))};const {data:_0x186484}=_0x283d75;if(!_0x186484||'bookmarkId'!=_0x186484['key'])return;return{'type':'format','content':o(_0x1e9376,'*Set\x20bookmark:*\x20%0','\x22'+_0x186484['newValue']+'\x22')};}));}}class L extends _0x2b7268{['afterInit'](){const _0x1bcf9e=this['editor'];_0x1bcf9e['plugins']['has']('CaseChange')&&(_0x1bcf9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1bcf9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1bcf9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2b7268{['afterInit'](){const _0x105d71=this['editor'];_0x105d71['commands']['get']('ckbox')&&_0x105d71['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2b7268{['afterInit'](){const _0x29cd39=this['editor'];if(!_0x29cd39['plugins']['has']('CodeBlock'))return;const _0x1b1680=_0x29cd39['plugins']['get']('TrackChangesEditing'),_0x14a89d=_0x29cd39['locale'],_0x32eadb=_0x29cd39['config']['get']('codeBlock')['languages'],_0x128ae2=_0x29cd39['commands']['get']('codeBlock');_0x1b1680['enableCommand']('indentCodeBlock'),_0x1b1680['enableCommand']('outdentCodeBlock'),_0x1b1680['enableCommand']('codeBlock',(_0x2008f4,_0x1844c9={})=>{const _0x1bad77=_0x29cd39['model'],_0x37b22d=_0x29cd39['model']['document']['selection'],_0x248791=_0x1844c9&&void 0x0!==_0x1844c9['forceValue']?_0x1844c9['forceValue']:!_0x128ae2['value'];let _0x423b97;_0x1844c9['language']||(_0x1844c9['language']=_0x32eadb[0x0]['language']),_0x423b97=_0x248791?Array['from'](_0x37b22d['getSelectedBlocks']())['filter'](_0x4a1cec=>co(_0x4a1cec)||function(_0x45aaeb,_0x48793b){if(_0x45aaeb['is']('rootElement')||_0x48793b['isLimit'](_0x45aaeb))return!0x1;return _0x48793b['checkChild'](_0x45aaeb['parent'],'codeBlock');}(_0x4a1cec,_0x1bad77['schema'])):Array['from'](_0x37b22d['getSelectedBlocks']())['filter'](_0x45964e=>co(_0x45964e));const _0x42b889=to(_0x423b97,_0x1bad77);_0x1bad77['change'](()=>{for(const _0x31f94c of _0x42b889)_0x1b1680['markBlockFormat'](_0x31f94c,{'commandName':'codeBlock','commandParams':[{..._0x1844c9,'forceValue':_0x248791}],'formatGroupId':'blockName'});});}),(_0x1b1680['descriptionFactory']['registerElementLabel']('codeBlock',_0x111f48=>o(_0x14a89d,'ELEMENT_CODE_BLOCK',_0x111f48)),_0x1b1680['descriptionFactory']['registerDescriptionCallback'](_0x240b37=>{if('formatBlock'!=_0x240b37['type'])return;const _0x3df09e=_0x14a89d['t'],{data:_0x4ace73}=_0x240b37;if(!_0x4ace73||'codeBlock'!=_0x4ace73['commandName'])return;const _0x4c1672=_0x4ace73['commandParams'][0x0]['language'],_0x531635=_0x3df09e(_0x32eadb['find'](_0x5ec7c7=>_0x5ec7c7['language']===_0x4c1672)['label'])['toLowerCase']();return _0x4ace73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14a89d,'*Set\x20format:*\x20%0',o(_0x14a89d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x531635+')')}:{'type':'format','content':o(_0x14a89d,'*Remove\x20format:*\x20%0',o(_0x14a89d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xf62d0){return'codeBlock'==_0xf62d0['name'];}class z extends _0x2b7268{['afterInit'](){const _0x2c4d7d=this['editor'];if(!_0x2c4d7d['plugins']['has']('CommentsEditing'))return;_0x2c4d7d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2b7268{static get['requires'](){return[_0xa0d044];}['init'](){const _0x3606bc=this['editor'],_0x52487f=_0x3606bc['plugins']['get']('TrackChangesEditing');_0x52487f['enableCommand']('delete');const _0xcbf52f=_0x3606bc['commands']['get']('deleteForward');_0x52487f['enableCommand']('deleteForward',(_0x4e02e2,_0xc79c6d={})=>{const _0x220c16=_0x3606bc['model']['createSelection'](_0x3606bc['model']['document']['selection']);_0x220c16['isCollapsed']&&_0x3606bc['model']['modifySelection'](_0x220c16,{'direction':'forward','unit':_0xc79c6d['unit']});const _0x2d1fcd=_0x220c16['getFirstRange'](),_0x218846=_0x5af68e['fromRange'](_0x2d1fcd);let _0x4b6cd1;_0x4e02e2(_0xc79c6d),_0x4b6cd1='$graveyard'==_0x218846['root']['rootName']?_0x3606bc['model']['createRange'](_0x2d1fcd['start']):_0x3606bc['model']['createRange'](_0x218846['start'],_0x218846['end']),_0x218846['detach'](),_0x3606bc['model']['enqueueChange'](_0xcbf52f['buffer']['batch'],_0x4838bc=>{_0xcbf52f['buffer']['lock'](),_0x4838bc['setSelection'](_0x4838bc['createRange'](_0x4b6cd1['end'])),_0xcbf52f['buffer']['unlock']();});});}}class W extends _0x2b7268{['afterInit'](){const _0x494498=this['editor'];if(!_0x494498['plugins']['has']('ListEditing'))return;const _0x1cf8e2=_0x494498['locale'],_0x1240ce=_0x494498['plugins']['get']('TrackChangesEditing'),_0x159854=_0x494498['plugins']['has']('TodoListEditing'),_0x1cb426=!!_0x494498['config']['get']('list.multiBlock');function _0x2f9cb7(_0x476c38){return{'type':'format','content':''+o(_0x1cf8e2,'*Set\x20format:*\x20%0',_0x476c38)};}function _0x2d01eb(_0x23bb2e){return{'type':'format','content':''+o(_0x1cf8e2,'*Remove\x20format:*\x20%0',_0x23bb2e)};}_0x1240ce['enableDefaultAttributesIntegration']('numberedList'),_0x1240ce['enableDefaultAttributesIntegration']('bulletedList'),_0x1240ce['enableDefaultAttributesIntegration']('customNumberedList'),_0x1240ce['enableDefaultAttributesIntegration']('customBulletedList'),_0x1240ce['enableDefaultAttributesIntegration']('indentList'),_0x1240ce['enableDefaultAttributesIntegration']('outdentList'),_0x1240ce['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1240ce['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cb426&&(_0x1240ce['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1240ce['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x159854&&(_0x1240ce['enableDefaultAttributesIntegration']('todoList'),_0x1240ce['enableDefaultAttributesIntegration']('checkTodoList'),_0x1240ce['descriptionFactory']['registerDescriptionCallback'](_0x4b5770=>{const {data:_0x333f53}=_0x4b5770;if(_0x333f53&&'todoListChecked'==_0x333f53['key'])return{'type':'format','content':_0x333f53['newValue']?o(_0x1cf8e2,'*Check\x20item*'):o(_0x1cf8e2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2695ad=>{if(_0x2695ad['batch']['isUndo'])return!0x1;let _0x3ccf99=!0x1;const _0x147722=_0x1240ce['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44767c=>'todoListChecked'===_0x1240ce['_getAttributeKey'](_0x44767c));for(const _0x53a31c of _0x147722){'todo'!=_0x53a31c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1240ce['_findSuggestions'](_0x53a31c['getFirstRange'](),'attribute')['find'](_0x163a7c=>'listType'===_0x1240ce['_getAttributeKey'](_0x163a7c['suggestion']))||(_0x2695ad['removeMarker'](_0x53a31c['getFirstMarker']()),_0x3ccf99=!0x0));}return _0x3ccf99;})),_0x1240ce['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1cf8e2,'FORMAT_INDENT'));const _0x39a569={'type':'format','content':''};_0x1240ce['descriptionFactory']['registerDescriptionCallback'](_0x2a57d4=>{const {data:_0x325e8c}=_0x2a57d4;if(!_0x325e8c||'listType'!=_0x325e8c['key'])return;let _0x114301=_0x2a57d4['head'];for(;_0x114301;){if(_0x114301['data']&&(('listStyle'==_0x114301['data']['key']||'listMarkerStyle'==_0x114301['data']['key'])&&(_0x114301['data']['newValue']&&'default'!=_0x114301['data']['newValue']||'default'!=_0x114301['data']['oldValue']&&!_0x325e8c['newValue'])||!_0x1cb426&&_0x114301['data']['key']==m))return _0x39a569;_0x114301=_0x114301['next'];}if(null==_0x325e8c['newValue'])switch(_0x325e8c['oldValue']){case'bulleted':return _0x2d01eb(o(_0x1cf8e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d01eb(o(_0x1cf8e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d01eb(o(_0x1cf8e2,'ELEMENT_TODO_LIST'));}switch(_0x325e8c['newValue']){case'bulleted':return _0x2f9cb7(o(_0x1cf8e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f9cb7(o(_0x1cf8e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f9cb7(o(_0x1cf8e2,'ELEMENT_TODO_LIST'));}}),_0x1240ce['descriptionFactory']['registerDescriptionCallback'](_0x3583a0=>{const {data:_0x2f979d}=_0x3583a0;if(_0x2f979d&&'listIndent'==_0x2f979d['key'])return null==_0x2f979d['newValue']||null==_0x2f979d['oldValue']&&0x0==_0x2f979d['newValue']?_0x39a569:void 0x0;}),_0x1240ce['descriptionFactory']['registerDescriptionCallback'](_0x1a018d=>{if('attribute'!=_0x1a018d['type'])return;const {data:_0x3cac8f}=_0x1a018d;if(!_0x3cac8f||'listItemId'!=_0x3cac8f['key'])return;const _0x31354f=Te(_0x1a018d);return'newValue'==_0x31354f?{'type':'format','content':o(_0x1cf8e2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31354f?{'type':'format','content':o(_0x1cf8e2,'*Split:*\x20list\x20item')}:_0x39a569;}),_0x494498['model']['document']['registerPostFixer'](_0x862f55=>this['listItemIdFixer'](_0x862f55)),_0x494498['model']['document']['registerPostFixer'](_0x1ad627=>this['noTrackChangesFixer'](_0x1ad627)),_0x494498['model']['document']['on']('change:data',(_0x2051db,_0xe5f6b4)=>{if(_0xe5f6b4['isUndo']||!_0xe5f6b4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x578311){if(_0x578311['batch']['isUndo']||!_0x578311['batch']['isLocal'])return!0x1;let _0x84e122=!0x1;const _0xa690f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x74522d=>_0x74522d['data']&&'listItemId'==_0x74522d['data']['key'])['filter'](_0xbf1c64=>_0xbf1c64['data']['newValue']&&_0xbf1c64['data']['oldValue']);for(const _0x25ef58 of _0xa690f6)Te(_0x25ef58)||(_0x578311['removeMarker'](_0x25ef58['getFirstMarker']()),_0x84e122=!0x0);return _0x84e122;}['noTrackChangesFixer'](_0x30de4e){if(_0x30de4e['batch']['isUndo']||!_0x30de4e['batch']['isLocal'])return!0x1;const _0xe7ae80=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xe7ae80['trackChangesCommand']['value'])return!0x1;let _0x4d4f8a=!0x1;const _0x3abc96=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4d1854=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7f61a8=>'attribute'==_0x7f61a8['type'])['filter'](_0x2a0b0d=>_0x3abc96['includes'](_0x2a0b0d['attributeKey']));if(0x0==_0x4d1854['length'])return _0x4d4f8a;for(const _0x5bb089 of _0x4d1854){const _0x261f0e=_0xe7ae80['_findSuggestions'](_0x5bb089['range'],'attribute')['filter'](_0xd7cf70=>!_0xd7cf70['meta']['isNextTo'])['map'](_0x2213b6=>_0x2213b6['suggestion'])['filter'](_0x2c435b=>{const _0x1d1b66=_0xe7ae80['_getAttributeKey'](_0x2c435b);return _0x3abc96['includes'](_0x1d1b66);});if(_0x261f0e['length']){for(const _0x38019d of _0x261f0e)_0x30de4e['removeMarker'](_0x38019d['getFirstMarker']());_0x4d4f8a=!0x0;}}return _0x4d4f8a;}['assureChains'](){const _0x41796b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc51b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x337599;const _0xca6ecc=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36b16e=>{if(_0x36b16e['data']['oldRange']||!_0x36b16e['data']['newRange'])return null;if(!_0x36b16e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2c753a}=_0x41796b['_splitMarkerName'](_0x36b16e['name']);if(!_0x41796b['hasSuggestion'](_0x2c753a))return null;const _0x2448e5=_0x41796b['getSuggestion'](_0x2c753a);return _0x5bc51b['includes'](_0x2448e5['data']['key']);})['map'](_0x2ac4bc=>{const {id:_0x47f8a0}=_0x41796b['_splitMarkerName'](_0x2ac4bc['name']),_0xecfe32=_0x41796b['getSuggestion'](_0x47f8a0);return _0x337599=_0xecfe32['attributes']['groupId'],_0xecfe32['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xca6ecc['size'])return;const _0x1bc536=_0x41796b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4538e3=>'attribute'==_0x4538e3['type']&&_0x4538e3['data']&&_0x5bc51b['includes'](_0x4538e3['data']['key'])&&_0x4538e3['attributes']['groupId']!=_0x337599)['map'](_0x4362fa=>({'listItem':_0x4362fa['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4362fa['attributes']['groupId']})),_0x293520=new Set();for(const {groupId:_0x6b8035,listItem:_0x546e45}of _0x1bc536)_0xca6ecc['has'](_0x546e45)&&_0x293520['add'](_0x6b8035);for(const _0x4209e4 of _0x41796b['getSuggestions']())_0x293520['has'](_0x4209e4['attributes']['groupId'])&&_0x4209e4['setAttribute']('groupId',_0x337599);}['_supportLegacySuggestions'](){const _0xba3589=this['editor'],_0x54b4e5=_0xba3589['locale'],_0xf8d8a6=_0xba3589['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf8d8a6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1fc0e4,_0x26a93e){const _0x302620=[];for(let _0x1f1e8b of _0x1fc0e4)_0x1f1e8b['start']['nodeAfter']===_0x1f1e8b['end']['parent']&&(_0x1f1e8b=_0xba3589['model']['createRange'](_0xba3589['model']['createPositionAt'](_0x1f1e8b['start']['nodeAfter'],0x0))),_0x302620['push'](_0x1f1e8b);_0xba3589['model']['change'](_0x2a03bd=>{const _0x43ef55=_0xba3589['model']['document']['selection'],_0x5bf9e8=Array['from'](_0x43ef55['getRanges']())['map'](_0x47ea07=>_0x5af68e['fromRange'](_0x47ea07));_0x2a03bd['setSelection'](_0x302620),_0xba3589['commands']['get'](_0x26a93e['commandName'])['refresh'](),_0x26a93e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xba3589['execute'](_0x26a93e['commandName'],..._0x26a93e['commandParams']),_0x2a03bd['setSelection'](_0x5bf9e8);for(const _0x516fe0 of _0x5bf9e8)_0x516fe0['detach']();});}),_0xf8d8a6['descriptionFactory']['registerElementLabel'](function(_0x536a54){const _0x3f3fbf=!_0xba3589['model']['schema']['isObject'](_0x536a54),_0x5cc5ea=_0x536a54['previousSibling'],_0x455998=_0x536a54['nextSibling'],_0xaea3b9=_0x536a54['getAttribute']('listItemId'),_0x155d70=!_0x5cc5ea||_0x5cc5ea['getAttribute']('listItemId')!==_0xaea3b9,_0xb8d105=!_0x455998||_0x455998['getAttribute']('listItemId')!==_0xaea3b9;return _0x3f3fbf&&Boolean(_0xaea3b9)&&_0x155d70&&_0xb8d105;},_0x43fb1f=>o(_0x54b4e5,'ELEMENT_LIST_ITEM',_0x43fb1f));}['_registerLegacyDescription'](){const _0x4dd104=this['editor'],_0x255c81=_0x4dd104['locale'];function _0x2e1650(_0x41dc70){const _0x57981a=_0x4dd104['commands']['get']('bulletedList')['value'],_0x3560af=_0x4dd104['commands']['get']('numberedList')['value'];return'numberedList'===_0x41dc70?_0x57981a:_0x3560af;}_0x4dd104['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44ad72){if('formatBlock'!=_0x44ad72['type'])return;const {data:_0xa4da9a}=_0x44ad72;if(!_0xa4da9a)return;let _0xb08d8a,_0x562389,_0x22849d,_0x3fe854;switch(_0xa4da9a['commandName']){case'bulletedList':_0x22849d=_0xa4da9a['commandParams'][0x0]['forceValue'],_0x3fe854=_0x2e1650(_0xa4da9a['commandName']),_0xb08d8a=_0x22849d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fe854&&_0x4dd104['config']['get']('list.multiBlock')||(_0xb08d8a='*Change\x20to:*\x20%0'),_0x562389={'type':'format','content':o(_0x255c81,_0xb08d8a,o(_0x255c81,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22849d=_0xa4da9a['commandParams'][0x0]['forceValue'],_0x3fe854=_0x2e1650(_0xa4da9a['commandName']),_0xb08d8a=_0x22849d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fe854&&_0x4dd104['config']['get']('list.multiBlock')||(_0xb08d8a='*Change\x20to:*\x20%0'),_0x562389={'type':'format','content':o(_0x255c81,_0xb08d8a,o(_0x255c81,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xb08d8a='*Indent:*\x20%0',_0x562389={'type':'format','content':o(_0x255c81,_0xb08d8a,o(_0x255c81,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xb08d8a=function(_0x1fab79){const _0x2a3378=_0x1fab79['getFirstRange']();let _0x1eb9c9=_0x2a3378['start']['nodeAfter'];for(;_0x1eb9c9&&_0x2a3378['containsItem'](_0x1eb9c9);){if(_0x1eb9c9['getAttribute']('listIndent')>0x0)return!0x1;_0x1eb9c9=_0x1eb9c9['nextSibling'];}return!0x0;}(_0x44ad72)?o(_0x255c81,'*Format:*\x20remove\x20from\x20%0',o(_0x255c81,function(_0x174e31){return'ELEMENT_'+_0x174e31['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44ad72))):o(_0x255c81,'*Outdent:*\x20%0',o(_0x255c81,'ELEMENT_LIST_ITEM')),_0x562389={'type':'format','content':_0xb08d8a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xa4da9a['multipleBlocks']&&(_0xb08d8a='*Merge:*\x20%0',_0x562389={'type':'deletion','content':o(_0x255c81,_0xb08d8a,o(_0x255c81,'ELEMENT_LIST_ITEM'))});}return _0x562389;});}}function Te(_0xb70ede){let _0x312716=_0xb70ede['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x312716;){const _0x9ce5db=_0x312716['getAttribute']('listItemId');if(!_0x9ce5db)return!0x1;if(_0x9ce5db==_0xb70ede['data']['newValue'])return'newValue';if(_0x9ce5db==_0xb70ede['data']['oldValue'])return'oldValue';_0x312716=_0x312716['previousSibling'];}return!0x1;}class H extends _0x2b7268{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x324154=this['editor']['config']['get']('list.properties'),_0xfab1ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x324154['styles']&&_0xfab1ed['enableDefaultAttributesIntegration']('listStyle'),_0x324154['reversed']&&_0xfab1ed['enableDefaultAttributesIntegration']('listReversed'),_0x324154['startIndex']&&_0xfab1ed['enableDefaultAttributesIntegration']('listStart');const _0x159ef4={'type':'format','content':''};_0xfab1ed['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5886ba=this['editor']['locale'];_0xfab1ed['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5886ba,'FORMAT_LIST_REVERSED')),_0xfab1ed['descriptionFactory']['registerDescriptionCallback'](_0x50e6fd=>{const {data:_0x3cca21}=_0x50e6fd;if(_0x3cca21&&'listReversed'==_0x3cca21['key'])return null==_0x3cca21['newValue']||0x0==_0x3cca21['newValue']&&null==_0x3cca21['oldValue']?_0x159ef4:void 0x0;}),_0xfab1ed['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5886ba,'FORMAT_LIST_START')),_0xfab1ed['descriptionFactory']['registerDescriptionCallback'](_0x38e5dd=>{const {data:_0x1e9f14}=_0x38e5dd;if(_0x1e9f14&&'listStart'==_0x1e9f14['key'])return null==_0x1e9f14['newValue']||0x1==_0x1e9f14['newValue']&&null==_0x1e9f14['oldValue']?_0x159ef4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xf86395=>{if(_0xf86395['batch']['isUndo'])return!0x1;let _0x5f5831=!0x1;const _0x14cfd5=_0xfab1ed['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x145763=>{const _0x1ed6b8=_0xfab1ed['_getAttributeKey'](_0x145763);return'listStart'==_0x1ed6b8||'listReversed'==_0x1ed6b8;});for(const _0x303aa7 of _0x14cfd5){const _0x3335b8=_0x303aa7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3335b8||'customNumbered'==_0x3335b8)continue;_0xfab1ed['_findSuggestions'](_0x303aa7['getFirstRange'](),'attribute')['find'](_0xc4f7be=>'listType'==_0xfab1ed['_getAttributeKey'](_0xc4f7be['suggestion']))||(_0xf86395['removeMarker'](_0x303aa7['getFirstMarker']()),_0x5f5831=!0x0);}return _0x5f5831;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x157f0f){const _0x36e53d=this['editor']['locale'],{data:_0x3e0f23}=_0x157f0f,_0x25a412={'type':'format','content':''};if(!_0x3e0f23||'listStyle'!=_0x3e0f23['key'])return;if(!_0x3e0f23['oldValue'])return'default'==_0x3e0f23['newValue']?_0x25a412:{'type':'format','content':''+o(_0x36e53d,'*Set\x20format:*\x20%0',o(_0x36e53d,this['_getTranslationKeyForListStyle'](_0x3e0f23['newValue'])))};if(!_0x3e0f23['newValue']){if('default'==_0x3e0f23['oldValue'])return _0x25a412;let _0xfa62f7=_0x157f0f['head'];for(;_0xfa62f7;){if(_0xfa62f7['data']&&'listType'==_0xfa62f7['data']['key']&&_0xfa62f7['data']['newValue'])return _0x25a412;_0xfa62f7=_0xfa62f7['next'];}return{'type':'format','content':''+o(_0x36e53d,'*Remove\x20format:*\x20%0',o(_0x36e53d,this['_getTranslationKeyForListStyle'](_0x3e0f23['oldValue'])))};}if('default'!=_0x3e0f23['newValue'])return{'type':'format','content':''+o(_0x36e53d,'*Set\x20format:*\x20%0',o(_0x36e53d,this['_getTranslationKeyForListStyle'](_0x3e0f23['newValue'])))};let _0x38d78a=_0x157f0f['head'];for(;_0x38d78a;){if(_0x38d78a['data']&&'listType'==_0x38d78a['data']['key']&&_0x38d78a['data']['newValue']&&_0x38d78a['data']['oldValue'])return _0x25a412;_0x38d78a=_0x38d78a['next'];}return{'type':'format','content':o(_0x36e53d,'*Set\x20format:*\x20%0',o(_0x36e53d,'ELEMENT_'+_0x157f0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xc9163e=this['editor'],_0xbe53d6=_0xc9163e['locale'];_0xc9163e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d568d=>{if('formatBlock'!=_0x3d568d['type'])return;const {data:_0x30fc32}=_0x3d568d;if(!_0x30fc32)return;let _0x1ab97,_0x585a99;switch(_0x30fc32['commandName']){case'listStyle':_0x1ab97='*Change\x20to:*\x20%0',_0x585a99={'type':'format','content':o(_0xbe53d6,_0x1ab97,o(_0xbe53d6,this['_getTranslationKeyForListStyle'](_0x30fc32['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ab97=_0x30fc32['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x585a99={'type':'format','content':o(_0xbe53d6,_0x1ab97)};break;case'listStart':_0x1ab97='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x585a99={'type':'format','content':o(_0xbe53d6,_0x1ab97,_0x30fc32['commandParams'][0x0]['startIndex'])};}return _0x585a99;});}['_getTranslationKeyForListStyle'](_0xcbd8a5){return'ELEMENT_'+function(_0x542f57){if(ye['includes'](_0x542f57))return'bulleted';if(Se['includes'](_0x542f57))return'numbered';return null;}(_0xcbd8a5)['toUpperCase']()+'_LIST_'+_0xcbd8a5['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2b7268{['afterInit'](){const _0xcb3b82=this['editor'];_0xcb3b82['commands']['get']('emoji')&&_0xcb3b82['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2b7268{static get['requires'](){return[_0x40a202];}['init'](){const _0x345aa8=this['editor'],_0x331401=_0x345aa8['plugins']['get']('TrackChangesEditing'),_0x59eed9=_0x345aa8['commands']['get']('enter');_0x331401['enableCommand']('enter',()=>{_0x345aa8['model']['change'](_0x2e0c82=>{const _0x1a853c=_0x345aa8['model']['document']['selection'],_0x2c218a=_0x1a853c['getFirstPosition'](),_0x438e46=_0x5af68e['fromRange'](_0x1a853c['getFirstRange']());if(_0x59eed9['enterBlock'](_0x2e0c82)){const _0x37caa6=_0x345aa8['model']['createPositionAt'](_0x2c218a['parent']['nextSibling'],0x0),_0x1aacb6=_0x2e0c82['createRange'](_0x2c218a,_0x37caa6);_0x331401['markInsertion'](_0x1aacb6);}else _0x2e0c82['setSelection'](_0x2e0c82['createRange'](_0x438e46['end']));_0x438e46['detach'](),_0x59eed9['fire']('afterExecute',{'writer':_0x2e0c82});});});}}class Y extends _0x2b7268{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x22bd7c=this['editor']['plugins']['get']('TrackChangesEditing');_0x22bd7c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x22bd7c['enableCommand']('findNext'),_0x22bd7c['enableCommand']('findPrevious'),_0x22bd7c['enableCommand']('replace'),_0x22bd7c['enableCommand']('replaceAll');}['handleFindCommand'](_0xf89467,_0x523bd1,_0x521f0c={}){const _0x2f644a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xf89467(_0x5724be=>{let _0x13ed35=('string'==typeof _0x523bd1?_0x2f644a['findByTextCallback'](_0x523bd1,_0x521f0c):_0x523bd1)(_0x5724be);Array['isArray'](_0x13ed35)&&(_0x13ed35={'results':_0x13ed35,'searchText':'string'==typeof _0x523bd1?_0x523bd1:''});const _0x6abb0b=_0x13ed35['results']['filter'](_0x11febb=>!0x1===this['_isInDeletionRange'](_0x11febb,_0x5724be['item']));return{..._0x13ed35,'results':_0x6abb0b};},_0x521f0c);}['_isInDeletionRange'](_0x11bc1b,_0x305c1b){const _0x18b65a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x305c1b,_0x11bc1b['start']),this['editor']['model']['createPositionAt'](_0x305c1b,_0x11bc1b['end']));for(const _0x4c228d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x18b65a['getIntersection'](_0x4c228d['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2b7268{['afterInit'](){const _0x5154d8=this['editor']['locale'],_0x234c7e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1abdea,commandName:_0x18c918}of eo)this['editor']['plugins']['has'](_0x1abdea)&&_0x234c7e['enableDefaultAttributesIntegration'](_0x18c918);_0x234c7e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5154d8,'FORMAT_FONT_SIZE')),_0x234c7e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5154d8,'FORMAT_FONT_FAMILY')),_0x234c7e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5154d8,'FORMAT_FONT_COLOR')),_0x234c7e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5154d8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481109=this['editor'],_0x39ea75=_0x481109['locale'];_0x481109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c2161=>{const _0x9bc326=_0x39ea75['t'];if('formatInline'!=_0x2c2161['type'])return;const {data:_0x498b7e}=_0x2c2161;if(null!=_0x498b7e){if('fontSize'==_0x498b7e['commandName']){const _0x1f4fa9=_0x498b7e['commandParams'][0x0]['value'];if(_0x1f4fa9){const _0x17d808=_0x9bc326(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x51848e=>_0x51848e['model']==_0x1f4fa9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x39ea75,'*Set\x20font\x20size:*\x20%0',_0x17d808)};}return{'type':'format','content':o(_0x39ea75,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x498b7e['commandName']){const _0x355d31=_0x498b7e['commandParams'][0x0]['value'];return _0x355d31?{'type':'format','content':o(_0x39ea75,'*Set\x20font\x20family:*\x20%0',_0x355d31)}:{'type':'format','content':o(_0x39ea75,'*Reset\x20font\x20family*')};}if('fontColor'==_0x498b7e['commandName']){const _0x3a6fe8=_0x498b7e['commandParams'][0x0]['value'];if(_0x3a6fe8){const _0x33af2c=_0x2ee61b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ffbfb=>_0x2ffbfb['model']==_0x3a6fe8);let _0x4f8ea7=_0x3a6fe8,_0x3c972e='';return _0x33af2c&&(_0x4f8ea7=_0x33af2c['label'],_0x3c972e=_0x9bc326(_0x4f8ea7)['toLowerCase']()),{'type':'format','content':o(_0x39ea75,'*Set\x20font\x20color:*\x20%0',_0x3c972e)['trim'](),'color':{'value':_0x3a6fe8,'title':_0x3c972e||_0x4f8ea7}};}return{'type':'format','content':o(_0x39ea75,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x498b7e['commandName']){const _0x26be39=_0x498b7e['commandParams'][0x0]['value'];if(_0x26be39){const _0x40b940=_0x2ee61b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2af698=>_0x2af698['model']==_0x26be39);let _0x1ed2d6=_0x26be39,_0x121305='';return _0x40b940&&(_0x1ed2d6=_0x40b940['label'],_0x121305=_0x9bc326(_0x1ed2d6)['toLowerCase']()),{'type':'format','content':o(_0x39ea75,'*Set\x20font\x20background\x20color:*\x20%0',_0x121305)['trim'](),'color':{'value':_0x26be39,'title':_0x121305||_0x1ed2d6}};}return{'type':'format','content':o(_0x39ea75,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2b7268{['afterInit'](){const {plugins:_0x1ce854}=this['editor'];_0x1ce854['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1ce854['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2ee5e0,plugins:_0x34b317,commands:_0x23e636}=this['editor'],_0x3ce4d8=_0x34b317['get']('TrackChangesEditing');_0x23e636['get']('footnotesStyle')&&_0x3ce4d8['enableDefaultAttributesIntegration']('footnotesStyle'),_0x23e636['get']('footnotesStart')&&_0x3ce4d8['enableDefaultAttributesIntegration']('footnotesStart'),_0x3ce4d8['registerBlockAttribute']('footnotesListStyle'),_0x3ce4d8['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2ee5e0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3ce4d8['registerBlockAttribute']('footnotesListStart'),_0x3ce4d8['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2ee5e0,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x2d82c3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x45611f,commands:_0x54f80e}=this['editor'];_0x54f80e['get']('insertFootnote')&&_0x2d82c3['enableCommand']('insertFootnote'),_0x2d82c3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4ba65c=>o(_0x45611f,'ELEMENT_FOOTNOTE_REF',_0x4ba65c)),_0x2d82c3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2149f6=>o(_0x45611f,'ELEMENT_FOOTNOTE_DEFINITION',_0x2149f6)),_0x2d82c3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x42b97b=>o(_0x45611f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x42b97b));}}class nt extends _0x2b7268{['afterInit'](){const _0x4a1fad=this['editor'],_0x500856=_0x4a1fad['plugins']['get']('TrackChangesEditing'),_0x157624=_0x4a1fad['commands']['get']('copyFormat'),_0x1fb0bb=_0x4a1fad['commands']['get']('pasteFormat');_0x157624&&_0x1fb0bb&&(_0x500856['enableDefaultAttributesIntegration']('pasteFormat'),_0x500856['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x20a7d5=this['editor'],_0x289117=_0x20a7d5['locale'];_0x20a7d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddc7d=>{if('formatBlock'!=_0x4ddc7d['type']&&'formatInline'!=_0x4ddc7d['type'])return;const {data:_0x363043}=_0x4ddc7d;if(_0x363043&&'pasteFormat'===_0x363043['commandName']){const _0x5a09c1=[],_0x512c1b=_0x363043['commandParams'][0x0];for(const [_0x3ed9a3,_0xd8d576]of Object['entries'](_0x512c1b))_0x5a09c1['push'](ro(_0x20a7d5,_0x3ed9a3,_0xd8d576));return _0x5a09c1['length']?{'type':'format','content':o(_0x289117,'*Set\x20format\x20to:*\x20%0',_0x5a09c1['join'](',\x20'))}:{'type':'format','content':o(_0x289117,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3e6178,_0x127ba8,_0x2e2f14){const _0x2dc53c=_0x3e6178['locale']['t'],_0x2f673b=_0x127ba8['split'](/(?=[A-Z])/)['join']('\x20'),_0x75a729=_0x2dc53c(_0x2f673b['charAt'](0x0)['toUpperCase']()+_0x2f673b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2e2f14)return _0x75a729;if('fontColor'===_0x127ba8||'fontBackgroundColor'===_0x127ba8){const _0x5545b6=_0x2ee61b(_0x3e6178['config']['get']('fontColor.colors'))['find'](_0x2d5e5c=>_0x2d5e5c['model']==_0x2e2f14);return _0x75a729+'\x20('+(_0x5545b6?_0x2dc53c(_0x5545b6['label'])['toLowerCase']():_0x2e2f14)+')';}if('fontSize'===_0x127ba8&&isNaN(parseFloat(_0x2e2f14))){const _0x29e253=_0x3e6178['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e6178['config']['get']('fontSize.options'))['find'](_0x4bd8df=>_0x4bd8df['model']==_0x2e2f14);return _0x75a729+'\x20('+(_0x29e253?_0x2dc53c(_0x29e253['title'])['toLowerCase']():_0x2e2f14)+')';}return _0x75a729+'\x20('+_0x2e2f14+')';}class it extends _0x2b7268{['_headingOptions'];['afterInit'](){const _0x36fdf7=this['editor'];if(!_0x36fdf7['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x36fdf7['config']['get']('heading.options');const _0x56822b=_0x36fdf7['locale'],_0x626f96=_0x36fdf7['plugins']['get']('TrackChangesEditing');_0x626f96['enableDefaultAttributesIntegration']('heading');for(const _0x490d79 of this['_headingOptions'])'paragraph'!=_0x490d79['model']&&_0x626f96['descriptionFactory']['registerElementLabel'](_0x490d79['model'],_0x26eef4=>{const _0x3bbdc8=this['_getHeadingLevel'](_0x490d79['model']);return null!==_0x3bbdc8?_0x1c20c4(_0x26eef4,_0x3bbdc8):_0x10c07c(_0x26eef4,_0x490d79['title']);});function _0x1c20c4(_0x43f9e4,_0x5dfe0f){return o(_0x56822b,'ELEMENT_HEADING',[_0x43f9e4,_0x5dfe0f]);}function _0x10c07c(_0x51a2da,_0x7d7d3b){return o(_0x56822b,'ELEMENT_HEADING_CUSTOM',[_0x51a2da,_0x7d7d3b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91723f=this['editor'],_0x263d8e=_0x91723f['locale'];function _0xc13733(_0x120092,_0x251965){return o(_0x263d8e,'ELEMENT_HEADING_CUSTOM',[_0x120092,_0x251965]);}_0x91723f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1798fc=>{if('formatBlock'!=_0x1798fc['type'])return;const {data:_0x31c901}=_0x1798fc;if(_0x31c901&&'heading'==_0x31c901['commandName']){const _0x3febaf=_0x31c901['commandParams'][0x0]['value'],_0x15a850=this['_getHeadingLevel'](_0x3febaf);if(null!==_0x15a850)return{'type':'format','content':o(_0x263d8e,'*Change\x20to:*\x20%0',(_0x51e6c7=0x1,_0x2c9e94=_0x15a850,o(_0x263d8e,'ELEMENT_HEADING',[_0x51e6c7,_0x2c9e94])))};const _0x124857=this['_headingOptions']['find'](_0x46b624=>_0x46b624['model']===_0x3febaf)['title'];return{'type':'format','content':o(_0x263d8e,'*Change\x20to:*\x20%0',_0xc13733(0x1,_0x124857))};}var _0x51e6c7,_0x2c9e94;});}['_getHeadingLevel'](_0x312c22){const _0x3af22f=_0x312c22['match'](/^heading(\d+)/);if(_0x3af22f)return _0x3af22f[0x1];const _0x4b4060=this['_headingOptions']?.['find'](_0x1db63f=>_0x1db63f['model']==_0x312c22);if(_0x4b4060&&_0x4b4060['view']){const _0x236978=_0x4b4060['view'],_0x3b8515=(_0x236978['name']??_0x236978)['match'](/^h(\d+)/);if(_0x3b8515)return _0x3b8515[0x1];}return null;}}class et extends _0x2b7268{['afterInit'](){const _0x123e9a=this['editor'];if(!_0x123e9a['plugins']['has']('HighlightEditing'))return;const _0x1d8060=_0x123e9a['plugins']['get']('TrackChangesEditing'),_0x4f207b=_0x123e9a['locale'];_0x1d8060['enableDefaultAttributesIntegration']('highlight'),_0x1d8060['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4f207b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf0be=this['editor'],_0x4d9dea=_0x2bf0be['locale'];_0x2bf0be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2934b1=>{if('formatInline'!=_0x2934b1['type'])return;const {data:_0x578ef2}=_0x2934b1;if(_0x578ef2&&'highlight'==_0x578ef2['commandName']){const _0x1ea191=_0x4d9dea['t'],_0x5b573f=_0x578ef2['commandParams'][0x0]['value'];if(_0x5b573f){const _0x2d4715=_0x2bf0be['config']['get']('highlight.options')['find'](_0x14b7c0=>_0x14b7c0['model']==_0x5b573f),_0xd9c688=_0x1ea191(_0x2d4715['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d9dea,'*Set\x20highlight:*\x20%0',_0xd9c688),'color':{'value':_0x2d4715['color'],'title':_0x2d4715['title']}};}return{'type':'format','content':o(_0x4d9dea,'*Remove\x20highlight*',o(_0x4d9dea,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2b7268{['afterInit'](){const _0x2f4126=this['editor'];if(!_0x2f4126['plugins']['has']('HorizontalLineEditing'))return;_0x2f4126['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x49f2f1=_0x2f4126['plugins']['get']('TrackChangesEditing'),_0x453856=_0x2f4126['locale'];_0x49f2f1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1b8331=>o(_0x453856,'ELEMENT_HORIZONTAL_LINE',_0x1b8331));}}class ot extends _0x2b7268{['afterInit'](){const _0x45fd56=this['editor'];if(!_0x45fd56['plugins']['has']('HtmlEmbed'))return;const _0x2e820c=_0x45fd56['plugins']['get']('TrackChangesEditing'),_0x2262bd=_0x45fd56['locale'];_0x2e820c['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e05b5=>o(_0x2262bd,'ELEMENT_HTML_EMBED',_0x1e05b5)),_0x2e820c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2e820c['descriptionFactory']['registerDescriptionCallback'](_0x52e03d=>{if('attribute'!=_0x52e03d['type'])return;const {data:_0x59c983}=_0x52e03d;if(_0x59c983&&'value'==_0x59c983['key']&&_0x52e03d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c46b2=o(_0x2262bd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2262bd,'*Change\x20%0\x20content*',_0x5c46b2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33de77=this['editor'],_0x4dfba3=_0x33de77['locale'];_0x33de77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f3f68=>{if('formatBlock'!=_0x4f3f68['type'])return;const {data:_0x246583}=_0x4f3f68;if(_0x246583&&'htmlEmbed'==_0x246583['commandName']){const _0xab24ca=o(_0x4dfba3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4dfba3,'*Change\x20%0\x20content*',_0xab24ca)};}});}}class rt extends _0x2b7268{['afterInit'](){const _0x180e9b=this['editor'];if(!_0x180e9b['plugins']['has']('ImageEditing'))return;const _0x5765b0=_0x180e9b['plugins']['get']('TrackChangesEditing'),_0x3fddd3=_0x180e9b['plugins']['get']('ImageUtils'),_0x2098e9=_0x180e9b['locale'];_0x5765b0['enableCommand']('insertImage'),_0x5765b0['descriptionFactory']['registerElementLabel']('imageBlock',_0x193012=>o(_0x2098e9,'ELEMENT_IMAGE',_0x193012)),_0x5765b0['descriptionFactory']['registerElementLabel']('imageInline',_0x3e1069=>o(_0x2098e9,'ELEMENT_INLINE_IMAGE',_0x3e1069)),_0x5765b0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2098e9,'ELEMENT_CAPTION')),_0x180e9b['plugins']['has']('ImageUploadEditing')&&_0x5765b0['enableCommand']('uploadImage'),_0x180e9b['plugins']['has']('ImageBlockEditing')&&_0x180e9b['plugins']['has']('ImageInlineEditing')&&(_0x5765b0['enableCommand']('imageTypeInline',(_0xf03b81,_0x6b7616)=>{const _0x5b1a6d=_0x3fddd3['getClosestSelectedImageElement'](_0x180e9b['model']['document']['selection']);_0x180e9b['model']['change'](()=>{_0x5765b0['markBlockFormat'](_0x5b1a6d,{'commandName':'imageTypeInline','commandParams':[_0x6b7616]},[],'convertBlockImageToInline');});}),_0x5765b0['enableCommand']('imageTypeBlock',(_0x276afb,_0xe2051b)=>{_0x180e9b['model']['change'](_0x9dcbb=>{let _0x166f26=_0x3fddd3['getClosestSelectedImageElement'](_0x180e9b['model']['document']['selection']),_0x5dcd0f=_0x9dcbb['createRangeOn'](_0x166f26);const _0x1b9743=_0x455de7['fromPosition'](_0x5dcd0f['start'],'toPrevious'),_0x2e0afc=_0x455de7['fromPosition'](_0x5dcd0f['end'],'toNext');_0x5765b0['forceDefaultExecution'](()=>_0x276afb(_0xe2051b)),_0x166f26=_0x3fddd3['getClosestSelectedImageElement'](_0x180e9b['model']['document']['selection']),_0x5dcd0f=_0x9dcbb['createRangeOn'](_0x166f26);const _0x4c66cd=_0x9dcbb['createRange'](_0x1b9743,_0x2e0afc);_0x1b9743['detach'](),_0x2e0afc['detach'](),_0x5765b0['markBlockFormat'](_0x166f26,{'commandName':'imageTypeInline','commandParams':[_0xe2051b]},[],'convertInlineImageToBlock'),_0x4c66cd['start']['isBefore'](_0x5dcd0f['start'])&&_0x5765b0['markInsertion'](_0x9dcbb['createRange'](_0x4c66cd['start'],_0x5dcd0f['start']),'convertInlineImageToBlock'),_0x5dcd0f['end']['isBefore'](_0x4c66cd['end'])&&_0x5765b0['markInsertion'](_0x9dcbb['createRange'](_0x5dcd0f['end'],_0x4c66cd['end']),'convertInlineImageToBlock');});}),_0x5765b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5765b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5765b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5765b0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5765b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5765b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3bdc92])=>{const _0x488156=_0x5765b0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c06dc=_0x3bdc92['start'],_0x54f25f=_0x3bdc92['end'];const _0x42ebf6=_0x180e9b['model']['schema']['getNearestSelectionRange'](_0x1c06dc,'backward'),_0x316ed6=_0x180e9b['model']['schema']['getNearestSelectionRange'](_0x54f25f,'forward');_0x42ebf6['isCollapsed']&&(_0x1c06dc=_0x42ebf6['start']),_0x316ed6['isCollapsed']&&(_0x54f25f=_0x316ed6['end']),_0x488156([_0x180e9b['model']['createRange'](_0x1c06dc,_0x54f25f)]);}),_0x5765b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x551381),_0x5765b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x551381)),_0x180e9b['plugins']['has']('ImageCaptionEditing')&&(_0x5765b0['enableCommand']('toggleImageCaption',(_0x53d967,_0x525ef8)=>{const _0xc52b5c=_0x180e9b['plugins']['get']('ImageCaptionUtils');let _0x5e02bc=_0x3fddd3['getClosestSelectedImageElement'](_0x180e9b['model']['document']['selection']),_0x168c42=_0xc52b5c['getCaptionFromImageModelElement'](_0x5e02bc);_0x180e9b['model']['change'](()=>{if(_0x168c42)return void _0x5765b0['markDeletion'](_0x180e9b['model']['createRangeOn'](_0x168c42));const _0x11392b=_0x3fddd3['isBlockImage'](_0x5e02bc);_0x53d967(_0x525ef8),_0x5e02bc=_0x3fddd3['getClosestSelectedImageElement'](_0x180e9b['model']['document']['selection']),_0x168c42=_0xc52b5c['getCaptionFromImageModelElement'](_0x5e02bc),_0x5765b0['markInsertion'](_0x180e9b['model']['createRangeOn'](_0x168c42),_0x11392b?null:'imageCaption');});}),_0x5765b0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x551381));const _0x5c6465=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c98b3(_0x2c8b08,_0x39d5e4){const _0x3098fc=_0x5c6465['findIndex'](({type:_0x4bafbe,subType:_0x4e87aa})=>_0x2c8b08['type']==_0x4bafbe&&_0x2c8b08['subType']==_0x4e87aa),_0x1a3498=_0x5c6465['findIndex'](({type:_0x1c1d26,subType:_0x20398d})=>_0x39d5e4['type']==_0x1c1d26&&_0x39d5e4['subType']==_0x20398d);if(_0x3098fc<0x0||_0x1a3498<0x0)return!0x1;const _0x4c0a74=_0x2c8b08['getFirstRange'](),_0x4d67a3=_0x39d5e4['getFirstRange']();if((0x0==_0x3098fc||0x1==_0x3098fc)&&0x2==_0x1a3498&&_0x4c0a74['isIntersecting'](_0x4d67a3))return!0x0;if(0x2==_0x3098fc&&0x3==_0x1a3498){const _0x7cebd6=_0x5765b0['_findSuggestions'](_0x4c0a74,'insertion')['filter'](({suggestion:_0x32cbeb,meta:_0x195449})=>_0x195449['isOwn']&&'convertInlineImageToBlock'==_0x32cbeb['subType']);if(_0x7cebd6['length']>0x1&&_0x4d67a3['end']['isEqual'](_0x4c0a74['start']))return!0x0;if(0x1==_0x7cebd6['length']&&(_0x4c0a74['start']['isEqual'](_0x4d67a3['end'])||_0x4c0a74['end']['isEqual'](_0x4d67a3['start'])))return!0x0;}if(0x3==_0x3098fc&&0x3==_0x1a3498&&_0x4c0a74['start']['isBefore'](_0x4d67a3['start'])){const _0x1f14aa=_0x4c0a74['end']['nodeAfter'],_0x32f1d4=_0x4d67a3['start']['nodeBefore'];return _0x3fddd3['isBlockImage'](_0x1f14aa)&&_0x1f14aa===_0x32f1d4;}return!0x1;}function _0x551381(_0xfffff1,_0x181718){return _0x4c98b3(_0xfffff1,_0x181718)?[_0xfffff1,_0x181718]:_0x4c98b3(_0x181718,_0xfffff1)?[_0x181718,_0xfffff1]:null;}_0x180e9b['plugins']['has']('ImageResize')&&(_0x5765b0['enableDefaultAttributesIntegration']('resizeImage'),_0x5765b0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2098e9,'FORMAT_IMAGE_SIZE'))),_0x180e9b['plugins']['has']('ImageTextAlternativeEditing')&&_0x5765b0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x180e9b['plugins']['has']('PictureEditing')&&_0x5765b0['descriptionFactory']['registerDescriptionCallback'](_0x5110ce=>{if('attribute'!=_0x5110ce['type'])return;const {data:_0x124e1d}=_0x5110ce;return _0x124e1d&&'sources'==_0x124e1d['key']?{'type':'format','content':''}:void 0x0;}),_0x180e9b['plugins']['has']('ImageSizeAttributes')&&_0x5765b0['descriptionFactory']['registerDescriptionCallback'](_0x2754b4=>{if('attribute'!=_0x2754b4['type'])return;const {data:_0x2c1af9}=_0x2754b4;return!_0x2c1af9||'width'!=_0x2c1af9['key']&&'height'!=_0x2c1af9['key']?void 0x0:{'type':'format','content':''};}),_0x5765b0['descriptionFactory']['registerDescriptionCallback'](_0x18e8fd=>{if(!!_0x5c6465['find'](({type:_0x11dc8e,subType:_0x57a46f})=>_0x18e8fd['type']==_0x11dc8e&&_0x18e8fd['subType']==_0x57a46f))return _0x18e8fd['previous']?{}:void 0x0;}),_0x5765b0['descriptionFactory']['registerDescriptionCallback'](_0x304605=>{if('insertion'==_0x304605['type']||'deletion'==_0x304605['type']){const _0x195725=_0x304605['getContainedElement']();if(_0x195725&&_0x195725['is']('element','caption'))return{'type':'insertion'==_0x304605['type']?'addObject':'removeObject','element':_0x195725,'quantity':0x1};}}),_0x5765b0['descriptionFactory']['registerDescriptionCallback'](_0x269356=>'formatBlock'==_0x269356['type']&&'convertInlineImageToBlock'==_0x269356['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x269356['type']&&'convertBlockImageToInline'==_0x269356['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5765b0['descriptionFactory']['registerDescriptionCallback'](_0x4b0819=>{if('attribute'!=_0x4b0819['type'])return;const {data:_0x426885}=_0x4b0819;if(!_0x426885||'alt'!=_0x426885['key'])return;const _0x326316=_0x426885['newValue'];return _0x326316?{'type':'format','content':o(_0x2098e9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x326316+'\x22')}:{'type':'format','content':o(_0x2098e9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe7814d=this['editor'],_0x4588c3=_0xe7814d['locale'];_0xe7814d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30d93d=>{if('formatBlock'!=_0x30d93d['type']&&'formatInline'!=_0x30d93d['type'])return;const {data:_0x56edf9}=_0x30d93d;if(_0x56edf9){if('imageTextAlternative'==_0x56edf9['commandName']){const _0x40338a=_0x56edf9['commandParams'][0x0]['newValue'];return _0x40338a?{'type':'format','content':o(_0x4588c3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40338a+'\x22')}:{'type':'format','content':o(_0x4588c3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x56edf9['commandName']){const _0x17378f=_0x56edf9['commandParams'][0x0]['width'];return _0x17378f?{'type':'format','content':o(_0x4588c3,'*Set\x20image\x20width:*\x20%0',_0x17378f)}:{'type':'format','content':o(_0x4588c3,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2b7268{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x42cd33=this['editor']['locale'],_0x5a43ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a43ce['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5a43ce['descriptionFactory']['registerDescriptionCallback'](_0x4674fd=>{if('attribute'!=_0x4674fd['type'])return;const {data:_0x2b21a7}=_0x4674fd;return _0x2b21a7&&'src'==_0x2b21a7['key']?_0x2b21a7['newValue']&&_0x2b21a7['oldValue']?{'type':'format','content':o(_0x42cd33,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e10ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e10ed['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e10ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e10ed['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e10ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbe5a33=this['editor'],_0x4c632e=_0xbe5a33['locale'];_0xbe5a33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x237c58=>{if('formatBlock'!=_0x237c58['type']&&'formatInline'!=_0x237c58['type'])return;const {data:_0x544c9a}=_0x237c58;if(!_0x544c9a||'replaceImageSource'!=_0x544c9a['commandName'])return;return{'type':'format','content':o(_0x4c632e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2b7268{['afterInit'](){const _0x462a54=this['editor'];if(!_0x462a54['plugins']['has']('ImageStyleEditing'))return;const _0x44fbba=_0x462a54['plugins']['get']('TrackChangesEditing'),_0x1efaa7=_0x462a54['plugins']['get']('ImageUtils'),_0xa8ea2a={};_0x44fbba['enableCommand']('imageStyle',(_0x27fe25,_0x4f9df2)=>{const _0x28d31e=_0x462a54['plugins']['get']('Users')['me'],_0x20cc6c=_0x462a54['commands']['get']('imageStyle');let _0x53ce65=_0x1efaa7['getClosestSelectedImageElement'](_0x462a54['model']['document']['selection']),_0x3d468a=_0x462a54['model']['createRangeOn'](_0x53ce65),_0x44e0a8=_0x20cc6c['value'];if(_0x44e0a8==_0x4f9df2['value'])return;const _0x2ee229={'commandName':'imageStyle','commandParams':[_0x4f9df2],'formatGroupId':_0x5e874e()};_0x462a54['model']['change'](()=>{if(_0x44fbba['getSuggestions']()['filter'](_0x2e74c3=>_0x2e74c3['isInContent']&&_0x28d31e==_0x2e74c3['author']&&('formatBlock'==_0x2e74c3['type']||'formatInline'==_0x2e74c3['type'])&&('imageStylePreApply'==_0x2e74c3['subType']||'imageStylePostApply'==_0x2e74c3['subType'])&&_0x2e74c3['getFirstRange']()['isEqual'](_0x3d468a))['forEach'](_0xf0e488=>_0x44fbba['discardSuggestion'](_0xf0e488['head'])),_0x53ce65=_0x1efaa7['getClosestSelectedImageElement'](_0x462a54['model']['document']['selection']),_0x3d468a=_0x462a54['model']['createRangeOn'](_0x53ce65),_0x20cc6c['refresh'](),_0x462a54['commands']['get']('imageTypeInline')['refresh'](),_0x462a54['commands']['get']('imageTypeBlock')['refresh'](),_0x44e0a8=_0x20cc6c['value'],_0x44e0a8!=_0x4f9df2['value'])return _0x1efaa7['isInlineImage'](_0x53ce65)&&_0x20cc6c['shouldConvertImageType'](_0x4f9df2['value'],_0x53ce65)?(_0x27fe25({..._0x4f9df2,'setImageSizes':!0x1}),_0x53ce65=_0x1efaa7['getClosestSelectedImageElement'](_0x462a54['model']['document']['selection']),void _0x44fbba['markBlockFormat'](_0x53ce65,{..._0x2ee229,'commandReversedParams':[{'value':_0x44e0a8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1efaa7['isBlockImage'](_0x53ce65)?_0x44fbba['markBlockFormat'](_0x53ce65,_0x2ee229,[],'imageStylePostApply'):_0x44fbba['markInlineFormat'](_0x3d468a,_0x2ee229,'imageStylePostApply'));});});for(const _0x4feabe of _0x462a54['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xa8ea2a[_0x4feabe['name']]=_0x4feabe['title']['toLowerCase']();_0x44fbba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x44fbba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x44fbba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x44fbba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2b8bbc])=>{_0x1efaa7['setImageNaturalSizeAttributes'](_0x2b8bbc['getContainedElement']());}),_0x44fbba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2844ce,_0x5a4ff2)=>{_0x44fbba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2844ce,{'commandName':_0x5a4ff2['commandName'],'commandParams':_0x5a4ff2['commandReversedParams']});}),_0x44fbba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x61e563,_0x22d22f){if(_0x39df13(_0x61e563,_0x22d22f))return[_0x61e563,_0x22d22f];if(_0x39df13(_0x22d22f,_0x61e563))return[_0x22d22f,_0x61e563];return null;});const _0x5f5542=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x39df13(_0x10df12,_0x5b8265){const _0x410ee8=_0x5f5542['findIndex'](({type:_0x6e4d74,subType:_0x3701f1})=>_0x10df12['type']==_0x6e4d74&&_0x10df12['subType']==_0x3701f1),_0x4074a9=_0x5f5542['findIndex'](({type:_0x1c775b,subType:_0x12e357})=>_0x5b8265['type']==_0x1c775b&&_0x5b8265['subType']==_0x12e357);if(_0x410ee8<0x0||_0x4074a9<0x0)return!0x1;const _0x234540=_0x10df12['getFirstRange'](),_0xe9bc49=_0x5b8265['getFirstRange']();if((0x0==_0x410ee8||0x1==_0x410ee8)&&0x2==_0x4074a9&&_0x234540['isIntersecting'](_0xe9bc49))return!0x0;if(0x2==_0x410ee8&&0x3==_0x4074a9){const _0x432a85=_0x44fbba['_findSuggestions'](_0x234540,'insertion')['filter'](({suggestion:_0x1fc807,meta:_0x588fd0})=>_0x588fd0['isOwn']&&'convertInlineImageToBlock'==_0x1fc807['subType']);if(_0x432a85['length']>0x1&&_0xe9bc49['end']['isEqual'](_0x234540['start']))return!0x0;if(0x1==_0x432a85['length']&&(_0x234540['start']['isEqual'](_0xe9bc49['end'])||_0x234540['end']['isEqual'](_0xe9bc49['start'])))return!0x0;}if(0x3==_0x410ee8&&0x3==_0x4074a9&&_0x234540['start']['isBefore'](_0xe9bc49['start'])){const _0xbbb042=_0x234540['end']['nodeAfter'],_0x1c6328=_0xe9bc49['start']['nodeBefore'];return _0x1efaa7['isBlockImage'](_0xbbb042)&&_0xbbb042===_0x1c6328;}return!0x1;}_0x462a54['model']['document']['registerPostFixer'](()=>{let _0x3b4bc8=!0x1;const _0x1b6651=Array['from'](_0x462a54['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x87d156,data:_0x3a397d}of _0x1b6651){const {group:_0x4ac307,type:_0x17da8d,subType:_0x467e62,id:_0x127208}=_0x44fbba['_splitMarkerName'](_0x87d156);if('suggestion'==_0x4ac307&&_0x44fbba['hasSuggestion'](_0x127208)){if('formatBlock'==_0x17da8d&&('imageStylePreApply'==_0x467e62||'imageStylePostApply'==_0x467e62)){const _0x2d2c6a=_0x44fbba['getSuggestion'](_0x127208);if(_0x3a397d['newRange']){const _0x35fc90=_0x2d2c6a['getFirstRange']()['getContainedElement']();if(_0x1efaa7['isBlockImage'](_0x35fc90))continue;_0x44fbba['discardSuggestion'](_0x2d2c6a),_0x3b4bc8=!0x0;}}if('insertion'==_0x17da8d&&'imageCaption'==_0x467e62&&!_0x3a397d['newRange']){const _0x508a40=_0x44fbba['getSuggestion'](_0x127208);_0x508a40['next']&&_0x508a40['next']['isInContent']&&(_0x44fbba['discardSuggestion'](_0x508a40['next']),_0x3b4bc8=!0x0);}}}return _0x3b4bc8;}),this['_registerLegacyDescription'](_0xa8ea2a);}['_registerLegacyDescription'](_0x354303){const _0x7eab7=this['editor'],_0x313936=_0x7eab7['locale'];_0x7eab7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b489=>{if('formatBlock'!=_0x42b489['type']&&'formatInline'!=_0x42b489['type'])return;const {data:_0x72395d}=_0x42b489;if(!_0x72395d||'imageStyle'!=_0x72395d['commandName'])return;const _0x4297db=_0x72395d['commandParams'][0x0]['value'];return _0x4461d2('side'===_0x4297db?o(_0x313936,'FORMAT_SIDE_IMAGE'):_0x354303[_0x4297db]||_0x4297db);function _0x4461d2(_0x425109){return{'type':'format','content':o(_0x313936,'*Format:*\x20%0',_0x425109)};}});}}class ut extends _0x2b7268{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c154f){super(_0x5c154f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x539358=this['editor'],_0x12d218=_0x539358['commands']['get']('importWord'),_0x1a7801=_0x539358['commands']['get']('trackChanges');_0x12d218&&(_0x12d218['on']('execute',(_0xdd4cb8,[,_0x1e4d56])=>{this['_trackChangesValueDuringImport']=_0x1a7801['value'],_0x1e4d56['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x12d218,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x12d218,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1a7801['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x539358['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x367628,_0x19fdbf){const {suggestions:_0x24d24f}=_0x19fdbf,_0x48044b=this['editor']['commands']['get']('trackChanges'),_0x31eb4a=_0x48044b['value'];this['_trackChangesValueDuringImport']!==_0x31eb4a&&(_0x48044b['execute'](),this['_trackChangesExecuted']=!0x0),_0x24d24f&&_0x24d24f['forEach'](({id:_0x16c7a9,type:_0x9822b,author:_0x51fcbd,created_at:_0x4c69a0})=>{const _0x4555a1={'id':_0x16c7a9,'type':_0x9822b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x51fcbd,'createdAt':_0x4c69a0?new Date(_0x4c69a0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4555a1);});}}class ft extends _0x2b7268{['afterInit'](){const _0x4de616=this['editor'],_0x37553c=_0x4de616['plugins']['get']('TrackChangesEditing');if(_0x4de616['plugins']['has']('IndentEditing')&&(_0x37553c['enableCommand']('indent'),_0x37553c['enableCommand']('outdent')),_0x4de616['plugins']['has']('IndentBlock')){for(const _0x3a1173 of['indentBlock','outdentBlock'])_0x37553c['enableDefaultAttributesIntegration'](_0x3a1173);}const _0x41aa32=_0x4de616['locale'];_0x37553c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41aa32,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa8fb17=this['editor'],_0x4649ca=_0xa8fb17['locale'],_0x5adaa6=_0xa8fb17['plugins']['get']('TrackChangesEditing');_0x5adaa6['descriptionFactory']['registerDescriptionCallback'](_0x40430e=>{if('formatBlock'!=_0x40430e['type'])return;const {data:_0x519433}=_0x40430e;if(!_0x519433)return;if('indentBlock'!=_0x519433['commandName']&&'outdentBlock'!=_0x519433['commandName'])return;const _0x6b689a=_0x40430e['getItems']()[0x0],_0x13a7c5=_0x5adaa6['descriptionFactory']['getItemLabel'](_0x6b689a);return'indentBlock'==_0x519433['commandName']?{'type':'format','content':o(_0x4649ca,'*Indent:*\x20%0',_0x13a7c5)}:'outdentBlock'==_0x519433['commandName']?{'type':'format','content':o(_0x4649ca,'*Outdent:*\x20%0',_0x13a7c5)}:void 0x0;});}}class ht extends _0x2b7268{static get['requires'](){return[_0x5dea73];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2b7268{['afterInit'](){const _0x57b5c5=this['editor'];if(!_0x57b5c5['plugins']['has']('LinkEditing'))return;const _0x40b8dc=_0x57b5c5['plugins']['get']('TrackChangesEditing'),_0x33d597=_0x57b5c5['commands']['get']('link');_0x40b8dc['enableDefaultAttributesIntegration']('link'),_0x40b8dc['enableDefaultAttributesIntegration']('unlink');for(const _0x3d00f3 of _0x33d597['manualDecorators'])_0x40b8dc['descriptionFactory']['registerAttributeLabel'](_0x3d00f3['id'],'link\x20('+_0x3d00f3['label']['toLowerCase']()+')');_0x40b8dc['descriptionFactory']['registerDescriptionCallback'](_0xb0cb8b=>{if('attribute'!=_0xb0cb8b['type'])return;const {data:_0x42c191}=_0xb0cb8b;if(!_0x42c191||'linkHref'!=_0x42c191['key'])return;const _0x57a1c2=_0x42c191['newValue'],_0x99dcc5=_0x57b5c5['locale'];return{'type':'format','content':null==_0x57a1c2?o(_0x99dcc5,'*Remove\x20link*'):o(_0x99dcc5,'*Set\x20link:*\x20%0','\x22'+_0x57a1c2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x557d52=this['editor'],_0x432a57=_0x557d52['locale'];_0x557d52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51187a=>{if('formatInline'!=_0x51187a['type'])return;const {data:_0x357bb0}=_0x51187a;if(_0x357bb0){if('link'==_0x357bb0['commandName']){const _0x447cf8=_0x357bb0['commandParams'][0x0];return{'type':'format','content':o(_0x432a57,'*Set\x20link:*\x20%0','\x22'+_0x447cf8+'\x22')};}return'unlink'==_0x357bb0['commandName']?{'type':'format','content':o(_0x432a57,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2b7268{['afterInit'](){const _0x170be7=this['editor'],_0x43fbb5=_0x170be7['locale'];if(!_0x170be7['plugins']['has']('LegacyListEditing'))return;const _0x28da50=_0x170be7['plugins']['get']('TrackChangesEditing'),_0x2ef743=_0x170be7['plugins']['has']('LegacyTodoListEditing');function _0xcdddc(_0x257cd2){return()=>{const _0x38276c=_0x170be7['model']['document']['selection'],_0x156b2c=_0x170be7['commands']['get'](_0x257cd2);if(_0x156b2c['value'])return void _0x170be7['execute']('paragraph',{});const _0x24182a=_0x257cd2['slice'](0x0,-0x4),_0x1f0643=function(_0x11065f,_0x457fd2,_0x53b842){let _0x4f2202=Array['from'](_0x11065f)['filter'](_0x4b7d3d=>function(_0x366c25,_0x3f4033){return _0x3f4033['checkChild'](_0x366c25['parent'],'listItem')&&!_0x3f4033['isObject'](_0x366c25);}(_0x4b7d3d,_0x53b842));_0x4f2202=_0x4f2202['filter'](_0x426527=>!_0x426527['is']('element','listItem')||_0x426527['getAttribute']('listType')!=_0x457fd2);const _0x53d7e7=new Set();for(const _0x1ae64d of _0x4f2202)_0x1ae64d['is']('element','listItem')?_0x53d7e7['add'](Le(_0x1ae64d)):_0x53d7e7['add'](_0x1ae64d);return Array['from'](_0x53d7e7);}(_0x38276c['getSelectedBlocks'](),_0x24182a,_0x170be7['model']['schema']);_0x170be7['model']['change'](()=>{for(const _0x111d45 of _0x1f0643)_0x28da50['markBlockFormat'](_0x111d45,{'commandName':_0x257cd2,'commandParams':[{'forceValue':!_0x156b2c['value']}],'formatGroupId':'blockName'},Ee(_0x111d45));});};}function _0x1f883f(_0x6199ad){return()=>{const _0xf3c653=function(_0x218af6){let _0x39f1c6=Array['from'](_0x218af6);const _0x51f352=_0x39f1c6['findIndex'](_0x1a60f2=>'listItem'!=_0x1a60f2['name']);return _0x51f352>-0x1&&(_0x39f1c6=_0x39f1c6['slice'](0x0,_0x51f352)),_0x39f1c6;}(_0x170be7['model']['document']['selection']['getSelectedBlocks']()),_0x274623=_0x170be7['model']['createRange'](_0x170be7['model']['createPositionAt'](_0xf3c653[0x0],'before'),_0x170be7['model']['createPositionAt'](_0xf3c653[_0xf3c653['length']-0x1],'end'));_0x170be7['model']['change'](()=>{_0x28da50['markBlockFormat'](_0x274623,{'commandName':_0x6199ad,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b6a5e){const _0x45d32f=new Set();for(const _0x3cb7c8 of _0x5b6a5e){let _0x5d7e62=_0x3cb7c8['nextSibling'];for(;_0x5d7e62&&_0x5d7e62['getAttribute']('listIndent')>_0x3cb7c8['getAttribute']('listIndent');)_0x45d32f['add'](_0x5d7e62),_0x5d7e62=_0x5d7e62['nextSibling'];}return Array['from'](_0x45d32f);}(_0xf3c653));});};}_0x28da50['enableCommand']('numberedList',_0xcdddc('numberedList')),_0x28da50['enableCommand']('bulletedList',_0xcdddc('bulletedList')),_0x2ef743&&_0x28da50['enableCommand']('todoList',_0xcdddc('todoList')),_0x28da50['enableCommand']('indentList',_0x1f883f('indentList')),_0x28da50['enableCommand']('outdentList',_0x1f883f('outdentList')),_0x2ef743&&_0x28da50['enableCommand']('checkTodoList',()=>{const _0x1d6538=_0x170be7['commands']['get']('checkTodoList'),_0x277c6b=Array['from'](_0x1d6538['_selectedElements']);_0x277c6b['filter'](_0x490433=>_0x490433['getAttribute']('todoListChecked')!=_0x1d6538['value']),_0x170be7['model']['change'](()=>{for(const _0x34c778 of _0x277c6b)_0x28da50['markBlockFormat'](_0x34c778,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1d6538['value']}]});});}),_0x28da50['descriptionFactory']['registerElementLabel']('listItem',_0x38e4e6=>o(_0x43fbb5,'ELEMENT_LIST_ITEM',_0x38e4e6)),_0x28da50['descriptionFactory']['registerDescriptionCallback'](_0x313c48=>{if('formatBlock'!=_0x313c48['type']&&'formatInline'!=_0x313c48['type'])return;const {data:_0x5821f4}=_0x313c48;if(_0x5821f4){if('numberedList'==_0x5821f4['commandName']||'bulletedList'==_0x5821f4['commandName']||'todoList'==_0x5821f4['commandName'])switch(_0x5821f4['commandName']['replace']('List','')){case'bulleted':return _0x251b26(o(_0x43fbb5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x251b26(o(_0x43fbb5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x251b26(o(_0x43fbb5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5821f4['commandName'])return{'type':'format','content':o(_0x43fbb5,'*Indent:*\x20%0',o(_0x43fbb5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5821f4['commandName'])return{'type':'format','content':o(_0x43fbb5,'*Outdent:*\x20%0',o(_0x43fbb5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5821f4['commandName'])return _0x5821f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43fbb5,'*Check\x20item*')}:{'type':'format','content':o(_0x43fbb5,'*Uncheck\x20item*')};}function _0x251b26(_0x37f220){return{'type':'format','content':o(_0x43fbb5,'*Change\x20to:*\x20%0',_0x37f220)};}});}}function Le(_0xe52c26){const _0x2fb8c1=_0xe52c26['getAttribute']('listIndent');if(0x0==_0x2fb8c1)return _0xe52c26;let _0x413505=_0xe52c26;for(;_0xe52c26['previousSibling']&&_0xe52c26['previousSibling']['is']('element','listItem');){const _0x20b1dd=_0xe52c26['previousSibling']['getAttribute']('listIndent');if(_0x20b1dd==_0x2fb8c1)_0x413505=_0xe52c26['previousSibling'];else{if(_0x20b1dd<_0x2fb8c1)break;}_0xe52c26=_0xe52c26['previousSibling'];}return _0x413505;}function Ee(_0x47f2e9){const _0x19ec09=[];if(_0x47f2e9['is']('element','listItem')&&_0x47f2e9['getAttribute']('listIndent')>0x0){let _0x2adfb1=_0x47f2e9['nextSibling'];for(;_0x2adfb1&&'listItem'==_0x2adfb1['name']&&_0x2adfb1['getAttribute']('listIndent')==_0x47f2e9['getAttribute']('listIndent');)_0x19ec09['push'](_0x2adfb1),_0x2adfb1=_0x2adfb1['nextSibling'];}return _0x19ec09;}class mt extends _0x2b7268{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1da5cf=this['editor']['config']['get']('list.properties'),_0x2baea0=this['editor']['plugins']['get']('TrackChangesEditing');_0x1da5cf['styles']&&_0x2baea0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1da5cf['reversed']&&_0x2baea0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1da5cf['startIndex']&&_0x2baea0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2baea0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c4e87,_0x3ff60e={}){const _0x55f63d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c008c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x55f63d['markMultiRangeBlockFormat'](_0x3c008c,{'commandName':'listStyle','commandParams':[{'type':_0x3ff60e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1accb2,_0x1eeae6={}){const _0x11cf50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42cdbc=this['_getSuggestionBlocks'](_0x5caae4=>_0x5caae4['is']('element','listItem')&&'numbered'===_0x5caae4['getAttribute']('listType'));if(_0x42cdbc['length']<0x1)return;const _0x21c44a=_0x42cdbc['map'](_0x2155e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2155e1,'before'),this['editor']['model']['createPositionAt'](_0x2155e1,0x0)));this['editor']['model']['change'](()=>{_0x11cf50['markMultiRangeBlockFormat'](_0x21c44a,{'commandName':'listReversed','commandParams':[{'reversed':_0x1eeae6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x19b39a,_0x48c393={}){const _0x121eae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46254d=this['_getSuggestionBlocks'](_0x29296e=>_0x29296e['is']('element','listItem')&&'numbered'===_0x29296e['getAttribute']('listType'));if(_0x46254d['length']<0x1)return;const _0x111804=_0x46254d['map'](_0x19e9fa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19e9fa,'before'),this['editor']['model']['createPositionAt'](_0x19e9fa,0x0)));this['editor']['model']['change'](()=>{_0x121eae['markMultiRangeBlockFormat'](_0x111804,{'commandName':'listStart','commandParams':[{'startIndex':_0x48c393['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3837a0){if('formatBlock'!=_0x3837a0['type']&&'formatInline'!=_0x3837a0['type'])return;const _0x1c81ee=this['editor']['locale'],{data:_0x4eeafe}=_0x3837a0;if(!_0x4eeafe)return;let _0x3757dc,_0x25df5f;switch(_0x4eeafe['commandName']){case'listStyle':_0x3757dc='*Change\x20to:*\x20%0',_0x25df5f={'type':'format','content':o(_0x1c81ee,_0x3757dc,o(_0x1c81ee,this['_getTranslationKeyForListStyle'](_0x4eeafe['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3757dc=_0x4eeafe['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25df5f={'type':'format','content':o(_0x1c81ee,_0x3757dc)};break;case'listStart':_0x3757dc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25df5f={'type':'format','content':o(_0x1c81ee,_0x3757dc,_0x4eeafe['commandParams'][0x0]['startIndex'])};}return _0x25df5f;}['_getSuggestionBlocksForListStyle'](){const _0x1453bd=this['editor']['plugins']['get']('LegacyListUtils');let _0xb65fb4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xb65fb4[0x0]?.['is']('element','listItem')&&_0xb65fb4['unshift'](..._0x1453bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xb65fb4[_0xb65fb4['length']-0x1]?.['is']('element','listItem')&&_0xb65fb4['push'](..._0x1453bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xb65fb4=[...new Set(_0xb65fb4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xb65fb4=_0xb65fb4['filter'](_0x10f15c=>_0x10f15c['is']('element','listItem'))),_0xb65fb4;}['_getSuggestionBlocks'](_0x93a3b){const _0x245845=this['editor']['plugins']['get']('LegacyListUtils');let _0x515e39=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x93a3b)['map'](_0x3ee7de=>{const _0x166fde=this['editor']['model']['createPositionAt'](_0x3ee7de,0x0);return[..._0x245845['getSiblingNodes'](_0x166fde,'backward'),..._0x245845['getSiblingNodes'](_0x166fde,'forward')];})['flat']();return _0x515e39=[...new Set(_0x515e39)],_0x515e39;}['_getTranslationKeyForListStyle'](_0x35a107){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35a107)||'default')['toUpperCase']()+'_LIST_'+_0x35a107['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2b7268{['afterInit'](){const _0x65bacf=this['editor'];if(!_0x65bacf['plugins']['has']('MediaEmbedEditing'))return;const _0x5aa8e1=_0x65bacf['plugins']['get']('TrackChangesEditing'),_0x37ed6d=_0x65bacf['locale'];_0x5aa8e1['enableCommand']('mediaEmbed'),_0x5aa8e1['descriptionFactory']['registerElementLabel']('media',_0x2e9523=>o(_0x37ed6d,'ELEMENT_MEDIA',_0x2e9523));}}class pt extends _0x2b7268{['afterInit'](){const _0x171854=this['editor'];_0x171854['plugins']['has']('MentionEditing')&&_0x171854['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2b7268{['afterInit'](){const _0x4973f1=this['editor'];if(!_0x4973f1['plugins']['has']('MergeFieldsEditing'))return;const _0x1ffa3d=_0x4973f1['plugins']['get']('TrackChangesEditing'),_0x5a8abe=_0x4973f1['locale'];_0x1ffa3d['enableCommand']('insertMergeField'),_0x1ffa3d['enableCommand']('insertMergeFieldBlock'),_0x1ffa3d['enableCommand']('insertMergeFieldImage'),_0x1ffa3d['descriptionFactory']['registerElementLabel']('mergeField',_0x268054=>o(_0x5a8abe,'ELEMENT_MERGE_FIELD',_0x268054)),_0x1ffa3d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x356ce2=>o(_0x5a8abe,'ELEMENT_MERGE_FIELD',_0x356ce2)),_0x1ffa3d['descriptionFactory']['registerDescriptionCallback'](_0x4e2b32=>{if('insertion'!=_0x4e2b32['type']&&'deletion'!=_0x4e2b32['type'])return;const _0x1f8a6b=_0x4e2b32['getContainedElement']();if(null==_0x1f8a6b)return;const _0x1ab8af=_0x4973f1['plugins']['get']('MergeFieldsEditing');let _0x193f05;switch(_0x1ab8af['getMergeFieldType'](_0x1f8a6b)){case null:return;case'image':{const _0x4e97cb=_0x1ab8af['unwrapAffixes'](_0x1f8a6b['getAttribute']('src'));_0x193f05=_0x1ab8af['getLabel'](_0x4e97cb)||_0x4e97cb;break;}default:{const _0x310e2e=_0x1f8a6b['getAttribute']('id');_0x193f05=_0x1ab8af['getLabel'](_0x310e2e)||_0x310e2e;break;}}return'insertion'==_0x4e2b32['type']?{'type':'insertion','content':o(_0x5a8abe,'*Insert:*\x20%0','\x22'+_0x193f05+'\x22\x20'+o(_0x5a8abe,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5a8abe,'*Remove:*\x20%0','\x22'+_0x193f05+'\x22\x20'+o(_0x5a8abe,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2b7268{['afterInit'](){const _0x189bbd=this['editor'],_0x4866d6=_0x189bbd['plugins']['get']('TrackChangesEditing');_0x189bbd['plugins']['has']('MultiLevelList')&&(_0x4866d6['enableDefaultAttributesIntegration']('multiLevelList'),_0x4866d6['descriptionFactory']['registerDescriptionCallback'](_0x212239=>this['handleDescriptions'](_0x212239)));}['handleDescriptions'](_0x32de04){const _0x4c6b09=this['editor']['locale'],{data:_0x44052b}=_0x32de04,_0x4c367b={'type':'format','content':''};if(_0x44052b&&'listMarkerStyle'==_0x44052b['key']){if(!_0x44052b['oldValue'])return{'type':'format','content':o(_0x4c6b09,'*Set\x20format:*\x20%0',o(_0x4c6b09,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44052b['newValue']+')'};if(!_0x44052b['newValue']){let _0xb12e3a=_0x32de04['head'];for(;_0xb12e3a;){if(_0xb12e3a['data']&&'listType'==_0xb12e3a['data']['key']&&_0xb12e3a['data']['newValue'])return _0x4c367b;_0xb12e3a=_0xb12e3a['next'];}return{'type':'format','content':o(_0x4c6b09,'*Remove\x20format:*\x20%0',o(_0x4c6b09,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44052b['oldValue']+')'};}}}}class bt extends _0x2b7268{['afterInit'](){const _0x5c1677=this['editor'];if(!_0x5c1677['plugins']['has']('PageBreakEditing'))return;_0x5c1677['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x145929=_0x5c1677['plugins']['get']('TrackChangesEditing'),_0x49e874=_0x5c1677['locale'];_0x145929['descriptionFactory']['registerElementLabel']('pageBreak',_0x45db9e=>o(_0x49e874,'ELEMENT_PAGE_BREAK',_0x45db9e));}}class yt extends _0x2b7268{['afterInit'](){const _0x381b35=this['editor'];if(!_0x381b35['plugins']['has']('Paragraph'))return;const _0x1622f4=_0x381b35['locale'],_0x325b85=_0x381b35['plugins']['get']('TrackChangesEditing');_0x325b85['descriptionFactory']['registerElementLabel']('paragraph',_0x3b66a1=>o(_0x1622f4,'ELEMENT_PARAGRAPH',_0x3b66a1)),_0x325b85['enableDefaultAttributesIntegration']('paragraph'),_0x325b85['enableCommand']('insertParagraph');const _0x1a413e=_0x325b85['descriptionFactory'];_0x1a413e['registerDescriptionCallback'](_0x37eb64=>{if('insertion'!==_0x37eb64['type'])return;const {start:_0x5e0b58,end:_0x39b89a}=_0x37eb64['getFirstRange']();if(!_0x5e0b58['isTouching'](_0x39b89a)||!_0x5e0b58['nodeAfter'])return;const _0xa8aa19=_0x381b35['model']['schema'],_0x4e04e4=_0x5e0b58['nodeAfter'];return _0xa8aa19['isBlock'](_0x4e04e4)&&!_0xa8aa19['isLimit'](_0x4e04e4)&&_0xa8aa19['checkChild'](_0x4e04e4,'$text')?{'type':'insertion','content':o(_0x1622f4,'*Insert:*\x20%0',_0x1a413e['getItemLabel'](_0x4e04e4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x99f3b4=this['editor'],_0x2de86c=_0x99f3b4['locale'];_0x99f3b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18aa3d=>{if('formatBlock'!=_0x18aa3d['type'])return;const {data:_0x51af5b}=_0x18aa3d;return _0x51af5b&&'paragraph'==_0x51af5b['commandName']?{'type':'format','content':o(_0x2de86c,'*Change\x20to:*\x20%0',o(_0x2de86c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2b7268{['afterInit'](){const _0x26a810=this['editor'];_0x26a810['commands']['get']('replaceSource')&&_0x26a810['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2b7268{['afterInit'](){const _0xcc9063=this['editor'];if(!_0xcc9063['plugins']['has']('RemoveFormatEditing'))return;_0xcc9063['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc727=this['editor'];_0x1fc727['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6fd77c=>{if('formatBlock'!=_0x6fd77c['type']&&'formatInline'!=_0x6fd77c['type'])return;const {data:_0x2e6b44}=_0x6fd77c;return _0x2e6b44&&'removeFormat'==_0x2e6b44['commandName']?{'type':'format','content':o(_0x1fc727['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2b7268{['afterInit'](){const _0x3c176f=this['editor'];if(!_0x3c176f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x23cd41=_0x3c176f['plugins']['get']('TrackChangesEditing');_0x23cd41['enableCommand']('goToPreviousRestrictedEditingException'),_0x23cd41['enableCommand']('goToNextRestrictedEditingException');const _0x447461=_0x3c176f['plugins']['get']('RestrictedEditingModeEditing');_0x447461['enableCommand']('trackChanges'),_0x447461['enableCommand']('acceptSuggestion'),_0x447461['enableCommand']('discardSuggestion'),_0x447461['enableCommand']('acceptAllSuggestions'),_0x447461['enableCommand']('discardAllSuggestions'),_0x447461['enableCommand']('acceptSelectedSuggestions'),_0x447461['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2b7268{['afterInit'](){const _0x399621=this['editor'];if(!_0x399621['plugins']['has']('ShiftEnter'))return;const _0x51b777=_0x399621['plugins']['get']('TrackChangesEditing');_0x51b777['enableCommand']('shiftEnter'),_0x51b777['descriptionFactory']['registerElementLabel']('softBreak',_0x42ccf3=>o(_0x399621['locale'],'ELEMENT_LINE_BREAK',_0x42ccf3));}}function an(_0x4cdd2d,_0x44039b,_0x3a1e70){const _0x3873e0=[];for(const _0x2825d7 of _0x44039b['getItems']())_0x2825d7['hasAttribute'](_0x4cdd2d)&&_0x3873e0['push'](_0x3a1e70['createRangeOn'](_0x2825d7));return _0x3873e0;}class _t extends _0x2b7268{['afterInit'](){const _0x52832c=this['editor'],_0x1945d9=_0x52832c['plugins']['get']('TrackChangesEditing');_0x52832c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1945d9['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x3eb6f6=this['editor'],_0x2c7f67=_0x3eb6f6['model'],_0x2c7c6a=_0x3eb6f6['locale'],_0x2a1dc7=_0x3eb6f6['plugins']['get']('TrackChangesEditing'),_0x1831b6='restrictedEditingException',_0xd89683=_0x3eb6f6['commands']['get'](_0x1831b6);_0x2a1dc7['enableCommand'](_0x1831b6,(_0x56ec32,_0x259cf9={})=>{const _0x1dd49a=_0x2c7f67['document']['selection'];if(_0x1dd49a['isCollapsed'])return void _0x56ec32(_0x259cf9);const _0x44f3d8=void 0x0!==_0x259cf9['forceValue']?_0x259cf9['forceValue']:!_0xd89683['value'];_0x2c7f67['change'](()=>{const _0x111497=Array['from'](_0x1dd49a['getRanges']());for(const _0x58e169 of _0x111497){const _0x1c6f0e=_0x44f3d8?[_0x58e169]:an(_0x1831b6,_0x58e169,_0x2c7f67);for(const _0x231a2c of _0x1c6f0e)_0x2a1dc7['markInlineFormat'](_0x231a2c,{'commandName':_0x1831b6,'commandParams':[{'forceValue':_0x44f3d8}]});}});}),_0x2a1dc7['descriptionFactory']['registerDescriptionCallback'](_0x4f77cf=>{if('formatBlock'!=_0x4f77cf['type']&&'formatInline'!=_0x4f77cf['type'])return;const {data:_0x3aee75}=_0x4f77cf;return _0x3aee75&&_0x3aee75['commandName']==_0x1831b6?_0x3aee75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c7c6a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c7c6a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xc79065=this['editor'],_0x523534=_0xc79065['locale'],_0x27e31a=_0xc79065['plugins']['get']('TrackChangesEditing'),_0x2a3553='restrictedEditingExceptionBlock',_0x1037f4=this['editor']['commands']['get'](_0x2a3553);_0x27e31a['enableCommand'](_0x2a3553,(_0x501f29,_0x467c39={})=>{const _0x10be47=this['editor']['model']['document']['selection'],_0x4ccc8=_0x467c39&&void 0x0!==_0x467c39['forceValue']?_0x467c39['forceValue']:!_0x1037f4['value'];let _0x20dfe1=[];if(_0x4ccc8){const _0x5949e6=Array['from'](_0x10be47['getSelectedBlocks']())['filter'](_0x544b8e=>function(_0x1336b8){return!!_0x1336b8['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x544b8e)||function(_0x31fcd4,_0xc46893){const _0x36f045=_0xc46893['createContext'](_0x31fcd4['parent']);if(!_0xc46893['checkChild'](_0x36f045,'restrictedEditingException'))return!0x1;if(!_0xc46893['checkChild'](_0x36f045['push']('restrictedEditingException'),_0x31fcd4))return!0x1;return!0x0;}(_0x544b8e,this['editor']['model']['schema']));_0x20dfe1=to(_0x5949e6,_0xc79065['model']);}else{const _0x4ce106=Array['from'](_0x10be47['getSelectedBlocks']())['map'](_0x2e9001=>function(_0x50af39){let _0x126f70=_0x50af39;for(;_0x126f70['parent'];){if('restrictedEditingException'==_0x126f70['parent']['name'])return _0x126f70;_0x126f70=_0x126f70['parent'];}return null;}(_0x2e9001))['filter'](_0x4b6939=>!!_0x4b6939);_0x20dfe1=to(_0x4ce106,_0xc79065['model']);}_0xc79065['model']['change'](()=>{for(const _0x42084e of _0x20dfe1)_0x27e31a['markBlockFormat'](_0x42084e,{'commandName':_0x2a3553,'commandParams':[{'forceValue':_0x4ccc8}]});});}),_0x27e31a['descriptionFactory']['registerDescriptionCallback'](_0x36449d=>{const {data:_0x4a3a49}=_0x36449d;if(_0x4a3a49&&_0x4a3a49['commandName']==_0x2a3553)return _0x4a3a49['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x523534,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x523534,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2b7268{['afterInit'](){const _0x10c489=this['editor'];if(!_0x10c489['plugins']['has']('Style')||!_0x10c489['plugins']['has']('DataSchema'))return;const _0xba3973=_0x10c489['plugins']['get']('TrackChangesEditing'),_0x22177a=_0x10c489['locale'],_0x100249=_0x10c489['config']['get']('style')||{},_0x472f21=_0x10c489['plugins']['get']('GeneralHtmlSupport'),_0x40ec0e=_0x10c489['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10c489['plugins']['get']('DataSchema'),_0x100249['definitions']);_0xba3973['enableDefaultAttributesIntegration']('style');const _0x49dd35=new Set();for(const _0x4107dc of _0x40ec0e['block']){const _0x4f76c1=_0x472f21['getGhsAttributeNameForElement'](_0x4107dc['element']);_0x49dd35['add'](_0x4f76c1);}const _0x2ab6cf=new Set();for(const _0x19b52c of _0x40ec0e['inline']){const _0x2c37a9=_0x472f21['getGhsAttributeNameForElement'](_0x19b52c['element']);_0x2ab6cf['add'](_0x2c37a9);for(const _0x34cdd7 of _0x19b52c['ghsAttributes'])_0x2ab6cf['add'](_0x34cdd7);}for(const _0x276b26 of _0x49dd35)_0xba3973['descriptionFactory']['registerAttributeLabel'](_0x276b26,o(_0x22177a,'FORMAT_STYLE'));for(const _0x1d6a0d of _0x2ab6cf)_0xba3973['descriptionFactory']['registerAttributeLabel'](_0x1d6a0d,o(_0x22177a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x368d57=this['editor'],_0x19a327=_0x368d57['locale'];_0x368d57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250e42=>{if('formatBlock'!=_0x250e42['type']&&'formatInline'!=_0x250e42['type'])return;const {data:_0x359874}=_0x250e42;return _0x359874&&'style'===_0x359874['commandName']?_0x359874['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19a327,'*Set\x20format:*\x20%0',_0x359874['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x19a327,'*Remove\x20format:*\x20%0',_0x359874['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2b7268{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x24121e){super(_0x24121e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x464e00=this['editor'],_0x2148e6=_0x464e00['model']['document']['selection'];if(!_0x464e00['plugins']['has']('TableEditing'))return;const _0x383153=_0x464e00['locale'],_0x3d6a06=_0x464e00['plugins']['get']('TrackChangesEditing'),_0x5656ff=_0x464e00['plugins']['get']('TableUtils');_0x3d6a06['descriptionFactory']['registerElementLabel']('table',_0x1f2bd3=>o(_0x383153,'ELEMENT_TABLE',_0x1f2bd3)),this['_setupColumnsRowsFixing'](),_0x3d6a06['enableCommand']('insertTable'),_0x3d6a06['enableCommand']('selectTableRow'),_0x3d6a06['enableCommand']('selectTableColumn');for(const _0x42275b of['insertTableRowAbove','insertTableRowBelow']){const _0x15c1b5=_0x464e00['commands']['get'](_0x42275b);_0x3d6a06['enableCommand'](_0x42275b,_0x532dd6=>{_0x464e00['model']['change'](_0x40b7a1=>{_0x532dd6();const _0x2cf212='above'===_0x15c1b5['order'],_0x2b7050=_0x5656ff['getSelectionAffectedTableCells'](_0x2148e6),_0x233350=_0x5656ff['getRowIndexes'](_0x2b7050),_0x293b27=_0x2cf212?_0x233350['first']-0x1:_0x233350['last']+0x1,_0xbcb0dd=_0x2b7050[0x0]['findAncestor']('table'),_0x483b45=_0x5656ff['createTableWalker'](_0xbcb0dd,{'startRow':_0x293b27,'endRow':_0x293b27}),_0x16a715=Array['from'](_0x483b45)['map'](_0x51a3fd=>_0x40b7a1['createRangeOn'](_0x51a3fd['cell']));_0x3d6a06['markMultiRangeInsertion'](_0x16a715,'tableRow');});});}for(const _0x3dd153 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5db5d2=_0x464e00['commands']['get'](_0x3dd153);_0x3d6a06['enableCommand'](_0x3dd153,_0x3499fa=>{_0x464e00['model']['change'](_0x4e762e=>{_0x3499fa();const _0x585ffd='left'===_0x5db5d2['order'],_0x4121cf=_0x5656ff['getSelectionAffectedTableCells'](_0x2148e6),_0x14b195=_0x5656ff['getColumnIndexes'](_0x4121cf),_0x387ac5=_0x585ffd?_0x14b195['first']-0x1:_0x14b195['last']+0x1,_0x261c41=_0x4121cf[0x0]['findAncestor']('table'),_0x356b65=_0x5656ff['createTableWalker'](_0x261c41,{'startRow':0x0,'column':_0x387ac5,'includeAllSlots':!0x1}),_0x4ab56a=Array['from'](_0x356b65)['map'](_0x2ee5e2=>_0x4e762e['createRangeOn'](_0x2ee5e2['cell']));_0x3d6a06['markMultiRangeInsertion'](_0x4ab56a,'tableColumn');});});}for(const _0x570ec0 of['removeTableRow','removeTableColumn']){const _0x5000e7=_0x570ec0['substr'](0xb),_0x391a91=_0x5000e7['toLowerCase'](),_0x2b97d7=_0x391a91['substr'](0x0,0x3)+'span',_0x4d2fa8='table'+_0x5000e7,_0x2e81bc='min'+_0x5000e7,_0x4ff185='max'+_0x5000e7;_0x3d6a06['enableCommand'](_0x570ec0,()=>{_0x464e00['model']['change'](_0xde5317=>{const _0x5359ba=_0x5656ff['getSelectionAffectedTableCells'](_0x2148e6),_0x3d370a=_0x5359ba[0x0]['findAncestor']('table');let _0x150cc7;if('removeTableRow'==_0x570ec0){const _0x4d2040=_0x5656ff['getRowIndexes'](_0x5359ba);_0x150cc7={'startRow':_0x4d2040['first'],'endRow':_0x4d2040['last'],'includeAllSlots':!0x0};}else{const _0x5ef1ed=_0x5656ff['getColumnIndexes'](_0x5359ba);_0x150cc7={'startColumn':_0x5ef1ed['first'],'endColumn':_0x5ef1ed['last'],'includeAllSlots':!0x0};}const _0x146b6b=_0x5656ff['createTableWalker'](_0x3d370a,_0x150cc7),_0x3f292a=Array['from'](_0x146b6b)['map'](({cell:_0x4fa973})=>_0x4fa973),_0x23e2a3=_e(_0x3f292a['filter'](_0x1a4dc3=>_0x1a4dc3['hasAttribute'](_0x2b97d7))),_0x2a65d4=_e(_0x3f292a['filter'](_0x3ffd3f=>!_0x3ffd3f['hasAttribute'](_0x2b97d7)))['map'](_0x4a17c9=>_0xde5317['createRangeOn'](_0x4a17c9)),_0x1238fc=_0x3d6a06['markMultiRangeDeletion'](_0x2a65d4,_0x4d2fa8);if(_0x1238fc&&('tableRow'==_0x1238fc['subType']||'tableColumn'==_0x1238fc['subType'])){const _0xd7b45b=this['_getSuggestionCoords'](_0x1238fc);for(const _0x4a054e of _0x23e2a3){const _0x1564fa=_0xde5317['createRangeOn'](_0x4a054e),_0x5e8737=_0x5656ff['getCellLocation'](_0x4a054e),_0x1a8e07=_0x4a054e['getAttribute'](_0x2b97d7)-0x1,_0x1767df=_0xd7b45b[_0x2e81bc],_0x28a95b=_0xd7b45b[_0x4ff185];_0x1767df<=_0x5e8737[_0x391a91]&&_0x5e8737[_0x391a91]+_0x1a8e07<=_0x28a95b&&_0x1238fc['addRange'](_0x1564fa);}}});});}function _0x2277d1(_0x5157e2){const _0x172ea3=Array['from'](_0x2148e6['getRanges']())['map'](_0x2e76c9=>_0x5af68e['fromRange'](_0x2e76c9));_0x464e00['model']['change'](_0x4d11fc=>{const _0x45685e=_0x4d11fc['batch'];_0x5157e2=_0x5157e2['filter'](_0x4a92fa=>'$graveyard'!=_0x4a92fa['root']['rootName']),_0x4d11fc['setSelection'](_0x5157e2),_0x464e00['commands']['get']('removeTableRow')['refresh'](),_0x464e00['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x464e00['model']['enqueueChange'](()=>{_0x464e00['model']['enqueueChange'](_0x45685e,_0x2cc77c=>{const _0x7650a4=_0x172ea3['filter'](_0x28496a=>'$graveyard'!=_0x28496a['root']['rootName']);_0x7650a4['length']>0x0&&_0x2cc77c['setSelection'](_0x7650a4);for(const _0x4ae3e9 of _0x172ea3)_0x4ae3e9['detach']();});});});}function _0x5bdb5f(_0x46ddcb){_0x464e00['model']['change'](_0x4d57bf=>{const _0x5047e3=Array['from'](_0x2148e6['getRanges']())['map'](_0x2c1b20=>_0x5af68e['fromRange'](_0x2c1b20)),_0x5312ba=[];for(const _0x52e737 of _0x46ddcb)for(const _0x114254 of _0x52e737['getItems']({'shallow':!0x0}))_0x5312ba['push'](_0x114254);for(const _0x57cc85 of _0x5312ba)'$graveyard'!=_0x57cc85['root']['rootName']&&(_0x4d57bf['setSelection'](_0x4d57bf['createPositionAt'](_0x57cc85,0x0)),_0x464e00['commands']['get']('removeTableColumn')['refresh'](),_0x464e00['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27d1cd=_0x5047e3['filter'](_0x5870c8=>'$graveyard'!=_0x5870c8['root']['rootName']);_0x27d1cd['length']>0x0&&_0x4d57bf['setSelection'](_0x27d1cd);for(const _0x174572 of _0x5047e3)_0x174572['detach']();});}function _0x4a3c34(_0x460f8f,_0x5b3475){return _0x5b3475['every'](_0x2ae7ec=>_0x460f8f['some'](_0x131051=>_0x131051['end']['isEqual'](_0x2ae7ec['start'])||_0x2ae7ec['end']['isEqual'](_0x131051['start'])));}function _0x470b55(_0x594f2e,_0x31f704){return!_0x594f2e['some'](_0x17ef5e=>_0x31f704['some'](_0x807d10=>_0x17ef5e['isIntersecting'](_0x807d10)))&&_0x594f2e['some'](_0x49d3c0=>_0x31f704['some'](_0x43e0e7=>_0x49d3c0['end']['isTouching'](_0x43e0e7['start'])));}_0x3d6a06['descriptionFactory']['registerDescriptionCallback'](_0x1427fb=>{if('insertion'!=_0x1427fb['type']&&'deletion'!=_0x1427fb['type'])return;const _0x287f0b=_0x1427fb['getContainedElement']();if(null!=_0x287f0b&&_0x287f0b['is']('element','table')){if('insertion'==_0x1427fb['type']){const _0x222f22=_0x1427fb['getItems']()['filter'](_0x121f2c=>_0x121f2c['is']('$textProxy'))['map'](_0xa9585b=>_0xa9585b['data']);if(_0x222f22['length'])return{'type':'insertion','content':o(_0x383153,'*Insert:*\x20%0',o(_0x383153,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x222f22['join']('\x20')+'\x22'))};}if('deletion'==_0x1427fb['type']){const _0x20888c=_0x1427fb['getItems']()['filter'](_0x1a5cd5=>_0x1a5cd5['is']('$textProxy'))['map'](_0x3c17e4=>_0x3c17e4['data']);if(_0x20888c['length'])return{'type':'deletion','content':o(_0x383153,'*Remove:*\x20%0',o(_0x383153,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20888c['join']('\x20')+'\x22'))};}}}),_0x3d6a06['descriptionFactory']['registerDescriptionCallback'](_0x514e3a=>{if('tableRow'==_0x514e3a['subType']){const _0x773282=_0x514e3a['getItems']()['filter'](_0x322626=>_0x322626['is']('$textProxy'))['map'](_0x1a4fa2=>_0x1a4fa2['data']),_0x3c8445=this['_getSuggestionCoords'](_0x514e3a),_0x3065a1=_0x3c8445['maxRow']-_0x3c8445['minRow']+0x1;if('insertion'==_0x514e3a['type'])return _0x773282['length']?{'type':'insertion','content':o(_0x383153,'*Insert:*\x20%0',o(_0x383153,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3065a1,'\x22'+_0x773282['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x383153,'*Insert:*\x20%0',o(_0x383153,'ELEMENT_TABLE_ROW',_0x3065a1))};if('deletion'==_0x514e3a['type'])return _0x773282['length']?{'type':'deletion','content':o(_0x383153,'*Remove:*\x20%0',o(_0x383153,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3065a1,'\x22'+_0x773282['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x383153,'*Remove:*\x20%0',o(_0x383153,'ELEMENT_TABLE_ROW',_0x3065a1))};}if('tableColumn'==_0x514e3a['subType']){const _0x1177a8=_0x514e3a['getItems']()['filter'](_0x412483=>_0x412483['is']('$textProxy'))['map'](_0x422ebf=>_0x422ebf['data']),_0x28ae0a=this['_getSuggestionCoords'](_0x514e3a),_0x25d5fd=_0x28ae0a['maxColumn']-_0x28ae0a['minColumn']+0x1;if('insertion'==_0x514e3a['type'])return _0x1177a8['length']?{'type':'insertion','content':o(_0x383153,'*Insert:*\x20%0',o(_0x383153,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25d5fd,'\x22'+_0x1177a8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x383153,'*Insert:*\x20%0',o(_0x383153,'ELEMENT_TABLE_COLUMN',_0x25d5fd))};if('deletion'==_0x514e3a['type'])return _0x1177a8['length']?{'type':'deletion','content':o(_0x383153,'*Remove:*\x20%0',o(_0x383153,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x25d5fd,'\x22'+_0x1177a8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x383153,'*Remove:*\x20%0',o(_0x383153,'ELEMENT_TABLE_COLUMN',_0x25d5fd))};}}),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2277d1),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2277d1),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5bdb5f),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5bdb5f),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a3c34),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a3c34),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x470b55),_0x3d6a06['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x470b55);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1f7edf=this['editor'],_0x3bae08=_0x1f7edf['model']['document']['selection'];return(_0x4b2f82,_0x2ecd88)=>{_0x1f7edf['model']['change'](_0x14df2f=>{const {commandName:_0xb81f38,commandParams:_0x3fc8f5}=_0x2ecd88;let _0x115d3f=_0x4b2f82[0x0]['end']['nodeBefore'];_0x3fc8f5&&_0x3fc8f5[0x0]&&!0x1===_0x3fc8f5[0x0]['forceValue']&&(_0x115d3f=_0x4b2f82[0x0]['start']['nodeAfter']);const _0x80ac63=_0x14df2f['createRangeIn'](_0x115d3f);if('$graveyard'==_0x80ac63['root']['rootName'])return;const _0x1d84d7=Array['from'](_0x3bae08['getRanges']())['map'](_0x1bd35e=>_0x5af68e['fromRange'](_0x1bd35e));_0x14df2f['setSelection'](_0x80ac63),_0x1f7edf['commands']['get'](_0xb81f38)['refresh'](),_0x3fc8f5['push']({'forceDefaultExecution':!0x0}),_0x1f7edf['execute'](_0xb81f38,..._0x3fc8f5);const _0x40cb9d=_0x1d84d7['filter'](_0x336d92=>'$graveyard'!=_0x336d92['root']['rootName']);_0x40cb9d['length']>0x0&&_0x14df2f['setSelection'](_0x40cb9d);for(const _0x26e075 of _0x1d84d7)_0x26e075['detach']();});};}['_getCoordsForCells'](_0x5d6dab){const _0x5554e8=this['editor']['plugins']['get']('TableUtils');let _0x3f9e9f=Number['MAX_SAFE_INTEGER'],_0x14ae85=Number['MIN_SAFE_INTEGER'],_0x10d995=Number['MAX_SAFE_INTEGER'],_0x13a0a1=Number['MIN_SAFE_INTEGER'];for(const _0x3f7963 of _0x5d6dab){if('$graveyard'==_0x3f7963['root']['rootName'])continue;const {row:_0x1ba5f9,column:_0x1ea4b3}=_0x5554e8['getCellLocation'](_0x3f7963),_0x1c021c=_0x3f7963['hasAttribute']('rowspan')?_0x3f7963['getAttribute']('rowspan')-0x1:0x0,_0x488b83=_0x3f7963['hasAttribute']('colspan')?_0x3f7963['getAttribute']('colspan')-0x1:0x0;_0x3f9e9f=_0x1ba5f9<_0x3f9e9f?_0x1ba5f9:_0x3f9e9f,_0x14ae85=_0x1ba5f9+_0x1c021c>_0x14ae85?_0x1ba5f9+_0x1c021c:_0x14ae85,_0x10d995=_0x1ea4b3<_0x10d995?_0x1ea4b3:_0x10d995,_0x13a0a1=_0x1ea4b3+_0x488b83>_0x13a0a1?_0x1ea4b3+_0x488b83:_0x13a0a1;}return{'minRow':_0x3f9e9f,'maxRow':_0x14ae85,'minColumn':_0x10d995,'maxColumn':_0x13a0a1};}['_setupColumnsRowsFixing'](){const _0xa204a9=this['editor'],_0x16915b=_0xa204a9['plugins']['get']('TrackChangesEditing'),_0x352ed3=_0xa204a9['plugins']['get']('TableUtils');_0xa204a9['model']['document']['on']('change:data',()=>{const _0x3b8e32=Array['from'](_0xa204a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2778ca,data:_0x3264b5}of _0x3b8e32){const {group:_0x46e207,id:_0x6966e0,subType:_0x64fb7c}=_0x16915b['_splitMarkerName'](_0x2778ca);if('suggestion'!=_0x46e207)continue;if(null!=_0x3264b5['oldRange'])continue;const _0x3da34a=_0x16915b['getSuggestion'](_0x6966e0);this['_tablePostFixingSubtypes']['includes'](_0x64fb7c)&&this['_tableSuggestions']['add'](_0x3da34a);}},{'priority':'low'});const _0x140463=(_0xbaf0bb,_0x53cdf5)=>{let _0x4ca965=!0x1;const _0x406bd8=_0x53cdf5['createRangeOn'](_0xbaf0bb),_0x69ca2=_0xbaf0bb['findAncestor']('table'),_0x1c030a=_0x352ed3['getCellLocation'](_0xbaf0bb);for(const _0x38163d of this['_tableSuggestions']){const _0x310c3f=_0x38163d['subType'],_0x48a88f=_0x310c3f['startsWith']('tablePaste'),_0x279aae=_0x310c3f['substr'](_0x48a88f?0xa:0x5),_0x397bc4=_0x279aae['toLowerCase'](),_0x13c8c7=_0x397bc4['substr'](0x0,0x3)+'span',_0x2c543a='min'+_0x279aae,_0x120cdf='max'+_0x279aae;if(!_0x38163d['isInContent'])continue;if(_0x69ca2!=_0x38163d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38163d['isIntersectingWithRange'](_0x406bd8))continue;const _0x5b278a=_0xbaf0bb['hasAttribute'](_0x13c8c7)?_0xbaf0bb['getAttribute'](_0x13c8c7)-0x1:0x0,_0x1d8f4a=this['_getSuggestionCoords'](_0x38163d),_0x466187=_0x1d8f4a[_0x2c543a],_0xeab19f=_0x1d8f4a[_0x120cdf];_0x466187<=_0x1c030a[_0x397bc4]&&_0x1c030a[_0x397bc4]+_0x5b278a<=_0xeab19f&&(_0x38163d['addRange'](_0x406bd8),_0x4ca965=!0x0);}return _0x4ca965;};_0xa204a9['model']['document']['registerPostFixer'](_0x30286d=>{let _0xcfbfa9=!0x1;for(const _0x3ad4b2 of _0xa204a9['model']['document']['differ']['getChanges']())if('insert'==_0x3ad4b2['type']){if('tableRow'==_0x3ad4b2['name']){for(const _0x31cc0a of _0x3ad4b2['position']['nodeAfter']['getChildren']())_0xcfbfa9=_0xcfbfa9||_0x140463(_0x31cc0a,_0x30286d);}else'tableCell'==_0x3ad4b2['name']&&(_0xcfbfa9=_0xcfbfa9||_0x140463(_0x3ad4b2['position']['nodeAfter'],_0x30286d));}return _0xcfbfa9;});}['_getSuggestionCoords'](_0x1d0bc3){return this['_getCoordsForCells'](_0x1d0bc3['getRanges']()['map'](_0x5f241f=>_0x5f241f['start']['nodeAfter']));}}function _e(_0x258145){return Array['from'](new Set(_0x258145)['values']());}class $t extends _0x2b7268{static get['requires'](){return[Nt];}['afterInit'](){const _0x5c6513=this['editor'],_0x4c1b75=_0x5c6513['model']['document']['selection'],_0x5e4ff6=_0x5c6513['locale'];if(!_0x5c6513['plugins']['has']('TableEditing'))return;const _0x56127b=_0x5c6513['plugins']['get']('TrackChangesEditing'),_0x3d990b=_0x5c6513['plugins']['get']('TableUtils'),_0x5af345=_0x5c6513['plugins']['get'](Nt);_0x5af345['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56127b['enableCommand']('mergeTableCells',()=>{const _0x1709c4=_0x3d990b['getSelectionAffectedTableCells'](_0x5c6513['model']['document']['selection']);_0x5c6513['model']['change'](()=>{_0x56127b['markMultiRangeBlockFormat'](_0x1709c4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c6513['commands']['get']('mergeTableCells')['on']('execute',(_0x5d10cd,_0x5d0997)=>{_0x5c6513['commands']['get']('trackChanges')['value']&&(_0x5d0997['length']>0x0&&_0x5d0997[_0x5d0997['length']-0x1]&&_0x5d0997[_0x5d0997['length']-0x1]['forceDefaultExecution']||_0x56127b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5d10cd['stop']());},{'priority':'highest'});for(const _0x856081 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x399f16=_0x5c6513['commands']['get'](_0x856081);_0x56127b['enableCommand'](_0x856081,()=>{const _0x5740be=_0x5c6513['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xa0063d=>_0xa0063d['is']('element','tableCell')),_0x8d4631=_0x399f16['value'];_0x5c6513['model']['change'](()=>{_0x56127b['markMultiRangeBlockFormat']([_0x5740be,_0x8d4631],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47f0d5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b3713=_0x5c6513['commands']['get'](_0x47f0d5);_0x56127b['enableCommand'](_0x47f0d5,()=>{const _0x541113=_0x3d990b['getSelectionAffectedTableCells'](_0x5c6513['model']['document']['selection'])[0x0],_0x419654=_0x541113['findAncestor']('table'),{column:_0x3404ac,row:_0x985d7f}=_0x3d990b['getCellLocation'](_0x541113);let _0x3c478b=[];if('horizontally'==_0x2b3713['direction']){const _0x5585d3=_0x3d990b['createTableWalker'](_0x419654,{'startRow':_0x985d7f,'endRow':_0x985d7f,'includeAllSlots':!0x0});_0x3c478b=Array['from'](_0x5585d3)['map'](_0x5cf694=>_0x5cf694['cell']);}else{const _0x19c632=_0x3d990b['createTableWalker'](_0x419654,{'column':_0x3404ac,'includeAllSlots':!0x0});_0x3c478b=Array['from'](_0x19c632)['map'](_0x87aa36=>_0x87aa36['cell']);}_0x5c6513['model']['change'](_0x24b475=>{_0x56127b['markBlockFormat'](_0x24b475['createRangeOn'](_0x541113),{'commandName':_0x47f0d5,'commandParams':[]},_0x3c478b,_0x47f0d5);});});}_0x56127b['descriptionFactory']['registerDescriptionCallback'](_0x3fa5cc=>{if('formatBlock'!=_0x3fa5cc['type']&&'formatInline'!=_0x3fa5cc['type'])return;const {data:_0x4956de}=_0x3fa5cc;return _0x4956de&&'mergeTableCells'==_0x4956de['commandName']?{'type':'format','content':o(_0x5e4ff6,'*Merge\x20cells*')}:void 0x0;}),_0x56127b['descriptionFactory']['registerDescriptionCallback'](_0x2fe697=>{if('formatBlock'!=_0x2fe697['type']&&'formatInline'!=_0x2fe697['type'])return;const {data:_0x537a3a}=_0x2fe697;return _0x537a3a?'splitTableCellVertically'==_0x537a3a['commandName']?{'type':'format','content':o(_0x5e4ff6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x537a3a['commandName']?{'type':'format','content':o(_0x5e4ff6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e7db0=_0x5af345['_acceptFormatSuggestionCallbackFactory']();for(const _0x53b48c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56127b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53b48c,'accept',_0x3e7db0);for(const _0xda8881 of['splitTableCellVertically','splitTableCellHorizontally'])_0x56127b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xda8881,'accept',_0x3e7db0);_0x56127b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3ed539=>{_0x5c6513['model']['change'](_0xdf3fcc=>{const _0x3515ae=Array['from'](_0x4c1b75['getRanges']())['map'](_0x51523d=>_0x5af68e['fromRange'](_0x51523d));_0xdf3fcc['setSelection'](_0x3ed539),_0x5c6513['commands']['get']('mergeTableCells')['refresh'](),_0x5c6513['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x124aaf=_0x3515ae['filter'](_0x180e16=>'$graveyard'!=_0x180e16['root']['rootName']);_0x124aaf['length']>0x0&&_0xdf3fcc['setSelection'](_0x124aaf);for(const _0x5c4e8a of _0x3515ae)_0x5c4e8a['detach']();});});for(const _0x2203da of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5814f0=_0x5c6513['commands']['get'](_0x2203da);_0x5814f0['on']('set:isEnabled',(_0x3d0a12,_0x42d5af,_0x148b8d)=>{if(_0x148b8d){const _0x205b9d=_0x5c6513['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2ed233=>_0x2ed233['is']('element','tableCell'));this['_areMergableCells'](_0x5814f0['value'],_0x205b9d)||(_0x3d0a12['return']=!0x1,_0x3d0a12['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x74cc57=this['editor']['commands']['get']('mergeTableCells'),_0x254b69=this['editor']['plugins']['get']('TableUtils');if(!_0x74cc57['isEnabled'])return!0x1;const _0x2840ca=_0x254b69['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f14d6 of _0x2840ca)for(const _0x36bc31 of _0x2840ca)if(_0x4f14d6!=_0x36bc31&&!this['_areMergableCells'](_0x4f14d6,_0x36bc31))return!0x1;return!0x0;}['_areMergableCells'](_0x175a79,_0x33c60c){const _0x235186=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ab874=this['editor']['model']['createRangeOn'](_0x175a79),_0x1d7ceb=this['editor']['model']['createRangeOn'](_0x33c60c),_0x4e1dec=new Set(),_0x5f2153=new Set();for(const _0x528368 of _0x235186['getSuggestions']())if(('insertion'==_0x528368['type']||'deletion'==_0x528368['type']||'mergeTableCells'==_0x528368['subType'])&&_0x528368['isInContent']){for(const _0x4bd262 of _0x528368['getRanges']())_0x4bd262['containsRange'](_0x3ab874,!0x0)&&_0x4e1dec['add'](_0x528368['type']+':'+_0x528368['author']['id']),_0x4bd262['containsRange'](_0x1d7ceb,!0x0)&&_0x5f2153['add'](_0x528368['type']+':'+_0x528368['author']['id']);}if(_0x4e1dec['size']!=_0x5f2153['size'])return!0x1;for(const _0x1457bb of _0x4e1dec)if(!_0x5f2153['has'](_0x1457bb))return!0x1;return!0x0;}}class vt extends _0x2b7268{static get['requires'](){return[Nt];}['afterInit'](){const _0x3fe761=this['editor'];if(!_0x3fe761['plugins']['has']('TableEditing'))return;const _0x42eb4f=_0x3fe761['locale'],_0xee2d87=_0x3fe761['plugins']['get']('TrackChangesEditing');_0xee2d87['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xee2d87['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xee2d87['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42eb4f,'FORMAT_HEADER_ROW')),_0xee2d87['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42eb4f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x826c61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ff20e=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x826c61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ff20e),_0x826c61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ff20e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1d1536=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43c888=this['editor']['plugins']['get']('TableUtils');function _0x2c052c({showActiveMarker:_0x1d9a45=!0x0,setDataAttribute:_0x268af2=!0x0}={}){return(_0x5a890e,_0x17baf6,_0x27b97b)=>{const {type:_0x2608a2,id:_0x14d15f}=_0x1d1536['_splitMarkerName'](_0x17baf6['markerName']);if(!_0x1d1536['hasSuggestion'](_0x14d15f))return;const _0x1306c8=_0x1d1536['getSuggestion'](_0x14d15f),_0x216ed9=_0x1306c8['data'];if('formatBlock'!=_0x1306c8['type']||!_0x216ed9||'setTableColumnHeader'!=_0x216ed9['commandName'])return;if(_0x17baf6['item'])return void _0x5a890e['stop']();if(!_0x27b97b['consumable']['consume'](_0x17baf6['markerRange'],_0x5a890e['name']))return;const _0x5de295=_0x17baf6['markerRange']['start']['nodeAfter'],_0x50aff6=_0x17baf6['markerRange']['end']['nodeBefore'],_0x119de0=_0x5de295['parent']['parent'],{column:_0x5bd70a}=_0x43c888['getCellLocation'](_0x5de295),{column:_0xe1d801}=_0x43c888['getCellLocation'](_0x50aff6);for(let _0x13e1a1=_0x5bd70a;_0x13e1a1<=_0xe1d801;_0x13e1a1++){const _0x3d7975=_0x43c888['createTableWalker'](_0x119de0,{'column':_0x13e1a1,'includeAllSlots':!0x1});for(const _0x196315 of _0x3d7975){const _0x285682=_0x196315['cell'],_0x1927ad=_0x27b97b['mapper']['toViewElement'](_0x285682);_0x27b97b['writer']['addClass']('ck-suggestion-marker-'+_0x2608a2,_0x1927ad),_0x268af2&&_0x27b97b['writer']['setAttribute']('data-suggestion',_0x14d15f,_0x1927ad),_0x27b97b['mapper']['bindElementToMarker'](_0x1927ad,_0x17baf6['markerName']),_0x1d9a45&&(_0x1d1536['activeMarkers']['includes'](_0x17baf6['markerName'])?_0x27b97b['writer']['addClass']('ck-suggestion-marker--active',_0x1927ad):_0x27b97b['writer']['removeClass']('ck-suggestion-marker--active',_0x1927ad));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c052c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x525de7,_0x19410b,_0x1ba6a5)=>{_0x1ba6a5['options']['showSuggestionHighlights']&&_0x2c052c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x525de7,_0x19410b,_0x1ba6a5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c7e4e,_0x33d014,_0x4d37c3)=>{const {type:_0x268ac7,id:_0x29ad8d}=_0x1d1536['_splitMarkerName'](_0x33d014['markerName']);if(!_0x1d1536['hasSuggestion'](_0x29ad8d))return;const _0x346e19=_0x1d1536['getSuggestion'](_0x29ad8d),_0x42d131=_0x346e19['data'];if('formatBlock'!=_0x346e19['type']||!_0x42d131||'setTableColumnHeader'!=_0x42d131['commandName'])return;const _0x25807e=_0x4d37c3['mapper']['markerNameToElements'](_0x33d014['markerName']);if(_0x25807e){for(const _0x4148b4 of _0x25807e)_0x4d37c3['writer']['removeClass']('ck-suggestion-marker-'+_0x268ac7,_0x4148b4),_0x4d37c3['writer']['removeClass']('ck-suggestion-marker--active',_0x4148b4),_0x4d37c3['writer']['removeAttribute']('data-suggestion',_0x4148b4),_0x4d37c3['mapper']['unbindElementFromMarkerName'](_0x4148b4,_0x33d014['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5cee2e=this['editor'],_0x1f9b3f=_0x5cee2e['locale'];function _0x2a8519(_0x1d3b8e){return{'type':'format','content':o(_0x1f9b3f,'*Format:*\x20%0',_0x1d3b8e)};}_0x5cee2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279bfe=>{if('formatBlock'!=_0x279bfe['type'])return;const {data:_0x120569}=_0x279bfe;if(_0x120569){if('setTableRowHeader'==_0x120569['commandName']){const _0x1f042a=_0x120569['commandParams'][0x0]['forceValue'];return _0x2a8519(o(_0x1f9b3f,_0x1f042a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x120569['commandName']){const _0x34eec7=_0x120569['commandParams'][0x0]['forceValue'];return _0x2a8519(o(_0x1f9b3f,_0x34eec7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2b7268{['afterInit'](){const _0x1de344=this['editor'],_0xb0173b=_0x1de344['locale'],_0x4e68c0=_0x1de344['plugins']['get']('TrackChangesEditing');function _0x298cda(_0x36502b){return{'type':'format','content':''+o(_0xb0173b,'*Set\x20table\x20type:*\x20%0',_0x36502b)};}_0x1de344['plugins']['has']('TableLayout')&&(_0x4e68c0['enableCommand']('insertTableLayout'),_0x4e68c0['enableDefaultAttributesIntegration']('tableType'),_0x4e68c0['descriptionFactory']['registerElementLabel'](_0x107de8=>_0x107de8['is']('element','table')&&'layout'===_0x107de8['getAttribute']('tableType'),_0x5402d5=>o(_0xb0173b,'ELEMENT_LAYOUT_TABLE',_0x5402d5)),_0x4e68c0['descriptionFactory']['registerDescriptionCallback'](_0x488668=>{const {data:_0x187462}=_0x488668;if(_0x187462&&'tableType'==_0x187462['key'])switch(_0x187462['newValue']){case'layout':return _0x298cda(o(_0xb0173b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x298cda(o(_0xb0173b,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x44853d=>[_0x44853d,null]));class Bt extends _0x2b7268{static get['requires'](){return[Nt];}['afterInit'](){const _0x4b40d5=this['editor'];if(!_0x4b40d5['plugins']['has']('TableClipboard'))return;const _0x5ccc40=_0x4b40d5['plugins']['get']('TrackChangesEditing'),_0x256bb7=_0x4b40d5['plugins']['get']('TableUtils'),_0x36f354=_0x4b40d5['plugins']['get'](Nt),_0x7ffea4=_0x4b40d5['plugins']['get']('TableClipboard'),_0x15739c=_0x4b40d5['plugins']['get']('TableSelection'),_0x2a28e1=_0x4b40d5['plugins']['get'](_0x28285e);_0x36f354['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4b40d5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4b40d5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe234fb=null,_0x5ae034=!0x1;_0x2a28e1['on']('contentInsertion',(_0x5874ee,_0x11ea90)=>{_0x5ae034='paste'===_0x11ea90['method'];}),_0x4b40d5['model']['on']('insertContent',(_0x26aa85,_0x4dc159)=>{if(!_0x5ae034&&null===_0x15739c['getSelectedTableCells']())return;const [_0x276a49,_0x2271eb]=_0x4dc159,_0x37adaf=_0x4dc159[_0x4dc159['length']-0x1];_0x37adaf&&_0x37adaf['forceDefaultExecution']||_0x5ccc40['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x487433,_0x33d5a7,_0x2a9a70,_0x33d03d,_0x3d331d){if(_0x33d5a7&&!_0x33d5a7['is']('documentSelection'))return!0x1;const _0x4e421a=_0x3d331d['getTableIfOnlyTableInContent'](_0x487433,_0x2a9a70);if(!_0x4e421a||!Oe(_0x4e421a,void 0x0,_0x33d03d))return!0x1;const _0x1d80d8=_0x33d03d['getSelectionAffectedTableCells'](_0x2a9a70['document']['selection']);if(!_0x1d80d8['length'])return!0x1;const _0x17dcb1=_0x1d80d8[0x0]['findAncestor']('table'),_0x21386a=_0x33d03d['getRowIndexes'](_0x1d80d8),_0x763615=_0x33d03d['getColumnIndexes'](_0x1d80d8),_0x21a399={'startRow':_0x21386a['first'],'endRow':_0x21386a['last'],'startColumn':_0x763615['first'],'endColumn':_0x763615['last']};return 0x1==_0x1d80d8['length']&&(_0x21a399['endRow']+=_0x33d03d['getRows'](_0x4e421a)-0x1,_0x21a399['endColumn']+=_0x33d03d['getColumns'](_0x4e421a)-0x1),Oe(_0x17dcb1,_0x21a399,_0x33d03d);}(_0x276a49,_0x2271eb,_0x4b40d5['model'],_0x256bb7,_0x7ffea4)&&(_0x26aa85['stop'](),_0xe234fb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4b40d5['model']['change'](()=>{_0x4b40d5['model']['insertContent'](_0x4dc159[0x0],_0x4dc159[0x1],_0x4dc159[0x2],{'forceDefaultExecution':!0x0});const _0x38fdbf=_0x5e874e(),{rowInsertionRanges:_0x146530,columnInsertionRanges:_0x4f6938,insertionRanges:_0x49523a,deletionRanges:_0x565c67,cells:_0x1fc407}=_0xe234fb;_0x146530['length']&&_0x5ccc40['markMultiRangeInsertion'](_0x146530,'tablePasteRow',{'tablePasteChainId':_0x38fdbf}),_0x4f6938['length']&&_0x5ccc40['markMultiRangeInsertion'](_0x4f6938,'tablePasteColumn',{'tablePasteChainId':_0x38fdbf}),_0x49523a['length']&&(_0x5ccc40['markMultiRangeInsertion'](_0x49523a,'tablePaste',{'tablePasteChainId':_0x38fdbf,'skipNestingCheck':!0x0}),_0x49523a['forEach'](_0x30968e=>_0x30968e['detach']?.())),_0x565c67['length']&&(_0x5ccc40['markMultiRangeDeletion'](_0x565c67,'tablePaste',{'tablePasteChainId':_0x38fdbf,'skipNestingCheck':!0x0}),_0x565c67['forEach'](_0x42300e=>_0x42300e['detach']?.()));const _0x5b8f54=_0x5ccc40['markMultiRangeBlockFormat'](_0x1fc407['map'](({element:_0x5921fc})=>_0x5921fc),{'formatGroupId':_0x5e874e()},[],'tablePasteCell',{'tablePasteChainId':_0x38fdbf});if(_0x5b8f54){const _0x3fbb75=_0x5b8f54['getMarkers'](),_0x40f5a1=[];for(const {element:_0x366dc0,attributes:_0x138639}of _0x1fc407){if(!_0x138639)continue;const _0x4bc9bf=_0x4b40d5['model']['createRangeOn'](_0x366dc0),_0x317be4=_0x3fbb75['find'](_0x29981f=>_0x29981f['getRange']()['isEqual'](_0x4bc9bf));_0x317be4&&_0x40f5a1['push']([_0x317be4['name'],_0x138639]);}_0x40f5a1['length']&&_0x5b8f54['setAttribute']('markerAttributes',Object['fromEntries'](_0x40f5a1));}_0xe234fb=null;}));},{'priority':_0x1f7fbf['high']+0xa}),_0x2a28e1['on']('contentInsertion',()=>{_0x5ae034=!0x1;},{'priority':'lowest'}),_0x4b40d5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1848e7,_0x938c3)=>{const [_0x139e6f,_0x213785,,_0x58553e]=_0x938c3;if(!_0xe234fb)return;_0x1848e7['stop']();const _0x50303b=_0x139e6f['cell'],_0x2a2b7e=_0x213785,_0x129ae0=Be(_0x50303b),_0x322576=Be(_0x2a2b7e);_0x1848e7['return']=_0x50303b;let _0x5bc839=null,_0x49489c=null;if(_0x322576||_0x129ae0){if(_0x129ae0&&!_0x322576){_0x58553e['remove'](_0x50303b['getChild'](0x0));for(const _0x9c61f8 of Array['from'](_0x2a2b7e['getChildren']()))_0x58553e['insert'](_0x9c61f8,_0x50303b,'end');const _0xedd50c=_0xe234fb['rowInsertionIndexes']['includes'](_0x139e6f['row']),_0x5857b0=_0xe234fb['columnInsertionIndexes']['includes'](_0x139e6f['column']);_0xedd50c||_0x5857b0||(_0x5bc839=_0x5af68e['fromRange'](_0x58553e['createRangeIn'](_0x50303b)));}else _0x322576&&!_0x129ae0&&(_0x49489c=_0x58553e['createRangeIn'](_0x50303b));}else{const _0x5017d3=_0x58553e['createElement']('tableCellSuggestion'),_0x454a0a=_0x58553e['createElement']('tableCellSuggestion');_0x58553e['wrap'](_0x58553e['createRangeIn'](_0x50303b),_0x454a0a),_0x58553e['insert'](_0x5017d3,_0x50303b,0x0);for(const _0x463c14 of Array['from'](_0x2a2b7e['getChildren']()))_0x58553e['insert'](_0x463c14,_0x5017d3,'end');_0x5bc839=_0x5af68e['fromRange'](_0x58553e['createRangeOn'](_0x5017d3)),_0x49489c=_0x5af68e['fromRange'](_0x58553e['createRangeOn'](_0x454a0a));}const _0x2352cc=Array['from'](_0x2a2b7e['getAttributes']())['filter'](([_0x5e4f65])=>Re['includes'](_0x5e4f65));_0xe234fb['cells']['push']({'element':_0x50303b,'attributes':_0x2352cc['length']?Object['fromEntries'](_0x2352cc):null}),_0x5bc839&&_0xe234fb['insertionRanges']['push'](_0x5bc839),_0x49489c&&_0xe234fb['deletionRanges']['push'](_0x49489c);},{'priority':'high'}),_0x256bb7['on']('insertColumns',(_0x232751,_0x266c39)=>{const [_0xa23cc7,_0x514320={}]=_0x266c39;if(!_0xe234fb)return;const _0x47aa8a=_0x514320['at']||0x0,_0x4a7c29=_0x514320['columns']||0x1;_0xe234fb['columnInsertionIndexes']=new Array(_0x4a7c29)['fill'](_0x47aa8a)['map']((_0x4dfbb8,_0x4211d9)=>_0x4dfbb8+_0x4211d9);for(const {cell:_0x2b5d2c}of _0x256bb7['createTableWalker'](_0xa23cc7,{'startColumn':_0x47aa8a,'endColumn':_0x47aa8a+_0x4a7c29-0x1}))_0xe234fb['columnInsertionRanges']['push'](_0x4b40d5['model']['createRangeOn'](_0x2b5d2c));},{'priority':'low'}),_0x256bb7['on']('insertRows',(_0x442473,_0x2144a0)=>{const [_0x28d1b5,_0x1b736d={}]=_0x2144a0;if(!_0xe234fb)return;const _0x59b695=_0x1b736d['at']||0x0,_0x10b9b3=_0x1b736d['rows']||0x1;_0xe234fb['rowInsertionIndexes']=new Array(_0x10b9b3)['fill'](_0x59b695)['map']((_0x4a4d5b,_0x12b988)=>_0x4a4d5b+_0x12b988);for(const {cell:_0x8b7630}of _0x256bb7['createTableWalker'](_0x28d1b5,{'startRow':_0x59b695,'endRow':_0x59b695+_0x10b9b3-0x1}))_0xe234fb['rowInsertionRanges']['push'](_0x4b40d5['model']['createRangeOn'](_0x8b7630));},{'priority':'low'}),_0x5ccc40['descriptionFactory']['registerDescriptionCallback'](_0x8c4b61=>{if(_0x8c4b61['subType']&&_0x8c4b61['subType']['startsWith']('tablePaste'))return _0x8c4b61['previous']?{}:{'type':'insertion','content':o(_0x4b40d5['locale'],'*Replace\x20table\x20cells*')};});const _0x3fdbb5=()=>!0x1;for(const _0x3903ab of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ccc40['_suggestionFactory']['registerCustomCallback']('insertion',_0x3903ab,'join',_0x3fdbb5),_0x5ccc40['_suggestionFactory']['registerCustomCallback']('deletion',_0x3903ab,'join',_0x3fdbb5),_0x5ccc40['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3903ab,'join',_0x3fdbb5);_0x5ccc40['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3fdbb5),_0x5ccc40['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x402a2b,_0x57b2b2,_0x3fe406)=>{const _0x287472=_0x402a2b['map'](_0x246001=>_0x246001['getContainedElement']())['filter'](_0xb76185=>_0xb76185),_0x40f5b7=new Map(_0x287472['map'](_0x451bb5=>[_0x451bb5,null]));if(_0xe234fb){for(const {element:_0x4db102,attributes:_0x92a86c}of _0xe234fb['cells'])_0x92a86c&&_0x40f5b7['set'](_0x4db102,_0x92a86c);}else{if(_0x3fe406&&_0x3fe406['markerAttributes'])for(const [_0x5c4339,_0x43bb41]of Object['entries'](_0x3fe406['markerAttributes'])){const _0x5a907e=_0x4b40d5['model']['markers']['get'](_0x5c4339),_0x1ef6cd=_0x5a907e?_0x5a907e['getRange']()['getContainedElement']():null;_0x1ef6cd&&_0x40f5b7['set'](_0x1ef6cd,_0x43bb41);}}_0x4b40d5['model']['change'](_0x4df9ef=>{for(const [_0x564b14,_0x5791f6]of _0x40f5b7)_0x4df9ef['setAttributes']({...Ae,..._0x5791f6},_0x564b14);});});const _0x390aad=(_0x18898c,_0x195fda)=>{_0x5ccc40['_suggestionFactory']['registerCustomCallback'](_0x18898c,'tablePaste',_0x195fda,(_0x2a1a95,_0x147e93,_0x425145)=>{_0x4b40d5['model']['change'](_0x2b19c7=>{const _0x47152e=[];for(const _0x18dac0 of _0x2a1a95){const _0x534f50=_0x18dac0['start']['nodeAfter'];_0x534f50['is']('element','tableCellSuggestion')&&_0x47152e['push'](_0x534f50);}_0x5ccc40['_suggestionFactory']['getSuggestionCallback'](_0x18898c,null,_0x195fda)(_0x2a1a95,_0x147e93,_0x425145);for(const _0x3cc9d4 of _0x47152e)'$graveyard'!=_0x3cc9d4['root']['rootName']&&_0x2b19c7['unwrap'](_0x3cc9d4);});});};_0x390aad('insertion','accept'),_0x390aad('insertion','discard'),_0x390aad('deletion','accept'),_0x390aad('deletion','discard'),_0x5ccc40['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x530132=>{const _0x333fb9=_0x530132['map'](_0x3ce3af=>_0x3ce3af['getContainedElement']()),_0x118214=_0x333fb9[0x0]['findAncestor']('table'),{minRow:_0x12edee,maxRow:_0x45b86b}=_0x36f354['_getCoordsForCells'](_0x333fb9);_0x256bb7['removeRows'](_0x118214,{'at':_0x12edee,'rows':_0x45b86b-_0x12edee+0x1});}),_0x5ccc40['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x523d45=>{const _0x1b9668=_0x523d45['map'](_0x106a63=>_0x106a63['getContainedElement']()),_0x25eb8a=_0x1b9668[0x0]['findAncestor']('table'),{minColumn:_0x158aaa,maxColumn:_0x19e00f}=_0x36f354['_getCoordsForCells'](_0x1b9668);_0x256bb7['removeColumns'](_0x25eb8a,{'at':_0x158aaa,'columns':_0x19e00f-_0x158aaa+0x1});});const _0xe54a14=(_0x25b2b0,_0x4654ff)=>{if(!_0x4654ff['subType']||!_0x4654ff['subType']['startsWith']('tablePaste'))return;const _0x2ba438=_0x4654ff['attributes']['tablePasteChainId'],_0x213f8a=_0x5ccc40['getSuggestions']()['filter'](_0xd19a13=>_0xd19a13['isInContent']&&_0xd19a13['attributes']&&_0xd19a13['attributes']['tablePasteChainId']==_0x2ba438);_0x213f8a['length']&&_0x4654ff['getAllAdjacentSuggestions']()['length']!=_0x213f8a['length']&&_0x213f8a['reduce']((_0x19a3fc,_0x197c40)=>(_0x19a3fc['next']=_0x197c40,_0x197c40['previous']=_0x19a3fc,_0x197c40));};function _0x1693dd(_0x1bec32,_0x1e9da8=!0x0){const {id:_0x357319,authorId:_0x19ae5d}=_0x5ccc40['_splitMarkerName'](_0x1bec32['markerName']),_0x430639=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa6497a=_0x5ccc40['activeMarkers']['includes'](_0x1bec32['markerName']);return _0xa6497a&&_0x430639['push']('ck-suggestion-marker--active'),{'classes':_0x430639,'attributes':{'data-suggestion':_0x357319,'data-author-id':_0x19ae5d},'priority':_0xa6497a&&_0x1e9da8?0xbc2:0xbb8};}_0x5ccc40['on']('suggestionLoaded',_0xe54a14,{'priority':'high'}),_0x5ccc40['on']('suggestionUnloaded',_0xe54a14,{'priority':'high'}),_0x4b40d5['model']['document']['registerPostFixer'](()=>{let _0x1624f1=!0x1;const _0x2ac332=Array['from'](_0x4b40d5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d21a4,data:_0x1c5e0c}of _0x2ac332){const {group:_0xa13796,type:_0x179a1e,id:_0x15dfc9}=_0x5ccc40['_splitMarkerName'](_0x4d21a4);if('suggestion'!=_0xa13796||'deletion'!=_0x179a1e||_0x1c5e0c['oldRange'])continue;if(!_0x5ccc40['hasSuggestion'](_0x15dfc9))continue;const _0x263041=_0x5ccc40['getSuggestion'](_0x15dfc9)['getRanges'](),_0x3a262e=_0x4b40d5['plugins']['get']('Users')['me'];for(const _0x998590 of _0x5ccc40['getSuggestions']()){if(!_0x998590['isInContent']||_0x998590['author']!=_0x3a262e)continue;if('formatBlock'!=_0x998590['type']||'tablePasteCell'!=_0x998590['subType'])continue;if(_0x998590['getRanges']()['every'](_0x3f0cc5=>_0x263041['some'](_0x436eca=>_0x436eca['containsRange'](_0x3f0cc5,!0x0)))){for(const _0x46001d of _0x998590['getAllAdjacentSuggestions']())_0x46001d['isInContent']&&(_0x46001d['discard'](),_0x1624f1=!0x0);}}}return _0x1624f1;}),_0x4b40d5['model']['document']['registerPostFixer'](_0x14a697=>{const _0x77656b=_0x4b40d5['commands']['get']('redo');if(!_0x77656b||!_0x77656b['_createdBatches']['has'](_0x14a697['batch']))return!0x1;let _0x3aef54=!0x1;const _0x5be98d=_0x4b40d5['plugins']['get']('Users')['me'],_0xea0b7c=_0x4b40d5['model']['document']['differ']['getChanges'](),_0x5bdc10=Array['from'](_0x4b40d5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5902f3,data:_0x599494})=>{const {group:_0x48e7ce,subType:_0xd07cc0,authorId:_0x5760af}=_0x5ccc40['_splitMarkerName'](_0x5902f3);return'suggestion'==_0x48e7ce&&'tablePaste'==_0xd07cc0&&_0x5760af==_0x5be98d['id']&&!_0x599494['oldRange'];});for(const _0x1b4b3b of _0xea0b7c){if('insert'!=_0x1b4b3b['type']||'tableCellSuggestion'!=_0x1b4b3b['name']||0x1!=_0x1b4b3b['length'])continue;const _0x4967fc=_0x14a697['createRange'](_0x1b4b3b['position'],_0x1b4b3b['position']['getShiftedBy'](0x1));if(!_0x5bdc10['find'](({data:_0x18c01e})=>_0x18c01e['newRange']['isEqual'](_0x4967fc))){for(const {name:_0x3ce111,data:_0x35b746}of _0x5bdc10)if(_0x4967fc['containsRange'](_0x35b746['newRange'])){_0x14a697['updateMarker'](_0x3ce111,{'range':_0x4967fc}),_0x3aef54=!0x0;break;}}}return _0x3aef54;}),_0x4b40d5['model']['document']['registerPostFixer'](_0x20a31f=>{let _0x9dc4b2=!0x1;const _0x2157ba=_0x4b40d5['plugins']['get']('Users')['me'],_0x519437=_0x5ccc40['getSuggestions']()['filter'](_0x36668d=>_0x36668d['isInContent']&&_0x36668d['author']==_0x2157ba),_0x59f9df=new Set(),_0x47f016=new Set();for(const _0x31260a of _0x519437)if('tablePaste'==_0x31260a['subType'])for(const _0x21d332 of _0x31260a['getMarkers']()){const _0xdd893c=_0x21d332['getRange']()['getContainedElement']();if(_0xdd893c){if(_0xdd893c['is']('element','tableCellSuggestion')&&Be(_0xdd893c)){_0x31260a['removeMarker'](_0x21d332['name']),_0x59f9df['add'](_0xdd893c),_0x9dc4b2=!0x0;const _0x18853a=_0xdd893c['nextSibling'],_0x2facc4=_0xdd893c['previousSibling'],_0x112e97=_0x18853a&&_0x18853a['is']('element','tableCellSuggestion'),_0x440ec5=_0x2facc4&&_0x2facc4['is']('element','tableCellSuggestion');_0x112e97&&!_0x59f9df['has'](_0x18853a)&&_0x47f016['add'](_0x18853a),_0x440ec5&&!_0x59f9df['has'](_0x2facc4)&&_0x47f016['add'](_0x2facc4);}else _0xdd893c['is']('element','paragraph')&&_0xdd893c['isEmpty']&&(_0x31260a['removeMarker'](_0x21d332['name']),_0x9dc4b2=!0x0);}}else{if('tablePasteCell'==_0x31260a['subType']){if(!_0x31260a['attributes']||!_0x31260a['attributes']['tablePasteChainId'])continue;const _0x1318cb=_0x31260a['attributes']['markerAttributes'];if(_0x1318cb&&Object['keys'](_0x1318cb)['length'])continue;const _0x2b4550=_0x31260a['attributes']['tablePasteChainId'];let _0x3da15a=!0x0,_0x1d267a=!0x0;for(const _0x523a58 of _0x519437)if(_0x523a58['subType']&&_0x523a58['subType']['startsWith']('tablePaste')){if(!_0x523a58['attributes']['tablePasteChainId']){_0x1d267a=!0x1;break;}if(_0x523a58['id']!=_0x31260a['id']&&_0x523a58['attributes']['tablePasteChainId']==_0x2b4550){_0x3da15a=!0x1;break;}}_0x1d267a&&_0x3da15a&&(_0x31260a['removeMarkers'](),_0x9dc4b2=!0x0);}}for(const _0x593594 of _0x59f9df)_0x20a31f['remove'](_0x593594);for(const _0x543450 of _0x47f016)_0x20a31f['unwrap'](_0x543450);return _0x9dc4b2;}),_0x4b40d5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd5fbc5=>_0x1693dd(_0xd5fbc5),'converterPriority':'high'}),_0x4b40d5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1c34ef,_0x159b6c)=>_0x159b6c['options']['showSuggestionHighlights']?_0x1693dd(_0x1c34ef,!0x1):null,'converterPriority':'high'});const _0x1a3575=_0x4b40d5['editing']['view'];this['listenTo'](_0x1a3575['document'],'clipboardOutput',(_0x27a9dc,_0x225bda)=>{const _0x158bd8=[];for(const _0x926d12 of _0x1a3575['createRangeIn'](_0x225bda['content'])['getItems']())_0x926d12['is']('element','suggestion-td')&&_0x158bd8['push'](_0x926d12);_0x1a3575['change'](_0x1288b0=>{for(const _0xceeba1 of _0x158bd8)_0x1288b0['move'](_0x1288b0['createRangeIn'](_0xceeba1),_0x1288b0['createPositionBefore'](_0xceeba1)),_0x1288b0['remove'](_0xceeba1);});});}}function Be(_0x3e06b2){if(_0x3e06b2['isEmpty'])return!0x0;const _0x46d8d8=_0x3e06b2['getChild'](0x0);return _0x46d8d8['is']('element','paragraph')&&_0x46d8d8['isEmpty'];}function Oe(_0x524b62,_0x1d1cd3={},_0x29dfee){for(const {isAnchor:_0x397503,cellHeight:_0x3baaf0,cellWidth:_0x2a5897}of _0x29dfee['createTableWalker'](_0x524b62,{'includeAllSlots':!0x0,..._0x1d1cd3}))if(!_0x397503||0x1!=_0x3baaf0||0x1!=_0x2a5897)return!0x1;return!0x0;}class Ot extends _0x2b7268{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x40ffd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x40ffd6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x40ffd6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x40ffd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40ffd6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x40ffd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x40ffd6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x28684f,_0x514157){const _0x284372=this['editor']['plugins']['get']('TrackChangesEditing'),_0x310ba4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59a491=_0x514157['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x90bb72=_0x310ba4['getColumnGroupElement'](_0x59a491);let _0x1a4e84=_0x90bb72?_0x310ba4['getTableColumnsWidths'](_0x90bb72):null,_0x68672e=_0x59a491['getAttribute']('tableWidth')||null;const _0xe13e1d=_0x514157['tableWidth']||_0x68672e,_0xe680a0=_0x514157['columnWidths']||_0x1a4e84,_0x3bafbd=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b2800 of _0x284372['getSuggestions']()){const _0x32b951=_0x1b2800['getContainedElement']();if('resizeTable'===_0x1b2800['subType']&&_0x32b951===_0x59a491){_0x1b2800['author']!==_0x3bafbd&&_0x1b2800['discard']();const _0x166347=_0x1b2800['data']['commandParams'];_0x68672e=_0x166347[0x0]['tableWidth'],_0x1a4e84=_0x166347[0x0]['columnWidths'];break;}}_0x28684f({'table':_0x59a491,'tableWidth':_0xe13e1d,'columnWidths':_0xe680a0}),_0x284372['markBlockFormat'](_0x59a491,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x68672e,'columnWidths':_0x1a4e84}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10f522){if('formatBlock'!=_0x10f522['type']&&'formatInline'!=_0x10f522['type'])return;const {data:_0x1ac9a8}=_0x10f522;if(_0x1ac9a8&&'resizeTable'===_0x1ac9a8['formatGroupId']){const _0x1e2402='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e2402)};}}}class xt extends _0x2b7268{['afterInit'](){const _0x1c6388=this['editor'];_0x1c6388['plugins']['has']('Template')&&_0x1c6388['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2b7268{['afterInit'](){const _0x18d15f=this['editor'];if(!_0x18d15f['commands']['get']('insertTableOfContents'))return;_0x18d15f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x38bf79=_0x18d15f['plugins']['get']('TrackChangesEditing'),_0x505ab1=_0x18d15f['locale'];_0x38bf79['descriptionFactory']['registerElementLabel']('tableOfContents',_0x7a7f0=>o(_0x505ab1,'ELEMENT_TABLE_OF_CONTENTS',_0x7a7f0));}}class Rt extends _0x2b7268{['afterInit'](){const _0x2c75bb=this['editor'];if(!_0x2c75bb['plugins']['has']('Title'))return;const _0x394b35=_0x2c75bb['plugins']['get']('TrackChangesEditing');_0x394b35['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2c75bb['locale'],'ELEMENT_TITLE')),_0x2c75bb['model']['document']['registerPostFixer'](_0x28f2f6=>{let _0x382292=!0x1;const _0x260d4b=Array['from'](_0x2c75bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4b2ab1,data:_0x3fc8aa}of _0x260d4b){const {group:_0x241383}=_0x394b35['_splitMarkerName'](_0x4b2ab1);if('suggestion'!==_0x241383||!_0x3fc8aa['newRange'])continue;const _0x1b2294=_0x3fc8aa['newRange'],_0x3c8e0a=_0x1b2294['end']['nodeBefore'];if(!_0x3c8e0a||!_0x3c8e0a['is']('element','title-content'))continue;if(!_0x1b2294['start']['isTouching'](_0x1b2294['end']))continue;const _0x4182b2=_0x2c75bb['model']['schema']['getNearestSelectionRange'](_0x1b2294['end'],'forward');if(_0x4182b2&&_0x4182b2['isCollapsed']){const _0x17f5b9=_0x28f2f6['createRange'](_0x1b2294['start'],_0x4182b2['start']);_0x17f5b9['isEqual'](_0x1b2294)||(_0x28f2f6['updateMarker'](_0x4b2ab1,{'range':_0x17f5b9}),_0x382292=!0x0);}_0x382292||(_0x28f2f6['removeMarker'](_0x4b2ab1),_0x382292=!0x0);}return _0x382292;});}}class Tt extends _0x2b7268{['afterInit'](){const _0x299685=this['editor'],_0x3476d6=_0x299685['plugins']['get']('TrackChangesEditing');_0x299685['plugins']['has']('Uploadcare')&&(_0x3476d6['enableCommand']('uploadcare'),_0x299685['plugins']['has']('UploadcareImageEdit')&&(_0x3476d6['enableCommand']('uploadcareImageEdit'),_0x3476d6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3476d6['descriptionFactory']['registerDescriptionCallback'](_0x3652ec=>{if('attribute'!=_0x3652ec['type'])return;const {data:_0x35f392}=_0x3652ec;return _0x35f392&&'uploadcareImageId'==_0x35f392['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2b7268{['afterInit'](){const _0x4f2805=this['editor'],_0x4f1af8=_0x4f2805['plugins']['get']('TrackChangesEditing');_0x4f2805['plugins']['has']('UndoEditing')&&(_0x4f1af8['enableCommand']('undo'),_0x4f1af8['enableCommand']('redo'));}}class Ut extends _0x2b7268{static get['requires'](){return[Nt];}['afterInit'](){const _0x5183e2=this['editor'];if(!_0x5183e2['plugins']['has']('TableCaptionEditing'))return;_0x5183e2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2b7268{['tableProperties'];['tableCellProperties'];constructor(_0x55b832){super(_0x55b832),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x372742=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x268128 of this['tableProperties'])_0x372742['enableCommand'](_0x268128,(_0x5197cf,_0x661b0c)=>{const _0x48b6ff=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x268128,[_0x48b6ff],this['tableProperties'],'tableProperties',_0x5197cf,_0x661b0c);});_0x372742['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x372742['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372742['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x321ab7,_0x9f2f78)=>this['handleDiscardAction'](this['tableProperties'],_0x321ab7,_0x9f2f78)),_0x372742['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a3908 of this['tableCellProperties'])this['editor']['commands']['get'](_0x5a3908)&&_0x372742['enableCommand'](_0x5a3908,(_0x5ba9f9,_0x24dfe3)=>{const _0x48d335=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a3908,_0x48d335,this['tableCellProperties'],'tableCellProperties',_0x5ba9f9,_0x24dfe3);});_0x372742['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x372742['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372742['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x345edf,_0x394928)=>this['handleDiscardAction'](this['tableCellProperties'],_0x345edf,_0x394928)),_0x372742['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x372742['registerBlockAttribute']('tableCellType'),_0x372742['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x372742['descriptionFactory']['registerDescriptionCallback'](_0x5aaa24=>this['handleSuggestionDescription'](_0x5aaa24)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2338ab,_0x217cbd,_0x214e87,_0x1a9256,_0xfef56c,_0x4f1c95){const _0x4c9f14=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f1c95['batch'],()=>{for(const _0x1d7353 of _0x217cbd){if(this['_getSuggestion'](_0x1d7353,_0x1a9256))_0xfef56c(_0x4f1c95);else{const _0xcf6939={};for(const _0x5a428c of _0x214e87){const _0x2b3d82=_0x1d7353['getAttribute'](_0x5a428c);void 0x0!==_0x2b3d82&&(_0xcf6939[_0x5a428c]=_0x2b3d82);}_0xfef56c(_0x4f1c95),_0x4c9f14['markBlockFormat'](_0x1d7353,{'commandParams':[_0xcf6939]},[],_0x1a9256);}}});}['handleDiscardAction'](_0xc3c070,_0x325c01,_0x1563a3){const _0x5b8d7d=_0x325c01[0x0]['start']['nodeAfter'],_0x40b887=_0x1563a3['commandParams'][0x0];this['editor']['model']['change'](_0xde9f74=>{for(const _0x24e392 of _0xc3c070)void 0x0!==_0x40b887[_0x24e392]?_0xde9f74['setAttribute'](_0x24e392,_0x40b887[_0x24e392],_0x5b8d7d):_0xde9f74['removeAttribute'](_0x24e392,_0x5b8d7d);});}['handleSuggestionDescription'](_0x5aa123){if(_0x5aa123['data'])switch(_0x5aa123['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'](_0x531b52,_0x21db94){const _0x2f1de7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xcbe2d6 of _0x2f1de7['getSuggestions']({'skipNotAttached':!0x0})){const _0xff3e=_0xcbe2d6['getContainedElement']();if(_0xcbe2d6['subType']===_0x21db94&&_0xff3e===_0x531b52)return _0xcbe2d6;}return null;}['_registerTablePropertiesAttributes'](){const _0x48ffdf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1573ac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x48ea87 of _0x1573ac){const _0x12a905=_0x48ea87['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x48ffdf['descriptionFactory']['registerAttributeLabel'](_0x48ea87,o(this['editor']['locale'],'FORMAT_'+_0x12a905));}}}class Ft extends _0x2b7268{['afterInit'](){const _0x406796=this['editor'];if(!_0x406796['plugins']['has']('LineHeight'))return;const _0x4c4427=_0x406796['plugins']['get']('TrackChangesEditing'),_0x431d19=_0x406796['locale'];_0x4c4427['enableDefaultAttributesIntegration']('lineHeight'),_0x4c4427['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x431d19,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2b7268{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0xd032c0,_0x343fd7,_0x43fc24,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b99c3){super(_0x4b99c3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17de72,_0x2c9804,_0x38593d,_0x1004d6)=>{this['_model']['change'](()=>{for(const _0xa967c3 of[..._0x1004d6,..._0x38593d])this['_model']['markers']['has'](_0xa967c3)&&_0x4b99c3['editing']['reconvertMarker'](_0xa967c3);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4b99c3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4b99c3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b99c3['config']['get']('trackChanges.trackFormatChanges'),_0x4b99c3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b99c3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4b99c3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4e1263=this['editor'];_0x4e1263['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ebef7,{writer:_0x1bd533})=>{let _0x22148b='suggestion:'+_0x2ebef7['getAttribute']('suggestion-type')+':'+_0x2ebef7['getAttribute']('id');return _0x2ebef7['getAttribute']('marker-count')&&(_0x22148b+=':'+_0x2ebef7['getAttribute']('marker-count')),_0x1bd533['createElement']('$marker',{'data-name':_0x22148b});}}),_0x4e1263['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e1263['model']['document']['registerPostFixer'](_0x18cdc0=>{let _0xa1c4e1=!0x1;const _0x313e15=Array['from'](_0x4e1263['model']['document']['differ']['getChangedMarkers']()),_0x42e2ba=new Set();for(const {name:_0x12b810,data:_0x26a570}of _0x313e15){const {group:_0x1b6762,type:_0xf508dd,subType:_0x3aeab0,id:_0x259e67}=this['_splitMarkerName'](_0x12b810);if('suggestion'!==_0x1b6762)continue;const _0x53ddda=_0x3aeab0?'suggestion:'+_0xf508dd+':'+_0x3aeab0+':'+_0x259e67:'suggestion:'+_0xf508dd+':'+_0x259e67,_0x48c118=_0x4e1263['model']['markers']['getMarkersGroup'](_0x53ddda),_0x35fe55=_0x4e1263['model']['markers']['get'](_0x12b810),_0x1001fb=this['_suggestions']['get'](_0x259e67);if(null!=_0x26a570['newRange']){'formatInline'==_0xf508dd&&(_0xa1c4e1=_0xa1c4e1||Wt(_0x26a570['newRange'],_0x12b810,_0x18cdc0,_0x4e1263['model']['schema']));const _0x4c5ff4='attribute'==_0xf508dd&&this['_isBlockAttribute'](_0x3aeab0['split']('|')[0x0]),_0x187157='attribute'==_0xf508dd&&this['_isInlineAttribute'](_0x3aeab0['split']('|')[0x0]);if(_0x26a570['newRange']['isCollapsed']||'$graveyard'==_0x26a570['newRange']['root']['rootName']||'formatBlock'==_0xf508dd&&!Qt(_0x26a570['newRange'])||_0x4c5ff4&&!Qt(_0x26a570['newRange'])||_0x187157&&Xt(_0x26a570['newRange'])||'deletion'==_0xf508dd&&Xt(_0x26a570['newRange'])||_0x35fe55&&Yt(_0x35fe55,_0x48c118))_0x18cdc0['removeMarker'](_0x12b810),_0xa1c4e1=!0x0;else{if(!_0x1001fb||!_0x1001fb['isInContent'])continue;if(_0x26a570['newRange']&&_0x26a570['oldRange']&&_0x26a570['newRange']['isEqual'](_0x26a570['oldRange']))continue;_0x42e2ba['add'](_0x1001fb);}}}return _0x42e2ba['size']>0x0&&(_0xa1c4e1=!!this['_joinWithAdjacentSuggestions'](_0x42e2ba)||_0xa1c4e1),_0xa1c4e1;}),_0x4e1263['model']['document']['registerPostFixer'](_0xc3244d=>{let _0x27b324=!0x1;for(const _0x406839 of _0x4e1263['model']['document']['differ']['getChanges']())if('insert'==_0x406839['type'])for(const _0xcc5db3 of this['_suggestions']['values']()){if(_0xcc5db3['isMultiRange']||!_0xcc5db3['isInContent'])continue;const _0x370ce8='formatBlock'==_0xcc5db3['type'],_0x1bd0c5=this['_getAttributeKey'](_0xcc5db3),_0x569fa1=_0x1bd0c5&&this['_isBlockAttribute'](_0x1bd0c5);if(!_0x370ce8&&!_0x569fa1)continue;const _0x25ee09=_0xcc5db3['getFirstRange']();if(_0x25ee09['start']['parent']!=_0x25ee09['end']['parent']&&!_0x25ee09['end']['isAtEnd']){const _0xc1124c=_0x4e1263['model']['createPositionAt'](_0x25ee09['start']['nodeAfter'],'end'),_0x2004a7=_0x4e1263['model']['createRange'](_0x25ee09['start'],_0xc1124c);_0xc3244d['updateMarker'](_0xcc5db3['getFirstMarker'](),{'range':_0x2004a7}),_0x27b324=!0x0;}}return _0x27b324;}),_0x4e1263['model']['document']['registerPostFixer'](_0x45f1d0=>this['_processAttributeChanges'](_0x45f1d0)),_0x4e1263['model']['document']['registerPostFixer'](_0x1d6d32=>!_0x1d6d32['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1d6d32)),_0x4e1263['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e1263['model']['document']['on']('change:data',(_0x803975,_0x3a2480)=>{if(!_0x3a2480['isLocal']||_0x3a2480['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4be87b=_0x4e1263['model']['document']['differ']['getChanges']();if(0x0==_0x4be87b['length'])return;const _0x562d0f=[],_0xeb5a72=_0x4be87b['filter'](_0x32c342=>'attribute'==_0x32c342['type']),_0x59afd9=_0x4be87b['filter'](_0x5b83bf=>'insert'==_0x5b83bf['type']&&'$text'!=_0x5b83bf['name']);for(const _0x1c9862 of _0xeb5a72)this['_isRegisteredAttribute'](_0x1c9862['attributeKey'])&&_0x562d0f['push']({'key':_0x1c9862['attributeKey'],'newValue':_0x1c9862['attributeNewValue'],'oldValue':_0x1c9862['attributeOldValue'],'range':Zt(_0x1c9862['range'],_0x4e1263['model'])});for(const _0x115024 of _0x59afd9){if('rename'!=_0x115024['action']&&'refresh'!=_0x115024['action'])continue;const _0x54b474=tn(_0x115024['position']['nodeAfter'],_0x4e1263['model']),_0x335238=_0x115024['before'];'rename'==_0x115024['action']&&_0x562d0f['push']({'key':m,'newValue':_0x115024['name'],'oldValue':_0x335238['name'],'range':_0x54b474});for(const [_0x16bf86,_0x216ce5]of _0x335238['attributes']){if(!this['_isRegisteredAttribute'](_0x16bf86))continue;const _0x1fbce5=_0x115024['attributes']['get'](_0x16bf86);_0x216ce5!==_0x1fbce5&&_0x562d0f['push']({'key':_0x16bf86,'newValue':_0x1fbce5,'oldValue':_0x216ce5,'range':_0x54b474});}for(const [_0x27ebe8,_0x18cac8]of _0x115024['attributes'])this['_isRegisteredAttribute'](_0x27ebe8)&&(_0x335238['attributes']['has'](_0x27ebe8)||_0x562d0f['push']({'key':_0x27ebe8,'newValue':_0x18cac8,'oldValue':null,'range':_0x54b474}));}0x0!=_0x562d0f['length']&&_0x4e1263['model']['enqueueChange'](_0x3a2480,_0x5b1ddf=>{const _0x3be1f2=_0x5e874e();for(const {range:_0x251d44,key:_0x3624b7,oldValue:_0x29e496,newValue:_0x432b36}of _0x562d0f)this['markAttributeChange'](_0x251d44,_0x3624b7,_0x29e496,_0x432b36,{'groupId':_0x3be1f2});this['_reduceExistingSuggestions'](_0x5b1ddf,_0x562d0f);});},{'priority':'lowest'}),_0x4e1263['model']['markers']['on']('update:suggestion',(_0x2c6243,_0x3e706f,_0x3c854e)=>{if(null==_0x3c854e){const {id:_0x335f3e}=this['_splitMarkerName'](_0x3e706f['name']),_0x750213=this['_suggestions']['get'](_0x335f3e);_0x750213&&_0x750213['addMarkerName'](_0x3e706f['name']);}}),_0x4e1263['model']['document']['on']('change:data',()=>{const _0x6517f=Array['from'](_0x4e1263['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4064b6=>'suggestion'===this['_splitMarkerName'](_0x4064b6['name'])['group']);if(0x0===_0x6517f['length'])return;_0x6517f['sort']((_0x1899e3,_0x2e651a)=>{const _0x173c88=_0x1899e3['data']['oldRange'],_0x921966=_0x2e651a['data']['oldRange'];return null===_0x173c88&&null===_0x921966?0x0:null===_0x173c88&&null!==_0x921966?-0x1:null!==_0x173c88&&null===_0x921966?0x1:_0x173c88['start']['isBefore'](_0x921966['start'])?-0x1:0x1;});const _0x486c4b=new Set(),_0x5ca7ca=new Set();for(const {name:_0x4969a9,data:_0xea8c8}of _0x6517f){const {id:_0x2e93ae}=this['_splitMarkerName'](_0x4969a9);if(null===_0xea8c8['oldRange']){const _0x3adfa8=this['_handleNewSuggestionMarker'](_0x4969a9);_0x5ca7ca['add'](_0x3adfa8);}else{const _0x5737e5=this['_suggestions']['get'](_0x2e93ae);null!==_0xea8c8['newRange']||_0x5737e5['isInContent']?(_0x486c4b['add'](_0x5737e5['head']),_0x5ca7ca['add'](_0x5737e5)):this['_removeSuggestion'](_0x5737e5);}}_0x5ca7ca['size']>0x0&&this['_refreshSuggestionsChain'](_0x5ca7ca);for(const _0x480066 of _0x486c4b)this['fire']('suggestionChanged',_0x480066);}),_0x4e1263['model']['on']('applyOperation',(_0x1eae96,_0x521b56)=>{const _0x5a4903=_0x521b56[0x0];if(!this['_suggestions']['size'])return;if(!_0x5a4903['isDocumentOperation'])return;if(_0x5a4903['batch']['isUndo']||!_0x5a4903['batch']['isLocal'])return;let _0x177eea,_0x5b6ee5;switch(_0x5a4903['type']){case'insert':_0x177eea=_0x4e1263['model']['createPositionAt'](_0x5a4903['position']),_0x5b6ee5=_0x177eea['getShiftedBy'](_0x5a4903['howMany']);break;case'split':_0x177eea=_0x4e1263['model']['createPositionAt'](_0x5a4903['splitPosition']),_0x5b6ee5=_0x4e1263['model']['createPositionAt'](_0x5a4903['moveTargetPosition']);break;case'move':_0x177eea=_0x4e1263['model']['createPositionAt'](_0x5a4903['targetPosition']),_0x5b6ee5=_0x177eea['getShiftedBy'](_0x5a4903['howMany']);break;default:return;}const _0x20b615=_0x4e1263['model']['createRange'](_0x177eea,_0x5b6ee5);_0x4e1263['model']['change'](()=>{for(const {suggestion:_0x51e9b2,meta:_0x1d21eb}of this['_findSuggestions'](_0x20b615)){if(_0x51e9b2['isMultiRange'])continue;if('formatInline'==_0x51e9b2['type'])continue;const _0x310b89=this['_getAttributeKey'](_0x51e9b2);if(_0x310b89&&this['_isBlockAttribute'](_0x310b89)&&'split'!=_0x5a4903['type'])continue;const _0x300469=_0x51e9b2['data']&&_0x51e9b2['data']['multipleBlocks'];('formatBlock'!=_0x51e9b2['type']||'split'==_0x5a4903['type']&&!_0x300469)&&(_0x1d21eb['containsRangeInObject']||'insertion'==_0x51e9b2['type']&&_0x1d21eb['isOwn']||_0x51e9b2['getFirstRange']()['containsRange'](_0x20b615)&&this['_breakSuggestionMarker'](_0x51e9b2,_0x177eea,_0x5b6ee5));}});},{'priority':'lowest'}),_0x4e1263['model']['on']('deleteContent',(_0x1f7eaa,_0x4dbc5c)=>{const _0x503fb5=_0x4dbc5c[0x0],_0x407262=_0x4dbc5c[0x1];if(_0x407262&&_0x407262['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x503fb5['isCollapsed'])return;const _0x3c9725=_0x4e1263['model']['schema'],{start:_0x44b4af,end:_0x5e7f5f}=_0x503fb5['getFirstRange'](),_0x54205f=_0x44b4af['nodeAfter']&&_0x3c9725['isLimit'](_0x44b4af['nodeAfter'])?null:_0x3c9725['getNearestSelectionRange'](_0x44b4af,'forward'),_0x17530a=_0x5e7f5f['nodeBefore']&&_0x3c9725['isLimit'](_0x5e7f5f['nodeBefore'])?null:_0x3c9725['getNearestSelectionRange'](_0x5e7f5f,'backward'),_0x119f53=_0x4e1263['model']['createRange'](_0x54205f?_0x54205f['start']:_0x44b4af,_0x17530a?_0x17530a['end']:_0x5e7f5f);_0x4e1263['model']['change'](_0x2a3480=>{this['markDeletion'](_0x119f53);const _0x5d40fd=_0x4e1263['model']['schema']['getNearestSelectionRange'](_0x119f53['start']);_0x503fb5['is']('documentSelection')?_0x2a3480['setSelection'](_0x5d40fd):_0x503fb5['setTo'](_0x5d40fd);}),_0x1f7eaa['stop']();},{'priority':_0x1f7fbf['normal']+0xa}),_0x4e1263['model']['on']('insertContent',(_0x46e2ce,_0x4f5ed1)=>{const _0x51ebfe=_0x4f5ed1[_0x4f5ed1['length']-0x1];_0x51ebfe&&_0x51ebfe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e1263['model']['change'](()=>{let _0x50eeab=_0x4e1263['model']['insertContent'](_0x4f5ed1[0x0],_0x4f5ed1[0x1],_0x4f5ed1[0x2],{'forceDefaultExecution':!0x0});if(!_0x50eeab)return;_0x46e2ce['return']=_0x50eeab['clone']();const _0x37ab7b=_0x50eeab['end']['nodeBefore'],_0x4571ad=_0x4e1263['model']['schema'];_0x37ab7b&&_0x4571ad['isBlock'](_0x37ab7b)&&!_0x4571ad['isObject'](_0x37ab7b)&&(_0x50eeab=_0x4e1263['model']['createRange'](_0x50eeab['start'],_0x4e1263['model']['createPositionAt'](_0x37ab7b,'end'))),this['markInsertion'](_0x50eeab);}),_0x46e2ce['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2842c8=new v(_0x4e1263,this['_suggestions']);_0x4e1263['commands']['add']('acceptSuggestion',_0x2842c8),this['enableCommand']('acceptSuggestion');const _0x142ebc=new D(_0x4e1263,this['_suggestions']);_0x4e1263['commands']['add']('discardSuggestion',_0x142ebc),this['enableCommand']('discardSuggestion'),_0x4e1263['commands']['add']('acceptAllSuggestions',new B(_0x4e1263,_0x2842c8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e1263['commands']['add']('discardAllSuggestions',new B(_0x4e1263,_0x142ebc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e1263['commands']['add']('acceptSelectedSuggestions',new O(_0x4e1263,_0x2842c8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e1263['commands']['add']('discardSelectedSuggestions',new O(_0x4e1263,_0x142ebc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x535728=_0x4e1263['plugins']['get']('CommentsRepository');this['listenTo'](_0x535728,'addComment',(_0x31a207,{threadId:_0x35fd0f})=>{const _0x20e7a5=this['_suggestions']['get'](_0x35fd0f);_0x20e7a5&&_0x20e7a5['commentThread']&&0x1===_0x20e7a5['commentThread']['length']&&this['_updateSuggestionData'](_0x35fd0f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x535728,'removeComment',(_0x2c91dd,{threadId:_0x16a987})=>{const _0x59ed27=this['_suggestions']['get'](_0x16a987);_0x59ed27&&_0x59ed27['commentThread']&&!_0x59ed27['commentThread']['length']&&this['_updateSuggestionData'](_0x16a987,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3dc6a7){const _0x38fa49=_0x3b494b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1edbfb=0x3d8d0df,_0x73e48f=0x3dfad2f^_0x1edbfb,_0x47158a=window[_0x3b494b([0x44,0x61,0x74,0x65])][_0x3b494b([0x6e,0x6f,0x77])](),_0x447d83=_0x3dc6a7[_0x3b494b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ea5a7=new window[(_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4be16d=>{_0x447d83[_0x3b494b([0x6f,0x6e,0x63,0x65])](_0x3b494b([0x72,0x65,0x61,0x64,0x79]),_0x4be16d);}),_0x106d33={[_0x3b494b([0x6b,0x74,0x79])]:_0x3b494b([0x45,0x43]),[_0x3b494b([0x75,0x73,0x65])]:_0x3b494b([0x73,0x69,0x67]),[_0x3b494b([0x63,0x72,0x76])]:_0x3b494b([0x50,0x2d,0x32,0x35,0x36]),[_0x3b494b([0x78])]:_0x3b494b([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]),[_0x3b494b([0x79])]:_0x3b494b([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]),[_0x3b494b([0x61,0x6c,0x67])]:_0x3b494b([0x45,0x53,0x32,0x35,0x36])},_0x20818b=_0x447d83[_0x3b494b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b494b([0x67,0x65,0x74])](_0x3b494b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x137136(){let _0x5a1305,_0x8ffb5a=null,_0x2f4724=null;try{if(_0x20818b==_0x3b494b([0x47,0x50,0x4c]))return _0x3b494b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a1305=_0xf2fdc7(),!_0x5a1305)return _0x3b494b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a1305[_0x3b494b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f4724=_0x7e7f29(_0x5a1305[_0x3b494b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a1305[_0x3b494b([0x6a,0x74,0x69])])),await _0x4b111c()?_0x3621e9()?_0x45e4f9()?_0x3b494b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a9d8d()?(_0x5a1305[_0x3b494b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b494b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8ffb5a=_0x3a8fdf(_0x3b494b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a1305[_0x3b494b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b494b([0x74,0x72,0x69,0x61,0x6c])&&(_0x8ffb5a=_0x3a8fdf(_0x3b494b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27ee4a()):_0x3b494b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b494b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b494b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b494b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45e4f9(){const _0x30bbd1=[_0x3b494b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b494b([0x74,0x72,0x69,0x61,0x6c])][_0x3b494b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1305[_0x3b494b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47158a/0x3e8:0xe10*_0x73e48f;return _0x5a1305[_0x3b494b([0x65,0x78,0x70])]<_0x30bbd1;}function _0x3621e9(){const _0x3526ca=_0x5a1305[_0x3b494b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3526ca)return!0x1;if(_0x3526ca[_0x3b494b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b494b([0x2a])))return!0x0;if(_0x3526ca[_0x3b494b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b494b([0x54,0x43])))return!0x0;if(_0x3526ca[_0x3b494b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b494b([0x52,0x54,0x43]))){if(_0x52954d())return!0x0;if(_0x282e5f()||_0x5ee786())return!0x0;}return!0x1;}function _0x4a9d8d(){const _0x2cd170=_0x5a1305[_0x3b494b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cd170||0x0==_0x2cd170[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d960d}=new URL(window[_0x3b494b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cd170[_0x3b494b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d960d))return!0x0;const _0xeb6cfd=_0x4d960d[_0x3b494b([0x73,0x70,0x6c,0x69,0x74])](_0x3b494b([0x2e]));return _0x2cd170[_0x3b494b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x487b45=>_0x487b45[_0x3b494b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b494b([0x2a])))[_0x3b494b([0x6d,0x61,0x70])](_0x46faa4=>_0x46faa4[_0x3b494b([0x73,0x70,0x6c,0x69,0x74])](_0x3b494b([0x2e])))[_0x3b494b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e3a0b=>_0x2e3a0b[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xeb6cfd[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b494b([0x6d,0x61,0x70])](_0x62c350=>Array(_0xeb6cfd[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x62c350[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b494b([0x66,0x69,0x6c,0x6c])](_0x62c350[0x0]===_0x3b494b([0x2a])?_0x3b494b([0x2a]):'')[_0x3b494b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x62c350))[_0x3b494b([0x73,0x6f,0x6d,0x65])](_0x374d0c=>_0xeb6cfd[_0x3b494b([0x65,0x76,0x65,0x72,0x79])]((_0x4c73a0,_0x5c4c72)=>_0x374d0c[_0x5c4c72]===_0x4c73a0||_0x374d0c[_0x5c4c72]===_0x3b494b([0x2a])));}function _0x27ee4a(){return _0x8ffb5a&&_0x2f4724?new window[(_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35a603,_0x32aa6c)=>{_0x8ffb5a[_0x3b494b([0x74,0x68,0x65,0x6e])](_0x35a603,_0x32aa6c),_0x2f4724[_0x3b494b([0x74,0x68,0x65,0x6e])](_0x3df6ac=>{_0x3df6ac!=_0x3b494b([0x56,0x61,0x6c,0x69,0x64])&&_0x35a603(_0x3df6ac);},_0x32aa6c);}):_0x8ffb5a||_0x2f4724||_0x3b494b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7e7f29(_0x6647d4,_0xd2b108){return new window[(_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b74f=>{if(_0x52ecbb())return _0x11b74f(_0x3b494b([0x56,0x61,0x6c,0x69,0x64]));_0x183f1d(),_0x447d83[_0x3b494b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b494b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7441=!0x1;const _0x1cc5c2=_0x5e874e();function _0xdd5bf3(_0x3cf9e8){return!!_0x3cf9e8&&(typeof _0x3cf9e8===_0x3b494b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cf9e8===_0x3b494b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cf9e8[_0x3b494b([0x74,0x68,0x65,0x6e])]===_0x3b494b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cf9e8[_0x3b494b([0x63,0x61,0x74,0x63,0x68])]===_0x3b494b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x343f55(_0x1bb6c0){_0x192e3a(_0x1bb6c0)[_0x3b494b([0x74,0x68,0x65,0x6e])](_0x1beef8=>{if(!_0x1beef8||_0x1beef8[_0x3b494b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b494b([0x6f,0x6b]))return _0x3b494b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x357062(_0x5597dc(_0x1cc5c2+_0xd2b108))!=_0x1beef8[_0x3b494b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b494b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b494b([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b494b([0x74,0x68,0x65,0x6e])](_0x2daf6e=>(_0x2707b7(),_0x2daf6e),()=>{const _0x2461d7=_0x2ac87a();return null==_0x2461d7?(_0x2707b7(),_0x3b494b([0x56,0x61,0x6c,0x69,0x64])):_0x3b494b(_0x47158a-_0x2461d7>(0x27d454df^_0x1edbfb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b494b([0x74,0x68,0x65,0x6e])](_0x11b74f)[_0x3b494b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11b74f(_0x3b494b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e7ce8=0x3ee3e5f^_0x1edbfb;function _0x2707b7(){const _0x2251e3=_0x3b494b([0x6c,0x6c,0x63,0x74,0x2d])+_0x357062(_0x5597dc(_0x6647d4)),_0x3a60a6=_0x16df7f(_0x357062(window[_0x3b494b([0x4d,0x61,0x74,0x68])][_0x3b494b([0x63,0x65,0x69,0x6c])](_0x47158a/_0x2e7ce8)));window[_0x3b494b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b494b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2251e3,_0x3a60a6);}function _0x2ac87a(){const _0x50eaf1=_0x3b494b([0x6c,0x6c,0x63,0x74,0x2d])+_0x357062(_0x5597dc(_0x6647d4)),_0x947aa7=window[_0x3b494b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b494b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50eaf1);return _0x947aa7?window[_0x3b494b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16df7f(_0x947aa7),0x10)*_0x2e7ce8:null;}function _0x192e3a(_0x1fef48){return new window[(_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d9a94,_0x2a2168)=>{_0x1fef48[_0x3b494b([0x74,0x68,0x65,0x6e])](_0x3d9a94,_0x2a2168),window[_0x3b494b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a2168,0x3d9041f^_0x1edbfb);});}}_0x447d83[_0x3b494b([0x6f,0x6e])](_0x3b494b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe89936,_0x5be578)=>{if(_0x5be578[0x0]!=_0x6647d4)return _0x11b74f(_0x3b494b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5be578[0x1]={..._0x5be578[0x1],[_0x3b494b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cc5c2};},{[_0x3b494b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b494b([0x68,0x69,0x67,0x68])}),_0x447d83[_0x3b494b([0x6f,0x6e])](_0x3b494b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x232c85=>{_0xdd5bf3(_0x232c85[_0x3b494b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7441=!0x0,_0x343f55(_0x232c85[_0x3b494b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b494b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b494b([0x6c,0x6f,0x77])}),_0x5ea5a7[_0x3b494b([0x74,0x68,0x65,0x6e])](()=>{_0x5c7441||_0x11b74f(_0x3b494b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52ecbb(){return _0x447d83[_0x3b494b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b494b([0x76,0x69,0x65,0x77])][_0x3b494b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b494b([0x61,0x75,0x74,0x6f]);}function _0x183f1d(){_0x447d83[_0x3b494b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b494b([0x76,0x69,0x65,0x77])][_0x3b494b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b494b([0x61,0x75,0x74,0x6f]);}}function _0x3a8fdf(_0x154f07){const _0x73aa7a=[new window[(_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e8f19=>setTimeout(_0x1e8f19,0x3d1ee13^_0x1edbfb)),_0x5ea5a7[_0x3b494b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x969ab4=>{let _0x3f415e=0x0;_0x447d83[_0x3b494b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b494b([0x6f,0x6e])](_0x3b494b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41e92c,_0x12bed0)=>{_0x12bed0[0x0][_0x3b494b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f415e++,_0x3f415e==(0x3d8d537^_0x1edbfb)&&(_0x969ab4(),_0x41e92c[_0x3b494b([0x6f,0x66,0x66])]());});}))];return window[_0x3b494b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b494b([0x72,0x61,0x63,0x65])](_0x73aa7a)[_0x3b494b([0x74,0x68,0x65,0x6e])](()=>_0x154f07);}async function _0xcb2bbf(){await _0x5ea5a7,_0x447d83[_0x3b494b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b494b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac09b,_0x447d83[_0x3b494b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b494b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac09b,_0x447d83[_0x3b494b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b494b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52954d(){return _0x3edcea(_0x3b494b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x223a09(_0x3b494b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3b494b([0x73,0x74,0x61,0x74,0x65])]==_0x3b494b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x282e5f(){return _0x3edcea(_0x3b494b([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 _0x5ee786(){return _0x3edcea(_0x3b494b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2708b4(_0xa1b90c){const _0x435cd0=_0x16fb84();_0x447d83[_0x435cd0]=_0x3b494b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa1b90c,_0xa1b90c!=_0x3b494b([0x56,0x61,0x6c,0x69,0x64])&&_0xcb2bbf();}function _0x16fb84(){const _0x50a655=window[_0x3b494b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b494b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b494b([0x6e,0x6f,0x77])]())[_0x3b494b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b494b([0x2e]),'');let _0x7c3f1c=_0x3b494b([0x52]);for(let _0x2daf95=0x0;_0x2daf95<_0x50a655[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2daf95+=0x2){let _0x4e1285=window[_0x3b494b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a655[_0x3b494b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2daf95,_0x2daf95+0x2));_0x4e1285>=_0x38fa49[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e1285-=_0x38fa49[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7c3f1c+=_0x38fa49[_0x4e1285];}return _0x7c3f1c;}function _0xf2fdc7(){const _0x349f57=_0x20818b[_0x3b494b([0x73,0x70,0x6c,0x69,0x74])](_0x3b494b([0x2e]));if(0x3!=_0x349f57[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14380f(_0x349f57[0x1]);function _0x14380f(_0x32496a){const _0x10713b=_0x2f802f(_0x32496a);return _0x10713b&&_0x24e0a9()?_0x10713b:null;function _0x24e0a9(){const _0x556739=_0x10713b[_0x3b494b([0x6a,0x74,0x69])],_0xd10e31=window[_0x3b494b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x556739[_0x3b494b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x556739[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9ec19f={..._0x10713b,[_0x3b494b([0x6a,0x74,0x69])]:_0x556739[_0x3b494b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x556739[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9ec19f[_0x3b494b([0x76,0x63])],_0x5597dc(_0x9ec19f)==_0xd10e31;}}}async function _0x4b111c(){let _0x44c876=!0x0;try{const _0x2427f9=_0x20818b[_0x3b494b([0x73,0x70,0x6c,0x69,0x74])](_0x3b494b([0x2e])),[_0x461208,_0x4009bf,_0x569577]=_0x2427f9;return _0x299454(_0x461208),await _0x18dc79(_0x461208,_0x4009bf,_0x569577),_0x44c876;}catch{return!0x1;}function _0x299454(_0x9ab97e){const _0x4c8425=_0x2f802f(_0x9ab97e);_0x4c8425&&_0x4c8425[_0x3b494b([0x61,0x6c,0x67])]==_0x3b494b([0x45,0x53,0x32,0x35,0x36])||(_0x44c876=!0x1);}async function _0x18dc79(_0x35b0d2,_0x15fb7c,_0xddd844){const _0xc9589a=window[_0x3b494b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b494b([0x66,0x72,0x6f,0x6d])](_0x464c83(_0xddd844),_0x1dfd00=>_0x1dfd00[_0x3b494b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x188a88=new window[(_0x3b494b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b494b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35b0d2+_0x3b494b([0x2e])+_0x15fb7c),_0x47511b=window[_0x3b494b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b494b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47511b)return;const _0x30e2ae=await _0x47511b[_0x3b494b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b494b([0x6a,0x77,0x6b]),_0x106d33,{[_0x3b494b([0x6e,0x61,0x6d,0x65])]:_0x3b494b([0x45,0x43,0x44,0x53,0x41]),[_0x3b494b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b494b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b494b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47511b[_0x3b494b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b494b([0x6e,0x61,0x6d,0x65])]:_0x3b494b([0x45,0x43,0x44,0x53,0x41]),[_0x3b494b([0x68,0x61,0x73,0x68])]:{[_0x3b494b([0x6e,0x61,0x6d,0x65])]:_0x3b494b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30e2ae,_0xc9589a,_0x188a88)||(_0x44c876=!0x1);}}function _0x2f802f(_0x543f45){return _0x543f45[_0x3b494b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b494b([0x65,0x79]))?JSON[_0x3b494b([0x70,0x61,0x72,0x73,0x65])](_0x464c83(_0x543f45)):null;}function _0x464c83(_0x704e01){return window[_0x3b494b([0x61,0x74,0x6f,0x62])](_0x704e01[_0x3b494b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b494b([0x2b]))[_0x3b494b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b494b([0x2f])));}function _0x5597dc(_0xa57fc6){let _0x5af737=0x1505;function _0x1ade90(_0x102fec){for(let _0x5d0abc=0x0;_0x5d0abc<_0x102fec[_0x3b494b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d0abc++){const _0x1f424e=_0x102fec[_0x3b494b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d0abc);_0x5af737=(_0x5af737<<0x5)+_0x5af737+_0x1f424e,_0x5af737&=_0x5af737;}}function _0x4ae8f2(_0x5aa3e3){Array[_0x3b494b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5aa3e3)?_0x5aa3e3[_0x3b494b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ae8f2):_0x5aa3e3&&typeof _0x5aa3e3==_0x3b494b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b494b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5aa3e3)[_0x3b494b([0x73,0x6f,0x72,0x74])]()[_0x3b494b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20a4a7,_0x13a4c3])=>{_0x1ade90(_0x20a4a7),_0x4ae8f2(_0x13a4c3);}):_0x1ade90(window[_0x3b494b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5aa3e3));}return _0x4ae8f2(_0xa57fc6),_0x5af737>>>0x0;}function _0x357062(_0x1d2022){return _0x1d2022[_0x3b494b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b494b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b494b([0x30]));}function _0x16df7f(_0x542431){return _0x542431[_0x3b494b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b494b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b494b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3edcea(_0x45fa30){return _0x447d83[_0x3b494b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b494b([0x68,0x61,0x73])](_0x45fa30);}function _0x223a09(_0x3d3fe0){return _0x447d83[_0x3b494b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3b494b([0x67,0x65,0x74])](_0x3d3fe0);}function _0x4ac09b(){}function _0x3b494b(_0x338aad){return _0x338aad['map'](_0x3b7ff3=>String['fromCharCode'](_0x3b7ff3))['join']('');}_0x2708b4(await _0x137136());}(this);}set['adapter'](_0x1520c1){if(this['_adapter'])throw new _0x5a89fc('track-changes-adapter-already-set',this);this['_adapter']=_0x1520c1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x7b1d2c=!0x1,toJSON:_0x8a0082=!0x1}={}){const _0x26abcb=[];for(const _0x558ae3 of this['_suggestions']['values']())_0x7b1d2c&&!_0x558ae3['isInContent']||_0x26abcb['push'](_0x558ae3);return _0x8a0082?_0x26abcb['map'](_0x59594e=>_0x59594e['toJSON']()):_0x26abcb;}['getSuggestion'](_0x2808cd){const _0x2efbd6=this['_suggestions']['get'](_0x2808cd);if(!_0x2efbd6)throw new _0x5a89fc('track-changes-suggestion-not-found',this);return _0x2efbd6;}['hasSuggestion'](_0x456d9f){return this['_suggestions']['has'](_0x456d9f);}['addSuggestionData'](_0x40f9f2){const {authorId:_0x518eba,id:_0x3f8bc7,originalSuggestionId:_0x3df152,attributes:_0x4fd9cb}=_0x40f9f2,[_0x46b1a7,_0x3eba83]=_0x40f9f2['type']['split'](':'),_0x160647=this['_suggestions']['get'](_0x3f8bc7)||this['_createSuggestion'](_0x46b1a7,_0x3eba83,_0x3f8bc7,_0x518eba,_0x4fd9cb,_0x3df152);if(this['_addThreadToSuggestion'](_0x160647),this['_checkSuggestionCorrectness'](_0x160647,_0x46b1a7,_0x3eba83||null,_0x518eba),_0x160647['createdAt']=_0x40f9f2['createdAt'],_0x160647['_isDataLoaded']=!0x0,_0x4fd9cb&&_0x4fd9cb['@external']){const _0x252e54=_0x4fd9cb['@external'],_0xdcbaf2=this['_getExternalAuthor'](_0x252e54['authorName']);_0x160647['authoredAt']=_0x252e54['createdAt'],_0x160647['author']=_0xdcbaf2,_0x160647['isExternal']=!0x0;}else _0x160647['authoredAt']=_0x40f9f2['createdAt'];switch(_0x40f9f2['data']&&(_0x160647['data']=_0x40f9f2['data']),_0x40f9f2['attributes']&&(_0x160647['attributes']=_0x40f9f2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x160647['_saved']=!0x0),this['_suggestionState']['get'](_0x160647)){case'notReady':this['_suggestionState']['set'](_0x160647,'dataReady');break;case'markerReady':_0x160647['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x160647])),this['_refreshSuggestionsChain'](new Set([_0x160647])),this['_suggestionState']['set'](_0x160647,'ready'),this['fire']('suggestionLoaded',_0x160647)):this['_suggestionState']['set'](_0x160647,'removed');}return _0x160647;}['acceptSuggestion'](_0x34075b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52f4b6 of _0x34075b['getAllAdjacentSuggestions']())_0x52f4b6['accept']();});});}['discardSuggestion'](_0x5ee7e8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcb04bb of _0x5ee7e8['getAllAdjacentSuggestions']())_0xcb04bb['discard']();});});}['enableCommand'](_0x368e3d,_0x2926b7){const _0x402084=this['editor']['commands']['get'](_0x368e3d);if(!_0x402084)throw new _0x5a89fc('track-changes-command-not-found',this,{'commandName':_0x368e3d});if(this['_enabledCommands']['has'](_0x402084))throw new _0x5a89fc('track-changes-enable-command-twice',this,{'commandName':_0x368e3d});this['_enabledCommands']['add'](_0x402084),_0x2926b7&&_0x402084['on']('execute',(_0x4e36b1,_0x5b9907)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b9907['length']>0x0&&_0x5b9907[_0x5b9907['length']-0x1]&&_0x5b9907[_0x5b9907['length']-0x1]['forceDefaultExecution']?_0x5b9907['pop']():(_0x4e36b1['return']=_0x2926b7((..._0x59a3e0)=>_0x402084['execute'](..._0x59a3e0,{'forceDefaultExecution':!0x0}),..._0x5b9907),_0x4e36b1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2bcba0){let _0x85aa36,_0x1139b8;const _0x25891b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x85aa36=_0x2bcba0();}catch(_0xdddd53){_0x1139b8=_0xdddd53;}return _0x25891b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1139b8&&_0x5a89fc['rethrowUnexpectedError'](_0x1139b8,this),_0x85aa36;}['markInsertion'](_0xca8194,_0x68db15=null,_0x1be57d={}){if(_0xca8194['isCollapsed'])return null;const _0x5da19f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1be57d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23e562,meta:_0x9ba2d6}of this['_findSuggestions'](_0xca8194,'insertion'))if(_0x9ba2d6['isOwn']){if(!_0x9ba2d6['isNextTo']){if(_0x9ba2d6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x23e562,_0x1be57d))continue;return _0x23e562;}if(sn(_0x23e562,_0x1be57d))return _0x23e562;this['_breakSuggestionMarker'](_0x23e562,_0xca8194['start'],_0xca8194['end']);break;}if(_0x68db15==_0x23e562['subType']&&sn(_0x23e562,_0x1be57d)){const _0x1e95fd=_0x23e562['getFirstRange']();return _0x1e95fd['start']['isEqual'](_0xca8194['end'])?this['_setSuggestionRange'](_0x23e562,this['_model']['createRange'](_0xca8194['start'],_0x1e95fd['end'])):this['_setSuggestionRange'](_0x23e562,this['_model']['createRange'](_0x1e95fd['start'],_0xca8194['end'])),_0x23e562;}}const _0x21e158=_0x5e874e(),_0x360698=_0x5da19f['id'],_0x290ee4=_0x68db15?'insertion:'+_0x68db15:'insertion',_0x37987c=this['_setSuggestionData']({'id':_0x21e158,'type':_0x290ee4,'createdAt':new Date(),'authorId':_0x360698,'attributes':_0x1be57d});return this['_addSuggestionMarker'](_0x290ee4,_0x21e158,_0x360698,_0xca8194),_0x37987c;}['markMultiRangeInsertion'](_0x5f5188,_0x4bec6d='multi',_0x2f5fa4={}){const _0x18fe7e=this['editor']['plugins']['get']('Users')['me'],_0x574e40=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4bec6d,'join');this['_trackingSessionId']&&(_0x2f5fa4['trackingSessionId']=this['_trackingSessionId']);for(const _0x58d54d of this['getSuggestions']())if(_0x58d54d['author']['id']==_0x18fe7e['id']&&'insertion'==_0x58d54d['type']&&_0x58d54d['subType']==_0x4bec6d&&sn(_0x58d54d,_0x2f5fa4)&&(_0x574e40(_0x58d54d['getRanges'](),_0x5f5188)||_0x574e40(_0x5f5188,_0x58d54d['getRanges']()))){for(const _0x3cb7c0 of _0x5f5188)_0x58d54d['addRange'](_0x3cb7c0);return _0x58d54d;}for(const {suggestion:_0x58cceb,meta:_0x143e7e}of this['_findSuggestions'](_0x5f5188,'insertion')){if(!_0x143e7e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x143e7e['containsRangeInObject'])continue;if(!sn(_0x58cceb,_0x2f5fa4))continue;let _0x261c4e=!0x0;for(const _0x49532e of _0x58cceb['getRanges']())for(const _0x5eaea1 of _0x5f5188)if(!_0x49532e['containsRange'](_0x5eaea1)){_0x261c4e=!0x1;break;}if(_0x261c4e)return _0x58cceb;}const _0x352fed=_0x5e874e(),_0xb8b08b=_0x18fe7e['id'],_0x12c5c4='insertion:'+_0x4bec6d,_0x6f6a3=this['_setSuggestionData']({'id':_0x352fed,'type':_0x12c5c4,'createdAt':new Date(),'authorId':_0xb8b08b,'attributes':_0x2f5fa4});for(const _0x24b95c of _0x5f5188)this['_addSuggestionMarker'](_0x12c5c4,_0x352fed,_0xb8b08b,_0x24b95c,x['getMultiRangeId']());return _0x6f6a3;}['markInlineFormat'](_0x327692,_0x274395,_0xa75cd2=null,_0x253583={}){if(_0xa75cd2=_0xa75cd2||Ht(_0x274395),_0x327692['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x253583['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x898159=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa75cd2,'accept');return this['forceDefaultExecution'](()=>_0x898159([_0x327692],_0x274395,_0x253583)),null;}const _0x1ed065=this['editor']['plugins']['get']('Users')['me'],_0x100089=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x16c61f,meta:_0x29fb91}of this['_findSuggestions'](_0x327692,'insertion'))_0x29fb91['isOwn']&&!_0x29fb91['isInsideObject']&&_0x100089['push'](..._0x16c61f['getRanges']());}const _0x474e81=function(_0x247908,_0x33ffff){const _0x52122f=[];for(const _0x3218f6 of _0x33ffff){const _0x475432=_0x247908['getIntersection'](_0x3218f6);_0x475432&&_0x52122f['push'](_0x475432);}return _0x52122f;}(_0x327692,_0x100089),_0x159f79=function(_0x38ac7c,_0x433b4b){const _0x4d63eb=[_0x38ac7c];for(const _0x1a5861 of _0x433b4b){let _0x3265e2=0x0;for(;_0x3265e2<_0x4d63eb['length'];){const _0x3b88bf=_0x4d63eb[_0x3265e2]['getDifference'](_0x1a5861);_0x4d63eb['splice'](_0x3265e2,0x1,..._0x3b88bf),_0x3265e2+=_0x3b88bf['length'];}}return _0x4d63eb;}(_0x327692,_0x100089);_0x474e81['length']&&this['_model']['change'](()=>{for(const _0x20dba0 of _0x474e81){const _0x595025=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa75cd2,'accept');this['forceDefaultExecution'](()=>_0x595025([_0x20dba0],_0x274395,_0x253583));}});for(const _0x6750a of _0x159f79){let _0x25b4f6=null,_0x191bd7=_0x6750a['start'],_0x2b281a=_0x6750a['end'];for(const {suggestion:_0x515c64,meta:_0x1b4ef2}of this['_findSuggestions'](_0x6750a,'formatInline')){if(!_0x1b4ef2['isOwn'])continue;if(_0x515c64['subType']!=_0xa75cd2)continue;if(!sn(_0x515c64,_0x253583))continue;const _0x230def=_0x515c64['getFirstRange']();if(_0x230def['containsRange'](_0x6750a,!0x0))return null;_0x191bd7=_0x191bd7['isBefore'](_0x230def['start'])?_0x191bd7:_0x230def['start'],_0x2b281a=_0x2b281a['isAfter'](_0x230def['end'])?_0x2b281a:_0x230def['end'],_0x25b4f6?_0x230def['start']['isBefore'](_0x25b4f6['getFirstRange']()['start'])?(_0x25b4f6['removeMarkers'](),_0x25b4f6=_0x515c64):_0x515c64['removeMarkers']():_0x25b4f6=_0x515c64;}const _0x5875f6=this['_model']['createRange'](_0x191bd7,_0x2b281a);if(_0x25b4f6)this['_setSuggestionRange'](_0x25b4f6,_0x5875f6);else{const _0x26b163=_0x5e874e(),_0x193d77=_0x1ed065['id'];this['_setSuggestionData']({'id':_0x26b163,'type':'formatInline:'+_0xa75cd2,'data':_0x274395,'createdAt':new Date(),'authorId':_0x193d77,'attributes':_0x253583}),this['_addSuggestionMarker']('formatInline:'+_0xa75cd2,_0x26b163,_0x193d77,_0x5875f6);}}return null;}['markBlockFormat'](_0x524ebe,_0x1e41be,_0x19f153=[],_0x883c66=null,_0x13f6da={}){_0x1e41be['formatGroupId']||(_0x1e41be['formatGroupId']=_0x1e41be['commandName']),_0x1e41be['multipleBlocks']=_0x524ebe['is']('range'),_0x883c66=_0x883c66||Ht(_0x1e41be);const _0x4fad56=_0x19f153['map'](_0x37be16=>tn(_0x37be16,this['_model'])),_0x10ef27=_0x524ebe['is']('range')?_0x524ebe:tn(_0x524ebe,this['_model']);if(this['_trackingSessionId']&&(_0x13f6da['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x897b67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x883c66,'accept');return this['forceDefaultExecution'](()=>_0x897b67([_0x10ef27],_0x1e41be,_0x13f6da)),null;}_0x4fad56['push'](_0x10ef27);let _0x427db7=!0x0;for(const _0x28fafe of _0x4fad56)if(!this['_rangeIsInLocalUserInsertion'](_0x28fafe)){_0x427db7=!0x1;break;}if(_0x427db7&&'always'!==this['_trackFormatChanges']){const _0x196f37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x883c66,'accept');return this['forceDefaultExecution'](()=>_0x196f37([_0x10ef27],_0x1e41be,_0x13f6da)),null;}let _0x345cd3=null,_0x4a3316=_0x10ef27['start'],_0x2beb0=_0x10ef27['end'];for(const {suggestion:_0x44cb02,meta:_0x2aa932}of this['_findSuggestions'](_0x10ef27,'formatBlock')){if(!_0x2aa932['isOwn'])continue;if(_0x2aa932['isNextTo']||_0x2aa932['containsRangeInObject']||_0x2aa932['isInsideObject'])continue;if(_0x44cb02['data']['formatGroupId']!=_0x1e41be['formatGroupId'])continue;if(!sn(_0x44cb02,_0x13f6da))continue;const _0x250e4e=_0x44cb02['getFirstRange']();if(_0x44cb02['subType']==_0x883c66){if(_0x250e4e['containsRange'](_0x10ef27,!0x0))return null;_0x4a3316=_0x4a3316['isBefore'](_0x250e4e['start'])?_0x4a3316:_0x250e4e['start'],_0x2beb0=_0x2beb0['isAfter'](_0x250e4e['end'])?_0x2beb0:_0x250e4e['end'],_0x345cd3?_0x250e4e['start']['isBefore'](_0x345cd3['getFirstRange']()['start'])?(_0x345cd3['removeMarkers'](),_0x345cd3=_0x44cb02):_0x44cb02['removeMarkers']():_0x345cd3=_0x44cb02;}else{const _0x52e87e=_0x10ef27['getIntersection'](_0x250e4e);this['_cutOutSuggestionMarker'](_0x44cb02,_0x52e87e);}}const _0x6c4c72=this['editor']['plugins']['get']('Users')['me'],_0x56c372=_0x5e874e(),_0x459b68=_0x6c4c72['id'];if(_0x345cd3)return this['_setSuggestionRange'](_0x345cd3,this['_model']['createRange'](_0x4a3316,_0x2beb0)),_0x345cd3;{const _0x12d94c=this['_setSuggestionData']({'id':_0x56c372,'type':'formatBlock:'+_0x883c66,'data':_0x1e41be,'createdAt':new Date(),'authorId':_0x459b68,'attributes':_0x13f6da});return this['_addSuggestionMarker']('formatBlock:'+_0x883c66,_0x56c372,_0x459b68,this['_model']['createRange'](_0x4a3316,_0x2beb0)),_0x12d94c;}}['markMultiRangeBlockFormat'](_0x3c69e5,_0x3e9238,_0x452369=[],_0x1fd581=null,_0x273016={}){_0x3e9238['formatGroupId']||(_0x3e9238['formatGroupId']=_0x3e9238['commandName']);const _0x14827e=_0x3c69e5[0x0];_0x3e9238['multipleBlocks']=_0x14827e['is']('range'),_0x1fd581=_0x1fd581||Ht(_0x3e9238);const _0x243879=_0x452369['map'](_0x528918=>tn(_0x528918,this['_model'])),_0x17d0e1=_0x14827e['is']('range')?_0x3c69e5:_0x3c69e5['map'](_0x33bcf1=>tn(_0x33bcf1,this['_model']));if(this['_trackingSessionId']&&(_0x273016['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4dd9e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd581,'accept');return this['forceDefaultExecution'](()=>_0x4dd9e2(_0x17d0e1,_0x3e9238,_0x273016)),null;}_0x243879['push'](..._0x17d0e1);let _0x40d0b0=!0x0;for(const _0x78b39f of _0x243879)if(!this['_rangeIsInLocalUserInsertion'](_0x78b39f)){_0x40d0b0=!0x1;break;}if(_0x40d0b0&&'always'!==this['_trackFormatChanges']){const _0x56565a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd581,'accept');return this['forceDefaultExecution'](()=>_0x56565a(_0x17d0e1,_0x3e9238,_0x273016)),null;}const _0x560bfc=this['editor']['plugins']['get']('Users')['me'];for(const _0x139536 of this['getSuggestions']()){const _0x2892b0=_0x139536['data'];if(_0x139536['author']['id']!=_0x560bfc['id'])continue;if('formatBlock'!=_0x139536['type']||_0x2892b0['formatGroupId']!=_0x3e9238['formatGroupId'])continue;if(!sn(_0x139536,_0x273016))continue;const _0x25fc3e=_0x139536['subType']==_0x1fd581;for(let _0x2935b0=0x0;_0x2935b0<_0x17d0e1['length'];_0x2935b0++){const _0x52c4b9=_0x17d0e1[_0x2935b0];for(const _0x1b18df of _0x139536['getMarkers']()){const _0x342eec=_0x1b18df['getRange']();if(_0x52c4b9['isEqual'](_0x342eec)){_0x25fc3e?(_0x17d0e1['splice'](_0x2935b0,0x1),_0x2935b0--):_0x139536['removeMarker'](_0x1b18df['name']);break;}}}}if(0x0==_0x17d0e1['length'])return null;const _0x50140e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd581,'join');for(const _0xd4aaad of this['getSuggestions']()){const _0x372798=_0xd4aaad['data'];if(_0xd4aaad['author']['id']==_0x560bfc['id']&&('formatBlock'==_0xd4aaad['type']&&_0x372798['formatGroupId']==_0x3e9238['formatGroupId']&&_0xd4aaad['subType']==_0x1fd581&&sn(_0xd4aaad,_0x273016)&&(_0x50140e(_0xd4aaad['getRanges'](),_0x17d0e1)||_0x50140e(_0x17d0e1,_0xd4aaad['getRanges']())))){for(const _0x12ca63 of _0x17d0e1)_0xd4aaad['addRange'](_0x12ca63);return _0xd4aaad;}}const _0x18127b=_0x5e874e(),_0x25297b=_0x560bfc['id'],_0x4dfeed='formatBlock:'+_0x1fd581,_0x2ba2ae=this['_setSuggestionData']({'id':_0x18127b,'type':_0x4dfeed,'data':_0x3e9238,'createdAt':new Date(),'authorId':_0x25297b,'attributes':_0x273016});for(const _0x23a43a of _0x17d0e1)this['_addSuggestionMarker'](_0x4dfeed,_0x18127b,_0x25297b,_0x23a43a,x['getMultiRangeId']());return _0x2ba2ae;}['markDeletion'](_0x325099,_0x14bb64=null,_0x5d9ced={}){if(_0x325099['isCollapsed'])return null;const _0x2a6df2=this['editor']['plugins']['get']('Users')['me'],_0xc3e0c8=new _0x5af68e(_0x325099['start'],_0x325099['end']);this['_trackingSessionId']&&(_0x5d9ced['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a7acd,meta:_0x16688d}of this['_findSuggestions'](_0xc3e0c8,'insertion'))if(_0x16688d['isOwn']&&!_0x16688d['isNextTo']){if(_0x1a7acd['isMultiRange']){const _0x242dbc=_0x1a7acd['getRanges']()['filter'](_0x59e0f4=>'$graveyard'!=_0x59e0f4['root']['rootName']);_0x242dbc['every'](_0x7c300=>_0xc3e0c8['containsRange'](_0x7c300,!0x0))&&_0x1a7acd['discard']();if(_0x242dbc['some'](_0x5d9bf9=>_0x5d9bf9['containsRange'](_0xc3e0c8,!0x0))){const _0x4f6621=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x14bb64,'accept');return this['forceDefaultExecution'](()=>_0x4f6621([_0xc3e0c8],null,_0x5d9ced)),null;}}else{const _0x3ed953=_0xc3e0c8['getIntersection'](_0x1a7acd['getFirstRange']());null!==_0x3ed953&&_0x1a7acd['_onDiscard']([_0x3ed953],null,_0x5d9ced);}}if(_0xc3e0c8['detach'](),_0xc3e0c8['isCollapsed']||'$graveyard'==_0xc3e0c8['root']['rootName'])return null;let _0x5978f6=null,_0x5363ca=_0xc3e0c8['start'],_0x47f9ff=_0xc3e0c8['end'];const _0x13a3bf=this['_findSuggestions'](_0xc3e0c8,'deletion');for(const {suggestion:_0x4ec3d3,meta:_0xd87af}of _0x13a3bf){const _0x5d6317=this['_model']['createRange'](_0x5363ca,_0x47f9ff);if(_0xd87af['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd87af['containsRangeInObject']&&!_0xd87af['isInsideObject'])){if(_0x4ec3d3['isMultiRange']){if(!sn(_0x4ec3d3,_0x5d9ced))continue;let _0x397413=!0x0;for(const _0x5896cf of _0x4ec3d3['getRanges']()){if(_0x5896cf['containsRange'](_0x5d6317,!0x0))return _0x4ec3d3;_0x5d6317['containsRange'](_0x5896cf)||(_0x397413=!0x1);}_0x397413&&_0x4ec3d3['discard']();}else{const _0x2e6549=_0x4ec3d3['getFirstRange']();if(_0x2e6549['containsRange'](_0x5d6317,!0x0))return _0x4ec3d3;if(!sn(_0x4ec3d3,_0x5d9ced)){_0x5d6317['containsRange'](_0x2e6549)?_0x4ec3d3['removeMarkers']():_0x2e6549['containsPosition'](_0x5363ca)?_0x5363ca=_0x2e6549['end']:_0x2e6549['containsPosition'](_0x47f9ff)&&(_0x47f9ff=_0x2e6549['start']);continue;}_0x5363ca=_0x5363ca['isBefore'](_0x2e6549['start'])?_0x5363ca:_0x2e6549['start'],_0x47f9ff=_0x47f9ff['isAfter'](_0x2e6549['end'])?_0x47f9ff:_0x2e6549['end'],_0x5d9ced=Object['assign']({},_0x4ec3d3['attributes']),_0x5978f6?_0x2e6549['start']['isBefore'](_0x5978f6['getFirstRange']()['start'])?(_0x5978f6['removeMarkers'](),_0x5978f6=_0x4ec3d3):_0x4ec3d3['removeMarkers']():_0x5978f6=_0x4ec3d3;}}}if(_0x5978f6)return this['_setSuggestionRange'](_0x5978f6,this['_model']['createRange'](_0x5363ca,_0x47f9ff)),_0x5978f6;{const _0x80e17c=_0x5e874e(),_0x329c1e=this['_model']['createRange'](_0x5363ca,_0x47f9ff),_0x3582ba=_0x2a6df2['id'],_0x44fc6b=_0x14bb64?'deletion:'+_0x14bb64:'deletion',_0x9c496f=this['_setSuggestionData']({'id':_0x80e17c,'type':_0x44fc6b,'createdAt':new Date(),'authorId':_0x3582ba,'attributes':_0x5d9ced});return this['_addSuggestionMarker'](_0x44fc6b,_0x80e17c,_0x3582ba,_0x329c1e),_0x9c496f;}}['markMultiRangeDeletion'](_0x4ddf7e,_0x112312='multi',_0x31663d={}){const _0x196ca2=this['editor']['plugins']['get']('Users')['me'],_0x2bd68d=_0x4ddf7e['map'](_0x5b1e59=>new _0x5af68e(_0x5b1e59['start'],_0x5b1e59['end'])),_0x1dec09=new Set();this['_trackingSessionId']&&(_0x31663d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3815e1,meta:_0x3e0700}of this['_findSuggestions'](_0x2bd68d,'insertion'))_0x3e0700['isOwn']&&!_0x3e0700['isNextTo']&&_0x1dec09['add'](_0x3815e1);for(const _0x131f24 of _0x1dec09)if(_0x131f24['isMultiRange']){const _0x1a2388=_0x131f24['getRanges']();(!_0x131f24['attributes']||!_0x131f24['attributes']['skipNestingCheck'])&&(_0x1a2388['every'](_0x1ef60f=>_0x2bd68d['some'](_0x568bf1=>_0x568bf1['containsRange'](_0x1ef60f,!0x0)))&&_0x131f24['discard']());if(_0x2bd68d['every'](_0x4e56eb=>_0x1a2388['some'](_0x39478a=>_0x39478a['containsRange'](_0x4e56eb,!0x0)))){const _0x4baa1a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x112312,'accept');return this['forceDefaultExecution'](()=>_0x4baa1a(_0x4ddf7e,null,_0x31663d)),null;}}else{const _0x38e510=_0x131f24['getFirstRange']();_0x2bd68d['some'](_0x401a1b=>_0x401a1b['containsRange'](_0x38e510,!0x0))&&_0x131f24['discard']();if(_0x2bd68d['every'](_0x5dd239=>_0x38e510['containsRange'](_0x5dd239,!0x0))){const _0xa57ce8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x112312,'accept');return this['forceDefaultExecution'](()=>_0xa57ce8(_0x2bd68d,null,_0x31663d)),null;}}const _0x5d0300=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x112312,'join');let _0x231456=null;for(const _0x1281a3 of this['getSuggestions']())if(_0x1281a3['author']['id']==_0x196ca2['id']&&_0x1281a3['isInContent']&&'deletion'==_0x1281a3['type']&&_0x1281a3['subType']==_0x112312&&sn(_0x1281a3,_0x31663d)&&(_0x5d0300(_0x1281a3['getRanges'](),_0x2bd68d)||_0x5d0300(_0x2bd68d,_0x1281a3['getRanges']()))){if(_0x231456){if(_0x1281a3['commentThread']&&_0x1281a3['commentThread']['length'])continue;for(const _0x248a96 of _0x1281a3['getRanges']())_0x231456['isIntersectingWithRange'](_0x248a96)||_0x231456['addRange'](_0x248a96);_0x1281a3['removeMarkers']();}else{_0x231456=_0x1281a3;for(const _0x1ff28c of _0x2bd68d)_0x1281a3['isIntersectingWithRange'](_0x1ff28c)||_0x1281a3['addRange'](_0x1ff28c);}}if(_0x231456)return _0x231456;_0x1dec09['clear']();for(const {suggestion:_0x120560,meta:_0x3c68a8}of this['_findSuggestions'](_0x2bd68d,'deletion'))_0x3c68a8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c68a8['containsRangeInObject']&&!_0x3c68a8['isInsideObject'])&&sn(_0x120560,_0x31663d)&&_0x1dec09['add'](_0x120560);for(const _0x4af879 of _0x1dec09){const _0x427ab2=_0x4af879['getRanges']();if(!_0x31663d||!_0x31663d['skipNestingCheck']){if(_0x2bd68d['every'](_0x582ee9=>_0x427ab2['some'](_0x18bc2c=>_0x18bc2c['containsRange'](_0x582ee9,!0x0))))return _0x4af879;}(!_0x4af879['attributes']||!_0x4af879['attributes']['skipNestingCheck'])&&(_0x427ab2['every'](_0x5c98d5=>_0x2bd68d['some'](_0x27632a=>_0x27632a['containsRange'](_0x5c98d5,!0x0)))&&_0x4af879['discard']());}const _0x4443a1=_0x5e874e(),_0x52b3d4=_0x196ca2['id'],_0x1e133f='deletion:'+_0x112312,_0x4a6641=this['_setSuggestionData']({'id':_0x4443a1,'type':_0x1e133f,'createdAt':new Date(),'authorId':_0x52b3d4,'attributes':_0x31663d});for(const _0x2607fd of _0x2bd68d)_0x2607fd['detach'](),_0x2607fd['isCollapsed']||'$graveyard'==_0x2607fd['root']['rootName']||this['_addSuggestionMarker'](_0x1e133f,_0x4443a1,_0x52b3d4,_0x2607fd,x['getMultiRangeId']());return _0x4a6641;}['markAttributeChange'](_0x2dda7d,_0x2437bc,_0x4e0631,_0x368fc3,_0x486d6c){if(_0x2dda7d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc7c83e=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6bd0=Array['from'](this['_suggestions']['values']())['filter'](_0x46c036=>'attribute'==_0x46c036['type']&&_0x46c036['data']['key']==_0x2437bc&&_0x46c036['isIntersectingWithRange'](_0x2dda7d));if(this['_trackingSessionId']&&(_0x486d6c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x33700a=this['_findSuggestions'](_0x2dda7d,'insertion')['filter'](({meta:_0x38715e})=>_0x38715e['isOwn']&&!_0x38715e['isInsideObject']&&!_0x38715e['isNextTo'])['map'](({suggestion:_0x237e88})=>_0x237e88);_0x2f6bd0['unshift'](..._0x33700a);}const _0x48fb2c=new Map([[_0x2dda7d,_0x4e0631]]);for(const _0x2111f5 of _0x2f6bd0){const _0x280459='attribute'==_0x2111f5['type']?_0x2111f5['data']['oldValue']:void 0x0,_0x3de550=_0x2111f5['getFirstRange'](),_0x1a6210=Array['from'](_0x48fb2c['keys']())['find'](_0x3c1080=>_0x3c1080['isIntersecting'](_0x3de550));if(!_0x1a6210)continue;const _0x3fcdb7=_0x1a6210['getDifference'](_0x3de550);this['_isBlockAttribute'](_0x2437bc)&&'insertion'==_0x2111f5['type']&&0x0!=_0x3fcdb7['length']||(_0x48fb2c['delete'](_0x1a6210),_0x3fcdb7['forEach'](_0x2f0c7f=>{_0x48fb2c['set'](_0x2f0c7f,_0x4e0631);}),'insertion'!=_0x2111f5['type']&&_0x280459!=_0x368fc3&&_0x48fb2c['set'](_0x1a6210['getIntersection'](_0x3de550),_0x280459));}const _0x1736a7=[];for(const [_0x4e6ff6,_0xf8b16e]of _0x48fb2c){const _0xd89706=_0x5e874e(),_0x4ad15f={'key':_0x2437bc,'oldValue':_0xf8b16e,'newValue':_0x368fc3};_0x2437bc['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':_0x2437bc});const _0xf23b1b=('attribute:'+(_0x2437bc+'|'+Ht({'newValue':_0x368fc3})))['substring'](0x0,0x3c),_0x30b65c=this['_setSuggestionData']({'id':_0xd89706,'type':_0xf23b1b,'data':_0x4ad15f,'createdAt':new Date(),'authorId':_0xc7c83e,'attributes':_0x486d6c});_0x1736a7['push'](_0x30b65c),this['_addSuggestionMarker'](_0xf23b1b,_0xd89706,_0xc7c83e,_0x4e6ff6);}return _0x1736a7;}['enableDefaultAttributesIntegration'](_0x2d885f){this['enableCommand'](_0x2d885f,(_0x56bdf4,..._0x36c757)=>{this['recordAttributeChanges'](()=>{_0x56bdf4(..._0x36c757);});});}['registerBlockAttribute'](_0x186343){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x186343);}['registerInlineAttribute'](_0x4be221){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x4be221);}['startTrackingSession'](_0x3ea807){return this['_trackingSessionId']=void 0x0!==_0x3ea807?_0x3ea807:_0x5e874e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4c7ca6){return'attribute'==_0x4c7ca6['type']?_0x4c7ca6['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x2c0405){if(0x0==_0x2c0405['length'])return;const _0x2e4318=this['editor'],_0x2dfd66=_0x2e4318['plugins']['get'](_0x43fc24),_0x1a2794=[];_0x2e4318['model']['change'](_0xef03f6=>{for(let _0x1abf72=0x0;_0x1abf72<_0x2c0405['length'];_0x1abf72++){const _0x374e38=_0x2c0405[_0x1abf72];if(_0x374e38['baseVersion']=_0x2e4318['model']['document']['version'],_0x374e38['isDocumentOperation']=!0x0,_0x2dfd66['isMarkedRemoveOperation'](_0x374e38)){const _0x39175b=Lt(_0x374e38['newRange'],_0x2e4318['model']);_0x1a2794['unshift'](_0x5af68e['fromRange'](_0x39175b));}else switch(_0x374e38['type']){case'rename':{const _0x100a6d=_0x374e38['oldName'],_0x3b4f9a=_0x374e38['newName'];if(_0x100a6d==_0x3b4f9a)break;_0xef03f6['batch']['addOperation'](_0x374e38),_0x2e4318['model']['applyOperation'](_0x374e38);const _0x1fd9f4='$elementName',_0x382da8=_0x374e38['position'],_0x53f3f4=_0x2e4318['model']['createRange'](_0x382da8,_0x2e4318['model']['createPositionAt'](_0x382da8['nodeAfter'],'end'));this['markAttributeChange'](_0x53f3f4,_0x1fd9f4,_0x100a6d,_0x3b4f9a,{'groupId':_0x5e874e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x466718=_0x374e38['oldValue'],_0x553ff0=_0x374e38['newValue'];if(_0x466718==_0x553ff0)break;_0xef03f6['batch']['addOperation'](_0x374e38),_0x2e4318['model']['applyOperation'](_0x374e38);const _0x1acc8a=_0x374e38['key'];if(!this['_isRegisteredAttribute'](_0x1acc8a))break;const _0x5a63a3=Lt(_0x374e38['range'],_0x2e4318['model']);this['markAttributeChange'](_0x5a63a3,_0x1acc8a,_0x466718,_0x553ff0,{'groupId':_0x5e874e()});break;}case'insert':{_0xef03f6['batch']['addOperation'](_0x374e38),_0x2e4318['model']['applyOperation'](_0x374e38);if(_0x2c0405[_0x1abf72+0x1]&&'move'==_0x2c0405[_0x1abf72+0x1]['type'])break;const _0x23f305=_0x374e38['position'],_0x15cadd=_0x374e38['howMany'],_0x405865=Lt(_0x2e4318['model']['createRange'](_0x23f305,_0x23f305['getShiftedBy'](_0x15cadd)),_0x2e4318['model']);this['markInsertion'](_0x405865);break;}case'split':{_0xef03f6['batch']['addOperation'](_0x374e38),_0x2e4318['model']['applyOperation'](_0x374e38);const _0x4f52fc=_0x374e38['splitPosition'],_0x23188a=_0x374e38['moveTargetPosition'];this['markInsertion'](_0x2e4318['model']['createRange'](_0x4f52fc,_0x23188a));break;}case'move':case'remove':_0xef03f6['batch']['addOperation'](_0x374e38),_0x2e4318['model']['applyOperation'](_0x374e38);}}for(const _0x1db3b4 of _0x1a2794)_0x1db3b4['detach'](),this['markDeletion'](_0x1db3b4);});}['_setSuggestionRange'](_0x42815a,_0x77704b){const _0x494cb7=_0x42815a['getFirstMarker']();this['_model']['change'](_0x43089a=>{_0x43089a['updateMarker'](_0x494cb7,{'range':_0x77704b});});}['_addThreadToSuggestion'](_0x2fcea7){const _0x352c20=_0x2fcea7['id'],_0x51ee18=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x352c20)||this['_commentsRepository']['addCommentThread']({'channelId':_0x51ee18,'threadId':_0x352c20,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x364c10=this['_commentsRepository']['getCommentThread'](_0x352c20);_0x364c10['unbind']('isRemovable'),_0x364c10['isRemovable']=!0x1,_0x2fcea7['commentThread']=_0x364c10;}['_checkSuggestionCorrectness'](_0x2117ef,_0x131671,_0xefa1a9,_0x3f7d5c){if(_0x2117ef['type']!=_0x131671||_0x2117ef['subType']!=_0xefa1a9||_0x2117ef['creator']['id']!=_0x3f7d5c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a89fc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x435ef9,_0x5e7e41){const _0x22c5e5=_0x435ef9['getFirstRange']();if(_0x5e7e41['isEqual'](_0x22c5e5))_0x435ef9['removeMarkers']();else{if(_0x22c5e5['containsRange'](_0x5e7e41)){const _0x40b1f0=this['_model']['createPositionAt'](_0x5e7e41['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x435ef9,this['_model']['createRange'](_0x22c5e5['start'],_0x40b1f0));const _0x4b318e=_0x5e874e(),_0x30fa5a=_0x435ef9['creator']['id'],_0x140dd1=_0x435ef9['type']+':'+_0x435ef9['subType'];this['_setSuggestionData']({'id':_0x4b318e,'type':_0x140dd1,'createdAt':new Date(),'authorId':_0x30fa5a,'data':_0x435ef9['data'],'attributes':_0x435ef9['attributes']});const _0x570e29=this['_model']['createPositionAt'](_0x5e7e41['end']['parent'],'after'),_0x344403=this['_model']['createRange'](_0x570e29,_0x22c5e5['end']);this['_addSuggestionMarker'](_0x140dd1,_0x4b318e,_0x30fa5a,_0x344403);}else{if(_0x22c5e5['containsPosition'](_0x5e7e41['start'])){const _0x50a2d5=this['_model']['createPositionAt'](_0x5e7e41['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x435ef9,this['_model']['createRange'](_0x22c5e5['start'],_0x50a2d5));}else{const _0x4fd4db=this['_model']['createPositionAt'](_0x5e7e41['end']['parent'],'after');this['_setSuggestionRange'](_0x435ef9,this['_model']['createRange'](_0x4fd4db,_0x22c5e5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x40271a){for(const {suggestion:_0x2a7d20,meta:_0x540f64}of this['_findSuggestions'](_0x40271a,'insertion')){if(!_0x540f64['isOwn'])continue;const _0x4717e7=_0x2a7d20['getRanges']();for(const _0x230b58 of _0x4717e7)if(!_0x40271a['getDifference'](_0x230b58)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x226c59){return this['editor']['plugins']['get']('Users')['getUser'](_0x226c59);}['_getExternalAuthor'](_0x303d17){const _0x48e3be=this['editor']['plugins']['get']('Users'),_0x29436a=_0x6671e8('external:'+_0x303d17),_0x564344=_0x48e3be['getUser'](_0x29436a);return _0x564344||_0x48e3be['addUser']({'id':_0x29436a,'name':_0x303d17});}['_createSuggestion'](_0x4eb869,_0x487b5e,_0x2f3396,_0x51ba8c,_0x16d53e,_0x32005c){const _0x37f477=this['_getAuthorFromId'](_0x51ba8c);if(!_0x37f477)throw new _0x5a89fc('track-changes-user-not-found',this,{'authorId':_0x51ba8c,'suggestionId':_0x2f3396});const _0x4db99f=this['_suggestionFactory']['buildSuggestion'](_0x4eb869,_0x487b5e,_0x2f3396,_0x37f477,_0x16d53e,_0x124871=>{this['_updateSuggestionData'](_0x2f3396,{'attributes':_0x124871});const _0x131268=this['getSuggestion'](_0x2f3396);this['_joinWithAdjacentSuggestions'](new Set([_0x131268])),this['_refreshSuggestionsChain'](new Set([_0x131268]));},_0x32005c);return this['listenTo'](_0x4db99f,'accept',()=>{this['_updateSuggestionData'](_0x2f3396,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4db99f,'discard',()=>{this['_updateSuggestionData'](_0x2f3396,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f3396,_0x4db99f),this['_suggestionState']['set'](_0x4db99f,'notReady'),_0x4db99f;}['_splitMarkerName'](_0x4faf9a){return Gt(_0x4faf9a);}['_breakSuggestionMarker'](_0x4a1927,_0x2c722d,_0x278c31){const _0x2b7325=_0x4a1927['getFirstRange'](),_0x2df87c=_0x2b7325['start'],_0x1776ab=_0x2b7325['end'];this['_setSuggestionRange'](_0x4a1927,this['_model']['createRange'](_0x2df87c,_0x2c722d));const _0x419c08=_0x5e874e(),_0x168051=_0x4a1927['creator']['id'],_0x2e8110=_0x4a1927['type']+(_0x4a1927['subType']?':'+_0x4a1927['subType']:'');this['_setSuggestionData']({'id':_0x419c08,'type':_0x2e8110,'createdAt':new Date(),'authorId':_0x168051,'originalSuggestionId':_0x4a1927['_originalSuggestionId']||_0x4a1927['id'],'attributes':_0x4a1927['attributes'],'data':_0x4a1927['data']});const _0x4a0e50=this['_getAttributeKey'](_0x4a1927);('formatBlock'==_0x4a1927['type']||_0x4a0e50&&this['_isBlockAttribute'](_0x4a0e50))&&(_0x278c31=this['_model']['createPositionBefore'](_0x278c31['parent'])),this['_addSuggestionMarker'](_0x2e8110,_0x419c08,_0x168051,this['_model']['createRange'](_0x278c31,_0x1776ab));}['_findSuggestions'](_0x132f45,_0x433cc1=null){const _0x322d9f=[],_0x3f50b6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x132f45)||(_0x132f45=[_0x132f45]);for(const _0xf70ec of this['getSuggestions']()){if(!_0xf70ec['isInContent'])continue;if(_0x433cc1&&_0xf70ec['type']!=_0x433cc1)continue;let _0x9a4719=!0x1;for(const _0x25d096 of _0xf70ec['getRanges']()){for(const _0x3dfe04 of _0x132f45){const _0x178dce=_0x3dfe04['start']['isEqual'](_0x25d096['end'])||_0x3dfe04['end']['isEqual'](_0x25d096['start']);if(_0x178dce||_0x3dfe04['getIntersection'](_0x25d096)){const _0x25cff9=_0x3dfe04['containsRange'](_0x25d096)&&zt(this['_model']['schema'],_0x25d096['start'],_0x3dfe04),_0x2596d5=_0x25d096['containsRange'](_0x3dfe04)&&zt(this['_model']['schema'],_0x3dfe04['start'],_0x25d096);_0x322d9f['push']({'suggestion':_0xf70ec,'meta':{'isOwn':_0x3f50b6==_0xf70ec['author'],'isNextTo':_0x178dce,'isInsideObject':_0x25cff9,'containsRangeInObject':_0x2596d5}}),_0x9a4719=!0x0;break;}}if(_0x9a4719)break;}}return _0x322d9f;}['_addSuggestionMarker'](_0x199590,_0x558ef2,_0x206717,_0x19dc99,_0x45a92b){this['_model']['change'](_0x5c773a=>{let _0x4c4223='suggestion:'+_0x199590+':'+_0x558ef2+':'+_0x206717;_0x45a92b&&(_0x4c4223=_0x4c4223+':'+_0x45a92b),_0x5c773a['addMarker'](_0x4c4223,{'range':_0x19dc99,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x173018){const _0x5305fb=_0x173018['previous'],_0x4edb25=_0x173018['next'];_0x173018['previous']=null,_0x173018['next']=null,null!=_0x5305fb&&_0x5305fb['next']==_0x173018&&(_0x5305fb['next']=_0x4edb25),null!=_0x4edb25&&_0x4edb25['previous']==_0x173018&&(_0x4edb25['previous']=_0x5305fb),'ready'==this['_suggestionState']['get'](_0x173018)&&(this['_suggestionState']['set'](_0x173018,'removed'),this['fire']('suggestionUnloaded',_0x173018,_0x5305fb,_0x4edb25));}['_setSuggestionData'](_0x3b80dc){const _0x2dd3ad=_0x3b80dc['id'],_0x1ca97a=this['addSuggestionData'](_0x3b80dc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f7eca=this['editor']['plugins']['get']('PendingActions'),_0x166d3a=_0x1ca97a['hasComments'],_0x4cda03=_0x1ca97a['subType']?_0x1ca97a['type']+':'+_0x1ca97a['subType']:_0x1ca97a['type'],_0x36c1ea=this['editor']['locale'],_0x325db6=_0x2f7eca['add'](o(_0x36c1ea,'PENDING_ACTION_SUGGESTION')),_0x59add3={'id':_0x2dd3ad,'type':_0x4cda03,'hasComments':_0x166d3a,'data':_0x3b80dc['data']||null,'originalSuggestionId':_0x3b80dc['originalSuggestionId']||null,'attributes':_0x1ca97a['attributes']};this['_adapter']['addSuggestion'](_0x59add3)['then'](_0x4781a8=>{_0x1ca97a['_saved']=!0x0,_0x2f7eca['remove'](_0x325db6),_0x4781a8&&_0x4781a8['createdAt']&&(this['_suggestions']['get'](_0x2dd3ad)['createdAt']=_0x4781a8['createdAt']);})['catch'](_0x52dcf8=>{throw _0x3f8597('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1ca97a['discard']();}),_0x1ca97a['stopListening'](),this['_suggestions']['delete'](_0x1ca97a['id']),this['_suggestionState']['delete'](_0x1ca97a),_0x52dcf8;});}return _0x1ca97a;}['_isBlockAttribute'](_0xdc191c){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0xdc191c);}['_isInlineAttribute'](_0x523de6){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x523de6);}['_updateSuggestionData'](_0x52bdd0,_0x38d809){const _0x9dfc3a=this['editor']['plugins']['get']('PendingActions'),_0x11a18e=this['getSuggestion'](_0x52bdd0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x11a18e['_saved']){const _0x343a61=_0x9dfc3a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x52bdd0,_0x38d809)['then'](()=>{_0x9dfc3a['remove'](_0x343a61);});}else _0x11a18e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x52bdd0,_0x38d809);});}}['_getSuggestionData'](_0x4f6e5c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a89fc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f6e5c);}['_handleNewSuggestionMarker'](_0x565714){const {id:_0x567746,type:_0x2db9c9,subType:_0x9815f,authorId:_0x558007}=this['_splitMarkerName'](_0x565714),_0x29dc59=this['_suggestions']['get'](_0x567746)||this['_createSuggestion'](_0x2db9c9,_0x9815f,_0x567746,_0x558007,{});switch(this['_checkSuggestionCorrectness'](_0x29dc59,_0x2db9c9,_0x9815f,_0x558007),this['_suggestionState']['get'](_0x29dc59)){case'notReady':this['_getSuggestionData'](_0x567746)['then'](_0x18b7de=>{let _0x3122cc=Promise['resolve']();_0x18b7de['hasComments']&&(_0x3122cc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x567746})),_0x3122cc['then'](()=>{this['addSuggestionData'](_0x18b7de)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29dc59,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x567746,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29dc59,'ready'),this['fire']('suggestionLoaded',_0x29dc59);break;case'ready':this['fire']('suggestionChanged',_0x29dc59);}return _0x29dc59['addMarkerName'](_0x565714),_0x29dc59;}['_refreshSuggestionsChain'](_0x1d9673){const _0xcf72b=Array['from'](_0x1d9673),_0x3080a3=_0xcf72b['filter'](_0x44f69e=>'attribute'==_0x44f69e['type']);this['_refreshAttributeSuggestionsChain'](_0x3080a3);const _0xa8b088=_0xcf72b['filter'](_0x3378b6=>!_0x3378b6['isMultiRange']&&'attribute'!=_0x3378b6['type']),_0x19b1dd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd5dcd3=>!_0xd5dcd3['isMultiRange']&&'attribute'!=_0xd5dcd3['type']),_0x39af1d=_0x19b1dd['filter'](_0x11a386=>!_0x1d9673['has'](_0x11a386)),_0x3f8e1b=new Map(_0x19b1dd['map'](_0x339bce=>[_0x339bce,this['_suggestionFactory']['getSuggestionCallback'](_0x339bce['type'],_0x339bce['subType'],'chain')])),_0x1c00eb=new Map(_0x19b1dd['map'](_0x2c13b6=>[_0x2c13b6,_0x2c13b6['getFirstRange']()])),_0x478703=new Set(),_0x19f94b=new Set();for(let _0x4532af=0x0;_0x4532af<_0xa8b088['length'];_0x4532af++)_0x2167fb(_0xa8b088[_0x4532af],_0xa8b088,_0x4532af+0x1);for(let _0x3ba492=0x0;_0x3ba492<_0xa8b088['length'];_0x3ba492++)_0x2167fb(_0xa8b088[_0x3ba492],_0x39af1d,0x0);const _0x57a5cc=new Set();for(let _0x46ead5=0x0;_0x46ead5<_0xa8b088['length'];_0x46ead5++){const _0x124bc2=_0xa8b088[_0x46ead5];!_0x19f94b['has'](_0x124bc2)&&_0x124bc2['previous']&&(_0x57a5cc['add'](_0x124bc2['previous']),_0x124bc2['previous']['next']===_0x124bc2&&(_0x124bc2['previous']['next']=null),_0x124bc2['previous']=null),!_0x478703['has'](_0x124bc2)&&_0x124bc2['next']&&(_0x57a5cc['add'](_0x124bc2['next']),_0x124bc2['next']['previous']===_0x124bc2&&(_0x124bc2['next']['previous']=null),_0x124bc2['next']=null);}function _0x2167fb(_0x14556b,_0x4c42e2,_0x507fdf){for(let _0x47ddee=_0x507fdf;_0x47ddee<_0x4c42e2['length'];_0x47ddee++){const _0x52bdce=_0x387c04(_0x14556b,_0x4c42e2[_0x47ddee]);_0x52bdce&&(_0x52bdce[0x0]['next']=_0x52bdce[0x1],_0x52bdce[0x1]['previous']=_0x52bdce[0x0],_0x478703['add'](_0x52bdce[0x0]),_0x19f94b['add'](_0x52bdce[0x1]));}}function _0x387c04(_0x375177,_0x1c6597){if(_0x375177['author']['id']!==_0x1c6597['author']['id'])return null;const _0x47f893=_0x3f8e1b['get'](_0x375177)(_0x375177,_0x1c6597,_0x1c00eb['get'](_0x375177),_0x1c00eb['get'](_0x1c6597));if(!_0x47f893)return null;return _0x3f8e1b['get'](_0x1c6597)(_0x375177,_0x1c6597,_0x1c00eb['get'](_0x375177),_0x1c00eb['get'](_0x1c6597))?_0x47f893[0x1]['commentThread']&&_0x47f893[0x1]['commentThread']['length']?null:_0x47f893:null;}_0x57a5cc['size']&&this['_refreshSuggestionsChain'](_0x57a5cc);}['_refreshAttributeSuggestionsChain'](_0x3d990e){if(0x0==_0x3d990e['length'])return;const _0x1cf233=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54be44=>'attribute'==_0x54be44['type']&&_0x54be44['_isDataLoaded']),_0x4c45ee=[],_0x409700=new Map();for(const _0x2de234 of _0x1cf233){const _0x32e636=_0x6671e8(_0x2de234['attributes']);_0x409700['has'](_0x32e636)||(_0x409700['set'](_0x32e636,_0x4c45ee['length']),_0x4c45ee['push']([]));const _0x378a90=_0x409700['get'](_0x32e636);_0x4c45ee[_0x378a90]['push'](_0x2de234);}!(function(){_0x4c45ee['sort']((_0x8257d7,_0x48fd48)=>{const _0x23b607=_0x8257d7[0x0]['createdAt'],_0x49df18=_0x48fd48[0x0]['createdAt'];return _0x23b607==_0x49df18?_0x8257d7[0x0]['attributes']['groupId']<_0x48fd48[0x0]['attributes']['groupId']?-0x1:0x1:_0x23b607<_0x49df18?-0x1:0x1;});for(const _0x1dcab9 of _0x4c45ee)_0x1dcab9['sort']((_0x31d845,_0x252630)=>_0x31d845['id']<_0x252630['id']?-0x1:0x1);}());for(let _0xad3b3e=0x0;_0xad3b3e<_0x4c45ee['length'];_0xad3b3e++){if(0x0==_0x4c45ee[_0xad3b3e]['length'])continue;const _0x326351=[];for(let _0x4e292c=_0xad3b3e+0x1;_0x4e292c<_0x4c45ee['length'];_0x4e292c++)0x0!=_0x4c45ee[_0x4e292c]['length']&&_0xe552a8(_0x4c45ee[_0xad3b3e],_0x4c45ee[_0x4e292c])&&_0x326351['push'](_0x4e292c);for(const _0x3d4f76 of _0x326351)_0x4c45ee[_0xad3b3e]=_0x4c45ee[_0xad3b3e]['concat'](_0x4c45ee[_0x3d4f76]),_0x4c45ee[_0x3d4f76]=[];}for(const _0x16649b of _0x4c45ee)for(let _0xad309b=0x0;_0xad309b<_0x16649b['length'];_0xad309b++){const _0x130603=_0x16649b[_0xad309b+0x1]||null;_0x16649b[_0xad309b]['next']!==_0x130603&&(_0x16649b[_0xad309b]['next']=_0x130603);}for(const _0x34fad8 of _0x4c45ee)for(let _0x475f5c=0x0;_0x475f5c<_0x34fad8['length'];_0x475f5c++){const _0x38494d=_0x34fad8[_0x475f5c-0x1]||null;_0x34fad8[_0x475f5c]['previous']!==_0x38494d&&(_0x34fad8[_0x475f5c]['previous']=_0x38494d);}function _0xe552a8(_0x42744b,_0x5a2b12){if(_0x42744b[0x0]['attributes']['groupId']!==_0x5a2b12[0x0]['attributes']['groupId']&&_0x42744b[0x0]['author']!==_0x5a2b12[0x0]['author'])return!0x1;if(!function(_0x394751,_0x289529){if(!_0x394751['hasComments']&&!_0x289529['hasComments'])return!0x0;if(_0x394751['hasComments']&&_0x289529['hasComments'])return!0x1;if(_0x394751['hasComments']&&_0x289529['createdAt']<_0x394751['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x289529['hasComments']&&_0x394751['createdAt']<_0x289529['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x42744b[0x0],_0x5a2b12[0x0]))return!0x1;const _0x1dde78=Pt(_0x42744b[0x0]['attributes'],['groupId','trackingSessionId']),_0x569d87=Pt(_0x5a2b12[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4b5a5b(_0x1dde78,_0x569d87))return!0x1;if(_0x42744b[0x0]['attributes']['groupId']==_0x5a2b12[0x0]['attributes']['groupId'])return!0x0;if(_0x42744b[0x0]['attributes']['trackingSessionId']!==_0x5a2b12[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x42744b['every'](_0x2b1eba=>_0x5a2b12['some'](_0x5ba18a=>_0x2b1eba['getFirstRange']()['isEqual'](_0x5ba18a['getFirstRange']())))&&_0x5a2b12['every'](_0x3c1664=>_0x42744b['some'](_0x17febd=>_0x3c1664['getFirstRange']()['isEqual'](_0x17febd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x510412){const _0x3ffbdb=Array['from'](_0x510412),_0x4d86d1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x216600=_0x4d86d1['filter'](_0x491e8e=>!_0x510412['has'](_0x491e8e)),_0x3dd10a=new Map(_0x3ffbdb['map'](_0x23fa15=>[_0x23fa15,this['_suggestionFactory']['getSuggestionCallback'](_0x23fa15['type'],_0x23fa15['subType'],'join')])),_0x458410=new Map(_0x4d86d1['map'](_0x386012=>[_0x386012,_0x386012['getRanges']()]));for(let _0xbf818b=0x0;_0xbf818b<_0x3ffbdb['length'];_0xbf818b++){if(_0x3aee77(this,_0x3ffbdb[_0xbf818b],_0x3ffbdb,_0xbf818b+0x1))return!0x0;}for(let _0x2652b5=0x0;_0x2652b5<_0x3ffbdb['length'];_0x2652b5++){if(_0x3aee77(this,_0x3ffbdb[_0x2652b5],_0x216600,0x0))return!0x0;}return!0x1;function _0x3aee77(_0x5a23a0,_0x2fbc1c,_0x23c4ab,_0x5203ac){for(let _0x2362ba=_0x5203ac;_0x2362ba<_0x23c4ab['length'];_0x2362ba++){const _0x248355=_0x23c4ab[_0x2362ba];if(_0x248355['type']!==_0x2fbc1c['type']||_0x248355['author']['id']!==_0x2fbc1c['author']['id']||_0x248355['subType']!==_0x2fbc1c['subType'])continue;if(!en(_0x2fbc1c,_0x248355))continue;if('attribute'==_0x2fbc1c['type']&&_0x2fbc1c['data']['oldValue']!=_0x248355['data']['oldValue'])continue;if('attribute'==_0x2fbc1c['type']&&_0x5a23a0['_isBlockAttribute'](_0x2fbc1c['data']['key']))continue;if('formatBlock'==_0x2fbc1c['type']){const _0x131249=_0x5a23a0['editor']['model'],_0x316b94=_0x2fbc1c['getContainedElement']();if(_0x316b94&&(_0x131249['schema']['isObject'](_0x316b94)||_0x131249['schema']['isLimit'](_0x316b94)))continue;}const _0x5d30d6=_0x3dd10a['get'](_0x2fbc1c),_0x50b223=_0x458410['get'](_0x2fbc1c),_0x7d482f=_0x458410['get'](_0x248355),_0x10a111=_0x2fbc1c['commentThread']&&_0x2fbc1c['commentThread']['length'],_0x52306e=_0x248355['commentThread']&&_0x248355['commentThread']['length'];if(!_0x10a111&&_0x5d30d6(_0x7d482f,_0x50b223))return _0x5a23a0['_joinSuggestions'](_0x248355,_0x2fbc1c),_0x458410['delete'](_0x2fbc1c),!0x0;if(!_0x52306e&&_0x5d30d6(_0x50b223,_0x7d482f))return _0x5a23a0['_joinSuggestions'](_0x2fbc1c,_0x248355),_0x458410['delete'](_0x248355),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42ad3b,_0x335daa){if(_0x42ad3b['isMultiRange']){for(const _0x13d5c3 of _0x335daa['getRanges']())_0x42ad3b['addRange'](_0x13d5c3);}else{const _0x897efd=_0x335daa['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42ad3b,this['_model']['createRange'](_0x42ad3b['getFirstRange']()['start'],_0x897efd));}_0x335daa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x77a04,_0x39afcf,_0x181c67){const _0xf02f94=_0x77a04['startsWith']('format')||_0x77a04['startsWith']('attribute')?'FORMATTING':_0x77a04['toUpperCase']();return o(this['editor']['locale'],_0x39afcf+'_'+_0xf02f94+'_SUGGESTION_ANNOUNCEMENT',_0x181c67);}['_initAriaMarkerChangeAnnouncements'](){const _0x4882c6=this['editor'];if(!_0x4882c6['ui'])return;const {ariaLiveAnnouncer:_0x18af81}=_0x4882c6['ui'];_0x2e4ad1(this['_model'],({left:_0x50e16e,entered:_0x61124a})=>{for(const _0x73537f of _0x50e16e){const {group:_0x43b33a,type:_0x57ccb7}=this['_splitMarkerName'](_0x73537f['name']);if('suggestion'===_0x43b33a){_0x18af81['announce'](this['_getMarkerAnnouncementText'](_0x57ccb7,'LEAVE'));break;}}for(const _0x434e75 of _0x61124a){const {group:_0x13ab8e,type:_0x5ba23e}=this['_splitMarkerName'](_0x434e75['name']);if('suggestion'===_0x13ab8e){_0x18af81['announce'](this['_getMarkerAnnouncementText'](_0x5ba23e,'ENTER',_0x585c9e(_0x3157d9)));break;}}});}['_processAttributeChanges'](_0x1519c1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x361897=this['editor'],_0x537f0d=_0x361897['model']['document']['differ']['getChanges']();if(0x0==_0x537f0d['length'])return!0x1;const _0x4b4090=[],_0x1bd6a7=_0x537f0d['filter'](_0x1b33a2=>'attribute'==_0x1b33a2['type']),_0x18460b=_0x537f0d['filter'](_0x2f284b=>'insert'==_0x2f284b['type']&&'$text'!=_0x2f284b['name']),_0x435ecd=_0x537f0d['filter'](_0x4d750a=>'remove'==_0x4d750a['type']&&'$text'!=_0x4d750a['name']);for(const _0xf4278b of _0x1bd6a7)_0x4b4090['push']({'key':_0xf4278b['attributeKey'],'newValue':_0xf4278b['attributeNewValue'],'oldValue':_0xf4278b['attributeOldValue'],'range':Zt(_0xf4278b['range'],_0x361897['model'])});for(const _0x1c6d01 of _0x18460b){const _0x38949d=_0x435ecd['find'](_0x1468da=>_0x1468da['position']['isEqual'](_0x1c6d01['position']));_0x38949d&&_0x4b4090['push']({'key':m,'newValue':_0x1c6d01['name'],'oldValue':_0x38949d['name'],'range':_0x361897['model']['createRangeOn'](_0x1c6d01['position']['nodeAfter'])});}return 0x0!=_0x4b4090['length']&&this['_reduceExistingSuggestions'](_0x1519c1,_0x4b4090);}['_processAttributeSuggestions'](_0x14d3c4){let _0x1daf38=!0x1;const _0x5d1552=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x417166=>_0x417166['data']['newRange']&&_0x417166['name']['startsWith']('suggestion:attribute:'));for(const _0x4c807a of _0x5d1552){const {subType:_0x143a10,id:_0x2652f3}=this['_splitMarkerName'](_0x4c807a['name']),_0x4b9379=_0x143a10['split']('|')[0x0];for(const _0x40a144 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x40a144['id']!=_0x2652f3&&'attribute'==_0x40a144['type']&&_0x40a144['data']&&_0x40a144['data']['key']==_0x4b9379&&_0x40a144['getFirstRange']()['isIntersecting'](_0x4c807a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x40a144,_0x4c807a['data']['newRange'],_0x14d3c4),_0x1daf38=!0x0);}return _0x1daf38;}['recordAttributeChanges'](_0x3320be){this['_recordAttributeSuggestions']=!0x0,_0x3320be();}['_isRegisteredAttribute'](_0x56f83a){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x56f83a);}['_reduceExistingSuggestions'](_0x1d264b,_0x28a623){if(0x0==_0x28a623['length'])return!0x1;let _0x18c571=!0x1;for(const _0x38712a of _0x28a623){const _0x1d69d1=this['_findSuggestions'](_0x38712a['range'],'attribute')['filter'](_0x2f1132=>!_0x2f1132['meta']['isNextTo'])['map'](_0x2334ff=>_0x2334ff['suggestion']),_0x9ebeb8=_0x6671e8({'newValue':_0x38712a['newValue']});_0x1d69d1['filter'](_0x5e3b58=>{const [_0x410379,_0x20a89a]=_0x5e3b58['subType']['split']('|');return _0x410379==_0x38712a['key']&&_0x20a89a!=_0x9ebeb8;})['forEach'](_0x2c16aa=>{this['_reduceSuggestionAttributeRange'](_0x2c16aa,_0x38712a['range'],_0x1d264b),_0x18c571=!0x0;});}return _0x18c571;}['_reduceSuggestionAttributeRange'](_0x38c285,_0x3bd119,_0x2b2762){const _0x281b00=_0x38c285['getFirstRange']()['getDifference'](_0x3bd119);0x0!==_0x281b00['length']?0x1!==_0x281b00['length']?this['_breakSuggestionMarker'](_0x38c285,_0x3bd119['start'],_0x3bd119['end']):this['_setSuggestionRange'](_0x38c285,_0x281b00[0x0]):_0x2b2762['removeMarker'](_0x38c285['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5cfbc0){this['_editor']=_0x5cfbc0,this['_model']=_0x5cfbc0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2fed4e,_0x2e24ef,_0x3ffef8,_0x172956,_0x58367c,_0x2e43b4,_0x1b07f8){return new x(this['_model'],{'type':_0x2fed4e,'subType':_0x2e24ef,'id':_0x3ffef8,'originalSuggestionId':_0x1b07f8,'author':_0x172956,'creator':_0x172956,'attributes':_0x58367c,'onAttributesChange':_0x2e43b4,'onAccept':(..._0x3df204)=>this['getSuggestionCallback'](_0x2fed4e,_0x2e24ef,'accept')(..._0x3df204),'onDiscard':(..._0x147aa7)=>this['getSuggestionCallback'](_0x2fed4e,_0x2e24ef,'discard')(..._0x147aa7)});}['registerCustomCallback'](_0x2a55f8,_0xc3e6e9,_0x5b645f,_0x26e460){const _0xf9a1eb=_0x2a55f8+':'+_0xc3e6e9+':'+_0x5b645f;this['_customCallbacks']['set'](_0xf9a1eb,_0x26e460);}['getSuggestionCallback'](_0x47f4cc,_0x45281f,_0x38aa87){const _0x3aa758=_0x47f4cc+':'+_0x45281f+':'+_0x38aa87;return this['_customCallbacks']['get'](_0x3aa758)||this['_defaultCallbacks']['get'](_0x47f4cc+':'+_0x38aa87);}['_registerDefaultCallbacks'](){const _0x2f74b7=()=>!0x1,_0x572e46=_0x39fdcb=>{_0x39fdcb['sort']((_0x55579d,_0x4c57ef)=>_0x55579d['start']['isBefore'](_0x4c57ef['start'])?0x1:-0x1),this['_model']['change'](_0x184aea=>{for(const _0x5e9cae of _0x39fdcb){let _0x20c5b8;_0x20c5b8=_0x5e9cae['end']['isAtEnd']&&_0x5e9cae['end']['parent']==_0x5e9cae['start']['nodeAfter']?_0x184aea['createSelection'](_0x5e9cae['start']['nodeAfter'],'on'):_0x184aea['createSelection'](_0x5e9cae),this['_model']['deleteContent'](_0x20c5b8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2c719b=(_0x338ea5,_0x4bd12f)=>{_0x4bd12f&&this['_model']['change'](_0x2acce5=>{const {commandName:_0xbcd1b4,commandParams:_0x558ef9=[]}=_0x4bd12f,_0x258247=_0x338ea5['map'](_0x1a5bb7=>(Kt(_0x1a5bb7)&&(_0x1a5bb7=this['_model']['createRange'](_0x1a5bb7['end'])),_0x1a5bb7))['filter'](_0xdbd094=>'$graveyard'!==_0xdbd094['root']['rootName']);if(_0x258247['length']<0x1)return;const _0x3f844e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x198f69=>_0x5af68e['fromRange'](_0x198f69));_0x2acce5['setSelection'](_0x258247);for(const _0x5570a1 of this['_editor']['commands']['commands']())_0x5570a1['refresh']();_0x558ef9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xbcd1b4,..._0x558ef9);const _0x48bb42=_0x3f844e['filter'](_0x398729=>'$graveyard'!=_0x398729['root']['rootName']);_0x48bb42['length']>0x0&&_0x2acce5['setSelection'](_0x48bb42);for(const _0x25e002 of _0x3f844e)_0x25e002['detach']();});},_0x68a3fa=(_0x21b3b6,_0x264ad9)=>0x1==_0x21b3b6['length']&&0x1==_0x264ad9['length']&&_0x21b3b6[0x0]['end']['isEqual'](_0x264ad9[0x0]['start']),_0x43aca0=(_0xb8099f,_0x19cd1b,_0x14a268,_0x5618ce)=>nn(_0xb8099f,_0x19cd1b,_0x14a268,_0x5618ce)?[_0xb8099f,_0x19cd1b]:nn(_0x19cd1b,_0xb8099f,_0x5618ce,_0x14a268)?[_0x19cd1b,_0xb8099f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f74b7),this['_defaultCallbacks']['set']('insertion:discard',_0x572e46),this['_defaultCallbacks']['set']('insertion:join',_0x68a3fa),this['_defaultCallbacks']['set']('insertion:chain',_0x43aca0),this['_defaultCallbacks']['set']('deletion:accept',_0x572e46),this['_defaultCallbacks']['set']('deletion:discard',_0x2f74b7),this['_defaultCallbacks']['set']('deletion:join',_0x68a3fa),this['_defaultCallbacks']['set']('deletion:chain',_0x43aca0),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c719b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f74b7),this['_defaultCallbacks']['set']('formatInline:join',_0x68a3fa),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f74b7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c719b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f74b7),this['_defaultCallbacks']['set']('formatBlock:join',_0x68a3fa),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f74b7),this['_defaultCallbacks']['set']('attribute:accept',_0x2f74b7),this['_defaultCallbacks']['set']('attribute:discard',(_0x335bac,_0x300595)=>{if(!_0x300595)return;const _0x20dd96=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2d3250=>{if(_0x300595['key']==m)for(const _0x3eb026 of _0x335bac){const _0x46e0a1=_0x3eb026['start']['nodeAfter'],_0xd12f45=_0x300595['oldValue'];_0x2d3250['rename'](_0x46e0a1,_0xd12f45);}else{if(_0x20dd96['_isBlockAttribute'](_0x300595['key'])){for(const _0x15d58c of _0x335bac)void 0x0!==_0x300595['oldValue']?_0x2d3250['setAttribute'](_0x300595['key'],_0x300595['oldValue'],_0x15d58c['start']['nodeAfter']):_0x2d3250['removeAttribute'](_0x300595['key'],_0x15d58c['start']['nodeAfter']);}else{for(const _0x1283f3 of _0x335bac)_0x300595['oldValue']?_0x2d3250['setAttribute'](_0x300595['key'],_0x300595['oldValue'],_0x1283f3):_0x2d3250['removeAttribute'](_0x300595['key'],_0x1283f3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x68a3fa);}}function zt(_0x118174,_0x1c4399,_0xff50bd){for(const _0xfaa509 of _0x1c4399['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xfaa509['root']==_0xfaa509)return!0x1;if(!_0xff50bd['containsItem'](_0xfaa509))return!0x1;if(_0x118174['isObject'](_0xfaa509)||_0x118174['isLimit'](_0xfaa509))return!0x0;}return!0x1;}function Kt(_0x4ee7ad){return _0x4ee7ad['end']['parent']==_0x4ee7ad['start']['nodeAfter']&&_0x4ee7ad['end']['isAtStart'];}function Wt(_0xf5cd8c,_0x5745ba,_0xe3abd0,_0x3e5f2d){const _0x332882=_0x1ccc2b=>!_0x1ccc2b['item']['is']('$textProxy')&&!_0x3e5f2d['isObject'](_0x1ccc2b['item']),_0x5d18ca=_0xf5cd8c['start']['getLastMatchingPosition'](_0x332882),_0x409317=_0xf5cd8c['end']['getLastMatchingPosition'](_0x332882,{'direction':'backward'});return(!_0xf5cd8c['start']['isEqual'](_0x5d18ca)||!_0xf5cd8c['end']['isEqual'](_0x409317))&&(_0x5d18ca['isBefore'](_0x409317)?_0xe3abd0['updateMarker'](_0x5745ba,{'range':_0xe3abd0['createRange'](_0x5d18ca,_0x409317)}):_0xe3abd0['removeMarker'](_0x5745ba),!0x0);}function Ht(_0x416888){return _0x6671e8(_0x416888);}function Qt(_0x1f7c73){const _0x3611ac=_0x1f7c73['start']['nodeAfter'];return _0x3611ac&&_0x3611ac['is']('element');}function Xt(_0xd428ed){return Kt(_0xd428ed)||function(_0x5acbf1){return _0x5acbf1['start']['parent']==_0x5acbf1['end']['nodeBefore']&&_0x5acbf1['start']['isAtEnd'];}(_0xd428ed);}function Yt(_0x21f818,_0x242244){try{const _0x5aeb24=_0x21f818['getRange']();for(const _0x21d227 of _0x242244)if(_0x21f818!==_0x21d227&&_0x5aeb24&&_0x5aeb24['isIntersecting'](_0x21d227['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x296f99,_0x6c4044){return null==_0x296f99['end']['nodeBefore']&&_0x296f99['end']['parent']==_0x296f99['start']['nodeAfter']?tn(_0x296f99['start']['nodeAfter'],_0x6c4044):_0x296f99;}function tn(_0x14049b,_0x387894){const _0x353b52=_0x387894['schema']['isObject'](_0x14049b)||_0x387894['schema']['isSelectable'](_0x14049b);return _0x387894['createRange'](_0x387894['createPositionAt'](_0x14049b,'before'),_0x353b52?_0x387894['createPositionAfter'](_0x14049b):_0x387894['createPositionAt'](_0x14049b,'end'));}function nn(_0x14b217,_0x94f862,_0x4ccd7d,_0x14ac0a){return!!en(_0x14b217,_0x94f862)&&_0x4ccd7d['end']['isEqual'](_0x14ac0a['start']);}function en(_0xafe09f,_0x3acd0a){if(!_0xafe09f['_isDataLoaded']||!_0x3acd0a['_isDataLoaded'])return!0x1;const _0x5b9032=new Set(Object['keys'](_0xafe09f['attributes'])),_0xae1c41=new Set(Object['keys'](_0x3acd0a['attributes']));if(_0x5b9032['delete']('groupId'),_0xae1c41['delete']('groupId'),0x0==_0x5b9032['size']&&0x0==_0xae1c41['size'])return!0x0;if(_0x5b9032['size']!=_0xae1c41['size'])return!0x1;const _0x21df77={..._0xafe09f['attributes']},_0x4bd590={..._0x3acd0a['attributes']};return delete _0x21df77['groupId'],delete _0x4bd590['groupId'],JSON['stringify'](_0x21df77)==JSON['stringify'](_0x4bd590);}function sn(_0x5b5c2a,_0x12f7a0){const _0x5cfa63=on(_0x5b5c2a['attributes']),_0x50e07f=on(_0x12f7a0);if(!_0x5b5c2a['_isDataLoaded'])return!0x1;for(const _0x1b5ea0 of Object['keys'](_0x50e07f))if(!_0x4b5a5b(_0x5cfa63[_0x1b5ea0],_0x50e07f[_0x1b5ea0]))return!0x1;return!0x0;}function on(_0x46a9e7){const _0x5e5633=Object['assign']({},_0x46a9e7);return delete _0x5e5633['skipNestingCheck'],delete _0x5e5633['tablePasteChainId'],_0x5e5633;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x5a9315(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5c6b88,_0x36792f,_0x181e47,_0x1a20af){super(),this['model']=_0x36792f,this['view']=_0x181e47,this['commentThreadController']=_0x1a20af,this['_editor']=_0x5c6b88,this['_acceptCommand']=_0x5c6b88['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5c6b88['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b6038,_0x1bfdb9)=>_0x4b6038||_0x1bfdb9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4cac2e=>_0x4cac2e&&this['_editor']['model']['canEditAt'](_0x36792f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1c0d13=>_0x1c0d13&&this['_editor']['model']['canEditAt'](_0x36792f['getRanges']())),this['_pendingAction']=null,_0x181e47['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x181e47,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x181e47,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x181e47,'change:isDirty',()=>{_0x181e47['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 _0x8a810c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x8a810c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2f32c2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x495bc7,_0x490efd,_0x18f746,_0x4029e0){super(_0x495bc7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2c1c29(_0x495bc7,o(_0x495bc7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x490efd['authoredAt']),this['bind']('authoredAt')['to'](_0x490efd),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',_0x490efd,'authoredAt',this,'descriptionParts',(_0x1edd49,_0x3d6eed,_0x1a2529)=>{const _0xf403f2=_0x1a2529['map'](_0x2f4f45=>ls(_0x2f4f45['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1edd49-0x1,_0x490efd['author']['name'],_0x3d6eed?_0x4029e0['formatDateTime'](_0x3d6eed):'',new DOMParser()['parseFromString'](_0xf403f2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4d346c(),this['focusTracker']=new _0x30a188(),this['keystrokes']=new _0x324e8e(),this['focusCycler']=new _0x445b5c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a1508=>_0x2a1508['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x490efd,this['_localUser']=_0x18f746,this['_config']=_0x4029e0,_0x4029e0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x494016(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xf9f3a2}=this['_config'];this['commentsListView']=new _0xf9f3a2(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',_0x2ee719=>_0x2ee719+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xa05729,_0x5ade29)=>_0xa05729||!!_0x5ade29);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3debb4}=this['_config'],_0x2819c9=new _0x3debb4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1f5e84=_0x2819c9['commentInputView'];return _0x2819c9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1f5e84,'value',(_0x3c894d,_0x3eef13,_0x126ef9)=>!!_0x126ef9||_0x3c894d&&!_0x3eef13),_0x1f5e84['on']('submit',(_0x2de6a4,_0x1dc79a)=>{this['fire']('addComment',_0x1dc79a),_0x1f5e84['editor']['setData']('');}),_0x1f5e84['on']('cancel',()=>this['focus']()),_0x1f5e84['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2819c9;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5ab344,_0x500fc0,_0x176959,_0x291557){super(_0x5ab344,_0x500fc0,_0x176959,_0x291557),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2afb52=>_0x2afb52&&_0x2afb52[0x0]?_0x2afb52[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x36ecd9,_0x304469)=>{let _0x32c699='';for(const _0x33d171 of _0x36ecd9)_0x32c699+='<p>'+ls(_0x33d171['content'],_0x33d171['color'])+'</p>';return _0x304469?_0x32c699:_0x42b599(_0x32c699,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x291557['SuggestionView'](_0x5ab344,_0x500fc0,{'formatDateTime':_0x291557['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 _0x839bc=this['bindTemplate'],_0x417eaf=[this['suggestionView']];return this['commentsListView']&&_0x417eaf['push'](this['commentsListView']),this['commentThreadInputView']&&_0x417eaf['push'](this['commentThreadInputView']),_0x417eaf['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x839bc['if']('isActive','ck-suggestion-wrapper--active'),_0x839bc['to']('type',_0x2df227=>'ck-suggestion-'+_0x2df227),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':_0x839bc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x417eaf};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2f32c2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x32146c,_0x28a8fc,_0x1b1e77){super(_0x32146c),this['_model']=_0x28a8fc,this['_config']=_0x1b1e77,this['set']('description',''),this['bind']('authoredAt')['to'](_0x28a8fc),this['acceptButton']=this['_createButton'](o(_0x32146c,'Accept\x20suggestion'),_0x58eec4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x32146c,'Discard\x20suggestion'),_0x331ba6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2eb0a7(_0x32146c,_0x28a8fc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4d346c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x30a188(),this['keystrokes']=new _0x324e8e(),this['focusCycler']=new _0x445b5c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ffda7=>_0x1ffda7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x11c715=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x11c715['innerHTML']=this['description'],this['on']('change:description',(_0x39dada,_0x6028a5,_0x27925b)=>{_0x11c715['innerHTML']=_0x27925b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x14985c=this['bindTemplate'],_0xf305ec=[{'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':_0x14985c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x14985c['to']('authoredAt',_0x5c4f5f=>this['_config']['formatDateTime'](_0x5c4f5f))}]}]},{'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']&&_0xf305ec['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':_0xf305ec}]};}['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'](_0x30b02d,_0x113bf3,_0x27abf3,_0x16c8d7,_0x358455){const _0x15e6a5=new _0x10d7b8(this['locale']);return _0x15e6a5['set']({'label':_0x30b02d,'icon':_0x113bf3,'tooltip':!0x0,'tooltipPosition':_0x358455}),_0x15e6a5['extendTemplate']({'attributes':{'class':_0x27abf3}}),_0x15e6a5['on']('execute',()=>{this['fire'](_0x16c8d7,this['_model']['id']);}),_0x15e6a5;}['_setupKeyboardNavigation'](){const _0x4e3a0c=this['element'];this['keystrokes']['listenTo'](_0x4e3a0c);for(const _0x2bcad3 of this['focusables'])this['focusTracker']['add'](_0x2bcad3['element']),this['keystrokes']['listenTo'](_0x2bcad3['element']);this['keystrokes']['set']('enter',(_0x277e2e,_0x4a3735)=>{_0x4e3a0c===_0x277e2e['target']&&(this['focusCycler']['focusFirst'](),_0x4a3735());}),this['keystrokes']['set']('esc',(_0x4712dd,_0x238036)=>{_0x4e3a0c!==_0x4712dd['target']&&(this['focus'](),_0x238036());});}}class u extends _0x2b7268{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xd032c0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x205bf1){super(_0x205bf1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x407f94=this['editor']['config'];_0x407f94['define']('trackChanges.SuggestionThreadView',fe),_0x407f94['define']('trackChanges.SuggestionView',we),_0x407f94['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x407f94['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x219c00,_0x4f56e5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a4c0b,_0x401111]of this['_handleControllerBuffer']){const _0x31a4b4=this['_suggestionToController']['has'](_0x2a4c0b);_0x31a4b4||_0x401111?_0x31a4b4&&_0x401111&&this['_destroyController'](_0x2a4c0b):this['_initializeController'](_0x2a4c0b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x219c00,_0x4f56e5);}['init'](){const _0x18b98d=this['editor'],_0xcd5194=_0x18b98d['plugins']['get']('TrackChangesEditing'),_0x227983=_0x18b98d['plugins']['get']('Annotations'),_0x173a19=_0x18b98d['plugins']['get']('EditorAnnotations'),_0x170fcf=_0x18b98d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x173a19['addSourceCollector'](()=>{const _0x25fe99=[];for(const [_0x3b7ef3,_0x43a107]of Array['from'](this['_suggestionToController'])){const _0x442c9d=_0x3b7ef3['getAllAdjacentSuggestions'](),_0x7a20a3=[];for(const _0x11b4c2 of _0x442c9d){if(!_0x11b4c2['isInContent'])continue;if(_0x11b4c2['isMultiRange']){_0x7a20a3['push'](..._0x11b4c2['getRanges']());continue;}const _0x148ecd=_0x11b4c2['getFirstRange']();if(_0x7a20a3['length']>0x0){const _0x38d085=_0x7a20a3[0x0]['getJoined'](_0x148ecd);if(_0x38d085){_0x7a20a3[0x0]=_0x38d085;continue;}}_0x7a20a3['push'](_0x148ecd);}_0x25fe99['push']([_0x43a107['view'],_0x7a20a3]);}return _0x25fe99;}),this['listenTo'](_0xcd5194,'suggestionLoaded',(_0x154ea7,_0x1ae325)=>{this['listenTo'](_0x1ae325,'change:previous',(_0x1d66b4,_0x54430b,_0x370553,_0xe91d3f)=>{_0x1ae325['isInContent']&&(null==_0x370553?(this['_updateController'](_0xe91d3f['head']),this['_handleSuggestionControllerDelayed'](_0x1ae325,!0x1)):(this['_updateController'](_0x370553['head']),null==_0xe91d3f&&this['_handleSuggestionControllerDelayed'](_0x1ae325,!0x0)));}),null!==_0x1ae325['previous']?this['_updateController'](_0x1ae325['head']):this['_handleSuggestionControllerDelayed'](_0x1ae325,!0x1);}),this['listenTo'](_0xcd5194,'suggestionUnloaded',(_0x3f6d4e,_0x14780f,_0xec1c6b)=>{this['stopListening'](_0x14780f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x14780f),this['_suggestionToController']['has'](_0x14780f)&&this['_destroyController'](_0x14780f),_0xec1c6b&&this['_updateController'](_0xec1c6b['head']);}),this['listenTo'](_0xcd5194,'suggestionChanged',(_0x4bff35,_0x3f4808)=>{this['_updateController'](_0x3f4808);}),this['listenTo'](_0x227983,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x170fcf,'addComment',(_0x549fa9,{threadId:_0x349e8a,isFromAdapter:_0x2494bf})=>{if(_0x2494bf||!_0xcd5194['hasSuggestion'](_0x349e8a))return;const _0x21537b=_0xcd5194['getSuggestion'](_0x349e8a);this['_suggestionToController']['get'](_0x21537b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31ed78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26a281;for(const _0x552b78 in _0x31ed78){const _0x5dd814=_0x552b78,_0x4801a1=_0x31ed78[_0x5dd814];if('trackChangesLicenseKeyValid'==_0x4801a1||'trackChangesLicenseKeyInvalid'==_0x4801a1||'trackChangesLicenseKeyExpired'==_0x4801a1||'trackChangesLicenseKeyDomainLimit'==_0x4801a1||'trackChangesLicenseKeyNotAllowed'==_0x4801a1||'trackChangesLicenseKeyEvaluationLimit'==_0x4801a1||'trackChangesLicenseKeyTrialLimit'==_0x4801a1||'trackChangesLicenseKeyUsageLimit'==_0x4801a1){delete _0x31ed78[_0x5dd814],_0x26a281=_0x4801a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x26a281&&_0x31ed78['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x26a281&&_0x31ed78['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x26a281&&_0x31ed78['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x26a281&&_0x31ed78['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x26a281&&_0x31ed78['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x26a281&&_0x31ed78['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x26a281&&_0x31ed78['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3d2bae){const _0x39d8fb=this['_suggestionToController']['get'](_0x3d2bae);if(!_0x39d8fb)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x39d8fb['view'])||null;}['getSuggestionForAnnotation'](_0x299f8a){const _0x202694=this['_viewToController']['get'](_0x299f8a['innerView']);return _0x202694?_0x202694['model']:null;}['_refreshActiveMarkers'](){const _0x22c94e=this['editor']['plugins']['get']('Annotations'),_0x26270f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33e5b8=Array['from'](_0x22c94e['activeAnnotations'],_0x254fb2=>_0x254fb2['innerView'])['filter'](_0x3eac2d=>this['_viewToController']['has'](_0x3eac2d)),_0x46090e=[];for(const _0x2a6519 of _0x33e5b8){const _0x2ee9db=this['_viewToController']['get'](_0x2a6519)['model']['getAllAdjacentSuggestions']();_0x46090e['push'](..._0x2ee9db['reduce']((_0xa52ea7,_0x3eab0a)=>[..._0xa52ea7,..._0x3eab0a['getMarkerNames']()],[]));}_0x26270f['activeMarkers']=_0x46090e;}['_addUIComponentsToFactory'](){const _0x36a339=this['editor'],_0x39cc98=_0x36a339['locale'],_0x2e2682=o(_0x39cc98,'Track\x20changes'),_0x1829b8=new _0x3de56a([{'type':'switchbutton','model':new _0x4e094d({'withText':!0x0,'isToggleable':!0x0,'label':_0x2e2682,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4e094d({'withText':!0x0,'label':o(_0x39cc98,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e094d({'withText':!0x0,'label':o(_0x39cc98,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e094d({'withText':!0x0,'label':o(_0x39cc98,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e094d({'withText':!0x0,'label':o(_0x39cc98,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x36a339['plugins']['has']('TrackChangesPreview')&&_0x1829b8['addMany']([{'type':'separator'},{'type':'button','model':new _0x4e094d({'withText':!0x0,'label':o(_0x39cc98,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x279602 of _0x1829b8)if(ke(_0x279602)){const _0x274d81=_0x36a339['commands']['get'](_0x279602['model']['commandName']);_0x279602['model']['bind']('isOn','isEnabled')['to'](_0x274d81,'value','isEnabled');}_0x36a339['ui']['componentFactory']['add']('trackChanges',_0x35a67c=>this['_createToolbarButton'](_0x35a67c,_0x1829b8,_0x2e2682)),_0x36a339['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4cd725=>this['_createMenuBarMenu'](_0x4cd725,_0x1829b8,_0x2e2682));}['_createToolbarButton'](_0xdeb396,_0xa8233,_0xf20f61){const _0x440693=_0x4be02b(_0xdeb396,_0x1b5f9d),_0x5ca1c9=this['editor']['commands']['get']('trackChanges');_0x440693['buttonView']['set']({'tooltip':_0xf20f61,'label':_0xf20f61,'icon':_0x2b29cc}),_0x440693['buttonView']['bind']('isOn')['to'](_0x5ca1c9,'value'),_0x440693['buttonView']['on']('execute',()=>{_0x5ca1c9['execute'](),this['editor']['editing']['view']['focus']();}),_0x182496(_0x440693,_0xa8233,{'role':'menu'});const _0x39c71c=[];for(const _0x2538cb of _0xa8233)ke(_0x2538cb)&&_0x39c71c['push'](this['editor']['commands']['get'](_0x2538cb['model']['commandName']));const _0x3cb86a=_0x440693['buttonView'];return _0x3cb86a['actionView']['unbind']('isEnabled'),_0x3cb86a['arrowView']['unbind']('isEnabled'),_0x3cb86a['actionView']['bind']('isEnabled')['to'](_0x5ca1c9,'isEnabled'),_0x3cb86a['arrowView']['bind']('isEnabled')['toMany'](_0x39c71c,'isEnabled',(..._0x2cd4c0)=>_0x2cd4c0['some'](_0x55ec01=>_0x55ec01)),_0x440693['on']('execute',_0x4245a1=>{this['editor']['execute'](_0x4245a1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x440693;}['_createMenuBarMenu'](_0x3b0d41,_0x46ab60,_0x541280){const _0x3feaab=new _0x84077f(_0x3b0d41),_0x40dd67=this['editor']['commands']['get']('trackChanges');_0x3feaab['buttonView']['set']({'label':_0x541280,'icon':_0x2b29cc});const _0x5908ff=new _0x1d70c9(_0x3b0d41);for(const _0x26b748 of _0x46ab60){if('separator'==_0x26b748['type']){_0x5908ff['items']['add'](new _0x8aea7(_0x3b0d41));continue;}const _0x243c91=new _0x53363a(_0x3b0d41,_0x3feaab),_0x55ae5a=new _0x1cd62d(_0x3b0d41),_0x50e32c=_0x26b748['model'];_0x55ae5a['bind'](...Object['keys'](_0x50e32c))['to'](_0x50e32c),_0x55ae5a['delegate']('execute')['to'](_0x3feaab),_0x55ae5a['on']('execute',()=>{this['editor']['execute'](_0x50e32c['commandName']),this['editor']['editing']['view']['focus']();}),_0x243c91['children']['add'](_0x55ae5a),_0x5908ff['items']['add'](_0x243c91);}return _0x3feaab['bind']('isEnabled')['to'](_0x40dd67,'isEnabled'),_0x3feaab['panelView']['children']['add'](_0x5908ff),_0x3feaab;}['_initializeController'](_0x9825eb){const _0x373497=this['editor'],_0x1ad0c1=_0x373497['config'],_0x246ec1=_0x373497['plugins']['get']('Annotations'),_0x5d26de=_0x373497['plugins']['get']('CommentsRepository'),_0x20c2cb=_0x373497['plugins']['get']('EditorAnnotations'),_0xcacf92=_0x373497['plugins']['get'](_0xd032c0)['me'],_0x182011=_0x1ad0c1['get']('trackChanges')['SuggestionThreadView'],_0x249ee8=_0x1ad0c1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x688ea7,CommentThreadInputView:_0x6324e1}=_0x373497['plugins']['get']('CommentsUI');let _0x1aea64,_0x30961b,_0x1b13c4;this['_annotationViews']['has'](_0x9825eb['id'])?(_0x30961b=this['_annotationViews']['get'](_0x9825eb['id']),_0x1aea64=_0x30961b['mainView']):(_0x1aea64=new _0x182011(_0x373497['locale'],_0x9825eb,_0xcacf92,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1ad0c1['get']('comments.editorConfig'),'licenseKey':_0x1ad0c1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1ad0c1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1ad0c1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1ad0c1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a70e7(_0x1ad0c1['get']('locale'),_0x373497['locale']),'CommentView':_0x1ad0c1['get']('comments')['CommentView'],'CommentsListView':_0x688ea7,'CommentThreadInputView':_0x6324e1,'SuggestionView':_0x249ee8}),_0x1aea64['suggestionView']['acceptButton']['on']('execute',()=>{_0x373497['editing']['view']['focus']();}),_0x1aea64['suggestionView']['discardButton']['on']('execute',()=>{_0x373497['editing']['view']['focus']();}),_0x30961b=_0x246ec1['createAnnotationView'](this['editor']['locale'],_0x1aea64),_0x30961b['bind']('isDirty')['to'](_0x1aea64,'isDirty'),_0x30961b['bind']('length')['to'](_0x1aea64),_0x30961b['bind']('type')['to'](_0x1aea64,'type',_0x1659fa=>'suggestion-'+_0x1659fa),_0x1aea64['on']('escape',()=>{_0x1b13c4['fire']('escape');}),this['_annotationViews']['set'](_0x9825eb['id'],_0x30961b));const _0x8b2c52=_0x5d26de['createCommentThreadController'](_0x9825eb['commentThread'],_0x1aea64),_0x5f08de=new pe(_0x373497,_0x9825eb,_0x1aea64,_0x8b2c52),_0x49d24f=_0x9825eb['getAllAdjacentSuggestions']()['filter'](_0x4d12ba=>_0x4d12ba['isInContent']);_0x1aea64['descriptionParts']=_0x373497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x49d24f),this['_suggestionToController']['set'](_0x9825eb,_0x5f08de),this['_viewToController']['set'](_0x1aea64,_0x5f08de);const _0x198ae8=()=>{const _0x34eac1=[],_0x38aeb6=_0x9825eb['getAllAdjacentSuggestions']()['filter'](_0x3969d6=>_0x3969d6['isInContent']);for(const _0x5034c5 of _0x38aeb6)_0x34eac1['push'](..._0x5034c5['getMarkers']());return _0x1f9e71(_0x373497['editing'],_0x34eac1);};_0x1b13c4=_0x246ec1['createAnnotation']({'view':_0x30961b,'target':_0x198ae8,'type':()=>'suggestion-'+_0x5f08de['view']['type'],'isVisible':!!_0x198ae8()}),_0x5d26de['_bindAnnotationToEditors'](_0x1aea64,_0x1b13c4),_0x246ec1['add'](_0x1b13c4),_0x20c2cb['registerAnnotation'](_0x1b13c4);}['_destroyController'](_0x17c6f5){const _0x81d514=this['editor']['plugins']['get']('CommentsRepository'),_0x1308fc=this['editor']['plugins']['get']('Annotations'),_0xa64864=this['_suggestionToController']['get'](_0x17c6f5),_0x55de95=_0xa64864['view'],_0x386680=_0x1308fc['getByInnerView'](_0x55de95);_0x81d514['_unbindEditors'](_0x55de95),_0x386680&&_0x1308fc['remove'](_0x386680),this['_suggestionToController']['delete'](_0x17c6f5),this['_viewToController']['delete'](_0x55de95),_0xa64864['destroy']();}['_updateController'](_0x7b5d9d){if(!_0x7b5d9d['isInContent']||!this['_suggestionToController']['has'](_0x7b5d9d))return;const _0x2f8ba2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa3dfc7=this['_suggestionToController']['get'](_0x7b5d9d),_0x462ce1=_0x7b5d9d['getAllAdjacentSuggestions']();_0xa3dfc7['view']['descriptionParts']=_0x2f8ba2['descriptionFactory']['getDescriptions'](_0x462ce1);}['destroy'](){for(const _0x286653 of this['_suggestionToController']['keys']())this['_destroyController'](_0x286653);for(const _0x51b5b0 of this['_annotationViews']['values']())_0x51b5b0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x16a7db){return'model'in _0x16a7db;}class Ne extends _0x2b7268{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1d3bfe){this['editor']['plugins']['get'](d)['adapter']=_0x1d3bfe;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x19e4e9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x19e4e9);}['getSuggestions']({skipNotAttached:_0x9fd58b=!0x1,toJSON:_0x151b74=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x9fd58b,'toJSON':_0x151b74});}['getSuggestion'](_0x31bf26){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x31bf26);}}const p=['Pagination'];class re extends _0x2b7268{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x51e0be=this['editor'];if(_0x51e0be['config']['define']('trackChangesData.editorCreator',_0x2b1648=>{const _0x4e66ae=_0x51e0be['model']['document']['getRootNames']()['reduce']((_0x3c618c,_0x53869e)=>(_0x3c618c[_0x53869e]='',_0x3c618c),{});return _0x51e0be['constructor']['create'](_0x4e66ae,_0x2b1648);}),'function'!=typeof _0x51e0be['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a89fc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1dedfc){return P(this['editor'],!0x0,_0x1dedfc);}['getDataWithDiscardedSuggestions'](_0x305ee6){return P(this['editor'],!0x1,_0x305ee6);}}class Fe extends _0x2b7268{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39308e){function _0x5529d4(_0x5e5bc5){return _0x5e5bc5['map'](_0x5de300=>String['fromCharCode'](_0x5de300))['join']('');}super(_0x39308e),this['result']='end',_0x39308e[_0x5529d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5529d4([0x76,0x69,0x65,0x77])][_0x5529d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5529d4([0x61,0x75,0x74,0x6f]),_0x39308e[_0x5529d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5529d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5529d4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5529d4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5529d4([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 De(_0xa56e44){return void 0x0!==_0xa56e44['getRootsAttributes'];}async function P(_0x419a52,_0x4f703a,_0x160424){const _0x25ea4e=_0x210fd8(_0x419a52,p);_0x25ea4e['plugins']['push'](d,Fe),_0x25ea4e['rootsAttributes']=De(_0x419a52)?_0x419a52['getRootsAttributes']():void 0x0;const _0x2f30e2=document['createDocumentFragment'](),_0x1c31ec=_0x419a52['config']['get']('trackChangesData')['editorCreator'],_0x2753ad=await _0x1c31ec(_0x25ea4e,()=>function(_0x32a0cb){const _0x2a49ba=document['createElement']('div');return _0x32a0cb['appendChild'](_0x2a49ba),_0x2a49ba;}(_0x2f30e2));!function(_0x5cf189,_0x2aa3b7){const _0x6afc27=_0x5cf189['model']['document']['getRootNames']()['reduce']((_0x209f36,_0x1df74b)=>(_0x209f36[_0x1df74b]=_0x5cf189['data']['get']({'rootName':_0x1df74b}),_0x209f36),{}),_0x2943a3=_0x5cf189['plugins']['get']('Users')['users']['map'](_0x748743=>({'id':_0x748743['id'],'name':_0x748743['name']})),_0x19e88f=_0x5cf189['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x57af3e=_0x5cf189['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17167e=_0x2aa3b7['plugins']['get']('Users'),_0x5b7949=_0x2aa3b7['plugins']['get']('TrackChangesEditing'),_0x4a229e=_0x2aa3b7['plugins']['get']('CommentsRepository');for(const _0x5398fa of _0x4a229e['getCommentThreads']())_0x5398fa['remove']();for(const _0x282e33 of _0x2943a3)_0x17167e['getUser'](_0x282e33['id'])||_0x17167e['addUser'](_0x282e33);_0x17167e['me']||_0x17167e['useAnonymousUser']();for(const _0x226cd7 of _0x57af3e)_0x4a229e['addCommentThread'](_0x226cd7);for(const _0x30eadf of _0x19e88f)_0x5b7949['addSuggestionData'](_0x30eadf);_0x2aa3b7['data']['set'](_0x6afc27);}(_0x419a52,_0x2753ad),_0x2753ad['execute'](_0x4f703a?'acceptAllSuggestions':'discardAllSuggestions');const _0x21648d=De(_0x2753ad)?_0x2753ad['getFullData'](_0x160424):_0x2753ad['data']['get'](_0x160424);return await _0x2753ad['destroy'](),_0x21648d;}class Me extends _0x2f32c2{['options'];constructor(_0x345c6e,_0x31ece1){super(_0x345c6e),this['options']=_0x31ece1,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'](_0x3c8591,_0x21e5c5){if(!this['element'])return;const _0x3055f4=[];for(const [_0x590768,_0x53cfa4]of _0x3c8591){const _0x330fb6=document['createElement']('div');_0x330fb6['setAttribute']('data-ck-root-name',_0x590768),_0x330fb6['className']=_0x53cfa4['classes']+'\x20ck-track-changes-preview__root-container',_0x330fb6['innerHTML']=_0x53cfa4['content'],_0x3055f4['push'](_0x330fb6);}_0x21e5c5(this['element'],_0x3055f4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1549d2{constructor(_0x214955){super(_0x214955),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1b6e54=this['editor'],_0x15e74a=_0x1b6e54['locale'],_0x5d1a9a=_0x1b6e54['plugins']['get']('Dialog');let _0x592bda;const _0x20eb10=function(_0x46a608){const _0x5846db={};if('editables'in _0x46a608['ui']['view']){for(const [_0x6fb832,_0x61200]of Object['entries'](_0x46a608['ui']['view']['editables']))_0x5846db[_0x6fb832]=_0x61200['element'];}else _0x5846db[_0x46a608['model']['document']['getRootNames']()[0x0]]=_0x46a608['ui']['view']['editable']['element'];return _0x5846db;}(_0x1b6e54),_0xab041b=function(_0x445253){let _0x4e5760=0x0;for(const _0x4b3abc of Object['values'](_0x445253))_0x4e5760=Math['max'](_0x4e5760,_0x4b3abc['getBoundingClientRect']()['width']);let _0x46f435=0x0;for(const _0x796aeb of Object['values'](_0x445253))_0x46f435+=_0x796aeb['getBoundingClientRect']()['height'];const _0x56ac19=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c7e05=Math['min'](_0x46f435,_0x56ac19);return{'width':_0x4e5760,'height':_0x1c7e05};}(_0x20eb10);_0x5d1a9a['show']({'id':'finalContentPreview','title':o(_0x15e74a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x15e74a,{'dialogRects':_0xab041b}),'onHide':()=>{_0x592bda['detachFromDom']();},'onShow':()=>{_0x1b6e54['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x39c357=>{const _0x1a26d7=this['_standarizeRootsData'](_0x39c357,_0x1b6e54,_0x20eb10);_0x5d1a9a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a26d7,_0x1b6e54['config']['get']('trackChanges.preview.renderFunction'));}),_0x592bda=new _0x40e428(_0x15e74a,[_0x5d1a9a['view']]),_0x592bda['attachToDom'](),_0x592bda['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1b6e54['once']('destroy',()=>{_0x592bda['detachFromDom']();});const _0x502309=_0x5d1a9a['view']['headerView']['class'];_0x5d1a9a['view']['headerView']['class']=_0x502309?_0x502309+'\x20ck-reset_all':'ck-reset_all',_0x5d1a9a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5d1a9a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x370862=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1bea1d=_0x370862['previewMode'],_0x361f7e={};if('$labels'===_0x1bea1d){for(const _0x3ed011 of _0x370862['getMergeFieldsIds']())_0x361f7e[_0x3ed011]=_0x370862['getLabel'](_0x3ed011)||_0x3ed011;}else{const _0x827a2='$defaultValues'===_0x1bea1d?_0x370862['getDefaultValues']():_0x370862['getDataSetValues'](_0x1bea1d,!0x0);for(const _0x5cbd58 of Object['entries'](_0x827a2)){const [_0x34f82e,_0x173697]=_0x5cbd58;_0x361f7e[_0x34f82e]=null!==_0x173697?_0x173697:_0x370862['getLabel'](_0x34f82e)||_0x34f82e;}}return{'mergeFieldsData':_0x361f7e};}['_standarizeRootsData'](_0x165afb,_0x51399c,_0x5ec75a){let _0x4f8c60;if('string'==typeof _0x165afb){const _0x1dc212=_0x51399c['model']['document']['getRootNames']()[0x0];_0x4f8c60={[_0x1dc212]:_0x165afb};}else _0x4f8c60=_0x165afb;const _0x2f408d=this['_fixMediaEmbeds'](_0x4f8c60,_0x51399c),_0xcaefec=function(_0x56a34a,_0x42fb88){for(const [_0x32c464,_0x2ef867]of _0x56a34a)_0x2ef867['classes']=_0x42fb88[_0x32c464]['classList']['value']['replace']('ck-focused','');return _0x56a34a;}(this['_sortRoots'](_0x51399c)['reduce']((_0x2ea9ce,_0x461faa)=>(_0x2ea9ce['push']([_0x461faa,{'content':_0x2f408d[_0x461faa],'classes':''}]),_0x2ea9ce),[]),_0x5ec75a);return _0xcaefec;}['_fixMediaEmbeds'](_0x3f9dac,_0xfdeae4){if(!_0xfdeae4['plugins']['has']('MediaEmbedEditing'))return _0x3f9dac;const _0x5c1fec=_0xfdeae4['plugins']['get']('MediaEmbedEditing');for(const [_0x3ee724,_0x2ec8a3]of Object['entries'](_0x3f9dac)){const _0x26d8be=document['createElement']('div');_0x26d8be['innerHTML']=_0x2ec8a3,(_0x26d8be['querySelectorAll']('figure.media')['forEach'](_0xd1a959=>{const _0x3c054d=_0xd1a959['querySelector']('oembed');if(_0x3c054d){const _0x38cd0e=_0x3c054d['getAttribute']('url');if(_0x38cd0e){const _0x1be713=_0x5c1fec['registry']['getMediaViewElement'](new _0x4b5742(_0xfdeae4['editing']['view']['document']),_0x38cd0e,{'elementName':'','renderForEditingView':!0x0}),_0x12c6f1=document['createElement']('div');_0x12c6f1['classList']['add']('ck-media__wrapper'),_0x1be713['render'](_0x12c6f1,_0xfdeae4['editing']['view']['domConverter']),_0x3c054d['replaceWith'](_0x12c6f1);}}}),_0x3f9dac[_0x3ee724]=_0x26d8be['innerHTML']);}return _0x3f9dac;}['_sortRoots'](_0x52c63a){if(!function(_0x4e10d4){return void 0x0!==_0x4e10d4['getRootsAttributes'];}(_0x52c63a))return _0x52c63a['model']['document']['getRootNames']();const _0x257b4e=[],_0x11b105=new Map();for(const _0x505038 of _0x52c63a['model']['document']['getRootNames']()){const _0x48630b=_0x52c63a['editing']['view']['getDomRoot'](_0x505038)['getClientRects']()['item'](0x0);_0x257b4e['push'](_0x505038),_0x11b105['set'](_0x505038,_0x48630b);}return _0x257b4e['sort']((_0x270a29,_0x1ed863)=>{const _0x454f15=_0x11b105['get'](_0x270a29),_0x57784a=_0x11b105['get'](_0x1ed863);return _0x454f15['y']-_0x57784a['y']||_0x454f15['x']-_0x57784a['x'];}),_0x257b4e;}}class Ue extends _0x2b7268{static get['requires'](){return[re,_0x4cd8ba];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3927c0){super(_0x3927c0),_0x3927c0['commands']['add']('previewFinalContent',new te(this['editor'])),_0x3927c0['config']['define']('trackChanges.preview.renderFunction',(_0x30be7b,_0x1a5a86)=>{for(const _0x7a7001 of _0x1a5a86)_0x30be7b['appendChild'](_0x7a7001);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};