@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250223.0 → 0.0.0-nightly-next-20250224.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1be8bb,Plugin as _0x6c1265,PendingActions as _0x5eab3f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x23f583,ObservableMixin as _0x14d963,uid as _0x2e4cf8,priorities as _0x5c654c,insertToPriorityArray as _0x355cf6,logWarning as _0x5785ad,getEnvKeystrokeText as _0x555a8d,FocusTracker as _0x59ff65,KeystrokeHandler as _0x533439,Collection as _0x32b111}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4f23dc,IconCancel as _0x2134e4,IconTrackChanges as _0x416010}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1cad9e,View as _0x3ded66,ViewCollection as _0x18791b,FocusCycler as _0x2a6fc3,ViewModel as _0x151401,createDropdown as _0x16e7d6,SplitButtonView as _0x4f2c47,addListToDropdown as _0xe86ee5,MenuBarMenuView as _0x13656b,MenuBarMenuListView as _0x10270c,ListSeparatorView as _0x58c26c,MenuBarMenuListItemView as _0x48bdf3,MenuBarMenuListItemButtonView as _0x2b5be6,BodyCollection as _0x50507a,Dialog as _0x5ef560}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x229cdc,hashObject as _0x43427f,surroundingMarkersDetector as _0x4d10c8,FOCUS_ANNOTATION_KEYSTROKE as _0x33e0bf,AriaDescriptionView as _0x213327,setupThreadKeyboardNavigation as _0x4e2a6f,trimHtml as ti,UserView as _0x45f651,LateFocusButtonView as _0x5288cc,getDateTimeFormatter as _0x12e153,getAllMarkersDomElementsSorted as _0x23738e,sanitizeEditorConfig as _0x16010f}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5498fb,LiveRange as _0x26d742,LivePosition as _0x9e232c,DowncastWriter as _0x318b26}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4305d4,toWidget as _0x4ae5f9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1fe656,set as _0x29a785,isEqual as _0x25c893,unset as _0x2278fa,omit as Vt}from'es-toolkit/compat';import{Delete as _0x5b6aa4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5d5e4a,ShiftEnter as _0xef751d}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1be8bb{['_enabledCommands'];constructor(_0x130690,_0x518b40){super(_0x130690),this['_enabledCommands']=_0x518b40,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 _0x41469d of this['editor']['commands']['commands']())_0x41469d['affectsData']&&!this['_enabledCommands']['has'](_0x41469d)&&_0x41469d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5d35b7 of this['editor']['commands']['commands']())_0x5d35b7['affectsData']&&!this['_enabledCommands']['has'](_0x5d35b7)&&_0x5d35b7['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1be8bb{['_suggestions'];constructor(_0x2c955d,_0x5a7cc6){super(_0x2c955d),this['_suggestions']=_0x5a7cc6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b811d){const _0x4bef5d=this['_suggestions']['get'](_0x2b811d);if(!_0x4bef5d)throw new _0x23f583('track-changes-accept-suggestion-not-found',this);const _0x50e389=_0x4bef5d['getRanges']();this['editor']['model']['canEditAt'](_0x50e389)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4bef5d);}}class R extends _0x1be8bb{['_suggestions'];constructor(_0x5c6427,_0x4d258f){super(_0x5c6427),this['_suggestions']=_0x4d258f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xdc856d){const _0x7baec9=this['_suggestions']['get'](_0xdc856d);if(!_0x7baec9)throw new _0x23f583('track-changes-discard-suggestion-not-found',this);const _0x186375=_0x7baec9['getRanges']();this['editor']['model']['canEditAt'](_0x186375)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x7baec9);}}function ls(_0x20a1ba,_0xd059c){let _0x1f45f5='';return _0x1f45f5+=_0x20a1ba['split']('*')['map']((_0x11b279,_0x1d479f)=>_0x1d479f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x11b279)+'</span>':nn(_0x11b279))['join'](''),_0xd059c&&(_0x1f45f5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xd059c['value']+'\x22\x20title=\x22'+_0xd059c['title']+'\x22></span>'),_0x1f45f5;}function nn(_0x41a702){const _0x5f4cf9=document['createElement']('span');return _0x5f4cf9['innerText']=_0x41a702,_0x5f4cf9['innerHTML'];}function ts(_0x4d1112){return _0x4d1112['sort']((_0x5b0e99,_0x472d50)=>'deletion'==_0x5b0e99['type']&&'deletion'!=_0x472d50['type']?-0x1:'deletion'!=_0x5b0e99['type']&&'deletion'==_0x472d50['type']?0x1:0x0);}function Zt(_0x39aee8,_0x18a6fe){let _0x103e3a,_0x42adb7=0x0;const _0x50728c=[],_0x2bc459=_0x18a6fe['schema'];for(;_0x42adb7<_0x39aee8['length'];){const _0xb27348=_0x39aee8[_0x42adb7],_0x3f2bc0=_0x39aee8[_0x42adb7+0x1];_0x103e3a||(_0x103e3a=_0x18a6fe['createPositionBefore'](_0xb27348)),on(_0x18a6fe,_0xb27348,_0x3f2bc0)||(_0x50728c['push'](_0x18a6fe['createRange'](_0x103e3a,_0x2bc459['isObject'](_0xb27348)?_0x18a6fe['createPositionAfter'](_0xb27348):_0x18a6fe['createPositionAt'](_0xb27348,'end'))),_0x103e3a=null),_0x42adb7++;}return _0x50728c;}function on(_0x2e8462,_0x4f469e,_0x101c1b){if(!_0x101c1b)return!0x1;const _0x2e1253=_0x2e8462['createPositionAfter'](_0x4f469e),_0x41ed5a=_0x2e8462['createPositionBefore'](_0x101c1b);return _0x2e1253['isTouching'](_0x41ed5a);}function rs(_0x4d5e6a,_0x18f7ae,_0x281a3d){for(;_0x281a3d['length'];){const _0x23cd74=_0x281a3d['splice'](0x0,0x64);_0x4d5e6a['change'](()=>{for(const _0x3759c7 of _0x23cd74)_0x3759c7['isInContent']&&_0x18f7ae['execute'](_0x3759c7['id']);});}}class x extends _0x1be8bb{['_command'];['_suggestions'];constructor(_0x489c31,_0x1de3ca,_0x310156){super(_0x489c31),this['_command']=_0x1de3ca,this['_suggestions']=_0x310156,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2945af=Array['from'](this['_suggestions']['values']())['some'](_0x278817=>_0x278817['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2945af;}['execute'](){const _0x2fe5bc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2e29cc of _0x2fe5bc){const _0x123acd=_0x2e29cc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x123acd))return;}rs(this['editor']['model'],this['_command'],_0x2fe5bc);}}class E extends _0x1be8bb{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x11435e,_0x281cc7,_0x1f616f){super(_0x11435e),this['_command']=_0x281cc7,this['_suggestions']=_0x1f616f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c97cf=this['editor']['model']['document']['selection'],_0x2ad208=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b00ce,_0x1da741){const _0x3a4d85=Array['from'](_0x1b00ce['getRanges']()),_0x160f2e=new Set();for(const _0x1e7310 of _0x1da741)if(_0x1e7310['isInContent']){for(const _0x82d4e0 of _0x3a4d85)for(const _0x42ab7c of _0x1e7310['getRanges']())(_0x82d4e0['isIntersecting'](_0x42ab7c)||_0x1b00ce['isCollapsed']&&!_0x1e7310['isMultiRange']&&_0x1e7310['next']&&_0x42ab7c['end']['isTouching'](_0x82d4e0['start']))&&_0x160f2e['add'](_0x1e7310);}return _0x160f2e;}(_0x3c97cf,_0x2ad208),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2522e8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x519850 of _0x2522e8){const _0x233bb3=_0x519850['getRanges']();if(!this['editor']['model']['canEditAt'](_0x233bb3))return;}rs(this['editor']['model'],this['_command'],_0x2522e8);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x14d963(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x384413,_0x43d614){super(),this['id']=_0x43d614['id'],this['type']=_0x43d614['type'],this['subType']=_0x43d614['subType']||null,this['author']=_0x43d614['author'],this['creator']=_0x43d614['creator']||_0x43d614['author'],this['isExternal']=Boolean(_0x43d614['attributes']&&_0x43d614['attributes']['@external']),this['data']=null,this['_model']=_0x384413,this['_onAccept']=_0x43d614['onAccept'],this['_onDiscard']=_0x43d614['onDiscard'],this['_onAttributesChange']=_0x43d614['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x43d614['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 _0x30c860=this;for(;_0x30c860['previous'];)_0x30c860=_0x30c860['previous'];return _0x30c860;}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'](_0x7bac0c){this['_markerNames']['add'](_0x7bac0c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1759ab=>this['_model']['markers']['get'](_0x1759ab))['filter'](_0x4c16e0=>_0x4c16e0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32d008=>{for(const _0x443645 of this['getMarkers']())_0x32d008['removeMarker'](_0x443645);}),this['_markerNames']['clear']();}['removeMarker'](_0xae77c9){this['_model']['change'](_0x2494aa=>{_0x2494aa['removeMarker'](_0xae77c9);}),this['_markerNames']['delete'](_0xae77c9);}['addRange'](_0x1427e2){const _0x1d359d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1d359d),this['_model']['change'](_0xc6340b=>{_0xc6340b['addMarker'](_0x1d359d,{'range':_0x1427e2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38c501){for(const _0x186e36 of this['getRanges']())if(_0x186e36['isIntersecting'](_0x38c501))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3648f4=>_0x3648f4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x553bde,_0x3e485f)=>[..._0x553bde,..._0x3e485f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4de6e8=this['getRanges']();if(0x1!=_0x4de6e8['length'])return null;const _0x1fbe5f=_0x4de6e8[0x0],_0x439c2b=_0x1fbe5f['start']['nodeAfter'],_0x12d0a7=_0x1fbe5f['end']['nodeBefore'];return _0x439c2b instanceof _0x5498fb?_0x439c2b!=_0x12d0a7?null:_0x439c2b: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 _0x29a456=[];let _0x23637a=this['head'];for(;_0x23637a;)_0x29a456['push'](_0x23637a),_0x23637a=_0x23637a['next'];return _0x29a456;}['setAttribute'](_0x326ccf,_0x6c953e){const _0x2560ea=_0x1fe656(this['attributes']);_0x29a785(_0x2560ea,_0x326ccf,_0x6c953e),_0x25c893(_0x2560ea,this['attributes'])||(this['attributes']=_0x2560ea,this['_onAttributesChange'](_0x2560ea));}['removeAttribute'](_0x5db8d6){const _0xdcb2de=_0x1fe656(this['attributes']);_0x2278fa(_0xdcb2de,_0x5db8d6),_0x25c893(_0xdcb2de,this['attributes'])||(this['attributes']=_0xdcb2de,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 _0x2e4cf8()['substr'](0x1,0x5);}}function c(_0x18e26a,_0x5db877,_0x252980){const _0x1864c8=_0x18e26a['t'],t=_0x18e26a['t'];switch(_0x5db877){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',_0x252980);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x252980);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x252980);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x252980);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x252980);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',_0x252980);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x252980);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',_0x252980);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x252980);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x252980);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x252980);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x252980);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x252980);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x252980);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x252980);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x252980);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x252980);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x252980);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x252980);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x252980);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x252980);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x252980);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x252980);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x252980);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'},_0x252980);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x252980);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x252980);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x252980);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x252980);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x252980);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'},_0x252980);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x252980);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x252980);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x252980);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x252980);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'},_0x252980);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x252980);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'},_0x252980);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x252980);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x252980);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'},_0x252980);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x252980);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'},_0x252980);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x252980);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x252980);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'},_0x252980);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x252980);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 _0x1864c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x252980);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1864c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x252980);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x252980);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'},_0x252980);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'},_0x252980);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'},_0x252980);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5db877;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x13e721,_0x5949c4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x13e721,this['_locale']=_0x5949c4;}['getDescriptions'](_0x2887fa){const _0x1f0365=[],_0x37dfde=new Set(),_0x3a94ab=new Set();for(let _0x36fe9d=0x0;_0x36fe9d<_0x2887fa['length'];_0x36fe9d++){const _0x165e1e=_0x2887fa[_0x36fe9d];if(!_0x165e1e['isInContent'])continue;const _0x270291=this['_handleCustomCallbackDescription'](_0x165e1e);if(_0x270291){if(null!=_0x165e1e['subType']){if(_0x37dfde['has'](_0x165e1e['subType']))continue;_0x37dfde['add'](_0x165e1e['subType']);}_0x1f0365['push'](_0x270291);}else{if('attribute'!=_0x165e1e['type'])'insertion'!=_0x165e1e['type']&&'deletion'!=_0x165e1e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f0365,_0x165e1e,_0x2887fa[_0x36fe9d+0x1]);else{const _0x86c1fc=_0x165e1e['data']['key'];if(_0x3a94ab['has'](_0x86c1fc))continue;_0x3a94ab['add'](_0x165e1e['data']['key']),_0x86c1fc==u?this['_handleRenameSuggestionDescription'](_0x1f0365,_0x165e1e):this['_handleAttributeSuggestionDescription'](_0x1f0365,_0x165e1e);}}}return this['_resolveDescriptionItems'](_0x1f0365);}['registerDescriptionCallback'](_0x5ae33d){this['_customCallbacks']['push'](_0x5ae33d);}['registerElementLabel'](_0x15bd59,_0x3a2360,_0x36f51d=_0x5c654c['normal']){'function'==typeof _0x15bd59?_0x355cf6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x15bd59,'label':_0x3a2360,'priority':_0x36f51d}):this['_itemLabels']['set'](_0x15bd59,_0x3a2360);}['registerAttributeLabel'](_0x36d5f2,_0xeb0b33){this['_attributeLabels']['set'](_0x36d5f2,_0xeb0b33);}['getItemLabel'](_0x2fe3ff,_0xad0bdc=0x1){let _0x5c9c8e;for(const _0x56be3b of this['_itemLabelsCallbacks'])if(_0x56be3b['matchingCallback'](_0x2fe3ff)){_0x5c9c8e=_0x56be3b['label'];break;}return _0x5c9c8e||(_0x5c9c8e=this['_itemLabels']['get'](_0x2fe3ff['name'])),_0x5c9c8e?_0x5c9c8e(_0xad0bdc):0x1!==_0xad0bdc?_0xad0bdc+'\x20'+_0x2fe3ff['name']+'s':''+_0x2fe3ff['name'];}['_addDescriptionItems'](_0x2fb85c,_0x130ecd){const _0x2324be=_0x130ecd['getFirstRange']()['getWalker'](),_0xecf7c4='insertion'==_0x130ecd['type']?'add':'remove';for(const _0x59968c of _0x2324be){const _0x73354=_0x59968c['item'],_0x46027b=_0x2fb85c[_0x2fb85c['length']-0x1];if(_0x73354['is']('$textProxy'))_0x46027b&&_0x46027b['type']['indexOf']('Container')>-0x1&&_0x2fb85c['pop'](),_0x46027b&&'text'==_0x46027b['type']?_0x46027b[_0xecf7c4]+=_0x73354['data']:_0x2fb85c['push']({'type':'text','add':'add'==_0xecf7c4?_0x73354['data']:'','remove':'remove'==_0xecf7c4?_0x73354['data']:''});else{if(this['_schema']['isObject'](_0x73354)){const _0x4b08ad=_0x73354;if(_0x46027b&&_0x46027b['type']['indexOf']('Container')>-0x1&&_0x2fb85c['pop'](),'elementEnd'==_0x59968c['type'])continue;_0x46027b&&_0x46027b['type']==_0xecf7c4+'Object'&&_0x46027b['element']['name']==_0x4b08ad['name']?_0x46027b['quantity']++:_0x2fb85c['push']({'type':_0xecf7c4+'Object','element':_0x4b08ad,'quantity':0x1}),_0x2324be['skip'](_0x4aa14b=>!('elementEnd'==_0x4aa14b['type']&&_0x4aa14b['item']==_0x73354));}else{if(this['_schema']['checkChild'](_0x73354,'$text')||_0x73354['is']('element','softBreak')){const _0x218616=_0x73354;if('add'==_0xecf7c4&&'elementStart'==_0x59968c['type']||'remove'==_0xecf7c4&&'elementEnd'==_0x59968c['type'])continue;if(_0x46027b&&-0x1==_0x46027b['type']['indexOf']('Container')){'text'==_0x46027b['type']&&(_0x46027b[_0xecf7c4]+='\x0a');continue;}let _0x119bee;if(_0x119bee='add'==_0xecf7c4?_0x218616['nextSibling']&&!this['_schema']['isObject'](_0x218616['nextSibling'])?_0x218616['nextSibling']:null:_0x218616['previousSibling']&&!this['_schema']['isObject'](_0x218616['previousSibling'])?_0x218616['previousSibling']:null,_0x218616['isEmpty']||_0x119bee&&_0x119bee['isEmpty']){const _0x104413=_0x119bee&&_0x119bee['isEmpty']?_0x119bee:_0x218616;_0x46027b&&_0x46027b['type']==_0xecf7c4+'EmptyContainer'&&_0x46027b['element']['name']==_0x104413['name']?_0x46027b['quantity']++:_0x2fb85c['push']({'type':_0xecf7c4+'EmptyContainer','element':_0x104413,'quantity':0x1});}else _0x2fb85c['push']({'type':_0xecf7c4+'Container','element':_0x218616});}}}}}['_resolveDescriptionItems'](_0x2f6960){const _0x3b0367=this['_locale'],_0x4519b3=[],_0x3f8170=[],_0x536ea3=[];for(const _0x37809a of _0x2f6960)switch(_0x37809a['type']){case'text':if(_0x37809a['add']=_0x37809a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37809a['remove']=_0x37809a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37809a['add']&&''!=_0x37809a['remove']){_0x4519b3['push']({'type':'replace','content':c(_0x3b0367,'REPLACE_TEXT',['\x22'+_0x37809a['remove']+'\x22','\x22'+_0x37809a['add']+'\x22'])});continue;}if(null!=_0x37809a['add']['match'](/^ +$/)){_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Insert:*\x20%0',c(_0x3b0367,'ELEMENT_SPACE',_0x37809a['add']['length']))});continue;}if(null!=_0x37809a['remove']['match'](/^ +$/)){_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Remove:*\x20%0',c(_0x3b0367,'ELEMENT_SPACE',_0x37809a['remove']['length']))});continue;}if(''!=_0x37809a['add']){_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Insert:*\x20%0','\x22'+_0x37809a['add']+'\x22')});continue;}_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Remove:*\x20%0','\x22'+_0x37809a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Insert:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Remove:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'addContainer':_0x4519b3['push']({'type':'insertion','content':c(_0x3b0367,'*Split:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'removeContainer':_0x4519b3['push']({'type':'deletion','content':c(_0x3b0367,'*Merge:*\x20%0',this['getItemLabel'](_0x37809a['element'],_0x37809a['quantity']))});continue;case'addFormat':_0x3f8170['push'](_0x37809a['key']);continue;case'removeFormat':_0x536ea3['push'](_0x37809a['key']);continue;default:_0x4519b3['push'](_0x37809a);}if(_0x3f8170['length']){const _0x3122c0=_0x3f8170['map'](_0x37365f=>this['_attributeLabels']['has'](_0x37365f)?this['_attributeLabels']['get'](_0x37365f):_0x37365f)['join'](',\x20');_0x4519b3['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3122c0)});}if(_0x536ea3['length']){const _0x1c8aa4=_0x536ea3['map'](_0x4198f9=>this['_attributeLabels']['has'](_0x4198f9)?this['_attributeLabels']['get'](_0x4198f9):_0x4198f9)['join'](',\x20');_0x4519b3['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c8aa4)});}return _0x4519b3;}['_handleCustomCallbackDescription'](_0x16f9a6){for(const _0x5c3c40 of this['_customCallbacks']){const _0x545eab=_0x5c3c40(_0x16f9a6);if(_0x545eab&&'type'in _0x545eab)return _0x545eab;}}['_handleAttributeSuggestionDescription'](_0x11adbc,_0x50a65a){const _0x193bc3=_0x50a65a['data'],_0xfeac1c=void 0x0===_0x193bc3['newValue']?'removeFormat':'addFormat';_0x11adbc['push']({'type':_0xfeac1c,'key':_0x193bc3['key']});}['_handleRenameSuggestionDescription'](_0x3adda8,_0xb09616){_0x3adda8['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb09616['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x16bc45,_0x4c0f00,_0x2c8951){if(this['_addDescriptionItems'](_0x16bc45,_0x4c0f00),_0x2c8951&&_0x2c8951['getFirstRange']()&&!_0x4c0f00['getFirstRange']()['end']['isEqual'](_0x2c8951['getFirstRange']()['start'])){const _0x2b6309=_0x16bc45[_0x16bc45['length']-0x1],_0x412f33='insertion'==_0x4c0f00['type']?'add':'remove';_0x2b6309&&'text'==_0x2b6309['type']&&(_0x2b6309[_0x412f33]+='\x0a');}}}class U extends _0x6c1265{['afterInit'](){const _0x61103c=this['editor'],_0xb9b5f7=_0x61103c['plugins']['get']('TrackChangesEditing');_0x61103c['commands']['get']('showAIAssistant')&&_0xb9b5f7['enableCommand']('showAIAssistant');}}class V extends _0x6c1265{['afterInit'](){const _0x37765f=this['editor'],_0x246011=_0x37765f['locale'];if(!_0x37765f['plugins']['has']('AlignmentEditing'))return;const _0x3794bc=_0x37765f['plugins']['get']('TrackChangesEditing');_0x3794bc['enableDefaultAttributesIntegration']('alignment'),_0x3794bc['registerBlockAttribute']('alignment'),_0x3794bc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x246011,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5923e5=this['editor'],_0x5571c2=_0x5923e5['locale'];_0x5923e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5e26=>{if('formatBlock'!=_0x4e5e26['type'])return;const {data:_0x5d5bfc}=_0x4e5e26;if(_0x5d5bfc&&'alignment'==_0x5d5bfc['commandName']){const _0x576ecb=_0x5d5bfc['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5571c2,'*Format:*\x20%0',function(_0x4b72cd){switch(_0x4b72cd){case'left':return c(_0x5571c2,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5571c2,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5571c2,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5571c2,'FORMAT_JUSTIFY_TEXT');}}(_0x576ecb))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x6c1265{['afterInit'](){const _0x36155e=this['editor'],_0x28393f=_0x36155e['plugins']['get']('TrackChangesEditing'),_0xab05e1=_0x36155e['locale'];for(const _0x1dd2ee of Yt){if(!_0x36155e['plugins']['has'](_0x1dd2ee))continue;const _0x174932=_0x1dd2ee['slice'](0x0,-0x7)['toLowerCase'](),_0x3049e7='FORMAT_'+_0x174932['toUpperCase']();_0x28393f['enableDefaultAttributesIntegration'](_0x174932),_0x28393f['registerInlineAttribute'](_0x174932),_0x28393f['descriptionFactory']['registerAttributeLabel'](_0x174932,c(_0xab05e1,_0x3049e7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d3300=this['editor'],_0x31e73a=_0x4d3300['locale'],_0x4e1b76=_0x4d3300['plugins']['get']('TrackChangesEditing');function _0xa8b90(_0x9a206f,_0x2844c7){_0x4e1b76['descriptionFactory']['registerDescriptionCallback'](_0x52bd3f=>{if('formatInline'!=_0x52bd3f['type'])return;const {data:_0x35ec91}=_0x52bd3f;return _0x35ec91&&_0x35ec91['commandName']===_0x9a206f?_0x35ec91['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x31e73a,'*Format:*\x20%0',_0x2844c7)}:{'type':'format','content':c(_0x31e73a,'*Remove\x20format:*\x20%0',_0x2844c7)}:void 0x0;});}_0xa8b90('bold',c(_0x31e73a,'FORMAT_BOLD')),_0xa8b90('italic',c(_0x31e73a,'FORMAT_ITALIC')),_0xa8b90('underline',c(_0x31e73a,'FORMAT_UNDERLINE')),_0xa8b90('code',c(_0x31e73a,'FORMAT_CODE')),_0xa8b90('strikethrough',c(_0x31e73a,'FORMAT_STRIKETHROUGH')),_0xa8b90('subscript',c(_0x31e73a,'FORMAT_SUBSCRIPT')),_0xa8b90('superscript',c(_0x31e73a,'FORMAT_SUPERSCRIPT'));}}class G extends _0x6c1265{['afterInit'](){const _0x1d4d43=this['editor'],_0x24c76c=_0x1d4d43['locale'];if(!_0x1d4d43['plugins']['has']('BlockQuoteEditing'))return;const _0x567d57=_0x1d4d43['plugins']['get']('TrackChangesEditing'),_0x1755d2=this['editor']['commands']['get']('blockQuote');_0x567d57['enableCommand']('blockQuote',(_0x778182,_0x44bbcd={})=>{const _0x5bcfd9=this['editor']['model']['document']['selection'],_0x18009d=_0x44bbcd&&void 0x0!==_0x44bbcd['forceValue']?_0x44bbcd['forceValue']:!_0x1755d2['value'];let _0x24778d=[];if(_0x18009d){const _0x20c011=Array['from'](_0x5bcfd9['getSelectedBlocks']())['filter'](_0x23e4d0=>to(_0x23e4d0)||function(_0x5ad965,_0x2fe183){const _0x27d3cd=_0x2fe183['checkChild'](_0x5ad965['parent'],'blockQuote'),_0x57d5d6=_0x2fe183['checkChild'](['$root','blockQuote'],_0x5ad965);return _0x27d3cd&&_0x57d5d6;}(_0x23e4d0,this['editor']['model']['schema']));_0x24778d=Zt(_0x20c011,_0x1d4d43['model']);}else{const _0x14a664=Array['from'](_0x5bcfd9['getSelectedBlocks']())['filter'](_0x239c5e=>to(_0x239c5e));_0x24778d=Zt(_0x14a664,_0x1d4d43['model']);}_0x1d4d43['model']['change'](()=>{for(const _0x2a1a76 of _0x24778d)_0x567d57['markBlockFormat'](_0x2a1a76,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x18009d}]});});}),_0x567d57['descriptionFactory']['registerDescriptionCallback'](_0x51d2ef=>{const {data:_0x25ffda}=_0x51d2ef;if(_0x25ffda&&'blockQuote'==_0x25ffda['commandName']){const _0x51c432=c(_0x24c76c,'ELEMENT_BLOCK_QUOTE');return _0x25ffda['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x24c76c,'*Set\x20format:*\x20%0',_0x51c432)}:{'type':'format','content':c(_0x24c76c,'*Remove\x20format:*\x20%0',_0x51c432)};}});}}function to(_0x5a4239){return'blockQuote'==_0x5a4239['parent']['name'];}class L extends _0x6c1265{['afterInit'](){const _0x32629a=this['editor'],_0x2ef25e=_0x32629a['locale'],_0x5a8c5d=_0x32629a['plugins']['get']('TrackChangesEditing');_0x32629a['plugins']['has']('BookmarkEditing')&&(_0x5a8c5d['enableCommand']('insertBookmark'),_0x5a8c5d['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a8c5d['registerBlockAttribute']('bookmarkId'),_0x5a8c5d['descriptionFactory']['registerDescriptionCallback'](_0x303a0f=>{if('insertion'!=_0x303a0f['type']&&'deletion'!=_0x303a0f['type']&&'attribute'!=_0x303a0f['type'])return;const _0x15d945=_0x303a0f['getContainedElement']();if(null==_0x15d945)return;if(!_0x15d945['is']('element','bookmark'))return;const _0x520a6b=_0x15d945['getAttribute']('bookmarkId');if('insertion'==_0x303a0f['type'])return{'type':'insertion','content':c(_0x2ef25e,'*Insert:*\x20%0','\x22'+_0x520a6b+'\x22\x20'+c(_0x2ef25e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x303a0f['type'])return{'type':'deletion','content':c(_0x2ef25e,'*Remove:*\x20%0','\x22'+_0x520a6b+'\x22\x20'+c(_0x2ef25e,'ELEMENT_BOOKMARK'))};const {data:_0x413584}=_0x303a0f;if(!_0x413584||'bookmarkId'!=_0x413584['key'])return;return{'type':'format','content':c(_0x2ef25e,'*Set\x20bookmark:*\x20%0','\x22'+_0x413584['newValue']+'\x22')};}));}}class J extends _0x6c1265{['afterInit'](){const _0xb82874=this['editor'];_0xb82874['plugins']['has']('CaseChange')&&(_0xb82874['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xb82874['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xb82874['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x6c1265{['afterInit'](){const _0x19d57a=this['editor'];_0x19d57a['commands']['get']('ckbox')&&_0x19d57a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x6c1265{['afterInit'](){const _0x6790b8=this['editor'];if(!_0x6790b8['plugins']['has']('CodeBlock'))return;const _0x29a0c6=_0x6790b8['plugins']['get']('TrackChangesEditing'),_0x39f35a=_0x6790b8['locale'],_0x505b55=_0x6790b8['config']['get']('codeBlock')['languages'],_0xaa7967=_0x6790b8['commands']['get']('codeBlock');_0x29a0c6['enableCommand']('indentCodeBlock'),_0x29a0c6['enableCommand']('outdentCodeBlock'),_0x29a0c6['enableCommand']('codeBlock',(_0x5502bd,_0x25d80b={})=>{const _0x4ff589=_0x6790b8['model'],_0x2a1892=_0x6790b8['model']['document']['selection'],_0x398334=_0x25d80b&&void 0x0!==_0x25d80b['forceValue']?_0x25d80b['forceValue']:!_0xaa7967['value'];let _0x15657d;_0x25d80b['language']||(_0x25d80b['language']=_0x505b55[0x0]['language']),_0x15657d=_0x398334?Array['from'](_0x2a1892['getSelectedBlocks']())['filter'](_0x10d3d4=>oo(_0x10d3d4)||function(_0x271e59,_0x3e3de5){if(_0x271e59['is']('rootElement')||_0x3e3de5['isLimit'](_0x271e59))return!0x1;return _0x3e3de5['checkChild'](_0x271e59['parent'],'codeBlock');}(_0x10d3d4,_0x4ff589['schema'])):Array['from'](_0x2a1892['getSelectedBlocks']())['filter'](_0x370fe7=>oo(_0x370fe7));const _0x41d432=Zt(_0x15657d,_0x4ff589);_0x4ff589['change'](()=>{for(const _0x11b368 of _0x41d432)_0x29a0c6['markBlockFormat'](_0x11b368,{'commandName':'codeBlock','commandParams':[{..._0x25d80b,'forceValue':_0x398334}],'formatGroupId':'blockName'});});}),(_0x29a0c6['descriptionFactory']['registerElementLabel']('codeBlock',_0x42cc27=>c(_0x39f35a,'ELEMENT_CODE_BLOCK',_0x42cc27)),_0x29a0c6['descriptionFactory']['registerDescriptionCallback'](_0xcbdbf6=>{if('formatBlock'!=_0xcbdbf6['type'])return;const _0x16d703=_0x39f35a['t'],{data:_0x14c10c}=_0xcbdbf6;if(!_0x14c10c||'codeBlock'!=_0x14c10c['commandName'])return;const _0x1b8c37=_0x14c10c['commandParams'][0x0]['language'],_0x33c40d=_0x16d703(_0x505b55['find'](_0x20055d=>_0x20055d['language']===_0x1b8c37)['label'])['toLowerCase']();return _0x14c10c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x39f35a,'*Set\x20format:*\x20%0',c(_0x39f35a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33c40d+')')}:{'type':'format','content':c(_0x39f35a,'*Remove\x20format:*\x20%0',c(_0x39f35a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x393186){return'codeBlock'==_0x393186['name'];}class q extends _0x6c1265{['afterInit'](){const _0x19ac0d=this['editor'];if(!_0x19ac0d['plugins']['has']('CommentsEditing'))return;_0x19ac0d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x59fd96,_0x4954ac,_0x5d3542){const _0xa28f6c=[];for(const _0x46ff2d of _0x4954ac['getItems']())_0x46ff2d['hasAttribute'](_0x59fd96)&&_0xa28f6c['push'](_0x5d3542['createRangeOn'](_0x46ff2d));return _0xa28f6c;}function De(_0x251fe2,_0x39ec10,{showActiveMarker:_0x3966f3=!0x0}={}){const _0x22539d=_0x251fe2['plugins']['get']('TrackChangesEditing');return(_0x31a6ea,_0x476f4d,_0x5ba5bc)=>{if(!_0x5ba5bc['consumable']['test'](_0x476f4d['markerRange'],_0x31a6ea['name']))return;const _0x42107e=_0x476f4d['markerRange']['getWalker'](),_0x21a1ff=_0x476f4d['markerRange']['start'],_0x1e3c3a=_0x251fe2['model']['schema'];let _0x8340fa=null,_0xe13414=null,_0x3f3dec=!0x1,_0x3fbc75=!0x1;for(const _0x289fba of _0x42107e){const _0x39b4ee=_0x289fba['item'];_0x3f3dec=_0x3f3dec||_0x1e3c3a['isContent'](_0x39b4ee);const _0x523e26=_0x5ba5bc['mapper']['toViewElement'](_0x39b4ee);if(_0x523e26&&_0x523e26['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x289fba['type']&&(_0x1e3c3a['isBlock'](_0x39b4ee)&&!_0x1e3c3a['isLimit'](_0x39b4ee)&&(_0x39b4ee['nextSibling']||_0x21a1ff['isAtEnd']?_0x8340fa&&_0x8340fa['parent']==_0x39b4ee||(_0x8340fa=_0x39b4ee,_0x23efad(_0x289fba['previousPosition']),_0x3fbc75=!0x0):_0xe13414=_0xe13414||_0x289fba['previousPosition']));}function _0x23efad(_0x28c6ae){const {authorId:_0x1b0fc3}=_0x22539d['_splitMarkerName'](_0x476f4d['markerName']),_0x5c7ab7=_0x5ba5bc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39ec10,'data-author-id':_0x1b0fc3}),_0x2f309b=_0x5ba5bc['mapper']['toViewPosition'](_0x28c6ae);_0x3966f3&&_0x22539d['activeMarkers']['includes'](_0x476f4d['markerName'])&&_0x5ba5bc['writer']['addClass']('ck-suggestion-marker--active',_0x5c7ab7),_0x5ba5bc['writer']['insert'](_0x2f309b,_0x5c7ab7),_0x5ba5bc['mapper']['bindElementToMarker'](_0x5c7ab7,_0x476f4d['markerName']);}_0x3f3dec||_0x3fbc75||!_0xe13414||_0x23efad(_0xe13414);};}class z extends _0x6c1265{static get['requires'](){return[_0x5b6aa4];}['init'](){const _0x20fd77=this['editor'],_0x80c7cd=_0x20fd77['plugins']['get']('TrackChangesEditing');_0x80c7cd['enableCommand']('delete');const _0x4fb94f=_0x20fd77['commands']['get']('deleteForward');_0x80c7cd['enableCommand']('deleteForward',(_0x4bf93d,_0x445943={})=>{const _0x3b19bf=_0x20fd77['model']['createSelection'](_0x20fd77['model']['document']['selection']);_0x3b19bf['isCollapsed']&&_0x20fd77['model']['modifySelection'](_0x3b19bf,{'direction':'forward','unit':_0x445943['unit']});const _0x445c18=_0x3b19bf['getFirstRange'](),_0x1617c1=_0x26d742['fromRange'](_0x445c18);let _0x27004f;_0x4bf93d(_0x445943),_0x27004f='$graveyard'==_0x1617c1['root']['rootName']?_0x20fd77['model']['createRange'](_0x445c18['start']):_0x20fd77['model']['createRange'](_0x1617c1['start'],_0x1617c1['end']),_0x1617c1['detach'](),_0x20fd77['model']['enqueueChange'](_0x4fb94f['buffer']['batch'],_0x2e5eb0=>{_0x4fb94f['buffer']['lock'](),_0x2e5eb0['setSelection'](_0x2e5eb0['createRange'](_0x27004f['end'])),_0x4fb94f['buffer']['unlock']();});}),_0x20fd77['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x20fd77,'merge'),{'priority':'high'}),_0x20fd77['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x19fdb5,_0x51f16a,_0x58c245)=>{_0x58c245['options']['showSuggestionHighlights']&&De(_0x20fd77,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x19fdb5,_0x51f16a,_0x58c245);},{'priority':'high'}),_0x20fd77['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57b65c,_0x54b801,_0x2915ae)=>{const _0x539da7=_0x2915ae['mapper']['markerNameToElements'](_0x54b801['markerName']);if(_0x539da7){for(const _0x1a655f of _0x539da7)_0x1a655f['is']('uiElement')&&(_0x2915ae['mapper']['unbindElementFromMarkerName'](_0x1a655f,_0x54b801['markerName']),_0x2915ae['writer']['remove'](_0x1a655f));}},{'priority':'high'});}}class W extends _0x6c1265{['afterInit'](){const _0x58b526=this['editor'];if(!_0x58b526['plugins']['has']('ListEditing'))return;const _0x5ce235=_0x58b526['locale'],_0x2f6fb0=_0x58b526['plugins']['get']('TrackChangesEditing'),_0x124727=_0x58b526['plugins']['has']('TodoListEditing'),_0x466c97=!!_0x58b526['config']['get']('list.multiBlock');function _0x529b4d(_0x265820){return{'type':'format','content':''+c(_0x5ce235,'*Set\x20format:*\x20%0',_0x265820)};}function _0x5db116(_0x1959ee){return{'type':'format','content':''+c(_0x5ce235,'*Remove\x20format:*\x20%0',_0x1959ee)};}_0x2f6fb0['enableDefaultAttributesIntegration']('numberedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('bulletedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('customNumberedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('customBulletedList'),_0x2f6fb0['enableDefaultAttributesIntegration']('indentList'),_0x2f6fb0['enableDefaultAttributesIntegration']('outdentList'),_0x2f6fb0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2f6fb0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f6fb0['registerBlockAttribute']('listItemId'),_0x2f6fb0['registerBlockAttribute']('listType'),_0x2f6fb0['registerBlockAttribute']('listIndent'),_0x466c97&&(_0x2f6fb0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2f6fb0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x124727&&(_0x2f6fb0['enableDefaultAttributesIntegration']('todoList'),_0x2f6fb0['enableDefaultAttributesIntegration']('checkTodoList'),_0x2f6fb0['registerBlockAttribute']('todoListChecked'),_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x5cddba=>{const {data:_0x546bc4}=_0x5cddba;if(_0x546bc4&&'todoListChecked'==_0x546bc4['key'])return{'type':'format','content':_0x546bc4['newValue']?c(_0x5ce235,'*Check\x20item*'):c(_0x5ce235,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1fe74d=>{if(_0x1fe74d['batch']['isUndo'])return!0x1;let _0x45a63e=!0x1;const _0x1503c8=_0x2f6fb0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cfe7b=>'todoListChecked'===_0x2f6fb0['_getAttributeKey'](_0x4cfe7b));for(const _0x712d75 of _0x1503c8){'todo'!=_0x712d75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2f6fb0['_findSuggestions'](_0x712d75['getFirstRange'](),'attribute')['find'](_0x3abada=>'listType'===_0x2f6fb0['_getAttributeKey'](_0x3abada['suggestion']))||(_0x1fe74d['removeMarker'](_0x712d75['getFirstMarker']()),_0x45a63e=!0x0));}return _0x45a63e;})),_0x2f6fb0['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5ce235,'FORMAT_INDENT'));const _0x2e644e={'type':'format','content':''};_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x5a08b4=>{const {data:_0x364194}=_0x5a08b4;if(!_0x364194||'listType'!=_0x364194['key'])return;let _0x420f7f=_0x5a08b4['head'];for(;_0x420f7f;){if(_0x420f7f['data']&&(('listStyle'==_0x420f7f['data']['key']||'listMarkerStyle'==_0x420f7f['data']['key'])&&(_0x420f7f['data']['newValue']&&'default'!=_0x420f7f['data']['newValue']||'default'!=_0x420f7f['data']['oldValue']&&!_0x364194['newValue'])||!_0x466c97&&_0x420f7f['data']['key']==u))return _0x2e644e;_0x420f7f=_0x420f7f['next'];}if(null==_0x364194['newValue'])switch(_0x364194['oldValue']){case'bulleted':return _0x5db116(c(_0x5ce235,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5db116(c(_0x5ce235,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5db116(c(_0x5ce235,'ELEMENT_TODO_LIST'));}switch(_0x364194['newValue']){case'bulleted':return _0x529b4d(c(_0x5ce235,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x529b4d(c(_0x5ce235,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x529b4d(c(_0x5ce235,'ELEMENT_TODO_LIST'));}}),_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x985ffb=>{const {data:_0xd9055e}=_0x985ffb;if(_0xd9055e&&'listIndent'==_0xd9055e['key'])return null==_0xd9055e['newValue']||null==_0xd9055e['oldValue']&&0x0==_0xd9055e['newValue']?_0x2e644e:void 0x0;}),_0x2f6fb0['descriptionFactory']['registerDescriptionCallback'](_0x306b63=>{if('attribute'!=_0x306b63['type'])return;const {data:_0x5cf449}=_0x306b63;if(!_0x5cf449||'listItemId'!=_0x5cf449['key'])return;const _0x2c3c2c=Te(_0x306b63);return'newValue'==_0x2c3c2c?{'type':'format','content':c(_0x5ce235,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2c3c2c?{'type':'format','content':c(_0x5ce235,'*Split:*\x20list\x20item')}:_0x2e644e;}),_0x58b526['model']['document']['registerPostFixer'](_0x576d37=>this['listItemIdFixer'](_0x576d37)),_0x58b526['model']['document']['registerPostFixer'](_0x368204=>this['noTrackChangesFixer'](_0x368204)),_0x58b526['model']['document']['on']('change:data',(_0x299353,_0x378e28)=>{if(_0x378e28['isUndo']||!_0x378e28['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x48fa05){if(_0x48fa05['batch']['isUndo']||!_0x48fa05['batch']['isLocal'])return!0x1;let _0xde099e=!0x1;const _0x4c7f81=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2076b4=>_0x2076b4['data']&&'listItemId'==_0x2076b4['data']['key'])['filter'](_0x461d0b=>_0x461d0b['data']['newValue']&&_0x461d0b['data']['oldValue']);for(const _0x32e545 of _0x4c7f81)Te(_0x32e545)||(_0x48fa05['removeMarker'](_0x32e545['getFirstMarker']()),_0xde099e=!0x0);return _0xde099e;}['noTrackChangesFixer'](_0x39d419){if(_0x39d419['batch']['isUndo']||!_0x39d419['batch']['isLocal'])return!0x1;const _0x42189d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x42189d['trackChangesCommand']['value'])return!0x1;let _0x76c5cf=!0x1;const _0x1693e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1da195=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2f4576=>'attribute'==_0x2f4576['type'])['filter'](_0x4c2d0a=>_0x1693e8['includes'](_0x4c2d0a['attributeKey']));if(0x0==_0x1da195['length'])return _0x76c5cf;for(const _0xfd022 of _0x1da195){const _0x45e531=_0x42189d['_findSuggestions'](_0xfd022['range'],'attribute')['filter'](_0x45e9f8=>!_0x45e9f8['meta']['isNextTo'])['map'](_0x4fd044=>_0x4fd044['suggestion'])['filter'](_0x335b6c=>{const _0x11c0c0=_0x42189d['_getAttributeKey'](_0x335b6c);return _0x1693e8['includes'](_0x11c0c0);});if(_0x45e531['length']){for(const _0x31e148 of _0x45e531)_0x39d419['removeMarker'](_0x31e148['getFirstMarker']());_0x76c5cf=!0x0;}}return _0x76c5cf;}['assureChains'](){const _0x4cf4fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x134c91=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e7fca;const _0x5bef40=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e238d=>{if(_0x2e238d['data']['oldRange']||!_0x2e238d['data']['newRange'])return null;if(!_0x2e238d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5368d8}=_0x4cf4fb['_splitMarkerName'](_0x2e238d['name']);if(!_0x4cf4fb['hasSuggestion'](_0x5368d8))return null;const _0x195a64=_0x4cf4fb['getSuggestion'](_0x5368d8);return _0x134c91['includes'](_0x195a64['data']['key']);})['map'](_0xe39465=>{const {id:_0x1d7438}=_0x4cf4fb['_splitMarkerName'](_0xe39465['name']),_0x118c53=_0x4cf4fb['getSuggestion'](_0x1d7438);return _0x4e7fca=_0x118c53['attributes']['groupId'],_0x118c53['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5bef40['size'])return;const _0x19e540=_0x4cf4fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x595b8f=>'attribute'==_0x595b8f['type']&&_0x595b8f['data']&&_0x134c91['includes'](_0x595b8f['data']['key'])&&_0x595b8f['attributes']['groupId']!=_0x4e7fca)['map'](_0x49197d=>({'listItem':_0x49197d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x49197d['attributes']['groupId']})),_0xb22009=new Set();for(const {groupId:_0x175ee4,listItem:_0x36fa1b}of _0x19e540)_0x5bef40['has'](_0x36fa1b)&&_0xb22009['add'](_0x175ee4);for(const _0x55d53e of _0x4cf4fb['getSuggestions']())_0xb22009['has'](_0x55d53e['attributes']['groupId'])&&_0x55d53e['setAttribute']('groupId',_0x4e7fca);}['_supportLegacySuggestions'](){const _0x1fc979=this['editor'],_0x54ab3f=_0x1fc979['locale'],_0x43bf17=_0x1fc979['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x43bf17['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5d92e3,_0x1bc6eb){const _0x5f0fe7=[];for(let _0x3326c1 of _0x5d92e3)_0x3326c1['start']['nodeAfter']===_0x3326c1['end']['parent']&&(_0x3326c1=_0x1fc979['model']['createRange'](_0x1fc979['model']['createPositionAt'](_0x3326c1['start']['nodeAfter'],0x0))),_0x5f0fe7['push'](_0x3326c1);_0x1fc979['model']['change'](_0x56e783=>{const _0x7efb0f=_0x1fc979['model']['document']['selection'],_0x347985=Array['from'](_0x7efb0f['getRanges']())['map'](_0x401178=>_0x26d742['fromRange'](_0x401178));_0x56e783['setSelection'](_0x5f0fe7),_0x1fc979['commands']['get'](_0x1bc6eb['commandName'])['refresh'](),_0x1bc6eb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1fc979['execute'](_0x1bc6eb['commandName'],..._0x1bc6eb['commandParams']),_0x56e783['setSelection'](_0x347985);for(const _0x4134ad of _0x347985)_0x4134ad['detach']();});}),_0x43bf17['descriptionFactory']['registerElementLabel'](function(_0x10152f){const _0x55ecf1=!_0x1fc979['model']['schema']['isObject'](_0x10152f),_0x4c923d=_0x10152f['previousSibling'],_0x85f4e7=_0x10152f['nextSibling'],_0x54f875=_0x10152f['getAttribute']('listItemId'),_0x2312f6=!_0x4c923d||_0x4c923d['getAttribute']('listItemId')!==_0x54f875,_0x296321=!_0x85f4e7||_0x85f4e7['getAttribute']('listItemId')!==_0x54f875;return _0x55ecf1&&Boolean(_0x54f875)&&_0x2312f6&&_0x296321;},_0x59b655=>c(_0x54ab3f,'ELEMENT_LIST_ITEM',_0x59b655));}['_registerLegacyDescription'](){const _0x2db3c1=this['editor'],_0x33ee4d=_0x2db3c1['locale'];function _0x3b2901(_0x5f26b6){const _0x2a2731=_0x2db3c1['commands']['get']('bulletedList')['value'],_0xe4398e=_0x2db3c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x5f26b6?_0x2a2731:_0xe4398e;}_0x2db3c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x34e3cd){if('formatBlock'!=_0x34e3cd['type'])return;const {data:_0x2550ac}=_0x34e3cd;if(!_0x2550ac)return;let _0xb83324,_0x2f19a9,_0x2fb955,_0x587f26;switch(_0x2550ac['commandName']){case'bulletedList':_0x2fb955=_0x2550ac['commandParams'][0x0]['forceValue'],_0x587f26=_0x3b2901(_0x2550ac['commandName']),_0xb83324=_0x2fb955?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x587f26&&_0x2db3c1['config']['get']('list.multiBlock')||(_0xb83324='*Change\x20to:*\x20%0'),_0x2f19a9={'type':'format','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2fb955=_0x2550ac['commandParams'][0x0]['forceValue'],_0x587f26=_0x3b2901(_0x2550ac['commandName']),_0xb83324=_0x2fb955?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x587f26&&_0x2db3c1['config']['get']('list.multiBlock')||(_0xb83324='*Change\x20to:*\x20%0'),_0x2f19a9={'type':'format','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xb83324='*Indent:*\x20%0',_0x2f19a9={'type':'format','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xb83324=function(_0x30e5fb){const _0x10bbe0=_0x30e5fb['getFirstRange']();let _0x316b0e=_0x10bbe0['start']['nodeAfter'];for(;_0x316b0e&&_0x10bbe0['containsItem'](_0x316b0e);){if(_0x316b0e['getAttribute']('listIndent')>0x0)return!0x1;_0x316b0e=_0x316b0e['nextSibling'];}return!0x0;}(_0x34e3cd)?c(_0x33ee4d,'*Format:*\x20remove\x20from\x20%0',c(_0x33ee4d,function(_0x80c4eb){return'ELEMENT_'+_0x80c4eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x34e3cd))):c(_0x33ee4d,'*Outdent:*\x20%0',c(_0x33ee4d,'ELEMENT_LIST_ITEM')),_0x2f19a9={'type':'format','content':_0xb83324};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2550ac['multipleBlocks']&&(_0xb83324='*Merge:*\x20%0',_0x2f19a9={'type':'deletion','content':c(_0x33ee4d,_0xb83324,c(_0x33ee4d,'ELEMENT_LIST_ITEM'))});}return _0x2f19a9;});}}function Te(_0x24510b){let _0x80b9f9=_0x24510b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x80b9f9;){const _0x4929f8=_0x80b9f9['getAttribute']('listItemId');if(!_0x4929f8)return!0x1;if(_0x4929f8==_0x24510b['data']['newValue'])return'newValue';if(_0x4929f8==_0x24510b['data']['oldValue'])return'oldValue';_0x80b9f9=_0x80b9f9['previousSibling'];}return!0x1;}class Se extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x510241=this['editor']['config']['get']('list.properties'),_0x28773a=this['editor']['plugins']['get']('TrackChangesEditing');_0x510241['styles']&&(_0x28773a['enableDefaultAttributesIntegration']('listStyle'),_0x28773a['registerBlockAttribute']('listStyle')),_0x510241['reversed']&&(_0x28773a['enableDefaultAttributesIntegration']('listReversed'),_0x28773a['registerBlockAttribute']('listReversed')),_0x510241['startIndex']&&(_0x28773a['enableDefaultAttributesIntegration']('listStart'),_0x28773a['registerBlockAttribute']('listStart'));const _0x2b66e7={'type':'format','content':''};_0x28773a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x260e15=this['editor']['locale'];_0x28773a['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x260e15,'FORMAT_LIST_REVERSED')),_0x28773a['descriptionFactory']['registerDescriptionCallback'](_0x512e27=>{const {data:_0x4d5c0e}=_0x512e27;if(_0x4d5c0e&&'listReversed'==_0x4d5c0e['key'])return null==_0x4d5c0e['newValue']||0x0==_0x4d5c0e['newValue']&&null==_0x4d5c0e['oldValue']?_0x2b66e7:void 0x0;}),_0x28773a['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x260e15,'FORMAT_LIST_START')),_0x28773a['descriptionFactory']['registerDescriptionCallback'](_0xe26b67=>{const {data:_0x1b15ff}=_0xe26b67;if(_0x1b15ff&&'listStart'==_0x1b15ff['key'])return null==_0x1b15ff['newValue']||0x1==_0x1b15ff['newValue']&&null==_0x1b15ff['oldValue']?_0x2b66e7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b467e=>{if(_0x1b467e['batch']['isUndo'])return!0x1;let _0x32edcb=!0x1;const _0x2d7616=_0x28773a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bdc22=>{const _0x13c30d=_0x28773a['_getAttributeKey'](_0x4bdc22);return'listStart'==_0x13c30d||'listReversed'==_0x13c30d;});for(const _0x3f7969 of _0x2d7616){const _0x4e3476=_0x3f7969['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e3476||'customNumbered'==_0x4e3476)continue;_0x28773a['_findSuggestions'](_0x3f7969['getFirstRange'](),'attribute')['find'](_0xb2174=>'listType'==_0x28773a['_getAttributeKey'](_0xb2174['suggestion']))||(_0x1b467e['removeMarker'](_0x3f7969['getFirstMarker']()),_0x32edcb=!0x0);}return _0x32edcb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e2dde){const _0x19b180=this['editor']['locale'],{data:_0x18d057}=_0x5e2dde,_0x53d417={'type':'format','content':''};if(!_0x18d057||'listStyle'!=_0x18d057['key'])return;if(!_0x18d057['oldValue'])return'default'==_0x18d057['newValue']?_0x53d417:{'type':'format','content':''+c(_0x19b180,'*Set\x20format:*\x20%0',c(_0x19b180,this['_getTranslationKeyForListStyle'](_0x18d057['newValue'])))};if(!_0x18d057['newValue']){if('default'==_0x18d057['oldValue'])return _0x53d417;let _0xe1bc43=_0x5e2dde['head'];for(;_0xe1bc43;){if(_0xe1bc43['data']&&'listType'==_0xe1bc43['data']['key']&&_0xe1bc43['data']['newValue'])return _0x53d417;_0xe1bc43=_0xe1bc43['next'];}return{'type':'format','content':''+c(_0x19b180,'*Remove\x20format:*\x20%0',c(_0x19b180,this['_getTranslationKeyForListStyle'](_0x18d057['oldValue'])))};}if('default'!=_0x18d057['newValue'])return{'type':'format','content':''+c(_0x19b180,'*Set\x20format:*\x20%0',c(_0x19b180,this['_getTranslationKeyForListStyle'](_0x18d057['newValue'])))};let _0x153a03=_0x5e2dde['head'];for(;_0x153a03;){if(_0x153a03['data']&&'listType'==_0x153a03['data']['key']&&_0x153a03['data']['newValue']&&_0x153a03['data']['oldValue'])return _0x53d417;_0x153a03=_0x153a03['next'];}return{'type':'format','content':c(_0x19b180,'*Set\x20format:*\x20%0',c(_0x19b180,'ELEMENT_'+_0x5e2dde['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x379a0b=this['editor'],_0x23ee85=_0x379a0b['locale'];_0x379a0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b6940=>{if('formatBlock'!=_0x2b6940['type'])return;const {data:_0x43102b}=_0x2b6940;if(!_0x43102b)return;let _0x5b068d,_0x40a060;switch(_0x43102b['commandName']){case'listStyle':_0x5b068d='*Change\x20to:*\x20%0',_0x40a060={'type':'format','content':c(_0x23ee85,_0x5b068d,c(_0x23ee85,this['_getTranslationKeyForListStyle'](_0x43102b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5b068d=_0x43102b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40a060={'type':'format','content':c(_0x23ee85,_0x5b068d)};break;case'listStart':_0x5b068d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40a060={'type':'format','content':c(_0x23ee85,_0x5b068d,_0x43102b['commandParams'][0x0]['startIndex'])};}return _0x40a060;});}['_getTranslationKeyForListStyle'](_0x28f595){return'ELEMENT_'+function(_0x4b1004){if(_e['includes'](_0x4b1004))return'bulleted';if(Re['includes'](_0x4b1004))return'numbered';return null;}(_0x28f595)['toUpperCase']()+'_LIST_'+_0x28f595['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x6c1265{['afterInit'](){const _0x4e6a1d=this['editor'];_0x4e6a1d['commands']['get']('emoji')&&_0x4e6a1d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x6c1265{static get['requires'](){return[_0x5d5e4a];}['init'](){const _0x4a3609=this['editor'],_0x452934=_0x4a3609['plugins']['get']('TrackChangesEditing'),_0x53f934=_0x4a3609['commands']['get']('enter');_0x452934['enableCommand']('enter',()=>{_0x4a3609['model']['change'](_0x5213b4=>{const _0x51fb67=_0x4a3609['model']['document']['selection'],_0x292f2f=_0x51fb67['getFirstPosition'](),_0x5d1f83=_0x26d742['fromRange'](_0x51fb67['getFirstRange']());if(_0x53f934['enterBlock'](_0x5213b4)){const _0x57d28e=_0x4a3609['model']['createPositionAt'](_0x292f2f['parent']['nextSibling'],0x0),_0x1f50a2=_0x5213b4['createRange'](_0x292f2f,_0x57d28e);_0x452934['markInsertion'](_0x1f50a2);}else _0x5213b4['setSelection'](_0x5213b4['createRange'](_0x5d1f83['end']));_0x5d1f83['detach'](),_0x53f934['fire']('afterExecute',{'writer':_0x5213b4});});}),_0x4a3609['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4a3609,'split'),{'priority':'high'}),_0x4a3609['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x409260,_0x457b91,_0x47c24c)=>{const _0x600cd4=_0x47c24c['mapper']['markerNameToElements'](_0x457b91['markerName']);if(_0x600cd4){for(const _0x4272c2 of _0x600cd4)_0x4272c2['hasClass']('ck-suggestion-marker-split')&&(_0x47c24c['mapper']['unbindElementFromMarkerName'](_0x4272c2,_0x457b91['markerName']),_0x47c24c['writer']['remove'](_0x4272c2));}},{'priority':'high'}),_0x4a3609['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x362bed,_0x3db1d3,_0x278484)=>{_0x278484['options']['showSuggestionHighlights']&&De(_0x4a3609,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x362bed,_0x3db1d3,_0x278484);},{'priority':'high'});}}class Z extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f8bab=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f8bab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f8bab['enableCommand']('findNext'),_0x1f8bab['enableCommand']('findPrevious'),_0x1f8bab['enableCommand']('replace'),_0x1f8bab['enableCommand']('replaceAll');}['handleFindCommand'](_0x266dec,_0xe72587,_0x1db73b={}){const _0x192def=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x266dec(_0x559dc5=>{let _0x465804=('string'==typeof _0xe72587?_0x192def['findByTextCallback'](_0xe72587,_0x1db73b):_0xe72587)(_0x559dc5);Array['isArray'](_0x465804)&&(_0x465804={'results':_0x465804,'searchText':'string'==typeof _0xe72587?_0xe72587:''});const _0x2df44a=_0x465804['results']['filter'](_0x1dc0a9=>!0x1===this['_isInDeletionRange'](_0x1dc0a9,_0x559dc5['item']));return{..._0x465804,'results':_0x2df44a};},_0x1db73b);}['_isInDeletionRange'](_0x42a54b,_0x4d3a6b){const _0xdf3db4=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d3a6b,_0x42a54b['start']),this['editor']['model']['createPositionAt'](_0x4d3a6b,_0x42a54b['end']));for(const _0x34d76e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xdf3db4['getIntersection'](_0x34d76e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x6c1265{['afterInit'](){const _0x5d5f62=this['editor']['locale'],_0x2fbd9b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54fb34,commandName:_0x49ac86}of eo)this['editor']['plugins']['has'](_0x54fb34)&&(_0x2fbd9b['enableDefaultAttributesIntegration'](_0x49ac86),_0x2fbd9b['registerInlineAttribute'](_0x49ac86));_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5d5f62,'FORMAT_FONT_SIZE')),_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5d5f62,'FORMAT_FONT_FAMILY')),_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5d5f62,'FORMAT_FONT_COLOR')),_0x2fbd9b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5d5f62,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e982=this['editor'],_0x2b62fd=_0x56e982['locale'];_0x56e982['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22618c=>{const _0xa79c2d=_0x2b62fd['t'];if('formatInline'!=_0x22618c['type'])return;const {data:_0x467ea3}=_0x22618c;if(null!=_0x467ea3){if('fontSize'==_0x467ea3['commandName']){const _0x2d26a8=_0x467ea3['commandParams'][0x0]['value'];if(_0x2d26a8){const _0x18caee=_0xa79c2d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x457a29=>_0x457a29['model']==_0x2d26a8)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20size:*\x20%0',_0x18caee)};}return{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x467ea3['commandName']){const _0x4bd7f4=_0x467ea3['commandParams'][0x0]['value'];return _0x4bd7f4?{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20family:*\x20%0',_0x4bd7f4)}:{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x467ea3['commandName']){const _0xc4aec=_0x467ea3['commandParams'][0x0]['value'];if(_0xc4aec){const _0x374915=_0x1cad9e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c88d7=>_0x5c88d7['model']==_0xc4aec);let _0x42e5a6=_0xc4aec,_0x32c8f7='';return _0x374915&&(_0x42e5a6=_0x374915['label'],_0x32c8f7=_0xa79c2d(_0x42e5a6)['toLowerCase']()),{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20color:*\x20%0',_0x32c8f7)['trim'](),'color':{'value':_0xc4aec,'title':_0x32c8f7||_0x42e5a6}};}return{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x467ea3['commandName']){const _0x2bdadb=_0x467ea3['commandParams'][0x0]['value'];if(_0x2bdadb){const _0x55111a=_0x1cad9e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x588e86=>_0x588e86['model']==_0x2bdadb);let _0x3d5411=_0x2bdadb,_0x5c226d='';return _0x55111a&&(_0x3d5411=_0x55111a['label'],_0x5c226d=_0xa79c2d(_0x3d5411)['toLowerCase']()),{'type':'format','content':c(_0x2b62fd,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c226d)['trim'](),'color':{'value':_0x2bdadb,'title':_0x5c226d||_0x3d5411}};}return{'type':'format','content':c(_0x2b62fd,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x6c1265{['afterInit'](){const _0x189f79=this['editor'],_0xa5b6a3=_0x189f79['plugins']['get']('TrackChangesEditing'),_0x175748=_0x189f79['commands']['get']('copyFormat'),_0x33716b=_0x189f79['commands']['get']('pasteFormat');_0x175748&&_0x33716b&&(_0xa5b6a3['enableDefaultAttributesIntegration']('pasteFormat'),_0xa5b6a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4b5db8=this['editor'],_0x25f0db=_0x4b5db8['locale'];_0x4b5db8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41903e=>{if('formatBlock'!=_0x41903e['type']&&'formatInline'!=_0x41903e['type'])return;const {data:_0x3a1552}=_0x41903e;if(_0x3a1552&&'pasteFormat'===_0x3a1552['commandName']){const _0x504814=[],_0x2c32af=_0x3a1552['commandParams'][0x0];for(const [_0x407f9e,_0x1c65d8]of Object['entries'](_0x2c32af))_0x504814['push'](ro(_0x4b5db8,_0x407f9e,_0x1c65d8));return _0x504814['length']?{'type':'format','content':c(_0x25f0db,'*Set\x20format\x20to:*\x20%0',_0x504814['join'](',\x20'))}:{'type':'format','content':c(_0x25f0db,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x578476,_0xc93467,_0x42fd40){const _0x59990d=_0x578476['locale']['t'],_0x578cdf=_0xc93467['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d3de3=_0x59990d(_0x578cdf['charAt'](0x0)['toUpperCase']()+_0x578cdf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42fd40)return _0x1d3de3;if('fontColor'===_0xc93467||'fontBackgroundColor'===_0xc93467){const _0x23d5d2=_0x1cad9e(_0x578476['config']['get']('fontColor.colors'))['find'](_0x35ceab=>_0x35ceab['model']==_0x42fd40);return _0x1d3de3+'\x20('+(_0x23d5d2?_0x59990d(_0x23d5d2['label'])['toLowerCase']():_0x42fd40)+')';}if('fontSize'===_0xc93467&&isNaN(parseFloat(_0x42fd40))){const _0x5a5aee=_0x578476['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x578476['config']['get']('fontSize.options'))['find'](_0x5edc98=>_0x5edc98['model']==_0x42fd40);return _0x1d3de3+'\x20('+(_0x5a5aee?_0x59990d(_0x5a5aee['title'])['toLowerCase']():_0x42fd40)+')';}return _0x1d3de3+'\x20('+_0x42fd40+')';}class nt extends _0x6c1265{['_headingOptions'];['afterInit'](){const _0x439da9=this['editor'];if(!_0x439da9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x439da9['config']['get']('heading.options');const _0x3e5b71=_0x439da9['locale'],_0x44d54b=_0x439da9['plugins']['get']('TrackChangesEditing');_0x44d54b['enableDefaultAttributesIntegration']('heading');for(const _0x78a1ca of this['_headingOptions'])'paragraph'!=_0x78a1ca['model']&&_0x44d54b['descriptionFactory']['registerElementLabel'](_0x78a1ca['model'],_0x4f0d0b=>{const _0x154f2e=this['_getHeadingLevel'](_0x78a1ca['model']);return null!==_0x154f2e?_0x30e1e8(_0x4f0d0b,_0x154f2e):_0x422ad5(_0x4f0d0b,_0x78a1ca['title']);});function _0x30e1e8(_0x48e017,_0x22cd15){return c(_0x3e5b71,'ELEMENT_HEADING',[_0x48e017,_0x22cd15]);}function _0x422ad5(_0x460673,_0x295384){return c(_0x3e5b71,'ELEMENT_HEADING_CUSTOM',[_0x460673,_0x295384]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21564d=this['editor'],_0x234256=_0x21564d['locale'];function _0x12c284(_0x1b572e,_0x1d324d){return c(_0x234256,'ELEMENT_HEADING_CUSTOM',[_0x1b572e,_0x1d324d]);}_0x21564d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225d4b=>{if('formatBlock'!=_0x225d4b['type'])return;const {data:_0x1e5f9f}=_0x225d4b;if(_0x1e5f9f&&'heading'==_0x1e5f9f['commandName']){const _0x54076d=_0x1e5f9f['commandParams'][0x0]['value'],_0x103b9e=this['_getHeadingLevel'](_0x54076d);if(null!==_0x103b9e)return{'type':'format','content':c(_0x234256,'*Change\x20to:*\x20%0',(_0x107ccf=0x1,_0x4fd7a6=_0x103b9e,c(_0x234256,'ELEMENT_HEADING',[_0x107ccf,_0x4fd7a6])))};const _0x331d15=this['_headingOptions']['find'](_0x2e19a7=>_0x2e19a7['model']===_0x54076d)['title'];return{'type':'format','content':c(_0x234256,'*Change\x20to:*\x20%0',_0x12c284(0x1,_0x331d15))};}var _0x107ccf,_0x4fd7a6;});}['_getHeadingLevel'](_0x38a451){const _0x4d3c4d=_0x38a451['match'](/^heading(\d+)/);if(_0x4d3c4d)return _0x4d3c4d[0x1];const _0x438812=this['_headingOptions']?.['find'](_0x4fafe1=>_0x4fafe1['model']==_0x38a451);if(_0x438812&&_0x438812['view']){const _0x432576=_0x438812['view'],_0x442365=(_0x432576['name']??_0x432576)['match'](/^h(\d+)/);if(_0x442365)return _0x442365[0x1];}return null;}}class it extends _0x6c1265{['afterInit'](){const _0x98a823=this['editor'];if(!_0x98a823['plugins']['has']('HighlightEditing'))return;const _0x65cd98=_0x98a823['plugins']['get']('TrackChangesEditing'),_0x209fd8=_0x98a823['locale'];_0x65cd98['enableDefaultAttributesIntegration']('highlight'),_0x65cd98['registerInlineAttribute']('highlight'),_0x65cd98['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x209fd8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4038e4=this['editor'],_0x20b3ef=_0x4038e4['locale'];_0x4038e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb0fc=>{if('formatInline'!=_0x2eb0fc['type'])return;const {data:_0x4b9485}=_0x2eb0fc;if(_0x4b9485&&'highlight'==_0x4b9485['commandName']){const _0x311a3e=_0x20b3ef['t'],_0x28e46f=_0x4b9485['commandParams'][0x0]['value'];if(_0x28e46f){const _0x21260c=_0x4038e4['config']['get']('highlight.options')['find'](_0x5ea58f=>_0x5ea58f['model']==_0x28e46f),_0x487a76=_0x311a3e(_0x21260c['title'])['toLowerCase']();return{'type':'format','content':c(_0x20b3ef,'*Set\x20highlight:*\x20%0',_0x487a76),'color':{'value':_0x21260c['color'],'title':_0x21260c['title']}};}return{'type':'format','content':c(_0x20b3ef,'*Remove\x20highlight*',c(_0x20b3ef,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x6c1265{['afterInit'](){const _0x5467b5=this['editor'];if(!_0x5467b5['plugins']['has']('HorizontalLineEditing'))return;_0x5467b5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31f393=_0x5467b5['plugins']['get']('TrackChangesEditing'),_0x526fd8=_0x5467b5['locale'];_0x31f393['descriptionFactory']['registerElementLabel']('horizontalLine',_0xeb6065=>c(_0x526fd8,'ELEMENT_HORIZONTAL_LINE',_0xeb6065)),_0x5467b5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22fba3,{writer:_0x509294,options:_0x196395})=>{if(!_0x196395['showSuggestionHighlights'])return null;const _0x4dcd23=_0x509294['createContainerElement']('div'),_0x2f3c8e=_0x509294['createEmptyElement']('hr');return _0x509294['addClass']('ck-horizontal-line',_0x4dcd23),_0x509294['insert'](_0x509294['createPositionAt'](_0x4dcd23,0x0),_0x2f3c8e),_0x4dcd23;},'converterPriority':'high'});}}class ot extends _0x6c1265{['afterInit'](){const _0x4e9e49=this['editor'];if(!_0x4e9e49['plugins']['has']('HtmlEmbed'))return;const _0x30a213=_0x4e9e49['plugins']['get']('TrackChangesEditing'),_0x14e80d=_0x4e9e49['locale'];_0x30a213['descriptionFactory']['registerElementLabel']('rawHtml',_0x17ba57=>c(_0x14e80d,'ELEMENT_HTML_EMBED',_0x17ba57)),_0x30a213['enableDefaultAttributesIntegration']('htmlEmbed'),_0x30a213['registerBlockAttribute']('value'),_0x30a213['descriptionFactory']['registerDescriptionCallback'](_0x3ec203=>{if('attribute'!=_0x3ec203['type'])return;const {data:_0x429fb9}=_0x3ec203;if(_0x429fb9&&'value'==_0x429fb9['key']&&_0x3ec203['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d562e=c(_0x14e80d,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x14e80d,'*Change\x20%0\x20content*',_0x2d562e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ff859=this['editor'],_0x9d187f=_0x2ff859['locale'];_0x2ff859['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24504a=>{if('formatBlock'!=_0x24504a['type'])return;const {data:_0x33448e}=_0x24504a;if(_0x33448e&&'htmlEmbed'==_0x33448e['commandName']){const _0x4f7952=c(_0x9d187f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x9d187f,'*Change\x20%0\x20content*',_0x4f7952)};}});}}class rt extends _0x6c1265{['afterInit'](){const _0x496e94=this['editor'];if(!_0x496e94['plugins']['has']('ImageEditing'))return;const _0x1f0fc8=_0x496e94['plugins']['get']('TrackChangesEditing'),_0x2f7429=_0x496e94['plugins']['get']('ImageUtils'),_0x256293=_0x496e94['locale'];_0x1f0fc8['enableCommand']('insertImage'),_0x1f0fc8['descriptionFactory']['registerElementLabel']('imageBlock',_0x45db27=>c(_0x256293,'ELEMENT_IMAGE',_0x45db27)),_0x1f0fc8['descriptionFactory']['registerElementLabel']('imageInline',_0x48ca55=>c(_0x256293,'ELEMENT_INLINE_IMAGE',_0x48ca55)),_0x1f0fc8['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x256293,'ELEMENT_CAPTION')),_0x496e94['plugins']['has']('ImageUploadEditing')&&_0x1f0fc8['enableCommand']('uploadImage'),_0x496e94['plugins']['has']('ImageBlockEditing')&&_0x496e94['plugins']['has']('ImageInlineEditing')&&(_0x1f0fc8['enableCommand']('imageTypeInline',(_0x28476b,_0x505af8)=>{const _0x53d7ce=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']);_0x496e94['model']['change'](()=>{_0x1f0fc8['markBlockFormat'](_0x53d7ce,{'commandName':'imageTypeInline','commandParams':[_0x505af8]},[],'convertBlockImageToInline');});}),_0x1f0fc8['enableCommand']('imageTypeBlock',(_0x5c72c3,_0x574a80)=>{_0x496e94['model']['change'](_0x4cb1e1=>{let _0x3caafb=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x2703a7=_0x4cb1e1['createRangeOn'](_0x3caafb);const _0x52d433=_0x9e232c['fromPosition'](_0x2703a7['start'],'toPrevious'),_0x24b20e=_0x9e232c['fromPosition'](_0x2703a7['end'],'toNext');_0x1f0fc8['forceDefaultExecution'](()=>_0x5c72c3(_0x574a80)),_0x3caafb=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x2703a7=_0x4cb1e1['createRangeOn'](_0x3caafb);const _0x47f3bc=_0x4cb1e1['createRange'](_0x52d433,_0x24b20e);_0x52d433['detach'](),_0x24b20e['detach'](),_0x1f0fc8['markBlockFormat'](_0x3caafb,{'commandName':'imageTypeInline','commandParams':[_0x574a80]},[],'convertInlineImageToBlock'),_0x47f3bc['start']['isBefore'](_0x2703a7['start'])&&_0x1f0fc8['markInsertion'](_0x4cb1e1['createRange'](_0x47f3bc['start'],_0x2703a7['start']),'convertInlineImageToBlock'),_0x2703a7['end']['isBefore'](_0x47f3bc['end'])&&_0x1f0fc8['markInsertion'](_0x4cb1e1['createRange'](_0x2703a7['end'],_0x47f3bc['end']),'convertInlineImageToBlock');});}),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1f0fc8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3f76a2])=>{const _0x23816c=_0x1f0fc8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a96b6=_0x3f76a2['start'],_0x23a6d1=_0x3f76a2['end'];const _0x2903e1=_0x496e94['model']['schema']['getNearestSelectionRange'](_0x4a96b6,'backward'),_0x1c5686=_0x496e94['model']['schema']['getNearestSelectionRange'](_0x23a6d1,'forward');_0x2903e1['isCollapsed']&&(_0x4a96b6=_0x2903e1['start']),_0x1c5686['isCollapsed']&&(_0x23a6d1=_0x1c5686['end']),_0x23816c([_0x496e94['model']['createRange'](_0x4a96b6,_0x23a6d1)]);}),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1c9f69),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1c9f69)),_0x496e94['plugins']['has']('ImageCaptionEditing')&&(_0x1f0fc8['enableCommand']('toggleImageCaption',(_0x7bbf73,_0x2acb05)=>{const _0x5cbce1=_0x496e94['plugins']['get']('ImageCaptionUtils');let _0x57a15b=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x303702=_0x5cbce1['getCaptionFromImageModelElement'](_0x57a15b);_0x496e94['model']['change'](()=>{if(_0x303702)return void _0x1f0fc8['markDeletion'](_0x496e94['model']['createRangeOn'](_0x303702));const _0x44c8d4=_0x2f7429['isBlockImage'](_0x57a15b);_0x7bbf73(_0x2acb05),_0x57a15b=_0x2f7429['getClosestSelectedImageElement'](_0x496e94['model']['document']['selection']),_0x303702=_0x5cbce1['getCaptionFromImageModelElement'](_0x57a15b),_0x1f0fc8['markInsertion'](_0x496e94['model']['createRangeOn'](_0x303702),_0x44c8d4?null:'imageCaption');});}),_0x1f0fc8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1c9f69));const _0x1d2a42=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e0103(_0x7bb388,_0x5507d8){const _0x5d5187=_0x1d2a42['findIndex'](({type:_0x1d5531,subType:_0xc876a6})=>_0x7bb388['type']==_0x1d5531&&_0x7bb388['subType']==_0xc876a6),_0x57531f=_0x1d2a42['findIndex'](({type:_0x79103b,subType:_0x5c27f0})=>_0x5507d8['type']==_0x79103b&&_0x5507d8['subType']==_0x5c27f0);if(_0x5d5187<0x0||_0x57531f<0x0)return!0x1;const _0x30cb91=_0x7bb388['getFirstRange'](),_0x3140c2=_0x5507d8['getFirstRange']();if((0x0==_0x5d5187||0x1==_0x5d5187)&&0x2==_0x57531f&&_0x30cb91['isIntersecting'](_0x3140c2))return!0x0;if(0x2==_0x5d5187&&0x3==_0x57531f){const _0xcb8f25=_0x1f0fc8['_findSuggestions'](_0x30cb91,'insertion')['filter'](({suggestion:_0x935fa8,meta:_0x7e50b})=>_0x7e50b['isOwn']&&'convertInlineImageToBlock'==_0x935fa8['subType']);if(_0xcb8f25['length']>0x1&&_0x3140c2['end']['isEqual'](_0x30cb91['start']))return!0x0;if(0x1==_0xcb8f25['length']&&(_0x30cb91['start']['isEqual'](_0x3140c2['end'])||_0x30cb91['end']['isEqual'](_0x3140c2['start'])))return!0x0;}if(0x3==_0x5d5187&&0x3==_0x57531f&&_0x30cb91['start']['isBefore'](_0x3140c2['start'])){const _0x74a3e1=_0x30cb91['end']['nodeAfter'],_0x19704b=_0x3140c2['start']['nodeBefore'];return _0x2f7429['isBlockImage'](_0x74a3e1)&&_0x74a3e1===_0x19704b;}return!0x1;}function _0x1c9f69(_0x48d2fb,_0x4a6c19){return _0x2e0103(_0x48d2fb,_0x4a6c19)?[_0x48d2fb,_0x4a6c19]:_0x2e0103(_0x4a6c19,_0x48d2fb)?[_0x4a6c19,_0x48d2fb]:null;}_0x496e94['plugins']['has']('ImageResize')&&(_0x1f0fc8['enableDefaultAttributesIntegration']('resizeImage'),_0x1f0fc8['registerBlockAttribute']('resizedWidth'),_0x1f0fc8['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x256293,'FORMAT_IMAGE_SIZE'))),_0x496e94['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1f0fc8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1f0fc8['registerBlockAttribute']('alt')),_0x496e94['plugins']['has']('PictureEditing')&&(_0x1f0fc8['registerBlockAttribute']('sources'),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x274475=>{if('attribute'!=_0x274475['type'])return;const {data:_0x3f9194}=_0x274475;return _0x3f9194&&'sources'==_0x3f9194['key']?{'type':'format','content':''}:void 0x0;})),_0x496e94['plugins']['has']('ImageSizeAttributes')&&(_0x1f0fc8['registerBlockAttribute']('width'),_0x1f0fc8['registerBlockAttribute']('height'),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x4215a0=>{if('attribute'!=_0x4215a0['type'])return;const {data:_0x2a306e}=_0x4215a0;return!_0x2a306e||'width'!=_0x2a306e['key']&&'height'!=_0x2a306e['key']?void 0x0:{'type':'format','content':''};})),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x2389b5=>{if(!!_0x1d2a42['find'](({type:_0x3e357b,subType:_0x57b6a6})=>_0x2389b5['type']==_0x3e357b&&_0x2389b5['subType']==_0x57b6a6))return _0x2389b5['previous']?{}:void 0x0;}),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x5ce9f3=>{if('insertion'==_0x5ce9f3['type']||'deletion'==_0x5ce9f3['type']){const _0xe647dd=_0x5ce9f3['getContainedElement']();if(_0xe647dd&&_0xe647dd['is']('element','caption'))return{'type':'insertion'==_0x5ce9f3['type']?'addObject':'removeObject','element':_0xe647dd,'quantity':0x1};}}),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x4f37a6=>'formatBlock'==_0x4f37a6['type']&&'convertInlineImageToBlock'==_0x4f37a6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4f37a6['type']&&'convertBlockImageToInline'==_0x4f37a6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1f0fc8['descriptionFactory']['registerDescriptionCallback'](_0x21a6cc=>{if('attribute'!=_0x21a6cc['type'])return;const {data:_0x270aa9}=_0x21a6cc;if(!_0x270aa9||'alt'!=_0x270aa9['key'])return;const _0x57a58f=_0x270aa9['newValue'];return _0x57a58f?{'type':'format','content':c(_0x256293,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57a58f+'\x22')}:{'type':'format','content':c(_0x256293,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x162481=this['editor'],_0xc1aa65=_0x162481['locale'];_0x162481['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319586=>{if('formatBlock'!=_0x319586['type']&&'formatInline'!=_0x319586['type'])return;const {data:_0x567c33}=_0x319586;if(_0x567c33){if('imageTextAlternative'==_0x567c33['commandName']){const _0x175e90=_0x567c33['commandParams'][0x0]['newValue'];return _0x175e90?{'type':'format','content':c(_0xc1aa65,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x175e90+'\x22')}:{'type':'format','content':c(_0xc1aa65,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x567c33['commandName']){const _0x272da8=_0x567c33['commandParams'][0x0]['width'];return _0x272da8?{'type':'format','content':c(_0xc1aa65,'*Set\x20image\x20width:*\x20%0',_0x272da8)}:{'type':'format','content':c(_0xc1aa65,'*Reset\x20image\x20width*')};}}});}}class at extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2d9141=this['editor']['locale'],_0x352996=this['editor']['plugins']['get']('TrackChangesEditing');_0x352996['enableDefaultAttributesIntegration']('replaceImageSource'),_0x352996['registerBlockAttribute']('src'),_0x352996['descriptionFactory']['registerDescriptionCallback'](_0x59d66a=>{if('attribute'!=_0x59d66a['type'])return;const {data:_0x16747}=_0x59d66a;return _0x16747&&'src'==_0x16747['key']?_0x16747['newValue']&&_0x16747['oldValue']?{'type':'format','content':c(_0x2d9141,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c9f17=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c9f17['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5c9f17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c9f17['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5c9f17['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x179b9e=this['editor'],_0x4e6b00=_0x179b9e['locale'];_0x179b9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52c4b0=>{if('formatBlock'!=_0x52c4b0['type']&&'formatInline'!=_0x52c4b0['type'])return;const {data:_0x3d5589}=_0x52c4b0;if(!_0x3d5589||'replaceImageSource'!=_0x3d5589['commandName'])return;return{'type':'format','content':c(_0x4e6b00,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x6c1265{['afterInit'](){const _0x43e61f=this['editor'];if(!_0x43e61f['plugins']['has']('ImageStyleEditing'))return;const _0x253fb0=_0x43e61f['plugins']['get']('TrackChangesEditing'),_0x2c0652=_0x43e61f['plugins']['get']('ImageUtils'),_0xec13b5={};_0x253fb0['enableCommand']('imageStyle',(_0x1af186,_0x10d0a0)=>{const _0x1d5bd7=_0x43e61f['plugins']['get']('Users')['me'],_0x7a3236=_0x43e61f['commands']['get']('imageStyle');let _0x195069=_0x2c0652['getClosestSelectedImageElement'](_0x43e61f['model']['document']['selection']),_0x5f3d5e=_0x43e61f['model']['createRangeOn'](_0x195069),_0x3364cb=_0x7a3236['value'];if(_0x3364cb==_0x10d0a0['value'])return;const _0x485bb8={'commandName':'imageStyle','commandParams':[_0x10d0a0],'formatGroupId':_0x2e4cf8()};_0x43e61f['model']['change'](()=>{if(_0x253fb0['getSuggestions']()['filter'](_0x16192b=>_0x16192b['isInContent']&&_0x1d5bd7==_0x16192b['author']&&('formatBlock'==_0x16192b['type']||'formatInline'==_0x16192b['type'])&&('imageStylePreApply'==_0x16192b['subType']||'imageStylePostApply'==_0x16192b['subType'])&&_0x16192b['getFirstRange']()['isEqual'](_0x5f3d5e))['forEach'](_0x407b30=>_0x253fb0['discardSuggestion'](_0x407b30['head'])),_0x195069=_0x2c0652['getClosestSelectedImageElement'](_0x43e61f['model']['document']['selection']),_0x5f3d5e=_0x43e61f['model']['createRangeOn'](_0x195069),_0x7a3236['refresh'](),_0x43e61f['commands']['get']('imageTypeInline')['refresh'](),_0x43e61f['commands']['get']('imageTypeBlock')['refresh'](),_0x3364cb=_0x7a3236['value'],_0x3364cb!=_0x10d0a0['value'])return _0x2c0652['isInlineImage'](_0x195069)&&_0x7a3236['shouldConvertImageType'](_0x10d0a0['value'],_0x195069)?(_0x1af186({..._0x10d0a0,'setImageSizes':!0x1}),_0x195069=_0x2c0652['getClosestSelectedImageElement'](_0x43e61f['model']['document']['selection']),void _0x253fb0['markBlockFormat'](_0x195069,{..._0x485bb8,'commandReversedParams':[{'value':_0x3364cb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c0652['isBlockImage'](_0x195069)?_0x253fb0['markBlockFormat'](_0x195069,_0x485bb8,[],'imageStylePostApply'):_0x253fb0['markInlineFormat'](_0x5f3d5e,_0x485bb8,'imageStylePostApply'));});});for(const _0x507681 of _0x43e61f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xec13b5[_0x507681['name']]=_0x507681['title']['toLowerCase']();_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x329797])=>{_0x2c0652['setImageNaturalSizeAttributes'](_0x329797['getContainedElement']());}),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x246c2d,_0x179fd0)=>{_0x253fb0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x246c2d,{'commandName':_0x179fd0['commandName'],'commandParams':_0x179fd0['commandReversedParams']});}),_0x253fb0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x309426,_0x5f0ed7){if(_0x61ec06(_0x309426,_0x5f0ed7))return[_0x309426,_0x5f0ed7];if(_0x61ec06(_0x5f0ed7,_0x309426))return[_0x5f0ed7,_0x309426];return null;});const _0x2a2f62=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x61ec06(_0x41f429,_0x5df8a1){const _0x109bbc=_0x2a2f62['findIndex'](({type:_0x567ea8,subType:_0x4ddcd5})=>_0x41f429['type']==_0x567ea8&&_0x41f429['subType']==_0x4ddcd5),_0x1a9154=_0x2a2f62['findIndex'](({type:_0x19ecc7,subType:_0xee00bc})=>_0x5df8a1['type']==_0x19ecc7&&_0x5df8a1['subType']==_0xee00bc);if(_0x109bbc<0x0||_0x1a9154<0x0)return!0x1;const _0x4891d8=_0x41f429['getFirstRange'](),_0x5a3ed9=_0x5df8a1['getFirstRange']();if((0x0==_0x109bbc||0x1==_0x109bbc)&&0x2==_0x1a9154&&_0x4891d8['isIntersecting'](_0x5a3ed9))return!0x0;if(0x2==_0x109bbc&&0x3==_0x1a9154){const _0xb8ba96=_0x253fb0['_findSuggestions'](_0x4891d8,'insertion')['filter'](({suggestion:_0xc4e117,meta:_0x4c2454})=>_0x4c2454['isOwn']&&'convertInlineImageToBlock'==_0xc4e117['subType']);if(_0xb8ba96['length']>0x1&&_0x5a3ed9['end']['isEqual'](_0x4891d8['start']))return!0x0;if(0x1==_0xb8ba96['length']&&(_0x4891d8['start']['isEqual'](_0x5a3ed9['end'])||_0x4891d8['end']['isEqual'](_0x5a3ed9['start'])))return!0x0;}if(0x3==_0x109bbc&&0x3==_0x1a9154&&_0x4891d8['start']['isBefore'](_0x5a3ed9['start'])){const _0x424996=_0x4891d8['end']['nodeAfter'],_0x107d97=_0x5a3ed9['start']['nodeBefore'];return _0x2c0652['isBlockImage'](_0x424996)&&_0x424996===_0x107d97;}return!0x1;}_0x43e61f['model']['document']['registerPostFixer'](()=>{let _0x48ab24=!0x1;const _0x667396=Array['from'](_0x43e61f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ba775,data:_0x38b92b}of _0x667396){const {group:_0xef327,type:_0xbd6db2,subType:_0x43f10b,id:_0x202a4d}=_0x253fb0['_splitMarkerName'](_0x2ba775);if('suggestion'==_0xef327&&_0x253fb0['hasSuggestion'](_0x202a4d)){if('formatBlock'==_0xbd6db2&&('imageStylePreApply'==_0x43f10b||'imageStylePostApply'==_0x43f10b)){const _0x481e1f=_0x253fb0['getSuggestion'](_0x202a4d);if(_0x38b92b['newRange']){const _0x49e953=_0x481e1f['getFirstRange']()['getContainedElement']();if(_0x2c0652['isBlockImage'](_0x49e953))continue;_0x253fb0['discardSuggestion'](_0x481e1f),_0x48ab24=!0x0;}}if('insertion'==_0xbd6db2&&'imageCaption'==_0x43f10b&&!_0x38b92b['newRange']){const _0x35a78d=_0x253fb0['getSuggestion'](_0x202a4d);_0x35a78d['next']&&_0x35a78d['next']['isInContent']&&(_0x253fb0['discardSuggestion'](_0x35a78d['next']),_0x48ab24=!0x0);}}}return _0x48ab24;}),this['_registerLegacyDescription'](_0xec13b5);}['_registerLegacyDescription'](_0x257a03){const _0x2ff82e=this['editor'],_0x593171=_0x2ff82e['locale'];_0x2ff82e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46f453=>{if('formatBlock'!=_0x46f453['type']&&'formatInline'!=_0x46f453['type'])return;const {data:_0x3ee658}=_0x46f453;if(!_0x3ee658||'imageStyle'!=_0x3ee658['commandName'])return;const _0xe442ac=_0x3ee658['commandParams'][0x0]['value'];return _0x22d42c('side'===_0xe442ac?c(_0x593171,'FORMAT_SIDE_IMAGE'):_0x257a03[_0xe442ac]||_0xe442ac);function _0x22d42c(_0x2b219f){return{'type':'format','content':c(_0x593171,'*Format:*\x20%0',_0x2b219f)};}});}}class ut extends _0x6c1265{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4d0326){super(_0x4d0326),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x598edd=this['editor'],_0x29c235=_0x598edd['commands']['get']('importWord'),_0x4f6f51=_0x598edd['commands']['get']('trackChanges');_0x29c235&&(_0x29c235['on']('execute',(_0x32058a,[,_0xeba361])=>{this['_trackChangesValueDuringImport']=_0x4f6f51['value'],_0xeba361['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29c235,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29c235,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f6f51['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x598edd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x352dac,_0x5ee7da){const {suggestions:_0x48c914}=_0x5ee7da,_0x14c89f=this['editor']['commands']['get']('trackChanges'),_0x56a98f=_0x14c89f['value'];this['_trackChangesValueDuringImport']!==_0x56a98f&&(_0x14c89f['execute'](),this['_trackChangesExecuted']=!0x0),_0x48c914&&_0x48c914['forEach'](({id:_0x2a092c,type:_0x114cd9,author:_0x5de81a,created_at:_0xeb8dc8})=>{const _0xb79a7e={'id':_0x2a092c,'type':_0x114cd9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5de81a,'createdAt':_0xeb8dc8?new Date(_0xeb8dc8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb79a7e);});}}class ft extends _0x6c1265{['afterInit'](){const _0x3b9cee=this['editor'],_0x12a881=_0x3b9cee['plugins']['get']('TrackChangesEditing');if(_0x3b9cee['plugins']['has']('IndentEditing')&&(_0x12a881['enableCommand']('indent'),_0x12a881['enableCommand']('outdent')),_0x3b9cee['plugins']['has']('IndentBlock')){for(const _0x2ed347 of['indentBlock','outdentBlock'])_0x12a881['enableDefaultAttributesIntegration'](_0x2ed347);}const _0x13be81=_0x3b9cee['locale'];_0x12a881['registerBlockAttribute']('blockIndent'),_0x12a881['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x13be81,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8508ee=this['editor'],_0x2e1db0=_0x8508ee['locale'],_0x56748b=_0x8508ee['plugins']['get']('TrackChangesEditing');_0x56748b['descriptionFactory']['registerDescriptionCallback'](_0x3f2fb4=>{if('formatBlock'!=_0x3f2fb4['type'])return;const {data:_0x25947d}=_0x3f2fb4;if(!_0x25947d)return;if('indentBlock'!=_0x25947d['commandName']&&'outdentBlock'!=_0x25947d['commandName'])return;const _0x5d08c7=_0x3f2fb4['getItems']()[0x0],_0x363ab2=_0x56748b['descriptionFactory']['getItemLabel'](_0x5d08c7);return'indentBlock'==_0x25947d['commandName']?{'type':'format','content':c(_0x2e1db0,'*Indent:*\x20%0',_0x363ab2)}:'outdentBlock'==_0x25947d['commandName']?{'type':'format','content':c(_0x2e1db0,'*Outdent:*\x20%0',_0x363ab2)}:void 0x0;});}}class ht extends _0x6c1265{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x6c1265{['afterInit'](){const _0x233a72=this['editor'];if(!_0x233a72['plugins']['has']('LinkEditing'))return;const _0x2cdc90=_0x233a72['plugins']['get']('TrackChangesEditing'),_0x2ce49b=_0x233a72['commands']['get']('link');_0x2cdc90['enableDefaultAttributesIntegration']('link'),_0x2cdc90['enableDefaultAttributesIntegration']('unlink'),_0x2cdc90['registerInlineAttribute']('linkHref');for(const _0xb2921f of _0x2ce49b['manualDecorators'])_0x2cdc90['registerInlineAttribute'](_0xb2921f['id']),_0x2cdc90['descriptionFactory']['registerAttributeLabel'](_0xb2921f['id'],'link\x20('+_0xb2921f['label']['toLowerCase']()+')');_0x2cdc90['descriptionFactory']['registerDescriptionCallback'](_0x18f813=>{if('attribute'!=_0x18f813['type'])return;const {data:_0x577f20}=_0x18f813;if(!_0x577f20||'linkHref'!=_0x577f20['key'])return;const _0x1d8b07=_0x577f20['newValue'],_0x15f6bb=_0x233a72['locale'];return{'type':'format','content':null==_0x1d8b07?c(_0x15f6bb,'*Remove\x20link*'):c(_0x15f6bb,'*Set\x20link:*\x20%0','\x22'+_0x1d8b07+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x61026d=this['editor'],_0x1ecd62=_0x61026d['locale'];_0x61026d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474397=>{if('formatInline'!=_0x474397['type'])return;const {data:_0x4f440c}=_0x474397;if(_0x4f440c){if('link'==_0x4f440c['commandName']){const _0xb38c9e=_0x4f440c['commandParams'][0x0];return{'type':'format','content':c(_0x1ecd62,'*Set\x20link:*\x20%0','\x22'+_0xb38c9e+'\x22')};}return'unlink'==_0x4f440c['commandName']?{'type':'format','content':c(_0x1ecd62,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x6c1265{['afterInit'](){const _0x231eb4=this['editor'],_0x5ac1b9=_0x231eb4['locale'];if(!_0x231eb4['plugins']['has']('LegacyListEditing'))return;const _0x238839=_0x231eb4['plugins']['get']('TrackChangesEditing'),_0x5747af=_0x231eb4['plugins']['has']('LegacyTodoListEditing');function _0x407873(_0x59e237){return()=>{const _0x2a2417=_0x231eb4['model']['document']['selection'],_0x440b98=_0x231eb4['commands']['get'](_0x59e237);if(_0x440b98['value'])return void _0x231eb4['execute']('paragraph',{});const _0x48005d=_0x59e237['slice'](0x0,-0x4),_0x3ffb58=function(_0x396677,_0x3e57e1,_0x55061f){let _0x29897e=Array['from'](_0x396677)['filter'](_0x531f18=>function(_0x40c909,_0x2d916d){return _0x2d916d['checkChild'](_0x40c909['parent'],'listItem')&&!_0x2d916d['isObject'](_0x40c909);}(_0x531f18,_0x55061f));_0x29897e=_0x29897e['filter'](_0x1e51ce=>!_0x1e51ce['is']('element','listItem')||_0x1e51ce['getAttribute']('listType')!=_0x3e57e1);const _0x1b7af1=new Set();for(const _0x1519c5 of _0x29897e)_0x1519c5['is']('element','listItem')?_0x1b7af1['add'](Le(_0x1519c5)):_0x1b7af1['add'](_0x1519c5);return Array['from'](_0x1b7af1);}(_0x2a2417['getSelectedBlocks'](),_0x48005d,_0x231eb4['model']['schema']);_0x231eb4['model']['change'](()=>{for(const _0x48e3e9 of _0x3ffb58)_0x238839['markBlockFormat'](_0x48e3e9,{'commandName':_0x59e237,'commandParams':[{'forceValue':!_0x440b98['value']}],'formatGroupId':'blockName'},Ee(_0x48e3e9));});};}function _0x16c6f2(_0x24287a){return()=>{const _0x2d872f=function(_0x20a462){let _0x550eae=Array['from'](_0x20a462);const _0x582b46=_0x550eae['findIndex'](_0x5ce1ed=>'listItem'!=_0x5ce1ed['name']);return _0x582b46>-0x1&&(_0x550eae=_0x550eae['slice'](0x0,_0x582b46)),_0x550eae;}(_0x231eb4['model']['document']['selection']['getSelectedBlocks']()),_0x596005=_0x231eb4['model']['createRange'](_0x231eb4['model']['createPositionAt'](_0x2d872f[0x0],'before'),_0x231eb4['model']['createPositionAt'](_0x2d872f[_0x2d872f['length']-0x1],'end'));_0x231eb4['model']['change'](()=>{_0x238839['markBlockFormat'](_0x596005,{'commandName':_0x24287a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16c3d6){const _0x5b1859=new Set();for(const _0x4b685b of _0x16c3d6){let _0x4cf68b=_0x4b685b['nextSibling'];for(;_0x4cf68b&&_0x4cf68b['getAttribute']('listIndent')>_0x4b685b['getAttribute']('listIndent');)_0x5b1859['add'](_0x4cf68b),_0x4cf68b=_0x4cf68b['nextSibling'];}return Array['from'](_0x5b1859);}(_0x2d872f));});};}_0x238839['enableCommand']('numberedList',_0x407873('numberedList')),_0x238839['enableCommand']('bulletedList',_0x407873('bulletedList')),_0x5747af&&_0x238839['enableCommand']('todoList',_0x407873('todoList')),_0x238839['enableCommand']('indentList',_0x16c6f2('indentList')),_0x238839['enableCommand']('outdentList',_0x16c6f2('outdentList')),_0x5747af&&_0x238839['enableCommand']('checkTodoList',()=>{const _0x5d01b0=_0x231eb4['commands']['get']('checkTodoList'),_0x4e8984=Array['from'](_0x5d01b0['_selectedElements']);_0x4e8984['filter'](_0x22fcf2=>_0x22fcf2['getAttribute']('todoListChecked')!=_0x5d01b0['value']),_0x231eb4['model']['change'](()=>{for(const _0x1d82c2 of _0x4e8984)_0x238839['markBlockFormat'](_0x1d82c2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d01b0['value']}]});});}),_0x238839['descriptionFactory']['registerElementLabel']('listItem',_0x501cb5=>c(_0x5ac1b9,'ELEMENT_LIST_ITEM',_0x501cb5)),_0x238839['descriptionFactory']['registerDescriptionCallback'](_0x47ca02=>{if('formatBlock'!=_0x47ca02['type']&&'formatInline'!=_0x47ca02['type'])return;const {data:_0x45acc3}=_0x47ca02;if(_0x45acc3){if('numberedList'==_0x45acc3['commandName']||'bulletedList'==_0x45acc3['commandName']||'todoList'==_0x45acc3['commandName'])switch(_0x45acc3['commandName']['replace']('List','')){case'bulleted':return _0x451994(c(_0x5ac1b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x451994(c(_0x5ac1b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x451994(c(_0x5ac1b9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x45acc3['commandName'])return{'type':'format','content':c(_0x5ac1b9,'*Indent:*\x20%0',c(_0x5ac1b9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x45acc3['commandName'])return{'type':'format','content':c(_0x5ac1b9,'*Outdent:*\x20%0',c(_0x5ac1b9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x45acc3['commandName'])return _0x45acc3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5ac1b9,'*Check\x20item*')}:{'type':'format','content':c(_0x5ac1b9,'*Uncheck\x20item*')};}function _0x451994(_0x1523b7){return{'type':'format','content':c(_0x5ac1b9,'*Change\x20to:*\x20%0',_0x1523b7)};}});}}function Le(_0x3d3d43){const _0x2d9cd7=_0x3d3d43['getAttribute']('listIndent');if(0x0==_0x2d9cd7)return _0x3d3d43;let _0x117c79=_0x3d3d43;for(;_0x3d3d43['previousSibling']&&_0x3d3d43['previousSibling']['is']('element','listItem');){const _0x31167b=_0x3d3d43['previousSibling']['getAttribute']('listIndent');if(_0x31167b==_0x2d9cd7)_0x117c79=_0x3d3d43['previousSibling'];else{if(_0x31167b<_0x2d9cd7)break;}_0x3d3d43=_0x3d3d43['previousSibling'];}return _0x117c79;}function Ee(_0x43d134){const _0x8c5a00=[];if(_0x43d134['is']('element','listItem')&&_0x43d134['getAttribute']('listIndent')>0x0){let _0x512492=_0x43d134['nextSibling'];for(;_0x512492&&'listItem'==_0x512492['name']&&_0x512492['getAttribute']('listIndent')==_0x43d134['getAttribute']('listIndent');)_0x8c5a00['push'](_0x512492),_0x512492=_0x512492['nextSibling'];}return _0x8c5a00;}class Q extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x440e7a=this['editor']['config']['get']('list.properties'),_0x2a5644=this['editor']['plugins']['get']('TrackChangesEditing');_0x440e7a['styles']&&_0x2a5644['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x440e7a['reversed']&&_0x2a5644['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x440e7a['startIndex']&&_0x2a5644['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2a5644['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x35411a,_0x27d60a={}){const _0x3b9122=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18391=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b9122['markMultiRangeBlockFormat'](_0x18391,{'commandName':'listStyle','commandParams':[{'type':_0x27d60a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d8781,_0x4dc466={}){const _0x98322=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3066ac=this['_getSuggestionBlocks'](_0x418040=>_0x418040['is']('element','listItem')&&'numbered'===_0x418040['getAttribute']('listType'));if(_0x3066ac['length']<0x1)return;const _0x2abe24=_0x3066ac['map'](_0xf41780=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf41780,'before'),this['editor']['model']['createPositionAt'](_0xf41780,0x0)));this['editor']['model']['change'](()=>{_0x98322['markMultiRangeBlockFormat'](_0x2abe24,{'commandName':'listReversed','commandParams':[{'reversed':_0x4dc466['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4cbd50,_0x385569={}){const _0xa31f62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3482ca=this['_getSuggestionBlocks'](_0x5e2fd6=>_0x5e2fd6['is']('element','listItem')&&'numbered'===_0x5e2fd6['getAttribute']('listType'));if(_0x3482ca['length']<0x1)return;const _0x2463f3=_0x3482ca['map'](_0x53ae97=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53ae97,'before'),this['editor']['model']['createPositionAt'](_0x53ae97,0x0)));this['editor']['model']['change'](()=>{_0xa31f62['markMultiRangeBlockFormat'](_0x2463f3,{'commandName':'listStart','commandParams':[{'startIndex':_0x385569['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2adb8f){if('formatBlock'!=_0x2adb8f['type']&&'formatInline'!=_0x2adb8f['type'])return;const _0x344459=this['editor']['locale'],{data:_0x437d15}=_0x2adb8f;if(!_0x437d15)return;let _0x2bd4f3,_0x2db2b1;switch(_0x437d15['commandName']){case'listStyle':_0x2bd4f3='*Change\x20to:*\x20%0',_0x2db2b1={'type':'format','content':c(_0x344459,_0x2bd4f3,c(_0x344459,this['_getTranslationKeyForListStyle'](_0x437d15['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2bd4f3=_0x437d15['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2db2b1={'type':'format','content':c(_0x344459,_0x2bd4f3)};break;case'listStart':_0x2bd4f3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2db2b1={'type':'format','content':c(_0x344459,_0x2bd4f3,_0x437d15['commandParams'][0x0]['startIndex'])};}return _0x2db2b1;}['_getSuggestionBlocksForListStyle'](){const _0x5e5238=this['editor']['plugins']['get']('LegacyListUtils');let _0x28033a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x28033a[0x0]?.['is']('element','listItem')&&_0x28033a['unshift'](..._0x5e5238['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x28033a[_0x28033a['length']-0x1]?.['is']('element','listItem')&&_0x28033a['push'](..._0x5e5238['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x28033a=[...new Set(_0x28033a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x28033a=_0x28033a['filter'](_0x2cb00d=>_0x2cb00d['is']('element','listItem'))),_0x28033a;}['_getSuggestionBlocks'](_0xabbfc7){const _0x588608=this['editor']['plugins']['get']('LegacyListUtils');let _0x35c1db=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xabbfc7)['map'](_0x562a43=>{const _0x1ebb09=this['editor']['model']['createPositionAt'](_0x562a43,0x0);return[..._0x588608['getSiblingNodes'](_0x1ebb09,'backward'),..._0x588608['getSiblingNodes'](_0x1ebb09,'forward')];})['flat']();return _0x35c1db=[...new Set(_0x35c1db)],_0x35c1db;}['_getTranslationKeyForListStyle'](_0x4430ff){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4430ff)||'default')['toUpperCase']()+'_LIST_'+_0x4430ff['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x6c1265{['afterInit'](){const _0x2560a3=this['editor'];if(!_0x2560a3['plugins']['has']('MediaEmbedEditing'))return;const _0x4fe43b=_0x2560a3['plugins']['get']('TrackChangesEditing'),_0x365c95=_0x2560a3['locale'];_0x4fe43b['enableCommand']('mediaEmbed'),_0x4fe43b['descriptionFactory']['registerElementLabel']('media',_0xaeb4a5=>c(_0x365c95,'ELEMENT_MEDIA',_0xaeb4a5)),_0x2560a3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xb181d0,{writer:_0x415ebb,options:_0x42f70c})=>{if(_0x42f70c['showSuggestionHighlights'])return _0x415ebb['createEmptyElement']('div');},'converterPriority':'high'}),_0x2560a3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4c25bf,_0x30a01f,_0x176954)=>{_0x176954['options']['showSuggestionHighlights']&&_0x4c25bf['stop']();},{'priority':'high'});}}class pt extends _0x6c1265{['afterInit'](){const _0x519836=this['editor'];_0x519836['plugins']['has']('MentionEditing')&&_0x519836['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x6c1265{['afterInit'](){const _0xa88ddd=this['editor'];if(!_0xa88ddd['plugins']['has']('MergeFieldsEditing'))return;const _0x5eb080=_0xa88ddd['plugins']['get']('TrackChangesEditing'),_0x3c792a=_0xa88ddd['locale'];_0x5eb080['enableCommand']('insertMergeField'),_0x5eb080['enableCommand']('insertMergeFieldBlock'),_0x5eb080['enableCommand']('insertMergeFieldImage'),_0x5eb080['descriptionFactory']['registerElementLabel']('mergeField',_0x1e6168=>c(_0x3c792a,'ELEMENT_MERGE_FIELD',_0x1e6168)),_0x5eb080['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2a54b2=>c(_0x3c792a,'ELEMENT_MERGE_FIELD',_0x2a54b2)),_0x5eb080['descriptionFactory']['registerDescriptionCallback'](_0x480918=>{if('insertion'!=_0x480918['type']&&'deletion'!=_0x480918['type'])return;const _0x2b67e4=_0x480918['getContainedElement']();if(null==_0x2b67e4)return;const _0x1caff7=_0xa88ddd['plugins']['get']('MergeFieldsEditing');let _0x3575de;switch(_0x1caff7['getMergeFieldType'](_0x2b67e4)){case null:return;case'image':{const _0x14b5ac=_0x1caff7['unwrapAffixes'](_0x2b67e4['getAttribute']('src'));_0x3575de=_0x1caff7['getLabel'](_0x14b5ac)||_0x14b5ac;break;}default:{const _0x115962=_0x2b67e4['getAttribute']('id');_0x3575de=_0x1caff7['getLabel'](_0x115962)||_0x115962;break;}}return'insertion'==_0x480918['type']?{'type':'insertion','content':c(_0x3c792a,'*Insert:*\x20%0','\x22'+_0x3575de+'\x22\x20'+c(_0x3c792a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3c792a,'*Remove:*\x20%0','\x22'+_0x3575de+'\x22\x20'+c(_0x3c792a,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x6c1265{['afterInit'](){const _0x3c314b=this['editor'],_0x2809c0=_0x3c314b['plugins']['get']('TrackChangesEditing');_0x3c314b['plugins']['has']('MultiLevelList')&&(_0x2809c0['enableDefaultAttributesIntegration']('multiLevelList'),_0x2809c0['registerBlockAttribute']('listMarkerStyle'),_0x2809c0['descriptionFactory']['registerDescriptionCallback'](_0x235dcf=>this['handleDescriptions'](_0x235dcf)));}['handleDescriptions'](_0x101148){const _0x1b72ed=this['editor']['locale'],{data:_0x46f6b1}=_0x101148,_0x4aa8ed={'type':'format','content':''};if(_0x46f6b1&&'listMarkerStyle'==_0x46f6b1['key']){if(!_0x46f6b1['oldValue'])return{'type':'format','content':c(_0x1b72ed,'*Set\x20format:*\x20%0',c(_0x1b72ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46f6b1['newValue']+')'};if(!_0x46f6b1['newValue']){let _0x577bc7=_0x101148['head'];for(;_0x577bc7;){if(_0x577bc7['data']&&'listType'==_0x577bc7['data']['key']&&_0x577bc7['data']['newValue'])return _0x4aa8ed;_0x577bc7=_0x577bc7['next'];}return{'type':'format','content':c(_0x1b72ed,'*Remove\x20format:*\x20%0',c(_0x1b72ed,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46f6b1['oldValue']+')'};}}}}class bt extends _0x6c1265{['afterInit'](){const _0x159c0b=this['editor'];if(!_0x159c0b['plugins']['has']('PageBreakEditing'))return;_0x159c0b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x509747=_0x159c0b['plugins']['get']('TrackChangesEditing'),_0x1cf6b0=_0x159c0b['locale'];_0x509747['descriptionFactory']['registerElementLabel']('pageBreak',_0x127cdc=>c(_0x1cf6b0,'ELEMENT_PAGE_BREAK',_0x127cdc));}}class yt extends _0x6c1265{['afterInit'](){const _0x58e048=this['editor'];if(!_0x58e048['plugins']['has']('Paragraph'))return;const _0x41d050=_0x58e048['locale'],_0x16635b=_0x58e048['plugins']['get']('TrackChangesEditing');_0x16635b['descriptionFactory']['registerElementLabel']('paragraph',_0xe5d99c=>c(_0x41d050,'ELEMENT_PARAGRAPH',_0xe5d99c)),_0x16635b['enableDefaultAttributesIntegration']('paragraph'),_0x16635b['enableCommand']('insertParagraph'),_0x58e048['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58e048),{'priority':'highest'}),_0x58e048['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1afa9d,_0x1d5423,_0x218c5e)=>{_0x218c5e['options']['showSuggestionHighlights']&&nr(_0x58e048,{'showActiveMarker':!0x1})(_0x1afa9d,_0x1d5423,_0x218c5e);},{'priority':'highest'});const _0x3ae675=_0x16635b['descriptionFactory'];_0x3ae675['registerDescriptionCallback'](_0x502c82=>{if('insertion'!==_0x502c82['type'])return;const {start:_0x20ea99,end:_0x5bac3d}=_0x502c82['getFirstRange']();if(!_0x20ea99['isTouching'](_0x5bac3d)||!_0x20ea99['nodeAfter'])return;const _0x49bda4=_0x58e048['model']['schema'],_0x3835f2=_0x20ea99['nodeAfter'];return _0x49bda4['isBlock'](_0x3835f2)&&!_0x49bda4['isLimit'](_0x3835f2)&&_0x49bda4['checkChild'](_0x3835f2,'$text')?{'type':'insertion','content':c(_0x41d050,'*Insert:*\x20%0',_0x3ae675['getItemLabel'](_0x3835f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41473e=this['editor'],_0x282a48=_0x41473e['locale'];_0x41473e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fec68=>{if('formatBlock'!=_0x3fec68['type'])return;const {data:_0x820f2c}=_0x3fec68;return _0x820f2c&&'paragraph'==_0x820f2c['commandName']?{'type':'format','content':c(_0x282a48,'*Change\x20to:*\x20%0',c(_0x282a48,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3b0b03,{showActiveMarker:_0x26c64c=!0x0}={}){return(_0x3afa5b,_0x5f3175,_0x452cbe)=>{const _0x2646a8=_0x3b0b03['plugins']['get']('TrackChangesEditing'),_0x1b2193=_0x5f3175['markerRange']['start'],_0x22ba32=_0x5f3175['markerRange']['end'],_0x48d978=_0x3b0b03['model']['schema'];if(!_0x1b2193['isTouching'](_0x22ba32)||!_0x1b2193['nodeAfter'])return;const _0x1c6900=_0x1b2193['nodeAfter'];if(_0x48d978['isBlock'](_0x1c6900)&&!_0x48d978['isLimit'](_0x1c6900)&&_0x48d978['checkChild'](_0x1c6900,'$text')){if(!_0x452cbe['consumable']['consume'](_0x5f3175['markerRange'],_0x3afa5b['name']))return;const {authorId:_0x429c0c}=_0x2646a8['_splitMarkerName'](_0x5f3175['markerName']),_0x4d7bf3=_0x452cbe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x429c0c}),_0x3bc81b=_0x452cbe['mapper']['toViewPosition'](_0x22ba32);_0x26c64c&&_0x2646a8['activeMarkers']['includes'](_0x5f3175['markerName'])&&_0x452cbe['writer']['addClass']('ck-suggestion-marker--active',_0x4d7bf3),_0x452cbe['writer']['insert'](_0x3bc81b,_0x4d7bf3),_0x452cbe['mapper']['bindElementToMarker'](_0x4d7bf3,_0x5f3175['markerName']);}};}class jt extends _0x6c1265{['afterInit'](){const _0x235a02=this['editor'];_0x235a02['commands']['get']('replaceSource')&&_0x235a02['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x6c1265{['afterInit'](){const _0x4e199d=this['editor'];if(!_0x4e199d['plugins']['has']('RemoveFormatEditing'))return;_0x4e199d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aeb40=this['editor'];_0x3aeb40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f36d6=>{if('formatBlock'!=_0x1f36d6['type']&&'formatInline'!=_0x1f36d6['type'])return;const {data:_0x5e645f}=_0x1f36d6;return _0x5e645f&&'removeFormat'==_0x5e645f['commandName']?{'type':'format','content':c(_0x3aeb40['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x6c1265{['afterInit'](){const _0x52511f=this['editor'];if(!_0x52511f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x453661=_0x52511f['plugins']['get']('TrackChangesEditing');_0x453661['enableCommand']('goToPreviousRestrictedEditingException'),_0x453661['enableCommand']('goToNextRestrictedEditingException');const _0x4adb98=_0x52511f['plugins']['get']('RestrictedEditingModeEditing');_0x4adb98['enableCommand']('trackChanges'),_0x4adb98['enableCommand']('acceptSuggestion'),_0x4adb98['enableCommand']('discardSuggestion'),_0x4adb98['enableCommand']('acceptAllSuggestions'),_0x4adb98['enableCommand']('discardAllSuggestions'),_0x4adb98['enableCommand']('acceptSelectedSuggestions'),_0x4adb98['enableCommand']('discardSelectedSuggestions');}}class It extends _0x6c1265{static get['requires'](){return[_0xef751d];}['init'](){const _0x1b0d50=this['editor'],_0x187d3f=_0x1b0d50['plugins']['get']('TrackChangesEditing');_0x187d3f['enableCommand']('shiftEnter'),_0x1b0d50['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1b0d50),{'priority':'high'}),_0x1b0d50['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1b0d50),{'priority':'high'}),_0x1b0d50['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc681d2,_0x524199,_0x467d2d)=>{_0x467d2d['options']['showSuggestionHighlights']&&je(_0x1b0d50,{'showActiveMarker':!0x1})(_0xc681d2,_0x524199,_0x467d2d);}),_0x187d3f['descriptionFactory']['registerElementLabel']('softBreak',_0x139a14=>c(_0x1b0d50['locale'],'ELEMENT_LINE_BREAK',_0x139a14));}}function je(_0x211d43,{showActiveMarker:_0x3ab2c0=!0x0}={}){return(_0x1cd7f6,_0x43dfae,_0x527e25)=>{const _0x2c6a39=_0x211d43['plugins']['get']('TrackChangesEditing');if(!_0x527e25['consumable']['test'](_0x43dfae['markerRange'],_0x1cd7f6['name']))return;const _0x323fec=_0x211d43['model'];for(const _0x5555dc of _0x43dfae['markerRange']['getItems']()){if(!_0x5555dc['is']('element','softBreak'))continue;const _0x2b307c='deletion'==_0x43dfae['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x22ecf6}=_0x2c6a39['_splitMarkerName'](_0x43dfae['markerName']),_0x9999a7=_0x527e25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b307c,'data-author-id':_0x22ecf6}),_0x4b2596=_0x527e25['mapper']['toViewPosition'](_0x323fec['createPositionBefore'](_0x5555dc));_0x3ab2c0&&_0x2c6a39['activeMarkers']['includes'](_0x43dfae['markerName'])&&_0x527e25['writer']['addClass']('ck-suggestion-marker--active',_0x9999a7),_0x527e25['writer']['insert'](_0x4b2596,_0x9999a7),_0x527e25['mapper']['bindElementToMarker'](_0x9999a7,_0x43dfae['markerName']);}};}class _t extends _0x6c1265{['afterInit'](){const _0x4904ae=this['editor'],_0x4b1b49=_0x4904ae['model'],_0x41484c=_0x4904ae['locale'];if(!_0x4904ae['plugins']['has']('StandardEditingModeEditing'))return;const _0x4fb045=_0x4904ae['plugins']['get']('TrackChangesEditing'),_0x2259d4='restrictedEditingException',_0x4c5de2=_0x4904ae['commands']['get'](_0x2259d4);_0x4fb045['enableCommand'](_0x2259d4,(_0x56d055,_0x4b4858={})=>{const _0x46bb75=_0x4b1b49['document']['selection'];if(_0x46bb75['isCollapsed'])return void _0x56d055(_0x4b4858);const _0x32eede=void 0x0!==_0x4b4858['forceValue']?_0x4b4858['forceValue']:!_0x4c5de2['value'];_0x4b1b49['change'](()=>{const _0x475bac=Array['from'](_0x46bb75['getRanges']());for(const _0x4783b8 of _0x475bac){const _0x5194e6=_0x32eede?[_0x4783b8]:io(_0x2259d4,_0x4783b8,_0x4b1b49);for(const _0x501b7c of _0x5194e6)_0x4fb045['markInlineFormat'](_0x501b7c,{'commandName':_0x2259d4,'commandParams':[{'forceValue':_0x32eede}]});}});}),_0x4fb045['descriptionFactory']['registerDescriptionCallback'](_0x587f38=>{if('formatBlock'!=_0x587f38['type']&&'formatInline'!=_0x587f38['type'])return;const {data:_0x182bee}=_0x587f38;return _0x182bee&&_0x182bee['commandName']==_0x2259d4?_0x182bee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41484c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x41484c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x6c1265{['afterInit'](){const _0x5c9b1c=this['editor'];if(!_0x5c9b1c['plugins']['has']('Style')||!_0x5c9b1c['plugins']['has']('DataSchema'))return;const _0x4e4238=_0x5c9b1c['plugins']['get']('TrackChangesEditing'),_0x1810a1=_0x5c9b1c['locale'],_0x204c8f=_0x5c9b1c['config']['get']('style')||{},_0x25e638=_0x5c9b1c['plugins']['get']('GeneralHtmlSupport'),_0x4114d7=_0x5c9b1c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5c9b1c['plugins']['get']('DataSchema'),_0x204c8f['definitions']);_0x4e4238['enableDefaultAttributesIntegration']('style');const _0x5d3612=new Set();for(const _0x58762c of _0x4114d7['block']){const _0x1d44a8=_0x25e638['getGhsAttributeNameForElement'](_0x58762c['element']);_0x5d3612['add'](_0x1d44a8);}const _0x59e8d3=new Set();for(const _0x2914a8 of _0x4114d7['inline']){const _0x488af4=_0x25e638['getGhsAttributeNameForElement'](_0x2914a8['element']);_0x59e8d3['add'](_0x488af4);for(const _0x2bb8aa of _0x2914a8['ghsAttributes'])_0x59e8d3['add'](_0x2bb8aa);}for(const _0x2b5155 of _0x5d3612)_0x4e4238['registerBlockAttribute'](_0x2b5155),_0x4e4238['descriptionFactory']['registerAttributeLabel'](_0x2b5155,c(_0x1810a1,'FORMAT_STYLE'));for(const _0x452a1c of _0x59e8d3)_0x4e4238['registerInlineAttribute'](_0x452a1c),_0x4e4238['descriptionFactory']['registerAttributeLabel'](_0x452a1c,c(_0x1810a1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49c2e6=this['editor'],_0x17ad47=_0x49c2e6['locale'];_0x49c2e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23b941=>{if('formatBlock'!=_0x23b941['type']&&'formatInline'!=_0x23b941['type'])return;const {data:_0x2b3bb9}=_0x23b941;return _0x2b3bb9&&'style'===_0x2b3bb9['commandName']?_0x2b3bb9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x17ad47,'*Set\x20format:*\x20%0',_0x2b3bb9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x17ad47,'*Remove\x20format:*\x20%0',_0x2b3bb9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x6c1265{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x437b1c){super(_0x437b1c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3e92fb=this['editor'],_0x29750c=_0x3e92fb['model']['document']['selection'];if(!_0x3e92fb['plugins']['has']('TableEditing'))return;const _0x433662=_0x3e92fb['locale'],_0x1520cd=_0x3e92fb['plugins']['get']('TrackChangesEditing'),_0x779dd8=_0x3e92fb['plugins']['get']('TableUtils');_0x1520cd['descriptionFactory']['registerElementLabel']('table',_0x89bc=>c(_0x433662,'ELEMENT_TABLE',_0x89bc)),this['_setupColumnsRowsFixing'](),_0x1520cd['enableCommand']('insertTable'),_0x1520cd['enableCommand']('selectTableRow'),_0x1520cd['enableCommand']('selectTableColumn');for(const _0x474495 of['insertTableRowAbove','insertTableRowBelow']){const _0x5b2fa5=_0x3e92fb['commands']['get'](_0x474495);_0x1520cd['enableCommand'](_0x474495,_0x2bffee=>{_0x3e92fb['model']['change'](_0x37de5b=>{_0x2bffee();const _0x2d1219='above'===_0x5b2fa5['order'],_0x4ee343=_0x779dd8['getSelectionAffectedTableCells'](_0x29750c),_0x1e0213=_0x779dd8['getRowIndexes'](_0x4ee343),_0x405085=_0x2d1219?_0x1e0213['first']-0x1:_0x1e0213['last']+0x1,_0xdba984=_0x4ee343[0x0]['findAncestor']('table'),_0x12c4e4=_0x779dd8['createTableWalker'](_0xdba984,{'startRow':_0x405085,'endRow':_0x405085}),_0x2c927b=Array['from'](_0x12c4e4)['map'](_0x11d138=>_0x37de5b['createRangeOn'](_0x11d138['cell']));_0x1520cd['markMultiRangeInsertion'](_0x2c927b,'tableRow');});});}for(const _0x26aae1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1ffae7=_0x3e92fb['commands']['get'](_0x26aae1);_0x1520cd['enableCommand'](_0x26aae1,_0xc0ec45=>{_0x3e92fb['model']['change'](_0x191115=>{_0xc0ec45();const _0x1a7f3c='left'===_0x1ffae7['order'],_0x5e7d56=_0x779dd8['getSelectionAffectedTableCells'](_0x29750c),_0x5d9328=_0x779dd8['getColumnIndexes'](_0x5e7d56),_0x4b58d1=_0x1a7f3c?_0x5d9328['first']-0x1:_0x5d9328['last']+0x1,_0x2d50c4=_0x5e7d56[0x0]['findAncestor']('table'),_0x1d1859=_0x779dd8['createTableWalker'](_0x2d50c4,{'startRow':0x0,'column':_0x4b58d1,'includeAllSlots':!0x1}),_0x374950=Array['from'](_0x1d1859)['map'](_0x484810=>_0x191115['createRangeOn'](_0x484810['cell']));_0x1520cd['markMultiRangeInsertion'](_0x374950,'tableColumn');});});}for(const _0x46bf2f of['removeTableRow','removeTableColumn']){const _0x5204d3=_0x46bf2f['substr'](0xb),_0x5777d6=_0x5204d3['toLowerCase'](),_0x3f116a=_0x5777d6['substr'](0x0,0x3)+'span',_0x364ef9='table'+_0x5204d3,_0x1e3d0d='min'+_0x5204d3,_0x295bab='max'+_0x5204d3;_0x1520cd['enableCommand'](_0x46bf2f,()=>{_0x3e92fb['model']['change'](_0x5d7434=>{const _0x14b7fd=_0x779dd8['getSelectionAffectedTableCells'](_0x29750c),_0x53537f=_0x14b7fd[0x0]['findAncestor']('table');let _0x170834;if('removeTableRow'==_0x46bf2f){const _0x52855c=_0x779dd8['getRowIndexes'](_0x14b7fd);_0x170834={'startRow':_0x52855c['first'],'endRow':_0x52855c['last'],'includeAllSlots':!0x0};}else{const _0x206736=_0x779dd8['getColumnIndexes'](_0x14b7fd);_0x170834={'startColumn':_0x206736['first'],'endColumn':_0x206736['last'],'includeAllSlots':!0x0};}const _0x473ed8=_0x779dd8['createTableWalker'](_0x53537f,_0x170834),_0x38ab55=Array['from'](_0x473ed8)['map'](({cell:_0x4077a2})=>_0x4077a2),_0x5c6f0c=Ne(_0x38ab55['filter'](_0x34a319=>_0x34a319['hasAttribute'](_0x3f116a))),_0x88cff7=Ne(_0x38ab55['filter'](_0x2e977a=>!_0x2e977a['hasAttribute'](_0x3f116a)))['map'](_0x42b291=>_0x5d7434['createRangeOn'](_0x42b291)),_0x32829d=_0x1520cd['markMultiRangeDeletion'](_0x88cff7,_0x364ef9);if(_0x32829d&&('tableRow'==_0x32829d['subType']||'tableColumn'==_0x32829d['subType'])){const _0x3b2890=this['_getSuggestionCoords'](_0x32829d);for(const _0x161d66 of _0x5c6f0c){const _0x4ce990=_0x5d7434['createRangeOn'](_0x161d66),_0x1f5598=_0x779dd8['getCellLocation'](_0x161d66),_0x20f77f=_0x161d66['getAttribute'](_0x3f116a)-0x1,_0x3e4702=_0x3b2890[_0x1e3d0d],_0x5d4361=_0x3b2890[_0x295bab];_0x3e4702<=_0x1f5598[_0x5777d6]&&_0x1f5598[_0x5777d6]+_0x20f77f<=_0x5d4361&&_0x32829d['addRange'](_0x4ce990);}}});});}function _0xf22089(_0x2064d3){const _0x7a4ef8=Array['from'](_0x29750c['getRanges']())['map'](_0x73e5da=>_0x26d742['fromRange'](_0x73e5da));_0x3e92fb['model']['change'](_0x3e3011=>{const _0xa938c3=_0x3e3011['batch'];_0x2064d3=_0x2064d3['filter'](_0x2001af=>'$graveyard'!=_0x2001af['root']['rootName']),_0x3e3011['setSelection'](_0x2064d3),_0x3e92fb['commands']['get']('removeTableRow')['refresh'](),_0x3e92fb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3e92fb['model']['enqueueChange'](()=>{_0x3e92fb['model']['enqueueChange'](_0xa938c3,_0x2ba2c9=>{const _0x17d310=_0x7a4ef8['filter'](_0xc7bc00=>'$graveyard'!=_0xc7bc00['root']['rootName']);_0x17d310['length']>0x0&&_0x2ba2c9['setSelection'](_0x17d310);for(const _0x382bb7 of _0x7a4ef8)_0x382bb7['detach']();});});});}function _0x12b427(_0xf7edc5){_0x3e92fb['model']['change'](_0x45706c=>{const _0xfd2a74=Array['from'](_0x29750c['getRanges']())['map'](_0x303077=>_0x26d742['fromRange'](_0x303077)),_0x5ed6f1=[];for(const _0x510e5a of _0xf7edc5)for(const _0x2996f3 of _0x510e5a['getItems']({'shallow':!0x0}))_0x5ed6f1['push'](_0x2996f3);for(const _0x3b74a1 of _0x5ed6f1)'$graveyard'!=_0x3b74a1['root']['rootName']&&(_0x45706c['setSelection'](_0x45706c['createPositionAt'](_0x3b74a1,0x0)),_0x3e92fb['commands']['get']('removeTableColumn')['refresh'](),_0x3e92fb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27f995=_0xfd2a74['filter'](_0x314bf7=>'$graveyard'!=_0x314bf7['root']['rootName']);_0x27f995['length']>0x0&&_0x45706c['setSelection'](_0x27f995);for(const _0x18c425 of _0xfd2a74)_0x18c425['detach']();});}function _0x781ac2(_0x2912cc,_0xbae273){return _0xbae273['every'](_0x5e3eac=>_0x2912cc['some'](_0x15278c=>_0x15278c['end']['isEqual'](_0x5e3eac['start'])||_0x5e3eac['end']['isEqual'](_0x15278c['start'])));}function _0x1fbd5f(_0x54f4da,_0x559b5f){return!_0x54f4da['some'](_0x3cb925=>_0x559b5f['some'](_0x532ca7=>_0x3cb925['isIntersecting'](_0x532ca7)))&&_0x54f4da['some'](_0x3133b7=>_0x559b5f['some'](_0x4bea55=>_0x3133b7['end']['isTouching'](_0x4bea55['start'])));}_0x3e92fb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cdac0,_0x25de3d,_0x4b33dc)=>{if(!_0x4b33dc['options']['showSuggestionHighlights'])return;const _0x3b0275=_0x25de3d['item'];if(!_0x3b0275)return;const _0x53f2eb=_0x4b33dc['mapper']['toViewElement'](_0x3b0275);function _0x47e8f7(_0x58a28c){return Array['isArray'](_0x58a28c)?_0x58a28c:[_0x58a28c];}_0x53f2eb&&'tableCell'===_0x3b0275['name']&&_0x4305d4(_0x53f2eb,_0x4b33dc['writer'],(_0x4d7596,_0x4a48b2,_0x29b4b8)=>_0x29b4b8['addClass'](_0x47e8f7(_0x4a48b2['classes']),_0x4d7596),(_0x1d7487,_0x43331e,_0x15d77b)=>_0x15d77b['removeClass'](_0x47e8f7(_0x43331e['classes']),_0x1d7487));},{'priority':'highest'}),_0x1520cd['descriptionFactory']['registerDescriptionCallback'](_0x34d5b9=>{if('insertion'!=_0x34d5b9['type']&&'deletion'!=_0x34d5b9['type'])return;const _0x4a83d4=_0x34d5b9['getContainedElement']();if(null!=_0x4a83d4&&_0x4a83d4['is']('element','table')){if('insertion'==_0x34d5b9['type']){const _0x1af9f3=_0x34d5b9['getItems']()['filter'](_0x3e4bf6=>_0x3e4bf6['is']('$textProxy'))['map'](_0x4844a9=>_0x4844a9['data']);if(_0x1af9f3['length'])return{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1af9f3['join']('\x20')+'\x22'))};}if('deletion'==_0x34d5b9['type']){const _0x27e905=_0x34d5b9['getItems']()['filter'](_0x5ba370=>_0x5ba370['is']('$textProxy'))['map'](_0xdf20ed=>_0xdf20ed['data']);if(_0x27e905['length'])return{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27e905['join']('\x20')+'\x22'))};}}}),_0x1520cd['descriptionFactory']['registerDescriptionCallback'](_0x8ecec9=>{if('tableRow'==_0x8ecec9['subType']){const _0x596cb5=_0x8ecec9['getItems']()['filter'](_0x19c74d=>_0x19c74d['is']('$textProxy'))['map'](_0x2cfc31=>_0x2cfc31['data']),_0x126b2d=this['_getSuggestionCoords'](_0x8ecec9),_0x4b9bdf=_0x126b2d['maxRow']-_0x126b2d['minRow']+0x1;if('insertion'==_0x8ecec9['type'])return _0x596cb5['length']?{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b9bdf,'\x22'+_0x596cb5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW',_0x4b9bdf))};if('deletion'==_0x8ecec9['type'])return _0x596cb5['length']?{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b9bdf,'\x22'+_0x596cb5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_ROW',_0x4b9bdf))};}if('tableColumn'==_0x8ecec9['subType']){const _0x2de39c=_0x8ecec9['getItems']()['filter'](_0x37e3ad=>_0x37e3ad['is']('$textProxy'))['map'](_0x924bf=>_0x924bf['data']),_0x31456c=this['_getSuggestionCoords'](_0x8ecec9),_0x40b5f1=_0x31456c['maxColumn']-_0x31456c['minColumn']+0x1;if('insertion'==_0x8ecec9['type'])return _0x2de39c['length']?{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40b5f1,'\x22'+_0x2de39c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x433662,'*Insert:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN',_0x40b5f1))};if('deletion'==_0x8ecec9['type'])return _0x2de39c['length']?{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40b5f1,'\x22'+_0x2de39c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x433662,'*Remove:*\x20%0',c(_0x433662,'ELEMENT_TABLE_COLUMN',_0x40b5f1))};}}),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf22089),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf22089),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x12b427),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x12b427),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x781ac2),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x781ac2),_0x1520cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1fbd5f),_0x1520cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1fbd5f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x45db7b=this['editor'],_0x329313=_0x45db7b['model']['document']['selection'];return(_0x48fa03,_0x5d8c27)=>{_0x45db7b['model']['change'](_0x54a617=>{const {commandName:_0xa4d6f0,commandParams:_0x434a5b}=_0x5d8c27;let _0x539b14=_0x48fa03[0x0]['end']['nodeBefore'];_0x434a5b&&_0x434a5b[0x0]&&!0x1===_0x434a5b[0x0]['forceValue']&&(_0x539b14=_0x48fa03[0x0]['start']['nodeAfter']);const _0x5294dc=_0x54a617['createRangeIn'](_0x539b14);if('$graveyard'==_0x5294dc['root']['rootName'])return;const _0x1f658c=Array['from'](_0x329313['getRanges']())['map'](_0x543268=>_0x26d742['fromRange'](_0x543268));_0x54a617['setSelection'](_0x5294dc),_0x45db7b['commands']['get'](_0xa4d6f0)['refresh'](),_0x434a5b['push']({'forceDefaultExecution':!0x0}),_0x45db7b['execute'](_0xa4d6f0,..._0x434a5b);const _0x4ca6c8=_0x1f658c['filter'](_0x2205a5=>'$graveyard'!=_0x2205a5['root']['rootName']);_0x4ca6c8['length']>0x0&&_0x54a617['setSelection'](_0x4ca6c8);for(const _0xfaa8d of _0x1f658c)_0xfaa8d['detach']();});};}['_getCoordsForCells'](_0x563370){const _0x3fb1c9=this['editor']['plugins']['get']('TableUtils');let _0x3fb02f=Number['MAX_SAFE_INTEGER'],_0x115863=Number['MIN_SAFE_INTEGER'],_0xa41318=Number['MAX_SAFE_INTEGER'],_0x93bef7=Number['MIN_SAFE_INTEGER'];for(const _0x260909 of _0x563370){if('$graveyard'==_0x260909['root']['rootName'])continue;const {row:_0x41316f,column:_0x1db193}=_0x3fb1c9['getCellLocation'](_0x260909),_0xb9dfe8=_0x260909['hasAttribute']('rowspan')?_0x260909['getAttribute']('rowspan')-0x1:0x0,_0x3c510a=_0x260909['hasAttribute']('colspan')?_0x260909['getAttribute']('colspan')-0x1:0x0;_0x3fb02f=_0x41316f<_0x3fb02f?_0x41316f:_0x3fb02f,_0x115863=_0x41316f+_0xb9dfe8>_0x115863?_0x41316f+_0xb9dfe8:_0x115863,_0xa41318=_0x1db193<_0xa41318?_0x1db193:_0xa41318,_0x93bef7=_0x1db193+_0x3c510a>_0x93bef7?_0x1db193+_0x3c510a:_0x93bef7;}return{'minRow':_0x3fb02f,'maxRow':_0x115863,'minColumn':_0xa41318,'maxColumn':_0x93bef7};}['_setupColumnsRowsFixing'](){const _0x25f6a3=this['editor'],_0x590c0f=_0x25f6a3['plugins']['get']('TrackChangesEditing'),_0x4de92e=_0x25f6a3['plugins']['get']('TableUtils');_0x25f6a3['model']['document']['on']('change:data',()=>{const _0x3476cd=Array['from'](_0x25f6a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32b1c9,data:_0x5ce66b}of _0x3476cd){const {group:_0x44162a,id:_0x2f992b,subType:_0x5c1d18}=_0x590c0f['_splitMarkerName'](_0x32b1c9);if('suggestion'!=_0x44162a)continue;if(null!=_0x5ce66b['oldRange'])continue;const _0x3745cf=_0x590c0f['getSuggestion'](_0x2f992b);this['_tablePostFixingSubtypes']['includes'](_0x5c1d18)&&this['_tableSuggestions']['add'](_0x3745cf);}},{'priority':'low'});const _0x5c8355=(_0x32ad45,_0x3c8c61)=>{let _0x5d0c0b=!0x1;const _0x5d6318=_0x3c8c61['createRangeOn'](_0x32ad45),_0x4f6aaf=_0x32ad45['findAncestor']('table'),_0x2a37ba=_0x4de92e['getCellLocation'](_0x32ad45);for(const _0xd33bc0 of this['_tableSuggestions']){const _0x4bdacb=_0xd33bc0['subType'],_0x4de22f=_0x4bdacb['startsWith']('tablePaste'),_0x1fcf5b=_0x4bdacb['substr'](_0x4de22f?0xa:0x5),_0x48667c=_0x1fcf5b['toLowerCase'](),_0xf36dfe=_0x48667c['substr'](0x0,0x3)+'span',_0x58ac57='min'+_0x1fcf5b,_0x1a813b='max'+_0x1fcf5b;if(!_0xd33bc0['isInContent'])continue;if(_0x4f6aaf!=_0xd33bc0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd33bc0['isIntersectingWithRange'](_0x5d6318))continue;const _0x232c06=_0x32ad45['hasAttribute'](_0xf36dfe)?_0x32ad45['getAttribute'](_0xf36dfe)-0x1:0x0,_0x527c7a=this['_getSuggestionCoords'](_0xd33bc0),_0x3e0701=_0x527c7a[_0x58ac57],_0x1d552f=_0x527c7a[_0x1a813b];_0x3e0701<=_0x2a37ba[_0x48667c]&&_0x2a37ba[_0x48667c]+_0x232c06<=_0x1d552f&&(_0xd33bc0['addRange'](_0x5d6318),_0x5d0c0b=!0x0);}return _0x5d0c0b;};_0x25f6a3['model']['document']['registerPostFixer'](_0x205b0c=>{let _0x537a93=!0x1;for(const _0x3ffd4f of _0x25f6a3['model']['document']['differ']['getChanges']())if('insert'==_0x3ffd4f['type']){if('tableRow'==_0x3ffd4f['name']){for(const _0x162a73 of _0x3ffd4f['position']['nodeAfter']['getChildren']())_0x537a93=_0x537a93||_0x5c8355(_0x162a73,_0x205b0c);}else'tableCell'==_0x3ffd4f['name']&&(_0x537a93=_0x537a93||_0x5c8355(_0x3ffd4f['position']['nodeAfter'],_0x205b0c));}return _0x537a93;});}['_getSuggestionCoords'](_0x52c4b1){return this['_getCoordsForCells'](_0x52c4b1['getRanges']()['map'](_0x572416=>_0x572416['start']['nodeAfter']));}}function Ne(_0x297979){return Array['from'](new Set(_0x297979)['values']());}class Nt extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0x51898e=this['editor'],_0xa9e151=_0x51898e['model']['document']['selection'],_0x2d9c1c=_0x51898e['locale'];if(!_0x51898e['plugins']['has']('TableEditing'))return;const _0x4d90a6=_0x51898e['plugins']['get']('TrackChangesEditing'),_0x2d57cd=_0x51898e['plugins']['get']('TableUtils'),_0x26ddec=_0x51898e['plugins']['get'](Ct);_0x26ddec['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4d90a6['enableCommand']('mergeTableCells',()=>{const _0x36b578=_0x2d57cd['getSelectionAffectedTableCells'](_0x51898e['model']['document']['selection']);_0x51898e['model']['change'](()=>{_0x4d90a6['markMultiRangeBlockFormat'](_0x36b578,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x51898e['commands']['get']('mergeTableCells')['on']('execute',(_0x267242,_0x453484)=>{_0x51898e['commands']['get']('trackChanges')['value']&&(_0x453484['length']>0x0&&_0x453484[_0x453484['length']-0x1]&&_0x453484[_0x453484['length']-0x1]['forceDefaultExecution']||_0x4d90a6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x267242['stop']());},{'priority':'highest'});for(const _0x3339bf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x423c75=_0x51898e['commands']['get'](_0x3339bf);_0x4d90a6['enableCommand'](_0x3339bf,()=>{const _0x2228da=_0x51898e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b4804=>_0x3b4804['is']('element','tableCell')),_0x47b55a=_0x423c75['value'];_0x51898e['model']['change'](()=>{_0x4d90a6['markMultiRangeBlockFormat']([_0x2228da,_0x47b55a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x441e20 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4dcc6d=_0x51898e['commands']['get'](_0x441e20);_0x4d90a6['enableCommand'](_0x441e20,()=>{const _0x1750d6=_0x2d57cd['getSelectionAffectedTableCells'](_0x51898e['model']['document']['selection'])[0x0],_0x5c956c=_0x1750d6['findAncestor']('table'),{column:_0x3a22e7,row:_0xfbbfee}=_0x2d57cd['getCellLocation'](_0x1750d6);let _0x46d4ba=[];if('horizontally'==_0x4dcc6d['direction']){const _0x4c07fd=_0x2d57cd['createTableWalker'](_0x5c956c,{'startRow':_0xfbbfee,'endRow':_0xfbbfee,'includeAllSlots':!0x0});_0x46d4ba=Array['from'](_0x4c07fd)['map'](_0x5f3f12=>_0x5f3f12['cell']);}else{const _0x14b5f1=_0x2d57cd['createTableWalker'](_0x5c956c,{'column':_0x3a22e7,'includeAllSlots':!0x0});_0x46d4ba=Array['from'](_0x14b5f1)['map'](_0x328369=>_0x328369['cell']);}_0x51898e['model']['change'](_0x2d2b87=>{_0x4d90a6['markBlockFormat'](_0x2d2b87['createRangeOn'](_0x1750d6),{'commandName':_0x441e20,'commandParams':[]},_0x46d4ba,_0x441e20);});});}_0x4d90a6['descriptionFactory']['registerDescriptionCallback'](_0x2ac2a9=>{if('formatBlock'!=_0x2ac2a9['type']&&'formatInline'!=_0x2ac2a9['type'])return;const {data:_0x31e008}=_0x2ac2a9;return _0x31e008&&'mergeTableCells'==_0x31e008['commandName']?{'type':'format','content':c(_0x2d9c1c,'*Merge\x20cells*')}:void 0x0;}),_0x4d90a6['descriptionFactory']['registerDescriptionCallback'](_0x43a753=>{if('formatBlock'!=_0x43a753['type']&&'formatInline'!=_0x43a753['type'])return;const {data:_0xcaed0f}=_0x43a753;return _0xcaed0f?'splitTableCellVertically'==_0xcaed0f['commandName']?{'type':'format','content':c(_0x2d9c1c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xcaed0f['commandName']?{'type':'format','content':c(_0x2d9c1c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x330daf=_0x26ddec['_acceptFormatSuggestionCallbackFactory']();for(const _0x4759a6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4d90a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4759a6,'accept',_0x330daf);for(const _0x188894 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4d90a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x188894,'accept',_0x330daf);_0x4d90a6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x23e5d7=>{_0x51898e['model']['change'](_0x28ee9d=>{const _0x22225d=Array['from'](_0xa9e151['getRanges']())['map'](_0x12fc69=>_0x26d742['fromRange'](_0x12fc69));_0x28ee9d['setSelection'](_0x23e5d7),_0x51898e['commands']['get']('mergeTableCells')['refresh'](),_0x51898e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x16bb15=_0x22225d['filter'](_0x373b53=>'$graveyard'!=_0x373b53['root']['rootName']);_0x16bb15['length']>0x0&&_0x28ee9d['setSelection'](_0x16bb15);for(const _0x396ff7 of _0x22225d)_0x396ff7['detach']();});});for(const _0x2f8927 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x118e2d=_0x51898e['commands']['get'](_0x2f8927);_0x118e2d['on']('set:isEnabled',(_0x28b36b,_0x420f00,_0x8d41e8)=>{if(_0x8d41e8){const _0x303be0=_0x51898e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3652f2=>_0x3652f2['is']('element','tableCell'));this['_areMergableCells'](_0x118e2d['value'],_0x303be0)||(_0x28b36b['return']=!0x1,_0x28b36b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4b38ff=this['editor']['commands']['get']('mergeTableCells'),_0x1dfd7b=this['editor']['plugins']['get']('TableUtils');if(!_0x4b38ff['isEnabled'])return!0x1;const _0x5e46bf=_0x1dfd7b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11a092 of _0x5e46bf)for(const _0x21d943 of _0x5e46bf)if(_0x11a092!=_0x21d943&&!this['_areMergableCells'](_0x11a092,_0x21d943))return!0x1;return!0x0;}['_areMergableCells'](_0x1fcf5f,_0x168991){const _0x19da1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351524=this['editor']['model']['createRangeOn'](_0x1fcf5f),_0x4bfc0e=this['editor']['model']['createRangeOn'](_0x168991),_0x24875e=new Set(),_0x375d96=new Set();for(const _0x1c275c of _0x19da1c['getSuggestions']())if(('insertion'==_0x1c275c['type']||'deletion'==_0x1c275c['type']||'mergeTableCells'==_0x1c275c['subType'])&&_0x1c275c['isInContent']){for(const _0x218f96 of _0x1c275c['getRanges']())_0x218f96['containsRange'](_0x351524,!0x0)&&_0x24875e['add'](_0x1c275c['type']+':'+_0x1c275c['author']['id']),_0x218f96['containsRange'](_0x4bfc0e,!0x0)&&_0x375d96['add'](_0x1c275c['type']+':'+_0x1c275c['author']['id']);}if(_0x24875e['size']!=_0x375d96['size'])return!0x1;for(const _0x1c57a1 of _0x24875e)if(!_0x375d96['has'](_0x1c57a1))return!0x1;return!0x0;}}class Dt extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a68c0=this['editor'];if(!_0x2a68c0['plugins']['has']('TableEditing'))return;const _0x5c04f1=_0x2a68c0['locale'],_0x1e3889=_0x2a68c0['plugins']['get']('TrackChangesEditing');_0x1e3889['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e3889['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e3889['registerBlockAttribute']('headingRows'),_0x1e3889['registerBlockAttribute']('headingColumns'),_0x1e3889['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5c04f1,'FORMAT_HEADER_ROW')),_0x1e3889['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5c04f1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x451327=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f500a=this['editor']['plugins']['get']('TableUtils'),_0x2a2fd0=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5c8868({showActiveMarker:_0x426787=!0x0,setDataAttribute:_0x39f66a=!0x0}={}){return(_0x1d310f,_0x1e84a4,_0x1426f8)=>{const {type:_0x7376f4,id:_0x3e1621}=_0x451327['_splitMarkerName'](_0x1e84a4['markerName']),_0x5a623f=_0x451327['getSuggestion'](_0x3e1621),_0x552ae3=_0x5a623f['data'];if('formatBlock'!=_0x5a623f['type']||!_0x552ae3||'setTableColumnHeader'!=_0x552ae3['commandName'])return;if(_0x1e84a4['item'])return void _0x1d310f['stop']();if(!_0x1426f8['consumable']['consume'](_0x1e84a4['markerRange'],_0x1d310f['name']))return;const _0xc8a193=_0x1e84a4['markerRange']['start']['nodeAfter'],_0x1af485=_0x1e84a4['markerRange']['end']['nodeBefore'],_0x66b003=_0xc8a193['parent']['parent'],{column:_0x58b8a4}=_0x1f500a['getCellLocation'](_0xc8a193),{column:_0x5e4954}=_0x1f500a['getCellLocation'](_0x1af485);for(let _0x245ea7=_0x58b8a4;_0x245ea7<=_0x5e4954;_0x245ea7++){const _0x298a98=_0x1f500a['createTableWalker'](_0x66b003,{'column':_0x245ea7,'includeAllSlots':!0x1});for(const _0x5ee6c3 of _0x298a98){const _0x219669=_0x5ee6c3['cell'],_0x331dad=_0x1426f8['mapper']['toViewElement'](_0x219669);_0x1426f8['writer']['addClass']('ck-suggestion-marker-'+_0x7376f4,_0x331dad),_0x39f66a&&_0x1426f8['writer']['setAttribute']('data-suggestion',_0x3e1621,_0x331dad),_0x1426f8['mapper']['bindElementToMarker'](_0x331dad,_0x1e84a4['markerName']),_0x426787&&(_0x451327['activeMarkers']['includes'](_0x1e84a4['markerName'])?_0x1426f8['writer']['addClass']('ck-suggestion-marker--active',_0x331dad):_0x1426f8['writer']['removeClass']('ck-suggestion-marker--active',_0x331dad));}}};}_0x451327['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2a2fd0),_0x451327['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2a2fd0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c8868(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4900f9,_0x17fe2d,_0x69e1bc)=>{_0x69e1bc['options']['showSuggestionHighlights']&&_0x5c8868({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4900f9,_0x17fe2d,_0x69e1bc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3672f5,_0x49c955,_0x3a94ed)=>{const {type:_0x2a2b9e,id:_0x25931b}=_0x451327['_splitMarkerName'](_0x49c955['markerName']),_0x2b9de3=_0x451327['getSuggestion'](_0x25931b),_0x912c3a=_0x2b9de3['data'];if('formatBlock'!=_0x2b9de3['type']||!_0x912c3a||'setTableColumnHeader'!=_0x912c3a['commandName'])return;const _0x40c5d6=_0x3a94ed['mapper']['markerNameToElements'](_0x49c955['markerName']);if(_0x40c5d6){for(const _0x5b76c9 of _0x40c5d6)_0x3a94ed['writer']['removeClass']('ck-suggestion-marker-'+_0x2a2b9e,_0x5b76c9),_0x3a94ed['writer']['removeClass']('ck-suggestion-marker--active',_0x5b76c9),_0x3a94ed['writer']['removeAttribute']('data-suggestion',_0x5b76c9),_0x3a94ed['mapper']['unbindElementFromMarkerName'](_0x5b76c9,_0x49c955['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a0f8d=this['editor'],_0x4dd6e0=_0x4a0f8d['locale'];function _0x18ecb5(_0x24fdfb){return{'type':'format','content':c(_0x4dd6e0,'*Format:*\x20%0',_0x24fdfb)};}_0x4a0f8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9bb4=>{if('formatBlock'!=_0x3c9bb4['type'])return;const {data:_0x59be0d}=_0x3c9bb4;if(_0x59be0d){if('setTableRowHeader'==_0x59be0d['commandName']){const _0x152323=_0x59be0d['commandParams'][0x0]['forceValue'];return _0x18ecb5(c(_0x4dd6e0,_0x152323?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59be0d['commandName']){const _0x481f78=_0x59be0d['commandParams'][0x0]['forceValue'];return _0x18ecb5(c(_0x4dd6e0,_0x481f78?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5e362f=>[_0x5e362f,null]));class Mt extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0xb430d6=this['editor'];if(!_0xb430d6['plugins']['has']('TableClipboard'))return;const _0x23a1ee=_0xb430d6['plugins']['get']('TrackChangesEditing'),_0x42993b=_0xb430d6['plugins']['get']('TableUtils'),_0x1c18b6=_0xb430d6['plugins']['get'](Ct),_0x486ed9=_0xb430d6['plugins']['get']('TableClipboard');_0x1c18b6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb430d6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb430d6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x15c7f0=null;_0xb430d6['model']['on']('insertContent',(_0x28638e,_0x496c44)=>{const [_0x474583,_0x4dc51f]=_0x496c44,_0x3202e6=_0x496c44[_0x496c44['length']-0x1];_0x3202e6&&_0x3202e6['forceDefaultExecution']||_0x23a1ee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xce92,_0x3dec32,_0x17dbe5,_0x1fe43a,_0x298ac0){if(_0x3dec32&&!_0x3dec32['is']('documentSelection'))return!0x1;const _0x237753=_0x298ac0['getTableIfOnlyTableInContent'](_0xce92,_0x17dbe5);if(!_0x237753||!Ue(_0x237753,void 0x0,_0x1fe43a))return!0x1;const _0xa25967=_0x1fe43a['getSelectionAffectedTableCells'](_0x17dbe5['document']['selection']);if(!_0xa25967['length'])return!0x1;const _0x1a1338=_0xa25967[0x0]['findAncestor']('table'),_0x31709b=_0x1fe43a['getRowIndexes'](_0xa25967),_0x126377=_0x1fe43a['getColumnIndexes'](_0xa25967),_0x30a651={'startRow':_0x31709b['first'],'endRow':_0x31709b['last'],'startColumn':_0x126377['first'],'endColumn':_0x126377['last']};return 0x1==_0xa25967['length']&&(_0x30a651['endRow']+=_0x1fe43a['getRows'](_0x237753)-0x1,_0x30a651['endColumn']+=_0x1fe43a['getColumns'](_0x237753)-0x1),Ue(_0x1a1338,_0x30a651,_0x1fe43a);}(_0x474583,_0x4dc51f,_0xb430d6['model'],_0x42993b,_0x486ed9)&&(_0x28638e['stop'](),_0x15c7f0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb430d6['model']['change'](()=>{_0xb430d6['model']['insertContent'](_0x496c44[0x0],_0x496c44[0x1],_0x496c44[0x2],{'forceDefaultExecution':!0x0});const _0x305d88=_0x2e4cf8(),{rowInsertionRanges:_0x1061ab,columnInsertionRanges:_0xb97a94,insertionRanges:_0x5378b5,deletionRanges:_0x80f045,cells:_0x56882a}=_0x15c7f0;_0x1061ab['length']&&_0x23a1ee['markMultiRangeInsertion'](_0x1061ab,'tablePasteRow',{'tablePasteChainId':_0x305d88}),_0xb97a94['length']&&_0x23a1ee['markMultiRangeInsertion'](_0xb97a94,'tablePasteColumn',{'tablePasteChainId':_0x305d88}),_0x5378b5['length']&&(_0x23a1ee['markMultiRangeInsertion'](_0x5378b5,'tablePaste',{'tablePasteChainId':_0x305d88,'skipNestingCheck':!0x0}),_0x5378b5['forEach'](_0x1eaf32=>_0x1eaf32['detach']?.())),_0x80f045['length']&&(_0x23a1ee['markMultiRangeDeletion'](_0x80f045,'tablePaste',{'tablePasteChainId':_0x305d88,'skipNestingCheck':!0x0}),_0x80f045['forEach'](_0x16562d=>_0x16562d['detach']?.()));const _0x277011=_0x23a1ee['markMultiRangeBlockFormat'](_0x56882a['map'](({element:_0x584efa})=>_0x584efa),{'formatGroupId':_0x2e4cf8()},[],'tablePasteCell',{'tablePasteChainId':_0x305d88});if(_0x277011){const _0x4b966c=_0x277011['getMarkers'](),_0x2f8ec9=[];for(const {element:_0xd4316c,attributes:_0x43d7f1}of _0x56882a){if(!_0x43d7f1)continue;const _0x477861=_0xb430d6['model']['createRangeOn'](_0xd4316c),_0x8a192=_0x4b966c['find'](_0x62bc14=>_0x62bc14['getRange']()['isEqual'](_0x477861));_0x8a192&&_0x2f8ec9['push']([_0x8a192['name'],_0x43d7f1]);}_0x2f8ec9['length']&&_0x277011['setAttribute']('markerAttributes',Object['fromEntries'](_0x2f8ec9));}_0x15c7f0=null;}));},{'priority':_0x5c654c['high']+0xa}),_0xb430d6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x14a19f,_0x1de90c)=>{const [_0x345cfe,_0x2beb6e,,_0x21690c]=_0x1de90c;if(!_0x15c7f0)return;_0x14a19f['stop']();const _0x361157=_0x345cfe['cell'],_0x3a814e=_0x2beb6e,_0x3fe81e=Oe(_0x361157),_0x284eb8=Oe(_0x3a814e);_0x14a19f['return']=_0x361157;let _0x267e1d=null,_0x192f23=null;if(_0x284eb8||_0x3fe81e){if(_0x3fe81e&&!_0x284eb8){_0x21690c['remove'](_0x361157['getChild'](0x0));for(const _0x1707f9 of Array['from'](_0x3a814e['getChildren']()))_0x21690c['insert'](_0x1707f9,_0x361157,'end');const _0x48a9a8=_0x15c7f0['rowInsertionIndexes']['includes'](_0x345cfe['row']),_0x1fc0ea=_0x15c7f0['columnInsertionIndexes']['includes'](_0x345cfe['column']);_0x48a9a8||_0x1fc0ea||(_0x267e1d=_0x26d742['fromRange'](_0x21690c['createRangeIn'](_0x361157)));}else _0x284eb8&&!_0x3fe81e&&(_0x192f23=_0x21690c['createRangeIn'](_0x361157));}else{const _0x117942=_0x21690c['createElement']('tableCellSuggestion'),_0x838e40=_0x21690c['createElement']('tableCellSuggestion');_0x21690c['wrap'](_0x21690c['createRangeIn'](_0x361157),_0x838e40),_0x21690c['insert'](_0x117942,_0x361157,0x0);for(const _0xc03678 of Array['from'](_0x3a814e['getChildren']()))_0x21690c['insert'](_0xc03678,_0x117942,'end');_0x267e1d=_0x26d742['fromRange'](_0x21690c['createRangeOn'](_0x117942)),_0x192f23=_0x26d742['fromRange'](_0x21690c['createRangeOn'](_0x838e40));}const _0x50b219=Array['from'](_0x3a814e['getAttributes']())['filter'](([_0xafbbd2])=>Be['includes'](_0xafbbd2));_0x15c7f0['cells']['push']({'element':_0x361157,'attributes':_0x50b219['length']?Object['fromEntries'](_0x50b219):null}),_0x267e1d&&_0x15c7f0['insertionRanges']['push'](_0x267e1d),_0x192f23&&_0x15c7f0['deletionRanges']['push'](_0x192f23);},{'priority':'high'}),_0x42993b['on']('insertColumns',(_0x31a96d,_0x1fce7b)=>{const [_0xf651b,_0x202505={}]=_0x1fce7b;if(!_0x15c7f0)return;const _0x4e1c0b=_0x202505['at']||0x0,_0x25c916=_0x202505['columns']||0x1;_0x15c7f0['columnInsertionIndexes']=new Array(_0x25c916)['fill'](_0x4e1c0b)['map']((_0x1ad969,_0x5d3730)=>_0x1ad969+_0x5d3730);for(const {cell:_0xb3394e}of _0x42993b['createTableWalker'](_0xf651b,{'startColumn':_0x4e1c0b,'endColumn':_0x4e1c0b+_0x25c916-0x1}))_0x15c7f0['columnInsertionRanges']['push'](_0xb430d6['model']['createRangeOn'](_0xb3394e));},{'priority':'low'}),_0x42993b['on']('insertRows',(_0x3555ec,_0x37e40e)=>{const [_0x7f756a,_0x49c6bb={}]=_0x37e40e;if(!_0x15c7f0)return;const _0x5e7289=_0x49c6bb['at']||0x0,_0x29eb9d=_0x49c6bb['rows']||0x1;_0x15c7f0['rowInsertionIndexes']=new Array(_0x29eb9d)['fill'](_0x5e7289)['map']((_0x26585a,_0x1fc472)=>_0x26585a+_0x1fc472);for(const {cell:_0x98a9b8}of _0x42993b['createTableWalker'](_0x7f756a,{'startRow':_0x5e7289,'endRow':_0x5e7289+_0x29eb9d-0x1}))_0x15c7f0['rowInsertionRanges']['push'](_0xb430d6['model']['createRangeOn'](_0x98a9b8));},{'priority':'low'}),_0x23a1ee['descriptionFactory']['registerDescriptionCallback'](_0x544ec7=>{if(_0x544ec7['subType']&&_0x544ec7['subType']['startsWith']('tablePaste'))return _0x544ec7['previous']?{}:{'type':'insertion','content':c(_0xb430d6['locale'],'*Replace\x20table\x20cells*')};});const _0x1ea938=()=>!0x1;for(const _0x33c3ac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x23a1ee['_suggestionFactory']['registerCustomCallback']('insertion',_0x33c3ac,'join',_0x1ea938),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('deletion',_0x33c3ac,'join',_0x1ea938),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33c3ac,'join',_0x1ea938);_0x23a1ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1ea938),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x532ba7,_0x386fba,_0x3f9a4d)=>{const _0x495aa1=_0x532ba7['map'](_0x2b0a96=>_0x2b0a96['getContainedElement']())['filter'](_0x33c94f=>_0x33c94f),_0x4f3cca=new Map(_0x495aa1['map'](_0x4ec322=>[_0x4ec322,null]));if(_0x15c7f0){for(const {element:_0x14c7aa,attributes:_0xf3343e}of _0x15c7f0['cells'])_0xf3343e&&_0x4f3cca['set'](_0x14c7aa,_0xf3343e);}else{if(_0x3f9a4d&&_0x3f9a4d['markerAttributes'])for(const [_0x1b062c,_0x52e0fa]of Object['entries'](_0x3f9a4d['markerAttributes'])){const _0x4ec84e=_0xb430d6['model']['markers']['get'](_0x1b062c),_0x493a04=_0x4ec84e?_0x4ec84e['getRange']()['getContainedElement']():null;_0x493a04&&_0x4f3cca['set'](_0x493a04,_0x52e0fa);}}_0xb430d6['model']['change'](_0x2578c7=>{for(const [_0x3a577a,_0x462b43]of _0x4f3cca)_0x2578c7['setAttributes']({...xe,..._0x462b43},_0x3a577a);});});const _0x815f87=(_0x5e7f72,_0x3072d5)=>{_0x23a1ee['_suggestionFactory']['registerCustomCallback'](_0x5e7f72,'tablePaste',_0x3072d5,(_0x372a1e,_0x533469,_0x2d6005)=>{_0xb430d6['model']['change'](_0x238055=>{const _0x57904b=[];for(const _0x304be0 of _0x372a1e){const _0xbbd082=_0x304be0['start']['nodeAfter'];_0xbbd082['is']('element','tableCellSuggestion')&&_0x57904b['push'](_0xbbd082);}_0x23a1ee['_suggestionFactory']['getSuggestionCallback'](_0x5e7f72,null,_0x3072d5)(_0x372a1e,_0x533469,_0x2d6005);for(const _0xea5f9b of _0x57904b)'$graveyard'!=_0xea5f9b['root']['rootName']&&_0x238055['unwrap'](_0xea5f9b);});});};_0x815f87('insertion','accept'),_0x815f87('insertion','discard'),_0x815f87('deletion','accept'),_0x815f87('deletion','discard'),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b54d1=>{const _0x590795=_0x4b54d1['map'](_0xee5a79=>_0xee5a79['getContainedElement']()),_0x379620=_0x590795[0x0]['findAncestor']('table'),{minRow:_0x4736ee,maxRow:_0xc5910a}=_0x1c18b6['_getCoordsForCells'](_0x590795);_0x42993b['removeRows'](_0x379620,{'at':_0x4736ee,'rows':_0xc5910a-_0x4736ee+0x1});}),_0x23a1ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x295ef5=>{const _0x3a4df2=_0x295ef5['map'](_0x25b36b=>_0x25b36b['getContainedElement']()),_0x41691a=_0x3a4df2[0x0]['findAncestor']('table'),{minColumn:_0x483943,maxColumn:_0x352ef0}=_0x1c18b6['_getCoordsForCells'](_0x3a4df2);_0x42993b['removeColumns'](_0x41691a,{'at':_0x483943,'columns':_0x352ef0-_0x483943+0x1});});const _0x461308=(_0x4c0add,_0x1c4ce5)=>{if(!_0x1c4ce5['subType']||!_0x1c4ce5['subType']['startsWith']('tablePaste'))return;const _0x2dcb81=_0x1c4ce5['attributes']['tablePasteChainId'],_0x11693f=_0x23a1ee['getSuggestions']()['filter'](_0x22f86e=>_0x22f86e['isInContent']&&_0x22f86e['attributes']&&_0x22f86e['attributes']['tablePasteChainId']==_0x2dcb81);_0x11693f['length']&&_0x1c4ce5['getAllAdjacentSuggestions']()['length']!=_0x11693f['length']&&_0x11693f['reduce']((_0x1db118,_0x3da166)=>(_0x1db118['next']=_0x3da166,_0x3da166['previous']=_0x1db118,_0x3da166));};function _0x3a6af7(_0x11a70c,_0xbcfa4d=!0x0){const {id:_0x3850f0,authorId:_0x1a0e1d}=_0x23a1ee['_splitMarkerName'](_0x11a70c['markerName']),_0x45351d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x18eee0=_0x23a1ee['activeMarkers']['includes'](_0x11a70c['markerName']);return _0x18eee0&&_0x45351d['push']('ck-suggestion-marker--active'),{'classes':_0x45351d,'attributes':{'data-suggestion':_0x3850f0,'data-author-id':_0x1a0e1d},'priority':_0x18eee0&&_0xbcfa4d?0xbc2:0xbb8};}_0x23a1ee['on']('suggestionLoaded',_0x461308,{'priority':'high'}),_0x23a1ee['on']('suggestionUnloaded',_0x461308,{'priority':'high'}),_0xb430d6['model']['document']['registerPostFixer'](()=>{let _0x4645ee=!0x1;const _0x4f3e25=Array['from'](_0xb430d6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x350eed,data:_0x1196f0}of _0x4f3e25){const {group:_0x2a404a,type:_0x3b754a,id:_0x681a26}=_0x23a1ee['_splitMarkerName'](_0x350eed);if('suggestion'!=_0x2a404a||'deletion'!=_0x3b754a||_0x1196f0['oldRange'])continue;if(!_0x23a1ee['hasSuggestion'](_0x681a26))continue;const _0x32269c=_0x23a1ee['getSuggestion'](_0x681a26)['getRanges'](),_0x218c0a=_0xb430d6['plugins']['get']('Users')['me'];for(const _0x2f32d5 of _0x23a1ee['getSuggestions']()){if(!_0x2f32d5['isInContent']||_0x2f32d5['author']!=_0x218c0a)continue;if('formatBlock'!=_0x2f32d5['type']||'tablePasteCell'!=_0x2f32d5['subType'])continue;if(_0x2f32d5['getRanges']()['every'](_0x4567f5=>_0x32269c['some'](_0xc744f9=>_0xc744f9['containsRange'](_0x4567f5,!0x0)))){for(const _0x46e0db of _0x2f32d5['getAllAdjacentSuggestions']())_0x46e0db['isInContent']&&(_0x46e0db['discard'](),_0x4645ee=!0x0);}}}return _0x4645ee;}),_0xb430d6['model']['document']['registerPostFixer'](_0x54eafa=>{const _0x29756e=_0xb430d6['commands']['get']('redo');if(!_0x29756e||!_0x29756e['_createdBatches']['has'](_0x54eafa['batch']))return!0x1;let _0x51798f=!0x1;const _0x3cf173=_0xb430d6['plugins']['get']('Users')['me'],_0x4ad1cd=_0xb430d6['model']['document']['differ']['getChanges'](),_0x3fe3c6=Array['from'](_0xb430d6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2411cb,data:_0xa97cc5})=>{const {group:_0x52fb07,subType:_0x367940,authorId:_0x57e17d}=_0x23a1ee['_splitMarkerName'](_0x2411cb);return'suggestion'==_0x52fb07&&'tablePaste'==_0x367940&&_0x57e17d==_0x3cf173['id']&&!_0xa97cc5['oldRange'];});for(const _0x440701 of _0x4ad1cd){if('insert'!=_0x440701['type']||'tableCellSuggestion'!=_0x440701['name']||0x1!=_0x440701['length'])continue;const _0x475d3b=_0x54eafa['createRange'](_0x440701['position'],_0x440701['position']['getShiftedBy'](0x1));if(!_0x3fe3c6['find'](({data:_0x5b4aa6})=>_0x5b4aa6['newRange']['isEqual'](_0x475d3b))){for(const {name:_0x211e22,data:_0x167476}of _0x3fe3c6)if(_0x475d3b['containsRange'](_0x167476['newRange'])){_0x54eafa['updateMarker'](_0x211e22,{'range':_0x475d3b}),_0x51798f=!0x0;break;}}}return _0x51798f;}),_0xb430d6['model']['document']['registerPostFixer'](_0xd2f166=>{let _0x1c7121=!0x1;const _0x1f9852=_0xb430d6['plugins']['get']('Users')['me'],_0x1556ac=_0x23a1ee['getSuggestions']()['filter'](_0x40f46b=>_0x40f46b['isInContent']&&_0x40f46b['author']==_0x1f9852),_0x2e8f99=new Set(),_0x30c84b=new Set();for(const _0x12bda2 of _0x1556ac)if('tablePaste'==_0x12bda2['subType'])for(const _0x588456 of _0x12bda2['getMarkers']()){const _0x20ba51=_0x588456['getRange']()['getContainedElement']();if(_0x20ba51){if(_0x20ba51['is']('element','tableCellSuggestion')&&Oe(_0x20ba51)){_0x12bda2['removeMarker'](_0x588456['name']),_0x2e8f99['add'](_0x20ba51),_0x1c7121=!0x0;const _0x4aa9ad=_0x20ba51['nextSibling'],_0x3f4c26=_0x20ba51['previousSibling'],_0xa806a5=_0x4aa9ad&&_0x4aa9ad['is']('element','tableCellSuggestion'),_0x1e9d0a=_0x3f4c26&&_0x3f4c26['is']('element','tableCellSuggestion');_0xa806a5&&!_0x2e8f99['has'](_0x4aa9ad)&&_0x30c84b['add'](_0x4aa9ad),_0x1e9d0a&&!_0x2e8f99['has'](_0x3f4c26)&&_0x30c84b['add'](_0x3f4c26);}else _0x20ba51['is']('element','paragraph')&&_0x20ba51['isEmpty']&&(_0x12bda2['removeMarker'](_0x588456['name']),_0x1c7121=!0x0);}}else{if('tablePasteCell'==_0x12bda2['subType']){if(!_0x12bda2['attributes']||!_0x12bda2['attributes']['tablePasteChainId'])continue;const _0x26acb6=_0x12bda2['attributes']['markerAttributes'];if(_0x26acb6&&Object['keys'](_0x26acb6)['length'])continue;const _0x2c8009=_0x12bda2['attributes']['tablePasteChainId'];let _0x47e672=!0x0,_0x5b4eb8=!0x0;for(const _0x3bf45d of _0x1556ac)if(_0x3bf45d['subType']&&_0x3bf45d['subType']['startsWith']('tablePaste')){if(!_0x3bf45d['attributes']['tablePasteChainId']){_0x5b4eb8=!0x1;break;}if(_0x3bf45d['id']!=_0x12bda2['id']&&_0x3bf45d['attributes']['tablePasteChainId']==_0x2c8009){_0x47e672=!0x1;break;}}_0x5b4eb8&&_0x47e672&&(_0x12bda2['removeMarkers'](),_0x1c7121=!0x0);}}for(const _0xb22a8e of _0x2e8f99)_0xd2f166['remove'](_0xb22a8e);for(const _0x2a18e5 of _0x30c84b)_0xd2f166['unwrap'](_0x2a18e5);return _0x1c7121;}),_0xb430d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xdc82f6=>_0x3a6af7(_0xdc82f6),'converterPriority':'high'}),_0xb430d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc38385,_0x5741ec)=>_0x5741ec['options']['showSuggestionHighlights']?_0x3a6af7(_0xc38385,!0x1):null,'converterPriority':'high'});const _0x48b3af=_0xb430d6['editing']['view'];this['listenTo'](_0x48b3af['document'],'clipboardOutput',(_0x1b9626,_0x61e97)=>{const _0x239ff5=[];for(const _0x5d1462 of _0x48b3af['createRangeIn'](_0x61e97['content'])['getItems']())_0x5d1462['is']('element','suggestion-td')&&_0x239ff5['push'](_0x5d1462);_0x48b3af['change'](_0x540f72=>{for(const _0x57b971 of _0x239ff5)_0x540f72['move'](_0x540f72['createRangeIn'](_0x57b971),_0x540f72['createPositionBefore'](_0x57b971)),_0x540f72['remove'](_0x57b971);});});}}function Oe(_0x509db1){if(_0x509db1['isEmpty'])return!0x0;const _0x3b500b=_0x509db1['getChild'](0x0);return _0x3b500b['is']('element','paragraph')&&_0x3b500b['isEmpty'];}function Ue(_0x13404b,_0x5c2aad={},_0x5348fe){for(const {isAnchor:_0x5b77d4,cellHeight:_0x2680e5,cellWidth:_0x1138b6}of _0x5348fe['createTableWalker'](_0x13404b,{'includeAllSlots':!0x0,..._0x5c2aad}))if(!_0x5b77d4||0x1!=_0x2680e5||0x1!=_0x1138b6)return!0x1;return!0x0;}class $t extends _0x6c1265{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c3175=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c3175['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c3175['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c3175['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c3175['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c3175['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c3175['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5799b8,_0x5d330c){const _0x4c91d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cfb5c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3c47b2=_0x5d330c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x41e339=_0x2cfb5c['getColumnGroupElement'](_0x3c47b2);let _0x15a6b0=_0x41e339?_0x2cfb5c['getTableColumnsWidths'](_0x41e339):null,_0xb2f320=_0x3c47b2['getAttribute']('tableWidth')||null;const _0xa30361=_0x5d330c['tableWidth']||_0xb2f320,_0x1d82cd=_0x5d330c['columnWidths']||_0x15a6b0,_0x4c6d6a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e504b of _0x4c91d9['getSuggestions']()){const _0x2d3ec7=_0x3e504b['getContainedElement']();if('resizeTable'===_0x3e504b['subType']&&_0x2d3ec7===_0x3c47b2){_0x3e504b['author']!==_0x4c6d6a&&_0x3e504b['discard']();const _0x1f542b=_0x3e504b['data']['commandParams'];_0xb2f320=_0x1f542b[0x0]['tableWidth'],_0x15a6b0=_0x1f542b[0x0]['columnWidths'];break;}}_0x5799b8({'table':_0x3c47b2,'tableWidth':_0xa30361,'columnWidths':_0x1d82cd}),_0x4c91d9['markBlockFormat'](_0x3c47b2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb2f320,'columnWidths':_0x15a6b0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3b596e){if('formatBlock'!=_0x3b596e['type']&&'formatInline'!=_0x3b596e['type'])return;const {data:_0x325f96}=_0x3b596e;if(_0x325f96&&'resizeTable'===_0x325f96['formatGroupId']){const _0x377a4b='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x377a4b)};}}}class Bt extends _0x6c1265{['afterInit'](){const _0x126c5f=this['editor'];_0x126c5f['plugins']['has']('Template')&&_0x126c5f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x6c1265{['afterInit'](){const _0x52e6ef=this['editor'];if(!_0x52e6ef['commands']['get']('insertTableOfContents'))return;_0x52e6ef['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd6231b=_0x52e6ef['plugins']['get']('TrackChangesEditing'),_0x350a2e=_0x52e6ef['locale'];_0xd6231b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x36350d=>c(_0x350a2e,'ELEMENT_TABLE_OF_CONTENTS',_0x36350d));}}class Rt extends _0x6c1265{['afterInit'](){const _0x57de7b=this['editor'];if(!_0x57de7b['plugins']['has']('Title'))return;const _0x561b6b=_0x57de7b['plugins']['get']('TrackChangesEditing');_0x561b6b['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x57de7b['locale'],'ELEMENT_TITLE')),_0x57de7b['model']['document']['registerPostFixer'](_0x29b872=>{let _0x178b60=!0x1;const _0x335afe=Array['from'](_0x57de7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21326e,data:_0x5d07bc}of _0x335afe){const {group:_0x2b9a7d}=_0x561b6b['_splitMarkerName'](_0x21326e);if('suggestion'!==_0x2b9a7d||!_0x5d07bc['newRange'])continue;const _0x5badcd=_0x5d07bc['newRange'],_0x27345=_0x5badcd['end']['nodeBefore'];if(!_0x27345||!_0x27345['is']('element','title-content'))continue;if(!_0x5badcd['start']['isTouching'](_0x5badcd['end']))continue;const _0x54fe2b=_0x57de7b['model']['schema']['getNearestSelectionRange'](_0x5badcd['end'],'forward');if(_0x54fe2b&&_0x54fe2b['isCollapsed']){const _0x1f4875=_0x29b872['createRange'](_0x5badcd['start'],_0x54fe2b['start']);_0x1f4875['isEqual'](_0x5badcd)||(_0x29b872['updateMarker'](_0x21326e,{'range':_0x1f4875}),_0x178b60=!0x0);}_0x178b60||(_0x29b872['removeMarker'](_0x21326e),_0x178b60=!0x0);}return _0x178b60;});}}class xt extends _0x6c1265{['afterInit'](){const _0x3d67e3=this['editor'],_0x30cef6=_0x3d67e3['plugins']['get']('TrackChangesEditing');_0x3d67e3['plugins']['has']('Uploadcare')&&(_0x30cef6['enableCommand']('uploadcare'),_0x3d67e3['plugins']['has']('UploadcareImageEdit')&&(_0x30cef6['enableCommand']('uploadcareImageEdit'),_0x30cef6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x30cef6['registerBlockAttribute']('uploadcareImageId'),_0x30cef6['descriptionFactory']['registerDescriptionCallback'](_0x532ebc=>{if('attribute'!=_0x532ebc['type'])return;const {data:_0xf44746}=_0x532ebc;return _0xf44746&&'uploadcareImageId'==_0xf44746['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x6c1265{['afterInit'](){const _0x41dc1e=this['editor'],_0x4a8d9d=_0x41dc1e['plugins']['get']('TrackChangesEditing');_0x41dc1e['plugins']['has']('UndoEditing')&&(_0x4a8d9d['enableCommand']('undo'),_0x4a8d9d['enableCommand']('redo'));}}class Et extends _0x6c1265{static get['requires'](){return[Ct];}['afterInit'](){const _0x499fde=this['editor'];if(!_0x499fde['plugins']['has']('TableCaptionEditing'))return;_0x499fde['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x6c1265{['tableProperties'];['tableCellProperties'];constructor(_0xd4741b){super(_0xd4741b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xbcbc60=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2e53a8 of this['tableProperties'])_0xbcbc60['enableCommand'](_0x2e53a8,(_0x5077da,_0x27f8cb)=>{const _0x1be36f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2e53a8,[_0x1be36f],this['tableProperties'],'tableProperties',_0x5077da,_0x27f8cb);});_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xbcbc60['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39d6d2,_0x3cb8c6)=>this['handleDiscardAction'](this['tableProperties'],_0x39d6d2,_0x3cb8c6)),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x25591f of this['tableCellProperties'])_0xbcbc60['enableCommand'](_0x25591f,(_0x15b185,_0x723ce5)=>{const _0x539e0d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x25591f,_0x539e0d,this['tableCellProperties'],'tableCellProperties',_0x15b185,_0x723ce5);});_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xbcbc60['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x27afdd,_0x54d63e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x27afdd,_0x54d63e)),_0xbcbc60['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xbcbc60['descriptionFactory']['registerDescriptionCallback'](_0x2ae7ee=>this['handleSuggestionDescription'](_0x2ae7ee));}['_handlePropertyChange'](_0x25a56e,_0x3e2b98,_0x7b52a6,_0x4d5957,_0x451380,_0x3df710){const _0x2c4838=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3df710['batch'],()=>{for(const _0x2f9fa6 of _0x3e2b98){if(this['_getSuggestion'](_0x2f9fa6,_0x4d5957))_0x451380(_0x3df710);else{const _0x264e09={};for(const _0xd433c0 of _0x7b52a6){const _0x40fb0a=_0x2f9fa6['getAttribute'](_0xd433c0);void 0x0!==_0x40fb0a&&(_0x264e09[_0xd433c0]=_0x40fb0a);}_0x451380(_0x3df710),_0x2c4838['markBlockFormat'](_0x2f9fa6,{'commandParams':[_0x264e09]},[],_0x4d5957);}}});}['handleDiscardAction'](_0x505fe2,_0x463e8d,_0x4a1326){const _0x9187ba=_0x463e8d[0x0]['start']['nodeAfter'],_0x1d19f3=_0x4a1326['commandParams'][0x0];this['editor']['model']['change'](_0x32fc29=>{for(const _0x3dce8a of _0x505fe2)void 0x0!==_0x1d19f3[_0x3dce8a]?_0x32fc29['setAttribute'](_0x3dce8a,_0x1d19f3[_0x3dce8a],_0x9187ba):_0x32fc29['removeAttribute'](_0x3dce8a,_0x9187ba);});}['handleSuggestionDescription'](_0x337cd9){if(_0x337cd9['data'])switch(_0x337cd9['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4d35dc,_0x14fd47){const _0x7f034a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x492507 of _0x7f034a['getSuggestions']({'skipNotAttached':!0x0})){const _0x213800=_0x492507['getContainedElement']();if(_0x492507['subType']===_0x14fd47&&_0x213800===_0x4d35dc)return _0x492507;}return null;}}const u='$elementName';class p extends _0x6c1265{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x229cdc,_0x5eab3f,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2812d3){super(_0x2812d3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4722aa,_0x554adb,_0x8ed36b,_0x590d4c)=>{this['_model']['change'](()=>{for(const _0x16c566 of[..._0x590d4c,..._0x8ed36b])this['_model']['markers']['has'](_0x16c566)&&_0x2812d3['editing']['reconvertMarker'](_0x16c566);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2812d3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2812d3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2812d3['config']['get']('trackChanges.trackFormatChanges'),_0x2812d3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2812d3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2812d3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x34cc01=this['editor'],_0x1a79a9=(_0x2b4b2c,_0x4697cb)=>{if('attribute'!=_0x2b4b2c)return'ck-suggestion-marker-'+_0x2b4b2c;const _0x5a221f=_0x4697cb['split']('|')[0x0];return this['_isBlockAttribute'](_0x5a221f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x34cc01['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xa970aa=>{const {id:_0x42c845,authorId:_0x44a699,type:_0x37e0c2,subType:_0x33d1cb}=this['_splitMarkerName'](_0xa970aa['markerName']),_0x13625e=['ck-suggestion-marker',_0x1a79a9(_0x37e0c2,_0x33d1cb)];let _0x1f3f98=0xbb8;return this['activeMarkers']['includes'](_0xa970aa['markerName'])&&(_0x13625e['push']('ck-suggestion-marker--active'),_0x1f3f98=0xbc2),'deletion'==_0x37e0c2&&(_0x1f3f98+=0x5),{'classes':_0x13625e,'attributes':{'data-suggestion':_0x42c845,'data-author-id':_0x44a699},'priority':_0x1f3f98};}}),_0x34cc01['conversion']['for']('dataDowncast')['add'](_0x1b439d=>{_0x1b439d['on']('addMarker:suggestion',(_0x42e90a,_0x2469f2,_0x5852ba)=>{if(!_0x5852ba['options']['showSuggestionHighlights'])return;const _0x3fa635=_0x2469f2['item'];if(!_0x3fa635)return;const _0xf72c8d=_0x5852ba['mapper']['toViewElement'](_0x3fa635);_0x34cc01['model']['schema']['isObject'](_0x3fa635)&&_0xf72c8d&&!_0xf72c8d['getCustomProperty']('widget')&&_0xf72c8d['is']('containerElement')&&_0x4ae5f9(_0xf72c8d,_0x5852ba['writer']);},{'priority':'high'});}),_0x34cc01['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5435a5,_0x315074)=>{if(!_0x315074['options']['showSuggestionHighlights'])return null;const {type:_0x28435e,subType:_0x1771fc}=this['_splitMarkerName'](_0x5435a5['markerName']);return{'classes':['ck-suggestion-marker',_0x1a79a9(_0x28435e,_0x1771fc)],'priority':0xbb8};}});const _0x209304=({showActiveMarkers:_0x2da851=!0x0,isAttributeSuggestion:_0x1dbca2=!0x1}={})=>(_0x19e630,_0x378658,_0x35f754)=>{if(!_0x378658['item'])return;const {id:_0x40b856,authorId:_0x28f462}=this['_splitMarkerName'](_0x378658['markerName']);if(_0x1dbca2){const _0x15b3e4=this['_suggestions']['get'](_0x40b856),_0x39394a=this['_getAttributeKey'](_0x15b3e4);if(!this['_isBlockAttribute'](_0x39394a))return;}if(_0x378658['item']['is']('selection'))return void _0x35f754['consumable']['consume'](_0x378658['item'],_0x19e630['name']);const _0x484c8d=_0x35f754['mapper']['toViewElement'](_0x378658['item']);if(_0x378658['item']['is']('element')&&_0x34cc01['model']['schema']['isBlock'](_0x378658['item'])&&!_0x484c8d['getCustomProperty']('addHighlight')){_0x35f754['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x484c8d),_0x35f754['writer']['setAttribute']('data-suggestion',_0x40b856,_0x484c8d),_0x35f754['writer']['setAttribute']('data-author-id',_0x28f462,_0x484c8d),_0x35f754['mapper']['bindElementToMarker'](_0x484c8d,_0x378658['markerName']),_0x2da851&&(this['activeMarkers']['includes'](_0x378658['markerName'])?_0x35f754['writer']['addClass']('ck-suggestion-marker--active',_0x484c8d):_0x35f754['writer']['removeClass']('ck-suggestion-marker--active',_0x484c8d));for(const _0x5a78b0 of _0x34cc01['model']['createRangeIn'](_0x378658['item'])['getItems']())_0x35f754['consumable']['consume'](_0x5a78b0,_0x19e630['name']);_0x35f754['consumable']['consume'](_0x378658['item'],_0x19e630['name']);}};_0x34cc01['conversion']['for']('dataDowncast')['add'](_0x177de4=>{_0x177de4['on']('addMarker:suggestion:formatBlock',(_0x46adb9,_0x4eb6f0,_0x20728d)=>{_0x20728d['options']['showSuggestionHighlights']&&_0x209304({'showActiveMarkers':!0x1})(_0x46adb9,_0x4eb6f0,_0x20728d);},{'priority':'highest'});}),_0x34cc01['conversion']['for']('dataDowncast')['add'](_0x56fe23=>{_0x56fe23['on']('addMarker:suggestion:attribute',(_0x433b02,_0x2335e1,_0x549810)=>{_0x549810['options']['showSuggestionHighlights']&&_0x209304({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x433b02,_0x2335e1,_0x549810);},{'priority':'highest'});}),_0x34cc01['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xc7a5d7,_0x51e209)=>_0x51e209['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xc7a5d7['substr'](0xb)}}),_0x34cc01['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x56f926,{writer:_0x2ec6c6})=>{let _0x15fe6f='suggestion:'+_0x56f926['getAttribute']('suggestion-type')+':'+_0x56f926['getAttribute']('id');return _0x56f926['getAttribute']('marker-count')&&(_0x15fe6f+=':'+_0x56f926['getAttribute']('marker-count')),_0x2ec6c6['createElement']('$marker',{'data-name':_0x15fe6f});}}),_0x34cc01['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x3d085d=>{_0x3d085d['on']('addMarker:suggestion:formatBlock',_0x209304(),{'priority':'high'});}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x1cddf3=>{_0x1cddf3['on']('addMarker:suggestion:attribute',_0x209304({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x234be5=>{_0x234be5['on']('removeMarker:suggestion:formatBlock',(_0x3c41c6,_0xe22112,_0x472fb3)=>{const _0x306db9=_0x472fb3['mapper']['markerNameToElements'](_0xe22112['markerName']);if(_0x306db9){for(const _0x59b3fc of _0x306db9)_0x59b3fc['getCustomProperty']('addHighlight')||(_0x472fb3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59b3fc),_0x472fb3['writer']['removeAttribute']('data-suggestion',_0x59b3fc),_0x472fb3['writer']['removeAttribute']('data-author-id',_0x59b3fc),_0x472fb3['mapper']['unbindElementFromMarkerName'](_0x59b3fc,_0xe22112['markerName']));}},{'priority':'high'});}),_0x34cc01['conversion']['for']('editingDowncast')['add'](_0x29b0c3=>{_0x29b0c3['on']('removeMarker:suggestion:attribute',(_0x16c2fd,_0x3efcab,_0x139db6)=>{const _0x9163aa=_0x139db6['mapper']['markerNameToElements'](_0x3efcab['markerName']);if(!_0x9163aa)return;const {id:_0x4dfd0b}=this['_splitMarkerName'](_0x3efcab['markerName']),_0x3614c7=this['_suggestions']['get'](_0x4dfd0b),_0x1881b7=this['_getAttributeKey'](_0x3614c7);if(this['_isBlockAttribute'](_0x1881b7)){for(const _0xc2000f of _0x9163aa)_0xc2000f['getCustomProperty']('addHighlight')||(_0x139db6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc2000f),_0x139db6['writer']['removeAttribute']('data-suggestion',_0xc2000f),_0x139db6['writer']['removeAttribute']('data-author-id',_0xc2000f),_0x139db6['mapper']['unbindElementFromMarkerName'](_0xc2000f,_0x3efcab['markerName']));}},{'priority':'high'});}),_0x34cc01['model']['document']['registerPostFixer'](_0x2cd235=>{let _0x5d77ec=!0x1;const _0x456a3a=Array['from'](_0x34cc01['model']['document']['differ']['getChangedMarkers']()),_0x340bcb=new Set();for(const {name:_0x280d30,data:_0x3751d8}of _0x456a3a){const {group:_0x2068da,type:_0x2513fb,subType:_0x3c1fad,id:_0x12e338}=this['_splitMarkerName'](_0x280d30);if('suggestion'!==_0x2068da)continue;const _0x1417e7=this['_suggestions']['get'](_0x12e338);if(null!=_0x3751d8['newRange']){'formatInline'==_0x2513fb&&(_0x5d77ec=_0x5d77ec||Lt(_0x3751d8['newRange'],_0x280d30,_0x2cd235,_0x34cc01['model']['schema']));const _0x188ae5='attribute'==_0x2513fb&&this['_isBlockAttribute'](_0x3c1fad['split']('|')[0x0]);if(_0x3751d8['newRange']['isCollapsed']||'$graveyard'==_0x3751d8['newRange']['root']['rootName']||'formatBlock'==_0x2513fb&&!Kt(_0x3751d8['newRange'])||_0x188ae5&&!Kt(_0x3751d8['newRange'])||'deletion'==_0x2513fb&&!(!Gt(_0x473b3d=_0x3751d8['newRange'])&&!function(_0x3e9f9c){return _0x3e9f9c['start']['parent']==_0x3e9f9c['end']['nodeBefore']&&_0x3e9f9c['start']['isAtEnd'];}(_0x473b3d)))_0x2cd235['removeMarker'](_0x280d30),_0x5d77ec=!0x0;else{if(!_0x1417e7||!_0x1417e7['isInContent'])continue;if(_0x3751d8['newRange']&&_0x3751d8['oldRange']&&_0x3751d8['newRange']['isEqual'](_0x3751d8['oldRange']))continue;_0x340bcb['add'](_0x1417e7);}}}var _0x473b3d;return _0x340bcb['size']>0x0&&(_0x5d77ec=!!this['_joinWithAdjacentSuggestions'](_0x340bcb)||_0x5d77ec),_0x5d77ec;}),_0x34cc01['model']['document']['registerPostFixer'](_0x44f58c=>{let _0x3d443a=!0x1;for(const _0x333ae6 of _0x34cc01['model']['document']['differ']['getChanges']())if('insert'==_0x333ae6['type'])for(const _0x3cd0cd of this['_suggestions']['values']()){if(_0x3cd0cd['isMultiRange']||!_0x3cd0cd['isInContent'])continue;const _0x9487fd='formatBlock'==_0x3cd0cd['type'],_0x56618b=this['_getAttributeKey'](_0x3cd0cd),_0x1ee781=_0x56618b&&this['_isBlockAttribute'](_0x56618b);if(!_0x9487fd&&!_0x1ee781)continue;const _0x50de50=_0x3cd0cd['getFirstRange']();if(_0x50de50['start']['parent']!=_0x50de50['end']['parent']&&!_0x50de50['end']['isAtEnd']){const _0x439fab=_0x34cc01['model']['createPositionAt'](_0x50de50['start']['nodeAfter'],'end'),_0x530844=_0x34cc01['model']['createRange'](_0x50de50['start'],_0x439fab);_0x44f58c['updateMarker'](_0x3cd0cd['getFirstMarker'](),{'range':_0x530844}),_0x3d443a=!0x0;}}return _0x3d443a;}),_0x34cc01['model']['document']['registerPostFixer'](_0xe7ea23=>this['_processAttributeChanges'](_0xe7ea23)),_0x34cc01['model']['document']['registerPostFixer'](_0x3694ee=>!_0x3694ee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3694ee)),_0x34cc01['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x34cc01['model']['document']['on']('change:data',(_0x2c4055,_0x42a290)=>{if(!_0x42a290['isLocal']||_0x42a290['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f5b9c=_0x34cc01['model']['document']['differ']['getChanges']();if(0x0==_0x1f5b9c['length'])return;const _0x327f5e=[],_0x2fa71f=_0x1f5b9c['filter'](_0x2a7d49=>'attribute'==_0x2a7d49['type']),_0x1ebfff=_0x1f5b9c['filter'](_0x14b1b6=>'insert'==_0x14b1b6['type']&&'$text'!=_0x14b1b6['name']);for(const _0x223581 of _0x2fa71f)this['_isRegisteredAttribute'](_0x223581['attributeKey'])&&_0x327f5e['push']({'key':_0x223581['attributeKey'],'newValue':_0x223581['attributeNewValue'],'oldValue':_0x223581['attributeOldValue'],'range':Ht(_0x223581['range'],_0x34cc01['model'])});for(const _0x5a8da5 of _0x1ebfff){if('rename'!=_0x5a8da5['action']&&'refresh'!=_0x5a8da5['action'])continue;const _0x21ac79=qt(_0x5a8da5['position']['nodeAfter'],_0x34cc01['model']),_0x47674f=_0x5a8da5['before'];'rename'==_0x5a8da5['action']&&_0x327f5e['push']({'key':u,'newValue':_0x5a8da5['name'],'oldValue':_0x47674f['name'],'range':_0x21ac79});for(const [_0x574c3a,_0x5d2973]of _0x47674f['attributes']){if(!this['_isRegisteredAttribute'](_0x574c3a))continue;const _0x42c09c=_0x5a8da5['attributes']['get'](_0x574c3a);_0x5d2973!==_0x42c09c&&_0x327f5e['push']({'key':_0x574c3a,'newValue':_0x42c09c,'oldValue':_0x5d2973,'range':_0x21ac79});}for(const [_0x2805e8,_0x5598d1]of _0x5a8da5['attributes'])this['_isRegisteredAttribute'](_0x2805e8)&&(_0x47674f['attributes']['has'](_0x2805e8)||_0x327f5e['push']({'key':_0x2805e8,'newValue':_0x5598d1,'oldValue':null,'range':_0x21ac79}));}0x0!=_0x327f5e['length']&&_0x34cc01['model']['enqueueChange'](_0x42a290,_0x172bf4=>{const _0x15b83c=_0x2e4cf8();for(const {range:_0x581dcf,key:_0x4e13de,oldValue:_0x247e8f,newValue:_0x56bc74}of _0x327f5e)this['markAttributeChange'](_0x581dcf,_0x4e13de,_0x247e8f,_0x56bc74,{'groupId':_0x15b83c});this['_reduceExistingSuggestions'](_0x172bf4,_0x327f5e);});},{'priority':'lowest'}),_0x34cc01['model']['markers']['on']('update:suggestion',(_0xf44a40,_0x5bee75,_0x36a81f)=>{if(null==_0x36a81f){const {id:_0x3b3e47}=this['_splitMarkerName'](_0x5bee75['name']),_0x5c4a2e=this['_suggestions']['get'](_0x3b3e47);_0x5c4a2e&&_0x5c4a2e['addMarkerName'](_0x5bee75['name']);}}),_0x34cc01['model']['document']['on']('change:data',()=>{const _0x3b73ad=Array['from'](_0x34cc01['model']['document']['differ']['getChangedMarkers']())['filter'](_0x372bfd=>'suggestion'===this['_splitMarkerName'](_0x372bfd['name'])['group']);if(0x0===_0x3b73ad['length'])return;_0x3b73ad['sort']((_0x1af7a6,_0x2993f1)=>{const _0x4b1ba3=_0x1af7a6['data']['oldRange'],_0x4d421c=_0x2993f1['data']['oldRange'];return null===_0x4b1ba3&&null===_0x4d421c?0x0:null===_0x4b1ba3&&null!==_0x4d421c?-0x1:null!==_0x4b1ba3&&null===_0x4d421c?0x1:_0x4b1ba3['start']['isBefore'](_0x4d421c['start'])?-0x1:0x1;});const _0x42bad5=new Set(),_0x5a48a4=new Set();for(const {name:_0xdd6f46,data:_0x1dfee5}of _0x3b73ad){const {id:_0xc398d5}=this['_splitMarkerName'](_0xdd6f46);if(null===_0x1dfee5['oldRange']){const _0x5835b2=this['_handleNewSuggestionMarker'](_0xdd6f46);_0x5a48a4['add'](_0x5835b2);}else{const _0x319b8b=this['_suggestions']['get'](_0xc398d5);null!==_0x1dfee5['newRange']||_0x319b8b['isInContent']?(_0x42bad5['add'](_0x319b8b['head']),_0x5a48a4['add'](_0x319b8b)):this['_removeSuggestion'](_0x319b8b);}}_0x5a48a4['size']>0x0&&this['_refreshSuggestionsChain'](_0x5a48a4);for(const _0x5d17cf of _0x42bad5)this['fire']('suggestionChanged',_0x5d17cf);}),_0x34cc01['model']['on']('applyOperation',(_0x5f034e,_0x4f98da)=>{const _0xebcd99=_0x4f98da[0x0];if(!this['_suggestions']['size'])return;if(!_0xebcd99['isDocumentOperation'])return;if(_0xebcd99['batch']['isUndo']||!_0xebcd99['batch']['isLocal'])return;let _0x80619f,_0x8b3fad;switch(_0xebcd99['type']){case'insert':_0x80619f=_0x34cc01['model']['createPositionAt'](_0xebcd99['position']),_0x8b3fad=_0x80619f['getShiftedBy'](_0xebcd99['howMany']);break;case'split':_0x80619f=_0x34cc01['model']['createPositionAt'](_0xebcd99['splitPosition']),_0x8b3fad=_0x34cc01['model']['createPositionAt'](_0xebcd99['moveTargetPosition']);break;case'move':_0x80619f=_0x34cc01['model']['createPositionAt'](_0xebcd99['targetPosition']),_0x8b3fad=_0x80619f['getShiftedBy'](_0xebcd99['howMany']);break;default:return;}const _0x30ebe8=_0x34cc01['model']['createRange'](_0x80619f,_0x8b3fad);_0x34cc01['model']['change'](()=>{for(const {suggestion:_0xc10769,meta:_0x543ff3}of this['_findSuggestions'](_0x30ebe8)){if(_0xc10769['isMultiRange'])continue;if('formatInline'==_0xc10769['type'])continue;const _0x264c7c=this['_getAttributeKey'](_0xc10769);if(_0x264c7c&&this['_isBlockAttribute'](_0x264c7c)&&'split'!=_0xebcd99['type'])continue;const _0xa74983=_0xc10769['data']&&_0xc10769['data']['multipleBlocks'];('formatBlock'!=_0xc10769['type']||'split'==_0xebcd99['type']&&!_0xa74983)&&(_0x543ff3['containsRangeInObject']||'insertion'==_0xc10769['type']&&_0x543ff3['isOwn']||_0xc10769['getFirstRange']()['containsRange'](_0x30ebe8)&&this['_breakSuggestionMarker'](_0xc10769,_0x80619f,_0x8b3fad));}});},{'priority':'lowest'}),_0x34cc01['model']['on']('deleteContent',(_0x427fc6,_0x31b377)=>{const _0x4d11c0=_0x31b377[0x0],_0x532d44=_0x31b377[0x1];if(_0x532d44&&_0x532d44['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d11c0['isCollapsed'])return;const _0x434629=_0x34cc01['model']['schema'],{start:_0x3f7d93,end:_0x65f800}=_0x4d11c0['getFirstRange'](),_0x4e376c=_0x3f7d93['nodeAfter']&&_0x434629['isLimit'](_0x3f7d93['nodeAfter'])?null:_0x434629['getNearestSelectionRange'](_0x3f7d93,'forward'),_0x5de40c=_0x65f800['nodeBefore']&&_0x434629['isLimit'](_0x65f800['nodeBefore'])?null:_0x434629['getNearestSelectionRange'](_0x65f800,'backward'),_0x219b88=_0x34cc01['model']['createRange'](_0x4e376c?_0x4e376c['start']:_0x3f7d93,_0x5de40c?_0x5de40c['end']:_0x65f800);_0x34cc01['model']['change'](_0x3d5e20=>{this['markDeletion'](_0x219b88);const _0x56e4d7=_0x34cc01['model']['schema']['getNearestSelectionRange'](_0x219b88['start']);_0x4d11c0['is']('documentSelection')?_0x3d5e20['setSelection'](_0x56e4d7):_0x4d11c0['setTo'](_0x56e4d7);}),_0x427fc6['stop']();},{'priority':_0x5c654c['normal']+0xa}),_0x34cc01['model']['on']('insertContent',(_0x5a305c,_0x3eeae8)=>{const _0x33933f=_0x3eeae8[_0x3eeae8['length']-0x1];_0x33933f&&_0x33933f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x34cc01['model']['change'](()=>{let _0x4cfe5f=_0x34cc01['model']['insertContent'](_0x3eeae8[0x0],_0x3eeae8[0x1],_0x3eeae8[0x2],{'forceDefaultExecution':!0x0});if(!_0x4cfe5f)return;_0x5a305c['return']=_0x4cfe5f['clone']();const _0x123a19=_0x4cfe5f['end']['nodeBefore'],_0x16482e=_0x34cc01['model']['schema'];_0x123a19&&_0x16482e['isBlock'](_0x123a19)&&!_0x16482e['isObject'](_0x123a19)&&(_0x4cfe5f=_0x34cc01['model']['createRange'](_0x4cfe5f['start'],_0x34cc01['model']['createPositionAt'](_0x123a19,'end'))),this['markInsertion'](_0x4cfe5f);}),_0x5a305c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5df5b5=new O(_0x34cc01,this['_suggestions']);_0x34cc01['commands']['add']('acceptSuggestion',_0x5df5b5),this['enableCommand']('acceptSuggestion');const _0x43d3e8=new R(_0x34cc01,this['_suggestions']);_0x34cc01['commands']['add']('discardSuggestion',_0x43d3e8),this['enableCommand']('discardSuggestion'),_0x34cc01['commands']['add']('acceptAllSuggestions',new x(_0x34cc01,_0x5df5b5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x34cc01['commands']['add']('discardAllSuggestions',new x(_0x34cc01,_0x43d3e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x34cc01['commands']['add']('acceptSelectedSuggestions',new E(_0x34cc01,_0x5df5b5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x34cc01['commands']['add']('discardSelectedSuggestions',new E(_0x34cc01,_0x43d3e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5a1f2c=_0x34cc01['plugins']['get']('CommentsRepository');this['listenTo'](_0x5a1f2c,'addComment',(_0x2dd347,{threadId:_0x204c8a})=>{const _0x236d75=this['_suggestions']['get'](_0x204c8a);_0x236d75&&_0x236d75['commentThread']&&0x1===_0x236d75['commentThread']['length']&&this['_updateSuggestionData'](_0x204c8a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5a1f2c,'removeComment',(_0x5d7e30,{threadId:_0x303703})=>{const _0x508c30=this['_suggestions']['get'](_0x303703);_0x508c30&&_0x508c30['commentThread']&&!_0x508c30['commentThread']['length']&&this['_updateSuggestionData'](_0x303703,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ca15a){const _0x2d823b=_0x2e894([0x66,0x62,0x4c,0x73,0x78,0x72,0x36,0x76,0x38,0x30,0x4b,0x57,0x34,0x46,0x35,0x67,0x4d,0x39,0x53,0x6c,0x32,0x65,0x6d,0x79,0x54,0x56,0x75,0x51,0x63,0x50,0x31,0x45,0x6a,0x74,0x7a,0x6b,0x41,0x47,0x44,0x42,0x4e,0x6e,0x43,0x61,0x48,0x71,0x4f,0x6f,0x64,0x55,0x49,0x58,0x33,0x37,0x77,0x69,0x59,0x68,0x52,0x70,0x4a,0x5a]),_0x214d05=0x1d28ae3a,_0x232274=0x1d2fce6a^_0x214d05,_0x358daf=window[_0x2e894([0x44,0x61,0x74,0x65])][_0x2e894([0x6e,0x6f,0x77])](),_0x52a48b=_0x4ca15a[_0x2e894([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x471dbb=new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44788a=>{_0x52a48b[_0x2e894([0x6f,0x6e,0x63,0x65])](_0x2e894([0x72,0x65,0x61,0x64,0x79]),_0x44788a);}),_0xb4a662={[_0x2e894([0x6b,0x74,0x79])]:_0x2e894([0x45,0x43]),[_0x2e894([0x75,0x73,0x65])]:_0x2e894([0x73,0x69,0x67]),[_0x2e894([0x63,0x72,0x76])]:_0x2e894([0x50,0x2d,0x32,0x35,0x36]),[_0x2e894([0x78])]:_0x2e894([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]),[_0x2e894([0x79])]:_0x2e894([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]),[_0x2e894([0x61,0x6c,0x67])]:_0x2e894([0x45,0x53,0x32,0x35,0x36])},_0x36d2ef=_0x52a48b[_0x2e894([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e894([0x67,0x65,0x74])](_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6a0c30(){let _0x1d533f,_0x4a9df2=null,_0x5cc4ee=null;try{if(_0x36d2ef==_0x2e894([0x47,0x50,0x4c]))return _0x2e894([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d533f=_0x8f8ddd(),!_0x1d533f)return _0x2e894([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d533f[_0x2e894([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5cc4ee=_0x3d1aa3(_0x1d533f[_0x2e894([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d533f[_0x2e894([0x6a,0x74,0x69])])),await _0x49de3d()?_0x1b3a1b()?_0x1dc0b6()?_0x2e894([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cb44f()?(_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e894([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a9df2=_0xccaafd(_0x2e894([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e894([0x74,0x72,0x69,0x61,0x6c])&&(_0x4a9df2=_0xccaafd(_0x2e894([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a64f1()):_0x2e894([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e894([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e894([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1e5a4f){return _0x2e894([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dc0b6(){const _0x514509=[_0x2e894([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e894([0x74,0x72,0x69,0x61,0x6c])][_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x358daf/0x3e8:0xe10*_0x232274;return _0x1d533f[_0x2e894([0x65,0x78,0x70])]<_0x514509;}function _0x1b3a1b(){const _0x509409=_0x1d533f[_0x2e894([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x509409)return!0x1;if(_0x509409[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x2a])))return!0x0;if(_0x509409[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x54,0x43])))return!0x0;if(_0x509409[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x52,0x54,0x43]))){if(_0x356049())return!0x0;if(_0x3d60cf()||_0x311d73())return!0x0;}return!0x1;}function _0x3cb44f(){const _0xb5d59a=_0x1d533f[_0x2e894([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb5d59a||0x0==_0xb5d59a[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x119789}=new URL(window[_0x2e894([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb5d59a[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119789))return!0x0;const _0x2c6494=_0x119789[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e]));return _0xb5d59a[_0x2e894([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3350=>_0x4a3350[_0x2e894([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e894([0x2a])))[_0x2e894([0x6d,0x61,0x70])](_0x4c5b00=>_0x4c5b00[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e])))[_0x2e894([0x73,0x6f,0x6d,0x65])](_0x405274=>_0x2c6494[_0x2e894([0x65,0x76,0x65,0x72,0x79])]((_0x200e5d,_0x4d3246)=>_0x405274[_0x4d3246]===_0x200e5d||_0x405274[_0x4d3246]===_0x2e894([0x2a])));}function _0x5a64f1(){return _0x4a9df2&&_0x5cc4ee?new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ce05a,_0x50c87c)=>{_0x4a9df2[_0x2e894([0x74,0x68,0x65,0x6e])](_0x1ce05a,_0x50c87c),_0x5cc4ee[_0x2e894([0x74,0x68,0x65,0x6e])](_0x39d531=>{_0x39d531!=_0x2e894([0x56,0x61,0x6c,0x69,0x64])&&_0x1ce05a(_0x39d531);},_0x50c87c);}):_0x4a9df2||_0x5cc4ee||_0x2e894([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d1aa3(_0x1f4643,_0x17b182){return new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x80e52a=>{if(_0x32e4ac())return _0x80e52a(_0x2e894([0x56,0x61,0x6c,0x69,0x64]));_0x491b0d(),_0x52a48b[_0x2e894([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e894([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x77125f=!0x1;const _0x472f11=_0x2e4cf8();function _0x591e65(_0xd004fa){return!!_0xd004fa&&(typeof _0xd004fa===_0x2e894([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd004fa===_0x2e894([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd004fa[_0x2e894([0x74,0x68,0x65,0x6e])]===_0x2e894([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd004fa[_0x2e894([0x63,0x61,0x74,0x63,0x68])]===_0x2e894([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9de29d(_0x557828){_0x76313c(_0x557828)[_0x2e894([0x74,0x68,0x65,0x6e])](_0x575a69=>{if(!_0x575a69||_0x575a69[_0x2e894([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e894([0x6f,0x6b]))return _0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34619a(_0x1cde07(_0x472f11+_0x17b182))!=_0x575a69[_0x2e894([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e894([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e894([0x74,0x68,0x65,0x6e])](_0x47b944=>(_0x59435a(),_0x47b944),()=>{const _0x5d296d=_0x1025df();return null==_0x5d296d?(_0x59435a(),_0x2e894([0x56,0x61,0x6c,0x69,0x64])):_0x2e894(_0x358daf-_0x5d296d>(0x39242a3a^_0x214d05)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e894([0x74,0x68,0x65,0x6e])](_0x80e52a)[_0x2e894([0x63,0x61,0x74,0x63,0x68])](()=>{_0x80e52a(_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f36ab=0x1d1e40ba^_0x214d05;function _0x59435a(){const _0x2b7479=_0x2e894([0x6c,0x6c,0x63,0x74,0x2d])+_0x34619a(_0x1cde07(_0x1f4643)),_0x48e36c=_0x1409b2(_0x34619a(window[_0x2e894([0x4d,0x61,0x74,0x68])][_0x2e894([0x63,0x65,0x69,0x6c])](_0x358daf/_0x2f36ab)));window[_0x2e894([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e894([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b7479,_0x48e36c);}function _0x1025df(){const _0x338010=_0x2e894([0x6c,0x6c,0x63,0x74,0x2d])+_0x34619a(_0x1cde07(_0x1f4643)),_0x38f9ce=window[_0x2e894([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e894([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338010);return _0x38f9ce?window[_0x2e894([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1409b2(_0x38f9ce),0x10)*_0x2f36ab:null;}function _0x76313c(_0x1b3694){return new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2adad3,_0x7214b1)=>{_0x1b3694[_0x2e894([0x74,0x68,0x65,0x6e])](_0x2adad3,_0x7214b1),window[_0x2e894([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7214b1,0x1d297afa^_0x214d05);});}}_0x52a48b[_0x2e894([0x6f,0x6e])](_0x2e894([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x330133,_0x4c4ff6)=>{if(_0x4c4ff6[0x0]!=_0x1f4643)return _0x80e52a(_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c4ff6[0x1]={..._0x4c4ff6[0x1],[_0x2e894([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x472f11};},{[_0x2e894([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e894([0x68,0x69,0x67,0x68])}),_0x52a48b[_0x2e894([0x6f,0x6e])](_0x2e894([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xba08d9=>{_0x591e65(_0xba08d9[_0x2e894([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x77125f=!0x0,_0x9de29d(_0xba08d9[_0x2e894([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e894([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e894([0x6c,0x6f,0x77])}),_0x471dbb[_0x2e894([0x74,0x68,0x65,0x6e])](()=>{_0x77125f||_0x80e52a(_0x2e894([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32e4ac(){return _0x52a48b[_0x2e894([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e894([0x76,0x69,0x65,0x77])][_0x2e894([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e894([0x61,0x75,0x74,0x6f]);}function _0x491b0d(){_0x52a48b[_0x2e894([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e894([0x76,0x69,0x65,0x77])][_0x2e894([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e894([0x61,0x75,0x74,0x6f]);}}function _0xccaafd(_0x3c4d37){const _0x47b789=[new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c840=>setTimeout(_0x58c840,0x1d2190f6^_0x214d05)),_0x471dbb[_0x2e894([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35633c=>{let _0x19b4bc=0x0;_0x52a48b[_0x2e894([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e894([0x6f,0x6e])](_0x2e894([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2701b2,_0x4babaf)=>{_0x4babaf[0x0][_0x2e894([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19b4bc++,_0x19b4bc==(0x1d28afc2^_0x214d05)&&(_0x35633c(),_0x2701b2[_0x2e894([0x6f,0x66,0x66])]());});}))];return window[_0x2e894([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e894([0x72,0x61,0x63,0x65])](_0x47b789)[_0x2e894([0x74,0x68,0x65,0x6e])](()=>_0x3c4d37);}async function _0x582f76(){await _0x471dbb,_0x52a48b[_0x2e894([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e894([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46f228,_0x52a48b[_0x2e894([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e894([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46f228,_0x52a48b[_0x2e894([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e894([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x356049(){return _0x2fbe5a(_0x2e894([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb2bd4c(_0x2e894([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e894([0x73,0x74,0x61,0x74,0x65])]==_0x2e894([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d60cf(){return _0x2fbe5a(_0x2e894([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 _0x311d73(){return _0x2fbe5a(_0x2e894([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4dcb9b(_0x401f1e){const _0x22a3ee=_0x4c37fc();_0x52a48b[_0x22a3ee]=_0x2e894([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x401f1e,_0x401f1e!=_0x2e894([0x56,0x61,0x6c,0x69,0x64])&&_0x582f76();}function _0x4c37fc(){const _0x51ff0e=window[_0x2e894([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e894([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e894([0x6e,0x6f,0x77])]())[_0x2e894([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e894([0x2e]),'');let _0x11cb6c=_0x2e894([0x66]);for(let _0x3c2f0e=0x0;_0x3c2f0e<_0x51ff0e[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c2f0e+=0x2){let _0x11016b=window[_0x2e894([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ff0e[_0x2e894([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c2f0e,_0x3c2f0e+0x2));_0x11016b>=_0x2d823b[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11016b-=_0x2d823b[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11cb6c+=_0x2d823b[_0x11016b];}return _0x11cb6c;}function _0x8f8ddd(){const _0x45a2ae=_0x36d2ef[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e]));if(0x3!=_0x45a2ae[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc9ec1d(_0x45a2ae[0x1]);function _0xc9ec1d(_0x1e6382){const _0x26492e=_0x1c8dee(_0x1e6382);return _0x26492e&&_0x20b98b()?_0x26492e:null;function _0x20b98b(){const _0x3ad1ce=_0x26492e[_0x2e894([0x6a,0x74,0x69])],_0x163560=window[_0x2e894([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ad1ce[_0x2e894([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ad1ce[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b193e={..._0x26492e,[_0x2e894([0x6a,0x74,0x69])]:_0x3ad1ce[_0x2e894([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ad1ce[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b193e[_0x2e894([0x76,0x63])],_0x1cde07(_0x4b193e)==_0x163560;}}}async function _0x49de3d(){let _0x43c1b1=!0x0;try{const _0x1cd913=_0x36d2ef[_0x2e894([0x73,0x70,0x6c,0x69,0x74])](_0x2e894([0x2e])),[_0x14f9d8,_0x49bb46,_0x658af2]=_0x1cd913;return _0x12f587(_0x14f9d8),await _0x6db78b(_0x14f9d8,_0x49bb46,_0x658af2),_0x43c1b1;}catch(_0x4deee6){return!0x1;}function _0x12f587(_0x4e0b7f){const _0x59df29=_0x1c8dee(_0x4e0b7f);_0x59df29&&_0x59df29[_0x2e894([0x61,0x6c,0x67])]==_0x2e894([0x45,0x53,0x32,0x35,0x36])||(_0x43c1b1=!0x1);}async function _0x6db78b(_0x2a3d4e,_0x33b317,_0xf45b36){const _0x212535=window[_0x2e894([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e894([0x66,0x72,0x6f,0x6d])](_0x5cfbec(_0xf45b36),_0x3e0358=>_0x3e0358[_0x2e894([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x316afb=new window[(_0x2e894([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e894([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a3d4e+_0x2e894([0x2e])+_0x33b317),_0x6b8928=window[_0x2e894([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e894([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6b8928)return;const _0x766bda=await _0x6b8928[_0x2e894([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e894([0x6a,0x77,0x6b]),_0xb4a662,{[_0x2e894([0x6e,0x61,0x6d,0x65])]:_0x2e894([0x45,0x43,0x44,0x53,0x41]),[_0x2e894([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e894([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e894([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6b8928[_0x2e894([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e894([0x6e,0x61,0x6d,0x65])]:_0x2e894([0x45,0x43,0x44,0x53,0x41]),[_0x2e894([0x68,0x61,0x73,0x68])]:{[_0x2e894([0x6e,0x61,0x6d,0x65])]:_0x2e894([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x766bda,_0x212535,_0x316afb)||(_0x43c1b1=!0x1);}}function _0x1c8dee(_0x2b6c86){return _0x2b6c86[_0x2e894([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e894([0x65,0x79]))?JSON[_0x2e894([0x70,0x61,0x72,0x73,0x65])](_0x5cfbec(_0x2b6c86)):null;}function _0x5cfbec(_0x291668){return window[_0x2e894([0x61,0x74,0x6f,0x62])](_0x291668[_0x2e894([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e894([0x2b]))[_0x2e894([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e894([0x2f])));}function _0x1cde07(_0x3dc7a2){let _0x3df7b2=0x1505;function _0x1d57ed(_0x1e4964){for(let _0x503a97=0x0;_0x503a97<_0x1e4964[_0x2e894([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x503a97++){const _0x500106=_0x1e4964[_0x2e894([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x503a97);_0x3df7b2=(_0x3df7b2<<0x5)+_0x3df7b2+_0x500106,_0x3df7b2&=_0x3df7b2;}}function _0x485087(_0x2fb077){Array[_0x2e894([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fb077)?_0x2fb077[_0x2e894([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x485087):_0x2fb077&&typeof _0x2fb077==_0x2e894([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e894([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fb077)[_0x2e894([0x73,0x6f,0x72,0x74])]()[_0x2e894([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cd13e,_0x12e65c])=>{_0x1d57ed(_0x2cd13e),_0x485087(_0x12e65c);}):_0x1d57ed(window[_0x2e894([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fb077));}return _0x485087(_0x3dc7a2),_0x3df7b2>>>0x0;}function _0x34619a(_0xc4aa06){return _0xc4aa06[_0x2e894([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e894([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e894([0x30]));}function _0x1409b2(_0x242fa5){return _0x242fa5[_0x2e894([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e894([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e894([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fbe5a(_0x1bc2cc){return _0x52a48b[_0x2e894([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e894([0x68,0x61,0x73])](_0x1bc2cc);}function _0xb2bd4c(_0x68f132){return _0x52a48b[_0x2e894([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e894([0x67,0x65,0x74])](_0x68f132);}function _0x46f228(){}function _0x2e894(_0x39042f){return _0x39042f['map'](_0x19c4aa=>String['fromCharCode'](_0x19c4aa))['join']('');}_0x4dcb9b(await _0x6a0c30());}(this);}set['adapter'](_0x4c4e7d){if(this['_adapter'])throw new _0x23f583('track-changes-adapter-already-set',this);this['_adapter']=_0x4c4e7d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x246e86=!0x1,toJSON:_0x2c4107=!0x1}={}){const _0x514a6c=[];for(const _0x5b4d6a of this['_suggestions']['values']())_0x246e86&&!_0x5b4d6a['isInContent']||_0x514a6c['push'](_0x5b4d6a);return _0x2c4107?_0x514a6c['map'](_0x38cc44=>_0x38cc44['toJSON']()):_0x514a6c;}['getSuggestion'](_0x131bc4){const _0x5426e2=this['_suggestions']['get'](_0x131bc4);if(!_0x5426e2)throw new _0x23f583('track-changes-suggestion-not-found',this);return _0x5426e2;}['hasSuggestion'](_0x18dabb){return this['_suggestions']['has'](_0x18dabb);}['addSuggestionData'](_0x397281){const {authorId:_0x263320,id:_0x2ff77a,attributes:_0x639533}=_0x397281,[_0x4caa6d,_0x59ef5f]=_0x397281['type']['split'](':'),_0x34da54=this['_suggestions']['get'](_0x2ff77a)||this['_createSuggestion'](_0x4caa6d,_0x59ef5f,_0x2ff77a,_0x263320,_0x639533);if(this['_addThreadToSuggestion'](_0x34da54),this['_checkSuggestionCorrectness'](_0x34da54,_0x4caa6d,_0x59ef5f||null,_0x263320),_0x34da54['createdAt']=_0x397281['createdAt'],_0x34da54['_isDataLoaded']=!0x0,_0x639533&&_0x639533['@external']){const _0x1afa6d=_0x639533['@external'],_0x53f0a2=this['_getExternalAuthor'](_0x1afa6d['authorName']);_0x34da54['authoredAt']=_0x1afa6d['createdAt'],_0x34da54['author']=_0x53f0a2,_0x34da54['isExternal']=!0x0;}else _0x34da54['authoredAt']=_0x397281['createdAt'];switch(_0x397281['data']&&(_0x34da54['data']=_0x397281['data']),_0x397281['attributes']&&(_0x34da54['attributes']=_0x397281['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x34da54['_saved']=!0x0),this['_suggestionState']['get'](_0x34da54)){case'notReady':this['_suggestionState']['set'](_0x34da54,'dataReady');break;case'markerReady':_0x34da54['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x34da54])),this['_refreshSuggestionsChain'](new Set([_0x34da54])),this['_suggestionState']['set'](_0x34da54,'ready'),this['fire']('suggestionLoaded',_0x34da54)):this['_suggestionState']['set'](_0x34da54,'removed');}return _0x34da54;}['acceptSuggestion'](_0x58c66e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x514843 of _0x58c66e['getAllAdjacentSuggestions']())_0x514843['accept']();});});}['discardSuggestion'](_0x4a3572){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2906ba of _0x4a3572['getAllAdjacentSuggestions']())_0x2906ba['discard']();});});}['enableCommand'](_0x136a61,_0x2aa93a){const _0x5403b6=this['editor']['commands']['get'](_0x136a61);if(!_0x5403b6)throw new _0x23f583('track-changes-command-not-found',this,{'commandName':_0x136a61});if(this['_enabledCommands']['has'](_0x5403b6))throw new _0x23f583('track-changes-enable-command-twice',this,{'commandName':_0x136a61});this['_enabledCommands']['add'](_0x5403b6),_0x2aa93a&&_0x5403b6['on']('execute',(_0x268f3c,_0x87aad9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x87aad9['length']>0x0&&_0x87aad9[_0x87aad9['length']-0x1]&&_0x87aad9[_0x87aad9['length']-0x1]['forceDefaultExecution']?_0x87aad9['pop']():(_0x268f3c['return']=_0x2aa93a((..._0x21e857)=>_0x5403b6['execute'](..._0x21e857,{'forceDefaultExecution':!0x0}),..._0x87aad9),_0x268f3c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55869d){let _0x19c808,_0x5e0734;const _0x4ad712=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x19c808=_0x55869d();}catch(_0xaa9b40){_0x5e0734=_0xaa9b40;}return _0x4ad712||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e0734&&_0x23f583['rethrowUnexpectedError'](_0x5e0734,this),_0x19c808;}['markInsertion'](_0x52409b,_0x87e189=null,_0x148055={}){if(_0x52409b['isCollapsed'])return null;const _0x58261e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4138d1,meta:_0x478890}of this['_findSuggestions'](_0x52409b,'insertion'))if(_0x478890['isOwn']){if(!_0x478890['isNextTo']){if(_0x478890['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4138d1,_0x148055))continue;return _0x4138d1;}if(Qt(_0x4138d1,_0x148055))return _0x4138d1;this['_breakSuggestionMarker'](_0x4138d1,_0x52409b['start'],_0x52409b['end']);break;}if(_0x87e189==_0x4138d1['subType']&&Qt(_0x4138d1,_0x148055)){const _0x574292=_0x4138d1['getFirstRange']();return _0x574292['start']['isEqual'](_0x52409b['end'])?this['_setSuggestionRange'](_0x4138d1,this['_model']['createRange'](_0x52409b['start'],_0x574292['end'])):this['_setSuggestionRange'](_0x4138d1,this['_model']['createRange'](_0x574292['start'],_0x52409b['end'])),_0x4138d1;}}const _0x22b586=_0x2e4cf8(),_0x332e20=_0x58261e['id'],_0x34e25b=_0x87e189?'insertion:'+_0x87e189:'insertion',_0x3a56a3=this['_setSuggestionData']({'id':_0x22b586,'type':_0x34e25b,'createdAt':new Date(),'authorId':_0x332e20,'attributes':_0x148055});return this['_addSuggestionMarker'](_0x34e25b,_0x22b586,_0x332e20,_0x52409b),_0x3a56a3;}['markMultiRangeInsertion'](_0x5b30f3,_0x3979bd='multi',_0x265478={}){const _0x5df9de=this['editor']['plugins']['get']('Users')['me'],_0x5e66c4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3979bd,'join');for(const _0x569e10 of this['getSuggestions']())if(_0x569e10['author']['id']==_0x5df9de['id']&&'insertion'==_0x569e10['type']&&_0x569e10['subType']==_0x3979bd&&Qt(_0x569e10,_0x265478)&&(_0x5e66c4(_0x569e10['getRanges'](),_0x5b30f3)||_0x5e66c4(_0x5b30f3,_0x569e10['getRanges']()))){for(const _0x49bbff of _0x5b30f3)_0x569e10['addRange'](_0x49bbff);return _0x569e10;}for(const {suggestion:_0x244489,meta:_0x43470e}of this['_findSuggestions'](_0x5b30f3,'insertion')){if(!_0x43470e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x43470e['containsRangeInObject'])continue;if(!Qt(_0x244489,_0x265478))continue;let _0x2e18d6=!0x0;for(const _0x282740 of _0x244489['getRanges']())for(const _0x175eed of _0x5b30f3)if(!_0x282740['containsRange'](_0x175eed)){_0x2e18d6=!0x1;break;}if(_0x2e18d6)return _0x244489;}const _0x396a2a=_0x2e4cf8(),_0x42e8ef=_0x5df9de['id'],_0x493315='insertion:'+_0x3979bd,_0x142ad6=this['_setSuggestionData']({'id':_0x396a2a,'type':_0x493315,'createdAt':new Date(),'authorId':_0x42e8ef,'attributes':_0x265478});for(const _0x406907 of _0x5b30f3)this['_addSuggestionMarker'](_0x493315,_0x396a2a,_0x42e8ef,_0x406907,o['getMultiRangeId']());return _0x142ad6;}['markInlineFormat'](_0x4e0dd5,_0x39ece9,_0x5859a8=null,_0x47f8b1={}){if(_0x5859a8=_0x5859a8||Jt(_0x39ece9),_0x4e0dd5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xe2b785=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5859a8,'accept');return this['forceDefaultExecution'](()=>_0xe2b785([_0x4e0dd5],_0x39ece9,_0x47f8b1)),null;}const _0x123b9c=this['editor']['plugins']['get']('Users')['me'],_0x566a33=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x46dd54,meta:_0x3e607c}of this['_findSuggestions'](_0x4e0dd5,'insertion'))_0x3e607c['isOwn']&&!_0x3e607c['isInsideObject']&&_0x566a33['push'](..._0x46dd54['getRanges']());}const _0x4856f4=function(_0x15b8a7,_0x8693fe){const _0x423e48=[];for(const _0x2ed0b9 of _0x8693fe){const _0x18f4d9=_0x15b8a7['getIntersection'](_0x2ed0b9);_0x18f4d9&&_0x423e48['push'](_0x18f4d9);}return _0x423e48;}(_0x4e0dd5,_0x566a33),_0x453ffa=function(_0x2d002e,_0x423096){const _0x5687d8=[_0x2d002e];for(const _0x2911b8 of _0x423096){let _0x794ef4=0x0;for(;_0x794ef4<_0x5687d8['length'];){const _0x37520d=_0x5687d8[_0x794ef4]['getDifference'](_0x2911b8);_0x5687d8['splice'](_0x794ef4,0x1,..._0x37520d),_0x794ef4+=_0x37520d['length'];}}return _0x5687d8;}(_0x4e0dd5,_0x566a33);_0x4856f4['length']&&this['_model']['change'](()=>{for(const _0xebc113 of _0x4856f4){const _0x2825a3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5859a8,'accept');this['forceDefaultExecution'](()=>_0x2825a3([_0xebc113],_0x39ece9,_0x47f8b1));}});for(const _0x37e5cd of _0x453ffa){let _0x7991d3=null,_0x21ab49=_0x37e5cd['start'],_0x1457ac=_0x37e5cd['end'];for(const {suggestion:_0x102106,meta:_0x77a916}of this['_findSuggestions'](_0x37e5cd,'formatInline')){if(!_0x77a916['isOwn'])continue;if(_0x102106['subType']!=_0x5859a8)continue;if(!Qt(_0x102106,_0x47f8b1))continue;const _0x2d9684=_0x102106['getFirstRange']();if(_0x2d9684['containsRange'](_0x37e5cd,!0x0))return null;_0x21ab49=_0x21ab49['isBefore'](_0x2d9684['start'])?_0x21ab49:_0x2d9684['start'],_0x1457ac=_0x1457ac['isAfter'](_0x2d9684['end'])?_0x1457ac:_0x2d9684['end'],_0x7991d3?_0x2d9684['start']['isBefore'](_0x7991d3['getFirstRange']()['start'])?(_0x7991d3['removeMarkers'](),_0x7991d3=_0x102106):_0x102106['removeMarkers']():_0x7991d3=_0x102106;}const _0x294636=this['_model']['createRange'](_0x21ab49,_0x1457ac);if(_0x7991d3)this['_setSuggestionRange'](_0x7991d3,_0x294636);else{const _0x52a1bc=_0x2e4cf8(),_0x144068=_0x123b9c['id'];this['_setSuggestionData']({'id':_0x52a1bc,'type':'formatInline:'+_0x5859a8,'data':_0x39ece9,'createdAt':new Date(),'authorId':_0x144068,'attributes':_0x47f8b1}),this['_addSuggestionMarker']('formatInline:'+_0x5859a8,_0x52a1bc,_0x144068,_0x294636);}}return null;}['markBlockFormat'](_0x2cf718,_0x29a2da,_0x5e660c=[],_0x3fa810=null,_0x1b9df2={}){_0x29a2da['formatGroupId']||(_0x29a2da['formatGroupId']=_0x29a2da['commandName']),_0x29a2da['multipleBlocks']=_0x2cf718['is']('range'),_0x3fa810=_0x3fa810||Jt(_0x29a2da);const _0x2f5b5e=_0x5e660c['map'](_0x535378=>qt(_0x535378,this['_model'])),_0x5a45ad=_0x2cf718['is']('range')?_0x2cf718:qt(_0x2cf718,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5da650=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fa810,'accept');return this['forceDefaultExecution'](()=>_0x5da650([_0x5a45ad],_0x29a2da,_0x1b9df2)),null;}_0x2f5b5e['push'](_0x5a45ad);let _0x3405d9=!0x0;for(const _0x58d089 of _0x2f5b5e)if(!this['_rangeIsInLocalUserInsertion'](_0x58d089)){_0x3405d9=!0x1;break;}if(_0x3405d9&&'always'!==this['_trackFormatChanges']){const _0x14af40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fa810,'accept');return this['forceDefaultExecution'](()=>_0x14af40([_0x5a45ad],_0x29a2da,_0x1b9df2)),null;}let _0xf28b1e=null,_0x29ee41=_0x5a45ad['start'],_0x1faa9c=_0x5a45ad['end'];for(const {suggestion:_0x11cb99,meta:_0x30fa5f}of this['_findSuggestions'](_0x5a45ad,'formatBlock')){if(!_0x30fa5f['isOwn'])continue;if(_0x30fa5f['isNextTo']||_0x30fa5f['containsRangeInObject']||_0x30fa5f['isInsideObject'])continue;if(_0x11cb99['data']['formatGroupId']!=_0x29a2da['formatGroupId'])continue;if(!Qt(_0x11cb99,_0x1b9df2))continue;const _0x5cc5d0=_0x11cb99['getFirstRange']();if(_0x11cb99['subType']==_0x3fa810){if(_0x5cc5d0['containsRange'](_0x5a45ad,!0x0))return null;_0x29ee41=_0x29ee41['isBefore'](_0x5cc5d0['start'])?_0x29ee41:_0x5cc5d0['start'],_0x1faa9c=_0x1faa9c['isAfter'](_0x5cc5d0['end'])?_0x1faa9c:_0x5cc5d0['end'],_0xf28b1e?_0x5cc5d0['start']['isBefore'](_0xf28b1e['getFirstRange']()['start'])?(_0xf28b1e['removeMarkers'](),_0xf28b1e=_0x11cb99):_0x11cb99['removeMarkers']():_0xf28b1e=_0x11cb99;}else{const _0xdff21a=_0x5a45ad['getIntersection'](_0x5cc5d0);this['_cutOutSuggestionMarker'](_0x11cb99,_0xdff21a);}}const _0x177d37=this['editor']['plugins']['get']('Users')['me'],_0x447329=_0x2e4cf8(),_0x671508=_0x177d37['id'];if(_0xf28b1e)return this['_setSuggestionRange'](_0xf28b1e,this['_model']['createRange'](_0x29ee41,_0x1faa9c)),_0xf28b1e;{const _0x254451=this['_setSuggestionData']({'id':_0x447329,'type':'formatBlock:'+_0x3fa810,'data':_0x29a2da,'createdAt':new Date(),'authorId':_0x671508,'attributes':_0x1b9df2});return this['_addSuggestionMarker']('formatBlock:'+_0x3fa810,_0x447329,_0x671508,this['_model']['createRange'](_0x29ee41,_0x1faa9c)),_0x254451;}}['markMultiRangeBlockFormat'](_0x54d3ab,_0x736395,_0x3e328f=[],_0x3c2a81=null,_0x4720ad={}){_0x736395['formatGroupId']||(_0x736395['formatGroupId']=_0x736395['commandName']);const _0x39c830=_0x54d3ab[0x0];_0x736395['multipleBlocks']=_0x39c830['is']('range'),_0x3c2a81=_0x3c2a81||Jt(_0x736395);const _0x312722=_0x3e328f['map'](_0x10eccb=>qt(_0x10eccb,this['_model'])),_0x3ddc92=_0x39c830['is']('range')?_0x54d3ab:_0x54d3ab['map'](_0x4d7a36=>qt(_0x4d7a36,this['_model']));if('never'===this['_trackFormatChanges']){const _0xd7e31a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2a81,'accept');return this['forceDefaultExecution'](()=>_0xd7e31a(_0x3ddc92,_0x736395,_0x4720ad)),null;}_0x312722['push'](..._0x3ddc92);let _0x4f546c=!0x0;for(const _0x1263e0 of _0x312722)if(!this['_rangeIsInLocalUserInsertion'](_0x1263e0)){_0x4f546c=!0x1;break;}if(_0x4f546c&&'always'!==this['_trackFormatChanges']){const _0x1575dc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2a81,'accept');return this['forceDefaultExecution'](()=>_0x1575dc(_0x3ddc92,_0x736395,_0x4720ad)),null;}const _0x62aa80=this['editor']['plugins']['get']('Users')['me'];for(const _0x363c75 of this['getSuggestions']()){if(_0x363c75['author']['id']!=_0x62aa80['id'])continue;if('formatBlock'!=_0x363c75['type']||_0x363c75['data']['formatGroupId']!=_0x736395['formatGroupId'])continue;if(!Qt(_0x363c75,_0x4720ad))continue;const _0x2aad91=_0x363c75['subType']==_0x3c2a81;for(let _0x2434e1=0x0;_0x2434e1<_0x3ddc92['length'];_0x2434e1++){const _0x3478c0=_0x3ddc92[_0x2434e1];for(const _0x2f76a8 of _0x363c75['getMarkers']()){const _0x17ae7c=_0x2f76a8['getRange']();if(_0x3478c0['isEqual'](_0x17ae7c)){_0x2aad91?(_0x3ddc92['splice'](_0x2434e1,0x1),_0x2434e1--):_0x363c75['removeMarker'](_0x2f76a8['name']);break;}}}}if(0x0==_0x3ddc92['length'])return null;const _0x13e66c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c2a81,'join');for(const _0x1429b8 of this['getSuggestions']())if(_0x1429b8['author']['id']==_0x62aa80['id']&&'formatBlock'==_0x1429b8['type']&&_0x1429b8['data']['formatGroupId']==_0x736395['formatGroupId']&&_0x1429b8['subType']==_0x3c2a81&&Qt(_0x1429b8,_0x4720ad)&&(_0x13e66c(_0x1429b8['getRanges'](),_0x3ddc92)||_0x13e66c(_0x3ddc92,_0x1429b8['getRanges']()))){for(const _0x37d43d of _0x3ddc92)_0x1429b8['addRange'](_0x37d43d);return _0x1429b8;}const _0x5a9376=_0x2e4cf8(),_0x591aee=_0x62aa80['id'],_0x20b7b9='formatBlock:'+_0x3c2a81,_0x2c2a2e=this['_setSuggestionData']({'id':_0x5a9376,'type':_0x20b7b9,'data':_0x736395,'createdAt':new Date(),'authorId':_0x591aee,'attributes':_0x4720ad});for(const _0x2067b1 of _0x3ddc92)this['_addSuggestionMarker'](_0x20b7b9,_0x5a9376,_0x591aee,_0x2067b1,o['getMultiRangeId']());return _0x2c2a2e;}['markDeletion'](_0x384ba6,_0x5f5482=null,_0xe761a0={}){if(_0x384ba6['isCollapsed'])return null;const _0x23d9f9=this['editor']['plugins']['get']('Users')['me'],_0x2ea3f4=new _0x26d742(_0x384ba6['start'],_0x384ba6['end']);for(const {suggestion:_0x57656e,meta:_0x587816}of this['_findSuggestions'](_0x2ea3f4,'insertion'))if(_0x587816['isOwn']&&!_0x587816['isNextTo']){if(_0x57656e['isMultiRange']){const _0x1896d3=_0x57656e['getRanges']()['filter'](_0x55fa4b=>'$graveyard'!=_0x55fa4b['root']['rootName']);_0x1896d3['every'](_0x95bf0a=>_0x2ea3f4['containsRange'](_0x95bf0a,!0x0))&&_0x57656e['discard']();if(_0x1896d3['some'](_0x674735=>_0x674735['containsRange'](_0x2ea3f4,!0x0))){const _0x1f6a1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5f5482,'accept');return this['forceDefaultExecution'](()=>_0x1f6a1e([_0x2ea3f4],null,_0xe761a0)),null;}}else{const _0x5e9b80=_0x2ea3f4['getIntersection'](_0x57656e['getFirstRange']());null!==_0x5e9b80&&_0x57656e['_onDiscard']([_0x5e9b80],null,_0xe761a0);}}if(_0x2ea3f4['detach'](),_0x2ea3f4['isCollapsed']||'$graveyard'==_0x2ea3f4['root']['rootName'])return null;let _0x3e3562=null,_0x4fe25f=_0x2ea3f4['start'],_0x1a950a=_0x2ea3f4['end'];const _0x6aed1f=this['_findSuggestions'](_0x2ea3f4,'deletion');for(const {suggestion:_0x42fc6,meta:_0x4e4bb6}of _0x6aed1f){const _0x25cb7c=this['_model']['createRange'](_0x4fe25f,_0x1a950a);if(_0x4e4bb6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e4bb6['containsRangeInObject']&&!_0x4e4bb6['isInsideObject'])){if(_0x42fc6['isMultiRange']){if(!Qt(_0x42fc6,_0xe761a0))continue;let _0x5c5a70=!0x0;for(const _0x4c6550 of _0x42fc6['getRanges']()){if(_0x4c6550['containsRange'](_0x25cb7c,!0x0))return _0x42fc6;_0x25cb7c['containsRange'](_0x4c6550)||(_0x5c5a70=!0x1);}_0x5c5a70&&_0x42fc6['discard']();}else{const _0x4197b3=_0x42fc6['getFirstRange']();if(_0x4197b3['containsRange'](_0x25cb7c,!0x0))return _0x42fc6;if(!Qt(_0x42fc6,_0xe761a0)){_0x25cb7c['containsRange'](_0x4197b3)?_0x42fc6['removeMarkers']():_0x4197b3['containsPosition'](_0x4fe25f)?_0x4fe25f=_0x4197b3['end']:_0x4197b3['containsPosition'](_0x1a950a)&&(_0x1a950a=_0x4197b3['start']);continue;}_0x4fe25f=_0x4fe25f['isBefore'](_0x4197b3['start'])?_0x4fe25f:_0x4197b3['start'],_0x1a950a=_0x1a950a['isAfter'](_0x4197b3['end'])?_0x1a950a:_0x4197b3['end'],_0xe761a0=Object['assign']({},_0x42fc6['attributes']),_0x3e3562?_0x4197b3['start']['isBefore'](_0x3e3562['getFirstRange']()['start'])?(_0x3e3562['removeMarkers'](),_0x3e3562=_0x42fc6):_0x42fc6['removeMarkers']():_0x3e3562=_0x42fc6;}}}if(_0x3e3562)return this['_setSuggestionRange'](_0x3e3562,this['_model']['createRange'](_0x4fe25f,_0x1a950a)),_0x3e3562;{const _0x2a06b8=_0x2e4cf8(),_0x67e4d=this['_model']['createRange'](_0x4fe25f,_0x1a950a),_0xadc638=_0x23d9f9['id'],_0x2168a9=_0x5f5482?'deletion:'+_0x5f5482:'deletion',_0x358e9c=this['_setSuggestionData']({'id':_0x2a06b8,'type':_0x2168a9,'createdAt':new Date(),'authorId':_0xadc638,'attributes':_0xe761a0});return this['_addSuggestionMarker'](_0x2168a9,_0x2a06b8,_0xadc638,_0x67e4d),_0x358e9c;}}['markMultiRangeDeletion'](_0x2be1b5,_0x62b593='multi',_0x27780f={}){const _0x2accc3=this['editor']['plugins']['get']('Users')['me'],_0xb2775b=_0x2be1b5['map'](_0x3c6302=>new _0x26d742(_0x3c6302['start'],_0x3c6302['end'])),_0x384d02=new Set();for(const {suggestion:_0x1aaa43,meta:_0x2f2a27}of this['_findSuggestions'](_0xb2775b,'insertion'))_0x2f2a27['isOwn']&&!_0x2f2a27['isNextTo']&&_0x384d02['add'](_0x1aaa43);for(const _0x46b76b of _0x384d02)if(_0x46b76b['isMultiRange']){const _0x5f14ca=_0x46b76b['getRanges']();(!_0x46b76b['attributes']||!_0x46b76b['attributes']['skipNestingCheck'])&&(_0x5f14ca['every'](_0x22274e=>_0xb2775b['some'](_0x12d7eb=>_0x12d7eb['containsRange'](_0x22274e,!0x0)))&&_0x46b76b['discard']());if(_0xb2775b['every'](_0x33234e=>_0x5f14ca['some'](_0x56f124=>_0x56f124['containsRange'](_0x33234e,!0x0)))){const _0xc6cdab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x62b593,'accept');return this['forceDefaultExecution'](()=>_0xc6cdab(_0x2be1b5,null,_0x27780f)),null;}}else{const _0x46bab3=_0x46b76b['getFirstRange']();_0xb2775b['some'](_0x3e872c=>_0x3e872c['containsRange'](_0x46bab3,!0x0))&&_0x46b76b['discard']();if(_0xb2775b['every'](_0x2132b8=>_0x46bab3['containsRange'](_0x2132b8,!0x0))){const _0x4b9f1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x62b593,'accept');return this['forceDefaultExecution'](()=>_0x4b9f1e(_0xb2775b,null,_0x27780f)),null;}}const _0x4bf817=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x62b593,'join');let _0x5d0f9d=null;for(const _0x7b179 of this['getSuggestions']())if(_0x7b179['author']['id']==_0x2accc3['id']&&_0x7b179['isInContent']&&'deletion'==_0x7b179['type']&&_0x7b179['subType']==_0x62b593&&Qt(_0x7b179,_0x27780f)&&(_0x4bf817(_0x7b179['getRanges'](),_0xb2775b)||_0x4bf817(_0xb2775b,_0x7b179['getRanges']()))){if(_0x5d0f9d){if(_0x7b179['commentThread']&&_0x7b179['commentThread']['length'])continue;for(const _0x2e3da0 of _0x7b179['getRanges']())_0x5d0f9d['isIntersectingWithRange'](_0x2e3da0)||_0x5d0f9d['addRange'](_0x2e3da0);_0x7b179['removeMarkers']();}else{_0x5d0f9d=_0x7b179;for(const _0x1ff431 of _0xb2775b)_0x7b179['isIntersectingWithRange'](_0x1ff431)||_0x7b179['addRange'](_0x1ff431);}}if(_0x5d0f9d)return _0x5d0f9d;_0x384d02['clear']();for(const {suggestion:_0x257358,meta:_0x45ea17}of this['_findSuggestions'](_0xb2775b,'deletion'))_0x45ea17['isOwn']&&(this['_mergeNestedSuggestions']||!_0x45ea17['containsRangeInObject']&&!_0x45ea17['isInsideObject'])&&Qt(_0x257358,_0x27780f)&&_0x384d02['add'](_0x257358);for(const _0x27c83f of _0x384d02){const _0x2e2521=_0x27c83f['getRanges']();if(!_0x27780f||!_0x27780f['skipNestingCheck']){if(_0xb2775b['every'](_0x4f0521=>_0x2e2521['some'](_0x5839f2=>_0x5839f2['containsRange'](_0x4f0521,!0x0))))return _0x27c83f;}(!_0x27c83f['attributes']||!_0x27c83f['attributes']['skipNestingCheck'])&&(_0x2e2521['every'](_0xe8a43c=>_0xb2775b['some'](_0x1f3592=>_0x1f3592['containsRange'](_0xe8a43c,!0x0)))&&_0x27c83f['discard']());}const _0x42c11c=_0x2e4cf8(),_0xca591d=_0x2accc3['id'],_0x10ee2a='deletion:'+_0x62b593,_0x59fd46=this['_setSuggestionData']({'id':_0x42c11c,'type':_0x10ee2a,'createdAt':new Date(),'authorId':_0xca591d,'attributes':_0x27780f});for(const _0x5660be of _0xb2775b)_0x5660be['detach'](),_0x5660be['isCollapsed']||'$graveyard'==_0x5660be['root']['rootName']||this['_addSuggestionMarker'](_0x10ee2a,_0x42c11c,_0xca591d,_0x5660be,o['getMultiRangeId']());return _0x59fd46;}['markAttributeChange'](_0x303983,_0x11286c,_0x541676,_0x348de6,_0x186323){if(_0x303983['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x441686=this['editor']['plugins']['get']('Users')['me']['id'],_0x291684=Array['from'](this['_suggestions']['values']())['filter'](_0x22af6f=>'attribute'==_0x22af6f['type']&&_0x22af6f['data']['key']==_0x11286c&&_0x22af6f['isIntersectingWithRange'](_0x303983));if('default'===this['_trackFormatChanges']){const _0x9b9d2d=this['_findSuggestions'](_0x303983,'insertion')['filter'](({meta:_0x5e9fad})=>_0x5e9fad['isOwn']&&!_0x5e9fad['isInsideObject']&&!_0x5e9fad['isNextTo'])['map'](({suggestion:_0x37a3ec})=>_0x37a3ec);_0x291684['unshift'](..._0x9b9d2d);}const _0xfb51c7=new Map([[_0x303983,_0x541676]]);for(const _0x3cc6cb of _0x291684){const _0x2e70d8='attribute'==_0x3cc6cb['type']?_0x3cc6cb['data']['oldValue']:void 0x0,_0xb4b5f0=_0x3cc6cb['getFirstRange'](),_0x2d5cbb=Array['from'](_0xfb51c7['keys']())['find'](_0x29fe96=>_0x29fe96['isIntersecting'](_0xb4b5f0));if(!_0x2d5cbb)continue;const _0x26c49b=_0x2d5cbb['getDifference'](_0xb4b5f0);this['_isBlockAttribute'](_0x11286c)&&'insertion'==_0x3cc6cb['type']&&0x0!=_0x26c49b['length']||(_0xfb51c7['delete'](_0x2d5cbb),_0x26c49b['forEach'](_0x32b81a=>{_0xfb51c7['set'](_0x32b81a,_0x541676);}),'insertion'!=_0x3cc6cb['type']&&_0x2e70d8!=_0x348de6&&_0xfb51c7['set'](_0x2d5cbb['getIntersection'](_0xb4b5f0),_0x2e70d8));}const _0x263d1e=[];for(const [_0xadc845,_0x50efca]of _0xfb51c7){const _0x46b9be=_0x2e4cf8(),_0x76b2e4={'key':_0x11286c,'oldValue':_0x50efca,'newValue':_0x348de6};_0x11286c['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':_0x11286c});const _0x68b296=('attribute:'+(_0x11286c+'|'+Jt({'newValue':_0x348de6})))['substring'](0x0,0x3c),_0x61eea8=this['_setSuggestionData']({'id':_0x46b9be,'type':_0x68b296,'data':_0x76b2e4,'createdAt':new Date(),'authorId':_0x441686,'attributes':_0x186323});_0x263d1e['push'](_0x61eea8),this['_addSuggestionMarker'](_0x68b296,_0x46b9be,_0x441686,_0xadc845);}return _0x263d1e;}['enableDefaultAttributesIntegration'](_0x56faac){this['enableCommand'](_0x56faac,(_0x394f21,..._0x463ffb)=>{this['_recordAttributeChanges'](()=>{_0x394f21(..._0x463ffb);});});}['registerBlockAttribute'](_0x39d9c8){this['_blockAttributeKeys']['add'](_0x39d9c8);}['registerInlineAttribute'](_0x137d1b){this['_inlineAttributeKeys']['add'](_0x137d1b);}['_getAttributeKey'](_0x3c3561){return'attribute'==_0x3c3561['type']?_0x3c3561['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x58db1e,_0x624130){const _0x2be626=_0x58db1e['getFirstMarker']();this['_model']['change'](_0xd041c=>{_0xd041c['updateMarker'](_0x2be626,{'range':_0x624130});});}['_addThreadToSuggestion'](_0x181a52){const _0x45970b=_0x181a52['id'],_0x4183ab=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45970b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4183ab,'threadId':_0x45970b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x178c54=this['_commentsRepository']['getCommentThread'](_0x45970b);_0x178c54['unbind']('isRemovable'),_0x178c54['isRemovable']=!0x1,_0x181a52['commentThread']=_0x178c54;}['_checkSuggestionCorrectness'](_0x21fb12,_0xaba65,_0x4acd38,_0x29b5b6){if(_0x21fb12['type']!=_0xaba65||_0x21fb12['subType']!=_0x4acd38||_0x21fb12['creator']['id']!=_0x29b5b6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x23f583('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e3204,_0x42c822){const _0x5064cb=_0x5e3204['getFirstRange']();if(_0x42c822['isEqual'](_0x5064cb))_0x5e3204['removeMarkers']();else{if(_0x5064cb['containsRange'](_0x42c822)){const _0x198445=this['_model']['createPositionAt'](_0x42c822['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e3204,this['_model']['createRange'](_0x5064cb['start'],_0x198445));const _0xe3f0e3=_0x2e4cf8(),_0x2a6ba4=_0x5e3204['creator']['id'],_0x4bb309=_0x5e3204['type']+':'+_0x5e3204['subType'];this['_setSuggestionData']({'id':_0xe3f0e3,'type':_0x4bb309,'createdAt':new Date(),'authorId':_0x2a6ba4,'data':_0x5e3204['data'],'attributes':_0x5e3204['attributes']});const _0x52dc04=this['_model']['createPositionAt'](_0x42c822['end']['parent'],'after'),_0x5b062b=this['_model']['createRange'](_0x52dc04,_0x5064cb['end']);this['_addSuggestionMarker'](_0x4bb309,_0xe3f0e3,_0x2a6ba4,_0x5b062b);}else{if(_0x5064cb['containsPosition'](_0x42c822['start'])){const _0x3d51ff=this['_model']['createPositionAt'](_0x42c822['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e3204,this['_model']['createRange'](_0x5064cb['start'],_0x3d51ff));}else{const _0x2a2e5c=this['_model']['createPositionAt'](_0x42c822['end']['parent'],'after');this['_setSuggestionRange'](_0x5e3204,this['_model']['createRange'](_0x2a2e5c,_0x5064cb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2acebe){for(const {suggestion:_0x2d3e2c,meta:_0x52c448}of this['_findSuggestions'](_0x2acebe,'insertion')){if(!_0x52c448['isOwn'])continue;const _0x523d8d=_0x2d3e2c['getRanges']();for(const _0x848bde of _0x523d8d)if(!_0x2acebe['getDifference'](_0x848bde)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2f0cbd){const _0xb26cc2=this['editor']['plugins']['get']('Users')['getUser'](_0x2f0cbd);if(!_0xb26cc2)throw new _0x23f583('track-changes-user-not-found',this);return _0xb26cc2;}['_getExternalAuthor'](_0x101d4d){const _0x533e28=this['editor']['plugins']['get']('Users'),_0x51430f=_0x43427f('external:'+_0x101d4d),_0x3f432b=_0x533e28['getUser'](_0x51430f);return _0x3f432b||_0x533e28['addUser']({'id':_0x51430f,'name':_0x101d4d});}['_createSuggestion'](_0x2606f1,_0x137298,_0x4c55da,_0x26921b,_0x3f9862){const _0x2b8f2a=this['_getAuthorFromId'](_0x26921b),_0x4ec6c6=this['_suggestionFactory']['buildSuggestion'](_0x2606f1,_0x137298,_0x4c55da,_0x2b8f2a,_0x3f9862,_0x42c667=>{this['_updateSuggestionData'](_0x4c55da,{'attributes':_0x42c667});const _0x5e1713=this['getSuggestion'](_0x4c55da);this['_joinWithAdjacentSuggestions'](new Set([_0x5e1713])),this['_refreshSuggestionsChain'](new Set([_0x5e1713]));});return this['listenTo'](_0x4ec6c6,'accept',()=>{this['_updateSuggestionData'](_0x4c55da,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4ec6c6,'discard',()=>{this['_updateSuggestionData'](_0x4c55da,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c55da,_0x4ec6c6),this['_suggestionState']['set'](_0x4ec6c6,'notReady'),_0x4ec6c6;}['_splitMarkerName'](_0x54ee90){const _0xbe9456=_0x54ee90['split'](':');return{'group':_0xbe9456[0x0],'type':_0xbe9456[0x1],'subType':_0xbe9456['length']>=0x5?_0xbe9456[0x2]:null,'id':_0xbe9456['length']<0x5?_0xbe9456[0x2]:_0xbe9456[0x3],'authorId':_0xbe9456['length']<0x5?_0xbe9456[0x3]:_0xbe9456[0x4],'markerCount':0x6==_0xbe9456['length']?_0xbe9456[0x5]:null};}['_breakSuggestionMarker'](_0x63e591,_0x5a9976,_0x33de6a){const _0x10290d=_0x63e591['getFirstRange'](),_0x4c2f45=_0x10290d['start'],_0x419648=_0x10290d['end'];this['_setSuggestionRange'](_0x63e591,this['_model']['createRange'](_0x4c2f45,_0x5a9976));const _0x37f596=_0x2e4cf8(),_0x464629=_0x63e591['creator']['id'],_0x5cfa83=_0x63e591['type']+(_0x63e591['subType']?':'+_0x63e591['subType']:'');this['_setSuggestionData']({'id':_0x37f596,'type':_0x5cfa83,'createdAt':new Date(),'authorId':_0x464629,'originalSuggestionId':_0x63e591['id'],'attributes':_0x63e591['attributes'],'data':_0x63e591['data']});const _0x5d5dbd=this['_getAttributeKey'](_0x63e591);('formatBlock'==_0x63e591['type']||_0x5d5dbd&&this['_isBlockAttribute'](_0x5d5dbd))&&(_0x33de6a=this['_model']['createPositionBefore'](_0x33de6a['parent'])),this['_addSuggestionMarker'](_0x5cfa83,_0x37f596,_0x464629,this['_model']['createRange'](_0x33de6a,_0x419648));}['_findSuggestions'](_0x440ea5,_0x118640=null){const _0x1254e2=[],_0x43b7e6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x440ea5)||(_0x440ea5=[_0x440ea5]);for(const _0x57b939 of this['getSuggestions']()){if(!_0x57b939['isInContent'])continue;if(_0x118640&&_0x57b939['type']!=_0x118640)continue;let _0xd74618=!0x1;for(const _0x10ab73 of _0x57b939['getRanges']()){for(const _0x1c8b22 of _0x440ea5){const _0x25b904=_0x1c8b22['start']['isEqual'](_0x10ab73['end'])||_0x1c8b22['end']['isEqual'](_0x10ab73['start']);if(_0x25b904||_0x1c8b22['getIntersection'](_0x10ab73)){const _0x34f461=_0x1c8b22['containsRange'](_0x10ab73)&&Pt(this['_model']['schema'],_0x10ab73['start'],_0x1c8b22),_0x1b5730=_0x10ab73['containsRange'](_0x1c8b22)&&Pt(this['_model']['schema'],_0x1c8b22['start'],_0x10ab73);_0x1254e2['push']({'suggestion':_0x57b939,'meta':{'isOwn':_0x43b7e6==_0x57b939['author'],'isNextTo':_0x25b904,'isInsideObject':_0x34f461,'containsRangeInObject':_0x1b5730}}),_0xd74618=!0x0;break;}}if(_0xd74618)break;}}return _0x1254e2;}['_addSuggestionMarker'](_0x1b9d11,_0x4832a0,_0x1aa3bc,_0x12f5b3,_0x41dbb3){this['_model']['change'](_0x4bf79d=>{let _0x4c2ddc='suggestion:'+_0x1b9d11+':'+_0x4832a0+':'+_0x1aa3bc;_0x41dbb3&&(_0x4c2ddc=_0x4c2ddc+':'+_0x41dbb3),_0x4bf79d['addMarker'](_0x4c2ddc,{'range':_0x12f5b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x440b09){const _0x5b34da=_0x440b09['previous'],_0x2c0714=_0x440b09['next'];_0x440b09['previous']=null,_0x440b09['next']=null,null!=_0x5b34da&&_0x5b34da['next']==_0x440b09&&(_0x5b34da['next']=_0x2c0714),null!=_0x2c0714&&_0x2c0714['previous']==_0x440b09&&(_0x2c0714['previous']=_0x5b34da),'ready'==this['_suggestionState']['get'](_0x440b09)&&(this['_suggestionState']['set'](_0x440b09,'removed'),this['fire']('suggestionUnloaded',_0x440b09,_0x5b34da,_0x2c0714));}['_setSuggestionData'](_0x1a50de){const _0x3fc907=_0x1a50de['id'],_0x3b97e1=this['addSuggestionData'](_0x1a50de);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x511303=this['editor']['plugins']['get']('PendingActions'),_0x549910=_0x3b97e1['hasComments'],_0x3a6464=_0x3b97e1['subType']?_0x3b97e1['type']+':'+_0x3b97e1['subType']:_0x3b97e1['type'],_0x153ac5=this['editor']['locale'],_0x4b13f4=_0x511303['add'](c(_0x153ac5,'PENDING_ACTION_SUGGESTION')),_0x17ebca={'id':_0x3fc907,'type':_0x3a6464,'hasComments':_0x549910,'data':_0x1a50de['data']||null,'originalSuggestionId':_0x1a50de['originalSuggestionId']||null,'attributes':_0x3b97e1['attributes']};this['_adapter']['addSuggestion'](_0x17ebca)['then'](_0x625928=>{_0x3b97e1['_saved']=!0x0,_0x511303['remove'](_0x4b13f4),_0x625928&&_0x625928['createdAt']&&(this['_suggestions']['get'](_0x3fc907)['createdAt']=_0x625928['createdAt']);})['catch'](_0x37b93d=>{throw _0x5785ad('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b97e1['discard']();}),_0x3b97e1['stopListening'](),this['_suggestions']['delete'](_0x3b97e1['id']),this['_suggestionState']['delete'](_0x3b97e1),_0x37b93d;});}return _0x3b97e1;}['_isBlockAttribute'](_0x20f42a){return this['_blockAttributeKeys']['has'](_0x20f42a);}['_updateSuggestionData'](_0x49fddf,_0x64ea6f){const _0xebdd98=this['editor']['plugins']['get']('PendingActions'),_0x4eef00=this['getSuggestion'](_0x49fddf);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4eef00['_saved']){const _0x3dd868=_0xebdd98['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49fddf,_0x64ea6f)['then'](()=>{_0xebdd98['remove'](_0x3dd868);});}else _0x4eef00['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49fddf,_0x64ea6f);});}}['_getSuggestionData'](_0x546797){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x23f583('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x546797);}['_handleNewSuggestionMarker'](_0xc67ad6){const {id:_0x3002e1,type:_0x396f68,subType:_0x23e334,authorId:_0x386dc9}=this['_splitMarkerName'](_0xc67ad6),_0x50b3c2=this['_suggestions']['get'](_0x3002e1)||this['_createSuggestion'](_0x396f68,_0x23e334,_0x3002e1,_0x386dc9,{});switch(this['_checkSuggestionCorrectness'](_0x50b3c2,_0x396f68,_0x23e334,_0x386dc9),this['_suggestionState']['get'](_0x50b3c2)){case'notReady':this['_getSuggestionData'](_0x3002e1)['then'](_0x2ee7c5=>{let _0x45e458=Promise['resolve']();_0x2ee7c5['hasComments']&&(_0x45e458=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3002e1})),_0x45e458['then'](()=>{this['addSuggestionData'](_0x2ee7c5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50b3c2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3002e1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50b3c2,'ready'),this['fire']('suggestionLoaded',_0x50b3c2);break;case'ready':this['fire']('suggestionChanged',_0x50b3c2);}return _0x50b3c2['addMarkerName'](_0xc67ad6),_0x50b3c2;}['_refreshSuggestionsChain'](_0x4904a8){const _0x548482=Array['from'](_0x4904a8),_0x5c6b30=_0x548482['filter'](_0x52eb33=>'attribute'==_0x52eb33['type']);this['_refreshAttributeSuggestionsChain'](_0x5c6b30);const _0x23d4f8=_0x548482['filter'](_0xefa6e6=>!_0xefa6e6['isMultiRange']&&'attribute'!=_0xefa6e6['type']),_0x209deb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x428842=>!_0x428842['isMultiRange']&&'attribute'!=_0x428842['type']),_0x5857a0=_0x209deb['filter'](_0x89ac80=>!_0x4904a8['has'](_0x89ac80)),_0x33f06b=new Map(_0x209deb['map'](_0x55b6f1=>[_0x55b6f1,this['_suggestionFactory']['getSuggestionCallback'](_0x55b6f1['type'],_0x55b6f1['subType'],'chain')])),_0x5534d5=new Map(_0x209deb['map'](_0x267004=>[_0x267004,_0x267004['getFirstRange']()])),_0x5d3670=new Set(),_0x39e12c=new Set();for(let _0xc63dde=0x0;_0xc63dde<_0x23d4f8['length'];_0xc63dde++)_0x5b5a90(_0x23d4f8[_0xc63dde],_0x23d4f8,_0xc63dde+0x1);for(let _0x3ca327=0x0;_0x3ca327<_0x23d4f8['length'];_0x3ca327++)_0x5b5a90(_0x23d4f8[_0x3ca327],_0x5857a0,0x0);const _0x5ce4cd=new Set();for(let _0x427eab=0x0;_0x427eab<_0x23d4f8['length'];_0x427eab++){const _0x151980=_0x23d4f8[_0x427eab];!_0x39e12c['has'](_0x151980)&&_0x151980['previous']&&(_0x5ce4cd['add'](_0x151980['previous']),_0x151980['previous']['next']===_0x151980&&(_0x151980['previous']['next']=null),_0x151980['previous']=null),!_0x5d3670['has'](_0x151980)&&_0x151980['next']&&(_0x5ce4cd['add'](_0x151980['next']),_0x151980['next']['previous']===_0x151980&&(_0x151980['next']['previous']=null),_0x151980['next']=null);}function _0x5b5a90(_0x2aebad,_0x30b8c2,_0x45a411){for(let _0x5464cd=_0x45a411;_0x5464cd<_0x30b8c2['length'];_0x5464cd++){const _0x5ac639=_0x26a56f(_0x2aebad,_0x30b8c2[_0x5464cd]);_0x5ac639&&(_0x5ac639[0x0]['next']=_0x5ac639[0x1],_0x5ac639[0x1]['previous']=_0x5ac639[0x0],_0x5d3670['add'](_0x5ac639[0x0]),_0x39e12c['add'](_0x5ac639[0x1]));}}function _0x26a56f(_0x217f72,_0x24d2de){if(_0x217f72['author']['id']!==_0x24d2de['author']['id'])return null;const _0x3501dc=_0x33f06b['get'](_0x217f72)(_0x217f72,_0x24d2de,_0x5534d5['get'](_0x217f72),_0x5534d5['get'](_0x24d2de));if(!_0x3501dc)return null;return _0x33f06b['get'](_0x24d2de)(_0x217f72,_0x24d2de,_0x5534d5['get'](_0x217f72),_0x5534d5['get'](_0x24d2de))?_0x3501dc[0x1]['commentThread']&&_0x3501dc[0x1]['commentThread']['length']?null:_0x3501dc:null;}_0x5ce4cd['size']&&this['_refreshSuggestionsChain'](_0x5ce4cd);}['_refreshAttributeSuggestionsChain'](_0xb917b9){if(0x0==_0xb917b9['length'])return;const _0x4032b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eb2d0=>'attribute'==_0x3eb2d0['type']&&_0x3eb2d0['_isDataLoaded']),_0x2608c5=[],_0x11e453=new Map();for(const _0x1d2d04 of _0x4032b8){const _0x2d87ae=_0x43427f(_0x1d2d04['attributes']);_0x11e453['has'](_0x2d87ae)||(_0x11e453['set'](_0x2d87ae,_0x2608c5['length']),_0x2608c5['push']([]));const _0x46e4bd=_0x11e453['get'](_0x2d87ae);_0x2608c5[_0x46e4bd]['push'](_0x1d2d04);}!(function(){_0x2608c5['sort']((_0x512e0a,_0x5d8ca3)=>{const _0x377c45=_0x512e0a[0x0]['createdAt'],_0xa7ab32=_0x5d8ca3[0x0]['createdAt'];return _0x377c45==_0xa7ab32?_0x512e0a[0x0]['attributes']['groupId']<_0x5d8ca3[0x0]['attributes']['groupId']?-0x1:0x1:_0x377c45<_0xa7ab32?-0x1:0x1;});for(const _0x3bee32 of _0x2608c5)_0x3bee32['sort']((_0x16e054,_0x928b22)=>_0x16e054['id']<_0x928b22['id']?-0x1:0x1);}());for(let _0x376681=0x0;_0x376681<_0x2608c5['length'];_0x376681++){if(0x0==_0x2608c5[_0x376681]['length'])continue;const _0x227507=[];for(let _0x18b8c7=_0x376681+0x1;_0x18b8c7<_0x2608c5['length'];_0x18b8c7++)0x0!=_0x2608c5[_0x18b8c7]['length']&&_0x1eefbe(_0x2608c5[_0x376681],_0x2608c5[_0x18b8c7])&&_0x227507['push'](_0x18b8c7);for(const _0x3935ff of _0x227507)_0x2608c5[_0x376681]=_0x2608c5[_0x376681]['concat'](_0x2608c5[_0x3935ff]),_0x2608c5[_0x3935ff]=[];}for(const _0x447f1a of _0x2608c5)for(let _0x44ba5a=0x0;_0x44ba5a<_0x447f1a['length'];_0x44ba5a++){const _0x5df4a3=_0x447f1a[_0x44ba5a+0x1]||null;_0x447f1a[_0x44ba5a]['next']!==_0x5df4a3&&(_0x447f1a[_0x44ba5a]['next']=_0x5df4a3);}for(const _0xbbdf0f of _0x2608c5)for(let _0x4e60f0=0x0;_0x4e60f0<_0xbbdf0f['length'];_0x4e60f0++){const _0x48bc19=_0xbbdf0f[_0x4e60f0-0x1]||null;_0xbbdf0f[_0x4e60f0]['previous']!==_0x48bc19&&(_0xbbdf0f[_0x4e60f0]['previous']=_0x48bc19);}function _0x1eefbe(_0x53f85d,_0x301db3){if(_0x53f85d[0x0]['attributes']['groupId']!==_0x301db3[0x0]['attributes']['groupId']&&_0x53f85d[0x0]['author']!==_0x301db3[0x0]['author'])return!0x1;if(!function(_0x44b1a9,_0x572ee5){if(!_0x44b1a9['hasComments']&&!_0x572ee5['hasComments'])return!0x0;if(_0x44b1a9['hasComments']&&_0x572ee5['hasComments'])return!0x1;if(_0x44b1a9['hasComments']&&_0x572ee5['createdAt']<_0x44b1a9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x572ee5['hasComments']&&_0x44b1a9['createdAt']<_0x572ee5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x53f85d[0x0],_0x301db3[0x0]))return!0x1;const _0x4e49c8=Vt(_0x53f85d[0x0]['attributes'],'groupId'),_0x2928aa=Vt(_0x301db3[0x0]['attributes'],'groupId');if(!_0x25c893(_0x4e49c8,_0x2928aa))return!0x1;return!!_0x53f85d['every'](_0x395727=>_0x301db3['some'](_0x57a2b4=>_0x395727['getFirstRange']()['isEqual'](_0x57a2b4['getFirstRange']())))&&_0x301db3['every'](_0x27721b=>_0x53f85d['some'](_0x5d3f79=>_0x27721b['getFirstRange']()['isEqual'](_0x5d3f79['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fcadd){const _0x2bfd83=Array['from'](_0x1fcadd),_0x232405=this['getSuggestions']({'skipNotAttached':!0x0}),_0xbd653a=_0x232405['filter'](_0x471500=>!_0x1fcadd['has'](_0x471500)),_0x288e0a=new Map(_0x2bfd83['map'](_0x3bd07b=>[_0x3bd07b,this['_suggestionFactory']['getSuggestionCallback'](_0x3bd07b['type'],_0x3bd07b['subType'],'join')])),_0x526169=new Map(_0x232405['map'](_0x33c866=>[_0x33c866,_0x33c866['getRanges']()]));for(let _0x46d2d5=0x0;_0x46d2d5<_0x2bfd83['length'];_0x46d2d5++){if(_0x239d75(this,_0x2bfd83[_0x46d2d5],_0x2bfd83,_0x46d2d5+0x1))return!0x0;}for(let _0x14d992=0x0;_0x14d992<_0x2bfd83['length'];_0x14d992++){if(_0x239d75(this,_0x2bfd83[_0x14d992],_0xbd653a,0x0))return!0x0;}return!0x1;function _0x239d75(_0x9820bd,_0x194c63,_0x2368dd,_0x2816b5){for(let _0x4b5dad=_0x2816b5;_0x4b5dad<_0x2368dd['length'];_0x4b5dad++){const _0xc198e9=_0x2368dd[_0x4b5dad];if(_0xc198e9['type']!==_0x194c63['type']||_0xc198e9['author']['id']!==_0x194c63['author']['id']||_0xc198e9['subType']!==_0x194c63['subType'])continue;if(!Wt(_0x194c63,_0xc198e9))continue;if('attribute'==_0x194c63['type']&&_0x194c63['data']['oldValue']!=_0xc198e9['data']['oldValue'])continue;if('attribute'==_0x194c63['type']&&_0x9820bd['_isBlockAttribute'](_0x194c63['data']['key']))continue;if('formatBlock'==_0x194c63['type']){const _0xfb74b9=_0x9820bd['editor']['model'],_0x2be562=_0x194c63['getContainedElement']();if(_0x2be562&&(_0xfb74b9['schema']['isObject'](_0x2be562)||_0xfb74b9['schema']['isLimit'](_0x2be562)))continue;}const _0xf95aea=_0x288e0a['get'](_0x194c63),_0x36b5a5=_0x526169['get'](_0x194c63),_0x5a4562=_0x526169['get'](_0xc198e9),_0x5d90d8=_0x194c63['commentThread']&&_0x194c63['commentThread']['length'],_0x51ae24=_0xc198e9['commentThread']&&_0xc198e9['commentThread']['length'];if(!_0x5d90d8&&_0xf95aea(_0x5a4562,_0x36b5a5))return _0x9820bd['_joinSuggestions'](_0xc198e9,_0x194c63),_0x526169['delete'](_0x194c63),!0x0;if(!_0x51ae24&&_0xf95aea(_0x36b5a5,_0x5a4562))return _0x9820bd['_joinSuggestions'](_0x194c63,_0xc198e9),_0x526169['delete'](_0xc198e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1148da,_0x1a45d9){if(_0x1148da['isMultiRange']){for(const _0x5c3b68 of _0x1a45d9['getRanges']())_0x1148da['addRange'](_0x5c3b68);}else{const _0x422fb3=_0x1a45d9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1148da,this['_model']['createRange'](_0x1148da['getFirstRange']()['start'],_0x422fb3));}_0x1a45d9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x136474,_0x38ea1a,_0x105d40){const _0x4b867b=_0x136474['startsWith']('format')||_0x136474['startsWith']('attribute')?'FORMATTING':_0x136474['toUpperCase']();return c(this['editor']['locale'],_0x38ea1a+'_'+_0x4b867b+'_SUGGESTION_ANNOUNCEMENT',_0x105d40);}['_initAriaMarkerChangeAnnouncements'](){const _0xd42a70=this['editor'];if(!_0xd42a70['ui'])return;const {ariaLiveAnnouncer:_0x316680}=_0xd42a70['ui'];_0x4d10c8(this['_model'],({left:_0x5ca1a8,entered:_0x428b2d})=>{for(const _0x58fb2f of _0x5ca1a8){const {group:_0x14f998,type:_0x609a87}=this['_splitMarkerName'](_0x58fb2f['name']);if('suggestion'===_0x14f998){_0x316680['announce'](this['_getMarkerAnnouncementText'](_0x609a87,'LEAVE'));break;}}for(const _0x51ef37 of _0x428b2d){const {group:_0x45013e,type:_0x215edf}=this['_splitMarkerName'](_0x51ef37['name']);if('suggestion'===_0x45013e){_0x316680['announce'](this['_getMarkerAnnouncementText'](_0x215edf,'ENTER',_0x555a8d(_0x33e0bf)));break;}}});}['_processAttributeChanges'](_0x505685){if(this['_recordAttributeSuggestions'])return!0x1;const _0x289e92=this['editor'],_0x3a8e9a=_0x289e92['model']['document']['differ']['getChanges']();if(0x0==_0x3a8e9a['length'])return!0x1;const _0x216f3b=[],_0x2e70ac=_0x3a8e9a['filter'](_0x911f70=>'attribute'==_0x911f70['type']),_0x10d7df=_0x3a8e9a['filter'](_0x4d9fb0=>'insert'==_0x4d9fb0['type']&&'$text'!=_0x4d9fb0['name']),_0x2f7301=_0x3a8e9a['filter'](_0x5c98b5=>'remove'==_0x5c98b5['type']&&'$text'!=_0x5c98b5['name']);for(const _0x1066c3 of _0x2e70ac)_0x216f3b['push']({'key':_0x1066c3['attributeKey'],'newValue':_0x1066c3['attributeNewValue'],'oldValue':_0x1066c3['attributeOldValue'],'range':Ht(_0x1066c3['range'],_0x289e92['model'])});for(const _0x720c9f of _0x10d7df){const _0x1013ab=_0x2f7301['find'](_0x188e74=>_0x188e74['position']['isEqual'](_0x720c9f['position']));_0x1013ab&&_0x216f3b['push']({'key':u,'newValue':_0x720c9f['name'],'oldValue':_0x1013ab['name'],'range':_0x289e92['model']['createRangeOn'](_0x720c9f['position']['nodeAfter'])});}return 0x0!=_0x216f3b['length']&&this['_reduceExistingSuggestions'](_0x505685,_0x216f3b);}['_processAttributeSuggestions'](_0x31df56){let _0xa91d05=!0x1;const _0x2611b7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10ae99=>_0x10ae99['data']['newRange']&&_0x10ae99['name']['startsWith']('suggestion:attribute:'));for(const _0x2100b8 of _0x2611b7){const {subType:_0x4cb79e,id:_0x37bc96}=this['_splitMarkerName'](_0x2100b8['name']),_0x19d2a6=_0x4cb79e['split']('|')[0x0];for(const _0x1d9c8a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d9c8a['id']!=_0x37bc96&&'attribute'==_0x1d9c8a['type']&&_0x1d9c8a['data']&&_0x1d9c8a['data']['key']==_0x19d2a6&&_0x1d9c8a['getFirstRange']()['isIntersecting'](_0x2100b8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d9c8a,_0x2100b8['data']['newRange'],_0x31df56),_0xa91d05=!0x0);}return _0xa91d05;}['_recordAttributeChanges'](_0x2070cb){this['_recordAttributeSuggestions']=!0x0,_0x2070cb();}['_isRegisteredAttribute'](_0x54d715){const _0x2b5935=this['_isBlockAttribute'](_0x54d715),_0x1f7806=this['_inlineAttributeKeys']['has'](_0x54d715);return _0x2b5935||_0x1f7806;}['_reduceExistingSuggestions'](_0x4952e2,_0x3868ff){if(0x0==_0x3868ff['length'])return!0x1;let _0x352efa=!0x1;for(const _0x4d335c of _0x3868ff){const _0x2b1339=this['_findSuggestions'](_0x4d335c['range'],'attribute')['filter'](_0xbb0b27=>!_0xbb0b27['meta']['isNextTo'])['map'](_0x902425=>_0x902425['suggestion']),_0x18ff60=_0x43427f({'newValue':_0x4d335c['newValue']});_0x2b1339['filter'](_0x5add5a=>{const [_0x15ce47,_0x562bb1]=_0x5add5a['subType']['split']('|');return _0x15ce47==_0x4d335c['key']&&_0x562bb1!=_0x18ff60;})['forEach'](_0xa6bc72=>{this['_reduceSuggestionAttributeRange'](_0xa6bc72,_0x4d335c['range'],_0x4952e2),_0x352efa=!0x0;});}return _0x352efa;}['_reduceSuggestionAttributeRange'](_0x2e1c3f,_0xcb5b59,_0x5aef97){const _0xdb361c=_0x2e1c3f['getFirstRange']()['getDifference'](_0xcb5b59);0x0!==_0xdb361c['length']?0x1!==_0xdb361c['length']?this['_breakSuggestionMarker'](_0x2e1c3f,_0xcb5b59['start'],_0xcb5b59['end']):this['_setSuggestionRange'](_0x2e1c3f,_0xdb361c[0x0]):_0x5aef97['removeMarker'](_0x2e1c3f['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x255dca){this['_editor']=_0x255dca,this['_model']=_0x255dca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2fa681,_0x59e223,_0x30cccc,_0x1c3074,_0x2ed792,_0x70bff9){return new o(this['_model'],{'type':_0x2fa681,'subType':_0x59e223,'id':_0x30cccc,'author':_0x1c3074,'creator':_0x1c3074,'attributes':_0x2ed792,'onAttributesChange':_0x70bff9,'onAccept':(..._0x5ba426)=>this['getSuggestionCallback'](_0x2fa681,_0x59e223,'accept')(..._0x5ba426),'onDiscard':(..._0x831f56)=>this['getSuggestionCallback'](_0x2fa681,_0x59e223,'discard')(..._0x831f56)});}['registerCustomCallback'](_0x369fb1,_0x106154,_0x92e299,_0x45dafb){const _0x4d2aa3=_0x369fb1+':'+_0x106154+':'+_0x92e299;this['_customCallbacks']['set'](_0x4d2aa3,_0x45dafb);}['getSuggestionCallback'](_0xe46a90,_0x4cb596,_0x4d6032){const _0x11aba5=_0xe46a90+':'+_0x4cb596+':'+_0x4d6032;return this['_customCallbacks']['get'](_0x11aba5)||this['_defaultCallbacks']['get'](_0xe46a90+':'+_0x4d6032);}['_registerDefaultCallbacks'](){const _0xfb8d03=()=>!0x1,_0x2cc021=_0x29e830=>{_0x29e830['sort']((_0x5287bb,_0x4df5d4)=>_0x5287bb['start']['isBefore'](_0x4df5d4['start'])?0x1:-0x1),this['_model']['change'](_0x3b111f=>{for(const _0x170a94 of _0x29e830){let _0x426540;_0x426540=_0x170a94['end']['isAtEnd']&&_0x170a94['end']['parent']==_0x170a94['start']['nodeAfter']?_0x3b111f['createSelection'](_0x170a94['start']['nodeAfter'],'on'):_0x3b111f['createSelection'](_0x170a94),this['_model']['deleteContent'](_0x426540,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf8eebb=(_0x2083c2,_0x4b85b5)=>{_0x4b85b5&&this['_model']['change'](_0x5ea2c4=>{const {commandName:_0x376312,commandParams:_0xbaaa11=[]}=_0x4b85b5,_0x21f835=_0x2083c2['map'](_0x18a105=>(Gt(_0x18a105)&&(_0x18a105=this['_model']['createRange'](_0x18a105['end'])),_0x18a105))['filter'](_0x19e88e=>'$graveyard'!==_0x19e88e['root']['rootName']);if(_0x21f835['length']<0x1)return;const _0x28ea9b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x163b25=>_0x26d742['fromRange'](_0x163b25));_0x5ea2c4['setSelection'](_0x21f835);for(const _0x4dd868 of this['_editor']['commands']['commands']())_0x4dd868['refresh']();_0xbaaa11['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x376312,..._0xbaaa11);const _0x3cb7b1=_0x28ea9b['filter'](_0x300b8a=>'$graveyard'!=_0x300b8a['root']['rootName']);_0x3cb7b1['length']>0x0&&_0x5ea2c4['setSelection'](_0x3cb7b1);for(const _0x48c0ef of _0x28ea9b)_0x48c0ef['detach']();});},_0x438eb4=(_0x3f6d03,_0x161a03)=>0x1==_0x3f6d03['length']&&0x1==_0x161a03['length']&&_0x3f6d03[0x0]['end']['isEqual'](_0x161a03[0x0]['start']),_0x46a7b3=(_0x3fae2e,_0x41921e,_0x352ae0,_0x318f1e)=>zt(_0x3fae2e,_0x41921e,_0x352ae0,_0x318f1e)?[_0x3fae2e,_0x41921e]:zt(_0x41921e,_0x3fae2e,_0x318f1e,_0x352ae0)?[_0x41921e,_0x3fae2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xfb8d03),this['_defaultCallbacks']['set']('insertion:discard',_0x2cc021),this['_defaultCallbacks']['set']('insertion:join',_0x438eb4),this['_defaultCallbacks']['set']('insertion:chain',_0x46a7b3),this['_defaultCallbacks']['set']('deletion:accept',_0x2cc021),this['_defaultCallbacks']['set']('deletion:discard',_0xfb8d03),this['_defaultCallbacks']['set']('deletion:join',_0x438eb4),this['_defaultCallbacks']['set']('deletion:chain',_0x46a7b3),this['_defaultCallbacks']['set']('formatInline:accept',_0xf8eebb),this['_defaultCallbacks']['set']('formatInline:discard',_0xfb8d03),this['_defaultCallbacks']['set']('formatInline:join',_0x438eb4),this['_defaultCallbacks']['set']('formatInline:chain',_0xfb8d03),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf8eebb),this['_defaultCallbacks']['set']('formatBlock:discard',_0xfb8d03),this['_defaultCallbacks']['set']('formatBlock:join',_0x438eb4),this['_defaultCallbacks']['set']('formatBlock:chain',_0xfb8d03),this['_defaultCallbacks']['set']('attribute:accept',_0xfb8d03),this['_defaultCallbacks']['set']('attribute:discard',(_0x340c99,_0x135b63)=>{if(!_0x135b63)return;const _0x1bce45=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3d44eb=>{if(_0x135b63['key']==u)for(const _0xe46387 of _0x340c99){const _0xc2474f=_0xe46387['start']['nodeAfter'],_0x96090f=_0x135b63['oldValue'];_0x3d44eb['rename'](_0xc2474f,_0x96090f);}else{if(_0x1bce45['_isBlockAttribute'](_0x135b63['key'])){for(const _0x4ba4ab of _0x340c99)void 0x0!==_0x135b63['oldValue']?_0x3d44eb['setAttribute'](_0x135b63['key'],_0x135b63['oldValue'],_0x4ba4ab['start']['nodeAfter']):_0x3d44eb['removeAttribute'](_0x135b63['key'],_0x4ba4ab['start']['nodeAfter']);}else{for(const _0x7065e4 of _0x340c99)_0x135b63['oldValue']?_0x3d44eb['setAttribute'](_0x135b63['key'],_0x135b63['oldValue'],_0x7065e4):_0x3d44eb['removeAttribute'](_0x135b63['key'],_0x7065e4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x438eb4);}}function Pt(_0x3dcc55,_0xa0ad21,_0x356617){for(const _0x5c6aa2 of _0xa0ad21['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c6aa2['root']==_0x5c6aa2)return!0x1;if(!_0x356617['containsItem'](_0x5c6aa2))return!0x1;if(_0x3dcc55['isObject'](_0x5c6aa2)||_0x3dcc55['isLimit'](_0x5c6aa2))return!0x0;}return!0x1;}function Gt(_0x4c14ce){return _0x4c14ce['end']['parent']==_0x4c14ce['start']['nodeAfter']&&_0x4c14ce['end']['isAtStart'];}function Lt(_0x1c989d,_0x3f13bd,_0x42d31f,_0x18eaac){const _0x27ca66=_0x57ede1=>!_0x57ede1['item']['is']('$textProxy')&&!_0x18eaac['isObject'](_0x57ede1['item']),_0x827f52=_0x1c989d['start']['getLastMatchingPosition'](_0x27ca66),_0x4bceba=_0x1c989d['end']['getLastMatchingPosition'](_0x27ca66,{'direction':'backward'});return(!_0x1c989d['start']['isEqual'](_0x827f52)||!_0x1c989d['end']['isEqual'](_0x4bceba))&&(_0x827f52['isBefore'](_0x4bceba)?_0x42d31f['updateMarker'](_0x3f13bd,{'range':_0x42d31f['createRange'](_0x827f52,_0x4bceba)}):_0x42d31f['removeMarker'](_0x3f13bd),!0x0);}function Jt(_0x529728){return _0x43427f(_0x529728);}function Kt(_0x158158){const _0x1a46b9=_0x158158['start']['nodeAfter'];return _0x1a46b9&&_0x1a46b9['is']('element');}function Ht(_0x482554,_0xea0ada){return null==_0x482554['end']['nodeBefore']&&_0x482554['end']['parent']==_0x482554['start']['nodeAfter']?qt(_0x482554['start']['nodeAfter'],_0xea0ada):_0x482554;}function qt(_0x6feda6,_0x487fb8){const _0x4ad09e=_0x487fb8['schema']['isObject'](_0x6feda6)||_0x487fb8['schema']['isSelectable'](_0x6feda6);return _0x487fb8['createRange'](_0x487fb8['createPositionAt'](_0x6feda6,'before'),_0x4ad09e?_0x487fb8['createPositionAfter'](_0x6feda6):_0x487fb8['createPositionAt'](_0x6feda6,'end'));}function zt(_0xc6d331,_0x3c5efc,_0xa0bbe6,_0x152487){return!!Wt(_0xc6d331,_0x3c5efc)&&_0xa0bbe6['end']['isEqual'](_0x152487['start']);}function Wt(_0x48ba54,_0x566789){if(!_0x48ba54['_isDataLoaded']||!_0x566789['_isDataLoaded'])return!0x1;const _0x50177c=new Set(Object['keys'](_0x48ba54['attributes'])),_0x469cb9=new Set(Object['keys'](_0x566789['attributes']));if(_0x50177c['delete']('groupId'),_0x469cb9['delete']('groupId'),0x0==_0x50177c['size']&&0x0==_0x469cb9['size'])return!0x0;if(_0x50177c['size']!=_0x469cb9['size'])return!0x1;const _0x22577b={..._0x48ba54['attributes']},_0x5eee4b={..._0x566789['attributes']};return delete _0x22577b['groupId'],delete _0x5eee4b['groupId'],JSON['stringify'](_0x22577b)==JSON['stringify'](_0x5eee4b);}function Qt(_0x5edd36,_0x2043db){const _0x4a3f36=Xt(_0x5edd36['attributes']),_0x2d6586=Xt(_0x2043db);if(!_0x5edd36['_isDataLoaded'])return!0x1;for(const _0x3f7eb6 of Object['keys'](_0x2d6586))if(!_0x25c893(_0x4a3f36[_0x3f7eb6],_0x2d6586[_0x3f7eb6]))return!0x1;return!0x0;}function Xt(_0x5898e5){const _0x2ea4c8=Object['assign']({},_0x5898e5);return delete _0x2ea4c8['skipNestingCheck'],delete _0x2ea4c8['tablePasteChainId'],_0x2ea4c8;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x14d963(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x58e1c4,_0x51b146,_0x2f3bbc,_0x2681ca){super(),this['model']=_0x51b146,this['view']=_0x2f3bbc,this['commentThreadController']=_0x2681ca,this['_editor']=_0x58e1c4,this['_acceptCommand']=_0x58e1c4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x58e1c4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f6d55,_0xc91d91)=>_0x1f6d55||_0xc91d91),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x20bab7=>_0x20bab7&&this['_editor']['model']['canEditAt'](_0x51b146['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56d3fa=>_0x56d3fa&&this['_editor']['model']['canEditAt'](_0x51b146['getRanges']())),this['_pendingAction']=null,_0x2f3bbc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2f3bbc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2f3bbc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2f3bbc,'change:isDirty',()=>{_0x2f3bbc['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 _0x50a558=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x50a558);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3ded66{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x34f2e3,_0x59803f,_0x12456d,_0x3271c3){super(_0x34f2e3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x213327(_0x34f2e3,c(_0x34f2e3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x59803f['authoredAt']),this['bind']('authoredAt')['to'](_0x59803f),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',_0x59803f,'authoredAt',this,'descriptionParts',(_0x4af8b9,_0x5ae2ec,_0x589f7a)=>{const _0x10e359=_0x589f7a['map'](_0x4a3b68=>ls(_0x4a3b68['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4af8b9-0x1,_0x59803f['author']['name'],_0x5ae2ec?_0x3271c3['formatDateTime'](_0x5ae2ec):'',new DOMParser()['parseFromString'](_0x10e359,'text/html')['body']['textContent']]);}),this['focusables']=new _0x18791b(),this['focusTracker']=new _0x59ff65(),this['keystrokes']=new _0x533439(),this['focusCycler']=new _0x2a6fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5d4cb6=>_0x5d4cb6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x59803f,this['_localUser']=_0x12456d,this['_config']=_0x3271c3,_0x3271c3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4e2a6f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4c9a56}=this['_config'];this['commentsListView']=new _0x4c9a56(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',_0x247e52=>_0x247e52+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1b92ca,_0x5909b5)=>_0x1b92ca||!!_0x5909b5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55826d}=this['_config'],_0x32855b=new _0x55826d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x504e2b=_0x32855b['commentInputView'];return _0x32855b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x504e2b,'value',(_0xca3342,_0x51b9c6,_0x1399e1)=>!!_0x1399e1||_0xca3342&&!_0x51b9c6),_0x504e2b['on']('submit',(_0x37e4e2,_0x3f0a39)=>{this['fire']('addComment',_0x3f0a39),_0x504e2b['editor']['setData']('');}),_0x504e2b['on']('cancel',()=>this['focus']()),_0x504e2b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32855b;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x449e87,_0xe1e08d,_0x26b925,_0x46b81a){super(_0x449e87,_0xe1e08d,_0x26b925,_0x46b81a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xe49269=>_0xe49269&&_0xe49269[0x0]?_0xe49269[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b6192,_0xb068f)=>{let _0xca86f4='';for(const _0x4eb9d9 of _0x4b6192)_0xca86f4+='<p>'+ls(_0x4eb9d9['content'],_0x4eb9d9['color'])+'</p>';return _0xb068f?_0xca86f4:ti(_0xca86f4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46b81a['SuggestionView'](_0x449e87,_0xe1e08d,{'formatDateTime':_0x46b81a['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 _0x2e1239=this['bindTemplate'],_0x32b715=[this['suggestionView']];return this['commentsListView']&&_0x32b715['push'](this['commentsListView']),this['commentThreadInputView']&&_0x32b715['push'](this['commentThreadInputView']),_0x32b715['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e1239['if']('isActive','ck-suggestion-wrapper--active'),_0x2e1239['to']('type',_0x592ccb=>'ck-suggestion-'+_0x592ccb),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':_0x2e1239['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x32b715};}['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 _0x3ded66{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x264d90,_0x1b6ec9,_0x1c05fc){super(_0x264d90),this['_model']=_0x1b6ec9,this['_config']=_0x1c05fc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1b6ec9),this['acceptButton']=this['_createButton'](c(_0x264d90,'Accept\x20suggestion'),_0x4f23dc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x264d90,'Discard\x20suggestion'),_0x2134e4,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x45f651(_0x264d90,_0x1b6ec9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18791b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x59ff65(),this['keystrokes']=new _0x533439(),this['focusCycler']=new _0x2a6fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1d2cc1=>_0x1d2cc1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12777f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12777f['innerHTML']=this['description'],this['on']('change:description',(_0x367331,_0x433f7b,_0x7cd24d)=>{_0x12777f['innerHTML']=_0x7cd24d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e4afb=this['bindTemplate'],_0x28f790=[{'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':_0x5e4afb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e4afb['to']('authoredAt',_0x498abe=>this['_config']['formatDateTime'](_0x498abe))}]}]},{'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']&&_0x28f790['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':_0x28f790}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x42923b,_0x41ee13,_0x4463c7,_0x1c41bf,_0x4dc3d3){const _0x5907df=new _0x5288cc(this['locale']);return _0x5907df['set']({'label':_0x42923b,'icon':_0x41ee13,'tooltip':!0x0,'tooltipPosition':_0x4dc3d3}),_0x5907df['extendTemplate']({'attributes':{'class':_0x4463c7}}),_0x5907df['on']('execute',()=>{this['fire'](_0x1c41bf,this['_model']['id']);}),_0x5907df;}['_setupKeyboardNavigation'](){const _0x2adc45=this['element'];this['keystrokes']['listenTo'](_0x2adc45);for(const _0x198385 of this['focusables'])this['focusTracker']['add'](_0x198385['element']),this['keystrokes']['listenTo'](_0x198385['element']);this['keystrokes']['set']('enter',(_0x38b7de,_0xdbd181)=>{_0x2adc45===_0x38b7de['target']&&(this['focusCycler']['focusFirst'](),_0xdbd181());}),this['keystrokes']['set']('esc',(_0x1ae759,_0x5cd512)=>{_0x2adc45!==_0x1ae759['target']&&(this['focus'](),_0x5cd512());});}}class d extends _0x6c1265{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x229cdc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x826a30){super(_0x826a30),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c4e07=this['editor']['config'];_0x3c4e07['define']('trackChanges.SuggestionThreadView',fe),_0x3c4e07['define']('trackChanges.SuggestionView',we),_0x3c4e07['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c4e07['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x37b5aa,_0x3edf76){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3134a6,_0x1ea4ca]of this['_handleControllerBuffer']){const _0x5c70fc=this['_suggestionToController']['has'](_0x3134a6);_0x5c70fc||_0x1ea4ca?_0x5c70fc&&_0x1ea4ca&&this['_destroyController'](_0x3134a6):this['_initializeController'](_0x3134a6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x37b5aa,_0x3edf76);}['init'](){const _0x4e276b=this['editor'],_0x27b67b=_0x4e276b['plugins']['get']('TrackChangesEditing'),_0xfaab92=_0x4e276b['plugins']['get']('Annotations'),_0x32dcd7=_0x4e276b['plugins']['get']('EditorAnnotations'),_0x3847a6=_0x4e276b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32dcd7['addSourceCollector'](()=>{const _0x1a84d5=[];for(const [_0x25b1b4,_0xff4a16]of Array['from'](this['_suggestionToController'])){const _0x2ee176=_0x25b1b4['getAllAdjacentSuggestions'](),_0x187270=[];for(const _0x208b41 of _0x2ee176){if(!_0x208b41['isInContent'])continue;if(_0x208b41['isMultiRange']){_0x187270['push'](..._0x208b41['getRanges']());continue;}const _0x33e2f3=_0x208b41['getFirstRange']();if(_0x187270['length']>0x0){const _0xb122f7=_0x187270[0x0]['getJoined'](_0x33e2f3);if(_0xb122f7){_0x187270[0x0]=_0xb122f7;continue;}}_0x187270['push'](_0x33e2f3);}_0x1a84d5['push']([_0xff4a16['view'],_0x187270]);}return _0x1a84d5;}),this['listenTo'](_0x27b67b,'suggestionLoaded',(_0x58f77e,_0x1971af)=>{this['listenTo'](_0x1971af,'change:previous',(_0x52efcd,_0x23f217,_0x21c779,_0x1c4232)=>{_0x1971af['isInContent']&&(null==_0x21c779?(this['_updateController'](_0x1c4232['head']),this['_handleSuggestionControllerDelayed'](_0x1971af,!0x1)):(this['_updateController'](_0x21c779['head']),null==_0x1c4232&&this['_handleSuggestionControllerDelayed'](_0x1971af,!0x0)));}),null!==_0x1971af['previous']?this['_updateController'](_0x1971af['head']):this['_handleSuggestionControllerDelayed'](_0x1971af,!0x1);}),this['listenTo'](_0x27b67b,'suggestionUnloaded',(_0x4c5abb,_0x4491ed,_0x245105)=>{this['stopListening'](_0x4491ed,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4491ed),this['_suggestionToController']['has'](_0x4491ed)&&this['_destroyController'](_0x4491ed),_0x245105&&this['_updateController'](_0x245105['head']);}),this['listenTo'](_0x27b67b,'suggestionChanged',(_0x23d856,_0x38f78d)=>{this['_updateController'](_0x38f78d);}),this['listenTo'](_0xfaab92,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3847a6,'addComment',(_0x1298c8,{threadId:_0x1d3fdc,isFromAdapter:_0x3f1404})=>{if(_0x3f1404||!_0x27b67b['hasSuggestion'](_0x1d3fdc))return;const _0x57e83e=_0x27b67b['getSuggestion'](_0x1d3fdc);this['_suggestionToController']['get'](_0x57e83e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e5d82=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x467d13;for(const _0x3641a0 in _0x5e5d82){const _0x57a6ce=_0x3641a0,_0x26b29a=_0x5e5d82[_0x57a6ce];if('trackChangesLicenseKeyValid'==_0x26b29a||'trackChangesLicenseKeyInvalid'==_0x26b29a||'trackChangesLicenseKeyExpired'==_0x26b29a||'trackChangesLicenseKeyDomainLimit'==_0x26b29a||'trackChangesLicenseKeyNotAllowed'==_0x26b29a||'trackChangesLicenseKeyEvaluationLimit'==_0x26b29a||'trackChangesLicenseKeyTrialLimit'==_0x26b29a||'trackChangesLicenseKeyUsageLimit'==_0x26b29a){delete _0x5e5d82[_0x57a6ce],_0x467d13=_0x26b29a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x467d13&&_0x5e5d82['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x467d13&&_0x5e5d82['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x467d13&&_0x5e5d82['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x467d13&&_0x5e5d82['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x574f01=this['editor']['plugins']['get']('Annotations'),_0x4beab5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22f96f=Array['from'](_0x574f01['activeAnnotations'],_0x4eb383=>_0x4eb383['innerView'])['filter'](_0x1c684f=>this['_viewToController']['has'](_0x1c684f)),_0x554ef8=[];for(const _0x125147 of _0x22f96f){const _0x39a035=this['_viewToController']['get'](_0x125147)['model']['getAllAdjacentSuggestions']();_0x554ef8['push'](..._0x39a035['reduce']((_0x3aa20f,_0x2f8fca)=>[..._0x3aa20f,..._0x2f8fca['getMarkerNames']()],[]));}_0x4beab5['activeMarkers']=_0x554ef8;}['_addUIComponentsToFactory'](){const _0x5e1adb=this['editor'],_0x54827e=_0x5e1adb['locale'],_0x795784=c(_0x54827e,'Track\x20changes'),_0x2317ee=new _0x32b111([{'type':'switchbutton','model':new _0x151401({'withText':!0x0,'isToggleable':!0x0,'label':_0x795784,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5e1adb['plugins']['has']('TrackChangesPreview')&&_0x2317ee['addMany']([{'type':'separator'},{'type':'button','model':new _0x151401({'withText':!0x0,'label':c(_0x54827e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x53e550 of _0x2317ee)if(ke(_0x53e550)){const _0xa9f533=_0x5e1adb['commands']['get'](_0x53e550['model']['commandName']);_0x53e550['model']['bind']('isOn','isEnabled')['to'](_0xa9f533,'value','isEnabled');}_0x5e1adb['ui']['componentFactory']['add']('trackChanges',_0x1e1c95=>this['_createToolbarButton'](_0x1e1c95,_0x2317ee,_0x795784)),_0x5e1adb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b1e9f=>this['_createMenuBarMenu'](_0x5b1e9f,_0x2317ee,_0x795784));}['_createToolbarButton'](_0x18bd0f,_0xd8c0af,_0x72c58f){const _0x5c32d3=_0x16e7d6(_0x18bd0f,_0x4f2c47),_0x455e9e=this['editor']['commands']['get']('trackChanges');_0x5c32d3['buttonView']['set']({'tooltip':_0x72c58f,'label':_0x72c58f,'icon':_0x416010}),_0x5c32d3['buttonView']['bind']('isOn')['to'](_0x455e9e,'value'),_0x5c32d3['buttonView']['on']('execute',()=>{_0x455e9e['execute'](),this['editor']['editing']['view']['focus']();}),_0xe86ee5(_0x5c32d3,_0xd8c0af,{'role':'menu'});const _0x397c5d=[];for(const _0x162069 of _0xd8c0af)ke(_0x162069)&&_0x397c5d['push'](this['editor']['commands']['get'](_0x162069['model']['commandName']));const _0x2d8573=_0x5c32d3['buttonView'];return _0x2d8573['actionView']['unbind']('isEnabled'),_0x2d8573['arrowView']['unbind']('isEnabled'),_0x2d8573['actionView']['bind']('isEnabled')['to'](_0x455e9e,'isEnabled'),_0x2d8573['arrowView']['bind']('isEnabled')['toMany'](_0x397c5d,'isEnabled',(..._0x1ab353)=>_0x1ab353['some'](_0x46d75a=>_0x46d75a)),_0x5c32d3['on']('execute',_0x425ba5=>{this['editor']['execute'](_0x425ba5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c32d3;}['_createMenuBarMenu'](_0x3c8073,_0x192367,_0x5636f7){const _0xc1658f=new _0x13656b(_0x3c8073),_0x5d164f=this['editor']['commands']['get']('trackChanges');_0xc1658f['buttonView']['set']({'label':_0x5636f7,'icon':_0x416010});const _0x3f99c1=new _0x10270c(_0x3c8073);for(const _0x41ba2e of _0x192367){if('separator'==_0x41ba2e['type']){_0x3f99c1['items']['add'](new _0x58c26c(_0x3c8073));continue;}const _0x950ea0=new _0x48bdf3(_0x3c8073,_0xc1658f),_0x543afb=new _0x2b5be6(_0x3c8073),_0x49af92=_0x41ba2e['model'];_0x543afb['bind'](...Object['keys'](_0x49af92))['to'](_0x49af92),_0x543afb['delegate']('execute')['to'](_0xc1658f),_0x543afb['on']('execute',()=>{this['editor']['execute'](_0x49af92['commandName']),this['editor']['editing']['view']['focus']();}),_0x950ea0['children']['add'](_0x543afb),_0x3f99c1['items']['add'](_0x950ea0);}return _0xc1658f['bind']('isEnabled')['to'](_0x5d164f,'isEnabled'),_0xc1658f['panelView']['children']['add'](_0x3f99c1),_0xc1658f;}['_initializeController'](_0x179d1a){const _0x12fcc4=this['editor'],_0x3edf1d=_0x12fcc4['config'],_0xfbd2aa=_0x12fcc4['plugins']['get']('Annotations'),_0x44c0fe=_0x12fcc4['plugins']['get']('CommentsRepository'),_0x54f0df=_0x12fcc4['plugins']['get']('EditorAnnotations'),_0x276dad=_0x12fcc4['plugins']['get'](_0x229cdc)['me'],_0x1aaff5=_0x3edf1d['get']('trackChanges')['SuggestionThreadView'],_0x1bffdf=_0x3edf1d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x22948d,CommentThreadInputView:_0x5affbf}=_0x12fcc4['plugins']['get']('CommentsUI');let _0x144b60,_0x5863df,_0x3307fc;this['_annotationViews']['has'](_0x179d1a['id'])?(_0x5863df=this['_annotationViews']['get'](_0x179d1a['id']),_0x144b60=_0x5863df['mainView']):(_0x144b60=new _0x1aaff5(_0x12fcc4['locale'],_0x179d1a,_0x276dad,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3edf1d['get']('comments.editorConfig'),'licenseKey':_0x3edf1d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3edf1d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3edf1d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3edf1d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12e153(_0x3edf1d['get']('locale')),'CommentView':_0x3edf1d['get']('comments')['CommentView'],'CommentsListView':_0x22948d,'CommentThreadInputView':_0x5affbf,'SuggestionView':_0x1bffdf}),_0x144b60['suggestionView']['acceptButton']['on']('execute',()=>{_0x12fcc4['editing']['view']['focus']();}),_0x144b60['suggestionView']['discardButton']['on']('execute',()=>{_0x12fcc4['editing']['view']['focus']();}),_0x5863df=_0xfbd2aa['createAnnotationView'](this['editor']['locale'],_0x144b60),_0x5863df['bind']('isDirty')['to'](_0x144b60,'isDirty'),_0x5863df['bind']('length')['to'](_0x144b60),_0x5863df['bind']('type')['to'](_0x144b60,'type',_0xfa14e5=>'suggestion-'+_0xfa14e5),_0x144b60['on']('escape',()=>{_0x3307fc['fire']('escape');}),this['_annotationViews']['set'](_0x179d1a['id'],_0x5863df));const _0x310852=_0x44c0fe['createCommentThreadController'](_0x179d1a['commentThread'],_0x144b60),_0x5f47cc=new pe(_0x12fcc4,_0x179d1a,_0x144b60,_0x310852),_0x145def=_0x179d1a['getAllAdjacentSuggestions']()['filter'](_0x53d87f=>_0x53d87f['isInContent']);_0x144b60['descriptionParts']=_0x12fcc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x145def),this['_suggestionToController']['set'](_0x179d1a,_0x5f47cc),this['_viewToController']['set'](_0x144b60,_0x5f47cc),_0x3307fc=_0xfbd2aa['createAnnotation']({'view':_0x5863df,'target':()=>{const _0x305956=[],_0x11a0f0=_0x179d1a['getAllAdjacentSuggestions']()['filter'](_0xa961b2=>_0xa961b2['isInContent']);for(const _0xd87005 of _0x11a0f0)_0x305956['push'](..._0xd87005['getMarkers']());return _0x23738e(_0x12fcc4['editing'],_0x305956);},'type':()=>'suggestion-'+_0x5f47cc['view']['type']}),_0x44c0fe['_bindAnnotationToEditors'](_0x144b60,_0x3307fc),_0xfbd2aa['add'](_0x3307fc),_0x54f0df['registerAnnotation'](_0x3307fc);}['_destroyController'](_0x2d27d4){const _0x583e82=this['editor']['plugins']['get']('CommentsRepository'),_0x442bc7=this['editor']['plugins']['get']('Annotations'),_0x175111=this['_suggestionToController']['get'](_0x2d27d4),_0x598964=_0x175111['view'],_0x818a1e=_0x442bc7['getByInnerView'](_0x598964);_0x583e82['_unbindEditors'](_0x598964),_0x818a1e&&_0x442bc7['remove'](_0x818a1e),this['_suggestionToController']['delete'](_0x2d27d4),this['_viewToController']['delete'](_0x598964),_0x175111['destroy']();}['_updateController'](_0x3366c7){if(!_0x3366c7['isInContent']||!this['_suggestionToController']['has'](_0x3366c7))return;const _0x46642a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x203274=this['_suggestionToController']['get'](_0x3366c7),_0x1e53e1=_0x3366c7['getAllAdjacentSuggestions']();_0x203274['view']['descriptionParts']=_0x46642a['descriptionFactory']['getDescriptions'](_0x1e53e1);}['destroy'](){for(const _0x4e2901 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4e2901);for(const _0x979005 of this['_annotationViews']['values']())_0x979005['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xa93134){return'model'in _0xa93134;}class k extends _0x6c1265{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2dbc3b){this['editor']['plugins']['get'](p)['adapter']=_0x2dbc3b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x31d092){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x31d092);}['getSuggestions']({skipNotAttached:_0xf9b23=!0x1,toJSON:_0x413e7e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xf9b23,'toJSON':_0x413e7e});}['getSuggestion'](_0x404581){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x404581);}}const w=['Pagination'];class T extends _0x6c1265{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4c5534=this['editor'];if(_0x4c5534['config']['define']('trackChangesData.editorCreator',_0x2cc40b=>{const _0x28928e=_0x4c5534['model']['document']['getRootNames']()['reduce']((_0x5809b2,_0x4580c2)=>(_0x5809b2[_0x4580c2]='',_0x5809b2),{});return _0x4c5534['constructor']['create'](_0x28928e,_0x2cc40b);}),'function'!=typeof _0x4c5534['config']['get']('trackChangesData')['editorCreator'])throw new _0x23f583('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44acee){return N(this['editor'],!0x0,_0x44acee);}['getDataWithDiscardedSuggestions'](_0x294e8d){return N(this['editor'],!0x1,_0x294e8d);}}class D extends _0x6c1265{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bce28){function _0x2825b5(_0x516b40){return _0x516b40['map'](_0x21159f=>String['fromCharCode'](_0x21159f))['join']('');}super(_0x5bce28),this['result']='end',_0x5bce28[_0x2825b5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2825b5([0x76,0x69,0x65,0x77])][_0x2825b5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2825b5([0x61,0x75,0x74,0x6f]),_0x5bce28[_0x2825b5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2825b5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2825b5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2825b5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2825b5([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x5ac479){return void 0x0!==_0x5ac479['getRootsAttributes'];}async function N(_0x22852f,_0x8126d,_0x3f2542){const _0x17dc18=_0x16010f(_0x22852f,w);_0x17dc18['plugins']['push'](p,D),_0x17dc18['rootsAttributes']=Fe(_0x22852f)?_0x22852f['getRootsAttributes']():void 0x0;const _0x59bf36=document['createDocumentFragment'](),_0x19d3b5=_0x22852f['config']['get']('trackChangesData')['editorCreator'],_0x2edf22=await _0x19d3b5(_0x17dc18,()=>function(_0x112604){const _0xc350ad=document['createElement']('div');return _0x112604['appendChild'](_0xc350ad),_0xc350ad;}(_0x59bf36));!function(_0x562a25,_0x3561a4){const _0x8a002e=_0x562a25['model']['document']['getRootNames']()['reduce']((_0x4a17db,_0x2c4320)=>(_0x4a17db[_0x2c4320]=_0x562a25['data']['get']({'rootName':_0x2c4320}),_0x4a17db),{}),_0x2279d7=_0x562a25['plugins']['get']('Users')['users']['map'](_0x307f67=>({'id':_0x307f67['id'],'name':_0x307f67['name']})),_0x35c663=_0x562a25['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x74bdb5=_0x562a25['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e21ab=_0x3561a4['plugins']['get']('Users'),_0x15f20b=_0x3561a4['plugins']['get']('TrackChangesEditing'),_0x2a3f33=_0x3561a4['plugins']['get']('CommentsRepository');for(const _0x54bea3 of _0x2a3f33['getCommentThreads']())_0x54bea3['remove']();for(const _0x309dd7 of _0x2279d7)_0x5e21ab['getUser'](_0x309dd7['id'])||_0x5e21ab['addUser'](_0x309dd7);_0x5e21ab['me']||_0x5e21ab['useAnonymousUser']();for(const _0xa10157 of _0x74bdb5)_0x2a3f33['addCommentThread'](_0xa10157);for(const _0x152722 of _0x35c663)_0x15f20b['addSuggestionData'](_0x152722);_0x3561a4['data']['set'](_0x8a002e);}(_0x22852f,_0x2edf22),_0x2edf22['execute'](_0x8126d?'acceptAllSuggestions':'discardAllSuggestions');const _0x57be65=Fe(_0x2edf22)?_0x2edf22['getFullData'](_0x3f2542):_0x2edf22['data']['get'](_0x3f2542);return await _0x2edf22['destroy'](),_0x57be65;}class Me extends _0x3ded66{['options'];constructor(_0x5cda3f,_0x1ee13b){super(_0x5cda3f),this['options']=_0x1ee13b,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'](_0x16d239,_0x59b479){if(!this['element'])return;const _0x265d1d=[];for(const [_0x3fe05b,_0x3d7711]of _0x16d239){const _0x5dd9e9=document['createElement']('div');_0x5dd9e9['setAttribute']('data-ck-root-name',_0x3fe05b),_0x5dd9e9['className']=_0x3d7711['classes']+'\x20ck-track-changes-preview__root-container',_0x5dd9e9['innerHTML']=_0x3d7711['content'],_0x265d1d['push'](_0x5dd9e9);}_0x59b479(this['element'],_0x265d1d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1be8bb{constructor(_0x10b679){super(_0x10b679),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x21dc75=this['editor'],_0x317840=_0x21dc75['locale'],_0x1c3fe7=_0x21dc75['plugins']['get']('Dialog');let _0xd95cbd;const _0x105318=function(_0x29272a){const _0x122584={};if('editables'in _0x29272a['ui']['view']){for(const [_0x2d5bd9,_0x27354c]of Object['entries'](_0x29272a['ui']['view']['editables']))_0x122584[_0x2d5bd9]=_0x27354c['element'];}else _0x122584[_0x29272a['model']['document']['getRootNames']()[0x0]]=_0x29272a['ui']['view']['editable']['element'];return _0x122584;}(_0x21dc75),_0x2a9055=function(_0x5cde05){let _0x52a848=0x0;for(const _0x576bfd of Object['values'](_0x5cde05))_0x52a848=Math['max'](_0x52a848,_0x576bfd['getBoundingClientRect']()['width']);let _0x4a5ebb=0x0;for(const _0x3ada5f of Object['values'](_0x5cde05))_0x4a5ebb+=_0x3ada5f['getBoundingClientRect']()['height'];const _0xb466ac=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x162dd6=Math['min'](_0x4a5ebb,_0xb466ac);return{'width':_0x52a848,'height':_0x162dd6};}(_0x105318);_0x1c3fe7['show']({'id':'finalContentPreview','title':c(_0x317840,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x317840,{'dialogRects':_0x2a9055}),'onHide':()=>{_0xd95cbd['detachFromDom']();},'onShow':()=>{_0x21dc75['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1e16bf=>{const _0x5e1ee2=this['_standarizeRootsData'](_0x1e16bf,_0x21dc75,_0x105318);_0x1c3fe7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5e1ee2,_0x21dc75['config']['get']('trackChanges.preview.renderFunction'));}),_0xd95cbd=new _0x50507a(_0x317840,[_0x1c3fe7['view']]),_0xd95cbd['attachToDom'](),_0xd95cbd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x21dc75['once']('destroy',()=>{_0xd95cbd['detachFromDom']();});const _0x1ea3b1=_0x1c3fe7['view']['headerView']['class'];_0x1c3fe7['view']['headerView']['class']=_0x1ea3b1?_0x1ea3b1+'\x20ck-reset_all':'ck-reset_all',_0x1c3fe7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1c3fe7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x50995a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xbcf2ca=_0x50995a['previewMode'],_0x100072={};if('$labels'===_0xbcf2ca){for(const _0x452492 of _0x50995a['getMergeFieldsIds']())_0x100072[_0x452492]=_0x50995a['getLabel'](_0x452492)||_0x452492;}else{const _0x141b9b='$defaultValues'===_0xbcf2ca?_0x50995a['getDefaultValues']():_0x50995a['getDataSetValues'](_0xbcf2ca,!0x0);for(const _0x116d76 of Object['entries'](_0x141b9b)){const [_0x3f58e5,_0x18a12f]=_0x116d76;_0x100072[_0x3f58e5]=null!==_0x18a12f?_0x18a12f:_0x50995a['getLabel'](_0x3f58e5)||_0x3f58e5;}}return{'mergeFieldsData':_0x100072};}['_standarizeRootsData'](_0x3c87db,_0x32d0ca,_0x19e483){let _0x53ad9c;if('string'==typeof _0x3c87db){const _0x12cfe6=_0x32d0ca['model']['document']['getRootNames']()[0x0];_0x53ad9c={[_0x12cfe6]:_0x3c87db};}else _0x53ad9c=_0x3c87db;const _0x2aaf3a=this['_fixMediaEmbeds'](_0x53ad9c,_0x32d0ca),_0x15d2ce=function(_0x225f81,_0x22bd05){for(const [_0x3e5635,_0x4120e6]of _0x225f81)_0x4120e6['classes']=_0x22bd05[_0x3e5635]['classList']['value']['replace']('ck-focused','');return _0x225f81;}(this['_sortRoots'](_0x32d0ca)['reduce']((_0xc350ea,_0x29184e)=>(_0xc350ea['push']([_0x29184e,{'content':_0x2aaf3a[_0x29184e],'classes':''}]),_0xc350ea),[]),_0x19e483);return _0x15d2ce;}['_fixMediaEmbeds'](_0x3d9582,_0x3ea7a5){if(!_0x3ea7a5['plugins']['has']('MediaEmbedEditing'))return _0x3d9582;const _0x2622d6=_0x3ea7a5['plugins']['get']('MediaEmbedEditing');for(const [_0xfab27c,_0x16a76a]of Object['entries'](_0x3d9582)){const _0x2d3bdf=document['createElement']('div');_0x2d3bdf['innerHTML']=_0x16a76a,(_0x2d3bdf['querySelectorAll']('figure.media')['forEach'](_0x3e48ec=>{const _0x396fe3=_0x3e48ec['querySelector']('oembed');if(_0x396fe3){const _0x491a7e=_0x396fe3['getAttribute']('url');if(_0x491a7e){const _0x22aa85=_0x2622d6['registry']['getMediaViewElement'](new _0x318b26(_0x3ea7a5['editing']['view']['document']),_0x491a7e,{'elementName':'','renderForEditingView':!0x0}),_0x86163b=document['createElement']('div');_0x86163b['classList']['add']('ck-media__wrapper'),_0x22aa85['render'](_0x86163b,_0x3ea7a5['editing']['view']['domConverter']),_0x396fe3['replaceWith'](_0x86163b);}}}),_0x3d9582[_0xfab27c]=_0x2d3bdf['innerHTML']);}return _0x3d9582;}['_sortRoots'](_0x1e3d9f){if(!function(_0x44f4ba){return void 0x0!==_0x44f4ba['getRootsAttributes'];}(_0x1e3d9f))return _0x1e3d9f['model']['document']['getRootNames']();const _0x1f4c27=[],_0x2e5c2b=new Map();for(const _0x4576b0 of _0x1e3d9f['model']['document']['getRootNames']()){const _0x1474e2=_0x1e3d9f['editing']['view']['getDomRoot'](_0x4576b0)['getClientRects']()['item'](0x0);_0x1f4c27['push'](_0x4576b0),_0x2e5c2b['set'](_0x4576b0,_0x1474e2);}return _0x1f4c27['sort']((_0x444ca0,_0x4360b1)=>{const _0x1ebf0a=_0x2e5c2b['get'](_0x444ca0),_0xc6ec8c=_0x2e5c2b['get'](_0x4360b1);return _0x1ebf0a['y']-_0xc6ec8c['y']||_0x1ebf0a['x']-_0xc6ec8c['x'];}),_0x1f4c27;}}class te extends _0x6c1265{static get['requires'](){return[T,_0x5ef560];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50e7c3){super(_0x50e7c3),_0x50e7c3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x50e7c3['config']['define']('trackChanges.preview.renderFunction',(_0xb81e32,_0xafd0c1)=>{for(const _0x19e5e2 of _0xafd0c1)_0xb81e32['appendChild'](_0x19e5e2);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x14d04e,Plugin as _0x4e3ad1,PendingActions as _0x2bece1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1baf5e,ObservableMixin as _0x3be1e0,uid as _0x36e450,priorities as _0x393775,insertToPriorityArray as _0x4ce51d,logWarning as _0x11d394,getEnvKeystrokeText as _0x473837,FocusTracker as _0x46d44f,KeystrokeHandler as _0xc04d4b,Collection as _0xfad52a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x24caef,IconCancel as _0x1bcfab,IconTrackChanges as _0x3951e0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x26563b,View as _0x45d309,ViewCollection as _0x339156,FocusCycler as _0x4d75a0,ViewModel as _0x655b36,createDropdown as _0x1264cb,SplitButtonView as _0x11cad6,addListToDropdown as _0x49430f,MenuBarMenuView as _0x52ed87,MenuBarMenuListView as _0x119352,ListSeparatorView as _0x3df2d9,MenuBarMenuListItemView as _0x54e9d3,MenuBarMenuListItemButtonView as _0x2a1ad4,BodyCollection as _0x565fa4,Dialog as _0x12a9db}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5d9a93,hashObject as _0x1298bf,surroundingMarkersDetector as _0x3a84f7,FOCUS_ANNOTATION_KEYSTROKE as _0x3b560a,AriaDescriptionView as _0x5b4c56,setupThreadKeyboardNavigation as _0x4f0b2e,trimHtml as ti,UserView as _0x2bdacb,LateFocusButtonView as _0x4add8c,getDateTimeFormatter as _0x171b53,getAllMarkersDomElementsSorted as _0x4ecaed,sanitizeEditorConfig as _0x543d66}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4027d0,LiveRange as _0x5e3685,LivePosition as _0x546232,DowncastWriter as _0x5511c1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3e5fc4,toWidget as _0x5cd7fd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4e1566,set as _0x1d4f9f,isEqual as _0x23a453,unset as _0x3fe7c5,omit as Vt}from'es-toolkit/compat';import{Delete as _0x1baff1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x536ea2,ShiftEnter as _0x4e25f3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x14d04e{['_enabledCommands'];constructor(_0x3423dd,_0x4b851b){super(_0x3423dd),this['_enabledCommands']=_0x4b851b,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 _0x5de575 of this['editor']['commands']['commands']())_0x5de575['affectsData']&&!this['_enabledCommands']['has'](_0x5de575)&&_0x5de575['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x9581fd of this['editor']['commands']['commands']())_0x9581fd['affectsData']&&!this['_enabledCommands']['has'](_0x9581fd)&&_0x9581fd['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x14d04e{['_suggestions'];constructor(_0x26763b,_0x36b07d){super(_0x26763b),this['_suggestions']=_0x36b07d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x40a2ea){const _0x265826=this['_suggestions']['get'](_0x40a2ea);if(!_0x265826)throw new _0x1baf5e('track-changes-accept-suggestion-not-found',this);const _0x213c98=_0x265826['getRanges']();this['editor']['model']['canEditAt'](_0x213c98)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x265826);}}class R extends _0x14d04e{['_suggestions'];constructor(_0x3c72a7,_0x494582){super(_0x3c72a7),this['_suggestions']=_0x494582,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x170d3d){const _0x19c88d=this['_suggestions']['get'](_0x170d3d);if(!_0x19c88d)throw new _0x1baf5e('track-changes-discard-suggestion-not-found',this);const _0x4c72e2=_0x19c88d['getRanges']();this['editor']['model']['canEditAt'](_0x4c72e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x19c88d);}}function ls(_0x346e2d,_0x4a7335){let _0x3e6b2b='';return _0x3e6b2b+=_0x346e2d['split']('*')['map']((_0x17ed0a,_0x2cc180)=>_0x2cc180%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x17ed0a)+'</span>':nn(_0x17ed0a))['join'](''),_0x4a7335&&(_0x3e6b2b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4a7335['value']+'\x22\x20title=\x22'+_0x4a7335['title']+'\x22></span>'),_0x3e6b2b;}function nn(_0x56955d){const _0x3a8c7e=document['createElement']('span');return _0x3a8c7e['innerText']=_0x56955d,_0x3a8c7e['innerHTML'];}function ts(_0xec6faa){return _0xec6faa['sort']((_0x2a1377,_0xca63d7)=>'deletion'==_0x2a1377['type']&&'deletion'!=_0xca63d7['type']?-0x1:'deletion'!=_0x2a1377['type']&&'deletion'==_0xca63d7['type']?0x1:0x0);}function Zt(_0xc838d2,_0x2698a4){let _0x52166c,_0x2b2752=0x0;const _0x667673=[],_0xe4a661=_0x2698a4['schema'];for(;_0x2b2752<_0xc838d2['length'];){const _0x50e627=_0xc838d2[_0x2b2752],_0x4f721a=_0xc838d2[_0x2b2752+0x1];_0x52166c||(_0x52166c=_0x2698a4['createPositionBefore'](_0x50e627)),on(_0x2698a4,_0x50e627,_0x4f721a)||(_0x667673['push'](_0x2698a4['createRange'](_0x52166c,_0xe4a661['isObject'](_0x50e627)?_0x2698a4['createPositionAfter'](_0x50e627):_0x2698a4['createPositionAt'](_0x50e627,'end'))),_0x52166c=null),_0x2b2752++;}return _0x667673;}function on(_0x4d1823,_0x17c6d6,_0x583d00){if(!_0x583d00)return!0x1;const _0x2e488d=_0x4d1823['createPositionAfter'](_0x17c6d6),_0xb7cb90=_0x4d1823['createPositionBefore'](_0x583d00);return _0x2e488d['isTouching'](_0xb7cb90);}function rs(_0x33a194,_0x5537fe,_0x1705c8){for(;_0x1705c8['length'];){const _0x4146d4=_0x1705c8['splice'](0x0,0x64);_0x33a194['change'](()=>{for(const _0x1333be of _0x4146d4)_0x1333be['isInContent']&&_0x5537fe['execute'](_0x1333be['id']);});}}class x extends _0x14d04e{['_command'];['_suggestions'];constructor(_0x3f5df6,_0x289839,_0x324b55){super(_0x3f5df6),this['_command']=_0x289839,this['_suggestions']=_0x324b55,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x122b9f=Array['from'](this['_suggestions']['values']())['some'](_0x536a8c=>_0x536a8c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x122b9f;}['execute'](){const _0x538650=ts(Array['from'](this['_suggestions']['values']()));for(const _0x382d11 of _0x538650){const _0x5e54a3=_0x382d11['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e54a3))return;}rs(this['editor']['model'],this['_command'],_0x538650);}}class E extends _0x14d04e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x310d8b,_0x3f6564,_0xc51439){super(_0x310d8b),this['_command']=_0x3f6564,this['_suggestions']=_0xc51439,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f0695=this['editor']['model']['document']['selection'],_0x18d61a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c3be0,_0xd54d5d){const _0x300571=Array['from'](_0x5c3be0['getRanges']()),_0xd55fa=new Set();for(const _0x3cfa26 of _0xd54d5d)if(_0x3cfa26['isInContent']){for(const _0x1b47ab of _0x300571)for(const _0x39d439 of _0x3cfa26['getRanges']())(_0x1b47ab['isIntersecting'](_0x39d439)||_0x5c3be0['isCollapsed']&&!_0x3cfa26['isMultiRange']&&_0x3cfa26['next']&&_0x39d439['end']['isTouching'](_0x1b47ab['start']))&&_0xd55fa['add'](_0x3cfa26);}return _0xd55fa;}(_0x2f0695,_0x18d61a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1e7c88=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1327c9 of _0x1e7c88){const _0x314f52=_0x1327c9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x314f52))return;}rs(this['editor']['model'],this['_command'],_0x1e7c88);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x3be1e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x375efa,_0xb67940){super(),this['id']=_0xb67940['id'],this['type']=_0xb67940['type'],this['subType']=_0xb67940['subType']||null,this['author']=_0xb67940['author'],this['creator']=_0xb67940['creator']||_0xb67940['author'],this['isExternal']=Boolean(_0xb67940['attributes']&&_0xb67940['attributes']['@external']),this['data']=null,this['_model']=_0x375efa,this['_onAccept']=_0xb67940['onAccept'],this['_onDiscard']=_0xb67940['onDiscard'],this['_onAttributesChange']=_0xb67940['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb67940['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 _0x52e8a8=this;for(;_0x52e8a8['previous'];)_0x52e8a8=_0x52e8a8['previous'];return _0x52e8a8;}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'](_0x5461cb){this['_markerNames']['add'](_0x5461cb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b9aa6=>this['_model']['markers']['get'](_0x2b9aa6))['filter'](_0x34ec6f=>_0x34ec6f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x23b0ca=>{for(const _0x2b522b of this['getMarkers']())_0x23b0ca['removeMarker'](_0x2b522b);}),this['_markerNames']['clear']();}['removeMarker'](_0x490734){this['_model']['change'](_0x49c9eb=>{_0x49c9eb['removeMarker'](_0x490734);}),this['_markerNames']['delete'](_0x490734);}['addRange'](_0x402886){const _0x333688='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x333688),this['_model']['change'](_0x399ad7=>{_0x399ad7['addMarker'](_0x333688,{'range':_0x402886,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4f6608){for(const _0x437dee of this['getRanges']())if(_0x437dee['isIntersecting'](_0x4f6608))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x17ad57=>_0x17ad57['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x346357,_0x3c11c6)=>[..._0x346357,..._0x3c11c6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9ccb3b=this['getRanges']();if(0x1!=_0x9ccb3b['length'])return null;const _0x238a82=_0x9ccb3b[0x0],_0x1d64f7=_0x238a82['start']['nodeAfter'],_0x5d6aec=_0x238a82['end']['nodeBefore'];return _0x1d64f7 instanceof _0x4027d0?_0x1d64f7!=_0x5d6aec?null:_0x1d64f7: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 _0x3497ab=[];let _0x1993ca=this['head'];for(;_0x1993ca;)_0x3497ab['push'](_0x1993ca),_0x1993ca=_0x1993ca['next'];return _0x3497ab;}['setAttribute'](_0x2976cd,_0x40da45){const _0x303958=_0x4e1566(this['attributes']);_0x1d4f9f(_0x303958,_0x2976cd,_0x40da45),_0x23a453(_0x303958,this['attributes'])||(this['attributes']=_0x303958,this['_onAttributesChange'](_0x303958));}['removeAttribute'](_0x4c8cfa){const _0x75e56a=_0x4e1566(this['attributes']);_0x3fe7c5(_0x75e56a,_0x4c8cfa),_0x23a453(_0x75e56a,this['attributes'])||(this['attributes']=_0x75e56a,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 _0x36e450()['substr'](0x1,0x5);}}function c(_0x42183e,_0x232b2b,_0x3ef5c7){const _0x3f441c=_0x42183e['t'],t=_0x42183e['t'];switch(_0x232b2b){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',_0x3ef5c7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ef5c7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ef5c7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ef5c7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ef5c7);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',_0x3ef5c7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ef5c7);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',_0x3ef5c7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ef5c7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ef5c7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ef5c7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ef5c7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ef5c7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3ef5c7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ef5c7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ef5c7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ef5c7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ef5c7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ef5c7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ef5c7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ef5c7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ef5c7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ef5c7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ef5c7);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'},_0x3ef5c7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ef5c7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ef5c7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ef5c7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ef5c7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ef5c7);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'},_0x3ef5c7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ef5c7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ef5c7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ef5c7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ef5c7);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'},_0x3ef5c7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ef5c7);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'},_0x3ef5c7);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3ef5c7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ef5c7);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'},_0x3ef5c7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ef5c7);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'},_0x3ef5c7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ef5c7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ef5c7);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'},_0x3ef5c7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3ef5c7);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 _0x3f441c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ef5c7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3f441c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ef5c7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ef5c7);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'},_0x3ef5c7);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'},_0x3ef5c7);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'},_0x3ef5c7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x232b2b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x555d99,_0xc6047f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x555d99,this['_locale']=_0xc6047f;}['getDescriptions'](_0x36db59){const _0x564a8d=[],_0x14c199=new Set(),_0x2fc3b6=new Set();for(let _0xfc0108=0x0;_0xfc0108<_0x36db59['length'];_0xfc0108++){const _0x1c2146=_0x36db59[_0xfc0108];if(!_0x1c2146['isInContent'])continue;const _0x21984c=this['_handleCustomCallbackDescription'](_0x1c2146);if(_0x21984c){if(null!=_0x1c2146['subType']){if(_0x14c199['has'](_0x1c2146['subType']))continue;_0x14c199['add'](_0x1c2146['subType']);}_0x564a8d['push'](_0x21984c);}else{if('attribute'!=_0x1c2146['type'])'insertion'!=_0x1c2146['type']&&'deletion'!=_0x1c2146['type']||this['_handleInsertRemoveSuggestionDescription'](_0x564a8d,_0x1c2146,_0x36db59[_0xfc0108+0x1]);else{const _0x309d75=_0x1c2146['data']['key'];if(_0x2fc3b6['has'](_0x309d75))continue;_0x2fc3b6['add'](_0x1c2146['data']['key']),_0x309d75==u?this['_handleRenameSuggestionDescription'](_0x564a8d,_0x1c2146):this['_handleAttributeSuggestionDescription'](_0x564a8d,_0x1c2146);}}}return this['_resolveDescriptionItems'](_0x564a8d);}['registerDescriptionCallback'](_0x4a552d){this['_customCallbacks']['push'](_0x4a552d);}['registerElementLabel'](_0xb568c1,_0x3667a0,_0x126c1b=_0x393775['normal']){'function'==typeof _0xb568c1?_0x4ce51d(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb568c1,'label':_0x3667a0,'priority':_0x126c1b}):this['_itemLabels']['set'](_0xb568c1,_0x3667a0);}['registerAttributeLabel'](_0x5c78e1,_0xdd718d){this['_attributeLabels']['set'](_0x5c78e1,_0xdd718d);}['getItemLabel'](_0x1256ef,_0x3afdb5=0x1){let _0x2b96b7;for(const _0x5a95b6 of this['_itemLabelsCallbacks'])if(_0x5a95b6['matchingCallback'](_0x1256ef)){_0x2b96b7=_0x5a95b6['label'];break;}return _0x2b96b7||(_0x2b96b7=this['_itemLabels']['get'](_0x1256ef['name'])),_0x2b96b7?_0x2b96b7(_0x3afdb5):0x1!==_0x3afdb5?_0x3afdb5+'\x20'+_0x1256ef['name']+'s':''+_0x1256ef['name'];}['_addDescriptionItems'](_0x459260,_0x14188d){const _0x35c22a=_0x14188d['getFirstRange']()['getWalker'](),_0x126d92='insertion'==_0x14188d['type']?'add':'remove';for(const _0x1052a8 of _0x35c22a){const _0x5b83d9=_0x1052a8['item'],_0x41bf9a=_0x459260[_0x459260['length']-0x1];if(_0x5b83d9['is']('$textProxy'))_0x41bf9a&&_0x41bf9a['type']['indexOf']('Container')>-0x1&&_0x459260['pop'](),_0x41bf9a&&'text'==_0x41bf9a['type']?_0x41bf9a[_0x126d92]+=_0x5b83d9['data']:_0x459260['push']({'type':'text','add':'add'==_0x126d92?_0x5b83d9['data']:'','remove':'remove'==_0x126d92?_0x5b83d9['data']:''});else{if(this['_schema']['isObject'](_0x5b83d9)){const _0x441a03=_0x5b83d9;if(_0x41bf9a&&_0x41bf9a['type']['indexOf']('Container')>-0x1&&_0x459260['pop'](),'elementEnd'==_0x1052a8['type'])continue;_0x41bf9a&&_0x41bf9a['type']==_0x126d92+'Object'&&_0x41bf9a['element']['name']==_0x441a03['name']?_0x41bf9a['quantity']++:_0x459260['push']({'type':_0x126d92+'Object','element':_0x441a03,'quantity':0x1}),_0x35c22a['skip'](_0xf7982=>!('elementEnd'==_0xf7982['type']&&_0xf7982['item']==_0x5b83d9));}else{if(this['_schema']['checkChild'](_0x5b83d9,'$text')||_0x5b83d9['is']('element','softBreak')){const _0x2ff302=_0x5b83d9;if('add'==_0x126d92&&'elementStart'==_0x1052a8['type']||'remove'==_0x126d92&&'elementEnd'==_0x1052a8['type'])continue;if(_0x41bf9a&&-0x1==_0x41bf9a['type']['indexOf']('Container')){'text'==_0x41bf9a['type']&&(_0x41bf9a[_0x126d92]+='\x0a');continue;}let _0x3c95f7;if(_0x3c95f7='add'==_0x126d92?_0x2ff302['nextSibling']&&!this['_schema']['isObject'](_0x2ff302['nextSibling'])?_0x2ff302['nextSibling']:null:_0x2ff302['previousSibling']&&!this['_schema']['isObject'](_0x2ff302['previousSibling'])?_0x2ff302['previousSibling']:null,_0x2ff302['isEmpty']||_0x3c95f7&&_0x3c95f7['isEmpty']){const _0x211ad3=_0x3c95f7&&_0x3c95f7['isEmpty']?_0x3c95f7:_0x2ff302;_0x41bf9a&&_0x41bf9a['type']==_0x126d92+'EmptyContainer'&&_0x41bf9a['element']['name']==_0x211ad3['name']?_0x41bf9a['quantity']++:_0x459260['push']({'type':_0x126d92+'EmptyContainer','element':_0x211ad3,'quantity':0x1});}else _0x459260['push']({'type':_0x126d92+'Container','element':_0x2ff302});}}}}}['_resolveDescriptionItems'](_0x4c0617){const _0x365680=this['_locale'],_0x27c647=[],_0x364cd1=[],_0x3248a0=[];for(const _0x19d009 of _0x4c0617)switch(_0x19d009['type']){case'text':if(_0x19d009['add']=_0x19d009['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x19d009['remove']=_0x19d009['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x19d009['add']&&''!=_0x19d009['remove']){_0x27c647['push']({'type':'replace','content':c(_0x365680,'REPLACE_TEXT',['\x22'+_0x19d009['remove']+'\x22','\x22'+_0x19d009['add']+'\x22'])});continue;}if(null!=_0x19d009['add']['match'](/^ +$/)){_0x27c647['push']({'type':'insertion','content':c(_0x365680,'*Insert:*\x20%0',c(_0x365680,'ELEMENT_SPACE',_0x19d009['add']['length']))});continue;}if(null!=_0x19d009['remove']['match'](/^ +$/)){_0x27c647['push']({'type':'deletion','content':c(_0x365680,'*Remove:*\x20%0',c(_0x365680,'ELEMENT_SPACE',_0x19d009['remove']['length']))});continue;}if(''!=_0x19d009['add']){_0x27c647['push']({'type':'insertion','content':c(_0x365680,'*Insert:*\x20%0','\x22'+_0x19d009['add']+'\x22')});continue;}_0x27c647['push']({'type':'deletion','content':c(_0x365680,'*Remove:*\x20%0','\x22'+_0x19d009['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27c647['push']({'type':'insertion','content':c(_0x365680,'*Insert:*\x20%0',this['getItemLabel'](_0x19d009['element'],_0x19d009['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27c647['push']({'type':'deletion','content':c(_0x365680,'*Remove:*\x20%0',this['getItemLabel'](_0x19d009['element'],_0x19d009['quantity']))});continue;case'addContainer':_0x27c647['push']({'type':'insertion','content':c(_0x365680,'*Split:*\x20%0',this['getItemLabel'](_0x19d009['element'],_0x19d009['quantity']))});continue;case'removeContainer':_0x27c647['push']({'type':'deletion','content':c(_0x365680,'*Merge:*\x20%0',this['getItemLabel'](_0x19d009['element'],_0x19d009['quantity']))});continue;case'addFormat':_0x364cd1['push'](_0x19d009['key']);continue;case'removeFormat':_0x3248a0['push'](_0x19d009['key']);continue;default:_0x27c647['push'](_0x19d009);}if(_0x364cd1['length']){const _0xdf72de=_0x364cd1['map'](_0x400d49=>this['_attributeLabels']['has'](_0x400d49)?this['_attributeLabels']['get'](_0x400d49):_0x400d49)['join'](',\x20');_0x27c647['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xdf72de)});}if(_0x3248a0['length']){const _0x230a5b=_0x3248a0['map'](_0xdbb214=>this['_attributeLabels']['has'](_0xdbb214)?this['_attributeLabels']['get'](_0xdbb214):_0xdbb214)['join'](',\x20');_0x27c647['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x230a5b)});}return _0x27c647;}['_handleCustomCallbackDescription'](_0x30818e){for(const _0x366e7d of this['_customCallbacks']){const _0x3a5ee8=_0x366e7d(_0x30818e);if(_0x3a5ee8&&'type'in _0x3a5ee8)return _0x3a5ee8;}}['_handleAttributeSuggestionDescription'](_0x8334b7,_0x247031){const _0x42caa9=_0x247031['data'],_0x2f28ea=void 0x0===_0x42caa9['newValue']?'removeFormat':'addFormat';_0x8334b7['push']({'type':_0x2f28ea,'key':_0x42caa9['key']});}['_handleRenameSuggestionDescription'](_0x873c4d,_0x352e38){_0x873c4d['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x352e38['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12f4da,_0x4d70bd,_0x526847){if(this['_addDescriptionItems'](_0x12f4da,_0x4d70bd),_0x526847&&_0x526847['getFirstRange']()&&!_0x4d70bd['getFirstRange']()['end']['isEqual'](_0x526847['getFirstRange']()['start'])){const _0x303b2e=_0x12f4da[_0x12f4da['length']-0x1],_0x41523e='insertion'==_0x4d70bd['type']?'add':'remove';_0x303b2e&&'text'==_0x303b2e['type']&&(_0x303b2e[_0x41523e]+='\x0a');}}}class U extends _0x4e3ad1{['afterInit'](){const _0x5a458c=this['editor'],_0x5a4c7c=_0x5a458c['plugins']['get']('TrackChangesEditing');_0x5a458c['commands']['get']('showAIAssistant')&&_0x5a4c7c['enableCommand']('showAIAssistant');}}class V extends _0x4e3ad1{['afterInit'](){const _0x3cd4ef=this['editor'],_0x36cb02=_0x3cd4ef['locale'];if(!_0x3cd4ef['plugins']['has']('AlignmentEditing'))return;const _0x21a16f=_0x3cd4ef['plugins']['get']('TrackChangesEditing');_0x21a16f['enableDefaultAttributesIntegration']('alignment'),_0x21a16f['registerBlockAttribute']('alignment'),_0x21a16f['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x36cb02,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52c11d=this['editor'],_0x3be19c=_0x52c11d['locale'];_0x52c11d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24edb3=>{if('formatBlock'!=_0x24edb3['type'])return;const {data:_0xdb768f}=_0x24edb3;if(_0xdb768f&&'alignment'==_0xdb768f['commandName']){const _0x1ee036=_0xdb768f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3be19c,'*Format:*\x20%0',function(_0x56bb8b){switch(_0x56bb8b){case'left':return c(_0x3be19c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3be19c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3be19c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3be19c,'FORMAT_JUSTIFY_TEXT');}}(_0x1ee036))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x4e3ad1{['afterInit'](){const _0x287950=this['editor'],_0x2e6dee=_0x287950['plugins']['get']('TrackChangesEditing'),_0x2629c6=_0x287950['locale'];for(const _0x1112db of Yt){if(!_0x287950['plugins']['has'](_0x1112db))continue;const _0x430617=_0x1112db['slice'](0x0,-0x7)['toLowerCase'](),_0x36d235='FORMAT_'+_0x430617['toUpperCase']();_0x2e6dee['enableDefaultAttributesIntegration'](_0x430617),_0x2e6dee['registerInlineAttribute'](_0x430617),_0x2e6dee['descriptionFactory']['registerAttributeLabel'](_0x430617,c(_0x2629c6,_0x36d235));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd525=this['editor'],_0xcf6848=_0x4cd525['locale'],_0x2e74c8=_0x4cd525['plugins']['get']('TrackChangesEditing');function _0x148c5e(_0x283f5e,_0x590dff){_0x2e74c8['descriptionFactory']['registerDescriptionCallback'](_0x21daf7=>{if('formatInline'!=_0x21daf7['type'])return;const {data:_0x4c7ec4}=_0x21daf7;return _0x4c7ec4&&_0x4c7ec4['commandName']===_0x283f5e?_0x4c7ec4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xcf6848,'*Format:*\x20%0',_0x590dff)}:{'type':'format','content':c(_0xcf6848,'*Remove\x20format:*\x20%0',_0x590dff)}:void 0x0;});}_0x148c5e('bold',c(_0xcf6848,'FORMAT_BOLD')),_0x148c5e('italic',c(_0xcf6848,'FORMAT_ITALIC')),_0x148c5e('underline',c(_0xcf6848,'FORMAT_UNDERLINE')),_0x148c5e('code',c(_0xcf6848,'FORMAT_CODE')),_0x148c5e('strikethrough',c(_0xcf6848,'FORMAT_STRIKETHROUGH')),_0x148c5e('subscript',c(_0xcf6848,'FORMAT_SUBSCRIPT')),_0x148c5e('superscript',c(_0xcf6848,'FORMAT_SUPERSCRIPT'));}}class G extends _0x4e3ad1{['afterInit'](){const _0x398a6f=this['editor'],_0x432e05=_0x398a6f['locale'];if(!_0x398a6f['plugins']['has']('BlockQuoteEditing'))return;const _0x107d7d=_0x398a6f['plugins']['get']('TrackChangesEditing'),_0x56986e=this['editor']['commands']['get']('blockQuote');_0x107d7d['enableCommand']('blockQuote',(_0x59abcd,_0x1d07f6={})=>{const _0x37dd8e=this['editor']['model']['document']['selection'],_0x1b2f7f=_0x1d07f6&&void 0x0!==_0x1d07f6['forceValue']?_0x1d07f6['forceValue']:!_0x56986e['value'];let _0x1285e2=[];if(_0x1b2f7f){const _0x32836f=Array['from'](_0x37dd8e['getSelectedBlocks']())['filter'](_0x39e8de=>to(_0x39e8de)||function(_0x3fef78,_0x3f9c9b){const _0x1870da=_0x3f9c9b['checkChild'](_0x3fef78['parent'],'blockQuote'),_0x1085ec=_0x3f9c9b['checkChild'](['$root','blockQuote'],_0x3fef78);return _0x1870da&&_0x1085ec;}(_0x39e8de,this['editor']['model']['schema']));_0x1285e2=Zt(_0x32836f,_0x398a6f['model']);}else{const _0x11129c=Array['from'](_0x37dd8e['getSelectedBlocks']())['filter'](_0x5aa061=>to(_0x5aa061));_0x1285e2=Zt(_0x11129c,_0x398a6f['model']);}_0x398a6f['model']['change'](()=>{for(const _0xb83728 of _0x1285e2)_0x107d7d['markBlockFormat'](_0xb83728,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b2f7f}]});});}),_0x107d7d['descriptionFactory']['registerDescriptionCallback'](_0x372d90=>{const {data:_0x589ade}=_0x372d90;if(_0x589ade&&'blockQuote'==_0x589ade['commandName']){const _0x12f6f5=c(_0x432e05,'ELEMENT_BLOCK_QUOTE');return _0x589ade['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x432e05,'*Set\x20format:*\x20%0',_0x12f6f5)}:{'type':'format','content':c(_0x432e05,'*Remove\x20format:*\x20%0',_0x12f6f5)};}});}}function to(_0x2783d6){return'blockQuote'==_0x2783d6['parent']['name'];}class L extends _0x4e3ad1{['afterInit'](){const _0x5c1865=this['editor'],_0x41cb8d=_0x5c1865['locale'],_0x3b93c0=_0x5c1865['plugins']['get']('TrackChangesEditing');_0x5c1865['plugins']['has']('BookmarkEditing')&&(_0x3b93c0['enableCommand']('insertBookmark'),_0x3b93c0['enableDefaultAttributesIntegration']('updateBookmark'),_0x3b93c0['registerBlockAttribute']('bookmarkId'),_0x3b93c0['descriptionFactory']['registerDescriptionCallback'](_0x3808e4=>{if('insertion'!=_0x3808e4['type']&&'deletion'!=_0x3808e4['type']&&'attribute'!=_0x3808e4['type'])return;const _0x4dcf67=_0x3808e4['getContainedElement']();if(null==_0x4dcf67)return;if(!_0x4dcf67['is']('element','bookmark'))return;const _0x2954f8=_0x4dcf67['getAttribute']('bookmarkId');if('insertion'==_0x3808e4['type'])return{'type':'insertion','content':c(_0x41cb8d,'*Insert:*\x20%0','\x22'+_0x2954f8+'\x22\x20'+c(_0x41cb8d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3808e4['type'])return{'type':'deletion','content':c(_0x41cb8d,'*Remove:*\x20%0','\x22'+_0x2954f8+'\x22\x20'+c(_0x41cb8d,'ELEMENT_BOOKMARK'))};const {data:_0x1e866f}=_0x3808e4;if(!_0x1e866f||'bookmarkId'!=_0x1e866f['key'])return;return{'type':'format','content':c(_0x41cb8d,'*Set\x20bookmark:*\x20%0','\x22'+_0x1e866f['newValue']+'\x22')};}));}}class J extends _0x4e3ad1{['afterInit'](){const _0x42d485=this['editor'];_0x42d485['plugins']['has']('CaseChange')&&(_0x42d485['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42d485['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42d485['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4e3ad1{['afterInit'](){const _0x36c097=this['editor'];_0x36c097['commands']['get']('ckbox')&&_0x36c097['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x4e3ad1{['afterInit'](){const _0x40df72=this['editor'];if(!_0x40df72['plugins']['has']('CodeBlock'))return;const _0x1dc0df=_0x40df72['plugins']['get']('TrackChangesEditing'),_0x1ec3ec=_0x40df72['locale'],_0x3b0347=_0x40df72['config']['get']('codeBlock')['languages'],_0x39b088=_0x40df72['commands']['get']('codeBlock');_0x1dc0df['enableCommand']('indentCodeBlock'),_0x1dc0df['enableCommand']('outdentCodeBlock'),_0x1dc0df['enableCommand']('codeBlock',(_0x2a6385,_0x4e7203={})=>{const _0xc96a8b=_0x40df72['model'],_0x212be6=_0x40df72['model']['document']['selection'],_0x412b22=_0x4e7203&&void 0x0!==_0x4e7203['forceValue']?_0x4e7203['forceValue']:!_0x39b088['value'];let _0x452ad4;_0x4e7203['language']||(_0x4e7203['language']=_0x3b0347[0x0]['language']),_0x452ad4=_0x412b22?Array['from'](_0x212be6['getSelectedBlocks']())['filter'](_0x350e1b=>oo(_0x350e1b)||function(_0x5b2c5e,_0x156511){if(_0x5b2c5e['is']('rootElement')||_0x156511['isLimit'](_0x5b2c5e))return!0x1;return _0x156511['checkChild'](_0x5b2c5e['parent'],'codeBlock');}(_0x350e1b,_0xc96a8b['schema'])):Array['from'](_0x212be6['getSelectedBlocks']())['filter'](_0x3c79d4=>oo(_0x3c79d4));const _0x57b602=Zt(_0x452ad4,_0xc96a8b);_0xc96a8b['change'](()=>{for(const _0x3d48b7 of _0x57b602)_0x1dc0df['markBlockFormat'](_0x3d48b7,{'commandName':'codeBlock','commandParams':[{..._0x4e7203,'forceValue':_0x412b22}],'formatGroupId':'blockName'});});}),(_0x1dc0df['descriptionFactory']['registerElementLabel']('codeBlock',_0x10fc5e=>c(_0x1ec3ec,'ELEMENT_CODE_BLOCK',_0x10fc5e)),_0x1dc0df['descriptionFactory']['registerDescriptionCallback'](_0x158549=>{if('formatBlock'!=_0x158549['type'])return;const _0x27c7ee=_0x1ec3ec['t'],{data:_0xf3e11f}=_0x158549;if(!_0xf3e11f||'codeBlock'!=_0xf3e11f['commandName'])return;const _0x3b8b5a=_0xf3e11f['commandParams'][0x0]['language'],_0x90ce18=_0x27c7ee(_0x3b0347['find'](_0x4be14b=>_0x4be14b['language']===_0x3b8b5a)['label'])['toLowerCase']();return _0xf3e11f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ec3ec,'*Set\x20format:*\x20%0',c(_0x1ec3ec,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x90ce18+')')}:{'type':'format','content':c(_0x1ec3ec,'*Remove\x20format:*\x20%0',c(_0x1ec3ec,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x5c491c){return'codeBlock'==_0x5c491c['name'];}class q extends _0x4e3ad1{['afterInit'](){const _0x5f5660=this['editor'];if(!_0x5f5660['plugins']['has']('CommentsEditing'))return;_0x5f5660['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2e1dae,_0x27bed8,_0xa39cf8){const _0x45d358=[];for(const _0x4410d2 of _0x27bed8['getItems']())_0x4410d2['hasAttribute'](_0x2e1dae)&&_0x45d358['push'](_0xa39cf8['createRangeOn'](_0x4410d2));return _0x45d358;}function De(_0x2db621,_0x242936,{showActiveMarker:_0x3fa9db=!0x0}={}){const _0x30026e=_0x2db621['plugins']['get']('TrackChangesEditing');return(_0x305546,_0x1ab279,_0x160ead)=>{if(!_0x160ead['consumable']['test'](_0x1ab279['markerRange'],_0x305546['name']))return;const _0x5b5a00=_0x1ab279['markerRange']['getWalker'](),_0x16dd4f=_0x1ab279['markerRange']['start'],_0x2b169f=_0x2db621['model']['schema'];let _0x457ca4=null,_0x40fffa=null,_0x145f6d=!0x1,_0x5c7ee1=!0x1;for(const _0x5cd7d5 of _0x5b5a00){const _0xf6a90=_0x5cd7d5['item'];_0x145f6d=_0x145f6d||_0x2b169f['isContent'](_0xf6a90);const _0x3e8efd=_0x160ead['mapper']['toViewElement'](_0xf6a90);if(_0x3e8efd&&_0x3e8efd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5cd7d5['type']&&(_0x2b169f['isBlock'](_0xf6a90)&&!_0x2b169f['isLimit'](_0xf6a90)&&(_0xf6a90['nextSibling']||_0x16dd4f['isAtEnd']?_0x457ca4&&_0x457ca4['parent']==_0xf6a90||(_0x457ca4=_0xf6a90,_0x2228ab(_0x5cd7d5['previousPosition']),_0x5c7ee1=!0x0):_0x40fffa=_0x40fffa||_0x5cd7d5['previousPosition']));}function _0x2228ab(_0x321dda){const {authorId:_0x23e54c}=_0x30026e['_splitMarkerName'](_0x1ab279['markerName']),_0xbe5d69=_0x160ead['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x242936,'data-author-id':_0x23e54c}),_0x482410=_0x160ead['mapper']['toViewPosition'](_0x321dda);_0x3fa9db&&_0x30026e['activeMarkers']['includes'](_0x1ab279['markerName'])&&_0x160ead['writer']['addClass']('ck-suggestion-marker--active',_0xbe5d69),_0x160ead['writer']['insert'](_0x482410,_0xbe5d69),_0x160ead['mapper']['bindElementToMarker'](_0xbe5d69,_0x1ab279['markerName']);}_0x145f6d||_0x5c7ee1||!_0x40fffa||_0x2228ab(_0x40fffa);};}class z extends _0x4e3ad1{static get['requires'](){return[_0x1baff1];}['init'](){const _0xdd7e83=this['editor'],_0x19e6b7=_0xdd7e83['plugins']['get']('TrackChangesEditing');_0x19e6b7['enableCommand']('delete');const _0x7ecdfa=_0xdd7e83['commands']['get']('deleteForward');_0x19e6b7['enableCommand']('deleteForward',(_0x202f52,_0x224740={})=>{const _0x399187=_0xdd7e83['model']['createSelection'](_0xdd7e83['model']['document']['selection']);_0x399187['isCollapsed']&&_0xdd7e83['model']['modifySelection'](_0x399187,{'direction':'forward','unit':_0x224740['unit']});const _0x3f5444=_0x399187['getFirstRange'](),_0x2197a2=_0x5e3685['fromRange'](_0x3f5444);let _0x52cd06;_0x202f52(_0x224740),_0x52cd06='$graveyard'==_0x2197a2['root']['rootName']?_0xdd7e83['model']['createRange'](_0x3f5444['start']):_0xdd7e83['model']['createRange'](_0x2197a2['start'],_0x2197a2['end']),_0x2197a2['detach'](),_0xdd7e83['model']['enqueueChange'](_0x7ecdfa['buffer']['batch'],_0x558fcd=>{_0x7ecdfa['buffer']['lock'](),_0x558fcd['setSelection'](_0x558fcd['createRange'](_0x52cd06['end'])),_0x7ecdfa['buffer']['unlock']();});}),_0xdd7e83['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xdd7e83,'merge'),{'priority':'high'}),_0xdd7e83['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2fd2e4,_0x1d93a1,_0x46777c)=>{_0x46777c['options']['showSuggestionHighlights']&&De(_0xdd7e83,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2fd2e4,_0x1d93a1,_0x46777c);},{'priority':'high'}),_0xdd7e83['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x16fc1a,_0x80e479,_0x54a2e7)=>{const _0xa4afae=_0x54a2e7['mapper']['markerNameToElements'](_0x80e479['markerName']);if(_0xa4afae){for(const _0x57bef2 of _0xa4afae)_0x57bef2['is']('uiElement')&&(_0x54a2e7['mapper']['unbindElementFromMarkerName'](_0x57bef2,_0x80e479['markerName']),_0x54a2e7['writer']['remove'](_0x57bef2));}},{'priority':'high'});}}class W extends _0x4e3ad1{['afterInit'](){const _0x1e70ec=this['editor'];if(!_0x1e70ec['plugins']['has']('ListEditing'))return;const _0x2de95c=_0x1e70ec['locale'],_0x4410a4=_0x1e70ec['plugins']['get']('TrackChangesEditing'),_0x118441=_0x1e70ec['plugins']['has']('TodoListEditing'),_0x4b5e97=!!_0x1e70ec['config']['get']('list.multiBlock');function _0xc673d2(_0x5e17ad){return{'type':'format','content':''+c(_0x2de95c,'*Set\x20format:*\x20%0',_0x5e17ad)};}function _0x5e57cd(_0x46c9a1){return{'type':'format','content':''+c(_0x2de95c,'*Remove\x20format:*\x20%0',_0x46c9a1)};}_0x4410a4['enableDefaultAttributesIntegration']('numberedList'),_0x4410a4['enableDefaultAttributesIntegration']('bulletedList'),_0x4410a4['enableDefaultAttributesIntegration']('customNumberedList'),_0x4410a4['enableDefaultAttributesIntegration']('customBulletedList'),_0x4410a4['enableDefaultAttributesIntegration']('indentList'),_0x4410a4['enableDefaultAttributesIntegration']('outdentList'),_0x4410a4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4410a4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4410a4['registerBlockAttribute']('listItemId'),_0x4410a4['registerBlockAttribute']('listType'),_0x4410a4['registerBlockAttribute']('listIndent'),_0x4b5e97&&(_0x4410a4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4410a4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x118441&&(_0x4410a4['enableDefaultAttributesIntegration']('todoList'),_0x4410a4['enableDefaultAttributesIntegration']('checkTodoList'),_0x4410a4['registerBlockAttribute']('todoListChecked'),_0x4410a4['descriptionFactory']['registerDescriptionCallback'](_0x1a58bd=>{const {data:_0x12535b}=_0x1a58bd;if(_0x12535b&&'todoListChecked'==_0x12535b['key'])return{'type':'format','content':_0x12535b['newValue']?c(_0x2de95c,'*Check\x20item*'):c(_0x2de95c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x25ba11=>{if(_0x25ba11['batch']['isUndo'])return!0x1;let _0x151315=!0x1;const _0x15a0f2=_0x4410a4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41afc1=>'todoListChecked'===_0x4410a4['_getAttributeKey'](_0x41afc1));for(const _0x3c5110 of _0x15a0f2){'todo'!=_0x3c5110['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4410a4['_findSuggestions'](_0x3c5110['getFirstRange'](),'attribute')['find'](_0x8a4c9b=>'listType'===_0x4410a4['_getAttributeKey'](_0x8a4c9b['suggestion']))||(_0x25ba11['removeMarker'](_0x3c5110['getFirstMarker']()),_0x151315=!0x0));}return _0x151315;})),_0x4410a4['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2de95c,'FORMAT_INDENT'));const _0x596001={'type':'format','content':''};_0x4410a4['descriptionFactory']['registerDescriptionCallback'](_0x21e518=>{const {data:_0x14ec2f}=_0x21e518;if(!_0x14ec2f||'listType'!=_0x14ec2f['key'])return;let _0x2929ae=_0x21e518['head'];for(;_0x2929ae;){if(_0x2929ae['data']&&(('listStyle'==_0x2929ae['data']['key']||'listMarkerStyle'==_0x2929ae['data']['key'])&&(_0x2929ae['data']['newValue']&&'default'!=_0x2929ae['data']['newValue']||'default'!=_0x2929ae['data']['oldValue']&&!_0x14ec2f['newValue'])||!_0x4b5e97&&_0x2929ae['data']['key']==u))return _0x596001;_0x2929ae=_0x2929ae['next'];}if(null==_0x14ec2f['newValue'])switch(_0x14ec2f['oldValue']){case'bulleted':return _0x5e57cd(c(_0x2de95c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e57cd(c(_0x2de95c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e57cd(c(_0x2de95c,'ELEMENT_TODO_LIST'));}switch(_0x14ec2f['newValue']){case'bulleted':return _0xc673d2(c(_0x2de95c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc673d2(c(_0x2de95c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc673d2(c(_0x2de95c,'ELEMENT_TODO_LIST'));}}),_0x4410a4['descriptionFactory']['registerDescriptionCallback'](_0x567770=>{const {data:_0x4e9479}=_0x567770;if(_0x4e9479&&'listIndent'==_0x4e9479['key'])return null==_0x4e9479['newValue']||null==_0x4e9479['oldValue']&&0x0==_0x4e9479['newValue']?_0x596001:void 0x0;}),_0x4410a4['descriptionFactory']['registerDescriptionCallback'](_0x3e8771=>{if('attribute'!=_0x3e8771['type'])return;const {data:_0x6a5bef}=_0x3e8771;if(!_0x6a5bef||'listItemId'!=_0x6a5bef['key'])return;const _0x31cc3f=Te(_0x3e8771);return'newValue'==_0x31cc3f?{'type':'format','content':c(_0x2de95c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31cc3f?{'type':'format','content':c(_0x2de95c,'*Split:*\x20list\x20item')}:_0x596001;}),_0x1e70ec['model']['document']['registerPostFixer'](_0x3a2c9e=>this['listItemIdFixer'](_0x3a2c9e)),_0x1e70ec['model']['document']['registerPostFixer'](_0x4323e4=>this['noTrackChangesFixer'](_0x4323e4)),_0x1e70ec['model']['document']['on']('change:data',(_0x1b4c79,_0x1f59c1)=>{if(_0x1f59c1['isUndo']||!_0x1f59c1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3d1a84){if(_0x3d1a84['batch']['isUndo']||!_0x3d1a84['batch']['isLocal'])return!0x1;let _0xa03db5=!0x1;const _0x14a120=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e7d2e=>_0x3e7d2e['data']&&'listItemId'==_0x3e7d2e['data']['key'])['filter'](_0x1c8e75=>_0x1c8e75['data']['newValue']&&_0x1c8e75['data']['oldValue']);for(const _0x5d81f0 of _0x14a120)Te(_0x5d81f0)||(_0x3d1a84['removeMarker'](_0x5d81f0['getFirstMarker']()),_0xa03db5=!0x0);return _0xa03db5;}['noTrackChangesFixer'](_0x512d7d){if(_0x512d7d['batch']['isUndo']||!_0x512d7d['batch']['isLocal'])return!0x1;const _0x4f684b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f684b['trackChangesCommand']['value'])return!0x1;let _0x38b116=!0x1;const _0x4d4051=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4bc7d1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x19a28b=>'attribute'==_0x19a28b['type'])['filter'](_0x33bb12=>_0x4d4051['includes'](_0x33bb12['attributeKey']));if(0x0==_0x4bc7d1['length'])return _0x38b116;for(const _0x4f2ed5 of _0x4bc7d1){const _0x518b7e=_0x4f684b['_findSuggestions'](_0x4f2ed5['range'],'attribute')['filter'](_0x3a5c22=>!_0x3a5c22['meta']['isNextTo'])['map'](_0x4ded63=>_0x4ded63['suggestion'])['filter'](_0x524870=>{const _0x5ea72c=_0x4f684b['_getAttributeKey'](_0x524870);return _0x4d4051['includes'](_0x5ea72c);});if(_0x518b7e['length']){for(const _0x106ae8 of _0x518b7e)_0x512d7d['removeMarker'](_0x106ae8['getFirstMarker']());_0x38b116=!0x0;}}return _0x38b116;}['assureChains'](){const _0x2820b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25e6b1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc9eed8;const _0x35ca39=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x58e5de=>{if(_0x58e5de['data']['oldRange']||!_0x58e5de['data']['newRange'])return null;if(!_0x58e5de['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x257541}=_0x2820b6['_splitMarkerName'](_0x58e5de['name']);if(!_0x2820b6['hasSuggestion'](_0x257541))return null;const _0x506813=_0x2820b6['getSuggestion'](_0x257541);return _0x25e6b1['includes'](_0x506813['data']['key']);})['map'](_0x191eaa=>{const {id:_0x4409a1}=_0x2820b6['_splitMarkerName'](_0x191eaa['name']),_0x2db128=_0x2820b6['getSuggestion'](_0x4409a1);return _0xc9eed8=_0x2db128['attributes']['groupId'],_0x2db128['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x35ca39['size'])return;const _0xd14475=_0x2820b6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17f615=>'attribute'==_0x17f615['type']&&_0x17f615['data']&&_0x25e6b1['includes'](_0x17f615['data']['key'])&&_0x17f615['attributes']['groupId']!=_0xc9eed8)['map'](_0x3c73f3=>({'listItem':_0x3c73f3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c73f3['attributes']['groupId']})),_0x5277f1=new Set();for(const {groupId:_0x5db772,listItem:_0x31aa7d}of _0xd14475)_0x35ca39['has'](_0x31aa7d)&&_0x5277f1['add'](_0x5db772);for(const _0x54090a of _0x2820b6['getSuggestions']())_0x5277f1['has'](_0x54090a['attributes']['groupId'])&&_0x54090a['setAttribute']('groupId',_0xc9eed8);}['_supportLegacySuggestions'](){const _0x1ea232=this['editor'],_0x5d6a85=_0x1ea232['locale'],_0x435998=_0x1ea232['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x435998['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25fa5e,_0x57737c){const _0x4d2174=[];for(let _0x1d35c1 of _0x25fa5e)_0x1d35c1['start']['nodeAfter']===_0x1d35c1['end']['parent']&&(_0x1d35c1=_0x1ea232['model']['createRange'](_0x1ea232['model']['createPositionAt'](_0x1d35c1['start']['nodeAfter'],0x0))),_0x4d2174['push'](_0x1d35c1);_0x1ea232['model']['change'](_0x5a4ab3=>{const _0xa2b7f8=_0x1ea232['model']['document']['selection'],_0x40ca86=Array['from'](_0xa2b7f8['getRanges']())['map'](_0x1440a8=>_0x5e3685['fromRange'](_0x1440a8));_0x5a4ab3['setSelection'](_0x4d2174),_0x1ea232['commands']['get'](_0x57737c['commandName'])['refresh'](),_0x57737c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1ea232['execute'](_0x57737c['commandName'],..._0x57737c['commandParams']),_0x5a4ab3['setSelection'](_0x40ca86);for(const _0x433148 of _0x40ca86)_0x433148['detach']();});}),_0x435998['descriptionFactory']['registerElementLabel'](function(_0x48db75){const _0x6ce1a2=!_0x1ea232['model']['schema']['isObject'](_0x48db75),_0x2d8ee4=_0x48db75['previousSibling'],_0x331302=_0x48db75['nextSibling'],_0x47cb38=_0x48db75['getAttribute']('listItemId'),_0x4191f2=!_0x2d8ee4||_0x2d8ee4['getAttribute']('listItemId')!==_0x47cb38,_0x51718c=!_0x331302||_0x331302['getAttribute']('listItemId')!==_0x47cb38;return _0x6ce1a2&&Boolean(_0x47cb38)&&_0x4191f2&&_0x51718c;},_0x30303b=>c(_0x5d6a85,'ELEMENT_LIST_ITEM',_0x30303b));}['_registerLegacyDescription'](){const _0x284c5d=this['editor'],_0x476c13=_0x284c5d['locale'];function _0x4f3edb(_0x330e3c){const _0x45d2c4=_0x284c5d['commands']['get']('bulletedList')['value'],_0x11243d=_0x284c5d['commands']['get']('numberedList')['value'];return'numberedList'===_0x330e3c?_0x45d2c4:_0x11243d;}_0x284c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d06e1){if('formatBlock'!=_0x5d06e1['type'])return;const {data:_0x199930}=_0x5d06e1;if(!_0x199930)return;let _0x27e7f2,_0x1b97e3,_0x4c2d52,_0x62623;switch(_0x199930['commandName']){case'bulletedList':_0x4c2d52=_0x199930['commandParams'][0x0]['forceValue'],_0x62623=_0x4f3edb(_0x199930['commandName']),_0x27e7f2=_0x4c2d52?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x62623&&_0x284c5d['config']['get']('list.multiBlock')||(_0x27e7f2='*Change\x20to:*\x20%0'),_0x1b97e3={'type':'format','content':c(_0x476c13,_0x27e7f2,c(_0x476c13,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c2d52=_0x199930['commandParams'][0x0]['forceValue'],_0x62623=_0x4f3edb(_0x199930['commandName']),_0x27e7f2=_0x4c2d52?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x62623&&_0x284c5d['config']['get']('list.multiBlock')||(_0x27e7f2='*Change\x20to:*\x20%0'),_0x1b97e3={'type':'format','content':c(_0x476c13,_0x27e7f2,c(_0x476c13,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27e7f2='*Indent:*\x20%0',_0x1b97e3={'type':'format','content':c(_0x476c13,_0x27e7f2,c(_0x476c13,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27e7f2=function(_0x42a799){const _0x58f47b=_0x42a799['getFirstRange']();let _0x516e01=_0x58f47b['start']['nodeAfter'];for(;_0x516e01&&_0x58f47b['containsItem'](_0x516e01);){if(_0x516e01['getAttribute']('listIndent')>0x0)return!0x1;_0x516e01=_0x516e01['nextSibling'];}return!0x0;}(_0x5d06e1)?c(_0x476c13,'*Format:*\x20remove\x20from\x20%0',c(_0x476c13,function(_0x352b04){return'ELEMENT_'+_0x352b04['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d06e1))):c(_0x476c13,'*Outdent:*\x20%0',c(_0x476c13,'ELEMENT_LIST_ITEM')),_0x1b97e3={'type':'format','content':_0x27e7f2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x199930['multipleBlocks']&&(_0x27e7f2='*Merge:*\x20%0',_0x1b97e3={'type':'deletion','content':c(_0x476c13,_0x27e7f2,c(_0x476c13,'ELEMENT_LIST_ITEM'))});}return _0x1b97e3;});}}function Te(_0xe9e27){let _0x127615=_0xe9e27['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x127615;){const _0xee44d=_0x127615['getAttribute']('listItemId');if(!_0xee44d)return!0x1;if(_0xee44d==_0xe9e27['data']['newValue'])return'newValue';if(_0xee44d==_0xe9e27['data']['oldValue'])return'oldValue';_0x127615=_0x127615['previousSibling'];}return!0x1;}class Se extends _0x4e3ad1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x43166d=this['editor']['config']['get']('list.properties'),_0x4ff905=this['editor']['plugins']['get']('TrackChangesEditing');_0x43166d['styles']&&(_0x4ff905['enableDefaultAttributesIntegration']('listStyle'),_0x4ff905['registerBlockAttribute']('listStyle')),_0x43166d['reversed']&&(_0x4ff905['enableDefaultAttributesIntegration']('listReversed'),_0x4ff905['registerBlockAttribute']('listReversed')),_0x43166d['startIndex']&&(_0x4ff905['enableDefaultAttributesIntegration']('listStart'),_0x4ff905['registerBlockAttribute']('listStart'));const _0x27cb7a={'type':'format','content':''};_0x4ff905['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x19ce77=this['editor']['locale'];_0x4ff905['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x19ce77,'FORMAT_LIST_REVERSED')),_0x4ff905['descriptionFactory']['registerDescriptionCallback'](_0x426ce9=>{const {data:_0x213b84}=_0x426ce9;if(_0x213b84&&'listReversed'==_0x213b84['key'])return null==_0x213b84['newValue']||0x0==_0x213b84['newValue']&&null==_0x213b84['oldValue']?_0x27cb7a:void 0x0;}),_0x4ff905['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x19ce77,'FORMAT_LIST_START')),_0x4ff905['descriptionFactory']['registerDescriptionCallback'](_0xf633b0=>{const {data:_0x333367}=_0xf633b0;if(_0x333367&&'listStart'==_0x333367['key'])return null==_0x333367['newValue']||0x1==_0x333367['newValue']&&null==_0x333367['oldValue']?_0x27cb7a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x55f1b5=>{if(_0x55f1b5['batch']['isUndo'])return!0x1;let _0xc77ee5=!0x1;const _0x4c2c34=_0x4ff905['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cd06d=>{const _0x58e805=_0x4ff905['_getAttributeKey'](_0x2cd06d);return'listStart'==_0x58e805||'listReversed'==_0x58e805;});for(const _0x43814c of _0x4c2c34){const _0x4c272c=_0x43814c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c272c||'customNumbered'==_0x4c272c)continue;_0x4ff905['_findSuggestions'](_0x43814c['getFirstRange'](),'attribute')['find'](_0x54a59a=>'listType'==_0x4ff905['_getAttributeKey'](_0x54a59a['suggestion']))||(_0x55f1b5['removeMarker'](_0x43814c['getFirstMarker']()),_0xc77ee5=!0x0);}return _0xc77ee5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x296e4e){const _0x1b047e=this['editor']['locale'],{data:_0x369f22}=_0x296e4e,_0x4eea68={'type':'format','content':''};if(!_0x369f22||'listStyle'!=_0x369f22['key'])return;if(!_0x369f22['oldValue'])return'default'==_0x369f22['newValue']?_0x4eea68:{'type':'format','content':''+c(_0x1b047e,'*Set\x20format:*\x20%0',c(_0x1b047e,this['_getTranslationKeyForListStyle'](_0x369f22['newValue'])))};if(!_0x369f22['newValue']){if('default'==_0x369f22['oldValue'])return _0x4eea68;let _0x4949c6=_0x296e4e['head'];for(;_0x4949c6;){if(_0x4949c6['data']&&'listType'==_0x4949c6['data']['key']&&_0x4949c6['data']['newValue'])return _0x4eea68;_0x4949c6=_0x4949c6['next'];}return{'type':'format','content':''+c(_0x1b047e,'*Remove\x20format:*\x20%0',c(_0x1b047e,this['_getTranslationKeyForListStyle'](_0x369f22['oldValue'])))};}if('default'!=_0x369f22['newValue'])return{'type':'format','content':''+c(_0x1b047e,'*Set\x20format:*\x20%0',c(_0x1b047e,this['_getTranslationKeyForListStyle'](_0x369f22['newValue'])))};let _0x453832=_0x296e4e['head'];for(;_0x453832;){if(_0x453832['data']&&'listType'==_0x453832['data']['key']&&_0x453832['data']['newValue']&&_0x453832['data']['oldValue'])return _0x4eea68;_0x453832=_0x453832['next'];}return{'type':'format','content':c(_0x1b047e,'*Set\x20format:*\x20%0',c(_0x1b047e,'ELEMENT_'+_0x296e4e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a97ba=this['editor'],_0x160489=_0x4a97ba['locale'];_0x4a97ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3655f7=>{if('formatBlock'!=_0x3655f7['type'])return;const {data:_0x2dfc2c}=_0x3655f7;if(!_0x2dfc2c)return;let _0x40bb01,_0x3254b0;switch(_0x2dfc2c['commandName']){case'listStyle':_0x40bb01='*Change\x20to:*\x20%0',_0x3254b0={'type':'format','content':c(_0x160489,_0x40bb01,c(_0x160489,this['_getTranslationKeyForListStyle'](_0x2dfc2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40bb01=_0x2dfc2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3254b0={'type':'format','content':c(_0x160489,_0x40bb01)};break;case'listStart':_0x40bb01='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3254b0={'type':'format','content':c(_0x160489,_0x40bb01,_0x2dfc2c['commandParams'][0x0]['startIndex'])};}return _0x3254b0;});}['_getTranslationKeyForListStyle'](_0x29ca9a){return'ELEMENT_'+function(_0xbf79b8){if(_e['includes'](_0xbf79b8))return'bulleted';if(Re['includes'](_0xbf79b8))return'numbered';return null;}(_0x29ca9a)['toUpperCase']()+'_LIST_'+_0x29ca9a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4e3ad1{['afterInit'](){const _0x1bccac=this['editor'];_0x1bccac['commands']['get']('emoji')&&_0x1bccac['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x4e3ad1{static get['requires'](){return[_0x536ea2];}['init'](){const _0x344a2e=this['editor'],_0x318581=_0x344a2e['plugins']['get']('TrackChangesEditing'),_0x1929f0=_0x344a2e['commands']['get']('enter');_0x318581['enableCommand']('enter',()=>{_0x344a2e['model']['change'](_0x3eb30d=>{const _0x5a2262=_0x344a2e['model']['document']['selection'],_0x52d061=_0x5a2262['getFirstPosition'](),_0x586c36=_0x5e3685['fromRange'](_0x5a2262['getFirstRange']());if(_0x1929f0['enterBlock'](_0x3eb30d)){const _0xf13ecb=_0x344a2e['model']['createPositionAt'](_0x52d061['parent']['nextSibling'],0x0),_0x30e7ef=_0x3eb30d['createRange'](_0x52d061,_0xf13ecb);_0x318581['markInsertion'](_0x30e7ef);}else _0x3eb30d['setSelection'](_0x3eb30d['createRange'](_0x586c36['end']));_0x586c36['detach'](),_0x1929f0['fire']('afterExecute',{'writer':_0x3eb30d});});}),_0x344a2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x344a2e,'split'),{'priority':'high'}),_0x344a2e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x10f6e4,_0x5d4da3,_0x2a41f5)=>{const _0x28753f=_0x2a41f5['mapper']['markerNameToElements'](_0x5d4da3['markerName']);if(_0x28753f){for(const _0x3660f7 of _0x28753f)_0x3660f7['hasClass']('ck-suggestion-marker-split')&&(_0x2a41f5['mapper']['unbindElementFromMarkerName'](_0x3660f7,_0x5d4da3['markerName']),_0x2a41f5['writer']['remove'](_0x3660f7));}},{'priority':'high'}),_0x344a2e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x441f10,_0x4924b9,_0x2dd801)=>{_0x2dd801['options']['showSuggestionHighlights']&&De(_0x344a2e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x441f10,_0x4924b9,_0x2dd801);},{'priority':'high'});}}class Z extends _0x4e3ad1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4005f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4005f0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4005f0['enableCommand']('findNext'),_0x4005f0['enableCommand']('findPrevious'),_0x4005f0['enableCommand']('replace'),_0x4005f0['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f6b47,_0x891e93,_0x227307={}){const _0x41856b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f6b47(_0x321712=>{let _0x1ba8e6=('string'==typeof _0x891e93?_0x41856b['findByTextCallback'](_0x891e93,_0x227307):_0x891e93)(_0x321712);Array['isArray'](_0x1ba8e6)&&(_0x1ba8e6={'results':_0x1ba8e6,'searchText':'string'==typeof _0x891e93?_0x891e93:''});const _0x5beed9=_0x1ba8e6['results']['filter'](_0x114183=>!0x1===this['_isInDeletionRange'](_0x114183,_0x321712['item']));return{..._0x1ba8e6,'results':_0x5beed9};},_0x227307);}['_isInDeletionRange'](_0x3215ff,_0x347a0b){const _0x1d96c7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x347a0b,_0x3215ff['start']),this['editor']['model']['createPositionAt'](_0x347a0b,_0x3215ff['end']));for(const _0xa502ab of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1d96c7['getIntersection'](_0xa502ab['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x4e3ad1{['afterInit'](){const _0x33ddf4=this['editor']['locale'],_0x35faa5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d0753,commandName:_0x2503d6}of eo)this['editor']['plugins']['has'](_0x3d0753)&&(_0x35faa5['enableDefaultAttributesIntegration'](_0x2503d6),_0x35faa5['registerInlineAttribute'](_0x2503d6));_0x35faa5['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x33ddf4,'FORMAT_FONT_SIZE')),_0x35faa5['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x33ddf4,'FORMAT_FONT_FAMILY')),_0x35faa5['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x33ddf4,'FORMAT_FONT_COLOR')),_0x35faa5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x33ddf4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41c1a2=this['editor'],_0x3d72fa=_0x41c1a2['locale'];_0x41c1a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25f49c=>{const _0x47ae6c=_0x3d72fa['t'];if('formatInline'!=_0x25f49c['type'])return;const {data:_0x3dab10}=_0x25f49c;if(null!=_0x3dab10){if('fontSize'==_0x3dab10['commandName']){const _0x30a9a7=_0x3dab10['commandParams'][0x0]['value'];if(_0x30a9a7){const _0x1c59d9=_0x47ae6c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x395c56=>_0x395c56['model']==_0x30a9a7)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3d72fa,'*Set\x20font\x20size:*\x20%0',_0x1c59d9)};}return{'type':'format','content':c(_0x3d72fa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dab10['commandName']){const _0x539c26=_0x3dab10['commandParams'][0x0]['value'];return _0x539c26?{'type':'format','content':c(_0x3d72fa,'*Set\x20font\x20family:*\x20%0',_0x539c26)}:{'type':'format','content':c(_0x3d72fa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dab10['commandName']){const _0x1c4ab8=_0x3dab10['commandParams'][0x0]['value'];if(_0x1c4ab8){const _0xd4cba=_0x26563b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x524490=>_0x524490['model']==_0x1c4ab8);let _0x58095c=_0x1c4ab8,_0x260815='';return _0xd4cba&&(_0x58095c=_0xd4cba['label'],_0x260815=_0x47ae6c(_0x58095c)['toLowerCase']()),{'type':'format','content':c(_0x3d72fa,'*Set\x20font\x20color:*\x20%0',_0x260815)['trim'](),'color':{'value':_0x1c4ab8,'title':_0x260815||_0x58095c}};}return{'type':'format','content':c(_0x3d72fa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dab10['commandName']){const _0x512dfc=_0x3dab10['commandParams'][0x0]['value'];if(_0x512dfc){const _0x276ceb=_0x26563b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x594975=>_0x594975['model']==_0x512dfc);let _0x1287e4=_0x512dfc,_0x35e9e6='';return _0x276ceb&&(_0x1287e4=_0x276ceb['label'],_0x35e9e6=_0x47ae6c(_0x1287e4)['toLowerCase']()),{'type':'format','content':c(_0x3d72fa,'*Set\x20font\x20background\x20color:*\x20%0',_0x35e9e6)['trim'](),'color':{'value':_0x512dfc,'title':_0x35e9e6||_0x1287e4}};}return{'type':'format','content':c(_0x3d72fa,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4e3ad1{['afterInit'](){const _0x281362=this['editor'],_0x474b53=_0x281362['plugins']['get']('TrackChangesEditing'),_0x1d5a7c=_0x281362['commands']['get']('copyFormat'),_0x2b54fd=_0x281362['commands']['get']('pasteFormat');_0x1d5a7c&&_0x2b54fd&&(_0x474b53['enableDefaultAttributesIntegration']('pasteFormat'),_0x474b53['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4be977=this['editor'],_0x5adb1d=_0x4be977['locale'];_0x4be977['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb7d5a2=>{if('formatBlock'!=_0xb7d5a2['type']&&'formatInline'!=_0xb7d5a2['type'])return;const {data:_0x320b89}=_0xb7d5a2;if(_0x320b89&&'pasteFormat'===_0x320b89['commandName']){const _0x4c5e48=[],_0x212adf=_0x320b89['commandParams'][0x0];for(const [_0x40b631,_0x39c95f]of Object['entries'](_0x212adf))_0x4c5e48['push'](ro(_0x4be977,_0x40b631,_0x39c95f));return _0x4c5e48['length']?{'type':'format','content':c(_0x5adb1d,'*Set\x20format\x20to:*\x20%0',_0x4c5e48['join'](',\x20'))}:{'type':'format','content':c(_0x5adb1d,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x42c3f6,_0x6df10d,_0x4974b4){const _0x4a2863=_0x42c3f6['locale']['t'],_0x83aa8f=_0x6df10d['split'](/(?=[A-Z])/)['join']('\x20'),_0x252725=_0x4a2863(_0x83aa8f['charAt'](0x0)['toUpperCase']()+_0x83aa8f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4974b4)return _0x252725;if('fontColor'===_0x6df10d||'fontBackgroundColor'===_0x6df10d){const _0x212a5d=_0x26563b(_0x42c3f6['config']['get']('fontColor.colors'))['find'](_0xc09846=>_0xc09846['model']==_0x4974b4);return _0x252725+'\x20('+(_0x212a5d?_0x4a2863(_0x212a5d['label'])['toLowerCase']():_0x4974b4)+')';}if('fontSize'===_0x6df10d&&isNaN(parseFloat(_0x4974b4))){const _0x328151=_0x42c3f6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x42c3f6['config']['get']('fontSize.options'))['find'](_0x5a772e=>_0x5a772e['model']==_0x4974b4);return _0x252725+'\x20('+(_0x328151?_0x4a2863(_0x328151['title'])['toLowerCase']():_0x4974b4)+')';}return _0x252725+'\x20('+_0x4974b4+')';}class nt extends _0x4e3ad1{['_headingOptions'];['afterInit'](){const _0x3f18c4=this['editor'];if(!_0x3f18c4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f18c4['config']['get']('heading.options');const _0x3fc37a=_0x3f18c4['locale'],_0x41b7a4=_0x3f18c4['plugins']['get']('TrackChangesEditing');_0x41b7a4['enableDefaultAttributesIntegration']('heading');for(const _0x10d019 of this['_headingOptions'])'paragraph'!=_0x10d019['model']&&_0x41b7a4['descriptionFactory']['registerElementLabel'](_0x10d019['model'],_0x12811d=>{const _0x219a7e=this['_getHeadingLevel'](_0x10d019['model']);return null!==_0x219a7e?_0x245911(_0x12811d,_0x219a7e):_0x5979f8(_0x12811d,_0x10d019['title']);});function _0x245911(_0x345995,_0x33ac56){return c(_0x3fc37a,'ELEMENT_HEADING',[_0x345995,_0x33ac56]);}function _0x5979f8(_0x25328f,_0x2cccb4){return c(_0x3fc37a,'ELEMENT_HEADING_CUSTOM',[_0x25328f,_0x2cccb4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205175=this['editor'],_0x14f744=_0x205175['locale'];function _0x425df4(_0x4104fb,_0x4377e7){return c(_0x14f744,'ELEMENT_HEADING_CUSTOM',[_0x4104fb,_0x4377e7]);}_0x205175['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc7c8c=>{if('formatBlock'!=_0xdc7c8c['type'])return;const {data:_0x3cb3e6}=_0xdc7c8c;if(_0x3cb3e6&&'heading'==_0x3cb3e6['commandName']){const _0x534d38=_0x3cb3e6['commandParams'][0x0]['value'],_0x4e605e=this['_getHeadingLevel'](_0x534d38);if(null!==_0x4e605e)return{'type':'format','content':c(_0x14f744,'*Change\x20to:*\x20%0',(_0x253388=0x1,_0x14e721=_0x4e605e,c(_0x14f744,'ELEMENT_HEADING',[_0x253388,_0x14e721])))};const _0x54611e=this['_headingOptions']['find'](_0x508c09=>_0x508c09['model']===_0x534d38)['title'];return{'type':'format','content':c(_0x14f744,'*Change\x20to:*\x20%0',_0x425df4(0x1,_0x54611e))};}var _0x253388,_0x14e721;});}['_getHeadingLevel'](_0x5bdd9c){const _0x1c49a7=_0x5bdd9c['match'](/^heading(\d+)/);if(_0x1c49a7)return _0x1c49a7[0x1];const _0x3c4620=this['_headingOptions']?.['find'](_0xf1d950=>_0xf1d950['model']==_0x5bdd9c);if(_0x3c4620&&_0x3c4620['view']){const _0x92a8b4=_0x3c4620['view'],_0x3abde2=(_0x92a8b4['name']??_0x92a8b4)['match'](/^h(\d+)/);if(_0x3abde2)return _0x3abde2[0x1];}return null;}}class it extends _0x4e3ad1{['afterInit'](){const _0x419df8=this['editor'];if(!_0x419df8['plugins']['has']('HighlightEditing'))return;const _0x1441ab=_0x419df8['plugins']['get']('TrackChangesEditing'),_0x2a5a0c=_0x419df8['locale'];_0x1441ab['enableDefaultAttributesIntegration']('highlight'),_0x1441ab['registerInlineAttribute']('highlight'),_0x1441ab['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x2a5a0c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b6d2=this['editor'],_0x368add=_0x30b6d2['locale'];_0x30b6d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a15ff=>{if('formatInline'!=_0x1a15ff['type'])return;const {data:_0x4c0027}=_0x1a15ff;if(_0x4c0027&&'highlight'==_0x4c0027['commandName']){const _0x42a23e=_0x368add['t'],_0x35f1a9=_0x4c0027['commandParams'][0x0]['value'];if(_0x35f1a9){const _0x2138ad=_0x30b6d2['config']['get']('highlight.options')['find'](_0x362a7b=>_0x362a7b['model']==_0x35f1a9),_0x14a56a=_0x42a23e(_0x2138ad['title'])['toLowerCase']();return{'type':'format','content':c(_0x368add,'*Set\x20highlight:*\x20%0',_0x14a56a),'color':{'value':_0x2138ad['color'],'title':_0x2138ad['title']}};}return{'type':'format','content':c(_0x368add,'*Remove\x20highlight*',c(_0x368add,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4e3ad1{['afterInit'](){const _0x3c4e57=this['editor'];if(!_0x3c4e57['plugins']['has']('HorizontalLineEditing'))return;_0x3c4e57['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2ec070=_0x3c4e57['plugins']['get']('TrackChangesEditing'),_0x5278fb=_0x3c4e57['locale'];_0x2ec070['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59b46a=>c(_0x5278fb,'ELEMENT_HORIZONTAL_LINE',_0x59b46a)),_0x3c4e57['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2373b1,{writer:_0x205fc4,options:_0x4c1af7})=>{if(!_0x4c1af7['showSuggestionHighlights'])return null;const _0xa816c3=_0x205fc4['createContainerElement']('div'),_0x3481a9=_0x205fc4['createEmptyElement']('hr');return _0x205fc4['addClass']('ck-horizontal-line',_0xa816c3),_0x205fc4['insert'](_0x205fc4['createPositionAt'](_0xa816c3,0x0),_0x3481a9),_0xa816c3;},'converterPriority':'high'});}}class ot extends _0x4e3ad1{['afterInit'](){const _0x54f5ee=this['editor'];if(!_0x54f5ee['plugins']['has']('HtmlEmbed'))return;const _0x241e56=_0x54f5ee['plugins']['get']('TrackChangesEditing'),_0x3c15e9=_0x54f5ee['locale'];_0x241e56['descriptionFactory']['registerElementLabel']('rawHtml',_0x348074=>c(_0x3c15e9,'ELEMENT_HTML_EMBED',_0x348074)),_0x241e56['enableDefaultAttributesIntegration']('htmlEmbed'),_0x241e56['registerBlockAttribute']('value'),_0x241e56['descriptionFactory']['registerDescriptionCallback'](_0x2bb33a=>{if('attribute'!=_0x2bb33a['type'])return;const {data:_0x107414}=_0x2bb33a;if(_0x107414&&'value'==_0x107414['key']&&_0x2bb33a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46a65d=c(_0x3c15e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3c15e9,'*Change\x20%0\x20content*',_0x46a65d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84f9b2=this['editor'],_0x55e48a=_0x84f9b2['locale'];_0x84f9b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2547b4=>{if('formatBlock'!=_0x2547b4['type'])return;const {data:_0x157415}=_0x2547b4;if(_0x157415&&'htmlEmbed'==_0x157415['commandName']){const _0x4b6028=c(_0x55e48a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x55e48a,'*Change\x20%0\x20content*',_0x4b6028)};}});}}class rt extends _0x4e3ad1{['afterInit'](){const _0xc738c1=this['editor'];if(!_0xc738c1['plugins']['has']('ImageEditing'))return;const _0x233c2f=_0xc738c1['plugins']['get']('TrackChangesEditing'),_0x391cef=_0xc738c1['plugins']['get']('ImageUtils'),_0x1fcc33=_0xc738c1['locale'];_0x233c2f['enableCommand']('insertImage'),_0x233c2f['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c3070=>c(_0x1fcc33,'ELEMENT_IMAGE',_0x2c3070)),_0x233c2f['descriptionFactory']['registerElementLabel']('imageInline',_0x50a4f6=>c(_0x1fcc33,'ELEMENT_INLINE_IMAGE',_0x50a4f6)),_0x233c2f['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1fcc33,'ELEMENT_CAPTION')),_0xc738c1['plugins']['has']('ImageUploadEditing')&&_0x233c2f['enableCommand']('uploadImage'),_0xc738c1['plugins']['has']('ImageBlockEditing')&&_0xc738c1['plugins']['has']('ImageInlineEditing')&&(_0x233c2f['enableCommand']('imageTypeInline',(_0xa16a18,_0x110dc8)=>{const _0x3a1d3d=_0x391cef['getClosestSelectedImageElement'](_0xc738c1['model']['document']['selection']);_0xc738c1['model']['change'](()=>{_0x233c2f['markBlockFormat'](_0x3a1d3d,{'commandName':'imageTypeInline','commandParams':[_0x110dc8]},[],'convertBlockImageToInline');});}),_0x233c2f['enableCommand']('imageTypeBlock',(_0x11e38b,_0x3626e9)=>{_0xc738c1['model']['change'](_0x49b411=>{let _0x4692bf=_0x391cef['getClosestSelectedImageElement'](_0xc738c1['model']['document']['selection']),_0x25e9af=_0x49b411['createRangeOn'](_0x4692bf);const _0x3d8ce9=_0x546232['fromPosition'](_0x25e9af['start'],'toPrevious'),_0x3c1f77=_0x546232['fromPosition'](_0x25e9af['end'],'toNext');_0x233c2f['forceDefaultExecution'](()=>_0x11e38b(_0x3626e9)),_0x4692bf=_0x391cef['getClosestSelectedImageElement'](_0xc738c1['model']['document']['selection']),_0x25e9af=_0x49b411['createRangeOn'](_0x4692bf);const _0x477016=_0x49b411['createRange'](_0x3d8ce9,_0x3c1f77);_0x3d8ce9['detach'](),_0x3c1f77['detach'](),_0x233c2f['markBlockFormat'](_0x4692bf,{'commandName':'imageTypeInline','commandParams':[_0x3626e9]},[],'convertInlineImageToBlock'),_0x477016['start']['isBefore'](_0x25e9af['start'])&&_0x233c2f['markInsertion'](_0x49b411['createRange'](_0x477016['start'],_0x25e9af['start']),'convertInlineImageToBlock'),_0x25e9af['end']['isBefore'](_0x477016['end'])&&_0x233c2f['markInsertion'](_0x49b411['createRange'](_0x25e9af['end'],_0x477016['end']),'convertInlineImageToBlock');});}),_0x233c2f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x233c2f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x233c2f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x233c2f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x233c2f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x233c2f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x26fd86])=>{const _0x38cf53=_0x233c2f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4c1df7=_0x26fd86['start'],_0x1ca1d6=_0x26fd86['end'];const _0x53651f=_0xc738c1['model']['schema']['getNearestSelectionRange'](_0x4c1df7,'backward'),_0x5431a5=_0xc738c1['model']['schema']['getNearestSelectionRange'](_0x1ca1d6,'forward');_0x53651f['isCollapsed']&&(_0x4c1df7=_0x53651f['start']),_0x5431a5['isCollapsed']&&(_0x1ca1d6=_0x5431a5['end']),_0x38cf53([_0xc738c1['model']['createRange'](_0x4c1df7,_0x1ca1d6)]);}),_0x233c2f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf77cc7),_0x233c2f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf77cc7)),_0xc738c1['plugins']['has']('ImageCaptionEditing')&&(_0x233c2f['enableCommand']('toggleImageCaption',(_0x3f6e4e,_0x20832e)=>{const _0x4ef6cb=_0xc738c1['plugins']['get']('ImageCaptionUtils');let _0x66bd58=_0x391cef['getClosestSelectedImageElement'](_0xc738c1['model']['document']['selection']),_0x437a19=_0x4ef6cb['getCaptionFromImageModelElement'](_0x66bd58);_0xc738c1['model']['change'](()=>{if(_0x437a19)return void _0x233c2f['markDeletion'](_0xc738c1['model']['createRangeOn'](_0x437a19));const _0x123a9d=_0x391cef['isBlockImage'](_0x66bd58);_0x3f6e4e(_0x20832e),_0x66bd58=_0x391cef['getClosestSelectedImageElement'](_0xc738c1['model']['document']['selection']),_0x437a19=_0x4ef6cb['getCaptionFromImageModelElement'](_0x66bd58),_0x233c2f['markInsertion'](_0xc738c1['model']['createRangeOn'](_0x437a19),_0x123a9d?null:'imageCaption');});}),_0x233c2f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf77cc7));const _0x415489=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a5c1e(_0xb011a1,_0x55d432){const _0x35d875=_0x415489['findIndex'](({type:_0x48ef44,subType:_0x2f12f8})=>_0xb011a1['type']==_0x48ef44&&_0xb011a1['subType']==_0x2f12f8),_0x89e521=_0x415489['findIndex'](({type:_0x394a61,subType:_0x2bb94e})=>_0x55d432['type']==_0x394a61&&_0x55d432['subType']==_0x2bb94e);if(_0x35d875<0x0||_0x89e521<0x0)return!0x1;const _0xa794bd=_0xb011a1['getFirstRange'](),_0x19d9c7=_0x55d432['getFirstRange']();if((0x0==_0x35d875||0x1==_0x35d875)&&0x2==_0x89e521&&_0xa794bd['isIntersecting'](_0x19d9c7))return!0x0;if(0x2==_0x35d875&&0x3==_0x89e521){const _0x1eb61a=_0x233c2f['_findSuggestions'](_0xa794bd,'insertion')['filter'](({suggestion:_0x36b78f,meta:_0xc385d0})=>_0xc385d0['isOwn']&&'convertInlineImageToBlock'==_0x36b78f['subType']);if(_0x1eb61a['length']>0x1&&_0x19d9c7['end']['isEqual'](_0xa794bd['start']))return!0x0;if(0x1==_0x1eb61a['length']&&(_0xa794bd['start']['isEqual'](_0x19d9c7['end'])||_0xa794bd['end']['isEqual'](_0x19d9c7['start'])))return!0x0;}if(0x3==_0x35d875&&0x3==_0x89e521&&_0xa794bd['start']['isBefore'](_0x19d9c7['start'])){const _0x39b3a3=_0xa794bd['end']['nodeAfter'],_0xea412f=_0x19d9c7['start']['nodeBefore'];return _0x391cef['isBlockImage'](_0x39b3a3)&&_0x39b3a3===_0xea412f;}return!0x1;}function _0xf77cc7(_0x4bcd67,_0xf9b0f4){return _0x1a5c1e(_0x4bcd67,_0xf9b0f4)?[_0x4bcd67,_0xf9b0f4]:_0x1a5c1e(_0xf9b0f4,_0x4bcd67)?[_0xf9b0f4,_0x4bcd67]:null;}_0xc738c1['plugins']['has']('ImageResize')&&(_0x233c2f['enableDefaultAttributesIntegration']('resizeImage'),_0x233c2f['registerBlockAttribute']('resizedWidth'),_0x233c2f['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1fcc33,'FORMAT_IMAGE_SIZE'))),_0xc738c1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x233c2f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x233c2f['registerBlockAttribute']('alt')),_0xc738c1['plugins']['has']('PictureEditing')&&(_0x233c2f['registerBlockAttribute']('sources'),_0x233c2f['descriptionFactory']['registerDescriptionCallback'](_0x2967ff=>{if('attribute'!=_0x2967ff['type'])return;const {data:_0x440768}=_0x2967ff;return _0x440768&&'sources'==_0x440768['key']?{'type':'format','content':''}:void 0x0;})),_0xc738c1['plugins']['has']('ImageSizeAttributes')&&(_0x233c2f['registerBlockAttribute']('width'),_0x233c2f['registerBlockAttribute']('height'),_0x233c2f['descriptionFactory']['registerDescriptionCallback'](_0x2232ee=>{if('attribute'!=_0x2232ee['type'])return;const {data:_0x5bc88c}=_0x2232ee;return!_0x5bc88c||'width'!=_0x5bc88c['key']&&'height'!=_0x5bc88c['key']?void 0x0:{'type':'format','content':''};})),_0x233c2f['descriptionFactory']['registerDescriptionCallback'](_0x49921b=>{if(!!_0x415489['find'](({type:_0x49494f,subType:_0x3d5dcd})=>_0x49921b['type']==_0x49494f&&_0x49921b['subType']==_0x3d5dcd))return _0x49921b['previous']?{}:void 0x0;}),_0x233c2f['descriptionFactory']['registerDescriptionCallback'](_0x19c12e=>{if('insertion'==_0x19c12e['type']||'deletion'==_0x19c12e['type']){const _0x3db306=_0x19c12e['getContainedElement']();if(_0x3db306&&_0x3db306['is']('element','caption'))return{'type':'insertion'==_0x19c12e['type']?'addObject':'removeObject','element':_0x3db306,'quantity':0x1};}}),_0x233c2f['descriptionFactory']['registerDescriptionCallback'](_0x1dfb93=>'formatBlock'==_0x1dfb93['type']&&'convertInlineImageToBlock'==_0x1dfb93['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1dfb93['type']&&'convertBlockImageToInline'==_0x1dfb93['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x233c2f['descriptionFactory']['registerDescriptionCallback'](_0x1945a3=>{if('attribute'!=_0x1945a3['type'])return;const {data:_0xd8e8c3}=_0x1945a3;if(!_0xd8e8c3||'alt'!=_0xd8e8c3['key'])return;const _0x4940b1=_0xd8e8c3['newValue'];return _0x4940b1?{'type':'format','content':c(_0x1fcc33,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4940b1+'\x22')}:{'type':'format','content':c(_0x1fcc33,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x184cc0=this['editor'],_0x396fa2=_0x184cc0['locale'];_0x184cc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419aa9=>{if('formatBlock'!=_0x419aa9['type']&&'formatInline'!=_0x419aa9['type'])return;const {data:_0x9d47fe}=_0x419aa9;if(_0x9d47fe){if('imageTextAlternative'==_0x9d47fe['commandName']){const _0x205b3b=_0x9d47fe['commandParams'][0x0]['newValue'];return _0x205b3b?{'type':'format','content':c(_0x396fa2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x205b3b+'\x22')}:{'type':'format','content':c(_0x396fa2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x9d47fe['commandName']){const _0x354f09=_0x9d47fe['commandParams'][0x0]['width'];return _0x354f09?{'type':'format','content':c(_0x396fa2,'*Set\x20image\x20width:*\x20%0',_0x354f09)}:{'type':'format','content':c(_0x396fa2,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4e3ad1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x385119=this['editor']['locale'],_0x13e231=this['editor']['plugins']['get']('TrackChangesEditing');_0x13e231['enableDefaultAttributesIntegration']('replaceImageSource'),_0x13e231['registerBlockAttribute']('src'),_0x13e231['descriptionFactory']['registerDescriptionCallback'](_0x5c83a3=>{if('attribute'!=_0x5c83a3['type'])return;const {data:_0x5bc7d6}=_0x5c83a3;return _0x5bc7d6&&'src'==_0x5bc7d6['key']?_0x5bc7d6['newValue']&&_0x5bc7d6['oldValue']?{'type':'format','content':c(_0x385119,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1bcb96=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bcb96['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1bcb96['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1bcb96['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1bcb96['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30f0a8=this['editor'],_0x2addc7=_0x30f0a8['locale'];_0x30f0a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c5c41=>{if('formatBlock'!=_0x2c5c41['type']&&'formatInline'!=_0x2c5c41['type'])return;const {data:_0x18c8ff}=_0x2c5c41;if(!_0x18c8ff||'replaceImageSource'!=_0x18c8ff['commandName'])return;return{'type':'format','content':c(_0x2addc7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4e3ad1{['afterInit'](){const _0x53b958=this['editor'];if(!_0x53b958['plugins']['has']('ImageStyleEditing'))return;const _0x2332f0=_0x53b958['plugins']['get']('TrackChangesEditing'),_0x482a4a=_0x53b958['plugins']['get']('ImageUtils'),_0x547283={};_0x2332f0['enableCommand']('imageStyle',(_0x48b880,_0x2ff315)=>{const _0x5772e8=_0x53b958['plugins']['get']('Users')['me'],_0x4a8b85=_0x53b958['commands']['get']('imageStyle');let _0x122f37=_0x482a4a['getClosestSelectedImageElement'](_0x53b958['model']['document']['selection']),_0x271bb0=_0x53b958['model']['createRangeOn'](_0x122f37),_0x3b93c7=_0x4a8b85['value'];if(_0x3b93c7==_0x2ff315['value'])return;const _0x12e1e0={'commandName':'imageStyle','commandParams':[_0x2ff315],'formatGroupId':_0x36e450()};_0x53b958['model']['change'](()=>{if(_0x2332f0['getSuggestions']()['filter'](_0x1027ac=>_0x1027ac['isInContent']&&_0x5772e8==_0x1027ac['author']&&('formatBlock'==_0x1027ac['type']||'formatInline'==_0x1027ac['type'])&&('imageStylePreApply'==_0x1027ac['subType']||'imageStylePostApply'==_0x1027ac['subType'])&&_0x1027ac['getFirstRange']()['isEqual'](_0x271bb0))['forEach'](_0x42c2ea=>_0x2332f0['discardSuggestion'](_0x42c2ea['head'])),_0x122f37=_0x482a4a['getClosestSelectedImageElement'](_0x53b958['model']['document']['selection']),_0x271bb0=_0x53b958['model']['createRangeOn'](_0x122f37),_0x4a8b85['refresh'](),_0x53b958['commands']['get']('imageTypeInline')['refresh'](),_0x53b958['commands']['get']('imageTypeBlock')['refresh'](),_0x3b93c7=_0x4a8b85['value'],_0x3b93c7!=_0x2ff315['value'])return _0x482a4a['isInlineImage'](_0x122f37)&&_0x4a8b85['shouldConvertImageType'](_0x2ff315['value'],_0x122f37)?(_0x48b880({..._0x2ff315,'setImageSizes':!0x1}),_0x122f37=_0x482a4a['getClosestSelectedImageElement'](_0x53b958['model']['document']['selection']),void _0x2332f0['markBlockFormat'](_0x122f37,{..._0x12e1e0,'commandReversedParams':[{'value':_0x3b93c7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x482a4a['isBlockImage'](_0x122f37)?_0x2332f0['markBlockFormat'](_0x122f37,_0x12e1e0,[],'imageStylePostApply'):_0x2332f0['markInlineFormat'](_0x271bb0,_0x12e1e0,'imageStylePostApply'));});});for(const _0x3d50ca of _0x53b958['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x547283[_0x3d50ca['name']]=_0x3d50ca['title']['toLowerCase']();_0x2332f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2332f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2332f0['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2332f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53078b])=>{_0x482a4a['setImageNaturalSizeAttributes'](_0x53078b['getContainedElement']());}),_0x2332f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x132224,_0x3287a0)=>{_0x2332f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x132224,{'commandName':_0x3287a0['commandName'],'commandParams':_0x3287a0['commandReversedParams']});}),_0x2332f0['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x54bc9b,_0x238015){if(_0x7c5b1b(_0x54bc9b,_0x238015))return[_0x54bc9b,_0x238015];if(_0x7c5b1b(_0x238015,_0x54bc9b))return[_0x238015,_0x54bc9b];return null;});const _0x36a857=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7c5b1b(_0x301b1b,_0x4c536e){const _0x3372fc=_0x36a857['findIndex'](({type:_0x5258b1,subType:_0x5917ed})=>_0x301b1b['type']==_0x5258b1&&_0x301b1b['subType']==_0x5917ed),_0x2f48da=_0x36a857['findIndex'](({type:_0x33312d,subType:_0x57abe9})=>_0x4c536e['type']==_0x33312d&&_0x4c536e['subType']==_0x57abe9);if(_0x3372fc<0x0||_0x2f48da<0x0)return!0x1;const _0x4efea9=_0x301b1b['getFirstRange'](),_0x13f9f5=_0x4c536e['getFirstRange']();if((0x0==_0x3372fc||0x1==_0x3372fc)&&0x2==_0x2f48da&&_0x4efea9['isIntersecting'](_0x13f9f5))return!0x0;if(0x2==_0x3372fc&&0x3==_0x2f48da){const _0x399c1a=_0x2332f0['_findSuggestions'](_0x4efea9,'insertion')['filter'](({suggestion:_0x58ec2d,meta:_0x18906c})=>_0x18906c['isOwn']&&'convertInlineImageToBlock'==_0x58ec2d['subType']);if(_0x399c1a['length']>0x1&&_0x13f9f5['end']['isEqual'](_0x4efea9['start']))return!0x0;if(0x1==_0x399c1a['length']&&(_0x4efea9['start']['isEqual'](_0x13f9f5['end'])||_0x4efea9['end']['isEqual'](_0x13f9f5['start'])))return!0x0;}if(0x3==_0x3372fc&&0x3==_0x2f48da&&_0x4efea9['start']['isBefore'](_0x13f9f5['start'])){const _0x40c752=_0x4efea9['end']['nodeAfter'],_0x5f1cdb=_0x13f9f5['start']['nodeBefore'];return _0x482a4a['isBlockImage'](_0x40c752)&&_0x40c752===_0x5f1cdb;}return!0x1;}_0x53b958['model']['document']['registerPostFixer'](()=>{let _0x48f355=!0x1;const _0x299146=Array['from'](_0x53b958['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb88426,data:_0x485991}of _0x299146){const {group:_0x291a57,type:_0x203b23,subType:_0x3a1ddc,id:_0x8e064f}=_0x2332f0['_splitMarkerName'](_0xb88426);if('suggestion'==_0x291a57&&_0x2332f0['hasSuggestion'](_0x8e064f)){if('formatBlock'==_0x203b23&&('imageStylePreApply'==_0x3a1ddc||'imageStylePostApply'==_0x3a1ddc)){const _0x59df3d=_0x2332f0['getSuggestion'](_0x8e064f);if(_0x485991['newRange']){const _0xedca31=_0x59df3d['getFirstRange']()['getContainedElement']();if(_0x482a4a['isBlockImage'](_0xedca31))continue;_0x2332f0['discardSuggestion'](_0x59df3d),_0x48f355=!0x0;}}if('insertion'==_0x203b23&&'imageCaption'==_0x3a1ddc&&!_0x485991['newRange']){const _0x54e3da=_0x2332f0['getSuggestion'](_0x8e064f);_0x54e3da['next']&&_0x54e3da['next']['isInContent']&&(_0x2332f0['discardSuggestion'](_0x54e3da['next']),_0x48f355=!0x0);}}}return _0x48f355;}),this['_registerLegacyDescription'](_0x547283);}['_registerLegacyDescription'](_0xb9a54a){const _0x306f08=this['editor'],_0x384d6d=_0x306f08['locale'];_0x306f08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x438455=>{if('formatBlock'!=_0x438455['type']&&'formatInline'!=_0x438455['type'])return;const {data:_0x4292e6}=_0x438455;if(!_0x4292e6||'imageStyle'!=_0x4292e6['commandName'])return;const _0x4a129e=_0x4292e6['commandParams'][0x0]['value'];return _0x290b0f('side'===_0x4a129e?c(_0x384d6d,'FORMAT_SIDE_IMAGE'):_0xb9a54a[_0x4a129e]||_0x4a129e);function _0x290b0f(_0xfbee33){return{'type':'format','content':c(_0x384d6d,'*Format:*\x20%0',_0xfbee33)};}});}}class ut extends _0x4e3ad1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x47fd9f){super(_0x47fd9f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26c7b8=this['editor'],_0x3e1d11=_0x26c7b8['commands']['get']('importWord'),_0x4234cc=_0x26c7b8['commands']['get']('trackChanges');_0x3e1d11&&(_0x3e1d11['on']('execute',(_0x1a7ee7,[,_0x1b9095])=>{this['_trackChangesValueDuringImport']=_0x4234cc['value'],_0x1b9095['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3e1d11,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3e1d11,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4234cc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26c7b8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2b64fe,_0x5868d7){const {suggestions:_0x317a24}=_0x5868d7,_0x4be535=this['editor']['commands']['get']('trackChanges'),_0x258740=_0x4be535['value'];this['_trackChangesValueDuringImport']!==_0x258740&&(_0x4be535['execute'](),this['_trackChangesExecuted']=!0x0),_0x317a24&&_0x317a24['forEach'](({id:_0x4e04c2,type:_0x563b06,author:_0x1810f7,created_at:_0x5beebc})=>{const _0x5d5144={'id':_0x4e04c2,'type':_0x563b06,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1810f7,'createdAt':_0x5beebc?new Date(_0x5beebc):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5d5144);});}}class ft extends _0x4e3ad1{['afterInit'](){const _0x2db000=this['editor'],_0x38d4a8=_0x2db000['plugins']['get']('TrackChangesEditing');if(_0x2db000['plugins']['has']('IndentEditing')&&(_0x38d4a8['enableCommand']('indent'),_0x38d4a8['enableCommand']('outdent')),_0x2db000['plugins']['has']('IndentBlock')){for(const _0xc0221a of['indentBlock','outdentBlock'])_0x38d4a8['enableDefaultAttributesIntegration'](_0xc0221a);}const _0x581a6e=_0x2db000['locale'];_0x38d4a8['registerBlockAttribute']('blockIndent'),_0x38d4a8['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x581a6e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ff433=this['editor'],_0x1da9f4=_0x3ff433['locale'],_0x5c7857=_0x3ff433['plugins']['get']('TrackChangesEditing');_0x5c7857['descriptionFactory']['registerDescriptionCallback'](_0x114325=>{if('formatBlock'!=_0x114325['type'])return;const {data:_0x57a886}=_0x114325;if(!_0x57a886)return;if('indentBlock'!=_0x57a886['commandName']&&'outdentBlock'!=_0x57a886['commandName'])return;const _0x5b8db9=_0x114325['getItems']()[0x0],_0x3ffdc3=_0x5c7857['descriptionFactory']['getItemLabel'](_0x5b8db9);return'indentBlock'==_0x57a886['commandName']?{'type':'format','content':c(_0x1da9f4,'*Indent:*\x20%0',_0x3ffdc3)}:'outdentBlock'==_0x57a886['commandName']?{'type':'format','content':c(_0x1da9f4,'*Outdent:*\x20%0',_0x3ffdc3)}:void 0x0;});}}class ht extends _0x4e3ad1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4e3ad1{['afterInit'](){const _0x1e833d=this['editor'];if(!_0x1e833d['plugins']['has']('LinkEditing'))return;const _0xb8e71f=_0x1e833d['plugins']['get']('TrackChangesEditing'),_0x1a04cd=_0x1e833d['commands']['get']('link');_0xb8e71f['enableDefaultAttributesIntegration']('link'),_0xb8e71f['enableDefaultAttributesIntegration']('unlink'),_0xb8e71f['registerInlineAttribute']('linkHref');for(const _0x48e49a of _0x1a04cd['manualDecorators'])_0xb8e71f['registerInlineAttribute'](_0x48e49a['id']),_0xb8e71f['descriptionFactory']['registerAttributeLabel'](_0x48e49a['id'],'link\x20('+_0x48e49a['label']['toLowerCase']()+')');_0xb8e71f['descriptionFactory']['registerDescriptionCallback'](_0x1bb46b=>{if('attribute'!=_0x1bb46b['type'])return;const {data:_0x4f5223}=_0x1bb46b;if(!_0x4f5223||'linkHref'!=_0x4f5223['key'])return;const _0xc2f3c5=_0x4f5223['newValue'],_0x2b948b=_0x1e833d['locale'];return{'type':'format','content':null==_0xc2f3c5?c(_0x2b948b,'*Remove\x20link*'):c(_0x2b948b,'*Set\x20link:*\x20%0','\x22'+_0xc2f3c5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f1206=this['editor'],_0x39578c=_0x1f1206['locale'];_0x1f1206['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ee5c7=>{if('formatInline'!=_0x4ee5c7['type'])return;const {data:_0x1238cf}=_0x4ee5c7;if(_0x1238cf){if('link'==_0x1238cf['commandName']){const _0x42c847=_0x1238cf['commandParams'][0x0];return{'type':'format','content':c(_0x39578c,'*Set\x20link:*\x20%0','\x22'+_0x42c847+'\x22')};}return'unlink'==_0x1238cf['commandName']?{'type':'format','content':c(_0x39578c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4e3ad1{['afterInit'](){const _0x3ec288=this['editor'],_0xd0fba=_0x3ec288['locale'];if(!_0x3ec288['plugins']['has']('LegacyListEditing'))return;const _0x2881b1=_0x3ec288['plugins']['get']('TrackChangesEditing'),_0x2e0ac0=_0x3ec288['plugins']['has']('LegacyTodoListEditing');function _0x12c36d(_0x440304){return()=>{const _0x23c122=_0x3ec288['model']['document']['selection'],_0x216c65=_0x3ec288['commands']['get'](_0x440304);if(_0x216c65['value'])return void _0x3ec288['execute']('paragraph',{});const _0xf66494=_0x440304['slice'](0x0,-0x4),_0x296923=function(_0x2a9830,_0x291afa,_0x2d8d4f){let _0x57cab4=Array['from'](_0x2a9830)['filter'](_0x201652=>function(_0x82a25d,_0x30e720){return _0x30e720['checkChild'](_0x82a25d['parent'],'listItem')&&!_0x30e720['isObject'](_0x82a25d);}(_0x201652,_0x2d8d4f));_0x57cab4=_0x57cab4['filter'](_0xfe0113=>!_0xfe0113['is']('element','listItem')||_0xfe0113['getAttribute']('listType')!=_0x291afa);const _0x4d0242=new Set();for(const _0xe4988b of _0x57cab4)_0xe4988b['is']('element','listItem')?_0x4d0242['add'](Le(_0xe4988b)):_0x4d0242['add'](_0xe4988b);return Array['from'](_0x4d0242);}(_0x23c122['getSelectedBlocks'](),_0xf66494,_0x3ec288['model']['schema']);_0x3ec288['model']['change'](()=>{for(const _0x3412fc of _0x296923)_0x2881b1['markBlockFormat'](_0x3412fc,{'commandName':_0x440304,'commandParams':[{'forceValue':!_0x216c65['value']}],'formatGroupId':'blockName'},Ee(_0x3412fc));});};}function _0x5dbf2e(_0x457529){return()=>{const _0x24f59b=function(_0x5b3e88){let _0x2f8110=Array['from'](_0x5b3e88);const _0xa85370=_0x2f8110['findIndex'](_0x65144b=>'listItem'!=_0x65144b['name']);return _0xa85370>-0x1&&(_0x2f8110=_0x2f8110['slice'](0x0,_0xa85370)),_0x2f8110;}(_0x3ec288['model']['document']['selection']['getSelectedBlocks']()),_0x5c96e9=_0x3ec288['model']['createRange'](_0x3ec288['model']['createPositionAt'](_0x24f59b[0x0],'before'),_0x3ec288['model']['createPositionAt'](_0x24f59b[_0x24f59b['length']-0x1],'end'));_0x3ec288['model']['change'](()=>{_0x2881b1['markBlockFormat'](_0x5c96e9,{'commandName':_0x457529,'commandParams':[],'formatGroupId':'listIndent'},function(_0x595ef1){const _0xe34fc0=new Set();for(const _0x4e02e5 of _0x595ef1){let _0x4f88ac=_0x4e02e5['nextSibling'];for(;_0x4f88ac&&_0x4f88ac['getAttribute']('listIndent')>_0x4e02e5['getAttribute']('listIndent');)_0xe34fc0['add'](_0x4f88ac),_0x4f88ac=_0x4f88ac['nextSibling'];}return Array['from'](_0xe34fc0);}(_0x24f59b));});};}_0x2881b1['enableCommand']('numberedList',_0x12c36d('numberedList')),_0x2881b1['enableCommand']('bulletedList',_0x12c36d('bulletedList')),_0x2e0ac0&&_0x2881b1['enableCommand']('todoList',_0x12c36d('todoList')),_0x2881b1['enableCommand']('indentList',_0x5dbf2e('indentList')),_0x2881b1['enableCommand']('outdentList',_0x5dbf2e('outdentList')),_0x2e0ac0&&_0x2881b1['enableCommand']('checkTodoList',()=>{const _0x4af853=_0x3ec288['commands']['get']('checkTodoList'),_0x4c3578=Array['from'](_0x4af853['_selectedElements']);_0x4c3578['filter'](_0x259fa4=>_0x259fa4['getAttribute']('todoListChecked')!=_0x4af853['value']),_0x3ec288['model']['change'](()=>{for(const _0x4255b7 of _0x4c3578)_0x2881b1['markBlockFormat'](_0x4255b7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4af853['value']}]});});}),_0x2881b1['descriptionFactory']['registerElementLabel']('listItem',_0x4a8711=>c(_0xd0fba,'ELEMENT_LIST_ITEM',_0x4a8711)),_0x2881b1['descriptionFactory']['registerDescriptionCallback'](_0x3cd7f4=>{if('formatBlock'!=_0x3cd7f4['type']&&'formatInline'!=_0x3cd7f4['type'])return;const {data:_0x2654ca}=_0x3cd7f4;if(_0x2654ca){if('numberedList'==_0x2654ca['commandName']||'bulletedList'==_0x2654ca['commandName']||'todoList'==_0x2654ca['commandName'])switch(_0x2654ca['commandName']['replace']('List','')){case'bulleted':return _0x537d2d(c(_0xd0fba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x537d2d(c(_0xd0fba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x537d2d(c(_0xd0fba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2654ca['commandName'])return{'type':'format','content':c(_0xd0fba,'*Indent:*\x20%0',c(_0xd0fba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2654ca['commandName'])return{'type':'format','content':c(_0xd0fba,'*Outdent:*\x20%0',c(_0xd0fba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2654ca['commandName'])return _0x2654ca['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd0fba,'*Check\x20item*')}:{'type':'format','content':c(_0xd0fba,'*Uncheck\x20item*')};}function _0x537d2d(_0x86048c){return{'type':'format','content':c(_0xd0fba,'*Change\x20to:*\x20%0',_0x86048c)};}});}}function Le(_0x5e1094){const _0x39bd58=_0x5e1094['getAttribute']('listIndent');if(0x0==_0x39bd58)return _0x5e1094;let _0x444892=_0x5e1094;for(;_0x5e1094['previousSibling']&&_0x5e1094['previousSibling']['is']('element','listItem');){const _0x389472=_0x5e1094['previousSibling']['getAttribute']('listIndent');if(_0x389472==_0x39bd58)_0x444892=_0x5e1094['previousSibling'];else{if(_0x389472<_0x39bd58)break;}_0x5e1094=_0x5e1094['previousSibling'];}return _0x444892;}function Ee(_0x3c2101){const _0x347d25=[];if(_0x3c2101['is']('element','listItem')&&_0x3c2101['getAttribute']('listIndent')>0x0){let _0x4c11c1=_0x3c2101['nextSibling'];for(;_0x4c11c1&&'listItem'==_0x4c11c1['name']&&_0x4c11c1['getAttribute']('listIndent')==_0x3c2101['getAttribute']('listIndent');)_0x347d25['push'](_0x4c11c1),_0x4c11c1=_0x4c11c1['nextSibling'];}return _0x347d25;}class Q extends _0x4e3ad1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4650a0=this['editor']['config']['get']('list.properties'),_0xc4d734=this['editor']['plugins']['get']('TrackChangesEditing');_0x4650a0['styles']&&_0xc4d734['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4650a0['reversed']&&_0xc4d734['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4650a0['startIndex']&&_0xc4d734['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xc4d734['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x195ec0,_0x24875a={}){const _0x5c1ccb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3402ab=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5c1ccb['markMultiRangeBlockFormat'](_0x3402ab,{'commandName':'listStyle','commandParams':[{'type':_0x24875a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x27207d,_0x3b495e={}){const _0x3412f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbf2d06=this['_getSuggestionBlocks'](_0x24348d=>_0x24348d['is']('element','listItem')&&'numbered'===_0x24348d['getAttribute']('listType'));if(_0xbf2d06['length']<0x1)return;const _0x5c047f=_0xbf2d06['map'](_0x14c9f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14c9f7,'before'),this['editor']['model']['createPositionAt'](_0x14c9f7,0x0)));this['editor']['model']['change'](()=>{_0x3412f0['markMultiRangeBlockFormat'](_0x5c047f,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b495e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x143fa8,_0x15e409={}){const _0x5b9551=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1de21c=this['_getSuggestionBlocks'](_0x5870e5=>_0x5870e5['is']('element','listItem')&&'numbered'===_0x5870e5['getAttribute']('listType'));if(_0x1de21c['length']<0x1)return;const _0x1c7fc1=_0x1de21c['map'](_0x3863dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3863dd,'before'),this['editor']['model']['createPositionAt'](_0x3863dd,0x0)));this['editor']['model']['change'](()=>{_0x5b9551['markMultiRangeBlockFormat'](_0x1c7fc1,{'commandName':'listStart','commandParams':[{'startIndex':_0x15e409['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x542283){if('formatBlock'!=_0x542283['type']&&'formatInline'!=_0x542283['type'])return;const _0x3ce4ab=this['editor']['locale'],{data:_0x3d712f}=_0x542283;if(!_0x3d712f)return;let _0x39f768,_0x3214db;switch(_0x3d712f['commandName']){case'listStyle':_0x39f768='*Change\x20to:*\x20%0',_0x3214db={'type':'format','content':c(_0x3ce4ab,_0x39f768,c(_0x3ce4ab,this['_getTranslationKeyForListStyle'](_0x3d712f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39f768=_0x3d712f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3214db={'type':'format','content':c(_0x3ce4ab,_0x39f768)};break;case'listStart':_0x39f768='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3214db={'type':'format','content':c(_0x3ce4ab,_0x39f768,_0x3d712f['commandParams'][0x0]['startIndex'])};}return _0x3214db;}['_getSuggestionBlocksForListStyle'](){const _0x3c1199=this['editor']['plugins']['get']('LegacyListUtils');let _0x47b5eb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x47b5eb[0x0]?.['is']('element','listItem')&&_0x47b5eb['unshift'](..._0x3c1199['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x47b5eb[_0x47b5eb['length']-0x1]?.['is']('element','listItem')&&_0x47b5eb['push'](..._0x3c1199['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x47b5eb=[...new Set(_0x47b5eb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x47b5eb=_0x47b5eb['filter'](_0x4f167d=>_0x4f167d['is']('element','listItem'))),_0x47b5eb;}['_getSuggestionBlocks'](_0x1c0941){const _0xe38e12=this['editor']['plugins']['get']('LegacyListUtils');let _0x382e69=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1c0941)['map'](_0x15b024=>{const _0x2947e0=this['editor']['model']['createPositionAt'](_0x15b024,0x0);return[..._0xe38e12['getSiblingNodes'](_0x2947e0,'backward'),..._0xe38e12['getSiblingNodes'](_0x2947e0,'forward')];})['flat']();return _0x382e69=[...new Set(_0x382e69)],_0x382e69;}['_getTranslationKeyForListStyle'](_0x48359a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x48359a)||'default')['toUpperCase']()+'_LIST_'+_0x48359a['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4e3ad1{['afterInit'](){const _0x2419d1=this['editor'];if(!_0x2419d1['plugins']['has']('MediaEmbedEditing'))return;const _0x354527=_0x2419d1['plugins']['get']('TrackChangesEditing'),_0x2502f3=_0x2419d1['locale'];_0x354527['enableCommand']('mediaEmbed'),_0x354527['descriptionFactory']['registerElementLabel']('media',_0x2fe226=>c(_0x2502f3,'ELEMENT_MEDIA',_0x2fe226)),_0x2419d1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc6bbfe,{writer:_0x2615eb,options:_0x1f8023})=>{if(_0x1f8023['showSuggestionHighlights'])return _0x2615eb['createEmptyElement']('div');},'converterPriority':'high'}),_0x2419d1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x55fa84,_0x428c64,_0x1e48a4)=>{_0x1e48a4['options']['showSuggestionHighlights']&&_0x55fa84['stop']();},{'priority':'high'});}}class pt extends _0x4e3ad1{['afterInit'](){const _0x253889=this['editor'];_0x253889['plugins']['has']('MentionEditing')&&_0x253889['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4e3ad1{['afterInit'](){const _0x3a2519=this['editor'];if(!_0x3a2519['plugins']['has']('MergeFieldsEditing'))return;const _0x6c57a2=_0x3a2519['plugins']['get']('TrackChangesEditing'),_0x1ec032=_0x3a2519['locale'];_0x6c57a2['enableCommand']('insertMergeField'),_0x6c57a2['enableCommand']('insertMergeFieldBlock'),_0x6c57a2['enableCommand']('insertMergeFieldImage'),_0x6c57a2['descriptionFactory']['registerElementLabel']('mergeField',_0x34cbd3=>c(_0x1ec032,'ELEMENT_MERGE_FIELD',_0x34cbd3)),_0x6c57a2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1bea29=>c(_0x1ec032,'ELEMENT_MERGE_FIELD',_0x1bea29)),_0x6c57a2['descriptionFactory']['registerDescriptionCallback'](_0x4dcb0f=>{if('insertion'!=_0x4dcb0f['type']&&'deletion'!=_0x4dcb0f['type'])return;const _0x5594ae=_0x4dcb0f['getContainedElement']();if(null==_0x5594ae)return;const _0x4b8937=_0x3a2519['plugins']['get']('MergeFieldsEditing');let _0x5cbef0;switch(_0x4b8937['getMergeFieldType'](_0x5594ae)){case null:return;case'image':{const _0x5a3a0e=_0x4b8937['unwrapAffixes'](_0x5594ae['getAttribute']('src'));_0x5cbef0=_0x4b8937['getLabel'](_0x5a3a0e)||_0x5a3a0e;break;}default:{const _0x485bd3=_0x5594ae['getAttribute']('id');_0x5cbef0=_0x4b8937['getLabel'](_0x485bd3)||_0x485bd3;break;}}return'insertion'==_0x4dcb0f['type']?{'type':'insertion','content':c(_0x1ec032,'*Insert:*\x20%0','\x22'+_0x5cbef0+'\x22\x20'+c(_0x1ec032,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1ec032,'*Remove:*\x20%0','\x22'+_0x5cbef0+'\x22\x20'+c(_0x1ec032,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4e3ad1{['afterInit'](){const _0x9365e6=this['editor'],_0x400396=_0x9365e6['plugins']['get']('TrackChangesEditing');_0x9365e6['plugins']['has']('MultiLevelList')&&(_0x400396['enableDefaultAttributesIntegration']('multiLevelList'),_0x400396['registerBlockAttribute']('listMarkerStyle'),_0x400396['descriptionFactory']['registerDescriptionCallback'](_0x572966=>this['handleDescriptions'](_0x572966)));}['handleDescriptions'](_0x50d70){const _0x347bf6=this['editor']['locale'],{data:_0x1b1aae}=_0x50d70,_0x488a38={'type':'format','content':''};if(_0x1b1aae&&'listMarkerStyle'==_0x1b1aae['key']){if(!_0x1b1aae['oldValue'])return{'type':'format','content':c(_0x347bf6,'*Set\x20format:*\x20%0',c(_0x347bf6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b1aae['newValue']+')'};if(!_0x1b1aae['newValue']){let _0x3ef7a3=_0x50d70['head'];for(;_0x3ef7a3;){if(_0x3ef7a3['data']&&'listType'==_0x3ef7a3['data']['key']&&_0x3ef7a3['data']['newValue'])return _0x488a38;_0x3ef7a3=_0x3ef7a3['next'];}return{'type':'format','content':c(_0x347bf6,'*Remove\x20format:*\x20%0',c(_0x347bf6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1b1aae['oldValue']+')'};}}}}class bt extends _0x4e3ad1{['afterInit'](){const _0x3caef6=this['editor'];if(!_0x3caef6['plugins']['has']('PageBreakEditing'))return;_0x3caef6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x583f82=_0x3caef6['plugins']['get']('TrackChangesEditing'),_0x425bf1=_0x3caef6['locale'];_0x583f82['descriptionFactory']['registerElementLabel']('pageBreak',_0x5c4002=>c(_0x425bf1,'ELEMENT_PAGE_BREAK',_0x5c4002));}}class yt extends _0x4e3ad1{['afterInit'](){const _0x5195ae=this['editor'];if(!_0x5195ae['plugins']['has']('Paragraph'))return;const _0x165f38=_0x5195ae['locale'],_0xcb2afb=_0x5195ae['plugins']['get']('TrackChangesEditing');_0xcb2afb['descriptionFactory']['registerElementLabel']('paragraph',_0x35e89a=>c(_0x165f38,'ELEMENT_PARAGRAPH',_0x35e89a)),_0xcb2afb['enableDefaultAttributesIntegration']('paragraph'),_0xcb2afb['enableCommand']('insertParagraph'),_0x5195ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5195ae),{'priority':'highest'}),_0x5195ae['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4216d5,_0x21c25e,_0x341553)=>{_0x341553['options']['showSuggestionHighlights']&&nr(_0x5195ae,{'showActiveMarker':!0x1})(_0x4216d5,_0x21c25e,_0x341553);},{'priority':'highest'});const _0x44294d=_0xcb2afb['descriptionFactory'];_0x44294d['registerDescriptionCallback'](_0x43a4e8=>{if('insertion'!==_0x43a4e8['type'])return;const {start:_0x3458c0,end:_0x2c02bd}=_0x43a4e8['getFirstRange']();if(!_0x3458c0['isTouching'](_0x2c02bd)||!_0x3458c0['nodeAfter'])return;const _0x39c73f=_0x5195ae['model']['schema'],_0x16fc6b=_0x3458c0['nodeAfter'];return _0x39c73f['isBlock'](_0x16fc6b)&&!_0x39c73f['isLimit'](_0x16fc6b)&&_0x39c73f['checkChild'](_0x16fc6b,'$text')?{'type':'insertion','content':c(_0x165f38,'*Insert:*\x20%0',_0x44294d['getItemLabel'](_0x16fc6b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x584f3e=this['editor'],_0x1d8a2a=_0x584f3e['locale'];_0x584f3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fbc7d=>{if('formatBlock'!=_0x4fbc7d['type'])return;const {data:_0x435e23}=_0x4fbc7d;return _0x435e23&&'paragraph'==_0x435e23['commandName']?{'type':'format','content':c(_0x1d8a2a,'*Change\x20to:*\x20%0',c(_0x1d8a2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4b3fcf,{showActiveMarker:_0xc2d923=!0x0}={}){return(_0x409414,_0x45f7de,_0x1d6533)=>{const _0x107f95=_0x4b3fcf['plugins']['get']('TrackChangesEditing'),_0x460fb2=_0x45f7de['markerRange']['start'],_0x42c5e4=_0x45f7de['markerRange']['end'],_0x3dbb12=_0x4b3fcf['model']['schema'];if(!_0x460fb2['isTouching'](_0x42c5e4)||!_0x460fb2['nodeAfter'])return;const _0x177bf5=_0x460fb2['nodeAfter'];if(_0x3dbb12['isBlock'](_0x177bf5)&&!_0x3dbb12['isLimit'](_0x177bf5)&&_0x3dbb12['checkChild'](_0x177bf5,'$text')){if(!_0x1d6533['consumable']['consume'](_0x45f7de['markerRange'],_0x409414['name']))return;const {authorId:_0x43f542}=_0x107f95['_splitMarkerName'](_0x45f7de['markerName']),_0x2b4671=_0x1d6533['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x43f542}),_0x142d76=_0x1d6533['mapper']['toViewPosition'](_0x42c5e4);_0xc2d923&&_0x107f95['activeMarkers']['includes'](_0x45f7de['markerName'])&&_0x1d6533['writer']['addClass']('ck-suggestion-marker--active',_0x2b4671),_0x1d6533['writer']['insert'](_0x142d76,_0x2b4671),_0x1d6533['mapper']['bindElementToMarker'](_0x2b4671,_0x45f7de['markerName']);}};}class jt extends _0x4e3ad1{['afterInit'](){const _0x38c573=this['editor'];_0x38c573['commands']['get']('replaceSource')&&_0x38c573['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4e3ad1{['afterInit'](){const _0x2616ba=this['editor'];if(!_0x2616ba['plugins']['has']('RemoveFormatEditing'))return;_0x2616ba['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43d229=this['editor'];_0x43d229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a661c=>{if('formatBlock'!=_0x2a661c['type']&&'formatInline'!=_0x2a661c['type'])return;const {data:_0x2b7156}=_0x2a661c;return _0x2b7156&&'removeFormat'==_0x2b7156['commandName']?{'type':'format','content':c(_0x43d229['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x4e3ad1{['afterInit'](){const _0x24130e=this['editor'];if(!_0x24130e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x52e408=_0x24130e['plugins']['get']('TrackChangesEditing');_0x52e408['enableCommand']('goToPreviousRestrictedEditingException'),_0x52e408['enableCommand']('goToNextRestrictedEditingException');const _0x4336c1=_0x24130e['plugins']['get']('RestrictedEditingModeEditing');_0x4336c1['enableCommand']('trackChanges'),_0x4336c1['enableCommand']('acceptSuggestion'),_0x4336c1['enableCommand']('discardSuggestion'),_0x4336c1['enableCommand']('acceptAllSuggestions'),_0x4336c1['enableCommand']('discardAllSuggestions'),_0x4336c1['enableCommand']('acceptSelectedSuggestions'),_0x4336c1['enableCommand']('discardSelectedSuggestions');}}class It extends _0x4e3ad1{static get['requires'](){return[_0x4e25f3];}['init'](){const _0x21832c=this['editor'],_0x48911b=_0x21832c['plugins']['get']('TrackChangesEditing');_0x48911b['enableCommand']('shiftEnter'),_0x21832c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x21832c),{'priority':'high'}),_0x21832c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x21832c),{'priority':'high'}),_0x21832c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x211738,_0x379bcb,_0x59c230)=>{_0x59c230['options']['showSuggestionHighlights']&&je(_0x21832c,{'showActiveMarker':!0x1})(_0x211738,_0x379bcb,_0x59c230);}),_0x48911b['descriptionFactory']['registerElementLabel']('softBreak',_0x3f90f0=>c(_0x21832c['locale'],'ELEMENT_LINE_BREAK',_0x3f90f0));}}function je(_0x39aff7,{showActiveMarker:_0x519f5e=!0x0}={}){return(_0x2a6f64,_0x3d959a,_0x1b4f97)=>{const _0x2c8fb9=_0x39aff7['plugins']['get']('TrackChangesEditing');if(!_0x1b4f97['consumable']['test'](_0x3d959a['markerRange'],_0x2a6f64['name']))return;const _0x12e7e5=_0x39aff7['model'];for(const _0x250a12 of _0x3d959a['markerRange']['getItems']()){if(!_0x250a12['is']('element','softBreak'))continue;const _0xf4b6dd='deletion'==_0x3d959a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x367c80}=_0x2c8fb9['_splitMarkerName'](_0x3d959a['markerName']),_0x2eb53a=_0x1b4f97['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf4b6dd,'data-author-id':_0x367c80}),_0x3e2a83=_0x1b4f97['mapper']['toViewPosition'](_0x12e7e5['createPositionBefore'](_0x250a12));_0x519f5e&&_0x2c8fb9['activeMarkers']['includes'](_0x3d959a['markerName'])&&_0x1b4f97['writer']['addClass']('ck-suggestion-marker--active',_0x2eb53a),_0x1b4f97['writer']['insert'](_0x3e2a83,_0x2eb53a),_0x1b4f97['mapper']['bindElementToMarker'](_0x2eb53a,_0x3d959a['markerName']);}};}class _t extends _0x4e3ad1{['afterInit'](){const _0x431dd6=this['editor'],_0x598c81=_0x431dd6['model'],_0x10dce1=_0x431dd6['locale'];if(!_0x431dd6['plugins']['has']('StandardEditingModeEditing'))return;const _0x403ca9=_0x431dd6['plugins']['get']('TrackChangesEditing'),_0x55f673='restrictedEditingException',_0x322e43=_0x431dd6['commands']['get'](_0x55f673);_0x403ca9['enableCommand'](_0x55f673,(_0x5f576f,_0x18d109={})=>{const _0x4e4379=_0x598c81['document']['selection'];if(_0x4e4379['isCollapsed'])return void _0x5f576f(_0x18d109);const _0x471818=void 0x0!==_0x18d109['forceValue']?_0x18d109['forceValue']:!_0x322e43['value'];_0x598c81['change'](()=>{const _0x3a5b2a=Array['from'](_0x4e4379['getRanges']());for(const _0x4c3da8 of _0x3a5b2a){const _0x291586=_0x471818?[_0x4c3da8]:io(_0x55f673,_0x4c3da8,_0x598c81);for(const _0x1458dd of _0x291586)_0x403ca9['markInlineFormat'](_0x1458dd,{'commandName':_0x55f673,'commandParams':[{'forceValue':_0x471818}]});}});}),_0x403ca9['descriptionFactory']['registerDescriptionCallback'](_0x4e8622=>{if('formatBlock'!=_0x4e8622['type']&&'formatInline'!=_0x4e8622['type'])return;const {data:_0x5083c9}=_0x4e8622;return _0x5083c9&&_0x5083c9['commandName']==_0x55f673?_0x5083c9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x10dce1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x10dce1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x4e3ad1{['afterInit'](){const _0x334c0f=this['editor'];if(!_0x334c0f['plugins']['has']('Style')||!_0x334c0f['plugins']['has']('DataSchema'))return;const _0x2a5269=_0x334c0f['plugins']['get']('TrackChangesEditing'),_0x2fc4f5=_0x334c0f['locale'],_0x5804a8=_0x334c0f['config']['get']('style')||{},_0x4236d4=_0x334c0f['plugins']['get']('GeneralHtmlSupport'),_0x50e559=_0x334c0f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x334c0f['plugins']['get']('DataSchema'),_0x5804a8['definitions']);_0x2a5269['enableDefaultAttributesIntegration']('style');const _0x59a491=new Set();for(const _0x9db1b1 of _0x50e559['block']){const _0x51b54f=_0x4236d4['getGhsAttributeNameForElement'](_0x9db1b1['element']);_0x59a491['add'](_0x51b54f);}const _0x26a262=new Set();for(const _0x282d95 of _0x50e559['inline']){const _0x2bb35c=_0x4236d4['getGhsAttributeNameForElement'](_0x282d95['element']);_0x26a262['add'](_0x2bb35c);for(const _0xf0a948 of _0x282d95['ghsAttributes'])_0x26a262['add'](_0xf0a948);}for(const _0x31274a of _0x59a491)_0x2a5269['registerBlockAttribute'](_0x31274a),_0x2a5269['descriptionFactory']['registerAttributeLabel'](_0x31274a,c(_0x2fc4f5,'FORMAT_STYLE'));for(const _0x181179 of _0x26a262)_0x2a5269['registerInlineAttribute'](_0x181179),_0x2a5269['descriptionFactory']['registerAttributeLabel'](_0x181179,c(_0x2fc4f5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1658a5=this['editor'],_0x53c793=_0x1658a5['locale'];_0x1658a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x592e84=>{if('formatBlock'!=_0x592e84['type']&&'formatInline'!=_0x592e84['type'])return;const {data:_0x579834}=_0x592e84;return _0x579834&&'style'===_0x579834['commandName']?_0x579834['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x53c793,'*Set\x20format:*\x20%0',_0x579834['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x53c793,'*Remove\x20format:*\x20%0',_0x579834['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x4e3ad1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x444e05){super(_0x444e05),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x376dfe=this['editor'],_0x44a348=_0x376dfe['model']['document']['selection'];if(!_0x376dfe['plugins']['has']('TableEditing'))return;const _0x4c474a=_0x376dfe['locale'],_0x2d473b=_0x376dfe['plugins']['get']('TrackChangesEditing'),_0x51f075=_0x376dfe['plugins']['get']('TableUtils');_0x2d473b['descriptionFactory']['registerElementLabel']('table',_0x1f4213=>c(_0x4c474a,'ELEMENT_TABLE',_0x1f4213)),this['_setupColumnsRowsFixing'](),_0x2d473b['enableCommand']('insertTable'),_0x2d473b['enableCommand']('selectTableRow'),_0x2d473b['enableCommand']('selectTableColumn');for(const _0x13d407 of['insertTableRowAbove','insertTableRowBelow']){const _0x5e78a2=_0x376dfe['commands']['get'](_0x13d407);_0x2d473b['enableCommand'](_0x13d407,_0x7edb68=>{_0x376dfe['model']['change'](_0x50f5f0=>{_0x7edb68();const _0x292bc2='above'===_0x5e78a2['order'],_0x36e8a0=_0x51f075['getSelectionAffectedTableCells'](_0x44a348),_0x2960c9=_0x51f075['getRowIndexes'](_0x36e8a0),_0x34db49=_0x292bc2?_0x2960c9['first']-0x1:_0x2960c9['last']+0x1,_0x50e950=_0x36e8a0[0x0]['findAncestor']('table'),_0x539e3e=_0x51f075['createTableWalker'](_0x50e950,{'startRow':_0x34db49,'endRow':_0x34db49}),_0x3fbd5b=Array['from'](_0x539e3e)['map'](_0x469c6b=>_0x50f5f0['createRangeOn'](_0x469c6b['cell']));_0x2d473b['markMultiRangeInsertion'](_0x3fbd5b,'tableRow');});});}for(const _0xd3edd3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4faaad=_0x376dfe['commands']['get'](_0xd3edd3);_0x2d473b['enableCommand'](_0xd3edd3,_0x2f59bd=>{_0x376dfe['model']['change'](_0x35a33f=>{_0x2f59bd();const _0x4a3400='left'===_0x4faaad['order'],_0x44b0e2=_0x51f075['getSelectionAffectedTableCells'](_0x44a348),_0x3f8fed=_0x51f075['getColumnIndexes'](_0x44b0e2),_0x1706dd=_0x4a3400?_0x3f8fed['first']-0x1:_0x3f8fed['last']+0x1,_0x3f7736=_0x44b0e2[0x0]['findAncestor']('table'),_0x16e622=_0x51f075['createTableWalker'](_0x3f7736,{'startRow':0x0,'column':_0x1706dd,'includeAllSlots':!0x1}),_0x5331bc=Array['from'](_0x16e622)['map'](_0x4d3f5b=>_0x35a33f['createRangeOn'](_0x4d3f5b['cell']));_0x2d473b['markMultiRangeInsertion'](_0x5331bc,'tableColumn');});});}for(const _0x1aa881 of['removeTableRow','removeTableColumn']){const _0xab7943=_0x1aa881['substr'](0xb),_0x52d024=_0xab7943['toLowerCase'](),_0x1d50a7=_0x52d024['substr'](0x0,0x3)+'span',_0x4c8864='table'+_0xab7943,_0x18703a='min'+_0xab7943,_0x5d6c5e='max'+_0xab7943;_0x2d473b['enableCommand'](_0x1aa881,()=>{_0x376dfe['model']['change'](_0x526266=>{const _0xb934c=_0x51f075['getSelectionAffectedTableCells'](_0x44a348),_0x51d1cf=_0xb934c[0x0]['findAncestor']('table');let _0x3df00b;if('removeTableRow'==_0x1aa881){const _0x307a55=_0x51f075['getRowIndexes'](_0xb934c);_0x3df00b={'startRow':_0x307a55['first'],'endRow':_0x307a55['last'],'includeAllSlots':!0x0};}else{const _0x29ca2f=_0x51f075['getColumnIndexes'](_0xb934c);_0x3df00b={'startColumn':_0x29ca2f['first'],'endColumn':_0x29ca2f['last'],'includeAllSlots':!0x0};}const _0x4a2b3f=_0x51f075['createTableWalker'](_0x51d1cf,_0x3df00b),_0x448f96=Array['from'](_0x4a2b3f)['map'](({cell:_0x1290ed})=>_0x1290ed),_0x1ebef5=Ne(_0x448f96['filter'](_0x765a3c=>_0x765a3c['hasAttribute'](_0x1d50a7))),_0xb46eb3=Ne(_0x448f96['filter'](_0x2bbe01=>!_0x2bbe01['hasAttribute'](_0x1d50a7)))['map'](_0x2c6a77=>_0x526266['createRangeOn'](_0x2c6a77)),_0x241991=_0x2d473b['markMultiRangeDeletion'](_0xb46eb3,_0x4c8864);if(_0x241991&&('tableRow'==_0x241991['subType']||'tableColumn'==_0x241991['subType'])){const _0x1c6b7c=this['_getSuggestionCoords'](_0x241991);for(const _0x563da2 of _0x1ebef5){const _0x52ee22=_0x526266['createRangeOn'](_0x563da2),_0x46d8ab=_0x51f075['getCellLocation'](_0x563da2),_0x2179d4=_0x563da2['getAttribute'](_0x1d50a7)-0x1,_0x5b796a=_0x1c6b7c[_0x18703a],_0x130f39=_0x1c6b7c[_0x5d6c5e];_0x5b796a<=_0x46d8ab[_0x52d024]&&_0x46d8ab[_0x52d024]+_0x2179d4<=_0x130f39&&_0x241991['addRange'](_0x52ee22);}}});});}function _0x2935da(_0x7aef64){const _0x492cf0=Array['from'](_0x44a348['getRanges']())['map'](_0x175903=>_0x5e3685['fromRange'](_0x175903));_0x376dfe['model']['change'](_0x210845=>{const _0x4042f7=_0x210845['batch'];_0x7aef64=_0x7aef64['filter'](_0x1946be=>'$graveyard'!=_0x1946be['root']['rootName']),_0x210845['setSelection'](_0x7aef64),_0x376dfe['commands']['get']('removeTableRow')['refresh'](),_0x376dfe['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x376dfe['model']['enqueueChange'](()=>{_0x376dfe['model']['enqueueChange'](_0x4042f7,_0xd880e6=>{const _0x1eb993=_0x492cf0['filter'](_0x44e72c=>'$graveyard'!=_0x44e72c['root']['rootName']);_0x1eb993['length']>0x0&&_0xd880e6['setSelection'](_0x1eb993);for(const _0xf41cb2 of _0x492cf0)_0xf41cb2['detach']();});});});}function _0x5a461e(_0xe099e1){_0x376dfe['model']['change'](_0x3b0ef9=>{const _0x23caf3=Array['from'](_0x44a348['getRanges']())['map'](_0x91cce0=>_0x5e3685['fromRange'](_0x91cce0)),_0x37ea48=[];for(const _0x141dd3 of _0xe099e1)for(const _0x18476f of _0x141dd3['getItems']({'shallow':!0x0}))_0x37ea48['push'](_0x18476f);for(const _0x52be8c of _0x37ea48)'$graveyard'!=_0x52be8c['root']['rootName']&&(_0x3b0ef9['setSelection'](_0x3b0ef9['createPositionAt'](_0x52be8c,0x0)),_0x376dfe['commands']['get']('removeTableColumn')['refresh'](),_0x376dfe['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1737b2=_0x23caf3['filter'](_0x17c91f=>'$graveyard'!=_0x17c91f['root']['rootName']);_0x1737b2['length']>0x0&&_0x3b0ef9['setSelection'](_0x1737b2);for(const _0x1990c8 of _0x23caf3)_0x1990c8['detach']();});}function _0x3510d1(_0x5043b2,_0x4423d9){return _0x4423d9['every'](_0xbaa516=>_0x5043b2['some'](_0x4794f8=>_0x4794f8['end']['isEqual'](_0xbaa516['start'])||_0xbaa516['end']['isEqual'](_0x4794f8['start'])));}function _0x3deff8(_0x5304d4,_0x1ade90){return!_0x5304d4['some'](_0x4ff018=>_0x1ade90['some'](_0x7868eb=>_0x4ff018['isIntersecting'](_0x7868eb)))&&_0x5304d4['some'](_0x49cf0b=>_0x1ade90['some'](_0x170064=>_0x49cf0b['end']['isTouching'](_0x170064['start'])));}_0x376dfe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20444c,_0x32253d,_0x4c5d75)=>{if(!_0x4c5d75['options']['showSuggestionHighlights'])return;const _0x2e366b=_0x32253d['item'];if(!_0x2e366b)return;const _0xfa5233=_0x4c5d75['mapper']['toViewElement'](_0x2e366b);function _0x182975(_0x7540d1){return Array['isArray'](_0x7540d1)?_0x7540d1:[_0x7540d1];}_0xfa5233&&'tableCell'===_0x2e366b['name']&&_0x3e5fc4(_0xfa5233,_0x4c5d75['writer'],(_0x995e14,_0x90491b,_0x5397fd)=>_0x5397fd['addClass'](_0x182975(_0x90491b['classes']),_0x995e14),(_0x3db966,_0x3b4ec2,_0xb8a332)=>_0xb8a332['removeClass'](_0x182975(_0x3b4ec2['classes']),_0x3db966));},{'priority':'highest'}),_0x2d473b['descriptionFactory']['registerDescriptionCallback'](_0x8f2a2a=>{if('insertion'!=_0x8f2a2a['type']&&'deletion'!=_0x8f2a2a['type'])return;const _0x10dfaf=_0x8f2a2a['getContainedElement']();if(null!=_0x10dfaf&&_0x10dfaf['is']('element','table')){if('insertion'==_0x8f2a2a['type']){const _0x3a20e4=_0x8f2a2a['getItems']()['filter'](_0x538e7f=>_0x538e7f['is']('$textProxy'))['map'](_0x2c9b1e=>_0x2c9b1e['data']);if(_0x3a20e4['length'])return{'type':'insertion','content':c(_0x4c474a,'*Insert:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a20e4['join']('\x20')+'\x22'))};}if('deletion'==_0x8f2a2a['type']){const _0x59403d=_0x8f2a2a['getItems']()['filter'](_0x4d545e=>_0x4d545e['is']('$textProxy'))['map'](_0x3b3d27=>_0x3b3d27['data']);if(_0x59403d['length'])return{'type':'deletion','content':c(_0x4c474a,'*Remove:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59403d['join']('\x20')+'\x22'))};}}}),_0x2d473b['descriptionFactory']['registerDescriptionCallback'](_0x519fc4=>{if('tableRow'==_0x519fc4['subType']){const _0x3c8abd=_0x519fc4['getItems']()['filter'](_0x245e8f=>_0x245e8f['is']('$textProxy'))['map'](_0x419a81=>_0x419a81['data']),_0x33e971=this['_getSuggestionCoords'](_0x519fc4),_0x19502a=_0x33e971['maxRow']-_0x33e971['minRow']+0x1;if('insertion'==_0x519fc4['type'])return _0x3c8abd['length']?{'type':'insertion','content':c(_0x4c474a,'*Insert:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19502a,'\x22'+_0x3c8abd['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4c474a,'*Insert:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_ROW',_0x19502a))};if('deletion'==_0x519fc4['type'])return _0x3c8abd['length']?{'type':'deletion','content':c(_0x4c474a,'*Remove:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19502a,'\x22'+_0x3c8abd['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4c474a,'*Remove:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_ROW',_0x19502a))};}if('tableColumn'==_0x519fc4['subType']){const _0x570ade=_0x519fc4['getItems']()['filter'](_0x15b83e=>_0x15b83e['is']('$textProxy'))['map'](_0x57d796=>_0x57d796['data']),_0x45f9c2=this['_getSuggestionCoords'](_0x519fc4),_0x2b8000=_0x45f9c2['maxColumn']-_0x45f9c2['minColumn']+0x1;if('insertion'==_0x519fc4['type'])return _0x570ade['length']?{'type':'insertion','content':c(_0x4c474a,'*Insert:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b8000,'\x22'+_0x570ade['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4c474a,'*Insert:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_COLUMN',_0x2b8000))};if('deletion'==_0x519fc4['type'])return _0x570ade['length']?{'type':'deletion','content':c(_0x4c474a,'*Remove:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b8000,'\x22'+_0x570ade['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4c474a,'*Remove:*\x20%0',c(_0x4c474a,'ELEMENT_TABLE_COLUMN',_0x2b8000))};}}),_0x2d473b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2935da),_0x2d473b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2935da),_0x2d473b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5a461e),_0x2d473b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5a461e),_0x2d473b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3510d1),_0x2d473b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3510d1),_0x2d473b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3deff8),_0x2d473b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3deff8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f301e=this['editor'],_0x2ac707=_0x4f301e['model']['document']['selection'];return(_0x112880,_0x24911a)=>{_0x4f301e['model']['change'](_0x228276=>{const {commandName:_0x285dfc,commandParams:_0x181011}=_0x24911a;let _0x31c629=_0x112880[0x0]['end']['nodeBefore'];_0x181011&&_0x181011[0x0]&&!0x1===_0x181011[0x0]['forceValue']&&(_0x31c629=_0x112880[0x0]['start']['nodeAfter']);const _0xf1590=_0x228276['createRangeIn'](_0x31c629);if('$graveyard'==_0xf1590['root']['rootName'])return;const _0x30ed96=Array['from'](_0x2ac707['getRanges']())['map'](_0x4b6760=>_0x5e3685['fromRange'](_0x4b6760));_0x228276['setSelection'](_0xf1590),_0x4f301e['commands']['get'](_0x285dfc)['refresh'](),_0x181011['push']({'forceDefaultExecution':!0x0}),_0x4f301e['execute'](_0x285dfc,..._0x181011);const _0x2efbf8=_0x30ed96['filter'](_0x47c698=>'$graveyard'!=_0x47c698['root']['rootName']);_0x2efbf8['length']>0x0&&_0x228276['setSelection'](_0x2efbf8);for(const _0x4f8f61 of _0x30ed96)_0x4f8f61['detach']();});};}['_getCoordsForCells'](_0x529ee1){const _0x32d0ed=this['editor']['plugins']['get']('TableUtils');let _0x5ac01d=Number['MAX_SAFE_INTEGER'],_0x14db44=Number['MIN_SAFE_INTEGER'],_0x4266c1=Number['MAX_SAFE_INTEGER'],_0x1a6c35=Number['MIN_SAFE_INTEGER'];for(const _0x22d5a9 of _0x529ee1){if('$graveyard'==_0x22d5a9['root']['rootName'])continue;const {row:_0x4e10bb,column:_0x2d0ceb}=_0x32d0ed['getCellLocation'](_0x22d5a9),_0x25fd3c=_0x22d5a9['hasAttribute']('rowspan')?_0x22d5a9['getAttribute']('rowspan')-0x1:0x0,_0x53d1e7=_0x22d5a9['hasAttribute']('colspan')?_0x22d5a9['getAttribute']('colspan')-0x1:0x0;_0x5ac01d=_0x4e10bb<_0x5ac01d?_0x4e10bb:_0x5ac01d,_0x14db44=_0x4e10bb+_0x25fd3c>_0x14db44?_0x4e10bb+_0x25fd3c:_0x14db44,_0x4266c1=_0x2d0ceb<_0x4266c1?_0x2d0ceb:_0x4266c1,_0x1a6c35=_0x2d0ceb+_0x53d1e7>_0x1a6c35?_0x2d0ceb+_0x53d1e7:_0x1a6c35;}return{'minRow':_0x5ac01d,'maxRow':_0x14db44,'minColumn':_0x4266c1,'maxColumn':_0x1a6c35};}['_setupColumnsRowsFixing'](){const _0x9c7e05=this['editor'],_0x3effc1=_0x9c7e05['plugins']['get']('TrackChangesEditing'),_0x3e32e1=_0x9c7e05['plugins']['get']('TableUtils');_0x9c7e05['model']['document']['on']('change:data',()=>{const _0xea2732=Array['from'](_0x9c7e05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42d793,data:_0x3338ae}of _0xea2732){const {group:_0x11269b,id:_0x52b84f,subType:_0x259d49}=_0x3effc1['_splitMarkerName'](_0x42d793);if('suggestion'!=_0x11269b)continue;if(null!=_0x3338ae['oldRange'])continue;const _0x460734=_0x3effc1['getSuggestion'](_0x52b84f);this['_tablePostFixingSubtypes']['includes'](_0x259d49)&&this['_tableSuggestions']['add'](_0x460734);}},{'priority':'low'});const _0x599b0a=(_0x4dc64c,_0x2d24ee)=>{let _0x424c45=!0x1;const _0xde7f2f=_0x2d24ee['createRangeOn'](_0x4dc64c),_0x2e6092=_0x4dc64c['findAncestor']('table'),_0x4b51ce=_0x3e32e1['getCellLocation'](_0x4dc64c);for(const _0x1deb09 of this['_tableSuggestions']){const _0x154076=_0x1deb09['subType'],_0x3dcf34=_0x154076['startsWith']('tablePaste'),_0x32b302=_0x154076['substr'](_0x3dcf34?0xa:0x5),_0x44d7a5=_0x32b302['toLowerCase'](),_0x5e4457=_0x44d7a5['substr'](0x0,0x3)+'span',_0x3085f8='min'+_0x32b302,_0x40c9b4='max'+_0x32b302;if(!_0x1deb09['isInContent'])continue;if(_0x2e6092!=_0x1deb09['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1deb09['isIntersectingWithRange'](_0xde7f2f))continue;const _0x54094e=_0x4dc64c['hasAttribute'](_0x5e4457)?_0x4dc64c['getAttribute'](_0x5e4457)-0x1:0x0,_0x5cafb4=this['_getSuggestionCoords'](_0x1deb09),_0xec4347=_0x5cafb4[_0x3085f8],_0x2c6ef6=_0x5cafb4[_0x40c9b4];_0xec4347<=_0x4b51ce[_0x44d7a5]&&_0x4b51ce[_0x44d7a5]+_0x54094e<=_0x2c6ef6&&(_0x1deb09['addRange'](_0xde7f2f),_0x424c45=!0x0);}return _0x424c45;};_0x9c7e05['model']['document']['registerPostFixer'](_0x1c4914=>{let _0x46f6c8=!0x1;for(const _0x20100d of _0x9c7e05['model']['document']['differ']['getChanges']())if('insert'==_0x20100d['type']){if('tableRow'==_0x20100d['name']){for(const _0x20c743 of _0x20100d['position']['nodeAfter']['getChildren']())_0x46f6c8=_0x46f6c8||_0x599b0a(_0x20c743,_0x1c4914);}else'tableCell'==_0x20100d['name']&&(_0x46f6c8=_0x46f6c8||_0x599b0a(_0x20100d['position']['nodeAfter'],_0x1c4914));}return _0x46f6c8;});}['_getSuggestionCoords'](_0x328551){return this['_getCoordsForCells'](_0x328551['getRanges']()['map'](_0xe1d50e=>_0xe1d50e['start']['nodeAfter']));}}function Ne(_0x541c46){return Array['from'](new Set(_0x541c46)['values']());}class Nt extends _0x4e3ad1{static get['requires'](){return[Ct];}['afterInit'](){const _0x25a1e0=this['editor'],_0x3399d8=_0x25a1e0['model']['document']['selection'],_0x1b52a5=_0x25a1e0['locale'];if(!_0x25a1e0['plugins']['has']('TableEditing'))return;const _0x39e76e=_0x25a1e0['plugins']['get']('TrackChangesEditing'),_0x504445=_0x25a1e0['plugins']['get']('TableUtils'),_0x2b8004=_0x25a1e0['plugins']['get'](Ct);_0x2b8004['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39e76e['enableCommand']('mergeTableCells',()=>{const _0x4f911a=_0x504445['getSelectionAffectedTableCells'](_0x25a1e0['model']['document']['selection']);_0x25a1e0['model']['change'](()=>{_0x39e76e['markMultiRangeBlockFormat'](_0x4f911a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x25a1e0['commands']['get']('mergeTableCells')['on']('execute',(_0xbc91ce,_0x49aeee)=>{_0x25a1e0['commands']['get']('trackChanges')['value']&&(_0x49aeee['length']>0x0&&_0x49aeee[_0x49aeee['length']-0x1]&&_0x49aeee[_0x49aeee['length']-0x1]['forceDefaultExecution']||_0x39e76e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xbc91ce['stop']());},{'priority':'highest'});for(const _0x28ea4e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17897f=_0x25a1e0['commands']['get'](_0x28ea4e);_0x39e76e['enableCommand'](_0x28ea4e,()=>{const _0x127326=_0x25a1e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f9fbc=>_0x3f9fbc['is']('element','tableCell')),_0x588af2=_0x17897f['value'];_0x25a1e0['model']['change'](()=>{_0x39e76e['markMultiRangeBlockFormat']([_0x127326,_0x588af2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46409a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2ba2e4=_0x25a1e0['commands']['get'](_0x46409a);_0x39e76e['enableCommand'](_0x46409a,()=>{const _0x3b43c6=_0x504445['getSelectionAffectedTableCells'](_0x25a1e0['model']['document']['selection'])[0x0],_0x17351f=_0x3b43c6['findAncestor']('table'),{column:_0x35d067,row:_0x44d4e4}=_0x504445['getCellLocation'](_0x3b43c6);let _0x4f5439=[];if('horizontally'==_0x2ba2e4['direction']){const _0x39ad5e=_0x504445['createTableWalker'](_0x17351f,{'startRow':_0x44d4e4,'endRow':_0x44d4e4,'includeAllSlots':!0x0});_0x4f5439=Array['from'](_0x39ad5e)['map'](_0x4cd11b=>_0x4cd11b['cell']);}else{const _0x40ac18=_0x504445['createTableWalker'](_0x17351f,{'column':_0x35d067,'includeAllSlots':!0x0});_0x4f5439=Array['from'](_0x40ac18)['map'](_0x23b299=>_0x23b299['cell']);}_0x25a1e0['model']['change'](_0xc65cdf=>{_0x39e76e['markBlockFormat'](_0xc65cdf['createRangeOn'](_0x3b43c6),{'commandName':_0x46409a,'commandParams':[]},_0x4f5439,_0x46409a);});});}_0x39e76e['descriptionFactory']['registerDescriptionCallback'](_0x211508=>{if('formatBlock'!=_0x211508['type']&&'formatInline'!=_0x211508['type'])return;const {data:_0x563b6f}=_0x211508;return _0x563b6f&&'mergeTableCells'==_0x563b6f['commandName']?{'type':'format','content':c(_0x1b52a5,'*Merge\x20cells*')}:void 0x0;}),_0x39e76e['descriptionFactory']['registerDescriptionCallback'](_0x5d7340=>{if('formatBlock'!=_0x5d7340['type']&&'formatInline'!=_0x5d7340['type'])return;const {data:_0x5ac7a3}=_0x5d7340;return _0x5ac7a3?'splitTableCellVertically'==_0x5ac7a3['commandName']?{'type':'format','content':c(_0x1b52a5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ac7a3['commandName']?{'type':'format','content':c(_0x1b52a5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39a219=_0x2b8004['_acceptFormatSuggestionCallbackFactory']();for(const _0x594bdb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39e76e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x594bdb,'accept',_0x39a219);for(const _0x40c04f of['splitTableCellVertically','splitTableCellHorizontally'])_0x39e76e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40c04f,'accept',_0x39a219);_0x39e76e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x378ef3=>{_0x25a1e0['model']['change'](_0x579f50=>{const _0x3171f7=Array['from'](_0x3399d8['getRanges']())['map'](_0x3c39ad=>_0x5e3685['fromRange'](_0x3c39ad));_0x579f50['setSelection'](_0x378ef3),_0x25a1e0['commands']['get']('mergeTableCells')['refresh'](),_0x25a1e0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f2f6e=_0x3171f7['filter'](_0x298f6e=>'$graveyard'!=_0x298f6e['root']['rootName']);_0x3f2f6e['length']>0x0&&_0x579f50['setSelection'](_0x3f2f6e);for(const _0x137cbb of _0x3171f7)_0x137cbb['detach']();});});for(const _0x2ac320 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5b5f69=_0x25a1e0['commands']['get'](_0x2ac320);_0x5b5f69['on']('set:isEnabled',(_0x35a915,_0x449aa1,_0x3b8376)=>{if(_0x3b8376){const _0xf5e322=_0x25a1e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4752cf=>_0x4752cf['is']('element','tableCell'));this['_areMergableCells'](_0x5b5f69['value'],_0xf5e322)||(_0x35a915['return']=!0x1,_0x35a915['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x6959a7=this['editor']['commands']['get']('mergeTableCells'),_0xe5375c=this['editor']['plugins']['get']('TableUtils');if(!_0x6959a7['isEnabled'])return!0x1;const _0x367457=_0xe5375c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5006f7 of _0x367457)for(const _0x38bd4d of _0x367457)if(_0x5006f7!=_0x38bd4d&&!this['_areMergableCells'](_0x5006f7,_0x38bd4d))return!0x1;return!0x0;}['_areMergableCells'](_0x32ae8a,_0x2aa2e9){const _0x5791ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbac56b=this['editor']['model']['createRangeOn'](_0x32ae8a),_0x4aaca5=this['editor']['model']['createRangeOn'](_0x2aa2e9),_0x4835c4=new Set(),_0x40b955=new Set();for(const _0x1c74a1 of _0x5791ae['getSuggestions']())if(('insertion'==_0x1c74a1['type']||'deletion'==_0x1c74a1['type']||'mergeTableCells'==_0x1c74a1['subType'])&&_0x1c74a1['isInContent']){for(const _0xe2b1b9 of _0x1c74a1['getRanges']())_0xe2b1b9['containsRange'](_0xbac56b,!0x0)&&_0x4835c4['add'](_0x1c74a1['type']+':'+_0x1c74a1['author']['id']),_0xe2b1b9['containsRange'](_0x4aaca5,!0x0)&&_0x40b955['add'](_0x1c74a1['type']+':'+_0x1c74a1['author']['id']);}if(_0x4835c4['size']!=_0x40b955['size'])return!0x1;for(const _0xbb97ac of _0x4835c4)if(!_0x40b955['has'](_0xbb97ac))return!0x1;return!0x0;}}class Dt extends _0x4e3ad1{static get['requires'](){return[Ct];}['afterInit'](){const _0x5e0cf1=this['editor'];if(!_0x5e0cf1['plugins']['has']('TableEditing'))return;const _0x70295f=_0x5e0cf1['locale'],_0xadfa77=_0x5e0cf1['plugins']['get']('TrackChangesEditing');_0xadfa77['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xadfa77['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xadfa77['registerBlockAttribute']('headingRows'),_0xadfa77['registerBlockAttribute']('headingColumns'),_0xadfa77['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x70295f,'FORMAT_HEADER_ROW')),_0xadfa77['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x70295f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x224940=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e9056=this['editor']['plugins']['get']('TableUtils'),_0x4900d1=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3840b1({showActiveMarker:_0x27a96b=!0x0,setDataAttribute:_0x12845f=!0x0}={}){return(_0x395855,_0x3d7312,_0x31dce9)=>{const {type:_0x2f71ae,id:_0x4e3b20}=_0x224940['_splitMarkerName'](_0x3d7312['markerName']),_0x23cdd8=_0x224940['getSuggestion'](_0x4e3b20),_0x3cb4d4=_0x23cdd8['data'];if('formatBlock'!=_0x23cdd8['type']||!_0x3cb4d4||'setTableColumnHeader'!=_0x3cb4d4['commandName'])return;if(_0x3d7312['item'])return void _0x395855['stop']();if(!_0x31dce9['consumable']['consume'](_0x3d7312['markerRange'],_0x395855['name']))return;const _0x26d62c=_0x3d7312['markerRange']['start']['nodeAfter'],_0x140b76=_0x3d7312['markerRange']['end']['nodeBefore'],_0xb8159e=_0x26d62c['parent']['parent'],{column:_0x2e8cc7}=_0x5e9056['getCellLocation'](_0x26d62c),{column:_0x33bb3b}=_0x5e9056['getCellLocation'](_0x140b76);for(let _0x5dd165=_0x2e8cc7;_0x5dd165<=_0x33bb3b;_0x5dd165++){const _0x518b4c=_0x5e9056['createTableWalker'](_0xb8159e,{'column':_0x5dd165,'includeAllSlots':!0x1});for(const _0x21d99f of _0x518b4c){const _0x391d52=_0x21d99f['cell'],_0x3b7368=_0x31dce9['mapper']['toViewElement'](_0x391d52);_0x31dce9['writer']['addClass']('ck-suggestion-marker-'+_0x2f71ae,_0x3b7368),_0x12845f&&_0x31dce9['writer']['setAttribute']('data-suggestion',_0x4e3b20,_0x3b7368),_0x31dce9['mapper']['bindElementToMarker'](_0x3b7368,_0x3d7312['markerName']),_0x27a96b&&(_0x224940['activeMarkers']['includes'](_0x3d7312['markerName'])?_0x31dce9['writer']['addClass']('ck-suggestion-marker--active',_0x3b7368):_0x31dce9['writer']['removeClass']('ck-suggestion-marker--active',_0x3b7368));}}};}_0x224940['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4900d1),_0x224940['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4900d1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3840b1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42dd39,_0x3ddb8f,_0x2f7ef1)=>{_0x2f7ef1['options']['showSuggestionHighlights']&&_0x3840b1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x42dd39,_0x3ddb8f,_0x2f7ef1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17ba7c,_0x320dbd,_0x2ad920)=>{const {type:_0x3d1f38,id:_0x368b8e}=_0x224940['_splitMarkerName'](_0x320dbd['markerName']),_0x2b23f8=_0x224940['getSuggestion'](_0x368b8e),_0x544879=_0x2b23f8['data'];if('formatBlock'!=_0x2b23f8['type']||!_0x544879||'setTableColumnHeader'!=_0x544879['commandName'])return;const _0x202834=_0x2ad920['mapper']['markerNameToElements'](_0x320dbd['markerName']);if(_0x202834){for(const _0x3e62ed of _0x202834)_0x2ad920['writer']['removeClass']('ck-suggestion-marker-'+_0x3d1f38,_0x3e62ed),_0x2ad920['writer']['removeClass']('ck-suggestion-marker--active',_0x3e62ed),_0x2ad920['writer']['removeAttribute']('data-suggestion',_0x3e62ed),_0x2ad920['mapper']['unbindElementFromMarkerName'](_0x3e62ed,_0x320dbd['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12ef48=this['editor'],_0x36e984=_0x12ef48['locale'];function _0x1ffb7d(_0x451e39){return{'type':'format','content':c(_0x36e984,'*Format:*\x20%0',_0x451e39)};}_0x12ef48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ef3d0=>{if('formatBlock'!=_0x2ef3d0['type'])return;const {data:_0x551050}=_0x2ef3d0;if(_0x551050){if('setTableRowHeader'==_0x551050['commandName']){const _0x5fe2c7=_0x551050['commandParams'][0x0]['forceValue'];return _0x1ffb7d(c(_0x36e984,_0x5fe2c7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x551050['commandName']){const _0x1812e3=_0x551050['commandParams'][0x0]['forceValue'];return _0x1ffb7d(c(_0x36e984,_0x1812e3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2d5db6=>[_0x2d5db6,null]));class Mt extends _0x4e3ad1{static get['requires'](){return[Ct];}['afterInit'](){const _0x5d4cc3=this['editor'];if(!_0x5d4cc3['plugins']['has']('TableClipboard'))return;const _0x502c52=_0x5d4cc3['plugins']['get']('TrackChangesEditing'),_0x498bd8=_0x5d4cc3['plugins']['get']('TableUtils'),_0x164431=_0x5d4cc3['plugins']['get'](Ct),_0x481dd6=_0x5d4cc3['plugins']['get']('TableClipboard');_0x164431['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5d4cc3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5d4cc3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc192a8=null;_0x5d4cc3['model']['on']('insertContent',(_0x4df18e,_0x494462)=>{const [_0x25d1a7,_0x2b3ea9]=_0x494462,_0x133b05=_0x494462[_0x494462['length']-0x1];_0x133b05&&_0x133b05['forceDefaultExecution']||_0x502c52['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5e2b25,_0x1c2bbe,_0x5c738c,_0x268dbf,_0x54da45){if(_0x1c2bbe&&!_0x1c2bbe['is']('documentSelection'))return!0x1;const _0x59752b=_0x54da45['getTableIfOnlyTableInContent'](_0x5e2b25,_0x5c738c);if(!_0x59752b||!Ue(_0x59752b,void 0x0,_0x268dbf))return!0x1;const _0xfac30=_0x268dbf['getSelectionAffectedTableCells'](_0x5c738c['document']['selection']);if(!_0xfac30['length'])return!0x1;const _0xd7cee=_0xfac30[0x0]['findAncestor']('table'),_0x265ae7=_0x268dbf['getRowIndexes'](_0xfac30),_0x3fb152=_0x268dbf['getColumnIndexes'](_0xfac30),_0x2f07c4={'startRow':_0x265ae7['first'],'endRow':_0x265ae7['last'],'startColumn':_0x3fb152['first'],'endColumn':_0x3fb152['last']};return 0x1==_0xfac30['length']&&(_0x2f07c4['endRow']+=_0x268dbf['getRows'](_0x59752b)-0x1,_0x2f07c4['endColumn']+=_0x268dbf['getColumns'](_0x59752b)-0x1),Ue(_0xd7cee,_0x2f07c4,_0x268dbf);}(_0x25d1a7,_0x2b3ea9,_0x5d4cc3['model'],_0x498bd8,_0x481dd6)&&(_0x4df18e['stop'](),_0xc192a8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d4cc3['model']['change'](()=>{_0x5d4cc3['model']['insertContent'](_0x494462[0x0],_0x494462[0x1],_0x494462[0x2],{'forceDefaultExecution':!0x0});const _0x4c5b54=_0x36e450(),{rowInsertionRanges:_0xbf2019,columnInsertionRanges:_0x59a1ce,insertionRanges:_0x5d730c,deletionRanges:_0x40ee8c,cells:_0x1507bb}=_0xc192a8;_0xbf2019['length']&&_0x502c52['markMultiRangeInsertion'](_0xbf2019,'tablePasteRow',{'tablePasteChainId':_0x4c5b54}),_0x59a1ce['length']&&_0x502c52['markMultiRangeInsertion'](_0x59a1ce,'tablePasteColumn',{'tablePasteChainId':_0x4c5b54}),_0x5d730c['length']&&(_0x502c52['markMultiRangeInsertion'](_0x5d730c,'tablePaste',{'tablePasteChainId':_0x4c5b54,'skipNestingCheck':!0x0}),_0x5d730c['forEach'](_0x5c922a=>_0x5c922a['detach']?.())),_0x40ee8c['length']&&(_0x502c52['markMultiRangeDeletion'](_0x40ee8c,'tablePaste',{'tablePasteChainId':_0x4c5b54,'skipNestingCheck':!0x0}),_0x40ee8c['forEach'](_0x57996e=>_0x57996e['detach']?.()));const _0x4016b1=_0x502c52['markMultiRangeBlockFormat'](_0x1507bb['map'](({element:_0x549505})=>_0x549505),{'formatGroupId':_0x36e450()},[],'tablePasteCell',{'tablePasteChainId':_0x4c5b54});if(_0x4016b1){const _0x56f5e5=_0x4016b1['getMarkers'](),_0x1d4027=[];for(const {element:_0x5add6a,attributes:_0x30b621}of _0x1507bb){if(!_0x30b621)continue;const _0x558ba1=_0x5d4cc3['model']['createRangeOn'](_0x5add6a),_0x36ba10=_0x56f5e5['find'](_0x504ded=>_0x504ded['getRange']()['isEqual'](_0x558ba1));_0x36ba10&&_0x1d4027['push']([_0x36ba10['name'],_0x30b621]);}_0x1d4027['length']&&_0x4016b1['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d4027));}_0xc192a8=null;}));},{'priority':_0x393775['high']+0xa}),_0x5d4cc3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1fbe15,_0xa07435)=>{const [_0x884f15,_0x199c24,,_0x2ec4f5]=_0xa07435;if(!_0xc192a8)return;_0x1fbe15['stop']();const _0x1cba3c=_0x884f15['cell'],_0x53bde5=_0x199c24,_0x1e754e=Oe(_0x1cba3c),_0x23b2f7=Oe(_0x53bde5);_0x1fbe15['return']=_0x1cba3c;let _0x3d9ec2=null,_0x9fc9db=null;if(_0x23b2f7||_0x1e754e){if(_0x1e754e&&!_0x23b2f7){_0x2ec4f5['remove'](_0x1cba3c['getChild'](0x0));for(const _0x2dfb4e of Array['from'](_0x53bde5['getChildren']()))_0x2ec4f5['insert'](_0x2dfb4e,_0x1cba3c,'end');const _0x74949d=_0xc192a8['rowInsertionIndexes']['includes'](_0x884f15['row']),_0x10135a=_0xc192a8['columnInsertionIndexes']['includes'](_0x884f15['column']);_0x74949d||_0x10135a||(_0x3d9ec2=_0x5e3685['fromRange'](_0x2ec4f5['createRangeIn'](_0x1cba3c)));}else _0x23b2f7&&!_0x1e754e&&(_0x9fc9db=_0x2ec4f5['createRangeIn'](_0x1cba3c));}else{const _0x49a4e0=_0x2ec4f5['createElement']('tableCellSuggestion'),_0x1dfb67=_0x2ec4f5['createElement']('tableCellSuggestion');_0x2ec4f5['wrap'](_0x2ec4f5['createRangeIn'](_0x1cba3c),_0x1dfb67),_0x2ec4f5['insert'](_0x49a4e0,_0x1cba3c,0x0);for(const _0x3b7075 of Array['from'](_0x53bde5['getChildren']()))_0x2ec4f5['insert'](_0x3b7075,_0x49a4e0,'end');_0x3d9ec2=_0x5e3685['fromRange'](_0x2ec4f5['createRangeOn'](_0x49a4e0)),_0x9fc9db=_0x5e3685['fromRange'](_0x2ec4f5['createRangeOn'](_0x1dfb67));}const _0x4bc393=Array['from'](_0x53bde5['getAttributes']())['filter'](([_0x14590a])=>Be['includes'](_0x14590a));_0xc192a8['cells']['push']({'element':_0x1cba3c,'attributes':_0x4bc393['length']?Object['fromEntries'](_0x4bc393):null}),_0x3d9ec2&&_0xc192a8['insertionRanges']['push'](_0x3d9ec2),_0x9fc9db&&_0xc192a8['deletionRanges']['push'](_0x9fc9db);},{'priority':'high'}),_0x498bd8['on']('insertColumns',(_0x9b858f,_0x5d6ed2)=>{const [_0x336b15,_0x182735={}]=_0x5d6ed2;if(!_0xc192a8)return;const _0x47760d=_0x182735['at']||0x0,_0x562136=_0x182735['columns']||0x1;_0xc192a8['columnInsertionIndexes']=new Array(_0x562136)['fill'](_0x47760d)['map']((_0x39711f,_0x37fade)=>_0x39711f+_0x37fade);for(const {cell:_0x3c67b5}of _0x498bd8['createTableWalker'](_0x336b15,{'startColumn':_0x47760d,'endColumn':_0x47760d+_0x562136-0x1}))_0xc192a8['columnInsertionRanges']['push'](_0x5d4cc3['model']['createRangeOn'](_0x3c67b5));},{'priority':'low'}),_0x498bd8['on']('insertRows',(_0x56afb3,_0x1472fd)=>{const [_0x286726,_0x347ce1={}]=_0x1472fd;if(!_0xc192a8)return;const _0x3ab8d5=_0x347ce1['at']||0x0,_0x3ff3f0=_0x347ce1['rows']||0x1;_0xc192a8['rowInsertionIndexes']=new Array(_0x3ff3f0)['fill'](_0x3ab8d5)['map']((_0x4da811,_0x550097)=>_0x4da811+_0x550097);for(const {cell:_0x42557f}of _0x498bd8['createTableWalker'](_0x286726,{'startRow':_0x3ab8d5,'endRow':_0x3ab8d5+_0x3ff3f0-0x1}))_0xc192a8['rowInsertionRanges']['push'](_0x5d4cc3['model']['createRangeOn'](_0x42557f));},{'priority':'low'}),_0x502c52['descriptionFactory']['registerDescriptionCallback'](_0x217952=>{if(_0x217952['subType']&&_0x217952['subType']['startsWith']('tablePaste'))return _0x217952['previous']?{}:{'type':'insertion','content':c(_0x5d4cc3['locale'],'*Replace\x20table\x20cells*')};});const _0x3a5e8a=()=>!0x1;for(const _0x191a37 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x502c52['_suggestionFactory']['registerCustomCallback']('insertion',_0x191a37,'join',_0x3a5e8a),_0x502c52['_suggestionFactory']['registerCustomCallback']('deletion',_0x191a37,'join',_0x3a5e8a),_0x502c52['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x191a37,'join',_0x3a5e8a);_0x502c52['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3a5e8a),_0x502c52['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc4865b,_0x571bf7,_0x7d6a40)=>{const _0x28cd65=_0xc4865b['map'](_0x2b9520=>_0x2b9520['getContainedElement']())['filter'](_0x4bb3f9=>_0x4bb3f9),_0x215978=new Map(_0x28cd65['map'](_0x4af9b8=>[_0x4af9b8,null]));if(_0xc192a8){for(const {element:_0x2b515b,attributes:_0x449cf7}of _0xc192a8['cells'])_0x449cf7&&_0x215978['set'](_0x2b515b,_0x449cf7);}else{if(_0x7d6a40&&_0x7d6a40['markerAttributes'])for(const [_0x106900,_0x322120]of Object['entries'](_0x7d6a40['markerAttributes'])){const _0x3e16a1=_0x5d4cc3['model']['markers']['get'](_0x106900),_0x27c5fb=_0x3e16a1?_0x3e16a1['getRange']()['getContainedElement']():null;_0x27c5fb&&_0x215978['set'](_0x27c5fb,_0x322120);}}_0x5d4cc3['model']['change'](_0x440ebe=>{for(const [_0x4bb68a,_0x4f998b]of _0x215978)_0x440ebe['setAttributes']({...xe,..._0x4f998b},_0x4bb68a);});});const _0x121e87=(_0x1c14aa,_0x5e3bac)=>{_0x502c52['_suggestionFactory']['registerCustomCallback'](_0x1c14aa,'tablePaste',_0x5e3bac,(_0x2fcc4a,_0x536faf,_0x254307)=>{_0x5d4cc3['model']['change'](_0x20a0f3=>{const _0x49b5e1=[];for(const _0x3fd96c of _0x2fcc4a){const _0x1cd33b=_0x3fd96c['start']['nodeAfter'];_0x1cd33b['is']('element','tableCellSuggestion')&&_0x49b5e1['push'](_0x1cd33b);}_0x502c52['_suggestionFactory']['getSuggestionCallback'](_0x1c14aa,null,_0x5e3bac)(_0x2fcc4a,_0x536faf,_0x254307);for(const _0x23ebd5 of _0x49b5e1)'$graveyard'!=_0x23ebd5['root']['rootName']&&_0x20a0f3['unwrap'](_0x23ebd5);});});};_0x121e87('insertion','accept'),_0x121e87('insertion','discard'),_0x121e87('deletion','accept'),_0x121e87('deletion','discard'),_0x502c52['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e7fb5=>{const _0x5823e7=_0x1e7fb5['map'](_0x7c26a7=>_0x7c26a7['getContainedElement']()),_0x39299d=_0x5823e7[0x0]['findAncestor']('table'),{minRow:_0x2eae9e,maxRow:_0x31874d}=_0x164431['_getCoordsForCells'](_0x5823e7);_0x498bd8['removeRows'](_0x39299d,{'at':_0x2eae9e,'rows':_0x31874d-_0x2eae9e+0x1});}),_0x502c52['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58b6aa=>{const _0xcd1640=_0x58b6aa['map'](_0x19e2ea=>_0x19e2ea['getContainedElement']()),_0x41df44=_0xcd1640[0x0]['findAncestor']('table'),{minColumn:_0x13bc67,maxColumn:_0x2025bd}=_0x164431['_getCoordsForCells'](_0xcd1640);_0x498bd8['removeColumns'](_0x41df44,{'at':_0x13bc67,'columns':_0x2025bd-_0x13bc67+0x1});});const _0x4f2257=(_0x554000,_0x1619da)=>{if(!_0x1619da['subType']||!_0x1619da['subType']['startsWith']('tablePaste'))return;const _0x35bc00=_0x1619da['attributes']['tablePasteChainId'],_0x558b4d=_0x502c52['getSuggestions']()['filter'](_0x108e2c=>_0x108e2c['isInContent']&&_0x108e2c['attributes']&&_0x108e2c['attributes']['tablePasteChainId']==_0x35bc00);_0x558b4d['length']&&_0x1619da['getAllAdjacentSuggestions']()['length']!=_0x558b4d['length']&&_0x558b4d['reduce']((_0xf436cf,_0x541634)=>(_0xf436cf['next']=_0x541634,_0x541634['previous']=_0xf436cf,_0x541634));};function _0x4a2ec3(_0x148e4f,_0x9bccaa=!0x0){const {id:_0x216ee5,authorId:_0x10d0d5}=_0x502c52['_splitMarkerName'](_0x148e4f['markerName']),_0x5a2b46=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x161e48=_0x502c52['activeMarkers']['includes'](_0x148e4f['markerName']);return _0x161e48&&_0x5a2b46['push']('ck-suggestion-marker--active'),{'classes':_0x5a2b46,'attributes':{'data-suggestion':_0x216ee5,'data-author-id':_0x10d0d5},'priority':_0x161e48&&_0x9bccaa?0xbc2:0xbb8};}_0x502c52['on']('suggestionLoaded',_0x4f2257,{'priority':'high'}),_0x502c52['on']('suggestionUnloaded',_0x4f2257,{'priority':'high'}),_0x5d4cc3['model']['document']['registerPostFixer'](()=>{let _0x270efb=!0x1;const _0x4380f4=Array['from'](_0x5d4cc3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfe8787,data:_0x1573bc}of _0x4380f4){const {group:_0x3e5d37,type:_0x204ed1,id:_0x2413d1}=_0x502c52['_splitMarkerName'](_0xfe8787);if('suggestion'!=_0x3e5d37||'deletion'!=_0x204ed1||_0x1573bc['oldRange'])continue;if(!_0x502c52['hasSuggestion'](_0x2413d1))continue;const _0x317b6f=_0x502c52['getSuggestion'](_0x2413d1)['getRanges'](),_0x2170c0=_0x5d4cc3['plugins']['get']('Users')['me'];for(const _0x49adcb of _0x502c52['getSuggestions']()){if(!_0x49adcb['isInContent']||_0x49adcb['author']!=_0x2170c0)continue;if('formatBlock'!=_0x49adcb['type']||'tablePasteCell'!=_0x49adcb['subType'])continue;if(_0x49adcb['getRanges']()['every'](_0x13d4e7=>_0x317b6f['some'](_0x4a6695=>_0x4a6695['containsRange'](_0x13d4e7,!0x0)))){for(const _0x40be55 of _0x49adcb['getAllAdjacentSuggestions']())_0x40be55['isInContent']&&(_0x40be55['discard'](),_0x270efb=!0x0);}}}return _0x270efb;}),_0x5d4cc3['model']['document']['registerPostFixer'](_0x3b7d7c=>{const _0x5a93b2=_0x5d4cc3['commands']['get']('redo');if(!_0x5a93b2||!_0x5a93b2['_createdBatches']['has'](_0x3b7d7c['batch']))return!0x1;let _0xcbefe2=!0x1;const _0x4f82e5=_0x5d4cc3['plugins']['get']('Users')['me'],_0x89d41c=_0x5d4cc3['model']['document']['differ']['getChanges'](),_0x2f7dfd=Array['from'](_0x5d4cc3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x95de40,data:_0x3e6a41})=>{const {group:_0x20044e,subType:_0x21b2b1,authorId:_0x404db9}=_0x502c52['_splitMarkerName'](_0x95de40);return'suggestion'==_0x20044e&&'tablePaste'==_0x21b2b1&&_0x404db9==_0x4f82e5['id']&&!_0x3e6a41['oldRange'];});for(const _0x403654 of _0x89d41c){if('insert'!=_0x403654['type']||'tableCellSuggestion'!=_0x403654['name']||0x1!=_0x403654['length'])continue;const _0x55229b=_0x3b7d7c['createRange'](_0x403654['position'],_0x403654['position']['getShiftedBy'](0x1));if(!_0x2f7dfd['find'](({data:_0x5259ec})=>_0x5259ec['newRange']['isEqual'](_0x55229b))){for(const {name:_0x526742,data:_0x20dd07}of _0x2f7dfd)if(_0x55229b['containsRange'](_0x20dd07['newRange'])){_0x3b7d7c['updateMarker'](_0x526742,{'range':_0x55229b}),_0xcbefe2=!0x0;break;}}}return _0xcbefe2;}),_0x5d4cc3['model']['document']['registerPostFixer'](_0x441556=>{let _0x170d2c=!0x1;const _0x2a20ee=_0x5d4cc3['plugins']['get']('Users')['me'],_0x5330e3=_0x502c52['getSuggestions']()['filter'](_0x4ab821=>_0x4ab821['isInContent']&&_0x4ab821['author']==_0x2a20ee),_0x19e179=new Set(),_0x56264d=new Set();for(const _0x18bb4d of _0x5330e3)if('tablePaste'==_0x18bb4d['subType'])for(const _0x2627d8 of _0x18bb4d['getMarkers']()){const _0x299fe2=_0x2627d8['getRange']()['getContainedElement']();if(_0x299fe2){if(_0x299fe2['is']('element','tableCellSuggestion')&&Oe(_0x299fe2)){_0x18bb4d['removeMarker'](_0x2627d8['name']),_0x19e179['add'](_0x299fe2),_0x170d2c=!0x0;const _0x2bf27d=_0x299fe2['nextSibling'],_0x5cd1a1=_0x299fe2['previousSibling'],_0x5d6b65=_0x2bf27d&&_0x2bf27d['is']('element','tableCellSuggestion'),_0x5d10cd=_0x5cd1a1&&_0x5cd1a1['is']('element','tableCellSuggestion');_0x5d6b65&&!_0x19e179['has'](_0x2bf27d)&&_0x56264d['add'](_0x2bf27d),_0x5d10cd&&!_0x19e179['has'](_0x5cd1a1)&&_0x56264d['add'](_0x5cd1a1);}else _0x299fe2['is']('element','paragraph')&&_0x299fe2['isEmpty']&&(_0x18bb4d['removeMarker'](_0x2627d8['name']),_0x170d2c=!0x0);}}else{if('tablePasteCell'==_0x18bb4d['subType']){if(!_0x18bb4d['attributes']||!_0x18bb4d['attributes']['tablePasteChainId'])continue;const _0x2e67fe=_0x18bb4d['attributes']['markerAttributes'];if(_0x2e67fe&&Object['keys'](_0x2e67fe)['length'])continue;const _0x45e268=_0x18bb4d['attributes']['tablePasteChainId'];let _0x56e68c=!0x0,_0x5655a1=!0x0;for(const _0xdc499d of _0x5330e3)if(_0xdc499d['subType']&&_0xdc499d['subType']['startsWith']('tablePaste')){if(!_0xdc499d['attributes']['tablePasteChainId']){_0x5655a1=!0x1;break;}if(_0xdc499d['id']!=_0x18bb4d['id']&&_0xdc499d['attributes']['tablePasteChainId']==_0x45e268){_0x56e68c=!0x1;break;}}_0x5655a1&&_0x56e68c&&(_0x18bb4d['removeMarkers'](),_0x170d2c=!0x0);}}for(const _0x1c6cf3 of _0x19e179)_0x441556['remove'](_0x1c6cf3);for(const _0x31a0e7 of _0x56264d)_0x441556['unwrap'](_0x31a0e7);return _0x170d2c;}),_0x5d4cc3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29560b=>_0x4a2ec3(_0x29560b),'converterPriority':'high'}),_0x5d4cc3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b9526,_0x4f6a2)=>_0x4f6a2['options']['showSuggestionHighlights']?_0x4a2ec3(_0x3b9526,!0x1):null,'converterPriority':'high'});const _0x49c507=_0x5d4cc3['editing']['view'];this['listenTo'](_0x49c507['document'],'clipboardOutput',(_0x164ee8,_0x4c6a77)=>{const _0x34185c=[];for(const _0x477338 of _0x49c507['createRangeIn'](_0x4c6a77['content'])['getItems']())_0x477338['is']('element','suggestion-td')&&_0x34185c['push'](_0x477338);_0x49c507['change'](_0x4b9f71=>{for(const _0x46ec82 of _0x34185c)_0x4b9f71['move'](_0x4b9f71['createRangeIn'](_0x46ec82),_0x4b9f71['createPositionBefore'](_0x46ec82)),_0x4b9f71['remove'](_0x46ec82);});});}}function Oe(_0x2dd23f){if(_0x2dd23f['isEmpty'])return!0x0;const _0x13b21a=_0x2dd23f['getChild'](0x0);return _0x13b21a['is']('element','paragraph')&&_0x13b21a['isEmpty'];}function Ue(_0x57bd4e,_0x7acd28={},_0x11446f){for(const {isAnchor:_0x1ad67d,cellHeight:_0x222ad1,cellWidth:_0x1175d5}of _0x11446f['createTableWalker'](_0x57bd4e,{'includeAllSlots':!0x0,..._0x7acd28}))if(!_0x1ad67d||0x1!=_0x222ad1||0x1!=_0x1175d5)return!0x1;return!0x0;}class $t extends _0x4e3ad1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x157e7e=this['editor']['plugins']['get']('TrackChangesEditing');_0x157e7e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x157e7e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x157e7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x157e7e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x157e7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x157e7e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4cf024,_0x1d9b46){const _0x193991=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5abf2c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49d088=_0x1d9b46['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4d5098=_0x5abf2c['getColumnGroupElement'](_0x49d088);let _0x59eb43=_0x4d5098?_0x5abf2c['getTableColumnsWidths'](_0x4d5098):null,_0x5033e8=_0x49d088['getAttribute']('tableWidth')||null;const _0x409d99=_0x1d9b46['tableWidth']||_0x5033e8,_0x105d60=_0x1d9b46['columnWidths']||_0x59eb43,_0x422ff9=this['editor']['plugins']['get']('Users')['me'];for(const _0x49c317 of _0x193991['getSuggestions']()){const _0x2bc414=_0x49c317['getContainedElement']();if('resizeTable'===_0x49c317['subType']&&_0x2bc414===_0x49d088){_0x49c317['author']!==_0x422ff9&&_0x49c317['discard']();const _0x347b91=_0x49c317['data']['commandParams'];_0x5033e8=_0x347b91[0x0]['tableWidth'],_0x59eb43=_0x347b91[0x0]['columnWidths'];break;}}_0x4cf024({'table':_0x49d088,'tableWidth':_0x409d99,'columnWidths':_0x105d60}),_0x193991['markBlockFormat'](_0x49d088,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5033e8,'columnWidths':_0x59eb43}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x24b4dc){if('formatBlock'!=_0x24b4dc['type']&&'formatInline'!=_0x24b4dc['type'])return;const {data:_0x301375}=_0x24b4dc;if(_0x301375&&'resizeTable'===_0x301375['formatGroupId']){const _0x222e05='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x222e05)};}}}class Bt extends _0x4e3ad1{['afterInit'](){const _0x5403a4=this['editor'];_0x5403a4['plugins']['has']('Template')&&_0x5403a4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x4e3ad1{['afterInit'](){const _0x408cc3=this['editor'];if(!_0x408cc3['commands']['get']('insertTableOfContents'))return;_0x408cc3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x41587e=_0x408cc3['plugins']['get']('TrackChangesEditing'),_0x2442b3=_0x408cc3['locale'];_0x41587e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x106c05=>c(_0x2442b3,'ELEMENT_TABLE_OF_CONTENTS',_0x106c05));}}class Rt extends _0x4e3ad1{['afterInit'](){const _0x324f35=this['editor'];if(!_0x324f35['plugins']['has']('Title'))return;const _0x178f8b=_0x324f35['plugins']['get']('TrackChangesEditing');_0x178f8b['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x324f35['locale'],'ELEMENT_TITLE')),_0x324f35['model']['document']['registerPostFixer'](_0x45ec9b=>{let _0xe68d6f=!0x1;const _0x290e14=Array['from'](_0x324f35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f9026,data:_0x11eae9}of _0x290e14){const {group:_0x3100cf}=_0x178f8b['_splitMarkerName'](_0x5f9026);if('suggestion'!==_0x3100cf||!_0x11eae9['newRange'])continue;const _0x4d5c73=_0x11eae9['newRange'],_0x5cfb51=_0x4d5c73['end']['nodeBefore'];if(!_0x5cfb51||!_0x5cfb51['is']('element','title-content'))continue;if(!_0x4d5c73['start']['isTouching'](_0x4d5c73['end']))continue;const _0x1f5c3f=_0x324f35['model']['schema']['getNearestSelectionRange'](_0x4d5c73['end'],'forward');if(_0x1f5c3f&&_0x1f5c3f['isCollapsed']){const _0x144b83=_0x45ec9b['createRange'](_0x4d5c73['start'],_0x1f5c3f['start']);_0x144b83['isEqual'](_0x4d5c73)||(_0x45ec9b['updateMarker'](_0x5f9026,{'range':_0x144b83}),_0xe68d6f=!0x0);}_0xe68d6f||(_0x45ec9b['removeMarker'](_0x5f9026),_0xe68d6f=!0x0);}return _0xe68d6f;});}}class xt extends _0x4e3ad1{['afterInit'](){const _0x55ead2=this['editor'],_0x23cf8=_0x55ead2['plugins']['get']('TrackChangesEditing');_0x55ead2['plugins']['has']('Uploadcare')&&(_0x23cf8['enableCommand']('uploadcare'),_0x55ead2['plugins']['has']('UploadcareImageEdit')&&(_0x23cf8['enableCommand']('uploadcareImageEdit'),_0x23cf8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23cf8['registerBlockAttribute']('uploadcareImageId'),_0x23cf8['descriptionFactory']['registerDescriptionCallback'](_0x24d38c=>{if('attribute'!=_0x24d38c['type'])return;const {data:_0x4eb227}=_0x24d38c;return _0x4eb227&&'uploadcareImageId'==_0x4eb227['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x4e3ad1{['afterInit'](){const _0xc2a49f=this['editor'],_0x48c401=_0xc2a49f['plugins']['get']('TrackChangesEditing');_0xc2a49f['plugins']['has']('UndoEditing')&&(_0x48c401['enableCommand']('undo'),_0x48c401['enableCommand']('redo'));}}class Et extends _0x4e3ad1{static get['requires'](){return[Ct];}['afterInit'](){const _0xbe1494=this['editor'];if(!_0xbe1494['plugins']['has']('TableCaptionEditing'))return;_0xbe1494['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x4e3ad1{['tableProperties'];['tableCellProperties'];constructor(_0x6ce1fa){super(_0x6ce1fa),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1271c2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x502dd1 of this['tableProperties'])_0x1271c2['enableCommand'](_0x502dd1,(_0x686772,_0xf2024a)=>{const _0x424744=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x502dd1,[_0x424744],this['tableProperties'],'tableProperties',_0x686772,_0xf2024a);});_0x1271c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1271c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1271c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5db799,_0x153245)=>this['handleDiscardAction'](this['tableProperties'],_0x5db799,_0x153245)),_0x1271c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2daaeb of this['tableCellProperties'])_0x1271c2['enableCommand'](_0x2daaeb,(_0x201cc3,_0x2115c6)=>{const _0x3a0b0d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2daaeb,_0x3a0b0d,this['tableCellProperties'],'tableCellProperties',_0x201cc3,_0x2115c6);});_0x1271c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1271c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1271c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x21d024,_0x46c216)=>this['handleDiscardAction'](this['tableCellProperties'],_0x21d024,_0x46c216)),_0x1271c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1271c2['descriptionFactory']['registerDescriptionCallback'](_0x16c0ad=>this['handleSuggestionDescription'](_0x16c0ad));}['_handlePropertyChange'](_0x306b2d,_0x1d7848,_0x34d2c5,_0x49c9c1,_0x2a0cd4,_0x3c07bc){const _0x4c0428=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c07bc['batch'],()=>{for(const _0x25a606 of _0x1d7848){if(this['_getSuggestion'](_0x25a606,_0x49c9c1))_0x2a0cd4(_0x3c07bc);else{const _0x28006={};for(const _0x34b0a9 of _0x34d2c5){const _0x267bb9=_0x25a606['getAttribute'](_0x34b0a9);void 0x0!==_0x267bb9&&(_0x28006[_0x34b0a9]=_0x267bb9);}_0x2a0cd4(_0x3c07bc),_0x4c0428['markBlockFormat'](_0x25a606,{'commandParams':[_0x28006]},[],_0x49c9c1);}}});}['handleDiscardAction'](_0x2d24e0,_0x1ae1b2,_0x39178e){const _0x27e379=_0x1ae1b2[0x0]['start']['nodeAfter'],_0x118add=_0x39178e['commandParams'][0x0];this['editor']['model']['change'](_0x32cbad=>{for(const _0x3f113a of _0x2d24e0)void 0x0!==_0x118add[_0x3f113a]?_0x32cbad['setAttribute'](_0x3f113a,_0x118add[_0x3f113a],_0x27e379):_0x32cbad['removeAttribute'](_0x3f113a,_0x27e379);});}['handleSuggestionDescription'](_0x132f5d){if(_0x132f5d['data'])switch(_0x132f5d['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1ce66f,_0x159568){const _0x46112e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x42f5c5 of _0x46112e['getSuggestions']({'skipNotAttached':!0x0})){const _0x7d247=_0x42f5c5['getContainedElement']();if(_0x42f5c5['subType']===_0x159568&&_0x7d247===_0x1ce66f)return _0x42f5c5;}return null;}}const u='$elementName';class p extends _0x4e3ad1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5d9a93,_0x2bece1,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x533b19){super(_0x533b19),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd2136e,_0x4215a7,_0x4a8298,_0x57c650)=>{this['_model']['change'](()=>{for(const _0x2bff4c of[..._0x57c650,..._0x4a8298])this['_model']['markers']['has'](_0x2bff4c)&&_0x533b19['editing']['reconvertMarker'](_0x2bff4c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x533b19['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x533b19['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x533b19['config']['get']('trackChanges.trackFormatChanges'),_0x533b19['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x533b19['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x533b19,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x15ede3=this['editor'],_0x23dbb7=(_0x2032d9,_0x2d4db9)=>{if('attribute'!=_0x2032d9)return'ck-suggestion-marker-'+_0x2032d9;const _0x2d1d30=_0x2d4db9['split']('|')[0x0];return this['_isBlockAttribute'](_0x2d1d30)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x15ede3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x10e860=>{const {id:_0x243022,authorId:_0x49e8cc,type:_0x4f9ee2,subType:_0xb783c0}=this['_splitMarkerName'](_0x10e860['markerName']),_0x5f2698=['ck-suggestion-marker',_0x23dbb7(_0x4f9ee2,_0xb783c0)];let _0x4e130a=0xbb8;return this['activeMarkers']['includes'](_0x10e860['markerName'])&&(_0x5f2698['push']('ck-suggestion-marker--active'),_0x4e130a=0xbc2),'deletion'==_0x4f9ee2&&(_0x4e130a+=0x5),{'classes':_0x5f2698,'attributes':{'data-suggestion':_0x243022,'data-author-id':_0x49e8cc},'priority':_0x4e130a};}}),_0x15ede3['conversion']['for']('dataDowncast')['add'](_0x516cf4=>{_0x516cf4['on']('addMarker:suggestion',(_0x237c62,_0x34d860,_0x318d81)=>{if(!_0x318d81['options']['showSuggestionHighlights'])return;const _0x101be1=_0x34d860['item'];if(!_0x101be1)return;const _0x25c587=_0x318d81['mapper']['toViewElement'](_0x101be1);_0x15ede3['model']['schema']['isObject'](_0x101be1)&&_0x25c587&&!_0x25c587['getCustomProperty']('widget')&&_0x25c587['is']('containerElement')&&_0x5cd7fd(_0x25c587,_0x318d81['writer']);},{'priority':'high'});}),_0x15ede3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x591879,_0x238294)=>{if(!_0x238294['options']['showSuggestionHighlights'])return null;const {type:_0x2f153b,subType:_0x3ef8c1}=this['_splitMarkerName'](_0x591879['markerName']);return{'classes':['ck-suggestion-marker',_0x23dbb7(_0x2f153b,_0x3ef8c1)],'priority':0xbb8};}});const _0x39fab5=({showActiveMarkers:_0x290b14=!0x0,isAttributeSuggestion:_0x164932=!0x1}={})=>(_0x29478f,_0x455818,_0x1d3339)=>{if(!_0x455818['item'])return;const {id:_0x2c5fa8,authorId:_0x43083a}=this['_splitMarkerName'](_0x455818['markerName']);if(_0x164932){const _0x26f152=this['_suggestions']['get'](_0x2c5fa8),_0xda3038=this['_getAttributeKey'](_0x26f152);if(!this['_isBlockAttribute'](_0xda3038))return;}if(_0x455818['item']['is']('selection'))return void _0x1d3339['consumable']['consume'](_0x455818['item'],_0x29478f['name']);const _0x3ed29=_0x1d3339['mapper']['toViewElement'](_0x455818['item']);if(_0x455818['item']['is']('element')&&_0x15ede3['model']['schema']['isBlock'](_0x455818['item'])&&!_0x3ed29['getCustomProperty']('addHighlight')){_0x1d3339['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ed29),_0x1d3339['writer']['setAttribute']('data-suggestion',_0x2c5fa8,_0x3ed29),_0x1d3339['writer']['setAttribute']('data-author-id',_0x43083a,_0x3ed29),_0x1d3339['mapper']['bindElementToMarker'](_0x3ed29,_0x455818['markerName']),_0x290b14&&(this['activeMarkers']['includes'](_0x455818['markerName'])?_0x1d3339['writer']['addClass']('ck-suggestion-marker--active',_0x3ed29):_0x1d3339['writer']['removeClass']('ck-suggestion-marker--active',_0x3ed29));for(const _0x1b25a1 of _0x15ede3['model']['createRangeIn'](_0x455818['item'])['getItems']())_0x1d3339['consumable']['consume'](_0x1b25a1,_0x29478f['name']);_0x1d3339['consumable']['consume'](_0x455818['item'],_0x29478f['name']);}};_0x15ede3['conversion']['for']('dataDowncast')['add'](_0x28f7fa=>{_0x28f7fa['on']('addMarker:suggestion:formatBlock',(_0xcdd439,_0x84575c,_0x38280c)=>{_0x38280c['options']['showSuggestionHighlights']&&_0x39fab5({'showActiveMarkers':!0x1})(_0xcdd439,_0x84575c,_0x38280c);},{'priority':'highest'});}),_0x15ede3['conversion']['for']('dataDowncast')['add'](_0x1e1285=>{_0x1e1285['on']('addMarker:suggestion:attribute',(_0x48ea81,_0x496307,_0x52b9cd)=>{_0x52b9cd['options']['showSuggestionHighlights']&&_0x39fab5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x48ea81,_0x496307,_0x52b9cd);},{'priority':'highest'});}),_0x15ede3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5e39c4,_0x3183ea)=>_0x3183ea['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5e39c4['substr'](0xb)}}),_0x15ede3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a1a4d,{writer:_0x4c2fb8})=>{let _0x2a12c3='suggestion:'+_0x2a1a4d['getAttribute']('suggestion-type')+':'+_0x2a1a4d['getAttribute']('id');return _0x2a1a4d['getAttribute']('marker-count')&&(_0x2a12c3+=':'+_0x2a1a4d['getAttribute']('marker-count')),_0x4c2fb8['createElement']('$marker',{'data-name':_0x2a12c3});}}),_0x15ede3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x15ede3['conversion']['for']('editingDowncast')['add'](_0x1b808b=>{_0x1b808b['on']('addMarker:suggestion:formatBlock',_0x39fab5(),{'priority':'high'});}),_0x15ede3['conversion']['for']('editingDowncast')['add'](_0x5129a6=>{_0x5129a6['on']('addMarker:suggestion:attribute',_0x39fab5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15ede3['conversion']['for']('editingDowncast')['add'](_0x5eb2cc=>{_0x5eb2cc['on']('removeMarker:suggestion:formatBlock',(_0x47953e,_0x499056,_0x1d46be)=>{const _0x1e3cf6=_0x1d46be['mapper']['markerNameToElements'](_0x499056['markerName']);if(_0x1e3cf6){for(const _0x612de9 of _0x1e3cf6)_0x612de9['getCustomProperty']('addHighlight')||(_0x1d46be['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x612de9),_0x1d46be['writer']['removeAttribute']('data-suggestion',_0x612de9),_0x1d46be['writer']['removeAttribute']('data-author-id',_0x612de9),_0x1d46be['mapper']['unbindElementFromMarkerName'](_0x612de9,_0x499056['markerName']));}},{'priority':'high'});}),_0x15ede3['conversion']['for']('editingDowncast')['add'](_0xadab9b=>{_0xadab9b['on']('removeMarker:suggestion:attribute',(_0x12d460,_0x5bc187,_0x5bbf48)=>{const _0x4e307e=_0x5bbf48['mapper']['markerNameToElements'](_0x5bc187['markerName']);if(!_0x4e307e)return;const {id:_0x4675e0}=this['_splitMarkerName'](_0x5bc187['markerName']),_0x536268=this['_suggestions']['get'](_0x4675e0),_0x4805ef=this['_getAttributeKey'](_0x536268);if(this['_isBlockAttribute'](_0x4805ef)){for(const _0x3e6985 of _0x4e307e)_0x3e6985['getCustomProperty']('addHighlight')||(_0x5bbf48['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e6985),_0x5bbf48['writer']['removeAttribute']('data-suggestion',_0x3e6985),_0x5bbf48['writer']['removeAttribute']('data-author-id',_0x3e6985),_0x5bbf48['mapper']['unbindElementFromMarkerName'](_0x3e6985,_0x5bc187['markerName']));}},{'priority':'high'});}),_0x15ede3['model']['document']['registerPostFixer'](_0x57b71d=>{let _0x48c11c=!0x1;const _0x2a9a90=Array['from'](_0x15ede3['model']['document']['differ']['getChangedMarkers']()),_0x587a46=new Set();for(const {name:_0x217680,data:_0x331fc3}of _0x2a9a90){const {group:_0x4c26c3,type:_0x2699b0,subType:_0xaab89e,id:_0xebebd3}=this['_splitMarkerName'](_0x217680);if('suggestion'!==_0x4c26c3)continue;const _0x2bf499=this['_suggestions']['get'](_0xebebd3);if(null!=_0x331fc3['newRange']){'formatInline'==_0x2699b0&&(_0x48c11c=_0x48c11c||Lt(_0x331fc3['newRange'],_0x217680,_0x57b71d,_0x15ede3['model']['schema']));const _0x559480='attribute'==_0x2699b0&&this['_isBlockAttribute'](_0xaab89e['split']('|')[0x0]);if(_0x331fc3['newRange']['isCollapsed']||'$graveyard'==_0x331fc3['newRange']['root']['rootName']||'formatBlock'==_0x2699b0&&!Kt(_0x331fc3['newRange'])||_0x559480&&!Kt(_0x331fc3['newRange'])||'deletion'==_0x2699b0&&!(!Gt(_0x153dcd=_0x331fc3['newRange'])&&!function(_0x52c922){return _0x52c922['start']['parent']==_0x52c922['end']['nodeBefore']&&_0x52c922['start']['isAtEnd'];}(_0x153dcd)))_0x57b71d['removeMarker'](_0x217680),_0x48c11c=!0x0;else{if(!_0x2bf499||!_0x2bf499['isInContent'])continue;if(_0x331fc3['newRange']&&_0x331fc3['oldRange']&&_0x331fc3['newRange']['isEqual'](_0x331fc3['oldRange']))continue;_0x587a46['add'](_0x2bf499);}}}var _0x153dcd;return _0x587a46['size']>0x0&&(_0x48c11c=!!this['_joinWithAdjacentSuggestions'](_0x587a46)||_0x48c11c),_0x48c11c;}),_0x15ede3['model']['document']['registerPostFixer'](_0x29b50e=>{let _0x158759=!0x1;for(const _0x56a33d of _0x15ede3['model']['document']['differ']['getChanges']())if('insert'==_0x56a33d['type'])for(const _0x49ba72 of this['_suggestions']['values']()){if(_0x49ba72['isMultiRange']||!_0x49ba72['isInContent'])continue;const _0x4dde8b='formatBlock'==_0x49ba72['type'],_0x320430=this['_getAttributeKey'](_0x49ba72),_0x3ca8bc=_0x320430&&this['_isBlockAttribute'](_0x320430);if(!_0x4dde8b&&!_0x3ca8bc)continue;const _0x46ddb3=_0x49ba72['getFirstRange']();if(_0x46ddb3['start']['parent']!=_0x46ddb3['end']['parent']&&!_0x46ddb3['end']['isAtEnd']){const _0x4c9e2e=_0x15ede3['model']['createPositionAt'](_0x46ddb3['start']['nodeAfter'],'end'),_0x493a2c=_0x15ede3['model']['createRange'](_0x46ddb3['start'],_0x4c9e2e);_0x29b50e['updateMarker'](_0x49ba72['getFirstMarker'](),{'range':_0x493a2c}),_0x158759=!0x0;}}return _0x158759;}),_0x15ede3['model']['document']['registerPostFixer'](_0x24d96b=>this['_processAttributeChanges'](_0x24d96b)),_0x15ede3['model']['document']['registerPostFixer'](_0x52ef69=>!_0x52ef69['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x52ef69)),_0x15ede3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15ede3['model']['document']['on']('change:data',(_0x59f015,_0x52639e)=>{if(!_0x52639e['isLocal']||_0x52639e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3c5576=_0x15ede3['model']['document']['differ']['getChanges']();if(0x0==_0x3c5576['length'])return;const _0x46abb4=[],_0x386e0a=_0x3c5576['filter'](_0x24caca=>'attribute'==_0x24caca['type']),_0x3a66fb=_0x3c5576['filter'](_0x5d586d=>'insert'==_0x5d586d['type']&&'$text'!=_0x5d586d['name']);for(const _0x4916e2 of _0x386e0a)this['_isRegisteredAttribute'](_0x4916e2['attributeKey'])&&_0x46abb4['push']({'key':_0x4916e2['attributeKey'],'newValue':_0x4916e2['attributeNewValue'],'oldValue':_0x4916e2['attributeOldValue'],'range':Ht(_0x4916e2['range'],_0x15ede3['model'])});for(const _0x263afa of _0x3a66fb){if('rename'!=_0x263afa['action']&&'refresh'!=_0x263afa['action'])continue;const _0x2e9b6e=qt(_0x263afa['position']['nodeAfter'],_0x15ede3['model']),_0x4d33f7=_0x263afa['before'];'rename'==_0x263afa['action']&&_0x46abb4['push']({'key':u,'newValue':_0x263afa['name'],'oldValue':_0x4d33f7['name'],'range':_0x2e9b6e});for(const [_0x707120,_0x25af77]of _0x4d33f7['attributes']){if(!this['_isRegisteredAttribute'](_0x707120))continue;const _0x26dba2=_0x263afa['attributes']['get'](_0x707120);_0x25af77!==_0x26dba2&&_0x46abb4['push']({'key':_0x707120,'newValue':_0x26dba2,'oldValue':_0x25af77,'range':_0x2e9b6e});}for(const [_0x1513c5,_0x1d5e79]of _0x263afa['attributes'])this['_isRegisteredAttribute'](_0x1513c5)&&(_0x4d33f7['attributes']['has'](_0x1513c5)||_0x46abb4['push']({'key':_0x1513c5,'newValue':_0x1d5e79,'oldValue':null,'range':_0x2e9b6e}));}0x0!=_0x46abb4['length']&&_0x15ede3['model']['enqueueChange'](_0x52639e,_0x4b4496=>{const _0xb4385b=_0x36e450();for(const {range:_0x407a89,key:_0xef0a19,oldValue:_0x1bacc1,newValue:_0x3df18e}of _0x46abb4)this['markAttributeChange'](_0x407a89,_0xef0a19,_0x1bacc1,_0x3df18e,{'groupId':_0xb4385b});this['_reduceExistingSuggestions'](_0x4b4496,_0x46abb4);});},{'priority':'lowest'}),_0x15ede3['model']['markers']['on']('update:suggestion',(_0xb48d70,_0x581b54,_0x553a77)=>{if(null==_0x553a77){const {id:_0x353655}=this['_splitMarkerName'](_0x581b54['name']),_0x1efcef=this['_suggestions']['get'](_0x353655);_0x1efcef&&_0x1efcef['addMarkerName'](_0x581b54['name']);}}),_0x15ede3['model']['document']['on']('change:data',()=>{const _0x28c555=Array['from'](_0x15ede3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1381a8=>'suggestion'===this['_splitMarkerName'](_0x1381a8['name'])['group']);if(0x0===_0x28c555['length'])return;_0x28c555['sort']((_0x2b1725,_0x6be122)=>{const _0xf4b39b=_0x2b1725['data']['oldRange'],_0x1be294=_0x6be122['data']['oldRange'];return null===_0xf4b39b&&null===_0x1be294?0x0:null===_0xf4b39b&&null!==_0x1be294?-0x1:null!==_0xf4b39b&&null===_0x1be294?0x1:_0xf4b39b['start']['isBefore'](_0x1be294['start'])?-0x1:0x1;});const _0x3e8a62=new Set(),_0x401c2c=new Set();for(const {name:_0x272891,data:_0x19e2bf}of _0x28c555){const {id:_0x1b3353}=this['_splitMarkerName'](_0x272891);if(null===_0x19e2bf['oldRange']){const _0x3ca9bf=this['_handleNewSuggestionMarker'](_0x272891);_0x401c2c['add'](_0x3ca9bf);}else{const _0x4463ff=this['_suggestions']['get'](_0x1b3353);null!==_0x19e2bf['newRange']||_0x4463ff['isInContent']?(_0x3e8a62['add'](_0x4463ff['head']),_0x401c2c['add'](_0x4463ff)):this['_removeSuggestion'](_0x4463ff);}}_0x401c2c['size']>0x0&&this['_refreshSuggestionsChain'](_0x401c2c);for(const _0x3d9b89 of _0x3e8a62)this['fire']('suggestionChanged',_0x3d9b89);}),_0x15ede3['model']['on']('applyOperation',(_0x4490fc,_0x1f9160)=>{const _0x3aadb4=_0x1f9160[0x0];if(!this['_suggestions']['size'])return;if(!_0x3aadb4['isDocumentOperation'])return;if(_0x3aadb4['batch']['isUndo']||!_0x3aadb4['batch']['isLocal'])return;let _0x35da83,_0x3d5f61;switch(_0x3aadb4['type']){case'insert':_0x35da83=_0x15ede3['model']['createPositionAt'](_0x3aadb4['position']),_0x3d5f61=_0x35da83['getShiftedBy'](_0x3aadb4['howMany']);break;case'split':_0x35da83=_0x15ede3['model']['createPositionAt'](_0x3aadb4['splitPosition']),_0x3d5f61=_0x15ede3['model']['createPositionAt'](_0x3aadb4['moveTargetPosition']);break;case'move':_0x35da83=_0x15ede3['model']['createPositionAt'](_0x3aadb4['targetPosition']),_0x3d5f61=_0x35da83['getShiftedBy'](_0x3aadb4['howMany']);break;default:return;}const _0x2949ae=_0x15ede3['model']['createRange'](_0x35da83,_0x3d5f61);_0x15ede3['model']['change'](()=>{for(const {suggestion:_0x3324d6,meta:_0x1f5c27}of this['_findSuggestions'](_0x2949ae)){if(_0x3324d6['isMultiRange'])continue;if('formatInline'==_0x3324d6['type'])continue;const _0x1aea63=this['_getAttributeKey'](_0x3324d6);if(_0x1aea63&&this['_isBlockAttribute'](_0x1aea63)&&'split'!=_0x3aadb4['type'])continue;const _0x130e64=_0x3324d6['data']&&_0x3324d6['data']['multipleBlocks'];('formatBlock'!=_0x3324d6['type']||'split'==_0x3aadb4['type']&&!_0x130e64)&&(_0x1f5c27['containsRangeInObject']||'insertion'==_0x3324d6['type']&&_0x1f5c27['isOwn']||_0x3324d6['getFirstRange']()['containsRange'](_0x2949ae)&&this['_breakSuggestionMarker'](_0x3324d6,_0x35da83,_0x3d5f61));}});},{'priority':'lowest'}),_0x15ede3['model']['on']('deleteContent',(_0x29d9ec,_0xf2d97d)=>{const _0x39fdd3=_0xf2d97d[0x0],_0x566c96=_0xf2d97d[0x1];if(_0x566c96&&_0x566c96['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x39fdd3['isCollapsed'])return;const _0x585ec3=_0x15ede3['model']['schema'],{start:_0x1ea3e7,end:_0x2a3867}=_0x39fdd3['getFirstRange'](),_0xc7b7da=_0x1ea3e7['nodeAfter']&&_0x585ec3['isLimit'](_0x1ea3e7['nodeAfter'])?null:_0x585ec3['getNearestSelectionRange'](_0x1ea3e7,'forward'),_0x565cdf=_0x2a3867['nodeBefore']&&_0x585ec3['isLimit'](_0x2a3867['nodeBefore'])?null:_0x585ec3['getNearestSelectionRange'](_0x2a3867,'backward'),_0x242bde=_0x15ede3['model']['createRange'](_0xc7b7da?_0xc7b7da['start']:_0x1ea3e7,_0x565cdf?_0x565cdf['end']:_0x2a3867);_0x15ede3['model']['change'](_0x323e3e=>{this['markDeletion'](_0x242bde);const _0x51a5b1=_0x15ede3['model']['schema']['getNearestSelectionRange'](_0x242bde['start']);_0x39fdd3['is']('documentSelection')?_0x323e3e['setSelection'](_0x51a5b1):_0x39fdd3['setTo'](_0x51a5b1);}),_0x29d9ec['stop']();},{'priority':_0x393775['normal']+0xa}),_0x15ede3['model']['on']('insertContent',(_0x250e0c,_0x35f838)=>{const _0x36774a=_0x35f838[_0x35f838['length']-0x1];_0x36774a&&_0x36774a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x15ede3['model']['change'](()=>{let _0x392be2=_0x15ede3['model']['insertContent'](_0x35f838[0x0],_0x35f838[0x1],_0x35f838[0x2],{'forceDefaultExecution':!0x0});if(!_0x392be2)return;_0x250e0c['return']=_0x392be2['clone']();const _0x6a9e4b=_0x392be2['end']['nodeBefore'],_0x396e5a=_0x15ede3['model']['schema'];_0x6a9e4b&&_0x396e5a['isBlock'](_0x6a9e4b)&&!_0x396e5a['isObject'](_0x6a9e4b)&&(_0x392be2=_0x15ede3['model']['createRange'](_0x392be2['start'],_0x15ede3['model']['createPositionAt'](_0x6a9e4b,'end'))),this['markInsertion'](_0x392be2);}),_0x250e0c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x343a89=new O(_0x15ede3,this['_suggestions']);_0x15ede3['commands']['add']('acceptSuggestion',_0x343a89),this['enableCommand']('acceptSuggestion');const _0x16b767=new R(_0x15ede3,this['_suggestions']);_0x15ede3['commands']['add']('discardSuggestion',_0x16b767),this['enableCommand']('discardSuggestion'),_0x15ede3['commands']['add']('acceptAllSuggestions',new x(_0x15ede3,_0x343a89,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x15ede3['commands']['add']('discardAllSuggestions',new x(_0x15ede3,_0x16b767,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x15ede3['commands']['add']('acceptSelectedSuggestions',new E(_0x15ede3,_0x343a89,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x15ede3['commands']['add']('discardSelectedSuggestions',new E(_0x15ede3,_0x16b767,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2026bd=_0x15ede3['plugins']['get']('CommentsRepository');this['listenTo'](_0x2026bd,'addComment',(_0x2063f8,{threadId:_0x528832})=>{const _0x202044=this['_suggestions']['get'](_0x528832);_0x202044&&_0x202044['commentThread']&&0x1===_0x202044['commentThread']['length']&&this['_updateSuggestionData'](_0x528832,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2026bd,'removeComment',(_0x3946dc,{threadId:_0x411ed2})=>{const _0xc3e877=this['_suggestions']['get'](_0x411ed2);_0xc3e877&&_0xc3e877['commentThread']&&!_0xc3e877['commentThread']['length']&&this['_updateSuggestionData'](_0x411ed2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x78bf52){const _0x2a7080=_0x106074([0x62,0x43,0x4b,0x79,0x77,0x50,0x58,0x6a,0x32,0x4a,0x56,0x6c,0x70,0x36,0x68,0x75,0x63,0x61,0x76,0x59,0x78,0x55,0x39,0x4c,0x41,0x38,0x44,0x66,0x6b,0x6d,0x33,0x54,0x45,0x53,0x31,0x37,0x49,0x30,0x4f,0x71,0x73,0x48,0x51,0x57,0x67,0x6f,0x6e,0x34,0x47,0x64,0x5a,0x42,0x35,0x46,0x65,0x52,0x7a,0x69,0x74,0x4d,0x72,0x4e]),_0x5e32cf=0x26646b8b,_0x3818f8=0x26630be3^_0x5e32cf,_0x49b1f0=window[_0x106074([0x44,0x61,0x74,0x65])][_0x106074([0x6e,0x6f,0x77])](),_0x47e15a=_0x78bf52[_0x106074([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55cb74=new window[(_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x70ebaa=>{_0x47e15a[_0x106074([0x6f,0x6e,0x63,0x65])](_0x106074([0x72,0x65,0x61,0x64,0x79]),_0x70ebaa);}),_0x36d0a6={[_0x106074([0x6b,0x74,0x79])]:_0x106074([0x45,0x43]),[_0x106074([0x75,0x73,0x65])]:_0x106074([0x73,0x69,0x67]),[_0x106074([0x63,0x72,0x76])]:_0x106074([0x50,0x2d,0x32,0x35,0x36]),[_0x106074([0x78])]:_0x106074([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]),[_0x106074([0x79])]:_0x106074([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]),[_0x106074([0x61,0x6c,0x67])]:_0x106074([0x45,0x53,0x32,0x35,0x36])},_0x2a393d=_0x47e15a[_0x106074([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x106074([0x67,0x65,0x74])](_0x106074([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38bcd1(){let _0x4b3807,_0x23ddb6=null,_0x36258d=null;try{if(_0x2a393d==_0x106074([0x47,0x50,0x4c]))return _0x106074([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b3807=_0x43fad1(),!_0x4b3807)return _0x106074([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b3807[_0x106074([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36258d=_0x38cc3a(_0x4b3807[_0x106074([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b3807[_0x106074([0x6a,0x74,0x69])])),await _0x2301d5()?_0x547150()?_0x35fca2()?_0x106074([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ba183()?(_0x4b3807[_0x106074([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106074([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23ddb6=_0x1c6c17(_0x106074([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b3807[_0x106074([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x106074([0x74,0x72,0x69,0x61,0x6c])&&(_0x23ddb6=_0x1c6c17(_0x106074([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b9809()):_0x106074([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x106074([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x106074([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x821787){return _0x106074([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35fca2(){const _0x23b67a=[_0x106074([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x106074([0x74,0x72,0x69,0x61,0x6c])][_0x106074([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b3807[_0x106074([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49b1f0/0x3e8:0xe10*_0x3818f8;return _0x4b3807[_0x106074([0x65,0x78,0x70])]<_0x23b67a;}function _0x547150(){const _0xb00b17=_0x4b3807[_0x106074([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xb00b17)return!0x1;if(_0xb00b17[_0x106074([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106074([0x2a])))return!0x0;if(_0xb00b17[_0x106074([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106074([0x54,0x43])))return!0x0;if(_0xb00b17[_0x106074([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106074([0x52,0x54,0x43]))){if(_0x3c5668())return!0x0;if(_0x4e0890()||_0x2fa6c5())return!0x0;}return!0x1;}function _0x5ba183(){const _0x486038=_0x4b3807[_0x106074([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x486038||0x0==_0x486038[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x174cd8}=new URL(window[_0x106074([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x486038[_0x106074([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x174cd8))return!0x0;const _0x1bdde1=_0x174cd8[_0x106074([0x73,0x70,0x6c,0x69,0x74])](_0x106074([0x2e]));return _0x486038[_0x106074([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5b19=>_0x1b5b19[_0x106074([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x106074([0x2a])))[_0x106074([0x6d,0x61,0x70])](_0x29107d=>_0x29107d[_0x106074([0x73,0x70,0x6c,0x69,0x74])](_0x106074([0x2e])))[_0x106074([0x73,0x6f,0x6d,0x65])](_0x4266bf=>_0x1bdde1[_0x106074([0x65,0x76,0x65,0x72,0x79])]((_0x3757fa,_0x46d7f9)=>_0x4266bf[_0x46d7f9]===_0x3757fa||_0x4266bf[_0x46d7f9]===_0x106074([0x2a])));}function _0x3b9809(){return _0x23ddb6&&_0x36258d?new window[(_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x554b02,_0x897eb1)=>{_0x23ddb6[_0x106074([0x74,0x68,0x65,0x6e])](_0x554b02,_0x897eb1),_0x36258d[_0x106074([0x74,0x68,0x65,0x6e])](_0x190d8f=>{_0x190d8f!=_0x106074([0x56,0x61,0x6c,0x69,0x64])&&_0x554b02(_0x190d8f);},_0x897eb1);}):_0x23ddb6||_0x36258d||_0x106074([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38cc3a(_0x2bddc6,_0x5aede4){return new window[(_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a037=>{if(_0x28aab5())return _0x58a037(_0x106074([0x56,0x61,0x6c,0x69,0x64]));_0x3d1c94(),_0x47e15a[_0x106074([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x106074([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e5f14=!0x1;const _0x27735e=_0x36e450();function _0x3e2962(_0x5e516c){return!!_0x5e516c&&(typeof _0x5e516c===_0x106074([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e516c===_0x106074([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e516c[_0x106074([0x74,0x68,0x65,0x6e])]===_0x106074([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e516c[_0x106074([0x63,0x61,0x74,0x63,0x68])]===_0x106074([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x284f14(_0x2a6f5d){_0x31139b(_0x2a6f5d)[_0x106074([0x74,0x68,0x65,0x6e])](_0x5c797f=>{if(!_0x5c797f||_0x5c797f[_0x106074([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x106074([0x6f,0x6b]))return _0x106074([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31f5e0(_0x8ecfe1(_0x27735e+_0x5aede4))!=_0x5c797f[_0x106074([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x106074([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x106074([0x56,0x61,0x6c,0x69,0x64]);})[_0x106074([0x74,0x68,0x65,0x6e])](_0xb4ed24=>(_0x2f58f7(),_0xb4ed24),()=>{const _0x2e85c5=_0x45d5c7();return null==_0x2e85c5?(_0x2f58f7(),_0x106074([0x56,0x61,0x6c,0x69,0x64])):_0x106074(_0x49b1f0-_0x2e85c5>(0x268ef8b^_0x5e32cf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x106074([0x74,0x68,0x65,0x6e])](_0x58a037)[_0x106074([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58a037(_0x106074([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b0f69=0x2652850b^_0x5e32cf;function _0x2f58f7(){const _0x17d7e8=_0x106074([0x6c,0x6c,0x63,0x74,0x2d])+_0x31f5e0(_0x8ecfe1(_0x2bddc6)),_0x104bf6=_0x2e70a3(_0x31f5e0(window[_0x106074([0x4d,0x61,0x74,0x68])][_0x106074([0x63,0x65,0x69,0x6c])](_0x49b1f0/_0x2b0f69)));window[_0x106074([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x106074([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17d7e8,_0x104bf6);}function _0x45d5c7(){const _0x225136=_0x106074([0x6c,0x6c,0x63,0x74,0x2d])+_0x31f5e0(_0x8ecfe1(_0x2bddc6)),_0x244484=window[_0x106074([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x106074([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x225136);return _0x244484?window[_0x106074([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e70a3(_0x244484),0x10)*_0x2b0f69:null;}function _0x31139b(_0x428230){return new window[(_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x182e24,_0x1ed6cb)=>{_0x428230[_0x106074([0x74,0x68,0x65,0x6e])](_0x182e24,_0x1ed6cb),window[_0x106074([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ed6cb,0x2665bf4b^_0x5e32cf);});}}_0x47e15a[_0x106074([0x6f,0x6e])](_0x106074([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x440383,_0x39e2d6)=>{if(_0x39e2d6[0x0]!=_0x2bddc6)return _0x58a037(_0x106074([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39e2d6[0x1]={..._0x39e2d6[0x1],[_0x106074([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27735e};},{[_0x106074([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x106074([0x68,0x69,0x67,0x68])}),_0x47e15a[_0x106074([0x6f,0x6e])](_0x106074([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2755a9=>{_0x3e2962(_0x2755a9[_0x106074([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e5f14=!0x0,_0x284f14(_0x2755a9[_0x106074([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x106074([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x106074([0x6c,0x6f,0x77])}),_0x55cb74[_0x106074([0x74,0x68,0x65,0x6e])](()=>{_0x3e5f14||_0x58a037(_0x106074([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28aab5(){return _0x47e15a[_0x106074([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x106074([0x76,0x69,0x65,0x77])][_0x106074([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x106074([0x61,0x75,0x74,0x6f]);}function _0x3d1c94(){_0x47e15a[_0x106074([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x106074([0x76,0x69,0x65,0x77])][_0x106074([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x106074([0x61,0x75,0x74,0x6f]);}}function _0x1c6c17(_0x4dea48){const _0x5ce49b=[new window[(_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339ae8=>setTimeout(_0x339ae8,0x266d5547^_0x5e32cf)),_0x55cb74[_0x106074([0x74,0x68,0x65,0x6e])](()=>new window[(_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53ba12=>{let _0x51d3cb=0x0;_0x47e15a[_0x106074([0x6d,0x6f,0x64,0x65,0x6c])][_0x106074([0x6f,0x6e])](_0x106074([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59108d,_0x8556cd)=>{_0x8556cd[0x0][_0x106074([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51d3cb++,_0x51d3cb==(0x26646a73^_0x5e32cf)&&(_0x53ba12(),_0x59108d[_0x106074([0x6f,0x66,0x66])]());});}))];return window[_0x106074([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x106074([0x72,0x61,0x63,0x65])](_0x5ce49b)[_0x106074([0x74,0x68,0x65,0x6e])](()=>_0x4dea48);}async function _0x2f79f1(){await _0x55cb74,_0x47e15a[_0x106074([0x6d,0x6f,0x64,0x65,0x6c])][_0x106074([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2317b2,_0x47e15a[_0x106074([0x6d,0x6f,0x64,0x65,0x6c])][_0x106074([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2317b2,_0x47e15a[_0x106074([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x106074([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c5668(){return _0x51e3b1(_0x106074([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51b615(_0x106074([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x106074([0x73,0x74,0x61,0x74,0x65])]==_0x106074([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4e0890(){return _0x51e3b1(_0x106074([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 _0x2fa6c5(){return _0x51e3b1(_0x106074([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x305ce6(_0x251b69){const _0x11a050=_0x23b29d();_0x47e15a[_0x11a050]=_0x106074([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x251b69,_0x251b69!=_0x106074([0x56,0x61,0x6c,0x69,0x64])&&_0x2f79f1();}function _0x23b29d(){const _0x1e867=window[_0x106074([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x106074([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x106074([0x6e,0x6f,0x77])]())[_0x106074([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x106074([0x2e]),'');let _0x296f7a=_0x106074([0x62]);for(let _0x252d04=0x0;_0x252d04<_0x1e867[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x252d04+=0x2){let _0x197412=window[_0x106074([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e867[_0x106074([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x252d04,_0x252d04+0x2));_0x197412>=_0x2a7080[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x197412-=_0x2a7080[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x296f7a+=_0x2a7080[_0x197412];}return _0x296f7a;}function _0x43fad1(){const _0x2f1154=_0x2a393d[_0x106074([0x73,0x70,0x6c,0x69,0x74])](_0x106074([0x2e]));if(0x3!=_0x2f1154[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3043c4(_0x2f1154[0x1]);function _0x3043c4(_0x13d183){const _0x286864=_0x36b6bc(_0x13d183);return _0x286864&&_0x4e784f()?_0x286864:null;function _0x4e784f(){const _0x3f20de=_0x286864[_0x106074([0x6a,0x74,0x69])],_0x5650f8=window[_0x106074([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f20de[_0x106074([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f20de[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e38ab={..._0x286864,[_0x106074([0x6a,0x74,0x69])]:_0x3f20de[_0x106074([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f20de[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e38ab[_0x106074([0x76,0x63])],_0x8ecfe1(_0x2e38ab)==_0x5650f8;}}}async function _0x2301d5(){let _0xadc78d=!0x0;try{const _0x4ef8e5=_0x2a393d[_0x106074([0x73,0x70,0x6c,0x69,0x74])](_0x106074([0x2e])),[_0x29a8ad,_0x1a8229,_0x1f24dd]=_0x4ef8e5;return _0x44fdd8(_0x29a8ad),await _0x40dc59(_0x29a8ad,_0x1a8229,_0x1f24dd),_0xadc78d;}catch(_0x76cbe8){return!0x1;}function _0x44fdd8(_0x5526c2){const _0x313cee=_0x36b6bc(_0x5526c2);_0x313cee&&_0x313cee[_0x106074([0x61,0x6c,0x67])]==_0x106074([0x45,0x53,0x32,0x35,0x36])||(_0xadc78d=!0x1);}async function _0x40dc59(_0x4ff4c0,_0x4631c,_0x158e67){const _0x586991=window[_0x106074([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x106074([0x66,0x72,0x6f,0x6d])](_0x3cbc7d(_0x158e67),_0x21161f=>_0x21161f[_0x106074([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20f142=new window[(_0x106074([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x106074([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ff4c0+_0x106074([0x2e])+_0x4631c),_0x48d091=window[_0x106074([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x106074([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48d091)return;const _0x5101da=await _0x48d091[_0x106074([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x106074([0x6a,0x77,0x6b]),_0x36d0a6,{[_0x106074([0x6e,0x61,0x6d,0x65])]:_0x106074([0x45,0x43,0x44,0x53,0x41]),[_0x106074([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x106074([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x106074([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48d091[_0x106074([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x106074([0x6e,0x61,0x6d,0x65])]:_0x106074([0x45,0x43,0x44,0x53,0x41]),[_0x106074([0x68,0x61,0x73,0x68])]:{[_0x106074([0x6e,0x61,0x6d,0x65])]:_0x106074([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5101da,_0x586991,_0x20f142)||(_0xadc78d=!0x1);}}function _0x36b6bc(_0x3b0dda){return _0x3b0dda[_0x106074([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x106074([0x65,0x79]))?JSON[_0x106074([0x70,0x61,0x72,0x73,0x65])](_0x3cbc7d(_0x3b0dda)):null;}function _0x3cbc7d(_0x3f3bf5){return window[_0x106074([0x61,0x74,0x6f,0x62])](_0x3f3bf5[_0x106074([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x106074([0x2b]))[_0x106074([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x106074([0x2f])));}function _0x8ecfe1(_0x1ab58a){let _0x255d01=0x1505;function _0x1f69a5(_0x22d694){for(let _0x3224cf=0x0;_0x3224cf<_0x22d694[_0x106074([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3224cf++){const _0x2a5215=_0x22d694[_0x106074([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3224cf);_0x255d01=(_0x255d01<<0x5)+_0x255d01+_0x2a5215,_0x255d01&=_0x255d01;}}function _0x412cfb(_0x2476a7){Array[_0x106074([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2476a7)?_0x2476a7[_0x106074([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x412cfb):_0x2476a7&&typeof _0x2476a7==_0x106074([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x106074([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2476a7)[_0x106074([0x73,0x6f,0x72,0x74])]()[_0x106074([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e3483,_0x372332])=>{_0x1f69a5(_0x3e3483),_0x412cfb(_0x372332);}):_0x1f69a5(window[_0x106074([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2476a7));}return _0x412cfb(_0x1ab58a),_0x255d01>>>0x0;}function _0x31f5e0(_0x282c00){return _0x282c00[_0x106074([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x106074([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x106074([0x30]));}function _0x2e70a3(_0x51307c){return _0x51307c[_0x106074([0x73,0x70,0x6c,0x69,0x74])]('')[_0x106074([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x106074([0x6a,0x6f,0x69,0x6e])]('');}function _0x51e3b1(_0xc306fc){return _0x47e15a[_0x106074([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x106074([0x68,0x61,0x73])](_0xc306fc);}function _0x51b615(_0x212ad1){return _0x47e15a[_0x106074([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x106074([0x67,0x65,0x74])](_0x212ad1);}function _0x2317b2(){}function _0x106074(_0x309b60){return _0x309b60['map'](_0x489b91=>String['fromCharCode'](_0x489b91))['join']('');}_0x305ce6(await _0x38bcd1());}(this);}set['adapter'](_0x1e8821){if(this['_adapter'])throw new _0x1baf5e('track-changes-adapter-already-set',this);this['_adapter']=_0x1e8821;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3de1db=!0x1,toJSON:_0x4b9f4=!0x1}={}){const _0xa298c5=[];for(const _0x19c4cd of this['_suggestions']['values']())_0x3de1db&&!_0x19c4cd['isInContent']||_0xa298c5['push'](_0x19c4cd);return _0x4b9f4?_0xa298c5['map'](_0x43cc33=>_0x43cc33['toJSON']()):_0xa298c5;}['getSuggestion'](_0x2e60a9){const _0x32f7d8=this['_suggestions']['get'](_0x2e60a9);if(!_0x32f7d8)throw new _0x1baf5e('track-changes-suggestion-not-found',this);return _0x32f7d8;}['hasSuggestion'](_0x5f2d66){return this['_suggestions']['has'](_0x5f2d66);}['addSuggestionData'](_0x4e97e9){const {authorId:_0x52dffc,id:_0x3039dd,attributes:_0x2a0857}=_0x4e97e9,[_0xcadcaa,_0x57bdac]=_0x4e97e9['type']['split'](':'),_0xb1d9cf=this['_suggestions']['get'](_0x3039dd)||this['_createSuggestion'](_0xcadcaa,_0x57bdac,_0x3039dd,_0x52dffc,_0x2a0857);if(this['_addThreadToSuggestion'](_0xb1d9cf),this['_checkSuggestionCorrectness'](_0xb1d9cf,_0xcadcaa,_0x57bdac||null,_0x52dffc),_0xb1d9cf['createdAt']=_0x4e97e9['createdAt'],_0xb1d9cf['_isDataLoaded']=!0x0,_0x2a0857&&_0x2a0857['@external']){const _0x48a635=_0x2a0857['@external'],_0x581cc0=this['_getExternalAuthor'](_0x48a635['authorName']);_0xb1d9cf['authoredAt']=_0x48a635['createdAt'],_0xb1d9cf['author']=_0x581cc0,_0xb1d9cf['isExternal']=!0x0;}else _0xb1d9cf['authoredAt']=_0x4e97e9['createdAt'];switch(_0x4e97e9['data']&&(_0xb1d9cf['data']=_0x4e97e9['data']),_0x4e97e9['attributes']&&(_0xb1d9cf['attributes']=_0x4e97e9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xb1d9cf['_saved']=!0x0),this['_suggestionState']['get'](_0xb1d9cf)){case'notReady':this['_suggestionState']['set'](_0xb1d9cf,'dataReady');break;case'markerReady':_0xb1d9cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xb1d9cf])),this['_refreshSuggestionsChain'](new Set([_0xb1d9cf])),this['_suggestionState']['set'](_0xb1d9cf,'ready'),this['fire']('suggestionLoaded',_0xb1d9cf)):this['_suggestionState']['set'](_0xb1d9cf,'removed');}return _0xb1d9cf;}['acceptSuggestion'](_0x3cd1bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x554059 of _0x3cd1bb['getAllAdjacentSuggestions']())_0x554059['accept']();});});}['discardSuggestion'](_0x226ba9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58e608 of _0x226ba9['getAllAdjacentSuggestions']())_0x58e608['discard']();});});}['enableCommand'](_0xecda4,_0x3bc5b2){const _0x2273ec=this['editor']['commands']['get'](_0xecda4);if(!_0x2273ec)throw new _0x1baf5e('track-changes-command-not-found',this,{'commandName':_0xecda4});if(this['_enabledCommands']['has'](_0x2273ec))throw new _0x1baf5e('track-changes-enable-command-twice',this,{'commandName':_0xecda4});this['_enabledCommands']['add'](_0x2273ec),_0x3bc5b2&&_0x2273ec['on']('execute',(_0x435080,_0x2c3dd1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c3dd1['length']>0x0&&_0x2c3dd1[_0x2c3dd1['length']-0x1]&&_0x2c3dd1[_0x2c3dd1['length']-0x1]['forceDefaultExecution']?_0x2c3dd1['pop']():(_0x435080['return']=_0x3bc5b2((..._0x460c61)=>_0x2273ec['execute'](..._0x460c61,{'forceDefaultExecution':!0x0}),..._0x2c3dd1),_0x435080['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x561724){let _0x38f029,_0x346c36;const _0x193377=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x38f029=_0x561724();}catch(_0x4e624b){_0x346c36=_0x4e624b;}return _0x193377||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x346c36&&_0x1baf5e['rethrowUnexpectedError'](_0x346c36,this),_0x38f029;}['markInsertion'](_0x161f2f,_0x19cac0=null,_0x3fa8cd={}){if(_0x161f2f['isCollapsed'])return null;const _0x1b3f2e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x111738,meta:_0x5d4e2a}of this['_findSuggestions'](_0x161f2f,'insertion'))if(_0x5d4e2a['isOwn']){if(!_0x5d4e2a['isNextTo']){if(_0x5d4e2a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x111738,_0x3fa8cd))continue;return _0x111738;}if(Qt(_0x111738,_0x3fa8cd))return _0x111738;this['_breakSuggestionMarker'](_0x111738,_0x161f2f['start'],_0x161f2f['end']);break;}if(_0x19cac0==_0x111738['subType']&&Qt(_0x111738,_0x3fa8cd)){const _0x41ae54=_0x111738['getFirstRange']();return _0x41ae54['start']['isEqual'](_0x161f2f['end'])?this['_setSuggestionRange'](_0x111738,this['_model']['createRange'](_0x161f2f['start'],_0x41ae54['end'])):this['_setSuggestionRange'](_0x111738,this['_model']['createRange'](_0x41ae54['start'],_0x161f2f['end'])),_0x111738;}}const _0x33cfca=_0x36e450(),_0x14af37=_0x1b3f2e['id'],_0x28b794=_0x19cac0?'insertion:'+_0x19cac0:'insertion',_0x452773=this['_setSuggestionData']({'id':_0x33cfca,'type':_0x28b794,'createdAt':new Date(),'authorId':_0x14af37,'attributes':_0x3fa8cd});return this['_addSuggestionMarker'](_0x28b794,_0x33cfca,_0x14af37,_0x161f2f),_0x452773;}['markMultiRangeInsertion'](_0x58e799,_0x5d77a5='multi',_0x49d1c2={}){const _0x4bb73a=this['editor']['plugins']['get']('Users')['me'],_0x435f1f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5d77a5,'join');for(const _0x502f65 of this['getSuggestions']())if(_0x502f65['author']['id']==_0x4bb73a['id']&&'insertion'==_0x502f65['type']&&_0x502f65['subType']==_0x5d77a5&&Qt(_0x502f65,_0x49d1c2)&&(_0x435f1f(_0x502f65['getRanges'](),_0x58e799)||_0x435f1f(_0x58e799,_0x502f65['getRanges']()))){for(const _0x287cc3 of _0x58e799)_0x502f65['addRange'](_0x287cc3);return _0x502f65;}for(const {suggestion:_0x5424c6,meta:_0x435d51}of this['_findSuggestions'](_0x58e799,'insertion')){if(!_0x435d51['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x435d51['containsRangeInObject'])continue;if(!Qt(_0x5424c6,_0x49d1c2))continue;let _0x516394=!0x0;for(const _0x228080 of _0x5424c6['getRanges']())for(const _0x5e9434 of _0x58e799)if(!_0x228080['containsRange'](_0x5e9434)){_0x516394=!0x1;break;}if(_0x516394)return _0x5424c6;}const _0x15440c=_0x36e450(),_0x3a013b=_0x4bb73a['id'],_0x1a1a9d='insertion:'+_0x5d77a5,_0x513b77=this['_setSuggestionData']({'id':_0x15440c,'type':_0x1a1a9d,'createdAt':new Date(),'authorId':_0x3a013b,'attributes':_0x49d1c2});for(const _0x70c2c0 of _0x58e799)this['_addSuggestionMarker'](_0x1a1a9d,_0x15440c,_0x3a013b,_0x70c2c0,o['getMultiRangeId']());return _0x513b77;}['markInlineFormat'](_0x4ca530,_0x5d77e6,_0x5af08b=null,_0x152cd1={}){if(_0x5af08b=_0x5af08b||Jt(_0x5d77e6),_0x4ca530['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2aa2a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5af08b,'accept');return this['forceDefaultExecution'](()=>_0x2aa2a8([_0x4ca530],_0x5d77e6,_0x152cd1)),null;}const _0x538d38=this['editor']['plugins']['get']('Users')['me'],_0x47d959=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x46fc9b,meta:_0x2f3920}of this['_findSuggestions'](_0x4ca530,'insertion'))_0x2f3920['isOwn']&&!_0x2f3920['isInsideObject']&&_0x47d959['push'](..._0x46fc9b['getRanges']());}const _0x4681a7=function(_0xbfdccf,_0x1893f7){const _0x548bb7=[];for(const _0x455c34 of _0x1893f7){const _0x4303e8=_0xbfdccf['getIntersection'](_0x455c34);_0x4303e8&&_0x548bb7['push'](_0x4303e8);}return _0x548bb7;}(_0x4ca530,_0x47d959),_0x52989b=function(_0x30cc7c,_0x265e43){const _0x2acae6=[_0x30cc7c];for(const _0x351c2d of _0x265e43){let _0x18b6dd=0x0;for(;_0x18b6dd<_0x2acae6['length'];){const _0x295c66=_0x2acae6[_0x18b6dd]['getDifference'](_0x351c2d);_0x2acae6['splice'](_0x18b6dd,0x1,..._0x295c66),_0x18b6dd+=_0x295c66['length'];}}return _0x2acae6;}(_0x4ca530,_0x47d959);_0x4681a7['length']&&this['_model']['change'](()=>{for(const _0x32a247 of _0x4681a7){const _0x3ec33d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5af08b,'accept');this['forceDefaultExecution'](()=>_0x3ec33d([_0x32a247],_0x5d77e6,_0x152cd1));}});for(const _0x3077cc of _0x52989b){let _0xe78eaa=null,_0x4f9a9a=_0x3077cc['start'],_0x479bb9=_0x3077cc['end'];for(const {suggestion:_0x183556,meta:_0x404714}of this['_findSuggestions'](_0x3077cc,'formatInline')){if(!_0x404714['isOwn'])continue;if(_0x183556['subType']!=_0x5af08b)continue;if(!Qt(_0x183556,_0x152cd1))continue;const _0x28a9d7=_0x183556['getFirstRange']();if(_0x28a9d7['containsRange'](_0x3077cc,!0x0))return null;_0x4f9a9a=_0x4f9a9a['isBefore'](_0x28a9d7['start'])?_0x4f9a9a:_0x28a9d7['start'],_0x479bb9=_0x479bb9['isAfter'](_0x28a9d7['end'])?_0x479bb9:_0x28a9d7['end'],_0xe78eaa?_0x28a9d7['start']['isBefore'](_0xe78eaa['getFirstRange']()['start'])?(_0xe78eaa['removeMarkers'](),_0xe78eaa=_0x183556):_0x183556['removeMarkers']():_0xe78eaa=_0x183556;}const _0x32e175=this['_model']['createRange'](_0x4f9a9a,_0x479bb9);if(_0xe78eaa)this['_setSuggestionRange'](_0xe78eaa,_0x32e175);else{const _0x210e39=_0x36e450(),_0x22767c=_0x538d38['id'];this['_setSuggestionData']({'id':_0x210e39,'type':'formatInline:'+_0x5af08b,'data':_0x5d77e6,'createdAt':new Date(),'authorId':_0x22767c,'attributes':_0x152cd1}),this['_addSuggestionMarker']('formatInline:'+_0x5af08b,_0x210e39,_0x22767c,_0x32e175);}}return null;}['markBlockFormat'](_0x1b5511,_0x27398e,_0x64edd8=[],_0x4d91de=null,_0x5ee90a={}){_0x27398e['formatGroupId']||(_0x27398e['formatGroupId']=_0x27398e['commandName']),_0x27398e['multipleBlocks']=_0x1b5511['is']('range'),_0x4d91de=_0x4d91de||Jt(_0x27398e);const _0x1f95f4=_0x64edd8['map'](_0xa439be=>qt(_0xa439be,this['_model'])),_0x4fe0ba=_0x1b5511['is']('range')?_0x1b5511:qt(_0x1b5511,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4162c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d91de,'accept');return this['forceDefaultExecution'](()=>_0x4162c0([_0x4fe0ba],_0x27398e,_0x5ee90a)),null;}_0x1f95f4['push'](_0x4fe0ba);let _0x53a892=!0x0;for(const _0x2f7ff0 of _0x1f95f4)if(!this['_rangeIsInLocalUserInsertion'](_0x2f7ff0)){_0x53a892=!0x1;break;}if(_0x53a892&&'always'!==this['_trackFormatChanges']){const _0xac6074=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d91de,'accept');return this['forceDefaultExecution'](()=>_0xac6074([_0x4fe0ba],_0x27398e,_0x5ee90a)),null;}let _0x44bfd7=null,_0x1fe0fe=_0x4fe0ba['start'],_0x55bd8e=_0x4fe0ba['end'];for(const {suggestion:_0x1f518c,meta:_0x3d9769}of this['_findSuggestions'](_0x4fe0ba,'formatBlock')){if(!_0x3d9769['isOwn'])continue;if(_0x3d9769['isNextTo']||_0x3d9769['containsRangeInObject']||_0x3d9769['isInsideObject'])continue;if(_0x1f518c['data']['formatGroupId']!=_0x27398e['formatGroupId'])continue;if(!Qt(_0x1f518c,_0x5ee90a))continue;const _0x1033c2=_0x1f518c['getFirstRange']();if(_0x1f518c['subType']==_0x4d91de){if(_0x1033c2['containsRange'](_0x4fe0ba,!0x0))return null;_0x1fe0fe=_0x1fe0fe['isBefore'](_0x1033c2['start'])?_0x1fe0fe:_0x1033c2['start'],_0x55bd8e=_0x55bd8e['isAfter'](_0x1033c2['end'])?_0x55bd8e:_0x1033c2['end'],_0x44bfd7?_0x1033c2['start']['isBefore'](_0x44bfd7['getFirstRange']()['start'])?(_0x44bfd7['removeMarkers'](),_0x44bfd7=_0x1f518c):_0x1f518c['removeMarkers']():_0x44bfd7=_0x1f518c;}else{const _0x324030=_0x4fe0ba['getIntersection'](_0x1033c2);this['_cutOutSuggestionMarker'](_0x1f518c,_0x324030);}}const _0x5ee83f=this['editor']['plugins']['get']('Users')['me'],_0x48e857=_0x36e450(),_0x833d3d=_0x5ee83f['id'];if(_0x44bfd7)return this['_setSuggestionRange'](_0x44bfd7,this['_model']['createRange'](_0x1fe0fe,_0x55bd8e)),_0x44bfd7;{const _0x32de9f=this['_setSuggestionData']({'id':_0x48e857,'type':'formatBlock:'+_0x4d91de,'data':_0x27398e,'createdAt':new Date(),'authorId':_0x833d3d,'attributes':_0x5ee90a});return this['_addSuggestionMarker']('formatBlock:'+_0x4d91de,_0x48e857,_0x833d3d,this['_model']['createRange'](_0x1fe0fe,_0x55bd8e)),_0x32de9f;}}['markMultiRangeBlockFormat'](_0x25145c,_0x23aa93,_0x4d606f=[],_0x4fbd4c=null,_0x1b4acc={}){_0x23aa93['formatGroupId']||(_0x23aa93['formatGroupId']=_0x23aa93['commandName']);const _0x32db5d=_0x25145c[0x0];_0x23aa93['multipleBlocks']=_0x32db5d['is']('range'),_0x4fbd4c=_0x4fbd4c||Jt(_0x23aa93);const _0x4d900c=_0x4d606f['map'](_0x317cc7=>qt(_0x317cc7,this['_model'])),_0x45233e=_0x32db5d['is']('range')?_0x25145c:_0x25145c['map'](_0x5b2482=>qt(_0x5b2482,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4620c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fbd4c,'accept');return this['forceDefaultExecution'](()=>_0x4620c6(_0x45233e,_0x23aa93,_0x1b4acc)),null;}_0x4d900c['push'](..._0x45233e);let _0x3bc6b7=!0x0;for(const _0x3d011e of _0x4d900c)if(!this['_rangeIsInLocalUserInsertion'](_0x3d011e)){_0x3bc6b7=!0x1;break;}if(_0x3bc6b7&&'always'!==this['_trackFormatChanges']){const _0x42f30f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fbd4c,'accept');return this['forceDefaultExecution'](()=>_0x42f30f(_0x45233e,_0x23aa93,_0x1b4acc)),null;}const _0x3c6b43=this['editor']['plugins']['get']('Users')['me'];for(const _0x692cb8 of this['getSuggestions']()){if(_0x692cb8['author']['id']!=_0x3c6b43['id'])continue;if('formatBlock'!=_0x692cb8['type']||_0x692cb8['data']['formatGroupId']!=_0x23aa93['formatGroupId'])continue;if(!Qt(_0x692cb8,_0x1b4acc))continue;const _0x36669d=_0x692cb8['subType']==_0x4fbd4c;for(let _0x350d39=0x0;_0x350d39<_0x45233e['length'];_0x350d39++){const _0xea9b84=_0x45233e[_0x350d39];for(const _0x1f5a7e of _0x692cb8['getMarkers']()){const _0x26a592=_0x1f5a7e['getRange']();if(_0xea9b84['isEqual'](_0x26a592)){_0x36669d?(_0x45233e['splice'](_0x350d39,0x1),_0x350d39--):_0x692cb8['removeMarker'](_0x1f5a7e['name']);break;}}}}if(0x0==_0x45233e['length'])return null;const _0x1c948c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fbd4c,'join');for(const _0x36ebd of this['getSuggestions']())if(_0x36ebd['author']['id']==_0x3c6b43['id']&&'formatBlock'==_0x36ebd['type']&&_0x36ebd['data']['formatGroupId']==_0x23aa93['formatGroupId']&&_0x36ebd['subType']==_0x4fbd4c&&Qt(_0x36ebd,_0x1b4acc)&&(_0x1c948c(_0x36ebd['getRanges'](),_0x45233e)||_0x1c948c(_0x45233e,_0x36ebd['getRanges']()))){for(const _0x4660a0 of _0x45233e)_0x36ebd['addRange'](_0x4660a0);return _0x36ebd;}const _0x4bf97d=_0x36e450(),_0x50bd25=_0x3c6b43['id'],_0x5b5d68='formatBlock:'+_0x4fbd4c,_0x20a46a=this['_setSuggestionData']({'id':_0x4bf97d,'type':_0x5b5d68,'data':_0x23aa93,'createdAt':new Date(),'authorId':_0x50bd25,'attributes':_0x1b4acc});for(const _0x2efa2f of _0x45233e)this['_addSuggestionMarker'](_0x5b5d68,_0x4bf97d,_0x50bd25,_0x2efa2f,o['getMultiRangeId']());return _0x20a46a;}['markDeletion'](_0x3e8bca,_0x11bc39=null,_0x584db3={}){if(_0x3e8bca['isCollapsed'])return null;const _0x58db4f=this['editor']['plugins']['get']('Users')['me'],_0x5dede1=new _0x5e3685(_0x3e8bca['start'],_0x3e8bca['end']);for(const {suggestion:_0x1f0d5e,meta:_0xb1b0ff}of this['_findSuggestions'](_0x5dede1,'insertion'))if(_0xb1b0ff['isOwn']&&!_0xb1b0ff['isNextTo']){if(_0x1f0d5e['isMultiRange']){const _0x36f009=_0x1f0d5e['getRanges']()['filter'](_0x1c6c34=>'$graveyard'!=_0x1c6c34['root']['rootName']);_0x36f009['every'](_0x161683=>_0x5dede1['containsRange'](_0x161683,!0x0))&&_0x1f0d5e['discard']();if(_0x36f009['some'](_0x3200f4=>_0x3200f4['containsRange'](_0x5dede1,!0x0))){const _0xb8f48c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x11bc39,'accept');return this['forceDefaultExecution'](()=>_0xb8f48c([_0x5dede1],null,_0x584db3)),null;}}else{const _0x512c75=_0x5dede1['getIntersection'](_0x1f0d5e['getFirstRange']());null!==_0x512c75&&_0x1f0d5e['_onDiscard']([_0x512c75],null,_0x584db3);}}if(_0x5dede1['detach'](),_0x5dede1['isCollapsed']||'$graveyard'==_0x5dede1['root']['rootName'])return null;let _0x433c3f=null,_0x434287=_0x5dede1['start'],_0x9ded8=_0x5dede1['end'];const _0x45c62c=this['_findSuggestions'](_0x5dede1,'deletion');for(const {suggestion:_0x2da4a3,meta:_0x5be9ff}of _0x45c62c){const _0x284d79=this['_model']['createRange'](_0x434287,_0x9ded8);if(_0x5be9ff['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5be9ff['containsRangeInObject']&&!_0x5be9ff['isInsideObject'])){if(_0x2da4a3['isMultiRange']){if(!Qt(_0x2da4a3,_0x584db3))continue;let _0x57dd74=!0x0;for(const _0x31592a of _0x2da4a3['getRanges']()){if(_0x31592a['containsRange'](_0x284d79,!0x0))return _0x2da4a3;_0x284d79['containsRange'](_0x31592a)||(_0x57dd74=!0x1);}_0x57dd74&&_0x2da4a3['discard']();}else{const _0x59da17=_0x2da4a3['getFirstRange']();if(_0x59da17['containsRange'](_0x284d79,!0x0))return _0x2da4a3;if(!Qt(_0x2da4a3,_0x584db3)){_0x284d79['containsRange'](_0x59da17)?_0x2da4a3['removeMarkers']():_0x59da17['containsPosition'](_0x434287)?_0x434287=_0x59da17['end']:_0x59da17['containsPosition'](_0x9ded8)&&(_0x9ded8=_0x59da17['start']);continue;}_0x434287=_0x434287['isBefore'](_0x59da17['start'])?_0x434287:_0x59da17['start'],_0x9ded8=_0x9ded8['isAfter'](_0x59da17['end'])?_0x9ded8:_0x59da17['end'],_0x584db3=Object['assign']({},_0x2da4a3['attributes']),_0x433c3f?_0x59da17['start']['isBefore'](_0x433c3f['getFirstRange']()['start'])?(_0x433c3f['removeMarkers'](),_0x433c3f=_0x2da4a3):_0x2da4a3['removeMarkers']():_0x433c3f=_0x2da4a3;}}}if(_0x433c3f)return this['_setSuggestionRange'](_0x433c3f,this['_model']['createRange'](_0x434287,_0x9ded8)),_0x433c3f;{const _0x38ba26=_0x36e450(),_0x431f77=this['_model']['createRange'](_0x434287,_0x9ded8),_0x5b8eca=_0x58db4f['id'],_0x2f1130=_0x11bc39?'deletion:'+_0x11bc39:'deletion',_0x14ada6=this['_setSuggestionData']({'id':_0x38ba26,'type':_0x2f1130,'createdAt':new Date(),'authorId':_0x5b8eca,'attributes':_0x584db3});return this['_addSuggestionMarker'](_0x2f1130,_0x38ba26,_0x5b8eca,_0x431f77),_0x14ada6;}}['markMultiRangeDeletion'](_0x179a81,_0x5582f6='multi',_0x8f3a98={}){const _0x2f80b4=this['editor']['plugins']['get']('Users')['me'],_0x5081ee=_0x179a81['map'](_0x413a57=>new _0x5e3685(_0x413a57['start'],_0x413a57['end'])),_0x472940=new Set();for(const {suggestion:_0x7c3b94,meta:_0x34bb09}of this['_findSuggestions'](_0x5081ee,'insertion'))_0x34bb09['isOwn']&&!_0x34bb09['isNextTo']&&_0x472940['add'](_0x7c3b94);for(const _0x5c2d2c of _0x472940)if(_0x5c2d2c['isMultiRange']){const _0x45124c=_0x5c2d2c['getRanges']();(!_0x5c2d2c['attributes']||!_0x5c2d2c['attributes']['skipNestingCheck'])&&(_0x45124c['every'](_0x152bfa=>_0x5081ee['some'](_0x2dd62=>_0x2dd62['containsRange'](_0x152bfa,!0x0)))&&_0x5c2d2c['discard']());if(_0x5081ee['every'](_0x411344=>_0x45124c['some'](_0x44394b=>_0x44394b['containsRange'](_0x411344,!0x0)))){const _0x4c3333=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5582f6,'accept');return this['forceDefaultExecution'](()=>_0x4c3333(_0x179a81,null,_0x8f3a98)),null;}}else{const _0x1c29e4=_0x5c2d2c['getFirstRange']();_0x5081ee['some'](_0x326d6a=>_0x326d6a['containsRange'](_0x1c29e4,!0x0))&&_0x5c2d2c['discard']();if(_0x5081ee['every'](_0x371dd9=>_0x1c29e4['containsRange'](_0x371dd9,!0x0))){const _0x459066=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5582f6,'accept');return this['forceDefaultExecution'](()=>_0x459066(_0x5081ee,null,_0x8f3a98)),null;}}const _0x51193=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5582f6,'join');let _0x44dc0c=null;for(const _0xb79329 of this['getSuggestions']())if(_0xb79329['author']['id']==_0x2f80b4['id']&&_0xb79329['isInContent']&&'deletion'==_0xb79329['type']&&_0xb79329['subType']==_0x5582f6&&Qt(_0xb79329,_0x8f3a98)&&(_0x51193(_0xb79329['getRanges'](),_0x5081ee)||_0x51193(_0x5081ee,_0xb79329['getRanges']()))){if(_0x44dc0c){if(_0xb79329['commentThread']&&_0xb79329['commentThread']['length'])continue;for(const _0x355161 of _0xb79329['getRanges']())_0x44dc0c['isIntersectingWithRange'](_0x355161)||_0x44dc0c['addRange'](_0x355161);_0xb79329['removeMarkers']();}else{_0x44dc0c=_0xb79329;for(const _0x4c3443 of _0x5081ee)_0xb79329['isIntersectingWithRange'](_0x4c3443)||_0xb79329['addRange'](_0x4c3443);}}if(_0x44dc0c)return _0x44dc0c;_0x472940['clear']();for(const {suggestion:_0x348886,meta:_0x65fb1b}of this['_findSuggestions'](_0x5081ee,'deletion'))_0x65fb1b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x65fb1b['containsRangeInObject']&&!_0x65fb1b['isInsideObject'])&&Qt(_0x348886,_0x8f3a98)&&_0x472940['add'](_0x348886);for(const _0x55f40a of _0x472940){const _0x49100d=_0x55f40a['getRanges']();if(!_0x8f3a98||!_0x8f3a98['skipNestingCheck']){if(_0x5081ee['every'](_0x42da5a=>_0x49100d['some'](_0x44a6e6=>_0x44a6e6['containsRange'](_0x42da5a,!0x0))))return _0x55f40a;}(!_0x55f40a['attributes']||!_0x55f40a['attributes']['skipNestingCheck'])&&(_0x49100d['every'](_0x43f0f1=>_0x5081ee['some'](_0x32a8b=>_0x32a8b['containsRange'](_0x43f0f1,!0x0)))&&_0x55f40a['discard']());}const _0x3709be=_0x36e450(),_0x352fa1=_0x2f80b4['id'],_0x409121='deletion:'+_0x5582f6,_0x57b0bc=this['_setSuggestionData']({'id':_0x3709be,'type':_0x409121,'createdAt':new Date(),'authorId':_0x352fa1,'attributes':_0x8f3a98});for(const _0x5cf267 of _0x5081ee)_0x5cf267['detach'](),_0x5cf267['isCollapsed']||'$graveyard'==_0x5cf267['root']['rootName']||this['_addSuggestionMarker'](_0x409121,_0x3709be,_0x352fa1,_0x5cf267,o['getMultiRangeId']());return _0x57b0bc;}['markAttributeChange'](_0x46c232,_0x58935f,_0xc92833,_0x275305,_0x5141a1){if(_0x46c232['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc7a603=this['editor']['plugins']['get']('Users')['me']['id'],_0x181ffb=Array['from'](this['_suggestions']['values']())['filter'](_0x3abe25=>'attribute'==_0x3abe25['type']&&_0x3abe25['data']['key']==_0x58935f&&_0x3abe25['isIntersectingWithRange'](_0x46c232));if('default'===this['_trackFormatChanges']){const _0x3b2ba6=this['_findSuggestions'](_0x46c232,'insertion')['filter'](({meta:_0x2da1ea})=>_0x2da1ea['isOwn']&&!_0x2da1ea['isInsideObject']&&!_0x2da1ea['isNextTo'])['map'](({suggestion:_0x556a5a})=>_0x556a5a);_0x181ffb['unshift'](..._0x3b2ba6);}const _0x339bf9=new Map([[_0x46c232,_0xc92833]]);for(const _0x2e9eaa of _0x181ffb){const _0x2c43e9='attribute'==_0x2e9eaa['type']?_0x2e9eaa['data']['oldValue']:void 0x0,_0x4d2b6c=_0x2e9eaa['getFirstRange'](),_0x3260bf=Array['from'](_0x339bf9['keys']())['find'](_0x34831d=>_0x34831d['isIntersecting'](_0x4d2b6c));if(!_0x3260bf)continue;const _0x79d654=_0x3260bf['getDifference'](_0x4d2b6c);this['_isBlockAttribute'](_0x58935f)&&'insertion'==_0x2e9eaa['type']&&0x0!=_0x79d654['length']||(_0x339bf9['delete'](_0x3260bf),_0x79d654['forEach'](_0x38126c=>{_0x339bf9['set'](_0x38126c,_0xc92833);}),'insertion'!=_0x2e9eaa['type']&&_0x2c43e9!=_0x275305&&_0x339bf9['set'](_0x3260bf['getIntersection'](_0x4d2b6c),_0x2c43e9));}const _0x1ad031=[];for(const [_0x1d74bb,_0x50e468]of _0x339bf9){const _0x119cf5=_0x36e450(),_0x261c45={'key':_0x58935f,'oldValue':_0x50e468,'newValue':_0x275305};_0x58935f['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':_0x58935f});const _0x103d55=('attribute:'+(_0x58935f+'|'+Jt({'newValue':_0x275305})))['substring'](0x0,0x3c),_0x2b27c3=this['_setSuggestionData']({'id':_0x119cf5,'type':_0x103d55,'data':_0x261c45,'createdAt':new Date(),'authorId':_0xc7a603,'attributes':_0x5141a1});_0x1ad031['push'](_0x2b27c3),this['_addSuggestionMarker'](_0x103d55,_0x119cf5,_0xc7a603,_0x1d74bb);}return _0x1ad031;}['enableDefaultAttributesIntegration'](_0x3e03fa){this['enableCommand'](_0x3e03fa,(_0x5a1e2f,..._0x2a04a5)=>{this['_recordAttributeChanges'](()=>{_0x5a1e2f(..._0x2a04a5);});});}['registerBlockAttribute'](_0x343fe9){this['_blockAttributeKeys']['add'](_0x343fe9);}['registerInlineAttribute'](_0x10e0c8){this['_inlineAttributeKeys']['add'](_0x10e0c8);}['_getAttributeKey'](_0x4ada78){return'attribute'==_0x4ada78['type']?_0x4ada78['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1d8e5c,_0x53af36){const _0x47be9b=_0x1d8e5c['getFirstMarker']();this['_model']['change'](_0x240027=>{_0x240027['updateMarker'](_0x47be9b,{'range':_0x53af36});});}['_addThreadToSuggestion'](_0x5b0664){const _0x55f358=_0x5b0664['id'],_0x5b6f82=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x55f358)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b6f82,'threadId':_0x55f358,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5bd3be=this['_commentsRepository']['getCommentThread'](_0x55f358);_0x5bd3be['unbind']('isRemovable'),_0x5bd3be['isRemovable']=!0x1,_0x5b0664['commentThread']=_0x5bd3be;}['_checkSuggestionCorrectness'](_0x3378a4,_0x49ee90,_0x1cc534,_0x5438f5){if(_0x3378a4['type']!=_0x49ee90||_0x3378a4['subType']!=_0x1cc534||_0x3378a4['creator']['id']!=_0x5438f5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1baf5e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x58ddd7,_0x4e5261){const _0x39ddba=_0x58ddd7['getFirstRange']();if(_0x4e5261['isEqual'](_0x39ddba))_0x58ddd7['removeMarkers']();else{if(_0x39ddba['containsRange'](_0x4e5261)){const _0xd6a062=this['_model']['createPositionAt'](_0x4e5261['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58ddd7,this['_model']['createRange'](_0x39ddba['start'],_0xd6a062));const _0x3404f4=_0x36e450(),_0x4e4459=_0x58ddd7['creator']['id'],_0x5a98dc=_0x58ddd7['type']+':'+_0x58ddd7['subType'];this['_setSuggestionData']({'id':_0x3404f4,'type':_0x5a98dc,'createdAt':new Date(),'authorId':_0x4e4459,'data':_0x58ddd7['data'],'attributes':_0x58ddd7['attributes']});const _0xe1046d=this['_model']['createPositionAt'](_0x4e5261['end']['parent'],'after'),_0x2ea5b6=this['_model']['createRange'](_0xe1046d,_0x39ddba['end']);this['_addSuggestionMarker'](_0x5a98dc,_0x3404f4,_0x4e4459,_0x2ea5b6);}else{if(_0x39ddba['containsPosition'](_0x4e5261['start'])){const _0x5ab352=this['_model']['createPositionAt'](_0x4e5261['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58ddd7,this['_model']['createRange'](_0x39ddba['start'],_0x5ab352));}else{const _0x48d68a=this['_model']['createPositionAt'](_0x4e5261['end']['parent'],'after');this['_setSuggestionRange'](_0x58ddd7,this['_model']['createRange'](_0x48d68a,_0x39ddba['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x277b74){for(const {suggestion:_0x346ed8,meta:_0x58ffa5}of this['_findSuggestions'](_0x277b74,'insertion')){if(!_0x58ffa5['isOwn'])continue;const _0x219e7a=_0x346ed8['getRanges']();for(const _0x321f0a of _0x219e7a)if(!_0x277b74['getDifference'](_0x321f0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x20f43b){const _0x193ff4=this['editor']['plugins']['get']('Users')['getUser'](_0x20f43b);if(!_0x193ff4)throw new _0x1baf5e('track-changes-user-not-found',this);return _0x193ff4;}['_getExternalAuthor'](_0x3ddb3b){const _0x4328eb=this['editor']['plugins']['get']('Users'),_0x119883=_0x1298bf('external:'+_0x3ddb3b),_0x59b22=_0x4328eb['getUser'](_0x119883);return _0x59b22||_0x4328eb['addUser']({'id':_0x119883,'name':_0x3ddb3b});}['_createSuggestion'](_0x2487c8,_0xcad4f7,_0x547ae4,_0x153d3a,_0x285e1f){const _0x2c709b=this['_getAuthorFromId'](_0x153d3a),_0x1c7f5c=this['_suggestionFactory']['buildSuggestion'](_0x2487c8,_0xcad4f7,_0x547ae4,_0x2c709b,_0x285e1f,_0x13c210=>{this['_updateSuggestionData'](_0x547ae4,{'attributes':_0x13c210});const _0x37956a=this['getSuggestion'](_0x547ae4);this['_joinWithAdjacentSuggestions'](new Set([_0x37956a])),this['_refreshSuggestionsChain'](new Set([_0x37956a]));});return this['listenTo'](_0x1c7f5c,'accept',()=>{this['_updateSuggestionData'](_0x547ae4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c7f5c,'discard',()=>{this['_updateSuggestionData'](_0x547ae4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x547ae4,_0x1c7f5c),this['_suggestionState']['set'](_0x1c7f5c,'notReady'),_0x1c7f5c;}['_splitMarkerName'](_0x1b8f3c){const _0xe31b78=_0x1b8f3c['split'](':');return{'group':_0xe31b78[0x0],'type':_0xe31b78[0x1],'subType':_0xe31b78['length']>=0x5?_0xe31b78[0x2]:null,'id':_0xe31b78['length']<0x5?_0xe31b78[0x2]:_0xe31b78[0x3],'authorId':_0xe31b78['length']<0x5?_0xe31b78[0x3]:_0xe31b78[0x4],'markerCount':0x6==_0xe31b78['length']?_0xe31b78[0x5]:null};}['_breakSuggestionMarker'](_0xf6b5c7,_0x23a57e,_0x5f3e6f){const _0x4c66b4=_0xf6b5c7['getFirstRange'](),_0x59d518=_0x4c66b4['start'],_0xf4d419=_0x4c66b4['end'];this['_setSuggestionRange'](_0xf6b5c7,this['_model']['createRange'](_0x59d518,_0x23a57e));const _0x354cf9=_0x36e450(),_0x3e8ec9=_0xf6b5c7['creator']['id'],_0x55e587=_0xf6b5c7['type']+(_0xf6b5c7['subType']?':'+_0xf6b5c7['subType']:'');this['_setSuggestionData']({'id':_0x354cf9,'type':_0x55e587,'createdAt':new Date(),'authorId':_0x3e8ec9,'originalSuggestionId':_0xf6b5c7['id'],'attributes':_0xf6b5c7['attributes'],'data':_0xf6b5c7['data']});const _0x57b50b=this['_getAttributeKey'](_0xf6b5c7);('formatBlock'==_0xf6b5c7['type']||_0x57b50b&&this['_isBlockAttribute'](_0x57b50b))&&(_0x5f3e6f=this['_model']['createPositionBefore'](_0x5f3e6f['parent'])),this['_addSuggestionMarker'](_0x55e587,_0x354cf9,_0x3e8ec9,this['_model']['createRange'](_0x5f3e6f,_0xf4d419));}['_findSuggestions'](_0x564dbe,_0x165d32=null){const _0x2a42eb=[],_0x4fe811=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x564dbe)||(_0x564dbe=[_0x564dbe]);for(const _0x4631e9 of this['getSuggestions']()){if(!_0x4631e9['isInContent'])continue;if(_0x165d32&&_0x4631e9['type']!=_0x165d32)continue;let _0x282d59=!0x1;for(const _0x3a4892 of _0x4631e9['getRanges']()){for(const _0x4ed14f of _0x564dbe){const _0x3cc7a5=_0x4ed14f['start']['isEqual'](_0x3a4892['end'])||_0x4ed14f['end']['isEqual'](_0x3a4892['start']);if(_0x3cc7a5||_0x4ed14f['getIntersection'](_0x3a4892)){const _0x5a6d6b=_0x4ed14f['containsRange'](_0x3a4892)&&Pt(this['_model']['schema'],_0x3a4892['start'],_0x4ed14f),_0x5f71d0=_0x3a4892['containsRange'](_0x4ed14f)&&Pt(this['_model']['schema'],_0x4ed14f['start'],_0x3a4892);_0x2a42eb['push']({'suggestion':_0x4631e9,'meta':{'isOwn':_0x4fe811==_0x4631e9['author'],'isNextTo':_0x3cc7a5,'isInsideObject':_0x5a6d6b,'containsRangeInObject':_0x5f71d0}}),_0x282d59=!0x0;break;}}if(_0x282d59)break;}}return _0x2a42eb;}['_addSuggestionMarker'](_0x8f2b3a,_0x539116,_0x4dd0e7,_0x40f43a,_0x3b05ce){this['_model']['change'](_0x1f6d62=>{let _0x328796='suggestion:'+_0x8f2b3a+':'+_0x539116+':'+_0x4dd0e7;_0x3b05ce&&(_0x328796=_0x328796+':'+_0x3b05ce),_0x1f6d62['addMarker'](_0x328796,{'range':_0x40f43a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1c9f8f){const _0x3cc61e=_0x1c9f8f['previous'],_0x3e1303=_0x1c9f8f['next'];_0x1c9f8f['previous']=null,_0x1c9f8f['next']=null,null!=_0x3cc61e&&_0x3cc61e['next']==_0x1c9f8f&&(_0x3cc61e['next']=_0x3e1303),null!=_0x3e1303&&_0x3e1303['previous']==_0x1c9f8f&&(_0x3e1303['previous']=_0x3cc61e),'ready'==this['_suggestionState']['get'](_0x1c9f8f)&&(this['_suggestionState']['set'](_0x1c9f8f,'removed'),this['fire']('suggestionUnloaded',_0x1c9f8f,_0x3cc61e,_0x3e1303));}['_setSuggestionData'](_0x4504fe){const _0xa8376b=_0x4504fe['id'],_0x156774=this['addSuggestionData'](_0x4504fe);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3906c8=this['editor']['plugins']['get']('PendingActions'),_0x2b2a3a=_0x156774['hasComments'],_0x4dd7cc=_0x156774['subType']?_0x156774['type']+':'+_0x156774['subType']:_0x156774['type'],_0x2144d2=this['editor']['locale'],_0x82139f=_0x3906c8['add'](c(_0x2144d2,'PENDING_ACTION_SUGGESTION')),_0xb5535f={'id':_0xa8376b,'type':_0x4dd7cc,'hasComments':_0x2b2a3a,'data':_0x4504fe['data']||null,'originalSuggestionId':_0x4504fe['originalSuggestionId']||null,'attributes':_0x156774['attributes']};this['_adapter']['addSuggestion'](_0xb5535f)['then'](_0x1a2972=>{_0x156774['_saved']=!0x0,_0x3906c8['remove'](_0x82139f),_0x1a2972&&_0x1a2972['createdAt']&&(this['_suggestions']['get'](_0xa8376b)['createdAt']=_0x1a2972['createdAt']);})['catch'](_0x4178d8=>{throw _0x11d394('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x156774['discard']();}),_0x156774['stopListening'](),this['_suggestions']['delete'](_0x156774['id']),this['_suggestionState']['delete'](_0x156774),_0x4178d8;});}return _0x156774;}['_isBlockAttribute'](_0x53fca0){return this['_blockAttributeKeys']['has'](_0x53fca0);}['_updateSuggestionData'](_0x427fcd,_0x5ece54){const _0x450816=this['editor']['plugins']['get']('PendingActions'),_0x279d6f=this['getSuggestion'](_0x427fcd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x279d6f['_saved']){const _0x49ba84=_0x450816['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x427fcd,_0x5ece54)['then'](()=>{_0x450816['remove'](_0x49ba84);});}else _0x279d6f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x427fcd,_0x5ece54);});}}['_getSuggestionData'](_0x4cade2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1baf5e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4cade2);}['_handleNewSuggestionMarker'](_0x3d8021){const {id:_0x4adbe1,type:_0x170932,subType:_0x4c8e9c,authorId:_0x7e481f}=this['_splitMarkerName'](_0x3d8021),_0x10627b=this['_suggestions']['get'](_0x4adbe1)||this['_createSuggestion'](_0x170932,_0x4c8e9c,_0x4adbe1,_0x7e481f,{});switch(this['_checkSuggestionCorrectness'](_0x10627b,_0x170932,_0x4c8e9c,_0x7e481f),this['_suggestionState']['get'](_0x10627b)){case'notReady':this['_getSuggestionData'](_0x4adbe1)['then'](_0xab607c=>{let _0x6e5933=Promise['resolve']();_0xab607c['hasComments']&&(_0x6e5933=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4adbe1})),_0x6e5933['then'](()=>{this['addSuggestionData'](_0xab607c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x10627b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4adbe1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x10627b,'ready'),this['fire']('suggestionLoaded',_0x10627b);break;case'ready':this['fire']('suggestionChanged',_0x10627b);}return _0x10627b['addMarkerName'](_0x3d8021),_0x10627b;}['_refreshSuggestionsChain'](_0x14334e){const _0x4cfcda=Array['from'](_0x14334e),_0xc72838=_0x4cfcda['filter'](_0x2ce993=>'attribute'==_0x2ce993['type']);this['_refreshAttributeSuggestionsChain'](_0xc72838);const _0x308834=_0x4cfcda['filter'](_0x15c833=>!_0x15c833['isMultiRange']&&'attribute'!=_0x15c833['type']),_0x795ed8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x378e22=>!_0x378e22['isMultiRange']&&'attribute'!=_0x378e22['type']),_0x1f247f=_0x795ed8['filter'](_0x37236f=>!_0x14334e['has'](_0x37236f)),_0x3dc4ef=new Map(_0x795ed8['map'](_0x5847ca=>[_0x5847ca,this['_suggestionFactory']['getSuggestionCallback'](_0x5847ca['type'],_0x5847ca['subType'],'chain')])),_0x48d304=new Map(_0x795ed8['map'](_0x1a79ae=>[_0x1a79ae,_0x1a79ae['getFirstRange']()])),_0x5a87a7=new Set(),_0x2d6b56=new Set();for(let _0x3c5abf=0x0;_0x3c5abf<_0x308834['length'];_0x3c5abf++)_0x180740(_0x308834[_0x3c5abf],_0x308834,_0x3c5abf+0x1);for(let _0x12aedf=0x0;_0x12aedf<_0x308834['length'];_0x12aedf++)_0x180740(_0x308834[_0x12aedf],_0x1f247f,0x0);const _0x2e6378=new Set();for(let _0x477da4=0x0;_0x477da4<_0x308834['length'];_0x477da4++){const _0xb6be9=_0x308834[_0x477da4];!_0x2d6b56['has'](_0xb6be9)&&_0xb6be9['previous']&&(_0x2e6378['add'](_0xb6be9['previous']),_0xb6be9['previous']['next']===_0xb6be9&&(_0xb6be9['previous']['next']=null),_0xb6be9['previous']=null),!_0x5a87a7['has'](_0xb6be9)&&_0xb6be9['next']&&(_0x2e6378['add'](_0xb6be9['next']),_0xb6be9['next']['previous']===_0xb6be9&&(_0xb6be9['next']['previous']=null),_0xb6be9['next']=null);}function _0x180740(_0xaec9a6,_0x4644ab,_0xb11b9a){for(let _0x4df333=_0xb11b9a;_0x4df333<_0x4644ab['length'];_0x4df333++){const _0x389226=_0x1572ad(_0xaec9a6,_0x4644ab[_0x4df333]);_0x389226&&(_0x389226[0x0]['next']=_0x389226[0x1],_0x389226[0x1]['previous']=_0x389226[0x0],_0x5a87a7['add'](_0x389226[0x0]),_0x2d6b56['add'](_0x389226[0x1]));}}function _0x1572ad(_0x21f1f6,_0x35a2f1){if(_0x21f1f6['author']['id']!==_0x35a2f1['author']['id'])return null;const _0x468640=_0x3dc4ef['get'](_0x21f1f6)(_0x21f1f6,_0x35a2f1,_0x48d304['get'](_0x21f1f6),_0x48d304['get'](_0x35a2f1));if(!_0x468640)return null;return _0x3dc4ef['get'](_0x35a2f1)(_0x21f1f6,_0x35a2f1,_0x48d304['get'](_0x21f1f6),_0x48d304['get'](_0x35a2f1))?_0x468640[0x1]['commentThread']&&_0x468640[0x1]['commentThread']['length']?null:_0x468640:null;}_0x2e6378['size']&&this['_refreshSuggestionsChain'](_0x2e6378);}['_refreshAttributeSuggestionsChain'](_0x236599){if(0x0==_0x236599['length'])return;const _0x54343f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37fbff=>'attribute'==_0x37fbff['type']&&_0x37fbff['_isDataLoaded']),_0x5e1610=[],_0x5e5699=new Map();for(const _0x269778 of _0x54343f){const _0x475c6f=_0x1298bf(_0x269778['attributes']);_0x5e5699['has'](_0x475c6f)||(_0x5e5699['set'](_0x475c6f,_0x5e1610['length']),_0x5e1610['push']([]));const _0x2aef08=_0x5e5699['get'](_0x475c6f);_0x5e1610[_0x2aef08]['push'](_0x269778);}!(function(){_0x5e1610['sort']((_0x1cdcf7,_0x22ae14)=>{const _0x137bdf=_0x1cdcf7[0x0]['createdAt'],_0xf4ca6e=_0x22ae14[0x0]['createdAt'];return _0x137bdf==_0xf4ca6e?_0x1cdcf7[0x0]['attributes']['groupId']<_0x22ae14[0x0]['attributes']['groupId']?-0x1:0x1:_0x137bdf<_0xf4ca6e?-0x1:0x1;});for(const _0x4e9336 of _0x5e1610)_0x4e9336['sort']((_0x1d7853,_0x5a5847)=>_0x1d7853['id']<_0x5a5847['id']?-0x1:0x1);}());for(let _0xa8b3c8=0x0;_0xa8b3c8<_0x5e1610['length'];_0xa8b3c8++){if(0x0==_0x5e1610[_0xa8b3c8]['length'])continue;const _0x439279=[];for(let _0x3db5cd=_0xa8b3c8+0x1;_0x3db5cd<_0x5e1610['length'];_0x3db5cd++)0x0!=_0x5e1610[_0x3db5cd]['length']&&_0xfbfc7(_0x5e1610[_0xa8b3c8],_0x5e1610[_0x3db5cd])&&_0x439279['push'](_0x3db5cd);for(const _0x316c60 of _0x439279)_0x5e1610[_0xa8b3c8]=_0x5e1610[_0xa8b3c8]['concat'](_0x5e1610[_0x316c60]),_0x5e1610[_0x316c60]=[];}for(const _0x434b71 of _0x5e1610)for(let _0x5455e6=0x0;_0x5455e6<_0x434b71['length'];_0x5455e6++){const _0x3c584b=_0x434b71[_0x5455e6+0x1]||null;_0x434b71[_0x5455e6]['next']!==_0x3c584b&&(_0x434b71[_0x5455e6]['next']=_0x3c584b);}for(const _0x5796ea of _0x5e1610)for(let _0x11a3bf=0x0;_0x11a3bf<_0x5796ea['length'];_0x11a3bf++){const _0x18c573=_0x5796ea[_0x11a3bf-0x1]||null;_0x5796ea[_0x11a3bf]['previous']!==_0x18c573&&(_0x5796ea[_0x11a3bf]['previous']=_0x18c573);}function _0xfbfc7(_0x3a5706,_0x484db6){if(_0x3a5706[0x0]['attributes']['groupId']!==_0x484db6[0x0]['attributes']['groupId']&&_0x3a5706[0x0]['author']!==_0x484db6[0x0]['author'])return!0x1;if(!function(_0x1b17a6,_0x2b1cbb){if(!_0x1b17a6['hasComments']&&!_0x2b1cbb['hasComments'])return!0x0;if(_0x1b17a6['hasComments']&&_0x2b1cbb['hasComments'])return!0x1;if(_0x1b17a6['hasComments']&&_0x2b1cbb['createdAt']<_0x1b17a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b1cbb['hasComments']&&_0x1b17a6['createdAt']<_0x2b1cbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a5706[0x0],_0x484db6[0x0]))return!0x1;const _0x6ed6b5=Vt(_0x3a5706[0x0]['attributes'],'groupId'),_0x30e628=Vt(_0x484db6[0x0]['attributes'],'groupId');if(!_0x23a453(_0x6ed6b5,_0x30e628))return!0x1;return!!_0x3a5706['every'](_0x5b10e9=>_0x484db6['some'](_0x521ee6=>_0x5b10e9['getFirstRange']()['isEqual'](_0x521ee6['getFirstRange']())))&&_0x484db6['every'](_0x566b1f=>_0x3a5706['some'](_0x339436=>_0x566b1f['getFirstRange']()['isEqual'](_0x339436['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x44389f){const _0x33c33=Array['from'](_0x44389f),_0x3971ca=this['getSuggestions']({'skipNotAttached':!0x0}),_0x61f2d=_0x3971ca['filter'](_0x4e2340=>!_0x44389f['has'](_0x4e2340)),_0x55a13e=new Map(_0x33c33['map'](_0x45aed2=>[_0x45aed2,this['_suggestionFactory']['getSuggestionCallback'](_0x45aed2['type'],_0x45aed2['subType'],'join')])),_0x4d7963=new Map(_0x3971ca['map'](_0x556039=>[_0x556039,_0x556039['getRanges']()]));for(let _0x147396=0x0;_0x147396<_0x33c33['length'];_0x147396++){if(_0xb92c66(this,_0x33c33[_0x147396],_0x33c33,_0x147396+0x1))return!0x0;}for(let _0x2b2304=0x0;_0x2b2304<_0x33c33['length'];_0x2b2304++){if(_0xb92c66(this,_0x33c33[_0x2b2304],_0x61f2d,0x0))return!0x0;}return!0x1;function _0xb92c66(_0x3f81eb,_0x1586c5,_0x1bea93,_0x328de0){for(let _0xb112c2=_0x328de0;_0xb112c2<_0x1bea93['length'];_0xb112c2++){const _0x3a7909=_0x1bea93[_0xb112c2];if(_0x3a7909['type']!==_0x1586c5['type']||_0x3a7909['author']['id']!==_0x1586c5['author']['id']||_0x3a7909['subType']!==_0x1586c5['subType'])continue;if(!Wt(_0x1586c5,_0x3a7909))continue;if('attribute'==_0x1586c5['type']&&_0x1586c5['data']['oldValue']!=_0x3a7909['data']['oldValue'])continue;if('attribute'==_0x1586c5['type']&&_0x3f81eb['_isBlockAttribute'](_0x1586c5['data']['key']))continue;if('formatBlock'==_0x1586c5['type']){const _0x284545=_0x3f81eb['editor']['model'],_0x2be0d2=_0x1586c5['getContainedElement']();if(_0x2be0d2&&(_0x284545['schema']['isObject'](_0x2be0d2)||_0x284545['schema']['isLimit'](_0x2be0d2)))continue;}const _0x5492bb=_0x55a13e['get'](_0x1586c5),_0x42f6de=_0x4d7963['get'](_0x1586c5),_0x49a6b5=_0x4d7963['get'](_0x3a7909),_0x3fd0e6=_0x1586c5['commentThread']&&_0x1586c5['commentThread']['length'],_0x1ba481=_0x3a7909['commentThread']&&_0x3a7909['commentThread']['length'];if(!_0x3fd0e6&&_0x5492bb(_0x49a6b5,_0x42f6de))return _0x3f81eb['_joinSuggestions'](_0x3a7909,_0x1586c5),_0x4d7963['delete'](_0x1586c5),!0x0;if(!_0x1ba481&&_0x5492bb(_0x42f6de,_0x49a6b5))return _0x3f81eb['_joinSuggestions'](_0x1586c5,_0x3a7909),_0x4d7963['delete'](_0x3a7909),!0x0;}return!0x1;}}['_joinSuggestions'](_0x12129e,_0x1b0906){if(_0x12129e['isMultiRange']){for(const _0x44d406 of _0x1b0906['getRanges']())_0x12129e['addRange'](_0x44d406);}else{const _0x5e957a=_0x1b0906['getFirstRange']()['end'];this['_setSuggestionRange'](_0x12129e,this['_model']['createRange'](_0x12129e['getFirstRange']()['start'],_0x5e957a));}_0x1b0906['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfc39f4,_0x3e6e09,_0x3b8589){const _0x438074=_0xfc39f4['startsWith']('format')||_0xfc39f4['startsWith']('attribute')?'FORMATTING':_0xfc39f4['toUpperCase']();return c(this['editor']['locale'],_0x3e6e09+'_'+_0x438074+'_SUGGESTION_ANNOUNCEMENT',_0x3b8589);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f87fd=this['editor'];if(!_0x1f87fd['ui'])return;const {ariaLiveAnnouncer:_0x412bad}=_0x1f87fd['ui'];_0x3a84f7(this['_model'],({left:_0x29d9d1,entered:_0x36237c})=>{for(const _0x576330 of _0x29d9d1){const {group:_0x610702,type:_0x339a55}=this['_splitMarkerName'](_0x576330['name']);if('suggestion'===_0x610702){_0x412bad['announce'](this['_getMarkerAnnouncementText'](_0x339a55,'LEAVE'));break;}}for(const _0x40ede0 of _0x36237c){const {group:_0x1aed48,type:_0x5b81e2}=this['_splitMarkerName'](_0x40ede0['name']);if('suggestion'===_0x1aed48){_0x412bad['announce'](this['_getMarkerAnnouncementText'](_0x5b81e2,'ENTER',_0x473837(_0x3b560a)));break;}}});}['_processAttributeChanges'](_0x3ed430){if(this['_recordAttributeSuggestions'])return!0x1;const _0x524a0e=this['editor'],_0x318d25=_0x524a0e['model']['document']['differ']['getChanges']();if(0x0==_0x318d25['length'])return!0x1;const _0x155e8d=[],_0x33cc0a=_0x318d25['filter'](_0x1bc974=>'attribute'==_0x1bc974['type']),_0x5be5a5=_0x318d25['filter'](_0x2e397f=>'insert'==_0x2e397f['type']&&'$text'!=_0x2e397f['name']),_0x3cf1ac=_0x318d25['filter'](_0x282301=>'remove'==_0x282301['type']&&'$text'!=_0x282301['name']);for(const _0xbf5dbf of _0x33cc0a)_0x155e8d['push']({'key':_0xbf5dbf['attributeKey'],'newValue':_0xbf5dbf['attributeNewValue'],'oldValue':_0xbf5dbf['attributeOldValue'],'range':Ht(_0xbf5dbf['range'],_0x524a0e['model'])});for(const _0x373865 of _0x5be5a5){const _0x3fcb49=_0x3cf1ac['find'](_0x23921a=>_0x23921a['position']['isEqual'](_0x373865['position']));_0x3fcb49&&_0x155e8d['push']({'key':u,'newValue':_0x373865['name'],'oldValue':_0x3fcb49['name'],'range':_0x524a0e['model']['createRangeOn'](_0x373865['position']['nodeAfter'])});}return 0x0!=_0x155e8d['length']&&this['_reduceExistingSuggestions'](_0x3ed430,_0x155e8d);}['_processAttributeSuggestions'](_0x194b0e){let _0x2a1b99=!0x1;const _0x3b8536=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a81d0=>_0x1a81d0['data']['newRange']&&_0x1a81d0['name']['startsWith']('suggestion:attribute:'));for(const _0xce9402 of _0x3b8536){const {subType:_0x23f67b,id:_0x2659ea}=this['_splitMarkerName'](_0xce9402['name']),_0x5e051a=_0x23f67b['split']('|')[0x0];for(const _0x3ceb6a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3ceb6a['id']!=_0x2659ea&&'attribute'==_0x3ceb6a['type']&&_0x3ceb6a['data']&&_0x3ceb6a['data']['key']==_0x5e051a&&_0x3ceb6a['getFirstRange']()['isIntersecting'](_0xce9402['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3ceb6a,_0xce9402['data']['newRange'],_0x194b0e),_0x2a1b99=!0x0);}return _0x2a1b99;}['_recordAttributeChanges'](_0x64c5c1){this['_recordAttributeSuggestions']=!0x0,_0x64c5c1();}['_isRegisteredAttribute'](_0x4dda27){const _0x278716=this['_isBlockAttribute'](_0x4dda27),_0x411b47=this['_inlineAttributeKeys']['has'](_0x4dda27);return _0x278716||_0x411b47;}['_reduceExistingSuggestions'](_0x19c8fb,_0x1e7bbc){if(0x0==_0x1e7bbc['length'])return!0x1;let _0x11ef73=!0x1;for(const _0x43d9e6 of _0x1e7bbc){const _0xe25071=this['_findSuggestions'](_0x43d9e6['range'],'attribute')['filter'](_0x4f992a=>!_0x4f992a['meta']['isNextTo'])['map'](_0x2899bf=>_0x2899bf['suggestion']),_0x1c2306=_0x1298bf({'newValue':_0x43d9e6['newValue']});_0xe25071['filter'](_0xf74af4=>{const [_0x3aa739,_0x584d8a]=_0xf74af4['subType']['split']('|');return _0x3aa739==_0x43d9e6['key']&&_0x584d8a!=_0x1c2306;})['forEach'](_0x3d1d67=>{this['_reduceSuggestionAttributeRange'](_0x3d1d67,_0x43d9e6['range'],_0x19c8fb),_0x11ef73=!0x0;});}return _0x11ef73;}['_reduceSuggestionAttributeRange'](_0x490b95,_0x22bee0,_0x555e2c){const _0x38fb61=_0x490b95['getFirstRange']()['getDifference'](_0x22bee0);0x0!==_0x38fb61['length']?0x1!==_0x38fb61['length']?this['_breakSuggestionMarker'](_0x490b95,_0x22bee0['start'],_0x22bee0['end']):this['_setSuggestionRange'](_0x490b95,_0x38fb61[0x0]):_0x555e2c['removeMarker'](_0x490b95['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x455d41){this['_editor']=_0x455d41,this['_model']=_0x455d41['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4313d4,_0x1b1200,_0x241f9b,_0x192f14,_0x5708c6,_0x5d51c5){return new o(this['_model'],{'type':_0x4313d4,'subType':_0x1b1200,'id':_0x241f9b,'author':_0x192f14,'creator':_0x192f14,'attributes':_0x5708c6,'onAttributesChange':_0x5d51c5,'onAccept':(..._0x3783ba)=>this['getSuggestionCallback'](_0x4313d4,_0x1b1200,'accept')(..._0x3783ba),'onDiscard':(..._0x4d2fb8)=>this['getSuggestionCallback'](_0x4313d4,_0x1b1200,'discard')(..._0x4d2fb8)});}['registerCustomCallback'](_0x5ea59e,_0x36baa9,_0x99f27c,_0x1d526d){const _0x56c674=_0x5ea59e+':'+_0x36baa9+':'+_0x99f27c;this['_customCallbacks']['set'](_0x56c674,_0x1d526d);}['getSuggestionCallback'](_0x1e0d02,_0x3c4bcc,_0x3d9d4a){const _0x480657=_0x1e0d02+':'+_0x3c4bcc+':'+_0x3d9d4a;return this['_customCallbacks']['get'](_0x480657)||this['_defaultCallbacks']['get'](_0x1e0d02+':'+_0x3d9d4a);}['_registerDefaultCallbacks'](){const _0x327754=()=>!0x1,_0x183f07=_0x5a652f=>{_0x5a652f['sort']((_0xf4711b,_0x351f4e)=>_0xf4711b['start']['isBefore'](_0x351f4e['start'])?0x1:-0x1),this['_model']['change'](_0x2c36e5=>{for(const _0x3df413 of _0x5a652f){let _0x14e9e6;_0x14e9e6=_0x3df413['end']['isAtEnd']&&_0x3df413['end']['parent']==_0x3df413['start']['nodeAfter']?_0x2c36e5['createSelection'](_0x3df413['start']['nodeAfter'],'on'):_0x2c36e5['createSelection'](_0x3df413),this['_model']['deleteContent'](_0x14e9e6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5505ad=(_0xfa0bde,_0x41cbd8)=>{_0x41cbd8&&this['_model']['change'](_0xd7c362=>{const {commandName:_0x35aae3,commandParams:_0x2092d5=[]}=_0x41cbd8,_0x4aa30d=_0xfa0bde['map'](_0x5a0735=>(Gt(_0x5a0735)&&(_0x5a0735=this['_model']['createRange'](_0x5a0735['end'])),_0x5a0735))['filter'](_0x31bdef=>'$graveyard'!==_0x31bdef['root']['rootName']);if(_0x4aa30d['length']<0x1)return;const _0x2a2dae=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1036d6=>_0x5e3685['fromRange'](_0x1036d6));_0xd7c362['setSelection'](_0x4aa30d);for(const _0x1054f3 of this['_editor']['commands']['commands']())_0x1054f3['refresh']();_0x2092d5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x35aae3,..._0x2092d5);const _0x368cc9=_0x2a2dae['filter'](_0x186fbb=>'$graveyard'!=_0x186fbb['root']['rootName']);_0x368cc9['length']>0x0&&_0xd7c362['setSelection'](_0x368cc9);for(const _0x4ff747 of _0x2a2dae)_0x4ff747['detach']();});},_0x1b99e2=(_0x16108a,_0x50fdf7)=>0x1==_0x16108a['length']&&0x1==_0x50fdf7['length']&&_0x16108a[0x0]['end']['isEqual'](_0x50fdf7[0x0]['start']),_0x37c818=(_0xfb6a52,_0x5cc824,_0x3009e3,_0xa27dcc)=>zt(_0xfb6a52,_0x5cc824,_0x3009e3,_0xa27dcc)?[_0xfb6a52,_0x5cc824]:zt(_0x5cc824,_0xfb6a52,_0xa27dcc,_0x3009e3)?[_0x5cc824,_0xfb6a52]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x327754),this['_defaultCallbacks']['set']('insertion:discard',_0x183f07),this['_defaultCallbacks']['set']('insertion:join',_0x1b99e2),this['_defaultCallbacks']['set']('insertion:chain',_0x37c818),this['_defaultCallbacks']['set']('deletion:accept',_0x183f07),this['_defaultCallbacks']['set']('deletion:discard',_0x327754),this['_defaultCallbacks']['set']('deletion:join',_0x1b99e2),this['_defaultCallbacks']['set']('deletion:chain',_0x37c818),this['_defaultCallbacks']['set']('formatInline:accept',_0x5505ad),this['_defaultCallbacks']['set']('formatInline:discard',_0x327754),this['_defaultCallbacks']['set']('formatInline:join',_0x1b99e2),this['_defaultCallbacks']['set']('formatInline:chain',_0x327754),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5505ad),this['_defaultCallbacks']['set']('formatBlock:discard',_0x327754),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b99e2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x327754),this['_defaultCallbacks']['set']('attribute:accept',_0x327754),this['_defaultCallbacks']['set']('attribute:discard',(_0xdff95f,_0x38df86)=>{if(!_0x38df86)return;const _0x40f0f8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x19c42c=>{if(_0x38df86['key']==u)for(const _0x4e00d0 of _0xdff95f){const _0x1c79c4=_0x4e00d0['start']['nodeAfter'],_0x154166=_0x38df86['oldValue'];_0x19c42c['rename'](_0x1c79c4,_0x154166);}else{if(_0x40f0f8['_isBlockAttribute'](_0x38df86['key'])){for(const _0x4056d4 of _0xdff95f)void 0x0!==_0x38df86['oldValue']?_0x19c42c['setAttribute'](_0x38df86['key'],_0x38df86['oldValue'],_0x4056d4['start']['nodeAfter']):_0x19c42c['removeAttribute'](_0x38df86['key'],_0x4056d4['start']['nodeAfter']);}else{for(const _0x532873 of _0xdff95f)_0x38df86['oldValue']?_0x19c42c['setAttribute'](_0x38df86['key'],_0x38df86['oldValue'],_0x532873):_0x19c42c['removeAttribute'](_0x38df86['key'],_0x532873);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b99e2);}}function Pt(_0x2a080e,_0x3ed158,_0x5f8f00){for(const _0x1e7d06 of _0x3ed158['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e7d06['root']==_0x1e7d06)return!0x1;if(!_0x5f8f00['containsItem'](_0x1e7d06))return!0x1;if(_0x2a080e['isObject'](_0x1e7d06)||_0x2a080e['isLimit'](_0x1e7d06))return!0x0;}return!0x1;}function Gt(_0x459e6a){return _0x459e6a['end']['parent']==_0x459e6a['start']['nodeAfter']&&_0x459e6a['end']['isAtStart'];}function Lt(_0x45872f,_0x418a66,_0x2cad99,_0x236915){const _0x3faef3=_0xf323aa=>!_0xf323aa['item']['is']('$textProxy')&&!_0x236915['isObject'](_0xf323aa['item']),_0x4dd179=_0x45872f['start']['getLastMatchingPosition'](_0x3faef3),_0x48907a=_0x45872f['end']['getLastMatchingPosition'](_0x3faef3,{'direction':'backward'});return(!_0x45872f['start']['isEqual'](_0x4dd179)||!_0x45872f['end']['isEqual'](_0x48907a))&&(_0x4dd179['isBefore'](_0x48907a)?_0x2cad99['updateMarker'](_0x418a66,{'range':_0x2cad99['createRange'](_0x4dd179,_0x48907a)}):_0x2cad99['removeMarker'](_0x418a66),!0x0);}function Jt(_0x535860){return _0x1298bf(_0x535860);}function Kt(_0x19f135){const _0x3b5892=_0x19f135['start']['nodeAfter'];return _0x3b5892&&_0x3b5892['is']('element');}function Ht(_0x2443c8,_0x3d3307){return null==_0x2443c8['end']['nodeBefore']&&_0x2443c8['end']['parent']==_0x2443c8['start']['nodeAfter']?qt(_0x2443c8['start']['nodeAfter'],_0x3d3307):_0x2443c8;}function qt(_0x2cf663,_0x526d0c){const _0x432a79=_0x526d0c['schema']['isObject'](_0x2cf663)||_0x526d0c['schema']['isSelectable'](_0x2cf663);return _0x526d0c['createRange'](_0x526d0c['createPositionAt'](_0x2cf663,'before'),_0x432a79?_0x526d0c['createPositionAfter'](_0x2cf663):_0x526d0c['createPositionAt'](_0x2cf663,'end'));}function zt(_0x47e353,_0x4be078,_0x36e2d5,_0x2522d5){return!!Wt(_0x47e353,_0x4be078)&&_0x36e2d5['end']['isEqual'](_0x2522d5['start']);}function Wt(_0x5c776d,_0x3eb7ed){if(!_0x5c776d['_isDataLoaded']||!_0x3eb7ed['_isDataLoaded'])return!0x1;const _0xdf9ceb=new Set(Object['keys'](_0x5c776d['attributes'])),_0x14a073=new Set(Object['keys'](_0x3eb7ed['attributes']));if(_0xdf9ceb['delete']('groupId'),_0x14a073['delete']('groupId'),0x0==_0xdf9ceb['size']&&0x0==_0x14a073['size'])return!0x0;if(_0xdf9ceb['size']!=_0x14a073['size'])return!0x1;const _0xe95a61={..._0x5c776d['attributes']},_0x2257b2={..._0x3eb7ed['attributes']};return delete _0xe95a61['groupId'],delete _0x2257b2['groupId'],JSON['stringify'](_0xe95a61)==JSON['stringify'](_0x2257b2);}function Qt(_0x188fda,_0x67d7d6){const _0x55b755=Xt(_0x188fda['attributes']),_0x3ae262=Xt(_0x67d7d6);if(!_0x188fda['_isDataLoaded'])return!0x1;for(const _0x139316 of Object['keys'](_0x3ae262))if(!_0x23a453(_0x55b755[_0x139316],_0x3ae262[_0x139316]))return!0x1;return!0x0;}function Xt(_0x18c3c0){const _0x4308d2=Object['assign']({},_0x18c3c0);return delete _0x4308d2['skipNestingCheck'],delete _0x4308d2['tablePasteChainId'],_0x4308d2;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x3be1e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x59e584,_0x34a49f,_0x412e48,_0x5a15fd){super(),this['model']=_0x34a49f,this['view']=_0x412e48,this['commentThreadController']=_0x5a15fd,this['_editor']=_0x59e584,this['_acceptCommand']=_0x59e584['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x59e584['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20769d,_0x2363fc)=>_0x20769d||_0x2363fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a6462=>_0x1a6462&&this['_editor']['model']['canEditAt'](_0x34a49f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x39ce54=>_0x39ce54&&this['_editor']['model']['canEditAt'](_0x34a49f['getRanges']())),this['_pendingAction']=null,_0x412e48['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x412e48,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x412e48,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x412e48,'change:isDirty',()=>{_0x412e48['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 _0x25f850=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25f850);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x45d309{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x260a53,_0x10bab2,_0x422222,_0x330e8c){super(_0x260a53),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b4c56(_0x260a53,c(_0x260a53,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10bab2['authoredAt']),this['bind']('authoredAt')['to'](_0x10bab2),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',_0x10bab2,'authoredAt',this,'descriptionParts',(_0x1256b2,_0x5139c4,_0x314c72)=>{const _0x2ee088=_0x314c72['map'](_0x20162c=>ls(_0x20162c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1256b2-0x1,_0x10bab2['author']['name'],_0x5139c4?_0x330e8c['formatDateTime'](_0x5139c4):'',new DOMParser()['parseFromString'](_0x2ee088,'text/html')['body']['textContent']]);}),this['focusables']=new _0x339156(),this['focusTracker']=new _0x46d44f(),this['keystrokes']=new _0xc04d4b(),this['focusCycler']=new _0x4d75a0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1d9164=>_0x1d9164['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10bab2,this['_localUser']=_0x422222,this['_config']=_0x330e8c,_0x330e8c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4f0b2e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x326ec2}=this['_config'];this['commentsListView']=new _0x326ec2(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',_0x760807=>_0x760807+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54df92,_0x175df7)=>_0x54df92||!!_0x175df7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x995962}=this['_config'],_0x5db468=new _0x995962(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25c40f=_0x5db468['commentInputView'];return _0x5db468['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25c40f,'value',(_0x1132ed,_0x7db3fd,_0x3cfc5d)=>!!_0x3cfc5d||_0x1132ed&&!_0x7db3fd),_0x25c40f['on']('submit',(_0x1b96cc,_0x168397)=>{this['fire']('addComment',_0x168397),_0x25c40f['editor']['setData']('');}),_0x25c40f['on']('cancel',()=>this['focus']()),_0x25c40f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5db468;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x972f60,_0x2ecfe7,_0x4fde7e,_0x14e31e){super(_0x972f60,_0x2ecfe7,_0x4fde7e,_0x14e31e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x30a332=>_0x30a332&&_0x30a332[0x0]?_0x30a332[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x36a493,_0xd4fbe9)=>{let _0x141d3c='';for(const _0x40a2f4 of _0x36a493)_0x141d3c+='<p>'+ls(_0x40a2f4['content'],_0x40a2f4['color'])+'</p>';return _0xd4fbe9?_0x141d3c:ti(_0x141d3c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x14e31e['SuggestionView'](_0x972f60,_0x2ecfe7,{'formatDateTime':_0x14e31e['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 _0x5af0fc=this['bindTemplate'],_0x50c3bc=[this['suggestionView']];return this['commentsListView']&&_0x50c3bc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x50c3bc['push'](this['commentThreadInputView']),_0x50c3bc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5af0fc['if']('isActive','ck-suggestion-wrapper--active'),_0x5af0fc['to']('type',_0x4912a8=>'ck-suggestion-'+_0x4912a8),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':_0x5af0fc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x50c3bc};}['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 _0x45d309{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2dd10d,_0x324a40,_0x20399a){super(_0x2dd10d),this['_model']=_0x324a40,this['_config']=_0x20399a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x324a40),this['acceptButton']=this['_createButton'](c(_0x2dd10d,'Accept\x20suggestion'),_0x24caef,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2dd10d,'Discard\x20suggestion'),_0x1bcfab,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2bdacb(_0x2dd10d,_0x324a40['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x339156([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46d44f(),this['keystrokes']=new _0xc04d4b(),this['focusCycler']=new _0x4d75a0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f151b=>_0x3f151b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x16d4b3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x16d4b3['innerHTML']=this['description'],this['on']('change:description',(_0xfa4aab,_0x344891,_0x751693)=>{_0x16d4b3['innerHTML']=_0x751693;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4ceb04=this['bindTemplate'],_0x3503fa=[{'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':_0x4ceb04['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4ceb04['to']('authoredAt',_0x1de735=>this['_config']['formatDateTime'](_0x1de735))}]}]},{'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']&&_0x3503fa['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':_0x3503fa}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x294ce0,_0x8969e9,_0x3f4cfc,_0x1e68e8,_0x24d436){const _0x4ebd8f=new _0x4add8c(this['locale']);return _0x4ebd8f['set']({'label':_0x294ce0,'icon':_0x8969e9,'tooltip':!0x0,'tooltipPosition':_0x24d436}),_0x4ebd8f['extendTemplate']({'attributes':{'class':_0x3f4cfc}}),_0x4ebd8f['on']('execute',()=>{this['fire'](_0x1e68e8,this['_model']['id']);}),_0x4ebd8f;}['_setupKeyboardNavigation'](){const _0x2ea1ab=this['element'];this['keystrokes']['listenTo'](_0x2ea1ab);for(const _0x3c012e of this['focusables'])this['focusTracker']['add'](_0x3c012e['element']),this['keystrokes']['listenTo'](_0x3c012e['element']);this['keystrokes']['set']('enter',(_0xb6f22,_0xdd43dd)=>{_0x2ea1ab===_0xb6f22['target']&&(this['focusCycler']['focusFirst'](),_0xdd43dd());}),this['keystrokes']['set']('esc',(_0x524e0b,_0x25ed60)=>{_0x2ea1ab!==_0x524e0b['target']&&(this['focus'](),_0x25ed60());});}}class d extends _0x4e3ad1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5d9a93,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29ced0){super(_0x29ced0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f6f41=this['editor']['config'];_0x4f6f41['define']('trackChanges.SuggestionThreadView',fe),_0x4f6f41['define']('trackChanges.SuggestionView',we),_0x4f6f41['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f6f41['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f9613,_0x375dc0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x259f07,_0xdf84c]of this['_handleControllerBuffer']){const _0x2dbc2c=this['_suggestionToController']['has'](_0x259f07);_0x2dbc2c||_0xdf84c?_0x2dbc2c&&_0xdf84c&&this['_destroyController'](_0x259f07):this['_initializeController'](_0x259f07);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f9613,_0x375dc0);}['init'](){const _0x15ee71=this['editor'],_0x37947a=_0x15ee71['plugins']['get']('TrackChangesEditing'),_0x6857fb=_0x15ee71['plugins']['get']('Annotations'),_0x3e8325=_0x15ee71['plugins']['get']('EditorAnnotations'),_0x5a74b6=_0x15ee71['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3e8325['addSourceCollector'](()=>{const _0x1ca414=[];for(const [_0x37d5bf,_0x2f4fa9]of Array['from'](this['_suggestionToController'])){const _0x4c716f=_0x37d5bf['getAllAdjacentSuggestions'](),_0x36f34b=[];for(const _0x25798e of _0x4c716f){if(!_0x25798e['isInContent'])continue;if(_0x25798e['isMultiRange']){_0x36f34b['push'](..._0x25798e['getRanges']());continue;}const _0x53e8b8=_0x25798e['getFirstRange']();if(_0x36f34b['length']>0x0){const _0x1c9517=_0x36f34b[0x0]['getJoined'](_0x53e8b8);if(_0x1c9517){_0x36f34b[0x0]=_0x1c9517;continue;}}_0x36f34b['push'](_0x53e8b8);}_0x1ca414['push']([_0x2f4fa9['view'],_0x36f34b]);}return _0x1ca414;}),this['listenTo'](_0x37947a,'suggestionLoaded',(_0xf185ab,_0x223bab)=>{this['listenTo'](_0x223bab,'change:previous',(_0x38a36e,_0xcd8f82,_0x584568,_0x9588d0)=>{_0x223bab['isInContent']&&(null==_0x584568?(this['_updateController'](_0x9588d0['head']),this['_handleSuggestionControllerDelayed'](_0x223bab,!0x1)):(this['_updateController'](_0x584568['head']),null==_0x9588d0&&this['_handleSuggestionControllerDelayed'](_0x223bab,!0x0)));}),null!==_0x223bab['previous']?this['_updateController'](_0x223bab['head']):this['_handleSuggestionControllerDelayed'](_0x223bab,!0x1);}),this['listenTo'](_0x37947a,'suggestionUnloaded',(_0x4e0a24,_0x15a2d7,_0x139a76)=>{this['stopListening'](_0x15a2d7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x15a2d7),this['_suggestionToController']['has'](_0x15a2d7)&&this['_destroyController'](_0x15a2d7),_0x139a76&&this['_updateController'](_0x139a76['head']);}),this['listenTo'](_0x37947a,'suggestionChanged',(_0x970868,_0x3d2e82)=>{this['_updateController'](_0x3d2e82);}),this['listenTo'](_0x6857fb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5a74b6,'addComment',(_0x5d437c,{threadId:_0x4d6c32,isFromAdapter:_0x5bbe11})=>{if(_0x5bbe11||!_0x37947a['hasSuggestion'](_0x4d6c32))return;const _0x43699f=_0x37947a['getSuggestion'](_0x4d6c32);this['_suggestionToController']['get'](_0x43699f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9ee826=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f02f9;for(const _0xe6d472 in _0x9ee826){const _0xdb68b1=_0xe6d472,_0x39d5d9=_0x9ee826[_0xdb68b1];if('trackChangesLicenseKeyValid'==_0x39d5d9||'trackChangesLicenseKeyInvalid'==_0x39d5d9||'trackChangesLicenseKeyExpired'==_0x39d5d9||'trackChangesLicenseKeyDomainLimit'==_0x39d5d9||'trackChangesLicenseKeyNotAllowed'==_0x39d5d9||'trackChangesLicenseKeyEvaluationLimit'==_0x39d5d9||'trackChangesLicenseKeyTrialLimit'==_0x39d5d9||'trackChangesLicenseKeyUsageLimit'==_0x39d5d9){delete _0x9ee826[_0xdb68b1],_0x1f02f9=_0x39d5d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f02f9&&_0x9ee826['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f02f9&&_0x9ee826['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f02f9&&_0x9ee826['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f02f9&&_0x9ee826['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f02f9&&_0x9ee826['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1f02f9&&_0x9ee826['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f02f9&&_0x9ee826['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x6a5541=this['editor']['plugins']['get']('Annotations'),_0x691882=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51ab9f=Array['from'](_0x6a5541['activeAnnotations'],_0x41515a=>_0x41515a['innerView'])['filter'](_0x31dfd8=>this['_viewToController']['has'](_0x31dfd8)),_0x1ad0cd=[];for(const _0x288d59 of _0x51ab9f){const _0x579d4e=this['_viewToController']['get'](_0x288d59)['model']['getAllAdjacentSuggestions']();_0x1ad0cd['push'](..._0x579d4e['reduce']((_0x563077,_0x1fd5e5)=>[..._0x563077,..._0x1fd5e5['getMarkerNames']()],[]));}_0x691882['activeMarkers']=_0x1ad0cd;}['_addUIComponentsToFactory'](){const _0x2b1263=this['editor'],_0x2d98c1=_0x2b1263['locale'],_0x2abf51=c(_0x2d98c1,'Track\x20changes'),_0x4a0fd8=new _0xfad52a([{'type':'switchbutton','model':new _0x655b36({'withText':!0x0,'isToggleable':!0x0,'label':_0x2abf51,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x655b36({'withText':!0x0,'label':c(_0x2d98c1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x655b36({'withText':!0x0,'label':c(_0x2d98c1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x655b36({'withText':!0x0,'label':c(_0x2d98c1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x655b36({'withText':!0x0,'label':c(_0x2d98c1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2b1263['plugins']['has']('TrackChangesPreview')&&_0x4a0fd8['addMany']([{'type':'separator'},{'type':'button','model':new _0x655b36({'withText':!0x0,'label':c(_0x2d98c1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x59560e of _0x4a0fd8)if(ke(_0x59560e)){const _0x5dfc52=_0x2b1263['commands']['get'](_0x59560e['model']['commandName']);_0x59560e['model']['bind']('isOn','isEnabled')['to'](_0x5dfc52,'value','isEnabled');}_0x2b1263['ui']['componentFactory']['add']('trackChanges',_0x84d67a=>this['_createToolbarButton'](_0x84d67a,_0x4a0fd8,_0x2abf51)),_0x2b1263['ui']['componentFactory']['add']('menuBar:trackChanges',_0x534446=>this['_createMenuBarMenu'](_0x534446,_0x4a0fd8,_0x2abf51));}['_createToolbarButton'](_0x28390f,_0x143832,_0x159849){const _0x3900e3=_0x1264cb(_0x28390f,_0x11cad6),_0x55bbe3=this['editor']['commands']['get']('trackChanges');_0x3900e3['buttonView']['set']({'tooltip':_0x159849,'label':_0x159849,'icon':_0x3951e0}),_0x3900e3['buttonView']['bind']('isOn')['to'](_0x55bbe3,'value'),_0x3900e3['buttonView']['on']('execute',()=>{_0x55bbe3['execute'](),this['editor']['editing']['view']['focus']();}),_0x49430f(_0x3900e3,_0x143832,{'role':'menu'});const _0x5992fd=[];for(const _0x4c51cf of _0x143832)ke(_0x4c51cf)&&_0x5992fd['push'](this['editor']['commands']['get'](_0x4c51cf['model']['commandName']));const _0x2d4bc9=_0x3900e3['buttonView'];return _0x2d4bc9['actionView']['unbind']('isEnabled'),_0x2d4bc9['arrowView']['unbind']('isEnabled'),_0x2d4bc9['actionView']['bind']('isEnabled')['to'](_0x55bbe3,'isEnabled'),_0x2d4bc9['arrowView']['bind']('isEnabled')['toMany'](_0x5992fd,'isEnabled',(..._0x5cfe1a)=>_0x5cfe1a['some'](_0x482ebd=>_0x482ebd)),_0x3900e3['on']('execute',_0x5d2ab6=>{this['editor']['execute'](_0x5d2ab6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3900e3;}['_createMenuBarMenu'](_0x3bf661,_0x18693b,_0x5bc92d){const _0x3e0eab=new _0x52ed87(_0x3bf661),_0x1dcb36=this['editor']['commands']['get']('trackChanges');_0x3e0eab['buttonView']['set']({'label':_0x5bc92d,'icon':_0x3951e0});const _0x5a9589=new _0x119352(_0x3bf661);for(const _0x22f3b4 of _0x18693b){if('separator'==_0x22f3b4['type']){_0x5a9589['items']['add'](new _0x3df2d9(_0x3bf661));continue;}const _0x26e8cf=new _0x54e9d3(_0x3bf661,_0x3e0eab),_0x1160aa=new _0x2a1ad4(_0x3bf661),_0x4f429a=_0x22f3b4['model'];_0x1160aa['bind'](...Object['keys'](_0x4f429a))['to'](_0x4f429a),_0x1160aa['delegate']('execute')['to'](_0x3e0eab),_0x1160aa['on']('execute',()=>{this['editor']['execute'](_0x4f429a['commandName']),this['editor']['editing']['view']['focus']();}),_0x26e8cf['children']['add'](_0x1160aa),_0x5a9589['items']['add'](_0x26e8cf);}return _0x3e0eab['bind']('isEnabled')['to'](_0x1dcb36,'isEnabled'),_0x3e0eab['panelView']['children']['add'](_0x5a9589),_0x3e0eab;}['_initializeController'](_0x734948){const _0x4f40b3=this['editor'],_0x27e90e=_0x4f40b3['config'],_0x4052df=_0x4f40b3['plugins']['get']('Annotations'),_0x573162=_0x4f40b3['plugins']['get']('CommentsRepository'),_0x4f14d7=_0x4f40b3['plugins']['get']('EditorAnnotations'),_0x4a73b9=_0x4f40b3['plugins']['get'](_0x5d9a93)['me'],_0x5bda97=_0x27e90e['get']('trackChanges')['SuggestionThreadView'],_0x2c3c2a=_0x27e90e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x459d6f,CommentThreadInputView:_0xdcb4c7}=_0x4f40b3['plugins']['get']('CommentsUI');let _0x4ab8b0,_0x20894d,_0x2844d1;this['_annotationViews']['has'](_0x734948['id'])?(_0x20894d=this['_annotationViews']['get'](_0x734948['id']),_0x4ab8b0=_0x20894d['mainView']):(_0x4ab8b0=new _0x5bda97(_0x4f40b3['locale'],_0x734948,_0x4a73b9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x27e90e['get']('comments.editorConfig'),'licenseKey':_0x27e90e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x27e90e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27e90e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27e90e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x171b53(_0x27e90e['get']('locale')),'CommentView':_0x27e90e['get']('comments')['CommentView'],'CommentsListView':_0x459d6f,'CommentThreadInputView':_0xdcb4c7,'SuggestionView':_0x2c3c2a}),_0x4ab8b0['suggestionView']['acceptButton']['on']('execute',()=>{_0x4f40b3['editing']['view']['focus']();}),_0x4ab8b0['suggestionView']['discardButton']['on']('execute',()=>{_0x4f40b3['editing']['view']['focus']();}),_0x20894d=_0x4052df['createAnnotationView'](this['editor']['locale'],_0x4ab8b0),_0x20894d['bind']('isDirty')['to'](_0x4ab8b0,'isDirty'),_0x20894d['bind']('length')['to'](_0x4ab8b0),_0x20894d['bind']('type')['to'](_0x4ab8b0,'type',_0x92c935=>'suggestion-'+_0x92c935),_0x4ab8b0['on']('escape',()=>{_0x2844d1['fire']('escape');}),this['_annotationViews']['set'](_0x734948['id'],_0x20894d));const _0x7c0b9d=_0x573162['createCommentThreadController'](_0x734948['commentThread'],_0x4ab8b0),_0x350e70=new pe(_0x4f40b3,_0x734948,_0x4ab8b0,_0x7c0b9d),_0x8ff169=_0x734948['getAllAdjacentSuggestions']()['filter'](_0x54dddf=>_0x54dddf['isInContent']);_0x4ab8b0['descriptionParts']=_0x4f40b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8ff169),this['_suggestionToController']['set'](_0x734948,_0x350e70),this['_viewToController']['set'](_0x4ab8b0,_0x350e70),_0x2844d1=_0x4052df['createAnnotation']({'view':_0x20894d,'target':()=>{const _0x356acf=[],_0x1b885a=_0x734948['getAllAdjacentSuggestions']()['filter'](_0x495a65=>_0x495a65['isInContent']);for(const _0x152995 of _0x1b885a)_0x356acf['push'](..._0x152995['getMarkers']());return _0x4ecaed(_0x4f40b3['editing'],_0x356acf);},'type':()=>'suggestion-'+_0x350e70['view']['type']}),_0x573162['_bindAnnotationToEditors'](_0x4ab8b0,_0x2844d1),_0x4052df['add'](_0x2844d1),_0x4f14d7['registerAnnotation'](_0x2844d1);}['_destroyController'](_0x144e81){const _0x521c6b=this['editor']['plugins']['get']('CommentsRepository'),_0x54be9b=this['editor']['plugins']['get']('Annotations'),_0x450697=this['_suggestionToController']['get'](_0x144e81),_0x4c481e=_0x450697['view'],_0x47bc93=_0x54be9b['getByInnerView'](_0x4c481e);_0x521c6b['_unbindEditors'](_0x4c481e),_0x47bc93&&_0x54be9b['remove'](_0x47bc93),this['_suggestionToController']['delete'](_0x144e81),this['_viewToController']['delete'](_0x4c481e),_0x450697['destroy']();}['_updateController'](_0x1a00ea){if(!_0x1a00ea['isInContent']||!this['_suggestionToController']['has'](_0x1a00ea))return;const _0xddac5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x327bd4=this['_suggestionToController']['get'](_0x1a00ea),_0x1208f9=_0x1a00ea['getAllAdjacentSuggestions']();_0x327bd4['view']['descriptionParts']=_0xddac5f['descriptionFactory']['getDescriptions'](_0x1208f9);}['destroy'](){for(const _0x33a30e of this['_suggestionToController']['keys']())this['_destroyController'](_0x33a30e);for(const _0x48143d of this['_annotationViews']['values']())_0x48143d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4441ef){return'model'in _0x4441ef;}class k extends _0x4e3ad1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4cedcc){this['editor']['plugins']['get'](p)['adapter']=_0x4cedcc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x248f29){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x248f29);}['getSuggestions']({skipNotAttached:_0x1005e6=!0x1,toJSON:_0x3a1b9d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1005e6,'toJSON':_0x3a1b9d});}['getSuggestion'](_0x4aa960){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4aa960);}}const w=['Pagination'];class T extends _0x4e3ad1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x50d18e=this['editor'];if(_0x50d18e['config']['define']('trackChangesData.editorCreator',_0x5b3d05=>{const _0x2575ab=_0x50d18e['model']['document']['getRootNames']()['reduce']((_0x19b352,_0x18f1d0)=>(_0x19b352[_0x18f1d0]='',_0x19b352),{});return _0x50d18e['constructor']['create'](_0x2575ab,_0x5b3d05);}),'function'!=typeof _0x50d18e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1baf5e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x225e64){return N(this['editor'],!0x0,_0x225e64);}['getDataWithDiscardedSuggestions'](_0x23e2ba){return N(this['editor'],!0x1,_0x23e2ba);}}class D extends _0x4e3ad1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x534c81){function _0x2bf737(_0x3b37eb){return _0x3b37eb['map'](_0x2bcf55=>String['fromCharCode'](_0x2bcf55))['join']('');}super(_0x534c81),this['result']='end',_0x534c81[_0x2bf737([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bf737([0x76,0x69,0x65,0x77])][_0x2bf737([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bf737([0x61,0x75,0x74,0x6f]),_0x534c81[_0x2bf737([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2bf737([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bf737([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2bf737([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2bf737([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3abdca){return void 0x0!==_0x3abdca['getRootsAttributes'];}async function N(_0x489dd2,_0x452d52,_0x552f63){const _0x4a0f1e=_0x543d66(_0x489dd2,w);_0x4a0f1e['plugins']['push'](p,D),_0x4a0f1e['rootsAttributes']=Fe(_0x489dd2)?_0x489dd2['getRootsAttributes']():void 0x0;const _0x8f108=document['createDocumentFragment'](),_0x1ee72b=_0x489dd2['config']['get']('trackChangesData')['editorCreator'],_0x54948a=await _0x1ee72b(_0x4a0f1e,()=>function(_0x1af11e){const _0x485ea7=document['createElement']('div');return _0x1af11e['appendChild'](_0x485ea7),_0x485ea7;}(_0x8f108));!function(_0x17a26f,_0x3887a5){const _0x5af8da=_0x17a26f['model']['document']['getRootNames']()['reduce']((_0x1de0ff,_0x2e9ffe)=>(_0x1de0ff[_0x2e9ffe]=_0x17a26f['data']['get']({'rootName':_0x2e9ffe}),_0x1de0ff),{}),_0x2d886f=_0x17a26f['plugins']['get']('Users')['users']['map'](_0x19497e=>({'id':_0x19497e['id'],'name':_0x19497e['name']})),_0x430146=_0x17a26f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e359c=_0x17a26f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x488f78=_0x3887a5['plugins']['get']('Users'),_0x236f2f=_0x3887a5['plugins']['get']('TrackChangesEditing'),_0x23476c=_0x3887a5['plugins']['get']('CommentsRepository');for(const _0x5a64c8 of _0x23476c['getCommentThreads']())_0x5a64c8['remove']();for(const _0x3e9764 of _0x2d886f)_0x488f78['getUser'](_0x3e9764['id'])||_0x488f78['addUser'](_0x3e9764);_0x488f78['me']||_0x488f78['useAnonymousUser']();for(const _0x4da3cb of _0x5e359c)_0x23476c['addCommentThread'](_0x4da3cb);for(const _0x845c8c of _0x430146)_0x236f2f['addSuggestionData'](_0x845c8c);_0x3887a5['data']['set'](_0x5af8da);}(_0x489dd2,_0x54948a),_0x54948a['execute'](_0x452d52?'acceptAllSuggestions':'discardAllSuggestions');const _0x4fd21c=Fe(_0x54948a)?_0x54948a['getFullData'](_0x552f63):_0x54948a['data']['get'](_0x552f63);return await _0x54948a['destroy'](),_0x4fd21c;}class Me extends _0x45d309{['options'];constructor(_0xfcbf3f,_0xd6f82e){super(_0xfcbf3f),this['options']=_0xd6f82e,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'](_0x3ed5cf,_0x2742d0){if(!this['element'])return;const _0x2e6e16=[];for(const [_0x56ff81,_0x4eb16e]of _0x3ed5cf){const _0x233155=document['createElement']('div');_0x233155['setAttribute']('data-ck-root-name',_0x56ff81),_0x233155['className']=_0x4eb16e['classes']+'\x20ck-track-changes-preview__root-container',_0x233155['innerHTML']=_0x4eb16e['content'],_0x2e6e16['push'](_0x233155);}_0x2742d0(this['element'],_0x2e6e16),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x14d04e{constructor(_0x2ceed2){super(_0x2ceed2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x879a1f=this['editor'],_0x454c51=_0x879a1f['locale'],_0x27ad4c=_0x879a1f['plugins']['get']('Dialog');let _0x521798;const _0x4f307b=function(_0x19e786){const _0x395b4d={};if('editables'in _0x19e786['ui']['view']){for(const [_0x5129b0,_0x5dfabd]of Object['entries'](_0x19e786['ui']['view']['editables']))_0x395b4d[_0x5129b0]=_0x5dfabd['element'];}else _0x395b4d[_0x19e786['model']['document']['getRootNames']()[0x0]]=_0x19e786['ui']['view']['editable']['element'];return _0x395b4d;}(_0x879a1f),_0x50239f=function(_0x52df80){let _0x443792=0x0;for(const _0x21579c of Object['values'](_0x52df80))_0x443792=Math['max'](_0x443792,_0x21579c['getBoundingClientRect']()['width']);let _0x2aada9=0x0;for(const _0x50d380 of Object['values'](_0x52df80))_0x2aada9+=_0x50d380['getBoundingClientRect']()['height'];const _0x4c314e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x215f88=Math['min'](_0x2aada9,_0x4c314e);return{'width':_0x443792,'height':_0x215f88};}(_0x4f307b);_0x27ad4c['show']({'id':'finalContentPreview','title':c(_0x454c51,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x454c51,{'dialogRects':_0x50239f}),'onHide':()=>{_0x521798['detachFromDom']();},'onShow':()=>{_0x879a1f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4c1822=>{const _0x4e43cb=this['_standarizeRootsData'](_0x4c1822,_0x879a1f,_0x4f307b);_0x27ad4c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4e43cb,_0x879a1f['config']['get']('trackChanges.preview.renderFunction'));}),_0x521798=new _0x565fa4(_0x454c51,[_0x27ad4c['view']]),_0x521798['attachToDom'](),_0x521798['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x879a1f['once']('destroy',()=>{_0x521798['detachFromDom']();});const _0x5e3744=_0x27ad4c['view']['headerView']['class'];_0x27ad4c['view']['headerView']['class']=_0x5e3744?_0x5e3744+'\x20ck-reset_all':'ck-reset_all',_0x27ad4c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x27ad4c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xbbf773=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1004c1=_0xbbf773['previewMode'],_0x2aea2e={};if('$labels'===_0x1004c1){for(const _0x13d39b of _0xbbf773['getMergeFieldsIds']())_0x2aea2e[_0x13d39b]=_0xbbf773['getLabel'](_0x13d39b)||_0x13d39b;}else{const _0x32a669='$defaultValues'===_0x1004c1?_0xbbf773['getDefaultValues']():_0xbbf773['getDataSetValues'](_0x1004c1,!0x0);for(const _0x5c2f16 of Object['entries'](_0x32a669)){const [_0x17b25a,_0x864249]=_0x5c2f16;_0x2aea2e[_0x17b25a]=null!==_0x864249?_0x864249:_0xbbf773['getLabel'](_0x17b25a)||_0x17b25a;}}return{'mergeFieldsData':_0x2aea2e};}['_standarizeRootsData'](_0x293e3b,_0x4f7571,_0x4ca72b){let _0x12a284;if('string'==typeof _0x293e3b){const _0x4efea8=_0x4f7571['model']['document']['getRootNames']()[0x0];_0x12a284={[_0x4efea8]:_0x293e3b};}else _0x12a284=_0x293e3b;const _0x2e631c=this['_fixMediaEmbeds'](_0x12a284,_0x4f7571),_0x8873d3=function(_0x2464e6,_0x13029b){for(const [_0x389adb,_0x123c07]of _0x2464e6)_0x123c07['classes']=_0x13029b[_0x389adb]['classList']['value']['replace']('ck-focused','');return _0x2464e6;}(this['_sortRoots'](_0x4f7571)['reduce']((_0x23a96b,_0x1c891b)=>(_0x23a96b['push']([_0x1c891b,{'content':_0x2e631c[_0x1c891b],'classes':''}]),_0x23a96b),[]),_0x4ca72b);return _0x8873d3;}['_fixMediaEmbeds'](_0x33682a,_0x2f302f){if(!_0x2f302f['plugins']['has']('MediaEmbedEditing'))return _0x33682a;const _0x52374a=_0x2f302f['plugins']['get']('MediaEmbedEditing');for(const [_0x34185a,_0x70aa1c]of Object['entries'](_0x33682a)){const _0xcaf341=document['createElement']('div');_0xcaf341['innerHTML']=_0x70aa1c,(_0xcaf341['querySelectorAll']('figure.media')['forEach'](_0x414d3b=>{const _0x5cb7c1=_0x414d3b['querySelector']('oembed');if(_0x5cb7c1){const _0x5e9563=_0x5cb7c1['getAttribute']('url');if(_0x5e9563){const _0x447bd1=_0x52374a['registry']['getMediaViewElement'](new _0x5511c1(_0x2f302f['editing']['view']['document']),_0x5e9563,{'elementName':'','renderForEditingView':!0x0}),_0x472a28=document['createElement']('div');_0x472a28['classList']['add']('ck-media__wrapper'),_0x447bd1['render'](_0x472a28,_0x2f302f['editing']['view']['domConverter']),_0x5cb7c1['replaceWith'](_0x472a28);}}}),_0x33682a[_0x34185a]=_0xcaf341['innerHTML']);}return _0x33682a;}['_sortRoots'](_0x489549){if(!function(_0x367c07){return void 0x0!==_0x367c07['getRootsAttributes'];}(_0x489549))return _0x489549['model']['document']['getRootNames']();const _0x5dbb7d=[],_0x507561=new Map();for(const _0x17f1b2 of _0x489549['model']['document']['getRootNames']()){const _0x1f4f67=_0x489549['editing']['view']['getDomRoot'](_0x17f1b2)['getClientRects']()['item'](0x0);_0x5dbb7d['push'](_0x17f1b2),_0x507561['set'](_0x17f1b2,_0x1f4f67);}return _0x5dbb7d['sort']((_0x27db03,_0x19ff16)=>{const _0x1ec462=_0x507561['get'](_0x27db03),_0x183d95=_0x507561['get'](_0x19ff16);return _0x1ec462['y']-_0x183d95['y']||_0x1ec462['x']-_0x183d95['x'];}),_0x5dbb7d;}}class te extends _0x4e3ad1{static get['requires'](){return[T,_0x12a9db];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50517b){super(_0x50517b),_0x50517b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x50517b['config']['define']('trackChanges.preview.renderFunction',(_0x3e87f2,_0x5ae6f4)=>{for(const _0x48c496 of _0x5ae6f4)_0x3e87f2['appendChild'](_0x48c496);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};