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

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 _0x5136f2,Plugin as _0x31a850,PendingActions as _0x253bb6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5121be,ObservableMixin as _0x21885c,uid as _0x34bf97,priorities as _0x26424c,insertToPriorityArray as _0x26c69e,toArray as _0x2fd845,logWarning as _0x507090,getEnvKeystrokeText as _0x1b231d,FocusTracker as _0x4ae692,KeystrokeHandler as _0x2e95d7,Collection as _0x2a6a53}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x252edb,IconCancel as _0x454f62,IconTrackChanges as _0x24a931}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x299ee1,View as _0x254aba,ViewCollection as _0x2a4980,FocusCycler as _0x4a7472,ViewModel as _0x19c07f,createDropdown as _0x4704a3,SplitButtonView as _0x4a4c5d,addListToDropdown as _0x29a0cc,MenuBarMenuView as _0x3eb7ca,MenuBarMenuListView as _0x741bb6,ListSeparatorView as _0x280b7c,MenuBarMenuListItemView as _0x4709cb,MenuBarMenuListItemButtonView as _0x2055c7,BodyCollection as _0x5f4960,Dialog as _0x4fc00c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x45c096,hashObject as _0x3d6420,surroundingMarkersDetector as _0x252763,FOCUS_ANNOTATION_KEYSTROKE as _0x2cee65,AriaDescriptionView as _0x3fde59,setupThreadKeyboardNavigation as _0x210702,trimHtml as ti,UserView as _0x1b925e,LateFocusButtonView as _0x14a78a,getDateTimeFormatter as _0x40d165,getAllMarkersDomElementsSorted as _0x521180,sanitizeEditorConfig as _0x4987e8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1fac1e,LiveRange as _0x275766,LivePosition as _0x14a222,DowncastWriter as _0x551d30}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xdde8e0,toWidget as _0x1785d4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x11da27,set as _0x1e69a4,isEqual as _0x439f28,unset as _0x4a4206,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5933fc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x58bc11}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1e072e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5136f2{['_enabledCommands'];constructor(_0x174315,_0x3a3fca){super(_0x174315),this['_enabledCommands']=_0x3a3fca,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 _0x403a8a of this['editor']['commands']['commands']())_0x403a8a['affectsData']&&!this['_enabledCommands']['has'](_0x403a8a)&&_0x403a8a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34fc15 of this['editor']['commands']['commands']())_0x34fc15['affectsData']&&!this['_enabledCommands']['has'](_0x34fc15)&&_0x34fc15['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x5136f2{['_suggestions'];constructor(_0x490bb3,_0x34da76){super(_0x490bb3),this['_suggestions']=_0x34da76,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa4eced){const _0x320edd=this['_suggestions']['get'](_0xa4eced);if(!_0x320edd)throw new _0x5121be('track-changes-accept-suggestion-not-found',this);const _0x117864=_0x320edd['getRanges']();this['editor']['model']['canEditAt'](_0x117864)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x320edd);}}class O extends _0x5136f2{['_suggestions'];constructor(_0x43e097,_0x57c52b){super(_0x43e097),this['_suggestions']=_0x57c52b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x132a9b){const _0x298515=this['_suggestions']['get'](_0x132a9b);if(!_0x298515)throw new _0x5121be('track-changes-discard-suggestion-not-found',this);const _0x154fe9=_0x298515['getRanges']();this['editor']['model']['canEditAt'](_0x154fe9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x298515);}}function ls(_0x4253da,_0x649e4a){let _0x324973='';return _0x324973+=_0x4253da['split']('*')['map']((_0x264d58,_0x2ea951)=>_0x2ea951%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x264d58)+'</span>':nn(_0x264d58))['join'](''),_0x649e4a&&(_0x324973+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x649e4a['value']+'\x22\x20title=\x22'+_0x649e4a['title']+'\x22></span>'),_0x324973;}function nn(_0x59dca2){const _0x538acd=document['createElement']('span');return _0x538acd['innerText']=_0x59dca2,_0x538acd['innerHTML'];}function ts(_0x48c112){return _0x48c112['sort']((_0x2abbab,_0x5818b7)=>'deletion'==_0x2abbab['type']&&'deletion'!=_0x5818b7['type']?-0x1:'deletion'!=_0x2abbab['type']&&'deletion'==_0x5818b7['type']?0x1:0x0);}function to(_0x2c15c3,_0x2db15a){let _0x2b71ba,_0xa88458=0x0;const _0x563226=[],_0x8badcd=_0x2db15a['schema'];for(;_0xa88458<_0x2c15c3['length'];){const _0x2ffa68=_0x2c15c3[_0xa88458],_0x4bf68d=_0x2c15c3[_0xa88458+0x1];_0x2b71ba||(_0x2b71ba=_0x2db15a['createPositionBefore'](_0x2ffa68)),on(_0x2db15a,_0x2ffa68,_0x4bf68d)||(_0x563226['push'](_0x2db15a['createRange'](_0x2b71ba,_0x8badcd['isObject'](_0x2ffa68)?_0x2db15a['createPositionAfter'](_0x2ffa68):_0x2db15a['createPositionAt'](_0x2ffa68,'end'))),_0x2b71ba=null),_0xa88458++;}return _0x563226;}function on(_0x5117ee,_0x3e9f1a,_0x3b4701){if(!_0x3b4701)return!0x1;const _0x17e160=_0x5117ee['createPositionAfter'](_0x3e9f1a),_0x2ae092=_0x5117ee['createPositionBefore'](_0x3b4701);return _0x17e160['isTouching'](_0x2ae092);}function rs(_0x5e1030,_0x3d3e10,_0x2ae038){for(;_0x2ae038['length'];){const _0x2b16c3=_0x2ae038['splice'](0x0,0x64);_0x5e1030['change'](()=>{for(const _0xa00a8e of _0x2b16c3)_0xa00a8e['isInContent']&&_0x3d3e10['execute'](_0xa00a8e['id']);});}}class R extends _0x5136f2{['_command'];['_suggestions'];constructor(_0x54cfd3,_0x8ecdad,_0x2b3039){super(_0x54cfd3),this['_command']=_0x8ecdad,this['_suggestions']=_0x2b3039,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x317f83=Array['from'](this['_suggestions']['values']())['some'](_0x2e613d=>_0x2e613d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x317f83;}['execute'](){const _0x3314bb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x39c8a2 of _0x3314bb){const _0x12b95f=_0x39c8a2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x12b95f))return;}rs(this['editor']['model'],this['_command'],_0x3314bb);}}class E extends _0x5136f2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x53b3cb,_0x332420,_0x1cbe87){super(_0x53b3cb),this['_command']=_0x332420,this['_suggestions']=_0x1cbe87,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x447568=this['editor']['model']['document']['selection'],_0x12e4da=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x136d4a,_0x53baf8){const _0x2e38e9=Array['from'](_0x136d4a['getRanges']()),_0x1ab400=new Set();for(const _0x2df8dc of _0x53baf8)if(_0x2df8dc['isInContent']){for(const _0x3e466b of _0x2e38e9)for(const _0xea07b2 of _0x2df8dc['getRanges']())(_0x3e466b['isIntersecting'](_0xea07b2)||_0x136d4a['isCollapsed']&&!_0x2df8dc['isMultiRange']&&_0x2df8dc['next']&&_0xea07b2['end']['isTouching'](_0x3e466b['start']))&&_0x1ab400['add'](_0x2df8dc);}return _0x1ab400;}(_0x447568,_0x12e4da),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xb8df0c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3c6997 of _0xb8df0c){const _0x16d29c=_0x3c6997['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16d29c))return;}rs(this['editor']['model'],this['_command'],_0xb8df0c);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x21885c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xaaeb1c,_0x3b555e){super(),this['id']=_0x3b555e['id'],this['type']=_0x3b555e['type'],this['subType']=_0x3b555e['subType']||null,this['author']=_0x3b555e['author'],this['creator']=_0x3b555e['creator']||_0x3b555e['author'],this['isExternal']=Boolean(_0x3b555e['attributes']&&_0x3b555e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3b555e['originalSuggestionId']||null,this['_model']=_0xaaeb1c,this['_onAccept']=_0x3b555e['onAccept'],this['_onDiscard']=_0x3b555e['onDiscard'],this['_onAttributesChange']=_0x3b555e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3b555e['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 _0x44a6eb=this;for(;_0x44a6eb['previous'];)_0x44a6eb=_0x44a6eb['previous'];return _0x44a6eb;}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'](_0x562d78){this['_markerNames']['add'](_0x562d78);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43079d=>this['_model']['markers']['get'](_0x43079d))['filter'](_0x5c8c7b=>_0x5c8c7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x412af7=>{for(const _0x5c0de5 of this['getMarkers']())_0x412af7['removeMarker'](_0x5c0de5);}),this['_markerNames']['clear']();}['removeMarker'](_0x2fdc73){this['_model']['change'](_0xeac152=>{_0xeac152['removeMarker'](_0x2fdc73);}),this['_markerNames']['delete'](_0x2fdc73);}['addRange'](_0x46f269){const _0x292b6c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x292b6c),this['_model']['change'](_0x49565e=>{_0x49565e['addMarker'](_0x292b6c,{'range':_0x46f269,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4987bf){for(const _0x514db1 of this['getRanges']())if(_0x514db1['isIntersecting'](_0x4987bf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4009e6=>_0x4009e6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x62f649,_0x505725)=>[..._0x62f649,..._0x505725['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2678ee=this['getRanges']();if(0x1!=_0x2678ee['length'])return null;const _0xd9c5ed=_0x2678ee[0x0],_0x2eb0b7=_0xd9c5ed['start']['nodeAfter'],_0x16fea6=_0xd9c5ed['end']['nodeBefore'];return _0x2eb0b7 instanceof _0x1fac1e?_0x2eb0b7!=_0x16fea6?null:_0x2eb0b7: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 _0x4ec9c5=[];let _0x3ea4b4=this['head'];for(;_0x3ea4b4;)_0x4ec9c5['push'](_0x3ea4b4),_0x3ea4b4=_0x3ea4b4['next'];return _0x4ec9c5;}['setAttribute'](_0x5e1842,_0x1a9a29){const _0x233da4=_0x11da27(this['attributes']);_0x1e69a4(_0x233da4,_0x5e1842,_0x1a9a29),_0x439f28(_0x233da4,this['attributes'])||(this['attributes']=_0x233da4,this['_onAttributesChange'](_0x233da4));}['removeAttribute'](_0x3b6e61){const _0x2f8994=_0x11da27(this['attributes']);_0x4a4206(_0x2f8994,_0x3b6e61),_0x439f28(_0x2f8994,this['attributes'])||(this['attributes']=_0x2f8994,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 _0x34bf97()['substr'](0x1,0x5);}}function c(_0x5ad94f,_0x410271,_0x586026){const _0x5059e9=_0x5ad94f['t'],t=_0x5ad94f['t'];switch(_0x410271){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',_0x586026);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x586026);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x586026);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x586026);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x586026);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',_0x586026);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x586026);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',_0x586026);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x586026);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x586026);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x586026);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x586026);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x586026);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x586026);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x586026);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x586026);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x586026);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x586026);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x586026);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x586026);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x586026);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x586026);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x586026);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x586026);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x586026);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'},_0x586026);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x586026);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x586026);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x586026);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x586026);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x586026);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x586026);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x586026);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'},_0x586026);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x586026);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x586026);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x586026);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x586026);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'},_0x586026);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x586026);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'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x586026);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x586026);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'},_0x586026);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x586026);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 _0x5059e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x586026);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5059e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x586026);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x586026);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'},_0x586026);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'},_0x586026);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'},_0x586026);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x410271;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x124951,_0x404c89){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x124951,this['_locale']=_0x404c89;}['getDescriptions'](_0x2fa2a8){const _0x3deaa4=[],_0xd5b22d=new Set(),_0x3e80f1=new Set();for(let _0x31d4d8=0x0;_0x31d4d8<_0x2fa2a8['length'];_0x31d4d8++){const _0x34bd7e=_0x2fa2a8[_0x31d4d8];if(!_0x34bd7e['isInContent'])continue;const _0x4b53e8=this['_handleCustomCallbackDescription'](_0x34bd7e);if(_0x4b53e8){if(null!=_0x34bd7e['subType']){if(_0xd5b22d['has'](_0x34bd7e['subType']))continue;_0xd5b22d['add'](_0x34bd7e['subType']);}_0x3deaa4['push'](_0x4b53e8);}else{if('attribute'!=_0x34bd7e['type'])'insertion'!=_0x34bd7e['type']&&'deletion'!=_0x34bd7e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3deaa4,_0x34bd7e,_0x2fa2a8[_0x31d4d8+0x1]);else{const _0x36456d=_0x34bd7e['data']['key'];if(_0x3e80f1['has'](_0x36456d))continue;_0x3e80f1['add'](_0x34bd7e['data']['key']),_0x36456d==u?this['_handleRenameSuggestionDescription'](_0x3deaa4,_0x34bd7e):this['_handleAttributeSuggestionDescription'](_0x3deaa4,_0x34bd7e);}}}return this['_resolveDescriptionItems'](_0x3deaa4);}['registerDescriptionCallback'](_0x1027d7){this['_customCallbacks']['push'](_0x1027d7);}['registerElementLabel'](_0x3e89bb,_0x525947,_0x1f56f3=_0x26424c['normal']){'function'==typeof _0x3e89bb?_0x26c69e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e89bb,'label':_0x525947,'priority':_0x1f56f3}):this['_itemLabels']['set'](_0x3e89bb,_0x525947);}['registerAttributeLabel'](_0x1e6ff7,_0x3e29c2){this['_attributeLabels']['set'](_0x1e6ff7,_0x3e29c2);}['getItemLabel'](_0x3d8eea,_0xf2bb12=0x1){let _0x4327cb;for(const _0x478f61 of this['_itemLabelsCallbacks'])if(_0x478f61['matchingCallback'](_0x3d8eea)){_0x4327cb=_0x478f61['label'];break;}return _0x4327cb||(_0x4327cb=this['_itemLabels']['get'](_0x3d8eea['name'])),_0x4327cb?_0x4327cb(_0xf2bb12):0x1!==_0xf2bb12?_0xf2bb12+'\x20'+_0x3d8eea['name']+'s':''+_0x3d8eea['name'];}['_addDescriptionItems'](_0x510464,_0x2a677){const _0x5324a2=_0x2a677['getFirstRange']()['getWalker'](),_0x35bdb3='insertion'==_0x2a677['type']?'add':'remove';for(const _0xf6e9b4 of _0x5324a2){const _0x4058b2=_0xf6e9b4['item'],_0x5ab8e1=_0x510464[_0x510464['length']-0x1];if(_0x4058b2['is']('$textProxy'))_0x5ab8e1&&_0x5ab8e1['type']['indexOf']('Container')>-0x1&&_0x510464['pop'](),_0x5ab8e1&&'text'==_0x5ab8e1['type']?_0x5ab8e1[_0x35bdb3]+=_0x4058b2['data']:_0x510464['push']({'type':'text','add':'add'==_0x35bdb3?_0x4058b2['data']:'','remove':'remove'==_0x35bdb3?_0x4058b2['data']:''});else{if(this['_schema']['isObject'](_0x4058b2)){const _0x5a148d=_0x4058b2;if(_0x5ab8e1&&_0x5ab8e1['type']['indexOf']('Container')>-0x1&&_0x510464['pop'](),'elementEnd'==_0xf6e9b4['type'])continue;_0x5ab8e1&&_0x5ab8e1['type']==_0x35bdb3+'Object'&&_0x5ab8e1['element']['name']==_0x5a148d['name']?_0x5ab8e1['quantity']++:_0x510464['push']({'type':_0x35bdb3+'Object','element':_0x5a148d,'quantity':0x1}),_0x5324a2['skip'](_0x3923a0=>!('elementEnd'==_0x3923a0['type']&&_0x3923a0['item']==_0x4058b2));}else{if(this['_schema']['checkChild'](_0x4058b2,'$text')||_0x4058b2['is']('element','softBreak')){const _0x42bfa1=_0x4058b2;if('add'==_0x35bdb3&&'elementStart'==_0xf6e9b4['type']||'remove'==_0x35bdb3&&'elementEnd'==_0xf6e9b4['type'])continue;if(_0x5ab8e1&&-0x1==_0x5ab8e1['type']['indexOf']('Container')){'text'==_0x5ab8e1['type']&&(_0x5ab8e1[_0x35bdb3]+='\x0a');continue;}let _0x42e8c9;if(_0x42e8c9='add'==_0x35bdb3?_0x42bfa1['nextSibling']&&!this['_schema']['isObject'](_0x42bfa1['nextSibling'])?_0x42bfa1['nextSibling']:null:_0x42bfa1['previousSibling']&&!this['_schema']['isObject'](_0x42bfa1['previousSibling'])?_0x42bfa1['previousSibling']:null,_0x42bfa1['isEmpty']||_0x42e8c9&&_0x42e8c9['isEmpty']){const _0x58555d=_0x42e8c9&&_0x42e8c9['isEmpty']?_0x42e8c9:_0x42bfa1;_0x5ab8e1&&_0x5ab8e1['type']==_0x35bdb3+'EmptyContainer'&&_0x5ab8e1['element']['name']==_0x58555d['name']?_0x5ab8e1['quantity']++:_0x510464['push']({'type':_0x35bdb3+'EmptyContainer','element':_0x58555d,'quantity':0x1});}else _0x510464['push']({'type':_0x35bdb3+'Container','element':_0x42bfa1});}}}}}['_resolveDescriptionItems'](_0x28dd6b){const _0x1ac432=this['_locale'],_0x3dd8e6=[],_0x4adb01=[],_0x30918c=[];for(const _0x4e3f07 of _0x28dd6b)switch(_0x4e3f07['type']){case'text':if(_0x4e3f07['add']=_0x4e3f07['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e3f07['remove']=_0x4e3f07['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e3f07['add']&&''!=_0x4e3f07['remove']){_0x3dd8e6['push']({'type':'replace','content':c(_0x1ac432,'REPLACE_TEXT',['\x22'+_0x4e3f07['remove']+'\x22','\x22'+_0x4e3f07['add']+'\x22'])});continue;}if(null!=_0x4e3f07['add']['match'](/^ +$/)){_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0',c(_0x1ac432,'ELEMENT_SPACE',_0x4e3f07['add']['length']))});continue;}if(null!=_0x4e3f07['remove']['match'](/^ +$/)){_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0',c(_0x1ac432,'ELEMENT_SPACE',_0x4e3f07['remove']['length']))});continue;}if(''!=_0x4e3f07['add']){_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0','\x22'+_0x4e3f07['add']+'\x22')});continue;}_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0','\x22'+_0x4e3f07['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'addContainer':_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Split:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'removeContainer':_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Merge:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'addFormat':_0x4adb01['push'](_0x4e3f07['key']);continue;case'removeFormat':_0x30918c['push'](_0x4e3f07['key']);continue;default:_0x3dd8e6['push'](_0x4e3f07);}if(_0x4adb01['length']){const _0x132fb9=_0x4adb01['map'](_0x31deed=>this['_attributeLabels']['has'](_0x31deed)?this['_attributeLabels']['get'](_0x31deed):_0x31deed)['join'](',\x20');_0x3dd8e6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x132fb9)});}if(_0x30918c['length']){const _0x1f4cfe=_0x30918c['map'](_0x49b22f=>this['_attributeLabels']['has'](_0x49b22f)?this['_attributeLabels']['get'](_0x49b22f):_0x49b22f)['join'](',\x20');_0x3dd8e6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f4cfe)});}return _0x3dd8e6;}['_handleCustomCallbackDescription'](_0x58f2d9){for(const _0x1a3dd6 of this['_customCallbacks']){const _0x5947b9=_0x1a3dd6(_0x58f2d9);if(_0x5947b9&&'type'in _0x5947b9)return _0x5947b9;}}['_handleAttributeSuggestionDescription'](_0x446e70,_0x565f4a){const _0x153924=_0x565f4a['data'],_0x2a7b08=void 0x0===_0x153924['newValue']?'removeFormat':'addFormat';_0x446e70['push']({'type':_0x2a7b08,'key':_0x153924['key']});}['_handleRenameSuggestionDescription'](_0x198863,_0xc820c2){_0x198863['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc820c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc3663f,_0x2f24e7,_0x535ac3){if(this['_addDescriptionItems'](_0xc3663f,_0x2f24e7),_0x535ac3&&_0x535ac3['getFirstRange']()&&!_0x2f24e7['getFirstRange']()['end']['isEqual'](_0x535ac3['getFirstRange']()['start'])){const _0x3499f5=_0xc3663f[_0xc3663f['length']-0x1],_0x87bf5e='insertion'==_0x2f24e7['type']?'add':'remove';_0x3499f5&&'text'==_0x3499f5['type']&&(_0x3499f5[_0x87bf5e]+='\x0a');}}}class U extends _0x31a850{['afterInit'](){const _0x10c727=this['editor'],_0x543323=_0x10c727['plugins']['get']('TrackChangesEditing');_0x10c727['commands']['get']('showAIAssistant')&&_0x543323['enableCommand']('showAIAssistant');}}class V extends _0x31a850{['afterInit'](){const _0x1ca0ae=this['editor'],_0x444fc8=_0x1ca0ae['locale'];if(!_0x1ca0ae['plugins']['has']('AlignmentEditing'))return;const _0x477963=_0x1ca0ae['plugins']['get']('TrackChangesEditing');_0x477963['enableDefaultAttributesIntegration']('alignment'),_0x477963['registerBlockAttribute']('alignment'),_0x477963['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x444fc8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bddfa=this['editor'],_0x55d943=_0x4bddfa['locale'];_0x4bddfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a97d9=>{if('formatBlock'!=_0x5a97d9['type'])return;const {data:_0x30d0ca}=_0x5a97d9;if(_0x30d0ca&&'alignment'==_0x30d0ca['commandName']){const _0x39933c=_0x30d0ca['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x55d943,'*Format:*\x20%0',function(_0x2a049f){switch(_0x2a049f){case'left':return c(_0x55d943,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x55d943,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x55d943,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x55d943,'FORMAT_JUSTIFY_TEXT');}}(_0x39933c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x31a850{['afterInit'](){const _0x30f636=this['editor'],_0x50843d=_0x30f636['plugins']['get']('TrackChangesEditing'),_0x3dc4ed=_0x30f636['locale'];for(const _0x574964 of Zt){if(!_0x30f636['plugins']['has'](_0x574964))continue;const _0x2bc0be=_0x574964['slice'](0x0,-0x7)['toLowerCase'](),_0x1527ad='FORMAT_'+_0x2bc0be['toUpperCase']();_0x50843d['enableDefaultAttributesIntegration'](_0x2bc0be),_0x50843d['registerInlineAttribute'](_0x2bc0be),_0x50843d['descriptionFactory']['registerAttributeLabel'](_0x2bc0be,c(_0x3dc4ed,_0x1527ad));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490a8d=this['editor'],_0x4d2d42=_0x490a8d['locale'],_0x314020=_0x490a8d['plugins']['get']('TrackChangesEditing');function _0x48fc04(_0x41438c,_0x1a0dce){_0x314020['descriptionFactory']['registerDescriptionCallback'](_0x42393e=>{if('formatInline'!=_0x42393e['type'])return;const {data:_0x4042fd}=_0x42393e;return _0x4042fd&&_0x4042fd['commandName']===_0x41438c?_0x4042fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4d2d42,'*Format:*\x20%0',_0x1a0dce)}:{'type':'format','content':c(_0x4d2d42,'*Remove\x20format:*\x20%0',_0x1a0dce)}:void 0x0;});}_0x48fc04('bold',c(_0x4d2d42,'FORMAT_BOLD')),_0x48fc04('italic',c(_0x4d2d42,'FORMAT_ITALIC')),_0x48fc04('underline',c(_0x4d2d42,'FORMAT_UNDERLINE')),_0x48fc04('code',c(_0x4d2d42,'FORMAT_CODE')),_0x48fc04('strikethrough',c(_0x4d2d42,'FORMAT_STRIKETHROUGH')),_0x48fc04('subscript',c(_0x4d2d42,'FORMAT_SUBSCRIPT')),_0x48fc04('superscript',c(_0x4d2d42,'FORMAT_SUPERSCRIPT'));}}class G extends _0x31a850{['afterInit'](){const _0x10c558=this['editor'],_0x3f59f8=_0x10c558['locale'];if(!_0x10c558['plugins']['has']('BlockQuoteEditing'))return;const _0x55fe7f=_0x10c558['plugins']['get']('TrackChangesEditing'),_0x37e604=this['editor']['commands']['get']('blockQuote');_0x55fe7f['enableCommand']('blockQuote',(_0x1f55a3,_0x53d98e={})=>{const _0x12f763=this['editor']['model']['document']['selection'],_0x2c3a8f=_0x53d98e&&void 0x0!==_0x53d98e['forceValue']?_0x53d98e['forceValue']:!_0x37e604['value'];let _0x25de04=[];if(_0x2c3a8f){const _0x30c33=Array['from'](_0x12f763['getSelectedBlocks']())['filter'](_0x49a760=>oo(_0x49a760)||function(_0x11ccc2,_0x4c9cde){const _0x60f947=_0x4c9cde['checkChild'](_0x11ccc2['parent'],'blockQuote'),_0x4562c0=_0x4c9cde['checkChild'](['$root','blockQuote'],_0x11ccc2);return _0x60f947&&_0x4562c0;}(_0x49a760,this['editor']['model']['schema']));_0x25de04=to(_0x30c33,_0x10c558['model']);}else{const _0x40df60=Array['from'](_0x12f763['getSelectedBlocks']())['filter'](_0x266f0c=>oo(_0x266f0c));_0x25de04=to(_0x40df60,_0x10c558['model']);}_0x10c558['model']['change'](()=>{for(const _0x5ea898 of _0x25de04)_0x55fe7f['markBlockFormat'](_0x5ea898,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c3a8f}]});});}),_0x55fe7f['descriptionFactory']['registerDescriptionCallback'](_0x50a3e3=>{const {data:_0x1bd07e}=_0x50a3e3;if(_0x1bd07e&&'blockQuote'==_0x1bd07e['commandName']){const _0x493ce3=c(_0x3f59f8,'ELEMENT_BLOCK_QUOTE');return _0x1bd07e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f59f8,'*Set\x20format:*\x20%0',_0x493ce3)}:{'type':'format','content':c(_0x3f59f8,'*Remove\x20format:*\x20%0',_0x493ce3)};}});}}function oo(_0x1e9ab7){return'blockQuote'==_0x1e9ab7['parent']['name'];}class L extends _0x31a850{['afterInit'](){const _0x2dc207=this['editor'],_0x5066c6=_0x2dc207['locale'],_0xd60693=_0x2dc207['plugins']['get']('TrackChangesEditing');_0x2dc207['plugins']['has']('BookmarkEditing')&&(_0xd60693['enableCommand']('insertBookmark'),_0xd60693['enableDefaultAttributesIntegration']('updateBookmark'),_0xd60693['registerBlockAttribute']('bookmarkId'),_0xd60693['descriptionFactory']['registerDescriptionCallback'](_0x2fcd0b=>{if('insertion'!=_0x2fcd0b['type']&&'deletion'!=_0x2fcd0b['type']&&'attribute'!=_0x2fcd0b['type'])return;const _0x41f87d=_0x2fcd0b['getContainedElement']();if(null==_0x41f87d)return;if(!_0x41f87d['is']('element','bookmark'))return;const _0x423633=_0x41f87d['getAttribute']('bookmarkId');if('insertion'==_0x2fcd0b['type'])return{'type':'insertion','content':c(_0x5066c6,'*Insert:*\x20%0','\x22'+_0x423633+'\x22\x20'+c(_0x5066c6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2fcd0b['type'])return{'type':'deletion','content':c(_0x5066c6,'*Remove:*\x20%0','\x22'+_0x423633+'\x22\x20'+c(_0x5066c6,'ELEMENT_BOOKMARK'))};const {data:_0x551d03}=_0x2fcd0b;if(!_0x551d03||'bookmarkId'!=_0x551d03['key'])return;return{'type':'format','content':c(_0x5066c6,'*Set\x20bookmark:*\x20%0','\x22'+_0x551d03['newValue']+'\x22')};}));}}class J extends _0x31a850{['afterInit'](){const _0x4fc0b5=this['editor'];_0x4fc0b5['plugins']['has']('CaseChange')&&(_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x31a850{['afterInit'](){const _0xc99c48=this['editor'];_0xc99c48['commands']['get']('ckbox')&&_0xc99c48['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x31a850{['afterInit'](){const _0x255d23=this['editor'];if(!_0x255d23['plugins']['has']('CodeBlock'))return;const _0x5f1d11=_0x255d23['plugins']['get']('TrackChangesEditing'),_0x27f3bd=_0x255d23['locale'],_0x1b0ee4=_0x255d23['config']['get']('codeBlock')['languages'],_0x5cc3d8=_0x255d23['commands']['get']('codeBlock');_0x5f1d11['enableCommand']('indentCodeBlock'),_0x5f1d11['enableCommand']('outdentCodeBlock'),_0x5f1d11['enableCommand']('codeBlock',(_0x3b5dd6,_0x205fa8={})=>{const _0x171088=_0x255d23['model'],_0x249128=_0x255d23['model']['document']['selection'],_0x2d176e=_0x205fa8&&void 0x0!==_0x205fa8['forceValue']?_0x205fa8['forceValue']:!_0x5cc3d8['value'];let _0x1979f4;_0x205fa8['language']||(_0x205fa8['language']=_0x1b0ee4[0x0]['language']),_0x1979f4=_0x2d176e?Array['from'](_0x249128['getSelectedBlocks']())['filter'](_0x5bb7ef=>eo(_0x5bb7ef)||function(_0x1eea78,_0x5e8e54){if(_0x1eea78['is']('rootElement')||_0x5e8e54['isLimit'](_0x1eea78))return!0x1;return _0x5e8e54['checkChild'](_0x1eea78['parent'],'codeBlock');}(_0x5bb7ef,_0x171088['schema'])):Array['from'](_0x249128['getSelectedBlocks']())['filter'](_0x586f59=>eo(_0x586f59));const _0x415501=to(_0x1979f4,_0x171088);_0x171088['change'](()=>{for(const _0x564af7 of _0x415501)_0x5f1d11['markBlockFormat'](_0x564af7,{'commandName':'codeBlock','commandParams':[{..._0x205fa8,'forceValue':_0x2d176e}],'formatGroupId':'blockName'});});}),(_0x5f1d11['descriptionFactory']['registerElementLabel']('codeBlock',_0x28ed6f=>c(_0x27f3bd,'ELEMENT_CODE_BLOCK',_0x28ed6f)),_0x5f1d11['descriptionFactory']['registerDescriptionCallback'](_0x374343=>{if('formatBlock'!=_0x374343['type'])return;const _0x34362d=_0x27f3bd['t'],{data:_0x378c3e}=_0x374343;if(!_0x378c3e||'codeBlock'!=_0x378c3e['commandName'])return;const _0x447a5c=_0x378c3e['commandParams'][0x0]['language'],_0x341614=_0x34362d(_0x1b0ee4['find'](_0x2c9d67=>_0x2c9d67['language']===_0x447a5c)['label'])['toLowerCase']();return _0x378c3e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27f3bd,'*Set\x20format:*\x20%0',c(_0x27f3bd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x341614+')')}:{'type':'format','content':c(_0x27f3bd,'*Remove\x20format:*\x20%0',c(_0x27f3bd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x37183d){return'codeBlock'==_0x37183d['name'];}class q extends _0x31a850{['afterInit'](){const _0x33d507=this['editor'];if(!_0x33d507['plugins']['has']('CommentsEditing'))return;_0x33d507['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x25c99c,_0x1fa152,_0x2513f8){const _0x305b7e=[];for(const _0x48a902 of _0x1fa152['getItems']())_0x48a902['hasAttribute'](_0x25c99c)&&_0x305b7e['push'](_0x2513f8['createRangeOn'](_0x48a902));return _0x305b7e;}function Fe(_0x599c9b,_0x34068e,{showActiveMarker:_0x47a886=!0x0}={}){const _0x5bba7f=_0x599c9b['plugins']['get']('TrackChangesEditing');return(_0x4cb637,_0x1d35ba,_0x57f697)=>{if(!_0x57f697['consumable']['test'](_0x1d35ba['markerRange'],_0x4cb637['name']))return;const _0x11a304=_0x1d35ba['markerRange']['getWalker'](),_0x5b8f5a=_0x1d35ba['markerRange']['start'],_0x9ae7f5=_0x599c9b['model']['schema'];let _0x15ed83=null,_0x3671fb=null,_0x55c536=!0x1,_0x1ce44b=!0x1;for(const _0x2e105a of _0x11a304){const _0x3aa39a=_0x2e105a['item'];_0x55c536=_0x55c536||_0x9ae7f5['isContent'](_0x3aa39a);const _0xafbe20=_0x57f697['mapper']['toViewElement'](_0x3aa39a);if(_0xafbe20&&_0xafbe20['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e105a['type']&&(_0x9ae7f5['isBlock'](_0x3aa39a)&&!_0x9ae7f5['isLimit'](_0x3aa39a)&&(_0x3aa39a['nextSibling']||_0x5b8f5a['isAtEnd']?_0x15ed83&&_0x15ed83['parent']==_0x3aa39a||(_0x15ed83=_0x3aa39a,_0x25ebaf(_0x2e105a['previousPosition']),_0x1ce44b=!0x0):_0x3671fb=_0x3671fb||_0x2e105a['previousPosition']));}function _0x25ebaf(_0x3ab92e){const {id:_0x54bc76,authorId:_0x5d798e}=_0x5bba7f['_splitMarkerName'](_0x1d35ba['markerName']),_0x45925a=_0x57f697['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34068e,'data-suggestion':_0x54bc76,'data-author-id':_0x5d798e}),_0x888be8=_0x57f697['mapper']['toViewPosition'](_0x3ab92e);_0x47a886&&_0x5bba7f['activeMarkers']['includes'](_0x1d35ba['markerName'])&&_0x57f697['writer']['addClass']('ck-suggestion-marker--active',_0x45925a),_0x57f697['writer']['insert'](_0x888be8,_0x45925a),_0x57f697['mapper']['bindElementToMarker'](_0x45925a,_0x1d35ba['markerName']);}_0x55c536||_0x1ce44b||!_0x3671fb||_0x25ebaf(_0x3671fb);};}class z extends _0x31a850{static get['requires'](){return[_0x5933fc];}['init'](){const _0x43b984=this['editor'],_0x35f2d2=_0x43b984['plugins']['get']('TrackChangesEditing');_0x35f2d2['enableCommand']('delete');const _0x44b410=_0x43b984['commands']['get']('deleteForward');_0x35f2d2['enableCommand']('deleteForward',(_0x377263,_0x46b4e2={})=>{const _0x320686=_0x43b984['model']['createSelection'](_0x43b984['model']['document']['selection']);_0x320686['isCollapsed']&&_0x43b984['model']['modifySelection'](_0x320686,{'direction':'forward','unit':_0x46b4e2['unit']});const _0x1c8890=_0x320686['getFirstRange'](),_0x171b14=_0x275766['fromRange'](_0x1c8890);let _0x267055;_0x377263(_0x46b4e2),_0x267055='$graveyard'==_0x171b14['root']['rootName']?_0x43b984['model']['createRange'](_0x1c8890['start']):_0x43b984['model']['createRange'](_0x171b14['start'],_0x171b14['end']),_0x171b14['detach'](),_0x43b984['model']['enqueueChange'](_0x44b410['buffer']['batch'],_0x1ef327=>{_0x44b410['buffer']['lock'](),_0x1ef327['setSelection'](_0x1ef327['createRange'](_0x267055['end'])),_0x44b410['buffer']['unlock']();});}),_0x43b984['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x43b984,'merge'),{'priority':'high'}),_0x43b984['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c281c,_0x5a80fe,_0x131c10)=>{_0x131c10['options']['showSuggestionHighlights']&&Fe(_0x43b984,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c281c,_0x5a80fe,_0x131c10);},{'priority':'high'}),_0x43b984['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x52669c,_0x99988c,_0x3a67fc)=>{const _0x276c5f=_0x3a67fc['mapper']['markerNameToElements'](_0x99988c['markerName']);if(_0x276c5f){for(const _0xd3bcfd of _0x276c5f)_0xd3bcfd['is']('uiElement')&&(_0x3a67fc['mapper']['unbindElementFromMarkerName'](_0xd3bcfd,_0x99988c['markerName']),_0x3a67fc['writer']['remove'](_0xd3bcfd));}},{'priority':'high'});}}class W extends _0x31a850{['afterInit'](){const _0x2c3fed=this['editor'];if(!_0x2c3fed['plugins']['has']('ListEditing'))return;const _0x19f69d=_0x2c3fed['locale'],_0x1cd784=_0x2c3fed['plugins']['get']('TrackChangesEditing'),_0x377c10=_0x2c3fed['plugins']['has']('TodoListEditing'),_0x593ed3=!!_0x2c3fed['config']['get']('list.multiBlock');function _0x28119a(_0xdd4f2){return{'type':'format','content':''+c(_0x19f69d,'*Set\x20format:*\x20%0',_0xdd4f2)};}function _0x5507c0(_0x457e50){return{'type':'format','content':''+c(_0x19f69d,'*Remove\x20format:*\x20%0',_0x457e50)};}_0x1cd784['enableDefaultAttributesIntegration']('numberedList'),_0x1cd784['enableDefaultAttributesIntegration']('bulletedList'),_0x1cd784['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cd784['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cd784['enableDefaultAttributesIntegration']('indentList'),_0x1cd784['enableDefaultAttributesIntegration']('outdentList'),_0x1cd784['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cd784['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cd784['registerBlockAttribute']('listItemId'),_0x1cd784['registerBlockAttribute']('listType'),_0x1cd784['registerBlockAttribute']('listIndent'),_0x593ed3&&(_0x1cd784['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cd784['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x377c10&&(_0x1cd784['enableDefaultAttributesIntegration']('todoList'),_0x1cd784['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cd784['registerBlockAttribute']('todoListChecked'),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0xc7ab93=>{const {data:_0x56681c}=_0xc7ab93;if(_0x56681c&&'todoListChecked'==_0x56681c['key'])return{'type':'format','content':_0x56681c['newValue']?c(_0x19f69d,'*Check\x20item*'):c(_0x19f69d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2eda39=>{if(_0x2eda39['batch']['isUndo'])return!0x1;let _0x201314=!0x1;const _0x33b8f6=_0x1cd784['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4961a3=>'todoListChecked'===_0x1cd784['_getAttributeKey'](_0x4961a3));for(const _0x32f246 of _0x33b8f6){'todo'!=_0x32f246['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cd784['_findSuggestions'](_0x32f246['getFirstRange'](),'attribute')['find'](_0x9fd7f9=>'listType'===_0x1cd784['_getAttributeKey'](_0x9fd7f9['suggestion']))||(_0x2eda39['removeMarker'](_0x32f246['getFirstMarker']()),_0x201314=!0x0));}return _0x201314;})),_0x1cd784['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x19f69d,'FORMAT_INDENT'));const _0x433e6b={'type':'format','content':''};_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x435626=>{const {data:_0x1652f3}=_0x435626;if(!_0x1652f3||'listType'!=_0x1652f3['key'])return;let _0x1d308b=_0x435626['head'];for(;_0x1d308b;){if(_0x1d308b['data']&&(('listStyle'==_0x1d308b['data']['key']||'listMarkerStyle'==_0x1d308b['data']['key'])&&(_0x1d308b['data']['newValue']&&'default'!=_0x1d308b['data']['newValue']||'default'!=_0x1d308b['data']['oldValue']&&!_0x1652f3['newValue'])||!_0x593ed3&&_0x1d308b['data']['key']==u))return _0x433e6b;_0x1d308b=_0x1d308b['next'];}if(null==_0x1652f3['newValue'])switch(_0x1652f3['oldValue']){case'bulleted':return _0x5507c0(c(_0x19f69d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5507c0(c(_0x19f69d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5507c0(c(_0x19f69d,'ELEMENT_TODO_LIST'));}switch(_0x1652f3['newValue']){case'bulleted':return _0x28119a(c(_0x19f69d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28119a(c(_0x19f69d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28119a(c(_0x19f69d,'ELEMENT_TODO_LIST'));}}),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x2ea53c=>{const {data:_0x506cab}=_0x2ea53c;if(_0x506cab&&'listIndent'==_0x506cab['key'])return null==_0x506cab['newValue']||null==_0x506cab['oldValue']&&0x0==_0x506cab['newValue']?_0x433e6b:void 0x0;}),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x471f94=>{if('attribute'!=_0x471f94['type'])return;const {data:_0xfe086f}=_0x471f94;if(!_0xfe086f||'listItemId'!=_0xfe086f['key'])return;const _0x59236f=Te(_0x471f94);return'newValue'==_0x59236f?{'type':'format','content':c(_0x19f69d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59236f?{'type':'format','content':c(_0x19f69d,'*Split:*\x20list\x20item')}:_0x433e6b;}),_0x2c3fed['model']['document']['registerPostFixer'](_0x2400be=>this['listItemIdFixer'](_0x2400be)),_0x2c3fed['model']['document']['registerPostFixer'](_0x1d855e=>this['noTrackChangesFixer'](_0x1d855e)),_0x2c3fed['model']['document']['on']('change:data',(_0x226707,_0x87fe2)=>{if(_0x87fe2['isUndo']||!_0x87fe2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x45324b){if(_0x45324b['batch']['isUndo']||!_0x45324b['batch']['isLocal'])return!0x1;let _0x1cdd3d=!0x1;const _0x542eb4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x93267c=>_0x93267c['data']&&'listItemId'==_0x93267c['data']['key'])['filter'](_0x2248b8=>_0x2248b8['data']['newValue']&&_0x2248b8['data']['oldValue']);for(const _0x1c8c90 of _0x542eb4)Te(_0x1c8c90)||(_0x45324b['removeMarker'](_0x1c8c90['getFirstMarker']()),_0x1cdd3d=!0x0);return _0x1cdd3d;}['noTrackChangesFixer'](_0xa168cc){if(_0xa168cc['batch']['isUndo']||!_0xa168cc['batch']['isLocal'])return!0x1;const _0x3362b2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3362b2['trackChangesCommand']['value'])return!0x1;let _0x44632f=!0x1;const _0x2c57e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x512d69=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf25499=>'attribute'==_0xf25499['type'])['filter'](_0xb41842=>_0x2c57e2['includes'](_0xb41842['attributeKey']));if(0x0==_0x512d69['length'])return _0x44632f;for(const _0x197576 of _0x512d69){const _0x72a98f=_0x3362b2['_findSuggestions'](_0x197576['range'],'attribute')['filter'](_0x5ca00f=>!_0x5ca00f['meta']['isNextTo'])['map'](_0x1e8cb6=>_0x1e8cb6['suggestion'])['filter'](_0xd5a4b2=>{const _0x22e3dc=_0x3362b2['_getAttributeKey'](_0xd5a4b2);return _0x2c57e2['includes'](_0x22e3dc);});if(_0x72a98f['length']){for(const _0x49fb68 of _0x72a98f)_0xa168cc['removeMarker'](_0x49fb68['getFirstMarker']());_0x44632f=!0x0;}}return _0x44632f;}['assureChains'](){const _0x1ae5f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5309c4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32774a;const _0x1957f0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x237b78=>{if(_0x237b78['data']['oldRange']||!_0x237b78['data']['newRange'])return null;if(!_0x237b78['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7c7c88}=_0x1ae5f6['_splitMarkerName'](_0x237b78['name']);if(!_0x1ae5f6['hasSuggestion'](_0x7c7c88))return null;const _0x15b6d6=_0x1ae5f6['getSuggestion'](_0x7c7c88);return _0x5309c4['includes'](_0x15b6d6['data']['key']);})['map'](_0x4aa7ca=>{const {id:_0x539f73}=_0x1ae5f6['_splitMarkerName'](_0x4aa7ca['name']),_0x58c184=_0x1ae5f6['getSuggestion'](_0x539f73);return _0x32774a=_0x58c184['attributes']['groupId'],_0x58c184['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1957f0['size'])return;const _0x1585c6=_0x1ae5f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eeec3=>'attribute'==_0x2eeec3['type']&&_0x2eeec3['data']&&_0x5309c4['includes'](_0x2eeec3['data']['key'])&&_0x2eeec3['attributes']['groupId']!=_0x32774a)['map'](_0x57eaee=>({'listItem':_0x57eaee['getFirstRange']()['start']['nodeAfter'],'groupId':_0x57eaee['attributes']['groupId']})),_0x1ad87a=new Set();for(const {groupId:_0x41b02b,listItem:_0x1dc5ba}of _0x1585c6)_0x1957f0['has'](_0x1dc5ba)&&_0x1ad87a['add'](_0x41b02b);for(const _0x88349f of _0x1ae5f6['getSuggestions']())_0x1ad87a['has'](_0x88349f['attributes']['groupId'])&&_0x88349f['setAttribute']('groupId',_0x32774a);}['_supportLegacySuggestions'](){const _0x4fefec=this['editor'],_0x4b0664=_0x4fefec['locale'],_0x33991=_0x4fefec['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33991['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4e7edb,_0x7c625){const _0x27829d=[];for(let _0x51b7f7 of _0x4e7edb)_0x51b7f7['start']['nodeAfter']===_0x51b7f7['end']['parent']&&(_0x51b7f7=_0x4fefec['model']['createRange'](_0x4fefec['model']['createPositionAt'](_0x51b7f7['start']['nodeAfter'],0x0))),_0x27829d['push'](_0x51b7f7);_0x4fefec['model']['change'](_0x1b459d=>{const _0x11a414=_0x4fefec['model']['document']['selection'],_0xfaa715=Array['from'](_0x11a414['getRanges']())['map'](_0xf03844=>_0x275766['fromRange'](_0xf03844));_0x1b459d['setSelection'](_0x27829d),_0x4fefec['commands']['get'](_0x7c625['commandName'])['refresh'](),_0x7c625['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4fefec['execute'](_0x7c625['commandName'],..._0x7c625['commandParams']),_0x1b459d['setSelection'](_0xfaa715);for(const _0x6fec3 of _0xfaa715)_0x6fec3['detach']();});}),_0x33991['descriptionFactory']['registerElementLabel'](function(_0x493be2){const _0x3ad331=!_0x4fefec['model']['schema']['isObject'](_0x493be2),_0x56bb96=_0x493be2['previousSibling'],_0x3575df=_0x493be2['nextSibling'],_0x28d17c=_0x493be2['getAttribute']('listItemId'),_0x594648=!_0x56bb96||_0x56bb96['getAttribute']('listItemId')!==_0x28d17c,_0x5336ef=!_0x3575df||_0x3575df['getAttribute']('listItemId')!==_0x28d17c;return _0x3ad331&&Boolean(_0x28d17c)&&_0x594648&&_0x5336ef;},_0x39a7b8=>c(_0x4b0664,'ELEMENT_LIST_ITEM',_0x39a7b8));}['_registerLegacyDescription'](){const _0x5f4f07=this['editor'],_0x463004=_0x5f4f07['locale'];function _0xaaa641(_0x6d3143){const _0x3df98c=_0x5f4f07['commands']['get']('bulletedList')['value'],_0x442115=_0x5f4f07['commands']['get']('numberedList')['value'];return'numberedList'===_0x6d3143?_0x3df98c:_0x442115;}_0x5f4f07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ce1f9){if('formatBlock'!=_0x5ce1f9['type'])return;const {data:_0x60a7d7}=_0x5ce1f9;if(!_0x60a7d7)return;let _0x2b2466,_0x41b41a,_0x2b3305,_0x424062;switch(_0x60a7d7['commandName']){case'bulletedList':_0x2b3305=_0x60a7d7['commandParams'][0x0]['forceValue'],_0x424062=_0xaaa641(_0x60a7d7['commandName']),_0x2b2466=_0x2b3305?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424062&&_0x5f4f07['config']['get']('list.multiBlock')||(_0x2b2466='*Change\x20to:*\x20%0'),_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2b3305=_0x60a7d7['commandParams'][0x0]['forceValue'],_0x424062=_0xaaa641(_0x60a7d7['commandName']),_0x2b2466=_0x2b3305?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424062&&_0x5f4f07['config']['get']('list.multiBlock')||(_0x2b2466='*Change\x20to:*\x20%0'),_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2b2466='*Indent:*\x20%0',_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2b2466=function(_0x255636){const _0x2b87b7=_0x255636['getFirstRange']();let _0x57d5b5=_0x2b87b7['start']['nodeAfter'];for(;_0x57d5b5&&_0x2b87b7['containsItem'](_0x57d5b5);){if(_0x57d5b5['getAttribute']('listIndent')>0x0)return!0x1;_0x57d5b5=_0x57d5b5['nextSibling'];}return!0x0;}(_0x5ce1f9)?c(_0x463004,'*Format:*\x20remove\x20from\x20%0',c(_0x463004,function(_0x5c4832){return'ELEMENT_'+_0x5c4832['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ce1f9))):c(_0x463004,'*Outdent:*\x20%0',c(_0x463004,'ELEMENT_LIST_ITEM')),_0x41b41a={'type':'format','content':_0x2b2466};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x60a7d7['multipleBlocks']&&(_0x2b2466='*Merge:*\x20%0',_0x41b41a={'type':'deletion','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_LIST_ITEM'))});}return _0x41b41a;});}}function Te(_0x139c59){let _0x34411f=_0x139c59['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34411f;){const _0x3119f1=_0x34411f['getAttribute']('listItemId');if(!_0x3119f1)return!0x1;if(_0x3119f1==_0x139c59['data']['newValue'])return'newValue';if(_0x3119f1==_0x139c59['data']['oldValue'])return'oldValue';_0x34411f=_0x34411f['previousSibling'];}return!0x1;}class Se extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x106758=this['editor']['config']['get']('list.properties'),_0x3a0b9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x106758['styles']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listStyle'),_0x3a0b9c['registerBlockAttribute']('listStyle')),_0x106758['reversed']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listReversed'),_0x3a0b9c['registerBlockAttribute']('listReversed')),_0x106758['startIndex']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listStart'),_0x3a0b9c['registerBlockAttribute']('listStart'));const _0x3a9fa4={'type':'format','content':''};_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5292a2=this['editor']['locale'];_0x3a0b9c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5292a2,'FORMAT_LIST_REVERSED')),_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](_0x4f5371=>{const {data:_0x3b6113}=_0x4f5371;if(_0x3b6113&&'listReversed'==_0x3b6113['key'])return null==_0x3b6113['newValue']||0x0==_0x3b6113['newValue']&&null==_0x3b6113['oldValue']?_0x3a9fa4:void 0x0;}),_0x3a0b9c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5292a2,'FORMAT_LIST_START')),_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](_0x3bb01e=>{const {data:_0x12ce02}=_0x3bb01e;if(_0x12ce02&&'listStart'==_0x12ce02['key'])return null==_0x12ce02['newValue']||0x1==_0x12ce02['newValue']&&null==_0x12ce02['oldValue']?_0x3a9fa4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c4601=>{if(_0x1c4601['batch']['isUndo'])return!0x1;let _0x272a60=!0x1;const _0xf1bdd4=_0x3a0b9c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1676=>{const _0x349893=_0x3a0b9c['_getAttributeKey'](_0x5e1676);return'listStart'==_0x349893||'listReversed'==_0x349893;});for(const _0x31f7fe of _0xf1bdd4){const _0x3aef7e=_0x31f7fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3aef7e||'customNumbered'==_0x3aef7e)continue;_0x3a0b9c['_findSuggestions'](_0x31f7fe['getFirstRange'](),'attribute')['find'](_0x16127b=>'listType'==_0x3a0b9c['_getAttributeKey'](_0x16127b['suggestion']))||(_0x1c4601['removeMarker'](_0x31f7fe['getFirstMarker']()),_0x272a60=!0x0);}return _0x272a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1be3e2){const _0x565b56=this['editor']['locale'],{data:_0x34b3f3}=_0x1be3e2,_0x3538d5={'type':'format','content':''};if(!_0x34b3f3||'listStyle'!=_0x34b3f3['key'])return;if(!_0x34b3f3['oldValue'])return'default'==_0x34b3f3['newValue']?_0x3538d5:{'type':'format','content':''+c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['newValue'])))};if(!_0x34b3f3['newValue']){if('default'==_0x34b3f3['oldValue'])return _0x3538d5;let _0x367436=_0x1be3e2['head'];for(;_0x367436;){if(_0x367436['data']&&'listType'==_0x367436['data']['key']&&_0x367436['data']['newValue'])return _0x3538d5;_0x367436=_0x367436['next'];}return{'type':'format','content':''+c(_0x565b56,'*Remove\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['oldValue'])))};}if('default'!=_0x34b3f3['newValue'])return{'type':'format','content':''+c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['newValue'])))};let _0x324394=_0x1be3e2['head'];for(;_0x324394;){if(_0x324394['data']&&'listType'==_0x324394['data']['key']&&_0x324394['data']['newValue']&&_0x324394['data']['oldValue'])return _0x3538d5;_0x324394=_0x324394['next'];}return{'type':'format','content':c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,'ELEMENT_'+_0x1be3e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1dc452=this['editor'],_0x1f890b=_0x1dc452['locale'];_0x1dc452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50233f=>{if('formatBlock'!=_0x50233f['type'])return;const {data:_0x1a9f4b}=_0x50233f;if(!_0x1a9f4b)return;let _0xf77e53,_0x46236f;switch(_0x1a9f4b['commandName']){case'listStyle':_0xf77e53='*Change\x20to:*\x20%0',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53,c(_0x1f890b,this['_getTranslationKeyForListStyle'](_0x1a9f4b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf77e53=_0x1a9f4b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53)};break;case'listStart':_0xf77e53='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53,_0x1a9f4b['commandParams'][0x0]['startIndex'])};}return _0x46236f;});}['_getTranslationKeyForListStyle'](_0x4dc647){return'ELEMENT_'+function(_0x24ec39){if(_e['includes'](_0x24ec39))return'bulleted';if(Re['includes'](_0x24ec39))return'numbered';return null;}(_0x4dc647)['toUpperCase']()+'_LIST_'+_0x4dc647['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x31a850{['afterInit'](){const _0x259e6a=this['editor'];_0x259e6a['commands']['get']('emoji')&&_0x259e6a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x31a850{static get['requires'](){return[_0x58bc11];}['init'](){const _0xeb392c=this['editor'],_0x20857b=_0xeb392c['plugins']['get']('TrackChangesEditing'),_0x253b1b=_0xeb392c['commands']['get']('enter');_0x20857b['enableCommand']('enter',()=>{_0xeb392c['model']['change'](_0x3faeec=>{const _0x193dd9=_0xeb392c['model']['document']['selection'],_0x534fb2=_0x193dd9['getFirstPosition'](),_0x394df1=_0x275766['fromRange'](_0x193dd9['getFirstRange']());if(_0x253b1b['enterBlock'](_0x3faeec)){const _0x12b99b=_0xeb392c['model']['createPositionAt'](_0x534fb2['parent']['nextSibling'],0x0),_0x5011b0=_0x3faeec['createRange'](_0x534fb2,_0x12b99b);_0x20857b['markInsertion'](_0x5011b0);}else _0x3faeec['setSelection'](_0x3faeec['createRange'](_0x394df1['end']));_0x394df1['detach'](),_0x253b1b['fire']('afterExecute',{'writer':_0x3faeec});});}),_0xeb392c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xeb392c,'split'),{'priority':'high'}),_0xeb392c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1f3760,_0x40efc2,_0x5f0cd7)=>{const _0x258e4d=_0x5f0cd7['mapper']['markerNameToElements'](_0x40efc2['markerName']);if(_0x258e4d){for(const _0x246be7 of _0x258e4d)_0x246be7['hasClass']('ck-suggestion-marker-split')&&(_0x5f0cd7['mapper']['unbindElementFromMarkerName'](_0x246be7,_0x40efc2['markerName']),_0x5f0cd7['writer']['remove'](_0x246be7));}},{'priority':'high'}),_0xeb392c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x173afd,_0x151e64,_0x462677)=>{_0x462677['options']['showSuggestionHighlights']&&Fe(_0xeb392c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x173afd,_0x151e64,_0x462677);},{'priority':'high'});}}class Z extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5160b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5160b8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5160b8['enableCommand']('findNext'),_0x5160b8['enableCommand']('findPrevious'),_0x5160b8['enableCommand']('replace'),_0x5160b8['enableCommand']('replaceAll');}['handleFindCommand'](_0x43d628,_0x29d95f,_0x347147={}){const _0xe3f935=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43d628(_0x38482e=>{let _0x5e6980=('string'==typeof _0x29d95f?_0xe3f935['findByTextCallback'](_0x29d95f,_0x347147):_0x29d95f)(_0x38482e);Array['isArray'](_0x5e6980)&&(_0x5e6980={'results':_0x5e6980,'searchText':'string'==typeof _0x29d95f?_0x29d95f:''});const _0x193bed=_0x5e6980['results']['filter'](_0x2b0f1a=>!0x1===this['_isInDeletionRange'](_0x2b0f1a,_0x38482e['item']));return{..._0x5e6980,'results':_0x193bed};},_0x347147);}['_isInDeletionRange'](_0x1d2402,_0x1ed959){const _0x1b109b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ed959,_0x1d2402['start']),this['editor']['model']['createPositionAt'](_0x1ed959,_0x1d2402['end']));for(const _0x4ab394 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1b109b['getIntersection'](_0x4ab394['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 _0x31a850{['afterInit'](){const _0x5266be=this['editor']['locale'],_0x4f8202=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x83cdfc,commandName:_0x1e69ed}of ro)this['editor']['plugins']['has'](_0x83cdfc)&&(_0x4f8202['enableDefaultAttributesIntegration'](_0x1e69ed),_0x4f8202['registerInlineAttribute'](_0x1e69ed));_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5266be,'FORMAT_FONT_SIZE')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5266be,'FORMAT_FONT_FAMILY')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5266be,'FORMAT_FONT_COLOR')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5266be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c4f6c=this['editor'],_0x2e345f=_0x1c4f6c['locale'];_0x1c4f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a67e0=>{const _0x2e2a1d=_0x2e345f['t'];if('formatInline'!=_0x1a67e0['type'])return;const {data:_0x3330c0}=_0x1a67e0;if(null!=_0x3330c0){if('fontSize'==_0x3330c0['commandName']){const _0x130645=_0x3330c0['commandParams'][0x0]['value'];if(_0x130645){const _0x29e934=_0x2e2a1d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xbb4f8b=>_0xbb4f8b['model']==_0x130645)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20size:*\x20%0',_0x29e934)};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3330c0['commandName']){const _0x18b2e4=_0x3330c0['commandParams'][0x0]['value'];return _0x18b2e4?{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20family:*\x20%0',_0x18b2e4)}:{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3330c0['commandName']){const _0x2cb462=_0x3330c0['commandParams'][0x0]['value'];if(_0x2cb462){const _0x3bc3d3=_0x299ee1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34c09b=>_0x34c09b['model']==_0x2cb462);let _0x3002ab=_0x2cb462,_0x5d2a07='';return _0x3bc3d3&&(_0x3002ab=_0x3bc3d3['label'],_0x5d2a07=_0x2e2a1d(_0x3002ab)['toLowerCase']()),{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20color:*\x20%0',_0x5d2a07)['trim'](),'color':{'value':_0x2cb462,'title':_0x5d2a07||_0x3002ab}};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3330c0['commandName']){const _0x3f0d06=_0x3330c0['commandParams'][0x0]['value'];if(_0x3f0d06){const _0x4ad64f=_0x299ee1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x25af8e=>_0x25af8e['model']==_0x3f0d06);let _0xeb1ced=_0x3f0d06,_0x766bd='';return _0x4ad64f&&(_0xeb1ced=_0x4ad64f['label'],_0x766bd=_0x2e2a1d(_0xeb1ced)['toLowerCase']()),{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20background\x20color:*\x20%0',_0x766bd)['trim'](),'color':{'value':_0x3f0d06,'title':_0x766bd||_0xeb1ced}};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x31a850{['afterInit'](){const _0x5acab6=this['editor'],_0x52d466=_0x5acab6['plugins']['get']('TrackChangesEditing'),_0x4b8d2b=_0x5acab6['commands']['get']('copyFormat'),_0x3cad5f=_0x5acab6['commands']['get']('pasteFormat');_0x4b8d2b&&_0x3cad5f&&(_0x52d466['enableDefaultAttributesIntegration']('pasteFormat'),_0x52d466['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x118413=this['editor'],_0xe3c504=_0x118413['locale'];_0x118413['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105c50=>{if('formatBlock'!=_0x105c50['type']&&'formatInline'!=_0x105c50['type'])return;const {data:_0x50cb38}=_0x105c50;if(_0x50cb38&&'pasteFormat'===_0x50cb38['commandName']){const _0x1cc7df=[],_0x32fa9b=_0x50cb38['commandParams'][0x0];for(const [_0x4bfcae,_0x4c01e3]of Object['entries'](_0x32fa9b))_0x1cc7df['push'](so(_0x118413,_0x4bfcae,_0x4c01e3));return _0x1cc7df['length']?{'type':'format','content':c(_0xe3c504,'*Set\x20format\x20to:*\x20%0',_0x1cc7df['join'](',\x20'))}:{'type':'format','content':c(_0xe3c504,'*Remove\x20all\x20formatting*')};}});}}function so(_0x381ddb,_0x355156,_0x109378){const _0x54a73e=_0x381ddb['locale']['t'],_0x5bb5f7=_0x355156['split'](/(?=[A-Z])/)['join']('\x20'),_0x29ff81=_0x54a73e(_0x5bb5f7['charAt'](0x0)['toUpperCase']()+_0x5bb5f7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x109378)return _0x29ff81;if('fontColor'===_0x355156||'fontBackgroundColor'===_0x355156){const _0x6ae4af=_0x299ee1(_0x381ddb['config']['get']('fontColor.colors'))['find'](_0x2baaa3=>_0x2baaa3['model']==_0x109378);return _0x29ff81+'\x20('+(_0x6ae4af?_0x54a73e(_0x6ae4af['label'])['toLowerCase']():_0x109378)+')';}if('fontSize'===_0x355156&&isNaN(parseFloat(_0x109378))){const _0xeec370=_0x381ddb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x381ddb['config']['get']('fontSize.options'))['find'](_0x493856=>_0x493856['model']==_0x109378);return _0x29ff81+'\x20('+(_0xeec370?_0x54a73e(_0xeec370['title'])['toLowerCase']():_0x109378)+')';}return _0x29ff81+'\x20('+_0x109378+')';}class et extends _0x31a850{['_headingOptions'];['afterInit'](){const _0x1dcfcc=this['editor'];if(!_0x1dcfcc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dcfcc['config']['get']('heading.options');const _0x64fb85=_0x1dcfcc['locale'],_0x14b64b=_0x1dcfcc['plugins']['get']('TrackChangesEditing');_0x14b64b['enableDefaultAttributesIntegration']('heading');for(const _0xddd678 of this['_headingOptions'])'paragraph'!=_0xddd678['model']&&_0x14b64b['descriptionFactory']['registerElementLabel'](_0xddd678['model'],_0x1fe5fe=>{const _0xb87e6f=this['_getHeadingLevel'](_0xddd678['model']);return null!==_0xb87e6f?_0x446836(_0x1fe5fe,_0xb87e6f):_0x47620b(_0x1fe5fe,_0xddd678['title']);});function _0x446836(_0x2a0585,_0x28405a){return c(_0x64fb85,'ELEMENT_HEADING',[_0x2a0585,_0x28405a]);}function _0x47620b(_0x5320f6,_0x29a4cc){return c(_0x64fb85,'ELEMENT_HEADING_CUSTOM',[_0x5320f6,_0x29a4cc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6638=this['editor'],_0x2766b0=_0x1c6638['locale'];function _0x4fe41d(_0x158bf7,_0x301ceb){return c(_0x2766b0,'ELEMENT_HEADING_CUSTOM',[_0x158bf7,_0x301ceb]);}_0x1c6638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14667f=>{if('formatBlock'!=_0x14667f['type'])return;const {data:_0x2dca71}=_0x14667f;if(_0x2dca71&&'heading'==_0x2dca71['commandName']){const _0x2a953c=_0x2dca71['commandParams'][0x0]['value'],_0x5c7800=this['_getHeadingLevel'](_0x2a953c);if(null!==_0x5c7800)return{'type':'format','content':c(_0x2766b0,'*Change\x20to:*\x20%0',(_0x1962bc=0x1,_0x4bab2e=_0x5c7800,c(_0x2766b0,'ELEMENT_HEADING',[_0x1962bc,_0x4bab2e])))};const _0x237ea4=this['_headingOptions']['find'](_0x31e71e=>_0x31e71e['model']===_0x2a953c)['title'];return{'type':'format','content':c(_0x2766b0,'*Change\x20to:*\x20%0',_0x4fe41d(0x1,_0x237ea4))};}var _0x1962bc,_0x4bab2e;});}['_getHeadingLevel'](_0x3df28c){const _0x116019=_0x3df28c['match'](/^heading(\d+)/);if(_0x116019)return _0x116019[0x1];const _0x30a03=this['_headingOptions']?.['find'](_0x54367a=>_0x54367a['model']==_0x3df28c);if(_0x30a03&&_0x30a03['view']){const _0x5e0e3c=_0x30a03['view'],_0x19b6fd=(_0x5e0e3c['name']??_0x5e0e3c)['match'](/^h(\d+)/);if(_0x19b6fd)return _0x19b6fd[0x1];}return null;}}class nt extends _0x31a850{['afterInit'](){const _0x484526=this['editor'];if(!_0x484526['plugins']['has']('HighlightEditing'))return;const _0x3bcaf0=_0x484526['plugins']['get']('TrackChangesEditing'),_0x5d43d5=_0x484526['locale'];_0x3bcaf0['enableDefaultAttributesIntegration']('highlight'),_0x3bcaf0['registerInlineAttribute']('highlight'),_0x3bcaf0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5d43d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc1451=this['editor'],_0x65a47a=_0xc1451['locale'];_0xc1451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374d7f=>{if('formatInline'!=_0x374d7f['type'])return;const {data:_0x1843c6}=_0x374d7f;if(_0x1843c6&&'highlight'==_0x1843c6['commandName']){const _0x774cfa=_0x65a47a['t'],_0x4b6b02=_0x1843c6['commandParams'][0x0]['value'];if(_0x4b6b02){const _0x57338c=_0xc1451['config']['get']('highlight.options')['find'](_0xb3eded=>_0xb3eded['model']==_0x4b6b02),_0x1c4265=_0x774cfa(_0x57338c['title'])['toLowerCase']();return{'type':'format','content':c(_0x65a47a,'*Set\x20highlight:*\x20%0',_0x1c4265),'color':{'value':_0x57338c['color'],'title':_0x57338c['title']}};}return{'type':'format','content':c(_0x65a47a,'*Remove\x20highlight*',c(_0x65a47a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x31a850{['afterInit'](){const _0x559197=this['editor'];if(!_0x559197['plugins']['has']('HorizontalLineEditing'))return;_0x559197['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x10ef05=_0x559197['plugins']['get']('TrackChangesEditing'),_0x73ea8d=_0x559197['locale'];_0x10ef05['descriptionFactory']['registerElementLabel']('horizontalLine',_0x302528=>c(_0x73ea8d,'ELEMENT_HORIZONTAL_LINE',_0x302528)),_0x559197['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4d03f0,{writer:_0x19a58e,options:_0x2d9826})=>{if(!_0x2d9826['showSuggestionHighlights'])return null;const _0x580454=_0x19a58e['createContainerElement']('div'),_0x233027=_0x19a58e['createEmptyElement']('hr');return _0x19a58e['addClass']('ck-horizontal-line',_0x580454),_0x19a58e['insert'](_0x19a58e['createPositionAt'](_0x580454,0x0),_0x233027),_0x580454;},'converterPriority':'high'});}}class ot extends _0x31a850{['afterInit'](){const _0x1f8e50=this['editor'];if(!_0x1f8e50['plugins']['has']('HtmlEmbed'))return;const _0x276a86=_0x1f8e50['plugins']['get']('TrackChangesEditing'),_0x30dc16=_0x1f8e50['locale'];_0x276a86['descriptionFactory']['registerElementLabel']('rawHtml',_0x25b2d0=>c(_0x30dc16,'ELEMENT_HTML_EMBED',_0x25b2d0)),_0x276a86['enableDefaultAttributesIntegration']('htmlEmbed'),_0x276a86['registerBlockAttribute']('value'),_0x276a86['descriptionFactory']['registerDescriptionCallback'](_0x564560=>{if('attribute'!=_0x564560['type'])return;const {data:_0x48d86e}=_0x564560;if(_0x48d86e&&'value'==_0x48d86e['key']&&_0x564560['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cd75b=c(_0x30dc16,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x30dc16,'*Change\x20%0\x20content*',_0x3cd75b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b200=this['editor'],_0x1d418b=_0x56b200['locale'];_0x56b200['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d8519=>{if('formatBlock'!=_0x6d8519['type'])return;const {data:_0x2f4707}=_0x6d8519;if(_0x2f4707&&'htmlEmbed'==_0x2f4707['commandName']){const _0x5bd6c8=c(_0x1d418b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1d418b,'*Change\x20%0\x20content*',_0x5bd6c8)};}});}}class rt extends _0x31a850{['afterInit'](){const _0xedc05=this['editor'];if(!_0xedc05['plugins']['has']('ImageEditing'))return;const _0x11a653=_0xedc05['plugins']['get']('TrackChangesEditing'),_0x23b368=_0xedc05['plugins']['get']('ImageUtils'),_0x46464a=_0xedc05['locale'];_0x11a653['enableCommand']('insertImage'),_0x11a653['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a4fa2=>c(_0x46464a,'ELEMENT_IMAGE',_0x3a4fa2)),_0x11a653['descriptionFactory']['registerElementLabel']('imageInline',_0x5941a4=>c(_0x46464a,'ELEMENT_INLINE_IMAGE',_0x5941a4)),_0x11a653['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x46464a,'ELEMENT_CAPTION')),_0xedc05['plugins']['has']('ImageUploadEditing')&&_0x11a653['enableCommand']('uploadImage'),_0xedc05['plugins']['has']('ImageBlockEditing')&&_0xedc05['plugins']['has']('ImageInlineEditing')&&(_0x11a653['enableCommand']('imageTypeInline',(_0x4f6af3,_0x30546f)=>{const _0x2d6ac8=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']);_0xedc05['model']['change'](()=>{_0x11a653['markBlockFormat'](_0x2d6ac8,{'commandName':'imageTypeInline','commandParams':[_0x30546f]},[],'convertBlockImageToInline');});}),_0x11a653['enableCommand']('imageTypeBlock',(_0x1079da,_0x5ae582)=>{_0xedc05['model']['change'](_0x2462fd=>{let _0x2aa1ca=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x208647=_0x2462fd['createRangeOn'](_0x2aa1ca);const _0x33cb4e=_0x14a222['fromPosition'](_0x208647['start'],'toPrevious'),_0x1c5022=_0x14a222['fromPosition'](_0x208647['end'],'toNext');_0x11a653['forceDefaultExecution'](()=>_0x1079da(_0x5ae582)),_0x2aa1ca=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x208647=_0x2462fd['createRangeOn'](_0x2aa1ca);const _0x57a84d=_0x2462fd['createRange'](_0x33cb4e,_0x1c5022);_0x33cb4e['detach'](),_0x1c5022['detach'](),_0x11a653['markBlockFormat'](_0x2aa1ca,{'commandName':'imageTypeInline','commandParams':[_0x5ae582]},[],'convertInlineImageToBlock'),_0x57a84d['start']['isBefore'](_0x208647['start'])&&_0x11a653['markInsertion'](_0x2462fd['createRange'](_0x57a84d['start'],_0x208647['start']),'convertInlineImageToBlock'),_0x208647['end']['isBefore'](_0x57a84d['end'])&&_0x11a653['markInsertion'](_0x2462fd['createRange'](_0x208647['end'],_0x57a84d['end']),'convertInlineImageToBlock');});}),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11a653['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b9b4])=>{const _0x5e8661=_0x11a653['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x499b41=_0x23b9b4['start'],_0x50f2dc=_0x23b9b4['end'];const _0x1fc2ec=_0xedc05['model']['schema']['getNearestSelectionRange'](_0x499b41,'backward'),_0x3cbbf6=_0xedc05['model']['schema']['getNearestSelectionRange'](_0x50f2dc,'forward');_0x1fc2ec['isCollapsed']&&(_0x499b41=_0x1fc2ec['start']),_0x3cbbf6['isCollapsed']&&(_0x50f2dc=_0x3cbbf6['end']),_0x5e8661([_0xedc05['model']['createRange'](_0x499b41,_0x50f2dc)]);}),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40d7e0),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40d7e0)),_0xedc05['plugins']['has']('ImageCaptionEditing')&&(_0x11a653['enableCommand']('toggleImageCaption',(_0x4cc488,_0x34212f)=>{const _0x43875d=_0xedc05['plugins']['get']('ImageCaptionUtils');let _0x28da1d=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x837050=_0x43875d['getCaptionFromImageModelElement'](_0x28da1d);_0xedc05['model']['change'](()=>{if(_0x837050)return void _0x11a653['markDeletion'](_0xedc05['model']['createRangeOn'](_0x837050));const _0x3f2271=_0x23b368['isBlockImage'](_0x28da1d);_0x4cc488(_0x34212f),_0x28da1d=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x837050=_0x43875d['getCaptionFromImageModelElement'](_0x28da1d),_0x11a653['markInsertion'](_0xedc05['model']['createRangeOn'](_0x837050),_0x3f2271?null:'imageCaption');});}),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40d7e0));const _0x3646b1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29f316(_0x31076b,_0x6b4a0d){const _0x4b97bb=_0x3646b1['findIndex'](({type:_0x30b21b,subType:_0x36e78a})=>_0x31076b['type']==_0x30b21b&&_0x31076b['subType']==_0x36e78a),_0x4f1a91=_0x3646b1['findIndex'](({type:_0x2876fb,subType:_0x3f4046})=>_0x6b4a0d['type']==_0x2876fb&&_0x6b4a0d['subType']==_0x3f4046);if(_0x4b97bb<0x0||_0x4f1a91<0x0)return!0x1;const _0x1e20d4=_0x31076b['getFirstRange'](),_0x596ecf=_0x6b4a0d['getFirstRange']();if((0x0==_0x4b97bb||0x1==_0x4b97bb)&&0x2==_0x4f1a91&&_0x1e20d4['isIntersecting'](_0x596ecf))return!0x0;if(0x2==_0x4b97bb&&0x3==_0x4f1a91){const _0xb617c7=_0x11a653['_findSuggestions'](_0x1e20d4,'insertion')['filter'](({suggestion:_0x41bdc7,meta:_0x31f77e})=>_0x31f77e['isOwn']&&'convertInlineImageToBlock'==_0x41bdc7['subType']);if(_0xb617c7['length']>0x1&&_0x596ecf['end']['isEqual'](_0x1e20d4['start']))return!0x0;if(0x1==_0xb617c7['length']&&(_0x1e20d4['start']['isEqual'](_0x596ecf['end'])||_0x1e20d4['end']['isEqual'](_0x596ecf['start'])))return!0x0;}if(0x3==_0x4b97bb&&0x3==_0x4f1a91&&_0x1e20d4['start']['isBefore'](_0x596ecf['start'])){const _0x525776=_0x1e20d4['end']['nodeAfter'],_0x54c078=_0x596ecf['start']['nodeBefore'];return _0x23b368['isBlockImage'](_0x525776)&&_0x525776===_0x54c078;}return!0x1;}function _0x40d7e0(_0x3059d2,_0x1c11d1){return _0x29f316(_0x3059d2,_0x1c11d1)?[_0x3059d2,_0x1c11d1]:_0x29f316(_0x1c11d1,_0x3059d2)?[_0x1c11d1,_0x3059d2]:null;}_0xedc05['plugins']['has']('ImageResize')&&(_0x11a653['enableDefaultAttributesIntegration']('resizeImage'),_0x11a653['registerBlockAttribute']('resizedWidth'),_0x11a653['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x46464a,'FORMAT_IMAGE_SIZE'))),_0xedc05['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11a653['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11a653['registerBlockAttribute']('alt')),_0xedc05['plugins']['has']('PictureEditing')&&(_0x11a653['registerBlockAttribute']('sources'),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0xbb00df=>{if('attribute'!=_0xbb00df['type'])return;const {data:_0x47249c}=_0xbb00df;return _0x47249c&&'sources'==_0x47249c['key']?{'type':'format','content':''}:void 0x0;})),_0xedc05['plugins']['has']('ImageSizeAttributes')&&(_0x11a653['registerBlockAttribute']('width'),_0x11a653['registerBlockAttribute']('height'),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x54cf1f=>{if('attribute'!=_0x54cf1f['type'])return;const {data:_0x53348c}=_0x54cf1f;return!_0x53348c||'width'!=_0x53348c['key']&&'height'!=_0x53348c['key']?void 0x0:{'type':'format','content':''};})),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x587094=>{if(!!_0x3646b1['find'](({type:_0x3c6b8d,subType:_0x4c9684})=>_0x587094['type']==_0x3c6b8d&&_0x587094['subType']==_0x4c9684))return _0x587094['previous']?{}:void 0x0;}),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x33c168=>{if('insertion'==_0x33c168['type']||'deletion'==_0x33c168['type']){const _0x194606=_0x33c168['getContainedElement']();if(_0x194606&&_0x194606['is']('element','caption'))return{'type':'insertion'==_0x33c168['type']?'addObject':'removeObject','element':_0x194606,'quantity':0x1};}}),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0xe0f87c=>'formatBlock'==_0xe0f87c['type']&&'convertInlineImageToBlock'==_0xe0f87c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe0f87c['type']&&'convertBlockImageToInline'==_0xe0f87c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x488433=>{if('attribute'!=_0x488433['type'])return;const {data:_0x385e93}=_0x488433;if(!_0x385e93||'alt'!=_0x385e93['key'])return;const _0x551274=_0x385e93['newValue'];return _0x551274?{'type':'format','content':c(_0x46464a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x551274+'\x22')}:{'type':'format','content':c(_0x46464a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543933=this['editor'],_0x1fcd0a=_0x543933['locale'];_0x543933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7e34=>{if('formatBlock'!=_0x3f7e34['type']&&'formatInline'!=_0x3f7e34['type'])return;const {data:_0x54f854}=_0x3f7e34;if(_0x54f854){if('imageTextAlternative'==_0x54f854['commandName']){const _0x1b89c3=_0x54f854['commandParams'][0x0]['newValue'];return _0x1b89c3?{'type':'format','content':c(_0x1fcd0a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b89c3+'\x22')}:{'type':'format','content':c(_0x1fcd0a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x54f854['commandName']){const _0x4d3933=_0x54f854['commandParams'][0x0]['width'];return _0x4d3933?{'type':'format','content':c(_0x1fcd0a,'*Set\x20image\x20width:*\x20%0',_0x4d3933)}:{'type':'format','content':c(_0x1fcd0a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x372d26=this['editor']['locale'],_0x2170e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2170e3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2170e3['registerBlockAttribute']('src'),_0x2170e3['descriptionFactory']['registerDescriptionCallback'](_0x14b209=>{if('attribute'!=_0x14b209['type'])return;const {data:_0x4cb4a4}=_0x14b209;return _0x4cb4a4&&'src'==_0x4cb4a4['key']?_0x4cb4a4['newValue']&&_0x4cb4a4['oldValue']?{'type':'format','content':c(_0x372d26,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50999a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50999a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50999a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50999a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50999a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291860=this['editor'],_0x5943a2=_0x291860['locale'];_0x291860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3841e0=>{if('formatBlock'!=_0x3841e0['type']&&'formatInline'!=_0x3841e0['type'])return;const {data:_0x120258}=_0x3841e0;if(!_0x120258||'replaceImageSource'!=_0x120258['commandName'])return;return{'type':'format','content':c(_0x5943a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x31a850{['afterInit'](){const _0x5e3639=this['editor'];if(!_0x5e3639['plugins']['has']('ImageStyleEditing'))return;const _0xb8888d=_0x5e3639['plugins']['get']('TrackChangesEditing'),_0x5583c1=_0x5e3639['plugins']['get']('ImageUtils'),_0x4876e4={};_0xb8888d['enableCommand']('imageStyle',(_0x2e5fc5,_0x44caab)=>{const _0xf20b9c=_0x5e3639['plugins']['get']('Users')['me'],_0x1aee10=_0x5e3639['commands']['get']('imageStyle');let _0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),_0x403b26=_0x5e3639['model']['createRangeOn'](_0x35a80c),_0x5b35ba=_0x1aee10['value'];if(_0x5b35ba==_0x44caab['value'])return;const _0x51c80a={'commandName':'imageStyle','commandParams':[_0x44caab],'formatGroupId':_0x34bf97()};_0x5e3639['model']['change'](()=>{if(_0xb8888d['getSuggestions']()['filter'](_0x1f59a0=>_0x1f59a0['isInContent']&&_0xf20b9c==_0x1f59a0['author']&&('formatBlock'==_0x1f59a0['type']||'formatInline'==_0x1f59a0['type'])&&('imageStylePreApply'==_0x1f59a0['subType']||'imageStylePostApply'==_0x1f59a0['subType'])&&_0x1f59a0['getFirstRange']()['isEqual'](_0x403b26))['forEach'](_0x3edf36=>_0xb8888d['discardSuggestion'](_0x3edf36['head'])),_0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),_0x403b26=_0x5e3639['model']['createRangeOn'](_0x35a80c),_0x1aee10['refresh'](),_0x5e3639['commands']['get']('imageTypeInline')['refresh'](),_0x5e3639['commands']['get']('imageTypeBlock')['refresh'](),_0x5b35ba=_0x1aee10['value'],_0x5b35ba!=_0x44caab['value'])return _0x5583c1['isInlineImage'](_0x35a80c)&&_0x1aee10['shouldConvertImageType'](_0x44caab['value'],_0x35a80c)?(_0x2e5fc5({..._0x44caab,'setImageSizes':!0x1}),_0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),void _0xb8888d['markBlockFormat'](_0x35a80c,{..._0x51c80a,'commandReversedParams':[{'value':_0x5b35ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5583c1['isBlockImage'](_0x35a80c)?_0xb8888d['markBlockFormat'](_0x35a80c,_0x51c80a,[],'imageStylePostApply'):_0xb8888d['markInlineFormat'](_0x403b26,_0x51c80a,'imageStylePostApply'));});});for(const _0x3e8f53 of _0x5e3639['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4876e4[_0x3e8f53['name']]=_0x3e8f53['title']['toLowerCase']();_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2cfc7c])=>{_0x5583c1['setImageNaturalSizeAttributes'](_0x2cfc7c['getContainedElement']());}),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x14d4be,_0x392a63)=>{_0xb8888d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x14d4be,{'commandName':_0x392a63['commandName'],'commandParams':_0x392a63['commandReversedParams']});}),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x516854,_0x1cbb89){if(_0x494245(_0x516854,_0x1cbb89))return[_0x516854,_0x1cbb89];if(_0x494245(_0x1cbb89,_0x516854))return[_0x1cbb89,_0x516854];return null;});const _0x115295=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x494245(_0xac1a48,_0x453ae4){const _0x43dca5=_0x115295['findIndex'](({type:_0x188154,subType:_0x28f32d})=>_0xac1a48['type']==_0x188154&&_0xac1a48['subType']==_0x28f32d),_0xbc7360=_0x115295['findIndex'](({type:_0x5dac13,subType:_0x3a53e4})=>_0x453ae4['type']==_0x5dac13&&_0x453ae4['subType']==_0x3a53e4);if(_0x43dca5<0x0||_0xbc7360<0x0)return!0x1;const _0x3f07e3=_0xac1a48['getFirstRange'](),_0x4f2087=_0x453ae4['getFirstRange']();if((0x0==_0x43dca5||0x1==_0x43dca5)&&0x2==_0xbc7360&&_0x3f07e3['isIntersecting'](_0x4f2087))return!0x0;if(0x2==_0x43dca5&&0x3==_0xbc7360){const _0x149119=_0xb8888d['_findSuggestions'](_0x3f07e3,'insertion')['filter'](({suggestion:_0x1fca49,meta:_0x3cf6d7})=>_0x3cf6d7['isOwn']&&'convertInlineImageToBlock'==_0x1fca49['subType']);if(_0x149119['length']>0x1&&_0x4f2087['end']['isEqual'](_0x3f07e3['start']))return!0x0;if(0x1==_0x149119['length']&&(_0x3f07e3['start']['isEqual'](_0x4f2087['end'])||_0x3f07e3['end']['isEqual'](_0x4f2087['start'])))return!0x0;}if(0x3==_0x43dca5&&0x3==_0xbc7360&&_0x3f07e3['start']['isBefore'](_0x4f2087['start'])){const _0x1533e5=_0x3f07e3['end']['nodeAfter'],_0xfc77b1=_0x4f2087['start']['nodeBefore'];return _0x5583c1['isBlockImage'](_0x1533e5)&&_0x1533e5===_0xfc77b1;}return!0x1;}_0x5e3639['model']['document']['registerPostFixer'](()=>{let _0x8bfb36=!0x1;const _0x4f2f62=Array['from'](_0x5e3639['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d8885,data:_0x3e081b}of _0x4f2f62){const {group:_0x49deb1,type:_0x20c0a7,subType:_0x1314fa,id:_0x5ae904}=_0xb8888d['_splitMarkerName'](_0x2d8885);if('suggestion'==_0x49deb1&&_0xb8888d['hasSuggestion'](_0x5ae904)){if('formatBlock'==_0x20c0a7&&('imageStylePreApply'==_0x1314fa||'imageStylePostApply'==_0x1314fa)){const _0x3066e8=_0xb8888d['getSuggestion'](_0x5ae904);if(_0x3e081b['newRange']){const _0xa511fb=_0x3066e8['getFirstRange']()['getContainedElement']();if(_0x5583c1['isBlockImage'](_0xa511fb))continue;_0xb8888d['discardSuggestion'](_0x3066e8),_0x8bfb36=!0x0;}}if('insertion'==_0x20c0a7&&'imageCaption'==_0x1314fa&&!_0x3e081b['newRange']){const _0x107f91=_0xb8888d['getSuggestion'](_0x5ae904);_0x107f91['next']&&_0x107f91['next']['isInContent']&&(_0xb8888d['discardSuggestion'](_0x107f91['next']),_0x8bfb36=!0x0);}}}return _0x8bfb36;}),this['_registerLegacyDescription'](_0x4876e4);}['_registerLegacyDescription'](_0x224e52){const _0x4fa077=this['editor'],_0x4e37ee=_0x4fa077['locale'];_0x4fa077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197337=>{if('formatBlock'!=_0x197337['type']&&'formatInline'!=_0x197337['type'])return;const {data:_0x3a2b1a}=_0x197337;if(!_0x3a2b1a||'imageStyle'!=_0x3a2b1a['commandName'])return;const _0x573fab=_0x3a2b1a['commandParams'][0x0]['value'];return _0x4f3ebd('side'===_0x573fab?c(_0x4e37ee,'FORMAT_SIDE_IMAGE'):_0x224e52[_0x573fab]||_0x573fab);function _0x4f3ebd(_0x2cffe3){return{'type':'format','content':c(_0x4e37ee,'*Format:*\x20%0',_0x2cffe3)};}});}}class ut extends _0x31a850{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x792ad1){super(_0x792ad1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54b05b=this['editor'],_0x507398=_0x54b05b['commands']['get']('importWord'),_0x324430=_0x54b05b['commands']['get']('trackChanges');_0x507398&&(_0x507398['on']('execute',(_0x1fb6a2,[,_0x2e2cf0])=>{this['_trackChangesValueDuringImport']=_0x324430['value'],_0x2e2cf0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x507398,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x507398,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x324430['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54b05b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1deb1e,_0x9b2018){const {suggestions:_0x30a689}=_0x9b2018,_0x2eda28=this['editor']['commands']['get']('trackChanges'),_0x382fea=_0x2eda28['value'];this['_trackChangesValueDuringImport']!==_0x382fea&&(_0x2eda28['execute'](),this['_trackChangesExecuted']=!0x0),_0x30a689&&_0x30a689['forEach'](({id:_0x577430,type:_0x869fce,author:_0x1252b2,created_at:_0x3799fb})=>{const _0x2ece60={'id':_0x577430,'type':_0x869fce,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1252b2,'createdAt':_0x3799fb?new Date(_0x3799fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ece60);});}}class ft extends _0x31a850{['afterInit'](){const _0x51a9ff=this['editor'],_0x58c525=_0x51a9ff['plugins']['get']('TrackChangesEditing');if(_0x51a9ff['plugins']['has']('IndentEditing')&&(_0x58c525['enableCommand']('indent'),_0x58c525['enableCommand']('outdent')),_0x51a9ff['plugins']['has']('IndentBlock')){for(const _0x1a7dff of['indentBlock','outdentBlock'])_0x58c525['enableDefaultAttributesIntegration'](_0x1a7dff);}const _0x5bd6dc=_0x51a9ff['locale'];_0x58c525['registerBlockAttribute']('blockIndent'),_0x58c525['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5bd6dc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf23e=this['editor'],_0x54333e=_0x5bf23e['locale'],_0x515e8b=_0x5bf23e['plugins']['get']('TrackChangesEditing');_0x515e8b['descriptionFactory']['registerDescriptionCallback'](_0x30ffc8=>{if('formatBlock'!=_0x30ffc8['type'])return;const {data:_0x19f163}=_0x30ffc8;if(!_0x19f163)return;if('indentBlock'!=_0x19f163['commandName']&&'outdentBlock'!=_0x19f163['commandName'])return;const _0x3b393b=_0x30ffc8['getItems']()[0x0],_0x39dccf=_0x515e8b['descriptionFactory']['getItemLabel'](_0x3b393b);return'indentBlock'==_0x19f163['commandName']?{'type':'format','content':c(_0x54333e,'*Indent:*\x20%0',_0x39dccf)}:'outdentBlock'==_0x19f163['commandName']?{'type':'format','content':c(_0x54333e,'*Outdent:*\x20%0',_0x39dccf)}:void 0x0;});}}class ht extends _0x31a850{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x31a850{['afterInit'](){const _0x13b6e3=this['editor'];if(!_0x13b6e3['plugins']['has']('LinkEditing'))return;const _0x444baa=_0x13b6e3['plugins']['get']('TrackChangesEditing'),_0x444c6e=_0x13b6e3['commands']['get']('link');_0x444baa['enableDefaultAttributesIntegration']('link'),_0x444baa['enableDefaultAttributesIntegration']('unlink'),_0x444baa['registerInlineAttribute']('linkHref');for(const _0x4234a7 of _0x444c6e['manualDecorators'])_0x444baa['registerInlineAttribute'](_0x4234a7['id']),_0x444baa['descriptionFactory']['registerAttributeLabel'](_0x4234a7['id'],'link\x20('+_0x4234a7['label']['toLowerCase']()+')');_0x444baa['descriptionFactory']['registerDescriptionCallback'](_0x280ef9=>{if('attribute'!=_0x280ef9['type'])return;const {data:_0x2c4698}=_0x280ef9;if(!_0x2c4698||'linkHref'!=_0x2c4698['key'])return;const _0x3bfdb6=_0x2c4698['newValue'],_0x7f220a=_0x13b6e3['locale'];return{'type':'format','content':null==_0x3bfdb6?c(_0x7f220a,'*Remove\x20link*'):c(_0x7f220a,'*Set\x20link:*\x20%0','\x22'+_0x3bfdb6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x351afd=this['editor'],_0x220ac9=_0x351afd['locale'];_0x351afd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea620=>{if('formatInline'!=_0x1ea620['type'])return;const {data:_0x14cca9}=_0x1ea620;if(_0x14cca9){if('link'==_0x14cca9['commandName']){const _0x5d840b=_0x14cca9['commandParams'][0x0];return{'type':'format','content':c(_0x220ac9,'*Set\x20link:*\x20%0','\x22'+_0x5d840b+'\x22')};}return'unlink'==_0x14cca9['commandName']?{'type':'format','content':c(_0x220ac9,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x31a850{['afterInit'](){const _0x42f465=this['editor'],_0x5bbc1f=_0x42f465['locale'];if(!_0x42f465['plugins']['has']('LegacyListEditing'))return;const _0x529281=_0x42f465['plugins']['get']('TrackChangesEditing'),_0x5ff3e3=_0x42f465['plugins']['has']('LegacyTodoListEditing');function _0x1efb55(_0x24f065){return()=>{const _0x682786=_0x42f465['model']['document']['selection'],_0x190b21=_0x42f465['commands']['get'](_0x24f065);if(_0x190b21['value'])return void _0x42f465['execute']('paragraph',{});const _0x41fd46=_0x24f065['slice'](0x0,-0x4),_0xedd30d=function(_0x56fcc6,_0x88f454,_0x2d05a5){let _0x21b6d5=Array['from'](_0x56fcc6)['filter'](_0x3b583a=>function(_0x53505c,_0x38b022){return _0x38b022['checkChild'](_0x53505c['parent'],'listItem')&&!_0x38b022['isObject'](_0x53505c);}(_0x3b583a,_0x2d05a5));_0x21b6d5=_0x21b6d5['filter'](_0x1f8407=>!_0x1f8407['is']('element','listItem')||_0x1f8407['getAttribute']('listType')!=_0x88f454);const _0x4dc790=new Set();for(const _0x201854 of _0x21b6d5)_0x201854['is']('element','listItem')?_0x4dc790['add'](Le(_0x201854)):_0x4dc790['add'](_0x201854);return Array['from'](_0x4dc790);}(_0x682786['getSelectedBlocks'](),_0x41fd46,_0x42f465['model']['schema']);_0x42f465['model']['change'](()=>{for(const _0x595dec of _0xedd30d)_0x529281['markBlockFormat'](_0x595dec,{'commandName':_0x24f065,'commandParams':[{'forceValue':!_0x190b21['value']}],'formatGroupId':'blockName'},Ee(_0x595dec));});};}function _0x2bbeeb(_0x2a5f9f){return()=>{const _0x3f0ea4=function(_0x41bc22){let _0x1123f0=Array['from'](_0x41bc22);const _0x2fd307=_0x1123f0['findIndex'](_0x5b2239=>'listItem'!=_0x5b2239['name']);return _0x2fd307>-0x1&&(_0x1123f0=_0x1123f0['slice'](0x0,_0x2fd307)),_0x1123f0;}(_0x42f465['model']['document']['selection']['getSelectedBlocks']()),_0x4b9efd=_0x42f465['model']['createRange'](_0x42f465['model']['createPositionAt'](_0x3f0ea4[0x0],'before'),_0x42f465['model']['createPositionAt'](_0x3f0ea4[_0x3f0ea4['length']-0x1],'end'));_0x42f465['model']['change'](()=>{_0x529281['markBlockFormat'](_0x4b9efd,{'commandName':_0x2a5f9f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b941d){const _0x3cdfd9=new Set();for(const _0x60297a of _0x2b941d){let _0x12598=_0x60297a['nextSibling'];for(;_0x12598&&_0x12598['getAttribute']('listIndent')>_0x60297a['getAttribute']('listIndent');)_0x3cdfd9['add'](_0x12598),_0x12598=_0x12598['nextSibling'];}return Array['from'](_0x3cdfd9);}(_0x3f0ea4));});};}_0x529281['enableCommand']('numberedList',_0x1efb55('numberedList')),_0x529281['enableCommand']('bulletedList',_0x1efb55('bulletedList')),_0x5ff3e3&&_0x529281['enableCommand']('todoList',_0x1efb55('todoList')),_0x529281['enableCommand']('indentList',_0x2bbeeb('indentList')),_0x529281['enableCommand']('outdentList',_0x2bbeeb('outdentList')),_0x5ff3e3&&_0x529281['enableCommand']('checkTodoList',()=>{const _0x13e089=_0x42f465['commands']['get']('checkTodoList'),_0x12d859=Array['from'](_0x13e089['_selectedElements']);_0x12d859['filter'](_0x36c845=>_0x36c845['getAttribute']('todoListChecked')!=_0x13e089['value']),_0x42f465['model']['change'](()=>{for(const _0x4a15b8 of _0x12d859)_0x529281['markBlockFormat'](_0x4a15b8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x13e089['value']}]});});}),_0x529281['descriptionFactory']['registerElementLabel']('listItem',_0x59c0f4=>c(_0x5bbc1f,'ELEMENT_LIST_ITEM',_0x59c0f4)),_0x529281['descriptionFactory']['registerDescriptionCallback'](_0x5cf72b=>{if('formatBlock'!=_0x5cf72b['type']&&'formatInline'!=_0x5cf72b['type'])return;const {data:_0x5149f2}=_0x5cf72b;if(_0x5149f2){if('numberedList'==_0x5149f2['commandName']||'bulletedList'==_0x5149f2['commandName']||'todoList'==_0x5149f2['commandName'])switch(_0x5149f2['commandName']['replace']('List','')){case'bulleted':return _0x416315(c(_0x5bbc1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x416315(c(_0x5bbc1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x416315(c(_0x5bbc1f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5149f2['commandName'])return{'type':'format','content':c(_0x5bbc1f,'*Indent:*\x20%0',c(_0x5bbc1f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5149f2['commandName'])return{'type':'format','content':c(_0x5bbc1f,'*Outdent:*\x20%0',c(_0x5bbc1f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5149f2['commandName'])return _0x5149f2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bbc1f,'*Check\x20item*')}:{'type':'format','content':c(_0x5bbc1f,'*Uncheck\x20item*')};}function _0x416315(_0x58d3e3){return{'type':'format','content':c(_0x5bbc1f,'*Change\x20to:*\x20%0',_0x58d3e3)};}});}}function Le(_0x20358a){const _0x2a5c47=_0x20358a['getAttribute']('listIndent');if(0x0==_0x2a5c47)return _0x20358a;let _0x3c842c=_0x20358a;for(;_0x20358a['previousSibling']&&_0x20358a['previousSibling']['is']('element','listItem');){const _0x45920f=_0x20358a['previousSibling']['getAttribute']('listIndent');if(_0x45920f==_0x2a5c47)_0x3c842c=_0x20358a['previousSibling'];else{if(_0x45920f<_0x2a5c47)break;}_0x20358a=_0x20358a['previousSibling'];}return _0x3c842c;}function Ee(_0x2fa2a2){const _0x2644d0=[];if(_0x2fa2a2['is']('element','listItem')&&_0x2fa2a2['getAttribute']('listIndent')>0x0){let _0x1d576d=_0x2fa2a2['nextSibling'];for(;_0x1d576d&&'listItem'==_0x1d576d['name']&&_0x1d576d['getAttribute']('listIndent')==_0x2fa2a2['getAttribute']('listIndent');)_0x2644d0['push'](_0x1d576d),_0x1d576d=_0x1d576d['nextSibling'];}return _0x2644d0;}class Q extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x326173=this['editor']['config']['get']('list.properties'),_0x11f660=this['editor']['plugins']['get']('TrackChangesEditing');_0x326173['styles']&&_0x11f660['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x326173['reversed']&&_0x11f660['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x326173['startIndex']&&_0x11f660['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11f660['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2a3743,_0x2eeb4c={}){const _0x468bfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5488=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x468bfb['markMultiRangeBlockFormat'](_0x3e5488,{'commandName':'listStyle','commandParams':[{'type':_0x2eeb4c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fa9f1,_0x58ed45={}){const _0x420d49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5ca5=this['_getSuggestionBlocks'](_0x4b3aa4=>_0x4b3aa4['is']('element','listItem')&&'numbered'===_0x4b3aa4['getAttribute']('listType'));if(_0x4a5ca5['length']<0x1)return;const _0x55f09f=_0x4a5ca5['map'](_0x360f59=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x360f59,'before'),this['editor']['model']['createPositionAt'](_0x360f59,0x0)));this['editor']['model']['change'](()=>{_0x420d49['markMultiRangeBlockFormat'](_0x55f09f,{'commandName':'listReversed','commandParams':[{'reversed':_0x58ed45['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7f829b,_0x43b788={}){const _0x44fda6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574ebc=this['_getSuggestionBlocks'](_0x566a8d=>_0x566a8d['is']('element','listItem')&&'numbered'===_0x566a8d['getAttribute']('listType'));if(_0x574ebc['length']<0x1)return;const _0x367b81=_0x574ebc['map'](_0x52439a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52439a,'before'),this['editor']['model']['createPositionAt'](_0x52439a,0x0)));this['editor']['model']['change'](()=>{_0x44fda6['markMultiRangeBlockFormat'](_0x367b81,{'commandName':'listStart','commandParams':[{'startIndex':_0x43b788['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d6572){if('formatBlock'!=_0x1d6572['type']&&'formatInline'!=_0x1d6572['type'])return;const _0x2b9dea=this['editor']['locale'],{data:_0x224baa}=_0x1d6572;if(!_0x224baa)return;let _0x547277,_0xb01608;switch(_0x224baa['commandName']){case'listStyle':_0x547277='*Change\x20to:*\x20%0',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277,c(_0x2b9dea,this['_getTranslationKeyForListStyle'](_0x224baa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x547277=_0x224baa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277)};break;case'listStart':_0x547277='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277,_0x224baa['commandParams'][0x0]['startIndex'])};}return _0xb01608;}['_getSuggestionBlocksForListStyle'](){const _0x5842d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x1578a2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1578a2[0x0]?.['is']('element','listItem')&&_0x1578a2['unshift'](..._0x5842d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1578a2[_0x1578a2['length']-0x1]?.['is']('element','listItem')&&_0x1578a2['push'](..._0x5842d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1578a2=[...new Set(_0x1578a2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1578a2=_0x1578a2['filter'](_0x19d1c7=>_0x19d1c7['is']('element','listItem'))),_0x1578a2;}['_getSuggestionBlocks'](_0x481813){const _0xad5708=this['editor']['plugins']['get']('LegacyListUtils');let _0x19e32c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x481813)['map'](_0x271139=>{const _0x3f0426=this['editor']['model']['createPositionAt'](_0x271139,0x0);return[..._0xad5708['getSiblingNodes'](_0x3f0426,'backward'),..._0xad5708['getSiblingNodes'](_0x3f0426,'forward')];})['flat']();return _0x19e32c=[...new Set(_0x19e32c)],_0x19e32c;}['_getTranslationKeyForListStyle'](_0x54a7b0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a7b0)||'default')['toUpperCase']()+'_LIST_'+_0x54a7b0['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x31a850{['afterInit'](){const _0x3e603f=this['editor'];if(!_0x3e603f['plugins']['has']('MediaEmbedEditing'))return;const _0x5f15be=_0x3e603f['plugins']['get']('TrackChangesEditing'),_0x34e9c1=_0x3e603f['locale'];_0x5f15be['enableCommand']('mediaEmbed'),_0x5f15be['descriptionFactory']['registerElementLabel']('media',_0x3b8d73=>c(_0x34e9c1,'ELEMENT_MEDIA',_0x3b8d73)),_0x3e603f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x389f87,{writer:_0x2cf02c,options:_0x23fab9})=>{if(_0x23fab9['showSuggestionHighlights'])return _0x2cf02c['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e603f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x476651,_0x189500,_0x4fee85)=>{_0x4fee85['options']['showSuggestionHighlights']&&_0x476651['stop']();},{'priority':'high'});}}class pt extends _0x31a850{['afterInit'](){const _0x5eb1e9=this['editor'];_0x5eb1e9['plugins']['has']('MentionEditing')&&_0x5eb1e9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x31a850{['afterInit'](){const _0x2ea097=this['editor'];if(!_0x2ea097['plugins']['has']('MergeFieldsEditing'))return;const _0x552a78=_0x2ea097['plugins']['get']('TrackChangesEditing'),_0x2b9d5f=_0x2ea097['locale'];_0x552a78['enableCommand']('insertMergeField'),_0x552a78['enableCommand']('insertMergeFieldBlock'),_0x552a78['enableCommand']('insertMergeFieldImage'),_0x552a78['descriptionFactory']['registerElementLabel']('mergeField',_0x5de80f=>c(_0x2b9d5f,'ELEMENT_MERGE_FIELD',_0x5de80f)),_0x552a78['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4c08bb=>c(_0x2b9d5f,'ELEMENT_MERGE_FIELD',_0x4c08bb)),_0x552a78['descriptionFactory']['registerDescriptionCallback'](_0x3ea3d9=>{if('insertion'!=_0x3ea3d9['type']&&'deletion'!=_0x3ea3d9['type'])return;const _0x112d76=_0x3ea3d9['getContainedElement']();if(null==_0x112d76)return;const _0x437555=_0x2ea097['plugins']['get']('MergeFieldsEditing');let _0xa79c0a;switch(_0x437555['getMergeFieldType'](_0x112d76)){case null:return;case'image':{const _0x289930=_0x437555['unwrapAffixes'](_0x112d76['getAttribute']('src'));_0xa79c0a=_0x437555['getLabel'](_0x289930)||_0x289930;break;}default:{const _0x823282=_0x112d76['getAttribute']('id');_0xa79c0a=_0x437555['getLabel'](_0x823282)||_0x823282;break;}}return'insertion'==_0x3ea3d9['type']?{'type':'insertion','content':c(_0x2b9d5f,'*Insert:*\x20%0','\x22'+_0xa79c0a+'\x22\x20'+c(_0x2b9d5f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2b9d5f,'*Remove:*\x20%0','\x22'+_0xa79c0a+'\x22\x20'+c(_0x2b9d5f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x31a850{['afterInit'](){const _0x1eaef0=this['editor'],_0x43d505=_0x1eaef0['plugins']['get']('TrackChangesEditing');_0x1eaef0['plugins']['has']('MultiLevelList')&&(_0x43d505['enableDefaultAttributesIntegration']('multiLevelList'),_0x43d505['registerBlockAttribute']('listMarkerStyle'),_0x43d505['descriptionFactory']['registerDescriptionCallback'](_0x54ea27=>this['handleDescriptions'](_0x54ea27)));}['handleDescriptions'](_0x1d1240){const _0x1cdb69=this['editor']['locale'],{data:_0x2058ca}=_0x1d1240,_0x3815d1={'type':'format','content':''};if(_0x2058ca&&'listMarkerStyle'==_0x2058ca['key']){if(!_0x2058ca['oldValue'])return{'type':'format','content':c(_0x1cdb69,'*Set\x20format:*\x20%0',c(_0x1cdb69,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2058ca['newValue']+')'};if(!_0x2058ca['newValue']){let _0x4c5c53=_0x1d1240['head'];for(;_0x4c5c53;){if(_0x4c5c53['data']&&'listType'==_0x4c5c53['data']['key']&&_0x4c5c53['data']['newValue'])return _0x3815d1;_0x4c5c53=_0x4c5c53['next'];}return{'type':'format','content':c(_0x1cdb69,'*Remove\x20format:*\x20%0',c(_0x1cdb69,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2058ca['oldValue']+')'};}}}}class bt extends _0x31a850{['afterInit'](){const _0x270d0e=this['editor'];if(!_0x270d0e['plugins']['has']('PageBreakEditing'))return;_0x270d0e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x158f0d=_0x270d0e['plugins']['get']('TrackChangesEditing'),_0x9a013a=_0x270d0e['locale'];_0x158f0d['descriptionFactory']['registerElementLabel']('pageBreak',_0x440091=>c(_0x9a013a,'ELEMENT_PAGE_BREAK',_0x440091));}}class yt extends _0x31a850{['afterInit'](){const _0x2f5ba8=this['editor'];if(!_0x2f5ba8['plugins']['has']('Paragraph'))return;const _0x364259=_0x2f5ba8['locale'],_0x335bf8=_0x2f5ba8['plugins']['get']('TrackChangesEditing');_0x335bf8['descriptionFactory']['registerElementLabel']('paragraph',_0x3c2a58=>c(_0x364259,'ELEMENT_PARAGRAPH',_0x3c2a58)),_0x335bf8['enableDefaultAttributesIntegration']('paragraph'),_0x335bf8['enableCommand']('insertParagraph'),_0x2f5ba8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2f5ba8),{'priority':'highest'}),_0x2f5ba8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x235d82,_0x272068,_0x579e2f)=>{_0x579e2f['options']['showSuggestionHighlights']&&nr(_0x2f5ba8,{'showActiveMarker':!0x1})(_0x235d82,_0x272068,_0x579e2f);},{'priority':'highest'});const _0x20a28e=_0x335bf8['descriptionFactory'];_0x20a28e['registerDescriptionCallback'](_0x143575=>{if('insertion'!==_0x143575['type'])return;const {start:_0x1ee7ac,end:_0x54a8a3}=_0x143575['getFirstRange']();if(!_0x1ee7ac['isTouching'](_0x54a8a3)||!_0x1ee7ac['nodeAfter'])return;const _0x21325c=_0x2f5ba8['model']['schema'],_0x2d307b=_0x1ee7ac['nodeAfter'];return _0x21325c['isBlock'](_0x2d307b)&&!_0x21325c['isLimit'](_0x2d307b)&&_0x21325c['checkChild'](_0x2d307b,'$text')?{'type':'insertion','content':c(_0x364259,'*Insert:*\x20%0',_0x20a28e['getItemLabel'](_0x2d307b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f433c=this['editor'],_0xedf20f=_0x2f433c['locale'];_0x2f433c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197c6a=>{if('formatBlock'!=_0x197c6a['type'])return;const {data:_0x4421af}=_0x197c6a;return _0x4421af&&'paragraph'==_0x4421af['commandName']?{'type':'format','content':c(_0xedf20f,'*Change\x20to:*\x20%0',c(_0xedf20f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x333371,{showActiveMarker:_0x1aeec9=!0x0}={}){return(_0x2ce0ae,_0x595bac,_0x295835)=>{const _0x49cdb3=_0x333371['plugins']['get']('TrackChangesEditing'),_0x4eac80=_0x595bac['markerRange']['start'],_0x556335=_0x595bac['markerRange']['end'],_0x375ef0=_0x333371['model']['schema'];if(!_0x4eac80['isTouching'](_0x556335)||!_0x4eac80['nodeAfter'])return;const _0x3ae407=_0x4eac80['nodeAfter'];if(_0x375ef0['isBlock'](_0x3ae407)&&!_0x375ef0['isLimit'](_0x3ae407)&&_0x375ef0['checkChild'](_0x3ae407,'$text')){if(!_0x295835['consumable']['consume'](_0x595bac['markerRange'],_0x2ce0ae['name']))return;const {id:_0x1e8731,authorId:_0x47c8aa}=_0x49cdb3['_splitMarkerName'](_0x595bac['markerName']),_0x3ad2b6=_0x295835['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1e8731,'data-author-id':_0x47c8aa}),_0x3605de=_0x295835['mapper']['toViewPosition'](_0x556335);_0x1aeec9&&_0x49cdb3['activeMarkers']['includes'](_0x595bac['markerName'])&&_0x295835['writer']['addClass']('ck-suggestion-marker--active',_0x3ad2b6),_0x295835['writer']['insert'](_0x3605de,_0x3ad2b6),_0x295835['mapper']['bindElementToMarker'](_0x3ad2b6,_0x595bac['markerName']);}};}class St extends _0x31a850{['afterInit'](){const _0x258ba7=this['editor'];_0x258ba7['commands']['get']('replaceSource')&&_0x258ba7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x31a850{['afterInit'](){const _0x38d085=this['editor'];if(!_0x38d085['plugins']['has']('RemoveFormatEditing'))return;_0x38d085['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88f281=this['editor'];_0x88f281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10dd66=>{if('formatBlock'!=_0x10dd66['type']&&'formatInline'!=_0x10dd66['type'])return;const {data:_0x1affe6}=_0x10dd66;return _0x1affe6&&'removeFormat'==_0x1affe6['commandName']?{'type':'format','content':c(_0x88f281['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x31a850{['afterInit'](){const _0x4f3865=this['editor'];if(!_0x4f3865['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa1c5d1=_0x4f3865['plugins']['get']('TrackChangesEditing');_0xa1c5d1['enableCommand']('goToPreviousRestrictedEditingException'),_0xa1c5d1['enableCommand']('goToNextRestrictedEditingException');const _0x428697=_0x4f3865['plugins']['get']('RestrictedEditingModeEditing');_0x428697['enableCommand']('trackChanges'),_0x428697['enableCommand']('acceptSuggestion'),_0x428697['enableCommand']('discardSuggestion'),_0x428697['enableCommand']('acceptAllSuggestions'),_0x428697['enableCommand']('discardAllSuggestions'),_0x428697['enableCommand']('acceptSelectedSuggestions'),_0x428697['enableCommand']('discardSelectedSuggestions');}}class At extends _0x31a850{['afterInit'](){const _0x20caf3=this['editor'];if(!_0x20caf3['plugins']['has']('ShiftEnter'))return;const _0x319b91=_0x20caf3['plugins']['get']('TrackChangesEditing');_0x319b91['enableCommand']('shiftEnter'),_0x20caf3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x20caf3),{'priority':'high'}),_0x20caf3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x20caf3),{'priority':'high'}),_0x20caf3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x667586,_0x5f3e3d,_0x1702aa)=>{_0x1702aa['options']['showSuggestionHighlights']&&je(_0x20caf3,{'showActiveMarker':!0x1})(_0x667586,_0x5f3e3d,_0x1702aa);}),_0x319b91['descriptionFactory']['registerElementLabel']('softBreak',_0x1fa215=>c(_0x20caf3['locale'],'ELEMENT_LINE_BREAK',_0x1fa215));}}function je(_0x191a82,{showActiveMarker:_0x53e35d=!0x0}={}){return(_0x21ae40,_0x595262,_0x39da27)=>{const _0x707af0=_0x191a82['plugins']['get']('TrackChangesEditing');if(!_0x39da27['consumable']['test'](_0x595262['markerRange'],_0x21ae40['name']))return;const _0xa179e6=_0x191a82['model'];for(const _0x3b7541 of _0x595262['markerRange']['getItems']()){if(!_0x3b7541['is']('element','softBreak'))continue;const _0x5025c9='deletion'==_0x595262['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2b75ef,authorId:_0xfb143b}=_0x707af0['_splitMarkerName'](_0x595262['markerName']),_0x1dc89c=_0x39da27['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5025c9,'data-suggestion':_0x2b75ef,'data-author-id':_0xfb143b}),_0x597905=_0x39da27['mapper']['toViewPosition'](_0xa179e6['createPositionBefore'](_0x3b7541));_0x53e35d&&_0x707af0['activeMarkers']['includes'](_0x595262['markerName'])&&_0x39da27['writer']['addClass']('ck-suggestion-marker--active',_0x1dc89c),_0x39da27['writer']['insert'](_0x597905,_0x1dc89c),_0x39da27['mapper']['bindElementToMarker'](_0x1dc89c,_0x595262['markerName']);}};}class _t extends _0x31a850{['afterInit'](){const _0x4ecf26=this['editor'],_0x3c8b31=_0x4ecf26['model'],_0x11c219=_0x4ecf26['locale'];if(!_0x4ecf26['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f95c0=_0x4ecf26['plugins']['get']('TrackChangesEditing'),_0x447b0a='restrictedEditingException',_0x108800=_0x4ecf26['commands']['get'](_0x447b0a);_0x4f95c0['enableCommand'](_0x447b0a,(_0x256523,_0x5e8f3d={})=>{const _0x2a2a33=_0x3c8b31['document']['selection'];if(_0x2a2a33['isCollapsed'])return void _0x256523(_0x5e8f3d);const _0x8165=void 0x0!==_0x5e8f3d['forceValue']?_0x5e8f3d['forceValue']:!_0x108800['value'];_0x3c8b31['change'](()=>{const _0x59dbee=Array['from'](_0x2a2a33['getRanges']());for(const _0x347250 of _0x59dbee){const _0x7f8526=_0x8165?[_0x347250]:io(_0x447b0a,_0x347250,_0x3c8b31);for(const _0x712744 of _0x7f8526)_0x4f95c0['markInlineFormat'](_0x712744,{'commandName':_0x447b0a,'commandParams':[{'forceValue':_0x8165}]});}});}),_0x4f95c0['descriptionFactory']['registerDescriptionCallback'](_0x398033=>{if('formatBlock'!=_0x398033['type']&&'formatInline'!=_0x398033['type'])return;const {data:_0x226306}=_0x398033;return _0x226306&&_0x226306['commandName']==_0x447b0a?_0x226306['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11c219,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x11c219,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x31a850{['afterInit'](){const _0x230b43=this['editor'];if(!_0x230b43['plugins']['has']('Style')||!_0x230b43['plugins']['has']('DataSchema'))return;const _0x40308a=_0x230b43['plugins']['get']('TrackChangesEditing'),_0x4398a4=_0x230b43['locale'],_0x298908=_0x230b43['config']['get']('style')||{},_0x5b0bc3=_0x230b43['plugins']['get']('GeneralHtmlSupport'),_0x30a805=_0x230b43['plugins']['get']('StyleUtils')['normalizeConfig'](_0x230b43['plugins']['get']('DataSchema'),_0x298908['definitions']);_0x40308a['enableDefaultAttributesIntegration']('style');const _0x5d1af1=new Set();for(const _0x38e31a of _0x30a805['block']){const _0x2e2907=_0x5b0bc3['getGhsAttributeNameForElement'](_0x38e31a['element']);_0x5d1af1['add'](_0x2e2907);}const _0x443b3b=new Set();for(const _0x3cbdff of _0x30a805['inline']){const _0x161e7f=_0x5b0bc3['getGhsAttributeNameForElement'](_0x3cbdff['element']);_0x443b3b['add'](_0x161e7f);for(const _0x24cbad of _0x3cbdff['ghsAttributes'])_0x443b3b['add'](_0x24cbad);}for(const _0x5c9c4e of _0x5d1af1)_0x40308a['registerBlockAttribute'](_0x5c9c4e),_0x40308a['descriptionFactory']['registerAttributeLabel'](_0x5c9c4e,c(_0x4398a4,'FORMAT_STYLE'));for(const _0x31f7de of _0x443b3b)_0x40308a['registerInlineAttribute'](_0x31f7de),_0x40308a['descriptionFactory']['registerAttributeLabel'](_0x31f7de,c(_0x4398a4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x189376=this['editor'],_0x3f41b7=_0x189376['locale'];_0x189376['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba470=>{if('formatBlock'!=_0x2ba470['type']&&'formatInline'!=_0x2ba470['type'])return;const {data:_0x2fe843}=_0x2ba470;return _0x2fe843&&'style'===_0x2fe843['commandName']?_0x2fe843['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f41b7,'*Set\x20format:*\x20%0',_0x2fe843['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3f41b7,'*Remove\x20format:*\x20%0',_0x2fe843['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x31a850{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x10ba46){super(_0x10ba46),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x314f52=this['editor'],_0x4c63bf=_0x314f52['model']['document']['selection'];if(!_0x314f52['plugins']['has']('TableEditing'))return;const _0x583b2a=_0x314f52['locale'],_0x41102c=_0x314f52['plugins']['get']('TrackChangesEditing'),_0x53cd83=_0x314f52['plugins']['get']('TableUtils');_0x41102c['descriptionFactory']['registerElementLabel']('table',_0xd17b20=>c(_0x583b2a,'ELEMENT_TABLE',_0xd17b20)),this['_setupColumnsRowsFixing'](),_0x41102c['enableCommand']('insertTable'),_0x41102c['enableCommand']('selectTableRow'),_0x41102c['enableCommand']('selectTableColumn');for(const _0xfde11d of['insertTableRowAbove','insertTableRowBelow']){const _0x1bfcfc=_0x314f52['commands']['get'](_0xfde11d);_0x41102c['enableCommand'](_0xfde11d,_0x3a7eb5=>{_0x314f52['model']['change'](_0x5c9efe=>{_0x3a7eb5();const _0x215d01='above'===_0x1bfcfc['order'],_0x187f38=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x2ff10d=_0x53cd83['getRowIndexes'](_0x187f38),_0x4136ca=_0x215d01?_0x2ff10d['first']-0x1:_0x2ff10d['last']+0x1,_0x4ffdf5=_0x187f38[0x0]['findAncestor']('table'),_0x33fafd=_0x53cd83['createTableWalker'](_0x4ffdf5,{'startRow':_0x4136ca,'endRow':_0x4136ca}),_0x256c5e=Array['from'](_0x33fafd)['map'](_0x5d09d1=>_0x5c9efe['createRangeOn'](_0x5d09d1['cell']));_0x41102c['markMultiRangeInsertion'](_0x256c5e,'tableRow');});});}for(const _0x31eb0b of['insertTableColumnLeft','insertTableColumnRight']){const _0x314cfa=_0x314f52['commands']['get'](_0x31eb0b);_0x41102c['enableCommand'](_0x31eb0b,_0x52d0a6=>{_0x314f52['model']['change'](_0x419590=>{_0x52d0a6();const _0x23c2de='left'===_0x314cfa['order'],_0x48f8b1=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x228dc8=_0x53cd83['getColumnIndexes'](_0x48f8b1),_0x4e951d=_0x23c2de?_0x228dc8['first']-0x1:_0x228dc8['last']+0x1,_0x9ebf09=_0x48f8b1[0x0]['findAncestor']('table'),_0x1112a4=_0x53cd83['createTableWalker'](_0x9ebf09,{'startRow':0x0,'column':_0x4e951d,'includeAllSlots':!0x1}),_0x141334=Array['from'](_0x1112a4)['map'](_0x1629ec=>_0x419590['createRangeOn'](_0x1629ec['cell']));_0x41102c['markMultiRangeInsertion'](_0x141334,'tableColumn');});});}for(const _0x5c493c of['removeTableRow','removeTableColumn']){const _0x2ddedd=_0x5c493c['substr'](0xb),_0x1a3cd9=_0x2ddedd['toLowerCase'](),_0x564e1d=_0x1a3cd9['substr'](0x0,0x3)+'span',_0x2aca7c='table'+_0x2ddedd,_0x1ffe20='min'+_0x2ddedd,_0x5dcb07='max'+_0x2ddedd;_0x41102c['enableCommand'](_0x5c493c,()=>{_0x314f52['model']['change'](_0x424817=>{const _0x5a0595=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x580bc7=_0x5a0595[0x0]['findAncestor']('table');let _0x35b983;if('removeTableRow'==_0x5c493c){const _0x3f9dd2=_0x53cd83['getRowIndexes'](_0x5a0595);_0x35b983={'startRow':_0x3f9dd2['first'],'endRow':_0x3f9dd2['last'],'includeAllSlots':!0x0};}else{const _0x141e6d=_0x53cd83['getColumnIndexes'](_0x5a0595);_0x35b983={'startColumn':_0x141e6d['first'],'endColumn':_0x141e6d['last'],'includeAllSlots':!0x0};}const _0x52bdb3=_0x53cd83['createTableWalker'](_0x580bc7,_0x35b983),_0x518a21=Array['from'](_0x52bdb3)['map'](({cell:_0x27a870})=>_0x27a870),_0x5d73c0=xe(_0x518a21['filter'](_0x1807b3=>_0x1807b3['hasAttribute'](_0x564e1d))),_0x2985be=xe(_0x518a21['filter'](_0x24ae09=>!_0x24ae09['hasAttribute'](_0x564e1d)))['map'](_0x40abcb=>_0x424817['createRangeOn'](_0x40abcb)),_0x26bc00=_0x41102c['markMultiRangeDeletion'](_0x2985be,_0x2aca7c);if(_0x26bc00&&('tableRow'==_0x26bc00['subType']||'tableColumn'==_0x26bc00['subType'])){const _0x32accf=this['_getSuggestionCoords'](_0x26bc00);for(const _0x3dfd70 of _0x5d73c0){const _0x2b87e8=_0x424817['createRangeOn'](_0x3dfd70),_0x56b1db=_0x53cd83['getCellLocation'](_0x3dfd70),_0x3f988b=_0x3dfd70['getAttribute'](_0x564e1d)-0x1,_0x4a36ce=_0x32accf[_0x1ffe20],_0x4d0415=_0x32accf[_0x5dcb07];_0x4a36ce<=_0x56b1db[_0x1a3cd9]&&_0x56b1db[_0x1a3cd9]+_0x3f988b<=_0x4d0415&&_0x26bc00['addRange'](_0x2b87e8);}}});});}function _0x517ccf(_0x5e8beb){const _0x325a28=Array['from'](_0x4c63bf['getRanges']())['map'](_0x1f4655=>_0x275766['fromRange'](_0x1f4655));_0x314f52['model']['change'](_0x36f62b=>{const _0x1b5eef=_0x36f62b['batch'];_0x5e8beb=_0x5e8beb['filter'](_0x2499ff=>'$graveyard'!=_0x2499ff['root']['rootName']),_0x36f62b['setSelection'](_0x5e8beb),_0x314f52['commands']['get']('removeTableRow')['refresh'](),_0x314f52['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x314f52['model']['enqueueChange'](()=>{_0x314f52['model']['enqueueChange'](_0x1b5eef,_0x11726b=>{const _0x5778b6=_0x325a28['filter'](_0x2d1706=>'$graveyard'!=_0x2d1706['root']['rootName']);_0x5778b6['length']>0x0&&_0x11726b['setSelection'](_0x5778b6);for(const _0x3a812a of _0x325a28)_0x3a812a['detach']();});});});}function _0x471934(_0x298595){_0x314f52['model']['change'](_0x3370bd=>{const _0x2f8816=Array['from'](_0x4c63bf['getRanges']())['map'](_0x4a055c=>_0x275766['fromRange'](_0x4a055c)),_0x2fe95c=[];for(const _0x1ef656 of _0x298595)for(const _0x806c59 of _0x1ef656['getItems']({'shallow':!0x0}))_0x2fe95c['push'](_0x806c59);for(const _0x4555b6 of _0x2fe95c)'$graveyard'!=_0x4555b6['root']['rootName']&&(_0x3370bd['setSelection'](_0x3370bd['createPositionAt'](_0x4555b6,0x0)),_0x314f52['commands']['get']('removeTableColumn')['refresh'](),_0x314f52['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43fbbb=_0x2f8816['filter'](_0x438da1=>'$graveyard'!=_0x438da1['root']['rootName']);_0x43fbbb['length']>0x0&&_0x3370bd['setSelection'](_0x43fbbb);for(const _0x1c042e of _0x2f8816)_0x1c042e['detach']();});}function _0x4cddb9(_0x2cc5fb,_0x35eb85){return _0x35eb85['every'](_0x4d0b77=>_0x2cc5fb['some'](_0x21f1e6=>_0x21f1e6['end']['isEqual'](_0x4d0b77['start'])||_0x4d0b77['end']['isEqual'](_0x21f1e6['start'])));}function _0x41608a(_0x36266b,_0x1e13dc){return!_0x36266b['some'](_0x218a9a=>_0x1e13dc['some'](_0x19c19d=>_0x218a9a['isIntersecting'](_0x19c19d)))&&_0x36266b['some'](_0x4902bb=>_0x1e13dc['some'](_0x36eff9=>_0x4902bb['end']['isTouching'](_0x36eff9['start'])));}_0x314f52['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cc77f,_0x492587,_0x3e5737)=>{if(!_0x3e5737['options']['showSuggestionHighlights'])return;const _0x119431=_0x492587['item'];if(!_0x119431||!_0x119431['is']('element','tableCell'))return;const _0x43b39b=_0x3e5737['mapper']['toViewElement'](_0x119431);if(_0x43b39b){const {id:_0x5890a3,authorId:_0x23cdb6}=_0x41102c['_splitMarkerName'](_0x492587['markerName']);_0xdde8e0(_0x43b39b,_0x3e5737['writer'],(_0x1bdf9b,_0x4905f7,_0x4eb778)=>{_0x4eb778['addClass'](_0x2fd845(_0x4905f7['classes']),_0x1bdf9b),_0x4eb778['setAttribute']('data-suggestion-id',_0x5890a3,_0x1bdf9b),_0x4eb778['setAttribute']('data-author-id',_0x23cdb6,_0x1bdf9b);},(_0x126a45,_0x541835,_0x83b533)=>{_0x83b533['removeClass'](_0x2fd845(_0x541835['classes']),_0x126a45),_0x83b533['removeAttribute']('data-suggestion-id',_0x126a45),_0x83b533['removeAttribute']('data-author-id',_0x126a45);});}},{'priority':'highest'}),_0x41102c['descriptionFactory']['registerDescriptionCallback'](_0xe4104e=>{if('insertion'!=_0xe4104e['type']&&'deletion'!=_0xe4104e['type'])return;const _0x47217c=_0xe4104e['getContainedElement']();if(null!=_0x47217c&&_0x47217c['is']('element','table')){if('insertion'==_0xe4104e['type']){const _0x527160=_0xe4104e['getItems']()['filter'](_0x18e3df=>_0x18e3df['is']('$textProxy'))['map'](_0xaaffa3=>_0xaaffa3['data']);if(_0x527160['length'])return{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x527160['join']('\x20')+'\x22'))};}if('deletion'==_0xe4104e['type']){const _0xeec8ab=_0xe4104e['getItems']()['filter'](_0x3650cd=>_0x3650cd['is']('$textProxy'))['map'](_0x3c1958=>_0x3c1958['data']);if(_0xeec8ab['length'])return{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xeec8ab['join']('\x20')+'\x22'))};}}}),_0x41102c['descriptionFactory']['registerDescriptionCallback'](_0x234e05=>{if('tableRow'==_0x234e05['subType']){const _0x310078=_0x234e05['getItems']()['filter'](_0x519ca0=>_0x519ca0['is']('$textProxy'))['map'](_0x1a33d8=>_0x1a33d8['data']),_0x347f69=this['_getSuggestionCoords'](_0x234e05),_0x1c9e20=_0x347f69['maxRow']-_0x347f69['minRow']+0x1;if('insertion'==_0x234e05['type'])return _0x310078['length']?{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c9e20,'\x22'+_0x310078['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW',_0x1c9e20))};if('deletion'==_0x234e05['type'])return _0x310078['length']?{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c9e20,'\x22'+_0x310078['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW',_0x1c9e20))};}if('tableColumn'==_0x234e05['subType']){const _0x1fd899=_0x234e05['getItems']()['filter'](_0x54d375=>_0x54d375['is']('$textProxy'))['map'](_0x44896d=>_0x44896d['data']),_0x3d2186=this['_getSuggestionCoords'](_0x234e05),_0x4f4cd3=_0x3d2186['maxColumn']-_0x3d2186['minColumn']+0x1;if('insertion'==_0x234e05['type'])return _0x1fd899['length']?{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f4cd3,'\x22'+_0x1fd899['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN',_0x4f4cd3))};if('deletion'==_0x234e05['type'])return _0x1fd899['length']?{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f4cd3,'\x22'+_0x1fd899['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN',_0x4f4cd3))};}}),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x517ccf),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x517ccf),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x471934),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x471934),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4cddb9),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4cddb9),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41608a),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41608a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2059d9=this['editor'],_0x4c8d5b=_0x2059d9['model']['document']['selection'];return(_0x3e0daa,_0x474ab8)=>{_0x2059d9['model']['change'](_0x3a88ef=>{const {commandName:_0x1d8fbe,commandParams:_0x5464bd}=_0x474ab8;let _0x12673a=_0x3e0daa[0x0]['end']['nodeBefore'];_0x5464bd&&_0x5464bd[0x0]&&!0x1===_0x5464bd[0x0]['forceValue']&&(_0x12673a=_0x3e0daa[0x0]['start']['nodeAfter']);const _0x3969b0=_0x3a88ef['createRangeIn'](_0x12673a);if('$graveyard'==_0x3969b0['root']['rootName'])return;const _0x22f8eb=Array['from'](_0x4c8d5b['getRanges']())['map'](_0x13713d=>_0x275766['fromRange'](_0x13713d));_0x3a88ef['setSelection'](_0x3969b0),_0x2059d9['commands']['get'](_0x1d8fbe)['refresh'](),_0x5464bd['push']({'forceDefaultExecution':!0x0}),_0x2059d9['execute'](_0x1d8fbe,..._0x5464bd);const _0x12bbb3=_0x22f8eb['filter'](_0x89efb9=>'$graveyard'!=_0x89efb9['root']['rootName']);_0x12bbb3['length']>0x0&&_0x3a88ef['setSelection'](_0x12bbb3);for(const _0x4a3867 of _0x22f8eb)_0x4a3867['detach']();});};}['_getCoordsForCells'](_0x136990){const _0x173fc5=this['editor']['plugins']['get']('TableUtils');let _0x3ad40c=Number['MAX_SAFE_INTEGER'],_0x4c29af=Number['MIN_SAFE_INTEGER'],_0x55337b=Number['MAX_SAFE_INTEGER'],_0x241d55=Number['MIN_SAFE_INTEGER'];for(const _0x501938 of _0x136990){if('$graveyard'==_0x501938['root']['rootName'])continue;const {row:_0x5d9f7f,column:_0x18f7dc}=_0x173fc5['getCellLocation'](_0x501938),_0x5cbb80=_0x501938['hasAttribute']('rowspan')?_0x501938['getAttribute']('rowspan')-0x1:0x0,_0x2fa3e8=_0x501938['hasAttribute']('colspan')?_0x501938['getAttribute']('colspan')-0x1:0x0;_0x3ad40c=_0x5d9f7f<_0x3ad40c?_0x5d9f7f:_0x3ad40c,_0x4c29af=_0x5d9f7f+_0x5cbb80>_0x4c29af?_0x5d9f7f+_0x5cbb80:_0x4c29af,_0x55337b=_0x18f7dc<_0x55337b?_0x18f7dc:_0x55337b,_0x241d55=_0x18f7dc+_0x2fa3e8>_0x241d55?_0x18f7dc+_0x2fa3e8:_0x241d55;}return{'minRow':_0x3ad40c,'maxRow':_0x4c29af,'minColumn':_0x55337b,'maxColumn':_0x241d55};}['_setupColumnsRowsFixing'](){const _0x5ee14e=this['editor'],_0x3628dc=_0x5ee14e['plugins']['get']('TrackChangesEditing'),_0xaf0e84=_0x5ee14e['plugins']['get']('TableUtils');_0x5ee14e['model']['document']['on']('change:data',()=>{const _0x4ae169=Array['from'](_0x5ee14e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x518f38,data:_0xc6ada1}of _0x4ae169){const {group:_0x408eed,id:_0x61d6a1,subType:_0x5a2e11}=_0x3628dc['_splitMarkerName'](_0x518f38);if('suggestion'!=_0x408eed)continue;if(null!=_0xc6ada1['oldRange'])continue;const _0x11ca9a=_0x3628dc['getSuggestion'](_0x61d6a1);this['_tablePostFixingSubtypes']['includes'](_0x5a2e11)&&this['_tableSuggestions']['add'](_0x11ca9a);}},{'priority':'low'});const _0x4c6921=(_0x535b1a,_0xd58604)=>{let _0x5358e0=!0x1;const _0x6d65fa=_0xd58604['createRangeOn'](_0x535b1a),_0x3eaec5=_0x535b1a['findAncestor']('table'),_0x39988e=_0xaf0e84['getCellLocation'](_0x535b1a);for(const _0x1c3873 of this['_tableSuggestions']){const _0x481a61=_0x1c3873['subType'],_0x5d230=_0x481a61['startsWith']('tablePaste'),_0x497752=_0x481a61['substr'](_0x5d230?0xa:0x5),_0x544557=_0x497752['toLowerCase'](),_0x345796=_0x544557['substr'](0x0,0x3)+'span',_0xce1375='min'+_0x497752,_0x47b30d='max'+_0x497752;if(!_0x1c3873['isInContent'])continue;if(_0x3eaec5!=_0x1c3873['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1c3873['isIntersectingWithRange'](_0x6d65fa))continue;const _0x11dd21=_0x535b1a['hasAttribute'](_0x345796)?_0x535b1a['getAttribute'](_0x345796)-0x1:0x0,_0x24ad30=this['_getSuggestionCoords'](_0x1c3873),_0x46f44c=_0x24ad30[_0xce1375],_0x9816a8=_0x24ad30[_0x47b30d];_0x46f44c<=_0x39988e[_0x544557]&&_0x39988e[_0x544557]+_0x11dd21<=_0x9816a8&&(_0x1c3873['addRange'](_0x6d65fa),_0x5358e0=!0x0);}return _0x5358e0;};_0x5ee14e['model']['document']['registerPostFixer'](_0x2bc4fe=>{let _0x2b634a=!0x1;for(const _0x6dad92 of _0x5ee14e['model']['document']['differ']['getChanges']())if('insert'==_0x6dad92['type']){if('tableRow'==_0x6dad92['name']){for(const _0x435929 of _0x6dad92['position']['nodeAfter']['getChildren']())_0x2b634a=_0x2b634a||_0x4c6921(_0x435929,_0x2bc4fe);}else'tableCell'==_0x6dad92['name']&&(_0x2b634a=_0x2b634a||_0x4c6921(_0x6dad92['position']['nodeAfter'],_0x2bc4fe));}return _0x2b634a;});}['_getSuggestionCoords'](_0x18f223){return this['_getCoordsForCells'](_0x18f223['getRanges']()['map'](_0x5897c0=>_0x5897c0['start']['nodeAfter']));}}function xe(_0x1f5385){return Array['from'](new Set(_0x1f5385)['values']());}class Nt extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x38384d=this['editor'],_0x3538fa=_0x38384d['model']['document']['selection'],_0x3a6e99=_0x38384d['locale'];if(!_0x38384d['plugins']['has']('TableEditing'))return;const _0x4fb69a=_0x38384d['plugins']['get']('TrackChangesEditing'),_0x1cfce9=_0x38384d['plugins']['get']('TableUtils'),_0x45e3d2=_0x38384d['plugins']['get'](Ct);_0x45e3d2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4fb69a['enableCommand']('mergeTableCells',()=>{const _0x501a70=_0x1cfce9['getSelectionAffectedTableCells'](_0x38384d['model']['document']['selection']);_0x38384d['model']['change'](()=>{_0x4fb69a['markMultiRangeBlockFormat'](_0x501a70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x38384d['commands']['get']('mergeTableCells')['on']('execute',(_0x1d66a3,_0x16208b)=>{_0x38384d['commands']['get']('trackChanges')['value']&&(_0x16208b['length']>0x0&&_0x16208b[_0x16208b['length']-0x1]&&_0x16208b[_0x16208b['length']-0x1]['forceDefaultExecution']||_0x4fb69a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d66a3['stop']());},{'priority':'highest'});for(const _0x1cca44 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39c51b=_0x38384d['commands']['get'](_0x1cca44);_0x4fb69a['enableCommand'](_0x1cca44,()=>{const _0x5da247=_0x38384d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e05e6=>_0x4e05e6['is']('element','tableCell')),_0x52aea6=_0x39c51b['value'];_0x38384d['model']['change'](()=>{_0x4fb69a['markMultiRangeBlockFormat']([_0x5da247,_0x52aea6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c9a25 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b2649=_0x38384d['commands']['get'](_0x3c9a25);_0x4fb69a['enableCommand'](_0x3c9a25,()=>{const _0x1d1568=_0x1cfce9['getSelectionAffectedTableCells'](_0x38384d['model']['document']['selection'])[0x0],_0x4a4546=_0x1d1568['findAncestor']('table'),{column:_0x9ee6bf,row:_0x5c0d53}=_0x1cfce9['getCellLocation'](_0x1d1568);let _0x574ce6=[];if('horizontally'==_0x2b2649['direction']){const _0xadb35d=_0x1cfce9['createTableWalker'](_0x4a4546,{'startRow':_0x5c0d53,'endRow':_0x5c0d53,'includeAllSlots':!0x0});_0x574ce6=Array['from'](_0xadb35d)['map'](_0x3710e7=>_0x3710e7['cell']);}else{const _0x5975ed=_0x1cfce9['createTableWalker'](_0x4a4546,{'column':_0x9ee6bf,'includeAllSlots':!0x0});_0x574ce6=Array['from'](_0x5975ed)['map'](_0xdd9ed7=>_0xdd9ed7['cell']);}_0x38384d['model']['change'](_0x27e634=>{_0x4fb69a['markBlockFormat'](_0x27e634['createRangeOn'](_0x1d1568),{'commandName':_0x3c9a25,'commandParams':[]},_0x574ce6,_0x3c9a25);});});}_0x4fb69a['descriptionFactory']['registerDescriptionCallback'](_0x1b5b07=>{if('formatBlock'!=_0x1b5b07['type']&&'formatInline'!=_0x1b5b07['type'])return;const {data:_0x51fd8d}=_0x1b5b07;return _0x51fd8d&&'mergeTableCells'==_0x51fd8d['commandName']?{'type':'format','content':c(_0x3a6e99,'*Merge\x20cells*')}:void 0x0;}),_0x4fb69a['descriptionFactory']['registerDescriptionCallback'](_0x220a8e=>{if('formatBlock'!=_0x220a8e['type']&&'formatInline'!=_0x220a8e['type'])return;const {data:_0x5d0c58}=_0x220a8e;return _0x5d0c58?'splitTableCellVertically'==_0x5d0c58['commandName']?{'type':'format','content':c(_0x3a6e99,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d0c58['commandName']?{'type':'format','content':c(_0x3a6e99,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb820e9=_0x45e3d2['_acceptFormatSuggestionCallbackFactory']();for(const _0x3df873 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3df873,'accept',_0xb820e9);for(const _0x408582 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408582,'accept',_0xb820e9);_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3255f4=>{_0x38384d['model']['change'](_0x36a04b=>{const _0x4d3075=Array['from'](_0x3538fa['getRanges']())['map'](_0x2ff932=>_0x275766['fromRange'](_0x2ff932));_0x36a04b['setSelection'](_0x3255f4),_0x38384d['commands']['get']('mergeTableCells')['refresh'](),_0x38384d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x6b5203=_0x4d3075['filter'](_0x4fd124=>'$graveyard'!=_0x4fd124['root']['rootName']);_0x6b5203['length']>0x0&&_0x36a04b['setSelection'](_0x6b5203);for(const _0x559127 of _0x4d3075)_0x559127['detach']();});});for(const _0x1c1f7c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a4347=_0x38384d['commands']['get'](_0x1c1f7c);_0x3a4347['on']('set:isEnabled',(_0x986018,_0x341c9e,_0x2936bf)=>{if(_0x2936bf){const _0x59180f=_0x38384d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158a13=>_0x158a13['is']('element','tableCell'));this['_areMergableCells'](_0x3a4347['value'],_0x59180f)||(_0x986018['return']=!0x1,_0x986018['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16aaac=this['editor']['commands']['get']('mergeTableCells'),_0x5df8c0=this['editor']['plugins']['get']('TableUtils');if(!_0x16aaac['isEnabled'])return!0x1;const _0x943fac=_0x5df8c0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x345ae1 of _0x943fac)for(const _0x25283c of _0x943fac)if(_0x345ae1!=_0x25283c&&!this['_areMergableCells'](_0x345ae1,_0x25283c))return!0x1;return!0x0;}['_areMergableCells'](_0x35c1ce,_0x305c28){const _0x47e607=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20aa2a=this['editor']['model']['createRangeOn'](_0x35c1ce),_0x43ce33=this['editor']['model']['createRangeOn'](_0x305c28),_0x3de0f3=new Set(),_0x3a6b57=new Set();for(const _0x3d93b7 of _0x47e607['getSuggestions']())if(('insertion'==_0x3d93b7['type']||'deletion'==_0x3d93b7['type']||'mergeTableCells'==_0x3d93b7['subType'])&&_0x3d93b7['isInContent']){for(const _0xeda670 of _0x3d93b7['getRanges']())_0xeda670['containsRange'](_0x20aa2a,!0x0)&&_0x3de0f3['add'](_0x3d93b7['type']+':'+_0x3d93b7['author']['id']),_0xeda670['containsRange'](_0x43ce33,!0x0)&&_0x3a6b57['add'](_0x3d93b7['type']+':'+_0x3d93b7['author']['id']);}if(_0x3de0f3['size']!=_0x3a6b57['size'])return!0x1;for(const _0x1d91fc of _0x3de0f3)if(!_0x3a6b57['has'](_0x1d91fc))return!0x1;return!0x0;}}class Dt extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x2e38e8=this['editor'];if(!_0x2e38e8['plugins']['has']('TableEditing'))return;const _0xc5e8fd=_0x2e38e8['locale'],_0x26c376=_0x2e38e8['plugins']['get']('TrackChangesEditing');_0x26c376['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x26c376['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x26c376['registerBlockAttribute']('headingRows'),_0x26c376['registerBlockAttribute']('headingColumns'),_0x26c376['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xc5e8fd,'FORMAT_HEADER_ROW')),_0x26c376['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xc5e8fd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b46fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c2dc=this['editor']['plugins']['get']('TableUtils'),_0x4c1496=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5d0b39({showActiveMarker:_0x44eab8=!0x0,setDataAttribute:_0x35b490=!0x0}={}){return(_0x13daed,_0xe8fbed,_0x4fae6a)=>{const {type:_0x351d3d,id:_0x25a5f4}=_0x3b46fd['_splitMarkerName'](_0xe8fbed['markerName']),_0xe31086=_0x3b46fd['getSuggestion'](_0x25a5f4),_0x52eaf2=_0xe31086['data'];if('formatBlock'!=_0xe31086['type']||!_0x52eaf2||'setTableColumnHeader'!=_0x52eaf2['commandName'])return;if(_0xe8fbed['item'])return void _0x13daed['stop']();if(!_0x4fae6a['consumable']['consume'](_0xe8fbed['markerRange'],_0x13daed['name']))return;const _0x35a16a=_0xe8fbed['markerRange']['start']['nodeAfter'],_0x2d1e2c=_0xe8fbed['markerRange']['end']['nodeBefore'],_0x17dd15=_0x35a16a['parent']['parent'],{column:_0xdb29cf}=_0x47c2dc['getCellLocation'](_0x35a16a),{column:_0x2eecb2}=_0x47c2dc['getCellLocation'](_0x2d1e2c);for(let _0x4a7bdd=_0xdb29cf;_0x4a7bdd<=_0x2eecb2;_0x4a7bdd++){const _0x8a0d42=_0x47c2dc['createTableWalker'](_0x17dd15,{'column':_0x4a7bdd,'includeAllSlots':!0x1});for(const _0x4d8c3f of _0x8a0d42){const _0x2aeb23=_0x4d8c3f['cell'],_0x2713db=_0x4fae6a['mapper']['toViewElement'](_0x2aeb23);_0x4fae6a['writer']['addClass']('ck-suggestion-marker-'+_0x351d3d,_0x2713db),_0x35b490&&_0x4fae6a['writer']['setAttribute']('data-suggestion',_0x25a5f4,_0x2713db),_0x4fae6a['mapper']['bindElementToMarker'](_0x2713db,_0xe8fbed['markerName']),_0x44eab8&&(_0x3b46fd['activeMarkers']['includes'](_0xe8fbed['markerName'])?_0x4fae6a['writer']['addClass']('ck-suggestion-marker--active',_0x2713db):_0x4fae6a['writer']['removeClass']('ck-suggestion-marker--active',_0x2713db));}}};}_0x3b46fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c1496),_0x3b46fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c1496),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5d0b39(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23204a,_0x2f7bd5,_0x462324)=>{_0x462324['options']['showSuggestionHighlights']&&_0x5d0b39({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x23204a,_0x2f7bd5,_0x462324);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x559676,_0x562dae,_0x5edfe3)=>{const {type:_0x47dd30,id:_0x443351}=_0x3b46fd['_splitMarkerName'](_0x562dae['markerName']),_0xe466df=_0x3b46fd['getSuggestion'](_0x443351),_0xfdcb5b=_0xe466df['data'];if('formatBlock'!=_0xe466df['type']||!_0xfdcb5b||'setTableColumnHeader'!=_0xfdcb5b['commandName'])return;const _0x40483f=_0x5edfe3['mapper']['markerNameToElements'](_0x562dae['markerName']);if(_0x40483f){for(const _0x6ee822 of _0x40483f)_0x5edfe3['writer']['removeClass']('ck-suggestion-marker-'+_0x47dd30,_0x6ee822),_0x5edfe3['writer']['removeClass']('ck-suggestion-marker--active',_0x6ee822),_0x5edfe3['writer']['removeAttribute']('data-suggestion',_0x6ee822),_0x5edfe3['mapper']['unbindElementFromMarkerName'](_0x6ee822,_0x562dae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13dc0a=this['editor'],_0x1a6996=_0x13dc0a['locale'];function _0x28cb86(_0x1a7bc2){return{'type':'format','content':c(_0x1a6996,'*Format:*\x20%0',_0x1a7bc2)};}_0x13dc0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcd222a=>{if('formatBlock'!=_0xcd222a['type'])return;const {data:_0x3b2f69}=_0xcd222a;if(_0x3b2f69){if('setTableRowHeader'==_0x3b2f69['commandName']){const _0x26d493=_0x3b2f69['commandParams'][0x0]['forceValue'];return _0x28cb86(c(_0x1a6996,_0x26d493?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b2f69['commandName']){const _0x57756e=_0x3b2f69['commandParams'][0x0]['forceValue'];return _0x28cb86(c(_0x1a6996,_0x57756e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x31a850{['afterInit'](){const _0x4f2dfb=this['editor'],_0x1ce269=_0x4f2dfb['locale'],_0x1ac5a8=_0x4f2dfb['plugins']['get']('TrackChangesEditing');function _0x4af9b6(_0x54eca0){return{'type':'format','content':''+c(_0x1ce269,'*Set\x20table\x20type:*\x20%0',_0x54eca0)};}_0x4f2dfb['plugins']['has']('TableLayout')&&(_0x1ac5a8['enableCommand']('insertTableLayout'),_0x1ac5a8['enableDefaultAttributesIntegration']('tableType'),_0x1ac5a8['registerBlockAttribute']('tableType'),_0x1ac5a8['descriptionFactory']['registerElementLabel'](_0x5981dc=>_0x5981dc['is']('element','table')&&'layout'===_0x5981dc['getAttribute']('tableType'),_0x325a13=>c(_0x1ce269,'ELEMENT_LAYOUT_TABLE',_0x325a13)),_0x1ac5a8['descriptionFactory']['registerDescriptionCallback'](_0x61216f=>{const {data:_0x4ec39d}=_0x61216f;if(_0x4ec39d&&'tableType'==_0x4ec39d['key'])switch(_0x4ec39d['newValue']){case'layout':return _0x4af9b6(c(_0x1ce269,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4af9b6(c(_0x1ce269,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x1d9996=>[_0x1d9996,null]));class $t extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x221a2b=this['editor'];if(!_0x221a2b['plugins']['has']('TableClipboard'))return;const _0x1308f4=_0x221a2b['plugins']['get']('TrackChangesEditing'),_0x2b74cb=_0x221a2b['plugins']['get']('TableUtils'),_0x1972aa=_0x221a2b['plugins']['get'](Ct),_0x37bbde=_0x221a2b['plugins']['get']('TableClipboard'),_0x1eb98b=_0x221a2b['plugins']['get']('TableSelection'),_0x3fdb02=_0x221a2b['plugins']['get'](_0x1e072e);_0x1972aa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x221a2b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x221a2b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4cd36e=null,_0xfebe53=!0x1;_0x3fdb02['on']('contentInsertion',(_0x5bc025,_0x147916)=>{_0xfebe53='paste'===_0x147916['method'];}),_0x221a2b['model']['on']('insertContent',(_0x57433e,_0x27e89a)=>{if(!_0xfebe53&&null===_0x1eb98b['getSelectedTableCells']())return;const [_0x42b471,_0x44512f]=_0x27e89a,_0x3b2894=_0x27e89a[_0x27e89a['length']-0x1];_0x3b2894&&_0x3b2894['forceDefaultExecution']||_0x1308f4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x538102,_0x2744f5,_0x576e2c,_0x54ecd9,_0x3e76f4){if(_0x2744f5&&!_0x2744f5['is']('documentSelection'))return!0x1;const _0x5677fd=_0x3e76f4['getTableIfOnlyTableInContent'](_0x538102,_0x576e2c);if(!_0x5677fd||!He(_0x5677fd,void 0x0,_0x54ecd9))return!0x1;const _0x27cc61=_0x54ecd9['getSelectionAffectedTableCells'](_0x576e2c['document']['selection']);if(!_0x27cc61['length'])return!0x1;const _0x1ee90a=_0x27cc61[0x0]['findAncestor']('table'),_0x1193d4=_0x54ecd9['getRowIndexes'](_0x27cc61),_0x2ef9fb=_0x54ecd9['getColumnIndexes'](_0x27cc61),_0x3d2aaa={'startRow':_0x1193d4['first'],'endRow':_0x1193d4['last'],'startColumn':_0x2ef9fb['first'],'endColumn':_0x2ef9fb['last']};return 0x1==_0x27cc61['length']&&(_0x3d2aaa['endRow']+=_0x54ecd9['getRows'](_0x5677fd)-0x1,_0x3d2aaa['endColumn']+=_0x54ecd9['getColumns'](_0x5677fd)-0x1),He(_0x1ee90a,_0x3d2aaa,_0x54ecd9);}(_0x42b471,_0x44512f,_0x221a2b['model'],_0x2b74cb,_0x37bbde)&&(_0x57433e['stop'](),_0x4cd36e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x221a2b['model']['change'](()=>{_0x221a2b['model']['insertContent'](_0x27e89a[0x0],_0x27e89a[0x1],_0x27e89a[0x2],{'forceDefaultExecution':!0x0});const _0x2af340=_0x34bf97(),{rowInsertionRanges:_0x2fa6f1,columnInsertionRanges:_0x360dbb,insertionRanges:_0x20fe5,deletionRanges:_0x2c5ee3,cells:_0x17cd5d}=_0x4cd36e;_0x2fa6f1['length']&&_0x1308f4['markMultiRangeInsertion'](_0x2fa6f1,'tablePasteRow',{'tablePasteChainId':_0x2af340}),_0x360dbb['length']&&_0x1308f4['markMultiRangeInsertion'](_0x360dbb,'tablePasteColumn',{'tablePasteChainId':_0x2af340}),_0x20fe5['length']&&(_0x1308f4['markMultiRangeInsertion'](_0x20fe5,'tablePaste',{'tablePasteChainId':_0x2af340,'skipNestingCheck':!0x0}),_0x20fe5['forEach'](_0x362d57=>_0x362d57['detach']?.())),_0x2c5ee3['length']&&(_0x1308f4['markMultiRangeDeletion'](_0x2c5ee3,'tablePaste',{'tablePasteChainId':_0x2af340,'skipNestingCheck':!0x0}),_0x2c5ee3['forEach'](_0x194117=>_0x194117['detach']?.()));const _0x581b6f=_0x1308f4['markMultiRangeBlockFormat'](_0x17cd5d['map'](({element:_0x1e38f6})=>_0x1e38f6),{'formatGroupId':_0x34bf97()},[],'tablePasteCell',{'tablePasteChainId':_0x2af340});if(_0x581b6f){const _0x46c8ec=_0x581b6f['getMarkers'](),_0x2bbc88=[];for(const {element:_0x2ab0cc,attributes:_0x2267c0}of _0x17cd5d){if(!_0x2267c0)continue;const _0x5123ac=_0x221a2b['model']['createRangeOn'](_0x2ab0cc),_0x4692e1=_0x46c8ec['find'](_0x221313=>_0x221313['getRange']()['isEqual'](_0x5123ac));_0x4692e1&&_0x2bbc88['push']([_0x4692e1['name'],_0x2267c0]);}_0x2bbc88['length']&&_0x581b6f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2bbc88));}_0x4cd36e=null;}));},{'priority':_0x26424c['high']+0xa}),_0x3fdb02['on']('contentInsertion',()=>{_0xfebe53=!0x1;},{'priority':'lowest'}),_0x221a2b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3222a8,_0x361d3c)=>{const [_0x1368fc,_0x27d241,,_0xa693e]=_0x361d3c;if(!_0x4cd36e)return;_0x3222a8['stop']();const _0x1d985c=_0x1368fc['cell'],_0x289498=_0x27d241,_0x484d5d=De(_0x1d985c),_0xe4277f=De(_0x289498);_0x3222a8['return']=_0x1d985c;let _0x4a7bfa=null,_0x272a85=null;if(_0xe4277f||_0x484d5d){if(_0x484d5d&&!_0xe4277f){_0xa693e['remove'](_0x1d985c['getChild'](0x0));for(const _0x564c8f of Array['from'](_0x289498['getChildren']()))_0xa693e['insert'](_0x564c8f,_0x1d985c,'end');const _0x540d1a=_0x4cd36e['rowInsertionIndexes']['includes'](_0x1368fc['row']),_0x2e7d5c=_0x4cd36e['columnInsertionIndexes']['includes'](_0x1368fc['column']);_0x540d1a||_0x2e7d5c||(_0x4a7bfa=_0x275766['fromRange'](_0xa693e['createRangeIn'](_0x1d985c)));}else _0xe4277f&&!_0x484d5d&&(_0x272a85=_0xa693e['createRangeIn'](_0x1d985c));}else{const _0x1c9d01=_0xa693e['createElement']('tableCellSuggestion'),_0x4195f0=_0xa693e['createElement']('tableCellSuggestion');_0xa693e['wrap'](_0xa693e['createRangeIn'](_0x1d985c),_0x4195f0),_0xa693e['insert'](_0x1c9d01,_0x1d985c,0x0);for(const _0xbe6c3b of Array['from'](_0x289498['getChildren']()))_0xa693e['insert'](_0xbe6c3b,_0x1c9d01,'end');_0x4a7bfa=_0x275766['fromRange'](_0xa693e['createRangeOn'](_0x1c9d01)),_0x272a85=_0x275766['fromRange'](_0xa693e['createRangeOn'](_0x4195f0));}const _0x4ab9c5=Array['from'](_0x289498['getAttributes']())['filter'](([_0x36bbaf])=>Oe['includes'](_0x36bbaf));_0x4cd36e['cells']['push']({'element':_0x1d985c,'attributes':_0x4ab9c5['length']?Object['fromEntries'](_0x4ab9c5):null}),_0x4a7bfa&&_0x4cd36e['insertionRanges']['push'](_0x4a7bfa),_0x272a85&&_0x4cd36e['deletionRanges']['push'](_0x272a85);},{'priority':'high'}),_0x2b74cb['on']('insertColumns',(_0x423465,_0x925400)=>{const [_0x50e8ba,_0x22dbf1={}]=_0x925400;if(!_0x4cd36e)return;const _0xf40107=_0x22dbf1['at']||0x0,_0x1ec748=_0x22dbf1['columns']||0x1;_0x4cd36e['columnInsertionIndexes']=new Array(_0x1ec748)['fill'](_0xf40107)['map']((_0x29f07a,_0x4afd2)=>_0x29f07a+_0x4afd2);for(const {cell:_0x3d61cb}of _0x2b74cb['createTableWalker'](_0x50e8ba,{'startColumn':_0xf40107,'endColumn':_0xf40107+_0x1ec748-0x1}))_0x4cd36e['columnInsertionRanges']['push'](_0x221a2b['model']['createRangeOn'](_0x3d61cb));},{'priority':'low'}),_0x2b74cb['on']('insertRows',(_0x5827dd,_0x26adc4)=>{const [_0x136dde,_0x2cda85={}]=_0x26adc4;if(!_0x4cd36e)return;const _0x18f0f7=_0x2cda85['at']||0x0,_0x48e1f2=_0x2cda85['rows']||0x1;_0x4cd36e['rowInsertionIndexes']=new Array(_0x48e1f2)['fill'](_0x18f0f7)['map']((_0x439bbd,_0x2659a6)=>_0x439bbd+_0x2659a6);for(const {cell:_0x3a8071}of _0x2b74cb['createTableWalker'](_0x136dde,{'startRow':_0x18f0f7,'endRow':_0x18f0f7+_0x48e1f2-0x1}))_0x4cd36e['rowInsertionRanges']['push'](_0x221a2b['model']['createRangeOn'](_0x3a8071));},{'priority':'low'}),_0x1308f4['descriptionFactory']['registerDescriptionCallback'](_0x1dcfcf=>{if(_0x1dcfcf['subType']&&_0x1dcfcf['subType']['startsWith']('tablePaste'))return _0x1dcfcf['previous']?{}:{'type':'insertion','content':c(_0x221a2b['locale'],'*Replace\x20table\x20cells*')};});const _0x4dac94=()=>!0x1;for(const _0x2c27f4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c27f4,'join',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c27f4,'join',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c27f4,'join',_0x4dac94);_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1e4e46,_0x50c4d8,_0x383821)=>{const _0x2a572f=_0x1e4e46['map'](_0x589c52=>_0x589c52['getContainedElement']())['filter'](_0x32c794=>_0x32c794),_0x4a1d7b=new Map(_0x2a572f['map'](_0x378b70=>[_0x378b70,null]));if(_0x4cd36e){for(const {element:_0x3a4aad,attributes:_0x288156}of _0x4cd36e['cells'])_0x288156&&_0x4a1d7b['set'](_0x3a4aad,_0x288156);}else{if(_0x383821&&_0x383821['markerAttributes'])for(const [_0x119f66,_0x4b43c6]of Object['entries'](_0x383821['markerAttributes'])){const _0xbe8aba=_0x221a2b['model']['markers']['get'](_0x119f66),_0x1b59b8=_0xbe8aba?_0xbe8aba['getRange']()['getContainedElement']():null;_0x1b59b8&&_0x4a1d7b['set'](_0x1b59b8,_0x4b43c6);}}_0x221a2b['model']['change'](_0x3a84c2=>{for(const [_0x5e0537,_0x58365f]of _0x4a1d7b)_0x3a84c2['setAttributes']({...Ue,..._0x58365f},_0x5e0537);});});const _0x566819=(_0x31f676,_0xba3473)=>{_0x1308f4['_suggestionFactory']['registerCustomCallback'](_0x31f676,'tablePaste',_0xba3473,(_0x2e2914,_0x2d393d,_0x3f5bf8)=>{_0x221a2b['model']['change'](_0x483b80=>{const _0x3ac87d=[];for(const _0x493186 of _0x2e2914){const _0x14eca0=_0x493186['start']['nodeAfter'];_0x14eca0['is']('element','tableCellSuggestion')&&_0x3ac87d['push'](_0x14eca0);}_0x1308f4['_suggestionFactory']['getSuggestionCallback'](_0x31f676,null,_0xba3473)(_0x2e2914,_0x2d393d,_0x3f5bf8);for(const _0x5ac889 of _0x3ac87d)'$graveyard'!=_0x5ac889['root']['rootName']&&_0x483b80['unwrap'](_0x5ac889);});});};_0x566819('insertion','accept'),_0x566819('insertion','discard'),_0x566819('deletion','accept'),_0x566819('deletion','discard'),_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x373c1b=>{const _0x36e87a=_0x373c1b['map'](_0x2f19dd=>_0x2f19dd['getContainedElement']()),_0x33be81=_0x36e87a[0x0]['findAncestor']('table'),{minRow:_0xf5d614,maxRow:_0x25627f}=_0x1972aa['_getCoordsForCells'](_0x36e87a);_0x2b74cb['removeRows'](_0x33be81,{'at':_0xf5d614,'rows':_0x25627f-_0xf5d614+0x1});}),_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43bc7f=>{const _0x17085a=_0x43bc7f['map'](_0x348601=>_0x348601['getContainedElement']()),_0x33089e=_0x17085a[0x0]['findAncestor']('table'),{minColumn:_0x3be67c,maxColumn:_0x3879d7}=_0x1972aa['_getCoordsForCells'](_0x17085a);_0x2b74cb['removeColumns'](_0x33089e,{'at':_0x3be67c,'columns':_0x3879d7-_0x3be67c+0x1});});const _0x36f8f3=(_0x2df13c,_0x4aa7e9)=>{if(!_0x4aa7e9['subType']||!_0x4aa7e9['subType']['startsWith']('tablePaste'))return;const _0x2bcb26=_0x4aa7e9['attributes']['tablePasteChainId'],_0x2bc21b=_0x1308f4['getSuggestions']()['filter'](_0x1f2c74=>_0x1f2c74['isInContent']&&_0x1f2c74['attributes']&&_0x1f2c74['attributes']['tablePasteChainId']==_0x2bcb26);_0x2bc21b['length']&&_0x4aa7e9['getAllAdjacentSuggestions']()['length']!=_0x2bc21b['length']&&_0x2bc21b['reduce']((_0x10fca0,_0x2935d4)=>(_0x10fca0['next']=_0x2935d4,_0x2935d4['previous']=_0x10fca0,_0x2935d4));};function _0x467e08(_0x24e954,_0x478427=!0x0){const {id:_0x38f0f1,authorId:_0x35cda0}=_0x1308f4['_splitMarkerName'](_0x24e954['markerName']),_0x164760=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x23d4e4=_0x1308f4['activeMarkers']['includes'](_0x24e954['markerName']);return _0x23d4e4&&_0x164760['push']('ck-suggestion-marker--active'),{'classes':_0x164760,'attributes':{'data-suggestion':_0x38f0f1,'data-author-id':_0x35cda0},'priority':_0x23d4e4&&_0x478427?0xbc2:0xbb8};}_0x1308f4['on']('suggestionLoaded',_0x36f8f3,{'priority':'high'}),_0x1308f4['on']('suggestionUnloaded',_0x36f8f3,{'priority':'high'}),_0x221a2b['model']['document']['registerPostFixer'](()=>{let _0x3e188f=!0x1;const _0x578dd3=Array['from'](_0x221a2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d4dbf,data:_0x4ec240}of _0x578dd3){const {group:_0x3e526a,type:_0x1b2460,id:_0x4174af}=_0x1308f4['_splitMarkerName'](_0x4d4dbf);if('suggestion'!=_0x3e526a||'deletion'!=_0x1b2460||_0x4ec240['oldRange'])continue;if(!_0x1308f4['hasSuggestion'](_0x4174af))continue;const _0x15a579=_0x1308f4['getSuggestion'](_0x4174af)['getRanges'](),_0x37f0eb=_0x221a2b['plugins']['get']('Users')['me'];for(const _0x12b0af of _0x1308f4['getSuggestions']()){if(!_0x12b0af['isInContent']||_0x12b0af['author']!=_0x37f0eb)continue;if('formatBlock'!=_0x12b0af['type']||'tablePasteCell'!=_0x12b0af['subType'])continue;if(_0x12b0af['getRanges']()['every'](_0x4ef7f2=>_0x15a579['some'](_0x11344d=>_0x11344d['containsRange'](_0x4ef7f2,!0x0)))){for(const _0x542fd2 of _0x12b0af['getAllAdjacentSuggestions']())_0x542fd2['isInContent']&&(_0x542fd2['discard'](),_0x3e188f=!0x0);}}}return _0x3e188f;}),_0x221a2b['model']['document']['registerPostFixer'](_0x443123=>{const _0x4b0995=_0x221a2b['commands']['get']('redo');if(!_0x4b0995||!_0x4b0995['_createdBatches']['has'](_0x443123['batch']))return!0x1;let _0x2011e6=!0x1;const _0x20143a=_0x221a2b['plugins']['get']('Users')['me'],_0xb62075=_0x221a2b['model']['document']['differ']['getChanges'](),_0x195755=Array['from'](_0x221a2b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x579a98,data:_0x4dd952})=>{const {group:_0x48bc3e,subType:_0x1278a9,authorId:_0x373042}=_0x1308f4['_splitMarkerName'](_0x579a98);return'suggestion'==_0x48bc3e&&'tablePaste'==_0x1278a9&&_0x373042==_0x20143a['id']&&!_0x4dd952['oldRange'];});for(const _0x453634 of _0xb62075){if('insert'!=_0x453634['type']||'tableCellSuggestion'!=_0x453634['name']||0x1!=_0x453634['length'])continue;const _0x4153a0=_0x443123['createRange'](_0x453634['position'],_0x453634['position']['getShiftedBy'](0x1));if(!_0x195755['find'](({data:_0x1418a5})=>_0x1418a5['newRange']['isEqual'](_0x4153a0))){for(const {name:_0x1b301e,data:_0x580d55}of _0x195755)if(_0x4153a0['containsRange'](_0x580d55['newRange'])){_0x443123['updateMarker'](_0x1b301e,{'range':_0x4153a0}),_0x2011e6=!0x0;break;}}}return _0x2011e6;}),_0x221a2b['model']['document']['registerPostFixer'](_0xee0935=>{let _0x4908a7=!0x1;const _0x16caea=_0x221a2b['plugins']['get']('Users')['me'],_0x1a9e93=_0x1308f4['getSuggestions']()['filter'](_0x1b2f07=>_0x1b2f07['isInContent']&&_0x1b2f07['author']==_0x16caea),_0x34de74=new Set(),_0x2d6da6=new Set();for(const _0xadcc45 of _0x1a9e93)if('tablePaste'==_0xadcc45['subType'])for(const _0x1df028 of _0xadcc45['getMarkers']()){const _0x25c6d0=_0x1df028['getRange']()['getContainedElement']();if(_0x25c6d0){if(_0x25c6d0['is']('element','tableCellSuggestion')&&De(_0x25c6d0)){_0xadcc45['removeMarker'](_0x1df028['name']),_0x34de74['add'](_0x25c6d0),_0x4908a7=!0x0;const _0x265b99=_0x25c6d0['nextSibling'],_0x2e6115=_0x25c6d0['previousSibling'],_0x1e738d=_0x265b99&&_0x265b99['is']('element','tableCellSuggestion'),_0x3311a6=_0x2e6115&&_0x2e6115['is']('element','tableCellSuggestion');_0x1e738d&&!_0x34de74['has'](_0x265b99)&&_0x2d6da6['add'](_0x265b99),_0x3311a6&&!_0x34de74['has'](_0x2e6115)&&_0x2d6da6['add'](_0x2e6115);}else _0x25c6d0['is']('element','paragraph')&&_0x25c6d0['isEmpty']&&(_0xadcc45['removeMarker'](_0x1df028['name']),_0x4908a7=!0x0);}}else{if('tablePasteCell'==_0xadcc45['subType']){if(!_0xadcc45['attributes']||!_0xadcc45['attributes']['tablePasteChainId'])continue;const _0x3e2483=_0xadcc45['attributes']['markerAttributes'];if(_0x3e2483&&Object['keys'](_0x3e2483)['length'])continue;const _0x88e79b=_0xadcc45['attributes']['tablePasteChainId'];let _0x31eac2=!0x0,_0x5647e3=!0x0;for(const _0x4d59ef of _0x1a9e93)if(_0x4d59ef['subType']&&_0x4d59ef['subType']['startsWith']('tablePaste')){if(!_0x4d59ef['attributes']['tablePasteChainId']){_0x5647e3=!0x1;break;}if(_0x4d59ef['id']!=_0xadcc45['id']&&_0x4d59ef['attributes']['tablePasteChainId']==_0x88e79b){_0x31eac2=!0x1;break;}}_0x5647e3&&_0x31eac2&&(_0xadcc45['removeMarkers'](),_0x4908a7=!0x0);}}for(const _0x14baa7 of _0x34de74)_0xee0935['remove'](_0x14baa7);for(const _0x39c595 of _0x2d6da6)_0xee0935['unwrap'](_0x39c595);return _0x4908a7;}),_0x221a2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d3cef=>_0x467e08(_0x1d3cef),'converterPriority':'high'}),_0x221a2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e396d,_0x3fb94a)=>_0x3fb94a['options']['showSuggestionHighlights']?_0x467e08(_0x2e396d,!0x1):null,'converterPriority':'high'});const _0x5b682a=_0x221a2b['editing']['view'];this['listenTo'](_0x5b682a['document'],'clipboardOutput',(_0x266317,_0x34ea1c)=>{const _0x167b97=[];for(const _0x2af1d5 of _0x5b682a['createRangeIn'](_0x34ea1c['content'])['getItems']())_0x2af1d5['is']('element','suggestion-td')&&_0x167b97['push'](_0x2af1d5);_0x5b682a['change'](_0x15ccd2=>{for(const _0x42dbc1 of _0x167b97)_0x15ccd2['move'](_0x15ccd2['createRangeIn'](_0x42dbc1),_0x15ccd2['createPositionBefore'](_0x42dbc1)),_0x15ccd2['remove'](_0x42dbc1);});});}}function De(_0x13a63d){if(_0x13a63d['isEmpty'])return!0x0;const _0x1e2414=_0x13a63d['getChild'](0x0);return _0x1e2414['is']('element','paragraph')&&_0x1e2414['isEmpty'];}function He(_0x2d9f94,_0x176c55={},_0x50b5ff){for(const {isAnchor:_0x4a14d6,cellHeight:_0x590459,cellWidth:_0x277554}of _0x50b5ff['createTableWalker'](_0x2d9f94,{'includeAllSlots':!0x0,..._0x176c55}))if(!_0x4a14d6||0x1!=_0x590459||0x1!=_0x277554)return!0x1;return!0x0;}class Bt extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xc18636=this['editor']['plugins']['get']('TrackChangesEditing');_0xc18636['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xc18636['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xc18636['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18636['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xc18636['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xc18636['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x59726b,_0x55a025){const _0x4fa647=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee783=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16f0aa=_0x55a025['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd5e053=_0x5ee783['getColumnGroupElement'](_0x16f0aa);let _0x62ce95=_0xd5e053?_0x5ee783['getTableColumnsWidths'](_0xd5e053):null,_0x27ceef=_0x16f0aa['getAttribute']('tableWidth')||null;const _0x5cf2db=_0x55a025['tableWidth']||_0x27ceef,_0x255c5f=_0x55a025['columnWidths']||_0x62ce95,_0x256214=this['editor']['plugins']['get']('Users')['me'];for(const _0x47f0ce of _0x4fa647['getSuggestions']()){const _0x413bc4=_0x47f0ce['getContainedElement']();if('resizeTable'===_0x47f0ce['subType']&&_0x413bc4===_0x16f0aa){_0x47f0ce['author']!==_0x256214&&_0x47f0ce['discard']();const _0xa18312=_0x47f0ce['data']['commandParams'];_0x27ceef=_0xa18312[0x0]['tableWidth'],_0x62ce95=_0xa18312[0x0]['columnWidths'];break;}}_0x59726b({'table':_0x16f0aa,'tableWidth':_0x5cf2db,'columnWidths':_0x255c5f}),_0x4fa647['markBlockFormat'](_0x16f0aa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27ceef,'columnWidths':_0x62ce95}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x51b4c0){if('formatBlock'!=_0x51b4c0['type']&&'formatInline'!=_0x51b4c0['type'])return;const {data:_0x5c96e2}=_0x51b4c0;if(_0x5c96e2&&'resizeTable'===_0x5c96e2['formatGroupId']){const _0x2ecf8d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2ecf8d)};}}}class xt extends _0x31a850{['afterInit'](){const _0x16a97b=this['editor'];_0x16a97b['plugins']['has']('Template')&&_0x16a97b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x31a850{['afterInit'](){const _0x301e33=this['editor'];if(!_0x301e33['commands']['get']('insertTableOfContents'))return;_0x301e33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe4abdb=_0x301e33['plugins']['get']('TrackChangesEditing'),_0x33cee2=_0x301e33['locale'];_0xe4abdb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3038a0=>c(_0x33cee2,'ELEMENT_TABLE_OF_CONTENTS',_0x3038a0));}}class Rt extends _0x31a850{['afterInit'](){const _0x5a9504=this['editor'];if(!_0x5a9504['plugins']['has']('Title'))return;const _0x5d6099=_0x5a9504['plugins']['get']('TrackChangesEditing');_0x5d6099['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5a9504['locale'],'ELEMENT_TITLE')),_0x5a9504['model']['document']['registerPostFixer'](_0x351436=>{let _0xfab24b=!0x1;const _0x441cf2=Array['from'](_0x5a9504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x528056,data:_0x32cc37}of _0x441cf2){const {group:_0x3d9d2b}=_0x5d6099['_splitMarkerName'](_0x528056);if('suggestion'!==_0x3d9d2b||!_0x32cc37['newRange'])continue;const _0x30e1f1=_0x32cc37['newRange'],_0x1c46e5=_0x30e1f1['end']['nodeBefore'];if(!_0x1c46e5||!_0x1c46e5['is']('element','title-content'))continue;if(!_0x30e1f1['start']['isTouching'](_0x30e1f1['end']))continue;const _0x5a0fbc=_0x5a9504['model']['schema']['getNearestSelectionRange'](_0x30e1f1['end'],'forward');if(_0x5a0fbc&&_0x5a0fbc['isCollapsed']){const _0x15286e=_0x351436['createRange'](_0x30e1f1['start'],_0x5a0fbc['start']);_0x15286e['isEqual'](_0x30e1f1)||(_0x351436['updateMarker'](_0x528056,{'range':_0x15286e}),_0xfab24b=!0x0);}_0xfab24b||(_0x351436['removeMarker'](_0x528056),_0xfab24b=!0x0);}return _0xfab24b;});}}class Tt extends _0x31a850{['afterInit'](){const _0x661ba6=this['editor'],_0x374fab=_0x661ba6['plugins']['get']('TrackChangesEditing');_0x661ba6['plugins']['has']('Uploadcare')&&(_0x374fab['enableCommand']('uploadcare'),_0x661ba6['plugins']['has']('UploadcareImageEdit')&&(_0x374fab['enableCommand']('uploadcareImageEdit'),_0x374fab['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x374fab['registerBlockAttribute']('uploadcareImageId'),_0x374fab['descriptionFactory']['registerDescriptionCallback'](_0x2c5c2c=>{if('attribute'!=_0x2c5c2c['type'])return;const {data:_0x5f0c04}=_0x2c5c2c;return _0x5f0c04&&'uploadcareImageId'==_0x5f0c04['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x31a850{['afterInit'](){const _0x32fc31=this['editor'],_0x1eb698=_0x32fc31['plugins']['get']('TrackChangesEditing');_0x32fc31['plugins']['has']('UndoEditing')&&(_0x1eb698['enableCommand']('undo'),_0x1eb698['enableCommand']('redo'));}}class Ut extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x7134ce=this['editor'];if(!_0x7134ce['plugins']['has']('TableCaptionEditing'))return;_0x7134ce['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x31a850{['tableProperties'];['tableCellProperties'];constructor(_0x4ba597){super(_0x4ba597),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 _0x2224ef=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x156053 of this['tableProperties'])_0x2224ef['enableCommand'](_0x156053,(_0x2c537f,_0xc689)=>{const _0x275528=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x156053,[_0x275528],this['tableProperties'],'tableProperties',_0x2c537f,_0xc689);});_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2224ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40ab0,_0x51d585)=>this['handleDiscardAction'](this['tableProperties'],_0x40ab0,_0x51d585)),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4d5ec0 of this['tableCellProperties'])_0x2224ef['enableCommand'](_0x4d5ec0,(_0x4a353c,_0x56892b)=>{const _0x553b29=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4d5ec0,_0x553b29,this['tableCellProperties'],'tableCellProperties',_0x4a353c,_0x56892b);});_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2224ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x32d2d5,_0x1d6c03)=>this['handleDiscardAction'](this['tableCellProperties'],_0x32d2d5,_0x1d6c03)),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2224ef['descriptionFactory']['registerDescriptionCallback'](_0x57bbe4=>this['handleSuggestionDescription'](_0x57bbe4));}['_handlePropertyChange'](_0xfc3e00,_0x19be8a,_0x49008e,_0xdf9365,_0x22f39c,_0x134388){const _0x3c16fe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x134388['batch'],()=>{for(const _0x43860c of _0x19be8a){if(this['_getSuggestion'](_0x43860c,_0xdf9365))_0x22f39c(_0x134388);else{const _0x364aa5={};for(const _0x38035e of _0x49008e){const _0x142e75=_0x43860c['getAttribute'](_0x38035e);void 0x0!==_0x142e75&&(_0x364aa5[_0x38035e]=_0x142e75);}_0x22f39c(_0x134388),_0x3c16fe['markBlockFormat'](_0x43860c,{'commandParams':[_0x364aa5]},[],_0xdf9365);}}});}['handleDiscardAction'](_0x1d92f7,_0x4965b8,_0x454ba9){const _0xe8ee4a=_0x4965b8[0x0]['start']['nodeAfter'],_0x372e5a=_0x454ba9['commandParams'][0x0];this['editor']['model']['change'](_0x3ce576=>{for(const _0x55fece of _0x1d92f7)void 0x0!==_0x372e5a[_0x55fece]?_0x3ce576['setAttribute'](_0x55fece,_0x372e5a[_0x55fece],_0xe8ee4a):_0x3ce576['removeAttribute'](_0x55fece,_0xe8ee4a);});}['handleSuggestionDescription'](_0x2911ff){if(_0x2911ff['data'])switch(_0x2911ff['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'](_0x5dad18,_0x2a7af9){const _0x1f7b27=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bb0cc of _0x1f7b27['getSuggestions']({'skipNotAttached':!0x0})){const _0x31fdd4=_0x4bb0cc['getContainedElement']();if(_0x4bb0cc['subType']===_0x2a7af9&&_0x31fdd4===_0x5dad18)return _0x4bb0cc;}return null;}}const u='$elementName';class p extends _0x31a850{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x45c096,_0x253bb6,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(_0x3334d1){super(_0x3334d1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18fdec,_0x895762,_0x1d30be,_0x25ce75)=>{this['_model']['change'](()=>{for(const _0x139304 of[..._0x25ce75,..._0x1d30be])this['_model']['markers']['has'](_0x139304)&&_0x3334d1['editing']['reconvertMarker'](_0x139304);});}),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']=_0x3334d1['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(),_0x3334d1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3334d1['config']['get']('trackChanges.trackFormatChanges'),_0x3334d1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3334d1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3334d1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x558185=this['editor'],_0x41f128=(_0x9cd97a,_0x51f873)=>{if('attribute'!=_0x9cd97a)return'ck-suggestion-marker-'+_0x9cd97a;const _0x55dc8c=_0x51f873['split']('|')[0x0];return this['_isBlockAttribute'](_0x55dc8c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x558185['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4bcf89=>{const {id:_0x88af73,authorId:_0xb75146,type:_0x2290ea,subType:_0x531b6a}=this['_splitMarkerName'](_0x4bcf89['markerName']),_0x5c595f=['ck-suggestion-marker',_0x41f128(_0x2290ea,_0x531b6a)];let _0x1f318a=0xbb8;return this['activeMarkers']['includes'](_0x4bcf89['markerName'])&&(_0x5c595f['push']('ck-suggestion-marker--active'),_0x1f318a=0xbc2),'deletion'==_0x2290ea&&(_0x1f318a+=0x5),{'classes':_0x5c595f,'attributes':{'data-suggestion':_0x88af73,'data-author-id':_0xb75146},'priority':_0x1f318a};}}),_0x558185['conversion']['for']('dataDowncast')['add'](_0x490a76=>{_0x490a76['on']('addMarker:suggestion',(_0x408d9c,_0x17f61f,_0x41141d)=>{if(!_0x41141d['options']['showSuggestionHighlights'])return;const _0x3585d1=_0x17f61f['item'];if(!_0x3585d1)return;const _0x58c4c3=_0x41141d['mapper']['toViewElement'](_0x3585d1);_0x558185['model']['schema']['isObject'](_0x3585d1)&&_0x58c4c3&&!_0x58c4c3['getCustomProperty']('widget')&&_0x58c4c3['is']('containerElement')&&_0x1785d4(_0x58c4c3,_0x41141d['writer']);},{'priority':'high'});}),_0x558185['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x348e25,_0x1dcf4c)=>{if(!_0x1dcf4c['options']['showSuggestionHighlights'])return null;const {id:_0x57a159,authorId:_0x59d3de,type:_0x57c1b5,subType:_0x23319b}=this['_splitMarkerName'](_0x348e25['markerName']);return{'classes':['ck-suggestion-marker',_0x41f128(_0x57c1b5,_0x23319b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x57a159,'data-author-id':_0x59d3de}};}});const _0x1509d8=({showActiveMarkers:_0x3e5704=!0x0,isAttributeSuggestion:_0x5b76f6=!0x1}={})=>(_0x1a2901,_0x59d38c,_0x48d746)=>{if(!_0x59d38c['item'])return;const {id:_0x4191a3,authorId:_0x1a5778}=this['_splitMarkerName'](_0x59d38c['markerName']);if(_0x5b76f6){const _0x2b4b1f=this['_suggestions']['get'](_0x4191a3),_0x36062d=this['_getAttributeKey'](_0x2b4b1f);if(!this['_isBlockAttribute'](_0x36062d))return;}if(_0x59d38c['item']['is']('selection'))return void _0x48d746['consumable']['consume'](_0x59d38c['item'],_0x1a2901['name']);const _0x5293e2=_0x48d746['mapper']['toViewElement'](_0x59d38c['item']);if(_0x59d38c['item']['is']('element')&&_0x558185['model']['schema']['isBlock'](_0x59d38c['item'])&&!_0x5293e2['getCustomProperty']('addHighlight')){_0x48d746['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5293e2),_0x48d746['writer']['setAttribute']('data-suggestion',_0x4191a3,_0x5293e2),_0x48d746['writer']['setAttribute']('data-author-id',_0x1a5778,_0x5293e2),_0x48d746['mapper']['bindElementToMarker'](_0x5293e2,_0x59d38c['markerName']),_0x3e5704&&(this['activeMarkers']['includes'](_0x59d38c['markerName'])?_0x48d746['writer']['addClass']('ck-suggestion-marker--active',_0x5293e2):_0x48d746['writer']['removeClass']('ck-suggestion-marker--active',_0x5293e2));for(const _0x188f5e of _0x558185['model']['createRangeIn'](_0x59d38c['item'])['getItems']())_0x48d746['consumable']['consume'](_0x188f5e,_0x1a2901['name']);_0x48d746['consumable']['consume'](_0x59d38c['item'],_0x1a2901['name']);}};_0x558185['conversion']['for']('dataDowncast')['add'](_0x5db21b=>{_0x5db21b['on']('addMarker:suggestion:formatBlock',(_0x5ac321,_0xa28c5,_0x3af137)=>{_0x3af137['options']['showSuggestionHighlights']&&_0x1509d8({'showActiveMarkers':!0x1})(_0x5ac321,_0xa28c5,_0x3af137);},{'priority':'highest'});}),_0x558185['conversion']['for']('dataDowncast')['add'](_0x3a1077=>{_0x3a1077['on']('addMarker:suggestion:attribute',(_0x2e9d4f,_0xfb1c8a,_0x473812)=>{_0x473812['options']['showSuggestionHighlights']&&_0x1509d8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2e9d4f,_0xfb1c8a,_0x473812);},{'priority':'highest'});}),_0x558185['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x46c0dd,_0x230f3f)=>{if(_0x230f3f['options']['showSuggestionHighlights']){const {id:_0x27f9e3,authorId:_0x1c4f96}=this['_splitMarkerName'](_0x46c0dd);return _0x46c0dd['includes'](':split')||_0x46c0dd['includes'](':merge')?{'group':'suggestion','name':_0x46c0dd['substr'](0xb),'attributes':{'data-suggestion':_0x27f9e3,'data-author-id':_0x1c4f96}}:null;}return{'group':'suggestion','name':_0x46c0dd['substr'](0xb)};}}),_0x558185['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23b2f8,{writer:_0x49e1dc})=>{let _0x3a1a89='suggestion:'+_0x23b2f8['getAttribute']('suggestion-type')+':'+_0x23b2f8['getAttribute']('id');return _0x23b2f8['getAttribute']('marker-count')&&(_0x3a1a89+=':'+_0x23b2f8['getAttribute']('marker-count')),_0x49e1dc['createElement']('$marker',{'data-name':_0x3a1a89});}}),_0x558185['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x558185['conversion']['for']('editingDowncast')['add'](_0xc8d05d=>{_0xc8d05d['on']('addMarker:suggestion:formatBlock',_0x1509d8(),{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x43130c=>{_0x43130c['on']('addMarker:suggestion:attribute',_0x1509d8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x12ef2b=>{_0x12ef2b['on']('removeMarker:suggestion:formatBlock',(_0x276dd5,_0x2ca754,_0x476943)=>{const _0x2da8f3=_0x476943['mapper']['markerNameToElements'](_0x2ca754['markerName']);if(_0x2da8f3){for(const _0x422b38 of _0x2da8f3)_0x422b38['getCustomProperty']('addHighlight')||(_0x476943['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x422b38),_0x476943['writer']['removeAttribute']('data-suggestion',_0x422b38),_0x476943['writer']['removeAttribute']('data-author-id',_0x422b38),_0x476943['mapper']['unbindElementFromMarkerName'](_0x422b38,_0x2ca754['markerName']));}},{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x14f316=>{_0x14f316['on']('removeMarker:suggestion:attribute',(_0x3355fa,_0x15890a,_0x57a1b1)=>{const _0x2ebc4f=_0x57a1b1['mapper']['markerNameToElements'](_0x15890a['markerName']);if(!_0x2ebc4f)return;const {id:_0x37b2c9}=this['_splitMarkerName'](_0x15890a['markerName']),_0x4d28ca=this['_suggestions']['get'](_0x37b2c9),_0x2ffaa5=this['_getAttributeKey'](_0x4d28ca);if(this['_isBlockAttribute'](_0x2ffaa5)){for(const _0xeb61a7 of _0x2ebc4f)_0xeb61a7['getCustomProperty']('addHighlight')||(_0x57a1b1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xeb61a7),_0x57a1b1['writer']['removeAttribute']('data-suggestion',_0xeb61a7),_0x57a1b1['writer']['removeAttribute']('data-author-id',_0xeb61a7),_0x57a1b1['mapper']['unbindElementFromMarkerName'](_0xeb61a7,_0x15890a['markerName']));}},{'priority':'high'});}),_0x558185['model']['document']['registerPostFixer'](_0x205099=>{let _0x2d6ecf=!0x1;const _0x489151=Array['from'](_0x558185['model']['document']['differ']['getChangedMarkers']()),_0x935b68=new Set();for(const {name:_0x970af4,data:_0x2d0f11}of _0x489151){const {group:_0x1ecf46,type:_0x42095c,subType:_0x1c0e38,id:_0x50957a}=this['_splitMarkerName'](_0x970af4);if('suggestion'!==_0x1ecf46)continue;const _0x460225=this['_suggestions']['get'](_0x50957a);if(null!=_0x2d0f11['newRange']){'formatInline'==_0x42095c&&(_0x2d6ecf=_0x2d6ecf||Jt(_0x2d0f11['newRange'],_0x970af4,_0x205099,_0x558185['model']['schema']));const _0x1c5c85='attribute'==_0x42095c&&this['_isBlockAttribute'](_0x1c0e38['split']('|')[0x0]);if(_0x2d0f11['newRange']['isCollapsed']||'$graveyard'==_0x2d0f11['newRange']['root']['rootName']||'formatBlock'==_0x42095c&&!Ht(_0x2d0f11['newRange'])||_0x1c5c85&&!Ht(_0x2d0f11['newRange'])||'deletion'==_0x42095c&&!(!Lt(_0x73a27a=_0x2d0f11['newRange'])&&!function(_0x4d96b6){return _0x4d96b6['start']['parent']==_0x4d96b6['end']['nodeBefore']&&_0x4d96b6['start']['isAtEnd'];}(_0x73a27a)))_0x205099['removeMarker'](_0x970af4),_0x2d6ecf=!0x0;else{if(!_0x460225||!_0x460225['isInContent'])continue;if(_0x2d0f11['newRange']&&_0x2d0f11['oldRange']&&_0x2d0f11['newRange']['isEqual'](_0x2d0f11['oldRange']))continue;_0x935b68['add'](_0x460225);}}}var _0x73a27a;return _0x935b68['size']>0x0&&(_0x2d6ecf=!!this['_joinWithAdjacentSuggestions'](_0x935b68)||_0x2d6ecf),_0x2d6ecf;}),_0x558185['model']['document']['registerPostFixer'](_0x3f1066=>{let _0x243805=!0x1;for(const _0x2c7f68 of _0x558185['model']['document']['differ']['getChanges']())if('insert'==_0x2c7f68['type'])for(const _0x11097e of this['_suggestions']['values']()){if(_0x11097e['isMultiRange']||!_0x11097e['isInContent'])continue;const _0x13d2de='formatBlock'==_0x11097e['type'],_0xa6e36c=this['_getAttributeKey'](_0x11097e),_0x39e24f=_0xa6e36c&&this['_isBlockAttribute'](_0xa6e36c);if(!_0x13d2de&&!_0x39e24f)continue;const _0x4ca889=_0x11097e['getFirstRange']();if(_0x4ca889['start']['parent']!=_0x4ca889['end']['parent']&&!_0x4ca889['end']['isAtEnd']){const _0x75dd78=_0x558185['model']['createPositionAt'](_0x4ca889['start']['nodeAfter'],'end'),_0x23870a=_0x558185['model']['createRange'](_0x4ca889['start'],_0x75dd78);_0x3f1066['updateMarker'](_0x11097e['getFirstMarker'](),{'range':_0x23870a}),_0x243805=!0x0;}}return _0x243805;}),_0x558185['model']['document']['registerPostFixer'](_0x3b5f33=>this['_processAttributeChanges'](_0x3b5f33)),_0x558185['model']['document']['registerPostFixer'](_0x2e6604=>!_0x2e6604['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2e6604)),_0x558185['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x558185['model']['document']['on']('change:data',(_0x21dbe2,_0xfe414)=>{if(!_0xfe414['isLocal']||_0xfe414['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5019cb=_0x558185['model']['document']['differ']['getChanges']();if(0x0==_0x5019cb['length'])return;const _0x440ef2=[],_0x18d454=_0x5019cb['filter'](_0x4e0bb6=>'attribute'==_0x4e0bb6['type']),_0x449f9d=_0x5019cb['filter'](_0x4dac7a=>'insert'==_0x4dac7a['type']&&'$text'!=_0x4dac7a['name']);for(const _0x3374f9 of _0x18d454)this['_isRegisteredAttribute'](_0x3374f9['attributeKey'])&&_0x440ef2['push']({'key':_0x3374f9['attributeKey'],'newValue':_0x3374f9['attributeNewValue'],'oldValue':_0x3374f9['attributeOldValue'],'range':qt(_0x3374f9['range'],_0x558185['model'])});for(const _0x3cadb7 of _0x449f9d){if('rename'!=_0x3cadb7['action']&&'refresh'!=_0x3cadb7['action'])continue;const _0x38d9eb=zt(_0x3cadb7['position']['nodeAfter'],_0x558185['model']),_0x51077b=_0x3cadb7['before'];'rename'==_0x3cadb7['action']&&_0x440ef2['push']({'key':u,'newValue':_0x3cadb7['name'],'oldValue':_0x51077b['name'],'range':_0x38d9eb});for(const [_0x92b80d,_0x198760]of _0x51077b['attributes']){if(!this['_isRegisteredAttribute'](_0x92b80d))continue;const _0x16e849=_0x3cadb7['attributes']['get'](_0x92b80d);_0x198760!==_0x16e849&&_0x440ef2['push']({'key':_0x92b80d,'newValue':_0x16e849,'oldValue':_0x198760,'range':_0x38d9eb});}for(const [_0x23a75c,_0x2cfa2e]of _0x3cadb7['attributes'])this['_isRegisteredAttribute'](_0x23a75c)&&(_0x51077b['attributes']['has'](_0x23a75c)||_0x440ef2['push']({'key':_0x23a75c,'newValue':_0x2cfa2e,'oldValue':null,'range':_0x38d9eb}));}0x0!=_0x440ef2['length']&&_0x558185['model']['enqueueChange'](_0xfe414,_0x1b1d67=>{const _0x47a3fa=_0x34bf97();for(const {range:_0x4df57f,key:_0x1c15a8,oldValue:_0x32c8d7,newValue:_0x1506b5}of _0x440ef2)this['markAttributeChange'](_0x4df57f,_0x1c15a8,_0x32c8d7,_0x1506b5,{'groupId':_0x47a3fa});this['_reduceExistingSuggestions'](_0x1b1d67,_0x440ef2);});},{'priority':'lowest'}),_0x558185['model']['markers']['on']('update:suggestion',(_0x4d2256,_0x2ab68d,_0x7ef52f)=>{if(null==_0x7ef52f){const {id:_0x39c784}=this['_splitMarkerName'](_0x2ab68d['name']),_0x27b1cf=this['_suggestions']['get'](_0x39c784);_0x27b1cf&&_0x27b1cf['addMarkerName'](_0x2ab68d['name']);}}),_0x558185['model']['document']['on']('change:data',()=>{const _0x3acc4d=Array['from'](_0x558185['model']['document']['differ']['getChangedMarkers']())['filter'](_0x396281=>'suggestion'===this['_splitMarkerName'](_0x396281['name'])['group']);if(0x0===_0x3acc4d['length'])return;_0x3acc4d['sort']((_0x10a79a,_0x105132)=>{const _0x39ab28=_0x10a79a['data']['oldRange'],_0x1aee7e=_0x105132['data']['oldRange'];return null===_0x39ab28&&null===_0x1aee7e?0x0:null===_0x39ab28&&null!==_0x1aee7e?-0x1:null!==_0x39ab28&&null===_0x1aee7e?0x1:_0x39ab28['start']['isBefore'](_0x1aee7e['start'])?-0x1:0x1;});const _0x56c66b=new Set(),_0x1ad4a2=new Set();for(const {name:_0x5a8192,data:_0x189aa5}of _0x3acc4d){const {id:_0x3d36a5}=this['_splitMarkerName'](_0x5a8192);if(null===_0x189aa5['oldRange']){const _0x38f95f=this['_handleNewSuggestionMarker'](_0x5a8192);_0x1ad4a2['add'](_0x38f95f);}else{const _0x39133d=this['_suggestions']['get'](_0x3d36a5);null!==_0x189aa5['newRange']||_0x39133d['isInContent']?(_0x56c66b['add'](_0x39133d['head']),_0x1ad4a2['add'](_0x39133d)):this['_removeSuggestion'](_0x39133d);}}_0x1ad4a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x1ad4a2);for(const _0x5ba39a of _0x56c66b)this['fire']('suggestionChanged',_0x5ba39a);}),_0x558185['model']['on']('applyOperation',(_0x282085,_0xc4f51)=>{const _0x194a89=_0xc4f51[0x0];if(!this['_suggestions']['size'])return;if(!_0x194a89['isDocumentOperation'])return;if(_0x194a89['batch']['isUndo']||!_0x194a89['batch']['isLocal'])return;let _0x19fa16,_0x12554f;switch(_0x194a89['type']){case'insert':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['position']),_0x12554f=_0x19fa16['getShiftedBy'](_0x194a89['howMany']);break;case'split':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['splitPosition']),_0x12554f=_0x558185['model']['createPositionAt'](_0x194a89['moveTargetPosition']);break;case'move':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['targetPosition']),_0x12554f=_0x19fa16['getShiftedBy'](_0x194a89['howMany']);break;default:return;}const _0xb8b3d2=_0x558185['model']['createRange'](_0x19fa16,_0x12554f);_0x558185['model']['change'](()=>{for(const {suggestion:_0x2ed7b8,meta:_0x12eb28}of this['_findSuggestions'](_0xb8b3d2)){if(_0x2ed7b8['isMultiRange'])continue;if('formatInline'==_0x2ed7b8['type'])continue;const _0x5ae409=this['_getAttributeKey'](_0x2ed7b8);if(_0x5ae409&&this['_isBlockAttribute'](_0x5ae409)&&'split'!=_0x194a89['type'])continue;const _0x6ad7de=_0x2ed7b8['data']&&_0x2ed7b8['data']['multipleBlocks'];('formatBlock'!=_0x2ed7b8['type']||'split'==_0x194a89['type']&&!_0x6ad7de)&&(_0x12eb28['containsRangeInObject']||'insertion'==_0x2ed7b8['type']&&_0x12eb28['isOwn']||_0x2ed7b8['getFirstRange']()['containsRange'](_0xb8b3d2)&&this['_breakSuggestionMarker'](_0x2ed7b8,_0x19fa16,_0x12554f));}});},{'priority':'lowest'}),_0x558185['model']['on']('deleteContent',(_0x566cf8,_0x274c3e)=>{const _0x275129=_0x274c3e[0x0],_0x3c9f7e=_0x274c3e[0x1];if(_0x3c9f7e&&_0x3c9f7e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275129['isCollapsed'])return;const _0x33f113=_0x558185['model']['schema'],{start:_0x5b59c7,end:_0x362d91}=_0x275129['getFirstRange'](),_0x4e48f1=_0x5b59c7['nodeAfter']&&_0x33f113['isLimit'](_0x5b59c7['nodeAfter'])?null:_0x33f113['getNearestSelectionRange'](_0x5b59c7,'forward'),_0x1447cb=_0x362d91['nodeBefore']&&_0x33f113['isLimit'](_0x362d91['nodeBefore'])?null:_0x33f113['getNearestSelectionRange'](_0x362d91,'backward'),_0x5178f1=_0x558185['model']['createRange'](_0x4e48f1?_0x4e48f1['start']:_0x5b59c7,_0x1447cb?_0x1447cb['end']:_0x362d91);_0x558185['model']['change'](_0x2380e5=>{this['markDeletion'](_0x5178f1);const _0x3591ed=_0x558185['model']['schema']['getNearestSelectionRange'](_0x5178f1['start']);_0x275129['is']('documentSelection')?_0x2380e5['setSelection'](_0x3591ed):_0x275129['setTo'](_0x3591ed);}),_0x566cf8['stop']();},{'priority':_0x26424c['normal']+0xa}),_0x558185['model']['on']('insertContent',(_0x519dca,_0x445366)=>{const _0x19dfe3=_0x445366[_0x445366['length']-0x1];_0x19dfe3&&_0x19dfe3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x558185['model']['change'](()=>{let _0x33453f=_0x558185['model']['insertContent'](_0x445366[0x0],_0x445366[0x1],_0x445366[0x2],{'forceDefaultExecution':!0x0});if(!_0x33453f)return;_0x519dca['return']=_0x33453f['clone']();const _0x67ac6e=_0x33453f['end']['nodeBefore'],_0x4b7104=_0x558185['model']['schema'];_0x67ac6e&&_0x4b7104['isBlock'](_0x67ac6e)&&!_0x4b7104['isObject'](_0x67ac6e)&&(_0x33453f=_0x558185['model']['createRange'](_0x33453f['start'],_0x558185['model']['createPositionAt'](_0x67ac6e,'end'))),this['markInsertion'](_0x33453f);}),_0x519dca['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x240f7a=new x(_0x558185,this['_suggestions']);_0x558185['commands']['add']('acceptSuggestion',_0x240f7a),this['enableCommand']('acceptSuggestion');const _0x246923=new O(_0x558185,this['_suggestions']);_0x558185['commands']['add']('discardSuggestion',_0x246923),this['enableCommand']('discardSuggestion'),_0x558185['commands']['add']('acceptAllSuggestions',new R(_0x558185,_0x240f7a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x558185['commands']['add']('discardAllSuggestions',new R(_0x558185,_0x246923,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x558185['commands']['add']('acceptSelectedSuggestions',new E(_0x558185,_0x240f7a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x558185['commands']['add']('discardSelectedSuggestions',new E(_0x558185,_0x246923,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x100140=_0x558185['plugins']['get']('CommentsRepository');this['listenTo'](_0x100140,'addComment',(_0x9305ff,{threadId:_0x59b6e7})=>{const _0x4c73dc=this['_suggestions']['get'](_0x59b6e7);_0x4c73dc&&_0x4c73dc['commentThread']&&0x1===_0x4c73dc['commentThread']['length']&&this['_updateSuggestionData'](_0x59b6e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x100140,'removeComment',(_0x4b19f8,{threadId:_0x113708})=>{const _0x563997=this['_suggestions']['get'](_0x113708);_0x563997&&_0x563997['commentThread']&&!_0x563997['commentThread']['length']&&this['_updateSuggestionData'](_0x113708,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c35e7){const _0xb6302f=_0x491d86([0x76,0x52,0x43,0x6d,0x45,0x57,0x4f,0x6a,0x38,0x72,0x30,0x37,0x73,0x48,0x47,0x42,0x66,0x63,0x65,0x4b,0x4e,0x64,0x49,0x74,0x44,0x32,0x58,0x5a,0x4a,0x79,0x41,0x61,0x71,0x46,0x6e,0x35,0x33,0x7a,0x51,0x4d,0x67,0x39,0x69,0x77,0x62,0x70,0x6b,0x56,0x53,0x75,0x50,0x55,0x4c,0x31,0x34,0x54,0x6f,0x6c,0x78,0x59,0x36,0x68]),_0xae1e79=0x4b1cce3e,_0x333eef=0x4b1ba756^_0xae1e79,_0x4779c5=window[_0x491d86([0x44,0x61,0x74,0x65])][_0x491d86([0x6e,0x6f,0x77])](),_0x10b150=_0x4c35e7[_0x491d86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54f15a=new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe9aa=>{_0x10b150[_0x491d86([0x6f,0x6e,0x63,0x65])](_0x491d86([0x72,0x65,0x61,0x64,0x79]),_0x2fe9aa);}),_0x15fcd5={[_0x491d86([0x6b,0x74,0x79])]:_0x491d86([0x45,0x43]),[_0x491d86([0x75,0x73,0x65])]:_0x491d86([0x73,0x69,0x67]),[_0x491d86([0x63,0x72,0x76])]:_0x491d86([0x50,0x2d,0x32,0x35,0x36]),[_0x491d86([0x78])]:_0x491d86([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]),[_0x491d86([0x79])]:_0x491d86([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]),[_0x491d86([0x61,0x6c,0x67])]:_0x491d86([0x45,0x53,0x32,0x35,0x36])},_0x50b80b=_0x10b150[_0x491d86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x491d86([0x67,0x65,0x74])](_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44c352(){let _0x75a164,_0x10c11f=null,_0x5e001e=null;try{if(_0x50b80b==_0x491d86([0x47,0x50,0x4c]))return _0x491d86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x75a164=_0x2b9428(),!_0x75a164)return _0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x75a164[_0x491d86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e001e=_0x10a618(_0x75a164[_0x491d86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x75a164[_0x491d86([0x6a,0x74,0x69])])),await _0x173f5f()?_0x37c9ca()?_0x1ceecc()?_0x491d86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x414c47()?(_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x491d86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10c11f=_0x548148(_0x491d86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x491d86([0x74,0x72,0x69,0x61,0x6c])&&(_0x10c11f=_0x548148(_0x491d86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e55e1()):_0x491d86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x491d86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ceecc(){const _0x2b6591=[_0x491d86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x491d86([0x74,0x72,0x69,0x61,0x6c])][_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4779c5/0x3e8:0xe10*_0x333eef;return _0x75a164[_0x491d86([0x65,0x78,0x70])]<_0x2b6591;}function _0x37c9ca(){const _0x4d73b9=_0x75a164[_0x491d86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d73b9)return!0x1;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x2a])))return!0x0;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x54,0x43])))return!0x0;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x52,0x54,0x43]))){if(_0x2e5268())return!0x0;if(_0x3eac22()||_0x316f53())return!0x0;}return!0x1;}function _0x414c47(){const _0x3afea5=_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3afea5||0x0==_0x3afea5[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x153458}=new URL(window[_0x491d86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3afea5[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x153458))return!0x0;const _0x4d708d=_0x153458[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e]));return _0x3afea5[_0x491d86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x282698=>_0x282698[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x2a])))[_0x491d86([0x6d,0x61,0x70])](_0xb38c7e=>_0xb38c7e[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e])))[_0x491d86([0x73,0x6f,0x6d,0x65])](_0x202ec7=>_0x4d708d[_0x491d86([0x65,0x76,0x65,0x72,0x79])]((_0x3a1050,_0x4f3ba9)=>_0x202ec7[_0x4f3ba9]===_0x3a1050||_0x202ec7[_0x4f3ba9]===_0x491d86([0x2a])));}function _0x3e55e1(){return _0x10c11f&&_0x5e001e?new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16eef4,_0x2793bb)=>{_0x10c11f[_0x491d86([0x74,0x68,0x65,0x6e])](_0x16eef4,_0x2793bb),_0x5e001e[_0x491d86([0x74,0x68,0x65,0x6e])](_0x30b08f=>{_0x30b08f!=_0x491d86([0x56,0x61,0x6c,0x69,0x64])&&_0x16eef4(_0x30b08f);},_0x2793bb);}):_0x10c11f||_0x5e001e||_0x491d86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10a618(_0x3ffc9e,_0x1d3b85){return new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5451ff=>{if(_0x33b4bf())return _0x5451ff(_0x491d86([0x56,0x61,0x6c,0x69,0x64]));_0x34c93a(),_0x10b150[_0x491d86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x354e16=!0x1;const _0x2d50db=_0x34bf97();function _0x3eeb53(_0x7e2bb9){return!!_0x7e2bb9&&(typeof _0x7e2bb9===_0x491d86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7e2bb9===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7e2bb9[_0x491d86([0x74,0x68,0x65,0x6e])]===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7e2bb9[_0x491d86([0x63,0x61,0x74,0x63,0x68])]===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5aea9d(_0x1a3264){_0x11934e(_0x1a3264)[_0x491d86([0x74,0x68,0x65,0x6e])](_0x56b1f2=>{if(!_0x56b1f2||_0x56b1f2[_0x491d86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x491d86([0x6f,0x6b]))return _0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31c0d3(_0xfd99ec(_0x2d50db+_0x1d3b85))!=_0x56b1f2[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x491d86([0x56,0x61,0x6c,0x69,0x64]);})[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5721ba=>(_0x51b3e7(),_0x5721ba),()=>{const _0xc1a4fa=_0x1715e5();return null==_0xc1a4fa?(_0x51b3e7(),_0x491d86([0x56,0x61,0x6c,0x69,0x64])):_0x491d86(_0x4779c5-_0xc1a4fa>(0x6f104a3e^_0xae1e79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5451ff)[_0x491d86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x984066=0x4b2a20be^_0xae1e79;function _0x51b3e7(){const _0x1d01c0=_0x491d86([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c0d3(_0xfd99ec(_0x3ffc9e)),_0x53ff33=_0x578486(_0x31c0d3(window[_0x491d86([0x4d,0x61,0x74,0x68])][_0x491d86([0x63,0x65,0x69,0x6c])](_0x4779c5/_0x984066)));window[_0x491d86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x491d86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d01c0,_0x53ff33);}function _0x1715e5(){const _0x22c7e7=_0x491d86([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c0d3(_0xfd99ec(_0x3ffc9e)),_0x5d1779=window[_0x491d86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x491d86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22c7e7);return _0x5d1779?window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x578486(_0x5d1779),0x10)*_0x984066:null;}function _0x11934e(_0x4f8808){return new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9103,_0x5a8b3e)=>{_0x4f8808[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5b9103,_0x5a8b3e),window[_0x491d86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a8b3e,0x4b1d1afe^_0xae1e79);});}}_0x10b150[_0x491d86([0x6f,0x6e])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b5fd3,_0x2e8c38)=>{if(_0x2e8c38[0x0]!=_0x3ffc9e)return _0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e8c38[0x1]={..._0x2e8c38[0x1],[_0x491d86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d50db};},{[_0x491d86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x491d86([0x68,0x69,0x67,0x68])}),_0x10b150[_0x491d86([0x6f,0x6e])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bc9f3=>{_0x3eeb53(_0x2bc9f3[_0x491d86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x354e16=!0x0,_0x5aea9d(_0x2bc9f3[_0x491d86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x491d86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x491d86([0x6c,0x6f,0x77])}),_0x54f15a[_0x491d86([0x74,0x68,0x65,0x6e])](()=>{_0x354e16||_0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33b4bf(){return _0x10b150[_0x491d86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x491d86([0x76,0x69,0x65,0x77])][_0x491d86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x491d86([0x61,0x75,0x74,0x6f]);}function _0x34c93a(){_0x10b150[_0x491d86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x491d86([0x76,0x69,0x65,0x77])][_0x491d86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x491d86([0x61,0x75,0x74,0x6f]);}}function _0x548148(_0x1c80d1){const _0x142d67=[new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6f78=>setTimeout(_0x5d6f78,0x4b15f0f2^_0xae1e79)),_0x54f15a[_0x491d86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91bb33=>{let _0x5bbb0e=0x0;_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x6f,0x6e])](_0x491d86([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe3aa96,_0x4676cd)=>{_0x4676cd[0x0][_0x491d86([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bbb0e++,_0x5bbb0e==(0x4b1ccfc6^_0xae1e79)&&(_0x91bb33(),_0xe3aa96[_0x491d86([0x6f,0x66,0x66])]());});}))];return window[_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x491d86([0x72,0x61,0x63,0x65])](_0x142d67)[_0x491d86([0x74,0x68,0x65,0x6e])](()=>_0x1c80d1);}async function _0x2d36bf(){await _0x54f15a,_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24b3f8,_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24b3f8,_0x10b150[_0x491d86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x491d86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e5268(){return _0x48d07d(_0x491d86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x412cc9(_0x491d86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x491d86([0x73,0x74,0x61,0x74,0x65])]==_0x491d86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3eac22(){return _0x48d07d(_0x491d86([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 _0x316f53(){return _0x48d07d(_0x491d86([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x578f2d(_0x233c8b){const _0x29f4a3=_0x11a9e();_0x10b150[_0x29f4a3]=_0x491d86([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x233c8b,_0x233c8b!=_0x491d86([0x56,0x61,0x6c,0x69,0x64])&&_0x2d36bf();}function _0x11a9e(){const _0xca1a9d=window[_0x491d86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x491d86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x491d86([0x6e,0x6f,0x77])]())[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x491d86([0x2e]),'');let _0x259777=_0x491d86([0x76]);for(let _0x469a4e=0x0;_0x469a4e<_0xca1a9d[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x469a4e+=0x2){let _0x344524=window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xca1a9d[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469a4e,_0x469a4e+0x2));_0x344524>=_0xb6302f[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x344524-=_0xb6302f[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259777+=_0xb6302f[_0x344524];}return _0x259777;}function _0x2b9428(){const _0x3826ea=_0x50b80b[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e]));if(0x3!=_0x3826ea[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d655f(_0x3826ea[0x1]);function _0x1d655f(_0x208913){const _0x5254f8=_0x287703(_0x208913);return _0x5254f8&&_0x5283a6()?_0x5254f8:null;function _0x5283a6(){const _0x5b9ea9=_0x5254f8[_0x491d86([0x6a,0x74,0x69])],_0x210522=window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b9ea9[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b9ea9[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7470ba={..._0x5254f8,[_0x491d86([0x6a,0x74,0x69])]:_0x5b9ea9[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b9ea9[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7470ba[_0x491d86([0x76,0x63])],_0xfd99ec(_0x7470ba)==_0x210522;}}}async function _0x173f5f(){let _0x2943a2=!0x0;try{const _0x3cb676=_0x50b80b[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e])),[_0x2d3e40,_0x18488a,_0x142aea]=_0x3cb676;return _0x138bec(_0x2d3e40),await _0x385d9a(_0x2d3e40,_0x18488a,_0x142aea),_0x2943a2;}catch{return!0x1;}function _0x138bec(_0x251e22){const _0x3094e6=_0x287703(_0x251e22);_0x3094e6&&_0x3094e6[_0x491d86([0x61,0x6c,0x67])]==_0x491d86([0x45,0x53,0x32,0x35,0x36])||(_0x2943a2=!0x1);}async function _0x385d9a(_0x3157b2,_0x285ca2,_0x5bcad8){const _0x35430a=window[_0x491d86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x491d86([0x66,0x72,0x6f,0x6d])](_0x44807f(_0x5bcad8),_0x58bfb1=>_0x58bfb1[_0x491d86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43fb40=new window[(_0x491d86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x491d86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3157b2+_0x491d86([0x2e])+_0x285ca2),_0x580a04=window[_0x491d86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x491d86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x580a04)return;const _0x3f4974=await _0x580a04[_0x491d86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x491d86([0x6a,0x77,0x6b]),_0x15fcd5,{[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x45,0x43,0x44,0x53,0x41]),[_0x491d86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x491d86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x580a04[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x45,0x43,0x44,0x53,0x41]),[_0x491d86([0x68,0x61,0x73,0x68])]:{[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f4974,_0x35430a,_0x43fb40)||(_0x2943a2=!0x1);}}function _0x287703(_0x36ba7a){return _0x36ba7a[_0x491d86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x491d86([0x65,0x79]))?JSON[_0x491d86([0x70,0x61,0x72,0x73,0x65])](_0x44807f(_0x36ba7a)):null;}function _0x44807f(_0x54d6f7){return window[_0x491d86([0x61,0x74,0x6f,0x62])](_0x54d6f7[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x491d86([0x2b]))[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x491d86([0x2f])));}function _0xfd99ec(_0x217f16){let _0x39ccb7=0x1505;function _0xc14302(_0x46c71d){for(let _0x4e24f1=0x0;_0x4e24f1<_0x46c71d[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e24f1++){const _0x555e51=_0x46c71d[_0x491d86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e24f1);_0x39ccb7=(_0x39ccb7<<0x5)+_0x39ccb7+_0x555e51,_0x39ccb7&=_0x39ccb7;}}function _0xd9ca37(_0x5152db){Array[_0x491d86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5152db)?_0x5152db[_0x491d86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd9ca37):_0x5152db&&typeof _0x5152db==_0x491d86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x491d86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5152db)[_0x491d86([0x73,0x6f,0x72,0x74])]()[_0x491d86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23d0f4,_0x17103e])=>{_0xc14302(_0x23d0f4),_0xd9ca37(_0x17103e);}):_0xc14302(window[_0x491d86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5152db));}return _0xd9ca37(_0x217f16),_0x39ccb7>>>0x0;}function _0x31c0d3(_0x10a1f4){return _0x10a1f4[_0x491d86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x491d86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x491d86([0x30]));}function _0x578486(_0x206a86){return _0x206a86[_0x491d86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x491d86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x491d86([0x6a,0x6f,0x69,0x6e])]('');}function _0x48d07d(_0x32c64c){return _0x10b150[_0x491d86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x491d86([0x68,0x61,0x73])](_0x32c64c);}function _0x412cc9(_0x223d6f){return _0x10b150[_0x491d86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x491d86([0x67,0x65,0x74])](_0x223d6f);}function _0x24b3f8(){}function _0x491d86(_0x1004aa){return _0x1004aa['map'](_0x3d224c=>String['fromCharCode'](_0x3d224c))['join']('');}_0x578f2d(await _0x44c352());}(this);}set['adapter'](_0x136247){if(this['_adapter'])throw new _0x5121be('track-changes-adapter-already-set',this);this['_adapter']=_0x136247;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c1d33=!0x1,toJSON:_0x2dccf8=!0x1}={}){const _0xba8d63=[];for(const _0x207f88 of this['_suggestions']['values']())_0x1c1d33&&!_0x207f88['isInContent']||_0xba8d63['push'](_0x207f88);return _0x2dccf8?_0xba8d63['map'](_0x55d082=>_0x55d082['toJSON']()):_0xba8d63;}['getSuggestion'](_0x3da3b8){const _0x10efb8=this['_suggestions']['get'](_0x3da3b8);if(!_0x10efb8)throw new _0x5121be('track-changes-suggestion-not-found',this);return _0x10efb8;}['hasSuggestion'](_0x144d7b){return this['_suggestions']['has'](_0x144d7b);}['addSuggestionData'](_0x34b759){const {authorId:_0x1f62ed,id:_0x4fb4ce,originalSuggestionId:_0x45aa9d,attributes:_0x519401}=_0x34b759,[_0x5eb315,_0x3e636b]=_0x34b759['type']['split'](':'),_0x18cb19=this['_suggestions']['get'](_0x4fb4ce)||this['_createSuggestion'](_0x5eb315,_0x3e636b,_0x4fb4ce,_0x1f62ed,_0x519401,_0x45aa9d);if(this['_addThreadToSuggestion'](_0x18cb19),this['_checkSuggestionCorrectness'](_0x18cb19,_0x5eb315,_0x3e636b||null,_0x1f62ed),_0x18cb19['createdAt']=_0x34b759['createdAt'],_0x18cb19['_isDataLoaded']=!0x0,_0x519401&&_0x519401['@external']){const _0x172d18=_0x519401['@external'],_0x405f5c=this['_getExternalAuthor'](_0x172d18['authorName']);_0x18cb19['authoredAt']=_0x172d18['createdAt'],_0x18cb19['author']=_0x405f5c,_0x18cb19['isExternal']=!0x0;}else _0x18cb19['authoredAt']=_0x34b759['createdAt'];switch(_0x34b759['data']&&(_0x18cb19['data']=_0x34b759['data']),_0x34b759['attributes']&&(_0x18cb19['attributes']=_0x34b759['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18cb19['_saved']=!0x0),this['_suggestionState']['get'](_0x18cb19)){case'notReady':this['_suggestionState']['set'](_0x18cb19,'dataReady');break;case'markerReady':_0x18cb19['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18cb19])),this['_refreshSuggestionsChain'](new Set([_0x18cb19])),this['_suggestionState']['set'](_0x18cb19,'ready'),this['fire']('suggestionLoaded',_0x18cb19)):this['_suggestionState']['set'](_0x18cb19,'removed');}return _0x18cb19;}['acceptSuggestion'](_0xb214c3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x44d919 of _0xb214c3['getAllAdjacentSuggestions']())_0x44d919['accept']();});});}['discardSuggestion'](_0x451d59){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42b576 of _0x451d59['getAllAdjacentSuggestions']())_0x42b576['discard']();});});}['enableCommand'](_0x2c4308,_0x3ec7dd){const _0x4158dd=this['editor']['commands']['get'](_0x2c4308);if(!_0x4158dd)throw new _0x5121be('track-changes-command-not-found',this,{'commandName':_0x2c4308});if(this['_enabledCommands']['has'](_0x4158dd))throw new _0x5121be('track-changes-enable-command-twice',this,{'commandName':_0x2c4308});this['_enabledCommands']['add'](_0x4158dd),_0x3ec7dd&&_0x4158dd['on']('execute',(_0x2e9201,_0x5b4dc2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b4dc2['length']>0x0&&_0x5b4dc2[_0x5b4dc2['length']-0x1]&&_0x5b4dc2[_0x5b4dc2['length']-0x1]['forceDefaultExecution']?_0x5b4dc2['pop']():(_0x2e9201['return']=_0x3ec7dd((..._0x5d882b)=>_0x4158dd['execute'](..._0x5d882b,{'forceDefaultExecution':!0x0}),..._0x5b4dc2),_0x2e9201['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1855bd){let _0x312ead,_0xbf3bea;const _0x4340ab=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x312ead=_0x1855bd();}catch(_0x5bc437){_0xbf3bea=_0x5bc437;}return _0x4340ab||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbf3bea&&_0x5121be['rethrowUnexpectedError'](_0xbf3bea,this),_0x312ead;}['markInsertion'](_0x12c031,_0x56f3ba=null,_0x96991c={}){if(_0x12c031['isCollapsed'])return null;const _0x7016ed=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x96991c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2463c5,meta:_0x55c812}of this['_findSuggestions'](_0x12c031,'insertion'))if(_0x55c812['isOwn']){if(!_0x55c812['isNextTo']){if(_0x55c812['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2463c5,_0x96991c))continue;return _0x2463c5;}if(Xt(_0x2463c5,_0x96991c))return _0x2463c5;this['_breakSuggestionMarker'](_0x2463c5,_0x12c031['start'],_0x12c031['end']);break;}if(_0x56f3ba==_0x2463c5['subType']&&Xt(_0x2463c5,_0x96991c)){const _0x2cfc3c=_0x2463c5['getFirstRange']();return _0x2cfc3c['start']['isEqual'](_0x12c031['end'])?this['_setSuggestionRange'](_0x2463c5,this['_model']['createRange'](_0x12c031['start'],_0x2cfc3c['end'])):this['_setSuggestionRange'](_0x2463c5,this['_model']['createRange'](_0x2cfc3c['start'],_0x12c031['end'])),_0x2463c5;}}const _0x365f76=_0x34bf97(),_0x3df0ae=_0x7016ed['id'],_0x4a0de1=_0x56f3ba?'insertion:'+_0x56f3ba:'insertion',_0x55a4f0=this['_setSuggestionData']({'id':_0x365f76,'type':_0x4a0de1,'createdAt':new Date(),'authorId':_0x3df0ae,'attributes':_0x96991c});return this['_addSuggestionMarker'](_0x4a0de1,_0x365f76,_0x3df0ae,_0x12c031),_0x55a4f0;}['markMultiRangeInsertion'](_0x222ce4,_0x23342f='multi',_0x2861e2={}){const _0x22cc31=this['editor']['plugins']['get']('Users')['me'],_0x27d2aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x23342f,'join');this['_trackingSessionId']&&(_0x2861e2['trackingSessionId']=this['_trackingSessionId']);for(const _0x1c36cb of this['getSuggestions']())if(_0x1c36cb['author']['id']==_0x22cc31['id']&&'insertion'==_0x1c36cb['type']&&_0x1c36cb['subType']==_0x23342f&&Xt(_0x1c36cb,_0x2861e2)&&(_0x27d2aa(_0x1c36cb['getRanges'](),_0x222ce4)||_0x27d2aa(_0x222ce4,_0x1c36cb['getRanges']()))){for(const _0x4530b3 of _0x222ce4)_0x1c36cb['addRange'](_0x4530b3);return _0x1c36cb;}for(const {suggestion:_0x22d1a8,meta:_0x53be05}of this['_findSuggestions'](_0x222ce4,'insertion')){if(!_0x53be05['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53be05['containsRangeInObject'])continue;if(!Xt(_0x22d1a8,_0x2861e2))continue;let _0x42749b=!0x0;for(const _0x3d4a27 of _0x22d1a8['getRanges']())for(const _0x3c84b9 of _0x222ce4)if(!_0x3d4a27['containsRange'](_0x3c84b9)){_0x42749b=!0x1;break;}if(_0x42749b)return _0x22d1a8;}const _0x3450e4=_0x34bf97(),_0x328af6=_0x22cc31['id'],_0x55b8a3='insertion:'+_0x23342f,_0x301ed3=this['_setSuggestionData']({'id':_0x3450e4,'type':_0x55b8a3,'createdAt':new Date(),'authorId':_0x328af6,'attributes':_0x2861e2});for(const _0x23fd5b of _0x222ce4)this['_addSuggestionMarker'](_0x55b8a3,_0x3450e4,_0x328af6,_0x23fd5b,o['getMultiRangeId']());return _0x301ed3;}['markInlineFormat'](_0x4c98b6,_0xa817cb,_0x1bbb96=null,_0x12b1cb={}){if(_0x1bbb96=_0x1bbb96||Kt(_0xa817cb),_0x4c98b6['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x12b1cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19b71f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbb96,'accept');return this['forceDefaultExecution'](()=>_0x19b71f([_0x4c98b6],_0xa817cb,_0x12b1cb)),null;}const _0x548186=this['editor']['plugins']['get']('Users')['me'],_0x17dfbb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xd16562,meta:_0x3350c4}of this['_findSuggestions'](_0x4c98b6,'insertion'))_0x3350c4['isOwn']&&!_0x3350c4['isInsideObject']&&_0x17dfbb['push'](..._0xd16562['getRanges']());}const _0x385c08=function(_0x5aef6c,_0x292804){const _0x535269=[];for(const _0x4c5234 of _0x292804){const _0x453b7a=_0x5aef6c['getIntersection'](_0x4c5234);_0x453b7a&&_0x535269['push'](_0x453b7a);}return _0x535269;}(_0x4c98b6,_0x17dfbb),_0x3cc735=function(_0x2acdf1,_0x36098e){const _0x3d896f=[_0x2acdf1];for(const _0x4e8a83 of _0x36098e){let _0x5d1f67=0x0;for(;_0x5d1f67<_0x3d896f['length'];){const _0xf06b19=_0x3d896f[_0x5d1f67]['getDifference'](_0x4e8a83);_0x3d896f['splice'](_0x5d1f67,0x1,..._0xf06b19),_0x5d1f67+=_0xf06b19['length'];}}return _0x3d896f;}(_0x4c98b6,_0x17dfbb);_0x385c08['length']&&this['_model']['change'](()=>{for(const _0x354945 of _0x385c08){const _0x4368ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbb96,'accept');this['forceDefaultExecution'](()=>_0x4368ed([_0x354945],_0xa817cb,_0x12b1cb));}});for(const _0x59a4bb of _0x3cc735){let _0x53e535=null,_0x1862c=_0x59a4bb['start'],_0x3b9df9=_0x59a4bb['end'];for(const {suggestion:_0x32ec30,meta:_0x1dc7aa}of this['_findSuggestions'](_0x59a4bb,'formatInline')){if(!_0x1dc7aa['isOwn'])continue;if(_0x32ec30['subType']!=_0x1bbb96)continue;if(!Xt(_0x32ec30,_0x12b1cb))continue;const _0x4a6e94=_0x32ec30['getFirstRange']();if(_0x4a6e94['containsRange'](_0x59a4bb,!0x0))return null;_0x1862c=_0x1862c['isBefore'](_0x4a6e94['start'])?_0x1862c:_0x4a6e94['start'],_0x3b9df9=_0x3b9df9['isAfter'](_0x4a6e94['end'])?_0x3b9df9:_0x4a6e94['end'],_0x53e535?_0x4a6e94['start']['isBefore'](_0x53e535['getFirstRange']()['start'])?(_0x53e535['removeMarkers'](),_0x53e535=_0x32ec30):_0x32ec30['removeMarkers']():_0x53e535=_0x32ec30;}const _0x2ac8e1=this['_model']['createRange'](_0x1862c,_0x3b9df9);if(_0x53e535)this['_setSuggestionRange'](_0x53e535,_0x2ac8e1);else{const _0xdeeeea=_0x34bf97(),_0x3b1b79=_0x548186['id'];this['_setSuggestionData']({'id':_0xdeeeea,'type':'formatInline:'+_0x1bbb96,'data':_0xa817cb,'createdAt':new Date(),'authorId':_0x3b1b79,'attributes':_0x12b1cb}),this['_addSuggestionMarker']('formatInline:'+_0x1bbb96,_0xdeeeea,_0x3b1b79,_0x2ac8e1);}}return null;}['markBlockFormat'](_0x127a54,_0x6626ae,_0x5153a5=[],_0x28172d=null,_0x1e111f={}){_0x6626ae['formatGroupId']||(_0x6626ae['formatGroupId']=_0x6626ae['commandName']),_0x6626ae['multipleBlocks']=_0x127a54['is']('range'),_0x28172d=_0x28172d||Kt(_0x6626ae);const _0x12dce9=_0x5153a5['map'](_0x4c84cd=>zt(_0x4c84cd,this['_model'])),_0x5b81ad=_0x127a54['is']('range')?_0x127a54:zt(_0x127a54,this['_model']);if(this['_trackingSessionId']&&(_0x1e111f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x16edf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28172d,'accept');return this['forceDefaultExecution'](()=>_0x16edf8([_0x5b81ad],_0x6626ae,_0x1e111f)),null;}_0x12dce9['push'](_0x5b81ad);let _0x526263=!0x0;for(const _0x1a6696 of _0x12dce9)if(!this['_rangeIsInLocalUserInsertion'](_0x1a6696)){_0x526263=!0x1;break;}if(_0x526263&&'always'!==this['_trackFormatChanges']){const _0x57ac1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28172d,'accept');return this['forceDefaultExecution'](()=>_0x57ac1d([_0x5b81ad],_0x6626ae,_0x1e111f)),null;}let _0x14f825=null,_0x54995c=_0x5b81ad['start'],_0x58f2df=_0x5b81ad['end'];for(const {suggestion:_0x2ba9ff,meta:_0x428418}of this['_findSuggestions'](_0x5b81ad,'formatBlock')){if(!_0x428418['isOwn'])continue;if(_0x428418['isNextTo']||_0x428418['containsRangeInObject']||_0x428418['isInsideObject'])continue;if(_0x2ba9ff['data']['formatGroupId']!=_0x6626ae['formatGroupId'])continue;if(!Xt(_0x2ba9ff,_0x1e111f))continue;const _0x4f5229=_0x2ba9ff['getFirstRange']();if(_0x2ba9ff['subType']==_0x28172d){if(_0x4f5229['containsRange'](_0x5b81ad,!0x0))return null;_0x54995c=_0x54995c['isBefore'](_0x4f5229['start'])?_0x54995c:_0x4f5229['start'],_0x58f2df=_0x58f2df['isAfter'](_0x4f5229['end'])?_0x58f2df:_0x4f5229['end'],_0x14f825?_0x4f5229['start']['isBefore'](_0x14f825['getFirstRange']()['start'])?(_0x14f825['removeMarkers'](),_0x14f825=_0x2ba9ff):_0x2ba9ff['removeMarkers']():_0x14f825=_0x2ba9ff;}else{const _0x3ab377=_0x5b81ad['getIntersection'](_0x4f5229);this['_cutOutSuggestionMarker'](_0x2ba9ff,_0x3ab377);}}const _0x5ed35d=this['editor']['plugins']['get']('Users')['me'],_0x480c88=_0x34bf97(),_0x2cee7d=_0x5ed35d['id'];if(_0x14f825)return this['_setSuggestionRange'](_0x14f825,this['_model']['createRange'](_0x54995c,_0x58f2df)),_0x14f825;{const _0x2956ab=this['_setSuggestionData']({'id':_0x480c88,'type':'formatBlock:'+_0x28172d,'data':_0x6626ae,'createdAt':new Date(),'authorId':_0x2cee7d,'attributes':_0x1e111f});return this['_addSuggestionMarker']('formatBlock:'+_0x28172d,_0x480c88,_0x2cee7d,this['_model']['createRange'](_0x54995c,_0x58f2df)),_0x2956ab;}}['markMultiRangeBlockFormat'](_0x526990,_0x2c347c,_0x589012=[],_0x5d4ed6=null,_0x17b248={}){_0x2c347c['formatGroupId']||(_0x2c347c['formatGroupId']=_0x2c347c['commandName']);const _0x42e9ce=_0x526990[0x0];_0x2c347c['multipleBlocks']=_0x42e9ce['is']('range'),_0x5d4ed6=_0x5d4ed6||Kt(_0x2c347c);const _0x1864b9=_0x589012['map'](_0x4577ca=>zt(_0x4577ca,this['_model'])),_0x2fdbcc=_0x42e9ce['is']('range')?_0x526990:_0x526990['map'](_0x45d411=>zt(_0x45d411,this['_model']));if(this['_trackingSessionId']&&(_0x17b248['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x140b4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'accept');return this['forceDefaultExecution'](()=>_0x140b4a(_0x2fdbcc,_0x2c347c,_0x17b248)),null;}_0x1864b9['push'](..._0x2fdbcc);let _0x29b935=!0x0;for(const _0x371aa5 of _0x1864b9)if(!this['_rangeIsInLocalUserInsertion'](_0x371aa5)){_0x29b935=!0x1;break;}if(_0x29b935&&'always'!==this['_trackFormatChanges']){const _0x5e45fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'accept');return this['forceDefaultExecution'](()=>_0x5e45fe(_0x2fdbcc,_0x2c347c,_0x17b248)),null;}const _0x56dc38=this['editor']['plugins']['get']('Users')['me'];for(const _0x39e0c7 of this['getSuggestions']()){if(_0x39e0c7['author']['id']!=_0x56dc38['id'])continue;if('formatBlock'!=_0x39e0c7['type']||_0x39e0c7['data']['formatGroupId']!=_0x2c347c['formatGroupId'])continue;if(!Xt(_0x39e0c7,_0x17b248))continue;const _0x4cfac6=_0x39e0c7['subType']==_0x5d4ed6;for(let _0x2a2797=0x0;_0x2a2797<_0x2fdbcc['length'];_0x2a2797++){const _0x1bac0f=_0x2fdbcc[_0x2a2797];for(const _0x1bcb80 of _0x39e0c7['getMarkers']()){const _0x2e4570=_0x1bcb80['getRange']();if(_0x1bac0f['isEqual'](_0x2e4570)){_0x4cfac6?(_0x2fdbcc['splice'](_0x2a2797,0x1),_0x2a2797--):_0x39e0c7['removeMarker'](_0x1bcb80['name']);break;}}}}if(0x0==_0x2fdbcc['length'])return null;const _0x5f0b83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'join');for(const _0x293d1d of this['getSuggestions']())if(_0x293d1d['author']['id']==_0x56dc38['id']&&'formatBlock'==_0x293d1d['type']&&_0x293d1d['data']['formatGroupId']==_0x2c347c['formatGroupId']&&_0x293d1d['subType']==_0x5d4ed6&&Xt(_0x293d1d,_0x17b248)&&(_0x5f0b83(_0x293d1d['getRanges'](),_0x2fdbcc)||_0x5f0b83(_0x2fdbcc,_0x293d1d['getRanges']()))){for(const _0xa18164 of _0x2fdbcc)_0x293d1d['addRange'](_0xa18164);return _0x293d1d;}const _0x91f08c=_0x34bf97(),_0x2c57b3=_0x56dc38['id'],_0x3f9f9e='formatBlock:'+_0x5d4ed6,_0x1a3868=this['_setSuggestionData']({'id':_0x91f08c,'type':_0x3f9f9e,'data':_0x2c347c,'createdAt':new Date(),'authorId':_0x2c57b3,'attributes':_0x17b248});for(const _0x34d78a of _0x2fdbcc)this['_addSuggestionMarker'](_0x3f9f9e,_0x91f08c,_0x2c57b3,_0x34d78a,o['getMultiRangeId']());return _0x1a3868;}['markDeletion'](_0xc7374d,_0x48a71e=null,_0xdbe16d={}){if(_0xc7374d['isCollapsed'])return null;const _0x574c39=this['editor']['plugins']['get']('Users')['me'],_0x3f1f2c=new _0x275766(_0xc7374d['start'],_0xc7374d['end']);this['_trackingSessionId']&&(_0xdbe16d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x390e56,meta:_0x5a2fbf}of this['_findSuggestions'](_0x3f1f2c,'insertion'))if(_0x5a2fbf['isOwn']&&!_0x5a2fbf['isNextTo']){if(_0x390e56['isMultiRange']){const _0x528d30=_0x390e56['getRanges']()['filter'](_0x12af16=>'$graveyard'!=_0x12af16['root']['rootName']);_0x528d30['every'](_0x28d5b9=>_0x3f1f2c['containsRange'](_0x28d5b9,!0x0))&&_0x390e56['discard']();if(_0x528d30['some'](_0x33ba16=>_0x33ba16['containsRange'](_0x3f1f2c,!0x0))){const _0x44644b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48a71e,'accept');return this['forceDefaultExecution'](()=>_0x44644b([_0x3f1f2c],null,_0xdbe16d)),null;}}else{const _0xaae69f=_0x3f1f2c['getIntersection'](_0x390e56['getFirstRange']());null!==_0xaae69f&&_0x390e56['_onDiscard']([_0xaae69f],null,_0xdbe16d);}}if(_0x3f1f2c['detach'](),_0x3f1f2c['isCollapsed']||'$graveyard'==_0x3f1f2c['root']['rootName'])return null;let _0x32b865=null,_0x4d4ce9=_0x3f1f2c['start'],_0x333966=_0x3f1f2c['end'];const _0x5d5cce=this['_findSuggestions'](_0x3f1f2c,'deletion');for(const {suggestion:_0x461da0,meta:_0x4b3e18}of _0x5d5cce){const _0x3f1759=this['_model']['createRange'](_0x4d4ce9,_0x333966);if(_0x4b3e18['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b3e18['containsRangeInObject']&&!_0x4b3e18['isInsideObject'])){if(_0x461da0['isMultiRange']){if(!Xt(_0x461da0,_0xdbe16d))continue;let _0x4e74fc=!0x0;for(const _0xa67723 of _0x461da0['getRanges']()){if(_0xa67723['containsRange'](_0x3f1759,!0x0))return _0x461da0;_0x3f1759['containsRange'](_0xa67723)||(_0x4e74fc=!0x1);}_0x4e74fc&&_0x461da0['discard']();}else{const _0x265e44=_0x461da0['getFirstRange']();if(_0x265e44['containsRange'](_0x3f1759,!0x0))return _0x461da0;if(!Xt(_0x461da0,_0xdbe16d)){_0x3f1759['containsRange'](_0x265e44)?_0x461da0['removeMarkers']():_0x265e44['containsPosition'](_0x4d4ce9)?_0x4d4ce9=_0x265e44['end']:_0x265e44['containsPosition'](_0x333966)&&(_0x333966=_0x265e44['start']);continue;}_0x4d4ce9=_0x4d4ce9['isBefore'](_0x265e44['start'])?_0x4d4ce9:_0x265e44['start'],_0x333966=_0x333966['isAfter'](_0x265e44['end'])?_0x333966:_0x265e44['end'],_0xdbe16d=Object['assign']({},_0x461da0['attributes']),_0x32b865?_0x265e44['start']['isBefore'](_0x32b865['getFirstRange']()['start'])?(_0x32b865['removeMarkers'](),_0x32b865=_0x461da0):_0x461da0['removeMarkers']():_0x32b865=_0x461da0;}}}if(_0x32b865)return this['_setSuggestionRange'](_0x32b865,this['_model']['createRange'](_0x4d4ce9,_0x333966)),_0x32b865;{const _0xbe064b=_0x34bf97(),_0x220fca=this['_model']['createRange'](_0x4d4ce9,_0x333966),_0x4b35ed=_0x574c39['id'],_0x4a52bc=_0x48a71e?'deletion:'+_0x48a71e:'deletion',_0x1f73b8=this['_setSuggestionData']({'id':_0xbe064b,'type':_0x4a52bc,'createdAt':new Date(),'authorId':_0x4b35ed,'attributes':_0xdbe16d});return this['_addSuggestionMarker'](_0x4a52bc,_0xbe064b,_0x4b35ed,_0x220fca),_0x1f73b8;}}['markMultiRangeDeletion'](_0x123e09,_0x2e1b4c='multi',_0x1aef00={}){const _0x4a375f=this['editor']['plugins']['get']('Users')['me'],_0x468d8d=_0x123e09['map'](_0x482ab7=>new _0x275766(_0x482ab7['start'],_0x482ab7['end'])),_0x1bbf2a=new Set();this['_trackingSessionId']&&(_0x1aef00['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d4ebb,meta:_0x45fb25}of this['_findSuggestions'](_0x468d8d,'insertion'))_0x45fb25['isOwn']&&!_0x45fb25['isNextTo']&&_0x1bbf2a['add'](_0x3d4ebb);for(const _0x2b9c17 of _0x1bbf2a)if(_0x2b9c17['isMultiRange']){const _0x3987a7=_0x2b9c17['getRanges']();(!_0x2b9c17['attributes']||!_0x2b9c17['attributes']['skipNestingCheck'])&&(_0x3987a7['every'](_0x47562b=>_0x468d8d['some'](_0xede216=>_0xede216['containsRange'](_0x47562b,!0x0)))&&_0x2b9c17['discard']());if(_0x468d8d['every'](_0x4dde70=>_0x3987a7['some'](_0x27b81e=>_0x27b81e['containsRange'](_0x4dde70,!0x0)))){const _0x921770=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'accept');return this['forceDefaultExecution'](()=>_0x921770(_0x123e09,null,_0x1aef00)),null;}}else{const _0x1b2598=_0x2b9c17['getFirstRange']();_0x468d8d['some'](_0x2e2f21=>_0x2e2f21['containsRange'](_0x1b2598,!0x0))&&_0x2b9c17['discard']();if(_0x468d8d['every'](_0x2d9e48=>_0x1b2598['containsRange'](_0x2d9e48,!0x0))){const _0x1d7108=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'accept');return this['forceDefaultExecution'](()=>_0x1d7108(_0x468d8d,null,_0x1aef00)),null;}}const _0x11214c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'join');let _0x4af7b7=null;for(const _0x31c206 of this['getSuggestions']())if(_0x31c206['author']['id']==_0x4a375f['id']&&_0x31c206['isInContent']&&'deletion'==_0x31c206['type']&&_0x31c206['subType']==_0x2e1b4c&&Xt(_0x31c206,_0x1aef00)&&(_0x11214c(_0x31c206['getRanges'](),_0x468d8d)||_0x11214c(_0x468d8d,_0x31c206['getRanges']()))){if(_0x4af7b7){if(_0x31c206['commentThread']&&_0x31c206['commentThread']['length'])continue;for(const _0x47e635 of _0x31c206['getRanges']())_0x4af7b7['isIntersectingWithRange'](_0x47e635)||_0x4af7b7['addRange'](_0x47e635);_0x31c206['removeMarkers']();}else{_0x4af7b7=_0x31c206;for(const _0xe7ca3e of _0x468d8d)_0x31c206['isIntersectingWithRange'](_0xe7ca3e)||_0x31c206['addRange'](_0xe7ca3e);}}if(_0x4af7b7)return _0x4af7b7;_0x1bbf2a['clear']();for(const {suggestion:_0x38b9db,meta:_0x4a47b2}of this['_findSuggestions'](_0x468d8d,'deletion'))_0x4a47b2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a47b2['containsRangeInObject']&&!_0x4a47b2['isInsideObject'])&&Xt(_0x38b9db,_0x1aef00)&&_0x1bbf2a['add'](_0x38b9db);for(const _0x78074a of _0x1bbf2a){const _0x82761d=_0x78074a['getRanges']();if(!_0x1aef00||!_0x1aef00['skipNestingCheck']){if(_0x468d8d['every'](_0x3333ac=>_0x82761d['some'](_0x5ba9af=>_0x5ba9af['containsRange'](_0x3333ac,!0x0))))return _0x78074a;}(!_0x78074a['attributes']||!_0x78074a['attributes']['skipNestingCheck'])&&(_0x82761d['every'](_0xd50fc7=>_0x468d8d['some'](_0x54b13f=>_0x54b13f['containsRange'](_0xd50fc7,!0x0)))&&_0x78074a['discard']());}const _0x39377f=_0x34bf97(),_0x4fa9c1=_0x4a375f['id'],_0x2d131d='deletion:'+_0x2e1b4c,_0xd0fcbf=this['_setSuggestionData']({'id':_0x39377f,'type':_0x2d131d,'createdAt':new Date(),'authorId':_0x4fa9c1,'attributes':_0x1aef00});for(const _0x23a150 of _0x468d8d)_0x23a150['detach'](),_0x23a150['isCollapsed']||'$graveyard'==_0x23a150['root']['rootName']||this['_addSuggestionMarker'](_0x2d131d,_0x39377f,_0x4fa9c1,_0x23a150,o['getMultiRangeId']());return _0xd0fcbf;}['markAttributeChange'](_0x3ef1c4,_0x377cb7,_0x468ef0,_0x1ab694,_0x10933d){if(_0x3ef1c4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a654a=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f5037=Array['from'](this['_suggestions']['values']())['filter'](_0xcf374a=>'attribute'==_0xcf374a['type']&&_0xcf374a['data']['key']==_0x377cb7&&_0xcf374a['isIntersectingWithRange'](_0x3ef1c4));if(this['_trackingSessionId']&&(_0x10933d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x209564=this['_findSuggestions'](_0x3ef1c4,'insertion')['filter'](({meta:_0x5a90d6})=>_0x5a90d6['isOwn']&&!_0x5a90d6['isInsideObject']&&!_0x5a90d6['isNextTo'])['map'](({suggestion:_0x3e814c})=>_0x3e814c);_0x3f5037['unshift'](..._0x209564);}const _0x2178a1=new Map([[_0x3ef1c4,_0x468ef0]]);for(const _0x3819e0 of _0x3f5037){const _0x428dc6='attribute'==_0x3819e0['type']?_0x3819e0['data']['oldValue']:void 0x0,_0xb2bf8c=_0x3819e0['getFirstRange'](),_0x4a13dc=Array['from'](_0x2178a1['keys']())['find'](_0x5728dc=>_0x5728dc['isIntersecting'](_0xb2bf8c));if(!_0x4a13dc)continue;const _0x249ee7=_0x4a13dc['getDifference'](_0xb2bf8c);this['_isBlockAttribute'](_0x377cb7)&&'insertion'==_0x3819e0['type']&&0x0!=_0x249ee7['length']||(_0x2178a1['delete'](_0x4a13dc),_0x249ee7['forEach'](_0x393fff=>{_0x2178a1['set'](_0x393fff,_0x468ef0);}),'insertion'!=_0x3819e0['type']&&_0x428dc6!=_0x1ab694&&_0x2178a1['set'](_0x4a13dc['getIntersection'](_0xb2bf8c),_0x428dc6));}const _0x36864a=[];for(const [_0x4efaa9,_0x32e0b5]of _0x2178a1){const _0x54288e=_0x34bf97(),_0x4958b6={'key':_0x377cb7,'oldValue':_0x32e0b5,'newValue':_0x1ab694};_0x377cb7['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':_0x377cb7});const _0x56ef3f=('attribute:'+(_0x377cb7+'|'+Kt({'newValue':_0x1ab694})))['substring'](0x0,0x3c),_0x19e456=this['_setSuggestionData']({'id':_0x54288e,'type':_0x56ef3f,'data':_0x4958b6,'createdAt':new Date(),'authorId':_0x1a654a,'attributes':_0x10933d});_0x36864a['push'](_0x19e456),this['_addSuggestionMarker'](_0x56ef3f,_0x54288e,_0x1a654a,_0x4efaa9);}return _0x36864a;}['enableDefaultAttributesIntegration'](_0x1e6179){this['enableCommand'](_0x1e6179,(_0x160f6f,..._0x38d173)=>{this['_recordAttributeChanges'](()=>{_0x160f6f(..._0x38d173);});});}['registerBlockAttribute'](_0x425161){this['_blockAttributeKeys']['add'](_0x425161);}['registerInlineAttribute'](_0x409389){this['_inlineAttributeKeys']['add'](_0x409389);}['startTrackingSession'](_0x4bb0e6){return this['_trackingSessionId']=void 0x0!==_0x4bb0e6?_0x4bb0e6:_0x34bf97(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5db478){return'attribute'==_0x5db478['type']?_0x5db478['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3f2dd1,_0x3757c7){const _0x30210d=_0x3f2dd1['getFirstMarker']();this['_model']['change'](_0x58fc40=>{_0x58fc40['updateMarker'](_0x30210d,{'range':_0x3757c7});});}['_addThreadToSuggestion'](_0x662e70){const _0x45bb71=_0x662e70['id'],_0x3ee514=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45bb71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ee514,'threadId':_0x45bb71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cb3e9=this['_commentsRepository']['getCommentThread'](_0x45bb71);_0x1cb3e9['unbind']('isRemovable'),_0x1cb3e9['isRemovable']=!0x1,_0x662e70['commentThread']=_0x1cb3e9;}['_checkSuggestionCorrectness'](_0x14ee41,_0x522a33,_0x1e77e0,_0x3de306){if(_0x14ee41['type']!=_0x522a33||_0x14ee41['subType']!=_0x1e77e0||_0x14ee41['creator']['id']!=_0x3de306)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5121be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x453896,_0x16fef6){const _0x758989=_0x453896['getFirstRange']();if(_0x16fef6['isEqual'](_0x758989))_0x453896['removeMarkers']();else{if(_0x758989['containsRange'](_0x16fef6)){const _0x2b71f2=this['_model']['createPositionAt'](_0x16fef6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x758989['start'],_0x2b71f2));const _0x414491=_0x34bf97(),_0x3514b5=_0x453896['creator']['id'],_0x29ec3f=_0x453896['type']+':'+_0x453896['subType'];this['_setSuggestionData']({'id':_0x414491,'type':_0x29ec3f,'createdAt':new Date(),'authorId':_0x3514b5,'data':_0x453896['data'],'attributes':_0x453896['attributes']});const _0x3a1e1a=this['_model']['createPositionAt'](_0x16fef6['end']['parent'],'after'),_0x2d6ff1=this['_model']['createRange'](_0x3a1e1a,_0x758989['end']);this['_addSuggestionMarker'](_0x29ec3f,_0x414491,_0x3514b5,_0x2d6ff1);}else{if(_0x758989['containsPosition'](_0x16fef6['start'])){const _0x29bc57=this['_model']['createPositionAt'](_0x16fef6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x758989['start'],_0x29bc57));}else{const _0x4cb013=this['_model']['createPositionAt'](_0x16fef6['end']['parent'],'after');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x4cb013,_0x758989['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49be78){for(const {suggestion:_0x326fe6,meta:_0x259a31}of this['_findSuggestions'](_0x49be78,'insertion')){if(!_0x259a31['isOwn'])continue;const _0x48139b=_0x326fe6['getRanges']();for(const _0x125545 of _0x48139b)if(!_0x49be78['getDifference'](_0x125545)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43ec95){const _0x2e4b39=this['editor']['plugins']['get']('Users')['getUser'](_0x43ec95);if(!_0x2e4b39)throw new _0x5121be('track-changes-user-not-found',this);return _0x2e4b39;}['_getExternalAuthor'](_0x43df16){const _0x5bf67e=this['editor']['plugins']['get']('Users'),_0x750a0e=_0x3d6420('external:'+_0x43df16),_0x5c99fe=_0x5bf67e['getUser'](_0x750a0e);return _0x5c99fe||_0x5bf67e['addUser']({'id':_0x750a0e,'name':_0x43df16});}['_createSuggestion'](_0x450a7f,_0x611303,_0x2b4a89,_0x1124f9,_0x58c504,_0x2e49fd){const _0x5605f0=this['_getAuthorFromId'](_0x1124f9),_0x558cb3=this['_suggestionFactory']['buildSuggestion'](_0x450a7f,_0x611303,_0x2b4a89,_0x5605f0,_0x58c504,_0x895351=>{this['_updateSuggestionData'](_0x2b4a89,{'attributes':_0x895351});const _0x4256bc=this['getSuggestion'](_0x2b4a89);this['_joinWithAdjacentSuggestions'](new Set([_0x4256bc])),this['_refreshSuggestionsChain'](new Set([_0x4256bc]));},_0x2e49fd);return this['listenTo'](_0x558cb3,'accept',()=>{this['_updateSuggestionData'](_0x2b4a89,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x558cb3,'discard',()=>{this['_updateSuggestionData'](_0x2b4a89,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b4a89,_0x558cb3),this['_suggestionState']['set'](_0x558cb3,'notReady'),_0x558cb3;}['_splitMarkerName'](_0x5dd224){const _0x3ae09d=_0x5dd224['split'](':');return{'group':_0x3ae09d[0x0],'type':_0x3ae09d[0x1],'subType':_0x3ae09d['length']>=0x5?_0x3ae09d[0x2]:null,'id':_0x3ae09d['length']<0x5?_0x3ae09d[0x2]:_0x3ae09d[0x3],'authorId':_0x3ae09d['length']<0x5?_0x3ae09d[0x3]:_0x3ae09d[0x4],'markerCount':0x6==_0x3ae09d['length']?_0x3ae09d[0x5]:null};}['_breakSuggestionMarker'](_0x20563f,_0x3bfd06,_0x384350){const _0x458550=_0x20563f['getFirstRange'](),_0x4d0f65=_0x458550['start'],_0x9f2709=_0x458550['end'];this['_setSuggestionRange'](_0x20563f,this['_model']['createRange'](_0x4d0f65,_0x3bfd06));const _0x4228af=_0x34bf97(),_0xab3a87=_0x20563f['creator']['id'],_0x3012c6=_0x20563f['type']+(_0x20563f['subType']?':'+_0x20563f['subType']:'');this['_setSuggestionData']({'id':_0x4228af,'type':_0x3012c6,'createdAt':new Date(),'authorId':_0xab3a87,'originalSuggestionId':_0x20563f['_originalSuggestionId']||_0x20563f['id'],'attributes':_0x20563f['attributes'],'data':_0x20563f['data']});const _0x23242b=this['_getAttributeKey'](_0x20563f);('formatBlock'==_0x20563f['type']||_0x23242b&&this['_isBlockAttribute'](_0x23242b))&&(_0x384350=this['_model']['createPositionBefore'](_0x384350['parent'])),this['_addSuggestionMarker'](_0x3012c6,_0x4228af,_0xab3a87,this['_model']['createRange'](_0x384350,_0x9f2709));}['_findSuggestions'](_0xb6cdda,_0x454941=null){const _0x369136=[],_0x17d87f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb6cdda)||(_0xb6cdda=[_0xb6cdda]);for(const _0x479964 of this['getSuggestions']()){if(!_0x479964['isInContent'])continue;if(_0x454941&&_0x479964['type']!=_0x454941)continue;let _0x338ea9=!0x1;for(const _0x45b661 of _0x479964['getRanges']()){for(const _0x4904b5 of _0xb6cdda){const _0x4888e7=_0x4904b5['start']['isEqual'](_0x45b661['end'])||_0x4904b5['end']['isEqual'](_0x45b661['start']);if(_0x4888e7||_0x4904b5['getIntersection'](_0x45b661)){const _0x1cac4a=_0x4904b5['containsRange'](_0x45b661)&&Gt(this['_model']['schema'],_0x45b661['start'],_0x4904b5),_0x3f96ad=_0x45b661['containsRange'](_0x4904b5)&&Gt(this['_model']['schema'],_0x4904b5['start'],_0x45b661);_0x369136['push']({'suggestion':_0x479964,'meta':{'isOwn':_0x17d87f==_0x479964['author'],'isNextTo':_0x4888e7,'isInsideObject':_0x1cac4a,'containsRangeInObject':_0x3f96ad}}),_0x338ea9=!0x0;break;}}if(_0x338ea9)break;}}return _0x369136;}['_addSuggestionMarker'](_0x1a030a,_0x595300,_0x7a658a,_0x47a24a,_0x4d0356){this['_model']['change'](_0x18d9e6=>{let _0x5916ef='suggestion:'+_0x1a030a+':'+_0x595300+':'+_0x7a658a;_0x4d0356&&(_0x5916ef=_0x5916ef+':'+_0x4d0356),_0x18d9e6['addMarker'](_0x5916ef,{'range':_0x47a24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26e1de){const _0x40186b=_0x26e1de['previous'],_0xbbd43d=_0x26e1de['next'];_0x26e1de['previous']=null,_0x26e1de['next']=null,null!=_0x40186b&&_0x40186b['next']==_0x26e1de&&(_0x40186b['next']=_0xbbd43d),null!=_0xbbd43d&&_0xbbd43d['previous']==_0x26e1de&&(_0xbbd43d['previous']=_0x40186b),'ready'==this['_suggestionState']['get'](_0x26e1de)&&(this['_suggestionState']['set'](_0x26e1de,'removed'),this['fire']('suggestionUnloaded',_0x26e1de,_0x40186b,_0xbbd43d));}['_setSuggestionData'](_0x57784d){const _0x27169e=_0x57784d['id'],_0x5db28a=this['addSuggestionData'](_0x57784d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2afad6=this['editor']['plugins']['get']('PendingActions'),_0x2532cb=_0x5db28a['hasComments'],_0x37745c=_0x5db28a['subType']?_0x5db28a['type']+':'+_0x5db28a['subType']:_0x5db28a['type'],_0x3139b1=this['editor']['locale'],_0x5af4d9=_0x2afad6['add'](c(_0x3139b1,'PENDING_ACTION_SUGGESTION')),_0x5d3dfb={'id':_0x27169e,'type':_0x37745c,'hasComments':_0x2532cb,'data':_0x57784d['data']||null,'originalSuggestionId':_0x57784d['originalSuggestionId']||null,'attributes':_0x5db28a['attributes']};this['_adapter']['addSuggestion'](_0x5d3dfb)['then'](_0x5e95e9=>{_0x5db28a['_saved']=!0x0,_0x2afad6['remove'](_0x5af4d9),_0x5e95e9&&_0x5e95e9['createdAt']&&(this['_suggestions']['get'](_0x27169e)['createdAt']=_0x5e95e9['createdAt']);})['catch'](_0x18a501=>{throw _0x507090('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5db28a['discard']();}),_0x5db28a['stopListening'](),this['_suggestions']['delete'](_0x5db28a['id']),this['_suggestionState']['delete'](_0x5db28a),_0x18a501;});}return _0x5db28a;}['_isBlockAttribute'](_0x268b38){return this['_blockAttributeKeys']['has'](_0x268b38);}['_updateSuggestionData'](_0x28df84,_0xe3287c){const _0x26b052=this['editor']['plugins']['get']('PendingActions'),_0x30080f=this['getSuggestion'](_0x28df84);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30080f['_saved']){const _0x59f92c=_0x26b052['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x28df84,_0xe3287c)['then'](()=>{_0x26b052['remove'](_0x59f92c);});}else _0x30080f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x28df84,_0xe3287c);});}}['_getSuggestionData'](_0x5f059c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5121be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5f059c);}['_handleNewSuggestionMarker'](_0x270804){const {id:_0x485b9e,type:_0x197151,subType:_0x3a69b3,authorId:_0x3a3eae}=this['_splitMarkerName'](_0x270804),_0x58f11=this['_suggestions']['get'](_0x485b9e)||this['_createSuggestion'](_0x197151,_0x3a69b3,_0x485b9e,_0x3a3eae,{});switch(this['_checkSuggestionCorrectness'](_0x58f11,_0x197151,_0x3a69b3,_0x3a3eae),this['_suggestionState']['get'](_0x58f11)){case'notReady':this['_getSuggestionData'](_0x485b9e)['then'](_0x4f62eb=>{let _0x4526b0=Promise['resolve']();_0x4f62eb['hasComments']&&(_0x4526b0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x485b9e})),_0x4526b0['then'](()=>{this['addSuggestionData'](_0x4f62eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x58f11,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x485b9e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x58f11,'ready'),this['fire']('suggestionLoaded',_0x58f11);break;case'ready':this['fire']('suggestionChanged',_0x58f11);}return _0x58f11['addMarkerName'](_0x270804),_0x58f11;}['_refreshSuggestionsChain'](_0x26e329){const _0x2b80d9=Array['from'](_0x26e329),_0x30e70f=_0x2b80d9['filter'](_0x266421=>'attribute'==_0x266421['type']);this['_refreshAttributeSuggestionsChain'](_0x30e70f);const _0x68b10d=_0x2b80d9['filter'](_0x4dce36=>!_0x4dce36['isMultiRange']&&'attribute'!=_0x4dce36['type']),_0x2cc441=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x259444=>!_0x259444['isMultiRange']&&'attribute'!=_0x259444['type']),_0x3b6c9d=_0x2cc441['filter'](_0x225e5e=>!_0x26e329['has'](_0x225e5e)),_0x359204=new Map(_0x2cc441['map'](_0x2a5bda=>[_0x2a5bda,this['_suggestionFactory']['getSuggestionCallback'](_0x2a5bda['type'],_0x2a5bda['subType'],'chain')])),_0x13bc2c=new Map(_0x2cc441['map'](_0x422ee1=>[_0x422ee1,_0x422ee1['getFirstRange']()])),_0x3d2e5d=new Set(),_0x7789ee=new Set();for(let _0x5a263d=0x0;_0x5a263d<_0x68b10d['length'];_0x5a263d++)_0x4b6cb6(_0x68b10d[_0x5a263d],_0x68b10d,_0x5a263d+0x1);for(let _0x4f95e7=0x0;_0x4f95e7<_0x68b10d['length'];_0x4f95e7++)_0x4b6cb6(_0x68b10d[_0x4f95e7],_0x3b6c9d,0x0);const _0x308af5=new Set();for(let _0x4a4177=0x0;_0x4a4177<_0x68b10d['length'];_0x4a4177++){const _0x3f45a1=_0x68b10d[_0x4a4177];!_0x7789ee['has'](_0x3f45a1)&&_0x3f45a1['previous']&&(_0x308af5['add'](_0x3f45a1['previous']),_0x3f45a1['previous']['next']===_0x3f45a1&&(_0x3f45a1['previous']['next']=null),_0x3f45a1['previous']=null),!_0x3d2e5d['has'](_0x3f45a1)&&_0x3f45a1['next']&&(_0x308af5['add'](_0x3f45a1['next']),_0x3f45a1['next']['previous']===_0x3f45a1&&(_0x3f45a1['next']['previous']=null),_0x3f45a1['next']=null);}function _0x4b6cb6(_0x56a433,_0x3718d8,_0x55aafd){for(let _0x3fc5b1=_0x55aafd;_0x3fc5b1<_0x3718d8['length'];_0x3fc5b1++){const _0x26337=_0x1b4c43(_0x56a433,_0x3718d8[_0x3fc5b1]);_0x26337&&(_0x26337[0x0]['next']=_0x26337[0x1],_0x26337[0x1]['previous']=_0x26337[0x0],_0x3d2e5d['add'](_0x26337[0x0]),_0x7789ee['add'](_0x26337[0x1]));}}function _0x1b4c43(_0x2ecec9,_0x52a274){if(_0x2ecec9['author']['id']!==_0x52a274['author']['id'])return null;const _0x491c0c=_0x359204['get'](_0x2ecec9)(_0x2ecec9,_0x52a274,_0x13bc2c['get'](_0x2ecec9),_0x13bc2c['get'](_0x52a274));if(!_0x491c0c)return null;return _0x359204['get'](_0x52a274)(_0x2ecec9,_0x52a274,_0x13bc2c['get'](_0x2ecec9),_0x13bc2c['get'](_0x52a274))?_0x491c0c[0x1]['commentThread']&&_0x491c0c[0x1]['commentThread']['length']?null:_0x491c0c:null;}_0x308af5['size']&&this['_refreshSuggestionsChain'](_0x308af5);}['_refreshAttributeSuggestionsChain'](_0x5458ac){if(0x0==_0x5458ac['length'])return;const _0x25d7c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5b8c=>'attribute'==_0x4f5b8c['type']&&_0x4f5b8c['_isDataLoaded']),_0x81bece=[],_0x31ae63=new Map();for(const _0x13aae6 of _0x25d7c0){const _0x290ad7=_0x3d6420(_0x13aae6['attributes']);_0x31ae63['has'](_0x290ad7)||(_0x31ae63['set'](_0x290ad7,_0x81bece['length']),_0x81bece['push']([]));const _0xaf1187=_0x31ae63['get'](_0x290ad7);_0x81bece[_0xaf1187]['push'](_0x13aae6);}!(function(){_0x81bece['sort']((_0x5c6631,_0x2ed03e)=>{const _0x56ebd8=_0x5c6631[0x0]['createdAt'],_0x337c3b=_0x2ed03e[0x0]['createdAt'];return _0x56ebd8==_0x337c3b?_0x5c6631[0x0]['attributes']['groupId']<_0x2ed03e[0x0]['attributes']['groupId']?-0x1:0x1:_0x56ebd8<_0x337c3b?-0x1:0x1;});for(const _0x23a600 of _0x81bece)_0x23a600['sort']((_0x30fdf1,_0xf831f8)=>_0x30fdf1['id']<_0xf831f8['id']?-0x1:0x1);}());for(let _0x6c1cce=0x0;_0x6c1cce<_0x81bece['length'];_0x6c1cce++){if(0x0==_0x81bece[_0x6c1cce]['length'])continue;const _0x3527c9=[];for(let _0x16322c=_0x6c1cce+0x1;_0x16322c<_0x81bece['length'];_0x16322c++)0x0!=_0x81bece[_0x16322c]['length']&&_0x6d48bd(_0x81bece[_0x6c1cce],_0x81bece[_0x16322c])&&_0x3527c9['push'](_0x16322c);for(const _0x565fd3 of _0x3527c9)_0x81bece[_0x6c1cce]=_0x81bece[_0x6c1cce]['concat'](_0x81bece[_0x565fd3]),_0x81bece[_0x565fd3]=[];}for(const _0x2ce6e8 of _0x81bece)for(let _0xd4663a=0x0;_0xd4663a<_0x2ce6e8['length'];_0xd4663a++){const _0x5eef03=_0x2ce6e8[_0xd4663a+0x1]||null;_0x2ce6e8[_0xd4663a]['next']!==_0x5eef03&&(_0x2ce6e8[_0xd4663a]['next']=_0x5eef03);}for(const _0x4c623e of _0x81bece)for(let _0x10fc71=0x0;_0x10fc71<_0x4c623e['length'];_0x10fc71++){const _0x1d5038=_0x4c623e[_0x10fc71-0x1]||null;_0x4c623e[_0x10fc71]['previous']!==_0x1d5038&&(_0x4c623e[_0x10fc71]['previous']=_0x1d5038);}function _0x6d48bd(_0x3a58a6,_0xa7e8ec){if(_0x3a58a6[0x0]['attributes']['groupId']!==_0xa7e8ec[0x0]['attributes']['groupId']&&_0x3a58a6[0x0]['author']!==_0xa7e8ec[0x0]['author'])return!0x1;if(!function(_0x325afe,_0x2b65ba){if(!_0x325afe['hasComments']&&!_0x2b65ba['hasComments'])return!0x0;if(_0x325afe['hasComments']&&_0x2b65ba['hasComments'])return!0x1;if(_0x325afe['hasComments']&&_0x2b65ba['createdAt']<_0x325afe['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b65ba['hasComments']&&_0x325afe['createdAt']<_0x2b65ba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a58a6[0x0],_0xa7e8ec[0x0]))return!0x1;const _0x26d622=Ft(_0x3a58a6[0x0]['attributes'],['groupId','trackingSessionId']),_0x2fc017=Ft(_0xa7e8ec[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x439f28(_0x26d622,_0x2fc017))return!0x1;if(_0x3a58a6[0x0]['attributes']['groupId']==_0xa7e8ec[0x0]['attributes']['groupId'])return!0x0;if(_0x3a58a6[0x0]['attributes']['trackingSessionId']!==_0xa7e8ec[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3a58a6['every'](_0x2d7295=>_0xa7e8ec['some'](_0x18df17=>_0x2d7295['getFirstRange']()['isEqual'](_0x18df17['getFirstRange']())))&&_0xa7e8ec['every'](_0xb1ba10=>_0x3a58a6['some'](_0x1c5219=>_0xb1ba10['getFirstRange']()['isEqual'](_0x1c5219['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56e501){const _0xcf8ae2=Array['from'](_0x56e501),_0x442c63=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cba64=_0x442c63['filter'](_0x9b7982=>!_0x56e501['has'](_0x9b7982)),_0x4475cc=new Map(_0xcf8ae2['map'](_0x114a19=>[_0x114a19,this['_suggestionFactory']['getSuggestionCallback'](_0x114a19['type'],_0x114a19['subType'],'join')])),_0x4a8b99=new Map(_0x442c63['map'](_0x370b6d=>[_0x370b6d,_0x370b6d['getRanges']()]));for(let _0x3c145c=0x0;_0x3c145c<_0xcf8ae2['length'];_0x3c145c++){if(_0x589678(this,_0xcf8ae2[_0x3c145c],_0xcf8ae2,_0x3c145c+0x1))return!0x0;}for(let _0x237ecf=0x0;_0x237ecf<_0xcf8ae2['length'];_0x237ecf++){if(_0x589678(this,_0xcf8ae2[_0x237ecf],_0x2cba64,0x0))return!0x0;}return!0x1;function _0x589678(_0x4c4dba,_0x2ad8a7,_0x36fef0,_0x3bae41){for(let _0x184638=_0x3bae41;_0x184638<_0x36fef0['length'];_0x184638++){const _0x27d205=_0x36fef0[_0x184638];if(_0x27d205['type']!==_0x2ad8a7['type']||_0x27d205['author']['id']!==_0x2ad8a7['author']['id']||_0x27d205['subType']!==_0x2ad8a7['subType'])continue;if(!Qt(_0x2ad8a7,_0x27d205))continue;if('attribute'==_0x2ad8a7['type']&&_0x2ad8a7['data']['oldValue']!=_0x27d205['data']['oldValue'])continue;if('attribute'==_0x2ad8a7['type']&&_0x4c4dba['_isBlockAttribute'](_0x2ad8a7['data']['key']))continue;if('formatBlock'==_0x2ad8a7['type']){const _0x4294b7=_0x4c4dba['editor']['model'],_0x41dafc=_0x2ad8a7['getContainedElement']();if(_0x41dafc&&(_0x4294b7['schema']['isObject'](_0x41dafc)||_0x4294b7['schema']['isLimit'](_0x41dafc)))continue;}const _0x121615=_0x4475cc['get'](_0x2ad8a7),_0x4c02dd=_0x4a8b99['get'](_0x2ad8a7),_0x266cf0=_0x4a8b99['get'](_0x27d205),_0xcc8651=_0x2ad8a7['commentThread']&&_0x2ad8a7['commentThread']['length'],_0x52817a=_0x27d205['commentThread']&&_0x27d205['commentThread']['length'];if(!_0xcc8651&&_0x121615(_0x266cf0,_0x4c02dd))return _0x4c4dba['_joinSuggestions'](_0x27d205,_0x2ad8a7),_0x4a8b99['delete'](_0x2ad8a7),!0x0;if(!_0x52817a&&_0x121615(_0x4c02dd,_0x266cf0))return _0x4c4dba['_joinSuggestions'](_0x2ad8a7,_0x27d205),_0x4a8b99['delete'](_0x27d205),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32bdb0,_0x2da905){if(_0x32bdb0['isMultiRange']){for(const _0x5ce288 of _0x2da905['getRanges']())_0x32bdb0['addRange'](_0x5ce288);}else{const _0x121775=_0x2da905['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32bdb0,this['_model']['createRange'](_0x32bdb0['getFirstRange']()['start'],_0x121775));}_0x2da905['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f083f,_0x2e90ee,_0x30e796){const _0x29a63d=_0x3f083f['startsWith']('format')||_0x3f083f['startsWith']('attribute')?'FORMATTING':_0x3f083f['toUpperCase']();return c(this['editor']['locale'],_0x2e90ee+'_'+_0x29a63d+'_SUGGESTION_ANNOUNCEMENT',_0x30e796);}['_initAriaMarkerChangeAnnouncements'](){const _0x36e318=this['editor'];if(!_0x36e318['ui'])return;const {ariaLiveAnnouncer:_0x1d2ac4}=_0x36e318['ui'];_0x252763(this['_model'],({left:_0x57e22f,entered:_0x69b6a9})=>{for(const _0x1d9857 of _0x57e22f){const {group:_0x194420,type:_0x11facc}=this['_splitMarkerName'](_0x1d9857['name']);if('suggestion'===_0x194420){_0x1d2ac4['announce'](this['_getMarkerAnnouncementText'](_0x11facc,'LEAVE'));break;}}for(const _0x5783e5 of _0x69b6a9){const {group:_0x308475,type:_0x53d892}=this['_splitMarkerName'](_0x5783e5['name']);if('suggestion'===_0x308475){_0x1d2ac4['announce'](this['_getMarkerAnnouncementText'](_0x53d892,'ENTER',_0x1b231d(_0x2cee65)));break;}}});}['_processAttributeChanges'](_0x2f9e0c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x347b01=this['editor'],_0x78302c=_0x347b01['model']['document']['differ']['getChanges']();if(0x0==_0x78302c['length'])return!0x1;const _0x5d4de4=[],_0x4ec0f9=_0x78302c['filter'](_0x4d211a=>'attribute'==_0x4d211a['type']),_0x5c1303=_0x78302c['filter'](_0x36d8b9=>'insert'==_0x36d8b9['type']&&'$text'!=_0x36d8b9['name']),_0x105a75=_0x78302c['filter'](_0x5429b8=>'remove'==_0x5429b8['type']&&'$text'!=_0x5429b8['name']);for(const _0x17d3c3 of _0x4ec0f9)_0x5d4de4['push']({'key':_0x17d3c3['attributeKey'],'newValue':_0x17d3c3['attributeNewValue'],'oldValue':_0x17d3c3['attributeOldValue'],'range':qt(_0x17d3c3['range'],_0x347b01['model'])});for(const _0x5d63f1 of _0x5c1303){const _0x4ea7a6=_0x105a75['find'](_0x40f903=>_0x40f903['position']['isEqual'](_0x5d63f1['position']));_0x4ea7a6&&_0x5d4de4['push']({'key':u,'newValue':_0x5d63f1['name'],'oldValue':_0x4ea7a6['name'],'range':_0x347b01['model']['createRangeOn'](_0x5d63f1['position']['nodeAfter'])});}return 0x0!=_0x5d4de4['length']&&this['_reduceExistingSuggestions'](_0x2f9e0c,_0x5d4de4);}['_processAttributeSuggestions'](_0x2829a7){let _0x36b7f3=!0x1;const _0x39b3e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10d718=>_0x10d718['data']['newRange']&&_0x10d718['name']['startsWith']('suggestion:attribute:'));for(const _0x1527d of _0x39b3e5){const {subType:_0x211f85,id:_0xcb83ac}=this['_splitMarkerName'](_0x1527d['name']),_0x4bcbe2=_0x211f85['split']('|')[0x0];for(const _0x2d35df of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d35df['id']!=_0xcb83ac&&'attribute'==_0x2d35df['type']&&_0x2d35df['data']&&_0x2d35df['data']['key']==_0x4bcbe2&&_0x2d35df['getFirstRange']()['isIntersecting'](_0x1527d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d35df,_0x1527d['data']['newRange'],_0x2829a7),_0x36b7f3=!0x0);}return _0x36b7f3;}['_recordAttributeChanges'](_0x263f25){this['_recordAttributeSuggestions']=!0x0,_0x263f25();}['_isRegisteredAttribute'](_0x376d6a){const _0x4daeaa=this['_isBlockAttribute'](_0x376d6a),_0xe2a460=this['_inlineAttributeKeys']['has'](_0x376d6a);return _0x4daeaa||_0xe2a460;}['_reduceExistingSuggestions'](_0x53e238,_0x22cfc3){if(0x0==_0x22cfc3['length'])return!0x1;let _0x3c688d=!0x1;for(const _0x469ecd of _0x22cfc3){const _0x190ac9=this['_findSuggestions'](_0x469ecd['range'],'attribute')['filter'](_0xc82aac=>!_0xc82aac['meta']['isNextTo'])['map'](_0x55e2e9=>_0x55e2e9['suggestion']),_0x2b4031=_0x3d6420({'newValue':_0x469ecd['newValue']});_0x190ac9['filter'](_0x4b2839=>{const [_0x110903,_0x13a376]=_0x4b2839['subType']['split']('|');return _0x110903==_0x469ecd['key']&&_0x13a376!=_0x2b4031;})['forEach'](_0x53ca48=>{this['_reduceSuggestionAttributeRange'](_0x53ca48,_0x469ecd['range'],_0x53e238),_0x3c688d=!0x0;});}return _0x3c688d;}['_reduceSuggestionAttributeRange'](_0x24f150,_0xf014d4,_0x25b2b2){const _0x37b9cf=_0x24f150['getFirstRange']()['getDifference'](_0xf014d4);0x0!==_0x37b9cf['length']?0x1!==_0x37b9cf['length']?this['_breakSuggestionMarker'](_0x24f150,_0xf014d4['start'],_0xf014d4['end']):this['_setSuggestionRange'](_0x24f150,_0x37b9cf[0x0]):_0x25b2b2['removeMarker'](_0x24f150['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa283d9){this['_editor']=_0xa283d9,this['_model']=_0xa283d9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x179f48,_0x4d587f,_0x47fffc,_0x5b4675,_0x115547,_0x4c1db8,_0x51b82e){return new o(this['_model'],{'type':_0x179f48,'subType':_0x4d587f,'id':_0x47fffc,'originalSuggestionId':_0x51b82e,'author':_0x5b4675,'creator':_0x5b4675,'attributes':_0x115547,'onAttributesChange':_0x4c1db8,'onAccept':(..._0x299147)=>this['getSuggestionCallback'](_0x179f48,_0x4d587f,'accept')(..._0x299147),'onDiscard':(..._0x1dfbe7)=>this['getSuggestionCallback'](_0x179f48,_0x4d587f,'discard')(..._0x1dfbe7)});}['registerCustomCallback'](_0x85025d,_0x8e81d0,_0x128989,_0x2c525a){const _0x583014=_0x85025d+':'+_0x8e81d0+':'+_0x128989;this['_customCallbacks']['set'](_0x583014,_0x2c525a);}['getSuggestionCallback'](_0x9acd4e,_0x173af6,_0x226816){const _0x5e1695=_0x9acd4e+':'+_0x173af6+':'+_0x226816;return this['_customCallbacks']['get'](_0x5e1695)||this['_defaultCallbacks']['get'](_0x9acd4e+':'+_0x226816);}['_registerDefaultCallbacks'](){const _0x381158=()=>!0x1,_0x5b076c=_0x2faec5=>{_0x2faec5['sort']((_0x358910,_0xdac151)=>_0x358910['start']['isBefore'](_0xdac151['start'])?0x1:-0x1),this['_model']['change'](_0xd9c6ca=>{for(const _0x128479 of _0x2faec5){let _0x5829b2;_0x5829b2=_0x128479['end']['isAtEnd']&&_0x128479['end']['parent']==_0x128479['start']['nodeAfter']?_0xd9c6ca['createSelection'](_0x128479['start']['nodeAfter'],'on'):_0xd9c6ca['createSelection'](_0x128479),this['_model']['deleteContent'](_0x5829b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x531f0e=(_0x179baa,_0x361357)=>{_0x361357&&this['_model']['change'](_0x54a5e3=>{const {commandName:_0xf18b92,commandParams:_0x5e52ea=[]}=_0x361357,_0x5db3cb=_0x179baa['map'](_0x5565c8=>(Lt(_0x5565c8)&&(_0x5565c8=this['_model']['createRange'](_0x5565c8['end'])),_0x5565c8))['filter'](_0x297db2=>'$graveyard'!==_0x297db2['root']['rootName']);if(_0x5db3cb['length']<0x1)return;const _0x370e15=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x51f973=>_0x275766['fromRange'](_0x51f973));_0x54a5e3['setSelection'](_0x5db3cb);for(const _0x2c8ec6 of this['_editor']['commands']['commands']())_0x2c8ec6['refresh']();_0x5e52ea['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf18b92,..._0x5e52ea);const _0x5d2ba5=_0x370e15['filter'](_0x2ae1a0=>'$graveyard'!=_0x2ae1a0['root']['rootName']);_0x5d2ba5['length']>0x0&&_0x54a5e3['setSelection'](_0x5d2ba5);for(const _0x2bfe43 of _0x370e15)_0x2bfe43['detach']();});},_0x478542=(_0x5e6484,_0xb30d63)=>0x1==_0x5e6484['length']&&0x1==_0xb30d63['length']&&_0x5e6484[0x0]['end']['isEqual'](_0xb30d63[0x0]['start']),_0x1033a1=(_0x54a31d,_0x11c24c,_0x47e988,_0x2f651d)=>Wt(_0x54a31d,_0x11c24c,_0x47e988,_0x2f651d)?[_0x54a31d,_0x11c24c]:Wt(_0x11c24c,_0x54a31d,_0x2f651d,_0x47e988)?[_0x11c24c,_0x54a31d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x381158),this['_defaultCallbacks']['set']('insertion:discard',_0x5b076c),this['_defaultCallbacks']['set']('insertion:join',_0x478542),this['_defaultCallbacks']['set']('insertion:chain',_0x1033a1),this['_defaultCallbacks']['set']('deletion:accept',_0x5b076c),this['_defaultCallbacks']['set']('deletion:discard',_0x381158),this['_defaultCallbacks']['set']('deletion:join',_0x478542),this['_defaultCallbacks']['set']('deletion:chain',_0x1033a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x531f0e),this['_defaultCallbacks']['set']('formatInline:discard',_0x381158),this['_defaultCallbacks']['set']('formatInline:join',_0x478542),this['_defaultCallbacks']['set']('formatInline:chain',_0x381158),this['_defaultCallbacks']['set']('formatBlock:accept',_0x531f0e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x381158),this['_defaultCallbacks']['set']('formatBlock:join',_0x478542),this['_defaultCallbacks']['set']('formatBlock:chain',_0x381158),this['_defaultCallbacks']['set']('attribute:accept',_0x381158),this['_defaultCallbacks']['set']('attribute:discard',(_0xb3f2c,_0x3f9da7)=>{if(!_0x3f9da7)return;const _0x21bb0f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3008db=>{if(_0x3f9da7['key']==u)for(const _0x5b5a53 of _0xb3f2c){const _0x347cce=_0x5b5a53['start']['nodeAfter'],_0x46bc08=_0x3f9da7['oldValue'];_0x3008db['rename'](_0x347cce,_0x46bc08);}else{if(_0x21bb0f['_isBlockAttribute'](_0x3f9da7['key'])){for(const _0x5c3da6 of _0xb3f2c)void 0x0!==_0x3f9da7['oldValue']?_0x3008db['setAttribute'](_0x3f9da7['key'],_0x3f9da7['oldValue'],_0x5c3da6['start']['nodeAfter']):_0x3008db['removeAttribute'](_0x3f9da7['key'],_0x5c3da6['start']['nodeAfter']);}else{for(const _0x545f34 of _0xb3f2c)_0x3f9da7['oldValue']?_0x3008db['setAttribute'](_0x3f9da7['key'],_0x3f9da7['oldValue'],_0x545f34):_0x3008db['removeAttribute'](_0x3f9da7['key'],_0x545f34);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x478542);}}function Gt(_0x49eb7c,_0x27c004,_0x80895d){for(const _0x1c546e of _0x27c004['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c546e['root']==_0x1c546e)return!0x1;if(!_0x80895d['containsItem'](_0x1c546e))return!0x1;if(_0x49eb7c['isObject'](_0x1c546e)||_0x49eb7c['isLimit'](_0x1c546e))return!0x0;}return!0x1;}function Lt(_0x4f530e){return _0x4f530e['end']['parent']==_0x4f530e['start']['nodeAfter']&&_0x4f530e['end']['isAtStart'];}function Jt(_0x37930a,_0x2e9465,_0x1ab0e8,_0x191f95){const _0x42e794=_0x5d3e3d=>!_0x5d3e3d['item']['is']('$textProxy')&&!_0x191f95['isObject'](_0x5d3e3d['item']),_0x441b49=_0x37930a['start']['getLastMatchingPosition'](_0x42e794),_0x530ca6=_0x37930a['end']['getLastMatchingPosition'](_0x42e794,{'direction':'backward'});return(!_0x37930a['start']['isEqual'](_0x441b49)||!_0x37930a['end']['isEqual'](_0x530ca6))&&(_0x441b49['isBefore'](_0x530ca6)?_0x1ab0e8['updateMarker'](_0x2e9465,{'range':_0x1ab0e8['createRange'](_0x441b49,_0x530ca6)}):_0x1ab0e8['removeMarker'](_0x2e9465),!0x0);}function Kt(_0x1d4fc6){return _0x3d6420(_0x1d4fc6);}function Ht(_0x3f5373){const _0x34f7a2=_0x3f5373['start']['nodeAfter'];return _0x34f7a2&&_0x34f7a2['is']('element');}function qt(_0x11e191,_0x1bf3c8){return null==_0x11e191['end']['nodeBefore']&&_0x11e191['end']['parent']==_0x11e191['start']['nodeAfter']?zt(_0x11e191['start']['nodeAfter'],_0x1bf3c8):_0x11e191;}function zt(_0x476680,_0x24dcf2){const _0x545eeb=_0x24dcf2['schema']['isObject'](_0x476680)||_0x24dcf2['schema']['isSelectable'](_0x476680);return _0x24dcf2['createRange'](_0x24dcf2['createPositionAt'](_0x476680,'before'),_0x545eeb?_0x24dcf2['createPositionAfter'](_0x476680):_0x24dcf2['createPositionAt'](_0x476680,'end'));}function Wt(_0x5c7a38,_0x323124,_0x3cae1c,_0x385035){return!!Qt(_0x5c7a38,_0x323124)&&_0x3cae1c['end']['isEqual'](_0x385035['start']);}function Qt(_0x34c9ac,_0xd86420){if(!_0x34c9ac['_isDataLoaded']||!_0xd86420['_isDataLoaded'])return!0x1;const _0x3a17ba=new Set(Object['keys'](_0x34c9ac['attributes'])),_0x4f3fae=new Set(Object['keys'](_0xd86420['attributes']));if(_0x3a17ba['delete']('groupId'),_0x4f3fae['delete']('groupId'),0x0==_0x3a17ba['size']&&0x0==_0x4f3fae['size'])return!0x0;if(_0x3a17ba['size']!=_0x4f3fae['size'])return!0x1;const _0x5ea1a4={..._0x34c9ac['attributes']},_0x4a109e={..._0xd86420['attributes']};return delete _0x5ea1a4['groupId'],delete _0x4a109e['groupId'],JSON['stringify'](_0x5ea1a4)==JSON['stringify'](_0x4a109e);}function Xt(_0x3dc565,_0x34dca8){const _0x1d5073=Yt(_0x3dc565['attributes']),_0x31188e=Yt(_0x34dca8);if(!_0x3dc565['_isDataLoaded'])return!0x1;for(const _0x5d7041 of Object['keys'](_0x31188e))if(!_0x439f28(_0x1d5073[_0x5d7041],_0x31188e[_0x5d7041]))return!0x1;return!0x0;}function Yt(_0x1b932b){const _0x131def=Object['assign']({},_0x1b932b);return delete _0x131def['skipNestingCheck'],delete _0x131def['tablePasteChainId'],_0x131def;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x21885c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x42d50c,_0xe825db,_0x265399,_0x58969a){super(),this['model']=_0xe825db,this['view']=_0x265399,this['commentThreadController']=_0x58969a,this['_editor']=_0x42d50c,this['_acceptCommand']=_0x42d50c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x42d50c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bdfbf,_0x3ce183)=>_0x3bdfbf||_0x3ce183),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x895eda=>_0x895eda&&this['_editor']['model']['canEditAt'](_0xe825db['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d4961=>_0x5d4961&&this['_editor']['model']['canEditAt'](_0xe825db['getRanges']())),this['_pendingAction']=null,_0x265399['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x265399,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x265399,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x265399,'change:isDirty',()=>{_0x265399['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 _0x279c01=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x279c01);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x254aba{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d6a40,_0x220759,_0x7d2932,_0x462310){super(_0x4d6a40),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3fde59(_0x4d6a40,c(_0x4d6a40,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x220759['authoredAt']),this['bind']('authoredAt')['to'](_0x220759),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',_0x220759,'authoredAt',this,'descriptionParts',(_0x2446fd,_0x45b859,_0x2b8ea8)=>{const _0x538937=_0x2b8ea8['map'](_0x4aae13=>ls(_0x4aae13['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2446fd-0x1,_0x220759['author']['name'],_0x45b859?_0x462310['formatDateTime'](_0x45b859):'',new DOMParser()['parseFromString'](_0x538937,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a4980(),this['focusTracker']=new _0x4ae692(),this['keystrokes']=new _0x2e95d7(),this['focusCycler']=new _0x4a7472({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13d07c=>_0x13d07c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x220759,this['_localUser']=_0x7d2932,this['_config']=_0x462310,_0x462310['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x210702(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1631b6}=this['_config'];this['commentsListView']=new _0x1631b6(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',_0x151ffe=>_0x151ffe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x538006,_0x5c6c16)=>_0x538006||!!_0x5c6c16);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48c2ea}=this['_config'],_0x20ecd2=new _0x48c2ea(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x191cb5=_0x20ecd2['commentInputView'];return _0x20ecd2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x191cb5,'value',(_0x349873,_0x32d618,_0x4160f7)=>!!_0x4160f7||_0x349873&&!_0x32d618),_0x191cb5['on']('submit',(_0x55fde2,_0xfaa656)=>{this['fire']('addComment',_0xfaa656),_0x191cb5['editor']['setData']('');}),_0x191cb5['on']('cancel',()=>this['focus']()),_0x191cb5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x20ecd2;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4e940,_0x34de84,_0x3a0fc7,_0x3cfb1a){super(_0x4e940,_0x34de84,_0x3a0fc7,_0x3cfb1a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e9eaf=>_0x4e9eaf&&_0x4e9eaf[0x0]?_0x4e9eaf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x21e505,_0x5b2e80)=>{let _0x30dfa6='';for(const _0x50eb56 of _0x21e505)_0x30dfa6+='<p>'+ls(_0x50eb56['content'],_0x50eb56['color'])+'</p>';return _0x5b2e80?_0x30dfa6:ti(_0x30dfa6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3cfb1a['SuggestionView'](_0x4e940,_0x34de84,{'formatDateTime':_0x3cfb1a['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 _0x4815bd=this['bindTemplate'],_0x88be3=[this['suggestionView']];return this['commentsListView']&&_0x88be3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x88be3['push'](this['commentThreadInputView']),_0x88be3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4815bd['if']('isActive','ck-suggestion-wrapper--active'),_0x4815bd['to']('type',_0x40bb22=>'ck-suggestion-'+_0x40bb22),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':_0x4815bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x88be3};}['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 _0x254aba{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x18fb5c,_0x11008d,_0x1c6fdd){super(_0x18fb5c),this['_model']=_0x11008d,this['_config']=_0x1c6fdd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x11008d),this['acceptButton']=this['_createButton'](c(_0x18fb5c,'Accept\x20suggestion'),_0x252edb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x18fb5c,'Discard\x20suggestion'),_0x454f62,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b925e(_0x18fb5c,_0x11008d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a4980([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ae692(),this['keystrokes']=new _0x2e95d7(),this['focusCycler']=new _0x4a7472({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38b5f0=>_0x38b5f0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x175bbe=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x175bbe['innerHTML']=this['description'],this['on']('change:description',(_0xf2c8ee,_0x3b5ee1,_0x2ae9aa)=>{_0x175bbe['innerHTML']=_0x2ae9aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x71416e=this['bindTemplate'],_0x55cc1e=[{'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':_0x71416e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x71416e['to']('authoredAt',_0xa65d28=>this['_config']['formatDateTime'](_0xa65d28))}]}]},{'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']&&_0x55cc1e['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':_0x55cc1e}]};}['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'](_0x22eb0c,_0x5f0835,_0x502713,_0x157919,_0x1fc911){const _0x1b4609=new _0x14a78a(this['locale']);return _0x1b4609['set']({'label':_0x22eb0c,'icon':_0x5f0835,'tooltip':!0x0,'tooltipPosition':_0x1fc911}),_0x1b4609['extendTemplate']({'attributes':{'class':_0x502713}}),_0x1b4609['on']('execute',()=>{this['fire'](_0x157919,this['_model']['id']);}),_0x1b4609;}['_setupKeyboardNavigation'](){const _0x3e01f2=this['element'];this['keystrokes']['listenTo'](_0x3e01f2);for(const _0x1661f7 of this['focusables'])this['focusTracker']['add'](_0x1661f7['element']),this['keystrokes']['listenTo'](_0x1661f7['element']);this['keystrokes']['set']('enter',(_0x1c8d18,_0x54d69a)=>{_0x3e01f2===_0x1c8d18['target']&&(this['focusCycler']['focusFirst'](),_0x54d69a());}),this['keystrokes']['set']('esc',(_0x43860b,_0x4dbf48)=>{_0x3e01f2!==_0x43860b['target']&&(this['focus'](),_0x4dbf48());});}}class d extends _0x31a850{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x45c096,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ac685){super(_0x2ac685),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d3b93=this['editor']['config'];_0x1d3b93['define']('trackChanges.SuggestionThreadView',fe),_0x1d3b93['define']('trackChanges.SuggestionView',we),_0x1d3b93['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d3b93['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5468c3,_0x4d7178){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x562825,_0x2cd358]of this['_handleControllerBuffer']){const _0x4de653=this['_suggestionToController']['has'](_0x562825);_0x4de653||_0x2cd358?_0x4de653&&_0x2cd358&&this['_destroyController'](_0x562825):this['_initializeController'](_0x562825);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5468c3,_0x4d7178);}['init'](){const _0x219867=this['editor'],_0x329b4a=_0x219867['plugins']['get']('TrackChangesEditing'),_0xe1cd9f=_0x219867['plugins']['get']('Annotations'),_0x3c7cba=_0x219867['plugins']['get']('EditorAnnotations'),_0x6385c8=_0x219867['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c7cba['addSourceCollector'](()=>{const _0x18e71b=[];for(const [_0x4342f9,_0x20c066]of Array['from'](this['_suggestionToController'])){const _0x21afda=_0x4342f9['getAllAdjacentSuggestions'](),_0x4b40f4=[];for(const _0x2e402d of _0x21afda){if(!_0x2e402d['isInContent'])continue;if(_0x2e402d['isMultiRange']){_0x4b40f4['push'](..._0x2e402d['getRanges']());continue;}const _0x42d826=_0x2e402d['getFirstRange']();if(_0x4b40f4['length']>0x0){const _0x2bd7bb=_0x4b40f4[0x0]['getJoined'](_0x42d826);if(_0x2bd7bb){_0x4b40f4[0x0]=_0x2bd7bb;continue;}}_0x4b40f4['push'](_0x42d826);}_0x18e71b['push']([_0x20c066['view'],_0x4b40f4]);}return _0x18e71b;}),this['listenTo'](_0x329b4a,'suggestionLoaded',(_0x92b2a2,_0x2050b6)=>{this['listenTo'](_0x2050b6,'change:previous',(_0x20a8ba,_0xb5cddc,_0x124559,_0x3dd45f)=>{_0x2050b6['isInContent']&&(null==_0x124559?(this['_updateController'](_0x3dd45f['head']),this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x1)):(this['_updateController'](_0x124559['head']),null==_0x3dd45f&&this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x0)));}),null!==_0x2050b6['previous']?this['_updateController'](_0x2050b6['head']):this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x1);}),this['listenTo'](_0x329b4a,'suggestionUnloaded',(_0x45c76c,_0x1fc912,_0x40654e)=>{this['stopListening'](_0x1fc912,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1fc912),this['_suggestionToController']['has'](_0x1fc912)&&this['_destroyController'](_0x1fc912),_0x40654e&&this['_updateController'](_0x40654e['head']);}),this['listenTo'](_0x329b4a,'suggestionChanged',(_0x57c55b,_0x427f1d)=>{this['_updateController'](_0x427f1d);}),this['listenTo'](_0xe1cd9f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x6385c8,'addComment',(_0xcbc698,{threadId:_0x4682ac,isFromAdapter:_0x4d9963})=>{if(_0x4d9963||!_0x329b4a['hasSuggestion'](_0x4682ac))return;const _0xc6529e=_0x329b4a['getSuggestion'](_0x4682ac);this['_suggestionToController']['get'](_0xc6529e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3784f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dc245;for(const _0x494291 in _0x3784f3){const _0x4d8fa9=_0x494291,_0x36776a=_0x3784f3[_0x4d8fa9];if('trackChangesLicenseKeyValid'==_0x36776a||'trackChangesLicenseKeyInvalid'==_0x36776a||'trackChangesLicenseKeyExpired'==_0x36776a||'trackChangesLicenseKeyDomainLimit'==_0x36776a||'trackChangesLicenseKeyNotAllowed'==_0x36776a||'trackChangesLicenseKeyEvaluationLimit'==_0x36776a||'trackChangesLicenseKeyTrialLimit'==_0x36776a||'trackChangesLicenseKeyUsageLimit'==_0x36776a){delete _0x3784f3[_0x4d8fa9],_0x5dc245=_0x36776a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5dc245&&_0x3784f3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5dc245&&_0x3784f3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5dc245&&_0x3784f3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x18212f=this['editor']['plugins']['get']('Annotations'),_0x5caac2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e81e=Array['from'](_0x18212f['activeAnnotations'],_0x1a196e=>_0x1a196e['innerView'])['filter'](_0x2e9a32=>this['_viewToController']['has'](_0x2e9a32)),_0x323b5c=[];for(const _0x84853e of _0x47e81e){const _0x19c4c9=this['_viewToController']['get'](_0x84853e)['model']['getAllAdjacentSuggestions']();_0x323b5c['push'](..._0x19c4c9['reduce']((_0x3e28ad,_0x421312)=>[..._0x3e28ad,..._0x421312['getMarkerNames']()],[]));}_0x5caac2['activeMarkers']=_0x323b5c;}['_addUIComponentsToFactory'](){const _0x3bd216=this['editor'],_0x2c3d1d=_0x3bd216['locale'],_0x152c6e=c(_0x2c3d1d,'Track\x20changes'),_0xcf1a88=new _0x2a6a53([{'type':'switchbutton','model':new _0x19c07f({'withText':!0x0,'isToggleable':!0x0,'label':_0x152c6e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3bd216['plugins']['has']('TrackChangesPreview')&&_0xcf1a88['addMany']([{'type':'separator'},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3a94f8 of _0xcf1a88)if(ke(_0x3a94f8)){const _0x378a44=_0x3bd216['commands']['get'](_0x3a94f8['model']['commandName']);_0x3a94f8['model']['bind']('isOn','isEnabled')['to'](_0x378a44,'value','isEnabled');}_0x3bd216['ui']['componentFactory']['add']('trackChanges',_0x587203=>this['_createToolbarButton'](_0x587203,_0xcf1a88,_0x152c6e)),_0x3bd216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44722b=>this['_createMenuBarMenu'](_0x44722b,_0xcf1a88,_0x152c6e));}['_createToolbarButton'](_0x5d2cdb,_0x2cca8d,_0x562b10){const _0x9bb0b=_0x4704a3(_0x5d2cdb,_0x4a4c5d),_0x51b608=this['editor']['commands']['get']('trackChanges');_0x9bb0b['buttonView']['set']({'tooltip':_0x562b10,'label':_0x562b10,'icon':_0x24a931}),_0x9bb0b['buttonView']['bind']('isOn')['to'](_0x51b608,'value'),_0x9bb0b['buttonView']['on']('execute',()=>{_0x51b608['execute'](),this['editor']['editing']['view']['focus']();}),_0x29a0cc(_0x9bb0b,_0x2cca8d,{'role':'menu'});const _0x6405b9=[];for(const _0x10a854 of _0x2cca8d)ke(_0x10a854)&&_0x6405b9['push'](this['editor']['commands']['get'](_0x10a854['model']['commandName']));const _0x5f3a9b=_0x9bb0b['buttonView'];return _0x5f3a9b['actionView']['unbind']('isEnabled'),_0x5f3a9b['arrowView']['unbind']('isEnabled'),_0x5f3a9b['actionView']['bind']('isEnabled')['to'](_0x51b608,'isEnabled'),_0x5f3a9b['arrowView']['bind']('isEnabled')['toMany'](_0x6405b9,'isEnabled',(..._0x1882b0)=>_0x1882b0['some'](_0x529c5d=>_0x529c5d)),_0x9bb0b['on']('execute',_0x5981b8=>{this['editor']['execute'](_0x5981b8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x9bb0b;}['_createMenuBarMenu'](_0x3336d5,_0x80f14e,_0x54d57a){const _0x16f28c=new _0x3eb7ca(_0x3336d5),_0x59eac5=this['editor']['commands']['get']('trackChanges');_0x16f28c['buttonView']['set']({'label':_0x54d57a,'icon':_0x24a931});const _0x54400d=new _0x741bb6(_0x3336d5);for(const _0x284fe6 of _0x80f14e){if('separator'==_0x284fe6['type']){_0x54400d['items']['add'](new _0x280b7c(_0x3336d5));continue;}const _0x5017ec=new _0x4709cb(_0x3336d5,_0x16f28c),_0x2e637d=new _0x2055c7(_0x3336d5),_0x48c8db=_0x284fe6['model'];_0x2e637d['bind'](...Object['keys'](_0x48c8db))['to'](_0x48c8db),_0x2e637d['delegate']('execute')['to'](_0x16f28c),_0x2e637d['on']('execute',()=>{this['editor']['execute'](_0x48c8db['commandName']),this['editor']['editing']['view']['focus']();}),_0x5017ec['children']['add'](_0x2e637d),_0x54400d['items']['add'](_0x5017ec);}return _0x16f28c['bind']('isEnabled')['to'](_0x59eac5,'isEnabled'),_0x16f28c['panelView']['children']['add'](_0x54400d),_0x16f28c;}['_initializeController'](_0x54fee5){const _0x23ccc1=this['editor'],_0x31ccf1=_0x23ccc1['config'],_0x20fe71=_0x23ccc1['plugins']['get']('Annotations'),_0x1c0ed3=_0x23ccc1['plugins']['get']('CommentsRepository'),_0x58a704=_0x23ccc1['plugins']['get']('EditorAnnotations'),_0x1cbc64=_0x23ccc1['plugins']['get'](_0x45c096)['me'],_0x241162=_0x31ccf1['get']('trackChanges')['SuggestionThreadView'],_0x44b65f=_0x31ccf1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a461c,CommentThreadInputView:_0x2dcf19}=_0x23ccc1['plugins']['get']('CommentsUI');let _0x6d4938,_0x51a06c,_0x318ce8;this['_annotationViews']['has'](_0x54fee5['id'])?(_0x51a06c=this['_annotationViews']['get'](_0x54fee5['id']),_0x6d4938=_0x51a06c['mainView']):(_0x6d4938=new _0x241162(_0x23ccc1['locale'],_0x54fee5,_0x1cbc64,{'disableComments':this['_disableComments'],'editorConfig':{..._0x31ccf1['get']('comments.editorConfig'),'licenseKey':_0x31ccf1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x31ccf1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x31ccf1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x31ccf1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40d165(_0x31ccf1['get']('locale'),_0x23ccc1['locale']),'CommentView':_0x31ccf1['get']('comments')['CommentView'],'CommentsListView':_0x4a461c,'CommentThreadInputView':_0x2dcf19,'SuggestionView':_0x44b65f}),_0x6d4938['suggestionView']['acceptButton']['on']('execute',()=>{_0x23ccc1['editing']['view']['focus']();}),_0x6d4938['suggestionView']['discardButton']['on']('execute',()=>{_0x23ccc1['editing']['view']['focus']();}),_0x51a06c=_0x20fe71['createAnnotationView'](this['editor']['locale'],_0x6d4938),_0x51a06c['bind']('isDirty')['to'](_0x6d4938,'isDirty'),_0x51a06c['bind']('length')['to'](_0x6d4938),_0x51a06c['bind']('type')['to'](_0x6d4938,'type',_0x42bc03=>'suggestion-'+_0x42bc03),_0x6d4938['on']('escape',()=>{_0x318ce8['fire']('escape');}),this['_annotationViews']['set'](_0x54fee5['id'],_0x51a06c));const _0x19948f=_0x1c0ed3['createCommentThreadController'](_0x54fee5['commentThread'],_0x6d4938),_0x50593d=new pe(_0x23ccc1,_0x54fee5,_0x6d4938,_0x19948f),_0x43fbc6=_0x54fee5['getAllAdjacentSuggestions']()['filter'](_0x3f8135=>_0x3f8135['isInContent']);_0x6d4938['descriptionParts']=_0x23ccc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x43fbc6),this['_suggestionToController']['set'](_0x54fee5,_0x50593d),this['_viewToController']['set'](_0x6d4938,_0x50593d),_0x318ce8=_0x20fe71['createAnnotation']({'view':_0x51a06c,'target':()=>{const _0x548e07=[],_0x561436=_0x54fee5['getAllAdjacentSuggestions']()['filter'](_0xe01618=>_0xe01618['isInContent']);for(const _0x38d082 of _0x561436)_0x548e07['push'](..._0x38d082['getMarkers']());return _0x521180(_0x23ccc1['editing'],_0x548e07);},'type':()=>'suggestion-'+_0x50593d['view']['type']}),_0x1c0ed3['_bindAnnotationToEditors'](_0x6d4938,_0x318ce8),_0x20fe71['add'](_0x318ce8),_0x58a704['registerAnnotation'](_0x318ce8);}['_destroyController'](_0xedeaad){const _0x20a99b=this['editor']['plugins']['get']('CommentsRepository'),_0xafe05f=this['editor']['plugins']['get']('Annotations'),_0xdb67be=this['_suggestionToController']['get'](_0xedeaad),_0x12340b=_0xdb67be['view'],_0x200550=_0xafe05f['getByInnerView'](_0x12340b);_0x20a99b['_unbindEditors'](_0x12340b),_0x200550&&_0xafe05f['remove'](_0x200550),this['_suggestionToController']['delete'](_0xedeaad),this['_viewToController']['delete'](_0x12340b),_0xdb67be['destroy']();}['_updateController'](_0x35ca63){if(!_0x35ca63['isInContent']||!this['_suggestionToController']['has'](_0x35ca63))return;const _0x4bd1d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac6120=this['_suggestionToController']['get'](_0x35ca63),_0x461717=_0x35ca63['getAllAdjacentSuggestions']();_0xac6120['view']['descriptionParts']=_0x4bd1d3['descriptionFactory']['getDescriptions'](_0x461717);}['destroy'](){for(const _0x505457 of this['_suggestionToController']['keys']())this['_destroyController'](_0x505457);for(const _0x2391c0 of this['_annotationViews']['values']())_0x2391c0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4be264){return'model'in _0x4be264;}class k extends _0x31a850{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x37d415){this['editor']['plugins']['get'](p)['adapter']=_0x37d415;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x54aff8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x54aff8);}['getSuggestions']({skipNotAttached:_0x554a91=!0x1,toJSON:_0x447fcc=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x554a91,'toJSON':_0x447fcc});}['getSuggestion'](_0x1542c1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1542c1);}}const w=['Pagination'];class T extends _0x31a850{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x11d2a3=this['editor'];if(_0x11d2a3['config']['define']('trackChangesData.editorCreator',_0x751ca5=>{const _0xad622a=_0x11d2a3['model']['document']['getRootNames']()['reduce']((_0x4a7b3d,_0x4c52c6)=>(_0x4a7b3d[_0x4c52c6]='',_0x4a7b3d),{});return _0x11d2a3['constructor']['create'](_0xad622a,_0x751ca5);}),'function'!=typeof _0x11d2a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x5121be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x507f7b){return N(this['editor'],!0x0,_0x507f7b);}['getDataWithDiscardedSuggestions'](_0x432054){return N(this['editor'],!0x1,_0x432054);}}class D extends _0x31a850{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf344a){function _0x1aee6a(_0x2a379e){return _0x2a379e['map'](_0x17f1d2=>String['fromCharCode'](_0x17f1d2))['join']('');}super(_0xbf344a),this['result']='end',_0xbf344a[_0x1aee6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aee6a([0x76,0x69,0x65,0x77])][_0x1aee6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aee6a([0x61,0x75,0x74,0x6f]),_0xbf344a[_0x1aee6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1aee6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aee6a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1aee6a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1aee6a([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(_0x5cb245){return void 0x0!==_0x5cb245['getRootsAttributes'];}async function N(_0x3e89b3,_0x37ea32,_0x3d63e9){const _0x56d566=_0x4987e8(_0x3e89b3,w);_0x56d566['plugins']['push'](p,D),_0x56d566['rootsAttributes']=Ge(_0x3e89b3)?_0x3e89b3['getRootsAttributes']():void 0x0;const _0x3352fc=document['createDocumentFragment'](),_0x1d0e31=_0x3e89b3['config']['get']('trackChangesData')['editorCreator'],_0x4ae5b7=await _0x1d0e31(_0x56d566,()=>function(_0x164eaf){const _0x1cbe0a=document['createElement']('div');return _0x164eaf['appendChild'](_0x1cbe0a),_0x1cbe0a;}(_0x3352fc));!function(_0x3a8c7b,_0x5e3221){const _0x11238b=_0x3a8c7b['model']['document']['getRootNames']()['reduce']((_0x264c80,_0xc8f74c)=>(_0x264c80[_0xc8f74c]=_0x3a8c7b['data']['get']({'rootName':_0xc8f74c}),_0x264c80),{}),_0x1f996c=_0x3a8c7b['plugins']['get']('Users')['users']['map'](_0x3ccbbe=>({'id':_0x3ccbbe['id'],'name':_0x3ccbbe['name']})),_0x5ef1ce=_0x3a8c7b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b3413=_0x3a8c7b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59ffb9=_0x5e3221['plugins']['get']('Users'),_0x609cda=_0x5e3221['plugins']['get']('TrackChangesEditing'),_0x1fa379=_0x5e3221['plugins']['get']('CommentsRepository');for(const _0x163477 of _0x1fa379['getCommentThreads']())_0x163477['remove']();for(const _0x80be53 of _0x1f996c)_0x59ffb9['getUser'](_0x80be53['id'])||_0x59ffb9['addUser'](_0x80be53);_0x59ffb9['me']||_0x59ffb9['useAnonymousUser']();for(const _0xcf7e91 of _0x1b3413)_0x1fa379['addCommentThread'](_0xcf7e91);for(const _0x1fdcdb of _0x5ef1ce)_0x609cda['addSuggestionData'](_0x1fdcdb);_0x5e3221['data']['set'](_0x11238b);}(_0x3e89b3,_0x4ae5b7),_0x4ae5b7['execute'](_0x37ea32?'acceptAllSuggestions':'discardAllSuggestions');const _0x944440=Ge(_0x4ae5b7)?_0x4ae5b7['getFullData'](_0x3d63e9):_0x4ae5b7['data']['get'](_0x3d63e9);return await _0x4ae5b7['destroy'](),_0x944440;}class Me extends _0x254aba{['options'];constructor(_0x1d2012,_0x3fd2ce){super(_0x1d2012),this['options']=_0x3fd2ce,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'](_0x285b2b,_0x102744){if(!this['element'])return;const _0x65fb08=[];for(const [_0x318b59,_0xf1e292]of _0x285b2b){const _0x2aef56=document['createElement']('div');_0x2aef56['setAttribute']('data-ck-root-name',_0x318b59),_0x2aef56['className']=_0xf1e292['classes']+'\x20ck-track-changes-preview__root-container',_0x2aef56['innerHTML']=_0xf1e292['content'],_0x65fb08['push'](_0x2aef56);}_0x102744(this['element'],_0x65fb08),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5136f2{constructor(_0x19b1bd){super(_0x19b1bd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x99d4f6=this['editor'],_0x52902b=_0x99d4f6['locale'],_0x7621a3=_0x99d4f6['plugins']['get']('Dialog');let _0x12836b;const _0x168786=function(_0x58cbac){const _0x5ef01f={};if('editables'in _0x58cbac['ui']['view']){for(const [_0x511792,_0x24c1c9]of Object['entries'](_0x58cbac['ui']['view']['editables']))_0x5ef01f[_0x511792]=_0x24c1c9['element'];}else _0x5ef01f[_0x58cbac['model']['document']['getRootNames']()[0x0]]=_0x58cbac['ui']['view']['editable']['element'];return _0x5ef01f;}(_0x99d4f6),_0x18ebdc=function(_0x4d8440){let _0x252115=0x0;for(const _0xdea2ba of Object['values'](_0x4d8440))_0x252115=Math['max'](_0x252115,_0xdea2ba['getBoundingClientRect']()['width']);let _0x7d338c=0x0;for(const _0x543e6 of Object['values'](_0x4d8440))_0x7d338c+=_0x543e6['getBoundingClientRect']()['height'];const _0x4b5b26=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3722ee=Math['min'](_0x7d338c,_0x4b5b26);return{'width':_0x252115,'height':_0x3722ee};}(_0x168786);_0x7621a3['show']({'id':'finalContentPreview','title':c(_0x52902b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x52902b,{'dialogRects':_0x18ebdc}),'onHide':()=>{_0x12836b['detachFromDom']();},'onShow':()=>{_0x99d4f6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x13d8cb=>{const _0x3bb7fc=this['_standarizeRootsData'](_0x13d8cb,_0x99d4f6,_0x168786);_0x7621a3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3bb7fc,_0x99d4f6['config']['get']('trackChanges.preview.renderFunction'));}),_0x12836b=new _0x5f4960(_0x52902b,[_0x7621a3['view']]),_0x12836b['attachToDom'](),_0x12836b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x99d4f6['once']('destroy',()=>{_0x12836b['detachFromDom']();});const _0x32863b=_0x7621a3['view']['headerView']['class'];_0x7621a3['view']['headerView']['class']=_0x32863b?_0x32863b+'\x20ck-reset_all':'ck-reset_all',_0x7621a3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x7621a3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1fde02=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f233e=_0x1fde02['previewMode'],_0x50e68f={};if('$labels'===_0x3f233e){for(const _0xa63b0e of _0x1fde02['getMergeFieldsIds']())_0x50e68f[_0xa63b0e]=_0x1fde02['getLabel'](_0xa63b0e)||_0xa63b0e;}else{const _0x39ca69='$defaultValues'===_0x3f233e?_0x1fde02['getDefaultValues']():_0x1fde02['getDataSetValues'](_0x3f233e,!0x0);for(const _0x5a2b67 of Object['entries'](_0x39ca69)){const [_0x2448dd,_0x1685cd]=_0x5a2b67;_0x50e68f[_0x2448dd]=null!==_0x1685cd?_0x1685cd:_0x1fde02['getLabel'](_0x2448dd)||_0x2448dd;}}return{'mergeFieldsData':_0x50e68f};}['_standarizeRootsData'](_0x55fdee,_0x449e6b,_0x38559d){let _0x3fbf54;if('string'==typeof _0x55fdee){const _0x4f4fba=_0x449e6b['model']['document']['getRootNames']()[0x0];_0x3fbf54={[_0x4f4fba]:_0x55fdee};}else _0x3fbf54=_0x55fdee;const _0x38b97b=this['_fixMediaEmbeds'](_0x3fbf54,_0x449e6b),_0x4b4d20=function(_0x1a32dd,_0x1d3f43){for(const [_0x4231b5,_0x1a96b2]of _0x1a32dd)_0x1a96b2['classes']=_0x1d3f43[_0x4231b5]['classList']['value']['replace']('ck-focused','');return _0x1a32dd;}(this['_sortRoots'](_0x449e6b)['reduce']((_0x2a81d9,_0x1b80e2)=>(_0x2a81d9['push']([_0x1b80e2,{'content':_0x38b97b[_0x1b80e2],'classes':''}]),_0x2a81d9),[]),_0x38559d);return _0x4b4d20;}['_fixMediaEmbeds'](_0x566b74,_0x53911a){if(!_0x53911a['plugins']['has']('MediaEmbedEditing'))return _0x566b74;const _0x15b690=_0x53911a['plugins']['get']('MediaEmbedEditing');for(const [_0x13eb67,_0x532a64]of Object['entries'](_0x566b74)){const _0x257e3f=document['createElement']('div');_0x257e3f['innerHTML']=_0x532a64,(_0x257e3f['querySelectorAll']('figure.media')['forEach'](_0x3586c3=>{const _0x544b86=_0x3586c3['querySelector']('oembed');if(_0x544b86){const _0x8507bb=_0x544b86['getAttribute']('url');if(_0x8507bb){const _0x38e788=_0x15b690['registry']['getMediaViewElement'](new _0x551d30(_0x53911a['editing']['view']['document']),_0x8507bb,{'elementName':'','renderForEditingView':!0x0}),_0x1ac985=document['createElement']('div');_0x1ac985['classList']['add']('ck-media__wrapper'),_0x38e788['render'](_0x1ac985,_0x53911a['editing']['view']['domConverter']),_0x544b86['replaceWith'](_0x1ac985);}}}),_0x566b74[_0x13eb67]=_0x257e3f['innerHTML']);}return _0x566b74;}['_sortRoots'](_0x310b54){if(!function(_0x462408){return void 0x0!==_0x462408['getRootsAttributes'];}(_0x310b54))return _0x310b54['model']['document']['getRootNames']();const _0x97cc7b=[],_0xb81a24=new Map();for(const _0x3de173 of _0x310b54['model']['document']['getRootNames']()){const _0x16881b=_0x310b54['editing']['view']['getDomRoot'](_0x3de173)['getClientRects']()['item'](0x0);_0x97cc7b['push'](_0x3de173),_0xb81a24['set'](_0x3de173,_0x16881b);}return _0x97cc7b['sort']((_0x4aae39,_0xb2c41b)=>{const _0x548625=_0xb81a24['get'](_0x4aae39),_0x502b91=_0xb81a24['get'](_0xb2c41b);return _0x548625['y']-_0x502b91['y']||_0x548625['x']-_0x502b91['x'];}),_0x97cc7b;}}class te extends _0x31a850{static get['requires'](){return[T,_0x4fc00c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x804f8c){super(_0x804f8c),_0x804f8c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x804f8c['config']['define']('trackChanges.preview.renderFunction',(_0x5ae173,_0x562d5b)=>{for(const _0x4f9586 of _0x562d5b)_0x5ae173['appendChild'](_0x4f9586);});}}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};