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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4978c9,Plugin as _0x1e29df,PendingActions as _0x529ab7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5b6dee,ObservableMixin as _0x1e4549,uid as _0x204c92,priorities as _0x3313a5,insertToPriorityArray as _0x20e239,toArray as _0x41eeea,logWarning as _0x55ad61,getEnvKeystrokeText as _0x497efb,FocusTracker as _0x26c9e5,KeystrokeHandler as _0x568b49,Collection as _0x2b81f7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x232e96,IconCancel as _0x594baf,IconTrackChanges as _0xb76f22}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5f15e5,View as _0x506fee,ViewCollection as _0x5c7815,FocusCycler as _0x2f3d9f,ViewModel as _0x373ca4,createDropdown as _0x2493c0,SplitButtonView as _0x29d254,addListToDropdown as _0x2b9662,MenuBarMenuView as _0x5b5f6b,MenuBarMenuListView as _0x59a58c,ListSeparatorView as _0x336232,MenuBarMenuListItemView as _0x5f0500,MenuBarMenuListItemButtonView as _0x47ac87,BodyCollection as _0x3db096,Dialog as _0x1fc3e0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x29e23d,hashObject as _0x4dad08,surroundingMarkersDetector as _0x61a825,FOCUS_ANNOTATION_KEYSTROKE as _0x4025e9,AriaDescriptionView as _0x228a34,setupThreadKeyboardNavigation as _0xc190f5,trimHtml as ti,UserView as _0x29cbe4,LateFocusButtonView as _0x4469ca,getDateTimeFormatter as _0x204928,getAllMarkersDomElementsSorted as _0x232348,sanitizeEditorConfig as _0x54ac84}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35a96d,LiveRange as _0x2229f7,LivePosition as _0x544855,DowncastWriter as _0x18c607}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x9b7e2e,toWidget as _0x41b610}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x297ea3,set as _0x3c3295,isEqual as _0x4db2af,unset as _0x290f26,omit as Ft}from'es-toolkit/compat';import{Delete as _0x367239,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa0b41c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x32a7cf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4978c9{['_enabledCommands'];constructor(_0x1bddc4,_0xd6df1d){super(_0x1bddc4),this['_enabledCommands']=_0xd6df1d,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 _0x1a4ac8 of this['editor']['commands']['commands']())_0x1a4ac8['affectsData']&&!this['_enabledCommands']['has'](_0x1a4ac8)&&_0x1a4ac8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5991f8 of this['editor']['commands']['commands']())_0x5991f8['affectsData']&&!this['_enabledCommands']['has'](_0x5991f8)&&_0x5991f8['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x4978c9{['_suggestions'];constructor(_0x101958,_0x141f68){super(_0x101958),this['_suggestions']=_0x141f68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bac76){const _0x2176a2=this['_suggestions']['get'](_0x3bac76);if(!_0x2176a2)throw new _0x5b6dee('track-changes-accept-suggestion-not-found',this);const _0x3881ba=_0x2176a2['getRanges']();this['editor']['model']['canEditAt'](_0x3881ba)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2176a2);}}class O extends _0x4978c9{['_suggestions'];constructor(_0x51ff8c,_0x53a75f){super(_0x51ff8c),this['_suggestions']=_0x53a75f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58b776){const _0x3859cc=this['_suggestions']['get'](_0x58b776);if(!_0x3859cc)throw new _0x5b6dee('track-changes-discard-suggestion-not-found',this);const _0x2edd2f=_0x3859cc['getRanges']();this['editor']['model']['canEditAt'](_0x2edd2f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3859cc);}}function ls(_0x9f56ca,_0x455fac){let _0x34bfae='';return _0x34bfae+=_0x9f56ca['split']('*')['map']((_0xaaf528,_0x1ef812)=>_0x1ef812%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xaaf528)+'</span>':nn(_0xaaf528))['join'](''),_0x455fac&&(_0x34bfae+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x455fac['value']+'\x22\x20title=\x22'+_0x455fac['title']+'\x22></span>'),_0x34bfae;}function nn(_0x246015){const _0x4666b3=document['createElement']('span');return _0x4666b3['innerText']=_0x246015,_0x4666b3['innerHTML'];}function ts(_0x65d0af){return _0x65d0af['sort']((_0x4cd5c1,_0x514ddb)=>'deletion'==_0x4cd5c1['type']&&'deletion'!=_0x514ddb['type']?-0x1:'deletion'!=_0x4cd5c1['type']&&'deletion'==_0x514ddb['type']?0x1:0x0);}function to(_0x40e935,_0x5afa3c){let _0x3a7f60,_0x4b2c93=0x0;const _0x229b77=[],_0x5eb092=_0x5afa3c['schema'];for(;_0x4b2c93<_0x40e935['length'];){const _0x4578ff=_0x40e935[_0x4b2c93],_0xa19ff0=_0x40e935[_0x4b2c93+0x1];_0x3a7f60||(_0x3a7f60=_0x5afa3c['createPositionBefore'](_0x4578ff)),on(_0x5afa3c,_0x4578ff,_0xa19ff0)||(_0x229b77['push'](_0x5afa3c['createRange'](_0x3a7f60,_0x5eb092['isObject'](_0x4578ff)?_0x5afa3c['createPositionAfter'](_0x4578ff):_0x5afa3c['createPositionAt'](_0x4578ff,'end'))),_0x3a7f60=null),_0x4b2c93++;}return _0x229b77;}function on(_0x29387d,_0x4298d1,_0x5c8eaf){if(!_0x5c8eaf)return!0x1;const _0x9bcb12=_0x29387d['createPositionAfter'](_0x4298d1),_0xeb64d4=_0x29387d['createPositionBefore'](_0x5c8eaf);return _0x9bcb12['isTouching'](_0xeb64d4);}function rs(_0x290685,_0x2b74a2,_0x3dfc24){for(;_0x3dfc24['length'];){const _0x2b8ef1=_0x3dfc24['splice'](0x0,0x64);_0x290685['change'](()=>{for(const _0x3dfd88 of _0x2b8ef1)_0x3dfd88['isInContent']&&_0x2b74a2['execute'](_0x3dfd88['id']);});}}class R extends _0x4978c9{['_command'];['_suggestions'];constructor(_0x6e9108,_0x4777e1,_0x57915b){super(_0x6e9108),this['_command']=_0x4777e1,this['_suggestions']=_0x57915b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x524b58=Array['from'](this['_suggestions']['values']())['some'](_0x2a5d92=>_0x2a5d92['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x524b58;}['execute'](){const _0x509f49=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1b4424 of _0x509f49){const _0x328df9=_0x1b4424['getRanges']();if(!this['editor']['model']['canEditAt'](_0x328df9))return;}rs(this['editor']['model'],this['_command'],_0x509f49);}}class E extends _0x4978c9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x392600,_0x352bca,_0x576fed){super(_0x392600),this['_command']=_0x352bca,this['_suggestions']=_0x576fed,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d339c=this['editor']['model']['document']['selection'],_0x254490=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56f805,_0x278f34){const _0x3806ad=Array['from'](_0x56f805['getRanges']()),_0x5779e1=new Set();for(const _0x382601 of _0x278f34)if(_0x382601['isInContent']){for(const _0xa9bd46 of _0x3806ad)for(const _0x3d786d of _0x382601['getRanges']())(_0xa9bd46['isIntersecting'](_0x3d786d)||_0x56f805['isCollapsed']&&!_0x382601['isMultiRange']&&_0x382601['next']&&_0x3d786d['end']['isTouching'](_0xa9bd46['start']))&&_0x5779e1['add'](_0x382601);}return _0x5779e1;}(_0x1d339c,_0x254490),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x457779=ts(Array['from'](this['_selectedSuggestions']));for(const _0xbe3f02 of _0x457779){const _0x301df0=_0xbe3f02['getRanges']();if(!this['editor']['model']['canEditAt'](_0x301df0))return;}rs(this['editor']['model'],this['_command'],_0x457779);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x1e4549(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4af9b3,_0x497c24){super(),this['id']=_0x497c24['id'],this['type']=_0x497c24['type'],this['subType']=_0x497c24['subType']||null,this['author']=_0x497c24['author'],this['creator']=_0x497c24['creator']||_0x497c24['author'],this['isExternal']=Boolean(_0x497c24['attributes']&&_0x497c24['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x497c24['originalSuggestionId']||null,this['_model']=_0x4af9b3,this['_onAccept']=_0x497c24['onAccept'],this['_onDiscard']=_0x497c24['onDiscard'],this['_onAttributesChange']=_0x497c24['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x497c24['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 _0x29e59b=this;for(;_0x29e59b['previous'];)_0x29e59b=_0x29e59b['previous'];return _0x29e59b;}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'](_0x2ce277){this['_markerNames']['add'](_0x2ce277);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1730b0=>this['_model']['markers']['get'](_0x1730b0))['filter'](_0x40fa98=>_0x40fa98);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1345b3=>{for(const _0x2537dc of this['getMarkers']())_0x1345b3['removeMarker'](_0x2537dc);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d4ac0){this['_model']['change'](_0x8156b7=>{_0x8156b7['removeMarker'](_0x5d4ac0);}),this['_markerNames']['delete'](_0x5d4ac0);}['addRange'](_0x1c4bd8){const _0x1b9906='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1b9906),this['_model']['change'](_0x3000d9=>{_0x3000d9['addMarker'](_0x1b9906,{'range':_0x1c4bd8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x56ba3e){for(const _0x2863b6 of this['getRanges']())if(_0x2863b6['isIntersecting'](_0x56ba3e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ee73b=>_0x4ee73b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x201254,_0xab1c90)=>[..._0x201254,..._0xab1c90['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x366893=this['getRanges']();if(0x1!=_0x366893['length'])return null;const _0x4bbafc=_0x366893[0x0],_0x5292f2=_0x4bbafc['start']['nodeAfter'],_0x3f238c=_0x4bbafc['end']['nodeBefore'];return _0x5292f2 instanceof _0x35a96d?_0x5292f2!=_0x3f238c?null:_0x5292f2: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 _0x1dc4c9=[];let _0x1b4aee=this['head'];for(;_0x1b4aee;)_0x1dc4c9['push'](_0x1b4aee),_0x1b4aee=_0x1b4aee['next'];return _0x1dc4c9;}['setAttribute'](_0x2ec5f3,_0x262822){const _0x2e0432=_0x297ea3(this['attributes']);_0x3c3295(_0x2e0432,_0x2ec5f3,_0x262822),_0x4db2af(_0x2e0432,this['attributes'])||(this['attributes']=_0x2e0432,this['_onAttributesChange'](_0x2e0432));}['removeAttribute'](_0xea5e0e){const _0x2a7445=_0x297ea3(this['attributes']);_0x290f26(_0x2a7445,_0xea5e0e),_0x4db2af(_0x2a7445,this['attributes'])||(this['attributes']=_0x2a7445,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 _0x204c92()['substr'](0x1,0x5);}}function c(_0x4fbeaf,_0x38606b,_0x34aa48){const _0x5de4a5=_0x4fbeaf['t'],t=_0x4fbeaf['t'];switch(_0x38606b){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',_0x34aa48);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x34aa48);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x34aa48);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x34aa48);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x34aa48);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',_0x34aa48);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x34aa48);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',_0x34aa48);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x34aa48);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x34aa48);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x34aa48);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x34aa48);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x34aa48);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x34aa48);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x34aa48);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x34aa48);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x34aa48);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x34aa48);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x34aa48);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x34aa48);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x34aa48);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x34aa48);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x34aa48);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x34aa48);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x34aa48);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'},_0x34aa48);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x34aa48);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x34aa48);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x34aa48);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x34aa48);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x34aa48);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x34aa48);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x34aa48);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'},_0x34aa48);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x34aa48);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x34aa48);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x34aa48);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x34aa48);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'},_0x34aa48);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x34aa48);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'},_0x34aa48);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'},_0x34aa48);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x34aa48);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'},_0x34aa48);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x34aa48);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'},_0x34aa48);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x34aa48);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x34aa48);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'},_0x34aa48);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x34aa48);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 _0x5de4a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x34aa48);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5de4a5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x34aa48);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x34aa48);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'},_0x34aa48);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'},_0x34aa48);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'},_0x34aa48);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x38606b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4fcdf9,_0x5a0581){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4fcdf9,this['_locale']=_0x5a0581;}['getDescriptions'](_0x1ae2d4){const _0x5bfb86=[],_0x5cde26=new Set(),_0x19b6d4=new Set();for(let _0xe9f68d=0x0;_0xe9f68d<_0x1ae2d4['length'];_0xe9f68d++){const _0x53fb50=_0x1ae2d4[_0xe9f68d];if(!_0x53fb50['isInContent'])continue;const _0x58397d=this['_handleCustomCallbackDescription'](_0x53fb50);if(_0x58397d){if(null!=_0x53fb50['subType']){if(_0x5cde26['has'](_0x53fb50['subType']))continue;_0x5cde26['add'](_0x53fb50['subType']);}_0x5bfb86['push'](_0x58397d);}else{if('attribute'!=_0x53fb50['type'])'insertion'!=_0x53fb50['type']&&'deletion'!=_0x53fb50['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5bfb86,_0x53fb50,_0x1ae2d4[_0xe9f68d+0x1]);else{const _0x380728=_0x53fb50['data']['key'];if(_0x19b6d4['has'](_0x380728))continue;_0x19b6d4['add'](_0x53fb50['data']['key']),_0x380728==u?this['_handleRenameSuggestionDescription'](_0x5bfb86,_0x53fb50):this['_handleAttributeSuggestionDescription'](_0x5bfb86,_0x53fb50);}}}return this['_resolveDescriptionItems'](_0x5bfb86);}['registerDescriptionCallback'](_0x29b8d2){this['_customCallbacks']['push'](_0x29b8d2);}['registerElementLabel'](_0x4c837e,_0x329757,_0x181ca3=_0x3313a5['normal']){'function'==typeof _0x4c837e?_0x20e239(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4c837e,'label':_0x329757,'priority':_0x181ca3}):this['_itemLabels']['set'](_0x4c837e,_0x329757);}['registerAttributeLabel'](_0x23226,_0x338795){this['_attributeLabels']['set'](_0x23226,_0x338795);}['getItemLabel'](_0x5ebe6d,_0x345e92=0x1){let _0x188d9c;for(const _0x4674df of this['_itemLabelsCallbacks'])if(_0x4674df['matchingCallback'](_0x5ebe6d)){_0x188d9c=_0x4674df['label'];break;}return _0x188d9c||(_0x188d9c=this['_itemLabels']['get'](_0x5ebe6d['name'])),_0x188d9c?_0x188d9c(_0x345e92):0x1!==_0x345e92?_0x345e92+'\x20'+_0x5ebe6d['name']+'s':''+_0x5ebe6d['name'];}['_addDescriptionItems'](_0x31466d,_0x590387){const _0x1e5f90=_0x590387['getFirstRange']()['getWalker'](),_0xe06efe='insertion'==_0x590387['type']?'add':'remove';for(const _0x63b006 of _0x1e5f90){const _0x24e629=_0x63b006['item'],_0xb82478=_0x31466d[_0x31466d['length']-0x1];if(_0x24e629['is']('$textProxy'))_0xb82478&&_0xb82478['type']['indexOf']('Container')>-0x1&&_0x31466d['pop'](),_0xb82478&&'text'==_0xb82478['type']?_0xb82478[_0xe06efe]+=_0x24e629['data']:_0x31466d['push']({'type':'text','add':'add'==_0xe06efe?_0x24e629['data']:'','remove':'remove'==_0xe06efe?_0x24e629['data']:''});else{if(this['_schema']['isObject'](_0x24e629)){const _0x3e566c=_0x24e629;if(_0xb82478&&_0xb82478['type']['indexOf']('Container')>-0x1&&_0x31466d['pop'](),'elementEnd'==_0x63b006['type'])continue;_0xb82478&&_0xb82478['type']==_0xe06efe+'Object'&&_0xb82478['element']['name']==_0x3e566c['name']?_0xb82478['quantity']++:_0x31466d['push']({'type':_0xe06efe+'Object','element':_0x3e566c,'quantity':0x1}),_0x1e5f90['skip'](_0x2fbb1f=>!('elementEnd'==_0x2fbb1f['type']&&_0x2fbb1f['item']==_0x24e629));}else{if(this['_schema']['checkChild'](_0x24e629,'$text')||_0x24e629['is']('element','softBreak')){const _0x1f486a=_0x24e629;if('add'==_0xe06efe&&'elementStart'==_0x63b006['type']||'remove'==_0xe06efe&&'elementEnd'==_0x63b006['type'])continue;if(_0xb82478&&-0x1==_0xb82478['type']['indexOf']('Container')){'text'==_0xb82478['type']&&(_0xb82478[_0xe06efe]+='\x0a');continue;}let _0x50cf15;if(_0x50cf15='add'==_0xe06efe?_0x1f486a['nextSibling']&&!this['_schema']['isObject'](_0x1f486a['nextSibling'])?_0x1f486a['nextSibling']:null:_0x1f486a['previousSibling']&&!this['_schema']['isObject'](_0x1f486a['previousSibling'])?_0x1f486a['previousSibling']:null,_0x1f486a['isEmpty']||_0x50cf15&&_0x50cf15['isEmpty']){const _0xbae543=_0x50cf15&&_0x50cf15['isEmpty']?_0x50cf15:_0x1f486a;_0xb82478&&_0xb82478['type']==_0xe06efe+'EmptyContainer'&&_0xb82478['element']['name']==_0xbae543['name']?_0xb82478['quantity']++:_0x31466d['push']({'type':_0xe06efe+'EmptyContainer','element':_0xbae543,'quantity':0x1});}else _0x31466d['push']({'type':_0xe06efe+'Container','element':_0x1f486a});}}}}}['_resolveDescriptionItems'](_0x22c875){const _0x5a45e4=this['_locale'],_0x2b8604=[],_0x58ea29=[],_0x2d54ba=[];for(const _0x3b3b0d of _0x22c875)switch(_0x3b3b0d['type']){case'text':if(_0x3b3b0d['add']=_0x3b3b0d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3b3b0d['remove']=_0x3b3b0d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3b3b0d['add']&&''!=_0x3b3b0d['remove']){_0x2b8604['push']({'type':'replace','content':c(_0x5a45e4,'REPLACE_TEXT',['\x22'+_0x3b3b0d['remove']+'\x22','\x22'+_0x3b3b0d['add']+'\x22'])});continue;}if(null!=_0x3b3b0d['add']['match'](/^ +$/)){_0x2b8604['push']({'type':'insertion','content':c(_0x5a45e4,'*Insert:*\x20%0',c(_0x5a45e4,'ELEMENT_SPACE',_0x3b3b0d['add']['length']))});continue;}if(null!=_0x3b3b0d['remove']['match'](/^ +$/)){_0x2b8604['push']({'type':'deletion','content':c(_0x5a45e4,'*Remove:*\x20%0',c(_0x5a45e4,'ELEMENT_SPACE',_0x3b3b0d['remove']['length']))});continue;}if(''!=_0x3b3b0d['add']){_0x2b8604['push']({'type':'insertion','content':c(_0x5a45e4,'*Insert:*\x20%0','\x22'+_0x3b3b0d['add']+'\x22')});continue;}_0x2b8604['push']({'type':'deletion','content':c(_0x5a45e4,'*Remove:*\x20%0','\x22'+_0x3b3b0d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b8604['push']({'type':'insertion','content':c(_0x5a45e4,'*Insert:*\x20%0',this['getItemLabel'](_0x3b3b0d['element'],_0x3b3b0d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b8604['push']({'type':'deletion','content':c(_0x5a45e4,'*Remove:*\x20%0',this['getItemLabel'](_0x3b3b0d['element'],_0x3b3b0d['quantity']))});continue;case'addContainer':_0x2b8604['push']({'type':'insertion','content':c(_0x5a45e4,'*Split:*\x20%0',this['getItemLabel'](_0x3b3b0d['element'],_0x3b3b0d['quantity']))});continue;case'removeContainer':_0x2b8604['push']({'type':'deletion','content':c(_0x5a45e4,'*Merge:*\x20%0',this['getItemLabel'](_0x3b3b0d['element'],_0x3b3b0d['quantity']))});continue;case'addFormat':_0x58ea29['push'](_0x3b3b0d['key']);continue;case'removeFormat':_0x2d54ba['push'](_0x3b3b0d['key']);continue;default:_0x2b8604['push'](_0x3b3b0d);}if(_0x58ea29['length']){const _0x240960=_0x58ea29['map'](_0x47b149=>this['_attributeLabels']['has'](_0x47b149)?this['_attributeLabels']['get'](_0x47b149):_0x47b149)['join'](',\x20');_0x2b8604['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x240960)});}if(_0x2d54ba['length']){const _0x18beef=_0x2d54ba['map'](_0x402cdd=>this['_attributeLabels']['has'](_0x402cdd)?this['_attributeLabels']['get'](_0x402cdd):_0x402cdd)['join'](',\x20');_0x2b8604['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x18beef)});}return _0x2b8604;}['_handleCustomCallbackDescription'](_0xb75332){for(const _0x44e58d of this['_customCallbacks']){const _0x315cb6=_0x44e58d(_0xb75332);if(_0x315cb6&&'type'in _0x315cb6)return _0x315cb6;}}['_handleAttributeSuggestionDescription'](_0x3e6be0,_0xa1df8){const _0x1fca2e=_0xa1df8['data'],_0x5f545b=void 0x0===_0x1fca2e['newValue']?'removeFormat':'addFormat';_0x3e6be0['push']({'type':_0x5f545b,'key':_0x1fca2e['key']});}['_handleRenameSuggestionDescription'](_0x47111c,_0x4f99bd){_0x47111c['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4f99bd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x507531,_0x1264a5,_0x30ef80){if(this['_addDescriptionItems'](_0x507531,_0x1264a5),_0x30ef80&&_0x30ef80['getFirstRange']()&&!_0x1264a5['getFirstRange']()['end']['isEqual'](_0x30ef80['getFirstRange']()['start'])){const _0x48ab92=_0x507531[_0x507531['length']-0x1],_0x4778c4='insertion'==_0x1264a5['type']?'add':'remove';_0x48ab92&&'text'==_0x48ab92['type']&&(_0x48ab92[_0x4778c4]+='\x0a');}}}class U extends _0x1e29df{['afterInit'](){const _0x1fd680=this['editor'],_0x351680=_0x1fd680['plugins']['get']('TrackChangesEditing');_0x1fd680['commands']['get']('showAIAssistant')&&_0x351680['enableCommand']('showAIAssistant');}}class V extends _0x1e29df{['afterInit'](){const _0x3faf57=this['editor'],_0x45e499=_0x3faf57['locale'];if(!_0x3faf57['plugins']['has']('AlignmentEditing'))return;const _0x470c6d=_0x3faf57['plugins']['get']('TrackChangesEditing');_0x470c6d['enableDefaultAttributesIntegration']('alignment'),_0x470c6d['registerBlockAttribute']('alignment'),_0x470c6d['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x45e499,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352a82=this['editor'],_0x2cc09f=_0x352a82['locale'];_0x352a82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a2a1=>{if('formatBlock'!=_0x10a2a1['type'])return;const {data:_0x3c0d6f}=_0x10a2a1;if(_0x3c0d6f&&'alignment'==_0x3c0d6f['commandName']){const _0x4dd69a=_0x3c0d6f['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2cc09f,'*Format:*\x20%0',function(_0x2850da){switch(_0x2850da){case'left':return c(_0x2cc09f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2cc09f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2cc09f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2cc09f,'FORMAT_JUSTIFY_TEXT');}}(_0x4dd69a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x1e29df{['afterInit'](){const _0x2d2d2d=this['editor'],_0x280861=_0x2d2d2d['plugins']['get']('TrackChangesEditing'),_0x499fe2=_0x2d2d2d['locale'];for(const _0x3ff071 of Zt){if(!_0x2d2d2d['plugins']['has'](_0x3ff071))continue;const _0x5e2490=_0x3ff071['slice'](0x0,-0x7)['toLowerCase'](),_0x311178='FORMAT_'+_0x5e2490['toUpperCase']();_0x280861['enableDefaultAttributesIntegration'](_0x5e2490),_0x280861['registerInlineAttribute'](_0x5e2490),_0x280861['descriptionFactory']['registerAttributeLabel'](_0x5e2490,c(_0x499fe2,_0x311178));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c7567=this['editor'],_0x8f0cc6=_0x4c7567['locale'],_0x5be302=_0x4c7567['plugins']['get']('TrackChangesEditing');function _0x159134(_0x116337,_0x168b1e){_0x5be302['descriptionFactory']['registerDescriptionCallback'](_0x2fe85a=>{if('formatInline'!=_0x2fe85a['type'])return;const {data:_0x2f0a80}=_0x2fe85a;return _0x2f0a80&&_0x2f0a80['commandName']===_0x116337?_0x2f0a80['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x8f0cc6,'*Format:*\x20%0',_0x168b1e)}:{'type':'format','content':c(_0x8f0cc6,'*Remove\x20format:*\x20%0',_0x168b1e)}:void 0x0;});}_0x159134('bold',c(_0x8f0cc6,'FORMAT_BOLD')),_0x159134('italic',c(_0x8f0cc6,'FORMAT_ITALIC')),_0x159134('underline',c(_0x8f0cc6,'FORMAT_UNDERLINE')),_0x159134('code',c(_0x8f0cc6,'FORMAT_CODE')),_0x159134('strikethrough',c(_0x8f0cc6,'FORMAT_STRIKETHROUGH')),_0x159134('subscript',c(_0x8f0cc6,'FORMAT_SUBSCRIPT')),_0x159134('superscript',c(_0x8f0cc6,'FORMAT_SUPERSCRIPT'));}}class G extends _0x1e29df{['afterInit'](){const _0x2be34c=this['editor'],_0x4f6f1b=_0x2be34c['locale'];if(!_0x2be34c['plugins']['has']('BlockQuoteEditing'))return;const _0x17e363=_0x2be34c['plugins']['get']('TrackChangesEditing'),_0x129c61=this['editor']['commands']['get']('blockQuote');_0x17e363['enableCommand']('blockQuote',(_0x56f796,_0xabe012={})=>{const _0x24a712=this['editor']['model']['document']['selection'],_0x442b12=_0xabe012&&void 0x0!==_0xabe012['forceValue']?_0xabe012['forceValue']:!_0x129c61['value'];let _0x5419c7=[];if(_0x442b12){const _0x33e9fc=Array['from'](_0x24a712['getSelectedBlocks']())['filter'](_0x3a521a=>oo(_0x3a521a)||function(_0xd6001f,_0x2a1b45){const _0x11639b=_0x2a1b45['checkChild'](_0xd6001f['parent'],'blockQuote'),_0xb430bb=_0x2a1b45['checkChild'](['$root','blockQuote'],_0xd6001f);return _0x11639b&&_0xb430bb;}(_0x3a521a,this['editor']['model']['schema']));_0x5419c7=to(_0x33e9fc,_0x2be34c['model']);}else{const _0x4af213=Array['from'](_0x24a712['getSelectedBlocks']())['filter'](_0x11a487=>oo(_0x11a487));_0x5419c7=to(_0x4af213,_0x2be34c['model']);}_0x2be34c['model']['change'](()=>{for(const _0x29831c of _0x5419c7)_0x17e363['markBlockFormat'](_0x29831c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x442b12}]});});}),_0x17e363['descriptionFactory']['registerDescriptionCallback'](_0xcfda60=>{const {data:_0x3d141b}=_0xcfda60;if(_0x3d141b&&'blockQuote'==_0x3d141b['commandName']){const _0x4d2949=c(_0x4f6f1b,'ELEMENT_BLOCK_QUOTE');return _0x3d141b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4f6f1b,'*Set\x20format:*\x20%0',_0x4d2949)}:{'type':'format','content':c(_0x4f6f1b,'*Remove\x20format:*\x20%0',_0x4d2949)};}});}}function oo(_0x2e6566){return'blockQuote'==_0x2e6566['parent']['name'];}class L extends _0x1e29df{['afterInit'](){const _0xf07fbf=this['editor'],_0x239de5=_0xf07fbf['locale'],_0x34a85e=_0xf07fbf['plugins']['get']('TrackChangesEditing');_0xf07fbf['plugins']['has']('BookmarkEditing')&&(_0x34a85e['enableCommand']('insertBookmark'),_0x34a85e['enableDefaultAttributesIntegration']('updateBookmark'),_0x34a85e['registerBlockAttribute']('bookmarkId'),_0x34a85e['descriptionFactory']['registerDescriptionCallback'](_0xf0badf=>{if('insertion'!=_0xf0badf['type']&&'deletion'!=_0xf0badf['type']&&'attribute'!=_0xf0badf['type'])return;const _0x24792f=_0xf0badf['getContainedElement']();if(null==_0x24792f)return;if(!_0x24792f['is']('element','bookmark'))return;const _0x458de4=_0x24792f['getAttribute']('bookmarkId');if('insertion'==_0xf0badf['type'])return{'type':'insertion','content':c(_0x239de5,'*Insert:*\x20%0','\x22'+_0x458de4+'\x22\x20'+c(_0x239de5,'ELEMENT_BOOKMARK'))};if('deletion'==_0xf0badf['type'])return{'type':'deletion','content':c(_0x239de5,'*Remove:*\x20%0','\x22'+_0x458de4+'\x22\x20'+c(_0x239de5,'ELEMENT_BOOKMARK'))};const {data:_0x2a69a3}=_0xf0badf;if(!_0x2a69a3||'bookmarkId'!=_0x2a69a3['key'])return;return{'type':'format','content':c(_0x239de5,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a69a3['newValue']+'\x22')};}));}}class J extends _0x1e29df{['afterInit'](){const _0x312a5e=this['editor'];_0x312a5e['plugins']['has']('CaseChange')&&(_0x312a5e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x312a5e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x312a5e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1e29df{['afterInit'](){const _0x1877d2=this['editor'];_0x1877d2['commands']['get']('ckbox')&&_0x1877d2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x1e29df{['afterInit'](){const _0x4d438c=this['editor'];if(!_0x4d438c['plugins']['has']('CodeBlock'))return;const _0x365a4c=_0x4d438c['plugins']['get']('TrackChangesEditing'),_0x32c3ee=_0x4d438c['locale'],_0x5071f3=_0x4d438c['config']['get']('codeBlock')['languages'],_0x144bdc=_0x4d438c['commands']['get']('codeBlock');_0x365a4c['enableCommand']('indentCodeBlock'),_0x365a4c['enableCommand']('outdentCodeBlock'),_0x365a4c['enableCommand']('codeBlock',(_0x1f23b6,_0x5c9f5d={})=>{const _0x1b6749=_0x4d438c['model'],_0x4c5abf=_0x4d438c['model']['document']['selection'],_0x29612f=_0x5c9f5d&&void 0x0!==_0x5c9f5d['forceValue']?_0x5c9f5d['forceValue']:!_0x144bdc['value'];let _0xd43377;_0x5c9f5d['language']||(_0x5c9f5d['language']=_0x5071f3[0x0]['language']),_0xd43377=_0x29612f?Array['from'](_0x4c5abf['getSelectedBlocks']())['filter'](_0x5babee=>eo(_0x5babee)||function(_0x4c46c2,_0x284d76){if(_0x4c46c2['is']('rootElement')||_0x284d76['isLimit'](_0x4c46c2))return!0x1;return _0x284d76['checkChild'](_0x4c46c2['parent'],'codeBlock');}(_0x5babee,_0x1b6749['schema'])):Array['from'](_0x4c5abf['getSelectedBlocks']())['filter'](_0x256f76=>eo(_0x256f76));const _0x4a239d=to(_0xd43377,_0x1b6749);_0x1b6749['change'](()=>{for(const _0x1f648d of _0x4a239d)_0x365a4c['markBlockFormat'](_0x1f648d,{'commandName':'codeBlock','commandParams':[{..._0x5c9f5d,'forceValue':_0x29612f}],'formatGroupId':'blockName'});});}),(_0x365a4c['descriptionFactory']['registerElementLabel']('codeBlock',_0x5eb234=>c(_0x32c3ee,'ELEMENT_CODE_BLOCK',_0x5eb234)),_0x365a4c['descriptionFactory']['registerDescriptionCallback'](_0x27bb2e=>{if('formatBlock'!=_0x27bb2e['type'])return;const _0x277088=_0x32c3ee['t'],{data:_0x14d064}=_0x27bb2e;if(!_0x14d064||'codeBlock'!=_0x14d064['commandName'])return;const _0x1b5f4e=_0x14d064['commandParams'][0x0]['language'],_0x4070fe=_0x277088(_0x5071f3['find'](_0x2cddc6=>_0x2cddc6['language']===_0x1b5f4e)['label'])['toLowerCase']();return _0x14d064['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32c3ee,'*Set\x20format:*\x20%0',c(_0x32c3ee,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4070fe+')')}:{'type':'format','content':c(_0x32c3ee,'*Remove\x20format:*\x20%0',c(_0x32c3ee,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2c7709){return'codeBlock'==_0x2c7709['name'];}class q extends _0x1e29df{['afterInit'](){const _0x10e59b=this['editor'];if(!_0x10e59b['plugins']['has']('CommentsEditing'))return;_0x10e59b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5027d6,_0x2b5d1c,_0x1ec003){const _0x1798e1=[];for(const _0x233df7 of _0x2b5d1c['getItems']())_0x233df7['hasAttribute'](_0x5027d6)&&_0x1798e1['push'](_0x1ec003['createRangeOn'](_0x233df7));return _0x1798e1;}function Fe(_0x2c1f08,_0xe90617,{showActiveMarker:_0x91a843=!0x0}={}){const _0x323e4c=_0x2c1f08['plugins']['get']('TrackChangesEditing');return(_0x4d8419,_0x417a9f,_0x3729f1)=>{if(!_0x3729f1['consumable']['test'](_0x417a9f['markerRange'],_0x4d8419['name']))return;const _0x587e4c=_0x417a9f['markerRange']['getWalker'](),_0x49dac8=_0x417a9f['markerRange']['start'],_0x5183de=_0x2c1f08['model']['schema'];let _0x196ea5=null,_0x3559f2=null,_0x2a9291=!0x1,_0x373343=!0x1;for(const _0x1db33f of _0x587e4c){const _0xdc9ac=_0x1db33f['item'];_0x2a9291=_0x2a9291||_0x5183de['isContent'](_0xdc9ac);const _0xbc7dab=_0x3729f1['mapper']['toViewElement'](_0xdc9ac);if(_0xbc7dab&&_0xbc7dab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db33f['type']&&(_0x5183de['isBlock'](_0xdc9ac)&&!_0x5183de['isLimit'](_0xdc9ac)&&(_0xdc9ac['nextSibling']||_0x49dac8['isAtEnd']?_0x196ea5&&_0x196ea5['parent']==_0xdc9ac||(_0x196ea5=_0xdc9ac,_0x5788ee(_0x1db33f['previousPosition']),_0x373343=!0x0):_0x3559f2=_0x3559f2||_0x1db33f['previousPosition']));}function _0x5788ee(_0x233f03){const {id:_0x296923,authorId:_0xc4fb29}=_0x323e4c['_splitMarkerName'](_0x417a9f['markerName']),_0xbda808=_0x3729f1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe90617,'data-suggestion':_0x296923,'data-author-id':_0xc4fb29}),_0x27e38a=_0x3729f1['mapper']['toViewPosition'](_0x233f03);_0x91a843&&_0x323e4c['activeMarkers']['includes'](_0x417a9f['markerName'])&&_0x3729f1['writer']['addClass']('ck-suggestion-marker--active',_0xbda808),_0x3729f1['writer']['insert'](_0x27e38a,_0xbda808),_0x3729f1['mapper']['bindElementToMarker'](_0xbda808,_0x417a9f['markerName']);}_0x2a9291||_0x373343||!_0x3559f2||_0x5788ee(_0x3559f2);};}class z extends _0x1e29df{static get['requires'](){return[_0x367239];}['init'](){const _0x3099d1=this['editor'],_0x542afe=_0x3099d1['plugins']['get']('TrackChangesEditing');_0x542afe['enableCommand']('delete');const _0x3f0aa6=_0x3099d1['commands']['get']('deleteForward');_0x542afe['enableCommand']('deleteForward',(_0x257e99,_0x585ca6={})=>{const _0x1162e9=_0x3099d1['model']['createSelection'](_0x3099d1['model']['document']['selection']);_0x1162e9['isCollapsed']&&_0x3099d1['model']['modifySelection'](_0x1162e9,{'direction':'forward','unit':_0x585ca6['unit']});const _0x4e987d=_0x1162e9['getFirstRange'](),_0x1d2390=_0x2229f7['fromRange'](_0x4e987d);let _0x4cc936;_0x257e99(_0x585ca6),_0x4cc936='$graveyard'==_0x1d2390['root']['rootName']?_0x3099d1['model']['createRange'](_0x4e987d['start']):_0x3099d1['model']['createRange'](_0x1d2390['start'],_0x1d2390['end']),_0x1d2390['detach'](),_0x3099d1['model']['enqueueChange'](_0x3f0aa6['buffer']['batch'],_0x3671e2=>{_0x3f0aa6['buffer']['lock'](),_0x3671e2['setSelection'](_0x3671e2['createRange'](_0x4cc936['end'])),_0x3f0aa6['buffer']['unlock']();});}),_0x3099d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x3099d1,'merge'),{'priority':'high'}),_0x3099d1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x30aea4,_0x4b14f4,_0x377771)=>{_0x377771['options']['showSuggestionHighlights']&&Fe(_0x3099d1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x30aea4,_0x4b14f4,_0x377771);},{'priority':'high'}),_0x3099d1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x16e369,_0x2f4deb,_0x29bb01)=>{const _0x26f73c=_0x29bb01['mapper']['markerNameToElements'](_0x2f4deb['markerName']);if(_0x26f73c){for(const _0x232062 of _0x26f73c)_0x232062['is']('uiElement')&&(_0x29bb01['mapper']['unbindElementFromMarkerName'](_0x232062,_0x2f4deb['markerName']),_0x29bb01['writer']['remove'](_0x232062));}},{'priority':'high'});}}class W extends _0x1e29df{['afterInit'](){const _0x35d90a=this['editor'];if(!_0x35d90a['plugins']['has']('ListEditing'))return;const _0x592c06=_0x35d90a['locale'],_0xdd6c5e=_0x35d90a['plugins']['get']('TrackChangesEditing'),_0x17d499=_0x35d90a['plugins']['has']('TodoListEditing'),_0x155946=!!_0x35d90a['config']['get']('list.multiBlock');function _0x144594(_0x11ee1d){return{'type':'format','content':''+c(_0x592c06,'*Set\x20format:*\x20%0',_0x11ee1d)};}function _0x1f3ed1(_0x5c6a82){return{'type':'format','content':''+c(_0x592c06,'*Remove\x20format:*\x20%0',_0x5c6a82)};}_0xdd6c5e['enableDefaultAttributesIntegration']('numberedList'),_0xdd6c5e['enableDefaultAttributesIntegration']('bulletedList'),_0xdd6c5e['enableDefaultAttributesIntegration']('customNumberedList'),_0xdd6c5e['enableDefaultAttributesIntegration']('customBulletedList'),_0xdd6c5e['enableDefaultAttributesIntegration']('indentList'),_0xdd6c5e['enableDefaultAttributesIntegration']('outdentList'),_0xdd6c5e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xdd6c5e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xdd6c5e['registerBlockAttribute']('listItemId'),_0xdd6c5e['registerBlockAttribute']('listType'),_0xdd6c5e['registerBlockAttribute']('listIndent'),_0x155946&&(_0xdd6c5e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xdd6c5e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x17d499&&(_0xdd6c5e['enableDefaultAttributesIntegration']('todoList'),_0xdd6c5e['enableDefaultAttributesIntegration']('checkTodoList'),_0xdd6c5e['registerBlockAttribute']('todoListChecked'),_0xdd6c5e['descriptionFactory']['registerDescriptionCallback'](_0x42facf=>{const {data:_0x67e17e}=_0x42facf;if(_0x67e17e&&'todoListChecked'==_0x67e17e['key'])return{'type':'format','content':_0x67e17e['newValue']?c(_0x592c06,'*Check\x20item*'):c(_0x592c06,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8bf153=>{if(_0x8bf153['batch']['isUndo'])return!0x1;let _0x821d8f=!0x1;const _0x2b5f77=_0xdd6c5e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x79b740=>'todoListChecked'===_0xdd6c5e['_getAttributeKey'](_0x79b740));for(const _0x9dbcab of _0x2b5f77){'todo'!=_0x9dbcab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xdd6c5e['_findSuggestions'](_0x9dbcab['getFirstRange'](),'attribute')['find'](_0x83ff7f=>'listType'===_0xdd6c5e['_getAttributeKey'](_0x83ff7f['suggestion']))||(_0x8bf153['removeMarker'](_0x9dbcab['getFirstMarker']()),_0x821d8f=!0x0));}return _0x821d8f;})),_0xdd6c5e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x592c06,'FORMAT_INDENT'));const _0x42fa0d={'type':'format','content':''};_0xdd6c5e['descriptionFactory']['registerDescriptionCallback'](_0xf582c4=>{const {data:_0x91d24e}=_0xf582c4;if(!_0x91d24e||'listType'!=_0x91d24e['key'])return;let _0x1a0228=_0xf582c4['head'];for(;_0x1a0228;){if(_0x1a0228['data']&&(('listStyle'==_0x1a0228['data']['key']||'listMarkerStyle'==_0x1a0228['data']['key'])&&(_0x1a0228['data']['newValue']&&'default'!=_0x1a0228['data']['newValue']||'default'!=_0x1a0228['data']['oldValue']&&!_0x91d24e['newValue'])||!_0x155946&&_0x1a0228['data']['key']==u))return _0x42fa0d;_0x1a0228=_0x1a0228['next'];}if(null==_0x91d24e['newValue'])switch(_0x91d24e['oldValue']){case'bulleted':return _0x1f3ed1(c(_0x592c06,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f3ed1(c(_0x592c06,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f3ed1(c(_0x592c06,'ELEMENT_TODO_LIST'));}switch(_0x91d24e['newValue']){case'bulleted':return _0x144594(c(_0x592c06,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x144594(c(_0x592c06,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x144594(c(_0x592c06,'ELEMENT_TODO_LIST'));}}),_0xdd6c5e['descriptionFactory']['registerDescriptionCallback'](_0x516131=>{const {data:_0xd08b29}=_0x516131;if(_0xd08b29&&'listIndent'==_0xd08b29['key'])return null==_0xd08b29['newValue']||null==_0xd08b29['oldValue']&&0x0==_0xd08b29['newValue']?_0x42fa0d:void 0x0;}),_0xdd6c5e['descriptionFactory']['registerDescriptionCallback'](_0x5ed75e=>{if('attribute'!=_0x5ed75e['type'])return;const {data:_0x1c143c}=_0x5ed75e;if(!_0x1c143c||'listItemId'!=_0x1c143c['key'])return;const _0x4d77b0=Te(_0x5ed75e);return'newValue'==_0x4d77b0?{'type':'format','content':c(_0x592c06,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d77b0?{'type':'format','content':c(_0x592c06,'*Split:*\x20list\x20item')}:_0x42fa0d;}),_0x35d90a['model']['document']['registerPostFixer'](_0x1ac4ab=>this['listItemIdFixer'](_0x1ac4ab)),_0x35d90a['model']['document']['registerPostFixer'](_0x283609=>this['noTrackChangesFixer'](_0x283609)),_0x35d90a['model']['document']['on']('change:data',(_0x101dd8,_0x368092)=>{if(_0x368092['isUndo']||!_0x368092['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x236b1b){if(_0x236b1b['batch']['isUndo']||!_0x236b1b['batch']['isLocal'])return!0x1;let _0x53c517=!0x1;const _0x37af65=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a75a8=>_0x1a75a8['data']&&'listItemId'==_0x1a75a8['data']['key'])['filter'](_0x8783dc=>_0x8783dc['data']['newValue']&&_0x8783dc['data']['oldValue']);for(const _0x5b4c97 of _0x37af65)Te(_0x5b4c97)||(_0x236b1b['removeMarker'](_0x5b4c97['getFirstMarker']()),_0x53c517=!0x0);return _0x53c517;}['noTrackChangesFixer'](_0xea63a8){if(_0xea63a8['batch']['isUndo']||!_0xea63a8['batch']['isLocal'])return!0x1;const _0xe7ba0a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xe7ba0a['trackChangesCommand']['value'])return!0x1;let _0x1d7157=!0x1;const _0x4677c3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4fb390=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3a0376=>'attribute'==_0x3a0376['type'])['filter'](_0x2e8ea8=>_0x4677c3['includes'](_0x2e8ea8['attributeKey']));if(0x0==_0x4fb390['length'])return _0x1d7157;for(const _0x48f283 of _0x4fb390){const _0x36a321=_0xe7ba0a['_findSuggestions'](_0x48f283['range'],'attribute')['filter'](_0x104d80=>!_0x104d80['meta']['isNextTo'])['map'](_0x43aaf5=>_0x43aaf5['suggestion'])['filter'](_0x144d9b=>{const _0x439cb5=_0xe7ba0a['_getAttributeKey'](_0x144d9b);return _0x4677c3['includes'](_0x439cb5);});if(_0x36a321['length']){for(const _0x608886 of _0x36a321)_0xea63a8['removeMarker'](_0x608886['getFirstMarker']());_0x1d7157=!0x0;}}return _0x1d7157;}['assureChains'](){const _0x598504=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43a8ce=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3889f9;const _0x2564cd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1693d0=>{if(_0x1693d0['data']['oldRange']||!_0x1693d0['data']['newRange'])return null;if(!_0x1693d0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e325c}=_0x598504['_splitMarkerName'](_0x1693d0['name']);if(!_0x598504['hasSuggestion'](_0x4e325c))return null;const _0x221b44=_0x598504['getSuggestion'](_0x4e325c);return _0x43a8ce['includes'](_0x221b44['data']['key']);})['map'](_0x2be72d=>{const {id:_0xa872fd}=_0x598504['_splitMarkerName'](_0x2be72d['name']),_0x5f0ddb=_0x598504['getSuggestion'](_0xa872fd);return _0x3889f9=_0x5f0ddb['attributes']['groupId'],_0x5f0ddb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2564cd['size'])return;const _0x1fb76d=_0x598504['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x63c8d7=>'attribute'==_0x63c8d7['type']&&_0x63c8d7['data']&&_0x43a8ce['includes'](_0x63c8d7['data']['key'])&&_0x63c8d7['attributes']['groupId']!=_0x3889f9)['map'](_0x34b424=>({'listItem':_0x34b424['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34b424['attributes']['groupId']})),_0x415b2d=new Set();for(const {groupId:_0x15023d,listItem:_0x23287a}of _0x1fb76d)_0x2564cd['has'](_0x23287a)&&_0x415b2d['add'](_0x15023d);for(const _0x25f12b of _0x598504['getSuggestions']())_0x415b2d['has'](_0x25f12b['attributes']['groupId'])&&_0x25f12b['setAttribute']('groupId',_0x3889f9);}['_supportLegacySuggestions'](){const _0x54d9ac=this['editor'],_0x154cf6=_0x54d9ac['locale'],_0x1c89b0=_0x54d9ac['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1c89b0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56f44f,_0x255037){const _0x209815=[];for(let _0x211d07 of _0x56f44f)_0x211d07['start']['nodeAfter']===_0x211d07['end']['parent']&&(_0x211d07=_0x54d9ac['model']['createRange'](_0x54d9ac['model']['createPositionAt'](_0x211d07['start']['nodeAfter'],0x0))),_0x209815['push'](_0x211d07);_0x54d9ac['model']['change'](_0x3d6b69=>{const _0x3399cb=_0x54d9ac['model']['document']['selection'],_0x5819fc=Array['from'](_0x3399cb['getRanges']())['map'](_0x440752=>_0x2229f7['fromRange'](_0x440752));_0x3d6b69['setSelection'](_0x209815),_0x54d9ac['commands']['get'](_0x255037['commandName'])['refresh'](),_0x255037['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x54d9ac['execute'](_0x255037['commandName'],..._0x255037['commandParams']),_0x3d6b69['setSelection'](_0x5819fc);for(const _0x1c993a of _0x5819fc)_0x1c993a['detach']();});}),_0x1c89b0['descriptionFactory']['registerElementLabel'](function(_0x43e9a7){const _0x3cd43e=!_0x54d9ac['model']['schema']['isObject'](_0x43e9a7),_0x3fe843=_0x43e9a7['previousSibling'],_0xb58f79=_0x43e9a7['nextSibling'],_0x20bc84=_0x43e9a7['getAttribute']('listItemId'),_0x47a728=!_0x3fe843||_0x3fe843['getAttribute']('listItemId')!==_0x20bc84,_0x14db2a=!_0xb58f79||_0xb58f79['getAttribute']('listItemId')!==_0x20bc84;return _0x3cd43e&&Boolean(_0x20bc84)&&_0x47a728&&_0x14db2a;},_0x2e52d8=>c(_0x154cf6,'ELEMENT_LIST_ITEM',_0x2e52d8));}['_registerLegacyDescription'](){const _0x1f2937=this['editor'],_0x123668=_0x1f2937['locale'];function _0x15acf1(_0x242e7e){const _0x14c396=_0x1f2937['commands']['get']('bulletedList')['value'],_0x26723b=_0x1f2937['commands']['get']('numberedList')['value'];return'numberedList'===_0x242e7e?_0x14c396:_0x26723b;}_0x1f2937['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2bdf3b){if('formatBlock'!=_0x2bdf3b['type'])return;const {data:_0xbb02e6}=_0x2bdf3b;if(!_0xbb02e6)return;let _0x4fd486,_0x2c796a,_0x4b4e3d,_0x2a8e05;switch(_0xbb02e6['commandName']){case'bulletedList':_0x4b4e3d=_0xbb02e6['commandParams'][0x0]['forceValue'],_0x2a8e05=_0x15acf1(_0xbb02e6['commandName']),_0x4fd486=_0x4b4e3d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a8e05&&_0x1f2937['config']['get']('list.multiBlock')||(_0x4fd486='*Change\x20to:*\x20%0'),_0x2c796a={'type':'format','content':c(_0x123668,_0x4fd486,c(_0x123668,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4b4e3d=_0xbb02e6['commandParams'][0x0]['forceValue'],_0x2a8e05=_0x15acf1(_0xbb02e6['commandName']),_0x4fd486=_0x4b4e3d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a8e05&&_0x1f2937['config']['get']('list.multiBlock')||(_0x4fd486='*Change\x20to:*\x20%0'),_0x2c796a={'type':'format','content':c(_0x123668,_0x4fd486,c(_0x123668,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4fd486='*Indent:*\x20%0',_0x2c796a={'type':'format','content':c(_0x123668,_0x4fd486,c(_0x123668,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4fd486=function(_0x3e9e07){const _0x18c3e2=_0x3e9e07['getFirstRange']();let _0x4e1f38=_0x18c3e2['start']['nodeAfter'];for(;_0x4e1f38&&_0x18c3e2['containsItem'](_0x4e1f38);){if(_0x4e1f38['getAttribute']('listIndent')>0x0)return!0x1;_0x4e1f38=_0x4e1f38['nextSibling'];}return!0x0;}(_0x2bdf3b)?c(_0x123668,'*Format:*\x20remove\x20from\x20%0',c(_0x123668,function(_0xec7c53){return'ELEMENT_'+_0xec7c53['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2bdf3b))):c(_0x123668,'*Outdent:*\x20%0',c(_0x123668,'ELEMENT_LIST_ITEM')),_0x2c796a={'type':'format','content':_0x4fd486};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xbb02e6['multipleBlocks']&&(_0x4fd486='*Merge:*\x20%0',_0x2c796a={'type':'deletion','content':c(_0x123668,_0x4fd486,c(_0x123668,'ELEMENT_LIST_ITEM'))});}return _0x2c796a;});}}function Te(_0x117f07){let _0x43d328=_0x117f07['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x43d328;){const _0x36481a=_0x43d328['getAttribute']('listItemId');if(!_0x36481a)return!0x1;if(_0x36481a==_0x117f07['data']['newValue'])return'newValue';if(_0x36481a==_0x117f07['data']['oldValue'])return'oldValue';_0x43d328=_0x43d328['previousSibling'];}return!0x1;}class Se extends _0x1e29df{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x441f38=this['editor']['config']['get']('list.properties'),_0x4b4b23=this['editor']['plugins']['get']('TrackChangesEditing');_0x441f38['styles']&&(_0x4b4b23['enableDefaultAttributesIntegration']('listStyle'),_0x4b4b23['registerBlockAttribute']('listStyle')),_0x441f38['reversed']&&(_0x4b4b23['enableDefaultAttributesIntegration']('listReversed'),_0x4b4b23['registerBlockAttribute']('listReversed')),_0x441f38['startIndex']&&(_0x4b4b23['enableDefaultAttributesIntegration']('listStart'),_0x4b4b23['registerBlockAttribute']('listStart'));const _0xae7a1={'type':'format','content':''};_0x4b4b23['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4258ce=this['editor']['locale'];_0x4b4b23['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4258ce,'FORMAT_LIST_REVERSED')),_0x4b4b23['descriptionFactory']['registerDescriptionCallback'](_0xf6f2d8=>{const {data:_0x5be3f3}=_0xf6f2d8;if(_0x5be3f3&&'listReversed'==_0x5be3f3['key'])return null==_0x5be3f3['newValue']||0x0==_0x5be3f3['newValue']&&null==_0x5be3f3['oldValue']?_0xae7a1:void 0x0;}),_0x4b4b23['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4258ce,'FORMAT_LIST_START')),_0x4b4b23['descriptionFactory']['registerDescriptionCallback'](_0x2f7c7e=>{const {data:_0x46aefd}=_0x2f7c7e;if(_0x46aefd&&'listStart'==_0x46aefd['key'])return null==_0x46aefd['newValue']||0x1==_0x46aefd['newValue']&&null==_0x46aefd['oldValue']?_0xae7a1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x58b4e7=>{if(_0x58b4e7['batch']['isUndo'])return!0x1;let _0xef071c=!0x1;const _0x45a2dd=_0x4b4b23['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b39c1=>{const _0x403586=_0x4b4b23['_getAttributeKey'](_0x5b39c1);return'listStart'==_0x403586||'listReversed'==_0x403586;});for(const _0x594749 of _0x45a2dd){const _0x108b5d=_0x594749['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x108b5d||'customNumbered'==_0x108b5d)continue;_0x4b4b23['_findSuggestions'](_0x594749['getFirstRange'](),'attribute')['find'](_0x44d8f9=>'listType'==_0x4b4b23['_getAttributeKey'](_0x44d8f9['suggestion']))||(_0x58b4e7['removeMarker'](_0x594749['getFirstMarker']()),_0xef071c=!0x0);}return _0xef071c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xc8925e){const _0x371034=this['editor']['locale'],{data:_0x1e4d38}=_0xc8925e,_0x6d6405={'type':'format','content':''};if(!_0x1e4d38||'listStyle'!=_0x1e4d38['key'])return;if(!_0x1e4d38['oldValue'])return'default'==_0x1e4d38['newValue']?_0x6d6405:{'type':'format','content':''+c(_0x371034,'*Set\x20format:*\x20%0',c(_0x371034,this['_getTranslationKeyForListStyle'](_0x1e4d38['newValue'])))};if(!_0x1e4d38['newValue']){if('default'==_0x1e4d38['oldValue'])return _0x6d6405;let _0x4d1241=_0xc8925e['head'];for(;_0x4d1241;){if(_0x4d1241['data']&&'listType'==_0x4d1241['data']['key']&&_0x4d1241['data']['newValue'])return _0x6d6405;_0x4d1241=_0x4d1241['next'];}return{'type':'format','content':''+c(_0x371034,'*Remove\x20format:*\x20%0',c(_0x371034,this['_getTranslationKeyForListStyle'](_0x1e4d38['oldValue'])))};}if('default'!=_0x1e4d38['newValue'])return{'type':'format','content':''+c(_0x371034,'*Set\x20format:*\x20%0',c(_0x371034,this['_getTranslationKeyForListStyle'](_0x1e4d38['newValue'])))};let _0x2cbf17=_0xc8925e['head'];for(;_0x2cbf17;){if(_0x2cbf17['data']&&'listType'==_0x2cbf17['data']['key']&&_0x2cbf17['data']['newValue']&&_0x2cbf17['data']['oldValue'])return _0x6d6405;_0x2cbf17=_0x2cbf17['next'];}return{'type':'format','content':c(_0x371034,'*Set\x20format:*\x20%0',c(_0x371034,'ELEMENT_'+_0xc8925e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27b921=this['editor'],_0x243aab=_0x27b921['locale'];_0x27b921['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b2e3=>{if('formatBlock'!=_0x22b2e3['type'])return;const {data:_0x3677f9}=_0x22b2e3;if(!_0x3677f9)return;let _0x161ce6,_0x4eb1d7;switch(_0x3677f9['commandName']){case'listStyle':_0x161ce6='*Change\x20to:*\x20%0',_0x4eb1d7={'type':'format','content':c(_0x243aab,_0x161ce6,c(_0x243aab,this['_getTranslationKeyForListStyle'](_0x3677f9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x161ce6=_0x3677f9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4eb1d7={'type':'format','content':c(_0x243aab,_0x161ce6)};break;case'listStart':_0x161ce6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4eb1d7={'type':'format','content':c(_0x243aab,_0x161ce6,_0x3677f9['commandParams'][0x0]['startIndex'])};}return _0x4eb1d7;});}['_getTranslationKeyForListStyle'](_0x286ad9){return'ELEMENT_'+function(_0x23aaac){if(_e['includes'](_0x23aaac))return'bulleted';if(Re['includes'](_0x23aaac))return'numbered';return null;}(_0x286ad9)['toUpperCase']()+'_LIST_'+_0x286ad9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1e29df{['afterInit'](){const _0x5da913=this['editor'];_0x5da913['commands']['get']('emoji')&&_0x5da913['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x1e29df{static get['requires'](){return[_0xa0b41c];}['init'](){const _0x121603=this['editor'],_0x552015=_0x121603['plugins']['get']('TrackChangesEditing'),_0x32dbd3=_0x121603['commands']['get']('enter');_0x552015['enableCommand']('enter',()=>{_0x121603['model']['change'](_0x2e92ad=>{const _0x303c63=_0x121603['model']['document']['selection'],_0xd33f9f=_0x303c63['getFirstPosition'](),_0x5b59bf=_0x2229f7['fromRange'](_0x303c63['getFirstRange']());if(_0x32dbd3['enterBlock'](_0x2e92ad)){const _0xe05fdd=_0x121603['model']['createPositionAt'](_0xd33f9f['parent']['nextSibling'],0x0),_0x3dc182=_0x2e92ad['createRange'](_0xd33f9f,_0xe05fdd);_0x552015['markInsertion'](_0x3dc182);}else _0x2e92ad['setSelection'](_0x2e92ad['createRange'](_0x5b59bf['end']));_0x5b59bf['detach'](),_0x32dbd3['fire']('afterExecute',{'writer':_0x2e92ad});});}),_0x121603['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x121603,'split'),{'priority':'high'}),_0x121603['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x554220,_0x279ff3,_0x529dfe)=>{const _0x31e8a3=_0x529dfe['mapper']['markerNameToElements'](_0x279ff3['markerName']);if(_0x31e8a3){for(const _0x3739d0 of _0x31e8a3)_0x3739d0['hasClass']('ck-suggestion-marker-split')&&(_0x529dfe['mapper']['unbindElementFromMarkerName'](_0x3739d0,_0x279ff3['markerName']),_0x529dfe['writer']['remove'](_0x3739d0));}},{'priority':'high'}),_0x121603['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38c964,_0x599e97,_0x23cb86)=>{_0x23cb86['options']['showSuggestionHighlights']&&Fe(_0x121603,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x38c964,_0x599e97,_0x23cb86);},{'priority':'high'});}}class Z extends _0x1e29df{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x451a2d=this['editor']['plugins']['get']('TrackChangesEditing');_0x451a2d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x451a2d['enableCommand']('findNext'),_0x451a2d['enableCommand']('findPrevious'),_0x451a2d['enableCommand']('replace'),_0x451a2d['enableCommand']('replaceAll');}['handleFindCommand'](_0x25eb6c,_0x1248ec,_0x4b1f6a={}){const _0x346385=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x25eb6c(_0x3a13ea=>{let _0xdf90c9=('string'==typeof _0x1248ec?_0x346385['findByTextCallback'](_0x1248ec,_0x4b1f6a):_0x1248ec)(_0x3a13ea);Array['isArray'](_0xdf90c9)&&(_0xdf90c9={'results':_0xdf90c9,'searchText':'string'==typeof _0x1248ec?_0x1248ec:''});const _0x11b58b=_0xdf90c9['results']['filter'](_0x154d4f=>!0x1===this['_isInDeletionRange'](_0x154d4f,_0x3a13ea['item']));return{..._0xdf90c9,'results':_0x11b58b};},_0x4b1f6a);}['_isInDeletionRange'](_0x210170,_0x51dafb){const _0x2fd362=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51dafb,_0x210170['start']),this['editor']['model']['createPositionAt'](_0x51dafb,_0x210170['end']));for(const _0x2b736c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2fd362['getIntersection'](_0x2b736c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x1e29df{['afterInit'](){const _0x28378e=this['editor']['locale'],_0x3d73a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf8c6c1,commandName:_0xfda2ba}of ro)this['editor']['plugins']['has'](_0xf8c6c1)&&(_0x3d73a4['enableDefaultAttributesIntegration'](_0xfda2ba),_0x3d73a4['registerInlineAttribute'](_0xfda2ba));_0x3d73a4['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x28378e,'FORMAT_FONT_SIZE')),_0x3d73a4['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x28378e,'FORMAT_FONT_FAMILY')),_0x3d73a4['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x28378e,'FORMAT_FONT_COLOR')),_0x3d73a4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x28378e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d732b=this['editor'],_0x56928a=_0x5d732b['locale'];_0x5d732b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x399c43=>{const _0x52ac1d=_0x56928a['t'];if('formatInline'!=_0x399c43['type'])return;const {data:_0x441d63}=_0x399c43;if(null!=_0x441d63){if('fontSize'==_0x441d63['commandName']){const _0x3133e4=_0x441d63['commandParams'][0x0]['value'];if(_0x3133e4){const _0x54e404=_0x52ac1d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x561152=>_0x561152['model']==_0x3133e4)['title'])['toLowerCase']();return{'type':'format','content':c(_0x56928a,'*Set\x20font\x20size:*\x20%0',_0x54e404)};}return{'type':'format','content':c(_0x56928a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x441d63['commandName']){const _0x2e100d=_0x441d63['commandParams'][0x0]['value'];return _0x2e100d?{'type':'format','content':c(_0x56928a,'*Set\x20font\x20family:*\x20%0',_0x2e100d)}:{'type':'format','content':c(_0x56928a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x441d63['commandName']){const _0x2e760e=_0x441d63['commandParams'][0x0]['value'];if(_0x2e760e){const _0x5add6b=_0x5f15e5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x15ccd1=>_0x15ccd1['model']==_0x2e760e);let _0x38318a=_0x2e760e,_0x5692bc='';return _0x5add6b&&(_0x38318a=_0x5add6b['label'],_0x5692bc=_0x52ac1d(_0x38318a)['toLowerCase']()),{'type':'format','content':c(_0x56928a,'*Set\x20font\x20color:*\x20%0',_0x5692bc)['trim'](),'color':{'value':_0x2e760e,'title':_0x5692bc||_0x38318a}};}return{'type':'format','content':c(_0x56928a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x441d63['commandName']){const _0x592ad9=_0x441d63['commandParams'][0x0]['value'];if(_0x592ad9){const _0x358690=_0x5f15e5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1215ed=>_0x1215ed['model']==_0x592ad9);let _0x540fdd=_0x592ad9,_0x4a72e7='';return _0x358690&&(_0x540fdd=_0x358690['label'],_0x4a72e7=_0x52ac1d(_0x540fdd)['toLowerCase']()),{'type':'format','content':c(_0x56928a,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a72e7)['trim'](),'color':{'value':_0x592ad9,'title':_0x4a72e7||_0x540fdd}};}return{'type':'format','content':c(_0x56928a,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x1e29df{['afterInit'](){const _0x47a754=this['editor'],_0x17ed36=_0x47a754['plugins']['get']('TrackChangesEditing'),_0x5d30c5=_0x47a754['commands']['get']('copyFormat'),_0x1c2de1=_0x47a754['commands']['get']('pasteFormat');_0x5d30c5&&_0x1c2de1&&(_0x17ed36['enableDefaultAttributesIntegration']('pasteFormat'),_0x17ed36['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4830b2=this['editor'],_0x4f6997=_0x4830b2['locale'];_0x4830b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x336a6e=>{if('formatBlock'!=_0x336a6e['type']&&'formatInline'!=_0x336a6e['type'])return;const {data:_0x14f7e8}=_0x336a6e;if(_0x14f7e8&&'pasteFormat'===_0x14f7e8['commandName']){const _0x515731=[],_0x3779f4=_0x14f7e8['commandParams'][0x0];for(const [_0x1c79d5,_0x25b0d8]of Object['entries'](_0x3779f4))_0x515731['push'](so(_0x4830b2,_0x1c79d5,_0x25b0d8));return _0x515731['length']?{'type':'format','content':c(_0x4f6997,'*Set\x20format\x20to:*\x20%0',_0x515731['join'](',\x20'))}:{'type':'format','content':c(_0x4f6997,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc6bf97,_0x5bdf68,_0x359d66){const _0x548bcc=_0xc6bf97['locale']['t'],_0x25d44d=_0x5bdf68['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e21c7=_0x548bcc(_0x25d44d['charAt'](0x0)['toUpperCase']()+_0x25d44d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x359d66)return _0x5e21c7;if('fontColor'===_0x5bdf68||'fontBackgroundColor'===_0x5bdf68){const _0x1b9010=_0x5f15e5(_0xc6bf97['config']['get']('fontColor.colors'))['find'](_0x5abb56=>_0x5abb56['model']==_0x359d66);return _0x5e21c7+'\x20('+(_0x1b9010?_0x548bcc(_0x1b9010['label'])['toLowerCase']():_0x359d66)+')';}if('fontSize'===_0x5bdf68&&isNaN(parseFloat(_0x359d66))){const _0x414aa4=_0xc6bf97['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc6bf97['config']['get']('fontSize.options'))['find'](_0x1bbf2d=>_0x1bbf2d['model']==_0x359d66);return _0x5e21c7+'\x20('+(_0x414aa4?_0x548bcc(_0x414aa4['title'])['toLowerCase']():_0x359d66)+')';}return _0x5e21c7+'\x20('+_0x359d66+')';}class et extends _0x1e29df{['_headingOptions'];['afterInit'](){const _0x563e86=this['editor'];if(!_0x563e86['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x563e86['config']['get']('heading.options');const _0x3b49c3=_0x563e86['locale'],_0x12af52=_0x563e86['plugins']['get']('TrackChangesEditing');_0x12af52['enableDefaultAttributesIntegration']('heading');for(const _0x450720 of this['_headingOptions'])'paragraph'!=_0x450720['model']&&_0x12af52['descriptionFactory']['registerElementLabel'](_0x450720['model'],_0x2a2b55=>{const _0x9a089d=this['_getHeadingLevel'](_0x450720['model']);return null!==_0x9a089d?_0x2428e3(_0x2a2b55,_0x9a089d):_0x8d6dff(_0x2a2b55,_0x450720['title']);});function _0x2428e3(_0x2ba273,_0x5550e3){return c(_0x3b49c3,'ELEMENT_HEADING',[_0x2ba273,_0x5550e3]);}function _0x8d6dff(_0x2a03d8,_0x56f95b){return c(_0x3b49c3,'ELEMENT_HEADING_CUSTOM',[_0x2a03d8,_0x56f95b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27bef4=this['editor'],_0x4b55c2=_0x27bef4['locale'];function _0x249457(_0x125343,_0x31f221){return c(_0x4b55c2,'ELEMENT_HEADING_CUSTOM',[_0x125343,_0x31f221]);}_0x27bef4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8e5dcd=>{if('formatBlock'!=_0x8e5dcd['type'])return;const {data:_0xa1a22}=_0x8e5dcd;if(_0xa1a22&&'heading'==_0xa1a22['commandName']){const _0xec6565=_0xa1a22['commandParams'][0x0]['value'],_0x3400a0=this['_getHeadingLevel'](_0xec6565);if(null!==_0x3400a0)return{'type':'format','content':c(_0x4b55c2,'*Change\x20to:*\x20%0',(_0x1a67a7=0x1,_0x577f2d=_0x3400a0,c(_0x4b55c2,'ELEMENT_HEADING',[_0x1a67a7,_0x577f2d])))};const _0x4fa381=this['_headingOptions']['find'](_0x2128ad=>_0x2128ad['model']===_0xec6565)['title'];return{'type':'format','content':c(_0x4b55c2,'*Change\x20to:*\x20%0',_0x249457(0x1,_0x4fa381))};}var _0x1a67a7,_0x577f2d;});}['_getHeadingLevel'](_0x32b17c){const _0x5f2a95=_0x32b17c['match'](/^heading(\d+)/);if(_0x5f2a95)return _0x5f2a95[0x1];const _0x4257f7=this['_headingOptions']?.['find'](_0x1b0ed1=>_0x1b0ed1['model']==_0x32b17c);if(_0x4257f7&&_0x4257f7['view']){const _0x14ad1a=_0x4257f7['view'],_0x4dcd70=(_0x14ad1a['name']??_0x14ad1a)['match'](/^h(\d+)/);if(_0x4dcd70)return _0x4dcd70[0x1];}return null;}}class nt extends _0x1e29df{['afterInit'](){const _0x405d7a=this['editor'];if(!_0x405d7a['plugins']['has']('HighlightEditing'))return;const _0x21c5ed=_0x405d7a['plugins']['get']('TrackChangesEditing'),_0x16d532=_0x405d7a['locale'];_0x21c5ed['enableDefaultAttributesIntegration']('highlight'),_0x21c5ed['registerInlineAttribute']('highlight'),_0x21c5ed['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x16d532,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f47a=this['editor'],_0x443c22=_0x58f47a['locale'];_0x58f47a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x553513=>{if('formatInline'!=_0x553513['type'])return;const {data:_0x37b4ea}=_0x553513;if(_0x37b4ea&&'highlight'==_0x37b4ea['commandName']){const _0x5f0549=_0x443c22['t'],_0x4c0bcd=_0x37b4ea['commandParams'][0x0]['value'];if(_0x4c0bcd){const _0x5a6bfe=_0x58f47a['config']['get']('highlight.options')['find'](_0x59dc87=>_0x59dc87['model']==_0x4c0bcd),_0x274843=_0x5f0549(_0x5a6bfe['title'])['toLowerCase']();return{'type':'format','content':c(_0x443c22,'*Set\x20highlight:*\x20%0',_0x274843),'color':{'value':_0x5a6bfe['color'],'title':_0x5a6bfe['title']}};}return{'type':'format','content':c(_0x443c22,'*Remove\x20highlight*',c(_0x443c22,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1e29df{['afterInit'](){const _0x12248d=this['editor'];if(!_0x12248d['plugins']['has']('HorizontalLineEditing'))return;_0x12248d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x536c50=_0x12248d['plugins']['get']('TrackChangesEditing'),_0x2c7f01=_0x12248d['locale'];_0x536c50['descriptionFactory']['registerElementLabel']('horizontalLine',_0x284219=>c(_0x2c7f01,'ELEMENT_HORIZONTAL_LINE',_0x284219)),_0x12248d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x175916,{writer:_0x1cb3a6,options:_0x41bb9c})=>{if(!_0x41bb9c['showSuggestionHighlights'])return null;const _0x16726e=_0x1cb3a6['createContainerElement']('div'),_0x3c04cb=_0x1cb3a6['createEmptyElement']('hr');return _0x1cb3a6['addClass']('ck-horizontal-line',_0x16726e),_0x1cb3a6['insert'](_0x1cb3a6['createPositionAt'](_0x16726e,0x0),_0x3c04cb),_0x16726e;},'converterPriority':'high'});}}class ot extends _0x1e29df{['afterInit'](){const _0x1112cb=this['editor'];if(!_0x1112cb['plugins']['has']('HtmlEmbed'))return;const _0x113d98=_0x1112cb['plugins']['get']('TrackChangesEditing'),_0x581247=_0x1112cb['locale'];_0x113d98['descriptionFactory']['registerElementLabel']('rawHtml',_0x3b313a=>c(_0x581247,'ELEMENT_HTML_EMBED',_0x3b313a)),_0x113d98['enableDefaultAttributesIntegration']('htmlEmbed'),_0x113d98['registerBlockAttribute']('value'),_0x113d98['descriptionFactory']['registerDescriptionCallback'](_0x4b6f7b=>{if('attribute'!=_0x4b6f7b['type'])return;const {data:_0x33e579}=_0x4b6f7b;if(_0x33e579&&'value'==_0x33e579['key']&&_0x4b6f7b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46b89d=c(_0x581247,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x581247,'*Change\x20%0\x20content*',_0x46b89d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x119e6c=this['editor'],_0x5bd1c6=_0x119e6c['locale'];_0x119e6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x726617=>{if('formatBlock'!=_0x726617['type'])return;const {data:_0x458e39}=_0x726617;if(_0x458e39&&'htmlEmbed'==_0x458e39['commandName']){const _0x5d1756=c(_0x5bd1c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5bd1c6,'*Change\x20%0\x20content*',_0x5d1756)};}});}}class rt extends _0x1e29df{['afterInit'](){const _0x524e06=this['editor'];if(!_0x524e06['plugins']['has']('ImageEditing'))return;const _0x255309=_0x524e06['plugins']['get']('TrackChangesEditing'),_0x360eae=_0x524e06['plugins']['get']('ImageUtils'),_0x14e853=_0x524e06['locale'];_0x255309['enableCommand']('insertImage'),_0x255309['descriptionFactory']['registerElementLabel']('imageBlock',_0x346179=>c(_0x14e853,'ELEMENT_IMAGE',_0x346179)),_0x255309['descriptionFactory']['registerElementLabel']('imageInline',_0x156475=>c(_0x14e853,'ELEMENT_INLINE_IMAGE',_0x156475)),_0x255309['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x14e853,'ELEMENT_CAPTION')),_0x524e06['plugins']['has']('ImageUploadEditing')&&_0x255309['enableCommand']('uploadImage'),_0x524e06['plugins']['has']('ImageBlockEditing')&&_0x524e06['plugins']['has']('ImageInlineEditing')&&(_0x255309['enableCommand']('imageTypeInline',(_0x598dee,_0x4e3141)=>{const _0xdcd28d=_0x360eae['getClosestSelectedImageElement'](_0x524e06['model']['document']['selection']);_0x524e06['model']['change'](()=>{_0x255309['markBlockFormat'](_0xdcd28d,{'commandName':'imageTypeInline','commandParams':[_0x4e3141]},[],'convertBlockImageToInline');});}),_0x255309['enableCommand']('imageTypeBlock',(_0x47b7ae,_0x3215e5)=>{_0x524e06['model']['change'](_0x9f5339=>{let _0x9b1b95=_0x360eae['getClosestSelectedImageElement'](_0x524e06['model']['document']['selection']),_0x30a448=_0x9f5339['createRangeOn'](_0x9b1b95);const _0x5f1bae=_0x544855['fromPosition'](_0x30a448['start'],'toPrevious'),_0x358d86=_0x544855['fromPosition'](_0x30a448['end'],'toNext');_0x255309['forceDefaultExecution'](()=>_0x47b7ae(_0x3215e5)),_0x9b1b95=_0x360eae['getClosestSelectedImageElement'](_0x524e06['model']['document']['selection']),_0x30a448=_0x9f5339['createRangeOn'](_0x9b1b95);const _0x57d1c5=_0x9f5339['createRange'](_0x5f1bae,_0x358d86);_0x5f1bae['detach'](),_0x358d86['detach'](),_0x255309['markBlockFormat'](_0x9b1b95,{'commandName':'imageTypeInline','commandParams':[_0x3215e5]},[],'convertInlineImageToBlock'),_0x57d1c5['start']['isBefore'](_0x30a448['start'])&&_0x255309['markInsertion'](_0x9f5339['createRange'](_0x57d1c5['start'],_0x30a448['start']),'convertInlineImageToBlock'),_0x30a448['end']['isBefore'](_0x57d1c5['end'])&&_0x255309['markInsertion'](_0x9f5339['createRange'](_0x30a448['end'],_0x57d1c5['end']),'convertInlineImageToBlock');});}),_0x255309['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x255309['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x255309['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x255309['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x255309['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x255309['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x14ecf0])=>{const _0x26697c=_0x255309['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xae1222=_0x14ecf0['start'],_0x123ab2=_0x14ecf0['end'];const _0x4bd787=_0x524e06['model']['schema']['getNearestSelectionRange'](_0xae1222,'backward'),_0x4f701d=_0x524e06['model']['schema']['getNearestSelectionRange'](_0x123ab2,'forward');_0x4bd787['isCollapsed']&&(_0xae1222=_0x4bd787['start']),_0x4f701d['isCollapsed']&&(_0x123ab2=_0x4f701d['end']),_0x26697c([_0x524e06['model']['createRange'](_0xae1222,_0x123ab2)]);}),_0x255309['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x428ef2),_0x255309['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x428ef2)),_0x524e06['plugins']['has']('ImageCaptionEditing')&&(_0x255309['enableCommand']('toggleImageCaption',(_0x4ef7ef,_0x20055e)=>{const _0x30a7ab=_0x524e06['plugins']['get']('ImageCaptionUtils');let _0x1e884b=_0x360eae['getClosestSelectedImageElement'](_0x524e06['model']['document']['selection']),_0x493971=_0x30a7ab['getCaptionFromImageModelElement'](_0x1e884b);_0x524e06['model']['change'](()=>{if(_0x493971)return void _0x255309['markDeletion'](_0x524e06['model']['createRangeOn'](_0x493971));const _0x11fdbe=_0x360eae['isBlockImage'](_0x1e884b);_0x4ef7ef(_0x20055e),_0x1e884b=_0x360eae['getClosestSelectedImageElement'](_0x524e06['model']['document']['selection']),_0x493971=_0x30a7ab['getCaptionFromImageModelElement'](_0x1e884b),_0x255309['markInsertion'](_0x524e06['model']['createRangeOn'](_0x493971),_0x11fdbe?null:'imageCaption');});}),_0x255309['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x428ef2));const _0x555043=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33cfda(_0xb1503c,_0x5f2447){const _0x306d0c=_0x555043['findIndex'](({type:_0x33ec08,subType:_0x1d89b6})=>_0xb1503c['type']==_0x33ec08&&_0xb1503c['subType']==_0x1d89b6),_0x3469c7=_0x555043['findIndex'](({type:_0x4a0030,subType:_0x4f01df})=>_0x5f2447['type']==_0x4a0030&&_0x5f2447['subType']==_0x4f01df);if(_0x306d0c<0x0||_0x3469c7<0x0)return!0x1;const _0x15680a=_0xb1503c['getFirstRange'](),_0x1aa016=_0x5f2447['getFirstRange']();if((0x0==_0x306d0c||0x1==_0x306d0c)&&0x2==_0x3469c7&&_0x15680a['isIntersecting'](_0x1aa016))return!0x0;if(0x2==_0x306d0c&&0x3==_0x3469c7){const _0x59b278=_0x255309['_findSuggestions'](_0x15680a,'insertion')['filter'](({suggestion:_0x309816,meta:_0x252cb7})=>_0x252cb7['isOwn']&&'convertInlineImageToBlock'==_0x309816['subType']);if(_0x59b278['length']>0x1&&_0x1aa016['end']['isEqual'](_0x15680a['start']))return!0x0;if(0x1==_0x59b278['length']&&(_0x15680a['start']['isEqual'](_0x1aa016['end'])||_0x15680a['end']['isEqual'](_0x1aa016['start'])))return!0x0;}if(0x3==_0x306d0c&&0x3==_0x3469c7&&_0x15680a['start']['isBefore'](_0x1aa016['start'])){const _0x1c23ac=_0x15680a['end']['nodeAfter'],_0x18e4cd=_0x1aa016['start']['nodeBefore'];return _0x360eae['isBlockImage'](_0x1c23ac)&&_0x1c23ac===_0x18e4cd;}return!0x1;}function _0x428ef2(_0xe21772,_0x5bacdd){return _0x33cfda(_0xe21772,_0x5bacdd)?[_0xe21772,_0x5bacdd]:_0x33cfda(_0x5bacdd,_0xe21772)?[_0x5bacdd,_0xe21772]:null;}_0x524e06['plugins']['has']('ImageResize')&&(_0x255309['enableDefaultAttributesIntegration']('resizeImage'),_0x255309['registerBlockAttribute']('resizedWidth'),_0x255309['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x14e853,'FORMAT_IMAGE_SIZE'))),_0x524e06['plugins']['has']('ImageTextAlternativeEditing')&&(_0x255309['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x255309['registerBlockAttribute']('alt')),_0x524e06['plugins']['has']('PictureEditing')&&(_0x255309['registerBlockAttribute']('sources'),_0x255309['descriptionFactory']['registerDescriptionCallback'](_0xdb0197=>{if('attribute'!=_0xdb0197['type'])return;const {data:_0x1a9757}=_0xdb0197;return _0x1a9757&&'sources'==_0x1a9757['key']?{'type':'format','content':''}:void 0x0;})),_0x524e06['plugins']['has']('ImageSizeAttributes')&&(_0x255309['registerBlockAttribute']('width'),_0x255309['registerBlockAttribute']('height'),_0x255309['descriptionFactory']['registerDescriptionCallback'](_0x3139c9=>{if('attribute'!=_0x3139c9['type'])return;const {data:_0x1587f8}=_0x3139c9;return!_0x1587f8||'width'!=_0x1587f8['key']&&'height'!=_0x1587f8['key']?void 0x0:{'type':'format','content':''};})),_0x255309['descriptionFactory']['registerDescriptionCallback'](_0x3099b8=>{if(!!_0x555043['find'](({type:_0x4c94f1,subType:_0x31bd36})=>_0x3099b8['type']==_0x4c94f1&&_0x3099b8['subType']==_0x31bd36))return _0x3099b8['previous']?{}:void 0x0;}),_0x255309['descriptionFactory']['registerDescriptionCallback'](_0xd509e8=>{if('insertion'==_0xd509e8['type']||'deletion'==_0xd509e8['type']){const _0xcfe0b0=_0xd509e8['getContainedElement']();if(_0xcfe0b0&&_0xcfe0b0['is']('element','caption'))return{'type':'insertion'==_0xd509e8['type']?'addObject':'removeObject','element':_0xcfe0b0,'quantity':0x1};}}),_0x255309['descriptionFactory']['registerDescriptionCallback'](_0x51ea3e=>'formatBlock'==_0x51ea3e['type']&&'convertInlineImageToBlock'==_0x51ea3e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x51ea3e['type']&&'convertBlockImageToInline'==_0x51ea3e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x255309['descriptionFactory']['registerDescriptionCallback'](_0x866dc=>{if('attribute'!=_0x866dc['type'])return;const {data:_0x5887ae}=_0x866dc;if(!_0x5887ae||'alt'!=_0x5887ae['key'])return;const _0x442d17=_0x5887ae['newValue'];return _0x442d17?{'type':'format','content':c(_0x14e853,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x442d17+'\x22')}:{'type':'format','content':c(_0x14e853,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26c588=this['editor'],_0x4812f4=_0x26c588['locale'];_0x26c588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184efa=>{if('formatBlock'!=_0x184efa['type']&&'formatInline'!=_0x184efa['type'])return;const {data:_0x3d6f16}=_0x184efa;if(_0x3d6f16){if('imageTextAlternative'==_0x3d6f16['commandName']){const _0x2521d6=_0x3d6f16['commandParams'][0x0]['newValue'];return _0x2521d6?{'type':'format','content':c(_0x4812f4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2521d6+'\x22')}:{'type':'format','content':c(_0x4812f4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d6f16['commandName']){const _0x49b2e7=_0x3d6f16['commandParams'][0x0]['width'];return _0x49b2e7?{'type':'format','content':c(_0x4812f4,'*Set\x20image\x20width:*\x20%0',_0x49b2e7)}:{'type':'format','content':c(_0x4812f4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1e29df{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x38522e=this['editor']['locale'],_0xfaf64e=this['editor']['plugins']['get']('TrackChangesEditing');_0xfaf64e['enableDefaultAttributesIntegration']('replaceImageSource'),_0xfaf64e['registerBlockAttribute']('src'),_0xfaf64e['descriptionFactory']['registerDescriptionCallback'](_0xbcdb07=>{if('attribute'!=_0xbcdb07['type'])return;const {data:_0x173ea1}=_0xbcdb07;return _0x173ea1&&'src'==_0x173ea1['key']?_0x173ea1['newValue']&&_0x173ea1['oldValue']?{'type':'format','content':c(_0x38522e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x529b62=this['editor']['plugins']['get']('TrackChangesEditing');_0x529b62['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x529b62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x529b62['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x529b62['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb7b4b2=this['editor'],_0x37de8b=_0xb7b4b2['locale'];_0xb7b4b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465ef3=>{if('formatBlock'!=_0x465ef3['type']&&'formatInline'!=_0x465ef3['type'])return;const {data:_0x301bf1}=_0x465ef3;if(!_0x301bf1||'replaceImageSource'!=_0x301bf1['commandName'])return;return{'type':'format','content':c(_0x37de8b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1e29df{['afterInit'](){const _0x1c0635=this['editor'];if(!_0x1c0635['plugins']['has']('ImageStyleEditing'))return;const _0x288597=_0x1c0635['plugins']['get']('TrackChangesEditing'),_0x139677=_0x1c0635['plugins']['get']('ImageUtils'),_0x45fdc9={};_0x288597['enableCommand']('imageStyle',(_0x3c2ca5,_0xb9ac9f)=>{const _0x449605=_0x1c0635['plugins']['get']('Users')['me'],_0x32da17=_0x1c0635['commands']['get']('imageStyle');let _0x4a860e=_0x139677['getClosestSelectedImageElement'](_0x1c0635['model']['document']['selection']),_0x3d9024=_0x1c0635['model']['createRangeOn'](_0x4a860e),_0x87a8b3=_0x32da17['value'];if(_0x87a8b3==_0xb9ac9f['value'])return;const _0x25b5fa={'commandName':'imageStyle','commandParams':[_0xb9ac9f],'formatGroupId':_0x204c92()};_0x1c0635['model']['change'](()=>{if(_0x288597['getSuggestions']()['filter'](_0x4bf227=>_0x4bf227['isInContent']&&_0x449605==_0x4bf227['author']&&('formatBlock'==_0x4bf227['type']||'formatInline'==_0x4bf227['type'])&&('imageStylePreApply'==_0x4bf227['subType']||'imageStylePostApply'==_0x4bf227['subType'])&&_0x4bf227['getFirstRange']()['isEqual'](_0x3d9024))['forEach'](_0x81d7a5=>_0x288597['discardSuggestion'](_0x81d7a5['head'])),_0x4a860e=_0x139677['getClosestSelectedImageElement'](_0x1c0635['model']['document']['selection']),_0x3d9024=_0x1c0635['model']['createRangeOn'](_0x4a860e),_0x32da17['refresh'](),_0x1c0635['commands']['get']('imageTypeInline')['refresh'](),_0x1c0635['commands']['get']('imageTypeBlock')['refresh'](),_0x87a8b3=_0x32da17['value'],_0x87a8b3!=_0xb9ac9f['value'])return _0x139677['isInlineImage'](_0x4a860e)&&_0x32da17['shouldConvertImageType'](_0xb9ac9f['value'],_0x4a860e)?(_0x3c2ca5({..._0xb9ac9f,'setImageSizes':!0x1}),_0x4a860e=_0x139677['getClosestSelectedImageElement'](_0x1c0635['model']['document']['selection']),void _0x288597['markBlockFormat'](_0x4a860e,{..._0x25b5fa,'commandReversedParams':[{'value':_0x87a8b3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x139677['isBlockImage'](_0x4a860e)?_0x288597['markBlockFormat'](_0x4a860e,_0x25b5fa,[],'imageStylePostApply'):_0x288597['markInlineFormat'](_0x3d9024,_0x25b5fa,'imageStylePostApply'));});});for(const _0x3083b of _0x1c0635['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45fdc9[_0x3083b['name']]=_0x3083b['title']['toLowerCase']();_0x288597['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x288597['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x288597['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x288597['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2f777c])=>{_0x139677['setImageNaturalSizeAttributes'](_0x2f777c['getContainedElement']());}),_0x288597['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x42c4fb,_0x5d182b)=>{_0x288597['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x42c4fb,{'commandName':_0x5d182b['commandName'],'commandParams':_0x5d182b['commandReversedParams']});}),_0x288597['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ef027,_0x3d24bb){if(_0x1441e0(_0x4ef027,_0x3d24bb))return[_0x4ef027,_0x3d24bb];if(_0x1441e0(_0x3d24bb,_0x4ef027))return[_0x3d24bb,_0x4ef027];return null;});const _0x27c053=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1441e0(_0x145059,_0x426a1c){const _0x57b820=_0x27c053['findIndex'](({type:_0x3bb46f,subType:_0x411013})=>_0x145059['type']==_0x3bb46f&&_0x145059['subType']==_0x411013),_0x413918=_0x27c053['findIndex'](({type:_0x364613,subType:_0x15dd82})=>_0x426a1c['type']==_0x364613&&_0x426a1c['subType']==_0x15dd82);if(_0x57b820<0x0||_0x413918<0x0)return!0x1;const _0x3d960a=_0x145059['getFirstRange'](),_0x27a5b9=_0x426a1c['getFirstRange']();if((0x0==_0x57b820||0x1==_0x57b820)&&0x2==_0x413918&&_0x3d960a['isIntersecting'](_0x27a5b9))return!0x0;if(0x2==_0x57b820&&0x3==_0x413918){const _0x1d2314=_0x288597['_findSuggestions'](_0x3d960a,'insertion')['filter'](({suggestion:_0x735184,meta:_0x4963c7})=>_0x4963c7['isOwn']&&'convertInlineImageToBlock'==_0x735184['subType']);if(_0x1d2314['length']>0x1&&_0x27a5b9['end']['isEqual'](_0x3d960a['start']))return!0x0;if(0x1==_0x1d2314['length']&&(_0x3d960a['start']['isEqual'](_0x27a5b9['end'])||_0x3d960a['end']['isEqual'](_0x27a5b9['start'])))return!0x0;}if(0x3==_0x57b820&&0x3==_0x413918&&_0x3d960a['start']['isBefore'](_0x27a5b9['start'])){const _0xea4458=_0x3d960a['end']['nodeAfter'],_0x2179b1=_0x27a5b9['start']['nodeBefore'];return _0x139677['isBlockImage'](_0xea4458)&&_0xea4458===_0x2179b1;}return!0x1;}_0x1c0635['model']['document']['registerPostFixer'](()=>{let _0x599ab5=!0x1;const _0xe3c76d=Array['from'](_0x1c0635['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3be4a7,data:_0x3a84fd}of _0xe3c76d){const {group:_0xb04b38,type:_0x2c008f,subType:_0x3bc64c,id:_0x4dab1a}=_0x288597['_splitMarkerName'](_0x3be4a7);if('suggestion'==_0xb04b38&&_0x288597['hasSuggestion'](_0x4dab1a)){if('formatBlock'==_0x2c008f&&('imageStylePreApply'==_0x3bc64c||'imageStylePostApply'==_0x3bc64c)){const _0x1ef45f=_0x288597['getSuggestion'](_0x4dab1a);if(_0x3a84fd['newRange']){const _0x130252=_0x1ef45f['getFirstRange']()['getContainedElement']();if(_0x139677['isBlockImage'](_0x130252))continue;_0x288597['discardSuggestion'](_0x1ef45f),_0x599ab5=!0x0;}}if('insertion'==_0x2c008f&&'imageCaption'==_0x3bc64c&&!_0x3a84fd['newRange']){const _0x162ca0=_0x288597['getSuggestion'](_0x4dab1a);_0x162ca0['next']&&_0x162ca0['next']['isInContent']&&(_0x288597['discardSuggestion'](_0x162ca0['next']),_0x599ab5=!0x0);}}}return _0x599ab5;}),this['_registerLegacyDescription'](_0x45fdc9);}['_registerLegacyDescription'](_0x287c88){const _0x945875=this['editor'],_0x4853dd=_0x945875['locale'];_0x945875['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abd3f=>{if('formatBlock'!=_0x3abd3f['type']&&'formatInline'!=_0x3abd3f['type'])return;const {data:_0x1560c1}=_0x3abd3f;if(!_0x1560c1||'imageStyle'!=_0x1560c1['commandName'])return;const _0x45204b=_0x1560c1['commandParams'][0x0]['value'];return _0x1c14da('side'===_0x45204b?c(_0x4853dd,'FORMAT_SIDE_IMAGE'):_0x287c88[_0x45204b]||_0x45204b);function _0x1c14da(_0x2f0735){return{'type':'format','content':c(_0x4853dd,'*Format:*\x20%0',_0x2f0735)};}});}}class ut extends _0x1e29df{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x129bd2){super(_0x129bd2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e1dc6=this['editor'],_0x7857a3=_0x4e1dc6['commands']['get']('importWord'),_0x361b43=_0x4e1dc6['commands']['get']('trackChanges');_0x7857a3&&(_0x7857a3['on']('execute',(_0x2ae560,[,_0x34830d])=>{this['_trackChangesValueDuringImport']=_0x361b43['value'],_0x34830d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x7857a3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x7857a3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x361b43['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e1dc6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4be22e,_0x4b9821){const {suggestions:_0xcdefea}=_0x4b9821,_0x24093b=this['editor']['commands']['get']('trackChanges'),_0xb5cbe5=_0x24093b['value'];this['_trackChangesValueDuringImport']!==_0xb5cbe5&&(_0x24093b['execute'](),this['_trackChangesExecuted']=!0x0),_0xcdefea&&_0xcdefea['forEach'](({id:_0x42627a,type:_0x41c6a0,author:_0x5ea16f,created_at:_0x5c5643})=>{const _0x583352={'id':_0x42627a,'type':_0x41c6a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5ea16f,'createdAt':_0x5c5643?new Date(_0x5c5643):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x583352);});}}class ft extends _0x1e29df{['afterInit'](){const _0x1164e5=this['editor'],_0x40ee4e=_0x1164e5['plugins']['get']('TrackChangesEditing');if(_0x1164e5['plugins']['has']('IndentEditing')&&(_0x40ee4e['enableCommand']('indent'),_0x40ee4e['enableCommand']('outdent')),_0x1164e5['plugins']['has']('IndentBlock')){for(const _0x275608 of['indentBlock','outdentBlock'])_0x40ee4e['enableDefaultAttributesIntegration'](_0x275608);}const _0x4b9159=_0x1164e5['locale'];_0x40ee4e['registerBlockAttribute']('blockIndent'),_0x40ee4e['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4b9159,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47bd5c=this['editor'],_0x3af9a2=_0x47bd5c['locale'],_0x3ca92c=_0x47bd5c['plugins']['get']('TrackChangesEditing');_0x3ca92c['descriptionFactory']['registerDescriptionCallback'](_0x5159db=>{if('formatBlock'!=_0x5159db['type'])return;const {data:_0x11c6cf}=_0x5159db;if(!_0x11c6cf)return;if('indentBlock'!=_0x11c6cf['commandName']&&'outdentBlock'!=_0x11c6cf['commandName'])return;const _0x4f3a32=_0x5159db['getItems']()[0x0],_0x523491=_0x3ca92c['descriptionFactory']['getItemLabel'](_0x4f3a32);return'indentBlock'==_0x11c6cf['commandName']?{'type':'format','content':c(_0x3af9a2,'*Indent:*\x20%0',_0x523491)}:'outdentBlock'==_0x11c6cf['commandName']?{'type':'format','content':c(_0x3af9a2,'*Outdent:*\x20%0',_0x523491)}:void 0x0;});}}class ht extends _0x1e29df{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x1e29df{['afterInit'](){const _0xabb4d9=this['editor'];if(!_0xabb4d9['plugins']['has']('LinkEditing'))return;const _0x39360f=_0xabb4d9['plugins']['get']('TrackChangesEditing'),_0x41f25b=_0xabb4d9['commands']['get']('link');_0x39360f['enableDefaultAttributesIntegration']('link'),_0x39360f['enableDefaultAttributesIntegration']('unlink'),_0x39360f['registerInlineAttribute']('linkHref');for(const _0x5d3a36 of _0x41f25b['manualDecorators'])_0x39360f['registerInlineAttribute'](_0x5d3a36['id']),_0x39360f['descriptionFactory']['registerAttributeLabel'](_0x5d3a36['id'],'link\x20('+_0x5d3a36['label']['toLowerCase']()+')');_0x39360f['descriptionFactory']['registerDescriptionCallback'](_0x522b60=>{if('attribute'!=_0x522b60['type'])return;const {data:_0x5dbda7}=_0x522b60;if(!_0x5dbda7||'linkHref'!=_0x5dbda7['key'])return;const _0x4c011c=_0x5dbda7['newValue'],_0x237c62=_0xabb4d9['locale'];return{'type':'format','content':null==_0x4c011c?c(_0x237c62,'*Remove\x20link*'):c(_0x237c62,'*Set\x20link:*\x20%0','\x22'+_0x4c011c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e7b99=this['editor'],_0x30daa2=_0x1e7b99['locale'];_0x1e7b99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37daaa=>{if('formatInline'!=_0x37daaa['type'])return;const {data:_0x4a5029}=_0x37daaa;if(_0x4a5029){if('link'==_0x4a5029['commandName']){const _0x13f1c1=_0x4a5029['commandParams'][0x0];return{'type':'format','content':c(_0x30daa2,'*Set\x20link:*\x20%0','\x22'+_0x13f1c1+'\x22')};}return'unlink'==_0x4a5029['commandName']?{'type':'format','content':c(_0x30daa2,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x1e29df{['afterInit'](){const _0x4e412d=this['editor'],_0x2847cf=_0x4e412d['locale'];if(!_0x4e412d['plugins']['has']('LegacyListEditing'))return;const _0xb1fad2=_0x4e412d['plugins']['get']('TrackChangesEditing'),_0x17c637=_0x4e412d['plugins']['has']('LegacyTodoListEditing');function _0x42265d(_0x1206c4){return()=>{const _0x11d892=_0x4e412d['model']['document']['selection'],_0x239213=_0x4e412d['commands']['get'](_0x1206c4);if(_0x239213['value'])return void _0x4e412d['execute']('paragraph',{});const _0x5c6492=_0x1206c4['slice'](0x0,-0x4),_0x104f45=function(_0x55b7fb,_0x269b37,_0x46f567){let _0x492a93=Array['from'](_0x55b7fb)['filter'](_0x544623=>function(_0x392b8f,_0x4e27ba){return _0x4e27ba['checkChild'](_0x392b8f['parent'],'listItem')&&!_0x4e27ba['isObject'](_0x392b8f);}(_0x544623,_0x46f567));_0x492a93=_0x492a93['filter'](_0x38fc6e=>!_0x38fc6e['is']('element','listItem')||_0x38fc6e['getAttribute']('listType')!=_0x269b37);const _0xfa1502=new Set();for(const _0x5cf4cc of _0x492a93)_0x5cf4cc['is']('element','listItem')?_0xfa1502['add'](Le(_0x5cf4cc)):_0xfa1502['add'](_0x5cf4cc);return Array['from'](_0xfa1502);}(_0x11d892['getSelectedBlocks'](),_0x5c6492,_0x4e412d['model']['schema']);_0x4e412d['model']['change'](()=>{for(const _0x5157da of _0x104f45)_0xb1fad2['markBlockFormat'](_0x5157da,{'commandName':_0x1206c4,'commandParams':[{'forceValue':!_0x239213['value']}],'formatGroupId':'blockName'},Ee(_0x5157da));});};}function _0x59e8c4(_0x38aea0){return()=>{const _0x2ff983=function(_0x56b47c){let _0x266dcf=Array['from'](_0x56b47c);const _0x2105d5=_0x266dcf['findIndex'](_0x428b94=>'listItem'!=_0x428b94['name']);return _0x2105d5>-0x1&&(_0x266dcf=_0x266dcf['slice'](0x0,_0x2105d5)),_0x266dcf;}(_0x4e412d['model']['document']['selection']['getSelectedBlocks']()),_0x5151db=_0x4e412d['model']['createRange'](_0x4e412d['model']['createPositionAt'](_0x2ff983[0x0],'before'),_0x4e412d['model']['createPositionAt'](_0x2ff983[_0x2ff983['length']-0x1],'end'));_0x4e412d['model']['change'](()=>{_0xb1fad2['markBlockFormat'](_0x5151db,{'commandName':_0x38aea0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38c319){const _0x8e65f0=new Set();for(const _0x31049c of _0x38c319){let _0x2f31a0=_0x31049c['nextSibling'];for(;_0x2f31a0&&_0x2f31a0['getAttribute']('listIndent')>_0x31049c['getAttribute']('listIndent');)_0x8e65f0['add'](_0x2f31a0),_0x2f31a0=_0x2f31a0['nextSibling'];}return Array['from'](_0x8e65f0);}(_0x2ff983));});};}_0xb1fad2['enableCommand']('numberedList',_0x42265d('numberedList')),_0xb1fad2['enableCommand']('bulletedList',_0x42265d('bulletedList')),_0x17c637&&_0xb1fad2['enableCommand']('todoList',_0x42265d('todoList')),_0xb1fad2['enableCommand']('indentList',_0x59e8c4('indentList')),_0xb1fad2['enableCommand']('outdentList',_0x59e8c4('outdentList')),_0x17c637&&_0xb1fad2['enableCommand']('checkTodoList',()=>{const _0x45dcbe=_0x4e412d['commands']['get']('checkTodoList'),_0x1b4881=Array['from'](_0x45dcbe['_selectedElements']);_0x1b4881['filter'](_0x537eeb=>_0x537eeb['getAttribute']('todoListChecked')!=_0x45dcbe['value']),_0x4e412d['model']['change'](()=>{for(const _0x26ee88 of _0x1b4881)_0xb1fad2['markBlockFormat'](_0x26ee88,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x45dcbe['value']}]});});}),_0xb1fad2['descriptionFactory']['registerElementLabel']('listItem',_0x3c6733=>c(_0x2847cf,'ELEMENT_LIST_ITEM',_0x3c6733)),_0xb1fad2['descriptionFactory']['registerDescriptionCallback'](_0x4b8041=>{if('formatBlock'!=_0x4b8041['type']&&'formatInline'!=_0x4b8041['type'])return;const {data:_0x10de28}=_0x4b8041;if(_0x10de28){if('numberedList'==_0x10de28['commandName']||'bulletedList'==_0x10de28['commandName']||'todoList'==_0x10de28['commandName'])switch(_0x10de28['commandName']['replace']('List','')){case'bulleted':return _0x50b0d8(c(_0x2847cf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50b0d8(c(_0x2847cf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50b0d8(c(_0x2847cf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x10de28['commandName'])return{'type':'format','content':c(_0x2847cf,'*Indent:*\x20%0',c(_0x2847cf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x10de28['commandName'])return{'type':'format','content':c(_0x2847cf,'*Outdent:*\x20%0',c(_0x2847cf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x10de28['commandName'])return _0x10de28['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2847cf,'*Check\x20item*')}:{'type':'format','content':c(_0x2847cf,'*Uncheck\x20item*')};}function _0x50b0d8(_0x564bfc){return{'type':'format','content':c(_0x2847cf,'*Change\x20to:*\x20%0',_0x564bfc)};}});}}function Le(_0x300123){const _0xd66c9=_0x300123['getAttribute']('listIndent');if(0x0==_0xd66c9)return _0x300123;let _0x5e2d2c=_0x300123;for(;_0x300123['previousSibling']&&_0x300123['previousSibling']['is']('element','listItem');){const _0x25f6af=_0x300123['previousSibling']['getAttribute']('listIndent');if(_0x25f6af==_0xd66c9)_0x5e2d2c=_0x300123['previousSibling'];else{if(_0x25f6af<_0xd66c9)break;}_0x300123=_0x300123['previousSibling'];}return _0x5e2d2c;}function Ee(_0x4a6ba2){const _0xb9a253=[];if(_0x4a6ba2['is']('element','listItem')&&_0x4a6ba2['getAttribute']('listIndent')>0x0){let _0x430eaa=_0x4a6ba2['nextSibling'];for(;_0x430eaa&&'listItem'==_0x430eaa['name']&&_0x430eaa['getAttribute']('listIndent')==_0x4a6ba2['getAttribute']('listIndent');)_0xb9a253['push'](_0x430eaa),_0x430eaa=_0x430eaa['nextSibling'];}return _0xb9a253;}class Q extends _0x1e29df{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x15d9f8=this['editor']['config']['get']('list.properties'),_0x309cd0=this['editor']['plugins']['get']('TrackChangesEditing');_0x15d9f8['styles']&&_0x309cd0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x15d9f8['reversed']&&_0x309cd0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x15d9f8['startIndex']&&_0x309cd0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x309cd0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x419724,_0x45b2fd={}){const _0x237c86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8849a4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x237c86['markMultiRangeBlockFormat'](_0x8849a4,{'commandName':'listStyle','commandParams':[{'type':_0x45b2fd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x17ffda,_0x71e47f={}){const _0x8bfa0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x141156=this['_getSuggestionBlocks'](_0x1fe6bb=>_0x1fe6bb['is']('element','listItem')&&'numbered'===_0x1fe6bb['getAttribute']('listType'));if(_0x141156['length']<0x1)return;const _0x8a36d=_0x141156['map'](_0x195a01=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x195a01,'before'),this['editor']['model']['createPositionAt'](_0x195a01,0x0)));this['editor']['model']['change'](()=>{_0x8bfa0a['markMultiRangeBlockFormat'](_0x8a36d,{'commandName':'listReversed','commandParams':[{'reversed':_0x71e47f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e1706,_0xf4e3aa={}){const _0x1b002c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b27c7=this['_getSuggestionBlocks'](_0x5db6db=>_0x5db6db['is']('element','listItem')&&'numbered'===_0x5db6db['getAttribute']('listType'));if(_0x1b27c7['length']<0x1)return;const _0x59cf17=_0x1b27c7['map'](_0x4ac8c6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ac8c6,'before'),this['editor']['model']['createPositionAt'](_0x4ac8c6,0x0)));this['editor']['model']['change'](()=>{_0x1b002c['markMultiRangeBlockFormat'](_0x59cf17,{'commandName':'listStart','commandParams':[{'startIndex':_0xf4e3aa['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x45e7f4){if('formatBlock'!=_0x45e7f4['type']&&'formatInline'!=_0x45e7f4['type'])return;const _0x507c90=this['editor']['locale'],{data:_0x73d6e6}=_0x45e7f4;if(!_0x73d6e6)return;let _0x542dad,_0x5bfd8a;switch(_0x73d6e6['commandName']){case'listStyle':_0x542dad='*Change\x20to:*\x20%0',_0x5bfd8a={'type':'format','content':c(_0x507c90,_0x542dad,c(_0x507c90,this['_getTranslationKeyForListStyle'](_0x73d6e6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x542dad=_0x73d6e6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5bfd8a={'type':'format','content':c(_0x507c90,_0x542dad)};break;case'listStart':_0x542dad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5bfd8a={'type':'format','content':c(_0x507c90,_0x542dad,_0x73d6e6['commandParams'][0x0]['startIndex'])};}return _0x5bfd8a;}['_getSuggestionBlocksForListStyle'](){const _0x2a0cca=this['editor']['plugins']['get']('LegacyListUtils');let _0x1988cd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1988cd[0x0]?.['is']('element','listItem')&&_0x1988cd['unshift'](..._0x2a0cca['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1988cd[_0x1988cd['length']-0x1]?.['is']('element','listItem')&&_0x1988cd['push'](..._0x2a0cca['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1988cd=[...new Set(_0x1988cd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1988cd=_0x1988cd['filter'](_0x35b502=>_0x35b502['is']('element','listItem'))),_0x1988cd;}['_getSuggestionBlocks'](_0x20209d){const _0x39594b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4243ec=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x20209d)['map'](_0x20dfc7=>{const _0x40f2a7=this['editor']['model']['createPositionAt'](_0x20dfc7,0x0);return[..._0x39594b['getSiblingNodes'](_0x40f2a7,'backward'),..._0x39594b['getSiblingNodes'](_0x40f2a7,'forward')];})['flat']();return _0x4243ec=[...new Set(_0x4243ec)],_0x4243ec;}['_getTranslationKeyForListStyle'](_0x279ccf){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x279ccf)||'default')['toUpperCase']()+'_LIST_'+_0x279ccf['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x1e29df{['afterInit'](){const _0x2a5ea5=this['editor'];if(!_0x2a5ea5['plugins']['has']('MediaEmbedEditing'))return;const _0xe1c1c6=_0x2a5ea5['plugins']['get']('TrackChangesEditing'),_0x25e155=_0x2a5ea5['locale'];_0xe1c1c6['enableCommand']('mediaEmbed'),_0xe1c1c6['descriptionFactory']['registerElementLabel']('media',_0x5bef46=>c(_0x25e155,'ELEMENT_MEDIA',_0x5bef46)),_0x2a5ea5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xbc4aff,{writer:_0x43ca66,options:_0x5d4c02})=>{if(_0x5d4c02['showSuggestionHighlights'])return _0x43ca66['createEmptyElement']('div');},'converterPriority':'high'}),_0x2a5ea5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9e6397,_0x5abda8,_0x182def)=>{_0x182def['options']['showSuggestionHighlights']&&_0x9e6397['stop']();},{'priority':'high'});}}class pt extends _0x1e29df{['afterInit'](){const _0x307a06=this['editor'];_0x307a06['plugins']['has']('MentionEditing')&&_0x307a06['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x1e29df{['afterInit'](){const _0x507641=this['editor'];if(!_0x507641['plugins']['has']('MergeFieldsEditing'))return;const _0x4b081b=_0x507641['plugins']['get']('TrackChangesEditing'),_0x49302f=_0x507641['locale'];_0x4b081b['enableCommand']('insertMergeField'),_0x4b081b['enableCommand']('insertMergeFieldBlock'),_0x4b081b['enableCommand']('insertMergeFieldImage'),_0x4b081b['descriptionFactory']['registerElementLabel']('mergeField',_0x3c5f9b=>c(_0x49302f,'ELEMENT_MERGE_FIELD',_0x3c5f9b)),_0x4b081b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2f7f10=>c(_0x49302f,'ELEMENT_MERGE_FIELD',_0x2f7f10)),_0x4b081b['descriptionFactory']['registerDescriptionCallback'](_0x3eb473=>{if('insertion'!=_0x3eb473['type']&&'deletion'!=_0x3eb473['type'])return;const _0x48f52f=_0x3eb473['getContainedElement']();if(null==_0x48f52f)return;const _0x2f2806=_0x507641['plugins']['get']('MergeFieldsEditing');let _0x52151c;switch(_0x2f2806['getMergeFieldType'](_0x48f52f)){case null:return;case'image':{const _0x5e5b05=_0x2f2806['unwrapAffixes'](_0x48f52f['getAttribute']('src'));_0x52151c=_0x2f2806['getLabel'](_0x5e5b05)||_0x5e5b05;break;}default:{const _0x457643=_0x48f52f['getAttribute']('id');_0x52151c=_0x2f2806['getLabel'](_0x457643)||_0x457643;break;}}return'insertion'==_0x3eb473['type']?{'type':'insertion','content':c(_0x49302f,'*Insert:*\x20%0','\x22'+_0x52151c+'\x22\x20'+c(_0x49302f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x49302f,'*Remove:*\x20%0','\x22'+_0x52151c+'\x22\x20'+c(_0x49302f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x1e29df{['afterInit'](){const _0xcfa8ff=this['editor'],_0x454254=_0xcfa8ff['plugins']['get']('TrackChangesEditing');_0xcfa8ff['plugins']['has']('MultiLevelList')&&(_0x454254['enableDefaultAttributesIntegration']('multiLevelList'),_0x454254['registerBlockAttribute']('listMarkerStyle'),_0x454254['descriptionFactory']['registerDescriptionCallback'](_0x2b1092=>this['handleDescriptions'](_0x2b1092)));}['handleDescriptions'](_0x30fe43){const _0x217da5=this['editor']['locale'],{data:_0x56896d}=_0x30fe43,_0x41ea9f={'type':'format','content':''};if(_0x56896d&&'listMarkerStyle'==_0x56896d['key']){if(!_0x56896d['oldValue'])return{'type':'format','content':c(_0x217da5,'*Set\x20format:*\x20%0',c(_0x217da5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56896d['newValue']+')'};if(!_0x56896d['newValue']){let _0x58e5b3=_0x30fe43['head'];for(;_0x58e5b3;){if(_0x58e5b3['data']&&'listType'==_0x58e5b3['data']['key']&&_0x58e5b3['data']['newValue'])return _0x41ea9f;_0x58e5b3=_0x58e5b3['next'];}return{'type':'format','content':c(_0x217da5,'*Remove\x20format:*\x20%0',c(_0x217da5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x56896d['oldValue']+')'};}}}}class bt extends _0x1e29df{['afterInit'](){const _0x506bcb=this['editor'];if(!_0x506bcb['plugins']['has']('PageBreakEditing'))return;_0x506bcb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x102643=_0x506bcb['plugins']['get']('TrackChangesEditing'),_0xf8920=_0x506bcb['locale'];_0x102643['descriptionFactory']['registerElementLabel']('pageBreak',_0x4360f8=>c(_0xf8920,'ELEMENT_PAGE_BREAK',_0x4360f8));}}class yt extends _0x1e29df{['afterInit'](){const _0x19d85f=this['editor'];if(!_0x19d85f['plugins']['has']('Paragraph'))return;const _0x5b6395=_0x19d85f['locale'],_0x310344=_0x19d85f['plugins']['get']('TrackChangesEditing');_0x310344['descriptionFactory']['registerElementLabel']('paragraph',_0x81d31c=>c(_0x5b6395,'ELEMENT_PARAGRAPH',_0x81d31c)),_0x310344['enableDefaultAttributesIntegration']('paragraph'),_0x310344['enableCommand']('insertParagraph'),_0x19d85f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x19d85f),{'priority':'highest'}),_0x19d85f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x517abc,_0xcf16bc,_0x3e0527)=>{_0x3e0527['options']['showSuggestionHighlights']&&nr(_0x19d85f,{'showActiveMarker':!0x1})(_0x517abc,_0xcf16bc,_0x3e0527);},{'priority':'highest'});const _0x4eaef2=_0x310344['descriptionFactory'];_0x4eaef2['registerDescriptionCallback'](_0x335096=>{if('insertion'!==_0x335096['type'])return;const {start:_0x4d595f,end:_0xdd7952}=_0x335096['getFirstRange']();if(!_0x4d595f['isTouching'](_0xdd7952)||!_0x4d595f['nodeAfter'])return;const _0x5a2073=_0x19d85f['model']['schema'],_0x4656c4=_0x4d595f['nodeAfter'];return _0x5a2073['isBlock'](_0x4656c4)&&!_0x5a2073['isLimit'](_0x4656c4)&&_0x5a2073['checkChild'](_0x4656c4,'$text')?{'type':'insertion','content':c(_0x5b6395,'*Insert:*\x20%0',_0x4eaef2['getItemLabel'](_0x4656c4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25cf1c=this['editor'],_0x50a1d8=_0x25cf1c['locale'];_0x25cf1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x498076=>{if('formatBlock'!=_0x498076['type'])return;const {data:_0x296573}=_0x498076;return _0x296573&&'paragraph'==_0x296573['commandName']?{'type':'format','content':c(_0x50a1d8,'*Change\x20to:*\x20%0',c(_0x50a1d8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2682aa,{showActiveMarker:_0x27a9aa=!0x0}={}){return(_0x5176a9,_0x5b4b08,_0x598913)=>{const _0xa93e40=_0x2682aa['plugins']['get']('TrackChangesEditing'),_0x486b66=_0x5b4b08['markerRange']['start'],_0x5c6055=_0x5b4b08['markerRange']['end'],_0x47a20f=_0x2682aa['model']['schema'];if(!_0x486b66['isTouching'](_0x5c6055)||!_0x486b66['nodeAfter'])return;const _0x25c91b=_0x486b66['nodeAfter'];if(_0x47a20f['isBlock'](_0x25c91b)&&!_0x47a20f['isLimit'](_0x25c91b)&&_0x47a20f['checkChild'](_0x25c91b,'$text')){if(!_0x598913['consumable']['consume'](_0x5b4b08['markerRange'],_0x5176a9['name']))return;const {id:_0x548216,authorId:_0x299312}=_0xa93e40['_splitMarkerName'](_0x5b4b08['markerName']),_0x3dd9f2=_0x598913['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x548216,'data-author-id':_0x299312}),_0x4dec72=_0x598913['mapper']['toViewPosition'](_0x5c6055);_0x27a9aa&&_0xa93e40['activeMarkers']['includes'](_0x5b4b08['markerName'])&&_0x598913['writer']['addClass']('ck-suggestion-marker--active',_0x3dd9f2),_0x598913['writer']['insert'](_0x4dec72,_0x3dd9f2),_0x598913['mapper']['bindElementToMarker'](_0x3dd9f2,_0x5b4b08['markerName']);}};}class St extends _0x1e29df{['afterInit'](){const _0x399a79=this['editor'];_0x399a79['commands']['get']('replaceSource')&&_0x399a79['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x1e29df{['afterInit'](){const _0x1cc818=this['editor'];if(!_0x1cc818['plugins']['has']('RemoveFormatEditing'))return;_0x1cc818['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49824b=this['editor'];_0x49824b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc3eb4a=>{if('formatBlock'!=_0xc3eb4a['type']&&'formatInline'!=_0xc3eb4a['type'])return;const {data:_0x2014a8}=_0xc3eb4a;return _0x2014a8&&'removeFormat'==_0x2014a8['commandName']?{'type':'format','content':c(_0x49824b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x1e29df{['afterInit'](){const _0x3430ad=this['editor'];if(!_0x3430ad['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x541c68=_0x3430ad['plugins']['get']('TrackChangesEditing');_0x541c68['enableCommand']('goToPreviousRestrictedEditingException'),_0x541c68['enableCommand']('goToNextRestrictedEditingException');const _0x49c02a=_0x3430ad['plugins']['get']('RestrictedEditingModeEditing');_0x49c02a['enableCommand']('trackChanges'),_0x49c02a['enableCommand']('acceptSuggestion'),_0x49c02a['enableCommand']('discardSuggestion'),_0x49c02a['enableCommand']('acceptAllSuggestions'),_0x49c02a['enableCommand']('discardAllSuggestions'),_0x49c02a['enableCommand']('acceptSelectedSuggestions'),_0x49c02a['enableCommand']('discardSelectedSuggestions');}}class At extends _0x1e29df{['afterInit'](){const _0xb31a4a=this['editor'];if(!_0xb31a4a['plugins']['has']('ShiftEnter'))return;const _0xbe8340=_0xb31a4a['plugins']['get']('TrackChangesEditing');_0xbe8340['enableCommand']('shiftEnter'),_0xb31a4a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xb31a4a),{'priority':'high'}),_0xb31a4a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xb31a4a),{'priority':'high'}),_0xb31a4a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd70b8d,_0x1d88f7,_0x4a49ce)=>{_0x4a49ce['options']['showSuggestionHighlights']&&je(_0xb31a4a,{'showActiveMarker':!0x1})(_0xd70b8d,_0x1d88f7,_0x4a49ce);}),_0xbe8340['descriptionFactory']['registerElementLabel']('softBreak',_0x2272e7=>c(_0xb31a4a['locale'],'ELEMENT_LINE_BREAK',_0x2272e7));}}function je(_0x4ec90a,{showActiveMarker:_0xe020d7=!0x0}={}){return(_0x4633e0,_0x511ffb,_0x4327bf)=>{const _0x52f0d3=_0x4ec90a['plugins']['get']('TrackChangesEditing');if(!_0x4327bf['consumable']['test'](_0x511ffb['markerRange'],_0x4633e0['name']))return;const _0x13a647=_0x4ec90a['model'];for(const _0x4f6e84 of _0x511ffb['markerRange']['getItems']()){if(!_0x4f6e84['is']('element','softBreak'))continue;const _0x36b570='deletion'==_0x511ffb['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3e6a27,authorId:_0x3bafe0}=_0x52f0d3['_splitMarkerName'](_0x511ffb['markerName']),_0x571a38=_0x4327bf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36b570,'data-suggestion':_0x3e6a27,'data-author-id':_0x3bafe0}),_0x5cce04=_0x4327bf['mapper']['toViewPosition'](_0x13a647['createPositionBefore'](_0x4f6e84));_0xe020d7&&_0x52f0d3['activeMarkers']['includes'](_0x511ffb['markerName'])&&_0x4327bf['writer']['addClass']('ck-suggestion-marker--active',_0x571a38),_0x4327bf['writer']['insert'](_0x5cce04,_0x571a38),_0x4327bf['mapper']['bindElementToMarker'](_0x571a38,_0x511ffb['markerName']);}};}class _t extends _0x1e29df{['afterInit'](){const _0x347720=this['editor'],_0x1fd523=_0x347720['model'],_0x576090=_0x347720['locale'];if(!_0x347720['plugins']['has']('StandardEditingModeEditing'))return;const _0x10329a=_0x347720['plugins']['get']('TrackChangesEditing'),_0x207c9b='restrictedEditingException',_0x59d008=_0x347720['commands']['get'](_0x207c9b);_0x10329a['enableCommand'](_0x207c9b,(_0xaec5e,_0x44c109={})=>{const _0x1f1dac=_0x1fd523['document']['selection'];if(_0x1f1dac['isCollapsed'])return void _0xaec5e(_0x44c109);const _0x52c036=void 0x0!==_0x44c109['forceValue']?_0x44c109['forceValue']:!_0x59d008['value'];_0x1fd523['change'](()=>{const _0x258cb2=Array['from'](_0x1f1dac['getRanges']());for(const _0x242475 of _0x258cb2){const _0x554d59=_0x52c036?[_0x242475]:io(_0x207c9b,_0x242475,_0x1fd523);for(const _0x2afb8c of _0x554d59)_0x10329a['markInlineFormat'](_0x2afb8c,{'commandName':_0x207c9b,'commandParams':[{'forceValue':_0x52c036}]});}});}),_0x10329a['descriptionFactory']['registerDescriptionCallback'](_0x527510=>{if('formatBlock'!=_0x527510['type']&&'formatInline'!=_0x527510['type'])return;const {data:_0x17f292}=_0x527510;return _0x17f292&&_0x17f292['commandName']==_0x207c9b?_0x17f292['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x576090,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x576090,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x1e29df{['afterInit'](){const _0x328bb3=this['editor'];if(!_0x328bb3['plugins']['has']('Style')||!_0x328bb3['plugins']['has']('DataSchema'))return;const _0x5f8e22=_0x328bb3['plugins']['get']('TrackChangesEditing'),_0x3b41b4=_0x328bb3['locale'],_0x3dc302=_0x328bb3['config']['get']('style')||{},_0x20bfb6=_0x328bb3['plugins']['get']('GeneralHtmlSupport'),_0x26ca1b=_0x328bb3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x328bb3['plugins']['get']('DataSchema'),_0x3dc302['definitions']);_0x5f8e22['enableDefaultAttributesIntegration']('style');const _0x10fc9b=new Set();for(const _0x4da784 of _0x26ca1b['block']){const _0xd747=_0x20bfb6['getGhsAttributeNameForElement'](_0x4da784['element']);_0x10fc9b['add'](_0xd747);}const _0x517f1f=new Set();for(const _0x36b724 of _0x26ca1b['inline']){const _0x1756ff=_0x20bfb6['getGhsAttributeNameForElement'](_0x36b724['element']);_0x517f1f['add'](_0x1756ff);for(const _0x286e53 of _0x36b724['ghsAttributes'])_0x517f1f['add'](_0x286e53);}for(const _0x11c3b3 of _0x10fc9b)_0x5f8e22['registerBlockAttribute'](_0x11c3b3),_0x5f8e22['descriptionFactory']['registerAttributeLabel'](_0x11c3b3,c(_0x3b41b4,'FORMAT_STYLE'));for(const _0x55ea58 of _0x517f1f)_0x5f8e22['registerInlineAttribute'](_0x55ea58),_0x5f8e22['descriptionFactory']['registerAttributeLabel'](_0x55ea58,c(_0x3b41b4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x371ade=this['editor'],_0x2bfb92=_0x371ade['locale'];_0x371ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb371=>{if('formatBlock'!=_0x4fb371['type']&&'formatInline'!=_0x4fb371['type'])return;const {data:_0x49f028}=_0x4fb371;return _0x49f028&&'style'===_0x49f028['commandName']?_0x49f028['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2bfb92,'*Set\x20format:*\x20%0',_0x49f028['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2bfb92,'*Remove\x20format:*\x20%0',_0x49f028['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x1e29df{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x28fbf8){super(_0x28fbf8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2b055c=this['editor'],_0x18bfe0=_0x2b055c['model']['document']['selection'];if(!_0x2b055c['plugins']['has']('TableEditing'))return;const _0x2ea32b=_0x2b055c['locale'],_0x46b926=_0x2b055c['plugins']['get']('TrackChangesEditing'),_0x3ef6cd=_0x2b055c['plugins']['get']('TableUtils');_0x46b926['descriptionFactory']['registerElementLabel']('table',_0x243413=>c(_0x2ea32b,'ELEMENT_TABLE',_0x243413)),this['_setupColumnsRowsFixing'](),_0x46b926['enableCommand']('insertTable'),_0x46b926['enableCommand']('selectTableRow'),_0x46b926['enableCommand']('selectTableColumn');for(const _0x269ea5 of['insertTableRowAbove','insertTableRowBelow']){const _0xae23fc=_0x2b055c['commands']['get'](_0x269ea5);_0x46b926['enableCommand'](_0x269ea5,_0x4fc796=>{_0x2b055c['model']['change'](_0x30e65c=>{_0x4fc796();const _0x2ff746='above'===_0xae23fc['order'],_0x1ba27f=_0x3ef6cd['getSelectionAffectedTableCells'](_0x18bfe0),_0x527a81=_0x3ef6cd['getRowIndexes'](_0x1ba27f),_0x5d529e=_0x2ff746?_0x527a81['first']-0x1:_0x527a81['last']+0x1,_0x376c8d=_0x1ba27f[0x0]['findAncestor']('table'),_0x25639d=_0x3ef6cd['createTableWalker'](_0x376c8d,{'startRow':_0x5d529e,'endRow':_0x5d529e}),_0x19da3f=Array['from'](_0x25639d)['map'](_0x53dfae=>_0x30e65c['createRangeOn'](_0x53dfae['cell']));_0x46b926['markMultiRangeInsertion'](_0x19da3f,'tableRow');});});}for(const _0x123a3d of['insertTableColumnLeft','insertTableColumnRight']){const _0x4cc95f=_0x2b055c['commands']['get'](_0x123a3d);_0x46b926['enableCommand'](_0x123a3d,_0x51b29b=>{_0x2b055c['model']['change'](_0x48b872=>{_0x51b29b();const _0x1381a5='left'===_0x4cc95f['order'],_0x482a70=_0x3ef6cd['getSelectionAffectedTableCells'](_0x18bfe0),_0x1dcb0b=_0x3ef6cd['getColumnIndexes'](_0x482a70),_0x3877fb=_0x1381a5?_0x1dcb0b['first']-0x1:_0x1dcb0b['last']+0x1,_0x4f6deb=_0x482a70[0x0]['findAncestor']('table'),_0x274e06=_0x3ef6cd['createTableWalker'](_0x4f6deb,{'startRow':0x0,'column':_0x3877fb,'includeAllSlots':!0x1}),_0x3c42cf=Array['from'](_0x274e06)['map'](_0x1ddd5f=>_0x48b872['createRangeOn'](_0x1ddd5f['cell']));_0x46b926['markMultiRangeInsertion'](_0x3c42cf,'tableColumn');});});}for(const _0x522ae8 of['removeTableRow','removeTableColumn']){const _0x59e47e=_0x522ae8['substr'](0xb),_0x58d53d=_0x59e47e['toLowerCase'](),_0x56e540=_0x58d53d['substr'](0x0,0x3)+'span',_0x51867d='table'+_0x59e47e,_0x2d981d='min'+_0x59e47e,_0x1ba86c='max'+_0x59e47e;_0x46b926['enableCommand'](_0x522ae8,()=>{_0x2b055c['model']['change'](_0x44a0eb=>{const _0x34e59e=_0x3ef6cd['getSelectionAffectedTableCells'](_0x18bfe0),_0x37f92f=_0x34e59e[0x0]['findAncestor']('table');let _0x39e3d3;if('removeTableRow'==_0x522ae8){const _0x2c54c5=_0x3ef6cd['getRowIndexes'](_0x34e59e);_0x39e3d3={'startRow':_0x2c54c5['first'],'endRow':_0x2c54c5['last'],'includeAllSlots':!0x0};}else{const _0x4522da=_0x3ef6cd['getColumnIndexes'](_0x34e59e);_0x39e3d3={'startColumn':_0x4522da['first'],'endColumn':_0x4522da['last'],'includeAllSlots':!0x0};}const _0x317bb6=_0x3ef6cd['createTableWalker'](_0x37f92f,_0x39e3d3),_0x1c8d83=Array['from'](_0x317bb6)['map'](({cell:_0x2e08a5})=>_0x2e08a5),_0x45e66f=xe(_0x1c8d83['filter'](_0x377a44=>_0x377a44['hasAttribute'](_0x56e540))),_0x4da12b=xe(_0x1c8d83['filter'](_0x36b279=>!_0x36b279['hasAttribute'](_0x56e540)))['map'](_0x59b178=>_0x44a0eb['createRangeOn'](_0x59b178)),_0x32badf=_0x46b926['markMultiRangeDeletion'](_0x4da12b,_0x51867d);if(_0x32badf&&('tableRow'==_0x32badf['subType']||'tableColumn'==_0x32badf['subType'])){const _0x48c6f4=this['_getSuggestionCoords'](_0x32badf);for(const _0x521f4b of _0x45e66f){const _0x716a47=_0x44a0eb['createRangeOn'](_0x521f4b),_0x541ad6=_0x3ef6cd['getCellLocation'](_0x521f4b),_0x1903ff=_0x521f4b['getAttribute'](_0x56e540)-0x1,_0x2bbf17=_0x48c6f4[_0x2d981d],_0x4c6188=_0x48c6f4[_0x1ba86c];_0x2bbf17<=_0x541ad6[_0x58d53d]&&_0x541ad6[_0x58d53d]+_0x1903ff<=_0x4c6188&&_0x32badf['addRange'](_0x716a47);}}});});}function _0x3a66aa(_0xe33abf){const _0x56e354=Array['from'](_0x18bfe0['getRanges']())['map'](_0xe1c26c=>_0x2229f7['fromRange'](_0xe1c26c));_0x2b055c['model']['change'](_0xcffef0=>{const _0x15e045=_0xcffef0['batch'];_0xe33abf=_0xe33abf['filter'](_0xcd98e0=>'$graveyard'!=_0xcd98e0['root']['rootName']),_0xcffef0['setSelection'](_0xe33abf),_0x2b055c['commands']['get']('removeTableRow')['refresh'](),_0x2b055c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b055c['model']['enqueueChange'](()=>{_0x2b055c['model']['enqueueChange'](_0x15e045,_0x37719d=>{const _0x3d4481=_0x56e354['filter'](_0x17e2b9=>'$graveyard'!=_0x17e2b9['root']['rootName']);_0x3d4481['length']>0x0&&_0x37719d['setSelection'](_0x3d4481);for(const _0x71285f of _0x56e354)_0x71285f['detach']();});});});}function _0x3be2a7(_0x2eb989){_0x2b055c['model']['change'](_0x210a76=>{const _0x3a1e50=Array['from'](_0x18bfe0['getRanges']())['map'](_0xd7233b=>_0x2229f7['fromRange'](_0xd7233b)),_0x5b09ed=[];for(const _0x3f9924 of _0x2eb989)for(const _0x5584dc of _0x3f9924['getItems']({'shallow':!0x0}))_0x5b09ed['push'](_0x5584dc);for(const _0x283f5c of _0x5b09ed)'$graveyard'!=_0x283f5c['root']['rootName']&&(_0x210a76['setSelection'](_0x210a76['createPositionAt'](_0x283f5c,0x0)),_0x2b055c['commands']['get']('removeTableColumn')['refresh'](),_0x2b055c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x257931=_0x3a1e50['filter'](_0x58cb66=>'$graveyard'!=_0x58cb66['root']['rootName']);_0x257931['length']>0x0&&_0x210a76['setSelection'](_0x257931);for(const _0x427648 of _0x3a1e50)_0x427648['detach']();});}function _0x4e2ac1(_0x493b6f,_0x31bdc4){return _0x31bdc4['every'](_0x54fef8=>_0x493b6f['some'](_0x2849e7=>_0x2849e7['end']['isEqual'](_0x54fef8['start'])||_0x54fef8['end']['isEqual'](_0x2849e7['start'])));}function _0x1fbdfe(_0xb9cf98,_0x3b1932){return!_0xb9cf98['some'](_0x22a7ba=>_0x3b1932['some'](_0x3dc4bf=>_0x22a7ba['isIntersecting'](_0x3dc4bf)))&&_0xb9cf98['some'](_0xdf347e=>_0x3b1932['some'](_0x255e5f=>_0xdf347e['end']['isTouching'](_0x255e5f['start'])));}_0x2b055c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3409ca,_0x223e6e,_0x38eab3)=>{if(!_0x38eab3['options']['showSuggestionHighlights'])return;const _0x52c8e7=_0x223e6e['item'];if(!_0x52c8e7||!_0x52c8e7['is']('element','tableCell'))return;const _0x575507=_0x38eab3['mapper']['toViewElement'](_0x52c8e7);if(_0x575507){const {id:_0xf6598b,authorId:_0x12672d}=_0x46b926['_splitMarkerName'](_0x223e6e['markerName']);_0x9b7e2e(_0x575507,_0x38eab3['writer'],(_0xe58e11,_0x5a3218,_0x32cf83)=>{_0x32cf83['addClass'](_0x41eeea(_0x5a3218['classes']),_0xe58e11),_0x32cf83['setAttribute']('data-suggestion-id',_0xf6598b,_0xe58e11),_0x32cf83['setAttribute']('data-author-id',_0x12672d,_0xe58e11);},(_0x411795,_0x34dc40,_0x56c6a8)=>{_0x56c6a8['removeClass'](_0x41eeea(_0x34dc40['classes']),_0x411795),_0x56c6a8['removeAttribute']('data-suggestion-id',_0x411795),_0x56c6a8['removeAttribute']('data-author-id',_0x411795);});}},{'priority':'highest'}),_0x46b926['descriptionFactory']['registerDescriptionCallback'](_0x34787c=>{if('insertion'!=_0x34787c['type']&&'deletion'!=_0x34787c['type'])return;const _0x451d83=_0x34787c['getContainedElement']();if(null!=_0x451d83&&_0x451d83['is']('element','table')){if('insertion'==_0x34787c['type']){const _0x2da21c=_0x34787c['getItems']()['filter'](_0x49f9ba=>_0x49f9ba['is']('$textProxy'))['map'](_0x29e550=>_0x29e550['data']);if(_0x2da21c['length'])return{'type':'insertion','content':c(_0x2ea32b,'*Insert:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2da21c['join']('\x20')+'\x22'))};}if('deletion'==_0x34787c['type']){const _0x4653af=_0x34787c['getItems']()['filter'](_0x53dadf=>_0x53dadf['is']('$textProxy'))['map'](_0x4829b3=>_0x4829b3['data']);if(_0x4653af['length'])return{'type':'deletion','content':c(_0x2ea32b,'*Remove:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4653af['join']('\x20')+'\x22'))};}}}),_0x46b926['descriptionFactory']['registerDescriptionCallback'](_0x59b166=>{if('tableRow'==_0x59b166['subType']){const _0x28c8a0=_0x59b166['getItems']()['filter'](_0x22cc66=>_0x22cc66['is']('$textProxy'))['map'](_0x23f1e8=>_0x23f1e8['data']),_0x267933=this['_getSuggestionCoords'](_0x59b166),_0x503d8d=_0x267933['maxRow']-_0x267933['minRow']+0x1;if('insertion'==_0x59b166['type'])return _0x28c8a0['length']?{'type':'insertion','content':c(_0x2ea32b,'*Insert:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x503d8d,'\x22'+_0x28c8a0['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ea32b,'*Insert:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_ROW',_0x503d8d))};if('deletion'==_0x59b166['type'])return _0x28c8a0['length']?{'type':'deletion','content':c(_0x2ea32b,'*Remove:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x503d8d,'\x22'+_0x28c8a0['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ea32b,'*Remove:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_ROW',_0x503d8d))};}if('tableColumn'==_0x59b166['subType']){const _0x20e295=_0x59b166['getItems']()['filter'](_0x213f88=>_0x213f88['is']('$textProxy'))['map'](_0x4abebc=>_0x4abebc['data']),_0x3e8abd=this['_getSuggestionCoords'](_0x59b166),_0x37dc06=_0x3e8abd['maxColumn']-_0x3e8abd['minColumn']+0x1;if('insertion'==_0x59b166['type'])return _0x20e295['length']?{'type':'insertion','content':c(_0x2ea32b,'*Insert:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37dc06,'\x22'+_0x20e295['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ea32b,'*Insert:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_COLUMN',_0x37dc06))};if('deletion'==_0x59b166['type'])return _0x20e295['length']?{'type':'deletion','content':c(_0x2ea32b,'*Remove:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37dc06,'\x22'+_0x20e295['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ea32b,'*Remove:*\x20%0',c(_0x2ea32b,'ELEMENT_TABLE_COLUMN',_0x37dc06))};}}),_0x46b926['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3a66aa),_0x46b926['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3a66aa),_0x46b926['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3be2a7),_0x46b926['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3be2a7),_0x46b926['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e2ac1),_0x46b926['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e2ac1),_0x46b926['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1fbdfe),_0x46b926['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1fbdfe);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37a83e=this['editor'],_0x4d8014=_0x37a83e['model']['document']['selection'];return(_0x473671,_0x4b0659)=>{_0x37a83e['model']['change'](_0x2580b0=>{const {commandName:_0x2beea5,commandParams:_0x27bda0}=_0x4b0659;let _0x4f04aa=_0x473671[0x0]['end']['nodeBefore'];_0x27bda0&&_0x27bda0[0x0]&&!0x1===_0x27bda0[0x0]['forceValue']&&(_0x4f04aa=_0x473671[0x0]['start']['nodeAfter']);const _0x1df3f5=_0x2580b0['createRangeIn'](_0x4f04aa);if('$graveyard'==_0x1df3f5['root']['rootName'])return;const _0x80b605=Array['from'](_0x4d8014['getRanges']())['map'](_0x1e653e=>_0x2229f7['fromRange'](_0x1e653e));_0x2580b0['setSelection'](_0x1df3f5),_0x37a83e['commands']['get'](_0x2beea5)['refresh'](),_0x27bda0['push']({'forceDefaultExecution':!0x0}),_0x37a83e['execute'](_0x2beea5,..._0x27bda0);const _0x21dea0=_0x80b605['filter'](_0x33e6c1=>'$graveyard'!=_0x33e6c1['root']['rootName']);_0x21dea0['length']>0x0&&_0x2580b0['setSelection'](_0x21dea0);for(const _0x48c962 of _0x80b605)_0x48c962['detach']();});};}['_getCoordsForCells'](_0x4c2f77){const _0x42b777=this['editor']['plugins']['get']('TableUtils');let _0x33d163=Number['MAX_SAFE_INTEGER'],_0x2b5594=Number['MIN_SAFE_INTEGER'],_0x19d8ad=Number['MAX_SAFE_INTEGER'],_0x4e8c1a=Number['MIN_SAFE_INTEGER'];for(const _0x403257 of _0x4c2f77){if('$graveyard'==_0x403257['root']['rootName'])continue;const {row:_0x239ec1,column:_0x19e9ef}=_0x42b777['getCellLocation'](_0x403257),_0x245ad5=_0x403257['hasAttribute']('rowspan')?_0x403257['getAttribute']('rowspan')-0x1:0x0,_0x4890a4=_0x403257['hasAttribute']('colspan')?_0x403257['getAttribute']('colspan')-0x1:0x0;_0x33d163=_0x239ec1<_0x33d163?_0x239ec1:_0x33d163,_0x2b5594=_0x239ec1+_0x245ad5>_0x2b5594?_0x239ec1+_0x245ad5:_0x2b5594,_0x19d8ad=_0x19e9ef<_0x19d8ad?_0x19e9ef:_0x19d8ad,_0x4e8c1a=_0x19e9ef+_0x4890a4>_0x4e8c1a?_0x19e9ef+_0x4890a4:_0x4e8c1a;}return{'minRow':_0x33d163,'maxRow':_0x2b5594,'minColumn':_0x19d8ad,'maxColumn':_0x4e8c1a};}['_setupColumnsRowsFixing'](){const _0x37b631=this['editor'],_0xb26beb=_0x37b631['plugins']['get']('TrackChangesEditing'),_0x21921c=_0x37b631['plugins']['get']('TableUtils');_0x37b631['model']['document']['on']('change:data',()=>{const _0x409a34=Array['from'](_0x37b631['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48797d,data:_0x2bd559}of _0x409a34){const {group:_0x1b5884,id:_0x1d8f3d,subType:_0x2dd5e0}=_0xb26beb['_splitMarkerName'](_0x48797d);if('suggestion'!=_0x1b5884)continue;if(null!=_0x2bd559['oldRange'])continue;const _0x53460d=_0xb26beb['getSuggestion'](_0x1d8f3d);this['_tablePostFixingSubtypes']['includes'](_0x2dd5e0)&&this['_tableSuggestions']['add'](_0x53460d);}},{'priority':'low'});const _0x4ba7a9=(_0x4b6709,_0x35e9cc)=>{let _0x1be8db=!0x1;const _0x4f02f6=_0x35e9cc['createRangeOn'](_0x4b6709),_0x3f4cd3=_0x4b6709['findAncestor']('table'),_0x41c896=_0x21921c['getCellLocation'](_0x4b6709);for(const _0x55e707 of this['_tableSuggestions']){const _0x5defa5=_0x55e707['subType'],_0xf7f5af=_0x5defa5['startsWith']('tablePaste'),_0x433ef8=_0x5defa5['substr'](_0xf7f5af?0xa:0x5),_0x572fcf=_0x433ef8['toLowerCase'](),_0x1e0f7e=_0x572fcf['substr'](0x0,0x3)+'span',_0x56daed='min'+_0x433ef8,_0x34809e='max'+_0x433ef8;if(!_0x55e707['isInContent'])continue;if(_0x3f4cd3!=_0x55e707['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x55e707['isIntersectingWithRange'](_0x4f02f6))continue;const _0x2d8ac7=_0x4b6709['hasAttribute'](_0x1e0f7e)?_0x4b6709['getAttribute'](_0x1e0f7e)-0x1:0x0,_0x72ad0b=this['_getSuggestionCoords'](_0x55e707),_0x27cbd1=_0x72ad0b[_0x56daed],_0x94bc88=_0x72ad0b[_0x34809e];_0x27cbd1<=_0x41c896[_0x572fcf]&&_0x41c896[_0x572fcf]+_0x2d8ac7<=_0x94bc88&&(_0x55e707['addRange'](_0x4f02f6),_0x1be8db=!0x0);}return _0x1be8db;};_0x37b631['model']['document']['registerPostFixer'](_0x5c96e6=>{let _0x4ca80a=!0x1;for(const _0x516c47 of _0x37b631['model']['document']['differ']['getChanges']())if('insert'==_0x516c47['type']){if('tableRow'==_0x516c47['name']){for(const _0x1ea972 of _0x516c47['position']['nodeAfter']['getChildren']())_0x4ca80a=_0x4ca80a||_0x4ba7a9(_0x1ea972,_0x5c96e6);}else'tableCell'==_0x516c47['name']&&(_0x4ca80a=_0x4ca80a||_0x4ba7a9(_0x516c47['position']['nodeAfter'],_0x5c96e6));}return _0x4ca80a;});}['_getSuggestionCoords'](_0x14efea){return this['_getCoordsForCells'](_0x14efea['getRanges']()['map'](_0x56f667=>_0x56f667['start']['nodeAfter']));}}function xe(_0x586cbd){return Array['from'](new Set(_0x586cbd)['values']());}class Nt extends _0x1e29df{static get['requires'](){return[Ct];}['afterInit'](){const _0x3b7d52=this['editor'],_0x26dfd6=_0x3b7d52['model']['document']['selection'],_0x474c9c=_0x3b7d52['locale'];if(!_0x3b7d52['plugins']['has']('TableEditing'))return;const _0x12f5fd=_0x3b7d52['plugins']['get']('TrackChangesEditing'),_0x36c606=_0x3b7d52['plugins']['get']('TableUtils'),_0x4a2c6b=_0x3b7d52['plugins']['get'](Ct);_0x4a2c6b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12f5fd['enableCommand']('mergeTableCells',()=>{const _0x5bce07=_0x36c606['getSelectionAffectedTableCells'](_0x3b7d52['model']['document']['selection']);_0x3b7d52['model']['change'](()=>{_0x12f5fd['markMultiRangeBlockFormat'](_0x5bce07,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3b7d52['commands']['get']('mergeTableCells')['on']('execute',(_0x406fa5,_0x4ddf2e)=>{_0x3b7d52['commands']['get']('trackChanges')['value']&&(_0x4ddf2e['length']>0x0&&_0x4ddf2e[_0x4ddf2e['length']-0x1]&&_0x4ddf2e[_0x4ddf2e['length']-0x1]['forceDefaultExecution']||_0x12f5fd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x406fa5['stop']());},{'priority':'highest'});for(const _0x5cece3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24421c=_0x3b7d52['commands']['get'](_0x5cece3);_0x12f5fd['enableCommand'](_0x5cece3,()=>{const _0x4bdd6f=_0x3b7d52['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x134743=>_0x134743['is']('element','tableCell')),_0x5170fb=_0x24421c['value'];_0x3b7d52['model']['change'](()=>{_0x12f5fd['markMultiRangeBlockFormat']([_0x4bdd6f,_0x5170fb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x24f799 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x53bf20=_0x3b7d52['commands']['get'](_0x24f799);_0x12f5fd['enableCommand'](_0x24f799,()=>{const _0x4cf22b=_0x36c606['getSelectionAffectedTableCells'](_0x3b7d52['model']['document']['selection'])[0x0],_0x478586=_0x4cf22b['findAncestor']('table'),{column:_0x418ac5,row:_0x1be0a0}=_0x36c606['getCellLocation'](_0x4cf22b);let _0xad8b1f=[];if('horizontally'==_0x53bf20['direction']){const _0x198c53=_0x36c606['createTableWalker'](_0x478586,{'startRow':_0x1be0a0,'endRow':_0x1be0a0,'includeAllSlots':!0x0});_0xad8b1f=Array['from'](_0x198c53)['map'](_0x2a364e=>_0x2a364e['cell']);}else{const _0x56f9c2=_0x36c606['createTableWalker'](_0x478586,{'column':_0x418ac5,'includeAllSlots':!0x0});_0xad8b1f=Array['from'](_0x56f9c2)['map'](_0x1a626c=>_0x1a626c['cell']);}_0x3b7d52['model']['change'](_0x4babe5=>{_0x12f5fd['markBlockFormat'](_0x4babe5['createRangeOn'](_0x4cf22b),{'commandName':_0x24f799,'commandParams':[]},_0xad8b1f,_0x24f799);});});}_0x12f5fd['descriptionFactory']['registerDescriptionCallback'](_0x2ca7ce=>{if('formatBlock'!=_0x2ca7ce['type']&&'formatInline'!=_0x2ca7ce['type'])return;const {data:_0x3e11c0}=_0x2ca7ce;return _0x3e11c0&&'mergeTableCells'==_0x3e11c0['commandName']?{'type':'format','content':c(_0x474c9c,'*Merge\x20cells*')}:void 0x0;}),_0x12f5fd['descriptionFactory']['registerDescriptionCallback'](_0xd14e46=>{if('formatBlock'!=_0xd14e46['type']&&'formatInline'!=_0xd14e46['type'])return;const {data:_0xbffd28}=_0xd14e46;return _0xbffd28?'splitTableCellVertically'==_0xbffd28['commandName']?{'type':'format','content':c(_0x474c9c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xbffd28['commandName']?{'type':'format','content':c(_0x474c9c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28f9a9=_0x4a2c6b['_acceptFormatSuggestionCallbackFactory']();for(const _0x233c75 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12f5fd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x233c75,'accept',_0x28f9a9);for(const _0x18632d of['splitTableCellVertically','splitTableCellHorizontally'])_0x12f5fd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18632d,'accept',_0x28f9a9);_0x12f5fd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x47bf94=>{_0x3b7d52['model']['change'](_0x32fb5d=>{const _0xe2774f=Array['from'](_0x26dfd6['getRanges']())['map'](_0xead019=>_0x2229f7['fromRange'](_0xead019));_0x32fb5d['setSelection'](_0x47bf94),_0x3b7d52['commands']['get']('mergeTableCells')['refresh'](),_0x3b7d52['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c4cc4=_0xe2774f['filter'](_0x39da46=>'$graveyard'!=_0x39da46['root']['rootName']);_0x3c4cc4['length']>0x0&&_0x32fb5d['setSelection'](_0x3c4cc4);for(const _0x5a8271 of _0xe2774f)_0x5a8271['detach']();});});for(const _0x3d956f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57596=_0x3b7d52['commands']['get'](_0x3d956f);_0x57596['on']('set:isEnabled',(_0x1ed380,_0x1f3332,_0x484c50)=>{if(_0x484c50){const _0x48c848=_0x3b7d52['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1582d7=>_0x1582d7['is']('element','tableCell'));this['_areMergableCells'](_0x57596['value'],_0x48c848)||(_0x1ed380['return']=!0x1,_0x1ed380['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5ac53d=this['editor']['commands']['get']('mergeTableCells'),_0x5e287e=this['editor']['plugins']['get']('TableUtils');if(!_0x5ac53d['isEnabled'])return!0x1;const _0xd85cc8=_0x5e287e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ff71c of _0xd85cc8)for(const _0x3aa810 of _0xd85cc8)if(_0x2ff71c!=_0x3aa810&&!this['_areMergableCells'](_0x2ff71c,_0x3aa810))return!0x1;return!0x0;}['_areMergableCells'](_0x34cf2b,_0x18ea51){const _0x41e658=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164ec0=this['editor']['model']['createRangeOn'](_0x34cf2b),_0x4215ff=this['editor']['model']['createRangeOn'](_0x18ea51),_0x1782b2=new Set(),_0x31863b=new Set();for(const _0x3b9ddd of _0x41e658['getSuggestions']())if(('insertion'==_0x3b9ddd['type']||'deletion'==_0x3b9ddd['type']||'mergeTableCells'==_0x3b9ddd['subType'])&&_0x3b9ddd['isInContent']){for(const _0x35f2f1 of _0x3b9ddd['getRanges']())_0x35f2f1['containsRange'](_0x164ec0,!0x0)&&_0x1782b2['add'](_0x3b9ddd['type']+':'+_0x3b9ddd['author']['id']),_0x35f2f1['containsRange'](_0x4215ff,!0x0)&&_0x31863b['add'](_0x3b9ddd['type']+':'+_0x3b9ddd['author']['id']);}if(_0x1782b2['size']!=_0x31863b['size'])return!0x1;for(const _0x4a7f1b of _0x1782b2)if(!_0x31863b['has'](_0x4a7f1b))return!0x1;return!0x0;}}class Dt extends _0x1e29df{static get['requires'](){return[Ct];}['afterInit'](){const _0x5a78bb=this['editor'];if(!_0x5a78bb['plugins']['has']('TableEditing'))return;const _0x4afa82=_0x5a78bb['locale'],_0x36cc72=_0x5a78bb['plugins']['get']('TrackChangesEditing');_0x36cc72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x36cc72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x36cc72['registerBlockAttribute']('headingRows'),_0x36cc72['registerBlockAttribute']('headingColumns'),_0x36cc72['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4afa82,'FORMAT_HEADER_ROW')),_0x36cc72['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4afa82,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c4de6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e130d=this['editor']['plugins']['get']('TableUtils'),_0x1566e9=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x37a659({showActiveMarker:_0x17185d=!0x0,setDataAttribute:_0x4caa04=!0x0}={}){return(_0x4db3c8,_0x206d67,_0x310483)=>{const {type:_0x4ccfdf,id:_0x3e14fc}=_0x3c4de6['_splitMarkerName'](_0x206d67['markerName']),_0x53af05=_0x3c4de6['getSuggestion'](_0x3e14fc),_0x2b936b=_0x53af05['data'];if('formatBlock'!=_0x53af05['type']||!_0x2b936b||'setTableColumnHeader'!=_0x2b936b['commandName'])return;if(_0x206d67['item'])return void _0x4db3c8['stop']();if(!_0x310483['consumable']['consume'](_0x206d67['markerRange'],_0x4db3c8['name']))return;const _0x248515=_0x206d67['markerRange']['start']['nodeAfter'],_0x12788e=_0x206d67['markerRange']['end']['nodeBefore'],_0x564142=_0x248515['parent']['parent'],{column:_0x46f0b9}=_0x2e130d['getCellLocation'](_0x248515),{column:_0x7e23f5}=_0x2e130d['getCellLocation'](_0x12788e);for(let _0x156d36=_0x46f0b9;_0x156d36<=_0x7e23f5;_0x156d36++){const _0x2b3057=_0x2e130d['createTableWalker'](_0x564142,{'column':_0x156d36,'includeAllSlots':!0x1});for(const _0x57d7bd of _0x2b3057){const _0x41b893=_0x57d7bd['cell'],_0x3cbe99=_0x310483['mapper']['toViewElement'](_0x41b893);_0x310483['writer']['addClass']('ck-suggestion-marker-'+_0x4ccfdf,_0x3cbe99),_0x4caa04&&_0x310483['writer']['setAttribute']('data-suggestion',_0x3e14fc,_0x3cbe99),_0x310483['mapper']['bindElementToMarker'](_0x3cbe99,_0x206d67['markerName']),_0x17185d&&(_0x3c4de6['activeMarkers']['includes'](_0x206d67['markerName'])?_0x310483['writer']['addClass']('ck-suggestion-marker--active',_0x3cbe99):_0x310483['writer']['removeClass']('ck-suggestion-marker--active',_0x3cbe99));}}};}_0x3c4de6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1566e9),_0x3c4de6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1566e9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x37a659(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd9ab11,_0xc5294,_0x4cf936)=>{_0x4cf936['options']['showSuggestionHighlights']&&_0x37a659({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd9ab11,_0xc5294,_0x4cf936);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb10c2e,_0x3d0d76,_0x355b15)=>{const {type:_0x26f1b9,id:_0x247ddf}=_0x3c4de6['_splitMarkerName'](_0x3d0d76['markerName']),_0x4b8a9d=_0x3c4de6['getSuggestion'](_0x247ddf),_0xb81ed2=_0x4b8a9d['data'];if('formatBlock'!=_0x4b8a9d['type']||!_0xb81ed2||'setTableColumnHeader'!=_0xb81ed2['commandName'])return;const _0x39f1e3=_0x355b15['mapper']['markerNameToElements'](_0x3d0d76['markerName']);if(_0x39f1e3){for(const _0x17db31 of _0x39f1e3)_0x355b15['writer']['removeClass']('ck-suggestion-marker-'+_0x26f1b9,_0x17db31),_0x355b15['writer']['removeClass']('ck-suggestion-marker--active',_0x17db31),_0x355b15['writer']['removeAttribute']('data-suggestion',_0x17db31),_0x355b15['mapper']['unbindElementFromMarkerName'](_0x17db31,_0x3d0d76['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50e9df=this['editor'],_0x420045=_0x50e9df['locale'];function _0x3a0e66(_0x41adba){return{'type':'format','content':c(_0x420045,'*Format:*\x20%0',_0x41adba)};}_0x50e9df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x682f6a=>{if('formatBlock'!=_0x682f6a['type'])return;const {data:_0x5f1086}=_0x682f6a;if(_0x5f1086){if('setTableRowHeader'==_0x5f1086['commandName']){const _0x3cc69c=_0x5f1086['commandParams'][0x0]['forceValue'];return _0x3a0e66(c(_0x420045,_0x3cc69c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5f1086['commandName']){const _0x55d49c=_0x5f1086['commandParams'][0x0]['forceValue'];return _0x3a0e66(c(_0x420045,_0x55d49c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x1e29df{['afterInit'](){const _0x1c4bf7=this['editor'],_0xeb3433=_0x1c4bf7['locale'],_0x50c999=_0x1c4bf7['plugins']['get']('TrackChangesEditing');function _0x500e5d(_0x526d8f){return{'type':'format','content':''+c(_0xeb3433,'*Set\x20table\x20type:*\x20%0',_0x526d8f)};}_0x1c4bf7['plugins']['has']('TableLayout')&&(_0x50c999['enableCommand']('insertTableLayout'),_0x50c999['enableDefaultAttributesIntegration']('tableType'),_0x50c999['registerBlockAttribute']('tableType'),_0x50c999['descriptionFactory']['registerElementLabel'](_0x448995=>_0x448995['is']('element','table')&&'layout'===_0x448995['getAttribute']('tableType'),_0x218c48=>c(_0xeb3433,'ELEMENT_LAYOUT_TABLE',_0x218c48)),_0x50c999['descriptionFactory']['registerDescriptionCallback'](_0x542988=>{const {data:_0x1a6f04}=_0x542988;if(_0x1a6f04&&'tableType'==_0x1a6f04['key'])switch(_0x1a6f04['newValue']){case'layout':return _0x500e5d(c(_0xeb3433,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x500e5d(c(_0xeb3433,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x275526=>[_0x275526,null]));class $t extends _0x1e29df{static get['requires'](){return[Ct];}['afterInit'](){const _0x2291d9=this['editor'];if(!_0x2291d9['plugins']['has']('TableClipboard'))return;const _0x54259a=_0x2291d9['plugins']['get']('TrackChangesEditing'),_0x332296=_0x2291d9['plugins']['get']('TableUtils'),_0x46f9a1=_0x2291d9['plugins']['get'](Ct),_0x5eca29=_0x2291d9['plugins']['get']('TableClipboard'),_0x300f8d=_0x2291d9['plugins']['get']('TableSelection'),_0x19c7fd=_0x2291d9['plugins']['get'](_0x32a7cf);_0x46f9a1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2291d9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2291d9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40eeb2=null,_0x484e29=!0x1;_0x19c7fd['on']('contentInsertion',(_0x5b3495,_0x1e387d)=>{_0x484e29='paste'===_0x1e387d['method'];}),_0x2291d9['model']['on']('insertContent',(_0x47d76f,_0x12a53b)=>{if(!_0x484e29&&null===_0x300f8d['getSelectedTableCells']())return;const [_0x408210,_0x18b8cf]=_0x12a53b,_0x50c70b=_0x12a53b[_0x12a53b['length']-0x1];_0x50c70b&&_0x50c70b['forceDefaultExecution']||_0x54259a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1aafcc,_0x412b05,_0x4f30be,_0x20e333,_0x5ad0ae){if(_0x412b05&&!_0x412b05['is']('documentSelection'))return!0x1;const _0x1c8324=_0x5ad0ae['getTableIfOnlyTableInContent'](_0x1aafcc,_0x4f30be);if(!_0x1c8324||!He(_0x1c8324,void 0x0,_0x20e333))return!0x1;const _0x55a779=_0x20e333['getSelectionAffectedTableCells'](_0x4f30be['document']['selection']);if(!_0x55a779['length'])return!0x1;const _0x1bd3da=_0x55a779[0x0]['findAncestor']('table'),_0x72376f=_0x20e333['getRowIndexes'](_0x55a779),_0x13ab2c=_0x20e333['getColumnIndexes'](_0x55a779),_0x1108d4={'startRow':_0x72376f['first'],'endRow':_0x72376f['last'],'startColumn':_0x13ab2c['first'],'endColumn':_0x13ab2c['last']};return 0x1==_0x55a779['length']&&(_0x1108d4['endRow']+=_0x20e333['getRows'](_0x1c8324)-0x1,_0x1108d4['endColumn']+=_0x20e333['getColumns'](_0x1c8324)-0x1),He(_0x1bd3da,_0x1108d4,_0x20e333);}(_0x408210,_0x18b8cf,_0x2291d9['model'],_0x332296,_0x5eca29)&&(_0x47d76f['stop'](),_0x40eeb2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2291d9['model']['change'](()=>{_0x2291d9['model']['insertContent'](_0x12a53b[0x0],_0x12a53b[0x1],_0x12a53b[0x2],{'forceDefaultExecution':!0x0});const _0x114e8f=_0x204c92(),{rowInsertionRanges:_0x5a670c,columnInsertionRanges:_0x1d053e,insertionRanges:_0x78a8ba,deletionRanges:_0x488f58,cells:_0xaadcc5}=_0x40eeb2;_0x5a670c['length']&&_0x54259a['markMultiRangeInsertion'](_0x5a670c,'tablePasteRow',{'tablePasteChainId':_0x114e8f}),_0x1d053e['length']&&_0x54259a['markMultiRangeInsertion'](_0x1d053e,'tablePasteColumn',{'tablePasteChainId':_0x114e8f}),_0x78a8ba['length']&&(_0x54259a['markMultiRangeInsertion'](_0x78a8ba,'tablePaste',{'tablePasteChainId':_0x114e8f,'skipNestingCheck':!0x0}),_0x78a8ba['forEach'](_0x35c612=>_0x35c612['detach']?.())),_0x488f58['length']&&(_0x54259a['markMultiRangeDeletion'](_0x488f58,'tablePaste',{'tablePasteChainId':_0x114e8f,'skipNestingCheck':!0x0}),_0x488f58['forEach'](_0x312b88=>_0x312b88['detach']?.()));const _0x3a6f43=_0x54259a['markMultiRangeBlockFormat'](_0xaadcc5['map'](({element:_0x36e5be})=>_0x36e5be),{'formatGroupId':_0x204c92()},[],'tablePasteCell',{'tablePasteChainId':_0x114e8f});if(_0x3a6f43){const _0x5a0ab7=_0x3a6f43['getMarkers'](),_0x2a7981=[];for(const {element:_0x453831,attributes:_0x1b7370}of _0xaadcc5){if(!_0x1b7370)continue;const _0x21fe05=_0x2291d9['model']['createRangeOn'](_0x453831),_0x21f92b=_0x5a0ab7['find'](_0x9d5d47=>_0x9d5d47['getRange']()['isEqual'](_0x21fe05));_0x21f92b&&_0x2a7981['push']([_0x21f92b['name'],_0x1b7370]);}_0x2a7981['length']&&_0x3a6f43['setAttribute']('markerAttributes',Object['fromEntries'](_0x2a7981));}_0x40eeb2=null;}));},{'priority':_0x3313a5['high']+0xa}),_0x19c7fd['on']('contentInsertion',()=>{_0x484e29=!0x1;},{'priority':'lowest'}),_0x2291d9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2cf799,_0x4a9ed9)=>{const [_0x10b42e,_0x5d42d6,,_0x1ab51d]=_0x4a9ed9;if(!_0x40eeb2)return;_0x2cf799['stop']();const _0x46b8e4=_0x10b42e['cell'],_0x21867b=_0x5d42d6,_0x479d6f=De(_0x46b8e4),_0x1e3a49=De(_0x21867b);_0x2cf799['return']=_0x46b8e4;let _0x403d09=null,_0x5ee180=null;if(_0x1e3a49||_0x479d6f){if(_0x479d6f&&!_0x1e3a49){_0x1ab51d['remove'](_0x46b8e4['getChild'](0x0));for(const _0x4e4c85 of Array['from'](_0x21867b['getChildren']()))_0x1ab51d['insert'](_0x4e4c85,_0x46b8e4,'end');const _0x14cc08=_0x40eeb2['rowInsertionIndexes']['includes'](_0x10b42e['row']),_0x24d511=_0x40eeb2['columnInsertionIndexes']['includes'](_0x10b42e['column']);_0x14cc08||_0x24d511||(_0x403d09=_0x2229f7['fromRange'](_0x1ab51d['createRangeIn'](_0x46b8e4)));}else _0x1e3a49&&!_0x479d6f&&(_0x5ee180=_0x1ab51d['createRangeIn'](_0x46b8e4));}else{const _0x54218a=_0x1ab51d['createElement']('tableCellSuggestion'),_0x46f531=_0x1ab51d['createElement']('tableCellSuggestion');_0x1ab51d['wrap'](_0x1ab51d['createRangeIn'](_0x46b8e4),_0x46f531),_0x1ab51d['insert'](_0x54218a,_0x46b8e4,0x0);for(const _0x31115b of Array['from'](_0x21867b['getChildren']()))_0x1ab51d['insert'](_0x31115b,_0x54218a,'end');_0x403d09=_0x2229f7['fromRange'](_0x1ab51d['createRangeOn'](_0x54218a)),_0x5ee180=_0x2229f7['fromRange'](_0x1ab51d['createRangeOn'](_0x46f531));}const _0x18e906=Array['from'](_0x21867b['getAttributes']())['filter'](([_0x8a22d0])=>Oe['includes'](_0x8a22d0));_0x40eeb2['cells']['push']({'element':_0x46b8e4,'attributes':_0x18e906['length']?Object['fromEntries'](_0x18e906):null}),_0x403d09&&_0x40eeb2['insertionRanges']['push'](_0x403d09),_0x5ee180&&_0x40eeb2['deletionRanges']['push'](_0x5ee180);},{'priority':'high'}),_0x332296['on']('insertColumns',(_0x48e1f4,_0x1b746e)=>{const [_0x481f51,_0x10f129={}]=_0x1b746e;if(!_0x40eeb2)return;const _0x31e516=_0x10f129['at']||0x0,_0x4500b7=_0x10f129['columns']||0x1;_0x40eeb2['columnInsertionIndexes']=new Array(_0x4500b7)['fill'](_0x31e516)['map']((_0x466c75,_0x4d3e15)=>_0x466c75+_0x4d3e15);for(const {cell:_0xae8203}of _0x332296['createTableWalker'](_0x481f51,{'startColumn':_0x31e516,'endColumn':_0x31e516+_0x4500b7-0x1}))_0x40eeb2['columnInsertionRanges']['push'](_0x2291d9['model']['createRangeOn'](_0xae8203));},{'priority':'low'}),_0x332296['on']('insertRows',(_0x3200c3,_0x3eb14f)=>{const [_0x182c10,_0x37614b={}]=_0x3eb14f;if(!_0x40eeb2)return;const _0xe74f55=_0x37614b['at']||0x0,_0x93e6d3=_0x37614b['rows']||0x1;_0x40eeb2['rowInsertionIndexes']=new Array(_0x93e6d3)['fill'](_0xe74f55)['map']((_0x4fa3e2,_0xe1572f)=>_0x4fa3e2+_0xe1572f);for(const {cell:_0x455cb4}of _0x332296['createTableWalker'](_0x182c10,{'startRow':_0xe74f55,'endRow':_0xe74f55+_0x93e6d3-0x1}))_0x40eeb2['rowInsertionRanges']['push'](_0x2291d9['model']['createRangeOn'](_0x455cb4));},{'priority':'low'}),_0x54259a['descriptionFactory']['registerDescriptionCallback'](_0xc50ed8=>{if(_0xc50ed8['subType']&&_0xc50ed8['subType']['startsWith']('tablePaste'))return _0xc50ed8['previous']?{}:{'type':'insertion','content':c(_0x2291d9['locale'],'*Replace\x20table\x20cells*')};});const _0xbdc00=()=>!0x1;for(const _0x58eba9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x54259a['_suggestionFactory']['registerCustomCallback']('insertion',_0x58eba9,'join',_0xbdc00),_0x54259a['_suggestionFactory']['registerCustomCallback']('deletion',_0x58eba9,'join',_0xbdc00),_0x54259a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58eba9,'join',_0xbdc00);_0x54259a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xbdc00),_0x54259a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3cfa98,_0x4cd533,_0x4a637f)=>{const _0x2e7f6f=_0x3cfa98['map'](_0x41570b=>_0x41570b['getContainedElement']())['filter'](_0x886a40=>_0x886a40),_0x32cf24=new Map(_0x2e7f6f['map'](_0x4bed99=>[_0x4bed99,null]));if(_0x40eeb2){for(const {element:_0x53ad76,attributes:_0x250dd2}of _0x40eeb2['cells'])_0x250dd2&&_0x32cf24['set'](_0x53ad76,_0x250dd2);}else{if(_0x4a637f&&_0x4a637f['markerAttributes'])for(const [_0x120660,_0x3d409f]of Object['entries'](_0x4a637f['markerAttributes'])){const _0x451629=_0x2291d9['model']['markers']['get'](_0x120660),_0xbfc48c=_0x451629?_0x451629['getRange']()['getContainedElement']():null;_0xbfc48c&&_0x32cf24['set'](_0xbfc48c,_0x3d409f);}}_0x2291d9['model']['change'](_0x4db0c1=>{for(const [_0xde3e5,_0x4eb043]of _0x32cf24)_0x4db0c1['setAttributes']({...Ue,..._0x4eb043},_0xde3e5);});});const _0x364282=(_0x1439d9,_0x433089)=>{_0x54259a['_suggestionFactory']['registerCustomCallback'](_0x1439d9,'tablePaste',_0x433089,(_0x5348d0,_0x251157,_0x2c8a2e)=>{_0x2291d9['model']['change'](_0xec4536=>{const _0x3de906=[];for(const _0x23ed9d of _0x5348d0){const _0x21f918=_0x23ed9d['start']['nodeAfter'];_0x21f918['is']('element','tableCellSuggestion')&&_0x3de906['push'](_0x21f918);}_0x54259a['_suggestionFactory']['getSuggestionCallback'](_0x1439d9,null,_0x433089)(_0x5348d0,_0x251157,_0x2c8a2e);for(const _0x54ab50 of _0x3de906)'$graveyard'!=_0x54ab50['root']['rootName']&&_0xec4536['unwrap'](_0x54ab50);});});};_0x364282('insertion','accept'),_0x364282('insertion','discard'),_0x364282('deletion','accept'),_0x364282('deletion','discard'),_0x54259a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2d4803=>{const _0x257053=_0x2d4803['map'](_0x3bf0e3=>_0x3bf0e3['getContainedElement']()),_0xd52d0e=_0x257053[0x0]['findAncestor']('table'),{minRow:_0x29e057,maxRow:_0x525cfb}=_0x46f9a1['_getCoordsForCells'](_0x257053);_0x332296['removeRows'](_0xd52d0e,{'at':_0x29e057,'rows':_0x525cfb-_0x29e057+0x1});}),_0x54259a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x302ce9=>{const _0x24ee91=_0x302ce9['map'](_0x1f5563=>_0x1f5563['getContainedElement']()),_0x53bbee=_0x24ee91[0x0]['findAncestor']('table'),{minColumn:_0x33b4a3,maxColumn:_0x4f8642}=_0x46f9a1['_getCoordsForCells'](_0x24ee91);_0x332296['removeColumns'](_0x53bbee,{'at':_0x33b4a3,'columns':_0x4f8642-_0x33b4a3+0x1});});const _0x17797c=(_0x57bafa,_0x11e92f)=>{if(!_0x11e92f['subType']||!_0x11e92f['subType']['startsWith']('tablePaste'))return;const _0x7d88d1=_0x11e92f['attributes']['tablePasteChainId'],_0x2c0e14=_0x54259a['getSuggestions']()['filter'](_0x4f074b=>_0x4f074b['isInContent']&&_0x4f074b['attributes']&&_0x4f074b['attributes']['tablePasteChainId']==_0x7d88d1);_0x2c0e14['length']&&_0x11e92f['getAllAdjacentSuggestions']()['length']!=_0x2c0e14['length']&&_0x2c0e14['reduce']((_0x2952c8,_0x3a0700)=>(_0x2952c8['next']=_0x3a0700,_0x3a0700['previous']=_0x2952c8,_0x3a0700));};function _0x485faa(_0x4f145e,_0x42a9a0=!0x0){const {id:_0x4a355c,authorId:_0x30ea6c}=_0x54259a['_splitMarkerName'](_0x4f145e['markerName']),_0x120b5c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21ba69=_0x54259a['activeMarkers']['includes'](_0x4f145e['markerName']);return _0x21ba69&&_0x120b5c['push']('ck-suggestion-marker--active'),{'classes':_0x120b5c,'attributes':{'data-suggestion':_0x4a355c,'data-author-id':_0x30ea6c},'priority':_0x21ba69&&_0x42a9a0?0xbc2:0xbb8};}_0x54259a['on']('suggestionLoaded',_0x17797c,{'priority':'high'}),_0x54259a['on']('suggestionUnloaded',_0x17797c,{'priority':'high'}),_0x2291d9['model']['document']['registerPostFixer'](()=>{let _0x3a1c8a=!0x1;const _0x592107=Array['from'](_0x2291d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4a0347,data:_0x2bc469}of _0x592107){const {group:_0x4bc9ed,type:_0x38de8d,id:_0x4a95c0}=_0x54259a['_splitMarkerName'](_0x4a0347);if('suggestion'!=_0x4bc9ed||'deletion'!=_0x38de8d||_0x2bc469['oldRange'])continue;if(!_0x54259a['hasSuggestion'](_0x4a95c0))continue;const _0x16a3f4=_0x54259a['getSuggestion'](_0x4a95c0)['getRanges'](),_0x2a3cb1=_0x2291d9['plugins']['get']('Users')['me'];for(const _0x10cd6d of _0x54259a['getSuggestions']()){if(!_0x10cd6d['isInContent']||_0x10cd6d['author']!=_0x2a3cb1)continue;if('formatBlock'!=_0x10cd6d['type']||'tablePasteCell'!=_0x10cd6d['subType'])continue;if(_0x10cd6d['getRanges']()['every'](_0x40d080=>_0x16a3f4['some'](_0x1c897b=>_0x1c897b['containsRange'](_0x40d080,!0x0)))){for(const _0x3d5d91 of _0x10cd6d['getAllAdjacentSuggestions']())_0x3d5d91['isInContent']&&(_0x3d5d91['discard'](),_0x3a1c8a=!0x0);}}}return _0x3a1c8a;}),_0x2291d9['model']['document']['registerPostFixer'](_0x49c197=>{const _0x297769=_0x2291d9['commands']['get']('redo');if(!_0x297769||!_0x297769['_createdBatches']['has'](_0x49c197['batch']))return!0x1;let _0x3821c4=!0x1;const _0x86760=_0x2291d9['plugins']['get']('Users')['me'],_0x4f3b67=_0x2291d9['model']['document']['differ']['getChanges'](),_0x36467f=Array['from'](_0x2291d9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5c7d0b,data:_0x273064})=>{const {group:_0x23a290,subType:_0x3cdecb,authorId:_0x4aed72}=_0x54259a['_splitMarkerName'](_0x5c7d0b);return'suggestion'==_0x23a290&&'tablePaste'==_0x3cdecb&&_0x4aed72==_0x86760['id']&&!_0x273064['oldRange'];});for(const _0x1027b1 of _0x4f3b67){if('insert'!=_0x1027b1['type']||'tableCellSuggestion'!=_0x1027b1['name']||0x1!=_0x1027b1['length'])continue;const _0x45a524=_0x49c197['createRange'](_0x1027b1['position'],_0x1027b1['position']['getShiftedBy'](0x1));if(!_0x36467f['find'](({data:_0x2b413a})=>_0x2b413a['newRange']['isEqual'](_0x45a524))){for(const {name:_0x3015f0,data:_0x3a9fcb}of _0x36467f)if(_0x45a524['containsRange'](_0x3a9fcb['newRange'])){_0x49c197['updateMarker'](_0x3015f0,{'range':_0x45a524}),_0x3821c4=!0x0;break;}}}return _0x3821c4;}),_0x2291d9['model']['document']['registerPostFixer'](_0x2837f5=>{let _0x317636=!0x1;const _0x5b91d5=_0x2291d9['plugins']['get']('Users')['me'],_0x32dc2a=_0x54259a['getSuggestions']()['filter'](_0x432c22=>_0x432c22['isInContent']&&_0x432c22['author']==_0x5b91d5),_0x29d57b=new Set(),_0xd30b85=new Set();for(const _0x4fa0b8 of _0x32dc2a)if('tablePaste'==_0x4fa0b8['subType'])for(const _0x9f2fe4 of _0x4fa0b8['getMarkers']()){const _0x11f5b2=_0x9f2fe4['getRange']()['getContainedElement']();if(_0x11f5b2){if(_0x11f5b2['is']('element','tableCellSuggestion')&&De(_0x11f5b2)){_0x4fa0b8['removeMarker'](_0x9f2fe4['name']),_0x29d57b['add'](_0x11f5b2),_0x317636=!0x0;const _0x2b0518=_0x11f5b2['nextSibling'],_0x484860=_0x11f5b2['previousSibling'],_0x40b02f=_0x2b0518&&_0x2b0518['is']('element','tableCellSuggestion'),_0x19e453=_0x484860&&_0x484860['is']('element','tableCellSuggestion');_0x40b02f&&!_0x29d57b['has'](_0x2b0518)&&_0xd30b85['add'](_0x2b0518),_0x19e453&&!_0x29d57b['has'](_0x484860)&&_0xd30b85['add'](_0x484860);}else _0x11f5b2['is']('element','paragraph')&&_0x11f5b2['isEmpty']&&(_0x4fa0b8['removeMarker'](_0x9f2fe4['name']),_0x317636=!0x0);}}else{if('tablePasteCell'==_0x4fa0b8['subType']){if(!_0x4fa0b8['attributes']||!_0x4fa0b8['attributes']['tablePasteChainId'])continue;const _0x342f68=_0x4fa0b8['attributes']['markerAttributes'];if(_0x342f68&&Object['keys'](_0x342f68)['length'])continue;const _0x4ce5a9=_0x4fa0b8['attributes']['tablePasteChainId'];let _0x1d1430=!0x0,_0x5a147d=!0x0;for(const _0x2238a1 of _0x32dc2a)if(_0x2238a1['subType']&&_0x2238a1['subType']['startsWith']('tablePaste')){if(!_0x2238a1['attributes']['tablePasteChainId']){_0x5a147d=!0x1;break;}if(_0x2238a1['id']!=_0x4fa0b8['id']&&_0x2238a1['attributes']['tablePasteChainId']==_0x4ce5a9){_0x1d1430=!0x1;break;}}_0x5a147d&&_0x1d1430&&(_0x4fa0b8['removeMarkers'](),_0x317636=!0x0);}}for(const _0x13f800 of _0x29d57b)_0x2837f5['remove'](_0x13f800);for(const _0x395f9d of _0xd30b85)_0x2837f5['unwrap'](_0x395f9d);return _0x317636;}),_0x2291d9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x275d46=>_0x485faa(_0x275d46),'converterPriority':'high'}),_0x2291d9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a5914,_0x137f8b)=>_0x137f8b['options']['showSuggestionHighlights']?_0x485faa(_0x1a5914,!0x1):null,'converterPriority':'high'});const _0x5bd523=_0x2291d9['editing']['view'];this['listenTo'](_0x5bd523['document'],'clipboardOutput',(_0x3f3586,_0x2e8f19)=>{const _0x504acc=[];for(const _0x154672 of _0x5bd523['createRangeIn'](_0x2e8f19['content'])['getItems']())_0x154672['is']('element','suggestion-td')&&_0x504acc['push'](_0x154672);_0x5bd523['change'](_0x51ebb7=>{for(const _0x2cceb9 of _0x504acc)_0x51ebb7['move'](_0x51ebb7['createRangeIn'](_0x2cceb9),_0x51ebb7['createPositionBefore'](_0x2cceb9)),_0x51ebb7['remove'](_0x2cceb9);});});}}function De(_0x4657cc){if(_0x4657cc['isEmpty'])return!0x0;const _0x56511d=_0x4657cc['getChild'](0x0);return _0x56511d['is']('element','paragraph')&&_0x56511d['isEmpty'];}function He(_0x402f6f,_0x22f9be={},_0x1d2256){for(const {isAnchor:_0x15f2f6,cellHeight:_0x62c98a,cellWidth:_0xad18fa}of _0x1d2256['createTableWalker'](_0x402f6f,{'includeAllSlots':!0x0,..._0x22f9be}))if(!_0x15f2f6||0x1!=_0x62c98a||0x1!=_0xad18fa)return!0x1;return!0x0;}class Bt extends _0x1e29df{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x482e8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x482e8f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x482e8f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x482e8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x482e8f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x482e8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x482e8f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x19d1e9,_0x40e770){const _0x42af8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d8a9e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5acde5=_0x40e770['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x45fecf=_0x3d8a9e['getColumnGroupElement'](_0x5acde5);let _0x5d30a1=_0x45fecf?_0x3d8a9e['getTableColumnsWidths'](_0x45fecf):null,_0x3a5075=_0x5acde5['getAttribute']('tableWidth')||null;const _0x2d2877=_0x40e770['tableWidth']||_0x3a5075,_0x1d6fc3=_0x40e770['columnWidths']||_0x5d30a1,_0x451aaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x457852 of _0x42af8e['getSuggestions']()){const _0x5386b3=_0x457852['getContainedElement']();if('resizeTable'===_0x457852['subType']&&_0x5386b3===_0x5acde5){_0x457852['author']!==_0x451aaf&&_0x457852['discard']();const _0x277e29=_0x457852['data']['commandParams'];_0x3a5075=_0x277e29[0x0]['tableWidth'],_0x5d30a1=_0x277e29[0x0]['columnWidths'];break;}}_0x19d1e9({'table':_0x5acde5,'tableWidth':_0x2d2877,'columnWidths':_0x1d6fc3}),_0x42af8e['markBlockFormat'](_0x5acde5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3a5075,'columnWidths':_0x5d30a1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x229d4e){if('formatBlock'!=_0x229d4e['type']&&'formatInline'!=_0x229d4e['type'])return;const {data:_0x59bd72}=_0x229d4e;if(_0x59bd72&&'resizeTable'===_0x59bd72['formatGroupId']){const _0x35b911='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x35b911)};}}}class xt extends _0x1e29df{['afterInit'](){const _0x233c7d=this['editor'];_0x233c7d['plugins']['has']('Template')&&_0x233c7d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x1e29df{['afterInit'](){const _0x2d28f4=this['editor'];if(!_0x2d28f4['commands']['get']('insertTableOfContents'))return;_0x2d28f4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42222a=_0x2d28f4['plugins']['get']('TrackChangesEditing'),_0x2bf174=_0x2d28f4['locale'];_0x42222a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2a3019=>c(_0x2bf174,'ELEMENT_TABLE_OF_CONTENTS',_0x2a3019));}}class Rt extends _0x1e29df{['afterInit'](){const _0x25a896=this['editor'];if(!_0x25a896['plugins']['has']('Title'))return;const _0x6232fa=_0x25a896['plugins']['get']('TrackChangesEditing');_0x6232fa['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x25a896['locale'],'ELEMENT_TITLE')),_0x25a896['model']['document']['registerPostFixer'](_0x309a2b=>{let _0xeb158b=!0x1;const _0x474f04=Array['from'](_0x25a896['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2dc6c5,data:_0x304ba6}of _0x474f04){const {group:_0x1859d2}=_0x6232fa['_splitMarkerName'](_0x2dc6c5);if('suggestion'!==_0x1859d2||!_0x304ba6['newRange'])continue;const _0x4b6f80=_0x304ba6['newRange'],_0x3c51a1=_0x4b6f80['end']['nodeBefore'];if(!_0x3c51a1||!_0x3c51a1['is']('element','title-content'))continue;if(!_0x4b6f80['start']['isTouching'](_0x4b6f80['end']))continue;const _0x44b0b2=_0x25a896['model']['schema']['getNearestSelectionRange'](_0x4b6f80['end'],'forward');if(_0x44b0b2&&_0x44b0b2['isCollapsed']){const _0x509c1d=_0x309a2b['createRange'](_0x4b6f80['start'],_0x44b0b2['start']);_0x509c1d['isEqual'](_0x4b6f80)||(_0x309a2b['updateMarker'](_0x2dc6c5,{'range':_0x509c1d}),_0xeb158b=!0x0);}_0xeb158b||(_0x309a2b['removeMarker'](_0x2dc6c5),_0xeb158b=!0x0);}return _0xeb158b;});}}class Tt extends _0x1e29df{['afterInit'](){const _0x1a1b2e=this['editor'],_0x4cb81e=_0x1a1b2e['plugins']['get']('TrackChangesEditing');_0x1a1b2e['plugins']['has']('Uploadcare')&&(_0x4cb81e['enableCommand']('uploadcare'),_0x1a1b2e['plugins']['has']('UploadcareImageEdit')&&(_0x4cb81e['enableCommand']('uploadcareImageEdit'),_0x4cb81e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4cb81e['registerBlockAttribute']('uploadcareImageId'),_0x4cb81e['descriptionFactory']['registerDescriptionCallback'](_0x2fbaac=>{if('attribute'!=_0x2fbaac['type'])return;const {data:_0x44ac1d}=_0x2fbaac;return _0x44ac1d&&'uploadcareImageId'==_0x44ac1d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1e29df{['afterInit'](){const _0x287563=this['editor'],_0x37e774=_0x287563['plugins']['get']('TrackChangesEditing');_0x287563['plugins']['has']('UndoEditing')&&(_0x37e774['enableCommand']('undo'),_0x37e774['enableCommand']('redo'));}}class Ut extends _0x1e29df{static get['requires'](){return[Ct];}['afterInit'](){const _0x4b3680=this['editor'];if(!_0x4b3680['plugins']['has']('TableCaptionEditing'))return;_0x4b3680['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1e29df{['tableProperties'];['tableCellProperties'];constructor(_0x1ef948){super(_0x1ef948),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 _0x24adde=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x862dc6 of this['tableProperties'])_0x24adde['enableCommand'](_0x862dc6,(_0xdcc4e,_0x5e61ce)=>{const _0x4a83ae=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x862dc6,[_0x4a83ae],this['tableProperties'],'tableProperties',_0xdcc4e,_0x5e61ce);});_0x24adde['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x24adde['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24adde['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8c152,_0x3b139b)=>this['handleDiscardAction'](this['tableProperties'],_0x8c152,_0x3b139b)),_0x24adde['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5bcea1 of this['tableCellProperties'])_0x24adde['enableCommand'](_0x5bcea1,(_0x673ec1,_0x33c865)=>{const _0x39e0bd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5bcea1,_0x39e0bd,this['tableCellProperties'],'tableCellProperties',_0x673ec1,_0x33c865);});_0x24adde['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x24adde['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24adde['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x18d204,_0x54c84b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x18d204,_0x54c84b)),_0x24adde['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x24adde['descriptionFactory']['registerDescriptionCallback'](_0x1a2ae2=>this['handleSuggestionDescription'](_0x1a2ae2));}['_handlePropertyChange'](_0x639d57,_0x58b7d0,_0x21c4ff,_0x676cea,_0x3c8e64,_0x43dfc8){const _0x24df15=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x43dfc8['batch'],()=>{for(const _0x563f93 of _0x58b7d0){if(this['_getSuggestion'](_0x563f93,_0x676cea))_0x3c8e64(_0x43dfc8);else{const _0x5000f3={};for(const _0x21c281 of _0x21c4ff){const _0x43fa64=_0x563f93['getAttribute'](_0x21c281);void 0x0!==_0x43fa64&&(_0x5000f3[_0x21c281]=_0x43fa64);}_0x3c8e64(_0x43dfc8),_0x24df15['markBlockFormat'](_0x563f93,{'commandParams':[_0x5000f3]},[],_0x676cea);}}});}['handleDiscardAction'](_0x43c73e,_0x208a6f,_0x5ad36e){const _0x21ef45=_0x208a6f[0x0]['start']['nodeAfter'],_0x4cb126=_0x5ad36e['commandParams'][0x0];this['editor']['model']['change'](_0x5ddf95=>{for(const _0x4e5231 of _0x43c73e)void 0x0!==_0x4cb126[_0x4e5231]?_0x5ddf95['setAttribute'](_0x4e5231,_0x4cb126[_0x4e5231],_0x21ef45):_0x5ddf95['removeAttribute'](_0x4e5231,_0x21ef45);});}['handleSuggestionDescription'](_0x475546){if(_0x475546['data'])switch(_0x475546['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'](_0x23f0f5,_0x3a85ce){const _0x12dd7e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x230c9e of _0x12dd7e['getSuggestions']({'skipNotAttached':!0x0})){const _0x264ee4=_0x230c9e['getContainedElement']();if(_0x230c9e['subType']===_0x3a85ce&&_0x264ee4===_0x23f0f5)return _0x230c9e;}return null;}}const u='$elementName';class p extends _0x1e29df{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x29e23d,_0x529ab7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a9b60){super(_0x2a9b60),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52f710,_0x32d4e1,_0x58b86d,_0x1c7473)=>{this['_model']['change'](()=>{for(const _0x3de16e of[..._0x1c7473,..._0x58b86d])this['_model']['markers']['has'](_0x3de16e)&&_0x2a9b60['editing']['reconvertMarker'](_0x3de16e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a9b60['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(),_0x2a9b60['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a9b60['config']['get']('trackChanges.trackFormatChanges'),_0x2a9b60['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a9b60['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a9b60,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3e4a43=this['editor'],_0x55d21f=(_0x37a9b8,_0x3db18c)=>{if('attribute'!=_0x37a9b8)return'ck-suggestion-marker-'+_0x37a9b8;const _0x7c2d67=_0x3db18c['split']('|')[0x0];return this['_isBlockAttribute'](_0x7c2d67)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3e4a43['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2172f1=>{const {id:_0x5c7af5,authorId:_0x322cdf,type:_0x4eb40e,subType:_0x34eb1c}=this['_splitMarkerName'](_0x2172f1['markerName']),_0x2b7134=['ck-suggestion-marker',_0x55d21f(_0x4eb40e,_0x34eb1c)];let _0x144388=0xbb8;return this['activeMarkers']['includes'](_0x2172f1['markerName'])&&(_0x2b7134['push']('ck-suggestion-marker--active'),_0x144388=0xbc2),'deletion'==_0x4eb40e&&(_0x144388+=0x5),{'classes':_0x2b7134,'attributes':{'data-suggestion':_0x5c7af5,'data-author-id':_0x322cdf},'priority':_0x144388};}}),_0x3e4a43['conversion']['for']('dataDowncast')['add'](_0x2200ed=>{_0x2200ed['on']('addMarker:suggestion',(_0x1ba43b,_0x3b0c35,_0x4af2c4)=>{if(!_0x4af2c4['options']['showSuggestionHighlights'])return;const _0x411bf8=_0x3b0c35['item'];if(!_0x411bf8)return;const _0x40becd=_0x4af2c4['mapper']['toViewElement'](_0x411bf8);_0x3e4a43['model']['schema']['isObject'](_0x411bf8)&&_0x40becd&&!_0x40becd['getCustomProperty']('widget')&&_0x40becd['is']('containerElement')&&_0x41b610(_0x40becd,_0x4af2c4['writer']);},{'priority':'high'});}),_0x3e4a43['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x16f2ed,_0x4220da)=>{if(!_0x4220da['options']['showSuggestionHighlights'])return null;const {id:_0xfdf1e,authorId:_0x4b8466,type:_0x714e32,subType:_0x20e4b1}=this['_splitMarkerName'](_0x16f2ed['markerName']);return{'classes':['ck-suggestion-marker',_0x55d21f(_0x714e32,_0x20e4b1)],'priority':0xbb8,'attributes':{'data-suggestion':_0xfdf1e,'data-author-id':_0x4b8466}};}});const _0x200183=({showActiveMarkers:_0x1c1322=!0x0,isAttributeSuggestion:_0x1aa665=!0x1}={})=>(_0x49265b,_0x44eb34,_0x547a64)=>{if(!_0x44eb34['item'])return;const {id:_0x136e26,authorId:_0x3dfc25}=this['_splitMarkerName'](_0x44eb34['markerName']);if(_0x1aa665){const _0x4eb18d=this['_suggestions']['get'](_0x136e26),_0x5926a4=this['_getAttributeKey'](_0x4eb18d);if(!this['_isBlockAttribute'](_0x5926a4))return;}if(_0x44eb34['item']['is']('selection'))return void _0x547a64['consumable']['consume'](_0x44eb34['item'],_0x49265b['name']);const _0x1709e6=_0x547a64['mapper']['toViewElement'](_0x44eb34['item']);if(_0x44eb34['item']['is']('element')&&_0x3e4a43['model']['schema']['isBlock'](_0x44eb34['item'])&&!_0x1709e6['getCustomProperty']('addHighlight')){_0x547a64['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1709e6),_0x547a64['writer']['setAttribute']('data-suggestion',_0x136e26,_0x1709e6),_0x547a64['writer']['setAttribute']('data-author-id',_0x3dfc25,_0x1709e6),_0x547a64['mapper']['bindElementToMarker'](_0x1709e6,_0x44eb34['markerName']),_0x1c1322&&(this['activeMarkers']['includes'](_0x44eb34['markerName'])?_0x547a64['writer']['addClass']('ck-suggestion-marker--active',_0x1709e6):_0x547a64['writer']['removeClass']('ck-suggestion-marker--active',_0x1709e6));for(const _0x34ba38 of _0x3e4a43['model']['createRangeIn'](_0x44eb34['item'])['getItems']())_0x547a64['consumable']['consume'](_0x34ba38,_0x49265b['name']);_0x547a64['consumable']['consume'](_0x44eb34['item'],_0x49265b['name']);}};_0x3e4a43['conversion']['for']('dataDowncast')['add'](_0x2109ad=>{_0x2109ad['on']('addMarker:suggestion:formatBlock',(_0x2c5848,_0x2dad5b,_0x3fe2b9)=>{_0x3fe2b9['options']['showSuggestionHighlights']&&_0x200183({'showActiveMarkers':!0x1})(_0x2c5848,_0x2dad5b,_0x3fe2b9);},{'priority':'highest'});}),_0x3e4a43['conversion']['for']('dataDowncast')['add'](_0x4b4cc9=>{_0x4b4cc9['on']('addMarker:suggestion:attribute',(_0x2bae31,_0xb3ae37,_0x3fd1a1)=>{_0x3fd1a1['options']['showSuggestionHighlights']&&_0x200183({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2bae31,_0xb3ae37,_0x3fd1a1);},{'priority':'highest'});}),_0x3e4a43['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x351b96,_0x325645)=>{if(_0x325645['options']['showSuggestionHighlights']){const {id:_0x13ad9b,authorId:_0x2dcf79}=this['_splitMarkerName'](_0x351b96);return _0x351b96['includes'](':split')||_0x351b96['includes'](':merge')?{'group':'suggestion','name':_0x351b96['substr'](0xb),'attributes':{'data-suggestion':_0x13ad9b,'data-author-id':_0x2dcf79}}:null;}return{'group':'suggestion','name':_0x351b96['substr'](0xb)};}}),_0x3e4a43['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x251cc0,{writer:_0x3db4e2})=>{let _0x260115='suggestion:'+_0x251cc0['getAttribute']('suggestion-type')+':'+_0x251cc0['getAttribute']('id');return _0x251cc0['getAttribute']('marker-count')&&(_0x260115+=':'+_0x251cc0['getAttribute']('marker-count')),_0x3db4e2['createElement']('$marker',{'data-name':_0x260115});}}),_0x3e4a43['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e4a43['conversion']['for']('editingDowncast')['add'](_0x29955b=>{_0x29955b['on']('addMarker:suggestion:formatBlock',_0x200183(),{'priority':'high'});}),_0x3e4a43['conversion']['for']('editingDowncast')['add'](_0x10f5c9=>{_0x10f5c9['on']('addMarker:suggestion:attribute',_0x200183({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3e4a43['conversion']['for']('editingDowncast')['add'](_0x126fe1=>{_0x126fe1['on']('removeMarker:suggestion:formatBlock',(_0x539c4d,_0x57a873,_0x39a837)=>{const _0x2843a6=_0x39a837['mapper']['markerNameToElements'](_0x57a873['markerName']);if(_0x2843a6){for(const _0x4a207d of _0x2843a6)_0x4a207d['getCustomProperty']('addHighlight')||(_0x39a837['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a207d),_0x39a837['writer']['removeAttribute']('data-suggestion',_0x4a207d),_0x39a837['writer']['removeAttribute']('data-author-id',_0x4a207d),_0x39a837['mapper']['unbindElementFromMarkerName'](_0x4a207d,_0x57a873['markerName']));}},{'priority':'high'});}),_0x3e4a43['conversion']['for']('editingDowncast')['add'](_0x3a3267=>{_0x3a3267['on']('removeMarker:suggestion:attribute',(_0x3817d6,_0x1a4eca,_0x2a7aac)=>{const _0x40e111=_0x2a7aac['mapper']['markerNameToElements'](_0x1a4eca['markerName']);if(!_0x40e111)return;const {id:_0x1652fd}=this['_splitMarkerName'](_0x1a4eca['markerName']),_0x237f4c=this['_suggestions']['get'](_0x1652fd),_0x5e2c07=this['_getAttributeKey'](_0x237f4c);if(this['_isBlockAttribute'](_0x5e2c07)){for(const _0x179f99 of _0x40e111)_0x179f99['getCustomProperty']('addHighlight')||(_0x2a7aac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x179f99),_0x2a7aac['writer']['removeAttribute']('data-suggestion',_0x179f99),_0x2a7aac['writer']['removeAttribute']('data-author-id',_0x179f99),_0x2a7aac['mapper']['unbindElementFromMarkerName'](_0x179f99,_0x1a4eca['markerName']));}},{'priority':'high'});}),_0x3e4a43['model']['document']['registerPostFixer'](_0x3c0e4b=>{let _0x2fe420=!0x1;const _0x3a774b=Array['from'](_0x3e4a43['model']['document']['differ']['getChangedMarkers']()),_0x52c143=new Set();for(const {name:_0x298e6b,data:_0x4e5771}of _0x3a774b){const {group:_0x34c2bb,type:_0x42f079,subType:_0x2627fa,id:_0x376aae}=this['_splitMarkerName'](_0x298e6b);if('suggestion'!==_0x34c2bb)continue;const _0x34da2c=this['_suggestions']['get'](_0x376aae);if(null!=_0x4e5771['newRange']){'formatInline'==_0x42f079&&(_0x2fe420=_0x2fe420||Jt(_0x4e5771['newRange'],_0x298e6b,_0x3c0e4b,_0x3e4a43['model']['schema']));const _0x188a95='attribute'==_0x42f079&&this['_isBlockAttribute'](_0x2627fa['split']('|')[0x0]);if(_0x4e5771['newRange']['isCollapsed']||'$graveyard'==_0x4e5771['newRange']['root']['rootName']||'formatBlock'==_0x42f079&&!Ht(_0x4e5771['newRange'])||_0x188a95&&!Ht(_0x4e5771['newRange'])||'deletion'==_0x42f079&&!(!Lt(_0x271b0c=_0x4e5771['newRange'])&&!function(_0x165026){return _0x165026['start']['parent']==_0x165026['end']['nodeBefore']&&_0x165026['start']['isAtEnd'];}(_0x271b0c)))_0x3c0e4b['removeMarker'](_0x298e6b),_0x2fe420=!0x0;else{if(!_0x34da2c||!_0x34da2c['isInContent'])continue;if(_0x4e5771['newRange']&&_0x4e5771['oldRange']&&_0x4e5771['newRange']['isEqual'](_0x4e5771['oldRange']))continue;_0x52c143['add'](_0x34da2c);}}}var _0x271b0c;return _0x52c143['size']>0x0&&(_0x2fe420=!!this['_joinWithAdjacentSuggestions'](_0x52c143)||_0x2fe420),_0x2fe420;}),_0x3e4a43['model']['document']['registerPostFixer'](_0xbfd381=>{let _0x304161=!0x1;for(const _0x5c017d of _0x3e4a43['model']['document']['differ']['getChanges']())if('insert'==_0x5c017d['type'])for(const _0x469f40 of this['_suggestions']['values']()){if(_0x469f40['isMultiRange']||!_0x469f40['isInContent'])continue;const _0xab1e05='formatBlock'==_0x469f40['type'],_0x2114c3=this['_getAttributeKey'](_0x469f40),_0x3a5376=_0x2114c3&&this['_isBlockAttribute'](_0x2114c3);if(!_0xab1e05&&!_0x3a5376)continue;const _0x2f8dcb=_0x469f40['getFirstRange']();if(_0x2f8dcb['start']['parent']!=_0x2f8dcb['end']['parent']&&!_0x2f8dcb['end']['isAtEnd']){const _0xddd9ad=_0x3e4a43['model']['createPositionAt'](_0x2f8dcb['start']['nodeAfter'],'end'),_0x2053de=_0x3e4a43['model']['createRange'](_0x2f8dcb['start'],_0xddd9ad);_0xbfd381['updateMarker'](_0x469f40['getFirstMarker'](),{'range':_0x2053de}),_0x304161=!0x0;}}return _0x304161;}),_0x3e4a43['model']['document']['registerPostFixer'](_0x1e9778=>this['_processAttributeChanges'](_0x1e9778)),_0x3e4a43['model']['document']['registerPostFixer'](_0x28404e=>!_0x28404e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28404e)),_0x3e4a43['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e4a43['model']['document']['on']('change:data',(_0x389b3e,_0x1863d7)=>{if(!_0x1863d7['isLocal']||_0x1863d7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x46770b=_0x3e4a43['model']['document']['differ']['getChanges']();if(0x0==_0x46770b['length'])return;const _0xc7653b=[],_0x2623f2=_0x46770b['filter'](_0x3c3609=>'attribute'==_0x3c3609['type']),_0x30a8b3=_0x46770b['filter'](_0x307a66=>'insert'==_0x307a66['type']&&'$text'!=_0x307a66['name']);for(const _0x22a143 of _0x2623f2)this['_isRegisteredAttribute'](_0x22a143['attributeKey'])&&_0xc7653b['push']({'key':_0x22a143['attributeKey'],'newValue':_0x22a143['attributeNewValue'],'oldValue':_0x22a143['attributeOldValue'],'range':qt(_0x22a143['range'],_0x3e4a43['model'])});for(const _0x228187 of _0x30a8b3){if('rename'!=_0x228187['action']&&'refresh'!=_0x228187['action'])continue;const _0x30e828=zt(_0x228187['position']['nodeAfter'],_0x3e4a43['model']),_0x417724=_0x228187['before'];'rename'==_0x228187['action']&&_0xc7653b['push']({'key':u,'newValue':_0x228187['name'],'oldValue':_0x417724['name'],'range':_0x30e828});for(const [_0x114f73,_0x4c61bd]of _0x417724['attributes']){if(!this['_isRegisteredAttribute'](_0x114f73))continue;const _0x40bd7a=_0x228187['attributes']['get'](_0x114f73);_0x4c61bd!==_0x40bd7a&&_0xc7653b['push']({'key':_0x114f73,'newValue':_0x40bd7a,'oldValue':_0x4c61bd,'range':_0x30e828});}for(const [_0x421f0e,_0x14e9ab]of _0x228187['attributes'])this['_isRegisteredAttribute'](_0x421f0e)&&(_0x417724['attributes']['has'](_0x421f0e)||_0xc7653b['push']({'key':_0x421f0e,'newValue':_0x14e9ab,'oldValue':null,'range':_0x30e828}));}0x0!=_0xc7653b['length']&&_0x3e4a43['model']['enqueueChange'](_0x1863d7,_0xf5046a=>{const _0x4a8908=_0x204c92();for(const {range:_0x53c8da,key:_0x5f4a90,oldValue:_0x112c71,newValue:_0x5830fa}of _0xc7653b)this['markAttributeChange'](_0x53c8da,_0x5f4a90,_0x112c71,_0x5830fa,{'groupId':_0x4a8908});this['_reduceExistingSuggestions'](_0xf5046a,_0xc7653b);});},{'priority':'lowest'}),_0x3e4a43['model']['markers']['on']('update:suggestion',(_0x500319,_0x43ee47,_0x569a86)=>{if(null==_0x569a86){const {id:_0x1d33e6}=this['_splitMarkerName'](_0x43ee47['name']),_0x23e64c=this['_suggestions']['get'](_0x1d33e6);_0x23e64c&&_0x23e64c['addMarkerName'](_0x43ee47['name']);}}),_0x3e4a43['model']['document']['on']('change:data',()=>{const _0x5c61f1=Array['from'](_0x3e4a43['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a7932=>'suggestion'===this['_splitMarkerName'](_0x3a7932['name'])['group']);if(0x0===_0x5c61f1['length'])return;_0x5c61f1['sort']((_0x3c03fa,_0x28bd4f)=>{const _0x34521b=_0x3c03fa['data']['oldRange'],_0x5d6e3a=_0x28bd4f['data']['oldRange'];return null===_0x34521b&&null===_0x5d6e3a?0x0:null===_0x34521b&&null!==_0x5d6e3a?-0x1:null!==_0x34521b&&null===_0x5d6e3a?0x1:_0x34521b['start']['isBefore'](_0x5d6e3a['start'])?-0x1:0x1;});const _0x50b021=new Set(),_0x4c0a78=new Set();for(const {name:_0x2fe152,data:_0x2bfd1c}of _0x5c61f1){const {id:_0x398648}=this['_splitMarkerName'](_0x2fe152);if(null===_0x2bfd1c['oldRange']){const _0x237195=this['_handleNewSuggestionMarker'](_0x2fe152);_0x4c0a78['add'](_0x237195);}else{const _0x4a8141=this['_suggestions']['get'](_0x398648);null!==_0x2bfd1c['newRange']||_0x4a8141['isInContent']?(_0x50b021['add'](_0x4a8141['head']),_0x4c0a78['add'](_0x4a8141)):this['_removeSuggestion'](_0x4a8141);}}_0x4c0a78['size']>0x0&&this['_refreshSuggestionsChain'](_0x4c0a78);for(const _0x11faa4 of _0x50b021)this['fire']('suggestionChanged',_0x11faa4);}),_0x3e4a43['model']['on']('applyOperation',(_0x4cb503,_0xc64fa8)=>{const _0x372198=_0xc64fa8[0x0];if(!this['_suggestions']['size'])return;if(!_0x372198['isDocumentOperation'])return;if(_0x372198['batch']['isUndo']||!_0x372198['batch']['isLocal'])return;let _0x28c2d2,_0x2d25a5;switch(_0x372198['type']){case'insert':_0x28c2d2=_0x3e4a43['model']['createPositionAt'](_0x372198['position']),_0x2d25a5=_0x28c2d2['getShiftedBy'](_0x372198['howMany']);break;case'split':_0x28c2d2=_0x3e4a43['model']['createPositionAt'](_0x372198['splitPosition']),_0x2d25a5=_0x3e4a43['model']['createPositionAt'](_0x372198['moveTargetPosition']);break;case'move':_0x28c2d2=_0x3e4a43['model']['createPositionAt'](_0x372198['targetPosition']),_0x2d25a5=_0x28c2d2['getShiftedBy'](_0x372198['howMany']);break;default:return;}const _0x338aa7=_0x3e4a43['model']['createRange'](_0x28c2d2,_0x2d25a5);_0x3e4a43['model']['change'](()=>{for(const {suggestion:_0x3c5486,meta:_0x1b682f}of this['_findSuggestions'](_0x338aa7)){if(_0x3c5486['isMultiRange'])continue;if('formatInline'==_0x3c5486['type'])continue;const _0x2e9d84=this['_getAttributeKey'](_0x3c5486);if(_0x2e9d84&&this['_isBlockAttribute'](_0x2e9d84)&&'split'!=_0x372198['type'])continue;const _0x434a52=_0x3c5486['data']&&_0x3c5486['data']['multipleBlocks'];('formatBlock'!=_0x3c5486['type']||'split'==_0x372198['type']&&!_0x434a52)&&(_0x1b682f['containsRangeInObject']||'insertion'==_0x3c5486['type']&&_0x1b682f['isOwn']||_0x3c5486['getFirstRange']()['containsRange'](_0x338aa7)&&this['_breakSuggestionMarker'](_0x3c5486,_0x28c2d2,_0x2d25a5));}});},{'priority':'lowest'}),_0x3e4a43['model']['on']('deleteContent',(_0x2f6cac,_0x461f94)=>{const _0x1f4a1e=_0x461f94[0x0],_0x3bb871=_0x461f94[0x1];if(_0x3bb871&&_0x3bb871['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1f4a1e['isCollapsed'])return;const _0x25afde=_0x3e4a43['model']['schema'],{start:_0x20c343,end:_0x191c7b}=_0x1f4a1e['getFirstRange'](),_0x13f4e5=_0x20c343['nodeAfter']&&_0x25afde['isLimit'](_0x20c343['nodeAfter'])?null:_0x25afde['getNearestSelectionRange'](_0x20c343,'forward'),_0x317e77=_0x191c7b['nodeBefore']&&_0x25afde['isLimit'](_0x191c7b['nodeBefore'])?null:_0x25afde['getNearestSelectionRange'](_0x191c7b,'backward'),_0x2e75e5=_0x3e4a43['model']['createRange'](_0x13f4e5?_0x13f4e5['start']:_0x20c343,_0x317e77?_0x317e77['end']:_0x191c7b);_0x3e4a43['model']['change'](_0x4f025d=>{this['markDeletion'](_0x2e75e5);const _0xef65f7=_0x3e4a43['model']['schema']['getNearestSelectionRange'](_0x2e75e5['start']);_0x1f4a1e['is']('documentSelection')?_0x4f025d['setSelection'](_0xef65f7):_0x1f4a1e['setTo'](_0xef65f7);}),_0x2f6cac['stop']();},{'priority':_0x3313a5['normal']+0xa}),_0x3e4a43['model']['on']('insertContent',(_0x51339d,_0x15f78b)=>{const _0x45fe3b=_0x15f78b[_0x15f78b['length']-0x1];_0x45fe3b&&_0x45fe3b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e4a43['model']['change'](()=>{let _0x299c88=_0x3e4a43['model']['insertContent'](_0x15f78b[0x0],_0x15f78b[0x1],_0x15f78b[0x2],{'forceDefaultExecution':!0x0});if(!_0x299c88)return;_0x51339d['return']=_0x299c88['clone']();const _0x357910=_0x299c88['end']['nodeBefore'],_0x5ef5a8=_0x3e4a43['model']['schema'];_0x357910&&_0x5ef5a8['isBlock'](_0x357910)&&!_0x5ef5a8['isObject'](_0x357910)&&(_0x299c88=_0x3e4a43['model']['createRange'](_0x299c88['start'],_0x3e4a43['model']['createPositionAt'](_0x357910,'end'))),this['markInsertion'](_0x299c88);}),_0x51339d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bedaa=new x(_0x3e4a43,this['_suggestions']);_0x3e4a43['commands']['add']('acceptSuggestion',_0x4bedaa),this['enableCommand']('acceptSuggestion');const _0x388f63=new O(_0x3e4a43,this['_suggestions']);_0x3e4a43['commands']['add']('discardSuggestion',_0x388f63),this['enableCommand']('discardSuggestion'),_0x3e4a43['commands']['add']('acceptAllSuggestions',new R(_0x3e4a43,_0x4bedaa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e4a43['commands']['add']('discardAllSuggestions',new R(_0x3e4a43,_0x388f63,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e4a43['commands']['add']('acceptSelectedSuggestions',new E(_0x3e4a43,_0x4bedaa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e4a43['commands']['add']('discardSelectedSuggestions',new E(_0x3e4a43,_0x388f63,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x29afaa=_0x3e4a43['plugins']['get']('CommentsRepository');this['listenTo'](_0x29afaa,'addComment',(_0xe5d090,{threadId:_0x2e26a1})=>{const _0x326c88=this['_suggestions']['get'](_0x2e26a1);_0x326c88&&_0x326c88['commentThread']&&0x1===_0x326c88['commentThread']['length']&&this['_updateSuggestionData'](_0x2e26a1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x29afaa,'removeComment',(_0x33262f,{threadId:_0x30ec66})=>{const _0x312920=this['_suggestions']['get'](_0x30ec66);_0x312920&&_0x312920['commentThread']&&!_0x312920['commentThread']['length']&&this['_updateSuggestionData'](_0x30ec66,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x26f789){const _0x5c4110=_0x42b313([0x34,0x36,0x4a,0x51,0x52,0x44,0x39,0x6e,0x4f,0x65,0x58,0x53,0x61,0x48,0x6c,0x4c,0x79,0x66,0x67,0x42,0x33,0x32,0x37,0x63,0x72,0x68,0x78,0x30,0x4e,0x77,0x47,0x71,0x4b,0x70,0x4d,0x6d,0x55,0x69,0x41,0x6f,0x50,0x74,0x59,0x62,0x76,0x6a,0x38,0x31,0x43,0x46,0x35,0x54,0x6b,0x75,0x57,0x56,0x64,0x73,0x5a,0x45,0x49,0x7a]),_0x119e5c=0x7b1b0f19,_0x8c770b=0x7b1c6621^_0x119e5c,_0x59cccd=window[_0x42b313([0x44,0x61,0x74,0x65])][_0x42b313([0x6e,0x6f,0x77])](),_0x39d714=_0x26f789[_0x42b313([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25220c=new window[(_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1acbbb=>{_0x39d714[_0x42b313([0x6f,0x6e,0x63,0x65])](_0x42b313([0x72,0x65,0x61,0x64,0x79]),_0x1acbbb);}),_0x4ff8da={[_0x42b313([0x6b,0x74,0x79])]:_0x42b313([0x45,0x43]),[_0x42b313([0x75,0x73,0x65])]:_0x42b313([0x73,0x69,0x67]),[_0x42b313([0x63,0x72,0x76])]:_0x42b313([0x50,0x2d,0x32,0x35,0x36]),[_0x42b313([0x78])]:_0x42b313([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]),[_0x42b313([0x79])]:_0x42b313([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]),[_0x42b313([0x61,0x6c,0x67])]:_0x42b313([0x45,0x53,0x32,0x35,0x36])},_0x6e21ed=_0x39d714[_0x42b313([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42b313([0x67,0x65,0x74])](_0x42b313([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2dbe0d(){let _0x388d82,_0x2125a1=null,_0x1dde0d=null;try{if(_0x6e21ed==_0x42b313([0x47,0x50,0x4c]))return _0x42b313([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x388d82=_0x26e0eb(),!_0x388d82)return _0x42b313([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x388d82[_0x42b313([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dde0d=_0x50c50a(_0x388d82[_0x42b313([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x388d82[_0x42b313([0x6a,0x74,0x69])])),await _0x2bab87()?_0x5f45df()?_0x450d77()?_0x42b313([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x315338()?(_0x388d82[_0x42b313([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42b313([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2125a1=_0x267991(_0x42b313([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x388d82[_0x42b313([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42b313([0x74,0x72,0x69,0x61,0x6c])&&(_0x2125a1=_0x267991(_0x42b313([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c0081()):_0x42b313([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42b313([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42b313([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42b313([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x450d77(){const _0x5e82cd=[_0x42b313([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42b313([0x74,0x72,0x69,0x61,0x6c])][_0x42b313([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388d82[_0x42b313([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59cccd/0x3e8:0xe10*_0x8c770b;return _0x388d82[_0x42b313([0x65,0x78,0x70])]<_0x5e82cd;}function _0x5f45df(){const _0x7c4898=_0x388d82[_0x42b313([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7c4898)return!0x1;if(_0x7c4898[_0x42b313([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b313([0x2a])))return!0x0;if(_0x7c4898[_0x42b313([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b313([0x54,0x43])))return!0x0;if(_0x7c4898[_0x42b313([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b313([0x52,0x54,0x43]))){if(_0x4710a3())return!0x0;if(_0x552bc5()||_0x202c0b())return!0x0;}return!0x1;}function _0x315338(){const _0x5aaa9d=_0x388d82[_0x42b313([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aaa9d||0x0==_0x5aaa9d[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5498de}=new URL(window[_0x42b313([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5aaa9d[_0x42b313([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5498de))return!0x0;const _0x154ab8=_0x5498de[_0x42b313([0x73,0x70,0x6c,0x69,0x74])](_0x42b313([0x2e]));return _0x5aaa9d[_0x42b313([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522d5f=>_0x522d5f[_0x42b313([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b313([0x2a])))[_0x42b313([0x6d,0x61,0x70])](_0x2afc48=>_0x2afc48[_0x42b313([0x73,0x70,0x6c,0x69,0x74])](_0x42b313([0x2e])))[_0x42b313([0x73,0x6f,0x6d,0x65])](_0x2b2bcd=>_0x154ab8[_0x42b313([0x65,0x76,0x65,0x72,0x79])]((_0xe5862d,_0x37296d)=>_0x2b2bcd[_0x37296d]===_0xe5862d||_0x2b2bcd[_0x37296d]===_0x42b313([0x2a])));}function _0x2c0081(){return _0x2125a1&&_0x1dde0d?new window[(_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x371870,_0x18b451)=>{_0x2125a1[_0x42b313([0x74,0x68,0x65,0x6e])](_0x371870,_0x18b451),_0x1dde0d[_0x42b313([0x74,0x68,0x65,0x6e])](_0x3dfa41=>{_0x3dfa41!=_0x42b313([0x56,0x61,0x6c,0x69,0x64])&&_0x371870(_0x3dfa41);},_0x18b451);}):_0x2125a1||_0x1dde0d||_0x42b313([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50c50a(_0x39a42c,_0x49f2c3){return new window[(_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29a988=>{if(_0x58127d())return _0x29a988(_0x42b313([0x56,0x61,0x6c,0x69,0x64]));_0x9215e4(),_0x39d714[_0x42b313([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42b313([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b2aae=!0x1;const _0x5cff39=_0x204c92();function _0x249d86(_0x1d7a11){return!!_0x1d7a11&&(typeof _0x1d7a11===_0x42b313([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d7a11===_0x42b313([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d7a11[_0x42b313([0x74,0x68,0x65,0x6e])]===_0x42b313([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d7a11[_0x42b313([0x63,0x61,0x74,0x63,0x68])]===_0x42b313([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5acd2e(_0x4e98c7){_0x206366(_0x4e98c7)[_0x42b313([0x74,0x68,0x65,0x6e])](_0x5a3d28=>{if(!_0x5a3d28||_0x5a3d28[_0x42b313([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42b313([0x6f,0x6b]))return _0x42b313([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3603a5(_0x1af092(_0x5cff39+_0x49f2c3))!=_0x5a3d28[_0x42b313([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42b313([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42b313([0x56,0x61,0x6c,0x69,0x64]);})[_0x42b313([0x74,0x68,0x65,0x6e])](_0x36f593=>(_0x411dd4(),_0x36f593),()=>{const _0x3f1abc=_0x4db6ff();return null==_0x3f1abc?(_0x411dd4(),_0x42b313([0x56,0x61,0x6c,0x69,0x64])):_0x42b313(_0x59cccd-_0x3f1abc>(0x5f178b19^_0x119e5c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42b313([0x74,0x68,0x65,0x6e])](_0x29a988)[_0x42b313([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29a988(_0x42b313([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49949b=0x7b2de199^_0x119e5c;function _0x411dd4(){const _0xeb5092=_0x42b313([0x6c,0x6c,0x63,0x74,0x2d])+_0x3603a5(_0x1af092(_0x39a42c)),_0x209d61=_0x173902(_0x3603a5(window[_0x42b313([0x4d,0x61,0x74,0x68])][_0x42b313([0x63,0x65,0x69,0x6c])](_0x59cccd/_0x49949b)));window[_0x42b313([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42b313([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeb5092,_0x209d61);}function _0x4db6ff(){const _0x2b3962=_0x42b313([0x6c,0x6c,0x63,0x74,0x2d])+_0x3603a5(_0x1af092(_0x39a42c)),_0x57781d=window[_0x42b313([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42b313([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b3962);return _0x57781d?window[_0x42b313([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173902(_0x57781d),0x10)*_0x49949b:null;}function _0x206366(_0x5170b1){return new window[(_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x228541,_0x49eb15)=>{_0x5170b1[_0x42b313([0x74,0x68,0x65,0x6e])](_0x228541,_0x49eb15),window[_0x42b313([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49eb15,0x7b1adbd9^_0x119e5c);});}}_0x39d714[_0x42b313([0x6f,0x6e])](_0x42b313([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ef6a5,_0x433c37)=>{if(_0x433c37[0x0]!=_0x39a42c)return _0x29a988(_0x42b313([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x433c37[0x1]={..._0x433c37[0x1],[_0x42b313([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5cff39};},{[_0x42b313([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42b313([0x68,0x69,0x67,0x68])}),_0x39d714[_0x42b313([0x6f,0x6e])](_0x42b313([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x292e8f=>{_0x249d86(_0x292e8f[_0x42b313([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b2aae=!0x0,_0x5acd2e(_0x292e8f[_0x42b313([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42b313([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42b313([0x6c,0x6f,0x77])}),_0x25220c[_0x42b313([0x74,0x68,0x65,0x6e])](()=>{_0x1b2aae||_0x29a988(_0x42b313([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58127d(){return _0x39d714[_0x42b313([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42b313([0x76,0x69,0x65,0x77])][_0x42b313([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42b313([0x61,0x75,0x74,0x6f]);}function _0x9215e4(){_0x39d714[_0x42b313([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42b313([0x76,0x69,0x65,0x77])][_0x42b313([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42b313([0x61,0x75,0x74,0x6f]);}}function _0x267991(_0x5b625e){const _0x48b32e=[new window[(_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f097d=>setTimeout(_0x4f097d,0x7b1231d5^_0x119e5c)),_0x25220c[_0x42b313([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f0e4f=>{let _0x41086b=0x0;_0x39d714[_0x42b313([0x6d,0x6f,0x64,0x65,0x6c])][_0x42b313([0x6f,0x6e])](_0x42b313([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1149a7,_0x2c7d81)=>{_0x2c7d81[0x0][_0x42b313([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41086b++,_0x41086b==(0x7b1b0ee1^_0x119e5c)&&(_0x3f0e4f(),_0x1149a7[_0x42b313([0x6f,0x66,0x66])]());});}))];return window[_0x42b313([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42b313([0x72,0x61,0x63,0x65])](_0x48b32e)[_0x42b313([0x74,0x68,0x65,0x6e])](()=>_0x5b625e);}async function _0x343225(){await _0x25220c,_0x39d714[_0x42b313([0x6d,0x6f,0x64,0x65,0x6c])][_0x42b313([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53f066,_0x39d714[_0x42b313([0x6d,0x6f,0x64,0x65,0x6c])][_0x42b313([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53f066,_0x39d714[_0x42b313([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42b313([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4710a3(){return _0x1a2724(_0x42b313([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x168b33(_0x42b313([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42b313([0x73,0x74,0x61,0x74,0x65])]==_0x42b313([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x552bc5(){return _0x1a2724(_0x42b313([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 _0x202c0b(){return _0x1a2724(_0x42b313([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x423646(_0x252016){const _0xb78b27=_0x1c7651();_0x39d714[_0xb78b27]=_0x42b313([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x252016,_0x252016!=_0x42b313([0x56,0x61,0x6c,0x69,0x64])&&_0x343225();}function _0x1c7651(){const _0x364f5e=window[_0x42b313([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42b313([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42b313([0x6e,0x6f,0x77])]())[_0x42b313([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42b313([0x2e]),'');let _0x1ca820=_0x42b313([0x4a]);for(let _0x4e962d=0x0;_0x4e962d<_0x364f5e[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e962d+=0x2){let _0xb3651b=window[_0x42b313([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x364f5e[_0x42b313([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e962d,_0x4e962d+0x2));_0xb3651b>=_0x5c4110[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb3651b-=_0x5c4110[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ca820+=_0x5c4110[_0xb3651b];}return _0x1ca820;}function _0x26e0eb(){const _0x781d1c=_0x6e21ed[_0x42b313([0x73,0x70,0x6c,0x69,0x74])](_0x42b313([0x2e]));if(0x3!=_0x781d1c[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58fba4(_0x781d1c[0x1]);function _0x58fba4(_0x5eb14e){const _0x48c221=_0x328462(_0x5eb14e);return _0x48c221&&_0x2565d7()?_0x48c221:null;function _0x2565d7(){const _0x154cb8=_0x48c221[_0x42b313([0x6a,0x74,0x69])],_0x35b93d=window[_0x42b313([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x154cb8[_0x42b313([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x154cb8[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x195fa6={..._0x48c221,[_0x42b313([0x6a,0x74,0x69])]:_0x154cb8[_0x42b313([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x154cb8[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x195fa6[_0x42b313([0x76,0x63])],_0x1af092(_0x195fa6)==_0x35b93d;}}}async function _0x2bab87(){let _0x1dc68e=!0x0;try{const _0x4683ee=_0x6e21ed[_0x42b313([0x73,0x70,0x6c,0x69,0x74])](_0x42b313([0x2e])),[_0xed00b8,_0x652637,_0xad789f]=_0x4683ee;return _0x4ee064(_0xed00b8),await _0x5ad968(_0xed00b8,_0x652637,_0xad789f),_0x1dc68e;}catch{return!0x1;}function _0x4ee064(_0x52bdaa){const _0x318808=_0x328462(_0x52bdaa);_0x318808&&_0x318808[_0x42b313([0x61,0x6c,0x67])]==_0x42b313([0x45,0x53,0x32,0x35,0x36])||(_0x1dc68e=!0x1);}async function _0x5ad968(_0x427549,_0x51dbb7,_0x326308){const _0x5b9bb0=window[_0x42b313([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42b313([0x66,0x72,0x6f,0x6d])](_0xc8b30e(_0x326308),_0x367f5f=>_0x367f5f[_0x42b313([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x599724=new window[(_0x42b313([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42b313([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x427549+_0x42b313([0x2e])+_0x51dbb7),_0x5899bd=window[_0x42b313([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42b313([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5899bd)return;const _0x24d8be=await _0x5899bd[_0x42b313([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42b313([0x6a,0x77,0x6b]),_0x4ff8da,{[_0x42b313([0x6e,0x61,0x6d,0x65])]:_0x42b313([0x45,0x43,0x44,0x53,0x41]),[_0x42b313([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42b313([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42b313([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5899bd[_0x42b313([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42b313([0x6e,0x61,0x6d,0x65])]:_0x42b313([0x45,0x43,0x44,0x53,0x41]),[_0x42b313([0x68,0x61,0x73,0x68])]:{[_0x42b313([0x6e,0x61,0x6d,0x65])]:_0x42b313([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24d8be,_0x5b9bb0,_0x599724)||(_0x1dc68e=!0x1);}}function _0x328462(_0x137e80){return _0x137e80[_0x42b313([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42b313([0x65,0x79]))?JSON[_0x42b313([0x70,0x61,0x72,0x73,0x65])](_0xc8b30e(_0x137e80)):null;}function _0xc8b30e(_0x5be7cc){return window[_0x42b313([0x61,0x74,0x6f,0x62])](_0x5be7cc[_0x42b313([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42b313([0x2b]))[_0x42b313([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42b313([0x2f])));}function _0x1af092(_0x41fcd0){let _0x42a118=0x1505;function _0x156513(_0x1bc385){for(let _0x57a203=0x0;_0x57a203<_0x1bc385[_0x42b313([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57a203++){const _0x30e5d3=_0x1bc385[_0x42b313([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57a203);_0x42a118=(_0x42a118<<0x5)+_0x42a118+_0x30e5d3,_0x42a118&=_0x42a118;}}function _0x475a4c(_0x3fc9a1){Array[_0x42b313([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fc9a1)?_0x3fc9a1[_0x42b313([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x475a4c):_0x3fc9a1&&typeof _0x3fc9a1==_0x42b313([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42b313([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fc9a1)[_0x42b313([0x73,0x6f,0x72,0x74])]()[_0x42b313([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c728f,_0x4555c3])=>{_0x156513(_0x2c728f),_0x475a4c(_0x4555c3);}):_0x156513(window[_0x42b313([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fc9a1));}return _0x475a4c(_0x41fcd0),_0x42a118>>>0x0;}function _0x3603a5(_0x46fb5d){return _0x46fb5d[_0x42b313([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42b313([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42b313([0x30]));}function _0x173902(_0x595750){return _0x595750[_0x42b313([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42b313([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42b313([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a2724(_0x394d5a){return _0x39d714[_0x42b313([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42b313([0x68,0x61,0x73])](_0x394d5a);}function _0x168b33(_0x1f3858){return _0x39d714[_0x42b313([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42b313([0x67,0x65,0x74])](_0x1f3858);}function _0x53f066(){}function _0x42b313(_0x449e84){return _0x449e84['map'](_0x40e9fd=>String['fromCharCode'](_0x40e9fd))['join']('');}_0x423646(await _0x2dbe0d());}(this);}set['adapter'](_0x2b9a5a){if(this['_adapter'])throw new _0x5b6dee('track-changes-adapter-already-set',this);this['_adapter']=_0x2b9a5a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x317240=!0x1,toJSON:_0x4f4464=!0x1}={}){const _0x154077=[];for(const _0x43cd30 of this['_suggestions']['values']())_0x317240&&!_0x43cd30['isInContent']||_0x154077['push'](_0x43cd30);return _0x4f4464?_0x154077['map'](_0x3df034=>_0x3df034['toJSON']()):_0x154077;}['getSuggestion'](_0x23693b){const _0x41af5e=this['_suggestions']['get'](_0x23693b);if(!_0x41af5e)throw new _0x5b6dee('track-changes-suggestion-not-found',this);return _0x41af5e;}['hasSuggestion'](_0x152b7a){return this['_suggestions']['has'](_0x152b7a);}['addSuggestionData'](_0xf2fa35){const {authorId:_0x3e9ff6,id:_0x55302d,originalSuggestionId:_0x407eca,attributes:_0xae751b}=_0xf2fa35,[_0x2cffaa,_0x4e008e]=_0xf2fa35['type']['split'](':'),_0x310d76=this['_suggestions']['get'](_0x55302d)||this['_createSuggestion'](_0x2cffaa,_0x4e008e,_0x55302d,_0x3e9ff6,_0xae751b,_0x407eca);if(this['_addThreadToSuggestion'](_0x310d76),this['_checkSuggestionCorrectness'](_0x310d76,_0x2cffaa,_0x4e008e||null,_0x3e9ff6),_0x310d76['createdAt']=_0xf2fa35['createdAt'],_0x310d76['_isDataLoaded']=!0x0,_0xae751b&&_0xae751b['@external']){const _0x262276=_0xae751b['@external'],_0x2f155b=this['_getExternalAuthor'](_0x262276['authorName']);_0x310d76['authoredAt']=_0x262276['createdAt'],_0x310d76['author']=_0x2f155b,_0x310d76['isExternal']=!0x0;}else _0x310d76['authoredAt']=_0xf2fa35['createdAt'];switch(_0xf2fa35['data']&&(_0x310d76['data']=_0xf2fa35['data']),_0xf2fa35['attributes']&&(_0x310d76['attributes']=_0xf2fa35['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x310d76['_saved']=!0x0),this['_suggestionState']['get'](_0x310d76)){case'notReady':this['_suggestionState']['set'](_0x310d76,'dataReady');break;case'markerReady':_0x310d76['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x310d76])),this['_refreshSuggestionsChain'](new Set([_0x310d76])),this['_suggestionState']['set'](_0x310d76,'ready'),this['fire']('suggestionLoaded',_0x310d76)):this['_suggestionState']['set'](_0x310d76,'removed');}return _0x310d76;}['acceptSuggestion'](_0x199b4f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x181cc1 of _0x199b4f['getAllAdjacentSuggestions']())_0x181cc1['accept']();});});}['discardSuggestion'](_0x36c1e9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a7d7d of _0x36c1e9['getAllAdjacentSuggestions']())_0x4a7d7d['discard']();});});}['enableCommand'](_0x29c69a,_0x1687ea){const _0x1d52c2=this['editor']['commands']['get'](_0x29c69a);if(!_0x1d52c2)throw new _0x5b6dee('track-changes-command-not-found',this,{'commandName':_0x29c69a});if(this['_enabledCommands']['has'](_0x1d52c2))throw new _0x5b6dee('track-changes-enable-command-twice',this,{'commandName':_0x29c69a});this['_enabledCommands']['add'](_0x1d52c2),_0x1687ea&&_0x1d52c2['on']('execute',(_0x522fe2,_0x4b710e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4b710e['length']>0x0&&_0x4b710e[_0x4b710e['length']-0x1]&&_0x4b710e[_0x4b710e['length']-0x1]['forceDefaultExecution']?_0x4b710e['pop']():(_0x522fe2['return']=_0x1687ea((..._0xd11bd9)=>_0x1d52c2['execute'](..._0xd11bd9,{'forceDefaultExecution':!0x0}),..._0x4b710e),_0x522fe2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x268cac){let _0x29e9f8,_0x428fac;const _0x202e89=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x29e9f8=_0x268cac();}catch(_0x328ca1){_0x428fac=_0x328ca1;}return _0x202e89||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x428fac&&_0x5b6dee['rethrowUnexpectedError'](_0x428fac,this),_0x29e9f8;}['markInsertion'](_0x35a594,_0x286b4c=null,_0x4cca91={}){if(_0x35a594['isCollapsed'])return null;const _0x2274ca=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4cca91['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd38357,meta:_0x2767a1}of this['_findSuggestions'](_0x35a594,'insertion'))if(_0x2767a1['isOwn']){if(!_0x2767a1['isNextTo']){if(_0x2767a1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0xd38357,_0x4cca91))continue;return _0xd38357;}if(Xt(_0xd38357,_0x4cca91))return _0xd38357;this['_breakSuggestionMarker'](_0xd38357,_0x35a594['start'],_0x35a594['end']);break;}if(_0x286b4c==_0xd38357['subType']&&Xt(_0xd38357,_0x4cca91)){const _0x16d9c4=_0xd38357['getFirstRange']();return _0x16d9c4['start']['isEqual'](_0x35a594['end'])?this['_setSuggestionRange'](_0xd38357,this['_model']['createRange'](_0x35a594['start'],_0x16d9c4['end'])):this['_setSuggestionRange'](_0xd38357,this['_model']['createRange'](_0x16d9c4['start'],_0x35a594['end'])),_0xd38357;}}const _0x22cf1c=_0x204c92(),_0x1bbb48=_0x2274ca['id'],_0x5602a4=_0x286b4c?'insertion:'+_0x286b4c:'insertion',_0x497c01=this['_setSuggestionData']({'id':_0x22cf1c,'type':_0x5602a4,'createdAt':new Date(),'authorId':_0x1bbb48,'attributes':_0x4cca91});return this['_addSuggestionMarker'](_0x5602a4,_0x22cf1c,_0x1bbb48,_0x35a594),_0x497c01;}['markMultiRangeInsertion'](_0x4ae3d0,_0x4bcdd6='multi',_0x44e5cd={}){const _0x311a02=this['editor']['plugins']['get']('Users')['me'],_0x3e6ab8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4bcdd6,'join');this['_trackingSessionId']&&(_0x44e5cd['trackingSessionId']=this['_trackingSessionId']);for(const _0x2f5c7c of this['getSuggestions']())if(_0x2f5c7c['author']['id']==_0x311a02['id']&&'insertion'==_0x2f5c7c['type']&&_0x2f5c7c['subType']==_0x4bcdd6&&Xt(_0x2f5c7c,_0x44e5cd)&&(_0x3e6ab8(_0x2f5c7c['getRanges'](),_0x4ae3d0)||_0x3e6ab8(_0x4ae3d0,_0x2f5c7c['getRanges']()))){for(const _0x514734 of _0x4ae3d0)_0x2f5c7c['addRange'](_0x514734);return _0x2f5c7c;}for(const {suggestion:_0x25247e,meta:_0x10e834}of this['_findSuggestions'](_0x4ae3d0,'insertion')){if(!_0x10e834['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x10e834['containsRangeInObject'])continue;if(!Xt(_0x25247e,_0x44e5cd))continue;let _0x751ce8=!0x0;for(const _0x40defb of _0x25247e['getRanges']())for(const _0xe8b440 of _0x4ae3d0)if(!_0x40defb['containsRange'](_0xe8b440)){_0x751ce8=!0x1;break;}if(_0x751ce8)return _0x25247e;}const _0x2cd52b=_0x204c92(),_0x2ce2a2=_0x311a02['id'],_0x1d6740='insertion:'+_0x4bcdd6,_0x4cfbcd=this['_setSuggestionData']({'id':_0x2cd52b,'type':_0x1d6740,'createdAt':new Date(),'authorId':_0x2ce2a2,'attributes':_0x44e5cd});for(const _0x2c2318 of _0x4ae3d0)this['_addSuggestionMarker'](_0x1d6740,_0x2cd52b,_0x2ce2a2,_0x2c2318,o['getMultiRangeId']());return _0x4cfbcd;}['markInlineFormat'](_0x1ac4ea,_0xebc048,_0x345ef1=null,_0x4ac245={}){if(_0x345ef1=_0x345ef1||Kt(_0xebc048),_0x1ac4ea['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4ac245['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c7a34=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x345ef1,'accept');return this['forceDefaultExecution'](()=>_0x5c7a34([_0x1ac4ea],_0xebc048,_0x4ac245)),null;}const _0xf3f98e=this['editor']['plugins']['get']('Users')['me'],_0x2acc1f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x9c0e5b,meta:_0x34701a}of this['_findSuggestions'](_0x1ac4ea,'insertion'))_0x34701a['isOwn']&&!_0x34701a['isInsideObject']&&_0x2acc1f['push'](..._0x9c0e5b['getRanges']());}const _0x4e0fb1=function(_0x37b0e1,_0x4ce960){const _0x4bcc65=[];for(const _0x58650c of _0x4ce960){const _0x11cd43=_0x37b0e1['getIntersection'](_0x58650c);_0x11cd43&&_0x4bcc65['push'](_0x11cd43);}return _0x4bcc65;}(_0x1ac4ea,_0x2acc1f),_0x3ae80e=function(_0x44ddee,_0x32bb2e){const _0x477e0c=[_0x44ddee];for(const _0x1ac194 of _0x32bb2e){let _0x1c2f74=0x0;for(;_0x1c2f74<_0x477e0c['length'];){const _0x3f79a3=_0x477e0c[_0x1c2f74]['getDifference'](_0x1ac194);_0x477e0c['splice'](_0x1c2f74,0x1,..._0x3f79a3),_0x1c2f74+=_0x3f79a3['length'];}}return _0x477e0c;}(_0x1ac4ea,_0x2acc1f);_0x4e0fb1['length']&&this['_model']['change'](()=>{for(const _0x1df8cb of _0x4e0fb1){const _0x555ce9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x345ef1,'accept');this['forceDefaultExecution'](()=>_0x555ce9([_0x1df8cb],_0xebc048,_0x4ac245));}});for(const _0x1e5486 of _0x3ae80e){let _0x19d3f4=null,_0xa7cd7=_0x1e5486['start'],_0x170652=_0x1e5486['end'];for(const {suggestion:_0x1254b2,meta:_0x3b0b67}of this['_findSuggestions'](_0x1e5486,'formatInline')){if(!_0x3b0b67['isOwn'])continue;if(_0x1254b2['subType']!=_0x345ef1)continue;if(!Xt(_0x1254b2,_0x4ac245))continue;const _0x36e172=_0x1254b2['getFirstRange']();if(_0x36e172['containsRange'](_0x1e5486,!0x0))return null;_0xa7cd7=_0xa7cd7['isBefore'](_0x36e172['start'])?_0xa7cd7:_0x36e172['start'],_0x170652=_0x170652['isAfter'](_0x36e172['end'])?_0x170652:_0x36e172['end'],_0x19d3f4?_0x36e172['start']['isBefore'](_0x19d3f4['getFirstRange']()['start'])?(_0x19d3f4['removeMarkers'](),_0x19d3f4=_0x1254b2):_0x1254b2['removeMarkers']():_0x19d3f4=_0x1254b2;}const _0x3ba5c1=this['_model']['createRange'](_0xa7cd7,_0x170652);if(_0x19d3f4)this['_setSuggestionRange'](_0x19d3f4,_0x3ba5c1);else{const _0x4e5bab=_0x204c92(),_0xff8c88=_0xf3f98e['id'];this['_setSuggestionData']({'id':_0x4e5bab,'type':'formatInline:'+_0x345ef1,'data':_0xebc048,'createdAt':new Date(),'authorId':_0xff8c88,'attributes':_0x4ac245}),this['_addSuggestionMarker']('formatInline:'+_0x345ef1,_0x4e5bab,_0xff8c88,_0x3ba5c1);}}return null;}['markBlockFormat'](_0xc0d920,_0x3544a4,_0x429e2f=[],_0x5a9483=null,_0x16d7f2={}){_0x3544a4['formatGroupId']||(_0x3544a4['formatGroupId']=_0x3544a4['commandName']),_0x3544a4['multipleBlocks']=_0xc0d920['is']('range'),_0x5a9483=_0x5a9483||Kt(_0x3544a4);const _0x1a6ece=_0x429e2f['map'](_0x4c9f32=>zt(_0x4c9f32,this['_model'])),_0x20097f=_0xc0d920['is']('range')?_0xc0d920:zt(_0xc0d920,this['_model']);if(this['_trackingSessionId']&&(_0x16d7f2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f04e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a9483,'accept');return this['forceDefaultExecution'](()=>_0x1f04e3([_0x20097f],_0x3544a4,_0x16d7f2)),null;}_0x1a6ece['push'](_0x20097f);let _0x4cbc66=!0x0;for(const _0x549538 of _0x1a6ece)if(!this['_rangeIsInLocalUserInsertion'](_0x549538)){_0x4cbc66=!0x1;break;}if(_0x4cbc66&&'always'!==this['_trackFormatChanges']){const _0x2eeb83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a9483,'accept');return this['forceDefaultExecution'](()=>_0x2eeb83([_0x20097f],_0x3544a4,_0x16d7f2)),null;}let _0x465ad9=null,_0x4e12e6=_0x20097f['start'],_0x40f8ec=_0x20097f['end'];for(const {suggestion:_0x1b6780,meta:_0x5e72c0}of this['_findSuggestions'](_0x20097f,'formatBlock')){if(!_0x5e72c0['isOwn'])continue;if(_0x5e72c0['isNextTo']||_0x5e72c0['containsRangeInObject']||_0x5e72c0['isInsideObject'])continue;if(_0x1b6780['data']['formatGroupId']!=_0x3544a4['formatGroupId'])continue;if(!Xt(_0x1b6780,_0x16d7f2))continue;const _0x28ac1a=_0x1b6780['getFirstRange']();if(_0x1b6780['subType']==_0x5a9483){if(_0x28ac1a['containsRange'](_0x20097f,!0x0))return null;_0x4e12e6=_0x4e12e6['isBefore'](_0x28ac1a['start'])?_0x4e12e6:_0x28ac1a['start'],_0x40f8ec=_0x40f8ec['isAfter'](_0x28ac1a['end'])?_0x40f8ec:_0x28ac1a['end'],_0x465ad9?_0x28ac1a['start']['isBefore'](_0x465ad9['getFirstRange']()['start'])?(_0x465ad9['removeMarkers'](),_0x465ad9=_0x1b6780):_0x1b6780['removeMarkers']():_0x465ad9=_0x1b6780;}else{const _0xa5db6f=_0x20097f['getIntersection'](_0x28ac1a);this['_cutOutSuggestionMarker'](_0x1b6780,_0xa5db6f);}}const _0x154776=this['editor']['plugins']['get']('Users')['me'],_0x501140=_0x204c92(),_0x2e9d54=_0x154776['id'];if(_0x465ad9)return this['_setSuggestionRange'](_0x465ad9,this['_model']['createRange'](_0x4e12e6,_0x40f8ec)),_0x465ad9;{const _0x354658=this['_setSuggestionData']({'id':_0x501140,'type':'formatBlock:'+_0x5a9483,'data':_0x3544a4,'createdAt':new Date(),'authorId':_0x2e9d54,'attributes':_0x16d7f2});return this['_addSuggestionMarker']('formatBlock:'+_0x5a9483,_0x501140,_0x2e9d54,this['_model']['createRange'](_0x4e12e6,_0x40f8ec)),_0x354658;}}['markMultiRangeBlockFormat'](_0x37cc7d,_0x43266b,_0x14c1b4=[],_0x58329a=null,_0x339c09={}){_0x43266b['formatGroupId']||(_0x43266b['formatGroupId']=_0x43266b['commandName']);const _0x321c36=_0x37cc7d[0x0];_0x43266b['multipleBlocks']=_0x321c36['is']('range'),_0x58329a=_0x58329a||Kt(_0x43266b);const _0x107ce4=_0x14c1b4['map'](_0x52ed2b=>zt(_0x52ed2b,this['_model'])),_0x5998cd=_0x321c36['is']('range')?_0x37cc7d:_0x37cc7d['map'](_0x32d318=>zt(_0x32d318,this['_model']));if(this['_trackingSessionId']&&(_0x339c09['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d3c0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58329a,'accept');return this['forceDefaultExecution'](()=>_0x1d3c0e(_0x5998cd,_0x43266b,_0x339c09)),null;}_0x107ce4['push'](..._0x5998cd);let _0x184eda=!0x0;for(const _0x37e72f of _0x107ce4)if(!this['_rangeIsInLocalUserInsertion'](_0x37e72f)){_0x184eda=!0x1;break;}if(_0x184eda&&'always'!==this['_trackFormatChanges']){const _0x4ba9c8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58329a,'accept');return this['forceDefaultExecution'](()=>_0x4ba9c8(_0x5998cd,_0x43266b,_0x339c09)),null;}const _0x1bf79e=this['editor']['plugins']['get']('Users')['me'];for(const _0x318ce7 of this['getSuggestions']()){if(_0x318ce7['author']['id']!=_0x1bf79e['id'])continue;if('formatBlock'!=_0x318ce7['type']||_0x318ce7['data']['formatGroupId']!=_0x43266b['formatGroupId'])continue;if(!Xt(_0x318ce7,_0x339c09))continue;const _0x1b22e2=_0x318ce7['subType']==_0x58329a;for(let _0x1c2074=0x0;_0x1c2074<_0x5998cd['length'];_0x1c2074++){const _0x4eb116=_0x5998cd[_0x1c2074];for(const _0x1d0c5c of _0x318ce7['getMarkers']()){const _0x282cde=_0x1d0c5c['getRange']();if(_0x4eb116['isEqual'](_0x282cde)){_0x1b22e2?(_0x5998cd['splice'](_0x1c2074,0x1),_0x1c2074--):_0x318ce7['removeMarker'](_0x1d0c5c['name']);break;}}}}if(0x0==_0x5998cd['length'])return null;const _0x856156=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58329a,'join');for(const _0x1438cb of this['getSuggestions']())if(_0x1438cb['author']['id']==_0x1bf79e['id']&&'formatBlock'==_0x1438cb['type']&&_0x1438cb['data']['formatGroupId']==_0x43266b['formatGroupId']&&_0x1438cb['subType']==_0x58329a&&Xt(_0x1438cb,_0x339c09)&&(_0x856156(_0x1438cb['getRanges'](),_0x5998cd)||_0x856156(_0x5998cd,_0x1438cb['getRanges']()))){for(const _0x18800b of _0x5998cd)_0x1438cb['addRange'](_0x18800b);return _0x1438cb;}const _0x439cf4=_0x204c92(),_0x1ed738=_0x1bf79e['id'],_0x364c72='formatBlock:'+_0x58329a,_0x51a4bb=this['_setSuggestionData']({'id':_0x439cf4,'type':_0x364c72,'data':_0x43266b,'createdAt':new Date(),'authorId':_0x1ed738,'attributes':_0x339c09});for(const _0xccbb3e of _0x5998cd)this['_addSuggestionMarker'](_0x364c72,_0x439cf4,_0x1ed738,_0xccbb3e,o['getMultiRangeId']());return _0x51a4bb;}['markDeletion'](_0xba9f86,_0x1b081a=null,_0x55a66d={}){if(_0xba9f86['isCollapsed'])return null;const _0xc6078e=this['editor']['plugins']['get']('Users')['me'],_0x5d9096=new _0x2229f7(_0xba9f86['start'],_0xba9f86['end']);this['_trackingSessionId']&&(_0x55a66d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x152649,meta:_0x195001}of this['_findSuggestions'](_0x5d9096,'insertion'))if(_0x195001['isOwn']&&!_0x195001['isNextTo']){if(_0x152649['isMultiRange']){const _0x1086e2=_0x152649['getRanges']()['filter'](_0x266882=>'$graveyard'!=_0x266882['root']['rootName']);_0x1086e2['every'](_0x981a76=>_0x5d9096['containsRange'](_0x981a76,!0x0))&&_0x152649['discard']();if(_0x1086e2['some'](_0x39a11d=>_0x39a11d['containsRange'](_0x5d9096,!0x0))){const _0x3011c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b081a,'accept');return this['forceDefaultExecution'](()=>_0x3011c0([_0x5d9096],null,_0x55a66d)),null;}}else{const _0x4f9992=_0x5d9096['getIntersection'](_0x152649['getFirstRange']());null!==_0x4f9992&&_0x152649['_onDiscard']([_0x4f9992],null,_0x55a66d);}}if(_0x5d9096['detach'](),_0x5d9096['isCollapsed']||'$graveyard'==_0x5d9096['root']['rootName'])return null;let _0x2c668e=null,_0x5c4ebb=_0x5d9096['start'],_0x49b3ed=_0x5d9096['end'];const _0x42416c=this['_findSuggestions'](_0x5d9096,'deletion');for(const {suggestion:_0x5cab3b,meta:_0x4df916}of _0x42416c){const _0xf3feab=this['_model']['createRange'](_0x5c4ebb,_0x49b3ed);if(_0x4df916['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4df916['containsRangeInObject']&&!_0x4df916['isInsideObject'])){if(_0x5cab3b['isMultiRange']){if(!Xt(_0x5cab3b,_0x55a66d))continue;let _0xa0c4f6=!0x0;for(const _0x1ebf31 of _0x5cab3b['getRanges']()){if(_0x1ebf31['containsRange'](_0xf3feab,!0x0))return _0x5cab3b;_0xf3feab['containsRange'](_0x1ebf31)||(_0xa0c4f6=!0x1);}_0xa0c4f6&&_0x5cab3b['discard']();}else{const _0x40b7a8=_0x5cab3b['getFirstRange']();if(_0x40b7a8['containsRange'](_0xf3feab,!0x0))return _0x5cab3b;if(!Xt(_0x5cab3b,_0x55a66d)){_0xf3feab['containsRange'](_0x40b7a8)?_0x5cab3b['removeMarkers']():_0x40b7a8['containsPosition'](_0x5c4ebb)?_0x5c4ebb=_0x40b7a8['end']:_0x40b7a8['containsPosition'](_0x49b3ed)&&(_0x49b3ed=_0x40b7a8['start']);continue;}_0x5c4ebb=_0x5c4ebb['isBefore'](_0x40b7a8['start'])?_0x5c4ebb:_0x40b7a8['start'],_0x49b3ed=_0x49b3ed['isAfter'](_0x40b7a8['end'])?_0x49b3ed:_0x40b7a8['end'],_0x55a66d=Object['assign']({},_0x5cab3b['attributes']),_0x2c668e?_0x40b7a8['start']['isBefore'](_0x2c668e['getFirstRange']()['start'])?(_0x2c668e['removeMarkers'](),_0x2c668e=_0x5cab3b):_0x5cab3b['removeMarkers']():_0x2c668e=_0x5cab3b;}}}if(_0x2c668e)return this['_setSuggestionRange'](_0x2c668e,this['_model']['createRange'](_0x5c4ebb,_0x49b3ed)),_0x2c668e;{const _0x1d81f3=_0x204c92(),_0x56658e=this['_model']['createRange'](_0x5c4ebb,_0x49b3ed),_0x31a969=_0xc6078e['id'],_0xdf28d7=_0x1b081a?'deletion:'+_0x1b081a:'deletion',_0xb41715=this['_setSuggestionData']({'id':_0x1d81f3,'type':_0xdf28d7,'createdAt':new Date(),'authorId':_0x31a969,'attributes':_0x55a66d});return this['_addSuggestionMarker'](_0xdf28d7,_0x1d81f3,_0x31a969,_0x56658e),_0xb41715;}}['markMultiRangeDeletion'](_0x401d5d,_0x33f311='multi',_0x583345={}){const _0x12efab=this['editor']['plugins']['get']('Users')['me'],_0x3c587d=_0x401d5d['map'](_0x1bccd8=>new _0x2229f7(_0x1bccd8['start'],_0x1bccd8['end'])),_0x18f39e=new Set();this['_trackingSessionId']&&(_0x583345['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3258f4,meta:_0x157b29}of this['_findSuggestions'](_0x3c587d,'insertion'))_0x157b29['isOwn']&&!_0x157b29['isNextTo']&&_0x18f39e['add'](_0x3258f4);for(const _0x4ab819 of _0x18f39e)if(_0x4ab819['isMultiRange']){const _0x2b8970=_0x4ab819['getRanges']();(!_0x4ab819['attributes']||!_0x4ab819['attributes']['skipNestingCheck'])&&(_0x2b8970['every'](_0xe1958a=>_0x3c587d['some'](_0x47c58f=>_0x47c58f['containsRange'](_0xe1958a,!0x0)))&&_0x4ab819['discard']());if(_0x3c587d['every'](_0x583c72=>_0x2b8970['some'](_0x219cd2=>_0x219cd2['containsRange'](_0x583c72,!0x0)))){const _0x40f327=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33f311,'accept');return this['forceDefaultExecution'](()=>_0x40f327(_0x401d5d,null,_0x583345)),null;}}else{const _0x538c30=_0x4ab819['getFirstRange']();_0x3c587d['some'](_0x2e69ea=>_0x2e69ea['containsRange'](_0x538c30,!0x0))&&_0x4ab819['discard']();if(_0x3c587d['every'](_0x3d78f2=>_0x538c30['containsRange'](_0x3d78f2,!0x0))){const _0x226c4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33f311,'accept');return this['forceDefaultExecution'](()=>_0x226c4b(_0x3c587d,null,_0x583345)),null;}}const _0x23604f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x33f311,'join');let _0x271584=null;for(const _0x35faf5 of this['getSuggestions']())if(_0x35faf5['author']['id']==_0x12efab['id']&&_0x35faf5['isInContent']&&'deletion'==_0x35faf5['type']&&_0x35faf5['subType']==_0x33f311&&Xt(_0x35faf5,_0x583345)&&(_0x23604f(_0x35faf5['getRanges'](),_0x3c587d)||_0x23604f(_0x3c587d,_0x35faf5['getRanges']()))){if(_0x271584){if(_0x35faf5['commentThread']&&_0x35faf5['commentThread']['length'])continue;for(const _0xbb0c78 of _0x35faf5['getRanges']())_0x271584['isIntersectingWithRange'](_0xbb0c78)||_0x271584['addRange'](_0xbb0c78);_0x35faf5['removeMarkers']();}else{_0x271584=_0x35faf5;for(const _0x30ac6a of _0x3c587d)_0x35faf5['isIntersectingWithRange'](_0x30ac6a)||_0x35faf5['addRange'](_0x30ac6a);}}if(_0x271584)return _0x271584;_0x18f39e['clear']();for(const {suggestion:_0x2dec51,meta:_0x17b067}of this['_findSuggestions'](_0x3c587d,'deletion'))_0x17b067['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17b067['containsRangeInObject']&&!_0x17b067['isInsideObject'])&&Xt(_0x2dec51,_0x583345)&&_0x18f39e['add'](_0x2dec51);for(const _0x445331 of _0x18f39e){const _0x31e926=_0x445331['getRanges']();if(!_0x583345||!_0x583345['skipNestingCheck']){if(_0x3c587d['every'](_0x1e0bd0=>_0x31e926['some'](_0x5118f7=>_0x5118f7['containsRange'](_0x1e0bd0,!0x0))))return _0x445331;}(!_0x445331['attributes']||!_0x445331['attributes']['skipNestingCheck'])&&(_0x31e926['every'](_0x12cabe=>_0x3c587d['some'](_0x2caf97=>_0x2caf97['containsRange'](_0x12cabe,!0x0)))&&_0x445331['discard']());}const _0xf296c0=_0x204c92(),_0x48dc3a=_0x12efab['id'],_0x58fd76='deletion:'+_0x33f311,_0x2246ed=this['_setSuggestionData']({'id':_0xf296c0,'type':_0x58fd76,'createdAt':new Date(),'authorId':_0x48dc3a,'attributes':_0x583345});for(const _0x54d8a6 of _0x3c587d)_0x54d8a6['detach'](),_0x54d8a6['isCollapsed']||'$graveyard'==_0x54d8a6['root']['rootName']||this['_addSuggestionMarker'](_0x58fd76,_0xf296c0,_0x48dc3a,_0x54d8a6,o['getMultiRangeId']());return _0x2246ed;}['markAttributeChange'](_0x372826,_0x3b428c,_0x43c1a6,_0x133408,_0x11208d){if(_0x372826['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1c135e=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ab607=Array['from'](this['_suggestions']['values']())['filter'](_0x5650fc=>'attribute'==_0x5650fc['type']&&_0x5650fc['data']['key']==_0x3b428c&&_0x5650fc['isIntersectingWithRange'](_0x372826));if(this['_trackingSessionId']&&(_0x11208d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x39b1dd=this['_findSuggestions'](_0x372826,'insertion')['filter'](({meta:_0x22e987})=>_0x22e987['isOwn']&&!_0x22e987['isInsideObject']&&!_0x22e987['isNextTo'])['map'](({suggestion:_0x1aac09})=>_0x1aac09);_0x3ab607['unshift'](..._0x39b1dd);}const _0x43996a=new Map([[_0x372826,_0x43c1a6]]);for(const _0x204eea of _0x3ab607){const _0x10ab3e='attribute'==_0x204eea['type']?_0x204eea['data']['oldValue']:void 0x0,_0x439968=_0x204eea['getFirstRange'](),_0x42c3a8=Array['from'](_0x43996a['keys']())['find'](_0x375d35=>_0x375d35['isIntersecting'](_0x439968));if(!_0x42c3a8)continue;const _0x424065=_0x42c3a8['getDifference'](_0x439968);this['_isBlockAttribute'](_0x3b428c)&&'insertion'==_0x204eea['type']&&0x0!=_0x424065['length']||(_0x43996a['delete'](_0x42c3a8),_0x424065['forEach'](_0x3d73a7=>{_0x43996a['set'](_0x3d73a7,_0x43c1a6);}),'insertion'!=_0x204eea['type']&&_0x10ab3e!=_0x133408&&_0x43996a['set'](_0x42c3a8['getIntersection'](_0x439968),_0x10ab3e));}const _0x14f560=[];for(const [_0x29b68d,_0x6a543c]of _0x43996a){const _0x2e8f4c=_0x204c92(),_0x43d811={'key':_0x3b428c,'oldValue':_0x6a543c,'newValue':_0x133408};_0x3b428c['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':_0x3b428c});const _0x6305f9=('attribute:'+(_0x3b428c+'|'+Kt({'newValue':_0x133408})))['substring'](0x0,0x3c),_0x50bc28=this['_setSuggestionData']({'id':_0x2e8f4c,'type':_0x6305f9,'data':_0x43d811,'createdAt':new Date(),'authorId':_0x1c135e,'attributes':_0x11208d});_0x14f560['push'](_0x50bc28),this['_addSuggestionMarker'](_0x6305f9,_0x2e8f4c,_0x1c135e,_0x29b68d);}return _0x14f560;}['enableDefaultAttributesIntegration'](_0x334fa3){this['enableCommand'](_0x334fa3,(_0x31ad9f,..._0x89b6c1)=>{this['_recordAttributeChanges'](()=>{_0x31ad9f(..._0x89b6c1);});});}['registerBlockAttribute'](_0x5cefdd){this['_blockAttributeKeys']['add'](_0x5cefdd);}['registerInlineAttribute'](_0x2aa37b){this['_inlineAttributeKeys']['add'](_0x2aa37b);}['startTrackingSession'](_0x4ac5b3){return this['_trackingSessionId']=void 0x0!==_0x4ac5b3?_0x4ac5b3:_0x204c92(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2a2c85){return'attribute'==_0x2a2c85['type']?_0x2a2c85['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1f2aaa,_0x168f08){const _0xd34df=_0x1f2aaa['getFirstMarker']();this['_model']['change'](_0x18a04c=>{_0x18a04c['updateMarker'](_0xd34df,{'range':_0x168f08});});}['_addThreadToSuggestion'](_0x47a8a9){const _0x58360c=_0x47a8a9['id'],_0x25785=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x58360c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25785,'threadId':_0x58360c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x36d5b0=this['_commentsRepository']['getCommentThread'](_0x58360c);_0x36d5b0['unbind']('isRemovable'),_0x36d5b0['isRemovable']=!0x1,_0x47a8a9['commentThread']=_0x36d5b0;}['_checkSuggestionCorrectness'](_0xe12be7,_0x3f3283,_0x4b562d,_0x258351){if(_0xe12be7['type']!=_0x3f3283||_0xe12be7['subType']!=_0x4b562d||_0xe12be7['creator']['id']!=_0x258351)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5b6dee('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x484a25,_0x3a7c0a){const _0x20111a=_0x484a25['getFirstRange']();if(_0x3a7c0a['isEqual'](_0x20111a))_0x484a25['removeMarkers']();else{if(_0x20111a['containsRange'](_0x3a7c0a)){const _0x3bd242=this['_model']['createPositionAt'](_0x3a7c0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x484a25,this['_model']['createRange'](_0x20111a['start'],_0x3bd242));const _0x287e5b=_0x204c92(),_0x2e7e8f=_0x484a25['creator']['id'],_0x579749=_0x484a25['type']+':'+_0x484a25['subType'];this['_setSuggestionData']({'id':_0x287e5b,'type':_0x579749,'createdAt':new Date(),'authorId':_0x2e7e8f,'data':_0x484a25['data'],'attributes':_0x484a25['attributes']});const _0x4b2476=this['_model']['createPositionAt'](_0x3a7c0a['end']['parent'],'after'),_0x16a75d=this['_model']['createRange'](_0x4b2476,_0x20111a['end']);this['_addSuggestionMarker'](_0x579749,_0x287e5b,_0x2e7e8f,_0x16a75d);}else{if(_0x20111a['containsPosition'](_0x3a7c0a['start'])){const _0x26231d=this['_model']['createPositionAt'](_0x3a7c0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x484a25,this['_model']['createRange'](_0x20111a['start'],_0x26231d));}else{const _0xb4ee43=this['_model']['createPositionAt'](_0x3a7c0a['end']['parent'],'after');this['_setSuggestionRange'](_0x484a25,this['_model']['createRange'](_0xb4ee43,_0x20111a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xf1e30c){for(const {suggestion:_0x302461,meta:_0x34e548}of this['_findSuggestions'](_0xf1e30c,'insertion')){if(!_0x34e548['isOwn'])continue;const _0x406144=_0x302461['getRanges']();for(const _0x524101 of _0x406144)if(!_0xf1e30c['getDifference'](_0x524101)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4cf4ee){const _0x3eeec7=this['editor']['plugins']['get']('Users')['getUser'](_0x4cf4ee);if(!_0x3eeec7)throw new _0x5b6dee('track-changes-user-not-found',this);return _0x3eeec7;}['_getExternalAuthor'](_0x5297e6){const _0x2b875f=this['editor']['plugins']['get']('Users'),_0x1f6a5b=_0x4dad08('external:'+_0x5297e6),_0x11b4f2=_0x2b875f['getUser'](_0x1f6a5b);return _0x11b4f2||_0x2b875f['addUser']({'id':_0x1f6a5b,'name':_0x5297e6});}['_createSuggestion'](_0x278d95,_0x1fc1ba,_0x3676c7,_0x2fa571,_0xaac82d,_0x5b7e3e){const _0x291b6f=this['_getAuthorFromId'](_0x2fa571),_0x59198f=this['_suggestionFactory']['buildSuggestion'](_0x278d95,_0x1fc1ba,_0x3676c7,_0x291b6f,_0xaac82d,_0xa66684=>{this['_updateSuggestionData'](_0x3676c7,{'attributes':_0xa66684});const _0xc4a272=this['getSuggestion'](_0x3676c7);this['_joinWithAdjacentSuggestions'](new Set([_0xc4a272])),this['_refreshSuggestionsChain'](new Set([_0xc4a272]));},_0x5b7e3e);return this['listenTo'](_0x59198f,'accept',()=>{this['_updateSuggestionData'](_0x3676c7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59198f,'discard',()=>{this['_updateSuggestionData'](_0x3676c7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3676c7,_0x59198f),this['_suggestionState']['set'](_0x59198f,'notReady'),_0x59198f;}['_splitMarkerName'](_0x7f843){const _0x52f1aa=_0x7f843['split'](':');return{'group':_0x52f1aa[0x0],'type':_0x52f1aa[0x1],'subType':_0x52f1aa['length']>=0x5?_0x52f1aa[0x2]:null,'id':_0x52f1aa['length']<0x5?_0x52f1aa[0x2]:_0x52f1aa[0x3],'authorId':_0x52f1aa['length']<0x5?_0x52f1aa[0x3]:_0x52f1aa[0x4],'markerCount':0x6==_0x52f1aa['length']?_0x52f1aa[0x5]:null};}['_breakSuggestionMarker'](_0x21b4ba,_0x6c5fd3,_0x5abbb8){const _0x3ffe7f=_0x21b4ba['getFirstRange'](),_0x2f5660=_0x3ffe7f['start'],_0x6cd7e=_0x3ffe7f['end'];this['_setSuggestionRange'](_0x21b4ba,this['_model']['createRange'](_0x2f5660,_0x6c5fd3));const _0x59fbfb=_0x204c92(),_0x5bac08=_0x21b4ba['creator']['id'],_0x4e7208=_0x21b4ba['type']+(_0x21b4ba['subType']?':'+_0x21b4ba['subType']:'');this['_setSuggestionData']({'id':_0x59fbfb,'type':_0x4e7208,'createdAt':new Date(),'authorId':_0x5bac08,'originalSuggestionId':_0x21b4ba['_originalSuggestionId']||_0x21b4ba['id'],'attributes':_0x21b4ba['attributes'],'data':_0x21b4ba['data']});const _0x5b23c1=this['_getAttributeKey'](_0x21b4ba);('formatBlock'==_0x21b4ba['type']||_0x5b23c1&&this['_isBlockAttribute'](_0x5b23c1))&&(_0x5abbb8=this['_model']['createPositionBefore'](_0x5abbb8['parent'])),this['_addSuggestionMarker'](_0x4e7208,_0x59fbfb,_0x5bac08,this['_model']['createRange'](_0x5abbb8,_0x6cd7e));}['_findSuggestions'](_0x151baf,_0x326ac4=null){const _0x29707a=[],_0x4e2c95=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x151baf)||(_0x151baf=[_0x151baf]);for(const _0x41ada8 of this['getSuggestions']()){if(!_0x41ada8['isInContent'])continue;if(_0x326ac4&&_0x41ada8['type']!=_0x326ac4)continue;let _0x1af43b=!0x1;for(const _0x317056 of _0x41ada8['getRanges']()){for(const _0x158629 of _0x151baf){const _0x594058=_0x158629['start']['isEqual'](_0x317056['end'])||_0x158629['end']['isEqual'](_0x317056['start']);if(_0x594058||_0x158629['getIntersection'](_0x317056)){const _0x5e9a20=_0x158629['containsRange'](_0x317056)&&Gt(this['_model']['schema'],_0x317056['start'],_0x158629),_0x55ae3f=_0x317056['containsRange'](_0x158629)&&Gt(this['_model']['schema'],_0x158629['start'],_0x317056);_0x29707a['push']({'suggestion':_0x41ada8,'meta':{'isOwn':_0x4e2c95==_0x41ada8['author'],'isNextTo':_0x594058,'isInsideObject':_0x5e9a20,'containsRangeInObject':_0x55ae3f}}),_0x1af43b=!0x0;break;}}if(_0x1af43b)break;}}return _0x29707a;}['_addSuggestionMarker'](_0x1def66,_0x14b5a8,_0x479618,_0xd60852,_0x1675d9){this['_model']['change'](_0x4e08bb=>{let _0x534615='suggestion:'+_0x1def66+':'+_0x14b5a8+':'+_0x479618;_0x1675d9&&(_0x534615=_0x534615+':'+_0x1675d9),_0x4e08bb['addMarker'](_0x534615,{'range':_0xd60852,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49454d){const _0x431a0b=_0x49454d['previous'],_0x1fd9da=_0x49454d['next'];_0x49454d['previous']=null,_0x49454d['next']=null,null!=_0x431a0b&&_0x431a0b['next']==_0x49454d&&(_0x431a0b['next']=_0x1fd9da),null!=_0x1fd9da&&_0x1fd9da['previous']==_0x49454d&&(_0x1fd9da['previous']=_0x431a0b),'ready'==this['_suggestionState']['get'](_0x49454d)&&(this['_suggestionState']['set'](_0x49454d,'removed'),this['fire']('suggestionUnloaded',_0x49454d,_0x431a0b,_0x1fd9da));}['_setSuggestionData'](_0xd9d33){const _0xd30507=_0xd9d33['id'],_0x1ff600=this['addSuggestionData'](_0xd9d33);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xf77371=this['editor']['plugins']['get']('PendingActions'),_0x295cc4=_0x1ff600['hasComments'],_0x2d0af5=_0x1ff600['subType']?_0x1ff600['type']+':'+_0x1ff600['subType']:_0x1ff600['type'],_0x2da8d6=this['editor']['locale'],_0xb4be57=_0xf77371['add'](c(_0x2da8d6,'PENDING_ACTION_SUGGESTION')),_0x24a472={'id':_0xd30507,'type':_0x2d0af5,'hasComments':_0x295cc4,'data':_0xd9d33['data']||null,'originalSuggestionId':_0xd9d33['originalSuggestionId']||null,'attributes':_0x1ff600['attributes']};this['_adapter']['addSuggestion'](_0x24a472)['then'](_0x894d8f=>{_0x1ff600['_saved']=!0x0,_0xf77371['remove'](_0xb4be57),_0x894d8f&&_0x894d8f['createdAt']&&(this['_suggestions']['get'](_0xd30507)['createdAt']=_0x894d8f['createdAt']);})['catch'](_0x18f6e6=>{throw _0x55ad61('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1ff600['discard']();}),_0x1ff600['stopListening'](),this['_suggestions']['delete'](_0x1ff600['id']),this['_suggestionState']['delete'](_0x1ff600),_0x18f6e6;});}return _0x1ff600;}['_isBlockAttribute'](_0x27d4fd){return this['_blockAttributeKeys']['has'](_0x27d4fd);}['_updateSuggestionData'](_0x3778d2,_0x31727d){const _0x289218=this['editor']['plugins']['get']('PendingActions'),_0x27e9d4=this['getSuggestion'](_0x3778d2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x27e9d4['_saved']){const _0x477a6a=_0x289218['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3778d2,_0x31727d)['then'](()=>{_0x289218['remove'](_0x477a6a);});}else _0x27e9d4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3778d2,_0x31727d);});}}['_getSuggestionData'](_0x158bf4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5b6dee('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x158bf4);}['_handleNewSuggestionMarker'](_0x4beb0d){const {id:_0xdce7c1,type:_0x274d6f,subType:_0x3fc9ca,authorId:_0x10457e}=this['_splitMarkerName'](_0x4beb0d),_0x3f122a=this['_suggestions']['get'](_0xdce7c1)||this['_createSuggestion'](_0x274d6f,_0x3fc9ca,_0xdce7c1,_0x10457e,{});switch(this['_checkSuggestionCorrectness'](_0x3f122a,_0x274d6f,_0x3fc9ca,_0x10457e),this['_suggestionState']['get'](_0x3f122a)){case'notReady':this['_getSuggestionData'](_0xdce7c1)['then'](_0x25fa2b=>{let _0x12c06d=Promise['resolve']();_0x25fa2b['hasComments']&&(_0x12c06d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xdce7c1})),_0x12c06d['then'](()=>{this['addSuggestionData'](_0x25fa2b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3f122a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xdce7c1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3f122a,'ready'),this['fire']('suggestionLoaded',_0x3f122a);break;case'ready':this['fire']('suggestionChanged',_0x3f122a);}return _0x3f122a['addMarkerName'](_0x4beb0d),_0x3f122a;}['_refreshSuggestionsChain'](_0x424c73){const _0xecad32=Array['from'](_0x424c73),_0x4a6bfe=_0xecad32['filter'](_0x3256bc=>'attribute'==_0x3256bc['type']);this['_refreshAttributeSuggestionsChain'](_0x4a6bfe);const _0x43d9ef=_0xecad32['filter'](_0x306c43=>!_0x306c43['isMultiRange']&&'attribute'!=_0x306c43['type']),_0x1779a5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x305155=>!_0x305155['isMultiRange']&&'attribute'!=_0x305155['type']),_0xf83a6a=_0x1779a5['filter'](_0x14a6e1=>!_0x424c73['has'](_0x14a6e1)),_0xd51a69=new Map(_0x1779a5['map'](_0x210d5a=>[_0x210d5a,this['_suggestionFactory']['getSuggestionCallback'](_0x210d5a['type'],_0x210d5a['subType'],'chain')])),_0x4c52f1=new Map(_0x1779a5['map'](_0x3f5ff6=>[_0x3f5ff6,_0x3f5ff6['getFirstRange']()])),_0xcef8d7=new Set(),_0x40318f=new Set();for(let _0x22d81c=0x0;_0x22d81c<_0x43d9ef['length'];_0x22d81c++)_0x483c1d(_0x43d9ef[_0x22d81c],_0x43d9ef,_0x22d81c+0x1);for(let _0x312737=0x0;_0x312737<_0x43d9ef['length'];_0x312737++)_0x483c1d(_0x43d9ef[_0x312737],_0xf83a6a,0x0);const _0x28066c=new Set();for(let _0x478d17=0x0;_0x478d17<_0x43d9ef['length'];_0x478d17++){const _0x21ee47=_0x43d9ef[_0x478d17];!_0x40318f['has'](_0x21ee47)&&_0x21ee47['previous']&&(_0x28066c['add'](_0x21ee47['previous']),_0x21ee47['previous']['next']===_0x21ee47&&(_0x21ee47['previous']['next']=null),_0x21ee47['previous']=null),!_0xcef8d7['has'](_0x21ee47)&&_0x21ee47['next']&&(_0x28066c['add'](_0x21ee47['next']),_0x21ee47['next']['previous']===_0x21ee47&&(_0x21ee47['next']['previous']=null),_0x21ee47['next']=null);}function _0x483c1d(_0x18754c,_0x18be1e,_0x24044b){for(let _0x13175f=_0x24044b;_0x13175f<_0x18be1e['length'];_0x13175f++){const _0x42f2af=_0x2174df(_0x18754c,_0x18be1e[_0x13175f]);_0x42f2af&&(_0x42f2af[0x0]['next']=_0x42f2af[0x1],_0x42f2af[0x1]['previous']=_0x42f2af[0x0],_0xcef8d7['add'](_0x42f2af[0x0]),_0x40318f['add'](_0x42f2af[0x1]));}}function _0x2174df(_0x5eca9d,_0x28fed6){if(_0x5eca9d['author']['id']!==_0x28fed6['author']['id'])return null;const _0x5a9b97=_0xd51a69['get'](_0x5eca9d)(_0x5eca9d,_0x28fed6,_0x4c52f1['get'](_0x5eca9d),_0x4c52f1['get'](_0x28fed6));if(!_0x5a9b97)return null;return _0xd51a69['get'](_0x28fed6)(_0x5eca9d,_0x28fed6,_0x4c52f1['get'](_0x5eca9d),_0x4c52f1['get'](_0x28fed6))?_0x5a9b97[0x1]['commentThread']&&_0x5a9b97[0x1]['commentThread']['length']?null:_0x5a9b97:null;}_0x28066c['size']&&this['_refreshSuggestionsChain'](_0x28066c);}['_refreshAttributeSuggestionsChain'](_0x380e0c){if(0x0==_0x380e0c['length'])return;const _0x4bf63f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43dbbc=>'attribute'==_0x43dbbc['type']&&_0x43dbbc['_isDataLoaded']),_0x2bd2d9=[],_0x5105c7=new Map();for(const _0xafcc3f of _0x4bf63f){const _0x917222=_0x4dad08(_0xafcc3f['attributes']);_0x5105c7['has'](_0x917222)||(_0x5105c7['set'](_0x917222,_0x2bd2d9['length']),_0x2bd2d9['push']([]));const _0xc66346=_0x5105c7['get'](_0x917222);_0x2bd2d9[_0xc66346]['push'](_0xafcc3f);}!(function(){_0x2bd2d9['sort']((_0x4ce3d3,_0x5c0706)=>{const _0x2f6964=_0x4ce3d3[0x0]['createdAt'],_0x2d8109=_0x5c0706[0x0]['createdAt'];return _0x2f6964==_0x2d8109?_0x4ce3d3[0x0]['attributes']['groupId']<_0x5c0706[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f6964<_0x2d8109?-0x1:0x1;});for(const _0x4dbb72 of _0x2bd2d9)_0x4dbb72['sort']((_0x15023c,_0x149fa8)=>_0x15023c['id']<_0x149fa8['id']?-0x1:0x1);}());for(let _0x1675dd=0x0;_0x1675dd<_0x2bd2d9['length'];_0x1675dd++){if(0x0==_0x2bd2d9[_0x1675dd]['length'])continue;const _0x25bc2c=[];for(let _0x338a9a=_0x1675dd+0x1;_0x338a9a<_0x2bd2d9['length'];_0x338a9a++)0x0!=_0x2bd2d9[_0x338a9a]['length']&&_0x34b8b7(_0x2bd2d9[_0x1675dd],_0x2bd2d9[_0x338a9a])&&_0x25bc2c['push'](_0x338a9a);for(const _0x41b97c of _0x25bc2c)_0x2bd2d9[_0x1675dd]=_0x2bd2d9[_0x1675dd]['concat'](_0x2bd2d9[_0x41b97c]),_0x2bd2d9[_0x41b97c]=[];}for(const _0x43db8f of _0x2bd2d9)for(let _0x1973f2=0x0;_0x1973f2<_0x43db8f['length'];_0x1973f2++){const _0x5d71b0=_0x43db8f[_0x1973f2+0x1]||null;_0x43db8f[_0x1973f2]['next']!==_0x5d71b0&&(_0x43db8f[_0x1973f2]['next']=_0x5d71b0);}for(const _0x4d1863 of _0x2bd2d9)for(let _0x1157fd=0x0;_0x1157fd<_0x4d1863['length'];_0x1157fd++){const _0x550cc2=_0x4d1863[_0x1157fd-0x1]||null;_0x4d1863[_0x1157fd]['previous']!==_0x550cc2&&(_0x4d1863[_0x1157fd]['previous']=_0x550cc2);}function _0x34b8b7(_0x244ee4,_0x463532){if(_0x244ee4[0x0]['attributes']['groupId']!==_0x463532[0x0]['attributes']['groupId']&&_0x244ee4[0x0]['author']!==_0x463532[0x0]['author'])return!0x1;if(!function(_0x1fdde1,_0x4122c5){if(!_0x1fdde1['hasComments']&&!_0x4122c5['hasComments'])return!0x0;if(_0x1fdde1['hasComments']&&_0x4122c5['hasComments'])return!0x1;if(_0x1fdde1['hasComments']&&_0x4122c5['createdAt']<_0x1fdde1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4122c5['hasComments']&&_0x1fdde1['createdAt']<_0x4122c5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x244ee4[0x0],_0x463532[0x0]))return!0x1;const _0x2c6b23=Ft(_0x244ee4[0x0]['attributes'],['groupId','trackingSessionId']),_0xcfd7dc=Ft(_0x463532[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4db2af(_0x2c6b23,_0xcfd7dc))return!0x1;if(_0x244ee4[0x0]['attributes']['groupId']==_0x463532[0x0]['attributes']['groupId'])return!0x0;if(_0x244ee4[0x0]['attributes']['trackingSessionId']!==_0x463532[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x244ee4['every'](_0x58f1cd=>_0x463532['some'](_0x353654=>_0x58f1cd['getFirstRange']()['isEqual'](_0x353654['getFirstRange']())))&&_0x463532['every'](_0x226b41=>_0x244ee4['some'](_0x42b1c2=>_0x226b41['getFirstRange']()['isEqual'](_0x42b1c2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x288030){const _0x2d2bdc=Array['from'](_0x288030),_0x584a15=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4085bd=_0x584a15['filter'](_0x4d85f1=>!_0x288030['has'](_0x4d85f1)),_0x2dcfec=new Map(_0x2d2bdc['map'](_0x1d8eaa=>[_0x1d8eaa,this['_suggestionFactory']['getSuggestionCallback'](_0x1d8eaa['type'],_0x1d8eaa['subType'],'join')])),_0x3e1f9b=new Map(_0x584a15['map'](_0x4d9263=>[_0x4d9263,_0x4d9263['getRanges']()]));for(let _0x1a5f1b=0x0;_0x1a5f1b<_0x2d2bdc['length'];_0x1a5f1b++){if(_0x249be4(this,_0x2d2bdc[_0x1a5f1b],_0x2d2bdc,_0x1a5f1b+0x1))return!0x0;}for(let _0x4cbd76=0x0;_0x4cbd76<_0x2d2bdc['length'];_0x4cbd76++){if(_0x249be4(this,_0x2d2bdc[_0x4cbd76],_0x4085bd,0x0))return!0x0;}return!0x1;function _0x249be4(_0x15a3af,_0x585d2c,_0x5bac81,_0x675d1){for(let _0x4a1460=_0x675d1;_0x4a1460<_0x5bac81['length'];_0x4a1460++){const _0x4d81b1=_0x5bac81[_0x4a1460];if(_0x4d81b1['type']!==_0x585d2c['type']||_0x4d81b1['author']['id']!==_0x585d2c['author']['id']||_0x4d81b1['subType']!==_0x585d2c['subType'])continue;if(!Qt(_0x585d2c,_0x4d81b1))continue;if('attribute'==_0x585d2c['type']&&_0x585d2c['data']['oldValue']!=_0x4d81b1['data']['oldValue'])continue;if('attribute'==_0x585d2c['type']&&_0x15a3af['_isBlockAttribute'](_0x585d2c['data']['key']))continue;if('formatBlock'==_0x585d2c['type']){const _0x496839=_0x15a3af['editor']['model'],_0x27d9ed=_0x585d2c['getContainedElement']();if(_0x27d9ed&&(_0x496839['schema']['isObject'](_0x27d9ed)||_0x496839['schema']['isLimit'](_0x27d9ed)))continue;}const _0x5f5b03=_0x2dcfec['get'](_0x585d2c),_0x34e18d=_0x3e1f9b['get'](_0x585d2c),_0xe6059c=_0x3e1f9b['get'](_0x4d81b1),_0x5ea223=_0x585d2c['commentThread']&&_0x585d2c['commentThread']['length'],_0x371bb9=_0x4d81b1['commentThread']&&_0x4d81b1['commentThread']['length'];if(!_0x5ea223&&_0x5f5b03(_0xe6059c,_0x34e18d))return _0x15a3af['_joinSuggestions'](_0x4d81b1,_0x585d2c),_0x3e1f9b['delete'](_0x585d2c),!0x0;if(!_0x371bb9&&_0x5f5b03(_0x34e18d,_0xe6059c))return _0x15a3af['_joinSuggestions'](_0x585d2c,_0x4d81b1),_0x3e1f9b['delete'](_0x4d81b1),!0x0;}return!0x1;}}['_joinSuggestions'](_0xb8c0c5,_0x2d584b){if(_0xb8c0c5['isMultiRange']){for(const _0x5a1242 of _0x2d584b['getRanges']())_0xb8c0c5['addRange'](_0x5a1242);}else{const _0xfa3898=_0x2d584b['getFirstRange']()['end'];this['_setSuggestionRange'](_0xb8c0c5,this['_model']['createRange'](_0xb8c0c5['getFirstRange']()['start'],_0xfa3898));}_0x2d584b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4fa9a2,_0x5364e6,_0xf7f0a6){const _0x1b2a2e=_0x4fa9a2['startsWith']('format')||_0x4fa9a2['startsWith']('attribute')?'FORMATTING':_0x4fa9a2['toUpperCase']();return c(this['editor']['locale'],_0x5364e6+'_'+_0x1b2a2e+'_SUGGESTION_ANNOUNCEMENT',_0xf7f0a6);}['_initAriaMarkerChangeAnnouncements'](){const _0x5d6ab4=this['editor'];if(!_0x5d6ab4['ui'])return;const {ariaLiveAnnouncer:_0x272ecd}=_0x5d6ab4['ui'];_0x61a825(this['_model'],({left:_0x2b9dbc,entered:_0x300256})=>{for(const _0x45bc74 of _0x2b9dbc){const {group:_0x2872f5,type:_0x5bdc71}=this['_splitMarkerName'](_0x45bc74['name']);if('suggestion'===_0x2872f5){_0x272ecd['announce'](this['_getMarkerAnnouncementText'](_0x5bdc71,'LEAVE'));break;}}for(const _0x4b8563 of _0x300256){const {group:_0x26cfad,type:_0x2269fe}=this['_splitMarkerName'](_0x4b8563['name']);if('suggestion'===_0x26cfad){_0x272ecd['announce'](this['_getMarkerAnnouncementText'](_0x2269fe,'ENTER',_0x497efb(_0x4025e9)));break;}}});}['_processAttributeChanges'](_0x32f028){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37bace=this['editor'],_0x44172f=_0x37bace['model']['document']['differ']['getChanges']();if(0x0==_0x44172f['length'])return!0x1;const _0x4928c7=[],_0x181531=_0x44172f['filter'](_0xb6f6b=>'attribute'==_0xb6f6b['type']),_0x27e657=_0x44172f['filter'](_0x4793c0=>'insert'==_0x4793c0['type']&&'$text'!=_0x4793c0['name']),_0x2958ee=_0x44172f['filter'](_0x11a7e1=>'remove'==_0x11a7e1['type']&&'$text'!=_0x11a7e1['name']);for(const _0x4a1e3f of _0x181531)_0x4928c7['push']({'key':_0x4a1e3f['attributeKey'],'newValue':_0x4a1e3f['attributeNewValue'],'oldValue':_0x4a1e3f['attributeOldValue'],'range':qt(_0x4a1e3f['range'],_0x37bace['model'])});for(const _0x1c44c4 of _0x27e657){const _0x364d01=_0x2958ee['find'](_0x4ad7f3=>_0x4ad7f3['position']['isEqual'](_0x1c44c4['position']));_0x364d01&&_0x4928c7['push']({'key':u,'newValue':_0x1c44c4['name'],'oldValue':_0x364d01['name'],'range':_0x37bace['model']['createRangeOn'](_0x1c44c4['position']['nodeAfter'])});}return 0x0!=_0x4928c7['length']&&this['_reduceExistingSuggestions'](_0x32f028,_0x4928c7);}['_processAttributeSuggestions'](_0x584e8d){let _0x4de30f=!0x1;const _0x51e96c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d6f76=>_0x3d6f76['data']['newRange']&&_0x3d6f76['name']['startsWith']('suggestion:attribute:'));for(const _0x5958a4 of _0x51e96c){const {subType:_0x936eff,id:_0x40595b}=this['_splitMarkerName'](_0x5958a4['name']),_0x3af28e=_0x936eff['split']('|')[0x0];for(const _0x4aa35d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4aa35d['id']!=_0x40595b&&'attribute'==_0x4aa35d['type']&&_0x4aa35d['data']&&_0x4aa35d['data']['key']==_0x3af28e&&_0x4aa35d['getFirstRange']()['isIntersecting'](_0x5958a4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4aa35d,_0x5958a4['data']['newRange'],_0x584e8d),_0x4de30f=!0x0);}return _0x4de30f;}['_recordAttributeChanges'](_0xc5d743){this['_recordAttributeSuggestions']=!0x0,_0xc5d743();}['_isRegisteredAttribute'](_0x230991){const _0x2cc917=this['_isBlockAttribute'](_0x230991),_0x25c682=this['_inlineAttributeKeys']['has'](_0x230991);return _0x2cc917||_0x25c682;}['_reduceExistingSuggestions'](_0x4b5c2d,_0x1032e1){if(0x0==_0x1032e1['length'])return!0x1;let _0x56f457=!0x1;for(const _0x3a3b06 of _0x1032e1){const _0x3210c3=this['_findSuggestions'](_0x3a3b06['range'],'attribute')['filter'](_0x2ccf60=>!_0x2ccf60['meta']['isNextTo'])['map'](_0x268817=>_0x268817['suggestion']),_0x427c0d=_0x4dad08({'newValue':_0x3a3b06['newValue']});_0x3210c3['filter'](_0x569fc5=>{const [_0x30e466,_0xf43c0]=_0x569fc5['subType']['split']('|');return _0x30e466==_0x3a3b06['key']&&_0xf43c0!=_0x427c0d;})['forEach'](_0x56b2f7=>{this['_reduceSuggestionAttributeRange'](_0x56b2f7,_0x3a3b06['range'],_0x4b5c2d),_0x56f457=!0x0;});}return _0x56f457;}['_reduceSuggestionAttributeRange'](_0x56d21c,_0x560d4a,_0x5ecac5){const _0x997a68=_0x56d21c['getFirstRange']()['getDifference'](_0x560d4a);0x0!==_0x997a68['length']?0x1!==_0x997a68['length']?this['_breakSuggestionMarker'](_0x56d21c,_0x560d4a['start'],_0x560d4a['end']):this['_setSuggestionRange'](_0x56d21c,_0x997a68[0x0]):_0x5ecac5['removeMarker'](_0x56d21c['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x318de6){this['_editor']=_0x318de6,this['_model']=_0x318de6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57494a,_0x42f905,_0x5b626e,_0x244cb0,_0x56ac96,_0x1720b8,_0x3edb7d){return new o(this['_model'],{'type':_0x57494a,'subType':_0x42f905,'id':_0x5b626e,'originalSuggestionId':_0x3edb7d,'author':_0x244cb0,'creator':_0x244cb0,'attributes':_0x56ac96,'onAttributesChange':_0x1720b8,'onAccept':(..._0x13a334)=>this['getSuggestionCallback'](_0x57494a,_0x42f905,'accept')(..._0x13a334),'onDiscard':(..._0x33a1c1)=>this['getSuggestionCallback'](_0x57494a,_0x42f905,'discard')(..._0x33a1c1)});}['registerCustomCallback'](_0x435f8e,_0x43804b,_0x5368cf,_0xe44cea){const _0x1417ee=_0x435f8e+':'+_0x43804b+':'+_0x5368cf;this['_customCallbacks']['set'](_0x1417ee,_0xe44cea);}['getSuggestionCallback'](_0x188b11,_0x5722f0,_0x1abd88){const _0x2a682a=_0x188b11+':'+_0x5722f0+':'+_0x1abd88;return this['_customCallbacks']['get'](_0x2a682a)||this['_defaultCallbacks']['get'](_0x188b11+':'+_0x1abd88);}['_registerDefaultCallbacks'](){const _0x208103=()=>!0x1,_0x5545fb=_0x330df1=>{_0x330df1['sort']((_0xbb5f61,_0x23d9fd)=>_0xbb5f61['start']['isBefore'](_0x23d9fd['start'])?0x1:-0x1),this['_model']['change'](_0x5479a0=>{for(const _0x43d5af of _0x330df1){let _0x10c29a;_0x10c29a=_0x43d5af['end']['isAtEnd']&&_0x43d5af['end']['parent']==_0x43d5af['start']['nodeAfter']?_0x5479a0['createSelection'](_0x43d5af['start']['nodeAfter'],'on'):_0x5479a0['createSelection'](_0x43d5af),this['_model']['deleteContent'](_0x10c29a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x9a15c=(_0x4b5f2b,_0x1715e9)=>{_0x1715e9&&this['_model']['change'](_0x3f94b3=>{const {commandName:_0x57bee9,commandParams:_0x3ae7c2=[]}=_0x1715e9,_0x5e2803=_0x4b5f2b['map'](_0x164f34=>(Lt(_0x164f34)&&(_0x164f34=this['_model']['createRange'](_0x164f34['end'])),_0x164f34))['filter'](_0x4192ea=>'$graveyard'!==_0x4192ea['root']['rootName']);if(_0x5e2803['length']<0x1)return;const _0x424905=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x228dbd=>_0x2229f7['fromRange'](_0x228dbd));_0x3f94b3['setSelection'](_0x5e2803);for(const _0x40735b of this['_editor']['commands']['commands']())_0x40735b['refresh']();_0x3ae7c2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x57bee9,..._0x3ae7c2);const _0x118012=_0x424905['filter'](_0x324c11=>'$graveyard'!=_0x324c11['root']['rootName']);_0x118012['length']>0x0&&_0x3f94b3['setSelection'](_0x118012);for(const _0x3822ba of _0x424905)_0x3822ba['detach']();});},_0x5de70d=(_0x9426da,_0x46b5fe)=>0x1==_0x9426da['length']&&0x1==_0x46b5fe['length']&&_0x9426da[0x0]['end']['isEqual'](_0x46b5fe[0x0]['start']),_0xbb9228=(_0x15088c,_0x31171a,_0x396c22,_0x56f621)=>Wt(_0x15088c,_0x31171a,_0x396c22,_0x56f621)?[_0x15088c,_0x31171a]:Wt(_0x31171a,_0x15088c,_0x56f621,_0x396c22)?[_0x31171a,_0x15088c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x208103),this['_defaultCallbacks']['set']('insertion:discard',_0x5545fb),this['_defaultCallbacks']['set']('insertion:join',_0x5de70d),this['_defaultCallbacks']['set']('insertion:chain',_0xbb9228),this['_defaultCallbacks']['set']('deletion:accept',_0x5545fb),this['_defaultCallbacks']['set']('deletion:discard',_0x208103),this['_defaultCallbacks']['set']('deletion:join',_0x5de70d),this['_defaultCallbacks']['set']('deletion:chain',_0xbb9228),this['_defaultCallbacks']['set']('formatInline:accept',_0x9a15c),this['_defaultCallbacks']['set']('formatInline:discard',_0x208103),this['_defaultCallbacks']['set']('formatInline:join',_0x5de70d),this['_defaultCallbacks']['set']('formatInline:chain',_0x208103),this['_defaultCallbacks']['set']('formatBlock:accept',_0x9a15c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x208103),this['_defaultCallbacks']['set']('formatBlock:join',_0x5de70d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x208103),this['_defaultCallbacks']['set']('attribute:accept',_0x208103),this['_defaultCallbacks']['set']('attribute:discard',(_0x293723,_0x233cca)=>{if(!_0x233cca)return;const _0x497628=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x31cca4=>{if(_0x233cca['key']==u)for(const _0x318823 of _0x293723){const _0x50f600=_0x318823['start']['nodeAfter'],_0x56149e=_0x233cca['oldValue'];_0x31cca4['rename'](_0x50f600,_0x56149e);}else{if(_0x497628['_isBlockAttribute'](_0x233cca['key'])){for(const _0x49769b of _0x293723)void 0x0!==_0x233cca['oldValue']?_0x31cca4['setAttribute'](_0x233cca['key'],_0x233cca['oldValue'],_0x49769b['start']['nodeAfter']):_0x31cca4['removeAttribute'](_0x233cca['key'],_0x49769b['start']['nodeAfter']);}else{for(const _0x4996e5 of _0x293723)_0x233cca['oldValue']?_0x31cca4['setAttribute'](_0x233cca['key'],_0x233cca['oldValue'],_0x4996e5):_0x31cca4['removeAttribute'](_0x233cca['key'],_0x4996e5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5de70d);}}function Gt(_0x6f8843,_0x57e22b,_0x1319b8){for(const _0x2ede07 of _0x57e22b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ede07['root']==_0x2ede07)return!0x1;if(!_0x1319b8['containsItem'](_0x2ede07))return!0x1;if(_0x6f8843['isObject'](_0x2ede07)||_0x6f8843['isLimit'](_0x2ede07))return!0x0;}return!0x1;}function Lt(_0x805b45){return _0x805b45['end']['parent']==_0x805b45['start']['nodeAfter']&&_0x805b45['end']['isAtStart'];}function Jt(_0x27dcf3,_0x496c37,_0x4d5bbe,_0x31dc5e){const _0x3e91c1=_0x460992=>!_0x460992['item']['is']('$textProxy')&&!_0x31dc5e['isObject'](_0x460992['item']),_0x3d6d8c=_0x27dcf3['start']['getLastMatchingPosition'](_0x3e91c1),_0x3bf7c7=_0x27dcf3['end']['getLastMatchingPosition'](_0x3e91c1,{'direction':'backward'});return(!_0x27dcf3['start']['isEqual'](_0x3d6d8c)||!_0x27dcf3['end']['isEqual'](_0x3bf7c7))&&(_0x3d6d8c['isBefore'](_0x3bf7c7)?_0x4d5bbe['updateMarker'](_0x496c37,{'range':_0x4d5bbe['createRange'](_0x3d6d8c,_0x3bf7c7)}):_0x4d5bbe['removeMarker'](_0x496c37),!0x0);}function Kt(_0x5d45a5){return _0x4dad08(_0x5d45a5);}function Ht(_0xa79515){const _0x1b7e27=_0xa79515['start']['nodeAfter'];return _0x1b7e27&&_0x1b7e27['is']('element');}function qt(_0x1d0446,_0x437fd5){return null==_0x1d0446['end']['nodeBefore']&&_0x1d0446['end']['parent']==_0x1d0446['start']['nodeAfter']?zt(_0x1d0446['start']['nodeAfter'],_0x437fd5):_0x1d0446;}function zt(_0x522016,_0x22363f){const _0x52ebb7=_0x22363f['schema']['isObject'](_0x522016)||_0x22363f['schema']['isSelectable'](_0x522016);return _0x22363f['createRange'](_0x22363f['createPositionAt'](_0x522016,'before'),_0x52ebb7?_0x22363f['createPositionAfter'](_0x522016):_0x22363f['createPositionAt'](_0x522016,'end'));}function Wt(_0x4e8580,_0x10fea8,_0x2c11cd,_0x45fd9f){return!!Qt(_0x4e8580,_0x10fea8)&&_0x2c11cd['end']['isEqual'](_0x45fd9f['start']);}function Qt(_0xdb2b19,_0xc9ab8f){if(!_0xdb2b19['_isDataLoaded']||!_0xc9ab8f['_isDataLoaded'])return!0x1;const _0x4b8656=new Set(Object['keys'](_0xdb2b19['attributes'])),_0x30a018=new Set(Object['keys'](_0xc9ab8f['attributes']));if(_0x4b8656['delete']('groupId'),_0x30a018['delete']('groupId'),0x0==_0x4b8656['size']&&0x0==_0x30a018['size'])return!0x0;if(_0x4b8656['size']!=_0x30a018['size'])return!0x1;const _0x469860={..._0xdb2b19['attributes']},_0x50d00f={..._0xc9ab8f['attributes']};return delete _0x469860['groupId'],delete _0x50d00f['groupId'],JSON['stringify'](_0x469860)==JSON['stringify'](_0x50d00f);}function Xt(_0x2c1015,_0x212189){const _0x549cc7=Yt(_0x2c1015['attributes']),_0x1a362f=Yt(_0x212189);if(!_0x2c1015['_isDataLoaded'])return!0x1;for(const _0x1174dd of Object['keys'](_0x1a362f))if(!_0x4db2af(_0x549cc7[_0x1174dd],_0x1a362f[_0x1174dd]))return!0x1;return!0x0;}function Yt(_0x341876){const _0x4bdcf2=Object['assign']({},_0x341876);return delete _0x4bdcf2['skipNestingCheck'],delete _0x4bdcf2['tablePasteChainId'],_0x4bdcf2;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x1e4549(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c0eaf,_0x2d8f98,_0x208622,_0x9a203b){super(),this['model']=_0x2d8f98,this['view']=_0x208622,this['commentThreadController']=_0x9a203b,this['_editor']=_0x4c0eaf,this['_acceptCommand']=_0x4c0eaf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c0eaf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34ea18,_0x34234d)=>_0x34ea18||_0x34234d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x267b84=>_0x267b84&&this['_editor']['model']['canEditAt'](_0x2d8f98['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x134807=>_0x134807&&this['_editor']['model']['canEditAt'](_0x2d8f98['getRanges']())),this['_pendingAction']=null,_0x208622['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x208622,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x208622,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x208622,'change:isDirty',()=>{_0x208622['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 _0x56e5d0=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56e5d0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x506fee{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x512d47,_0x4e0057,_0x6e019d,_0x3f32d5){super(_0x512d47),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x228a34(_0x512d47,c(_0x512d47,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e0057['authoredAt']),this['bind']('authoredAt')['to'](_0x4e0057),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',_0x4e0057,'authoredAt',this,'descriptionParts',(_0x1fe736,_0x2cbe21,_0x52358c)=>{const _0x245df9=_0x52358c['map'](_0x309c92=>ls(_0x309c92['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1fe736-0x1,_0x4e0057['author']['name'],_0x2cbe21?_0x3f32d5['formatDateTime'](_0x2cbe21):'',new DOMParser()['parseFromString'](_0x245df9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c7815(),this['focusTracker']=new _0x26c9e5(),this['keystrokes']=new _0x568b49(),this['focusCycler']=new _0x2f3d9f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2b3a26=>_0x2b3a26['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4e0057,this['_localUser']=_0x6e019d,this['_config']=_0x3f32d5,_0x3f32d5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc190f5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5cccbe}=this['_config'];this['commentsListView']=new _0x5cccbe(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',_0x4fbe3c=>_0x4fbe3c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2bc871,_0x2647aa)=>_0x2bc871||!!_0x2647aa);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x30a03c}=this['_config'],_0x59cc44=new _0x30a03c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2df66f=_0x59cc44['commentInputView'];return _0x59cc44['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2df66f,'value',(_0x5d7fa3,_0x13dc47,_0x1067c5)=>!!_0x1067c5||_0x5d7fa3&&!_0x13dc47),_0x2df66f['on']('submit',(_0x358dac,_0x11dabc)=>{this['fire']('addComment',_0x11dabc),_0x2df66f['editor']['setData']('');}),_0x2df66f['on']('cancel',()=>this['focus']()),_0x2df66f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59cc44;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x551891,_0x374815,_0x518b2b,_0x382d6a){super(_0x551891,_0x374815,_0x518b2b,_0x382d6a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22ce15=>_0x22ce15&&_0x22ce15[0x0]?_0x22ce15[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x58c58e,_0x300e94)=>{let _0x10befa='';for(const _0x567f0d of _0x58c58e)_0x10befa+='<p>'+ls(_0x567f0d['content'],_0x567f0d['color'])+'</p>';return _0x300e94?_0x10befa:ti(_0x10befa,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x382d6a['SuggestionView'](_0x551891,_0x374815,{'formatDateTime':_0x382d6a['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 _0x2b5ea3=this['bindTemplate'],_0x1d1c26=[this['suggestionView']];return this['commentsListView']&&_0x1d1c26['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1d1c26['push'](this['commentThreadInputView']),_0x1d1c26['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2b5ea3['if']('isActive','ck-suggestion-wrapper--active'),_0x2b5ea3['to']('type',_0x47fb19=>'ck-suggestion-'+_0x47fb19),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':_0x2b5ea3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1d1c26};}['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 _0x506fee{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x778ac2,_0x488764,_0x1a0b3d){super(_0x778ac2),this['_model']=_0x488764,this['_config']=_0x1a0b3d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x488764),this['acceptButton']=this['_createButton'](c(_0x778ac2,'Accept\x20suggestion'),_0x232e96,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x778ac2,'Discard\x20suggestion'),_0x594baf,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x29cbe4(_0x778ac2,_0x488764['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c7815([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x26c9e5(),this['keystrokes']=new _0x568b49(),this['focusCycler']=new _0x2f3d9f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46a4a3=>_0x46a4a3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x272c5e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x272c5e['innerHTML']=this['description'],this['on']('change:description',(_0x5877c9,_0x57d07f,_0x636640)=>{_0x272c5e['innerHTML']=_0x636640;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b9d1d=this['bindTemplate'],_0x6bf118=[{'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':_0x2b9d1d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b9d1d['to']('authoredAt',_0x26fa3b=>this['_config']['formatDateTime'](_0x26fa3b))}]}]},{'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']&&_0x6bf118['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':_0x6bf118}]};}['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'](_0xa9c67c,_0x17eeaa,_0x36bf6e,_0x20a9ad,_0x41cc0c){const _0x40c663=new _0x4469ca(this['locale']);return _0x40c663['set']({'label':_0xa9c67c,'icon':_0x17eeaa,'tooltip':!0x0,'tooltipPosition':_0x41cc0c}),_0x40c663['extendTemplate']({'attributes':{'class':_0x36bf6e}}),_0x40c663['on']('execute',()=>{this['fire'](_0x20a9ad,this['_model']['id']);}),_0x40c663;}['_setupKeyboardNavigation'](){const _0x102d91=this['element'];this['keystrokes']['listenTo'](_0x102d91);for(const _0x20028e of this['focusables'])this['focusTracker']['add'](_0x20028e['element']),this['keystrokes']['listenTo'](_0x20028e['element']);this['keystrokes']['set']('enter',(_0x3ab759,_0x2286cf)=>{_0x102d91===_0x3ab759['target']&&(this['focusCycler']['focusFirst'](),_0x2286cf());}),this['keystrokes']['set']('esc',(_0x3e2222,_0xe1e592)=>{_0x102d91!==_0x3e2222['target']&&(this['focus'](),_0xe1e592());});}}class d extends _0x1e29df{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x29e23d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517edc){super(_0x517edc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x59ff30=this['editor']['config'];_0x59ff30['define']('trackChanges.SuggestionThreadView',fe),_0x59ff30['define']('trackChanges.SuggestionView',we),_0x59ff30['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x59ff30['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x184a3c,_0x1b246f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2ee794,_0x423c4e]of this['_handleControllerBuffer']){const _0xa5d1a4=this['_suggestionToController']['has'](_0x2ee794);_0xa5d1a4||_0x423c4e?_0xa5d1a4&&_0x423c4e&&this['_destroyController'](_0x2ee794):this['_initializeController'](_0x2ee794);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x184a3c,_0x1b246f);}['init'](){const _0x328895=this['editor'],_0x10893d=_0x328895['plugins']['get']('TrackChangesEditing'),_0x15d91a=_0x328895['plugins']['get']('Annotations'),_0x46e637=_0x328895['plugins']['get']('EditorAnnotations'),_0x3bcba6=_0x328895['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x46e637['addSourceCollector'](()=>{const _0x4d9799=[];for(const [_0x5c1840,_0x1f634c]of Array['from'](this['_suggestionToController'])){const _0x2e6063=_0x5c1840['getAllAdjacentSuggestions'](),_0x5ad2d9=[];for(const _0xda3c1c of _0x2e6063){if(!_0xda3c1c['isInContent'])continue;if(_0xda3c1c['isMultiRange']){_0x5ad2d9['push'](..._0xda3c1c['getRanges']());continue;}const _0x27cb9a=_0xda3c1c['getFirstRange']();if(_0x5ad2d9['length']>0x0){const _0x6a5f7b=_0x5ad2d9[0x0]['getJoined'](_0x27cb9a);if(_0x6a5f7b){_0x5ad2d9[0x0]=_0x6a5f7b;continue;}}_0x5ad2d9['push'](_0x27cb9a);}_0x4d9799['push']([_0x1f634c['view'],_0x5ad2d9]);}return _0x4d9799;}),this['listenTo'](_0x10893d,'suggestionLoaded',(_0xf1fbc1,_0x2e4dff)=>{this['listenTo'](_0x2e4dff,'change:previous',(_0x46b03b,_0x2ee107,_0x2cc6ea,_0x1a4eed)=>{_0x2e4dff['isInContent']&&(null==_0x2cc6ea?(this['_updateController'](_0x1a4eed['head']),this['_handleSuggestionControllerDelayed'](_0x2e4dff,!0x1)):(this['_updateController'](_0x2cc6ea['head']),null==_0x1a4eed&&this['_handleSuggestionControllerDelayed'](_0x2e4dff,!0x0)));}),null!==_0x2e4dff['previous']?this['_updateController'](_0x2e4dff['head']):this['_handleSuggestionControllerDelayed'](_0x2e4dff,!0x1);}),this['listenTo'](_0x10893d,'suggestionUnloaded',(_0x5d1f83,_0x2eabf8,_0x5e8080)=>{this['stopListening'](_0x2eabf8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2eabf8),this['_suggestionToController']['has'](_0x2eabf8)&&this['_destroyController'](_0x2eabf8),_0x5e8080&&this['_updateController'](_0x5e8080['head']);}),this['listenTo'](_0x10893d,'suggestionChanged',(_0x5d159d,_0x31c739)=>{this['_updateController'](_0x31c739);}),this['listenTo'](_0x15d91a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3bcba6,'addComment',(_0x424a46,{threadId:_0x3821c9,isFromAdapter:_0x3f85c3})=>{if(_0x3f85c3||!_0x10893d['hasSuggestion'](_0x3821c9))return;const _0x1c4fe7=_0x10893d['getSuggestion'](_0x3821c9);this['_suggestionToController']['get'](_0x1c4fe7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a946d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x291410;for(const _0x1478c4 in _0x5a946d){const _0xab6c10=_0x1478c4,_0x24a65b=_0x5a946d[_0xab6c10];if('trackChangesLicenseKeyValid'==_0x24a65b||'trackChangesLicenseKeyInvalid'==_0x24a65b||'trackChangesLicenseKeyExpired'==_0x24a65b||'trackChangesLicenseKeyDomainLimit'==_0x24a65b||'trackChangesLicenseKeyNotAllowed'==_0x24a65b||'trackChangesLicenseKeyEvaluationLimit'==_0x24a65b||'trackChangesLicenseKeyTrialLimit'==_0x24a65b||'trackChangesLicenseKeyUsageLimit'==_0x24a65b){delete _0x5a946d[_0xab6c10],_0x291410=_0x24a65b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x291410&&_0x5a946d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x291410&&_0x5a946d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x291410&&_0x5a946d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x291410&&_0x5a946d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x291410&&_0x5a946d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x291410&&_0x5a946d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x291410&&_0x5a946d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50ba42=this['editor']['plugins']['get']('Annotations'),_0x582f34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x442f4e=Array['from'](_0x50ba42['activeAnnotations'],_0x3192fc=>_0x3192fc['innerView'])['filter'](_0xaf30a4=>this['_viewToController']['has'](_0xaf30a4)),_0x28e8d7=[];for(const _0x5e0107 of _0x442f4e){const _0x2e53e6=this['_viewToController']['get'](_0x5e0107)['model']['getAllAdjacentSuggestions']();_0x28e8d7['push'](..._0x2e53e6['reduce']((_0x40640f,_0x185328)=>[..._0x40640f,..._0x185328['getMarkerNames']()],[]));}_0x582f34['activeMarkers']=_0x28e8d7;}['_addUIComponentsToFactory'](){const _0x974541=this['editor'],_0x398639=_0x974541['locale'],_0x12d43e=c(_0x398639,'Track\x20changes'),_0x4cf2e6=new _0x2b81f7([{'type':'switchbutton','model':new _0x373ca4({'withText':!0x0,'isToggleable':!0x0,'label':_0x12d43e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x373ca4({'withText':!0x0,'label':c(_0x398639,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x373ca4({'withText':!0x0,'label':c(_0x398639,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x373ca4({'withText':!0x0,'label':c(_0x398639,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x373ca4({'withText':!0x0,'label':c(_0x398639,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x974541['plugins']['has']('TrackChangesPreview')&&_0x4cf2e6['addMany']([{'type':'separator'},{'type':'button','model':new _0x373ca4({'withText':!0x0,'label':c(_0x398639,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x304170 of _0x4cf2e6)if(ke(_0x304170)){const _0x44ca33=_0x974541['commands']['get'](_0x304170['model']['commandName']);_0x304170['model']['bind']('isOn','isEnabled')['to'](_0x44ca33,'value','isEnabled');}_0x974541['ui']['componentFactory']['add']('trackChanges',_0x44a8db=>this['_createToolbarButton'](_0x44a8db,_0x4cf2e6,_0x12d43e)),_0x974541['ui']['componentFactory']['add']('menuBar:trackChanges',_0x59d038=>this['_createMenuBarMenu'](_0x59d038,_0x4cf2e6,_0x12d43e));}['_createToolbarButton'](_0x5af183,_0x4541d3,_0x49d7ae){const _0x24522e=_0x2493c0(_0x5af183,_0x29d254),_0x9a95bb=this['editor']['commands']['get']('trackChanges');_0x24522e['buttonView']['set']({'tooltip':_0x49d7ae,'label':_0x49d7ae,'icon':_0xb76f22}),_0x24522e['buttonView']['bind']('isOn')['to'](_0x9a95bb,'value'),_0x24522e['buttonView']['on']('execute',()=>{_0x9a95bb['execute'](),this['editor']['editing']['view']['focus']();}),_0x2b9662(_0x24522e,_0x4541d3,{'role':'menu'});const _0x31a9eb=[];for(const _0x238169 of _0x4541d3)ke(_0x238169)&&_0x31a9eb['push'](this['editor']['commands']['get'](_0x238169['model']['commandName']));const _0x5ac4b2=_0x24522e['buttonView'];return _0x5ac4b2['actionView']['unbind']('isEnabled'),_0x5ac4b2['arrowView']['unbind']('isEnabled'),_0x5ac4b2['actionView']['bind']('isEnabled')['to'](_0x9a95bb,'isEnabled'),_0x5ac4b2['arrowView']['bind']('isEnabled')['toMany'](_0x31a9eb,'isEnabled',(..._0x2941fd)=>_0x2941fd['some'](_0x166e3b=>_0x166e3b)),_0x24522e['on']('execute',_0x4cfc43=>{this['editor']['execute'](_0x4cfc43['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x24522e;}['_createMenuBarMenu'](_0x40d3e6,_0x412ffd,_0x4b6a88){const _0x59d748=new _0x5b5f6b(_0x40d3e6),_0x4dcdd2=this['editor']['commands']['get']('trackChanges');_0x59d748['buttonView']['set']({'label':_0x4b6a88,'icon':_0xb76f22});const _0x578229=new _0x59a58c(_0x40d3e6);for(const _0x2eb7ff of _0x412ffd){if('separator'==_0x2eb7ff['type']){_0x578229['items']['add'](new _0x336232(_0x40d3e6));continue;}const _0x2729e1=new _0x5f0500(_0x40d3e6,_0x59d748),_0x512919=new _0x47ac87(_0x40d3e6),_0x39a529=_0x2eb7ff['model'];_0x512919['bind'](...Object['keys'](_0x39a529))['to'](_0x39a529),_0x512919['delegate']('execute')['to'](_0x59d748),_0x512919['on']('execute',()=>{this['editor']['execute'](_0x39a529['commandName']),this['editor']['editing']['view']['focus']();}),_0x2729e1['children']['add'](_0x512919),_0x578229['items']['add'](_0x2729e1);}return _0x59d748['bind']('isEnabled')['to'](_0x4dcdd2,'isEnabled'),_0x59d748['panelView']['children']['add'](_0x578229),_0x59d748;}['_initializeController'](_0x1e87f7){const _0x313edf=this['editor'],_0x146ac0=_0x313edf['config'],_0x2bf6f7=_0x313edf['plugins']['get']('Annotations'),_0x11ffa0=_0x313edf['plugins']['get']('CommentsRepository'),_0x38960d=_0x313edf['plugins']['get']('EditorAnnotations'),_0x387620=_0x313edf['plugins']['get'](_0x29e23d)['me'],_0x532d94=_0x146ac0['get']('trackChanges')['SuggestionThreadView'],_0x268e81=_0x146ac0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51e4d0,CommentThreadInputView:_0x8c6baa}=_0x313edf['plugins']['get']('CommentsUI');let _0x434755,_0x2df1b5,_0x282742;this['_annotationViews']['has'](_0x1e87f7['id'])?(_0x2df1b5=this['_annotationViews']['get'](_0x1e87f7['id']),_0x434755=_0x2df1b5['mainView']):(_0x434755=new _0x532d94(_0x313edf['locale'],_0x1e87f7,_0x387620,{'disableComments':this['_disableComments'],'editorConfig':{..._0x146ac0['get']('comments.editorConfig'),'licenseKey':_0x146ac0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x146ac0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x146ac0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x146ac0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x204928(_0x146ac0['get']('locale'),_0x313edf['locale']),'CommentView':_0x146ac0['get']('comments')['CommentView'],'CommentsListView':_0x51e4d0,'CommentThreadInputView':_0x8c6baa,'SuggestionView':_0x268e81}),_0x434755['suggestionView']['acceptButton']['on']('execute',()=>{_0x313edf['editing']['view']['focus']();}),_0x434755['suggestionView']['discardButton']['on']('execute',()=>{_0x313edf['editing']['view']['focus']();}),_0x2df1b5=_0x2bf6f7['createAnnotationView'](this['editor']['locale'],_0x434755),_0x2df1b5['bind']('isDirty')['to'](_0x434755,'isDirty'),_0x2df1b5['bind']('length')['to'](_0x434755),_0x2df1b5['bind']('type')['to'](_0x434755,'type',_0x57801a=>'suggestion-'+_0x57801a),_0x434755['on']('escape',()=>{_0x282742['fire']('escape');}),this['_annotationViews']['set'](_0x1e87f7['id'],_0x2df1b5));const _0x2f6db7=_0x11ffa0['createCommentThreadController'](_0x1e87f7['commentThread'],_0x434755),_0x241467=new pe(_0x313edf,_0x1e87f7,_0x434755,_0x2f6db7),_0x2a758f=_0x1e87f7['getAllAdjacentSuggestions']()['filter'](_0xa9ab8d=>_0xa9ab8d['isInContent']);_0x434755['descriptionParts']=_0x313edf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a758f),this['_suggestionToController']['set'](_0x1e87f7,_0x241467),this['_viewToController']['set'](_0x434755,_0x241467),_0x282742=_0x2bf6f7['createAnnotation']({'view':_0x2df1b5,'target':()=>{const _0x10727d=[],_0x26dd12=_0x1e87f7['getAllAdjacentSuggestions']()['filter'](_0x51efe0=>_0x51efe0['isInContent']);for(const _0x10e667 of _0x26dd12)_0x10727d['push'](..._0x10e667['getMarkers']());return _0x232348(_0x313edf['editing'],_0x10727d);},'type':()=>'suggestion-'+_0x241467['view']['type']}),_0x11ffa0['_bindAnnotationToEditors'](_0x434755,_0x282742),_0x2bf6f7['add'](_0x282742),_0x38960d['registerAnnotation'](_0x282742);}['_destroyController'](_0x3bb258){const _0x380bef=this['editor']['plugins']['get']('CommentsRepository'),_0x4be731=this['editor']['plugins']['get']('Annotations'),_0x1d5692=this['_suggestionToController']['get'](_0x3bb258),_0x277be4=_0x1d5692['view'],_0x2779f4=_0x4be731['getByInnerView'](_0x277be4);_0x380bef['_unbindEditors'](_0x277be4),_0x2779f4&&_0x4be731['remove'](_0x2779f4),this['_suggestionToController']['delete'](_0x3bb258),this['_viewToController']['delete'](_0x277be4),_0x1d5692['destroy']();}['_updateController'](_0x7843ff){if(!_0x7843ff['isInContent']||!this['_suggestionToController']['has'](_0x7843ff))return;const _0x240ae3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e1177=this['_suggestionToController']['get'](_0x7843ff),_0x33dd7e=_0x7843ff['getAllAdjacentSuggestions']();_0x3e1177['view']['descriptionParts']=_0x240ae3['descriptionFactory']['getDescriptions'](_0x33dd7e);}['destroy'](){for(const _0x2b2fc4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b2fc4);for(const _0x2aab72 of this['_annotationViews']['values']())_0x2aab72['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x496f97){return'model'in _0x496f97;}class k extends _0x1e29df{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4f964c){this['editor']['plugins']['get'](p)['adapter']=_0x4f964c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x176e3a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x176e3a);}['getSuggestions']({skipNotAttached:_0x5681e2=!0x1,toJSON:_0x4710a5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5681e2,'toJSON':_0x4710a5});}['getSuggestion'](_0x93b521){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x93b521);}}const w=['Pagination'];class T extends _0x1e29df{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1c449c=this['editor'];if(_0x1c449c['config']['define']('trackChangesData.editorCreator',_0x407b83=>{const _0x57200c=_0x1c449c['model']['document']['getRootNames']()['reduce']((_0x48967f,_0x2d7e16)=>(_0x48967f[_0x2d7e16]='',_0x48967f),{});return _0x1c449c['constructor']['create'](_0x57200c,_0x407b83);}),'function'!=typeof _0x1c449c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5b6dee('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf40b69){return N(this['editor'],!0x0,_0xf40b69);}['getDataWithDiscardedSuggestions'](_0x3f6677){return N(this['editor'],!0x1,_0x3f6677);}}class D extends _0x1e29df{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x310d68){function _0x989ab(_0x3bbbd6){return _0x3bbbd6['map'](_0x44171c=>String['fromCharCode'](_0x44171c))['join']('');}super(_0x310d68),this['result']='end',_0x310d68[_0x989ab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x989ab([0x76,0x69,0x65,0x77])][_0x989ab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x989ab([0x61,0x75,0x74,0x6f]),_0x310d68[_0x989ab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x989ab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x989ab([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x989ab([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x989ab([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x478e32){return void 0x0!==_0x478e32['getRootsAttributes'];}async function N(_0x3b95c0,_0x37c65c,_0x253eb6){const _0x175012=_0x54ac84(_0x3b95c0,w);_0x175012['plugins']['push'](p,D),_0x175012['rootsAttributes']=Ge(_0x3b95c0)?_0x3b95c0['getRootsAttributes']():void 0x0;const _0x14c718=document['createDocumentFragment'](),_0x543795=_0x3b95c0['config']['get']('trackChangesData')['editorCreator'],_0x2fbd53=await _0x543795(_0x175012,()=>function(_0x153b4f){const _0x5f0e3e=document['createElement']('div');return _0x153b4f['appendChild'](_0x5f0e3e),_0x5f0e3e;}(_0x14c718));!function(_0x395df4,_0x5ea193){const _0x2f7d77=_0x395df4['model']['document']['getRootNames']()['reduce']((_0x328dfc,_0x28e33f)=>(_0x328dfc[_0x28e33f]=_0x395df4['data']['get']({'rootName':_0x28e33f}),_0x328dfc),{}),_0xa6e079=_0x395df4['plugins']['get']('Users')['users']['map'](_0x590fb4=>({'id':_0x590fb4['id'],'name':_0x590fb4['name']})),_0x3cdbd5=_0x395df4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c3c0e=_0x395df4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c9981=_0x5ea193['plugins']['get']('Users'),_0x456277=_0x5ea193['plugins']['get']('TrackChangesEditing'),_0x1ef076=_0x5ea193['plugins']['get']('CommentsRepository');for(const _0x9b2a15 of _0x1ef076['getCommentThreads']())_0x9b2a15['remove']();for(const _0x64e965 of _0xa6e079)_0x3c9981['getUser'](_0x64e965['id'])||_0x3c9981['addUser'](_0x64e965);_0x3c9981['me']||_0x3c9981['useAnonymousUser']();for(const _0x34b747 of _0x1c3c0e)_0x1ef076['addCommentThread'](_0x34b747);for(const _0xd63f36 of _0x3cdbd5)_0x456277['addSuggestionData'](_0xd63f36);_0x5ea193['data']['set'](_0x2f7d77);}(_0x3b95c0,_0x2fbd53),_0x2fbd53['execute'](_0x37c65c?'acceptAllSuggestions':'discardAllSuggestions');const _0x40d47b=Ge(_0x2fbd53)?_0x2fbd53['getFullData'](_0x253eb6):_0x2fbd53['data']['get'](_0x253eb6);return await _0x2fbd53['destroy'](),_0x40d47b;}class Me extends _0x506fee{['options'];constructor(_0x3cc518,_0x3f22a4){super(_0x3cc518),this['options']=_0x3f22a4,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'](_0x14b6ea,_0x545a9d){if(!this['element'])return;const _0x58bbd1=[];for(const [_0x1418d5,_0x25a45c]of _0x14b6ea){const _0x38083b=document['createElement']('div');_0x38083b['setAttribute']('data-ck-root-name',_0x1418d5),_0x38083b['className']=_0x25a45c['classes']+'\x20ck-track-changes-preview__root-container',_0x38083b['innerHTML']=_0x25a45c['content'],_0x58bbd1['push'](_0x38083b);}_0x545a9d(this['element'],_0x58bbd1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x4978c9{constructor(_0x12a74a){super(_0x12a74a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1fa319=this['editor'],_0x1d1cb3=_0x1fa319['locale'],_0x42b5cc=_0x1fa319['plugins']['get']('Dialog');let _0x397c11;const _0x91116c=function(_0xc13100){const _0x2a6eae={};if('editables'in _0xc13100['ui']['view']){for(const [_0x15ce86,_0x156e4f]of Object['entries'](_0xc13100['ui']['view']['editables']))_0x2a6eae[_0x15ce86]=_0x156e4f['element'];}else _0x2a6eae[_0xc13100['model']['document']['getRootNames']()[0x0]]=_0xc13100['ui']['view']['editable']['element'];return _0x2a6eae;}(_0x1fa319),_0x112846=function(_0x4227c2){let _0x40b8c8=0x0;for(const _0x4d4baf of Object['values'](_0x4227c2))_0x40b8c8=Math['max'](_0x40b8c8,_0x4d4baf['getBoundingClientRect']()['width']);let _0x370b10=0x0;for(const _0x3bec2b of Object['values'](_0x4227c2))_0x370b10+=_0x3bec2b['getBoundingClientRect']()['height'];const _0x1d6324=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x56db59=Math['min'](_0x370b10,_0x1d6324);return{'width':_0x40b8c8,'height':_0x56db59};}(_0x91116c);_0x42b5cc['show']({'id':'finalContentPreview','title':c(_0x1d1cb3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1d1cb3,{'dialogRects':_0x112846}),'onHide':()=>{_0x397c11['detachFromDom']();},'onShow':()=>{_0x1fa319['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x25ef2a=>{const _0x4b9cc1=this['_standarizeRootsData'](_0x25ef2a,_0x1fa319,_0x91116c);_0x42b5cc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b9cc1,_0x1fa319['config']['get']('trackChanges.preview.renderFunction'));}),_0x397c11=new _0x3db096(_0x1d1cb3,[_0x42b5cc['view']]),_0x397c11['attachToDom'](),_0x397c11['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1fa319['once']('destroy',()=>{_0x397c11['detachFromDom']();});const _0x10c7d8=_0x42b5cc['view']['headerView']['class'];_0x42b5cc['view']['headerView']['class']=_0x10c7d8?_0x10c7d8+'\x20ck-reset_all':'ck-reset_all',_0x42b5cc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x42b5cc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xdbf01c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x32544b=_0xdbf01c['previewMode'],_0x41b2a0={};if('$labels'===_0x32544b){for(const _0x5eda47 of _0xdbf01c['getMergeFieldsIds']())_0x41b2a0[_0x5eda47]=_0xdbf01c['getLabel'](_0x5eda47)||_0x5eda47;}else{const _0x21e163='$defaultValues'===_0x32544b?_0xdbf01c['getDefaultValues']():_0xdbf01c['getDataSetValues'](_0x32544b,!0x0);for(const _0x23abc5 of Object['entries'](_0x21e163)){const [_0x5ab8ac,_0x5aacf6]=_0x23abc5;_0x41b2a0[_0x5ab8ac]=null!==_0x5aacf6?_0x5aacf6:_0xdbf01c['getLabel'](_0x5ab8ac)||_0x5ab8ac;}}return{'mergeFieldsData':_0x41b2a0};}['_standarizeRootsData'](_0x2d5c1f,_0x2d43a0,_0x421567){let _0x52d5a8;if('string'==typeof _0x2d5c1f){const _0x99af06=_0x2d43a0['model']['document']['getRootNames']()[0x0];_0x52d5a8={[_0x99af06]:_0x2d5c1f};}else _0x52d5a8=_0x2d5c1f;const _0x4b8a0c=this['_fixMediaEmbeds'](_0x52d5a8,_0x2d43a0),_0x133c61=function(_0x4aed51,_0x1c2ff1){for(const [_0x32ca6b,_0x5ae8f5]of _0x4aed51)_0x5ae8f5['classes']=_0x1c2ff1[_0x32ca6b]['classList']['value']['replace']('ck-focused','');return _0x4aed51;}(this['_sortRoots'](_0x2d43a0)['reduce']((_0xd41c16,_0x44c9cf)=>(_0xd41c16['push']([_0x44c9cf,{'content':_0x4b8a0c[_0x44c9cf],'classes':''}]),_0xd41c16),[]),_0x421567);return _0x133c61;}['_fixMediaEmbeds'](_0x5e40e8,_0x47bcf2){if(!_0x47bcf2['plugins']['has']('MediaEmbedEditing'))return _0x5e40e8;const _0x4590eb=_0x47bcf2['plugins']['get']('MediaEmbedEditing');for(const [_0x35a3fe,_0x1d0c07]of Object['entries'](_0x5e40e8)){const _0x23f10c=document['createElement']('div');_0x23f10c['innerHTML']=_0x1d0c07,(_0x23f10c['querySelectorAll']('figure.media')['forEach'](_0x172fee=>{const _0x1aaa1b=_0x172fee['querySelector']('oembed');if(_0x1aaa1b){const _0x97052e=_0x1aaa1b['getAttribute']('url');if(_0x97052e){const _0x10b93f=_0x4590eb['registry']['getMediaViewElement'](new _0x18c607(_0x47bcf2['editing']['view']['document']),_0x97052e,{'elementName':'','renderForEditingView':!0x0}),_0x3c4fae=document['createElement']('div');_0x3c4fae['classList']['add']('ck-media__wrapper'),_0x10b93f['render'](_0x3c4fae,_0x47bcf2['editing']['view']['domConverter']),_0x1aaa1b['replaceWith'](_0x3c4fae);}}}),_0x5e40e8[_0x35a3fe]=_0x23f10c['innerHTML']);}return _0x5e40e8;}['_sortRoots'](_0x5d0773){if(!function(_0x2cbe4b){return void 0x0!==_0x2cbe4b['getRootsAttributes'];}(_0x5d0773))return _0x5d0773['model']['document']['getRootNames']();const _0x517d39=[],_0x19b223=new Map();for(const _0xa560f7 of _0x5d0773['model']['document']['getRootNames']()){const _0x4ed5b5=_0x5d0773['editing']['view']['getDomRoot'](_0xa560f7)['getClientRects']()['item'](0x0);_0x517d39['push'](_0xa560f7),_0x19b223['set'](_0xa560f7,_0x4ed5b5);}return _0x517d39['sort']((_0x2e216c,_0x1ebacb)=>{const _0x5bfaf5=_0x19b223['get'](_0x2e216c),_0x104e0d=_0x19b223['get'](_0x1ebacb);return _0x5bfaf5['y']-_0x104e0d['y']||_0x5bfaf5['x']-_0x104e0d['x'];}),_0x517d39;}}class te extends _0x1e29df{static get['requires'](){return[T,_0x1fc3e0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45d1e2){super(_0x45d1e2),_0x45d1e2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x45d1e2['config']['define']('trackChanges.preview.renderFunction',(_0x365f46,_0x1177b2)=>{for(const _0x4edf0c of _0x1177b2)_0x365f46['appendChild'](_0x4edf0c);});}}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 _0x3c6e3f,Plugin as _0x59f721,PendingActions as _0x3bd73a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x280f1c,ObservableMixin as _0x824c0,uid as _0x5011f0,priorities as _0xc3ad2a,insertToPriorityArray as _0x37821f,toArray as _0x43f047,logWarning as _0x247906,getEnvKeystrokeText as _0x32cd60,FocusTracker as _0x411687,KeystrokeHandler as _0x5036c6,Collection as _0x29a520}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x516f82,IconCancel as _0x40ee79,IconTrackChanges as _0x3c6561}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1a330b,View as _0x36f767,ViewCollection as _0x46b370,FocusCycler as _0x1ec038,ViewModel as _0x423a90,createDropdown as _0x471bad,SplitButtonView as _0x1aed8c,addListToDropdown as _0x386c3e,MenuBarMenuView as _0x192111,MenuBarMenuListView as _0x364d3b,ListSeparatorView as _0x11b1e0,MenuBarMenuListItemView as _0x22223f,MenuBarMenuListItemButtonView as _0x112160,BodyCollection as _0x529ec8,Dialog as _0x51c057}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x182af8,hashObject as _0x4130c6,surroundingMarkersDetector as _0x1b4244,FOCUS_ANNOTATION_KEYSTROKE as _0x5a122d,AriaDescriptionView as _0x459411,setupThreadKeyboardNavigation as _0x3d5471,trimHtml as ti,UserView as _0x3cca20,LateFocusButtonView as _0x400f94,getDateTimeFormatter as _0x597a50,getAllMarkersDomElementsSorted as _0x2492d1,sanitizeEditorConfig as _0x3d709e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x32bb8c,LiveRange as _0x39b5cf,LivePosition as _0x3416fa,DowncastWriter as _0x34e4ea}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x49fc28,toWidget as _0x22735a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1777b1,set as _0xbd147e,isEqual as _0x5c3aba,unset as _0x30d09d,omit as Ft}from'es-toolkit/compat';import{Delete as _0x23c0b1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x783952}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3de457}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3c6e3f{['_enabledCommands'];constructor(_0x89b294,_0x11fc2e){super(_0x89b294),this['_enabledCommands']=_0x11fc2e,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 _0x3e98f8 of this['editor']['commands']['commands']())_0x3e98f8['affectsData']&&!this['_enabledCommands']['has'](_0x3e98f8)&&_0x3e98f8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xf732c4 of this['editor']['commands']['commands']())_0xf732c4['affectsData']&&!this['_enabledCommands']['has'](_0xf732c4)&&_0xf732c4['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x3c6e3f{['_suggestions'];constructor(_0x2159ff,_0x51daf1){super(_0x2159ff),this['_suggestions']=_0x51daf1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x43e5d4){const _0x51bd91=this['_suggestions']['get'](_0x43e5d4);if(!_0x51bd91)throw new _0x280f1c('track-changes-accept-suggestion-not-found',this);const _0x158caa=_0x51bd91['getRanges']();this['editor']['model']['canEditAt'](_0x158caa)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x51bd91);}}class O extends _0x3c6e3f{['_suggestions'];constructor(_0x4286db,_0x26e2a7){super(_0x4286db),this['_suggestions']=_0x26e2a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2ba749){const _0x58130b=this['_suggestions']['get'](_0x2ba749);if(!_0x58130b)throw new _0x280f1c('track-changes-discard-suggestion-not-found',this);const _0x585798=_0x58130b['getRanges']();this['editor']['model']['canEditAt'](_0x585798)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x58130b);}}function ls(_0x2ea74f,_0x2b99c7){let _0x1783e6='';return _0x1783e6+=_0x2ea74f['split']('*')['map']((_0x3e3d57,_0x261a24)=>_0x261a24%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3e3d57)+'</span>':nn(_0x3e3d57))['join'](''),_0x2b99c7&&(_0x1783e6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b99c7['value']+'\x22\x20title=\x22'+_0x2b99c7['title']+'\x22></span>'),_0x1783e6;}function nn(_0x474e23){const _0xce20ff=document['createElement']('span');return _0xce20ff['innerText']=_0x474e23,_0xce20ff['innerHTML'];}function ts(_0x1b4d1e){return _0x1b4d1e['sort']((_0x3574ba,_0x15cf22)=>'deletion'==_0x3574ba['type']&&'deletion'!=_0x15cf22['type']?-0x1:'deletion'!=_0x3574ba['type']&&'deletion'==_0x15cf22['type']?0x1:0x0);}function to(_0x1ead38,_0x1f2a2a){let _0x2ad8a8,_0x462084=0x0;const _0x4107ef=[],_0x33c31c=_0x1f2a2a['schema'];for(;_0x462084<_0x1ead38['length'];){const _0x17ce69=_0x1ead38[_0x462084],_0x25d8b1=_0x1ead38[_0x462084+0x1];_0x2ad8a8||(_0x2ad8a8=_0x1f2a2a['createPositionBefore'](_0x17ce69)),on(_0x1f2a2a,_0x17ce69,_0x25d8b1)||(_0x4107ef['push'](_0x1f2a2a['createRange'](_0x2ad8a8,_0x33c31c['isObject'](_0x17ce69)?_0x1f2a2a['createPositionAfter'](_0x17ce69):_0x1f2a2a['createPositionAt'](_0x17ce69,'end'))),_0x2ad8a8=null),_0x462084++;}return _0x4107ef;}function on(_0x3635b7,_0x253a1d,_0x2bc995){if(!_0x2bc995)return!0x1;const _0x5ab8e4=_0x3635b7['createPositionAfter'](_0x253a1d),_0x2701a9=_0x3635b7['createPositionBefore'](_0x2bc995);return _0x5ab8e4['isTouching'](_0x2701a9);}function rs(_0x4b9463,_0x3d7956,_0x239547){for(;_0x239547['length'];){const _0x49c4fc=_0x239547['splice'](0x0,0x64);_0x4b9463['change'](()=>{for(const _0x14aac1 of _0x49c4fc)_0x14aac1['isInContent']&&_0x3d7956['execute'](_0x14aac1['id']);});}}class R extends _0x3c6e3f{['_command'];['_suggestions'];constructor(_0x407f94,_0x3d6380,_0x269e46){super(_0x407f94),this['_command']=_0x3d6380,this['_suggestions']=_0x269e46,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2149fd=Array['from'](this['_suggestions']['values']())['some'](_0x2da4fb=>_0x2da4fb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2149fd;}['execute'](){const _0x342e33=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2db93a of _0x342e33){const _0x5177ab=_0x2db93a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5177ab))return;}rs(this['editor']['model'],this['_command'],_0x342e33);}}class E extends _0x3c6e3f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4345fa,_0x38b673,_0x3fb188){super(_0x4345fa),this['_command']=_0x38b673,this['_suggestions']=_0x3fb188,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x249606=this['editor']['model']['document']['selection'],_0x5b3044=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x130b77,_0x38c5bc){const _0x54909a=Array['from'](_0x130b77['getRanges']()),_0x3e71c0=new Set();for(const _0x4eb9d6 of _0x38c5bc)if(_0x4eb9d6['isInContent']){for(const _0x224ffa of _0x54909a)for(const _0x1e3a6c of _0x4eb9d6['getRanges']())(_0x224ffa['isIntersecting'](_0x1e3a6c)||_0x130b77['isCollapsed']&&!_0x4eb9d6['isMultiRange']&&_0x4eb9d6['next']&&_0x1e3a6c['end']['isTouching'](_0x224ffa['start']))&&_0x3e71c0['add'](_0x4eb9d6);}return _0x3e71c0;}(_0x249606,_0x5b3044),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2519d2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4aa23a of _0x2519d2){const _0x40c671=_0x4aa23a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40c671))return;}rs(this['editor']['model'],this['_command'],_0x2519d2);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x824c0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xffaee7,_0x204c2d){super(),this['id']=_0x204c2d['id'],this['type']=_0x204c2d['type'],this['subType']=_0x204c2d['subType']||null,this['author']=_0x204c2d['author'],this['creator']=_0x204c2d['creator']||_0x204c2d['author'],this['isExternal']=Boolean(_0x204c2d['attributes']&&_0x204c2d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x204c2d['originalSuggestionId']||null,this['_model']=_0xffaee7,this['_onAccept']=_0x204c2d['onAccept'],this['_onDiscard']=_0x204c2d['onDiscard'],this['_onAttributesChange']=_0x204c2d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x204c2d['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 _0x292483=this;for(;_0x292483['previous'];)_0x292483=_0x292483['previous'];return _0x292483;}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'](_0x255133){this['_markerNames']['add'](_0x255133);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x54bcd7=>this['_model']['markers']['get'](_0x54bcd7))['filter'](_0x4e33e4=>_0x4e33e4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xf97704=>{for(const _0x30dc50 of this['getMarkers']())_0xf97704['removeMarker'](_0x30dc50);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ae000){this['_model']['change'](_0x37469f=>{_0x37469f['removeMarker'](_0x1ae000);}),this['_markerNames']['delete'](_0x1ae000);}['addRange'](_0x117cab){const _0x4ae57d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4ae57d),this['_model']['change'](_0x21510f=>{_0x21510f['addMarker'](_0x4ae57d,{'range':_0x117cab,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x209ab4){for(const _0x590f62 of this['getRanges']())if(_0x590f62['isIntersecting'](_0x209ab4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x464980=>_0x464980['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f496e,_0x2b5594)=>[..._0x3f496e,..._0x2b5594['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x28e8cf=this['getRanges']();if(0x1!=_0x28e8cf['length'])return null;const _0x2da122=_0x28e8cf[0x0],_0x20f6a8=_0x2da122['start']['nodeAfter'],_0x3a0203=_0x2da122['end']['nodeBefore'];return _0x20f6a8 instanceof _0x32bb8c?_0x20f6a8!=_0x3a0203?null:_0x20f6a8: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 _0x3a7926=[];let _0x4ee5c9=this['head'];for(;_0x4ee5c9;)_0x3a7926['push'](_0x4ee5c9),_0x4ee5c9=_0x4ee5c9['next'];return _0x3a7926;}['setAttribute'](_0x1e11e5,_0x14d0e4){const _0x1f4e6d=_0x1777b1(this['attributes']);_0xbd147e(_0x1f4e6d,_0x1e11e5,_0x14d0e4),_0x5c3aba(_0x1f4e6d,this['attributes'])||(this['attributes']=_0x1f4e6d,this['_onAttributesChange'](_0x1f4e6d));}['removeAttribute'](_0x1e51f5){const _0x574afb=_0x1777b1(this['attributes']);_0x30d09d(_0x574afb,_0x1e51f5),_0x5c3aba(_0x574afb,this['attributes'])||(this['attributes']=_0x574afb,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 _0x5011f0()['substr'](0x1,0x5);}}function c(_0x37a2da,_0x4d6fa2,_0x1e50ca){const _0x25ca2d=_0x37a2da['t'],t=_0x37a2da['t'];switch(_0x4d6fa2){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',_0x1e50ca);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1e50ca);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1e50ca);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1e50ca);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1e50ca);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',_0x1e50ca);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1e50ca);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',_0x1e50ca);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1e50ca);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1e50ca);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1e50ca);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1e50ca);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1e50ca);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1e50ca);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1e50ca);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1e50ca);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1e50ca);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1e50ca);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1e50ca);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1e50ca);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1e50ca);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1e50ca);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1e50ca);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1e50ca);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1e50ca);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1e50ca);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1e50ca);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1e50ca);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1e50ca);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1e50ca);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1e50ca);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1e50ca);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1e50ca);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1e50ca);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1e50ca);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 _0x25ca2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1e50ca);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x25ca2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1e50ca);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4d6fa2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4a11cb,_0x140411){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4a11cb,this['_locale']=_0x140411;}['getDescriptions'](_0x125a09){const _0xc7f9a7=[],_0xf13075=new Set(),_0x3a6df9=new Set();for(let _0xc8d5df=0x0;_0xc8d5df<_0x125a09['length'];_0xc8d5df++){const _0xd6867=_0x125a09[_0xc8d5df];if(!_0xd6867['isInContent'])continue;const _0x3d0e96=this['_handleCustomCallbackDescription'](_0xd6867);if(_0x3d0e96){if(null!=_0xd6867['subType']){if(_0xf13075['has'](_0xd6867['subType']))continue;_0xf13075['add'](_0xd6867['subType']);}_0xc7f9a7['push'](_0x3d0e96);}else{if('attribute'!=_0xd6867['type'])'insertion'!=_0xd6867['type']&&'deletion'!=_0xd6867['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc7f9a7,_0xd6867,_0x125a09[_0xc8d5df+0x1]);else{const _0x320e04=_0xd6867['data']['key'];if(_0x3a6df9['has'](_0x320e04))continue;_0x3a6df9['add'](_0xd6867['data']['key']),_0x320e04==u?this['_handleRenameSuggestionDescription'](_0xc7f9a7,_0xd6867):this['_handleAttributeSuggestionDescription'](_0xc7f9a7,_0xd6867);}}}return this['_resolveDescriptionItems'](_0xc7f9a7);}['registerDescriptionCallback'](_0x2aedf7){this['_customCallbacks']['push'](_0x2aedf7);}['registerElementLabel'](_0x3db2ba,_0x489a92,_0x3d304e=_0xc3ad2a['normal']){'function'==typeof _0x3db2ba?_0x37821f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3db2ba,'label':_0x489a92,'priority':_0x3d304e}):this['_itemLabels']['set'](_0x3db2ba,_0x489a92);}['registerAttributeLabel'](_0x1c007a,_0xd0c9f9){this['_attributeLabels']['set'](_0x1c007a,_0xd0c9f9);}['getItemLabel'](_0x43eceb,_0x5c8d1f=0x1){let _0x2ccafa;for(const _0x37cfa0 of this['_itemLabelsCallbacks'])if(_0x37cfa0['matchingCallback'](_0x43eceb)){_0x2ccafa=_0x37cfa0['label'];break;}return _0x2ccafa||(_0x2ccafa=this['_itemLabels']['get'](_0x43eceb['name'])),_0x2ccafa?_0x2ccafa(_0x5c8d1f):0x1!==_0x5c8d1f?_0x5c8d1f+'\x20'+_0x43eceb['name']+'s':''+_0x43eceb['name'];}['_addDescriptionItems'](_0x4f58d6,_0x2c06b8){const _0x204545=_0x2c06b8['getFirstRange']()['getWalker'](),_0x44e388='insertion'==_0x2c06b8['type']?'add':'remove';for(const _0x1cc94d of _0x204545){const _0x2e3cf7=_0x1cc94d['item'],_0x4867a6=_0x4f58d6[_0x4f58d6['length']-0x1];if(_0x2e3cf7['is']('$textProxy'))_0x4867a6&&_0x4867a6['type']['indexOf']('Container')>-0x1&&_0x4f58d6['pop'](),_0x4867a6&&'text'==_0x4867a6['type']?_0x4867a6[_0x44e388]+=_0x2e3cf7['data']:_0x4f58d6['push']({'type':'text','add':'add'==_0x44e388?_0x2e3cf7['data']:'','remove':'remove'==_0x44e388?_0x2e3cf7['data']:''});else{if(this['_schema']['isObject'](_0x2e3cf7)){const _0x5ed49c=_0x2e3cf7;if(_0x4867a6&&_0x4867a6['type']['indexOf']('Container')>-0x1&&_0x4f58d6['pop'](),'elementEnd'==_0x1cc94d['type'])continue;_0x4867a6&&_0x4867a6['type']==_0x44e388+'Object'&&_0x4867a6['element']['name']==_0x5ed49c['name']?_0x4867a6['quantity']++:_0x4f58d6['push']({'type':_0x44e388+'Object','element':_0x5ed49c,'quantity':0x1}),_0x204545['skip'](_0x28ae57=>!('elementEnd'==_0x28ae57['type']&&_0x28ae57['item']==_0x2e3cf7));}else{if(this['_schema']['checkChild'](_0x2e3cf7,'$text')||_0x2e3cf7['is']('element','softBreak')){const _0x4cd523=_0x2e3cf7;if('add'==_0x44e388&&'elementStart'==_0x1cc94d['type']||'remove'==_0x44e388&&'elementEnd'==_0x1cc94d['type'])continue;if(_0x4867a6&&-0x1==_0x4867a6['type']['indexOf']('Container')){'text'==_0x4867a6['type']&&(_0x4867a6[_0x44e388]+='\x0a');continue;}let _0x5d59c7;if(_0x5d59c7='add'==_0x44e388?_0x4cd523['nextSibling']&&!this['_schema']['isObject'](_0x4cd523['nextSibling'])?_0x4cd523['nextSibling']:null:_0x4cd523['previousSibling']&&!this['_schema']['isObject'](_0x4cd523['previousSibling'])?_0x4cd523['previousSibling']:null,_0x4cd523['isEmpty']||_0x5d59c7&&_0x5d59c7['isEmpty']){const _0x288870=_0x5d59c7&&_0x5d59c7['isEmpty']?_0x5d59c7:_0x4cd523;_0x4867a6&&_0x4867a6['type']==_0x44e388+'EmptyContainer'&&_0x4867a6['element']['name']==_0x288870['name']?_0x4867a6['quantity']++:_0x4f58d6['push']({'type':_0x44e388+'EmptyContainer','element':_0x288870,'quantity':0x1});}else _0x4f58d6['push']({'type':_0x44e388+'Container','element':_0x4cd523});}}}}}['_resolveDescriptionItems'](_0xbacc58){const _0x56162f=this['_locale'],_0x506b01=[],_0x1b4d86=[],_0x3712ae=[];for(const _0x17fe9a of _0xbacc58)switch(_0x17fe9a['type']){case'text':if(_0x17fe9a['add']=_0x17fe9a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17fe9a['remove']=_0x17fe9a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17fe9a['add']&&''!=_0x17fe9a['remove']){_0x506b01['push']({'type':'replace','content':c(_0x56162f,'REPLACE_TEXT',['\x22'+_0x17fe9a['remove']+'\x22','\x22'+_0x17fe9a['add']+'\x22'])});continue;}if(null!=_0x17fe9a['add']['match'](/^ +$/)){_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0',c(_0x56162f,'ELEMENT_SPACE',_0x17fe9a['add']['length']))});continue;}if(null!=_0x17fe9a['remove']['match'](/^ +$/)){_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0',c(_0x56162f,'ELEMENT_SPACE',_0x17fe9a['remove']['length']))});continue;}if(''!=_0x17fe9a['add']){_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0','\x22'+_0x17fe9a['add']+'\x22')});continue;}_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0','\x22'+_0x17fe9a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'addContainer':_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Split:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'removeContainer':_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Merge:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'addFormat':_0x1b4d86['push'](_0x17fe9a['key']);continue;case'removeFormat':_0x3712ae['push'](_0x17fe9a['key']);continue;default:_0x506b01['push'](_0x17fe9a);}if(_0x1b4d86['length']){const _0x5615f0=_0x1b4d86['map'](_0x4042c8=>this['_attributeLabels']['has'](_0x4042c8)?this['_attributeLabels']['get'](_0x4042c8):_0x4042c8)['join'](',\x20');_0x506b01['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5615f0)});}if(_0x3712ae['length']){const _0x2ef017=_0x3712ae['map'](_0x1e89a7=>this['_attributeLabels']['has'](_0x1e89a7)?this['_attributeLabels']['get'](_0x1e89a7):_0x1e89a7)['join'](',\x20');_0x506b01['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2ef017)});}return _0x506b01;}['_handleCustomCallbackDescription'](_0x57580d){for(const _0x406339 of this['_customCallbacks']){const _0x49c87d=_0x406339(_0x57580d);if(_0x49c87d&&'type'in _0x49c87d)return _0x49c87d;}}['_handleAttributeSuggestionDescription'](_0x1b4383,_0x4fb4b3){const _0x22af0a=_0x4fb4b3['data'],_0x35d979=void 0x0===_0x22af0a['newValue']?'removeFormat':'addFormat';_0x1b4383['push']({'type':_0x35d979,'key':_0x22af0a['key']});}['_handleRenameSuggestionDescription'](_0x50d2c2,_0x405def){_0x50d2c2['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x405def['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51f568,_0x1855b5,_0x32f8ee){if(this['_addDescriptionItems'](_0x51f568,_0x1855b5),_0x32f8ee&&_0x32f8ee['getFirstRange']()&&!_0x1855b5['getFirstRange']()['end']['isEqual'](_0x32f8ee['getFirstRange']()['start'])){const _0x1d092e=_0x51f568[_0x51f568['length']-0x1],_0x76e954='insertion'==_0x1855b5['type']?'add':'remove';_0x1d092e&&'text'==_0x1d092e['type']&&(_0x1d092e[_0x76e954]+='\x0a');}}}class U extends _0x59f721{['afterInit'](){const _0x3c2b6e=this['editor'],_0x3c67ea=_0x3c2b6e['plugins']['get']('TrackChangesEditing');_0x3c2b6e['commands']['get']('showAIAssistant')&&_0x3c67ea['enableCommand']('showAIAssistant');}}class V extends _0x59f721{['afterInit'](){const _0x5e843a=this['editor'],_0x5391b8=_0x5e843a['locale'];if(!_0x5e843a['plugins']['has']('AlignmentEditing'))return;const _0x316c38=_0x5e843a['plugins']['get']('TrackChangesEditing');_0x316c38['enableDefaultAttributesIntegration']('alignment'),_0x316c38['registerBlockAttribute']('alignment'),_0x316c38['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5391b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ca1b=this['editor'],_0x1a2b22=_0x50ca1b['locale'];_0x50ca1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290d5e=>{if('formatBlock'!=_0x290d5e['type'])return;const {data:_0x2ed997}=_0x290d5e;if(_0x2ed997&&'alignment'==_0x2ed997['commandName']){const _0x7497f1=_0x2ed997['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1a2b22,'*Format:*\x20%0',function(_0x9ba5a2){switch(_0x9ba5a2){case'left':return c(_0x1a2b22,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1a2b22,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1a2b22,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1a2b22,'FORMAT_JUSTIFY_TEXT');}}(_0x7497f1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x59f721{['afterInit'](){const _0x528bd7=this['editor'],_0x53d533=_0x528bd7['plugins']['get']('TrackChangesEditing'),_0x57244c=_0x528bd7['locale'];for(const _0x3c7cd4 of Zt){if(!_0x528bd7['plugins']['has'](_0x3c7cd4))continue;const _0x5990d4=_0x3c7cd4['slice'](0x0,-0x7)['toLowerCase'](),_0x19ec0e='FORMAT_'+_0x5990d4['toUpperCase']();_0x53d533['enableDefaultAttributesIntegration'](_0x5990d4),_0x53d533['registerInlineAttribute'](_0x5990d4),_0x53d533['descriptionFactory']['registerAttributeLabel'](_0x5990d4,c(_0x57244c,_0x19ec0e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d543c=this['editor'],_0x52cdfe=_0x2d543c['locale'],_0x2e702e=_0x2d543c['plugins']['get']('TrackChangesEditing');function _0x47c730(_0x2fc020,_0x3c76eb){_0x2e702e['descriptionFactory']['registerDescriptionCallback'](_0x265c8b=>{if('formatInline'!=_0x265c8b['type'])return;const {data:_0x398fd7}=_0x265c8b;return _0x398fd7&&_0x398fd7['commandName']===_0x2fc020?_0x398fd7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52cdfe,'*Format:*\x20%0',_0x3c76eb)}:{'type':'format','content':c(_0x52cdfe,'*Remove\x20format:*\x20%0',_0x3c76eb)}:void 0x0;});}_0x47c730('bold',c(_0x52cdfe,'FORMAT_BOLD')),_0x47c730('italic',c(_0x52cdfe,'FORMAT_ITALIC')),_0x47c730('underline',c(_0x52cdfe,'FORMAT_UNDERLINE')),_0x47c730('code',c(_0x52cdfe,'FORMAT_CODE')),_0x47c730('strikethrough',c(_0x52cdfe,'FORMAT_STRIKETHROUGH')),_0x47c730('subscript',c(_0x52cdfe,'FORMAT_SUBSCRIPT')),_0x47c730('superscript',c(_0x52cdfe,'FORMAT_SUPERSCRIPT'));}}class G extends _0x59f721{['afterInit'](){const _0x1ecb3c=this['editor'],_0x23f960=_0x1ecb3c['locale'];if(!_0x1ecb3c['plugins']['has']('BlockQuoteEditing'))return;const _0x259b2b=_0x1ecb3c['plugins']['get']('TrackChangesEditing'),_0x1cc431=this['editor']['commands']['get']('blockQuote');_0x259b2b['enableCommand']('blockQuote',(_0x52e19f,_0x414b2e={})=>{const _0x366623=this['editor']['model']['document']['selection'],_0x37eac9=_0x414b2e&&void 0x0!==_0x414b2e['forceValue']?_0x414b2e['forceValue']:!_0x1cc431['value'];let _0x2ec975=[];if(_0x37eac9){const _0x4e7c7b=Array['from'](_0x366623['getSelectedBlocks']())['filter'](_0x3e9367=>oo(_0x3e9367)||function(_0x41bc7e,_0x357001){const _0x531afd=_0x357001['checkChild'](_0x41bc7e['parent'],'blockQuote'),_0x561d4f=_0x357001['checkChild'](['$root','blockQuote'],_0x41bc7e);return _0x531afd&&_0x561d4f;}(_0x3e9367,this['editor']['model']['schema']));_0x2ec975=to(_0x4e7c7b,_0x1ecb3c['model']);}else{const _0x238592=Array['from'](_0x366623['getSelectedBlocks']())['filter'](_0x34a6f2=>oo(_0x34a6f2));_0x2ec975=to(_0x238592,_0x1ecb3c['model']);}_0x1ecb3c['model']['change'](()=>{for(const _0x3e318d of _0x2ec975)_0x259b2b['markBlockFormat'](_0x3e318d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37eac9}]});});}),_0x259b2b['descriptionFactory']['registerDescriptionCallback'](_0x4c69cc=>{const {data:_0x165925}=_0x4c69cc;if(_0x165925&&'blockQuote'==_0x165925['commandName']){const _0x5bed3d=c(_0x23f960,'ELEMENT_BLOCK_QUOTE');return _0x165925['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x23f960,'*Set\x20format:*\x20%0',_0x5bed3d)}:{'type':'format','content':c(_0x23f960,'*Remove\x20format:*\x20%0',_0x5bed3d)};}});}}function oo(_0x3ad5c1){return'blockQuote'==_0x3ad5c1['parent']['name'];}class L extends _0x59f721{['afterInit'](){const _0x4eb03b=this['editor'],_0x182ec2=_0x4eb03b['locale'],_0x4ca945=_0x4eb03b['plugins']['get']('TrackChangesEditing');_0x4eb03b['plugins']['has']('BookmarkEditing')&&(_0x4ca945['enableCommand']('insertBookmark'),_0x4ca945['enableDefaultAttributesIntegration']('updateBookmark'),_0x4ca945['registerBlockAttribute']('bookmarkId'),_0x4ca945['descriptionFactory']['registerDescriptionCallback'](_0xb6d01e=>{if('insertion'!=_0xb6d01e['type']&&'deletion'!=_0xb6d01e['type']&&'attribute'!=_0xb6d01e['type'])return;const _0x480923=_0xb6d01e['getContainedElement']();if(null==_0x480923)return;if(!_0x480923['is']('element','bookmark'))return;const _0x4f0ce3=_0x480923['getAttribute']('bookmarkId');if('insertion'==_0xb6d01e['type'])return{'type':'insertion','content':c(_0x182ec2,'*Insert:*\x20%0','\x22'+_0x4f0ce3+'\x22\x20'+c(_0x182ec2,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb6d01e['type'])return{'type':'deletion','content':c(_0x182ec2,'*Remove:*\x20%0','\x22'+_0x4f0ce3+'\x22\x20'+c(_0x182ec2,'ELEMENT_BOOKMARK'))};const {data:_0xca2f6b}=_0xb6d01e;if(!_0xca2f6b||'bookmarkId'!=_0xca2f6b['key'])return;return{'type':'format','content':c(_0x182ec2,'*Set\x20bookmark:*\x20%0','\x22'+_0xca2f6b['newValue']+'\x22')};}));}}class J extends _0x59f721{['afterInit'](){const _0x19604e=this['editor'];_0x19604e['plugins']['has']('CaseChange')&&(_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x59f721{['afterInit'](){const _0x135745=this['editor'];_0x135745['commands']['get']('ckbox')&&_0x135745['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x59f721{['afterInit'](){const _0x38d346=this['editor'];if(!_0x38d346['plugins']['has']('CodeBlock'))return;const _0x568624=_0x38d346['plugins']['get']('TrackChangesEditing'),_0x417f8d=_0x38d346['locale'],_0x48cbe3=_0x38d346['config']['get']('codeBlock')['languages'],_0x1ec803=_0x38d346['commands']['get']('codeBlock');_0x568624['enableCommand']('indentCodeBlock'),_0x568624['enableCommand']('outdentCodeBlock'),_0x568624['enableCommand']('codeBlock',(_0x3f3a13,_0x2ff9c9={})=>{const _0x2a3943=_0x38d346['model'],_0x2bf8fe=_0x38d346['model']['document']['selection'],_0x32d67e=_0x2ff9c9&&void 0x0!==_0x2ff9c9['forceValue']?_0x2ff9c9['forceValue']:!_0x1ec803['value'];let _0xe6e76e;_0x2ff9c9['language']||(_0x2ff9c9['language']=_0x48cbe3[0x0]['language']),_0xe6e76e=_0x32d67e?Array['from'](_0x2bf8fe['getSelectedBlocks']())['filter'](_0x3c90d7=>eo(_0x3c90d7)||function(_0x22f758,_0x4e7869){if(_0x22f758['is']('rootElement')||_0x4e7869['isLimit'](_0x22f758))return!0x1;return _0x4e7869['checkChild'](_0x22f758['parent'],'codeBlock');}(_0x3c90d7,_0x2a3943['schema'])):Array['from'](_0x2bf8fe['getSelectedBlocks']())['filter'](_0x187c51=>eo(_0x187c51));const _0x1f80b7=to(_0xe6e76e,_0x2a3943);_0x2a3943['change'](()=>{for(const _0x3c3252 of _0x1f80b7)_0x568624['markBlockFormat'](_0x3c3252,{'commandName':'codeBlock','commandParams':[{..._0x2ff9c9,'forceValue':_0x32d67e}],'formatGroupId':'blockName'});});}),(_0x568624['descriptionFactory']['registerElementLabel']('codeBlock',_0x1355af=>c(_0x417f8d,'ELEMENT_CODE_BLOCK',_0x1355af)),_0x568624['descriptionFactory']['registerDescriptionCallback'](_0x2839fa=>{if('formatBlock'!=_0x2839fa['type'])return;const _0x186492=_0x417f8d['t'],{data:_0x33d480}=_0x2839fa;if(!_0x33d480||'codeBlock'!=_0x33d480['commandName'])return;const _0xccfb7c=_0x33d480['commandParams'][0x0]['language'],_0x562cdc=_0x186492(_0x48cbe3['find'](_0x44f8eb=>_0x44f8eb['language']===_0xccfb7c)['label'])['toLowerCase']();return _0x33d480['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x417f8d,'*Set\x20format:*\x20%0',c(_0x417f8d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x562cdc+')')}:{'type':'format','content':c(_0x417f8d,'*Remove\x20format:*\x20%0',c(_0x417f8d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xbb958c){return'codeBlock'==_0xbb958c['name'];}class q extends _0x59f721{['afterInit'](){const _0x51268f=this['editor'];if(!_0x51268f['plugins']['has']('CommentsEditing'))return;_0x51268f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4352f4,_0x1871f9,_0x312a24){const _0x1bc901=[];for(const _0x55ab4f of _0x1871f9['getItems']())_0x55ab4f['hasAttribute'](_0x4352f4)&&_0x1bc901['push'](_0x312a24['createRangeOn'](_0x55ab4f));return _0x1bc901;}function Fe(_0xf925e,_0x5d6534,{showActiveMarker:_0xffd2c0=!0x0}={}){const _0x5c6ad0=_0xf925e['plugins']['get']('TrackChangesEditing');return(_0x3a8d73,_0x18647a,_0x4dbcad)=>{if(!_0x4dbcad['consumable']['test'](_0x18647a['markerRange'],_0x3a8d73['name']))return;const _0x4ea822=_0x18647a['markerRange']['getWalker'](),_0x44acf2=_0x18647a['markerRange']['start'],_0x48b9e8=_0xf925e['model']['schema'];let _0x3cca2d=null,_0x20f2c2=null,_0x393bd2=!0x1,_0x59a13e=!0x1;for(const _0x2e2d60 of _0x4ea822){const _0x550101=_0x2e2d60['item'];_0x393bd2=_0x393bd2||_0x48b9e8['isContent'](_0x550101);const _0x342238=_0x4dbcad['mapper']['toViewElement'](_0x550101);if(_0x342238&&_0x342238['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e2d60['type']&&(_0x48b9e8['isBlock'](_0x550101)&&!_0x48b9e8['isLimit'](_0x550101)&&(_0x550101['nextSibling']||_0x44acf2['isAtEnd']?_0x3cca2d&&_0x3cca2d['parent']==_0x550101||(_0x3cca2d=_0x550101,_0x218cd9(_0x2e2d60['previousPosition']),_0x59a13e=!0x0):_0x20f2c2=_0x20f2c2||_0x2e2d60['previousPosition']));}function _0x218cd9(_0x1b79a6){const {id:_0x495101,authorId:_0x5521db}=_0x5c6ad0['_splitMarkerName'](_0x18647a['markerName']),_0x1e944c=_0x4dbcad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6534,'data-suggestion':_0x495101,'data-author-id':_0x5521db}),_0x345035=_0x4dbcad['mapper']['toViewPosition'](_0x1b79a6);_0xffd2c0&&_0x5c6ad0['activeMarkers']['includes'](_0x18647a['markerName'])&&_0x4dbcad['writer']['addClass']('ck-suggestion-marker--active',_0x1e944c),_0x4dbcad['writer']['insert'](_0x345035,_0x1e944c),_0x4dbcad['mapper']['bindElementToMarker'](_0x1e944c,_0x18647a['markerName']);}_0x393bd2||_0x59a13e||!_0x20f2c2||_0x218cd9(_0x20f2c2);};}class z extends _0x59f721{static get['requires'](){return[_0x23c0b1];}['init'](){const _0x307619=this['editor'],_0x26773e=_0x307619['plugins']['get']('TrackChangesEditing');_0x26773e['enableCommand']('delete');const _0x3c72b6=_0x307619['commands']['get']('deleteForward');_0x26773e['enableCommand']('deleteForward',(_0x49ccdf,_0x594aef={})=>{const _0x2594ee=_0x307619['model']['createSelection'](_0x307619['model']['document']['selection']);_0x2594ee['isCollapsed']&&_0x307619['model']['modifySelection'](_0x2594ee,{'direction':'forward','unit':_0x594aef['unit']});const _0x351a62=_0x2594ee['getFirstRange'](),_0xbc07a5=_0x39b5cf['fromRange'](_0x351a62);let _0x5907d4;_0x49ccdf(_0x594aef),_0x5907d4='$graveyard'==_0xbc07a5['root']['rootName']?_0x307619['model']['createRange'](_0x351a62['start']):_0x307619['model']['createRange'](_0xbc07a5['start'],_0xbc07a5['end']),_0xbc07a5['detach'](),_0x307619['model']['enqueueChange'](_0x3c72b6['buffer']['batch'],_0x3fced1=>{_0x3c72b6['buffer']['lock'](),_0x3fced1['setSelection'](_0x3fced1['createRange'](_0x5907d4['end'])),_0x3c72b6['buffer']['unlock']();});}),_0x307619['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x307619,'merge'),{'priority':'high'}),_0x307619['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23bac0,_0x20e320,_0x50e89b)=>{_0x50e89b['options']['showSuggestionHighlights']&&Fe(_0x307619,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23bac0,_0x20e320,_0x50e89b);},{'priority':'high'}),_0x307619['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xba23e9,_0x44dbe7,_0x2fd2f7)=>{const _0x503e7a=_0x2fd2f7['mapper']['markerNameToElements'](_0x44dbe7['markerName']);if(_0x503e7a){for(const _0x2ab185 of _0x503e7a)_0x2ab185['is']('uiElement')&&(_0x2fd2f7['mapper']['unbindElementFromMarkerName'](_0x2ab185,_0x44dbe7['markerName']),_0x2fd2f7['writer']['remove'](_0x2ab185));}},{'priority':'high'});}}class W extends _0x59f721{['afterInit'](){const _0x45a0b1=this['editor'];if(!_0x45a0b1['plugins']['has']('ListEditing'))return;const _0x407fa1=_0x45a0b1['locale'],_0x3132ad=_0x45a0b1['plugins']['get']('TrackChangesEditing'),_0x1e0cf8=_0x45a0b1['plugins']['has']('TodoListEditing'),_0x34032c=!!_0x45a0b1['config']['get']('list.multiBlock');function _0x390975(_0x3e13f7){return{'type':'format','content':''+c(_0x407fa1,'*Set\x20format:*\x20%0',_0x3e13f7)};}function _0x801a15(_0x3bf756){return{'type':'format','content':''+c(_0x407fa1,'*Remove\x20format:*\x20%0',_0x3bf756)};}_0x3132ad['enableDefaultAttributesIntegration']('numberedList'),_0x3132ad['enableDefaultAttributesIntegration']('bulletedList'),_0x3132ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x3132ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x3132ad['enableDefaultAttributesIntegration']('indentList'),_0x3132ad['enableDefaultAttributesIntegration']('outdentList'),_0x3132ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3132ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3132ad['registerBlockAttribute']('listItemId'),_0x3132ad['registerBlockAttribute']('listType'),_0x3132ad['registerBlockAttribute']('listIndent'),_0x34032c&&(_0x3132ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3132ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e0cf8&&(_0x3132ad['enableDefaultAttributesIntegration']('todoList'),_0x3132ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x3132ad['registerBlockAttribute']('todoListChecked'),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x165e8b=>{const {data:_0x45d0a8}=_0x165e8b;if(_0x45d0a8&&'todoListChecked'==_0x45d0a8['key'])return{'type':'format','content':_0x45d0a8['newValue']?c(_0x407fa1,'*Check\x20item*'):c(_0x407fa1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x19891e=>{if(_0x19891e['batch']['isUndo'])return!0x1;let _0x1edb6d=!0x1;const _0x56dc72=_0x3132ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x353c48=>'todoListChecked'===_0x3132ad['_getAttributeKey'](_0x353c48));for(const _0x425e55 of _0x56dc72){'todo'!=_0x425e55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3132ad['_findSuggestions'](_0x425e55['getFirstRange'](),'attribute')['find'](_0x291135=>'listType'===_0x3132ad['_getAttributeKey'](_0x291135['suggestion']))||(_0x19891e['removeMarker'](_0x425e55['getFirstMarker']()),_0x1edb6d=!0x0));}return _0x1edb6d;})),_0x3132ad['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x407fa1,'FORMAT_INDENT'));const _0x4c3e5f={'type':'format','content':''};_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x2843df=>{const {data:_0x2427dc}=_0x2843df;if(!_0x2427dc||'listType'!=_0x2427dc['key'])return;let _0x21754b=_0x2843df['head'];for(;_0x21754b;){if(_0x21754b['data']&&(('listStyle'==_0x21754b['data']['key']||'listMarkerStyle'==_0x21754b['data']['key'])&&(_0x21754b['data']['newValue']&&'default'!=_0x21754b['data']['newValue']||'default'!=_0x21754b['data']['oldValue']&&!_0x2427dc['newValue'])||!_0x34032c&&_0x21754b['data']['key']==u))return _0x4c3e5f;_0x21754b=_0x21754b['next'];}if(null==_0x2427dc['newValue'])switch(_0x2427dc['oldValue']){case'bulleted':return _0x801a15(c(_0x407fa1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x801a15(c(_0x407fa1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x801a15(c(_0x407fa1,'ELEMENT_TODO_LIST'));}switch(_0x2427dc['newValue']){case'bulleted':return _0x390975(c(_0x407fa1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x390975(c(_0x407fa1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x390975(c(_0x407fa1,'ELEMENT_TODO_LIST'));}}),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x35da46=>{const {data:_0x1205b1}=_0x35da46;if(_0x1205b1&&'listIndent'==_0x1205b1['key'])return null==_0x1205b1['newValue']||null==_0x1205b1['oldValue']&&0x0==_0x1205b1['newValue']?_0x4c3e5f:void 0x0;}),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x2123e2=>{if('attribute'!=_0x2123e2['type'])return;const {data:_0x219e4c}=_0x2123e2;if(!_0x219e4c||'listItemId'!=_0x219e4c['key'])return;const _0x49ff2a=Te(_0x2123e2);return'newValue'==_0x49ff2a?{'type':'format','content':c(_0x407fa1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49ff2a?{'type':'format','content':c(_0x407fa1,'*Split:*\x20list\x20item')}:_0x4c3e5f;}),_0x45a0b1['model']['document']['registerPostFixer'](_0x4d5b5f=>this['listItemIdFixer'](_0x4d5b5f)),_0x45a0b1['model']['document']['registerPostFixer'](_0x37e48d=>this['noTrackChangesFixer'](_0x37e48d)),_0x45a0b1['model']['document']['on']('change:data',(_0x424123,_0x135e29)=>{if(_0x135e29['isUndo']||!_0x135e29['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xf65404){if(_0xf65404['batch']['isUndo']||!_0xf65404['batch']['isLocal'])return!0x1;let _0x55f007=!0x1;const _0x310c23=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x233ee7=>_0x233ee7['data']&&'listItemId'==_0x233ee7['data']['key'])['filter'](_0x4a4a72=>_0x4a4a72['data']['newValue']&&_0x4a4a72['data']['oldValue']);for(const _0x692eeb of _0x310c23)Te(_0x692eeb)||(_0xf65404['removeMarker'](_0x692eeb['getFirstMarker']()),_0x55f007=!0x0);return _0x55f007;}['noTrackChangesFixer'](_0x28e4cf){if(_0x28e4cf['batch']['isUndo']||!_0x28e4cf['batch']['isLocal'])return!0x1;const _0x232c51=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x232c51['trackChangesCommand']['value'])return!0x1;let _0x5c4768=!0x1;const _0x138130=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x50f7f6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x197a6c=>'attribute'==_0x197a6c['type'])['filter'](_0x2a88a7=>_0x138130['includes'](_0x2a88a7['attributeKey']));if(0x0==_0x50f7f6['length'])return _0x5c4768;for(const _0x4a53dd of _0x50f7f6){const _0x3a49b0=_0x232c51['_findSuggestions'](_0x4a53dd['range'],'attribute')['filter'](_0x31df32=>!_0x31df32['meta']['isNextTo'])['map'](_0x56b079=>_0x56b079['suggestion'])['filter'](_0x3aef14=>{const _0x1c8761=_0x232c51['_getAttributeKey'](_0x3aef14);return _0x138130['includes'](_0x1c8761);});if(_0x3a49b0['length']){for(const _0x4b2038 of _0x3a49b0)_0x28e4cf['removeMarker'](_0x4b2038['getFirstMarker']());_0x5c4768=!0x0;}}return _0x5c4768;}['assureChains'](){const _0xcf3465=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30dca5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c0ace;const _0x38bfed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59d069=>{if(_0x59d069['data']['oldRange']||!_0x59d069['data']['newRange'])return null;if(!_0x59d069['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36fb8f}=_0xcf3465['_splitMarkerName'](_0x59d069['name']);if(!_0xcf3465['hasSuggestion'](_0x36fb8f))return null;const _0x507f4e=_0xcf3465['getSuggestion'](_0x36fb8f);return _0x30dca5['includes'](_0x507f4e['data']['key']);})['map'](_0xd4c9fb=>{const {id:_0xc6dedc}=_0xcf3465['_splitMarkerName'](_0xd4c9fb['name']),_0x3ab8dd=_0xcf3465['getSuggestion'](_0xc6dedc);return _0x2c0ace=_0x3ab8dd['attributes']['groupId'],_0x3ab8dd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x38bfed['size'])return;const _0x47b4a0=_0xcf3465['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33136f=>'attribute'==_0x33136f['type']&&_0x33136f['data']&&_0x30dca5['includes'](_0x33136f['data']['key'])&&_0x33136f['attributes']['groupId']!=_0x2c0ace)['map'](_0x7d6338=>({'listItem':_0x7d6338['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7d6338['attributes']['groupId']})),_0x38579c=new Set();for(const {groupId:_0x504ab2,listItem:_0x4ba9f3}of _0x47b4a0)_0x38bfed['has'](_0x4ba9f3)&&_0x38579c['add'](_0x504ab2);for(const _0xefbd8e of _0xcf3465['getSuggestions']())_0x38579c['has'](_0xefbd8e['attributes']['groupId'])&&_0xefbd8e['setAttribute']('groupId',_0x2c0ace);}['_supportLegacySuggestions'](){const _0x338005=this['editor'],_0x3057fd=_0x338005['locale'],_0x54cebb=_0x338005['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x54cebb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x6434dc,_0x28e2e3){const _0x30e3d0=[];for(let _0x577344 of _0x6434dc)_0x577344['start']['nodeAfter']===_0x577344['end']['parent']&&(_0x577344=_0x338005['model']['createRange'](_0x338005['model']['createPositionAt'](_0x577344['start']['nodeAfter'],0x0))),_0x30e3d0['push'](_0x577344);_0x338005['model']['change'](_0x5a7c9f=>{const _0x4073cf=_0x338005['model']['document']['selection'],_0x370211=Array['from'](_0x4073cf['getRanges']())['map'](_0x153121=>_0x39b5cf['fromRange'](_0x153121));_0x5a7c9f['setSelection'](_0x30e3d0),_0x338005['commands']['get'](_0x28e2e3['commandName'])['refresh'](),_0x28e2e3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x338005['execute'](_0x28e2e3['commandName'],..._0x28e2e3['commandParams']),_0x5a7c9f['setSelection'](_0x370211);for(const _0x5c48cc of _0x370211)_0x5c48cc['detach']();});}),_0x54cebb['descriptionFactory']['registerElementLabel'](function(_0x3593a7){const _0x351d13=!_0x338005['model']['schema']['isObject'](_0x3593a7),_0x3fb9a1=_0x3593a7['previousSibling'],_0x503038=_0x3593a7['nextSibling'],_0x5f2e16=_0x3593a7['getAttribute']('listItemId'),_0x52bcc0=!_0x3fb9a1||_0x3fb9a1['getAttribute']('listItemId')!==_0x5f2e16,_0x16268f=!_0x503038||_0x503038['getAttribute']('listItemId')!==_0x5f2e16;return _0x351d13&&Boolean(_0x5f2e16)&&_0x52bcc0&&_0x16268f;},_0x5cf4bf=>c(_0x3057fd,'ELEMENT_LIST_ITEM',_0x5cf4bf));}['_registerLegacyDescription'](){const _0x26654e=this['editor'],_0x13a465=_0x26654e['locale'];function _0x18548e(_0x4187ac){const _0x2b0e74=_0x26654e['commands']['get']('bulletedList')['value'],_0x5a61f1=_0x26654e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4187ac?_0x2b0e74:_0x5a61f1;}_0x26654e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45adb6){if('formatBlock'!=_0x45adb6['type'])return;const {data:_0x38f681}=_0x45adb6;if(!_0x38f681)return;let _0x1d3df0,_0x1f3e7a,_0x5cf268,_0x4355ea;switch(_0x38f681['commandName']){case'bulletedList':_0x5cf268=_0x38f681['commandParams'][0x0]['forceValue'],_0x4355ea=_0x18548e(_0x38f681['commandName']),_0x1d3df0=_0x5cf268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4355ea&&_0x26654e['config']['get']('list.multiBlock')||(_0x1d3df0='*Change\x20to:*\x20%0'),_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5cf268=_0x38f681['commandParams'][0x0]['forceValue'],_0x4355ea=_0x18548e(_0x38f681['commandName']),_0x1d3df0=_0x5cf268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4355ea&&_0x26654e['config']['get']('list.multiBlock')||(_0x1d3df0='*Change\x20to:*\x20%0'),_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1d3df0='*Indent:*\x20%0',_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1d3df0=function(_0x4b62c8){const _0x2aa491=_0x4b62c8['getFirstRange']();let _0xf895ab=_0x2aa491['start']['nodeAfter'];for(;_0xf895ab&&_0x2aa491['containsItem'](_0xf895ab);){if(_0xf895ab['getAttribute']('listIndent')>0x0)return!0x1;_0xf895ab=_0xf895ab['nextSibling'];}return!0x0;}(_0x45adb6)?c(_0x13a465,'*Format:*\x20remove\x20from\x20%0',c(_0x13a465,function(_0x5138c5){return'ELEMENT_'+_0x5138c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45adb6))):c(_0x13a465,'*Outdent:*\x20%0',c(_0x13a465,'ELEMENT_LIST_ITEM')),_0x1f3e7a={'type':'format','content':_0x1d3df0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x38f681['multipleBlocks']&&(_0x1d3df0='*Merge:*\x20%0',_0x1f3e7a={'type':'deletion','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_LIST_ITEM'))});}return _0x1f3e7a;});}}function Te(_0x3861d9){let _0xc76f78=_0x3861d9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc76f78;){const _0x5a6755=_0xc76f78['getAttribute']('listItemId');if(!_0x5a6755)return!0x1;if(_0x5a6755==_0x3861d9['data']['newValue'])return'newValue';if(_0x5a6755==_0x3861d9['data']['oldValue'])return'oldValue';_0xc76f78=_0xc76f78['previousSibling'];}return!0x1;}class Se extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x28ac9f=this['editor']['config']['get']('list.properties'),_0x4fed93=this['editor']['plugins']['get']('TrackChangesEditing');_0x28ac9f['styles']&&(_0x4fed93['enableDefaultAttributesIntegration']('listStyle'),_0x4fed93['registerBlockAttribute']('listStyle')),_0x28ac9f['reversed']&&(_0x4fed93['enableDefaultAttributesIntegration']('listReversed'),_0x4fed93['registerBlockAttribute']('listReversed')),_0x28ac9f['startIndex']&&(_0x4fed93['enableDefaultAttributesIntegration']('listStart'),_0x4fed93['registerBlockAttribute']('listStart'));const _0x5ba36a={'type':'format','content':''};_0x4fed93['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3e4a8b=this['editor']['locale'];_0x4fed93['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3e4a8b,'FORMAT_LIST_REVERSED')),_0x4fed93['descriptionFactory']['registerDescriptionCallback'](_0x452388=>{const {data:_0x286b4f}=_0x452388;if(_0x286b4f&&'listReversed'==_0x286b4f['key'])return null==_0x286b4f['newValue']||0x0==_0x286b4f['newValue']&&null==_0x286b4f['oldValue']?_0x5ba36a:void 0x0;}),_0x4fed93['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3e4a8b,'FORMAT_LIST_START')),_0x4fed93['descriptionFactory']['registerDescriptionCallback'](_0x4b885e=>{const {data:_0x93867a}=_0x4b885e;if(_0x93867a&&'listStart'==_0x93867a['key'])return null==_0x93867a['newValue']||0x1==_0x93867a['newValue']&&null==_0x93867a['oldValue']?_0x5ba36a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1fe5c7=>{if(_0x1fe5c7['batch']['isUndo'])return!0x1;let _0x537a9e=!0x1;const _0x523ef7=_0x4fed93['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a7a3e=>{const _0x399dc7=_0x4fed93['_getAttributeKey'](_0x5a7a3e);return'listStart'==_0x399dc7||'listReversed'==_0x399dc7;});for(const _0x301824 of _0x523ef7){const _0x646516=_0x301824['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x646516||'customNumbered'==_0x646516)continue;_0x4fed93['_findSuggestions'](_0x301824['getFirstRange'](),'attribute')['find'](_0x275b54=>'listType'==_0x4fed93['_getAttributeKey'](_0x275b54['suggestion']))||(_0x1fe5c7['removeMarker'](_0x301824['getFirstMarker']()),_0x537a9e=!0x0);}return _0x537a9e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b89a3){const _0x20ebe2=this['editor']['locale'],{data:_0xf31363}=_0x2b89a3,_0x225730={'type':'format','content':''};if(!_0xf31363||'listStyle'!=_0xf31363['key'])return;if(!_0xf31363['oldValue'])return'default'==_0xf31363['newValue']?_0x225730:{'type':'format','content':''+c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['newValue'])))};if(!_0xf31363['newValue']){if('default'==_0xf31363['oldValue'])return _0x225730;let _0x1127eb=_0x2b89a3['head'];for(;_0x1127eb;){if(_0x1127eb['data']&&'listType'==_0x1127eb['data']['key']&&_0x1127eb['data']['newValue'])return _0x225730;_0x1127eb=_0x1127eb['next'];}return{'type':'format','content':''+c(_0x20ebe2,'*Remove\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['oldValue'])))};}if('default'!=_0xf31363['newValue'])return{'type':'format','content':''+c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['newValue'])))};let _0x7f0ed5=_0x2b89a3['head'];for(;_0x7f0ed5;){if(_0x7f0ed5['data']&&'listType'==_0x7f0ed5['data']['key']&&_0x7f0ed5['data']['newValue']&&_0x7f0ed5['data']['oldValue'])return _0x225730;_0x7f0ed5=_0x7f0ed5['next'];}return{'type':'format','content':c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,'ELEMENT_'+_0x2b89a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c90bd=this['editor'],_0x6a14ca=_0x1c90bd['locale'];_0x1c90bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ddf91=>{if('formatBlock'!=_0x2ddf91['type'])return;const {data:_0x332285}=_0x2ddf91;if(!_0x332285)return;let _0x3cd01a,_0x49c733;switch(_0x332285['commandName']){case'listStyle':_0x3cd01a='*Change\x20to:*\x20%0',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a,c(_0x6a14ca,this['_getTranslationKeyForListStyle'](_0x332285['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cd01a=_0x332285['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a)};break;case'listStart':_0x3cd01a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a,_0x332285['commandParams'][0x0]['startIndex'])};}return _0x49c733;});}['_getTranslationKeyForListStyle'](_0x454207){return'ELEMENT_'+function(_0x4452f8){if(_e['includes'](_0x4452f8))return'bulleted';if(Re['includes'](_0x4452f8))return'numbered';return null;}(_0x454207)['toUpperCase']()+'_LIST_'+_0x454207['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x59f721{['afterInit'](){const _0x235deb=this['editor'];_0x235deb['commands']['get']('emoji')&&_0x235deb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x59f721{static get['requires'](){return[_0x783952];}['init'](){const _0x2bc699=this['editor'],_0x31dcb3=_0x2bc699['plugins']['get']('TrackChangesEditing'),_0x327031=_0x2bc699['commands']['get']('enter');_0x31dcb3['enableCommand']('enter',()=>{_0x2bc699['model']['change'](_0x415fbb=>{const _0x114b13=_0x2bc699['model']['document']['selection'],_0x3fe916=_0x114b13['getFirstPosition'](),_0xb066e3=_0x39b5cf['fromRange'](_0x114b13['getFirstRange']());if(_0x327031['enterBlock'](_0x415fbb)){const _0x4dc52a=_0x2bc699['model']['createPositionAt'](_0x3fe916['parent']['nextSibling'],0x0),_0xf088b7=_0x415fbb['createRange'](_0x3fe916,_0x4dc52a);_0x31dcb3['markInsertion'](_0xf088b7);}else _0x415fbb['setSelection'](_0x415fbb['createRange'](_0xb066e3['end']));_0xb066e3['detach'](),_0x327031['fire']('afterExecute',{'writer':_0x415fbb});});}),_0x2bc699['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2bc699,'split'),{'priority':'high'}),_0x2bc699['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3497e1,_0x17bc6a,_0x27dd13)=>{const _0x5218a0=_0x27dd13['mapper']['markerNameToElements'](_0x17bc6a['markerName']);if(_0x5218a0){for(const _0x202bc7 of _0x5218a0)_0x202bc7['hasClass']('ck-suggestion-marker-split')&&(_0x27dd13['mapper']['unbindElementFromMarkerName'](_0x202bc7,_0x17bc6a['markerName']),_0x27dd13['writer']['remove'](_0x202bc7));}},{'priority':'high'}),_0x2bc699['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d2ab0,_0x7667d,_0x4fc4c9)=>{_0x4fc4c9['options']['showSuggestionHighlights']&&Fe(_0x2bc699,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d2ab0,_0x7667d,_0x4fc4c9);},{'priority':'high'});}}class Z extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5713f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5713f8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5713f8['enableCommand']('findNext'),_0x5713f8['enableCommand']('findPrevious'),_0x5713f8['enableCommand']('replace'),_0x5713f8['enableCommand']('replaceAll');}['handleFindCommand'](_0x15b8f5,_0x1b4946,_0x4a9cc8={}){const _0x514476=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15b8f5(_0x185fca=>{let _0x19dddb=('string'==typeof _0x1b4946?_0x514476['findByTextCallback'](_0x1b4946,_0x4a9cc8):_0x1b4946)(_0x185fca);Array['isArray'](_0x19dddb)&&(_0x19dddb={'results':_0x19dddb,'searchText':'string'==typeof _0x1b4946?_0x1b4946:''});const _0x5ac055=_0x19dddb['results']['filter'](_0x5164b0=>!0x1===this['_isInDeletionRange'](_0x5164b0,_0x185fca['item']));return{..._0x19dddb,'results':_0x5ac055};},_0x4a9cc8);}['_isInDeletionRange'](_0x90091b,_0x1708dc){const _0x5de0c7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1708dc,_0x90091b['start']),this['editor']['model']['createPositionAt'](_0x1708dc,_0x90091b['end']));for(const _0x3144ae of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5de0c7['getIntersection'](_0x3144ae['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x59f721{['afterInit'](){const _0x10f445=this['editor']['locale'],_0x5eb8c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55ea37,commandName:_0x50038f}of ro)this['editor']['plugins']['has'](_0x55ea37)&&(_0x5eb8c7['enableDefaultAttributesIntegration'](_0x50038f),_0x5eb8c7['registerInlineAttribute'](_0x50038f));_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x10f445,'FORMAT_FONT_SIZE')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x10f445,'FORMAT_FONT_FAMILY')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x10f445,'FORMAT_FONT_COLOR')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x10f445,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36dacf=this['editor'],_0x2771bf=_0x36dacf['locale'];_0x36dacf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf595d=>{const _0xf086a6=_0x2771bf['t'];if('formatInline'!=_0xf595d['type'])return;const {data:_0x3fa51c}=_0xf595d;if(null!=_0x3fa51c){if('fontSize'==_0x3fa51c['commandName']){const _0x13df48=_0x3fa51c['commandParams'][0x0]['value'];if(_0x13df48){const _0x4db9a9=_0xf086a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x56c2ec=>_0x56c2ec['model']==_0x13df48)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20size:*\x20%0',_0x4db9a9)};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3fa51c['commandName']){const _0x3b2347=_0x3fa51c['commandParams'][0x0]['value'];return _0x3b2347?{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20family:*\x20%0',_0x3b2347)}:{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3fa51c['commandName']){const _0x701419=_0x3fa51c['commandParams'][0x0]['value'];if(_0x701419){const _0x502c6b=_0x1a330b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x120477=>_0x120477['model']==_0x701419);let _0x7e52f5=_0x701419,_0x2d3248='';return _0x502c6b&&(_0x7e52f5=_0x502c6b['label'],_0x2d3248=_0xf086a6(_0x7e52f5)['toLowerCase']()),{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20color:*\x20%0',_0x2d3248)['trim'](),'color':{'value':_0x701419,'title':_0x2d3248||_0x7e52f5}};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3fa51c['commandName']){const _0x4499fb=_0x3fa51c['commandParams'][0x0]['value'];if(_0x4499fb){const _0x97e74a=_0x1a330b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ba501=>_0x2ba501['model']==_0x4499fb);let _0x4a0883=_0x4499fb,_0x3a840b='';return _0x97e74a&&(_0x4a0883=_0x97e74a['label'],_0x3a840b=_0xf086a6(_0x4a0883)['toLowerCase']()),{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a840b)['trim'](),'color':{'value':_0x4499fb,'title':_0x3a840b||_0x4a0883}};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x59f721{['afterInit'](){const _0x30677c=this['editor'],_0xd13b7f=_0x30677c['plugins']['get']('TrackChangesEditing'),_0x34c7ae=_0x30677c['commands']['get']('copyFormat'),_0xf7eb51=_0x30677c['commands']['get']('pasteFormat');_0x34c7ae&&_0xf7eb51&&(_0xd13b7f['enableDefaultAttributesIntegration']('pasteFormat'),_0xd13b7f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x22ff08=this['editor'],_0x33af43=_0x22ff08['locale'];_0x22ff08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8260=>{if('formatBlock'!=_0x1d8260['type']&&'formatInline'!=_0x1d8260['type'])return;const {data:_0x58be79}=_0x1d8260;if(_0x58be79&&'pasteFormat'===_0x58be79['commandName']){const _0x58abe7=[],_0x6418b4=_0x58be79['commandParams'][0x0];for(const [_0x178086,_0x4ec784]of Object['entries'](_0x6418b4))_0x58abe7['push'](so(_0x22ff08,_0x178086,_0x4ec784));return _0x58abe7['length']?{'type':'format','content':c(_0x33af43,'*Set\x20format\x20to:*\x20%0',_0x58abe7['join'](',\x20'))}:{'type':'format','content':c(_0x33af43,'*Remove\x20all\x20formatting*')};}});}}function so(_0x139675,_0xb132a6,_0x2bdfdd){const _0x580a71=_0x139675['locale']['t'],_0x3e194c=_0xb132a6['split'](/(?=[A-Z])/)['join']('\x20'),_0x1ea0c4=_0x580a71(_0x3e194c['charAt'](0x0)['toUpperCase']()+_0x3e194c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2bdfdd)return _0x1ea0c4;if('fontColor'===_0xb132a6||'fontBackgroundColor'===_0xb132a6){const _0x202f59=_0x1a330b(_0x139675['config']['get']('fontColor.colors'))['find'](_0x478c0c=>_0x478c0c['model']==_0x2bdfdd);return _0x1ea0c4+'\x20('+(_0x202f59?_0x580a71(_0x202f59['label'])['toLowerCase']():_0x2bdfdd)+')';}if('fontSize'===_0xb132a6&&isNaN(parseFloat(_0x2bdfdd))){const _0x38cd73=_0x139675['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x139675['config']['get']('fontSize.options'))['find'](_0x5f4b84=>_0x5f4b84['model']==_0x2bdfdd);return _0x1ea0c4+'\x20('+(_0x38cd73?_0x580a71(_0x38cd73['title'])['toLowerCase']():_0x2bdfdd)+')';}return _0x1ea0c4+'\x20('+_0x2bdfdd+')';}class et extends _0x59f721{['_headingOptions'];['afterInit'](){const _0x2677e2=this['editor'];if(!_0x2677e2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2677e2['config']['get']('heading.options');const _0x4f5878=_0x2677e2['locale'],_0x354f85=_0x2677e2['plugins']['get']('TrackChangesEditing');_0x354f85['enableDefaultAttributesIntegration']('heading');for(const _0x35ba4b of this['_headingOptions'])'paragraph'!=_0x35ba4b['model']&&_0x354f85['descriptionFactory']['registerElementLabel'](_0x35ba4b['model'],_0x27a012=>{const _0x28adc5=this['_getHeadingLevel'](_0x35ba4b['model']);return null!==_0x28adc5?_0x23ec40(_0x27a012,_0x28adc5):_0x2fec83(_0x27a012,_0x35ba4b['title']);});function _0x23ec40(_0x514a8a,_0xb03c79){return c(_0x4f5878,'ELEMENT_HEADING',[_0x514a8a,_0xb03c79]);}function _0x2fec83(_0x24eb0b,_0x5c5ef2){return c(_0x4f5878,'ELEMENT_HEADING_CUSTOM',[_0x24eb0b,_0x5c5ef2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532b92=this['editor'],_0x23b06a=_0x532b92['locale'];function _0x230a8e(_0x4772da,_0xcfb687){return c(_0x23b06a,'ELEMENT_HEADING_CUSTOM',[_0x4772da,_0xcfb687]);}_0x532b92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f42ac=>{if('formatBlock'!=_0x4f42ac['type'])return;const {data:_0x265354}=_0x4f42ac;if(_0x265354&&'heading'==_0x265354['commandName']){const _0xcaf1ec=_0x265354['commandParams'][0x0]['value'],_0x398e57=this['_getHeadingLevel'](_0xcaf1ec);if(null!==_0x398e57)return{'type':'format','content':c(_0x23b06a,'*Change\x20to:*\x20%0',(_0x1b2cd9=0x1,_0x5c20f5=_0x398e57,c(_0x23b06a,'ELEMENT_HEADING',[_0x1b2cd9,_0x5c20f5])))};const _0x33be83=this['_headingOptions']['find'](_0x1cb0d4=>_0x1cb0d4['model']===_0xcaf1ec)['title'];return{'type':'format','content':c(_0x23b06a,'*Change\x20to:*\x20%0',_0x230a8e(0x1,_0x33be83))};}var _0x1b2cd9,_0x5c20f5;});}['_getHeadingLevel'](_0x164605){const _0x218fba=_0x164605['match'](/^heading(\d+)/);if(_0x218fba)return _0x218fba[0x1];const _0x281c97=this['_headingOptions']?.['find'](_0x14abca=>_0x14abca['model']==_0x164605);if(_0x281c97&&_0x281c97['view']){const _0x1f5320=_0x281c97['view'],_0x3354e4=(_0x1f5320['name']??_0x1f5320)['match'](/^h(\d+)/);if(_0x3354e4)return _0x3354e4[0x1];}return null;}}class nt extends _0x59f721{['afterInit'](){const _0x3ee703=this['editor'];if(!_0x3ee703['plugins']['has']('HighlightEditing'))return;const _0x54f928=_0x3ee703['plugins']['get']('TrackChangesEditing'),_0x11ffb4=_0x3ee703['locale'];_0x54f928['enableDefaultAttributesIntegration']('highlight'),_0x54f928['registerInlineAttribute']('highlight'),_0x54f928['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x11ffb4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x256516=this['editor'],_0x35a23b=_0x256516['locale'];_0x256516['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ede8f=>{if('formatInline'!=_0x4ede8f['type'])return;const {data:_0x516b01}=_0x4ede8f;if(_0x516b01&&'highlight'==_0x516b01['commandName']){const _0x56036a=_0x35a23b['t'],_0x3a3307=_0x516b01['commandParams'][0x0]['value'];if(_0x3a3307){const _0x189ee1=_0x256516['config']['get']('highlight.options')['find'](_0x30ae21=>_0x30ae21['model']==_0x3a3307),_0x1c811f=_0x56036a(_0x189ee1['title'])['toLowerCase']();return{'type':'format','content':c(_0x35a23b,'*Set\x20highlight:*\x20%0',_0x1c811f),'color':{'value':_0x189ee1['color'],'title':_0x189ee1['title']}};}return{'type':'format','content':c(_0x35a23b,'*Remove\x20highlight*',c(_0x35a23b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x59f721{['afterInit'](){const _0x135ee7=this['editor'];if(!_0x135ee7['plugins']['has']('HorizontalLineEditing'))return;_0x135ee7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x42aaeb=_0x135ee7['plugins']['get']('TrackChangesEditing'),_0x368bc6=_0x135ee7['locale'];_0x42aaeb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x52f971=>c(_0x368bc6,'ELEMENT_HORIZONTAL_LINE',_0x52f971)),_0x135ee7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a4c61,{writer:_0x42e0b3,options:_0x267799})=>{if(!_0x267799['showSuggestionHighlights'])return null;const _0x5409f8=_0x42e0b3['createContainerElement']('div'),_0x4b3ba1=_0x42e0b3['createEmptyElement']('hr');return _0x42e0b3['addClass']('ck-horizontal-line',_0x5409f8),_0x42e0b3['insert'](_0x42e0b3['createPositionAt'](_0x5409f8,0x0),_0x4b3ba1),_0x5409f8;},'converterPriority':'high'});}}class ot extends _0x59f721{['afterInit'](){const _0x4f9c64=this['editor'];if(!_0x4f9c64['plugins']['has']('HtmlEmbed'))return;const _0x4e90f3=_0x4f9c64['plugins']['get']('TrackChangesEditing'),_0xb06dc8=_0x4f9c64['locale'];_0x4e90f3['descriptionFactory']['registerElementLabel']('rawHtml',_0x582433=>c(_0xb06dc8,'ELEMENT_HTML_EMBED',_0x582433)),_0x4e90f3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e90f3['registerBlockAttribute']('value'),_0x4e90f3['descriptionFactory']['registerDescriptionCallback'](_0x25d988=>{if('attribute'!=_0x25d988['type'])return;const {data:_0x5f1f46}=_0x25d988;if(_0x5f1f46&&'value'==_0x5f1f46['key']&&_0x25d988['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f2863=c(_0xb06dc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xb06dc8,'*Change\x20%0\x20content*',_0x5f2863)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4b93=this['editor'],_0x39e3ca=_0x4a4b93['locale'];_0x4a4b93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1363=>{if('formatBlock'!=_0x4a1363['type'])return;const {data:_0x502eb4}=_0x4a1363;if(_0x502eb4&&'htmlEmbed'==_0x502eb4['commandName']){const _0xe9efaf=c(_0x39e3ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x39e3ca,'*Change\x20%0\x20content*',_0xe9efaf)};}});}}class rt extends _0x59f721{['afterInit'](){const _0x4210ab=this['editor'];if(!_0x4210ab['plugins']['has']('ImageEditing'))return;const _0x467b61=_0x4210ab['plugins']['get']('TrackChangesEditing'),_0x3e7812=_0x4210ab['plugins']['get']('ImageUtils'),_0x4c0c9a=_0x4210ab['locale'];_0x467b61['enableCommand']('insertImage'),_0x467b61['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a5758=>c(_0x4c0c9a,'ELEMENT_IMAGE',_0x4a5758)),_0x467b61['descriptionFactory']['registerElementLabel']('imageInline',_0x5af181=>c(_0x4c0c9a,'ELEMENT_INLINE_IMAGE',_0x5af181)),_0x467b61['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4c0c9a,'ELEMENT_CAPTION')),_0x4210ab['plugins']['has']('ImageUploadEditing')&&_0x467b61['enableCommand']('uploadImage'),_0x4210ab['plugins']['has']('ImageBlockEditing')&&_0x4210ab['plugins']['has']('ImageInlineEditing')&&(_0x467b61['enableCommand']('imageTypeInline',(_0x34a5a8,_0x236cf7)=>{const _0x332817=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']);_0x4210ab['model']['change'](()=>{_0x467b61['markBlockFormat'](_0x332817,{'commandName':'imageTypeInline','commandParams':[_0x236cf7]},[],'convertBlockImageToInline');});}),_0x467b61['enableCommand']('imageTypeBlock',(_0x3b9b95,_0x3675ce)=>{_0x4210ab['model']['change'](_0x4ab643=>{let _0x3d63e5=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x4c05aa=_0x4ab643['createRangeOn'](_0x3d63e5);const _0x304f10=_0x3416fa['fromPosition'](_0x4c05aa['start'],'toPrevious'),_0x43bcba=_0x3416fa['fromPosition'](_0x4c05aa['end'],'toNext');_0x467b61['forceDefaultExecution'](()=>_0x3b9b95(_0x3675ce)),_0x3d63e5=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x4c05aa=_0x4ab643['createRangeOn'](_0x3d63e5);const _0x14f405=_0x4ab643['createRange'](_0x304f10,_0x43bcba);_0x304f10['detach'](),_0x43bcba['detach'](),_0x467b61['markBlockFormat'](_0x3d63e5,{'commandName':'imageTypeInline','commandParams':[_0x3675ce]},[],'convertInlineImageToBlock'),_0x14f405['start']['isBefore'](_0x4c05aa['start'])&&_0x467b61['markInsertion'](_0x4ab643['createRange'](_0x14f405['start'],_0x4c05aa['start']),'convertInlineImageToBlock'),_0x4c05aa['end']['isBefore'](_0x14f405['end'])&&_0x467b61['markInsertion'](_0x4ab643['createRange'](_0x4c05aa['end'],_0x14f405['end']),'convertInlineImageToBlock');});}),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x467b61['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x398b14])=>{const _0x59a086=_0x467b61['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f442e=_0x398b14['start'],_0x33f314=_0x398b14['end'];const _0x56a6ec=_0x4210ab['model']['schema']['getNearestSelectionRange'](_0x4f442e,'backward'),_0x45492f=_0x4210ab['model']['schema']['getNearestSelectionRange'](_0x33f314,'forward');_0x56a6ec['isCollapsed']&&(_0x4f442e=_0x56a6ec['start']),_0x45492f['isCollapsed']&&(_0x33f314=_0x45492f['end']),_0x59a086([_0x4210ab['model']['createRange'](_0x4f442e,_0x33f314)]);}),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1242ea),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1242ea)),_0x4210ab['plugins']['has']('ImageCaptionEditing')&&(_0x467b61['enableCommand']('toggleImageCaption',(_0x489dab,_0x3ef6a8)=>{const _0x1c3212=_0x4210ab['plugins']['get']('ImageCaptionUtils');let _0x165381=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x220a76=_0x1c3212['getCaptionFromImageModelElement'](_0x165381);_0x4210ab['model']['change'](()=>{if(_0x220a76)return void _0x467b61['markDeletion'](_0x4210ab['model']['createRangeOn'](_0x220a76));const _0x3302cd=_0x3e7812['isBlockImage'](_0x165381);_0x489dab(_0x3ef6a8),_0x165381=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x220a76=_0x1c3212['getCaptionFromImageModelElement'](_0x165381),_0x467b61['markInsertion'](_0x4210ab['model']['createRangeOn'](_0x220a76),_0x3302cd?null:'imageCaption');});}),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1242ea));const _0x2575f6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ce5b4(_0x4204f1,_0x1b7a61){const _0x20de69=_0x2575f6['findIndex'](({type:_0x1434b6,subType:_0x320f5a})=>_0x4204f1['type']==_0x1434b6&&_0x4204f1['subType']==_0x320f5a),_0x25427b=_0x2575f6['findIndex'](({type:_0xb60c03,subType:_0x424d03})=>_0x1b7a61['type']==_0xb60c03&&_0x1b7a61['subType']==_0x424d03);if(_0x20de69<0x0||_0x25427b<0x0)return!0x1;const _0x56157e=_0x4204f1['getFirstRange'](),_0xccf375=_0x1b7a61['getFirstRange']();if((0x0==_0x20de69||0x1==_0x20de69)&&0x2==_0x25427b&&_0x56157e['isIntersecting'](_0xccf375))return!0x0;if(0x2==_0x20de69&&0x3==_0x25427b){const _0x215aa6=_0x467b61['_findSuggestions'](_0x56157e,'insertion')['filter'](({suggestion:_0x20715f,meta:_0x5c8d0b})=>_0x5c8d0b['isOwn']&&'convertInlineImageToBlock'==_0x20715f['subType']);if(_0x215aa6['length']>0x1&&_0xccf375['end']['isEqual'](_0x56157e['start']))return!0x0;if(0x1==_0x215aa6['length']&&(_0x56157e['start']['isEqual'](_0xccf375['end'])||_0x56157e['end']['isEqual'](_0xccf375['start'])))return!0x0;}if(0x3==_0x20de69&&0x3==_0x25427b&&_0x56157e['start']['isBefore'](_0xccf375['start'])){const _0x5949b0=_0x56157e['end']['nodeAfter'],_0x395923=_0xccf375['start']['nodeBefore'];return _0x3e7812['isBlockImage'](_0x5949b0)&&_0x5949b0===_0x395923;}return!0x1;}function _0x1242ea(_0x11fdd8,_0x3cdf9c){return _0x2ce5b4(_0x11fdd8,_0x3cdf9c)?[_0x11fdd8,_0x3cdf9c]:_0x2ce5b4(_0x3cdf9c,_0x11fdd8)?[_0x3cdf9c,_0x11fdd8]:null;}_0x4210ab['plugins']['has']('ImageResize')&&(_0x467b61['enableDefaultAttributesIntegration']('resizeImage'),_0x467b61['registerBlockAttribute']('resizedWidth'),_0x467b61['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4c0c9a,'FORMAT_IMAGE_SIZE'))),_0x4210ab['plugins']['has']('ImageTextAlternativeEditing')&&(_0x467b61['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x467b61['registerBlockAttribute']('alt')),_0x4210ab['plugins']['has']('PictureEditing')&&(_0x467b61['registerBlockAttribute']('sources'),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x143b7d=>{if('attribute'!=_0x143b7d['type'])return;const {data:_0x17eb80}=_0x143b7d;return _0x17eb80&&'sources'==_0x17eb80['key']?{'type':'format','content':''}:void 0x0;})),_0x4210ab['plugins']['has']('ImageSizeAttributes')&&(_0x467b61['registerBlockAttribute']('width'),_0x467b61['registerBlockAttribute']('height'),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x5b15e7=>{if('attribute'!=_0x5b15e7['type'])return;const {data:_0x5a11dd}=_0x5b15e7;return!_0x5a11dd||'width'!=_0x5a11dd['key']&&'height'!=_0x5a11dd['key']?void 0x0:{'type':'format','content':''};})),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0xeb2c45=>{if(!!_0x2575f6['find'](({type:_0x41bb43,subType:_0x224c94})=>_0xeb2c45['type']==_0x41bb43&&_0xeb2c45['subType']==_0x224c94))return _0xeb2c45['previous']?{}:void 0x0;}),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x31781f=>{if('insertion'==_0x31781f['type']||'deletion'==_0x31781f['type']){const _0x1f399d=_0x31781f['getContainedElement']();if(_0x1f399d&&_0x1f399d['is']('element','caption'))return{'type':'insertion'==_0x31781f['type']?'addObject':'removeObject','element':_0x1f399d,'quantity':0x1};}}),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x1a0210=>'formatBlock'==_0x1a0210['type']&&'convertInlineImageToBlock'==_0x1a0210['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1a0210['type']&&'convertBlockImageToInline'==_0x1a0210['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0xf3a98f=>{if('attribute'!=_0xf3a98f['type'])return;const {data:_0x224cc1}=_0xf3a98f;if(!_0x224cc1||'alt'!=_0x224cc1['key'])return;const _0x125aa9=_0x224cc1['newValue'];return _0x125aa9?{'type':'format','content':c(_0x4c0c9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x125aa9+'\x22')}:{'type':'format','content':c(_0x4c0c9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84bb43=this['editor'],_0x23752a=_0x84bb43['locale'];_0x84bb43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268f52=>{if('formatBlock'!=_0x268f52['type']&&'formatInline'!=_0x268f52['type'])return;const {data:_0x47adfc}=_0x268f52;if(_0x47adfc){if('imageTextAlternative'==_0x47adfc['commandName']){const _0x534f0e=_0x47adfc['commandParams'][0x0]['newValue'];return _0x534f0e?{'type':'format','content':c(_0x23752a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x534f0e+'\x22')}:{'type':'format','content':c(_0x23752a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47adfc['commandName']){const _0x343714=_0x47adfc['commandParams'][0x0]['width'];return _0x343714?{'type':'format','content':c(_0x23752a,'*Set\x20image\x20width:*\x20%0',_0x343714)}:{'type':'format','content':c(_0x23752a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ecbbb=this['editor']['locale'],_0x3b8a46=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8a46['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b8a46['registerBlockAttribute']('src'),_0x3b8a46['descriptionFactory']['registerDescriptionCallback'](_0x158af8=>{if('attribute'!=_0x158af8['type'])return;const {data:_0x326942}=_0x158af8;return _0x326942&&'src'==_0x326942['key']?_0x326942['newValue']&&_0x326942['oldValue']?{'type':'format','content':c(_0x2ecbbb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45092d=this['editor']['plugins']['get']('TrackChangesEditing');_0x45092d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45092d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45092d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45092d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f463=this['editor'],_0x3d307f=_0x11f463['locale'];_0x11f463['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c4b4=>{if('formatBlock'!=_0x11c4b4['type']&&'formatInline'!=_0x11c4b4['type'])return;const {data:_0x141e1a}=_0x11c4b4;if(!_0x141e1a||'replaceImageSource'!=_0x141e1a['commandName'])return;return{'type':'format','content':c(_0x3d307f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x59f721{['afterInit'](){const _0x4f76c7=this['editor'];if(!_0x4f76c7['plugins']['has']('ImageStyleEditing'))return;const _0x47548e=_0x4f76c7['plugins']['get']('TrackChangesEditing'),_0xaef9f9=_0x4f76c7['plugins']['get']('ImageUtils'),_0x25ba81={};_0x47548e['enableCommand']('imageStyle',(_0xe28a69,_0x3ce0c3)=>{const _0x514d36=_0x4f76c7['plugins']['get']('Users')['me'],_0x4b4c98=_0x4f76c7['commands']['get']('imageStyle');let _0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),_0x34a67f=_0x4f76c7['model']['createRangeOn'](_0x67051c),_0x2e53d0=_0x4b4c98['value'];if(_0x2e53d0==_0x3ce0c3['value'])return;const _0xebf9d6={'commandName':'imageStyle','commandParams':[_0x3ce0c3],'formatGroupId':_0x5011f0()};_0x4f76c7['model']['change'](()=>{if(_0x47548e['getSuggestions']()['filter'](_0x4355f1=>_0x4355f1['isInContent']&&_0x514d36==_0x4355f1['author']&&('formatBlock'==_0x4355f1['type']||'formatInline'==_0x4355f1['type'])&&('imageStylePreApply'==_0x4355f1['subType']||'imageStylePostApply'==_0x4355f1['subType'])&&_0x4355f1['getFirstRange']()['isEqual'](_0x34a67f))['forEach'](_0xd73249=>_0x47548e['discardSuggestion'](_0xd73249['head'])),_0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),_0x34a67f=_0x4f76c7['model']['createRangeOn'](_0x67051c),_0x4b4c98['refresh'](),_0x4f76c7['commands']['get']('imageTypeInline')['refresh'](),_0x4f76c7['commands']['get']('imageTypeBlock')['refresh'](),_0x2e53d0=_0x4b4c98['value'],_0x2e53d0!=_0x3ce0c3['value'])return _0xaef9f9['isInlineImage'](_0x67051c)&&_0x4b4c98['shouldConvertImageType'](_0x3ce0c3['value'],_0x67051c)?(_0xe28a69({..._0x3ce0c3,'setImageSizes':!0x1}),_0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),void _0x47548e['markBlockFormat'](_0x67051c,{..._0xebf9d6,'commandReversedParams':[{'value':_0x2e53d0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xaef9f9['isBlockImage'](_0x67051c)?_0x47548e['markBlockFormat'](_0x67051c,_0xebf9d6,[],'imageStylePostApply'):_0x47548e['markInlineFormat'](_0x34a67f,_0xebf9d6,'imageStylePostApply'));});});for(const _0x1809e2 of _0x4f76c7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25ba81[_0x1809e2['name']]=_0x1809e2['title']['toLowerCase']();_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x379d5d])=>{_0xaef9f9['setImageNaturalSizeAttributes'](_0x379d5d['getContainedElement']());}),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x299fc0,_0x1a232e)=>{_0x47548e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x299fc0,{'commandName':_0x1a232e['commandName'],'commandParams':_0x1a232e['commandReversedParams']});}),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eb5b7,_0x465629){if(_0x21ca18(_0x5eb5b7,_0x465629))return[_0x5eb5b7,_0x465629];if(_0x21ca18(_0x465629,_0x5eb5b7))return[_0x465629,_0x5eb5b7];return null;});const _0x1d1214=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21ca18(_0x2920cb,_0x46e449){const _0x394c9b=_0x1d1214['findIndex'](({type:_0x34be28,subType:_0x476d8a})=>_0x2920cb['type']==_0x34be28&&_0x2920cb['subType']==_0x476d8a),_0x5f2de4=_0x1d1214['findIndex'](({type:_0xa6d338,subType:_0x4e696e})=>_0x46e449['type']==_0xa6d338&&_0x46e449['subType']==_0x4e696e);if(_0x394c9b<0x0||_0x5f2de4<0x0)return!0x1;const _0x1990d7=_0x2920cb['getFirstRange'](),_0x5c4a10=_0x46e449['getFirstRange']();if((0x0==_0x394c9b||0x1==_0x394c9b)&&0x2==_0x5f2de4&&_0x1990d7['isIntersecting'](_0x5c4a10))return!0x0;if(0x2==_0x394c9b&&0x3==_0x5f2de4){const _0x43900c=_0x47548e['_findSuggestions'](_0x1990d7,'insertion')['filter'](({suggestion:_0x22f400,meta:_0x227529})=>_0x227529['isOwn']&&'convertInlineImageToBlock'==_0x22f400['subType']);if(_0x43900c['length']>0x1&&_0x5c4a10['end']['isEqual'](_0x1990d7['start']))return!0x0;if(0x1==_0x43900c['length']&&(_0x1990d7['start']['isEqual'](_0x5c4a10['end'])||_0x1990d7['end']['isEqual'](_0x5c4a10['start'])))return!0x0;}if(0x3==_0x394c9b&&0x3==_0x5f2de4&&_0x1990d7['start']['isBefore'](_0x5c4a10['start'])){const _0x2a7bdb=_0x1990d7['end']['nodeAfter'],_0x4d13e1=_0x5c4a10['start']['nodeBefore'];return _0xaef9f9['isBlockImage'](_0x2a7bdb)&&_0x2a7bdb===_0x4d13e1;}return!0x1;}_0x4f76c7['model']['document']['registerPostFixer'](()=>{let _0xdf876d=!0x1;const _0x80f372=Array['from'](_0x4f76c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9c4fae,data:_0x114343}of _0x80f372){const {group:_0x304a1c,type:_0x3a1647,subType:_0x5618fa,id:_0x2911c7}=_0x47548e['_splitMarkerName'](_0x9c4fae);if('suggestion'==_0x304a1c&&_0x47548e['hasSuggestion'](_0x2911c7)){if('formatBlock'==_0x3a1647&&('imageStylePreApply'==_0x5618fa||'imageStylePostApply'==_0x5618fa)){const _0x4a770a=_0x47548e['getSuggestion'](_0x2911c7);if(_0x114343['newRange']){const _0x1df200=_0x4a770a['getFirstRange']()['getContainedElement']();if(_0xaef9f9['isBlockImage'](_0x1df200))continue;_0x47548e['discardSuggestion'](_0x4a770a),_0xdf876d=!0x0;}}if('insertion'==_0x3a1647&&'imageCaption'==_0x5618fa&&!_0x114343['newRange']){const _0x47abbf=_0x47548e['getSuggestion'](_0x2911c7);_0x47abbf['next']&&_0x47abbf['next']['isInContent']&&(_0x47548e['discardSuggestion'](_0x47abbf['next']),_0xdf876d=!0x0);}}}return _0xdf876d;}),this['_registerLegacyDescription'](_0x25ba81);}['_registerLegacyDescription'](_0x4c109b){const _0x507273=this['editor'],_0xaae8e7=_0x507273['locale'];_0x507273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8394ad=>{if('formatBlock'!=_0x8394ad['type']&&'formatInline'!=_0x8394ad['type'])return;const {data:_0x10c107}=_0x8394ad;if(!_0x10c107||'imageStyle'!=_0x10c107['commandName'])return;const _0x3e1fbc=_0x10c107['commandParams'][0x0]['value'];return _0x18d7eb('side'===_0x3e1fbc?c(_0xaae8e7,'FORMAT_SIDE_IMAGE'):_0x4c109b[_0x3e1fbc]||_0x3e1fbc);function _0x18d7eb(_0x456065){return{'type':'format','content':c(_0xaae8e7,'*Format:*\x20%0',_0x456065)};}});}}class ut extends _0x59f721{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f72a5){super(_0x2f72a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x92ff99=this['editor'],_0x124246=_0x92ff99['commands']['get']('importWord'),_0xfa35f3=_0x92ff99['commands']['get']('trackChanges');_0x124246&&(_0x124246['on']('execute',(_0x536213,[,_0x521979])=>{this['_trackChangesValueDuringImport']=_0xfa35f3['value'],_0x521979['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x124246,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x124246,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfa35f3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x92ff99['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44f12c,_0x35e4fc){const {suggestions:_0x1651a6}=_0x35e4fc,_0x28ddce=this['editor']['commands']['get']('trackChanges'),_0x108ddf=_0x28ddce['value'];this['_trackChangesValueDuringImport']!==_0x108ddf&&(_0x28ddce['execute'](),this['_trackChangesExecuted']=!0x0),_0x1651a6&&_0x1651a6['forEach'](({id:_0x582479,type:_0x4d503,author:_0x37749a,created_at:_0xa291e5})=>{const _0x4acfc4={'id':_0x582479,'type':_0x4d503,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37749a,'createdAt':_0xa291e5?new Date(_0xa291e5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4acfc4);});}}class ft extends _0x59f721{['afterInit'](){const _0x5edc55=this['editor'],_0x5a033a=_0x5edc55['plugins']['get']('TrackChangesEditing');if(_0x5edc55['plugins']['has']('IndentEditing')&&(_0x5a033a['enableCommand']('indent'),_0x5a033a['enableCommand']('outdent')),_0x5edc55['plugins']['has']('IndentBlock')){for(const _0x2cd5c7 of['indentBlock','outdentBlock'])_0x5a033a['enableDefaultAttributesIntegration'](_0x2cd5c7);}const _0x1a5283=_0x5edc55['locale'];_0x5a033a['registerBlockAttribute']('blockIndent'),_0x5a033a['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1a5283,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236c0c=this['editor'],_0x349eac=_0x236c0c['locale'],_0x1d2dbe=_0x236c0c['plugins']['get']('TrackChangesEditing');_0x1d2dbe['descriptionFactory']['registerDescriptionCallback'](_0xe2bb76=>{if('formatBlock'!=_0xe2bb76['type'])return;const {data:_0x164d29}=_0xe2bb76;if(!_0x164d29)return;if('indentBlock'!=_0x164d29['commandName']&&'outdentBlock'!=_0x164d29['commandName'])return;const _0x4d7ede=_0xe2bb76['getItems']()[0x0],_0x1337cb=_0x1d2dbe['descriptionFactory']['getItemLabel'](_0x4d7ede);return'indentBlock'==_0x164d29['commandName']?{'type':'format','content':c(_0x349eac,'*Indent:*\x20%0',_0x1337cb)}:'outdentBlock'==_0x164d29['commandName']?{'type':'format','content':c(_0x349eac,'*Outdent:*\x20%0',_0x1337cb)}:void 0x0;});}}class ht extends _0x59f721{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x59f721{['afterInit'](){const _0x39b07e=this['editor'];if(!_0x39b07e['plugins']['has']('LinkEditing'))return;const _0x30bdc0=_0x39b07e['plugins']['get']('TrackChangesEditing'),_0x5c2d35=_0x39b07e['commands']['get']('link');_0x30bdc0['enableDefaultAttributesIntegration']('link'),_0x30bdc0['enableDefaultAttributesIntegration']('unlink'),_0x30bdc0['registerInlineAttribute']('linkHref');for(const _0x1bfec9 of _0x5c2d35['manualDecorators'])_0x30bdc0['registerInlineAttribute'](_0x1bfec9['id']),_0x30bdc0['descriptionFactory']['registerAttributeLabel'](_0x1bfec9['id'],'link\x20('+_0x1bfec9['label']['toLowerCase']()+')');_0x30bdc0['descriptionFactory']['registerDescriptionCallback'](_0x33b132=>{if('attribute'!=_0x33b132['type'])return;const {data:_0x4a9ee8}=_0x33b132;if(!_0x4a9ee8||'linkHref'!=_0x4a9ee8['key'])return;const _0x2396d2=_0x4a9ee8['newValue'],_0x293d6b=_0x39b07e['locale'];return{'type':'format','content':null==_0x2396d2?c(_0x293d6b,'*Remove\x20link*'):c(_0x293d6b,'*Set\x20link:*\x20%0','\x22'+_0x2396d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ca6f=this['editor'],_0x326e9c=_0x58ca6f['locale'];_0x58ca6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cfe24=>{if('formatInline'!=_0x3cfe24['type'])return;const {data:_0x169714}=_0x3cfe24;if(_0x169714){if('link'==_0x169714['commandName']){const _0x2da57a=_0x169714['commandParams'][0x0];return{'type':'format','content':c(_0x326e9c,'*Set\x20link:*\x20%0','\x22'+_0x2da57a+'\x22')};}return'unlink'==_0x169714['commandName']?{'type':'format','content':c(_0x326e9c,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x59f721{['afterInit'](){const _0x5645b3=this['editor'],_0x4243e9=_0x5645b3['locale'];if(!_0x5645b3['plugins']['has']('LegacyListEditing'))return;const _0x40e9fc=_0x5645b3['plugins']['get']('TrackChangesEditing'),_0x56d1ae=_0x5645b3['plugins']['has']('LegacyTodoListEditing');function _0x56bee4(_0x23e2aa){return()=>{const _0x244119=_0x5645b3['model']['document']['selection'],_0x74760f=_0x5645b3['commands']['get'](_0x23e2aa);if(_0x74760f['value'])return void _0x5645b3['execute']('paragraph',{});const _0x3e82a5=_0x23e2aa['slice'](0x0,-0x4),_0x7374fc=function(_0x35cf24,_0x5aa7e4,_0x2898f1){let _0x1f93a1=Array['from'](_0x35cf24)['filter'](_0x5a310d=>function(_0x44a3a6,_0x1f9a4a){return _0x1f9a4a['checkChild'](_0x44a3a6['parent'],'listItem')&&!_0x1f9a4a['isObject'](_0x44a3a6);}(_0x5a310d,_0x2898f1));_0x1f93a1=_0x1f93a1['filter'](_0xe31921=>!_0xe31921['is']('element','listItem')||_0xe31921['getAttribute']('listType')!=_0x5aa7e4);const _0x40d303=new Set();for(const _0x5613c2 of _0x1f93a1)_0x5613c2['is']('element','listItem')?_0x40d303['add'](Le(_0x5613c2)):_0x40d303['add'](_0x5613c2);return Array['from'](_0x40d303);}(_0x244119['getSelectedBlocks'](),_0x3e82a5,_0x5645b3['model']['schema']);_0x5645b3['model']['change'](()=>{for(const _0xc456f4 of _0x7374fc)_0x40e9fc['markBlockFormat'](_0xc456f4,{'commandName':_0x23e2aa,'commandParams':[{'forceValue':!_0x74760f['value']}],'formatGroupId':'blockName'},Ee(_0xc456f4));});};}function _0x1d6450(_0x19260b){return()=>{const _0x5a47fc=function(_0x27e70c){let _0x3c444b=Array['from'](_0x27e70c);const _0xc07dbe=_0x3c444b['findIndex'](_0xc4ab7d=>'listItem'!=_0xc4ab7d['name']);return _0xc07dbe>-0x1&&(_0x3c444b=_0x3c444b['slice'](0x0,_0xc07dbe)),_0x3c444b;}(_0x5645b3['model']['document']['selection']['getSelectedBlocks']()),_0x40999a=_0x5645b3['model']['createRange'](_0x5645b3['model']['createPositionAt'](_0x5a47fc[0x0],'before'),_0x5645b3['model']['createPositionAt'](_0x5a47fc[_0x5a47fc['length']-0x1],'end'));_0x5645b3['model']['change'](()=>{_0x40e9fc['markBlockFormat'](_0x40999a,{'commandName':_0x19260b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5eb497){const _0x48c8e5=new Set();for(const _0x43a0e3 of _0x5eb497){let _0x3abac6=_0x43a0e3['nextSibling'];for(;_0x3abac6&&_0x3abac6['getAttribute']('listIndent')>_0x43a0e3['getAttribute']('listIndent');)_0x48c8e5['add'](_0x3abac6),_0x3abac6=_0x3abac6['nextSibling'];}return Array['from'](_0x48c8e5);}(_0x5a47fc));});};}_0x40e9fc['enableCommand']('numberedList',_0x56bee4('numberedList')),_0x40e9fc['enableCommand']('bulletedList',_0x56bee4('bulletedList')),_0x56d1ae&&_0x40e9fc['enableCommand']('todoList',_0x56bee4('todoList')),_0x40e9fc['enableCommand']('indentList',_0x1d6450('indentList')),_0x40e9fc['enableCommand']('outdentList',_0x1d6450('outdentList')),_0x56d1ae&&_0x40e9fc['enableCommand']('checkTodoList',()=>{const _0x1a2d9e=_0x5645b3['commands']['get']('checkTodoList'),_0x4edd66=Array['from'](_0x1a2d9e['_selectedElements']);_0x4edd66['filter'](_0x3f01bb=>_0x3f01bb['getAttribute']('todoListChecked')!=_0x1a2d9e['value']),_0x5645b3['model']['change'](()=>{for(const _0x1eeef1 of _0x4edd66)_0x40e9fc['markBlockFormat'](_0x1eeef1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a2d9e['value']}]});});}),_0x40e9fc['descriptionFactory']['registerElementLabel']('listItem',_0x55735f=>c(_0x4243e9,'ELEMENT_LIST_ITEM',_0x55735f)),_0x40e9fc['descriptionFactory']['registerDescriptionCallback'](_0x3d3bd6=>{if('formatBlock'!=_0x3d3bd6['type']&&'formatInline'!=_0x3d3bd6['type'])return;const {data:_0x1763cd}=_0x3d3bd6;if(_0x1763cd){if('numberedList'==_0x1763cd['commandName']||'bulletedList'==_0x1763cd['commandName']||'todoList'==_0x1763cd['commandName'])switch(_0x1763cd['commandName']['replace']('List','')){case'bulleted':return _0x2b8af6(c(_0x4243e9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b8af6(c(_0x4243e9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b8af6(c(_0x4243e9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1763cd['commandName'])return{'type':'format','content':c(_0x4243e9,'*Indent:*\x20%0',c(_0x4243e9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1763cd['commandName'])return{'type':'format','content':c(_0x4243e9,'*Outdent:*\x20%0',c(_0x4243e9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1763cd['commandName'])return _0x1763cd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4243e9,'*Check\x20item*')}:{'type':'format','content':c(_0x4243e9,'*Uncheck\x20item*')};}function _0x2b8af6(_0x5658aa){return{'type':'format','content':c(_0x4243e9,'*Change\x20to:*\x20%0',_0x5658aa)};}});}}function Le(_0x1ff551){const _0x321be4=_0x1ff551['getAttribute']('listIndent');if(0x0==_0x321be4)return _0x1ff551;let _0x412986=_0x1ff551;for(;_0x1ff551['previousSibling']&&_0x1ff551['previousSibling']['is']('element','listItem');){const _0x51be6f=_0x1ff551['previousSibling']['getAttribute']('listIndent');if(_0x51be6f==_0x321be4)_0x412986=_0x1ff551['previousSibling'];else{if(_0x51be6f<_0x321be4)break;}_0x1ff551=_0x1ff551['previousSibling'];}return _0x412986;}function Ee(_0x3a3a78){const _0x315e00=[];if(_0x3a3a78['is']('element','listItem')&&_0x3a3a78['getAttribute']('listIndent')>0x0){let _0x16b2e9=_0x3a3a78['nextSibling'];for(;_0x16b2e9&&'listItem'==_0x16b2e9['name']&&_0x16b2e9['getAttribute']('listIndent')==_0x3a3a78['getAttribute']('listIndent');)_0x315e00['push'](_0x16b2e9),_0x16b2e9=_0x16b2e9['nextSibling'];}return _0x315e00;}class Q extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49c3ac=this['editor']['config']['get']('list.properties'),_0x3e7ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c3ac['styles']&&_0x3e7ed5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49c3ac['reversed']&&_0x3e7ed5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49c3ac['startIndex']&&_0x3e7ed5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e7ed5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2303e5,_0x45cc0b={}){const _0x3beab8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0d0c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3beab8['markMultiRangeBlockFormat'](_0x4d0d0c,{'commandName':'listStyle','commandParams':[{'type':_0x45cc0b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261be8,_0x5bc636={}){const _0x2d2ec0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc3133=this['_getSuggestionBlocks'](_0x197d85=>_0x197d85['is']('element','listItem')&&'numbered'===_0x197d85['getAttribute']('listType'));if(_0xbc3133['length']<0x1)return;const _0x517624=_0xbc3133['map'](_0x1a0023=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a0023,'before'),this['editor']['model']['createPositionAt'](_0x1a0023,0x0)));this['editor']['model']['change'](()=>{_0x2d2ec0['markMultiRangeBlockFormat'](_0x517624,{'commandName':'listReversed','commandParams':[{'reversed':_0x5bc636['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2e56a7,_0x458309={}){const _0x41de99=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc556a=this['_getSuggestionBlocks'](_0x301789=>_0x301789['is']('element','listItem')&&'numbered'===_0x301789['getAttribute']('listType'));if(_0xbc556a['length']<0x1)return;const _0xa40792=_0xbc556a['map'](_0x46bd03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46bd03,'before'),this['editor']['model']['createPositionAt'](_0x46bd03,0x0)));this['editor']['model']['change'](()=>{_0x41de99['markMultiRangeBlockFormat'](_0xa40792,{'commandName':'listStart','commandParams':[{'startIndex':_0x458309['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5554db){if('formatBlock'!=_0x5554db['type']&&'formatInline'!=_0x5554db['type'])return;const _0x18675d=this['editor']['locale'],{data:_0x52c432}=_0x5554db;if(!_0x52c432)return;let _0x519975,_0x495e93;switch(_0x52c432['commandName']){case'listStyle':_0x519975='*Change\x20to:*\x20%0',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975,c(_0x18675d,this['_getTranslationKeyForListStyle'](_0x52c432['commandParams'][0x0]['type'])))};break;case'listReversed':_0x519975=_0x52c432['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975)};break;case'listStart':_0x519975='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975,_0x52c432['commandParams'][0x0]['startIndex'])};}return _0x495e93;}['_getSuggestionBlocksForListStyle'](){const _0x20ed6b=this['editor']['plugins']['get']('LegacyListUtils');let _0x44e1be=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x44e1be[0x0]?.['is']('element','listItem')&&_0x44e1be['unshift'](..._0x20ed6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x44e1be[_0x44e1be['length']-0x1]?.['is']('element','listItem')&&_0x44e1be['push'](..._0x20ed6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x44e1be=[...new Set(_0x44e1be)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x44e1be=_0x44e1be['filter'](_0x37d398=>_0x37d398['is']('element','listItem'))),_0x44e1be;}['_getSuggestionBlocks'](_0x183eb9){const _0x5b818a=this['editor']['plugins']['get']('LegacyListUtils');let _0x56721e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x183eb9)['map'](_0x51086d=>{const _0x39d0fa=this['editor']['model']['createPositionAt'](_0x51086d,0x0);return[..._0x5b818a['getSiblingNodes'](_0x39d0fa,'backward'),..._0x5b818a['getSiblingNodes'](_0x39d0fa,'forward')];})['flat']();return _0x56721e=[...new Set(_0x56721e)],_0x56721e;}['_getTranslationKeyForListStyle'](_0x54a27a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a27a)||'default')['toUpperCase']()+'_LIST_'+_0x54a27a['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x59f721{['afterInit'](){const _0x49f12e=this['editor'];if(!_0x49f12e['plugins']['has']('MediaEmbedEditing'))return;const _0x11f323=_0x49f12e['plugins']['get']('TrackChangesEditing'),_0x1311c8=_0x49f12e['locale'];_0x11f323['enableCommand']('mediaEmbed'),_0x11f323['descriptionFactory']['registerElementLabel']('media',_0x3db232=>c(_0x1311c8,'ELEMENT_MEDIA',_0x3db232)),_0x49f12e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x179850,{writer:_0x230719,options:_0x17aa7b})=>{if(_0x17aa7b['showSuggestionHighlights'])return _0x230719['createEmptyElement']('div');},'converterPriority':'high'}),_0x49f12e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x53408b,_0x1f502f,_0xdca0b0)=>{_0xdca0b0['options']['showSuggestionHighlights']&&_0x53408b['stop']();},{'priority':'high'});}}class pt extends _0x59f721{['afterInit'](){const _0x3a79fd=this['editor'];_0x3a79fd['plugins']['has']('MentionEditing')&&_0x3a79fd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x59f721{['afterInit'](){const _0x3435c0=this['editor'];if(!_0x3435c0['plugins']['has']('MergeFieldsEditing'))return;const _0x187353=_0x3435c0['plugins']['get']('TrackChangesEditing'),_0x22229d=_0x3435c0['locale'];_0x187353['enableCommand']('insertMergeField'),_0x187353['enableCommand']('insertMergeFieldBlock'),_0x187353['enableCommand']('insertMergeFieldImage'),_0x187353['descriptionFactory']['registerElementLabel']('mergeField',_0x1636d8=>c(_0x22229d,'ELEMENT_MERGE_FIELD',_0x1636d8)),_0x187353['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4126b1=>c(_0x22229d,'ELEMENT_MERGE_FIELD',_0x4126b1)),_0x187353['descriptionFactory']['registerDescriptionCallback'](_0x4c8617=>{if('insertion'!=_0x4c8617['type']&&'deletion'!=_0x4c8617['type'])return;const _0x13f2c5=_0x4c8617['getContainedElement']();if(null==_0x13f2c5)return;const _0x186050=_0x3435c0['plugins']['get']('MergeFieldsEditing');let _0x404ad5;switch(_0x186050['getMergeFieldType'](_0x13f2c5)){case null:return;case'image':{const _0xad3dad=_0x186050['unwrapAffixes'](_0x13f2c5['getAttribute']('src'));_0x404ad5=_0x186050['getLabel'](_0xad3dad)||_0xad3dad;break;}default:{const _0x41d87c=_0x13f2c5['getAttribute']('id');_0x404ad5=_0x186050['getLabel'](_0x41d87c)||_0x41d87c;break;}}return'insertion'==_0x4c8617['type']?{'type':'insertion','content':c(_0x22229d,'*Insert:*\x20%0','\x22'+_0x404ad5+'\x22\x20'+c(_0x22229d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x22229d,'*Remove:*\x20%0','\x22'+_0x404ad5+'\x22\x20'+c(_0x22229d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x59f721{['afterInit'](){const _0x4d23f8=this['editor'],_0x57a35a=_0x4d23f8['plugins']['get']('TrackChangesEditing');_0x4d23f8['plugins']['has']('MultiLevelList')&&(_0x57a35a['enableDefaultAttributesIntegration']('multiLevelList'),_0x57a35a['registerBlockAttribute']('listMarkerStyle'),_0x57a35a['descriptionFactory']['registerDescriptionCallback'](_0x286034=>this['handleDescriptions'](_0x286034)));}['handleDescriptions'](_0x32e308){const _0x1fcd16=this['editor']['locale'],{data:_0x2ce82b}=_0x32e308,_0xe1ad0a={'type':'format','content':''};if(_0x2ce82b&&'listMarkerStyle'==_0x2ce82b['key']){if(!_0x2ce82b['oldValue'])return{'type':'format','content':c(_0x1fcd16,'*Set\x20format:*\x20%0',c(_0x1fcd16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ce82b['newValue']+')'};if(!_0x2ce82b['newValue']){let _0x2e58f7=_0x32e308['head'];for(;_0x2e58f7;){if(_0x2e58f7['data']&&'listType'==_0x2e58f7['data']['key']&&_0x2e58f7['data']['newValue'])return _0xe1ad0a;_0x2e58f7=_0x2e58f7['next'];}return{'type':'format','content':c(_0x1fcd16,'*Remove\x20format:*\x20%0',c(_0x1fcd16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ce82b['oldValue']+')'};}}}}class bt extends _0x59f721{['afterInit'](){const _0x3c9ca1=this['editor'];if(!_0x3c9ca1['plugins']['has']('PageBreakEditing'))return;_0x3c9ca1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5c7e47=_0x3c9ca1['plugins']['get']('TrackChangesEditing'),_0x3c7624=_0x3c9ca1['locale'];_0x5c7e47['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b4754=>c(_0x3c7624,'ELEMENT_PAGE_BREAK',_0x4b4754));}}class yt extends _0x59f721{['afterInit'](){const _0x220c0b=this['editor'];if(!_0x220c0b['plugins']['has']('Paragraph'))return;const _0xb40ab7=_0x220c0b['locale'],_0x1fc186=_0x220c0b['plugins']['get']('TrackChangesEditing');_0x1fc186['descriptionFactory']['registerElementLabel']('paragraph',_0x58c9d3=>c(_0xb40ab7,'ELEMENT_PARAGRAPH',_0x58c9d3)),_0x1fc186['enableDefaultAttributesIntegration']('paragraph'),_0x1fc186['enableCommand']('insertParagraph'),_0x220c0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x220c0b),{'priority':'highest'}),_0x220c0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5cbdf2,_0x3f3e8a,_0x145ab5)=>{_0x145ab5['options']['showSuggestionHighlights']&&nr(_0x220c0b,{'showActiveMarker':!0x1})(_0x5cbdf2,_0x3f3e8a,_0x145ab5);},{'priority':'highest'});const _0x504c68=_0x1fc186['descriptionFactory'];_0x504c68['registerDescriptionCallback'](_0x9512ba=>{if('insertion'!==_0x9512ba['type'])return;const {start:_0x184998,end:_0x491e3}=_0x9512ba['getFirstRange']();if(!_0x184998['isTouching'](_0x491e3)||!_0x184998['nodeAfter'])return;const _0x159a31=_0x220c0b['model']['schema'],_0x3aabbd=_0x184998['nodeAfter'];return _0x159a31['isBlock'](_0x3aabbd)&&!_0x159a31['isLimit'](_0x3aabbd)&&_0x159a31['checkChild'](_0x3aabbd,'$text')?{'type':'insertion','content':c(_0xb40ab7,'*Insert:*\x20%0',_0x504c68['getItemLabel'](_0x3aabbd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3df735=this['editor'],_0x56de9d=_0x3df735['locale'];_0x3df735['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbc2c=>{if('formatBlock'!=_0x3dbc2c['type'])return;const {data:_0x3f7e14}=_0x3dbc2c;return _0x3f7e14&&'paragraph'==_0x3f7e14['commandName']?{'type':'format','content':c(_0x56de9d,'*Change\x20to:*\x20%0',c(_0x56de9d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3f6fb7,{showActiveMarker:_0xbbde8d=!0x0}={}){return(_0xcf9971,_0x406372,_0x217fae)=>{const _0x1af346=_0x3f6fb7['plugins']['get']('TrackChangesEditing'),_0x20ade3=_0x406372['markerRange']['start'],_0x5f735e=_0x406372['markerRange']['end'],_0x367ea6=_0x3f6fb7['model']['schema'];if(!_0x20ade3['isTouching'](_0x5f735e)||!_0x20ade3['nodeAfter'])return;const _0xbd1ee1=_0x20ade3['nodeAfter'];if(_0x367ea6['isBlock'](_0xbd1ee1)&&!_0x367ea6['isLimit'](_0xbd1ee1)&&_0x367ea6['checkChild'](_0xbd1ee1,'$text')){if(!_0x217fae['consumable']['consume'](_0x406372['markerRange'],_0xcf9971['name']))return;const {id:_0x50a1d6,authorId:_0x189a8f}=_0x1af346['_splitMarkerName'](_0x406372['markerName']),_0x335cdf=_0x217fae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x50a1d6,'data-author-id':_0x189a8f}),_0x40286f=_0x217fae['mapper']['toViewPosition'](_0x5f735e);_0xbbde8d&&_0x1af346['activeMarkers']['includes'](_0x406372['markerName'])&&_0x217fae['writer']['addClass']('ck-suggestion-marker--active',_0x335cdf),_0x217fae['writer']['insert'](_0x40286f,_0x335cdf),_0x217fae['mapper']['bindElementToMarker'](_0x335cdf,_0x406372['markerName']);}};}class St extends _0x59f721{['afterInit'](){const _0x50cbc9=this['editor'];_0x50cbc9['commands']['get']('replaceSource')&&_0x50cbc9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x59f721{['afterInit'](){const _0x30113d=this['editor'];if(!_0x30113d['plugins']['has']('RemoveFormatEditing'))return;_0x30113d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f33c=this['editor'];_0x32f33c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2346f1=>{if('formatBlock'!=_0x2346f1['type']&&'formatInline'!=_0x2346f1['type'])return;const {data:_0x571266}=_0x2346f1;return _0x571266&&'removeFormat'==_0x571266['commandName']?{'type':'format','content':c(_0x32f33c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x59f721{['afterInit'](){const _0x15b9d3=this['editor'];if(!_0x15b9d3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46edba=_0x15b9d3['plugins']['get']('TrackChangesEditing');_0x46edba['enableCommand']('goToPreviousRestrictedEditingException'),_0x46edba['enableCommand']('goToNextRestrictedEditingException');const _0x5d0ad1=_0x15b9d3['plugins']['get']('RestrictedEditingModeEditing');_0x5d0ad1['enableCommand']('trackChanges'),_0x5d0ad1['enableCommand']('acceptSuggestion'),_0x5d0ad1['enableCommand']('discardSuggestion'),_0x5d0ad1['enableCommand']('acceptAllSuggestions'),_0x5d0ad1['enableCommand']('discardAllSuggestions'),_0x5d0ad1['enableCommand']('acceptSelectedSuggestions'),_0x5d0ad1['enableCommand']('discardSelectedSuggestions');}}class At extends _0x59f721{['afterInit'](){const _0x6c0897=this['editor'];if(!_0x6c0897['plugins']['has']('ShiftEnter'))return;const _0x363d8d=_0x6c0897['plugins']['get']('TrackChangesEditing');_0x363d8d['enableCommand']('shiftEnter'),_0x6c0897['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x6c0897),{'priority':'high'}),_0x6c0897['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x6c0897),{'priority':'high'}),_0x6c0897['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25a99e,_0x458543,_0x583ac4)=>{_0x583ac4['options']['showSuggestionHighlights']&&je(_0x6c0897,{'showActiveMarker':!0x1})(_0x25a99e,_0x458543,_0x583ac4);}),_0x363d8d['descriptionFactory']['registerElementLabel']('softBreak',_0x2dd0ab=>c(_0x6c0897['locale'],'ELEMENT_LINE_BREAK',_0x2dd0ab));}}function je(_0x3d079c,{showActiveMarker:_0x3c268e=!0x0}={}){return(_0x250f67,_0x59b339,_0x544d6f)=>{const _0x2318e5=_0x3d079c['plugins']['get']('TrackChangesEditing');if(!_0x544d6f['consumable']['test'](_0x59b339['markerRange'],_0x250f67['name']))return;const _0x505408=_0x3d079c['model'];for(const _0xbe7614 of _0x59b339['markerRange']['getItems']()){if(!_0xbe7614['is']('element','softBreak'))continue;const _0x6c5e1b='deletion'==_0x59b339['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1c466a,authorId:_0x516984}=_0x2318e5['_splitMarkerName'](_0x59b339['markerName']),_0x5879a0=_0x544d6f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6c5e1b,'data-suggestion':_0x1c466a,'data-author-id':_0x516984}),_0x1693dd=_0x544d6f['mapper']['toViewPosition'](_0x505408['createPositionBefore'](_0xbe7614));_0x3c268e&&_0x2318e5['activeMarkers']['includes'](_0x59b339['markerName'])&&_0x544d6f['writer']['addClass']('ck-suggestion-marker--active',_0x5879a0),_0x544d6f['writer']['insert'](_0x1693dd,_0x5879a0),_0x544d6f['mapper']['bindElementToMarker'](_0x5879a0,_0x59b339['markerName']);}};}class _t extends _0x59f721{['afterInit'](){const _0x4c83d9=this['editor'],_0x28c261=_0x4c83d9['model'],_0x3fd35d=_0x4c83d9['locale'];if(!_0x4c83d9['plugins']['has']('StandardEditingModeEditing'))return;const _0x43fc54=_0x4c83d9['plugins']['get']('TrackChangesEditing'),_0x4cfb61='restrictedEditingException',_0x309cfd=_0x4c83d9['commands']['get'](_0x4cfb61);_0x43fc54['enableCommand'](_0x4cfb61,(_0xb2df61,_0x5e3beb={})=>{const _0x2d44f5=_0x28c261['document']['selection'];if(_0x2d44f5['isCollapsed'])return void _0xb2df61(_0x5e3beb);const _0xf3bc1e=void 0x0!==_0x5e3beb['forceValue']?_0x5e3beb['forceValue']:!_0x309cfd['value'];_0x28c261['change'](()=>{const _0x30a679=Array['from'](_0x2d44f5['getRanges']());for(const _0x47fcf9 of _0x30a679){const _0x555135=_0xf3bc1e?[_0x47fcf9]:io(_0x4cfb61,_0x47fcf9,_0x28c261);for(const _0x50029e of _0x555135)_0x43fc54['markInlineFormat'](_0x50029e,{'commandName':_0x4cfb61,'commandParams':[{'forceValue':_0xf3bc1e}]});}});}),_0x43fc54['descriptionFactory']['registerDescriptionCallback'](_0x32e131=>{if('formatBlock'!=_0x32e131['type']&&'formatInline'!=_0x32e131['type'])return;const {data:_0x5f126d}=_0x32e131;return _0x5f126d&&_0x5f126d['commandName']==_0x4cfb61?_0x5f126d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3fd35d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3fd35d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x59f721{['afterInit'](){const _0x392ffe=this['editor'];if(!_0x392ffe['plugins']['has']('Style')||!_0x392ffe['plugins']['has']('DataSchema'))return;const _0x4a077d=_0x392ffe['plugins']['get']('TrackChangesEditing'),_0x51edbc=_0x392ffe['locale'],_0x53d502=_0x392ffe['config']['get']('style')||{},_0x56a37c=_0x392ffe['plugins']['get']('GeneralHtmlSupport'),_0x2b3c0d=_0x392ffe['plugins']['get']('StyleUtils')['normalizeConfig'](_0x392ffe['plugins']['get']('DataSchema'),_0x53d502['definitions']);_0x4a077d['enableDefaultAttributesIntegration']('style');const _0x13d152=new Set();for(const _0x5bd0be of _0x2b3c0d['block']){const _0x4db2b8=_0x56a37c['getGhsAttributeNameForElement'](_0x5bd0be['element']);_0x13d152['add'](_0x4db2b8);}const _0x422322=new Set();for(const _0x149c1f of _0x2b3c0d['inline']){const _0x25f0f8=_0x56a37c['getGhsAttributeNameForElement'](_0x149c1f['element']);_0x422322['add'](_0x25f0f8);for(const _0x3f2a2a of _0x149c1f['ghsAttributes'])_0x422322['add'](_0x3f2a2a);}for(const _0x4baea1 of _0x13d152)_0x4a077d['registerBlockAttribute'](_0x4baea1),_0x4a077d['descriptionFactory']['registerAttributeLabel'](_0x4baea1,c(_0x51edbc,'FORMAT_STYLE'));for(const _0x1399a2 of _0x422322)_0x4a077d['registerInlineAttribute'](_0x1399a2),_0x4a077d['descriptionFactory']['registerAttributeLabel'](_0x1399a2,c(_0x51edbc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407a43=this['editor'],_0x269f6e=_0x407a43['locale'];_0x407a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34e07d=>{if('formatBlock'!=_0x34e07d['type']&&'formatInline'!=_0x34e07d['type'])return;const {data:_0x56ba18}=_0x34e07d;return _0x56ba18&&'style'===_0x56ba18['commandName']?_0x56ba18['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x269f6e,'*Set\x20format:*\x20%0',_0x56ba18['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x269f6e,'*Remove\x20format:*\x20%0',_0x56ba18['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x59f721{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49be04){super(_0x49be04),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x495c01=this['editor'],_0x3893a4=_0x495c01['model']['document']['selection'];if(!_0x495c01['plugins']['has']('TableEditing'))return;const _0x2ed21f=_0x495c01['locale'],_0x7771aa=_0x495c01['plugins']['get']('TrackChangesEditing'),_0x3d6686=_0x495c01['plugins']['get']('TableUtils');_0x7771aa['descriptionFactory']['registerElementLabel']('table',_0x5493c1=>c(_0x2ed21f,'ELEMENT_TABLE',_0x5493c1)),this['_setupColumnsRowsFixing'](),_0x7771aa['enableCommand']('insertTable'),_0x7771aa['enableCommand']('selectTableRow'),_0x7771aa['enableCommand']('selectTableColumn');for(const _0x403c31 of['insertTableRowAbove','insertTableRowBelow']){const _0x46e24c=_0x495c01['commands']['get'](_0x403c31);_0x7771aa['enableCommand'](_0x403c31,_0x408f72=>{_0x495c01['model']['change'](_0x3ab475=>{_0x408f72();const _0x4f3f11='above'===_0x46e24c['order'],_0x5a5fc7=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x1afe3c=_0x3d6686['getRowIndexes'](_0x5a5fc7),_0x5d642d=_0x4f3f11?_0x1afe3c['first']-0x1:_0x1afe3c['last']+0x1,_0x37ee4e=_0x5a5fc7[0x0]['findAncestor']('table'),_0x47eb8f=_0x3d6686['createTableWalker'](_0x37ee4e,{'startRow':_0x5d642d,'endRow':_0x5d642d}),_0x1caf0f=Array['from'](_0x47eb8f)['map'](_0x36dd45=>_0x3ab475['createRangeOn'](_0x36dd45['cell']));_0x7771aa['markMultiRangeInsertion'](_0x1caf0f,'tableRow');});});}for(const _0x579fca of['insertTableColumnLeft','insertTableColumnRight']){const _0x380e22=_0x495c01['commands']['get'](_0x579fca);_0x7771aa['enableCommand'](_0x579fca,_0x48bfa7=>{_0x495c01['model']['change'](_0x9e4ea7=>{_0x48bfa7();const _0x2cff5a='left'===_0x380e22['order'],_0xd50c53=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x52344e=_0x3d6686['getColumnIndexes'](_0xd50c53),_0x44184b=_0x2cff5a?_0x52344e['first']-0x1:_0x52344e['last']+0x1,_0x4e6d96=_0xd50c53[0x0]['findAncestor']('table'),_0xce3e8f=_0x3d6686['createTableWalker'](_0x4e6d96,{'startRow':0x0,'column':_0x44184b,'includeAllSlots':!0x1}),_0x41efc7=Array['from'](_0xce3e8f)['map'](_0x235d19=>_0x9e4ea7['createRangeOn'](_0x235d19['cell']));_0x7771aa['markMultiRangeInsertion'](_0x41efc7,'tableColumn');});});}for(const _0x36ebf5 of['removeTableRow','removeTableColumn']){const _0xc3cda=_0x36ebf5['substr'](0xb),_0x3b1503=_0xc3cda['toLowerCase'](),_0x4b2046=_0x3b1503['substr'](0x0,0x3)+'span',_0x18650b='table'+_0xc3cda,_0x3c773f='min'+_0xc3cda,_0x97fec9='max'+_0xc3cda;_0x7771aa['enableCommand'](_0x36ebf5,()=>{_0x495c01['model']['change'](_0x162c87=>{const _0x2faaf8=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x282847=_0x2faaf8[0x0]['findAncestor']('table');let _0x5d8a71;if('removeTableRow'==_0x36ebf5){const _0xb538ff=_0x3d6686['getRowIndexes'](_0x2faaf8);_0x5d8a71={'startRow':_0xb538ff['first'],'endRow':_0xb538ff['last'],'includeAllSlots':!0x0};}else{const _0xdbe85d=_0x3d6686['getColumnIndexes'](_0x2faaf8);_0x5d8a71={'startColumn':_0xdbe85d['first'],'endColumn':_0xdbe85d['last'],'includeAllSlots':!0x0};}const _0x5549e5=_0x3d6686['createTableWalker'](_0x282847,_0x5d8a71),_0x5e5a22=Array['from'](_0x5549e5)['map'](({cell:_0x5bbe16})=>_0x5bbe16),_0x2d5ad9=xe(_0x5e5a22['filter'](_0x498dee=>_0x498dee['hasAttribute'](_0x4b2046))),_0x4df969=xe(_0x5e5a22['filter'](_0x2631cd=>!_0x2631cd['hasAttribute'](_0x4b2046)))['map'](_0x1e5256=>_0x162c87['createRangeOn'](_0x1e5256)),_0x33e6fc=_0x7771aa['markMultiRangeDeletion'](_0x4df969,_0x18650b);if(_0x33e6fc&&('tableRow'==_0x33e6fc['subType']||'tableColumn'==_0x33e6fc['subType'])){const _0x463343=this['_getSuggestionCoords'](_0x33e6fc);for(const _0x2d5229 of _0x2d5ad9){const _0x26db9d=_0x162c87['createRangeOn'](_0x2d5229),_0x39705b=_0x3d6686['getCellLocation'](_0x2d5229),_0x303c92=_0x2d5229['getAttribute'](_0x4b2046)-0x1,_0x5de73b=_0x463343[_0x3c773f],_0x35fdaa=_0x463343[_0x97fec9];_0x5de73b<=_0x39705b[_0x3b1503]&&_0x39705b[_0x3b1503]+_0x303c92<=_0x35fdaa&&_0x33e6fc['addRange'](_0x26db9d);}}});});}function _0x51aa04(_0x3473bc){const _0x2e1c8e=Array['from'](_0x3893a4['getRanges']())['map'](_0x332e3d=>_0x39b5cf['fromRange'](_0x332e3d));_0x495c01['model']['change'](_0x2cb776=>{const _0x2713b0=_0x2cb776['batch'];_0x3473bc=_0x3473bc['filter'](_0x3fec1f=>'$graveyard'!=_0x3fec1f['root']['rootName']),_0x2cb776['setSelection'](_0x3473bc),_0x495c01['commands']['get']('removeTableRow')['refresh'](),_0x495c01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x495c01['model']['enqueueChange'](()=>{_0x495c01['model']['enqueueChange'](_0x2713b0,_0x5b05fa=>{const _0x1ba278=_0x2e1c8e['filter'](_0x59dd60=>'$graveyard'!=_0x59dd60['root']['rootName']);_0x1ba278['length']>0x0&&_0x5b05fa['setSelection'](_0x1ba278);for(const _0x3991b5 of _0x2e1c8e)_0x3991b5['detach']();});});});}function _0xb9a3e(_0x4db4d9){_0x495c01['model']['change'](_0x10da44=>{const _0x278710=Array['from'](_0x3893a4['getRanges']())['map'](_0x48ad66=>_0x39b5cf['fromRange'](_0x48ad66)),_0x2ea2d9=[];for(const _0x41e5db of _0x4db4d9)for(const _0x550473 of _0x41e5db['getItems']({'shallow':!0x0}))_0x2ea2d9['push'](_0x550473);for(const _0x5bffe7 of _0x2ea2d9)'$graveyard'!=_0x5bffe7['root']['rootName']&&(_0x10da44['setSelection'](_0x10da44['createPositionAt'](_0x5bffe7,0x0)),_0x495c01['commands']['get']('removeTableColumn')['refresh'](),_0x495c01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x392f0b=_0x278710['filter'](_0x15c273=>'$graveyard'!=_0x15c273['root']['rootName']);_0x392f0b['length']>0x0&&_0x10da44['setSelection'](_0x392f0b);for(const _0x52d995 of _0x278710)_0x52d995['detach']();});}function _0x518bf4(_0xfb5303,_0x509324){return _0x509324['every'](_0xb9e36a=>_0xfb5303['some'](_0x43abfb=>_0x43abfb['end']['isEqual'](_0xb9e36a['start'])||_0xb9e36a['end']['isEqual'](_0x43abfb['start'])));}function _0xf27f85(_0x263b02,_0xb53ecc){return!_0x263b02['some'](_0x992fe9=>_0xb53ecc['some'](_0x368c5a=>_0x992fe9['isIntersecting'](_0x368c5a)))&&_0x263b02['some'](_0x16951d=>_0xb53ecc['some'](_0x45697f=>_0x16951d['end']['isTouching'](_0x45697f['start'])));}_0x495c01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12e07f,_0x44695e,_0xd74c95)=>{if(!_0xd74c95['options']['showSuggestionHighlights'])return;const _0x2ac07f=_0x44695e['item'];if(!_0x2ac07f||!_0x2ac07f['is']('element','tableCell'))return;const _0x4ded46=_0xd74c95['mapper']['toViewElement'](_0x2ac07f);if(_0x4ded46){const {id:_0x28217d,authorId:_0x790bc6}=_0x7771aa['_splitMarkerName'](_0x44695e['markerName']);_0x49fc28(_0x4ded46,_0xd74c95['writer'],(_0x44ad8c,_0x19d350,_0x59e3a5)=>{_0x59e3a5['addClass'](_0x43f047(_0x19d350['classes']),_0x44ad8c),_0x59e3a5['setAttribute']('data-suggestion-id',_0x28217d,_0x44ad8c),_0x59e3a5['setAttribute']('data-author-id',_0x790bc6,_0x44ad8c);},(_0xaff22b,_0x2a44f2,_0x5b22e3)=>{_0x5b22e3['removeClass'](_0x43f047(_0x2a44f2['classes']),_0xaff22b),_0x5b22e3['removeAttribute']('data-suggestion-id',_0xaff22b),_0x5b22e3['removeAttribute']('data-author-id',_0xaff22b);});}},{'priority':'highest'}),_0x7771aa['descriptionFactory']['registerDescriptionCallback'](_0x3a6a1b=>{if('insertion'!=_0x3a6a1b['type']&&'deletion'!=_0x3a6a1b['type'])return;const _0x5d0f94=_0x3a6a1b['getContainedElement']();if(null!=_0x5d0f94&&_0x5d0f94['is']('element','table')){if('insertion'==_0x3a6a1b['type']){const _0x8be1c7=_0x3a6a1b['getItems']()['filter'](_0x117835=>_0x117835['is']('$textProxy'))['map'](_0x37af7e=>_0x37af7e['data']);if(_0x8be1c7['length'])return{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8be1c7['join']('\x20')+'\x22'))};}if('deletion'==_0x3a6a1b['type']){const _0x4ef87a=_0x3a6a1b['getItems']()['filter'](_0x53607d=>_0x53607d['is']('$textProxy'))['map'](_0x114e8b=>_0x114e8b['data']);if(_0x4ef87a['length'])return{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ef87a['join']('\x20')+'\x22'))};}}}),_0x7771aa['descriptionFactory']['registerDescriptionCallback'](_0x1f7c47=>{if('tableRow'==_0x1f7c47['subType']){const _0x32a016=_0x1f7c47['getItems']()['filter'](_0x6e0781=>_0x6e0781['is']('$textProxy'))['map'](_0x1c4658=>_0x1c4658['data']),_0x259151=this['_getSuggestionCoords'](_0x1f7c47),_0x4cc8ae=_0x259151['maxRow']-_0x259151['minRow']+0x1;if('insertion'==_0x1f7c47['type'])return _0x32a016['length']?{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc8ae,'\x22'+_0x32a016['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW',_0x4cc8ae))};if('deletion'==_0x1f7c47['type'])return _0x32a016['length']?{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc8ae,'\x22'+_0x32a016['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW',_0x4cc8ae))};}if('tableColumn'==_0x1f7c47['subType']){const _0x52b96a=_0x1f7c47['getItems']()['filter'](_0x37320=>_0x37320['is']('$textProxy'))['map'](_0x40aa5e=>_0x40aa5e['data']),_0x4e76dd=this['_getSuggestionCoords'](_0x1f7c47),_0x4a6a8a=_0x4e76dd['maxColumn']-_0x4e76dd['minColumn']+0x1;if('insertion'==_0x1f7c47['type'])return _0x52b96a['length']?{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6a8a,'\x22'+_0x52b96a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN',_0x4a6a8a))};if('deletion'==_0x1f7c47['type'])return _0x52b96a['length']?{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6a8a,'\x22'+_0x52b96a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN',_0x4a6a8a))};}}),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x51aa04),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x51aa04),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xb9a3e),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xb9a3e),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x518bf4),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x518bf4),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf27f85),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf27f85);}['_acceptFormatSuggestionCallbackFactory'](){const _0x208e3c=this['editor'],_0x459a33=_0x208e3c['model']['document']['selection'];return(_0x35f374,_0x591ec8)=>{_0x208e3c['model']['change'](_0x1874d2=>{const {commandName:_0x4bfeb1,commandParams:_0x5efa07}=_0x591ec8;let _0x1820a8=_0x35f374[0x0]['end']['nodeBefore'];_0x5efa07&&_0x5efa07[0x0]&&!0x1===_0x5efa07[0x0]['forceValue']&&(_0x1820a8=_0x35f374[0x0]['start']['nodeAfter']);const _0x9f2a98=_0x1874d2['createRangeIn'](_0x1820a8);if('$graveyard'==_0x9f2a98['root']['rootName'])return;const _0x5a244e=Array['from'](_0x459a33['getRanges']())['map'](_0x5ca617=>_0x39b5cf['fromRange'](_0x5ca617));_0x1874d2['setSelection'](_0x9f2a98),_0x208e3c['commands']['get'](_0x4bfeb1)['refresh'](),_0x5efa07['push']({'forceDefaultExecution':!0x0}),_0x208e3c['execute'](_0x4bfeb1,..._0x5efa07);const _0xf4a9c7=_0x5a244e['filter'](_0x2ac908=>'$graveyard'!=_0x2ac908['root']['rootName']);_0xf4a9c7['length']>0x0&&_0x1874d2['setSelection'](_0xf4a9c7);for(const _0x49a62a of _0x5a244e)_0x49a62a['detach']();});};}['_getCoordsForCells'](_0x2ad6e8){const _0x4e35dc=this['editor']['plugins']['get']('TableUtils');let _0x4e1da3=Number['MAX_SAFE_INTEGER'],_0x4d70eb=Number['MIN_SAFE_INTEGER'],_0x3b7407=Number['MAX_SAFE_INTEGER'],_0xd1aa7d=Number['MIN_SAFE_INTEGER'];for(const _0xac0f90 of _0x2ad6e8){if('$graveyard'==_0xac0f90['root']['rootName'])continue;const {row:_0x3c7c86,column:_0x2e0726}=_0x4e35dc['getCellLocation'](_0xac0f90),_0x5607cf=_0xac0f90['hasAttribute']('rowspan')?_0xac0f90['getAttribute']('rowspan')-0x1:0x0,_0x1a1566=_0xac0f90['hasAttribute']('colspan')?_0xac0f90['getAttribute']('colspan')-0x1:0x0;_0x4e1da3=_0x3c7c86<_0x4e1da3?_0x3c7c86:_0x4e1da3,_0x4d70eb=_0x3c7c86+_0x5607cf>_0x4d70eb?_0x3c7c86+_0x5607cf:_0x4d70eb,_0x3b7407=_0x2e0726<_0x3b7407?_0x2e0726:_0x3b7407,_0xd1aa7d=_0x2e0726+_0x1a1566>_0xd1aa7d?_0x2e0726+_0x1a1566:_0xd1aa7d;}return{'minRow':_0x4e1da3,'maxRow':_0x4d70eb,'minColumn':_0x3b7407,'maxColumn':_0xd1aa7d};}['_setupColumnsRowsFixing'](){const _0x595f3c=this['editor'],_0x2d4fa5=_0x595f3c['plugins']['get']('TrackChangesEditing'),_0x15982c=_0x595f3c['plugins']['get']('TableUtils');_0x595f3c['model']['document']['on']('change:data',()=>{const _0x4b23cb=Array['from'](_0x595f3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54c688,data:_0x5ee45a}of _0x4b23cb){const {group:_0x2083ee,id:_0x3afe87,subType:_0x2aafae}=_0x2d4fa5['_splitMarkerName'](_0x54c688);if('suggestion'!=_0x2083ee)continue;if(null!=_0x5ee45a['oldRange'])continue;const _0x3c18de=_0x2d4fa5['getSuggestion'](_0x3afe87);this['_tablePostFixingSubtypes']['includes'](_0x2aafae)&&this['_tableSuggestions']['add'](_0x3c18de);}},{'priority':'low'});const _0x9d19ea=(_0x8ebc35,_0x569061)=>{let _0xa811c1=!0x1;const _0x2d1f93=_0x569061['createRangeOn'](_0x8ebc35),_0xaa27=_0x8ebc35['findAncestor']('table'),_0x487f0=_0x15982c['getCellLocation'](_0x8ebc35);for(const _0x584e19 of this['_tableSuggestions']){const _0x23b016=_0x584e19['subType'],_0xcdcaff=_0x23b016['startsWith']('tablePaste'),_0x59028d=_0x23b016['substr'](_0xcdcaff?0xa:0x5),_0x4c716f=_0x59028d['toLowerCase'](),_0x45297a=_0x4c716f['substr'](0x0,0x3)+'span',_0x2e7548='min'+_0x59028d,_0x58c8fe='max'+_0x59028d;if(!_0x584e19['isInContent'])continue;if(_0xaa27!=_0x584e19['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x584e19['isIntersectingWithRange'](_0x2d1f93))continue;const _0x4d9727=_0x8ebc35['hasAttribute'](_0x45297a)?_0x8ebc35['getAttribute'](_0x45297a)-0x1:0x0,_0x4c8fa0=this['_getSuggestionCoords'](_0x584e19),_0x4ba28a=_0x4c8fa0[_0x2e7548],_0x39a28d=_0x4c8fa0[_0x58c8fe];_0x4ba28a<=_0x487f0[_0x4c716f]&&_0x487f0[_0x4c716f]+_0x4d9727<=_0x39a28d&&(_0x584e19['addRange'](_0x2d1f93),_0xa811c1=!0x0);}return _0xa811c1;};_0x595f3c['model']['document']['registerPostFixer'](_0x13bd05=>{let _0x51d7fa=!0x1;for(const _0x304bd5 of _0x595f3c['model']['document']['differ']['getChanges']())if('insert'==_0x304bd5['type']){if('tableRow'==_0x304bd5['name']){for(const _0x50439e of _0x304bd5['position']['nodeAfter']['getChildren']())_0x51d7fa=_0x51d7fa||_0x9d19ea(_0x50439e,_0x13bd05);}else'tableCell'==_0x304bd5['name']&&(_0x51d7fa=_0x51d7fa||_0x9d19ea(_0x304bd5['position']['nodeAfter'],_0x13bd05));}return _0x51d7fa;});}['_getSuggestionCoords'](_0x8e0f93){return this['_getCoordsForCells'](_0x8e0f93['getRanges']()['map'](_0x4487cf=>_0x4487cf['start']['nodeAfter']));}}function xe(_0x3610d4){return Array['from'](new Set(_0x3610d4)['values']());}class Nt extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x43bf02=this['editor'],_0x19af18=_0x43bf02['model']['document']['selection'],_0x5bcec1=_0x43bf02['locale'];if(!_0x43bf02['plugins']['has']('TableEditing'))return;const _0x5c8374=_0x43bf02['plugins']['get']('TrackChangesEditing'),_0x1a7caf=_0x43bf02['plugins']['get']('TableUtils'),_0x45fe72=_0x43bf02['plugins']['get'](Ct);_0x45fe72['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c8374['enableCommand']('mergeTableCells',()=>{const _0x39abea=_0x1a7caf['getSelectionAffectedTableCells'](_0x43bf02['model']['document']['selection']);_0x43bf02['model']['change'](()=>{_0x5c8374['markMultiRangeBlockFormat'](_0x39abea,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43bf02['commands']['get']('mergeTableCells')['on']('execute',(_0x39a24e,_0x3a90cb)=>{_0x43bf02['commands']['get']('trackChanges')['value']&&(_0x3a90cb['length']>0x0&&_0x3a90cb[_0x3a90cb['length']-0x1]&&_0x3a90cb[_0x3a90cb['length']-0x1]['forceDefaultExecution']||_0x5c8374['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x39a24e['stop']());},{'priority':'highest'});for(const _0x16ef78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x274d11=_0x43bf02['commands']['get'](_0x16ef78);_0x5c8374['enableCommand'](_0x16ef78,()=>{const _0x4d54ac=_0x43bf02['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x767929=>_0x767929['is']('element','tableCell')),_0x9a6c29=_0x274d11['value'];_0x43bf02['model']['change'](()=>{_0x5c8374['markMultiRangeBlockFormat']([_0x4d54ac,_0x9a6c29],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x193507 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4c3388=_0x43bf02['commands']['get'](_0x193507);_0x5c8374['enableCommand'](_0x193507,()=>{const _0x47bd2c=_0x1a7caf['getSelectionAffectedTableCells'](_0x43bf02['model']['document']['selection'])[0x0],_0x11ac47=_0x47bd2c['findAncestor']('table'),{column:_0x341e9a,row:_0x36eebc}=_0x1a7caf['getCellLocation'](_0x47bd2c);let _0x26e0d9=[];if('horizontally'==_0x4c3388['direction']){const _0x38de85=_0x1a7caf['createTableWalker'](_0x11ac47,{'startRow':_0x36eebc,'endRow':_0x36eebc,'includeAllSlots':!0x0});_0x26e0d9=Array['from'](_0x38de85)['map'](_0x262ad1=>_0x262ad1['cell']);}else{const _0x1b0980=_0x1a7caf['createTableWalker'](_0x11ac47,{'column':_0x341e9a,'includeAllSlots':!0x0});_0x26e0d9=Array['from'](_0x1b0980)['map'](_0x266fbb=>_0x266fbb['cell']);}_0x43bf02['model']['change'](_0x2922fb=>{_0x5c8374['markBlockFormat'](_0x2922fb['createRangeOn'](_0x47bd2c),{'commandName':_0x193507,'commandParams':[]},_0x26e0d9,_0x193507);});});}_0x5c8374['descriptionFactory']['registerDescriptionCallback'](_0x3db5bf=>{if('formatBlock'!=_0x3db5bf['type']&&'formatInline'!=_0x3db5bf['type'])return;const {data:_0x162c77}=_0x3db5bf;return _0x162c77&&'mergeTableCells'==_0x162c77['commandName']?{'type':'format','content':c(_0x5bcec1,'*Merge\x20cells*')}:void 0x0;}),_0x5c8374['descriptionFactory']['registerDescriptionCallback'](_0x50ab24=>{if('formatBlock'!=_0x50ab24['type']&&'formatInline'!=_0x50ab24['type'])return;const {data:_0x14f4d7}=_0x50ab24;return _0x14f4d7?'splitTableCellVertically'==_0x14f4d7['commandName']?{'type':'format','content':c(_0x5bcec1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14f4d7['commandName']?{'type':'format','content':c(_0x5bcec1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x43059d=_0x45fe72['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dbbc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dbbc7,'accept',_0x43059d);for(const _0x2fd387 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fd387,'accept',_0x43059d);_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x452b8d=>{_0x43bf02['model']['change'](_0x304baa=>{const _0x2c7c11=Array['from'](_0x19af18['getRanges']())['map'](_0x9c9fe9=>_0x39b5cf['fromRange'](_0x9c9fe9));_0x304baa['setSelection'](_0x452b8d),_0x43bf02['commands']['get']('mergeTableCells')['refresh'](),_0x43bf02['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b54c3=_0x2c7c11['filter'](_0x304694=>'$graveyard'!=_0x304694['root']['rootName']);_0x1b54c3['length']>0x0&&_0x304baa['setSelection'](_0x1b54c3);for(const _0x23fe72 of _0x2c7c11)_0x23fe72['detach']();});});for(const _0x53c910 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xff6964=_0x43bf02['commands']['get'](_0x53c910);_0xff6964['on']('set:isEnabled',(_0x3216b5,_0x283153,_0x2eca40)=>{if(_0x2eca40){const _0x1ab712=_0x43bf02['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc13593=>_0xc13593['is']('element','tableCell'));this['_areMergableCells'](_0xff6964['value'],_0x1ab712)||(_0x3216b5['return']=!0x1,_0x3216b5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cb8fd=this['editor']['commands']['get']('mergeTableCells'),_0x53981f=this['editor']['plugins']['get']('TableUtils');if(!_0x3cb8fd['isEnabled'])return!0x1;const _0x530d5d=_0x53981f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x280c08 of _0x530d5d)for(const _0x1b41d7 of _0x530d5d)if(_0x280c08!=_0x1b41d7&&!this['_areMergableCells'](_0x280c08,_0x1b41d7))return!0x1;return!0x0;}['_areMergableCells'](_0x1904ff,_0xc8a84d){const _0x398bed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255e0a=this['editor']['model']['createRangeOn'](_0x1904ff),_0x899cca=this['editor']['model']['createRangeOn'](_0xc8a84d),_0x1ee67f=new Set(),_0x12eb65=new Set();for(const _0x485f29 of _0x398bed['getSuggestions']())if(('insertion'==_0x485f29['type']||'deletion'==_0x485f29['type']||'mergeTableCells'==_0x485f29['subType'])&&_0x485f29['isInContent']){for(const _0x3f9d6a of _0x485f29['getRanges']())_0x3f9d6a['containsRange'](_0x255e0a,!0x0)&&_0x1ee67f['add'](_0x485f29['type']+':'+_0x485f29['author']['id']),_0x3f9d6a['containsRange'](_0x899cca,!0x0)&&_0x12eb65['add'](_0x485f29['type']+':'+_0x485f29['author']['id']);}if(_0x1ee67f['size']!=_0x12eb65['size'])return!0x1;for(const _0x5141c1 of _0x1ee67f)if(!_0x12eb65['has'](_0x5141c1))return!0x1;return!0x0;}}class Dt extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x303059=this['editor'];if(!_0x303059['plugins']['has']('TableEditing'))return;const _0x44e564=_0x303059['locale'],_0x739425=_0x303059['plugins']['get']('TrackChangesEditing');_0x739425['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x739425['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x739425['registerBlockAttribute']('headingRows'),_0x739425['registerBlockAttribute']('headingColumns'),_0x739425['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x44e564,'FORMAT_HEADER_ROW')),_0x739425['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x44e564,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9c5901=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe67b=this['editor']['plugins']['get']('TableUtils'),_0x4d91ce=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x42c620({showActiveMarker:_0xd505f=!0x0,setDataAttribute:_0x2ccbc3=!0x0}={}){return(_0x10220f,_0x92c5f,_0x461595)=>{const {type:_0x283c70,id:_0x1f18fa}=_0x9c5901['_splitMarkerName'](_0x92c5f['markerName']),_0x145a3b=_0x9c5901['getSuggestion'](_0x1f18fa),_0x4d07b3=_0x145a3b['data'];if('formatBlock'!=_0x145a3b['type']||!_0x4d07b3||'setTableColumnHeader'!=_0x4d07b3['commandName'])return;if(_0x92c5f['item'])return void _0x10220f['stop']();if(!_0x461595['consumable']['consume'](_0x92c5f['markerRange'],_0x10220f['name']))return;const _0x3dcb7f=_0x92c5f['markerRange']['start']['nodeAfter'],_0x5e075f=_0x92c5f['markerRange']['end']['nodeBefore'],_0x4b1721=_0x3dcb7f['parent']['parent'],{column:_0x27f48f}=_0x2fe67b['getCellLocation'](_0x3dcb7f),{column:_0x2a1d22}=_0x2fe67b['getCellLocation'](_0x5e075f);for(let _0x230a29=_0x27f48f;_0x230a29<=_0x2a1d22;_0x230a29++){const _0x34ea31=_0x2fe67b['createTableWalker'](_0x4b1721,{'column':_0x230a29,'includeAllSlots':!0x1});for(const _0x378f51 of _0x34ea31){const _0x2952a6=_0x378f51['cell'],_0x45910a=_0x461595['mapper']['toViewElement'](_0x2952a6);_0x461595['writer']['addClass']('ck-suggestion-marker-'+_0x283c70,_0x45910a),_0x2ccbc3&&_0x461595['writer']['setAttribute']('data-suggestion',_0x1f18fa,_0x45910a),_0x461595['mapper']['bindElementToMarker'](_0x45910a,_0x92c5f['markerName']),_0xd505f&&(_0x9c5901['activeMarkers']['includes'](_0x92c5f['markerName'])?_0x461595['writer']['addClass']('ck-suggestion-marker--active',_0x45910a):_0x461595['writer']['removeClass']('ck-suggestion-marker--active',_0x45910a));}}};}_0x9c5901['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4d91ce),_0x9c5901['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4d91ce),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x42c620(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xae49f4,_0x34bf7c,_0x16063c)=>{_0x16063c['options']['showSuggestionHighlights']&&_0x42c620({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xae49f4,_0x34bf7c,_0x16063c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x10a0de,_0x543fe6,_0x28a91c)=>{const {type:_0x1fc6dd,id:_0x2dad6f}=_0x9c5901['_splitMarkerName'](_0x543fe6['markerName']),_0x18d47e=_0x9c5901['getSuggestion'](_0x2dad6f),_0x8e6336=_0x18d47e['data'];if('formatBlock'!=_0x18d47e['type']||!_0x8e6336||'setTableColumnHeader'!=_0x8e6336['commandName'])return;const _0x647051=_0x28a91c['mapper']['markerNameToElements'](_0x543fe6['markerName']);if(_0x647051){for(const _0x568247 of _0x647051)_0x28a91c['writer']['removeClass']('ck-suggestion-marker-'+_0x1fc6dd,_0x568247),_0x28a91c['writer']['removeClass']('ck-suggestion-marker--active',_0x568247),_0x28a91c['writer']['removeAttribute']('data-suggestion',_0x568247),_0x28a91c['mapper']['unbindElementFromMarkerName'](_0x568247,_0x543fe6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x437e77=this['editor'],_0x568c05=_0x437e77['locale'];function _0x1a7abe(_0x2775ff){return{'type':'format','content':c(_0x568c05,'*Format:*\x20%0',_0x2775ff)};}_0x437e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587066=>{if('formatBlock'!=_0x587066['type'])return;const {data:_0x1d6bf6}=_0x587066;if(_0x1d6bf6){if('setTableRowHeader'==_0x1d6bf6['commandName']){const _0x38aa22=_0x1d6bf6['commandParams'][0x0]['forceValue'];return _0x1a7abe(c(_0x568c05,_0x38aa22?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d6bf6['commandName']){const _0x1a7acb=_0x1d6bf6['commandParams'][0x0]['forceValue'];return _0x1a7abe(c(_0x568c05,_0x1a7acb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x59f721{['afterInit'](){const _0xd31ec0=this['editor'],_0x5c7b1d=_0xd31ec0['locale'],_0x57d786=_0xd31ec0['plugins']['get']('TrackChangesEditing');function _0x2ef867(_0x1bb5e9){return{'type':'format','content':''+c(_0x5c7b1d,'*Set\x20table\x20type:*\x20%0',_0x1bb5e9)};}_0xd31ec0['plugins']['has']('TableLayout')&&(_0x57d786['enableCommand']('insertTableLayout'),_0x57d786['enableDefaultAttributesIntegration']('tableType'),_0x57d786['registerBlockAttribute']('tableType'),_0x57d786['descriptionFactory']['registerElementLabel'](_0xc6b783=>_0xc6b783['is']('element','table')&&'layout'===_0xc6b783['getAttribute']('tableType'),_0x347ff0=>c(_0x5c7b1d,'ELEMENT_LAYOUT_TABLE',_0x347ff0)),_0x57d786['descriptionFactory']['registerDescriptionCallback'](_0x162f7b=>{const {data:_0x5753e0}=_0x162f7b;if(_0x5753e0&&'tableType'==_0x5753e0['key'])switch(_0x5753e0['newValue']){case'layout':return _0x2ef867(c(_0x5c7b1d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ef867(c(_0x5c7b1d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x2fcd86=>[_0x2fcd86,null]));class $t extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x178f3f=this['editor'];if(!_0x178f3f['plugins']['has']('TableClipboard'))return;const _0x4868af=_0x178f3f['plugins']['get']('TrackChangesEditing'),_0x477dfb=_0x178f3f['plugins']['get']('TableUtils'),_0x18b08a=_0x178f3f['plugins']['get'](Ct),_0x3a79b3=_0x178f3f['plugins']['get']('TableClipboard'),_0x2a702e=_0x178f3f['plugins']['get']('TableSelection'),_0x99e24=_0x178f3f['plugins']['get'](_0x3de457);_0x18b08a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x178f3f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x178f3f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a6898=null,_0x376159=!0x1;_0x99e24['on']('contentInsertion',(_0x3043aa,_0x4fe06a)=>{_0x376159='paste'===_0x4fe06a['method'];}),_0x178f3f['model']['on']('insertContent',(_0x14c33a,_0x18b3c8)=>{if(!_0x376159&&null===_0x2a702e['getSelectedTableCells']())return;const [_0x32d93f,_0x1b048b]=_0x18b3c8,_0x1d8641=_0x18b3c8[_0x18b3c8['length']-0x1];_0x1d8641&&_0x1d8641['forceDefaultExecution']||_0x4868af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a164b,_0x54a320,_0x58bc56,_0x39da26,_0x2ac08f){if(_0x54a320&&!_0x54a320['is']('documentSelection'))return!0x1;const _0x3d29ec=_0x2ac08f['getTableIfOnlyTableInContent'](_0x4a164b,_0x58bc56);if(!_0x3d29ec||!He(_0x3d29ec,void 0x0,_0x39da26))return!0x1;const _0x3a5530=_0x39da26['getSelectionAffectedTableCells'](_0x58bc56['document']['selection']);if(!_0x3a5530['length'])return!0x1;const _0x4217c8=_0x3a5530[0x0]['findAncestor']('table'),_0x1d89b8=_0x39da26['getRowIndexes'](_0x3a5530),_0x207e3c=_0x39da26['getColumnIndexes'](_0x3a5530),_0x5ba761={'startRow':_0x1d89b8['first'],'endRow':_0x1d89b8['last'],'startColumn':_0x207e3c['first'],'endColumn':_0x207e3c['last']};return 0x1==_0x3a5530['length']&&(_0x5ba761['endRow']+=_0x39da26['getRows'](_0x3d29ec)-0x1,_0x5ba761['endColumn']+=_0x39da26['getColumns'](_0x3d29ec)-0x1),He(_0x4217c8,_0x5ba761,_0x39da26);}(_0x32d93f,_0x1b048b,_0x178f3f['model'],_0x477dfb,_0x3a79b3)&&(_0x14c33a['stop'](),_0x3a6898={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x178f3f['model']['change'](()=>{_0x178f3f['model']['insertContent'](_0x18b3c8[0x0],_0x18b3c8[0x1],_0x18b3c8[0x2],{'forceDefaultExecution':!0x0});const _0x508ecf=_0x5011f0(),{rowInsertionRanges:_0x18026a,columnInsertionRanges:_0x1d4125,insertionRanges:_0x3883e2,deletionRanges:_0x34368b,cells:_0x5d09c9}=_0x3a6898;_0x18026a['length']&&_0x4868af['markMultiRangeInsertion'](_0x18026a,'tablePasteRow',{'tablePasteChainId':_0x508ecf}),_0x1d4125['length']&&_0x4868af['markMultiRangeInsertion'](_0x1d4125,'tablePasteColumn',{'tablePasteChainId':_0x508ecf}),_0x3883e2['length']&&(_0x4868af['markMultiRangeInsertion'](_0x3883e2,'tablePaste',{'tablePasteChainId':_0x508ecf,'skipNestingCheck':!0x0}),_0x3883e2['forEach'](_0x241379=>_0x241379['detach']?.())),_0x34368b['length']&&(_0x4868af['markMultiRangeDeletion'](_0x34368b,'tablePaste',{'tablePasteChainId':_0x508ecf,'skipNestingCheck':!0x0}),_0x34368b['forEach'](_0x1d80ab=>_0x1d80ab['detach']?.()));const _0x196692=_0x4868af['markMultiRangeBlockFormat'](_0x5d09c9['map'](({element:_0x1bf912})=>_0x1bf912),{'formatGroupId':_0x5011f0()},[],'tablePasteCell',{'tablePasteChainId':_0x508ecf});if(_0x196692){const _0x201b5d=_0x196692['getMarkers'](),_0x11e010=[];for(const {element:_0x211055,attributes:_0x5b1195}of _0x5d09c9){if(!_0x5b1195)continue;const _0x591e37=_0x178f3f['model']['createRangeOn'](_0x211055),_0x12504f=_0x201b5d['find'](_0x2ac909=>_0x2ac909['getRange']()['isEqual'](_0x591e37));_0x12504f&&_0x11e010['push']([_0x12504f['name'],_0x5b1195]);}_0x11e010['length']&&_0x196692['setAttribute']('markerAttributes',Object['fromEntries'](_0x11e010));}_0x3a6898=null;}));},{'priority':_0xc3ad2a['high']+0xa}),_0x99e24['on']('contentInsertion',()=>{_0x376159=!0x1;},{'priority':'lowest'}),_0x178f3f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x566606,_0x59fe05)=>{const [_0x594190,_0x52544c,,_0x51502a]=_0x59fe05;if(!_0x3a6898)return;_0x566606['stop']();const _0x4dfbdc=_0x594190['cell'],_0x3dd217=_0x52544c,_0x2583c6=De(_0x4dfbdc),_0x473270=De(_0x3dd217);_0x566606['return']=_0x4dfbdc;let _0xfdd777=null,_0x23194f=null;if(_0x473270||_0x2583c6){if(_0x2583c6&&!_0x473270){_0x51502a['remove'](_0x4dfbdc['getChild'](0x0));for(const _0x226254 of Array['from'](_0x3dd217['getChildren']()))_0x51502a['insert'](_0x226254,_0x4dfbdc,'end');const _0xc284a=_0x3a6898['rowInsertionIndexes']['includes'](_0x594190['row']),_0x31d16d=_0x3a6898['columnInsertionIndexes']['includes'](_0x594190['column']);_0xc284a||_0x31d16d||(_0xfdd777=_0x39b5cf['fromRange'](_0x51502a['createRangeIn'](_0x4dfbdc)));}else _0x473270&&!_0x2583c6&&(_0x23194f=_0x51502a['createRangeIn'](_0x4dfbdc));}else{const _0x5e0475=_0x51502a['createElement']('tableCellSuggestion'),_0xf86ac9=_0x51502a['createElement']('tableCellSuggestion');_0x51502a['wrap'](_0x51502a['createRangeIn'](_0x4dfbdc),_0xf86ac9),_0x51502a['insert'](_0x5e0475,_0x4dfbdc,0x0);for(const _0x5df6ad of Array['from'](_0x3dd217['getChildren']()))_0x51502a['insert'](_0x5df6ad,_0x5e0475,'end');_0xfdd777=_0x39b5cf['fromRange'](_0x51502a['createRangeOn'](_0x5e0475)),_0x23194f=_0x39b5cf['fromRange'](_0x51502a['createRangeOn'](_0xf86ac9));}const _0x1a9a12=Array['from'](_0x3dd217['getAttributes']())['filter'](([_0x8d57db])=>Oe['includes'](_0x8d57db));_0x3a6898['cells']['push']({'element':_0x4dfbdc,'attributes':_0x1a9a12['length']?Object['fromEntries'](_0x1a9a12):null}),_0xfdd777&&_0x3a6898['insertionRanges']['push'](_0xfdd777),_0x23194f&&_0x3a6898['deletionRanges']['push'](_0x23194f);},{'priority':'high'}),_0x477dfb['on']('insertColumns',(_0x4524b0,_0x287bc6)=>{const [_0x2fa10b,_0x532d7d={}]=_0x287bc6;if(!_0x3a6898)return;const _0x4b2ba1=_0x532d7d['at']||0x0,_0x374026=_0x532d7d['columns']||0x1;_0x3a6898['columnInsertionIndexes']=new Array(_0x374026)['fill'](_0x4b2ba1)['map']((_0x3583b0,_0x37ca6b)=>_0x3583b0+_0x37ca6b);for(const {cell:_0x46e359}of _0x477dfb['createTableWalker'](_0x2fa10b,{'startColumn':_0x4b2ba1,'endColumn':_0x4b2ba1+_0x374026-0x1}))_0x3a6898['columnInsertionRanges']['push'](_0x178f3f['model']['createRangeOn'](_0x46e359));},{'priority':'low'}),_0x477dfb['on']('insertRows',(_0x1d0392,_0x180a09)=>{const [_0x4c274f,_0x377db4={}]=_0x180a09;if(!_0x3a6898)return;const _0x49d8cf=_0x377db4['at']||0x0,_0x2ed148=_0x377db4['rows']||0x1;_0x3a6898['rowInsertionIndexes']=new Array(_0x2ed148)['fill'](_0x49d8cf)['map']((_0x3392f2,_0x55b2f1)=>_0x3392f2+_0x55b2f1);for(const {cell:_0x2f4e61}of _0x477dfb['createTableWalker'](_0x4c274f,{'startRow':_0x49d8cf,'endRow':_0x49d8cf+_0x2ed148-0x1}))_0x3a6898['rowInsertionRanges']['push'](_0x178f3f['model']['createRangeOn'](_0x2f4e61));},{'priority':'low'}),_0x4868af['descriptionFactory']['registerDescriptionCallback'](_0xd2b10e=>{if(_0xd2b10e['subType']&&_0xd2b10e['subType']['startsWith']('tablePaste'))return _0xd2b10e['previous']?{}:{'type':'insertion','content':c(_0x178f3f['locale'],'*Replace\x20table\x20cells*')};});const _0x55d2b0=()=>!0x1;for(const _0x244971 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion',_0x244971,'join',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('deletion',_0x244971,'join',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x244971,'join',_0x55d2b0);_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x23d92a,_0x50fa93,_0x346c8d)=>{const _0x8332d4=_0x23d92a['map'](_0x4d15bc=>_0x4d15bc['getContainedElement']())['filter'](_0x99c93f=>_0x99c93f),_0xf50106=new Map(_0x8332d4['map'](_0x52b080=>[_0x52b080,null]));if(_0x3a6898){for(const {element:_0x1553dd,attributes:_0x11f359}of _0x3a6898['cells'])_0x11f359&&_0xf50106['set'](_0x1553dd,_0x11f359);}else{if(_0x346c8d&&_0x346c8d['markerAttributes'])for(const [_0x3dc600,_0x469cca]of Object['entries'](_0x346c8d['markerAttributes'])){const _0x427944=_0x178f3f['model']['markers']['get'](_0x3dc600),_0x155221=_0x427944?_0x427944['getRange']()['getContainedElement']():null;_0x155221&&_0xf50106['set'](_0x155221,_0x469cca);}}_0x178f3f['model']['change'](_0x3f0f4b=>{for(const [_0x10afd0,_0x340ea4]of _0xf50106)_0x3f0f4b['setAttributes']({...Ue,..._0x340ea4},_0x10afd0);});});const _0x3feb7c=(_0x4e715f,_0x5b30fa)=>{_0x4868af['_suggestionFactory']['registerCustomCallback'](_0x4e715f,'tablePaste',_0x5b30fa,(_0x3f6a33,_0x2b712e,_0x2c39db)=>{_0x178f3f['model']['change'](_0x3430af=>{const _0x2f9527=[];for(const _0x517fbb of _0x3f6a33){const _0x4ff912=_0x517fbb['start']['nodeAfter'];_0x4ff912['is']('element','tableCellSuggestion')&&_0x2f9527['push'](_0x4ff912);}_0x4868af['_suggestionFactory']['getSuggestionCallback'](_0x4e715f,null,_0x5b30fa)(_0x3f6a33,_0x2b712e,_0x2c39db);for(const _0x27cc36 of _0x2f9527)'$graveyard'!=_0x27cc36['root']['rootName']&&_0x3430af['unwrap'](_0x27cc36);});});};_0x3feb7c('insertion','accept'),_0x3feb7c('insertion','discard'),_0x3feb7c('deletion','accept'),_0x3feb7c('deletion','discard'),_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d4270=>{const _0x5f270b=_0x4d4270['map'](_0x38aeb7=>_0x38aeb7['getContainedElement']()),_0x5b5ac8=_0x5f270b[0x0]['findAncestor']('table'),{minRow:_0x5cb0d0,maxRow:_0x2332b1}=_0x18b08a['_getCoordsForCells'](_0x5f270b);_0x477dfb['removeRows'](_0x5b5ac8,{'at':_0x5cb0d0,'rows':_0x2332b1-_0x5cb0d0+0x1});}),_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x372cc0=>{const _0x319506=_0x372cc0['map'](_0x15cff8=>_0x15cff8['getContainedElement']()),_0x5120d2=_0x319506[0x0]['findAncestor']('table'),{minColumn:_0xcd179,maxColumn:_0x1c2603}=_0x18b08a['_getCoordsForCells'](_0x319506);_0x477dfb['removeColumns'](_0x5120d2,{'at':_0xcd179,'columns':_0x1c2603-_0xcd179+0x1});});const _0x964f19=(_0x70664d,_0x1a5a20)=>{if(!_0x1a5a20['subType']||!_0x1a5a20['subType']['startsWith']('tablePaste'))return;const _0x1c25df=_0x1a5a20['attributes']['tablePasteChainId'],_0x3eb782=_0x4868af['getSuggestions']()['filter'](_0xf93f58=>_0xf93f58['isInContent']&&_0xf93f58['attributes']&&_0xf93f58['attributes']['tablePasteChainId']==_0x1c25df);_0x3eb782['length']&&_0x1a5a20['getAllAdjacentSuggestions']()['length']!=_0x3eb782['length']&&_0x3eb782['reduce']((_0x30945a,_0x2e46a6)=>(_0x30945a['next']=_0x2e46a6,_0x2e46a6['previous']=_0x30945a,_0x2e46a6));};function _0x5e7f89(_0x1f4e9d,_0x41bc16=!0x0){const {id:_0x29c1ae,authorId:_0x3a1b69}=_0x4868af['_splitMarkerName'](_0x1f4e9d['markerName']),_0x56501f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa70d42=_0x4868af['activeMarkers']['includes'](_0x1f4e9d['markerName']);return _0xa70d42&&_0x56501f['push']('ck-suggestion-marker--active'),{'classes':_0x56501f,'attributes':{'data-suggestion':_0x29c1ae,'data-author-id':_0x3a1b69},'priority':_0xa70d42&&_0x41bc16?0xbc2:0xbb8};}_0x4868af['on']('suggestionLoaded',_0x964f19,{'priority':'high'}),_0x4868af['on']('suggestionUnloaded',_0x964f19,{'priority':'high'}),_0x178f3f['model']['document']['registerPostFixer'](()=>{let _0x439a6f=!0x1;const _0x4815c0=Array['from'](_0x178f3f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c4b24,data:_0x4f1c41}of _0x4815c0){const {group:_0x396812,type:_0x5a3fec,id:_0x2625a0}=_0x4868af['_splitMarkerName'](_0x5c4b24);if('suggestion'!=_0x396812||'deletion'!=_0x5a3fec||_0x4f1c41['oldRange'])continue;if(!_0x4868af['hasSuggestion'](_0x2625a0))continue;const _0x3270df=_0x4868af['getSuggestion'](_0x2625a0)['getRanges'](),_0x3c8941=_0x178f3f['plugins']['get']('Users')['me'];for(const _0x9f657b of _0x4868af['getSuggestions']()){if(!_0x9f657b['isInContent']||_0x9f657b['author']!=_0x3c8941)continue;if('formatBlock'!=_0x9f657b['type']||'tablePasteCell'!=_0x9f657b['subType'])continue;if(_0x9f657b['getRanges']()['every'](_0x255467=>_0x3270df['some'](_0xde89cb=>_0xde89cb['containsRange'](_0x255467,!0x0)))){for(const _0x2125b0 of _0x9f657b['getAllAdjacentSuggestions']())_0x2125b0['isInContent']&&(_0x2125b0['discard'](),_0x439a6f=!0x0);}}}return _0x439a6f;}),_0x178f3f['model']['document']['registerPostFixer'](_0x5f1480=>{const _0x40a6de=_0x178f3f['commands']['get']('redo');if(!_0x40a6de||!_0x40a6de['_createdBatches']['has'](_0x5f1480['batch']))return!0x1;let _0x4b16ea=!0x1;const _0x5dfcd8=_0x178f3f['plugins']['get']('Users')['me'],_0x2e9814=_0x178f3f['model']['document']['differ']['getChanges'](),_0x319c3a=Array['from'](_0x178f3f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x55c2a8,data:_0x24e51e})=>{const {group:_0x1ebdd1,subType:_0x343344,authorId:_0x3a7dd2}=_0x4868af['_splitMarkerName'](_0x55c2a8);return'suggestion'==_0x1ebdd1&&'tablePaste'==_0x343344&&_0x3a7dd2==_0x5dfcd8['id']&&!_0x24e51e['oldRange'];});for(const _0x12126c of _0x2e9814){if('insert'!=_0x12126c['type']||'tableCellSuggestion'!=_0x12126c['name']||0x1!=_0x12126c['length'])continue;const _0x521e43=_0x5f1480['createRange'](_0x12126c['position'],_0x12126c['position']['getShiftedBy'](0x1));if(!_0x319c3a['find'](({data:_0x475948})=>_0x475948['newRange']['isEqual'](_0x521e43))){for(const {name:_0x229064,data:_0x372602}of _0x319c3a)if(_0x521e43['containsRange'](_0x372602['newRange'])){_0x5f1480['updateMarker'](_0x229064,{'range':_0x521e43}),_0x4b16ea=!0x0;break;}}}return _0x4b16ea;}),_0x178f3f['model']['document']['registerPostFixer'](_0x2d9e5b=>{let _0x4ceab0=!0x1;const _0x30c762=_0x178f3f['plugins']['get']('Users')['me'],_0x5d7e84=_0x4868af['getSuggestions']()['filter'](_0x116a2e=>_0x116a2e['isInContent']&&_0x116a2e['author']==_0x30c762),_0x59bdbb=new Set(),_0xb3ca8f=new Set();for(const _0x43a0dd of _0x5d7e84)if('tablePaste'==_0x43a0dd['subType'])for(const _0x2389d7 of _0x43a0dd['getMarkers']()){const _0x4cc6e3=_0x2389d7['getRange']()['getContainedElement']();if(_0x4cc6e3){if(_0x4cc6e3['is']('element','tableCellSuggestion')&&De(_0x4cc6e3)){_0x43a0dd['removeMarker'](_0x2389d7['name']),_0x59bdbb['add'](_0x4cc6e3),_0x4ceab0=!0x0;const _0x7ce39d=_0x4cc6e3['nextSibling'],_0x2c330c=_0x4cc6e3['previousSibling'],_0xbe2be4=_0x7ce39d&&_0x7ce39d['is']('element','tableCellSuggestion'),_0x23fc43=_0x2c330c&&_0x2c330c['is']('element','tableCellSuggestion');_0xbe2be4&&!_0x59bdbb['has'](_0x7ce39d)&&_0xb3ca8f['add'](_0x7ce39d),_0x23fc43&&!_0x59bdbb['has'](_0x2c330c)&&_0xb3ca8f['add'](_0x2c330c);}else _0x4cc6e3['is']('element','paragraph')&&_0x4cc6e3['isEmpty']&&(_0x43a0dd['removeMarker'](_0x2389d7['name']),_0x4ceab0=!0x0);}}else{if('tablePasteCell'==_0x43a0dd['subType']){if(!_0x43a0dd['attributes']||!_0x43a0dd['attributes']['tablePasteChainId'])continue;const _0x525672=_0x43a0dd['attributes']['markerAttributes'];if(_0x525672&&Object['keys'](_0x525672)['length'])continue;const _0xcba77f=_0x43a0dd['attributes']['tablePasteChainId'];let _0x3b81ff=!0x0,_0x5e8442=!0x0;for(const _0x3e6539 of _0x5d7e84)if(_0x3e6539['subType']&&_0x3e6539['subType']['startsWith']('tablePaste')){if(!_0x3e6539['attributes']['tablePasteChainId']){_0x5e8442=!0x1;break;}if(_0x3e6539['id']!=_0x43a0dd['id']&&_0x3e6539['attributes']['tablePasteChainId']==_0xcba77f){_0x3b81ff=!0x1;break;}}_0x5e8442&&_0x3b81ff&&(_0x43a0dd['removeMarkers'](),_0x4ceab0=!0x0);}}for(const _0x566ba0 of _0x59bdbb)_0x2d9e5b['remove'](_0x566ba0);for(const _0x39843a of _0xb3ca8f)_0x2d9e5b['unwrap'](_0x39843a);return _0x4ceab0;}),_0x178f3f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x46b4f9=>_0x5e7f89(_0x46b4f9),'converterPriority':'high'}),_0x178f3f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57b85d,_0x5b791d)=>_0x5b791d['options']['showSuggestionHighlights']?_0x5e7f89(_0x57b85d,!0x1):null,'converterPriority':'high'});const _0x25a26a=_0x178f3f['editing']['view'];this['listenTo'](_0x25a26a['document'],'clipboardOutput',(_0x395e7b,_0x2cce4d)=>{const _0x5727f2=[];for(const _0xa4057a of _0x25a26a['createRangeIn'](_0x2cce4d['content'])['getItems']())_0xa4057a['is']('element','suggestion-td')&&_0x5727f2['push'](_0xa4057a);_0x25a26a['change'](_0x1d52d4=>{for(const _0x14805d of _0x5727f2)_0x1d52d4['move'](_0x1d52d4['createRangeIn'](_0x14805d),_0x1d52d4['createPositionBefore'](_0x14805d)),_0x1d52d4['remove'](_0x14805d);});});}}function De(_0x59fe12){if(_0x59fe12['isEmpty'])return!0x0;const _0x1d8956=_0x59fe12['getChild'](0x0);return _0x1d8956['is']('element','paragraph')&&_0x1d8956['isEmpty'];}function He(_0x8a288,_0x36abaf={},_0x40c4e5){for(const {isAnchor:_0x3d8764,cellHeight:_0x3f323f,cellWidth:_0x3d6de4}of _0x40c4e5['createTableWalker'](_0x8a288,{'includeAllSlots':!0x0,..._0x36abaf}))if(!_0x3d8764||0x1!=_0x3f323f||0x1!=_0x3d6de4)return!0x1;return!0x0;}class Bt extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x58b634=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b634['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x58b634['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x58b634['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58b634['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x58b634['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x58b634['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x18b6f3,_0x3d741b){const _0x29ef61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488bc8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29394d=_0x3d741b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4cd98e=_0x488bc8['getColumnGroupElement'](_0x29394d);let _0x5da0a5=_0x4cd98e?_0x488bc8['getTableColumnsWidths'](_0x4cd98e):null,_0x95f2ca=_0x29394d['getAttribute']('tableWidth')||null;const _0x10fc06=_0x3d741b['tableWidth']||_0x95f2ca,_0xf7c488=_0x3d741b['columnWidths']||_0x5da0a5,_0x19b340=this['editor']['plugins']['get']('Users')['me'];for(const _0x574bba of _0x29ef61['getSuggestions']()){const _0x17437f=_0x574bba['getContainedElement']();if('resizeTable'===_0x574bba['subType']&&_0x17437f===_0x29394d){_0x574bba['author']!==_0x19b340&&_0x574bba['discard']();const _0x5db760=_0x574bba['data']['commandParams'];_0x95f2ca=_0x5db760[0x0]['tableWidth'],_0x5da0a5=_0x5db760[0x0]['columnWidths'];break;}}_0x18b6f3({'table':_0x29394d,'tableWidth':_0x10fc06,'columnWidths':_0xf7c488}),_0x29ef61['markBlockFormat'](_0x29394d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x95f2ca,'columnWidths':_0x5da0a5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x159a29){if('formatBlock'!=_0x159a29['type']&&'formatInline'!=_0x159a29['type'])return;const {data:_0x3be470}=_0x159a29;if(_0x3be470&&'resizeTable'===_0x3be470['formatGroupId']){const _0x3a1ad8='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3a1ad8)};}}}class xt extends _0x59f721{['afterInit'](){const _0x253993=this['editor'];_0x253993['plugins']['has']('Template')&&_0x253993['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x59f721{['afterInit'](){const _0x3ff5df=this['editor'];if(!_0x3ff5df['commands']['get']('insertTableOfContents'))return;_0x3ff5df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28c651=_0x3ff5df['plugins']['get']('TrackChangesEditing'),_0x3e1fdb=_0x3ff5df['locale'];_0x28c651['descriptionFactory']['registerElementLabel']('tableOfContents',_0x72bbf5=>c(_0x3e1fdb,'ELEMENT_TABLE_OF_CONTENTS',_0x72bbf5));}}class Rt extends _0x59f721{['afterInit'](){const _0x16c291=this['editor'];if(!_0x16c291['plugins']['has']('Title'))return;const _0x335b36=_0x16c291['plugins']['get']('TrackChangesEditing');_0x335b36['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x16c291['locale'],'ELEMENT_TITLE')),_0x16c291['model']['document']['registerPostFixer'](_0x355181=>{let _0x3624bf=!0x1;const _0x20cf22=Array['from'](_0x16c291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39a0e8,data:_0x2beac1}of _0x20cf22){const {group:_0x515dda}=_0x335b36['_splitMarkerName'](_0x39a0e8);if('suggestion'!==_0x515dda||!_0x2beac1['newRange'])continue;const _0x26fff9=_0x2beac1['newRange'],_0x7e2097=_0x26fff9['end']['nodeBefore'];if(!_0x7e2097||!_0x7e2097['is']('element','title-content'))continue;if(!_0x26fff9['start']['isTouching'](_0x26fff9['end']))continue;const _0x58464f=_0x16c291['model']['schema']['getNearestSelectionRange'](_0x26fff9['end'],'forward');if(_0x58464f&&_0x58464f['isCollapsed']){const _0x159337=_0x355181['createRange'](_0x26fff9['start'],_0x58464f['start']);_0x159337['isEqual'](_0x26fff9)||(_0x355181['updateMarker'](_0x39a0e8,{'range':_0x159337}),_0x3624bf=!0x0);}_0x3624bf||(_0x355181['removeMarker'](_0x39a0e8),_0x3624bf=!0x0);}return _0x3624bf;});}}class Tt extends _0x59f721{['afterInit'](){const _0x28602b=this['editor'],_0x226ed9=_0x28602b['plugins']['get']('TrackChangesEditing');_0x28602b['plugins']['has']('Uploadcare')&&(_0x226ed9['enableCommand']('uploadcare'),_0x28602b['plugins']['has']('UploadcareImageEdit')&&(_0x226ed9['enableCommand']('uploadcareImageEdit'),_0x226ed9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x226ed9['registerBlockAttribute']('uploadcareImageId'),_0x226ed9['descriptionFactory']['registerDescriptionCallback'](_0x2dd645=>{if('attribute'!=_0x2dd645['type'])return;const {data:_0x48981d}=_0x2dd645;return _0x48981d&&'uploadcareImageId'==_0x48981d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x59f721{['afterInit'](){const _0x171f3b=this['editor'],_0x446cff=_0x171f3b['plugins']['get']('TrackChangesEditing');_0x171f3b['plugins']['has']('UndoEditing')&&(_0x446cff['enableCommand']('undo'),_0x446cff['enableCommand']('redo'));}}class Ut extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a9b23=this['editor'];if(!_0x2a9b23['plugins']['has']('TableCaptionEditing'))return;_0x2a9b23['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x59f721{['tableProperties'];['tableCellProperties'];constructor(_0x37cad9){super(_0x37cad9),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 _0x405237=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6f2c12 of this['tableProperties'])_0x405237['enableCommand'](_0x6f2c12,(_0x1784f6,_0x3ba4af)=>{const _0x167e0d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6f2c12,[_0x167e0d],this['tableProperties'],'tableProperties',_0x1784f6,_0x3ba4af);});_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x405237['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3db157,_0x238fa2)=>this['handleDiscardAction'](this['tableProperties'],_0x3db157,_0x238fa2)),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x34a42a of this['tableCellProperties'])_0x405237['enableCommand'](_0x34a42a,(_0x5bdc35,_0x505718)=>{const _0x3cbd48=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x34a42a,_0x3cbd48,this['tableCellProperties'],'tableCellProperties',_0x5bdc35,_0x505718);});_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x405237['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cdcec,_0xec5a2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cdcec,_0xec5a2)),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x405237['descriptionFactory']['registerDescriptionCallback'](_0x5f3c6d=>this['handleSuggestionDescription'](_0x5f3c6d));}['_handlePropertyChange'](_0xccb3ec,_0xf493d4,_0x140623,_0x1f5f42,_0x407557,_0x5b7fbe){const _0x3d749a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b7fbe['batch'],()=>{for(const _0x5d662c of _0xf493d4){if(this['_getSuggestion'](_0x5d662c,_0x1f5f42))_0x407557(_0x5b7fbe);else{const _0x4603c3={};for(const _0x489f28 of _0x140623){const _0x3432fa=_0x5d662c['getAttribute'](_0x489f28);void 0x0!==_0x3432fa&&(_0x4603c3[_0x489f28]=_0x3432fa);}_0x407557(_0x5b7fbe),_0x3d749a['markBlockFormat'](_0x5d662c,{'commandParams':[_0x4603c3]},[],_0x1f5f42);}}});}['handleDiscardAction'](_0x1b0598,_0xc7e27b,_0x419a1e){const _0x3974d5=_0xc7e27b[0x0]['start']['nodeAfter'],_0x36f5b9=_0x419a1e['commandParams'][0x0];this['editor']['model']['change'](_0x31749a=>{for(const _0x513bd3 of _0x1b0598)void 0x0!==_0x36f5b9[_0x513bd3]?_0x31749a['setAttribute'](_0x513bd3,_0x36f5b9[_0x513bd3],_0x3974d5):_0x31749a['removeAttribute'](_0x513bd3,_0x3974d5);});}['handleSuggestionDescription'](_0x130494){if(_0x130494['data'])switch(_0x130494['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'](_0x474cea,_0x199046){const _0x27ef16=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x478202 of _0x27ef16['getSuggestions']({'skipNotAttached':!0x0})){const _0xe9fb0c=_0x478202['getContainedElement']();if(_0x478202['subType']===_0x199046&&_0xe9fb0c===_0x474cea)return _0x478202;}return null;}}const u='$elementName';class p extends _0x59f721{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x182af8,_0x3bd73a,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b576f){super(_0x5b576f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x252d14,_0x586ac9,_0x2bcefb,_0x34c3e8)=>{this['_model']['change'](()=>{for(const _0x1408cb of[..._0x34c3e8,..._0x2bcefb])this['_model']['markers']['has'](_0x1408cb)&&_0x5b576f['editing']['reconvertMarker'](_0x1408cb);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b576f['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(),_0x5b576f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b576f['config']['get']('trackChanges.trackFormatChanges'),_0x5b576f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b576f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b576f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f8ca4=this['editor'],_0x123358=(_0x248417,_0x37f260)=>{if('attribute'!=_0x248417)return'ck-suggestion-marker-'+_0x248417;const _0x2f6f3e=_0x37f260['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f6f3e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f8ca4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x251e95=>{const {id:_0x55c9af,authorId:_0x393459,type:_0x1cca1e,subType:_0x4ae0cc}=this['_splitMarkerName'](_0x251e95['markerName']),_0x44d201=['ck-suggestion-marker',_0x123358(_0x1cca1e,_0x4ae0cc)];let _0x53e251=0xbb8;return this['activeMarkers']['includes'](_0x251e95['markerName'])&&(_0x44d201['push']('ck-suggestion-marker--active'),_0x53e251=0xbc2),'deletion'==_0x1cca1e&&(_0x53e251+=0x5),{'classes':_0x44d201,'attributes':{'data-suggestion':_0x55c9af,'data-author-id':_0x393459},'priority':_0x53e251};}}),_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x54b8b9=>{_0x54b8b9['on']('addMarker:suggestion',(_0x4f311c,_0x48f7fe,_0x18973c)=>{if(!_0x18973c['options']['showSuggestionHighlights'])return;const _0x4a5ff7=_0x48f7fe['item'];if(!_0x4a5ff7)return;const _0xa4236=_0x18973c['mapper']['toViewElement'](_0x4a5ff7);_0x1f8ca4['model']['schema']['isObject'](_0x4a5ff7)&&_0xa4236&&!_0xa4236['getCustomProperty']('widget')&&_0xa4236['is']('containerElement')&&_0x22735a(_0xa4236,_0x18973c['writer']);},{'priority':'high'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x89c745,_0x2e1619)=>{if(!_0x2e1619['options']['showSuggestionHighlights'])return null;const {id:_0x224d50,authorId:_0x154a52,type:_0x21575a,subType:_0x1cbba9}=this['_splitMarkerName'](_0x89c745['markerName']);return{'classes':['ck-suggestion-marker',_0x123358(_0x21575a,_0x1cbba9)],'priority':0xbb8,'attributes':{'data-suggestion':_0x224d50,'data-author-id':_0x154a52}};}});const _0x31e8de=({showActiveMarkers:_0x20cb1c=!0x0,isAttributeSuggestion:_0x13c7ef=!0x1}={})=>(_0x4760f0,_0x32b2b0,_0xb7a2ab)=>{if(!_0x32b2b0['item'])return;const {id:_0x2fe371,authorId:_0x40d17e}=this['_splitMarkerName'](_0x32b2b0['markerName']);if(_0x13c7ef){const _0x4df824=this['_suggestions']['get'](_0x2fe371),_0x3d7ede=this['_getAttributeKey'](_0x4df824);if(!this['_isBlockAttribute'](_0x3d7ede))return;}if(_0x32b2b0['item']['is']('selection'))return void _0xb7a2ab['consumable']['consume'](_0x32b2b0['item'],_0x4760f0['name']);const _0x231678=_0xb7a2ab['mapper']['toViewElement'](_0x32b2b0['item']);if(_0x32b2b0['item']['is']('element')&&_0x1f8ca4['model']['schema']['isBlock'](_0x32b2b0['item'])&&!_0x231678['getCustomProperty']('addHighlight')){_0xb7a2ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x231678),_0xb7a2ab['writer']['setAttribute']('data-suggestion',_0x2fe371,_0x231678),_0xb7a2ab['writer']['setAttribute']('data-author-id',_0x40d17e,_0x231678),_0xb7a2ab['mapper']['bindElementToMarker'](_0x231678,_0x32b2b0['markerName']),_0x20cb1c&&(this['activeMarkers']['includes'](_0x32b2b0['markerName'])?_0xb7a2ab['writer']['addClass']('ck-suggestion-marker--active',_0x231678):_0xb7a2ab['writer']['removeClass']('ck-suggestion-marker--active',_0x231678));for(const _0x58de2c of _0x1f8ca4['model']['createRangeIn'](_0x32b2b0['item'])['getItems']())_0xb7a2ab['consumable']['consume'](_0x58de2c,_0x4760f0['name']);_0xb7a2ab['consumable']['consume'](_0x32b2b0['item'],_0x4760f0['name']);}};_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x20952d=>{_0x20952d['on']('addMarker:suggestion:formatBlock',(_0x549f48,_0x11906c,_0x151124)=>{_0x151124['options']['showSuggestionHighlights']&&_0x31e8de({'showActiveMarkers':!0x1})(_0x549f48,_0x11906c,_0x151124);},{'priority':'highest'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x5169a5=>{_0x5169a5['on']('addMarker:suggestion:attribute',(_0x6eef22,_0x5d802c,_0x19ffc4)=>{_0x19ffc4['options']['showSuggestionHighlights']&&_0x31e8de({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x6eef22,_0x5d802c,_0x19ffc4);},{'priority':'highest'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x365e20,_0x403eff)=>{if(_0x403eff['options']['showSuggestionHighlights']){const {id:_0xa648e5,authorId:_0x5d80f3}=this['_splitMarkerName'](_0x365e20);return _0x365e20['includes'](':split')||_0x365e20['includes'](':merge')?{'group':'suggestion','name':_0x365e20['substr'](0xb),'attributes':{'data-suggestion':_0xa648e5,'data-author-id':_0x5d80f3}}:null;}return{'group':'suggestion','name':_0x365e20['substr'](0xb)};}}),_0x1f8ca4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b0efd,{writer:_0x4bb0f2})=>{let _0x5e287e='suggestion:'+_0x4b0efd['getAttribute']('suggestion-type')+':'+_0x4b0efd['getAttribute']('id');return _0x4b0efd['getAttribute']('marker-count')&&(_0x5e287e+=':'+_0x4b0efd['getAttribute']('marker-count')),_0x4bb0f2['createElement']('$marker',{'data-name':_0x5e287e});}}),_0x1f8ca4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x33b77f=>{_0x33b77f['on']('addMarker:suggestion:formatBlock',_0x31e8de(),{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x24897d=>{_0x24897d['on']('addMarker:suggestion:attribute',_0x31e8de({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x338ae9=>{_0x338ae9['on']('removeMarker:suggestion:formatBlock',(_0x297d02,_0x31fbfb,_0x499d61)=>{const _0xb6ab88=_0x499d61['mapper']['markerNameToElements'](_0x31fbfb['markerName']);if(_0xb6ab88){for(const _0x7192c of _0xb6ab88)_0x7192c['getCustomProperty']('addHighlight')||(_0x499d61['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7192c),_0x499d61['writer']['removeAttribute']('data-suggestion',_0x7192c),_0x499d61['writer']['removeAttribute']('data-author-id',_0x7192c),_0x499d61['mapper']['unbindElementFromMarkerName'](_0x7192c,_0x31fbfb['markerName']));}},{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x3ecd9e=>{_0x3ecd9e['on']('removeMarker:suggestion:attribute',(_0xee2861,_0xf20724,_0xa92a33)=>{const _0x2a30ad=_0xa92a33['mapper']['markerNameToElements'](_0xf20724['markerName']);if(!_0x2a30ad)return;const {id:_0x38ac21}=this['_splitMarkerName'](_0xf20724['markerName']),_0x571d24=this['_suggestions']['get'](_0x38ac21),_0x251700=this['_getAttributeKey'](_0x571d24);if(this['_isBlockAttribute'](_0x251700)){for(const _0x2f8b2e of _0x2a30ad)_0x2f8b2e['getCustomProperty']('addHighlight')||(_0xa92a33['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f8b2e),_0xa92a33['writer']['removeAttribute']('data-suggestion',_0x2f8b2e),_0xa92a33['writer']['removeAttribute']('data-author-id',_0x2f8b2e),_0xa92a33['mapper']['unbindElementFromMarkerName'](_0x2f8b2e,_0xf20724['markerName']));}},{'priority':'high'});}),_0x1f8ca4['model']['document']['registerPostFixer'](_0x3de0eb=>{let _0x46f1b2=!0x1;const _0x463e34=Array['from'](_0x1f8ca4['model']['document']['differ']['getChangedMarkers']()),_0x429c1e=new Set();for(const {name:_0x12fa3a,data:_0x1dd82f}of _0x463e34){const {group:_0xfd970f,type:_0x5ebf48,subType:_0x52ebef,id:_0x9552da}=this['_splitMarkerName'](_0x12fa3a);if('suggestion'!==_0xfd970f)continue;const _0x1e8440=this['_suggestions']['get'](_0x9552da);if(null!=_0x1dd82f['newRange']){'formatInline'==_0x5ebf48&&(_0x46f1b2=_0x46f1b2||Jt(_0x1dd82f['newRange'],_0x12fa3a,_0x3de0eb,_0x1f8ca4['model']['schema']));const _0x3a857d='attribute'==_0x5ebf48&&this['_isBlockAttribute'](_0x52ebef['split']('|')[0x0]);if(_0x1dd82f['newRange']['isCollapsed']||'$graveyard'==_0x1dd82f['newRange']['root']['rootName']||'formatBlock'==_0x5ebf48&&!Ht(_0x1dd82f['newRange'])||_0x3a857d&&!Ht(_0x1dd82f['newRange'])||'deletion'==_0x5ebf48&&!(!Lt(_0x34ef54=_0x1dd82f['newRange'])&&!function(_0x31ad71){return _0x31ad71['start']['parent']==_0x31ad71['end']['nodeBefore']&&_0x31ad71['start']['isAtEnd'];}(_0x34ef54)))_0x3de0eb['removeMarker'](_0x12fa3a),_0x46f1b2=!0x0;else{if(!_0x1e8440||!_0x1e8440['isInContent'])continue;if(_0x1dd82f['newRange']&&_0x1dd82f['oldRange']&&_0x1dd82f['newRange']['isEqual'](_0x1dd82f['oldRange']))continue;_0x429c1e['add'](_0x1e8440);}}}var _0x34ef54;return _0x429c1e['size']>0x0&&(_0x46f1b2=!!this['_joinWithAdjacentSuggestions'](_0x429c1e)||_0x46f1b2),_0x46f1b2;}),_0x1f8ca4['model']['document']['registerPostFixer'](_0xa0f901=>{let _0x58b436=!0x1;for(const _0x1b6dfd of _0x1f8ca4['model']['document']['differ']['getChanges']())if('insert'==_0x1b6dfd['type'])for(const _0x5c020d of this['_suggestions']['values']()){if(_0x5c020d['isMultiRange']||!_0x5c020d['isInContent'])continue;const _0x18ea6a='formatBlock'==_0x5c020d['type'],_0x31686b=this['_getAttributeKey'](_0x5c020d),_0xc79426=_0x31686b&&this['_isBlockAttribute'](_0x31686b);if(!_0x18ea6a&&!_0xc79426)continue;const _0xdf5cbc=_0x5c020d['getFirstRange']();if(_0xdf5cbc['start']['parent']!=_0xdf5cbc['end']['parent']&&!_0xdf5cbc['end']['isAtEnd']){const _0x135719=_0x1f8ca4['model']['createPositionAt'](_0xdf5cbc['start']['nodeAfter'],'end'),_0x4de165=_0x1f8ca4['model']['createRange'](_0xdf5cbc['start'],_0x135719);_0xa0f901['updateMarker'](_0x5c020d['getFirstMarker'](),{'range':_0x4de165}),_0x58b436=!0x0;}}return _0x58b436;}),_0x1f8ca4['model']['document']['registerPostFixer'](_0x48f2c0=>this['_processAttributeChanges'](_0x48f2c0)),_0x1f8ca4['model']['document']['registerPostFixer'](_0x57f741=>!_0x57f741['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57f741)),_0x1f8ca4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f8ca4['model']['document']['on']('change:data',(_0x50905c,_0x1f1ec6)=>{if(!_0x1f1ec6['isLocal']||_0x1f1ec6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x384373=_0x1f8ca4['model']['document']['differ']['getChanges']();if(0x0==_0x384373['length'])return;const _0x152d69=[],_0x45d87d=_0x384373['filter'](_0x35218f=>'attribute'==_0x35218f['type']),_0x2f9624=_0x384373['filter'](_0x142f72=>'insert'==_0x142f72['type']&&'$text'!=_0x142f72['name']);for(const _0x5e5a06 of _0x45d87d)this['_isRegisteredAttribute'](_0x5e5a06['attributeKey'])&&_0x152d69['push']({'key':_0x5e5a06['attributeKey'],'newValue':_0x5e5a06['attributeNewValue'],'oldValue':_0x5e5a06['attributeOldValue'],'range':qt(_0x5e5a06['range'],_0x1f8ca4['model'])});for(const _0x195261 of _0x2f9624){if('rename'!=_0x195261['action']&&'refresh'!=_0x195261['action'])continue;const _0x587451=zt(_0x195261['position']['nodeAfter'],_0x1f8ca4['model']),_0x12ec6a=_0x195261['before'];'rename'==_0x195261['action']&&_0x152d69['push']({'key':u,'newValue':_0x195261['name'],'oldValue':_0x12ec6a['name'],'range':_0x587451});for(const [_0x2a70ce,_0x32a652]of _0x12ec6a['attributes']){if(!this['_isRegisteredAttribute'](_0x2a70ce))continue;const _0x3ffb56=_0x195261['attributes']['get'](_0x2a70ce);_0x32a652!==_0x3ffb56&&_0x152d69['push']({'key':_0x2a70ce,'newValue':_0x3ffb56,'oldValue':_0x32a652,'range':_0x587451});}for(const [_0x7b2f9b,_0x5f56f7]of _0x195261['attributes'])this['_isRegisteredAttribute'](_0x7b2f9b)&&(_0x12ec6a['attributes']['has'](_0x7b2f9b)||_0x152d69['push']({'key':_0x7b2f9b,'newValue':_0x5f56f7,'oldValue':null,'range':_0x587451}));}0x0!=_0x152d69['length']&&_0x1f8ca4['model']['enqueueChange'](_0x1f1ec6,_0x3baae8=>{const _0x7eee9d=_0x5011f0();for(const {range:_0x280a56,key:_0x3dd14f,oldValue:_0x526ee3,newValue:_0x3bd82e}of _0x152d69)this['markAttributeChange'](_0x280a56,_0x3dd14f,_0x526ee3,_0x3bd82e,{'groupId':_0x7eee9d});this['_reduceExistingSuggestions'](_0x3baae8,_0x152d69);});},{'priority':'lowest'}),_0x1f8ca4['model']['markers']['on']('update:suggestion',(_0x5be88a,_0x45c887,_0x27d2d6)=>{if(null==_0x27d2d6){const {id:_0x3fdf38}=this['_splitMarkerName'](_0x45c887['name']),_0x15fed1=this['_suggestions']['get'](_0x3fdf38);_0x15fed1&&_0x15fed1['addMarkerName'](_0x45c887['name']);}}),_0x1f8ca4['model']['document']['on']('change:data',()=>{const _0x447dd9=Array['from'](_0x1f8ca4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38b487=>'suggestion'===this['_splitMarkerName'](_0x38b487['name'])['group']);if(0x0===_0x447dd9['length'])return;_0x447dd9['sort']((_0x2c9860,_0x1197ff)=>{const _0x2d1e10=_0x2c9860['data']['oldRange'],_0xa5169c=_0x1197ff['data']['oldRange'];return null===_0x2d1e10&&null===_0xa5169c?0x0:null===_0x2d1e10&&null!==_0xa5169c?-0x1:null!==_0x2d1e10&&null===_0xa5169c?0x1:_0x2d1e10['start']['isBefore'](_0xa5169c['start'])?-0x1:0x1;});const _0x55ccd3=new Set(),_0x306c4d=new Set();for(const {name:_0x2c4fda,data:_0x4c54a4}of _0x447dd9){const {id:_0x1b3d74}=this['_splitMarkerName'](_0x2c4fda);if(null===_0x4c54a4['oldRange']){const _0x10b65e=this['_handleNewSuggestionMarker'](_0x2c4fda);_0x306c4d['add'](_0x10b65e);}else{const _0x527f79=this['_suggestions']['get'](_0x1b3d74);null!==_0x4c54a4['newRange']||_0x527f79['isInContent']?(_0x55ccd3['add'](_0x527f79['head']),_0x306c4d['add'](_0x527f79)):this['_removeSuggestion'](_0x527f79);}}_0x306c4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x306c4d);for(const _0x14969d of _0x55ccd3)this['fire']('suggestionChanged',_0x14969d);}),_0x1f8ca4['model']['on']('applyOperation',(_0x430a04,_0x3292f4)=>{const _0x107f0e=_0x3292f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x107f0e['isDocumentOperation'])return;if(_0x107f0e['batch']['isUndo']||!_0x107f0e['batch']['isLocal'])return;let _0x4afa99,_0x3008d5;switch(_0x107f0e['type']){case'insert':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['position']),_0x3008d5=_0x4afa99['getShiftedBy'](_0x107f0e['howMany']);break;case'split':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['splitPosition']),_0x3008d5=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['moveTargetPosition']);break;case'move':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['targetPosition']),_0x3008d5=_0x4afa99['getShiftedBy'](_0x107f0e['howMany']);break;default:return;}const _0x2659f1=_0x1f8ca4['model']['createRange'](_0x4afa99,_0x3008d5);_0x1f8ca4['model']['change'](()=>{for(const {suggestion:_0x4ffe4e,meta:_0x24d0fe}of this['_findSuggestions'](_0x2659f1)){if(_0x4ffe4e['isMultiRange'])continue;if('formatInline'==_0x4ffe4e['type'])continue;const _0x21d6a0=this['_getAttributeKey'](_0x4ffe4e);if(_0x21d6a0&&this['_isBlockAttribute'](_0x21d6a0)&&'split'!=_0x107f0e['type'])continue;const _0x53e663=_0x4ffe4e['data']&&_0x4ffe4e['data']['multipleBlocks'];('formatBlock'!=_0x4ffe4e['type']||'split'==_0x107f0e['type']&&!_0x53e663)&&(_0x24d0fe['containsRangeInObject']||'insertion'==_0x4ffe4e['type']&&_0x24d0fe['isOwn']||_0x4ffe4e['getFirstRange']()['containsRange'](_0x2659f1)&&this['_breakSuggestionMarker'](_0x4ffe4e,_0x4afa99,_0x3008d5));}});},{'priority':'lowest'}),_0x1f8ca4['model']['on']('deleteContent',(_0xcd2a40,_0x54f42c)=>{const _0x2a40f2=_0x54f42c[0x0],_0x835aa0=_0x54f42c[0x1];if(_0x835aa0&&_0x835aa0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2a40f2['isCollapsed'])return;const _0x412d4d=_0x1f8ca4['model']['schema'],{start:_0xd8e56d,end:_0x54932a}=_0x2a40f2['getFirstRange'](),_0x4fdefb=_0xd8e56d['nodeAfter']&&_0x412d4d['isLimit'](_0xd8e56d['nodeAfter'])?null:_0x412d4d['getNearestSelectionRange'](_0xd8e56d,'forward'),_0x3d3c76=_0x54932a['nodeBefore']&&_0x412d4d['isLimit'](_0x54932a['nodeBefore'])?null:_0x412d4d['getNearestSelectionRange'](_0x54932a,'backward'),_0x10cb7b=_0x1f8ca4['model']['createRange'](_0x4fdefb?_0x4fdefb['start']:_0xd8e56d,_0x3d3c76?_0x3d3c76['end']:_0x54932a);_0x1f8ca4['model']['change'](_0x4a37a1=>{this['markDeletion'](_0x10cb7b);const _0x422f32=_0x1f8ca4['model']['schema']['getNearestSelectionRange'](_0x10cb7b['start']);_0x2a40f2['is']('documentSelection')?_0x4a37a1['setSelection'](_0x422f32):_0x2a40f2['setTo'](_0x422f32);}),_0xcd2a40['stop']();},{'priority':_0xc3ad2a['normal']+0xa}),_0x1f8ca4['model']['on']('insertContent',(_0x59fc53,_0x470327)=>{const _0x132e96=_0x470327[_0x470327['length']-0x1];_0x132e96&&_0x132e96['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f8ca4['model']['change'](()=>{let _0x413c4b=_0x1f8ca4['model']['insertContent'](_0x470327[0x0],_0x470327[0x1],_0x470327[0x2],{'forceDefaultExecution':!0x0});if(!_0x413c4b)return;_0x59fc53['return']=_0x413c4b['clone']();const _0xcc9a5d=_0x413c4b['end']['nodeBefore'],_0x5b63ae=_0x1f8ca4['model']['schema'];_0xcc9a5d&&_0x5b63ae['isBlock'](_0xcc9a5d)&&!_0x5b63ae['isObject'](_0xcc9a5d)&&(_0x413c4b=_0x1f8ca4['model']['createRange'](_0x413c4b['start'],_0x1f8ca4['model']['createPositionAt'](_0xcc9a5d,'end'))),this['markInsertion'](_0x413c4b);}),_0x59fc53['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3874df=new x(_0x1f8ca4,this['_suggestions']);_0x1f8ca4['commands']['add']('acceptSuggestion',_0x3874df),this['enableCommand']('acceptSuggestion');const _0x3f63a9=new O(_0x1f8ca4,this['_suggestions']);_0x1f8ca4['commands']['add']('discardSuggestion',_0x3f63a9),this['enableCommand']('discardSuggestion'),_0x1f8ca4['commands']['add']('acceptAllSuggestions',new R(_0x1f8ca4,_0x3874df,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f8ca4['commands']['add']('discardAllSuggestions',new R(_0x1f8ca4,_0x3f63a9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f8ca4['commands']['add']('acceptSelectedSuggestions',new E(_0x1f8ca4,_0x3874df,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f8ca4['commands']['add']('discardSelectedSuggestions',new E(_0x1f8ca4,_0x3f63a9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8dfbe2=_0x1f8ca4['plugins']['get']('CommentsRepository');this['listenTo'](_0x8dfbe2,'addComment',(_0x517f8a,{threadId:_0x3152ed})=>{const _0x5a0499=this['_suggestions']['get'](_0x3152ed);_0x5a0499&&_0x5a0499['commentThread']&&0x1===_0x5a0499['commentThread']['length']&&this['_updateSuggestionData'](_0x3152ed,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8dfbe2,'removeComment',(_0x31e69e,{threadId:_0x3c11ed})=>{const _0x3c7e55=this['_suggestions']['get'](_0x3c11ed);_0x3c7e55&&_0x3c7e55['commentThread']&&!_0x3c7e55['commentThread']['length']&&this['_updateSuggestionData'](_0x3c11ed,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1e7a3b){const _0x30e9f1=_0x58b508([0x4d,0x38,0x79,0x42,0x34,0x74,0x41,0x35,0x33,0x71,0x69,0x57,0x37,0x52,0x32,0x53,0x65,0x54,0x49,0x70,0x73,0x63,0x67,0x4b,0x77,0x75,0x4e,0x43,0x72,0x36,0x31,0x62,0x4c,0x6e,0x6a,0x64,0x30,0x50,0x5a,0x78,0x55,0x44,0x46,0x56,0x68,0x6b,0x51,0x47,0x6c,0x58,0x45,0x59,0x61,0x48,0x39,0x66,0x76,0x6d,0x4a,0x6f,0x7a,0x4f]),_0x54cd7f=0x1840e652,_0x5a416f=0x18478f02^_0x54cd7f,_0x38f162=window[_0x58b508([0x44,0x61,0x74,0x65])][_0x58b508([0x6e,0x6f,0x77])](),_0x582a60=_0x1e7a3b[_0x58b508([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcb6ad6=new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5467d9=>{_0x582a60[_0x58b508([0x6f,0x6e,0x63,0x65])](_0x58b508([0x72,0x65,0x61,0x64,0x79]),_0x5467d9);}),_0x427a30={[_0x58b508([0x6b,0x74,0x79])]:_0x58b508([0x45,0x43]),[_0x58b508([0x75,0x73,0x65])]:_0x58b508([0x73,0x69,0x67]),[_0x58b508([0x63,0x72,0x76])]:_0x58b508([0x50,0x2d,0x32,0x35,0x36]),[_0x58b508([0x78])]:_0x58b508([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]),[_0x58b508([0x79])]:_0x58b508([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]),[_0x58b508([0x61,0x6c,0x67])]:_0x58b508([0x45,0x53,0x32,0x35,0x36])},_0x5c9aef=_0x582a60[_0x58b508([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58b508([0x67,0x65,0x74])](_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35f583(){let _0xe5b84b,_0x153cab=null,_0x5a1db1=null;try{if(_0x5c9aef==_0x58b508([0x47,0x50,0x4c]))return _0x58b508([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe5b84b=_0x4f38df(),!_0xe5b84b)return _0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe5b84b[_0x58b508([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a1db1=_0x481929(_0xe5b84b[_0x58b508([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe5b84b[_0x58b508([0x6a,0x74,0x69])])),await _0x1e39dd()?_0x8718bb()?_0x5961e1()?_0x58b508([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20b95a()?(_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58b508([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x153cab=_0x32ceee(_0x58b508([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58b508([0x74,0x72,0x69,0x61,0x6c])&&(_0x153cab=_0x32ceee(_0x58b508([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4cdbc5()):_0x58b508([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58b508([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5961e1(){const _0x418151=[_0x58b508([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58b508([0x74,0x72,0x69,0x61,0x6c])][_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f162/0x3e8:0xe10*_0x5a416f;return _0xe5b84b[_0x58b508([0x65,0x78,0x70])]<_0x418151;}function _0x8718bb(){const _0x53b3dc=_0xe5b84b[_0x58b508([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53b3dc)return!0x1;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x2a])))return!0x0;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x54,0x43])))return!0x0;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x52,0x54,0x43]))){if(_0x2f3f08())return!0x0;if(_0x59da3f()||_0x5547e1())return!0x0;}return!0x1;}function _0x20b95a(){const _0x23b4ab=_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23b4ab||0x0==_0x23b4ab[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57cd1a}=new URL(window[_0x58b508([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23b4ab[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd1a))return!0x0;const _0x4d2672=_0x57cd1a[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e]));return _0x23b4ab[_0x58b508([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182ec9=>_0x182ec9[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x2a])))[_0x58b508([0x6d,0x61,0x70])](_0x2a95dd=>_0x2a95dd[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e])))[_0x58b508([0x73,0x6f,0x6d,0x65])](_0x29d330=>_0x4d2672[_0x58b508([0x65,0x76,0x65,0x72,0x79])]((_0x3aa8ce,_0x361140)=>_0x29d330[_0x361140]===_0x3aa8ce||_0x29d330[_0x361140]===_0x58b508([0x2a])));}function _0x4cdbc5(){return _0x153cab&&_0x5a1db1?new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253e10,_0x56109c)=>{_0x153cab[_0x58b508([0x74,0x68,0x65,0x6e])](_0x253e10,_0x56109c),_0x5a1db1[_0x58b508([0x74,0x68,0x65,0x6e])](_0x284d89=>{_0x284d89!=_0x58b508([0x56,0x61,0x6c,0x69,0x64])&&_0x253e10(_0x284d89);},_0x56109c);}):_0x153cab||_0x5a1db1||_0x58b508([0x56,0x61,0x6c,0x69,0x64]);}}function _0x481929(_0x225ffe,_0x3403d1){return new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa26281=>{if(_0x55dd9d())return _0xa26281(_0x58b508([0x56,0x61,0x6c,0x69,0x64]));_0x2374b2(),_0x582a60[_0x58b508([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa61695=!0x1;const _0x5eab98=_0x5011f0();function _0x3583ac(_0x474132){return!!_0x474132&&(typeof _0x474132===_0x58b508([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x474132===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x474132[_0x58b508([0x74,0x68,0x65,0x6e])]===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x474132[_0x58b508([0x63,0x61,0x74,0x63,0x68])]===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d0d0c(_0x49fc23){_0x3b9102(_0x49fc23)[_0x58b508([0x74,0x68,0x65,0x6e])](_0x3b9838=>{if(!_0x3b9838||_0x3b9838[_0x58b508([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58b508([0x6f,0x6b]))return _0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19e0a5(_0x1ac65a(_0x5eab98+_0x3403d1))!=_0x3b9838[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58b508([0x56,0x61,0x6c,0x69,0x64]);})[_0x58b508([0x74,0x68,0x65,0x6e])](_0x51a329=>(_0x1516fa(),_0x51a329),()=>{const _0x47cc70=_0x553140();return null==_0x47cc70?(_0x1516fa(),_0x58b508([0x56,0x61,0x6c,0x69,0x64])):_0x58b508(_0x38f162-_0x47cc70>(0x3c4c6252^_0x54cd7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58b508([0x74,0x68,0x65,0x6e])](_0xa26281)[_0x58b508([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24231c=0x187608d2^_0x54cd7f;function _0x1516fa(){const _0x4a8046=_0x58b508([0x6c,0x6c,0x63,0x74,0x2d])+_0x19e0a5(_0x1ac65a(_0x225ffe)),_0x464f67=_0x2cc887(_0x19e0a5(window[_0x58b508([0x4d,0x61,0x74,0x68])][_0x58b508([0x63,0x65,0x69,0x6c])](_0x38f162/_0x24231c)));window[_0x58b508([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58b508([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a8046,_0x464f67);}function _0x553140(){const _0x167a9d=_0x58b508([0x6c,0x6c,0x63,0x74,0x2d])+_0x19e0a5(_0x1ac65a(_0x225ffe)),_0x1bc950=window[_0x58b508([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58b508([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x167a9d);return _0x1bc950?window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc887(_0x1bc950),0x10)*_0x24231c:null;}function _0x3b9102(_0x3b8da4){return new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x574195,_0x17b5cd)=>{_0x3b8da4[_0x58b508([0x74,0x68,0x65,0x6e])](_0x574195,_0x17b5cd),window[_0x58b508([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17b5cd,0x18413292^_0x54cd7f);});}}_0x582a60[_0x58b508([0x6f,0x6e])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x522e6a,_0x3678fa)=>{if(_0x3678fa[0x0]!=_0x225ffe)return _0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3678fa[0x1]={..._0x3678fa[0x1],[_0x58b508([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5eab98};},{[_0x58b508([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58b508([0x68,0x69,0x67,0x68])}),_0x582a60[_0x58b508([0x6f,0x6e])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1723ed=>{_0x3583ac(_0x1723ed[_0x58b508([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa61695=!0x0,_0x1d0d0c(_0x1723ed[_0x58b508([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58b508([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58b508([0x6c,0x6f,0x77])}),_0xcb6ad6[_0x58b508([0x74,0x68,0x65,0x6e])](()=>{_0xa61695||_0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55dd9d(){return _0x582a60[_0x58b508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b508([0x76,0x69,0x65,0x77])][_0x58b508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58b508([0x61,0x75,0x74,0x6f]);}function _0x2374b2(){_0x582a60[_0x58b508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b508([0x76,0x69,0x65,0x77])][_0x58b508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58b508([0x61,0x75,0x74,0x6f]);}}function _0x32ceee(_0x1b11c0){const _0x5f7e94=[new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499b63=>setTimeout(_0x499b63,0x1849d89e^_0x54cd7f)),_0xcb6ad6[_0x58b508([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d67d=>{let _0x94a65d=0x0;_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x6f,0x6e])](_0x58b508([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x80294a,_0x2666d3)=>{_0x2666d3[0x0][_0x58b508([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x94a65d++,_0x94a65d==(0x1840e7aa^_0x54cd7f)&&(_0x29d67d(),_0x80294a[_0x58b508([0x6f,0x66,0x66])]());});}))];return window[_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58b508([0x72,0x61,0x63,0x65])](_0x5f7e94)[_0x58b508([0x74,0x68,0x65,0x6e])](()=>_0x1b11c0);}async function _0x2cfc51(){await _0xcb6ad6,_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x534667,_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x534667,_0x582a60[_0x58b508([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58b508([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f3f08(){return _0x52955e(_0x58b508([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17da55(_0x58b508([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58b508([0x73,0x74,0x61,0x74,0x65])]==_0x58b508([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59da3f(){return _0x52955e(_0x58b508([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 _0x5547e1(){return _0x52955e(_0x58b508([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x207a3b(_0x30e251){const _0x41723a=_0x42e282();_0x582a60[_0x41723a]=_0x58b508([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30e251,_0x30e251!=_0x58b508([0x56,0x61,0x6c,0x69,0x64])&&_0x2cfc51();}function _0x42e282(){const _0x25eabd=window[_0x58b508([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58b508([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58b508([0x6e,0x6f,0x77])]())[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58b508([0x2e]),'');let _0x261265=_0x58b508([0x4d]);for(let _0x208772=0x0;_0x208772<_0x25eabd[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x208772+=0x2){let _0x733532=window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25eabd[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x208772,_0x208772+0x2));_0x733532>=_0x30e9f1[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x733532-=_0x30e9f1[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x261265+=_0x30e9f1[_0x733532];}return _0x261265;}function _0x4f38df(){const _0x2a5f2e=_0x5c9aef[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e]));if(0x3!=_0x2a5f2e[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53256a(_0x2a5f2e[0x1]);function _0x53256a(_0x385e83){const _0x1465dc=_0x27fb6f(_0x385e83);return _0x1465dc&&_0x24fb40()?_0x1465dc:null;function _0x24fb40(){const _0x838bfa=_0x1465dc[_0x58b508([0x6a,0x74,0x69])],_0x4ef120=window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x838bfa[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x838bfa[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x185c15={..._0x1465dc,[_0x58b508([0x6a,0x74,0x69])]:_0x838bfa[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x838bfa[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x185c15[_0x58b508([0x76,0x63])],_0x1ac65a(_0x185c15)==_0x4ef120;}}}async function _0x1e39dd(){let _0xbe5338=!0x0;try{const _0x51158e=_0x5c9aef[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e])),[_0x37ca2a,_0x43010b,_0x3e26c6]=_0x51158e;return _0x47f73f(_0x37ca2a),await _0x46af90(_0x37ca2a,_0x43010b,_0x3e26c6),_0xbe5338;}catch{return!0x1;}function _0x47f73f(_0x167108){const _0x234457=_0x27fb6f(_0x167108);_0x234457&&_0x234457[_0x58b508([0x61,0x6c,0x67])]==_0x58b508([0x45,0x53,0x32,0x35,0x36])||(_0xbe5338=!0x1);}async function _0x46af90(_0x4657d6,_0x188fd7,_0x545d4c){const _0x56162a=window[_0x58b508([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58b508([0x66,0x72,0x6f,0x6d])](_0x48d247(_0x545d4c),_0x405a2b=>_0x405a2b[_0x58b508([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x105ee2=new window[(_0x58b508([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58b508([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4657d6+_0x58b508([0x2e])+_0x188fd7),_0x2e4bb1=window[_0x58b508([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58b508([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e4bb1)return;const _0x1d9c7f=await _0x2e4bb1[_0x58b508([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58b508([0x6a,0x77,0x6b]),_0x427a30,{[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x45,0x43,0x44,0x53,0x41]),[_0x58b508([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58b508([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e4bb1[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x45,0x43,0x44,0x53,0x41]),[_0x58b508([0x68,0x61,0x73,0x68])]:{[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9c7f,_0x56162a,_0x105ee2)||(_0xbe5338=!0x1);}}function _0x27fb6f(_0x15e783){return _0x15e783[_0x58b508([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58b508([0x65,0x79]))?JSON[_0x58b508([0x70,0x61,0x72,0x73,0x65])](_0x48d247(_0x15e783)):null;}function _0x48d247(_0x54c032){return window[_0x58b508([0x61,0x74,0x6f,0x62])](_0x54c032[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58b508([0x2b]))[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58b508([0x2f])));}function _0x1ac65a(_0x49d986){let _0x4b9503=0x1505;function _0x4bd63d(_0x57af11){for(let _0x50240a=0x0;_0x50240a<_0x57af11[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50240a++){const _0x430ef0=_0x57af11[_0x58b508([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50240a);_0x4b9503=(_0x4b9503<<0x5)+_0x4b9503+_0x430ef0,_0x4b9503&=_0x4b9503;}}function _0x502918(_0x109d51){Array[_0x58b508([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x109d51)?_0x109d51[_0x58b508([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x502918):_0x109d51&&typeof _0x109d51==_0x58b508([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58b508([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x109d51)[_0x58b508([0x73,0x6f,0x72,0x74])]()[_0x58b508([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16f122,_0x70c158])=>{_0x4bd63d(_0x16f122),_0x502918(_0x70c158);}):_0x4bd63d(window[_0x58b508([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x109d51));}return _0x502918(_0x49d986),_0x4b9503>>>0x0;}function _0x19e0a5(_0x4b04de){return _0x4b04de[_0x58b508([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58b508([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58b508([0x30]));}function _0x2cc887(_0x4ae5fa){return _0x4ae5fa[_0x58b508([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58b508([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58b508([0x6a,0x6f,0x69,0x6e])]('');}function _0x52955e(_0x44e624){return _0x582a60[_0x58b508([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58b508([0x68,0x61,0x73])](_0x44e624);}function _0x17da55(_0x175033){return _0x582a60[_0x58b508([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58b508([0x67,0x65,0x74])](_0x175033);}function _0x534667(){}function _0x58b508(_0x569c2e){return _0x569c2e['map'](_0x2afc6f=>String['fromCharCode'](_0x2afc6f))['join']('');}_0x207a3b(await _0x35f583());}(this);}set['adapter'](_0x2b7aed){if(this['_adapter'])throw new _0x280f1c('track-changes-adapter-already-set',this);this['_adapter']=_0x2b7aed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ad23b=!0x1,toJSON:_0x33f6e5=!0x1}={}){const _0x32e51b=[];for(const _0x37cbf7 of this['_suggestions']['values']())_0x2ad23b&&!_0x37cbf7['isInContent']||_0x32e51b['push'](_0x37cbf7);return _0x33f6e5?_0x32e51b['map'](_0x4919b6=>_0x4919b6['toJSON']()):_0x32e51b;}['getSuggestion'](_0x4c1d11){const _0x4280e3=this['_suggestions']['get'](_0x4c1d11);if(!_0x4280e3)throw new _0x280f1c('track-changes-suggestion-not-found',this);return _0x4280e3;}['hasSuggestion'](_0x28caf0){return this['_suggestions']['has'](_0x28caf0);}['addSuggestionData'](_0x4c9275){const {authorId:_0x545abc,id:_0x37e56f,originalSuggestionId:_0x442c5e,attributes:_0x4a7879}=_0x4c9275,[_0x382f33,_0x3fb68d]=_0x4c9275['type']['split'](':'),_0x4992d4=this['_suggestions']['get'](_0x37e56f)||this['_createSuggestion'](_0x382f33,_0x3fb68d,_0x37e56f,_0x545abc,_0x4a7879,_0x442c5e);if(this['_addThreadToSuggestion'](_0x4992d4),this['_checkSuggestionCorrectness'](_0x4992d4,_0x382f33,_0x3fb68d||null,_0x545abc),_0x4992d4['createdAt']=_0x4c9275['createdAt'],_0x4992d4['_isDataLoaded']=!0x0,_0x4a7879&&_0x4a7879['@external']){const _0x1538ed=_0x4a7879['@external'],_0x2c8edd=this['_getExternalAuthor'](_0x1538ed['authorName']);_0x4992d4['authoredAt']=_0x1538ed['createdAt'],_0x4992d4['author']=_0x2c8edd,_0x4992d4['isExternal']=!0x0;}else _0x4992d4['authoredAt']=_0x4c9275['createdAt'];switch(_0x4c9275['data']&&(_0x4992d4['data']=_0x4c9275['data']),_0x4c9275['attributes']&&(_0x4992d4['attributes']=_0x4c9275['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4992d4['_saved']=!0x0),this['_suggestionState']['get'](_0x4992d4)){case'notReady':this['_suggestionState']['set'](_0x4992d4,'dataReady');break;case'markerReady':_0x4992d4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4992d4])),this['_refreshSuggestionsChain'](new Set([_0x4992d4])),this['_suggestionState']['set'](_0x4992d4,'ready'),this['fire']('suggestionLoaded',_0x4992d4)):this['_suggestionState']['set'](_0x4992d4,'removed');}return _0x4992d4;}['acceptSuggestion'](_0x367b43){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2733d3 of _0x367b43['getAllAdjacentSuggestions']())_0x2733d3['accept']();});});}['discardSuggestion'](_0x312515){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2cbf94 of _0x312515['getAllAdjacentSuggestions']())_0x2cbf94['discard']();});});}['enableCommand'](_0x846e44,_0x2c23f9){const _0x284336=this['editor']['commands']['get'](_0x846e44);if(!_0x284336)throw new _0x280f1c('track-changes-command-not-found',this,{'commandName':_0x846e44});if(this['_enabledCommands']['has'](_0x284336))throw new _0x280f1c('track-changes-enable-command-twice',this,{'commandName':_0x846e44});this['_enabledCommands']['add'](_0x284336),_0x2c23f9&&_0x284336['on']('execute',(_0x11ccde,_0xc3c0e0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc3c0e0['length']>0x0&&_0xc3c0e0[_0xc3c0e0['length']-0x1]&&_0xc3c0e0[_0xc3c0e0['length']-0x1]['forceDefaultExecution']?_0xc3c0e0['pop']():(_0x11ccde['return']=_0x2c23f9((..._0x57232c)=>_0x284336['execute'](..._0x57232c,{'forceDefaultExecution':!0x0}),..._0xc3c0e0),_0x11ccde['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1343aa){let _0x2c1ba4,_0x43a838;const _0x5826ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c1ba4=_0x1343aa();}catch(_0x369752){_0x43a838=_0x369752;}return _0x5826ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x43a838&&_0x280f1c['rethrowUnexpectedError'](_0x43a838,this),_0x2c1ba4;}['markInsertion'](_0x347bb2,_0x408e64=null,_0x18e330={}){if(_0x347bb2['isCollapsed'])return null;const _0x5f40fd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x18e330['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x502c0a,meta:_0x3ad36d}of this['_findSuggestions'](_0x347bb2,'insertion'))if(_0x3ad36d['isOwn']){if(!_0x3ad36d['isNextTo']){if(_0x3ad36d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x502c0a,_0x18e330))continue;return _0x502c0a;}if(Xt(_0x502c0a,_0x18e330))return _0x502c0a;this['_breakSuggestionMarker'](_0x502c0a,_0x347bb2['start'],_0x347bb2['end']);break;}if(_0x408e64==_0x502c0a['subType']&&Xt(_0x502c0a,_0x18e330)){const _0x36b15a=_0x502c0a['getFirstRange']();return _0x36b15a['start']['isEqual'](_0x347bb2['end'])?this['_setSuggestionRange'](_0x502c0a,this['_model']['createRange'](_0x347bb2['start'],_0x36b15a['end'])):this['_setSuggestionRange'](_0x502c0a,this['_model']['createRange'](_0x36b15a['start'],_0x347bb2['end'])),_0x502c0a;}}const _0x2dab48=_0x5011f0(),_0x55aa1d=_0x5f40fd['id'],_0x1751b4=_0x408e64?'insertion:'+_0x408e64:'insertion',_0x45c6cc=this['_setSuggestionData']({'id':_0x2dab48,'type':_0x1751b4,'createdAt':new Date(),'authorId':_0x55aa1d,'attributes':_0x18e330});return this['_addSuggestionMarker'](_0x1751b4,_0x2dab48,_0x55aa1d,_0x347bb2),_0x45c6cc;}['markMultiRangeInsertion'](_0xf718ff,_0x141f0f='multi',_0x4481d5={}){const _0x35c3ef=this['editor']['plugins']['get']('Users')['me'],_0x3fe373=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x141f0f,'join');this['_trackingSessionId']&&(_0x4481d5['trackingSessionId']=this['_trackingSessionId']);for(const _0x14d010 of this['getSuggestions']())if(_0x14d010['author']['id']==_0x35c3ef['id']&&'insertion'==_0x14d010['type']&&_0x14d010['subType']==_0x141f0f&&Xt(_0x14d010,_0x4481d5)&&(_0x3fe373(_0x14d010['getRanges'](),_0xf718ff)||_0x3fe373(_0xf718ff,_0x14d010['getRanges']()))){for(const _0x6c82d8 of _0xf718ff)_0x14d010['addRange'](_0x6c82d8);return _0x14d010;}for(const {suggestion:_0xd125b4,meta:_0x5b0043}of this['_findSuggestions'](_0xf718ff,'insertion')){if(!_0x5b0043['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b0043['containsRangeInObject'])continue;if(!Xt(_0xd125b4,_0x4481d5))continue;let _0x448315=!0x0;for(const _0x54ccbe of _0xd125b4['getRanges']())for(const _0x357655 of _0xf718ff)if(!_0x54ccbe['containsRange'](_0x357655)){_0x448315=!0x1;break;}if(_0x448315)return _0xd125b4;}const _0x2e5eda=_0x5011f0(),_0x291645=_0x35c3ef['id'],_0x5d6cbc='insertion:'+_0x141f0f,_0x494e0a=this['_setSuggestionData']({'id':_0x2e5eda,'type':_0x5d6cbc,'createdAt':new Date(),'authorId':_0x291645,'attributes':_0x4481d5});for(const _0x15e51a of _0xf718ff)this['_addSuggestionMarker'](_0x5d6cbc,_0x2e5eda,_0x291645,_0x15e51a,o['getMultiRangeId']());return _0x494e0a;}['markInlineFormat'](_0x4b9a94,_0x363126,_0x511eea=null,_0x33b91e={}){if(_0x511eea=_0x511eea||Kt(_0x363126),_0x4b9a94['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x33b91e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2379d0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x511eea,'accept');return this['forceDefaultExecution'](()=>_0x2379d0([_0x4b9a94],_0x363126,_0x33b91e)),null;}const _0x55fce1=this['editor']['plugins']['get']('Users')['me'],_0x254784=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b6fae,meta:_0x1b81d7}of this['_findSuggestions'](_0x4b9a94,'insertion'))_0x1b81d7['isOwn']&&!_0x1b81d7['isInsideObject']&&_0x254784['push'](..._0x2b6fae['getRanges']());}const _0x404b36=function(_0x12a379,_0x9a3579){const _0x5b1414=[];for(const _0x56f512 of _0x9a3579){const _0xcd6c8d=_0x12a379['getIntersection'](_0x56f512);_0xcd6c8d&&_0x5b1414['push'](_0xcd6c8d);}return _0x5b1414;}(_0x4b9a94,_0x254784),_0x6eb6a3=function(_0x582fd1,_0x4b1d0a){const _0x500245=[_0x582fd1];for(const _0x644988 of _0x4b1d0a){let _0x482ada=0x0;for(;_0x482ada<_0x500245['length'];){const _0x173217=_0x500245[_0x482ada]['getDifference'](_0x644988);_0x500245['splice'](_0x482ada,0x1,..._0x173217),_0x482ada+=_0x173217['length'];}}return _0x500245;}(_0x4b9a94,_0x254784);_0x404b36['length']&&this['_model']['change'](()=>{for(const _0x18e3d7 of _0x404b36){const _0x5079e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x511eea,'accept');this['forceDefaultExecution'](()=>_0x5079e8([_0x18e3d7],_0x363126,_0x33b91e));}});for(const _0x4ddf1a of _0x6eb6a3){let _0x2c61a5=null,_0x191956=_0x4ddf1a['start'],_0x19847c=_0x4ddf1a['end'];for(const {suggestion:_0x2d1760,meta:_0x17e4de}of this['_findSuggestions'](_0x4ddf1a,'formatInline')){if(!_0x17e4de['isOwn'])continue;if(_0x2d1760['subType']!=_0x511eea)continue;if(!Xt(_0x2d1760,_0x33b91e))continue;const _0x8ea8d6=_0x2d1760['getFirstRange']();if(_0x8ea8d6['containsRange'](_0x4ddf1a,!0x0))return null;_0x191956=_0x191956['isBefore'](_0x8ea8d6['start'])?_0x191956:_0x8ea8d6['start'],_0x19847c=_0x19847c['isAfter'](_0x8ea8d6['end'])?_0x19847c:_0x8ea8d6['end'],_0x2c61a5?_0x8ea8d6['start']['isBefore'](_0x2c61a5['getFirstRange']()['start'])?(_0x2c61a5['removeMarkers'](),_0x2c61a5=_0x2d1760):_0x2d1760['removeMarkers']():_0x2c61a5=_0x2d1760;}const _0x3e56bc=this['_model']['createRange'](_0x191956,_0x19847c);if(_0x2c61a5)this['_setSuggestionRange'](_0x2c61a5,_0x3e56bc);else{const _0x1b07c5=_0x5011f0(),_0x46ba45=_0x55fce1['id'];this['_setSuggestionData']({'id':_0x1b07c5,'type':'formatInline:'+_0x511eea,'data':_0x363126,'createdAt':new Date(),'authorId':_0x46ba45,'attributes':_0x33b91e}),this['_addSuggestionMarker']('formatInline:'+_0x511eea,_0x1b07c5,_0x46ba45,_0x3e56bc);}}return null;}['markBlockFormat'](_0xfda663,_0x1a6afd,_0x1b84d7=[],_0x43ad8f=null,_0xe2c120={}){_0x1a6afd['formatGroupId']||(_0x1a6afd['formatGroupId']=_0x1a6afd['commandName']),_0x1a6afd['multipleBlocks']=_0xfda663['is']('range'),_0x43ad8f=_0x43ad8f||Kt(_0x1a6afd);const _0x214e75=_0x1b84d7['map'](_0x22fbf5=>zt(_0x22fbf5,this['_model'])),_0x291e03=_0xfda663['is']('range')?_0xfda663:zt(_0xfda663,this['_model']);if(this['_trackingSessionId']&&(_0xe2c120['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39868a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43ad8f,'accept');return this['forceDefaultExecution'](()=>_0x39868a([_0x291e03],_0x1a6afd,_0xe2c120)),null;}_0x214e75['push'](_0x291e03);let _0x1c91d9=!0x0;for(const _0x10f9f5 of _0x214e75)if(!this['_rangeIsInLocalUserInsertion'](_0x10f9f5)){_0x1c91d9=!0x1;break;}if(_0x1c91d9&&'always'!==this['_trackFormatChanges']){const _0x4a4d92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43ad8f,'accept');return this['forceDefaultExecution'](()=>_0x4a4d92([_0x291e03],_0x1a6afd,_0xe2c120)),null;}let _0x4d5859=null,_0x298c44=_0x291e03['start'],_0x5411df=_0x291e03['end'];for(const {suggestion:_0x4ec79b,meta:_0x30d214}of this['_findSuggestions'](_0x291e03,'formatBlock')){if(!_0x30d214['isOwn'])continue;if(_0x30d214['isNextTo']||_0x30d214['containsRangeInObject']||_0x30d214['isInsideObject'])continue;if(_0x4ec79b['data']['formatGroupId']!=_0x1a6afd['formatGroupId'])continue;if(!Xt(_0x4ec79b,_0xe2c120))continue;const _0x1f49ef=_0x4ec79b['getFirstRange']();if(_0x4ec79b['subType']==_0x43ad8f){if(_0x1f49ef['containsRange'](_0x291e03,!0x0))return null;_0x298c44=_0x298c44['isBefore'](_0x1f49ef['start'])?_0x298c44:_0x1f49ef['start'],_0x5411df=_0x5411df['isAfter'](_0x1f49ef['end'])?_0x5411df:_0x1f49ef['end'],_0x4d5859?_0x1f49ef['start']['isBefore'](_0x4d5859['getFirstRange']()['start'])?(_0x4d5859['removeMarkers'](),_0x4d5859=_0x4ec79b):_0x4ec79b['removeMarkers']():_0x4d5859=_0x4ec79b;}else{const _0xf28612=_0x291e03['getIntersection'](_0x1f49ef);this['_cutOutSuggestionMarker'](_0x4ec79b,_0xf28612);}}const _0x5647b5=this['editor']['plugins']['get']('Users')['me'],_0x308a65=_0x5011f0(),_0xdc3533=_0x5647b5['id'];if(_0x4d5859)return this['_setSuggestionRange'](_0x4d5859,this['_model']['createRange'](_0x298c44,_0x5411df)),_0x4d5859;{const _0x8065a8=this['_setSuggestionData']({'id':_0x308a65,'type':'formatBlock:'+_0x43ad8f,'data':_0x1a6afd,'createdAt':new Date(),'authorId':_0xdc3533,'attributes':_0xe2c120});return this['_addSuggestionMarker']('formatBlock:'+_0x43ad8f,_0x308a65,_0xdc3533,this['_model']['createRange'](_0x298c44,_0x5411df)),_0x8065a8;}}['markMultiRangeBlockFormat'](_0x2aa7ef,_0x47ba00,_0x4871b1=[],_0x2aa847=null,_0x18c91f={}){_0x47ba00['formatGroupId']||(_0x47ba00['formatGroupId']=_0x47ba00['commandName']);const _0x339c8f=_0x2aa7ef[0x0];_0x47ba00['multipleBlocks']=_0x339c8f['is']('range'),_0x2aa847=_0x2aa847||Kt(_0x47ba00);const _0x8766a3=_0x4871b1['map'](_0x28cce4=>zt(_0x28cce4,this['_model'])),_0x17726d=_0x339c8f['is']('range')?_0x2aa7ef:_0x2aa7ef['map'](_0x479d79=>zt(_0x479d79,this['_model']));if(this['_trackingSessionId']&&(_0x18c91f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11a7b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'accept');return this['forceDefaultExecution'](()=>_0x11a7b9(_0x17726d,_0x47ba00,_0x18c91f)),null;}_0x8766a3['push'](..._0x17726d);let _0x2f619a=!0x0;for(const _0xf9dedc of _0x8766a3)if(!this['_rangeIsInLocalUserInsertion'](_0xf9dedc)){_0x2f619a=!0x1;break;}if(_0x2f619a&&'always'!==this['_trackFormatChanges']){const _0x3d0dce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'accept');return this['forceDefaultExecution'](()=>_0x3d0dce(_0x17726d,_0x47ba00,_0x18c91f)),null;}const _0x23a81b=this['editor']['plugins']['get']('Users')['me'];for(const _0x373e72 of this['getSuggestions']()){if(_0x373e72['author']['id']!=_0x23a81b['id'])continue;if('formatBlock'!=_0x373e72['type']||_0x373e72['data']['formatGroupId']!=_0x47ba00['formatGroupId'])continue;if(!Xt(_0x373e72,_0x18c91f))continue;const _0x1a342f=_0x373e72['subType']==_0x2aa847;for(let _0x15a605=0x0;_0x15a605<_0x17726d['length'];_0x15a605++){const _0x46924b=_0x17726d[_0x15a605];for(const _0x4f7283 of _0x373e72['getMarkers']()){const _0x19fdc3=_0x4f7283['getRange']();if(_0x46924b['isEqual'](_0x19fdc3)){_0x1a342f?(_0x17726d['splice'](_0x15a605,0x1),_0x15a605--):_0x373e72['removeMarker'](_0x4f7283['name']);break;}}}}if(0x0==_0x17726d['length'])return null;const _0x3141f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'join');for(const _0x4fa43f of this['getSuggestions']())if(_0x4fa43f['author']['id']==_0x23a81b['id']&&'formatBlock'==_0x4fa43f['type']&&_0x4fa43f['data']['formatGroupId']==_0x47ba00['formatGroupId']&&_0x4fa43f['subType']==_0x2aa847&&Xt(_0x4fa43f,_0x18c91f)&&(_0x3141f7(_0x4fa43f['getRanges'](),_0x17726d)||_0x3141f7(_0x17726d,_0x4fa43f['getRanges']()))){for(const _0x5db278 of _0x17726d)_0x4fa43f['addRange'](_0x5db278);return _0x4fa43f;}const _0x290f15=_0x5011f0(),_0x4d5d9b=_0x23a81b['id'],_0x4dcf4e='formatBlock:'+_0x2aa847,_0x2f0820=this['_setSuggestionData']({'id':_0x290f15,'type':_0x4dcf4e,'data':_0x47ba00,'createdAt':new Date(),'authorId':_0x4d5d9b,'attributes':_0x18c91f});for(const _0x49bb2d of _0x17726d)this['_addSuggestionMarker'](_0x4dcf4e,_0x290f15,_0x4d5d9b,_0x49bb2d,o['getMultiRangeId']());return _0x2f0820;}['markDeletion'](_0x124f04,_0x315f72=null,_0xa2c51b={}){if(_0x124f04['isCollapsed'])return null;const _0x2450b9=this['editor']['plugins']['get']('Users')['me'],_0x3deefb=new _0x39b5cf(_0x124f04['start'],_0x124f04['end']);this['_trackingSessionId']&&(_0xa2c51b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x561491,meta:_0x37fb8d}of this['_findSuggestions'](_0x3deefb,'insertion'))if(_0x37fb8d['isOwn']&&!_0x37fb8d['isNextTo']){if(_0x561491['isMultiRange']){const _0x45f931=_0x561491['getRanges']()['filter'](_0x3e1e98=>'$graveyard'!=_0x3e1e98['root']['rootName']);_0x45f931['every'](_0x168a06=>_0x3deefb['containsRange'](_0x168a06,!0x0))&&_0x561491['discard']();if(_0x45f931['some'](_0x199f76=>_0x199f76['containsRange'](_0x3deefb,!0x0))){const _0x1a83cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315f72,'accept');return this['forceDefaultExecution'](()=>_0x1a83cf([_0x3deefb],null,_0xa2c51b)),null;}}else{const _0x4959f8=_0x3deefb['getIntersection'](_0x561491['getFirstRange']());null!==_0x4959f8&&_0x561491['_onDiscard']([_0x4959f8],null,_0xa2c51b);}}if(_0x3deefb['detach'](),_0x3deefb['isCollapsed']||'$graveyard'==_0x3deefb['root']['rootName'])return null;let _0x26e8e2=null,_0x53c4a3=_0x3deefb['start'],_0x50dc91=_0x3deefb['end'];const _0x21a876=this['_findSuggestions'](_0x3deefb,'deletion');for(const {suggestion:_0x505dc5,meta:_0x5df3d8}of _0x21a876){const _0x327aff=this['_model']['createRange'](_0x53c4a3,_0x50dc91);if(_0x5df3d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5df3d8['containsRangeInObject']&&!_0x5df3d8['isInsideObject'])){if(_0x505dc5['isMultiRange']){if(!Xt(_0x505dc5,_0xa2c51b))continue;let _0x75c5d9=!0x0;for(const _0x3908f4 of _0x505dc5['getRanges']()){if(_0x3908f4['containsRange'](_0x327aff,!0x0))return _0x505dc5;_0x327aff['containsRange'](_0x3908f4)||(_0x75c5d9=!0x1);}_0x75c5d9&&_0x505dc5['discard']();}else{const _0x1f8fec=_0x505dc5['getFirstRange']();if(_0x1f8fec['containsRange'](_0x327aff,!0x0))return _0x505dc5;if(!Xt(_0x505dc5,_0xa2c51b)){_0x327aff['containsRange'](_0x1f8fec)?_0x505dc5['removeMarkers']():_0x1f8fec['containsPosition'](_0x53c4a3)?_0x53c4a3=_0x1f8fec['end']:_0x1f8fec['containsPosition'](_0x50dc91)&&(_0x50dc91=_0x1f8fec['start']);continue;}_0x53c4a3=_0x53c4a3['isBefore'](_0x1f8fec['start'])?_0x53c4a3:_0x1f8fec['start'],_0x50dc91=_0x50dc91['isAfter'](_0x1f8fec['end'])?_0x50dc91:_0x1f8fec['end'],_0xa2c51b=Object['assign']({},_0x505dc5['attributes']),_0x26e8e2?_0x1f8fec['start']['isBefore'](_0x26e8e2['getFirstRange']()['start'])?(_0x26e8e2['removeMarkers'](),_0x26e8e2=_0x505dc5):_0x505dc5['removeMarkers']():_0x26e8e2=_0x505dc5;}}}if(_0x26e8e2)return this['_setSuggestionRange'](_0x26e8e2,this['_model']['createRange'](_0x53c4a3,_0x50dc91)),_0x26e8e2;{const _0x430070=_0x5011f0(),_0x4fbf55=this['_model']['createRange'](_0x53c4a3,_0x50dc91),_0x53d9a3=_0x2450b9['id'],_0x593423=_0x315f72?'deletion:'+_0x315f72:'deletion',_0x5777b1=this['_setSuggestionData']({'id':_0x430070,'type':_0x593423,'createdAt':new Date(),'authorId':_0x53d9a3,'attributes':_0xa2c51b});return this['_addSuggestionMarker'](_0x593423,_0x430070,_0x53d9a3,_0x4fbf55),_0x5777b1;}}['markMultiRangeDeletion'](_0x52dbee,_0x415758='multi',_0xde674d={}){const _0x4890b4=this['editor']['plugins']['get']('Users')['me'],_0x17f621=_0x52dbee['map'](_0x42869e=>new _0x39b5cf(_0x42869e['start'],_0x42869e['end'])),_0x5d7833=new Set();this['_trackingSessionId']&&(_0xde674d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28715c,meta:_0x4a8744}of this['_findSuggestions'](_0x17f621,'insertion'))_0x4a8744['isOwn']&&!_0x4a8744['isNextTo']&&_0x5d7833['add'](_0x28715c);for(const _0xc8c874 of _0x5d7833)if(_0xc8c874['isMultiRange']){const _0x37ba4d=_0xc8c874['getRanges']();(!_0xc8c874['attributes']||!_0xc8c874['attributes']['skipNestingCheck'])&&(_0x37ba4d['every'](_0x551d12=>_0x17f621['some'](_0xa6da3d=>_0xa6da3d['containsRange'](_0x551d12,!0x0)))&&_0xc8c874['discard']());if(_0x17f621['every'](_0x498b04=>_0x37ba4d['some'](_0x335598=>_0x335598['containsRange'](_0x498b04,!0x0)))){const _0x4ea4a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'accept');return this['forceDefaultExecution'](()=>_0x4ea4a3(_0x52dbee,null,_0xde674d)),null;}}else{const _0x1f7690=_0xc8c874['getFirstRange']();_0x17f621['some'](_0x289fa8=>_0x289fa8['containsRange'](_0x1f7690,!0x0))&&_0xc8c874['discard']();if(_0x17f621['every'](_0x9caaf3=>_0x1f7690['containsRange'](_0x9caaf3,!0x0))){const _0x2215ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'accept');return this['forceDefaultExecution'](()=>_0x2215ae(_0x17f621,null,_0xde674d)),null;}}const _0x225e74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'join');let _0x3fe293=null;for(const _0x4bf861 of this['getSuggestions']())if(_0x4bf861['author']['id']==_0x4890b4['id']&&_0x4bf861['isInContent']&&'deletion'==_0x4bf861['type']&&_0x4bf861['subType']==_0x415758&&Xt(_0x4bf861,_0xde674d)&&(_0x225e74(_0x4bf861['getRanges'](),_0x17f621)||_0x225e74(_0x17f621,_0x4bf861['getRanges']()))){if(_0x3fe293){if(_0x4bf861['commentThread']&&_0x4bf861['commentThread']['length'])continue;for(const _0x588198 of _0x4bf861['getRanges']())_0x3fe293['isIntersectingWithRange'](_0x588198)||_0x3fe293['addRange'](_0x588198);_0x4bf861['removeMarkers']();}else{_0x3fe293=_0x4bf861;for(const _0x25dcd7 of _0x17f621)_0x4bf861['isIntersectingWithRange'](_0x25dcd7)||_0x4bf861['addRange'](_0x25dcd7);}}if(_0x3fe293)return _0x3fe293;_0x5d7833['clear']();for(const {suggestion:_0x7b1aba,meta:_0x3ac8c5}of this['_findSuggestions'](_0x17f621,'deletion'))_0x3ac8c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ac8c5['containsRangeInObject']&&!_0x3ac8c5['isInsideObject'])&&Xt(_0x7b1aba,_0xde674d)&&_0x5d7833['add'](_0x7b1aba);for(const _0x5ef77c of _0x5d7833){const _0x4266ec=_0x5ef77c['getRanges']();if(!_0xde674d||!_0xde674d['skipNestingCheck']){if(_0x17f621['every'](_0x33115e=>_0x4266ec['some'](_0x4693b0=>_0x4693b0['containsRange'](_0x33115e,!0x0))))return _0x5ef77c;}(!_0x5ef77c['attributes']||!_0x5ef77c['attributes']['skipNestingCheck'])&&(_0x4266ec['every'](_0x51b108=>_0x17f621['some'](_0x4fccb7=>_0x4fccb7['containsRange'](_0x51b108,!0x0)))&&_0x5ef77c['discard']());}const _0x5319cc=_0x5011f0(),_0xbb963d=_0x4890b4['id'],_0x5e3ff0='deletion:'+_0x415758,_0x498f95=this['_setSuggestionData']({'id':_0x5319cc,'type':_0x5e3ff0,'createdAt':new Date(),'authorId':_0xbb963d,'attributes':_0xde674d});for(const _0x1adb51 of _0x17f621)_0x1adb51['detach'](),_0x1adb51['isCollapsed']||'$graveyard'==_0x1adb51['root']['rootName']||this['_addSuggestionMarker'](_0x5e3ff0,_0x5319cc,_0xbb963d,_0x1adb51,o['getMultiRangeId']());return _0x498f95;}['markAttributeChange'](_0x59ff61,_0x272f82,_0x14dfdb,_0x1e5455,_0x3e7ef0){if(_0x59ff61['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd6934f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e12ee=Array['from'](this['_suggestions']['values']())['filter'](_0x4e190d=>'attribute'==_0x4e190d['type']&&_0x4e190d['data']['key']==_0x272f82&&_0x4e190d['isIntersectingWithRange'](_0x59ff61));if(this['_trackingSessionId']&&(_0x3e7ef0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1c3d58=this['_findSuggestions'](_0x59ff61,'insertion')['filter'](({meta:_0x27fb38})=>_0x27fb38['isOwn']&&!_0x27fb38['isInsideObject']&&!_0x27fb38['isNextTo'])['map'](({suggestion:_0x290a9f})=>_0x290a9f);_0x2e12ee['unshift'](..._0x1c3d58);}const _0x1caafb=new Map([[_0x59ff61,_0x14dfdb]]);for(const _0x1c1b02 of _0x2e12ee){const _0x1ca86a='attribute'==_0x1c1b02['type']?_0x1c1b02['data']['oldValue']:void 0x0,_0x3d234e=_0x1c1b02['getFirstRange'](),_0x1a0ed3=Array['from'](_0x1caafb['keys']())['find'](_0x47a993=>_0x47a993['isIntersecting'](_0x3d234e));if(!_0x1a0ed3)continue;const _0x3cea88=_0x1a0ed3['getDifference'](_0x3d234e);this['_isBlockAttribute'](_0x272f82)&&'insertion'==_0x1c1b02['type']&&0x0!=_0x3cea88['length']||(_0x1caafb['delete'](_0x1a0ed3),_0x3cea88['forEach'](_0x231778=>{_0x1caafb['set'](_0x231778,_0x14dfdb);}),'insertion'!=_0x1c1b02['type']&&_0x1ca86a!=_0x1e5455&&_0x1caafb['set'](_0x1a0ed3['getIntersection'](_0x3d234e),_0x1ca86a));}const _0x1c445e=[];for(const [_0x311b3a,_0x21d9bb]of _0x1caafb){const _0x1cec59=_0x5011f0(),_0xf2969a={'key':_0x272f82,'oldValue':_0x21d9bb,'newValue':_0x1e5455};_0x272f82['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':_0x272f82});const _0x1b1f39=('attribute:'+(_0x272f82+'|'+Kt({'newValue':_0x1e5455})))['substring'](0x0,0x3c),_0x464e2e=this['_setSuggestionData']({'id':_0x1cec59,'type':_0x1b1f39,'data':_0xf2969a,'createdAt':new Date(),'authorId':_0xd6934f,'attributes':_0x3e7ef0});_0x1c445e['push'](_0x464e2e),this['_addSuggestionMarker'](_0x1b1f39,_0x1cec59,_0xd6934f,_0x311b3a);}return _0x1c445e;}['enableDefaultAttributesIntegration'](_0x55298b){this['enableCommand'](_0x55298b,(_0xbee37,..._0x484442)=>{this['_recordAttributeChanges'](()=>{_0xbee37(..._0x484442);});});}['registerBlockAttribute'](_0x2db635){this['_blockAttributeKeys']['add'](_0x2db635);}['registerInlineAttribute'](_0x51f4a5){this['_inlineAttributeKeys']['add'](_0x51f4a5);}['startTrackingSession'](_0x43032d){return this['_trackingSessionId']=void 0x0!==_0x43032d?_0x43032d:_0x5011f0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1636c6){return'attribute'==_0x1636c6['type']?_0x1636c6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x913139,_0x3570a9){const _0xa87d67=_0x913139['getFirstMarker']();this['_model']['change'](_0x86e683=>{_0x86e683['updateMarker'](_0xa87d67,{'range':_0x3570a9});});}['_addThreadToSuggestion'](_0xd4fef2){const _0x4220df=_0xd4fef2['id'],_0x2fb32c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4220df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2fb32c,'threadId':_0x4220df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c1a92=this['_commentsRepository']['getCommentThread'](_0x4220df);_0x2c1a92['unbind']('isRemovable'),_0x2c1a92['isRemovable']=!0x1,_0xd4fef2['commentThread']=_0x2c1a92;}['_checkSuggestionCorrectness'](_0x560492,_0x1239ea,_0x52db71,_0x1a91be){if(_0x560492['type']!=_0x1239ea||_0x560492['subType']!=_0x52db71||_0x560492['creator']['id']!=_0x1a91be)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x280f1c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e8b7b,_0x1f3623){const _0x148a6b=_0x5e8b7b['getFirstRange']();if(_0x1f3623['isEqual'](_0x148a6b))_0x5e8b7b['removeMarkers']();else{if(_0x148a6b['containsRange'](_0x1f3623)){const _0x21f6ee=this['_model']['createPositionAt'](_0x1f3623['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x148a6b['start'],_0x21f6ee));const _0x36d9ed=_0x5011f0(),_0x352154=_0x5e8b7b['creator']['id'],_0x28a57a=_0x5e8b7b['type']+':'+_0x5e8b7b['subType'];this['_setSuggestionData']({'id':_0x36d9ed,'type':_0x28a57a,'createdAt':new Date(),'authorId':_0x352154,'data':_0x5e8b7b['data'],'attributes':_0x5e8b7b['attributes']});const _0x31a088=this['_model']['createPositionAt'](_0x1f3623['end']['parent'],'after'),_0x17ac43=this['_model']['createRange'](_0x31a088,_0x148a6b['end']);this['_addSuggestionMarker'](_0x28a57a,_0x36d9ed,_0x352154,_0x17ac43);}else{if(_0x148a6b['containsPosition'](_0x1f3623['start'])){const _0x3f6b08=this['_model']['createPositionAt'](_0x1f3623['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x148a6b['start'],_0x3f6b08));}else{const _0x619561=this['_model']['createPositionAt'](_0x1f3623['end']['parent'],'after');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x619561,_0x148a6b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x360a06){for(const {suggestion:_0x2a50fb,meta:_0x25cf8c}of this['_findSuggestions'](_0x360a06,'insertion')){if(!_0x25cf8c['isOwn'])continue;const _0x1073fe=_0x2a50fb['getRanges']();for(const _0x119ed3 of _0x1073fe)if(!_0x360a06['getDifference'](_0x119ed3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3529e1){const _0x540e3b=this['editor']['plugins']['get']('Users')['getUser'](_0x3529e1);if(!_0x540e3b)throw new _0x280f1c('track-changes-user-not-found',this);return _0x540e3b;}['_getExternalAuthor'](_0x2d1ce2){const _0x518551=this['editor']['plugins']['get']('Users'),_0x3e1a9a=_0x4130c6('external:'+_0x2d1ce2),_0x25679f=_0x518551['getUser'](_0x3e1a9a);return _0x25679f||_0x518551['addUser']({'id':_0x3e1a9a,'name':_0x2d1ce2});}['_createSuggestion'](_0x1a6e1a,_0x48d093,_0x359fa6,_0x23b0e7,_0x10a4eb,_0x4dced3){const _0x1a4796=this['_getAuthorFromId'](_0x23b0e7),_0x3ce0f1=this['_suggestionFactory']['buildSuggestion'](_0x1a6e1a,_0x48d093,_0x359fa6,_0x1a4796,_0x10a4eb,_0x64834=>{this['_updateSuggestionData'](_0x359fa6,{'attributes':_0x64834});const _0x11ed67=this['getSuggestion'](_0x359fa6);this['_joinWithAdjacentSuggestions'](new Set([_0x11ed67])),this['_refreshSuggestionsChain'](new Set([_0x11ed67]));},_0x4dced3);return this['listenTo'](_0x3ce0f1,'accept',()=>{this['_updateSuggestionData'](_0x359fa6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3ce0f1,'discard',()=>{this['_updateSuggestionData'](_0x359fa6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x359fa6,_0x3ce0f1),this['_suggestionState']['set'](_0x3ce0f1,'notReady'),_0x3ce0f1;}['_splitMarkerName'](_0xd2391b){const _0x290e05=_0xd2391b['split'](':');return{'group':_0x290e05[0x0],'type':_0x290e05[0x1],'subType':_0x290e05['length']>=0x5?_0x290e05[0x2]:null,'id':_0x290e05['length']<0x5?_0x290e05[0x2]:_0x290e05[0x3],'authorId':_0x290e05['length']<0x5?_0x290e05[0x3]:_0x290e05[0x4],'markerCount':0x6==_0x290e05['length']?_0x290e05[0x5]:null};}['_breakSuggestionMarker'](_0x39b8f9,_0x2b34b6,_0x16c539){const _0x201c41=_0x39b8f9['getFirstRange'](),_0x4bcd04=_0x201c41['start'],_0x1ed8d4=_0x201c41['end'];this['_setSuggestionRange'](_0x39b8f9,this['_model']['createRange'](_0x4bcd04,_0x2b34b6));const _0x2e6bf1=_0x5011f0(),_0x2abb98=_0x39b8f9['creator']['id'],_0x19fa74=_0x39b8f9['type']+(_0x39b8f9['subType']?':'+_0x39b8f9['subType']:'');this['_setSuggestionData']({'id':_0x2e6bf1,'type':_0x19fa74,'createdAt':new Date(),'authorId':_0x2abb98,'originalSuggestionId':_0x39b8f9['_originalSuggestionId']||_0x39b8f9['id'],'attributes':_0x39b8f9['attributes'],'data':_0x39b8f9['data']});const _0x36ff57=this['_getAttributeKey'](_0x39b8f9);('formatBlock'==_0x39b8f9['type']||_0x36ff57&&this['_isBlockAttribute'](_0x36ff57))&&(_0x16c539=this['_model']['createPositionBefore'](_0x16c539['parent'])),this['_addSuggestionMarker'](_0x19fa74,_0x2e6bf1,_0x2abb98,this['_model']['createRange'](_0x16c539,_0x1ed8d4));}['_findSuggestions'](_0x25f2e7,_0x5512a1=null){const _0x727095=[],_0x5b2d83=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25f2e7)||(_0x25f2e7=[_0x25f2e7]);for(const _0x5ecf5e of this['getSuggestions']()){if(!_0x5ecf5e['isInContent'])continue;if(_0x5512a1&&_0x5ecf5e['type']!=_0x5512a1)continue;let _0x24ab58=!0x1;for(const _0x49973c of _0x5ecf5e['getRanges']()){for(const _0xf87dbf of _0x25f2e7){const _0x139b74=_0xf87dbf['start']['isEqual'](_0x49973c['end'])||_0xf87dbf['end']['isEqual'](_0x49973c['start']);if(_0x139b74||_0xf87dbf['getIntersection'](_0x49973c)){const _0xedc6dc=_0xf87dbf['containsRange'](_0x49973c)&&Gt(this['_model']['schema'],_0x49973c['start'],_0xf87dbf),_0x15ed62=_0x49973c['containsRange'](_0xf87dbf)&&Gt(this['_model']['schema'],_0xf87dbf['start'],_0x49973c);_0x727095['push']({'suggestion':_0x5ecf5e,'meta':{'isOwn':_0x5b2d83==_0x5ecf5e['author'],'isNextTo':_0x139b74,'isInsideObject':_0xedc6dc,'containsRangeInObject':_0x15ed62}}),_0x24ab58=!0x0;break;}}if(_0x24ab58)break;}}return _0x727095;}['_addSuggestionMarker'](_0x5e6431,_0x282f12,_0x5b6446,_0x2d3a0a,_0x5ed373){this['_model']['change'](_0x1ae3bb=>{let _0x413927='suggestion:'+_0x5e6431+':'+_0x282f12+':'+_0x5b6446;_0x5ed373&&(_0x413927=_0x413927+':'+_0x5ed373),_0x1ae3bb['addMarker'](_0x413927,{'range':_0x2d3a0a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x231cec){const _0x4bc056=_0x231cec['previous'],_0x243928=_0x231cec['next'];_0x231cec['previous']=null,_0x231cec['next']=null,null!=_0x4bc056&&_0x4bc056['next']==_0x231cec&&(_0x4bc056['next']=_0x243928),null!=_0x243928&&_0x243928['previous']==_0x231cec&&(_0x243928['previous']=_0x4bc056),'ready'==this['_suggestionState']['get'](_0x231cec)&&(this['_suggestionState']['set'](_0x231cec,'removed'),this['fire']('suggestionUnloaded',_0x231cec,_0x4bc056,_0x243928));}['_setSuggestionData'](_0x396434){const _0x4da14e=_0x396434['id'],_0x476304=this['addSuggestionData'](_0x396434);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e6c56=this['editor']['plugins']['get']('PendingActions'),_0x103629=_0x476304['hasComments'],_0xa594a3=_0x476304['subType']?_0x476304['type']+':'+_0x476304['subType']:_0x476304['type'],_0x3a0868=this['editor']['locale'],_0x27d769=_0x1e6c56['add'](c(_0x3a0868,'PENDING_ACTION_SUGGESTION')),_0xcc407f={'id':_0x4da14e,'type':_0xa594a3,'hasComments':_0x103629,'data':_0x396434['data']||null,'originalSuggestionId':_0x396434['originalSuggestionId']||null,'attributes':_0x476304['attributes']};this['_adapter']['addSuggestion'](_0xcc407f)['then'](_0x249002=>{_0x476304['_saved']=!0x0,_0x1e6c56['remove'](_0x27d769),_0x249002&&_0x249002['createdAt']&&(this['_suggestions']['get'](_0x4da14e)['createdAt']=_0x249002['createdAt']);})['catch'](_0xc998ab=>{throw _0x247906('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x476304['discard']();}),_0x476304['stopListening'](),this['_suggestions']['delete'](_0x476304['id']),this['_suggestionState']['delete'](_0x476304),_0xc998ab;});}return _0x476304;}['_isBlockAttribute'](_0x165cf8){return this['_blockAttributeKeys']['has'](_0x165cf8);}['_updateSuggestionData'](_0x248238,_0x17834b){const _0x13b813=this['editor']['plugins']['get']('PendingActions'),_0xc6b785=this['getSuggestion'](_0x248238);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xc6b785['_saved']){const _0x6917a8=_0x13b813['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x248238,_0x17834b)['then'](()=>{_0x13b813['remove'](_0x6917a8);});}else _0xc6b785['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x248238,_0x17834b);});}}['_getSuggestionData'](_0x4d883f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x280f1c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4d883f);}['_handleNewSuggestionMarker'](_0x5a1e3c){const {id:_0x2b7d3a,type:_0x415b80,subType:_0x42642b,authorId:_0x3fed38}=this['_splitMarkerName'](_0x5a1e3c),_0x35af17=this['_suggestions']['get'](_0x2b7d3a)||this['_createSuggestion'](_0x415b80,_0x42642b,_0x2b7d3a,_0x3fed38,{});switch(this['_checkSuggestionCorrectness'](_0x35af17,_0x415b80,_0x42642b,_0x3fed38),this['_suggestionState']['get'](_0x35af17)){case'notReady':this['_getSuggestionData'](_0x2b7d3a)['then'](_0xd696e5=>{let _0x56a3fb=Promise['resolve']();_0xd696e5['hasComments']&&(_0x56a3fb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b7d3a})),_0x56a3fb['then'](()=>{this['addSuggestionData'](_0xd696e5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35af17,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b7d3a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35af17,'ready'),this['fire']('suggestionLoaded',_0x35af17);break;case'ready':this['fire']('suggestionChanged',_0x35af17);}return _0x35af17['addMarkerName'](_0x5a1e3c),_0x35af17;}['_refreshSuggestionsChain'](_0x78d0ac){const _0x35bc39=Array['from'](_0x78d0ac),_0x198368=_0x35bc39['filter'](_0x39df1c=>'attribute'==_0x39df1c['type']);this['_refreshAttributeSuggestionsChain'](_0x198368);const _0xf307e5=_0x35bc39['filter'](_0x37650c=>!_0x37650c['isMultiRange']&&'attribute'!=_0x37650c['type']),_0x3ab303=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x478325=>!_0x478325['isMultiRange']&&'attribute'!=_0x478325['type']),_0x2d873e=_0x3ab303['filter'](_0xff5068=>!_0x78d0ac['has'](_0xff5068)),_0x52a0d6=new Map(_0x3ab303['map'](_0x307f02=>[_0x307f02,this['_suggestionFactory']['getSuggestionCallback'](_0x307f02['type'],_0x307f02['subType'],'chain')])),_0x1f0331=new Map(_0x3ab303['map'](_0x358bf8=>[_0x358bf8,_0x358bf8['getFirstRange']()])),_0x4cd51b=new Set(),_0x466f95=new Set();for(let _0x3da036=0x0;_0x3da036<_0xf307e5['length'];_0x3da036++)_0x422424(_0xf307e5[_0x3da036],_0xf307e5,_0x3da036+0x1);for(let _0x1291f4=0x0;_0x1291f4<_0xf307e5['length'];_0x1291f4++)_0x422424(_0xf307e5[_0x1291f4],_0x2d873e,0x0);const _0x1ffa55=new Set();for(let _0x5ee884=0x0;_0x5ee884<_0xf307e5['length'];_0x5ee884++){const _0x10a8f2=_0xf307e5[_0x5ee884];!_0x466f95['has'](_0x10a8f2)&&_0x10a8f2['previous']&&(_0x1ffa55['add'](_0x10a8f2['previous']),_0x10a8f2['previous']['next']===_0x10a8f2&&(_0x10a8f2['previous']['next']=null),_0x10a8f2['previous']=null),!_0x4cd51b['has'](_0x10a8f2)&&_0x10a8f2['next']&&(_0x1ffa55['add'](_0x10a8f2['next']),_0x10a8f2['next']['previous']===_0x10a8f2&&(_0x10a8f2['next']['previous']=null),_0x10a8f2['next']=null);}function _0x422424(_0x10d566,_0x260151,_0x5f50ee){for(let _0x17ad9d=_0x5f50ee;_0x17ad9d<_0x260151['length'];_0x17ad9d++){const _0x554b36=_0x19eff9(_0x10d566,_0x260151[_0x17ad9d]);_0x554b36&&(_0x554b36[0x0]['next']=_0x554b36[0x1],_0x554b36[0x1]['previous']=_0x554b36[0x0],_0x4cd51b['add'](_0x554b36[0x0]),_0x466f95['add'](_0x554b36[0x1]));}}function _0x19eff9(_0x24715d,_0x1d8484){if(_0x24715d['author']['id']!==_0x1d8484['author']['id'])return null;const _0x3cad07=_0x52a0d6['get'](_0x24715d)(_0x24715d,_0x1d8484,_0x1f0331['get'](_0x24715d),_0x1f0331['get'](_0x1d8484));if(!_0x3cad07)return null;return _0x52a0d6['get'](_0x1d8484)(_0x24715d,_0x1d8484,_0x1f0331['get'](_0x24715d),_0x1f0331['get'](_0x1d8484))?_0x3cad07[0x1]['commentThread']&&_0x3cad07[0x1]['commentThread']['length']?null:_0x3cad07:null;}_0x1ffa55['size']&&this['_refreshSuggestionsChain'](_0x1ffa55);}['_refreshAttributeSuggestionsChain'](_0x179c2e){if(0x0==_0x179c2e['length'])return;const _0x1b5923=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c349=>'attribute'==_0x20c349['type']&&_0x20c349['_isDataLoaded']),_0x2f7483=[],_0x30ebfe=new Map();for(const _0x594bfe of _0x1b5923){const _0x305531=_0x4130c6(_0x594bfe['attributes']);_0x30ebfe['has'](_0x305531)||(_0x30ebfe['set'](_0x305531,_0x2f7483['length']),_0x2f7483['push']([]));const _0x48038e=_0x30ebfe['get'](_0x305531);_0x2f7483[_0x48038e]['push'](_0x594bfe);}!(function(){_0x2f7483['sort']((_0x3f4944,_0x24be42)=>{const _0xcfdf73=_0x3f4944[0x0]['createdAt'],_0xdb5f95=_0x24be42[0x0]['createdAt'];return _0xcfdf73==_0xdb5f95?_0x3f4944[0x0]['attributes']['groupId']<_0x24be42[0x0]['attributes']['groupId']?-0x1:0x1:_0xcfdf73<_0xdb5f95?-0x1:0x1;});for(const _0x2695c6 of _0x2f7483)_0x2695c6['sort']((_0x319923,_0x1f05e9)=>_0x319923['id']<_0x1f05e9['id']?-0x1:0x1);}());for(let _0x7a1dec=0x0;_0x7a1dec<_0x2f7483['length'];_0x7a1dec++){if(0x0==_0x2f7483[_0x7a1dec]['length'])continue;const _0x38236e=[];for(let _0x36172d=_0x7a1dec+0x1;_0x36172d<_0x2f7483['length'];_0x36172d++)0x0!=_0x2f7483[_0x36172d]['length']&&_0x362a80(_0x2f7483[_0x7a1dec],_0x2f7483[_0x36172d])&&_0x38236e['push'](_0x36172d);for(const _0x2f79c8 of _0x38236e)_0x2f7483[_0x7a1dec]=_0x2f7483[_0x7a1dec]['concat'](_0x2f7483[_0x2f79c8]),_0x2f7483[_0x2f79c8]=[];}for(const _0x17e0ca of _0x2f7483)for(let _0x1fb2f5=0x0;_0x1fb2f5<_0x17e0ca['length'];_0x1fb2f5++){const _0x2b5a0d=_0x17e0ca[_0x1fb2f5+0x1]||null;_0x17e0ca[_0x1fb2f5]['next']!==_0x2b5a0d&&(_0x17e0ca[_0x1fb2f5]['next']=_0x2b5a0d);}for(const _0x3e7a4e of _0x2f7483)for(let _0x1ab760=0x0;_0x1ab760<_0x3e7a4e['length'];_0x1ab760++){const _0x2ec97a=_0x3e7a4e[_0x1ab760-0x1]||null;_0x3e7a4e[_0x1ab760]['previous']!==_0x2ec97a&&(_0x3e7a4e[_0x1ab760]['previous']=_0x2ec97a);}function _0x362a80(_0x6d64ff,_0x3f42c7){if(_0x6d64ff[0x0]['attributes']['groupId']!==_0x3f42c7[0x0]['attributes']['groupId']&&_0x6d64ff[0x0]['author']!==_0x3f42c7[0x0]['author'])return!0x1;if(!function(_0x43dc2a,_0x3ce302){if(!_0x43dc2a['hasComments']&&!_0x3ce302['hasComments'])return!0x0;if(_0x43dc2a['hasComments']&&_0x3ce302['hasComments'])return!0x1;if(_0x43dc2a['hasComments']&&_0x3ce302['createdAt']<_0x43dc2a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ce302['hasComments']&&_0x43dc2a['createdAt']<_0x3ce302['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6d64ff[0x0],_0x3f42c7[0x0]))return!0x1;const _0x337798=Ft(_0x6d64ff[0x0]['attributes'],['groupId','trackingSessionId']),_0xd0e60e=Ft(_0x3f42c7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5c3aba(_0x337798,_0xd0e60e))return!0x1;if(_0x6d64ff[0x0]['attributes']['groupId']==_0x3f42c7[0x0]['attributes']['groupId'])return!0x0;if(_0x6d64ff[0x0]['attributes']['trackingSessionId']!==_0x3f42c7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6d64ff['every'](_0x5a345c=>_0x3f42c7['some'](_0x53d7a3=>_0x5a345c['getFirstRange']()['isEqual'](_0x53d7a3['getFirstRange']())))&&_0x3f42c7['every'](_0x2f6009=>_0x6d64ff['some'](_0x245b51=>_0x2f6009['getFirstRange']()['isEqual'](_0x245b51['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2684a8){const _0x3b6e88=Array['from'](_0x2684a8),_0x3a2490=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4691e8=_0x3a2490['filter'](_0x1c1368=>!_0x2684a8['has'](_0x1c1368)),_0x220021=new Map(_0x3b6e88['map'](_0x411d58=>[_0x411d58,this['_suggestionFactory']['getSuggestionCallback'](_0x411d58['type'],_0x411d58['subType'],'join')])),_0x48bd82=new Map(_0x3a2490['map'](_0x1f7244=>[_0x1f7244,_0x1f7244['getRanges']()]));for(let _0x311765=0x0;_0x311765<_0x3b6e88['length'];_0x311765++){if(_0x5e9515(this,_0x3b6e88[_0x311765],_0x3b6e88,_0x311765+0x1))return!0x0;}for(let _0x787d3f=0x0;_0x787d3f<_0x3b6e88['length'];_0x787d3f++){if(_0x5e9515(this,_0x3b6e88[_0x787d3f],_0x4691e8,0x0))return!0x0;}return!0x1;function _0x5e9515(_0x4e036b,_0x5db377,_0x12ff45,_0x385c77){for(let _0x166fd1=_0x385c77;_0x166fd1<_0x12ff45['length'];_0x166fd1++){const _0x524007=_0x12ff45[_0x166fd1];if(_0x524007['type']!==_0x5db377['type']||_0x524007['author']['id']!==_0x5db377['author']['id']||_0x524007['subType']!==_0x5db377['subType'])continue;if(!Qt(_0x5db377,_0x524007))continue;if('attribute'==_0x5db377['type']&&_0x5db377['data']['oldValue']!=_0x524007['data']['oldValue'])continue;if('attribute'==_0x5db377['type']&&_0x4e036b['_isBlockAttribute'](_0x5db377['data']['key']))continue;if('formatBlock'==_0x5db377['type']){const _0x493903=_0x4e036b['editor']['model'],_0x2f252f=_0x5db377['getContainedElement']();if(_0x2f252f&&(_0x493903['schema']['isObject'](_0x2f252f)||_0x493903['schema']['isLimit'](_0x2f252f)))continue;}const _0x1dd618=_0x220021['get'](_0x5db377),_0x1640aa=_0x48bd82['get'](_0x5db377),_0x112e7e=_0x48bd82['get'](_0x524007),_0x4bb940=_0x5db377['commentThread']&&_0x5db377['commentThread']['length'],_0x2972d8=_0x524007['commentThread']&&_0x524007['commentThread']['length'];if(!_0x4bb940&&_0x1dd618(_0x112e7e,_0x1640aa))return _0x4e036b['_joinSuggestions'](_0x524007,_0x5db377),_0x48bd82['delete'](_0x5db377),!0x0;if(!_0x2972d8&&_0x1dd618(_0x1640aa,_0x112e7e))return _0x4e036b['_joinSuggestions'](_0x5db377,_0x524007),_0x48bd82['delete'](_0x524007),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5e0183,_0x12c8da){if(_0x5e0183['isMultiRange']){for(const _0x3f73d3 of _0x12c8da['getRanges']())_0x5e0183['addRange'](_0x3f73d3);}else{const _0x21d959=_0x12c8da['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5e0183,this['_model']['createRange'](_0x5e0183['getFirstRange']()['start'],_0x21d959));}_0x12c8da['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe102c3,_0x4c2e60,_0x5c2fc9){const _0x3be779=_0xe102c3['startsWith']('format')||_0xe102c3['startsWith']('attribute')?'FORMATTING':_0xe102c3['toUpperCase']();return c(this['editor']['locale'],_0x4c2e60+'_'+_0x3be779+'_SUGGESTION_ANNOUNCEMENT',_0x5c2fc9);}['_initAriaMarkerChangeAnnouncements'](){const _0x59fc48=this['editor'];if(!_0x59fc48['ui'])return;const {ariaLiveAnnouncer:_0x4be827}=_0x59fc48['ui'];_0x1b4244(this['_model'],({left:_0x459a9e,entered:_0x352a98})=>{for(const _0x393ace of _0x459a9e){const {group:_0x511d56,type:_0x25de0c}=this['_splitMarkerName'](_0x393ace['name']);if('suggestion'===_0x511d56){_0x4be827['announce'](this['_getMarkerAnnouncementText'](_0x25de0c,'LEAVE'));break;}}for(const _0x56510f of _0x352a98){const {group:_0x522d71,type:_0x66cbc8}=this['_splitMarkerName'](_0x56510f['name']);if('suggestion'===_0x522d71){_0x4be827['announce'](this['_getMarkerAnnouncementText'](_0x66cbc8,'ENTER',_0x32cd60(_0x5a122d)));break;}}});}['_processAttributeChanges'](_0x4a4620){if(this['_recordAttributeSuggestions'])return!0x1;const _0x58849f=this['editor'],_0x4b5325=_0x58849f['model']['document']['differ']['getChanges']();if(0x0==_0x4b5325['length'])return!0x1;const _0x7e9e1a=[],_0x2d978d=_0x4b5325['filter'](_0x52aca4=>'attribute'==_0x52aca4['type']),_0x584510=_0x4b5325['filter'](_0x2400be=>'insert'==_0x2400be['type']&&'$text'!=_0x2400be['name']),_0x1a9f74=_0x4b5325['filter'](_0x7999cf=>'remove'==_0x7999cf['type']&&'$text'!=_0x7999cf['name']);for(const _0x139c2e of _0x2d978d)_0x7e9e1a['push']({'key':_0x139c2e['attributeKey'],'newValue':_0x139c2e['attributeNewValue'],'oldValue':_0x139c2e['attributeOldValue'],'range':qt(_0x139c2e['range'],_0x58849f['model'])});for(const _0xb8d48d of _0x584510){const _0x40a9cc=_0x1a9f74['find'](_0x2e5707=>_0x2e5707['position']['isEqual'](_0xb8d48d['position']));_0x40a9cc&&_0x7e9e1a['push']({'key':u,'newValue':_0xb8d48d['name'],'oldValue':_0x40a9cc['name'],'range':_0x58849f['model']['createRangeOn'](_0xb8d48d['position']['nodeAfter'])});}return 0x0!=_0x7e9e1a['length']&&this['_reduceExistingSuggestions'](_0x4a4620,_0x7e9e1a);}['_processAttributeSuggestions'](_0x56ef01){let _0x34138a=!0x1;const _0x3b6ff8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x54c346=>_0x54c346['data']['newRange']&&_0x54c346['name']['startsWith']('suggestion:attribute:'));for(const _0x592793 of _0x3b6ff8){const {subType:_0xa563ba,id:_0x47d6}=this['_splitMarkerName'](_0x592793['name']),_0x1f9370=_0xa563ba['split']('|')[0x0];for(const _0x3135de of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3135de['id']!=_0x47d6&&'attribute'==_0x3135de['type']&&_0x3135de['data']&&_0x3135de['data']['key']==_0x1f9370&&_0x3135de['getFirstRange']()['isIntersecting'](_0x592793['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3135de,_0x592793['data']['newRange'],_0x56ef01),_0x34138a=!0x0);}return _0x34138a;}['_recordAttributeChanges'](_0x3d4834){this['_recordAttributeSuggestions']=!0x0,_0x3d4834();}['_isRegisteredAttribute'](_0x2491b2){const _0x3e750a=this['_isBlockAttribute'](_0x2491b2),_0x2e651f=this['_inlineAttributeKeys']['has'](_0x2491b2);return _0x3e750a||_0x2e651f;}['_reduceExistingSuggestions'](_0x19e2a2,_0x22408f){if(0x0==_0x22408f['length'])return!0x1;let _0x44ace4=!0x1;for(const _0x263ffe of _0x22408f){const _0x34ae75=this['_findSuggestions'](_0x263ffe['range'],'attribute')['filter'](_0x1b6df5=>!_0x1b6df5['meta']['isNextTo'])['map'](_0x39c6ac=>_0x39c6ac['suggestion']),_0x46d551=_0x4130c6({'newValue':_0x263ffe['newValue']});_0x34ae75['filter'](_0x4d0764=>{const [_0x124eed,_0x2066b1]=_0x4d0764['subType']['split']('|');return _0x124eed==_0x263ffe['key']&&_0x2066b1!=_0x46d551;})['forEach'](_0x501c6e=>{this['_reduceSuggestionAttributeRange'](_0x501c6e,_0x263ffe['range'],_0x19e2a2),_0x44ace4=!0x0;});}return _0x44ace4;}['_reduceSuggestionAttributeRange'](_0x3c4bb1,_0xfbb6d9,_0x356bdd){const _0x23471d=_0x3c4bb1['getFirstRange']()['getDifference'](_0xfbb6d9);0x0!==_0x23471d['length']?0x1!==_0x23471d['length']?this['_breakSuggestionMarker'](_0x3c4bb1,_0xfbb6d9['start'],_0xfbb6d9['end']):this['_setSuggestionRange'](_0x3c4bb1,_0x23471d[0x0]):_0x356bdd['removeMarker'](_0x3c4bb1['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa5c9f1){this['_editor']=_0xa5c9f1,this['_model']=_0xa5c9f1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1ba6e3,_0x370ca9,_0x3b0e6c,_0x50fbfb,_0x254e2f,_0x1fff7a,_0x29714f){return new o(this['_model'],{'type':_0x1ba6e3,'subType':_0x370ca9,'id':_0x3b0e6c,'originalSuggestionId':_0x29714f,'author':_0x50fbfb,'creator':_0x50fbfb,'attributes':_0x254e2f,'onAttributesChange':_0x1fff7a,'onAccept':(..._0x189256)=>this['getSuggestionCallback'](_0x1ba6e3,_0x370ca9,'accept')(..._0x189256),'onDiscard':(..._0x1f1676)=>this['getSuggestionCallback'](_0x1ba6e3,_0x370ca9,'discard')(..._0x1f1676)});}['registerCustomCallback'](_0x5cff36,_0x345965,_0xdfc3a6,_0x52eef8){const _0x40b66=_0x5cff36+':'+_0x345965+':'+_0xdfc3a6;this['_customCallbacks']['set'](_0x40b66,_0x52eef8);}['getSuggestionCallback'](_0x20ee60,_0x51717a,_0x266205){const _0x20e07d=_0x20ee60+':'+_0x51717a+':'+_0x266205;return this['_customCallbacks']['get'](_0x20e07d)||this['_defaultCallbacks']['get'](_0x20ee60+':'+_0x266205);}['_registerDefaultCallbacks'](){const _0x52f6ac=()=>!0x1,_0x14897d=_0x188bd1=>{_0x188bd1['sort']((_0x4438eb,_0x103e4f)=>_0x4438eb['start']['isBefore'](_0x103e4f['start'])?0x1:-0x1),this['_model']['change'](_0x2c5bb7=>{for(const _0x15a34a of _0x188bd1){let _0x28a999;_0x28a999=_0x15a34a['end']['isAtEnd']&&_0x15a34a['end']['parent']==_0x15a34a['start']['nodeAfter']?_0x2c5bb7['createSelection'](_0x15a34a['start']['nodeAfter'],'on'):_0x2c5bb7['createSelection'](_0x15a34a),this['_model']['deleteContent'](_0x28a999,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x367181=(_0x32298e,_0x35a843)=>{_0x35a843&&this['_model']['change'](_0x55bf85=>{const {commandName:_0x1c2614,commandParams:_0x1a7ca1=[]}=_0x35a843,_0x4213da=_0x32298e['map'](_0x5423ec=>(Lt(_0x5423ec)&&(_0x5423ec=this['_model']['createRange'](_0x5423ec['end'])),_0x5423ec))['filter'](_0x2899c5=>'$graveyard'!==_0x2899c5['root']['rootName']);if(_0x4213da['length']<0x1)return;const _0x12cdd2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x282b21=>_0x39b5cf['fromRange'](_0x282b21));_0x55bf85['setSelection'](_0x4213da);for(const _0x177a4f of this['_editor']['commands']['commands']())_0x177a4f['refresh']();_0x1a7ca1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c2614,..._0x1a7ca1);const _0x1026c0=_0x12cdd2['filter'](_0x3ee93c=>'$graveyard'!=_0x3ee93c['root']['rootName']);_0x1026c0['length']>0x0&&_0x55bf85['setSelection'](_0x1026c0);for(const _0x33b565 of _0x12cdd2)_0x33b565['detach']();});},_0x40731b=(_0x20b6f5,_0x31cb59)=>0x1==_0x20b6f5['length']&&0x1==_0x31cb59['length']&&_0x20b6f5[0x0]['end']['isEqual'](_0x31cb59[0x0]['start']),_0x55f981=(_0x586203,_0x23c803,_0x1230ab,_0x21bf1f)=>Wt(_0x586203,_0x23c803,_0x1230ab,_0x21bf1f)?[_0x586203,_0x23c803]:Wt(_0x23c803,_0x586203,_0x21bf1f,_0x1230ab)?[_0x23c803,_0x586203]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52f6ac),this['_defaultCallbacks']['set']('insertion:discard',_0x14897d),this['_defaultCallbacks']['set']('insertion:join',_0x40731b),this['_defaultCallbacks']['set']('insertion:chain',_0x55f981),this['_defaultCallbacks']['set']('deletion:accept',_0x14897d),this['_defaultCallbacks']['set']('deletion:discard',_0x52f6ac),this['_defaultCallbacks']['set']('deletion:join',_0x40731b),this['_defaultCallbacks']['set']('deletion:chain',_0x55f981),this['_defaultCallbacks']['set']('formatInline:accept',_0x367181),this['_defaultCallbacks']['set']('formatInline:discard',_0x52f6ac),this['_defaultCallbacks']['set']('formatInline:join',_0x40731b),this['_defaultCallbacks']['set']('formatInline:chain',_0x52f6ac),this['_defaultCallbacks']['set']('formatBlock:accept',_0x367181),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52f6ac),this['_defaultCallbacks']['set']('formatBlock:join',_0x40731b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52f6ac),this['_defaultCallbacks']['set']('attribute:accept',_0x52f6ac),this['_defaultCallbacks']['set']('attribute:discard',(_0x42f5a8,_0x16e067)=>{if(!_0x16e067)return;const _0x3d43d1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2f06a7=>{if(_0x16e067['key']==u)for(const _0x357df1 of _0x42f5a8){const _0xf3fef2=_0x357df1['start']['nodeAfter'],_0x4e8a06=_0x16e067['oldValue'];_0x2f06a7['rename'](_0xf3fef2,_0x4e8a06);}else{if(_0x3d43d1['_isBlockAttribute'](_0x16e067['key'])){for(const _0x301719 of _0x42f5a8)void 0x0!==_0x16e067['oldValue']?_0x2f06a7['setAttribute'](_0x16e067['key'],_0x16e067['oldValue'],_0x301719['start']['nodeAfter']):_0x2f06a7['removeAttribute'](_0x16e067['key'],_0x301719['start']['nodeAfter']);}else{for(const _0x38ba2e of _0x42f5a8)_0x16e067['oldValue']?_0x2f06a7['setAttribute'](_0x16e067['key'],_0x16e067['oldValue'],_0x38ba2e):_0x2f06a7['removeAttribute'](_0x16e067['key'],_0x38ba2e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40731b);}}function Gt(_0x1bc75e,_0x3ae56a,_0x416df5){for(const _0x2e8b30 of _0x3ae56a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e8b30['root']==_0x2e8b30)return!0x1;if(!_0x416df5['containsItem'](_0x2e8b30))return!0x1;if(_0x1bc75e['isObject'](_0x2e8b30)||_0x1bc75e['isLimit'](_0x2e8b30))return!0x0;}return!0x1;}function Lt(_0x2cbf2b){return _0x2cbf2b['end']['parent']==_0x2cbf2b['start']['nodeAfter']&&_0x2cbf2b['end']['isAtStart'];}function Jt(_0xa9dd15,_0x10048d,_0x5f2e29,_0x1b24fc){const _0x1d829d=_0x2eb13a=>!_0x2eb13a['item']['is']('$textProxy')&&!_0x1b24fc['isObject'](_0x2eb13a['item']),_0x527fe3=_0xa9dd15['start']['getLastMatchingPosition'](_0x1d829d),_0x3808e7=_0xa9dd15['end']['getLastMatchingPosition'](_0x1d829d,{'direction':'backward'});return(!_0xa9dd15['start']['isEqual'](_0x527fe3)||!_0xa9dd15['end']['isEqual'](_0x3808e7))&&(_0x527fe3['isBefore'](_0x3808e7)?_0x5f2e29['updateMarker'](_0x10048d,{'range':_0x5f2e29['createRange'](_0x527fe3,_0x3808e7)}):_0x5f2e29['removeMarker'](_0x10048d),!0x0);}function Kt(_0x168e54){return _0x4130c6(_0x168e54);}function Ht(_0x26c24d){const _0x439d2b=_0x26c24d['start']['nodeAfter'];return _0x439d2b&&_0x439d2b['is']('element');}function qt(_0x2f75b1,_0x5e5c85){return null==_0x2f75b1['end']['nodeBefore']&&_0x2f75b1['end']['parent']==_0x2f75b1['start']['nodeAfter']?zt(_0x2f75b1['start']['nodeAfter'],_0x5e5c85):_0x2f75b1;}function zt(_0x55b661,_0x29819b){const _0x1c9bb3=_0x29819b['schema']['isObject'](_0x55b661)||_0x29819b['schema']['isSelectable'](_0x55b661);return _0x29819b['createRange'](_0x29819b['createPositionAt'](_0x55b661,'before'),_0x1c9bb3?_0x29819b['createPositionAfter'](_0x55b661):_0x29819b['createPositionAt'](_0x55b661,'end'));}function Wt(_0x2afb45,_0x3e6098,_0x5aab23,_0x1c0d0c){return!!Qt(_0x2afb45,_0x3e6098)&&_0x5aab23['end']['isEqual'](_0x1c0d0c['start']);}function Qt(_0x3ed51d,_0x8e43c0){if(!_0x3ed51d['_isDataLoaded']||!_0x8e43c0['_isDataLoaded'])return!0x1;const _0x38d12c=new Set(Object['keys'](_0x3ed51d['attributes'])),_0x435458=new Set(Object['keys'](_0x8e43c0['attributes']));if(_0x38d12c['delete']('groupId'),_0x435458['delete']('groupId'),0x0==_0x38d12c['size']&&0x0==_0x435458['size'])return!0x0;if(_0x38d12c['size']!=_0x435458['size'])return!0x1;const _0x13fadc={..._0x3ed51d['attributes']},_0x5c9b04={..._0x8e43c0['attributes']};return delete _0x13fadc['groupId'],delete _0x5c9b04['groupId'],JSON['stringify'](_0x13fadc)==JSON['stringify'](_0x5c9b04);}function Xt(_0x4e5779,_0x2074c9){const _0x5bb93b=Yt(_0x4e5779['attributes']),_0x1061b4=Yt(_0x2074c9);if(!_0x4e5779['_isDataLoaded'])return!0x1;for(const _0x4ff302 of Object['keys'](_0x1061b4))if(!_0x5c3aba(_0x5bb93b[_0x4ff302],_0x1061b4[_0x4ff302]))return!0x1;return!0x0;}function Yt(_0x56b588){const _0x508e28=Object['assign']({},_0x56b588);return delete _0x508e28['skipNestingCheck'],delete _0x508e28['tablePasteChainId'],_0x508e28;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x824c0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2595ae,_0x22c477,_0x7c94a,_0xc791e3){super(),this['model']=_0x22c477,this['view']=_0x7c94a,this['commentThreadController']=_0xc791e3,this['_editor']=_0x2595ae,this['_acceptCommand']=_0x2595ae['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2595ae['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x586485,_0xc706a)=>_0x586485||_0xc706a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1663cc=>_0x1663cc&&this['_editor']['model']['canEditAt'](_0x22c477['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3046f1=>_0x3046f1&&this['_editor']['model']['canEditAt'](_0x22c477['getRanges']())),this['_pendingAction']=null,_0x7c94a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7c94a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7c94a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7c94a,'change:isDirty',()=>{_0x7c94a['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 _0x30589c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x30589c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x36f767{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a350a,_0xe7ecde,_0x166ada,_0x5524e8){super(_0x2a350a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x459411(_0x2a350a,c(_0x2a350a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xe7ecde['authoredAt']),this['bind']('authoredAt')['to'](_0xe7ecde),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',_0xe7ecde,'authoredAt',this,'descriptionParts',(_0x139053,_0x4fa487,_0x5dec7d)=>{const _0x997bc7=_0x5dec7d['map'](_0x22cb0d=>ls(_0x22cb0d['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x139053-0x1,_0xe7ecde['author']['name'],_0x4fa487?_0x5524e8['formatDateTime'](_0x4fa487):'',new DOMParser()['parseFromString'](_0x997bc7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x46b370(),this['focusTracker']=new _0x411687(),this['keystrokes']=new _0x5036c6(),this['focusCycler']=new _0x1ec038({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x313fc3=>_0x313fc3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xe7ecde,this['_localUser']=_0x166ada,this['_config']=_0x5524e8,_0x5524e8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3d5471(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x273cde}=this['_config'];this['commentsListView']=new _0x273cde(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',_0x25ecd9=>_0x25ecd9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29a693,_0x220a88)=>_0x29a693||!!_0x220a88);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x197f87}=this['_config'],_0x55b7c4=new _0x197f87(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44d810=_0x55b7c4['commentInputView'];return _0x55b7c4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44d810,'value',(_0x54945a,_0xbbb588,_0x957f71)=>!!_0x957f71||_0x54945a&&!_0xbbb588),_0x44d810['on']('submit',(_0x524d51,_0x23d2b3)=>{this['fire']('addComment',_0x23d2b3),_0x44d810['editor']['setData']('');}),_0x44d810['on']('cancel',()=>this['focus']()),_0x44d810['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b7c4;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x6711b8,_0x372792,_0x3f53cd,_0x301d69){super(_0x6711b8,_0x372792,_0x3f53cd,_0x301d69),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ba025=>_0x5ba025&&_0x5ba025[0x0]?_0x5ba025[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3cb8c1,_0x3e297e)=>{let _0xb1b077='';for(const _0x42f9ad of _0x3cb8c1)_0xb1b077+='<p>'+ls(_0x42f9ad['content'],_0x42f9ad['color'])+'</p>';return _0x3e297e?_0xb1b077:ti(_0xb1b077,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x301d69['SuggestionView'](_0x6711b8,_0x372792,{'formatDateTime':_0x301d69['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 _0x60e98a=this['bindTemplate'],_0x2b7ced=[this['suggestionView']];return this['commentsListView']&&_0x2b7ced['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2b7ced['push'](this['commentThreadInputView']),_0x2b7ced['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x60e98a['if']('isActive','ck-suggestion-wrapper--active'),_0x60e98a['to']('type',_0x4f0508=>'ck-suggestion-'+_0x4f0508),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':_0x60e98a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2b7ced};}['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 _0x36f767{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x56b354,_0x51be7b,_0x3dc81b){super(_0x56b354),this['_model']=_0x51be7b,this['_config']=_0x3dc81b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51be7b),this['acceptButton']=this['_createButton'](c(_0x56b354,'Accept\x20suggestion'),_0x516f82,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x56b354,'Discard\x20suggestion'),_0x40ee79,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cca20(_0x56b354,_0x51be7b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x46b370([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x411687(),this['keystrokes']=new _0x5036c6(),this['focusCycler']=new _0x1ec038({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5952a3=>_0x5952a3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x364de7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x364de7['innerHTML']=this['description'],this['on']('change:description',(_0x938b6d,_0x44453b,_0x5f34c7)=>{_0x364de7['innerHTML']=_0x5f34c7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x158582=this['bindTemplate'],_0x5ba265=[{'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':_0x158582['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x158582['to']('authoredAt',_0x332cb4=>this['_config']['formatDateTime'](_0x332cb4))}]}]},{'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']&&_0x5ba265['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':_0x5ba265}]};}['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'](_0x15fc6f,_0x6d8caf,_0x477d5c,_0x3a5a22,_0x5e7647){const _0x122b93=new _0x400f94(this['locale']);return _0x122b93['set']({'label':_0x15fc6f,'icon':_0x6d8caf,'tooltip':!0x0,'tooltipPosition':_0x5e7647}),_0x122b93['extendTemplate']({'attributes':{'class':_0x477d5c}}),_0x122b93['on']('execute',()=>{this['fire'](_0x3a5a22,this['_model']['id']);}),_0x122b93;}['_setupKeyboardNavigation'](){const _0x5d577d=this['element'];this['keystrokes']['listenTo'](_0x5d577d);for(const _0x216b78 of this['focusables'])this['focusTracker']['add'](_0x216b78['element']),this['keystrokes']['listenTo'](_0x216b78['element']);this['keystrokes']['set']('enter',(_0xd59a4a,_0x2cab2a)=>{_0x5d577d===_0xd59a4a['target']&&(this['focusCycler']['focusFirst'](),_0x2cab2a());}),this['keystrokes']['set']('esc',(_0x1eab00,_0x109626)=>{_0x5d577d!==_0x1eab00['target']&&(this['focus'](),_0x109626());});}}class d extends _0x59f721{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x182af8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x288edc){super(_0x288edc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x7b8d2f=this['editor']['config'];_0x7b8d2f['define']('trackChanges.SuggestionThreadView',fe),_0x7b8d2f['define']('trackChanges.SuggestionView',we),_0x7b8d2f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x7b8d2f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b55be,_0x2505fe){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xaf32dd,_0x2944f1]of this['_handleControllerBuffer']){const _0x51078e=this['_suggestionToController']['has'](_0xaf32dd);_0x51078e||_0x2944f1?_0x51078e&&_0x2944f1&&this['_destroyController'](_0xaf32dd):this['_initializeController'](_0xaf32dd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b55be,_0x2505fe);}['init'](){const _0xe674d1=this['editor'],_0x4bc41e=_0xe674d1['plugins']['get']('TrackChangesEditing'),_0x1f62cf=_0xe674d1['plugins']['get']('Annotations'),_0x85fafb=_0xe674d1['plugins']['get']('EditorAnnotations'),_0x2a31f4=_0xe674d1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x85fafb['addSourceCollector'](()=>{const _0x23aebd=[];for(const [_0x460f00,_0x550e9a]of Array['from'](this['_suggestionToController'])){const _0x4f749c=_0x460f00['getAllAdjacentSuggestions'](),_0x5944c8=[];for(const _0x2f511f of _0x4f749c){if(!_0x2f511f['isInContent'])continue;if(_0x2f511f['isMultiRange']){_0x5944c8['push'](..._0x2f511f['getRanges']());continue;}const _0x297c5e=_0x2f511f['getFirstRange']();if(_0x5944c8['length']>0x0){const _0x1b0d5f=_0x5944c8[0x0]['getJoined'](_0x297c5e);if(_0x1b0d5f){_0x5944c8[0x0]=_0x1b0d5f;continue;}}_0x5944c8['push'](_0x297c5e);}_0x23aebd['push']([_0x550e9a['view'],_0x5944c8]);}return _0x23aebd;}),this['listenTo'](_0x4bc41e,'suggestionLoaded',(_0x56ffa0,_0x4c865c)=>{this['listenTo'](_0x4c865c,'change:previous',(_0x3d6dd6,_0x2f789f,_0x271edb,_0x432874)=>{_0x4c865c['isInContent']&&(null==_0x271edb?(this['_updateController'](_0x432874['head']),this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x1)):(this['_updateController'](_0x271edb['head']),null==_0x432874&&this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x0)));}),null!==_0x4c865c['previous']?this['_updateController'](_0x4c865c['head']):this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x1);}),this['listenTo'](_0x4bc41e,'suggestionUnloaded',(_0x1021b8,_0x2b9a96,_0x46ba29)=>{this['stopListening'](_0x2b9a96,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b9a96),this['_suggestionToController']['has'](_0x2b9a96)&&this['_destroyController'](_0x2b9a96),_0x46ba29&&this['_updateController'](_0x46ba29['head']);}),this['listenTo'](_0x4bc41e,'suggestionChanged',(_0x57e394,_0x178cb3)=>{this['_updateController'](_0x178cb3);}),this['listenTo'](_0x1f62cf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a31f4,'addComment',(_0x357610,{threadId:_0x371813,isFromAdapter:_0x2f904e})=>{if(_0x2f904e||!_0x4bc41e['hasSuggestion'](_0x371813))return;const _0x52165e=_0x4bc41e['getSuggestion'](_0x371813);this['_suggestionToController']['get'](_0x52165e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18d3a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d90cc;for(const _0x472042 in _0x18d3a7){const _0x428fca=_0x472042,_0x24d35b=_0x18d3a7[_0x428fca];if('trackChangesLicenseKeyValid'==_0x24d35b||'trackChangesLicenseKeyInvalid'==_0x24d35b||'trackChangesLicenseKeyExpired'==_0x24d35b||'trackChangesLicenseKeyDomainLimit'==_0x24d35b||'trackChangesLicenseKeyNotAllowed'==_0x24d35b||'trackChangesLicenseKeyEvaluationLimit'==_0x24d35b||'trackChangesLicenseKeyTrialLimit'==_0x24d35b||'trackChangesLicenseKeyUsageLimit'==_0x24d35b){delete _0x18d3a7[_0x428fca],_0x5d90cc=_0x24d35b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x464cd4=this['editor']['plugins']['get']('Annotations'),_0x7f97d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x531328=Array['from'](_0x464cd4['activeAnnotations'],_0x5bf7a3=>_0x5bf7a3['innerView'])['filter'](_0x327468=>this['_viewToController']['has'](_0x327468)),_0xf7d39c=[];for(const _0x3df476 of _0x531328){const _0x30de68=this['_viewToController']['get'](_0x3df476)['model']['getAllAdjacentSuggestions']();_0xf7d39c['push'](..._0x30de68['reduce']((_0x244724,_0x388d2d)=>[..._0x244724,..._0x388d2d['getMarkerNames']()],[]));}_0x7f97d2['activeMarkers']=_0xf7d39c;}['_addUIComponentsToFactory'](){const _0x338741=this['editor'],_0x57a78e=_0x338741['locale'],_0x152013=c(_0x57a78e,'Track\x20changes'),_0x37c8c0=new _0x29a520([{'type':'switchbutton','model':new _0x423a90({'withText':!0x0,'isToggleable':!0x0,'label':_0x152013,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x338741['plugins']['has']('TrackChangesPreview')&&_0x37c8c0['addMany']([{'type':'separator'},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2c90f9 of _0x37c8c0)if(ke(_0x2c90f9)){const _0x13418a=_0x338741['commands']['get'](_0x2c90f9['model']['commandName']);_0x2c90f9['model']['bind']('isOn','isEnabled')['to'](_0x13418a,'value','isEnabled');}_0x338741['ui']['componentFactory']['add']('trackChanges',_0x39475d=>this['_createToolbarButton'](_0x39475d,_0x37c8c0,_0x152013)),_0x338741['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2f81c4=>this['_createMenuBarMenu'](_0x2f81c4,_0x37c8c0,_0x152013));}['_createToolbarButton'](_0x5d8a7e,_0x5c0e1f,_0x8a63fb){const _0x191b29=_0x471bad(_0x5d8a7e,_0x1aed8c),_0x1fe4cb=this['editor']['commands']['get']('trackChanges');_0x191b29['buttonView']['set']({'tooltip':_0x8a63fb,'label':_0x8a63fb,'icon':_0x3c6561}),_0x191b29['buttonView']['bind']('isOn')['to'](_0x1fe4cb,'value'),_0x191b29['buttonView']['on']('execute',()=>{_0x1fe4cb['execute'](),this['editor']['editing']['view']['focus']();}),_0x386c3e(_0x191b29,_0x5c0e1f,{'role':'menu'});const _0x407896=[];for(const _0x45f7ba of _0x5c0e1f)ke(_0x45f7ba)&&_0x407896['push'](this['editor']['commands']['get'](_0x45f7ba['model']['commandName']));const _0x2f9c7a=_0x191b29['buttonView'];return _0x2f9c7a['actionView']['unbind']('isEnabled'),_0x2f9c7a['arrowView']['unbind']('isEnabled'),_0x2f9c7a['actionView']['bind']('isEnabled')['to'](_0x1fe4cb,'isEnabled'),_0x2f9c7a['arrowView']['bind']('isEnabled')['toMany'](_0x407896,'isEnabled',(..._0x50d9dc)=>_0x50d9dc['some'](_0x35e492=>_0x35e492)),_0x191b29['on']('execute',_0x2a89e4=>{this['editor']['execute'](_0x2a89e4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x191b29;}['_createMenuBarMenu'](_0x221489,_0x47075f,_0x4c4ece){const _0x306e12=new _0x192111(_0x221489),_0x1f8f9f=this['editor']['commands']['get']('trackChanges');_0x306e12['buttonView']['set']({'label':_0x4c4ece,'icon':_0x3c6561});const _0x276b17=new _0x364d3b(_0x221489);for(const _0xd367f9 of _0x47075f){if('separator'==_0xd367f9['type']){_0x276b17['items']['add'](new _0x11b1e0(_0x221489));continue;}const _0x48dbdc=new _0x22223f(_0x221489,_0x306e12),_0x455c7b=new _0x112160(_0x221489),_0x431312=_0xd367f9['model'];_0x455c7b['bind'](...Object['keys'](_0x431312))['to'](_0x431312),_0x455c7b['delegate']('execute')['to'](_0x306e12),_0x455c7b['on']('execute',()=>{this['editor']['execute'](_0x431312['commandName']),this['editor']['editing']['view']['focus']();}),_0x48dbdc['children']['add'](_0x455c7b),_0x276b17['items']['add'](_0x48dbdc);}return _0x306e12['bind']('isEnabled')['to'](_0x1f8f9f,'isEnabled'),_0x306e12['panelView']['children']['add'](_0x276b17),_0x306e12;}['_initializeController'](_0x2ac1c6){const _0x446592=this['editor'],_0x16eda1=_0x446592['config'],_0x1784f0=_0x446592['plugins']['get']('Annotations'),_0x36d20f=_0x446592['plugins']['get']('CommentsRepository'),_0x1989b6=_0x446592['plugins']['get']('EditorAnnotations'),_0x3aaf84=_0x446592['plugins']['get'](_0x182af8)['me'],_0x42e630=_0x16eda1['get']('trackChanges')['SuggestionThreadView'],_0x17e61d=_0x16eda1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x402d56,CommentThreadInputView:_0x38bb26}=_0x446592['plugins']['get']('CommentsUI');let _0x5ee2c4,_0x1d4c53,_0x34e14a;this['_annotationViews']['has'](_0x2ac1c6['id'])?(_0x1d4c53=this['_annotationViews']['get'](_0x2ac1c6['id']),_0x5ee2c4=_0x1d4c53['mainView']):(_0x5ee2c4=new _0x42e630(_0x446592['locale'],_0x2ac1c6,_0x3aaf84,{'disableComments':this['_disableComments'],'editorConfig':{..._0x16eda1['get']('comments.editorConfig'),'licenseKey':_0x16eda1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x16eda1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16eda1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16eda1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x597a50(_0x16eda1['get']('locale'),_0x446592['locale']),'CommentView':_0x16eda1['get']('comments')['CommentView'],'CommentsListView':_0x402d56,'CommentThreadInputView':_0x38bb26,'SuggestionView':_0x17e61d}),_0x5ee2c4['suggestionView']['acceptButton']['on']('execute',()=>{_0x446592['editing']['view']['focus']();}),_0x5ee2c4['suggestionView']['discardButton']['on']('execute',()=>{_0x446592['editing']['view']['focus']();}),_0x1d4c53=_0x1784f0['createAnnotationView'](this['editor']['locale'],_0x5ee2c4),_0x1d4c53['bind']('isDirty')['to'](_0x5ee2c4,'isDirty'),_0x1d4c53['bind']('length')['to'](_0x5ee2c4),_0x1d4c53['bind']('type')['to'](_0x5ee2c4,'type',_0x8873ee=>'suggestion-'+_0x8873ee),_0x5ee2c4['on']('escape',()=>{_0x34e14a['fire']('escape');}),this['_annotationViews']['set'](_0x2ac1c6['id'],_0x1d4c53));const _0x41daeb=_0x36d20f['createCommentThreadController'](_0x2ac1c6['commentThread'],_0x5ee2c4),_0x4a77a0=new pe(_0x446592,_0x2ac1c6,_0x5ee2c4,_0x41daeb),_0x524775=_0x2ac1c6['getAllAdjacentSuggestions']()['filter'](_0x3379a5=>_0x3379a5['isInContent']);_0x5ee2c4['descriptionParts']=_0x446592['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x524775),this['_suggestionToController']['set'](_0x2ac1c6,_0x4a77a0),this['_viewToController']['set'](_0x5ee2c4,_0x4a77a0),_0x34e14a=_0x1784f0['createAnnotation']({'view':_0x1d4c53,'target':()=>{const _0x3bc8c0=[],_0x48a65d=_0x2ac1c6['getAllAdjacentSuggestions']()['filter'](_0x5dd874=>_0x5dd874['isInContent']);for(const _0x4e0ced of _0x48a65d)_0x3bc8c0['push'](..._0x4e0ced['getMarkers']());return _0x2492d1(_0x446592['editing'],_0x3bc8c0);},'type':()=>'suggestion-'+_0x4a77a0['view']['type']}),_0x36d20f['_bindAnnotationToEditors'](_0x5ee2c4,_0x34e14a),_0x1784f0['add'](_0x34e14a),_0x1989b6['registerAnnotation'](_0x34e14a);}['_destroyController'](_0x59028e){const _0x18ec5a=this['editor']['plugins']['get']('CommentsRepository'),_0x29c5c6=this['editor']['plugins']['get']('Annotations'),_0x57d2ac=this['_suggestionToController']['get'](_0x59028e),_0xbb355d=_0x57d2ac['view'],_0x2cc45f=_0x29c5c6['getByInnerView'](_0xbb355d);_0x18ec5a['_unbindEditors'](_0xbb355d),_0x2cc45f&&_0x29c5c6['remove'](_0x2cc45f),this['_suggestionToController']['delete'](_0x59028e),this['_viewToController']['delete'](_0xbb355d),_0x57d2ac['destroy']();}['_updateController'](_0x522309){if(!_0x522309['isInContent']||!this['_suggestionToController']['has'](_0x522309))return;const _0x19f920=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4828b4=this['_suggestionToController']['get'](_0x522309),_0x2747fe=_0x522309['getAllAdjacentSuggestions']();_0x4828b4['view']['descriptionParts']=_0x19f920['descriptionFactory']['getDescriptions'](_0x2747fe);}['destroy'](){for(const _0x50438d of this['_suggestionToController']['keys']())this['_destroyController'](_0x50438d);for(const _0x28b271 of this['_annotationViews']['values']())_0x28b271['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x13d4c8){return'model'in _0x13d4c8;}class k extends _0x59f721{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x349424){this['editor']['plugins']['get'](p)['adapter']=_0x349424;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xcb962f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xcb962f);}['getSuggestions']({skipNotAttached:_0x236f29=!0x1,toJSON:_0xa0ab92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x236f29,'toJSON':_0xa0ab92});}['getSuggestion'](_0x2f5c6b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f5c6b);}}const w=['Pagination'];class T extends _0x59f721{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3da459=this['editor'];if(_0x3da459['config']['define']('trackChangesData.editorCreator',_0x469e09=>{const _0x19d290=_0x3da459['model']['document']['getRootNames']()['reduce']((_0x40d6d1,_0x3d3d77)=>(_0x40d6d1[_0x3d3d77]='',_0x40d6d1),{});return _0x3da459['constructor']['create'](_0x19d290,_0x469e09);}),'function'!=typeof _0x3da459['config']['get']('trackChangesData')['editorCreator'])throw new _0x280f1c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x283332){return N(this['editor'],!0x0,_0x283332);}['getDataWithDiscardedSuggestions'](_0x302ade){return N(this['editor'],!0x1,_0x302ade);}}class D extends _0x59f721{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25ede9){function _0x5e4513(_0x9dcff5){return _0x9dcff5['map'](_0x410343=>String['fromCharCode'](_0x410343))['join']('');}super(_0x25ede9),this['result']='end',_0x25ede9[_0x5e4513([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4513([0x76,0x69,0x65,0x77])][_0x5e4513([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e4513([0x61,0x75,0x74,0x6f]),_0x25ede9[_0x5e4513([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e4513([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e4513([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e4513([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e4513([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x508518){return void 0x0!==_0x508518['getRootsAttributes'];}async function N(_0x14b818,_0xf22f48,_0x443aa8){const _0x177acc=_0x3d709e(_0x14b818,w);_0x177acc['plugins']['push'](p,D),_0x177acc['rootsAttributes']=Ge(_0x14b818)?_0x14b818['getRootsAttributes']():void 0x0;const _0x4e7091=document['createDocumentFragment'](),_0x3d28c7=_0x14b818['config']['get']('trackChangesData')['editorCreator'],_0x365bb1=await _0x3d28c7(_0x177acc,()=>function(_0x4bd1f4){const _0x30b179=document['createElement']('div');return _0x4bd1f4['appendChild'](_0x30b179),_0x30b179;}(_0x4e7091));!function(_0x3df490,_0x3d8c4a){const _0x13fa1d=_0x3df490['model']['document']['getRootNames']()['reduce']((_0x81a677,_0x3119a2)=>(_0x81a677[_0x3119a2]=_0x3df490['data']['get']({'rootName':_0x3119a2}),_0x81a677),{}),_0x11e72c=_0x3df490['plugins']['get']('Users')['users']['map'](_0x11dfb7=>({'id':_0x11dfb7['id'],'name':_0x11dfb7['name']})),_0x261d3e=_0x3df490['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a4493=_0x3df490['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x373331=_0x3d8c4a['plugins']['get']('Users'),_0x35990a=_0x3d8c4a['plugins']['get']('TrackChangesEditing'),_0x4a7289=_0x3d8c4a['plugins']['get']('CommentsRepository');for(const _0x63e972 of _0x4a7289['getCommentThreads']())_0x63e972['remove']();for(const _0x4f6031 of _0x11e72c)_0x373331['getUser'](_0x4f6031['id'])||_0x373331['addUser'](_0x4f6031);_0x373331['me']||_0x373331['useAnonymousUser']();for(const _0x4ab0b2 of _0x5a4493)_0x4a7289['addCommentThread'](_0x4ab0b2);for(const _0x3708b4 of _0x261d3e)_0x35990a['addSuggestionData'](_0x3708b4);_0x3d8c4a['data']['set'](_0x13fa1d);}(_0x14b818,_0x365bb1),_0x365bb1['execute'](_0xf22f48?'acceptAllSuggestions':'discardAllSuggestions');const _0xfc79e1=Ge(_0x365bb1)?_0x365bb1['getFullData'](_0x443aa8):_0x365bb1['data']['get'](_0x443aa8);return await _0x365bb1['destroy'](),_0xfc79e1;}class Me extends _0x36f767{['options'];constructor(_0x5aa68e,_0x87bf42){super(_0x5aa68e),this['options']=_0x87bf42,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'](_0x391e99,_0x5356e3){if(!this['element'])return;const _0x199788=[];for(const [_0x360930,_0x32f661]of _0x391e99){const _0x149987=document['createElement']('div');_0x149987['setAttribute']('data-ck-root-name',_0x360930),_0x149987['className']=_0x32f661['classes']+'\x20ck-track-changes-preview__root-container',_0x149987['innerHTML']=_0x32f661['content'],_0x199788['push'](_0x149987);}_0x5356e3(this['element'],_0x199788),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3c6e3f{constructor(_0x10b2b7){super(_0x10b2b7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1f5354=this['editor'],_0x486661=_0x1f5354['locale'],_0x21d08a=_0x1f5354['plugins']['get']('Dialog');let _0x2fb15b;const _0x8b55e6=function(_0x265ded){const _0x52cfb9={};if('editables'in _0x265ded['ui']['view']){for(const [_0x4ff507,_0x48924c]of Object['entries'](_0x265ded['ui']['view']['editables']))_0x52cfb9[_0x4ff507]=_0x48924c['element'];}else _0x52cfb9[_0x265ded['model']['document']['getRootNames']()[0x0]]=_0x265ded['ui']['view']['editable']['element'];return _0x52cfb9;}(_0x1f5354),_0x353948=function(_0x44ee89){let _0x21dc85=0x0;for(const _0x105cc2 of Object['values'](_0x44ee89))_0x21dc85=Math['max'](_0x21dc85,_0x105cc2['getBoundingClientRect']()['width']);let _0x512dde=0x0;for(const _0x44e1e8 of Object['values'](_0x44ee89))_0x512dde+=_0x44e1e8['getBoundingClientRect']()['height'];const _0x31db4d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x155b96=Math['min'](_0x512dde,_0x31db4d);return{'width':_0x21dc85,'height':_0x155b96};}(_0x8b55e6);_0x21d08a['show']({'id':'finalContentPreview','title':c(_0x486661,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x486661,{'dialogRects':_0x353948}),'onHide':()=>{_0x2fb15b['detachFromDom']();},'onShow':()=>{_0x1f5354['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41dd3c=>{const _0x54e2c7=this['_standarizeRootsData'](_0x41dd3c,_0x1f5354,_0x8b55e6);_0x21d08a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54e2c7,_0x1f5354['config']['get']('trackChanges.preview.renderFunction'));}),_0x2fb15b=new _0x529ec8(_0x486661,[_0x21d08a['view']]),_0x2fb15b['attachToDom'](),_0x2fb15b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1f5354['once']('destroy',()=>{_0x2fb15b['detachFromDom']();});const _0x23da21=_0x21d08a['view']['headerView']['class'];_0x21d08a['view']['headerView']['class']=_0x23da21?_0x23da21+'\x20ck-reset_all':'ck-reset_all',_0x21d08a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x21d08a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x32cc92=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d4b0e=_0x32cc92['previewMode'],_0x120958={};if('$labels'===_0x4d4b0e){for(const _0xac6371 of _0x32cc92['getMergeFieldsIds']())_0x120958[_0xac6371]=_0x32cc92['getLabel'](_0xac6371)||_0xac6371;}else{const _0x550bc7='$defaultValues'===_0x4d4b0e?_0x32cc92['getDefaultValues']():_0x32cc92['getDataSetValues'](_0x4d4b0e,!0x0);for(const _0xd0d416 of Object['entries'](_0x550bc7)){const [_0x5eda44,_0x11a4d4]=_0xd0d416;_0x120958[_0x5eda44]=null!==_0x11a4d4?_0x11a4d4:_0x32cc92['getLabel'](_0x5eda44)||_0x5eda44;}}return{'mergeFieldsData':_0x120958};}['_standarizeRootsData'](_0x188ffe,_0xe7f978,_0x499a50){let _0x3189bd;if('string'==typeof _0x188ffe){const _0x46e904=_0xe7f978['model']['document']['getRootNames']()[0x0];_0x3189bd={[_0x46e904]:_0x188ffe};}else _0x3189bd=_0x188ffe;const _0x344dfb=this['_fixMediaEmbeds'](_0x3189bd,_0xe7f978),_0x1de694=function(_0x23972b,_0x4c1c86){for(const [_0x2c378b,_0x343532]of _0x23972b)_0x343532['classes']=_0x4c1c86[_0x2c378b]['classList']['value']['replace']('ck-focused','');return _0x23972b;}(this['_sortRoots'](_0xe7f978)['reduce']((_0x17b020,_0x12b71e)=>(_0x17b020['push']([_0x12b71e,{'content':_0x344dfb[_0x12b71e],'classes':''}]),_0x17b020),[]),_0x499a50);return _0x1de694;}['_fixMediaEmbeds'](_0xd2d24f,_0x17ff38){if(!_0x17ff38['plugins']['has']('MediaEmbedEditing'))return _0xd2d24f;const _0x51e73c=_0x17ff38['plugins']['get']('MediaEmbedEditing');for(const [_0x37d0de,_0xf2e352]of Object['entries'](_0xd2d24f)){const _0x4dcba8=document['createElement']('div');_0x4dcba8['innerHTML']=_0xf2e352,(_0x4dcba8['querySelectorAll']('figure.media')['forEach'](_0x22e043=>{const _0x27eb2c=_0x22e043['querySelector']('oembed');if(_0x27eb2c){const _0x2dd8d7=_0x27eb2c['getAttribute']('url');if(_0x2dd8d7){const _0x1cdab2=_0x51e73c['registry']['getMediaViewElement'](new _0x34e4ea(_0x17ff38['editing']['view']['document']),_0x2dd8d7,{'elementName':'','renderForEditingView':!0x0}),_0x46cc48=document['createElement']('div');_0x46cc48['classList']['add']('ck-media__wrapper'),_0x1cdab2['render'](_0x46cc48,_0x17ff38['editing']['view']['domConverter']),_0x27eb2c['replaceWith'](_0x46cc48);}}}),_0xd2d24f[_0x37d0de]=_0x4dcba8['innerHTML']);}return _0xd2d24f;}['_sortRoots'](_0x333821){if(!function(_0x36e51c){return void 0x0!==_0x36e51c['getRootsAttributes'];}(_0x333821))return _0x333821['model']['document']['getRootNames']();const _0x88d5e1=[],_0x4554bf=new Map();for(const _0x19ed62 of _0x333821['model']['document']['getRootNames']()){const _0x362e50=_0x333821['editing']['view']['getDomRoot'](_0x19ed62)['getClientRects']()['item'](0x0);_0x88d5e1['push'](_0x19ed62),_0x4554bf['set'](_0x19ed62,_0x362e50);}return _0x88d5e1['sort']((_0x50511a,_0x28bb67)=>{const _0x3c299d=_0x4554bf['get'](_0x50511a),_0x12ca3f=_0x4554bf['get'](_0x28bb67);return _0x3c299d['y']-_0x12ca3f['y']||_0x3c299d['x']-_0x12ca3f['x'];}),_0x88d5e1;}}class te extends _0x59f721{static get['requires'](){return[T,_0x51c057];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7a8dd3){super(_0x7a8dd3),_0x7a8dd3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7a8dd3['config']['define']('trackChanges.preview.renderFunction',(_0x2f442e,_0x71c5d7)=>{for(const _0xb185f5 of _0x71c5d7)_0x2f442e['appendChild'](_0xb185f5);});}}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};