@ckeditor/ckeditor5-track-changes 46.0.0-alpha.4 → 46.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1ae931,Plugin as _0xccd55c,PendingActions as _0x3bc0b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59d332,ObservableMixin as _0x389d9b,uid as _0x427844,priorities as _0x850491,insertToPriorityArray as _0x2e014a,toArray as _0x1c6e8b,logWarning as _0x14c28e,getEnvKeystrokeText as _0x2a60c2,FocusTracker as _0x336cee,KeystrokeHandler as _0x1db80e,Collection as _0x52b0e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4d3828,IconCancel as _0x220b2c,IconTrackChanges as _0x2a8276}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x514438,View as _0x390189,ViewCollection as _0x164c10,FocusCycler as _0x435308,UIModel as _0xe74fc0,createDropdown as _0x3ec213,SplitButtonView as _0x23a6b0,addListToDropdown as _0x1ac0a4,MenuBarMenuView as _0x52984c,MenuBarMenuListView as _0x42add5,ListSeparatorView as _0x6bdc90,MenuBarMenuListItemView as _0x3d5b90,MenuBarMenuListItemButtonView as _0x51bfc9,BodyCollection as _0x49dc14,Dialog as _0xb00e44}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c60de,hashObject as _0x17437d,surroundingMarkersDetector as _0xfb66d9,FOCUS_ANNOTATION_KEYSTROKE as _0x59a850,AriaDescriptionView as _0x2805ed,setupThreadKeyboardNavigation as _0x4d2696,trimHtml as _0x33cbe5,UserView as _0x924866,LateFocusButtonView as _0x5dfb91,getDateTimeFormatter as _0x142fa3,getAllMarkersDomElementsSorted as _0x17848e,sanitizeEditorConfig as _0x423a1d}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x48434c,ModelLiveRange as _0x20b456,ModelLivePosition as _0x26ff4e,ViewDowncastWriter as _0x278fb4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x117925,toWidget as _0xc4712e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x460771,set as _0x519ddd,isEqual as _0x23cad6,unset as _0x50ac6c,omit as Ut}from'es-toolkit/compat';import{Delete as _0x202975,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d2f33}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x6b813f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1ae931{['_enabledCommands'];constructor(_0x9e8eb9,_0x3579f8){super(_0x9e8eb9),this['_enabledCommands']=_0x3579f8,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 _0x2947b6 of this['editor']['commands']['commands']())_0x2947b6['affectsData']&&!this['_enabledCommands']['has'](_0x2947b6)&&_0x2947b6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d6ec3 of this['editor']['commands']['commands']())_0x1d6ec3['affectsData']&&!this['_enabledCommands']['has'](_0x1d6ec3)&&_0x1d6ec3['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1ae931{['_suggestions'];constructor(_0xb13e25,_0x315b09){super(_0xb13e25),this['_suggestions']=_0x315b09,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbddae7){const _0x4fb82b=this['_suggestions']['get'](_0xbddae7);if(!_0x4fb82b)throw new _0x59d332('track-changes-accept-suggestion-not-found',this);const _0x4b6dcc=_0x4fb82b['getRanges']();this['editor']['model']['canEditAt'](_0x4b6dcc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4fb82b);}}class M extends _0x1ae931{['_suggestions'];constructor(_0x2c6348,_0x51b69b){super(_0x2c6348),this['_suggestions']=_0x51b69b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x190e56){const _0x38dd99=this['_suggestions']['get'](_0x190e56);if(!_0x38dd99)throw new _0x59d332('track-changes-discard-suggestion-not-found',this);const _0x5d3f8c=_0x38dd99['getRanges']();this['editor']['model']['canEditAt'](_0x5d3f8c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38dd99);}}function ls(_0xa106d2,_0x19fb7f){let _0x316a70='';return _0x316a70+=_0xa106d2['split']('*')['map']((_0x44c5eb,_0x59ad18)=>_0x59ad18%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x44c5eb)+'</span>':Yt(_0x44c5eb))['join'](''),_0x19fb7f&&(_0x316a70+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x19fb7f['value']+'\x22\x20title=\x22'+_0x19fb7f['title']+'\x22></span>'),_0x316a70;}function Yt(_0x195db6){const _0x46d0aa=document['createElement']('span');return _0x46d0aa['innerText']=_0x195db6,_0x46d0aa['innerHTML'];}function ts(_0x547150){return _0x547150['sort']((_0x187023,_0x277d0a)=>'attribute'===_0x187023['type']&&'attribute'!==_0x277d0a['type']?-0x1:'attribute'!==_0x187023['type']&&'attribute'===_0x277d0a['type']?0x1:'deletion'==_0x187023['type']&&'deletion'!=_0x277d0a['type']?-0x1:'deletion'!=_0x187023['type']&&'deletion'==_0x277d0a['type']?0x1:0x0);}function to(_0x258ae1,_0xd6e3a1){let _0x2b11e1,_0x2a4296=0x0;const _0x26f704=[],_0x1254e1=_0xd6e3a1['schema'];for(;_0x2a4296<_0x258ae1['length'];){const _0x1cbd2b=_0x258ae1[_0x2a4296],_0x213f96=_0x258ae1[_0x2a4296+0x1];_0x2b11e1||(_0x2b11e1=_0xd6e3a1['createPositionBefore'](_0x1cbd2b)),Zt(_0xd6e3a1,_0x1cbd2b,_0x213f96)||(_0x26f704['push'](_0xd6e3a1['createRange'](_0x2b11e1,_0x1254e1['isObject'](_0x1cbd2b)?_0xd6e3a1['createPositionAfter'](_0x1cbd2b):_0xd6e3a1['createPositionAt'](_0x1cbd2b,'end'))),_0x2b11e1=null),_0x2a4296++;}return _0x26f704;}function Zt(_0x1459d4,_0x583c7e,_0x541894){if(!_0x541894)return!0x1;const _0x2e176d=_0x1459d4['createPositionAfter'](_0x583c7e),_0xb53b2=_0x1459d4['createPositionBefore'](_0x541894);return _0x2e176d['isTouching'](_0xb53b2);}function rs(_0x41db03,_0x26d95b,_0x5aee2f){for(;_0x5aee2f['length'];){const _0x4d3ec4=_0x5aee2f['splice'](0x0,0x64);_0x41db03['change'](()=>{for(const _0x55fcbf of _0x4d3ec4)_0x55fcbf['isInContent']&&_0x26d95b['execute'](_0x55fcbf['id']);});}}class $ extends _0x1ae931{['_command'];['_suggestions'];constructor(_0xefa391,_0x5cad95,_0x3f3247){super(_0xefa391),this['_command']=_0x5cad95,this['_suggestions']=_0x3f3247,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f915e=Array['from'](this['_suggestions']['values']())['some'](_0x43d32b=>_0x43d32b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f915e;}['execute'](){const _0x584a38=ts(Array['from'](this['_suggestions']['values']()));for(const _0x206785 of _0x584a38){const _0x6b9364=_0x206785['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6b9364))return;}rs(this['editor']['model'],this['_command'],_0x584a38);}}class B extends _0x1ae931{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb7275e,_0x48626f,_0x41d855){super(_0xb7275e),this['_command']=_0x48626f,this['_suggestions']=_0x41d855,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6e5fa8=this['editor']['model']['document']['selection'],_0x4e0f43=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x584bf1,_0x5518cf){const _0x545d65=Array['from'](_0x584bf1['getRanges']()),_0x5073e4=new Set();for(const _0x5c23f7 of _0x5518cf)if(_0x5c23f7['isInContent']){for(const _0x5c82ee of _0x545d65)for(const _0x224f1c of _0x5c23f7['getRanges']())(_0x5c82ee['isIntersecting'](_0x224f1c)||_0x584bf1['isCollapsed']&&!_0x5c23f7['isMultiRange']&&_0x5c23f7['next']&&_0x224f1c['end']['isTouching'](_0x5c82ee['start']))&&_0x5073e4['add'](_0x5c23f7);}return _0x5073e4;}(_0x6e5fa8,_0x4e0f43),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5df777=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5d83e3 of _0x5df777){const _0x401222=_0x5d83e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x401222))return;}rs(this['editor']['model'],this['_command'],_0x5df777);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x389d9b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35f46d,_0x370bfe){super(),this['id']=_0x370bfe['id'],this['type']=_0x370bfe['type'],this['subType']=_0x370bfe['subType']||null,this['author']=_0x370bfe['author'],this['creator']=_0x370bfe['creator']||_0x370bfe['author'],this['isExternal']=Boolean(_0x370bfe['attributes']&&_0x370bfe['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x370bfe['originalSuggestionId']||null,this['_model']=_0x35f46d,this['_onAccept']=_0x370bfe['onAccept'],this['_onDiscard']=_0x370bfe['onDiscard'],this['_onAttributesChange']=_0x370bfe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x370bfe['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 _0x3d741b=this;for(;_0x3d741b['previous'];)_0x3d741b=_0x3d741b['previous'];return _0x3d741b;}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'](_0x1c04ef){this['_markerNames']['add'](_0x1c04ef);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c7907=>this['_model']['markers']['get'](_0x3c7907))['filter'](_0x3f86f7=>_0x3f86f7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3786a8=>{for(const _0x947723 of this['getMarkers']())_0x3786a8['removeMarker'](_0x947723);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c094a){this['_model']['change'](_0x18acac=>{_0x18acac['removeMarker'](_0x3c094a);}),this['_markerNames']['delete'](_0x3c094a);}['addRange'](_0x2d185e){const _0x382e70='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x382e70),this['_model']['change'](_0x80e9b1=>{_0x80e9b1['addMarker'](_0x382e70,{'range':_0x2d185e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e866){for(const _0x1cd258 of this['getRanges']())if(_0x1cd258['isIntersecting'](_0x1e866))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f9f1b=>_0x4f9f1b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xa66347,_0x56e008)=>[..._0xa66347,..._0x56e008['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xb23a07=this['getRanges']();if(0x1!=_0xb23a07['length'])return null;const _0x2fa581=_0xb23a07[0x0],_0x458754=_0x2fa581['start']['nodeAfter'],_0x577e1f=_0x2fa581['end']['nodeBefore'];return _0x458754 instanceof _0x48434c?_0x458754!=_0x577e1f?null:_0x458754: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 _0x1f2af7=[];let _0x202a00=this['head'];for(;_0x202a00;)_0x1f2af7['push'](_0x202a00),_0x202a00=_0x202a00['next'];return _0x1f2af7;}['setAttribute'](_0x249f20,_0xf31dfb){const _0x597496=_0x460771(this['attributes']);_0x519ddd(_0x597496,_0x249f20,_0xf31dfb),_0x23cad6(_0x597496,this['attributes'])||(this['attributes']=_0x597496,this['_onAttributesChange'](_0x597496));}['removeAttribute'](_0x444311){const _0x42f08f=_0x460771(this['attributes']);_0x50ac6c(_0x42f08f,_0x444311),_0x23cad6(_0x42f08f,this['attributes'])||(this['attributes']=_0x42f08f,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 _0x427844()['substr'](0x1,0x5);}}function o(_0x13d150,_0x5c3668,_0x11f307){const _0x1ac777=_0x13d150['t'],t=_0x13d150['t'];switch(_0x5c3668){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',_0x11f307);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11f307);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11f307);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11f307);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11f307);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',_0x11f307);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11f307);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',_0x11f307);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11f307);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11f307);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11f307);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11f307);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11f307);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x11f307);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11f307);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11f307);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11f307);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11f307);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11f307);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11f307);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11f307);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11f307);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11f307);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11f307);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x11f307);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'},_0x11f307);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x11f307);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x11f307);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11f307);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11f307);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11f307);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11f307);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11f307);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'},_0x11f307);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11f307);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11f307);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11f307);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11f307);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'},_0x11f307);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11f307);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'},_0x11f307);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x11f307);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11f307);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11f307);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'},_0x11f307);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x11f307);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 _0x1ac777({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11f307);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ac777({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11f307);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x11f307);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'},_0x11f307);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'},_0x11f307);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'},_0x11f307);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5c3668;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1999b3,_0x2e6ffc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1999b3,this['_locale']=_0x2e6ffc;}['getDescriptions'](_0x1a3ee7){const _0x3011b8=[],_0x1f3ad1=new Set(),_0x47c0df=new Set();for(let _0x303337=0x0;_0x303337<_0x1a3ee7['length'];_0x303337++){const _0x5bcaca=_0x1a3ee7[_0x303337];if(!_0x5bcaca['isInContent'])continue;const _0x47e19f=this['_handleCustomCallbackDescription'](_0x5bcaca);if(_0x47e19f){if(null!=_0x5bcaca['subType']){if(_0x1f3ad1['has'](_0x5bcaca['subType']))continue;_0x1f3ad1['add'](_0x5bcaca['subType']);}_0x3011b8['push'](_0x47e19f);}else{if('attribute'==_0x5bcaca['type']){const _0x22622b=_0x5bcaca['data']['key'];if(_0x47c0df['has'](_0x22622b))continue;_0x47c0df['add'](_0x5bcaca['data']['key']),_0x22622b==m?this['_handleRenameSuggestionDescription'](_0x3011b8,_0x5bcaca):this['_handleAttributeSuggestionDescription'](_0x3011b8,_0x5bcaca);continue;}'insertion'!=_0x5bcaca['type']&&'deletion'!=_0x5bcaca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3011b8,_0x5bcaca,_0x1a3ee7[_0x303337+0x1]);}}return this['_resolveDescriptionItems'](_0x3011b8);}['registerDescriptionCallback'](_0x4edf25){this['_customCallbacks']['push'](_0x4edf25);}['registerElementLabel'](_0xee758a,_0x1d2b5e,_0x3618d3=_0x850491['normal']){'function'==typeof _0xee758a?_0x2e014a(this['_itemLabelsCallbacks'],{'matchingCallback':_0xee758a,'label':_0x1d2b5e,'priority':_0x3618d3}):this['_itemLabels']['set'](_0xee758a,_0x1d2b5e);}['registerAttributeLabel'](_0x2e7abe,_0x47ef82){this['_attributeLabels']['set'](_0x2e7abe,_0x47ef82);}['getItemLabel'](_0x412afe,_0x151e2e=0x1){let _0x563339;for(const _0x510a80 of this['_itemLabelsCallbacks'])if(_0x510a80['matchingCallback'](_0x412afe)){_0x563339=_0x510a80['label'];break;}return _0x563339||(_0x563339=this['_itemLabels']['get'](_0x412afe['name'])),_0x563339?_0x563339(_0x151e2e):0x1!==_0x151e2e?_0x151e2e+'\x20'+_0x412afe['name']+'s':''+_0x412afe['name'];}['_addDescriptionItems'](_0x183d20,_0x1d2250){const _0x556b61=_0x1d2250['getFirstRange']()['getWalker'](),_0x4c76bf='insertion'==_0x1d2250['type']?'add':'remove';for(const _0x14104e of _0x556b61){const _0x26c873=_0x14104e['item'],_0x358410=_0x183d20[_0x183d20['length']-0x1];if(_0x26c873['is']('$textProxy'))_0x358410&&_0x358410['type']['indexOf']('Container')>-0x1&&_0x183d20['pop'](),_0x358410&&'text'==_0x358410['type']?_0x358410[_0x4c76bf]+=_0x26c873['data']:_0x183d20['push']({'type':'text','add':'add'==_0x4c76bf?_0x26c873['data']:'','remove':'remove'==_0x4c76bf?_0x26c873['data']:''});else{if(this['_schema']['isObject'](_0x26c873)){const _0xde4380=_0x26c873;if(_0x358410&&_0x358410['type']['indexOf']('Container')>-0x1&&_0x183d20['pop'](),'elementEnd'==_0x14104e['type'])continue;_0x358410&&_0x358410['type']==_0x4c76bf+'Object'&&_0x358410['element']['name']==_0xde4380['name']?_0x358410['quantity']++:_0x183d20['push']({'type':_0x4c76bf+'Object','element':_0xde4380,'quantity':0x1}),_0x556b61['skip'](_0x5aecf3=>!('elementEnd'==_0x5aecf3['type']&&_0x5aecf3['item']==_0x26c873));}else{if(this['_schema']['checkChild'](_0x26c873,'$text')||_0x26c873['is']('element','softBreak')){const _0x310b7d=_0x26c873;if('add'==_0x4c76bf&&'elementStart'==_0x14104e['type']||'remove'==_0x4c76bf&&'elementEnd'==_0x14104e['type'])continue;if(_0x358410&&-0x1==_0x358410['type']['indexOf']('Container')){'text'==_0x358410['type']&&(_0x358410[_0x4c76bf]+='\x0a');continue;}let _0x4cb43d;if(_0x4cb43d='add'==_0x4c76bf?_0x310b7d['nextSibling']&&!this['_schema']['isObject'](_0x310b7d['nextSibling'])?_0x310b7d['nextSibling']:null:_0x310b7d['previousSibling']&&!this['_schema']['isObject'](_0x310b7d['previousSibling'])?_0x310b7d['previousSibling']:null,_0x310b7d['isEmpty']||_0x4cb43d&&_0x4cb43d['isEmpty']){const _0xdf822a=_0x4cb43d&&_0x4cb43d['isEmpty']?_0x4cb43d:_0x310b7d;_0x358410&&_0x358410['type']==_0x4c76bf+'EmptyContainer'&&_0x358410['element']['name']==_0xdf822a['name']?_0x358410['quantity']++:_0x183d20['push']({'type':_0x4c76bf+'EmptyContainer','element':_0xdf822a,'quantity':0x1});}else _0x183d20['push']({'type':_0x4c76bf+'Container','element':_0x310b7d});}}}}}['_resolveDescriptionItems'](_0x3c2aba){const _0x4f8678=this['_locale'],_0x55bfee=[],_0x237b57=[],_0x45615f=[];for(const _0x4c4f4e of _0x3c2aba)switch(_0x4c4f4e['type']){case'text':if(_0x4c4f4e['add']=_0x4c4f4e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c4f4e['remove']=_0x4c4f4e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c4f4e['add']&&''!=_0x4c4f4e['remove']){_0x55bfee['push']({'type':'replace','content':o(_0x4f8678,'REPLACE_TEXT',['\x22'+_0x4c4f4e['remove']+'\x22','\x22'+_0x4c4f4e['add']+'\x22'])});continue;}if(null!=_0x4c4f4e['add']['match'](/^ +$/)){_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0',o(_0x4f8678,'ELEMENT_SPACE',_0x4c4f4e['add']['length']))});continue;}if(null!=_0x4c4f4e['remove']['match'](/^ +$/)){_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0',o(_0x4f8678,'ELEMENT_SPACE',_0x4c4f4e['remove']['length']))});continue;}if(''!=_0x4c4f4e['add']){_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0','\x22'+_0x4c4f4e['add']+'\x22')});continue;}_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0','\x22'+_0x4c4f4e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'addContainer':_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Split:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'removeContainer':_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Merge:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'addFormat':_0x237b57['push'](_0x4c4f4e['key']);continue;case'removeFormat':_0x45615f['push'](_0x4c4f4e['key']);continue;default:_0x55bfee['push'](_0x4c4f4e);}if(_0x237b57['length']){const _0x54ec6f=_0x237b57['map'](_0x3dc695=>this['_attributeLabels']['has'](_0x3dc695)?this['_attributeLabels']['get'](_0x3dc695):_0x3dc695)['join'](',\x20');_0x55bfee['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x54ec6f)});}if(_0x45615f['length']){const _0x4aa5e8=_0x45615f['map'](_0x530f72=>this['_attributeLabels']['has'](_0x530f72)?this['_attributeLabels']['get'](_0x530f72):_0x530f72)['join'](',\x20');_0x55bfee['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4aa5e8)});}return _0x55bfee;}['_handleCustomCallbackDescription'](_0x345768){for(const _0x47cec9 of this['_customCallbacks']){const _0x37d750=_0x47cec9(_0x345768);if(_0x37d750&&'type'in _0x37d750)return _0x37d750;}}['_handleAttributeSuggestionDescription'](_0x298003,_0x5c0f4a){const _0x36d08e=_0x5c0f4a['data'],_0x20b9ef=void 0x0===_0x36d08e['newValue']?'removeFormat':'addFormat';_0x298003['push']({'type':_0x20b9ef,'key':_0x36d08e['key']});}['_handleRenameSuggestionDescription'](_0x3025e0,_0x4bde54){_0x3025e0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4bde54['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x34d143,_0x2d4c6b,_0xef237){if(this['_addDescriptionItems'](_0x34d143,_0x2d4c6b),_0xef237&&_0xef237['getFirstRange']()&&!_0x2d4c6b['getFirstRange']()['end']['isEqual'](_0xef237['getFirstRange']()['start'])){const _0x5e1a14=_0x34d143[_0x34d143['length']-0x1],_0x322991='insertion'==_0x2d4c6b['type']?'add':'remove';_0x5e1a14&&'text'==_0x5e1a14['type']&&(_0x5e1a14[_0x322991]+='\x0a');}}}class O extends _0xccd55c{['afterInit'](){const _0xe77c7b=this['editor'],_0x4066a7=_0xe77c7b['plugins']['get']('TrackChangesEditing');_0xe77c7b['commands']['get']('showAIAssistant')&&_0x4066a7['enableCommand']('showAIAssistant');}}class E extends _0xccd55c{['afterInit'](){const _0x33296a=this['editor'],_0x4c93f1=_0x33296a['locale'];if(!_0x33296a['plugins']['has']('AlignmentEditing'))return;const _0x1c6044=_0x33296a['plugins']['get']('TrackChangesEditing');_0x1c6044['enableDefaultAttributesIntegration']('alignment'),_0x1c6044['registerBlockAttribute']('alignment'),_0x1c6044['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c93f1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3c7be=this['editor'],_0x57745d=_0xd3c7be['locale'];_0xd3c7be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450d72=>{if('formatBlock'!=_0x450d72['type'])return;const {data:_0x136703}=_0x450d72;if(_0x136703&&'alignment'==_0x136703['commandName']){const _0x4c03cd=_0x136703['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x57745d,'*Format:*\x20%0',function(_0x59a7ee){switch(_0x59a7ee){case'left':return o(_0x57745d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x57745d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x57745d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x57745d,'FORMAT_JUSTIFY_TEXT');}}(_0x4c03cd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xccd55c{['afterInit'](){const _0x3cc6c0=this['editor'],_0x23bad6=_0x3cc6c0['plugins']['get']('TrackChangesEditing'),_0x138fda=_0x3cc6c0['locale'];for(const _0x1a9c44 of ti){if(!_0x3cc6c0['plugins']['has'](_0x1a9c44))continue;const _0x3999f1=_0x1a9c44['slice'](0x0,-0x7)['toLowerCase'](),_0x46260a='FORMAT_'+_0x3999f1['toUpperCase']();_0x23bad6['enableDefaultAttributesIntegration'](_0x3999f1),_0x23bad6['registerInlineAttribute'](_0x3999f1),_0x23bad6['descriptionFactory']['registerAttributeLabel'](_0x3999f1,o(_0x138fda,_0x46260a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5964d2=this['editor'],_0x57e178=_0x5964d2['locale'],_0x200405=_0x5964d2['plugins']['get']('TrackChangesEditing');function _0x4bba08(_0xb644f8,_0x25e9ea){_0x200405['descriptionFactory']['registerDescriptionCallback'](_0x440051=>{if('formatInline'!=_0x440051['type'])return;const {data:_0x472513}=_0x440051;return _0x472513&&_0x472513['commandName']===_0xb644f8?_0x472513['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57e178,'*Format:*\x20%0',_0x25e9ea)}:{'type':'format','content':o(_0x57e178,'*Remove\x20format:*\x20%0',_0x25e9ea)}:void 0x0;});}_0x4bba08('bold',o(_0x57e178,'FORMAT_BOLD')),_0x4bba08('italic',o(_0x57e178,'FORMAT_ITALIC')),_0x4bba08('underline',o(_0x57e178,'FORMAT_UNDERLINE')),_0x4bba08('code',o(_0x57e178,'FORMAT_CODE')),_0x4bba08('strikethrough',o(_0x57e178,'FORMAT_STRIKETHROUGH')),_0x4bba08('subscript',o(_0x57e178,'FORMAT_SUBSCRIPT')),_0x4bba08('superscript',o(_0x57e178,'FORMAT_SUPERSCRIPT'));}}class U extends _0xccd55c{['afterInit'](){const _0x106b93=this['editor'],_0x160d36=_0x106b93['locale'];if(!_0x106b93['plugins']['has']('BlockQuoteEditing'))return;const _0x59c8e=_0x106b93['plugins']['get']('TrackChangesEditing'),_0xd087ee=this['editor']['commands']['get']('blockQuote');_0x59c8e['enableCommand']('blockQuote',(_0x1bfddb,_0x2b9e8e={})=>{const _0x1c911d=this['editor']['model']['document']['selection'],_0x1acf96=_0x2b9e8e&&void 0x0!==_0x2b9e8e['forceValue']?_0x2b9e8e['forceValue']:!_0xd087ee['value'];let _0x42c4d4=[];if(_0x1acf96){const _0x587a8f=Array['from'](_0x1c911d['getSelectedBlocks']())['filter'](_0x2a529a=>oo(_0x2a529a)||function(_0x5a1fac,_0x2263ff){const _0x31be9c=_0x2263ff['checkChild'](_0x5a1fac['parent'],'blockQuote'),_0x151381=_0x2263ff['checkChild'](['$root','blockQuote'],_0x5a1fac);return _0x31be9c&&_0x151381;}(_0x2a529a,this['editor']['model']['schema']));_0x42c4d4=to(_0x587a8f,_0x106b93['model']);}else{const _0x2a0f97=Array['from'](_0x1c911d['getSelectedBlocks']())['filter'](_0x13824c=>oo(_0x13824c));_0x42c4d4=to(_0x2a0f97,_0x106b93['model']);}_0x106b93['model']['change'](()=>{for(const _0x8f1781 of _0x42c4d4)_0x59c8e['markBlockFormat'](_0x8f1781,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1acf96}]});});}),_0x59c8e['descriptionFactory']['registerDescriptionCallback'](_0x5c8cfb=>{const {data:_0x5069f0}=_0x5c8cfb;if(_0x5069f0&&'blockQuote'==_0x5069f0['commandName']){const _0x2556a5=o(_0x160d36,'ELEMENT_BLOCK_QUOTE');return _0x5069f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160d36,'*Set\x20format:*\x20%0',_0x2556a5)}:{'type':'format','content':o(_0x160d36,'*Remove\x20format:*\x20%0',_0x2556a5)};}});}}function oo(_0x524d6b){return'blockQuote'==_0x524d6b['parent']['name'];}class V extends _0xccd55c{['afterInit'](){const _0x934143=this['editor'],_0x331607=_0x934143['locale'],_0x4b2566=_0x934143['plugins']['get']('TrackChangesEditing');_0x934143['plugins']['has']('BookmarkEditing')&&(_0x4b2566['enableCommand']('insertBookmark'),_0x4b2566['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b2566['registerBlockAttribute']('bookmarkId'),_0x4b2566['descriptionFactory']['registerDescriptionCallback'](_0x34de75=>{if('insertion'!=_0x34de75['type']&&'deletion'!=_0x34de75['type']&&'attribute'!=_0x34de75['type'])return;const _0x58124a=_0x34de75['getContainedElement']();if(null==_0x58124a)return;if(!_0x58124a['is']('element','bookmark'))return;const _0x414f91=_0x58124a['getAttribute']('bookmarkId');if('insertion'==_0x34de75['type'])return{'type':'insertion','content':o(_0x331607,'*Insert:*\x20%0','\x22'+_0x414f91+'\x22\x20'+o(_0x331607,'ELEMENT_BOOKMARK'))};if('deletion'==_0x34de75['type'])return{'type':'deletion','content':o(_0x331607,'*Remove:*\x20%0','\x22'+_0x414f91+'\x22\x20'+o(_0x331607,'ELEMENT_BOOKMARK'))};const {data:_0x6dc2d}=_0x34de75;if(!_0x6dc2d||'bookmarkId'!=_0x6dc2d['key'])return;return{'type':'format','content':o(_0x331607,'*Set\x20bookmark:*\x20%0','\x22'+_0x6dc2d['newValue']+'\x22')};}));}}class F extends _0xccd55c{['afterInit'](){const _0x3285e4=this['editor'];_0x3285e4['plugins']['has']('CaseChange')&&(_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xccd55c{['afterInit'](){const _0x20661e=this['editor'];_0x20661e['commands']['get']('ckbox')&&_0x20661e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xccd55c{['afterInit'](){const _0x574182=this['editor'];if(!_0x574182['plugins']['has']('CodeBlock'))return;const _0xa7b000=_0x574182['plugins']['get']('TrackChangesEditing'),_0x334f8e=_0x574182['locale'],_0x40adba=_0x574182['config']['get']('codeBlock')['languages'],_0x30475f=_0x574182['commands']['get']('codeBlock');_0xa7b000['enableCommand']('indentCodeBlock'),_0xa7b000['enableCommand']('outdentCodeBlock'),_0xa7b000['enableCommand']('codeBlock',(_0x20fc38,_0x4826d6={})=>{const _0x2d5fa2=_0x574182['model'],_0xe81c3a=_0x574182['model']['document']['selection'],_0x32ea99=_0x4826d6&&void 0x0!==_0x4826d6['forceValue']?_0x4826d6['forceValue']:!_0x30475f['value'];let _0xaecb6b;_0x4826d6['language']||(_0x4826d6['language']=_0x40adba[0x0]['language']),_0xaecb6b=_0x32ea99?Array['from'](_0xe81c3a['getSelectedBlocks']())['filter'](_0x1458d4=>co(_0x1458d4)||function(_0x130b9c,_0x2f0aa8){if(_0x130b9c['is']('rootElement')||_0x2f0aa8['isLimit'](_0x130b9c))return!0x1;return _0x2f0aa8['checkChild'](_0x130b9c['parent'],'codeBlock');}(_0x1458d4,_0x2d5fa2['schema'])):Array['from'](_0xe81c3a['getSelectedBlocks']())['filter'](_0x27207a=>co(_0x27207a));const _0x36a9f4=to(_0xaecb6b,_0x2d5fa2);_0x2d5fa2['change'](()=>{for(const _0x535e65 of _0x36a9f4)_0xa7b000['markBlockFormat'](_0x535e65,{'commandName':'codeBlock','commandParams':[{..._0x4826d6,'forceValue':_0x32ea99}],'formatGroupId':'blockName'});});}),(_0xa7b000['descriptionFactory']['registerElementLabel']('codeBlock',_0x14e1c2=>o(_0x334f8e,'ELEMENT_CODE_BLOCK',_0x14e1c2)),_0xa7b000['descriptionFactory']['registerDescriptionCallback'](_0x45d3e1=>{if('formatBlock'!=_0x45d3e1['type'])return;const _0x52848a=_0x334f8e['t'],{data:_0x570a7e}=_0x45d3e1;if(!_0x570a7e||'codeBlock'!=_0x570a7e['commandName'])return;const _0x524101=_0x570a7e['commandParams'][0x0]['language'],_0x302de0=_0x52848a(_0x40adba['find'](_0x53a9bf=>_0x53a9bf['language']===_0x524101)['label'])['toLowerCase']();return _0x570a7e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x334f8e,'*Set\x20format:*\x20%0',o(_0x334f8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x302de0+')')}:{'type':'format','content':o(_0x334f8e,'*Remove\x20format:*\x20%0',o(_0x334f8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x19dfb1){return'codeBlock'==_0x19dfb1['name'];}class J extends _0xccd55c{['afterInit'](){const _0x3f82ee=this['editor'];if(!_0x3f82ee['plugins']['has']('CommentsEditing'))return;_0x3f82ee['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b1bf8,_0x49e7a4,_0x2e656c){const _0x33f307=[];for(const _0x3af8c4 of _0x49e7a4['getItems']())_0x3af8c4['hasAttribute'](_0x3b1bf8)&&_0x33f307['push'](_0x2e656c['createRangeOn'](_0x3af8c4));return _0x33f307;}function De(_0x4d8740,_0xff1297,{showActiveMarker:_0x55e57d=!0x0}={}){const _0x182dee=_0x4d8740['plugins']['get']('TrackChangesEditing');return(_0x179ba8,_0x51dc6b,_0x2ffe2f)=>{if(!_0x2ffe2f['consumable']['test'](_0x51dc6b['markerRange'],_0x179ba8['name']))return;const _0x56101c=_0x51dc6b['markerRange']['getWalker'](),_0x2f6784=_0x51dc6b['markerRange']['start'],_0x1e9ed6=_0x4d8740['model']['schema'];let _0x52584=null,_0x247212=null,_0x3a9ef7=!0x1,_0x19c5fa=!0x1;for(const _0x538c84 of _0x56101c){const _0x547b37=_0x538c84['item'];_0x3a9ef7=_0x3a9ef7||_0x1e9ed6['isContent'](_0x547b37);const _0x1c3646=_0x2ffe2f['mapper']['toViewElement'](_0x547b37);if(_0x1c3646&&_0x1c3646['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x538c84['type']&&(_0x1e9ed6['isBlock'](_0x547b37)&&!_0x1e9ed6['isLimit'](_0x547b37)&&(_0x547b37['nextSibling']||_0x2f6784['isAtEnd']?_0x52584&&_0x52584['parent']==_0x547b37||(_0x52584=_0x547b37,_0x581ff6(_0x538c84['previousPosition']),_0x19c5fa=!0x0):_0x247212=_0x247212||_0x538c84['previousPosition']));}function _0x581ff6(_0x46fa4a){const {id:_0x1c6287,authorId:_0x4aa2f2}=_0x182dee['_splitMarkerName'](_0x51dc6b['markerName']),_0x8e51b0=_0x2ffe2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff1297,'data-suggestion':_0x1c6287,'data-author-id':_0x4aa2f2}),_0x1215b9=_0x2ffe2f['mapper']['toViewPosition'](_0x46fa4a);_0x55e57d&&_0x182dee['activeMarkers']['includes'](_0x51dc6b['markerName'])&&_0x2ffe2f['writer']['addClass']('ck-suggestion-marker--active',_0x8e51b0),_0x2ffe2f['writer']['insert'](_0x1215b9,_0x8e51b0),_0x2ffe2f['mapper']['bindElementToMarker'](_0x8e51b0,_0x51dc6b['markerName']);}_0x3a9ef7||_0x19c5fa||!_0x247212||_0x581ff6(_0x247212);};}class K extends _0xccd55c{static get['requires'](){return[_0x202975];}['init'](){const _0x27b082=this['editor'],_0x217f04=_0x27b082['plugins']['get']('TrackChangesEditing');_0x217f04['enableCommand']('delete');const _0x2e52ac=_0x27b082['commands']['get']('deleteForward');_0x217f04['enableCommand']('deleteForward',(_0x408eae,_0x277824={})=>{const _0x1495e0=_0x27b082['model']['createSelection'](_0x27b082['model']['document']['selection']);_0x1495e0['isCollapsed']&&_0x27b082['model']['modifySelection'](_0x1495e0,{'direction':'forward','unit':_0x277824['unit']});const _0x168c35=_0x1495e0['getFirstRange'](),_0x3f3b24=_0x20b456['fromRange'](_0x168c35);let _0x5aeedc;_0x408eae(_0x277824),_0x5aeedc='$graveyard'==_0x3f3b24['root']['rootName']?_0x27b082['model']['createRange'](_0x168c35['start']):_0x27b082['model']['createRange'](_0x3f3b24['start'],_0x3f3b24['end']),_0x3f3b24['detach'](),_0x27b082['model']['enqueueChange'](_0x2e52ac['buffer']['batch'],_0x13f802=>{_0x2e52ac['buffer']['lock'](),_0x13f802['setSelection'](_0x13f802['createRange'](_0x5aeedc['end'])),_0x2e52ac['buffer']['unlock']();});}),_0x27b082['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x27b082,'merge'),{'priority':'high'}),_0x27b082['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51832d,_0x5f0504,_0x33b597)=>{_0x33b597['options']['showSuggestionHighlights']&&De(_0x27b082,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51832d,_0x5f0504,_0x33b597);},{'priority':'high'}),_0x27b082['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ec6d9,_0x1d6da5,_0x1d6e30)=>{const _0x4208df=_0x1d6e30['mapper']['markerNameToElements'](_0x1d6da5['markerName']);if(_0x4208df){for(const _0x15387e of _0x4208df)_0x15387e['is']('uiElement')&&(_0x1d6e30['mapper']['unbindElementFromMarkerName'](_0x15387e,_0x1d6da5['markerName']),_0x1d6e30['writer']['remove'](_0x15387e));}},{'priority':'high'});}}class H extends _0xccd55c{['afterInit'](){const _0x408be1=this['editor'];if(!_0x408be1['plugins']['has']('ListEditing'))return;const _0x4a8700=_0x408be1['locale'],_0x57284c=_0x408be1['plugins']['get']('TrackChangesEditing'),_0xb1e3be=_0x408be1['plugins']['has']('TodoListEditing'),_0x3b72de=!!_0x408be1['config']['get']('list.multiBlock');function _0x781bb8(_0x24e5bc){return{'type':'format','content':''+o(_0x4a8700,'*Set\x20format:*\x20%0',_0x24e5bc)};}function _0x19c0bb(_0x51e3e8){return{'type':'format','content':''+o(_0x4a8700,'*Remove\x20format:*\x20%0',_0x51e3e8)};}_0x57284c['enableDefaultAttributesIntegration']('numberedList'),_0x57284c['enableDefaultAttributesIntegration']('bulletedList'),_0x57284c['enableDefaultAttributesIntegration']('customNumberedList'),_0x57284c['enableDefaultAttributesIntegration']('customBulletedList'),_0x57284c['enableDefaultAttributesIntegration']('indentList'),_0x57284c['enableDefaultAttributesIntegration']('outdentList'),_0x57284c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x57284c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57284c['registerBlockAttribute']('listItemId'),_0x57284c['registerBlockAttribute']('listType'),_0x57284c['registerBlockAttribute']('listIndent'),_0x3b72de&&(_0x57284c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x57284c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb1e3be&&(_0x57284c['enableDefaultAttributesIntegration']('todoList'),_0x57284c['enableDefaultAttributesIntegration']('checkTodoList'),_0x57284c['registerBlockAttribute']('todoListChecked'),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x533983=>{const {data:_0x4253ac}=_0x533983;if(_0x4253ac&&'todoListChecked'==_0x4253ac['key'])return{'type':'format','content':_0x4253ac['newValue']?o(_0x4a8700,'*Check\x20item*'):o(_0x4a8700,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x225159=>{if(_0x225159['batch']['isUndo'])return!0x1;let _0x469b58=!0x1;const _0x2dcf4c=_0x57284c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ed22=>'todoListChecked'===_0x57284c['_getAttributeKey'](_0x13ed22));for(const _0x1c0cec of _0x2dcf4c){'todo'!=_0x1c0cec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x57284c['_findSuggestions'](_0x1c0cec['getFirstRange'](),'attribute')['find'](_0x5c6634=>'listType'===_0x57284c['_getAttributeKey'](_0x5c6634['suggestion']))||(_0x225159['removeMarker'](_0x1c0cec['getFirstMarker']()),_0x469b58=!0x0));}return _0x469b58;})),_0x57284c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a8700,'FORMAT_INDENT'));const _0x47bc34={'type':'format','content':''};_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0xd50f81=>{const {data:_0x12e945}=_0xd50f81;if(!_0x12e945||'listType'!=_0x12e945['key'])return;let _0x490c9f=_0xd50f81['head'];for(;_0x490c9f;){if(_0x490c9f['data']&&(('listStyle'==_0x490c9f['data']['key']||'listMarkerStyle'==_0x490c9f['data']['key'])&&(_0x490c9f['data']['newValue']&&'default'!=_0x490c9f['data']['newValue']||'default'!=_0x490c9f['data']['oldValue']&&!_0x12e945['newValue'])||!_0x3b72de&&_0x490c9f['data']['key']==m))return _0x47bc34;_0x490c9f=_0x490c9f['next'];}if(null==_0x12e945['newValue'])switch(_0x12e945['oldValue']){case'bulleted':return _0x19c0bb(o(_0x4a8700,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19c0bb(o(_0x4a8700,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19c0bb(o(_0x4a8700,'ELEMENT_TODO_LIST'));}switch(_0x12e945['newValue']){case'bulleted':return _0x781bb8(o(_0x4a8700,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x781bb8(o(_0x4a8700,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x781bb8(o(_0x4a8700,'ELEMENT_TODO_LIST'));}}),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x40891c=>{const {data:_0x4feb1c}=_0x40891c;if(_0x4feb1c&&'listIndent'==_0x4feb1c['key'])return null==_0x4feb1c['newValue']||null==_0x4feb1c['oldValue']&&0x0==_0x4feb1c['newValue']?_0x47bc34:void 0x0;}),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x4fe9a2=>{if('attribute'!=_0x4fe9a2['type'])return;const {data:_0x5b4797}=_0x4fe9a2;if(!_0x5b4797||'listItemId'!=_0x5b4797['key'])return;const _0x54668c=Te(_0x4fe9a2);return'newValue'==_0x54668c?{'type':'format','content':o(_0x4a8700,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54668c?{'type':'format','content':o(_0x4a8700,'*Split:*\x20list\x20item')}:_0x47bc34;}),_0x408be1['model']['document']['registerPostFixer'](_0x3581e9=>this['listItemIdFixer'](_0x3581e9)),_0x408be1['model']['document']['registerPostFixer'](_0x6f13da=>this['noTrackChangesFixer'](_0x6f13da)),_0x408be1['model']['document']['on']('change:data',(_0x42b59c,_0x348b3f)=>{if(_0x348b3f['isUndo']||!_0x348b3f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x58e6e7){if(_0x58e6e7['batch']['isUndo']||!_0x58e6e7['batch']['isLocal'])return!0x1;let _0xa8bc3b=!0x1;const _0x2c2a80=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2992cb=>_0x2992cb['data']&&'listItemId'==_0x2992cb['data']['key'])['filter'](_0x1a1fc6=>_0x1a1fc6['data']['newValue']&&_0x1a1fc6['data']['oldValue']);for(const _0x645e95 of _0x2c2a80)Te(_0x645e95)||(_0x58e6e7['removeMarker'](_0x645e95['getFirstMarker']()),_0xa8bc3b=!0x0);return _0xa8bc3b;}['noTrackChangesFixer'](_0x13afb7){if(_0x13afb7['batch']['isUndo']||!_0x13afb7['batch']['isLocal'])return!0x1;const _0x30a072=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30a072['trackChangesCommand']['value'])return!0x1;let _0x13e8af=!0x1;const _0x44caa9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x473859=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2c3e20=>'attribute'==_0x2c3e20['type'])['filter'](_0x5c833c=>_0x44caa9['includes'](_0x5c833c['attributeKey']));if(0x0==_0x473859['length'])return _0x13e8af;for(const _0x5411a6 of _0x473859){const _0x5c2cee=_0x30a072['_findSuggestions'](_0x5411a6['range'],'attribute')['filter'](_0x289af6=>!_0x289af6['meta']['isNextTo'])['map'](_0x3ea849=>_0x3ea849['suggestion'])['filter'](_0x263095=>{const _0x4510e0=_0x30a072['_getAttributeKey'](_0x263095);return _0x44caa9['includes'](_0x4510e0);});if(_0x5c2cee['length']){for(const _0x593930 of _0x5c2cee)_0x13afb7['removeMarker'](_0x593930['getFirstMarker']());_0x13e8af=!0x0;}}return _0x13e8af;}['assureChains'](){const _0x4bb39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27f8a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xfb9ac3;const _0x52a03d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f8dbf=>{if(_0x4f8dbf['data']['oldRange']||!_0x4f8dbf['data']['newRange'])return null;if(!_0x4f8dbf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ae766}=_0x4bb39['_splitMarkerName'](_0x4f8dbf['name']);if(!_0x4bb39['hasSuggestion'](_0x5ae766))return null;const _0x141c00=_0x4bb39['getSuggestion'](_0x5ae766);return _0x27f8a1['includes'](_0x141c00['data']['key']);})['map'](_0x97f286=>{const {id:_0x36d708}=_0x4bb39['_splitMarkerName'](_0x97f286['name']),_0x159f4a=_0x4bb39['getSuggestion'](_0x36d708);return _0xfb9ac3=_0x159f4a['attributes']['groupId'],_0x159f4a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52a03d['size'])return;const _0x58b922=_0x4bb39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a06cd=>'attribute'==_0x3a06cd['type']&&_0x3a06cd['data']&&_0x27f8a1['includes'](_0x3a06cd['data']['key'])&&_0x3a06cd['attributes']['groupId']!=_0xfb9ac3)['map'](_0x576d81=>({'listItem':_0x576d81['getFirstRange']()['start']['nodeAfter'],'groupId':_0x576d81['attributes']['groupId']})),_0x2bab86=new Set();for(const {groupId:_0x45504b,listItem:_0x2e7f84}of _0x58b922)_0x52a03d['has'](_0x2e7f84)&&_0x2bab86['add'](_0x45504b);for(const _0x36e05c of _0x4bb39['getSuggestions']())_0x2bab86['has'](_0x36e05c['attributes']['groupId'])&&_0x36e05c['setAttribute']('groupId',_0xfb9ac3);}['_supportLegacySuggestions'](){const _0x525614=this['editor'],_0x5d797d=_0x525614['locale'],_0x4b87bb=_0x525614['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b87bb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x32557d,_0x4b8196){const _0xd7c3f6=[];for(let _0x543e55 of _0x32557d)_0x543e55['start']['nodeAfter']===_0x543e55['end']['parent']&&(_0x543e55=_0x525614['model']['createRange'](_0x525614['model']['createPositionAt'](_0x543e55['start']['nodeAfter'],0x0))),_0xd7c3f6['push'](_0x543e55);_0x525614['model']['change'](_0x54107a=>{const _0x441bce=_0x525614['model']['document']['selection'],_0xf58306=Array['from'](_0x441bce['getRanges']())['map'](_0x10a6de=>_0x20b456['fromRange'](_0x10a6de));_0x54107a['setSelection'](_0xd7c3f6),_0x525614['commands']['get'](_0x4b8196['commandName'])['refresh'](),_0x4b8196['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x525614['execute'](_0x4b8196['commandName'],..._0x4b8196['commandParams']),_0x54107a['setSelection'](_0xf58306);for(const _0x2cb6c8 of _0xf58306)_0x2cb6c8['detach']();});}),_0x4b87bb['descriptionFactory']['registerElementLabel'](function(_0x5cee76){const _0x3c877c=!_0x525614['model']['schema']['isObject'](_0x5cee76),_0x572039=_0x5cee76['previousSibling'],_0x22e340=_0x5cee76['nextSibling'],_0x4370b2=_0x5cee76['getAttribute']('listItemId'),_0x51366b=!_0x572039||_0x572039['getAttribute']('listItemId')!==_0x4370b2,_0x5e744f=!_0x22e340||_0x22e340['getAttribute']('listItemId')!==_0x4370b2;return _0x3c877c&&Boolean(_0x4370b2)&&_0x51366b&&_0x5e744f;},_0x1da664=>o(_0x5d797d,'ELEMENT_LIST_ITEM',_0x1da664));}['_registerLegacyDescription'](){const _0x2861d5=this['editor'],_0x293471=_0x2861d5['locale'];function _0xa9c197(_0x4ee490){const _0x5def60=_0x2861d5['commands']['get']('bulletedList')['value'],_0x168154=_0x2861d5['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ee490?_0x5def60:_0x168154;}_0x2861d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1d7e4b){if('formatBlock'!=_0x1d7e4b['type'])return;const {data:_0x27a45a}=_0x1d7e4b;if(!_0x27a45a)return;let _0x1c2543,_0x318660,_0x92e914,_0x5397ea;switch(_0x27a45a['commandName']){case'bulletedList':_0x92e914=_0x27a45a['commandParams'][0x0]['forceValue'],_0x5397ea=_0xa9c197(_0x27a45a['commandName']),_0x1c2543=_0x92e914?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5397ea&&_0x2861d5['config']['get']('list.multiBlock')||(_0x1c2543='*Change\x20to:*\x20%0'),_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x92e914=_0x27a45a['commandParams'][0x0]['forceValue'],_0x5397ea=_0xa9c197(_0x27a45a['commandName']),_0x1c2543=_0x92e914?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5397ea&&_0x2861d5['config']['get']('list.multiBlock')||(_0x1c2543='*Change\x20to:*\x20%0'),_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c2543='*Indent:*\x20%0',_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c2543=function(_0x527de1){const _0x523878=_0x527de1['getFirstRange']();let _0x421611=_0x523878['start']['nodeAfter'];for(;_0x421611&&_0x523878['containsItem'](_0x421611);){if(_0x421611['getAttribute']('listIndent')>0x0)return!0x1;_0x421611=_0x421611['nextSibling'];}return!0x0;}(_0x1d7e4b)?o(_0x293471,'*Format:*\x20remove\x20from\x20%0',o(_0x293471,function(_0x3ef2b3){return'ELEMENT_'+_0x3ef2b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1d7e4b))):o(_0x293471,'*Outdent:*\x20%0',o(_0x293471,'ELEMENT_LIST_ITEM')),_0x318660={'type':'format','content':_0x1c2543};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27a45a['multipleBlocks']&&(_0x1c2543='*Merge:*\x20%0',_0x318660={'type':'deletion','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_LIST_ITEM'))});}return _0x318660;});}}function Te(_0x267813){let _0x5dafcf=_0x267813['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5dafcf;){const _0x3affaa=_0x5dafcf['getAttribute']('listItemId');if(!_0x3affaa)return!0x1;if(_0x3affaa==_0x267813['data']['newValue'])return'newValue';if(_0x3affaa==_0x267813['data']['oldValue'])return'oldValue';_0x5dafcf=_0x5dafcf['previousSibling'];}return!0x1;}class q extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a00b1=this['editor']['config']['get']('list.properties'),_0x38326b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a00b1['styles']&&(_0x38326b['enableDefaultAttributesIntegration']('listStyle'),_0x38326b['registerBlockAttribute']('listStyle')),_0x4a00b1['reversed']&&(_0x38326b['enableDefaultAttributesIntegration']('listReversed'),_0x38326b['registerBlockAttribute']('listReversed')),_0x4a00b1['startIndex']&&(_0x38326b['enableDefaultAttributesIntegration']('listStart'),_0x38326b['registerBlockAttribute']('listStart'));const _0x4c0a26={'type':'format','content':''};_0x38326b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x262221=this['editor']['locale'];_0x38326b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x262221,'FORMAT_LIST_REVERSED')),_0x38326b['descriptionFactory']['registerDescriptionCallback'](_0x54ab7e=>{const {data:_0x2fffec}=_0x54ab7e;if(_0x2fffec&&'listReversed'==_0x2fffec['key'])return null==_0x2fffec['newValue']||0x0==_0x2fffec['newValue']&&null==_0x2fffec['oldValue']?_0x4c0a26:void 0x0;}),_0x38326b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x262221,'FORMAT_LIST_START')),_0x38326b['descriptionFactory']['registerDescriptionCallback'](_0x24db16=>{const {data:_0x347286}=_0x24db16;if(_0x347286&&'listStart'==_0x347286['key'])return null==_0x347286['newValue']||0x1==_0x347286['newValue']&&null==_0x347286['oldValue']?_0x4c0a26:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bb68b=>{if(_0x4bb68b['batch']['isUndo'])return!0x1;let _0x3281ec=!0x1;const _0x338dd1=_0x38326b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4171e9=>{const _0x3eadc3=_0x38326b['_getAttributeKey'](_0x4171e9);return'listStart'==_0x3eadc3||'listReversed'==_0x3eadc3;});for(const _0x11caad of _0x338dd1){const _0x56c5c6=_0x11caad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56c5c6||'customNumbered'==_0x56c5c6)continue;_0x38326b['_findSuggestions'](_0x11caad['getFirstRange'](),'attribute')['find'](_0x1a4086=>'listType'==_0x38326b['_getAttributeKey'](_0x1a4086['suggestion']))||(_0x4bb68b['removeMarker'](_0x11caad['getFirstMarker']()),_0x3281ec=!0x0);}return _0x3281ec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x54bfcb){const _0xfdae30=this['editor']['locale'],{data:_0xcbca20}=_0x54bfcb,_0x2836ad={'type':'format','content':''};if(!_0xcbca20||'listStyle'!=_0xcbca20['key'])return;if(!_0xcbca20['oldValue'])return'default'==_0xcbca20['newValue']?_0x2836ad:{'type':'format','content':''+o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['newValue'])))};if(!_0xcbca20['newValue']){if('default'==_0xcbca20['oldValue'])return _0x2836ad;let _0x5f18c6=_0x54bfcb['head'];for(;_0x5f18c6;){if(_0x5f18c6['data']&&'listType'==_0x5f18c6['data']['key']&&_0x5f18c6['data']['newValue'])return _0x2836ad;_0x5f18c6=_0x5f18c6['next'];}return{'type':'format','content':''+o(_0xfdae30,'*Remove\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['oldValue'])))};}if('default'!=_0xcbca20['newValue'])return{'type':'format','content':''+o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['newValue'])))};let _0x5aae80=_0x54bfcb['head'];for(;_0x5aae80;){if(_0x5aae80['data']&&'listType'==_0x5aae80['data']['key']&&_0x5aae80['data']['newValue']&&_0x5aae80['data']['oldValue'])return _0x2836ad;_0x5aae80=_0x5aae80['next'];}return{'type':'format','content':o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,'ELEMENT_'+_0x54bfcb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a9697=this['editor'],_0x319b35=_0x4a9697['locale'];_0x4a9697['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e90b=>{if('formatBlock'!=_0x32e90b['type'])return;const {data:_0x1f8057}=_0x32e90b;if(!_0x1f8057)return;let _0x1cbc8b,_0x3eab06;switch(_0x1f8057['commandName']){case'listStyle':_0x1cbc8b='*Change\x20to:*\x20%0',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b,o(_0x319b35,this['_getTranslationKeyForListStyle'](_0x1f8057['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cbc8b=_0x1f8057['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b)};break;case'listStart':_0x1cbc8b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b,_0x1f8057['commandParams'][0x0]['startIndex'])};}return _0x3eab06;});}['_getTranslationKeyForListStyle'](_0x21f677){return'ELEMENT_'+function(_0x72613d){if(Se['includes'](_0x72613d))return'bulleted';if(_e['includes'](_0x72613d))return'numbered';return null;}(_0x21f677)['toUpperCase']()+'_LIST_'+_0x21f677['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xccd55c{['afterInit'](){const _0x5bee76=this['editor'];_0x5bee76['commands']['get']('emoji')&&_0x5bee76['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xccd55c{static get['requires'](){return[_0x3d2f33];}['init'](){const _0x27b268=this['editor'],_0x3d238e=_0x27b268['plugins']['get']('TrackChangesEditing'),_0xd15ade=_0x27b268['commands']['get']('enter');_0x3d238e['enableCommand']('enter',()=>{_0x27b268['model']['change'](_0x4ae807=>{const _0xc8ab57=_0x27b268['model']['document']['selection'],_0x5f26a4=_0xc8ab57['getFirstPosition'](),_0x4d7928=_0x20b456['fromRange'](_0xc8ab57['getFirstRange']());if(_0xd15ade['enterBlock'](_0x4ae807)){const _0x35ce88=_0x27b268['model']['createPositionAt'](_0x5f26a4['parent']['nextSibling'],0x0),_0x2fecaf=_0x4ae807['createRange'](_0x5f26a4,_0x35ce88);_0x3d238e['markInsertion'](_0x2fecaf);}else _0x4ae807['setSelection'](_0x4ae807['createRange'](_0x4d7928['end']));_0x4d7928['detach'](),_0xd15ade['fire']('afterExecute',{'writer':_0x4ae807});});}),_0x27b268['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x27b268,'split'),{'priority':'high'}),_0x27b268['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2df25a,_0x51d8f2,_0x3e6136)=>{const _0x45ec9a=_0x3e6136['mapper']['markerNameToElements'](_0x51d8f2['markerName']);if(_0x45ec9a){for(const _0x190c3d of _0x45ec9a)_0x190c3d['hasClass']('ck-suggestion-marker-split')&&(_0x3e6136['mapper']['unbindElementFromMarkerName'](_0x190c3d,_0x51d8f2['markerName']),_0x3e6136['writer']['remove'](_0x190c3d));}},{'priority':'high'}),_0x27b268['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40f999,_0x24a004,_0x43c0c1)=>{_0x43c0c1['options']['showSuggestionHighlights']&&De(_0x27b268,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40f999,_0x24a004,_0x43c0c1);},{'priority':'high'});}}class Q extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d7391=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d7391['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d7391['enableCommand']('findNext'),_0x3d7391['enableCommand']('findPrevious'),_0x3d7391['enableCommand']('replace'),_0x3d7391['enableCommand']('replaceAll');}['handleFindCommand'](_0x34e6d2,_0x756ce1,_0x48a891={}){const _0x3aa309=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34e6d2(_0x374be3=>{let _0x42c507=('string'==typeof _0x756ce1?_0x3aa309['findByTextCallback'](_0x756ce1,_0x48a891):_0x756ce1)(_0x374be3);Array['isArray'](_0x42c507)&&(_0x42c507={'results':_0x42c507,'searchText':'string'==typeof _0x756ce1?_0x756ce1:''});const _0x109d2f=_0x42c507['results']['filter'](_0x4ff628=>!0x1===this['_isInDeletionRange'](_0x4ff628,_0x374be3['item']));return{..._0x42c507,'results':_0x109d2f};},_0x48a891);}['_isInDeletionRange'](_0x50dfae,_0x5baacc){const _0x1553ab=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5baacc,_0x50dfae['start']),this['editor']['model']['createPositionAt'](_0x5baacc,_0x50dfae['end']));for(const _0x445382 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1553ab['getIntersection'](_0x445382['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xccd55c{['afterInit'](){const _0x575731=this['editor']['locale'],_0x2c76fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4782f8,commandName:_0x26c394}of eo)this['editor']['plugins']['has'](_0x4782f8)&&(_0x2c76fb['enableDefaultAttributesIntegration'](_0x26c394),_0x2c76fb['registerInlineAttribute'](_0x26c394));_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x575731,'FORMAT_FONT_SIZE')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x575731,'FORMAT_FONT_FAMILY')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x575731,'FORMAT_FONT_COLOR')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x575731,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb8f761=this['editor'],_0x2bfe49=_0xb8f761['locale'];_0xb8f761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1abfca=>{const _0x270f0f=_0x2bfe49['t'];if('formatInline'!=_0x1abfca['type'])return;const {data:_0x44d0d1}=_0x1abfca;if(null!=_0x44d0d1){if('fontSize'==_0x44d0d1['commandName']){const _0x1b69d6=_0x44d0d1['commandParams'][0x0]['value'];if(_0x1b69d6){const _0x4b1ead=_0x270f0f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x332d7f=>_0x332d7f['model']==_0x1b69d6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20size:*\x20%0',_0x4b1ead)};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x44d0d1['commandName']){const _0x54b651=_0x44d0d1['commandParams'][0x0]['value'];return _0x54b651?{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20family:*\x20%0',_0x54b651)}:{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20family*')};}if('fontColor'==_0x44d0d1['commandName']){const _0x537afb=_0x44d0d1['commandParams'][0x0]['value'];if(_0x537afb){const _0x56022f=_0x514438(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d146e=>_0x5d146e['model']==_0x537afb);let _0x164519=_0x537afb,_0x3ca556='';return _0x56022f&&(_0x164519=_0x56022f['label'],_0x3ca556=_0x270f0f(_0x164519)['toLowerCase']()),{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20color:*\x20%0',_0x3ca556)['trim'](),'color':{'value':_0x537afb,'title':_0x3ca556||_0x164519}};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x44d0d1['commandName']){const _0x5e0471=_0x44d0d1['commandParams'][0x0]['value'];if(_0x5e0471){const _0x3cd9f0=_0x514438(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48c2e5=>_0x48c2e5['model']==_0x5e0471);let _0x5e2747=_0x5e0471,_0x2ee3a8='';return _0x3cd9f0&&(_0x5e2747=_0x3cd9f0['label'],_0x2ee3a8=_0x270f0f(_0x5e2747)['toLowerCase']()),{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20background\x20color:*\x20%0',_0x2ee3a8)['trim'](),'color':{'value':_0x5e0471,'title':_0x2ee3a8||_0x5e2747}};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xccd55c{['afterInit'](){const _0x7b35dd=this['editor'],_0x237107=_0x7b35dd['plugins']['get']('TrackChangesEditing'),_0x29d842=_0x7b35dd['commands']['get']('copyFormat'),_0x2e9bde=_0x7b35dd['commands']['get']('pasteFormat');_0x29d842&&_0x2e9bde&&(_0x237107['enableDefaultAttributesIntegration']('pasteFormat'),_0x237107['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e8f85=this['editor'],_0x1f7141=_0x2e8f85['locale'];_0x2e8f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2f70=>{if('formatBlock'!=_0x3b2f70['type']&&'formatInline'!=_0x3b2f70['type'])return;const {data:_0x227257}=_0x3b2f70;if(_0x227257&&'pasteFormat'===_0x227257['commandName']){const _0x4c240f=[],_0x183bca=_0x227257['commandParams'][0x0];for(const [_0x4b7c44,_0xc3cb24]of Object['entries'](_0x183bca))_0x4c240f['push'](ro(_0x2e8f85,_0x4b7c44,_0xc3cb24));return _0x4c240f['length']?{'type':'format','content':o(_0x1f7141,'*Set\x20format\x20to:*\x20%0',_0x4c240f['join'](',\x20'))}:{'type':'format','content':o(_0x1f7141,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x344f20,_0x3c49a7,_0x423806){const _0x6814df=_0x344f20['locale']['t'],_0x72c152=_0x3c49a7['split'](/(?=[A-Z])/)['join']('\x20'),_0xbb81c5=_0x6814df(_0x72c152['charAt'](0x0)['toUpperCase']()+_0x72c152['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x423806)return _0xbb81c5;if('fontColor'===_0x3c49a7||'fontBackgroundColor'===_0x3c49a7){const _0x1a1100=_0x514438(_0x344f20['config']['get']('fontColor.colors'))['find'](_0x5a7550=>_0x5a7550['model']==_0x423806);return _0xbb81c5+'\x20('+(_0x1a1100?_0x6814df(_0x1a1100['label'])['toLowerCase']():_0x423806)+')';}if('fontSize'===_0x3c49a7&&isNaN(parseFloat(_0x423806))){const _0x23a8d3=_0x344f20['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x344f20['config']['get']('fontSize.options'))['find'](_0xa8ee11=>_0xa8ee11['model']==_0x423806);return _0xbb81c5+'\x20('+(_0x23a8d3?_0x6814df(_0x23a8d3['title'])['toLowerCase']():_0x423806)+')';}return _0xbb81c5+'\x20('+_0x423806+')';}class Z extends _0xccd55c{['_headingOptions'];['afterInit'](){const _0x1e6cac=this['editor'];if(!_0x1e6cac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1e6cac['config']['get']('heading.options');const _0x1d5e75=_0x1e6cac['locale'],_0x518955=_0x1e6cac['plugins']['get']('TrackChangesEditing');_0x518955['enableDefaultAttributesIntegration']('heading');for(const _0x403bc5 of this['_headingOptions'])'paragraph'!=_0x403bc5['model']&&_0x518955['descriptionFactory']['registerElementLabel'](_0x403bc5['model'],_0x17ed1a=>{const _0x3a3a1e=this['_getHeadingLevel'](_0x403bc5['model']);return null!==_0x3a3a1e?_0x2d014d(_0x17ed1a,_0x3a3a1e):_0x55a1d8(_0x17ed1a,_0x403bc5['title']);});function _0x2d014d(_0x3fd294,_0x4de926){return o(_0x1d5e75,'ELEMENT_HEADING',[_0x3fd294,_0x4de926]);}function _0x55a1d8(_0x255b74,_0x513a67){return o(_0x1d5e75,'ELEMENT_HEADING_CUSTOM',[_0x255b74,_0x513a67]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d05d=this['editor'],_0x5a9eee=_0x11d05d['locale'];function _0x1750cf(_0x21e044,_0x295f86){return o(_0x5a9eee,'ELEMENT_HEADING_CUSTOM',[_0x21e044,_0x295f86]);}_0x11d05d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x247369=>{if('formatBlock'!=_0x247369['type'])return;const {data:_0x35d8d7}=_0x247369;if(_0x35d8d7&&'heading'==_0x35d8d7['commandName']){const _0x5532dc=_0x35d8d7['commandParams'][0x0]['value'],_0x452b10=this['_getHeadingLevel'](_0x5532dc);if(null!==_0x452b10)return{'type':'format','content':o(_0x5a9eee,'*Change\x20to:*\x20%0',(_0x2ecb34=0x1,_0x146c1a=_0x452b10,o(_0x5a9eee,'ELEMENT_HEADING',[_0x2ecb34,_0x146c1a])))};const _0x4f14a1=this['_headingOptions']['find'](_0x441238=>_0x441238['model']===_0x5532dc)['title'];return{'type':'format','content':o(_0x5a9eee,'*Change\x20to:*\x20%0',_0x1750cf(0x1,_0x4f14a1))};}var _0x2ecb34,_0x146c1a;});}['_getHeadingLevel'](_0x5c9345){const _0x5e85f6=_0x5c9345['match'](/^heading(\d+)/);if(_0x5e85f6)return _0x5e85f6[0x1];const _0x3bff3b=this['_headingOptions']?.['find'](_0x1e6507=>_0x1e6507['model']==_0x5c9345);if(_0x3bff3b&&_0x3bff3b['view']){const _0x30477c=_0x3bff3b['view'],_0x5aa033=(_0x30477c['name']??_0x30477c)['match'](/^h(\d+)/);if(_0x5aa033)return _0x5aa033[0x1];}return null;}}class tt extends _0xccd55c{['afterInit'](){const _0x419e8f=this['editor'];if(!_0x419e8f['plugins']['has']('HighlightEditing'))return;const _0x4e04cf=_0x419e8f['plugins']['get']('TrackChangesEditing'),_0x29f1b9=_0x419e8f['locale'];_0x4e04cf['enableDefaultAttributesIntegration']('highlight'),_0x4e04cf['registerInlineAttribute']('highlight'),_0x4e04cf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29f1b9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd034=this['editor'],_0x2fb304=_0x1dd034['locale'];_0x1dd034['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x202b98=>{if('formatInline'!=_0x202b98['type'])return;const {data:_0x3d8654}=_0x202b98;if(_0x3d8654&&'highlight'==_0x3d8654['commandName']){const _0xa358c4=_0x2fb304['t'],_0x267175=_0x3d8654['commandParams'][0x0]['value'];if(_0x267175){const _0x4bfdf8=_0x1dd034['config']['get']('highlight.options')['find'](_0x3a6b04=>_0x3a6b04['model']==_0x267175),_0x20b728=_0xa358c4(_0x4bfdf8['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fb304,'*Set\x20highlight:*\x20%0',_0x20b728),'color':{'value':_0x4bfdf8['color'],'title':_0x4bfdf8['title']}};}return{'type':'format','content':o(_0x2fb304,'*Remove\x20highlight*',o(_0x2fb304,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xccd55c{['afterInit'](){const _0xd2149c=this['editor'];if(!_0xd2149c['plugins']['has']('HorizontalLineEditing'))return;_0xd2149c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x420234=_0xd2149c['plugins']['get']('TrackChangesEditing'),_0x36d8e5=_0xd2149c['locale'];_0x420234['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e8be8=>o(_0x36d8e5,'ELEMENT_HORIZONTAL_LINE',_0x5e8be8)),_0xd2149c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a6a8f,{writer:_0x5c9cbb,options:_0x2950f2})=>{if(!_0x2950f2['showSuggestionHighlights'])return null;const _0x48a7fb=_0x5c9cbb['createContainerElement']('div'),_0x5d889d=_0x5c9cbb['createEmptyElement']('hr');return _0x5c9cbb['addClass']('ck-horizontal-line',_0x48a7fb),_0x5c9cbb['insert'](_0x5c9cbb['createPositionAt'](_0x48a7fb,0x0),_0x5d889d),_0x48a7fb;},'converterPriority':'high'});}}class nt extends _0xccd55c{['afterInit'](){const _0x1b3cad=this['editor'];if(!_0x1b3cad['plugins']['has']('HtmlEmbed'))return;const _0xa30bbe=_0x1b3cad['plugins']['get']('TrackChangesEditing'),_0x180347=_0x1b3cad['locale'];_0xa30bbe['descriptionFactory']['registerElementLabel']('rawHtml',_0xd82d5d=>o(_0x180347,'ELEMENT_HTML_EMBED',_0xd82d5d)),_0xa30bbe['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa30bbe['registerBlockAttribute']('value'),_0xa30bbe['descriptionFactory']['registerDescriptionCallback'](_0x44a491=>{if('attribute'!=_0x44a491['type'])return;const {data:_0x2136a5}=_0x44a491;if(_0x2136a5&&'value'==_0x2136a5['key']&&_0x44a491['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3934d4=o(_0x180347,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x180347,'*Change\x20%0\x20content*',_0x3934d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250078=this['editor'],_0x2a006d=_0x250078['locale'];_0x250078['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf96f8f=>{if('formatBlock'!=_0xf96f8f['type'])return;const {data:_0x5e4755}=_0xf96f8f;if(_0x5e4755&&'htmlEmbed'==_0x5e4755['commandName']){const _0x5d8bf6=o(_0x2a006d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2a006d,'*Change\x20%0\x20content*',_0x5d8bf6)};}});}}class et extends _0xccd55c{['afterInit'](){const _0x1e0138=this['editor'];if(!_0x1e0138['plugins']['has']('ImageEditing'))return;const _0x5e4100=_0x1e0138['plugins']['get']('TrackChangesEditing'),_0x3e43c1=_0x1e0138['plugins']['get']('ImageUtils'),_0x273294=_0x1e0138['locale'];_0x5e4100['enableCommand']('insertImage'),_0x5e4100['descriptionFactory']['registerElementLabel']('imageBlock',_0xeafc2c=>o(_0x273294,'ELEMENT_IMAGE',_0xeafc2c)),_0x5e4100['descriptionFactory']['registerElementLabel']('imageInline',_0x5612f9=>o(_0x273294,'ELEMENT_INLINE_IMAGE',_0x5612f9)),_0x5e4100['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x273294,'ELEMENT_CAPTION')),_0x1e0138['plugins']['has']('ImageUploadEditing')&&_0x5e4100['enableCommand']('uploadImage'),_0x1e0138['plugins']['has']('ImageBlockEditing')&&_0x1e0138['plugins']['has']('ImageInlineEditing')&&(_0x5e4100['enableCommand']('imageTypeInline',(_0x35e9be,_0x879ce4)=>{const _0x45ce03=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']);_0x1e0138['model']['change'](()=>{_0x5e4100['markBlockFormat'](_0x45ce03,{'commandName':'imageTypeInline','commandParams':[_0x879ce4]},[],'convertBlockImageToInline');});}),_0x5e4100['enableCommand']('imageTypeBlock',(_0x44c51a,_0x2c3b8b)=>{_0x1e0138['model']['change'](_0x3c0f86=>{let _0x1e6002=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x482056=_0x3c0f86['createRangeOn'](_0x1e6002);const _0x32360c=_0x26ff4e['fromPosition'](_0x482056['start'],'toPrevious'),_0x3396ad=_0x26ff4e['fromPosition'](_0x482056['end'],'toNext');_0x5e4100['forceDefaultExecution'](()=>_0x44c51a(_0x2c3b8b)),_0x1e6002=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x482056=_0x3c0f86['createRangeOn'](_0x1e6002);const _0x4349ce=_0x3c0f86['createRange'](_0x32360c,_0x3396ad);_0x32360c['detach'](),_0x3396ad['detach'](),_0x5e4100['markBlockFormat'](_0x1e6002,{'commandName':'imageTypeInline','commandParams':[_0x2c3b8b]},[],'convertInlineImageToBlock'),_0x4349ce['start']['isBefore'](_0x482056['start'])&&_0x5e4100['markInsertion'](_0x3c0f86['createRange'](_0x4349ce['start'],_0x482056['start']),'convertInlineImageToBlock'),_0x482056['end']['isBefore'](_0x4349ce['end'])&&_0x5e4100['markInsertion'](_0x3c0f86['createRange'](_0x482056['end'],_0x4349ce['end']),'convertInlineImageToBlock');});}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e4100['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x40d5b5])=>{const _0xf50a32=_0x5e4100['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x32c067=_0x40d5b5['start'],_0x2d80da=_0x40d5b5['end'];const _0x44bcd8=_0x1e0138['model']['schema']['getNearestSelectionRange'](_0x32c067,'backward'),_0x21400e=_0x1e0138['model']['schema']['getNearestSelectionRange'](_0x2d80da,'forward');_0x44bcd8['isCollapsed']&&(_0x32c067=_0x44bcd8['start']),_0x21400e['isCollapsed']&&(_0x2d80da=_0x21400e['end']),_0xf50a32([_0x1e0138['model']['createRange'](_0x32c067,_0x2d80da)]);}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15c4f2),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15c4f2)),_0x1e0138['plugins']['has']('ImageCaptionEditing')&&(_0x5e4100['enableCommand']('toggleImageCaption',(_0x40885f,_0x1508a7)=>{const _0x1a6d03=_0x1e0138['plugins']['get']('ImageCaptionUtils');let _0x41377c=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x3ebfbd=_0x1a6d03['getCaptionFromImageModelElement'](_0x41377c);_0x1e0138['model']['change'](()=>{if(_0x3ebfbd)return void _0x5e4100['markDeletion'](_0x1e0138['model']['createRangeOn'](_0x3ebfbd));const _0x441319=_0x3e43c1['isBlockImage'](_0x41377c);_0x40885f(_0x1508a7),_0x41377c=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x3ebfbd=_0x1a6d03['getCaptionFromImageModelElement'](_0x41377c),_0x5e4100['markInsertion'](_0x1e0138['model']['createRangeOn'](_0x3ebfbd),_0x441319?null:'imageCaption');});}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15c4f2));const _0x15ba66=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcdc3a6(_0x3a94a8,_0x1257b5){const _0x5df363=_0x15ba66['findIndex'](({type:_0x2f4c3f,subType:_0x20fc20})=>_0x3a94a8['type']==_0x2f4c3f&&_0x3a94a8['subType']==_0x20fc20),_0x280d58=_0x15ba66['findIndex'](({type:_0x341b97,subType:_0x5438a5})=>_0x1257b5['type']==_0x341b97&&_0x1257b5['subType']==_0x5438a5);if(_0x5df363<0x0||_0x280d58<0x0)return!0x1;const _0x27cf33=_0x3a94a8['getFirstRange'](),_0x38bae3=_0x1257b5['getFirstRange']();if((0x0==_0x5df363||0x1==_0x5df363)&&0x2==_0x280d58&&_0x27cf33['isIntersecting'](_0x38bae3))return!0x0;if(0x2==_0x5df363&&0x3==_0x280d58){const _0x4bed51=_0x5e4100['_findSuggestions'](_0x27cf33,'insertion')['filter'](({suggestion:_0x9c0f47,meta:_0x59968a})=>_0x59968a['isOwn']&&'convertInlineImageToBlock'==_0x9c0f47['subType']);if(_0x4bed51['length']>0x1&&_0x38bae3['end']['isEqual'](_0x27cf33['start']))return!0x0;if(0x1==_0x4bed51['length']&&(_0x27cf33['start']['isEqual'](_0x38bae3['end'])||_0x27cf33['end']['isEqual'](_0x38bae3['start'])))return!0x0;}if(0x3==_0x5df363&&0x3==_0x280d58&&_0x27cf33['start']['isBefore'](_0x38bae3['start'])){const _0x3f481e=_0x27cf33['end']['nodeAfter'],_0x219f50=_0x38bae3['start']['nodeBefore'];return _0x3e43c1['isBlockImage'](_0x3f481e)&&_0x3f481e===_0x219f50;}return!0x1;}function _0x15c4f2(_0x5b2e11,_0x5a9691){return _0xcdc3a6(_0x5b2e11,_0x5a9691)?[_0x5b2e11,_0x5a9691]:_0xcdc3a6(_0x5a9691,_0x5b2e11)?[_0x5a9691,_0x5b2e11]:null;}_0x1e0138['plugins']['has']('ImageResize')&&(_0x5e4100['enableDefaultAttributesIntegration']('resizeImage'),_0x5e4100['registerBlockAttribute']('resizedWidth'),_0x5e4100['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x273294,'FORMAT_IMAGE_SIZE'))),_0x1e0138['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e4100['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e4100['registerBlockAttribute']('alt')),_0x1e0138['plugins']['has']('PictureEditing')&&(_0x5e4100['registerBlockAttribute']('sources'),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x51063b=>{if('attribute'!=_0x51063b['type'])return;const {data:_0x3038ff}=_0x51063b;return _0x3038ff&&'sources'==_0x3038ff['key']?{'type':'format','content':''}:void 0x0;})),_0x1e0138['plugins']['has']('ImageSizeAttributes')&&(_0x5e4100['registerBlockAttribute']('width'),_0x5e4100['registerBlockAttribute']('height'),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x3ae469=>{if('attribute'!=_0x3ae469['type'])return;const {data:_0x14696e}=_0x3ae469;return!_0x14696e||'width'!=_0x14696e['key']&&'height'!=_0x14696e['key']?void 0x0:{'type':'format','content':''};})),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x475905=>{if(!!_0x15ba66['find'](({type:_0x1d49f5,subType:_0x2bf5ea})=>_0x475905['type']==_0x1d49f5&&_0x475905['subType']==_0x2bf5ea))return _0x475905['previous']?{}:void 0x0;}),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x5a4298=>{if('insertion'==_0x5a4298['type']||'deletion'==_0x5a4298['type']){const _0x5673fa=_0x5a4298['getContainedElement']();if(_0x5673fa&&_0x5673fa['is']('element','caption'))return{'type':'insertion'==_0x5a4298['type']?'addObject':'removeObject','element':_0x5673fa,'quantity':0x1};}}),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x429aec=>'formatBlock'==_0x429aec['type']&&'convertInlineImageToBlock'==_0x429aec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x429aec['type']&&'convertBlockImageToInline'==_0x429aec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x5c8a7c=>{if('attribute'!=_0x5c8a7c['type'])return;const {data:_0x24efb3}=_0x5c8a7c;if(!_0x24efb3||'alt'!=_0x24efb3['key'])return;const _0x103720=_0x24efb3['newValue'];return _0x103720?{'type':'format','content':o(_0x273294,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x103720+'\x22')}:{'type':'format','content':o(_0x273294,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15bc64=this['editor'],_0xd17b72=_0x15bc64['locale'];_0x15bc64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb166=>{if('formatBlock'!=_0x2fb166['type']&&'formatInline'!=_0x2fb166['type'])return;const {data:_0x1a80e2}=_0x2fb166;if(_0x1a80e2){if('imageTextAlternative'==_0x1a80e2['commandName']){const _0x24a43b=_0x1a80e2['commandParams'][0x0]['newValue'];return _0x24a43b?{'type':'format','content':o(_0xd17b72,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24a43b+'\x22')}:{'type':'format','content':o(_0xd17b72,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a80e2['commandName']){const _0x3ad958=_0x1a80e2['commandParams'][0x0]['width'];return _0x3ad958?{'type':'format','content':o(_0xd17b72,'*Set\x20image\x20width:*\x20%0',_0x3ad958)}:{'type':'format','content':o(_0xd17b72,'*Reset\x20image\x20width*')};}}});}}class st extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x347ad3=this['editor']['locale'],_0x5bd262=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bd262['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5bd262['registerBlockAttribute']('src'),_0x5bd262['descriptionFactory']['registerDescriptionCallback'](_0x5337c9=>{if('attribute'!=_0x5337c9['type'])return;const {data:_0xd636b}=_0x5337c9;return _0xd636b&&'src'==_0xd636b['key']?_0xd636b['newValue']&&_0xd636b['oldValue']?{'type':'format','content':o(_0x347ad3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x145f2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x145f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x145f2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x145f2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f328=this['editor'],_0x26921c=_0x2f328['locale'];_0x2f328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd84d=>{if('formatBlock'!=_0x3cd84d['type']&&'formatInline'!=_0x3cd84d['type'])return;const {data:_0x2298d0}=_0x3cd84d;if(!_0x2298d0||'replaceImageSource'!=_0x2298d0['commandName'])return;return{'type':'format','content':o(_0x26921c,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xccd55c{['afterInit'](){const _0x1c26f3=this['editor'];if(!_0x1c26f3['plugins']['has']('ImageStyleEditing'))return;const _0x2aa3a4=_0x1c26f3['plugins']['get']('TrackChangesEditing'),_0x2c2662=_0x1c26f3['plugins']['get']('ImageUtils'),_0x408660={};_0x2aa3a4['enableCommand']('imageStyle',(_0x4a2ad8,_0x5e7c47)=>{const _0x4ade59=_0x1c26f3['plugins']['get']('Users')['me'],_0x2fcb51=_0x1c26f3['commands']['get']('imageStyle');let _0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),_0x3c41ec=_0x1c26f3['model']['createRangeOn'](_0x30f212),_0x2a6e84=_0x2fcb51['value'];if(_0x2a6e84==_0x5e7c47['value'])return;const _0x47a4a3={'commandName':'imageStyle','commandParams':[_0x5e7c47],'formatGroupId':_0x427844()};_0x1c26f3['model']['change'](()=>{if(_0x2aa3a4['getSuggestions']()['filter'](_0x5a7083=>_0x5a7083['isInContent']&&_0x4ade59==_0x5a7083['author']&&('formatBlock'==_0x5a7083['type']||'formatInline'==_0x5a7083['type'])&&('imageStylePreApply'==_0x5a7083['subType']||'imageStylePostApply'==_0x5a7083['subType'])&&_0x5a7083['getFirstRange']()['isEqual'](_0x3c41ec))['forEach'](_0x47f2fb=>_0x2aa3a4['discardSuggestion'](_0x47f2fb['head'])),_0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),_0x3c41ec=_0x1c26f3['model']['createRangeOn'](_0x30f212),_0x2fcb51['refresh'](),_0x1c26f3['commands']['get']('imageTypeInline')['refresh'](),_0x1c26f3['commands']['get']('imageTypeBlock')['refresh'](),_0x2a6e84=_0x2fcb51['value'],_0x2a6e84!=_0x5e7c47['value'])return _0x2c2662['isInlineImage'](_0x30f212)&&_0x2fcb51['shouldConvertImageType'](_0x5e7c47['value'],_0x30f212)?(_0x4a2ad8({..._0x5e7c47,'setImageSizes':!0x1}),_0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),void _0x2aa3a4['markBlockFormat'](_0x30f212,{..._0x47a4a3,'commandReversedParams':[{'value':_0x2a6e84||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c2662['isBlockImage'](_0x30f212)?_0x2aa3a4['markBlockFormat'](_0x30f212,_0x47a4a3,[],'imageStylePostApply'):_0x2aa3a4['markInlineFormat'](_0x3c41ec,_0x47a4a3,'imageStylePostApply'));});});for(const _0x17f4a6 of _0x1c26f3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x408660[_0x17f4a6['name']]=_0x17f4a6['title']['toLowerCase']();_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3865f3])=>{_0x2c2662['setImageNaturalSizeAttributes'](_0x3865f3['getContainedElement']());}),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15cfac,_0x2dfebf)=>{_0x2aa3a4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15cfac,{'commandName':_0x2dfebf['commandName'],'commandParams':_0x2dfebf['commandReversedParams']});}),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58e424,_0x35a947){if(_0x5883d2(_0x58e424,_0x35a947))return[_0x58e424,_0x35a947];if(_0x5883d2(_0x35a947,_0x58e424))return[_0x35a947,_0x58e424];return null;});const _0xc38196=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5883d2(_0x4aa3be,_0x16b173){const _0x149b2f=_0xc38196['findIndex'](({type:_0x3742d0,subType:_0x4d1681})=>_0x4aa3be['type']==_0x3742d0&&_0x4aa3be['subType']==_0x4d1681),_0x275627=_0xc38196['findIndex'](({type:_0x69a758,subType:_0x12bcab})=>_0x16b173['type']==_0x69a758&&_0x16b173['subType']==_0x12bcab);if(_0x149b2f<0x0||_0x275627<0x0)return!0x1;const _0x25d0f2=_0x4aa3be['getFirstRange'](),_0x3340a3=_0x16b173['getFirstRange']();if((0x0==_0x149b2f||0x1==_0x149b2f)&&0x2==_0x275627&&_0x25d0f2['isIntersecting'](_0x3340a3))return!0x0;if(0x2==_0x149b2f&&0x3==_0x275627){const _0x32d4fa=_0x2aa3a4['_findSuggestions'](_0x25d0f2,'insertion')['filter'](({suggestion:_0x4e4e77,meta:_0x1393d7})=>_0x1393d7['isOwn']&&'convertInlineImageToBlock'==_0x4e4e77['subType']);if(_0x32d4fa['length']>0x1&&_0x3340a3['end']['isEqual'](_0x25d0f2['start']))return!0x0;if(0x1==_0x32d4fa['length']&&(_0x25d0f2['start']['isEqual'](_0x3340a3['end'])||_0x25d0f2['end']['isEqual'](_0x3340a3['start'])))return!0x0;}if(0x3==_0x149b2f&&0x3==_0x275627&&_0x25d0f2['start']['isBefore'](_0x3340a3['start'])){const _0x3f8e19=_0x25d0f2['end']['nodeAfter'],_0xb3bd8b=_0x3340a3['start']['nodeBefore'];return _0x2c2662['isBlockImage'](_0x3f8e19)&&_0x3f8e19===_0xb3bd8b;}return!0x1;}_0x1c26f3['model']['document']['registerPostFixer'](()=>{let _0x55bc18=!0x1;const _0x609fbb=Array['from'](_0x1c26f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13e0a4,data:_0x356cb7}of _0x609fbb){const {group:_0x3f4743,type:_0x21c3f2,subType:_0x44b35f,id:_0x455ac7}=_0x2aa3a4['_splitMarkerName'](_0x13e0a4);if('suggestion'==_0x3f4743&&_0x2aa3a4['hasSuggestion'](_0x455ac7)){if('formatBlock'==_0x21c3f2&&('imageStylePreApply'==_0x44b35f||'imageStylePostApply'==_0x44b35f)){const _0x20d973=_0x2aa3a4['getSuggestion'](_0x455ac7);if(_0x356cb7['newRange']){const _0x536da1=_0x20d973['getFirstRange']()['getContainedElement']();if(_0x2c2662['isBlockImage'](_0x536da1))continue;_0x2aa3a4['discardSuggestion'](_0x20d973),_0x55bc18=!0x0;}}if('insertion'==_0x21c3f2&&'imageCaption'==_0x44b35f&&!_0x356cb7['newRange']){const _0x5786c4=_0x2aa3a4['getSuggestion'](_0x455ac7);_0x5786c4['next']&&_0x5786c4['next']['isInContent']&&(_0x2aa3a4['discardSuggestion'](_0x5786c4['next']),_0x55bc18=!0x0);}}}return _0x55bc18;}),this['_registerLegacyDescription'](_0x408660);}['_registerLegacyDescription'](_0x1adaf4){const _0x107a17=this['editor'],_0x3ed002=_0x107a17['locale'];_0x107a17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6600cd=>{if('formatBlock'!=_0x6600cd['type']&&'formatInline'!=_0x6600cd['type'])return;const {data:_0x4beaf2}=_0x6600cd;if(!_0x4beaf2||'imageStyle'!=_0x4beaf2['commandName'])return;const _0x1a9933=_0x4beaf2['commandParams'][0x0]['value'];return _0x24f63d('side'===_0x1a9933?o(_0x3ed002,'FORMAT_SIDE_IMAGE'):_0x1adaf4[_0x1a9933]||_0x1a9933);function _0x24f63d(_0x1dcada){return{'type':'format','content':o(_0x3ed002,'*Format:*\x20%0',_0x1dcada)};}});}}class rt extends _0xccd55c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5e0d5d){super(_0x5e0d5d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3f6c0e=this['editor'],_0x1a40f6=_0x3f6c0e['commands']['get']('importWord'),_0x9ce28e=_0x3f6c0e['commands']['get']('trackChanges');_0x1a40f6&&(_0x1a40f6['on']('execute',(_0x4dc8ff,[,_0x3031aa])=>{this['_trackChangesValueDuringImport']=_0x9ce28e['value'],_0x3031aa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1a40f6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1a40f6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9ce28e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3f6c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1cf512,_0x27437e){const {suggestions:_0x3f1edd}=_0x27437e,_0x58db6a=this['editor']['commands']['get']('trackChanges'),_0x53bce6=_0x58db6a['value'];this['_trackChangesValueDuringImport']!==_0x53bce6&&(_0x58db6a['execute'](),this['_trackChangesExecuted']=!0x0),_0x3f1edd&&_0x3f1edd['forEach'](({id:_0xa2de78,type:_0x3c648b,author:_0x2da383,created_at:_0x4eac44})=>{const _0x7583b5={'id':_0xa2de78,'type':_0x3c648b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2da383,'createdAt':_0x4eac44?new Date(_0x4eac44):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7583b5);});}}class at extends _0xccd55c{['afterInit'](){const _0x4a69df=this['editor'],_0x479708=_0x4a69df['plugins']['get']('TrackChangesEditing');if(_0x4a69df['plugins']['has']('IndentEditing')&&(_0x479708['enableCommand']('indent'),_0x479708['enableCommand']('outdent')),_0x4a69df['plugins']['has']('IndentBlock')){for(const _0x38d7ed of['indentBlock','outdentBlock'])_0x479708['enableDefaultAttributesIntegration'](_0x38d7ed);}const _0x2d515d=_0x4a69df['locale'];_0x479708['registerBlockAttribute']('blockIndent'),_0x479708['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2d515d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b18c=this['editor'],_0x57c6d0=_0x20b18c['locale'],_0x1ef728=_0x20b18c['plugins']['get']('TrackChangesEditing');_0x1ef728['descriptionFactory']['registerDescriptionCallback'](_0x1262b1=>{if('formatBlock'!=_0x1262b1['type'])return;const {data:_0x4b005e}=_0x1262b1;if(!_0x4b005e)return;if('indentBlock'!=_0x4b005e['commandName']&&'outdentBlock'!=_0x4b005e['commandName'])return;const _0x41bb01=_0x1262b1['getItems']()[0x0],_0x1c3d16=_0x1ef728['descriptionFactory']['getItemLabel'](_0x41bb01);return'indentBlock'==_0x4b005e['commandName']?{'type':'format','content':o(_0x57c6d0,'*Indent:*\x20%0',_0x1c3d16)}:'outdentBlock'==_0x4b005e['commandName']?{'type':'format','content':o(_0x57c6d0,'*Outdent:*\x20%0',_0x1c3d16)}:void 0x0;});}}class ct extends _0xccd55c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xccd55c{['afterInit'](){const _0x4b4cdc=this['editor'];if(!_0x4b4cdc['plugins']['has']('LinkEditing'))return;const _0xb70d91=_0x4b4cdc['plugins']['get']('TrackChangesEditing'),_0x203f60=_0x4b4cdc['commands']['get']('link');_0xb70d91['enableDefaultAttributesIntegration']('link'),_0xb70d91['enableDefaultAttributesIntegration']('unlink'),_0xb70d91['registerInlineAttribute']('linkHref');for(const _0x263655 of _0x203f60['manualDecorators'])_0xb70d91['registerInlineAttribute'](_0x263655['id']),_0xb70d91['descriptionFactory']['registerAttributeLabel'](_0x263655['id'],'link\x20('+_0x263655['label']['toLowerCase']()+')');_0xb70d91['descriptionFactory']['registerDescriptionCallback'](_0x51ab8c=>{if('attribute'!=_0x51ab8c['type'])return;const {data:_0x2b5431}=_0x51ab8c;if(!_0x2b5431||'linkHref'!=_0x2b5431['key'])return;const _0x46a52f=_0x2b5431['newValue'],_0x190830=_0x4b4cdc['locale'];return{'type':'format','content':null==_0x46a52f?o(_0x190830,'*Remove\x20link*'):o(_0x190830,'*Set\x20link:*\x20%0','\x22'+_0x46a52f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4695e2=this['editor'],_0x26a488=_0x4695e2['locale'];_0x4695e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f68fa=>{if('formatInline'!=_0x1f68fa['type'])return;const {data:_0x331cf2}=_0x1f68fa;if(_0x331cf2){if('link'==_0x331cf2['commandName']){const _0x4c4765=_0x331cf2['commandParams'][0x0];return{'type':'format','content':o(_0x26a488,'*Set\x20link:*\x20%0','\x22'+_0x4c4765+'\x22')};}return'unlink'==_0x331cf2['commandName']?{'type':'format','content':o(_0x26a488,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xccd55c{['afterInit'](){const _0x4a3897=this['editor'],_0x9bc8d9=_0x4a3897['locale'];if(!_0x4a3897['plugins']['has']('LegacyListEditing'))return;const _0x1d92f3=_0x4a3897['plugins']['get']('TrackChangesEditing'),_0x15b58f=_0x4a3897['plugins']['has']('LegacyTodoListEditing');function _0x1ff1dc(_0xfbd0c7){return()=>{const _0x175fda=_0x4a3897['model']['document']['selection'],_0x34ecb1=_0x4a3897['commands']['get'](_0xfbd0c7);if(_0x34ecb1['value'])return void _0x4a3897['execute']('paragraph',{});const _0xb7561e=_0xfbd0c7['slice'](0x0,-0x4),_0x14cfa5=function(_0x16494e,_0xaf4c4f,_0x440a2e){let _0x104236=Array['from'](_0x16494e)['filter'](_0x76bbe9=>function(_0x17748d,_0xf32583){return _0xf32583['checkChild'](_0x17748d['parent'],'listItem')&&!_0xf32583['isObject'](_0x17748d);}(_0x76bbe9,_0x440a2e));_0x104236=_0x104236['filter'](_0x5bb4ff=>!_0x5bb4ff['is']('element','listItem')||_0x5bb4ff['getAttribute']('listType')!=_0xaf4c4f);const _0x455435=new Set();for(const _0x230b50 of _0x104236)_0x230b50['is']('element','listItem')?_0x455435['add'](Le(_0x230b50)):_0x455435['add'](_0x230b50);return Array['from'](_0x455435);}(_0x175fda['getSelectedBlocks'](),_0xb7561e,_0x4a3897['model']['schema']);_0x4a3897['model']['change'](()=>{for(const _0x421323 of _0x14cfa5)_0x1d92f3['markBlockFormat'](_0x421323,{'commandName':_0xfbd0c7,'commandParams':[{'forceValue':!_0x34ecb1['value']}],'formatGroupId':'blockName'},Ee(_0x421323));});};}function _0x54cce8(_0x546273){return()=>{const _0x4a42a5=function(_0x2f4068){let _0x2e7b15=Array['from'](_0x2f4068);const _0x45c75b=_0x2e7b15['findIndex'](_0x526108=>'listItem'!=_0x526108['name']);return _0x45c75b>-0x1&&(_0x2e7b15=_0x2e7b15['slice'](0x0,_0x45c75b)),_0x2e7b15;}(_0x4a3897['model']['document']['selection']['getSelectedBlocks']()),_0x4ef77e=_0x4a3897['model']['createRange'](_0x4a3897['model']['createPositionAt'](_0x4a42a5[0x0],'before'),_0x4a3897['model']['createPositionAt'](_0x4a42a5[_0x4a42a5['length']-0x1],'end'));_0x4a3897['model']['change'](()=>{_0x1d92f3['markBlockFormat'](_0x4ef77e,{'commandName':_0x546273,'commandParams':[],'formatGroupId':'listIndent'},function(_0x12c764){const _0x3b9345=new Set();for(const _0x36f3c3 of _0x12c764){let _0x161a2d=_0x36f3c3['nextSibling'];for(;_0x161a2d&&_0x161a2d['getAttribute']('listIndent')>_0x36f3c3['getAttribute']('listIndent');)_0x3b9345['add'](_0x161a2d),_0x161a2d=_0x161a2d['nextSibling'];}return Array['from'](_0x3b9345);}(_0x4a42a5));});};}_0x1d92f3['enableCommand']('numberedList',_0x1ff1dc('numberedList')),_0x1d92f3['enableCommand']('bulletedList',_0x1ff1dc('bulletedList')),_0x15b58f&&_0x1d92f3['enableCommand']('todoList',_0x1ff1dc('todoList')),_0x1d92f3['enableCommand']('indentList',_0x54cce8('indentList')),_0x1d92f3['enableCommand']('outdentList',_0x54cce8('outdentList')),_0x15b58f&&_0x1d92f3['enableCommand']('checkTodoList',()=>{const _0x9f9815=_0x4a3897['commands']['get']('checkTodoList'),_0x10433d=Array['from'](_0x9f9815['_selectedElements']);_0x10433d['filter'](_0x581afc=>_0x581afc['getAttribute']('todoListChecked')!=_0x9f9815['value']),_0x4a3897['model']['change'](()=>{for(const _0x238bce of _0x10433d)_0x1d92f3['markBlockFormat'](_0x238bce,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9f9815['value']}]});});}),_0x1d92f3['descriptionFactory']['registerElementLabel']('listItem',_0x4c44fa=>o(_0x9bc8d9,'ELEMENT_LIST_ITEM',_0x4c44fa)),_0x1d92f3['descriptionFactory']['registerDescriptionCallback'](_0x206827=>{if('formatBlock'!=_0x206827['type']&&'formatInline'!=_0x206827['type'])return;const {data:_0x4cfcc3}=_0x206827;if(_0x4cfcc3){if('numberedList'==_0x4cfcc3['commandName']||'bulletedList'==_0x4cfcc3['commandName']||'todoList'==_0x4cfcc3['commandName'])switch(_0x4cfcc3['commandName']['replace']('List','')){case'bulleted':return _0x211b36(o(_0x9bc8d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x211b36(o(_0x9bc8d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x211b36(o(_0x9bc8d9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4cfcc3['commandName'])return{'type':'format','content':o(_0x9bc8d9,'*Indent:*\x20%0',o(_0x9bc8d9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4cfcc3['commandName'])return{'type':'format','content':o(_0x9bc8d9,'*Outdent:*\x20%0',o(_0x9bc8d9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4cfcc3['commandName'])return _0x4cfcc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9bc8d9,'*Check\x20item*')}:{'type':'format','content':o(_0x9bc8d9,'*Uncheck\x20item*')};}function _0x211b36(_0xd2f27e){return{'type':'format','content':o(_0x9bc8d9,'*Change\x20to:*\x20%0',_0xd2f27e)};}});}}function Le(_0x34297b){const _0x5836ee=_0x34297b['getAttribute']('listIndent');if(0x0==_0x5836ee)return _0x34297b;let _0x245385=_0x34297b;for(;_0x34297b['previousSibling']&&_0x34297b['previousSibling']['is']('element','listItem');){const _0x487545=_0x34297b['previousSibling']['getAttribute']('listIndent');if(_0x487545==_0x5836ee)_0x245385=_0x34297b['previousSibling'];else{if(_0x487545<_0x5836ee)break;}_0x34297b=_0x34297b['previousSibling'];}return _0x245385;}function Ee(_0x22027f){const _0x384c3=[];if(_0x22027f['is']('element','listItem')&&_0x22027f['getAttribute']('listIndent')>0x0){let _0x220af4=_0x22027f['nextSibling'];for(;_0x220af4&&'listItem'==_0x220af4['name']&&_0x220af4['getAttribute']('listIndent')==_0x22027f['getAttribute']('listIndent');)_0x384c3['push'](_0x220af4),_0x220af4=_0x220af4['nextSibling'];}return _0x384c3;}class ht extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcdd520=this['editor']['config']['get']('list.properties'),_0x4d82e7=this['editor']['plugins']['get']('TrackChangesEditing');_0xcdd520['styles']&&_0x4d82e7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcdd520['reversed']&&_0x4d82e7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcdd520['startIndex']&&_0x4d82e7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d82e7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x17e576,_0x79c84c={}){const _0x598558=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22b0d4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x598558['markMultiRangeBlockFormat'](_0x22b0d4,{'commandName':'listStyle','commandParams':[{'type':_0x79c84c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x180f20,_0x3fd7a9={}){const _0x4a9cb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13bdad=this['_getSuggestionBlocks'](_0x30000f=>_0x30000f['is']('element','listItem')&&'numbered'===_0x30000f['getAttribute']('listType'));if(_0x13bdad['length']<0x1)return;const _0x16d740=_0x13bdad['map'](_0x10111a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10111a,'before'),this['editor']['model']['createPositionAt'](_0x10111a,0x0)));this['editor']['model']['change'](()=>{_0x4a9cb7['markMultiRangeBlockFormat'](_0x16d740,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fd7a9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x501a63,_0x33f938={}){const _0x38e598=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59c98f=this['_getSuggestionBlocks'](_0x48985e=>_0x48985e['is']('element','listItem')&&'numbered'===_0x48985e['getAttribute']('listType'));if(_0x59c98f['length']<0x1)return;const _0x36ae65=_0x59c98f['map'](_0x39cee1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39cee1,'before'),this['editor']['model']['createPositionAt'](_0x39cee1,0x0)));this['editor']['model']['change'](()=>{_0x38e598['markMultiRangeBlockFormat'](_0x36ae65,{'commandName':'listStart','commandParams':[{'startIndex':_0x33f938['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x529038){if('formatBlock'!=_0x529038['type']&&'formatInline'!=_0x529038['type'])return;const _0x718d3d=this['editor']['locale'],{data:_0x37936f}=_0x529038;if(!_0x37936f)return;let _0x486809,_0x17e2d1;switch(_0x37936f['commandName']){case'listStyle':_0x486809='*Change\x20to:*\x20%0',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809,o(_0x718d3d,this['_getTranslationKeyForListStyle'](_0x37936f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x486809=_0x37936f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809)};break;case'listStart':_0x486809='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809,_0x37936f['commandParams'][0x0]['startIndex'])};}return _0x17e2d1;}['_getSuggestionBlocksForListStyle'](){const _0x56bc28=this['editor']['plugins']['get']('LegacyListUtils');let _0x3fbf17=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3fbf17[0x0]?.['is']('element','listItem')&&_0x3fbf17['unshift'](..._0x56bc28['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3fbf17[_0x3fbf17['length']-0x1]?.['is']('element','listItem')&&_0x3fbf17['push'](..._0x56bc28['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3fbf17=[...new Set(_0x3fbf17)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3fbf17=_0x3fbf17['filter'](_0x3fdfcd=>_0x3fdfcd['is']('element','listItem'))),_0x3fbf17;}['_getSuggestionBlocks'](_0x37f564){const _0x5afdbe=this['editor']['plugins']['get']('LegacyListUtils');let _0x41ea6a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37f564)['map'](_0x2e6922=>{const _0x9b8460=this['editor']['model']['createPositionAt'](_0x2e6922,0x0);return[..._0x5afdbe['getSiblingNodes'](_0x9b8460,'backward'),..._0x5afdbe['getSiblingNodes'](_0x9b8460,'forward')];})['flat']();return _0x41ea6a=[...new Set(_0x41ea6a)],_0x41ea6a;}['_getTranslationKeyForListStyle'](_0x17d4cd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x17d4cd)||'default')['toUpperCase']()+'_LIST_'+_0x17d4cd['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xccd55c{['afterInit'](){const _0x5f3519=this['editor'];if(!_0x5f3519['plugins']['has']('MediaEmbedEditing'))return;const _0x44d6ce=_0x5f3519['plugins']['get']('TrackChangesEditing'),_0x1f20a9=_0x5f3519['locale'];_0x44d6ce['enableCommand']('mediaEmbed'),_0x44d6ce['descriptionFactory']['registerElementLabel']('media',_0x302a45=>o(_0x1f20a9,'ELEMENT_MEDIA',_0x302a45)),_0x5f3519['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x859b36,{writer:_0x36d672,options:_0x2bc38b})=>{if(_0x2bc38b['showSuggestionHighlights'])return _0x36d672['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f3519['data']['downcastDispatcher']['on']('attribute:url:media',(_0x196fb4,_0x552228,_0x51ee19)=>{_0x51ee19['options']['showSuggestionHighlights']&&_0x196fb4['stop']();},{'priority':'high'});}}class lt extends _0xccd55c{['afterInit'](){const _0x18ddd9=this['editor'];_0x18ddd9['plugins']['has']('MentionEditing')&&_0x18ddd9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xccd55c{['afterInit'](){const _0x592b3b=this['editor'];if(!_0x592b3b['plugins']['has']('MergeFieldsEditing'))return;const _0x2ae2e5=_0x592b3b['plugins']['get']('TrackChangesEditing'),_0x48d8eb=_0x592b3b['locale'];_0x2ae2e5['enableCommand']('insertMergeField'),_0x2ae2e5['enableCommand']('insertMergeFieldBlock'),_0x2ae2e5['enableCommand']('insertMergeFieldImage'),_0x2ae2e5['descriptionFactory']['registerElementLabel']('mergeField',_0x147f51=>o(_0x48d8eb,'ELEMENT_MERGE_FIELD',_0x147f51)),_0x2ae2e5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12e490=>o(_0x48d8eb,'ELEMENT_MERGE_FIELD',_0x12e490)),_0x2ae2e5['descriptionFactory']['registerDescriptionCallback'](_0x4a0565=>{if('insertion'!=_0x4a0565['type']&&'deletion'!=_0x4a0565['type'])return;const _0x2d1fa2=_0x4a0565['getContainedElement']();if(null==_0x2d1fa2)return;const _0x2e9f32=_0x592b3b['plugins']['get']('MergeFieldsEditing');let _0x13e0a8;switch(_0x2e9f32['getMergeFieldType'](_0x2d1fa2)){case null:return;case'image':{const _0x5507ca=_0x2e9f32['unwrapAffixes'](_0x2d1fa2['getAttribute']('src'));_0x13e0a8=_0x2e9f32['getLabel'](_0x5507ca)||_0x5507ca;break;}default:{const _0x42f0b0=_0x2d1fa2['getAttribute']('id');_0x13e0a8=_0x2e9f32['getLabel'](_0x42f0b0)||_0x42f0b0;break;}}return'insertion'==_0x4a0565['type']?{'type':'insertion','content':o(_0x48d8eb,'*Insert:*\x20%0','\x22'+_0x13e0a8+'\x22\x20'+o(_0x48d8eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x48d8eb,'*Remove:*\x20%0','\x22'+_0x13e0a8+'\x22\x20'+o(_0x48d8eb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xccd55c{['afterInit'](){const _0x16a661=this['editor'],_0x5ea1aa=_0x16a661['plugins']['get']('TrackChangesEditing');_0x16a661['plugins']['has']('MultiLevelList')&&(_0x5ea1aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ea1aa['registerBlockAttribute']('listMarkerStyle'),_0x5ea1aa['descriptionFactory']['registerDescriptionCallback'](_0x558189=>this['handleDescriptions'](_0x558189)));}['handleDescriptions'](_0x337e38){const _0x9b23ae=this['editor']['locale'],{data:_0xfc7652}=_0x337e38,_0x57c812={'type':'format','content':''};if(_0xfc7652&&'listMarkerStyle'==_0xfc7652['key']){if(!_0xfc7652['oldValue'])return{'type':'format','content':o(_0x9b23ae,'*Set\x20format:*\x20%0',o(_0x9b23ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc7652['newValue']+')'};if(!_0xfc7652['newValue']){let _0x8e5d07=_0x337e38['head'];for(;_0x8e5d07;){if(_0x8e5d07['data']&&'listType'==_0x8e5d07['data']['key']&&_0x8e5d07['data']['newValue'])return _0x57c812;_0x8e5d07=_0x8e5d07['next'];}return{'type':'format','content':o(_0x9b23ae,'*Remove\x20format:*\x20%0',o(_0x9b23ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc7652['oldValue']+')'};}}}}class pt extends _0xccd55c{['afterInit'](){const _0x2a02d1=this['editor'];if(!_0x2a02d1['plugins']['has']('PageBreakEditing'))return;_0x2a02d1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4219b9=_0x2a02d1['plugins']['get']('TrackChangesEditing'),_0x110113=_0x2a02d1['locale'];_0x4219b9['descriptionFactory']['registerElementLabel']('pageBreak',_0x482605=>o(_0x110113,'ELEMENT_PAGE_BREAK',_0x482605));}}class kt extends _0xccd55c{['afterInit'](){const _0x22c155=this['editor'];if(!_0x22c155['plugins']['has']('Paragraph'))return;const _0x2e6455=_0x22c155['locale'],_0x3ffaa6=_0x22c155['plugins']['get']('TrackChangesEditing');_0x3ffaa6['descriptionFactory']['registerElementLabel']('paragraph',_0x361a45=>o(_0x2e6455,'ELEMENT_PARAGRAPH',_0x361a45)),_0x3ffaa6['enableDefaultAttributesIntegration']('paragraph'),_0x3ffaa6['enableCommand']('insertParagraph'),_0x22c155['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x22c155),{'priority':'highest'}),_0x22c155['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16a888,_0x4fa534,_0xb1bb00)=>{_0xb1bb00['options']['showSuggestionHighlights']&&nr(_0x22c155,{'showActiveMarker':!0x1})(_0x16a888,_0x4fa534,_0xb1bb00);},{'priority':'highest'});const _0x4f0ff1=_0x3ffaa6['descriptionFactory'];_0x4f0ff1['registerDescriptionCallback'](_0x232c0c=>{if('insertion'!==_0x232c0c['type'])return;const {start:_0x522714,end:_0x24ab7}=_0x232c0c['getFirstRange']();if(!_0x522714['isTouching'](_0x24ab7)||!_0x522714['nodeAfter'])return;const _0x43770d=_0x22c155['model']['schema'],_0x434b23=_0x522714['nodeAfter'];return _0x43770d['isBlock'](_0x434b23)&&!_0x43770d['isLimit'](_0x434b23)&&_0x43770d['checkChild'](_0x434b23,'$text')?{'type':'insertion','content':o(_0x2e6455,'*Insert:*\x20%0',_0x4f0ff1['getItemLabel'](_0x434b23,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a4c75=this['editor'],_0x59e8e4=_0x5a4c75['locale'];_0x5a4c75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d80ec=>{if('formatBlock'!=_0x3d80ec['type'])return;const {data:_0x3c6fde}=_0x3d80ec;return _0x3c6fde&&'paragraph'==_0x3c6fde['commandName']?{'type':'format','content':o(_0x59e8e4,'*Change\x20to:*\x20%0',o(_0x59e8e4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x36ed47,{showActiveMarker:_0x52b2b5=!0x0}={}){return(_0x54d2f0,_0xfc5239,_0x41f915)=>{const _0x10a2ec=_0x36ed47['plugins']['get']('TrackChangesEditing'),_0x1b45ba=_0xfc5239['markerRange']['start'],_0x1abe8c=_0xfc5239['markerRange']['end'],_0xa61cce=_0x36ed47['model']['schema'];if(!_0x1b45ba['isTouching'](_0x1abe8c)||!_0x1b45ba['nodeAfter'])return;const _0x43d52b=_0x1b45ba['nodeAfter'];if(_0xa61cce['isBlock'](_0x43d52b)&&!_0xa61cce['isLimit'](_0x43d52b)&&_0xa61cce['checkChild'](_0x43d52b,'$text')){if(!_0x41f915['consumable']['consume'](_0xfc5239['markerRange'],_0x54d2f0['name']))return;const {id:_0x3a0dcc,authorId:_0x562d3a}=_0x10a2ec['_splitMarkerName'](_0xfc5239['markerName']),_0x108a27=_0x41f915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3a0dcc,'data-author-id':_0x562d3a}),_0x18624b=_0x41f915['mapper']['toViewPosition'](_0x1abe8c);_0x52b2b5&&_0x10a2ec['activeMarkers']['includes'](_0xfc5239['markerName'])&&_0x41f915['writer']['addClass']('ck-suggestion-marker--active',_0x108a27),_0x41f915['writer']['insert'](_0x18624b,_0x108a27),_0x41f915['mapper']['bindElementToMarker'](_0x108a27,_0xfc5239['markerName']);}};}class wt extends _0xccd55c{['afterInit'](){const _0x36345e=this['editor'];_0x36345e['commands']['get']('replaceSource')&&_0x36345e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xccd55c{['afterInit'](){const _0x8d0775=this['editor'];if(!_0x8d0775['plugins']['has']('RemoveFormatEditing'))return;_0x8d0775['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b476e=this['editor'];_0x1b476e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a2165=>{if('formatBlock'!=_0x4a2165['type']&&'formatInline'!=_0x4a2165['type'])return;const {data:_0x5628b8}=_0x4a2165;return _0x5628b8&&'removeFormat'==_0x5628b8['commandName']?{'type':'format','content':o(_0x1b476e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xccd55c{['afterInit'](){const _0x51efbf=this['editor'];if(!_0x51efbf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8a413d=_0x51efbf['plugins']['get']('TrackChangesEditing');_0x8a413d['enableCommand']('goToPreviousRestrictedEditingException'),_0x8a413d['enableCommand']('goToNextRestrictedEditingException');const _0x559692=_0x51efbf['plugins']['get']('RestrictedEditingModeEditing');_0x559692['enableCommand']('trackChanges'),_0x559692['enableCommand']('acceptSuggestion'),_0x559692['enableCommand']('discardSuggestion'),_0x559692['enableCommand']('acceptAllSuggestions'),_0x559692['enableCommand']('discardAllSuggestions'),_0x559692['enableCommand']('acceptSelectedSuggestions'),_0x559692['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xccd55c{['afterInit'](){const _0xd6cdd1=this['editor'];if(!_0xd6cdd1['plugins']['has']('ShiftEnter'))return;const _0x419c60=_0xd6cdd1['plugins']['get']('TrackChangesEditing');_0x419c60['enableCommand']('shiftEnter'),_0xd6cdd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xd6cdd1),{'priority':'high'}),_0xd6cdd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xd6cdd1),{'priority':'high'}),_0xd6cdd1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f576b,_0x1e21bf,_0x3b2534)=>{_0x3b2534['options']['showSuggestionHighlights']&&je(_0xd6cdd1,{'showActiveMarker':!0x1})(_0x4f576b,_0x1e21bf,_0x3b2534);}),_0x419c60['descriptionFactory']['registerElementLabel']('softBreak',_0x2b1c61=>o(_0xd6cdd1['locale'],'ELEMENT_LINE_BREAK',_0x2b1c61));}}function je(_0x2bb9b5,{showActiveMarker:_0x1abdaf=!0x0}={}){return(_0x249ddc,_0x5ef69f,_0x1c2931)=>{const _0x3547f6=_0x2bb9b5['plugins']['get']('TrackChangesEditing');if(!_0x1c2931['consumable']['test'](_0x5ef69f['markerRange'],_0x249ddc['name']))return;const _0x4001d9=_0x2bb9b5['model'];for(const _0xcc8a7b of _0x5ef69f['markerRange']['getItems']()){if(!_0xcc8a7b['is']('element','softBreak'))continue;const _0x24852f='deletion'==_0x5ef69f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x554d5c,authorId:_0x1766df}=_0x3547f6['_splitMarkerName'](_0x5ef69f['markerName']),_0x2dbdbd=_0x1c2931['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24852f,'data-suggestion':_0x554d5c,'data-author-id':_0x1766df}),_0x4e7275=_0x1c2931['mapper']['toViewPosition'](_0x4001d9['createPositionBefore'](_0xcc8a7b));_0x1abdaf&&_0x3547f6['activeMarkers']['includes'](_0x5ef69f['markerName'])&&_0x1c2931['writer']['addClass']('ck-suggestion-marker--active',_0x2dbdbd),_0x1c2931['writer']['insert'](_0x4e7275,_0x2dbdbd),_0x1c2931['mapper']['bindElementToMarker'](_0x2dbdbd,_0x5ef69f['markerName']);}};}class St extends _0xccd55c{['afterInit'](){const _0x1d1d5c=this['editor'],_0x292462=_0x1d1d5c['model'],_0x32aba3=_0x1d1d5c['locale'];if(!_0x1d1d5c['plugins']['has']('StandardEditingModeEditing'))return;const _0x26ec40=_0x1d1d5c['plugins']['get']('TrackChangesEditing'),_0x1abe97='restrictedEditingException',_0xef54dd=_0x1d1d5c['commands']['get'](_0x1abe97);_0x26ec40['enableCommand'](_0x1abe97,(_0x54a678,_0xada6af={})=>{const _0x5f062a=_0x292462['document']['selection'];if(_0x5f062a['isCollapsed'])return void _0x54a678(_0xada6af);const _0x482408=void 0x0!==_0xada6af['forceValue']?_0xada6af['forceValue']:!_0xef54dd['value'];_0x292462['change'](()=>{const _0x343f1d=Array['from'](_0x5f062a['getRanges']());for(const _0x12c618 of _0x343f1d){const _0x43709e=_0x482408?[_0x12c618]:io(_0x1abe97,_0x12c618,_0x292462);for(const _0x55ad27 of _0x43709e)_0x26ec40['markInlineFormat'](_0x55ad27,{'commandName':_0x1abe97,'commandParams':[{'forceValue':_0x482408}]});}});}),_0x26ec40['descriptionFactory']['registerDescriptionCallback'](_0x268787=>{if('formatBlock'!=_0x268787['type']&&'formatInline'!=_0x268787['type'])return;const {data:_0x240661}=_0x268787;return _0x240661&&_0x240661['commandName']==_0x1abe97?_0x240661['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32aba3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x32aba3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xccd55c{['afterInit'](){const _0x34fcb0=this['editor'];if(!_0x34fcb0['plugins']['has']('Style')||!_0x34fcb0['plugins']['has']('DataSchema'))return;const _0x5cd059=_0x34fcb0['plugins']['get']('TrackChangesEditing'),_0x3b3a26=_0x34fcb0['locale'],_0x4052ee=_0x34fcb0['config']['get']('style')||{},_0x5333ad=_0x34fcb0['plugins']['get']('GeneralHtmlSupport'),_0x1aad79=_0x34fcb0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x34fcb0['plugins']['get']('DataSchema'),_0x4052ee['definitions']);_0x5cd059['enableDefaultAttributesIntegration']('style');const _0x3f29e3=new Set();for(const _0x381a28 of _0x1aad79['block']){const _0x4170d2=_0x5333ad['getGhsAttributeNameForElement'](_0x381a28['element']);_0x3f29e3['add'](_0x4170d2);}const _0xaafc1e=new Set();for(const _0x236f93 of _0x1aad79['inline']){const _0x332de1=_0x5333ad['getGhsAttributeNameForElement'](_0x236f93['element']);_0xaafc1e['add'](_0x332de1);for(const _0x3a6438 of _0x236f93['ghsAttributes'])_0xaafc1e['add'](_0x3a6438);}for(const _0x1521c3 of _0x3f29e3)_0x5cd059['registerBlockAttribute'](_0x1521c3),_0x5cd059['descriptionFactory']['registerAttributeLabel'](_0x1521c3,o(_0x3b3a26,'FORMAT_STYLE'));for(const _0x526774 of _0xaafc1e)_0x5cd059['registerInlineAttribute'](_0x526774),_0x5cd059['descriptionFactory']['registerAttributeLabel'](_0x526774,o(_0x3b3a26,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88977b=this['editor'],_0x1ad310=_0x88977b['locale'];_0x88977b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3144=>{if('formatBlock'!=_0x3b3144['type']&&'formatInline'!=_0x3b3144['type'])return;const {data:_0x3c1760}=_0x3b3144;return _0x3c1760&&'style'===_0x3c1760['commandName']?_0x3c1760['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ad310,'*Set\x20format:*\x20%0',_0x3c1760['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ad310,'*Remove\x20format:*\x20%0',_0x3c1760['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xccd55c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3b3949){super(_0x3b3949),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b762d=this['editor'],_0x5a937b=_0x5b762d['model']['document']['selection'];if(!_0x5b762d['plugins']['has']('TableEditing'))return;const _0x2d3acc=_0x5b762d['locale'],_0x36343a=_0x5b762d['plugins']['get']('TrackChangesEditing'),_0x50d772=_0x5b762d['plugins']['get']('TableUtils');_0x36343a['descriptionFactory']['registerElementLabel']('table',_0x253b9c=>o(_0x2d3acc,'ELEMENT_TABLE',_0x253b9c)),this['_setupColumnsRowsFixing'](),_0x36343a['enableCommand']('insertTable'),_0x36343a['enableCommand']('selectTableRow'),_0x36343a['enableCommand']('selectTableColumn');for(const _0x5350f0 of['insertTableRowAbove','insertTableRowBelow']){const _0xb2965d=_0x5b762d['commands']['get'](_0x5350f0);_0x36343a['enableCommand'](_0x5350f0,_0x591a77=>{_0x5b762d['model']['change'](_0x1ddfea=>{_0x591a77();const _0x4e36b5='above'===_0xb2965d['order'],_0x264179=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x1799cc=_0x50d772['getRowIndexes'](_0x264179),_0x9ba8f0=_0x4e36b5?_0x1799cc['first']-0x1:_0x1799cc['last']+0x1,_0x232cbb=_0x264179[0x0]['findAncestor']('table'),_0x3ec7eb=_0x50d772['createTableWalker'](_0x232cbb,{'startRow':_0x9ba8f0,'endRow':_0x9ba8f0}),_0xd442eb=Array['from'](_0x3ec7eb)['map'](_0x29994c=>_0x1ddfea['createRangeOn'](_0x29994c['cell']));_0x36343a['markMultiRangeInsertion'](_0xd442eb,'tableRow');});});}for(const _0x1c74b6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d9a4f=_0x5b762d['commands']['get'](_0x1c74b6);_0x36343a['enableCommand'](_0x1c74b6,_0x39acb1=>{_0x5b762d['model']['change'](_0x300564=>{_0x39acb1();const _0x37c5d2='left'===_0x1d9a4f['order'],_0x2cffc2=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x2f4b7b=_0x50d772['getColumnIndexes'](_0x2cffc2),_0x40dbde=_0x37c5d2?_0x2f4b7b['first']-0x1:_0x2f4b7b['last']+0x1,_0x475605=_0x2cffc2[0x0]['findAncestor']('table'),_0x46d2d6=_0x50d772['createTableWalker'](_0x475605,{'startRow':0x0,'column':_0x40dbde,'includeAllSlots':!0x1}),_0x1f53ce=Array['from'](_0x46d2d6)['map'](_0x3da829=>_0x300564['createRangeOn'](_0x3da829['cell']));_0x36343a['markMultiRangeInsertion'](_0x1f53ce,'tableColumn');});});}for(const _0x5e68e8 of['removeTableRow','removeTableColumn']){const _0x24e56e=_0x5e68e8['substr'](0xb),_0x2508ce=_0x24e56e['toLowerCase'](),_0xf895cd=_0x2508ce['substr'](0x0,0x3)+'span',_0x511551='table'+_0x24e56e,_0x2c5ea0='min'+_0x24e56e,_0x1ba88e='max'+_0x24e56e;_0x36343a['enableCommand'](_0x5e68e8,()=>{_0x5b762d['model']['change'](_0x4b0bf3=>{const _0x5e9318=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x116740=_0x5e9318[0x0]['findAncestor']('table');let _0x4af3b2;if('removeTableRow'==_0x5e68e8){const _0x26d31c=_0x50d772['getRowIndexes'](_0x5e9318);_0x4af3b2={'startRow':_0x26d31c['first'],'endRow':_0x26d31c['last'],'includeAllSlots':!0x0};}else{const _0x136fe2=_0x50d772['getColumnIndexes'](_0x5e9318);_0x4af3b2={'startColumn':_0x136fe2['first'],'endColumn':_0x136fe2['last'],'includeAllSlots':!0x0};}const _0x1d4a62=_0x50d772['createTableWalker'](_0x116740,_0x4af3b2),_0x2b5b51=Array['from'](_0x1d4a62)['map'](({cell:_0x56d01d})=>_0x56d01d),_0x5a60bb=Ne(_0x2b5b51['filter'](_0x4e8ca2=>_0x4e8ca2['hasAttribute'](_0xf895cd))),_0x3960ee=Ne(_0x2b5b51['filter'](_0x40d1fb=>!_0x40d1fb['hasAttribute'](_0xf895cd)))['map'](_0x22ee49=>_0x4b0bf3['createRangeOn'](_0x22ee49)),_0x25e31b=_0x36343a['markMultiRangeDeletion'](_0x3960ee,_0x511551);if(_0x25e31b&&('tableRow'==_0x25e31b['subType']||'tableColumn'==_0x25e31b['subType'])){const _0x5041e5=this['_getSuggestionCoords'](_0x25e31b);for(const _0x4ab7b3 of _0x5a60bb){const _0xfb9173=_0x4b0bf3['createRangeOn'](_0x4ab7b3),_0x127b11=_0x50d772['getCellLocation'](_0x4ab7b3),_0x81d0de=_0x4ab7b3['getAttribute'](_0xf895cd)-0x1,_0x58c252=_0x5041e5[_0x2c5ea0],_0x22e2e4=_0x5041e5[_0x1ba88e];_0x58c252<=_0x127b11[_0x2508ce]&&_0x127b11[_0x2508ce]+_0x81d0de<=_0x22e2e4&&_0x25e31b['addRange'](_0xfb9173);}}});});}function _0x8452c4(_0x4cffea){const _0x615c19=Array['from'](_0x5a937b['getRanges']())['map'](_0x4e2406=>_0x20b456['fromRange'](_0x4e2406));_0x5b762d['model']['change'](_0x1bf57e=>{const _0x304c82=_0x1bf57e['batch'];_0x4cffea=_0x4cffea['filter'](_0x3b4a71=>'$graveyard'!=_0x3b4a71['root']['rootName']),_0x1bf57e['setSelection'](_0x4cffea),_0x5b762d['commands']['get']('removeTableRow')['refresh'](),_0x5b762d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b762d['model']['enqueueChange'](()=>{_0x5b762d['model']['enqueueChange'](_0x304c82,_0x391453=>{const _0x5efd11=_0x615c19['filter'](_0x4188ec=>'$graveyard'!=_0x4188ec['root']['rootName']);_0x5efd11['length']>0x0&&_0x391453['setSelection'](_0x5efd11);for(const _0x29372c of _0x615c19)_0x29372c['detach']();});});});}function _0x225a3e(_0x5e3697){_0x5b762d['model']['change'](_0x114eef=>{const _0x553a79=Array['from'](_0x5a937b['getRanges']())['map'](_0x2f55bf=>_0x20b456['fromRange'](_0x2f55bf)),_0x5ccc5a=[];for(const _0xc30dbc of _0x5e3697)for(const _0x3bce1b of _0xc30dbc['getItems']({'shallow':!0x0}))_0x5ccc5a['push'](_0x3bce1b);for(const _0x11a659 of _0x5ccc5a)'$graveyard'!=_0x11a659['root']['rootName']&&(_0x114eef['setSelection'](_0x114eef['createPositionAt'](_0x11a659,0x0)),_0x5b762d['commands']['get']('removeTableColumn')['refresh'](),_0x5b762d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x8a82b6=_0x553a79['filter'](_0x5b7dff=>'$graveyard'!=_0x5b7dff['root']['rootName']);_0x8a82b6['length']>0x0&&_0x114eef['setSelection'](_0x8a82b6);for(const _0x2de009 of _0x553a79)_0x2de009['detach']();});}function _0x33c1a4(_0x377048,_0x594449){return _0x594449['every'](_0x5aee56=>_0x377048['some'](_0x3f1291=>_0x3f1291['end']['isEqual'](_0x5aee56['start'])||_0x5aee56['end']['isEqual'](_0x3f1291['start'])));}function _0x14aa31(_0x493120,_0x3a6a6f){return!_0x493120['some'](_0x1a84eb=>_0x3a6a6f['some'](_0x5319f1=>_0x1a84eb['isIntersecting'](_0x5319f1)))&&_0x493120['some'](_0x5ac9f6=>_0x3a6a6f['some'](_0x5c51f8=>_0x5ac9f6['end']['isTouching'](_0x5c51f8['start'])));}_0x5b762d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d4c0d,_0x3cc62d,_0x574f6a)=>{if(!_0x574f6a['options']['showSuggestionHighlights'])return;const _0x35a994=_0x3cc62d['item'];if(!_0x35a994||!_0x35a994['is']('element','tableCell'))return;const _0x397873=_0x574f6a['mapper']['toViewElement'](_0x35a994);if(_0x397873){const {id:_0xe71cf4,authorId:_0x5d8479}=_0x36343a['_splitMarkerName'](_0x3cc62d['markerName']);_0x117925(_0x397873,_0x574f6a['writer'],(_0xf9cc77,_0x466577,_0x1d4593)=>{_0x1d4593['addClass'](_0x1c6e8b(_0x466577['classes']),_0xf9cc77),_0x1d4593['setAttribute']('data-suggestion-id',_0xe71cf4,_0xf9cc77),_0x1d4593['setAttribute']('data-author-id',_0x5d8479,_0xf9cc77);},(_0x29f46d,_0x2c7927,_0x445a2b)=>{_0x445a2b['removeClass'](_0x1c6e8b(_0x2c7927['classes']),_0x29f46d),_0x445a2b['removeAttribute']('data-suggestion-id',_0x29f46d),_0x445a2b['removeAttribute']('data-author-id',_0x29f46d);});}},{'priority':'highest'}),_0x36343a['descriptionFactory']['registerDescriptionCallback'](_0x278ad4=>{if('insertion'!=_0x278ad4['type']&&'deletion'!=_0x278ad4['type'])return;const _0x25f55b=_0x278ad4['getContainedElement']();if(null!=_0x25f55b&&_0x25f55b['is']('element','table')){if('insertion'==_0x278ad4['type']){const _0x46e9c9=_0x278ad4['getItems']()['filter'](_0x3bc03a=>_0x3bc03a['is']('$textProxy'))['map'](_0x22ed57=>_0x22ed57['data']);if(_0x46e9c9['length'])return{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46e9c9['join']('\x20')+'\x22'))};}if('deletion'==_0x278ad4['type']){const _0x4e7e2b=_0x278ad4['getItems']()['filter'](_0x27afc0=>_0x27afc0['is']('$textProxy'))['map'](_0x2ac062=>_0x2ac062['data']);if(_0x4e7e2b['length'])return{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e7e2b['join']('\x20')+'\x22'))};}}}),_0x36343a['descriptionFactory']['registerDescriptionCallback'](_0x57282a=>{if('tableRow'==_0x57282a['subType']){const _0x2bc6bd=_0x57282a['getItems']()['filter'](_0x7e0c0d=>_0x7e0c0d['is']('$textProxy'))['map'](_0x40b80d=>_0x40b80d['data']),_0x4807b8=this['_getSuggestionCoords'](_0x57282a),_0xf78afb=_0x4807b8['maxRow']-_0x4807b8['minRow']+0x1;if('insertion'==_0x57282a['type'])return _0x2bc6bd['length']?{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf78afb,'\x22'+_0x2bc6bd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW',_0xf78afb))};if('deletion'==_0x57282a['type'])return _0x2bc6bd['length']?{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf78afb,'\x22'+_0x2bc6bd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW',_0xf78afb))};}if('tableColumn'==_0x57282a['subType']){const _0x46b11b=_0x57282a['getItems']()['filter'](_0xda0a5=>_0xda0a5['is']('$textProxy'))['map'](_0x429f90=>_0x429f90['data']),_0x52ed13=this['_getSuggestionCoords'](_0x57282a),_0x419259=_0x52ed13['maxColumn']-_0x52ed13['minColumn']+0x1;if('insertion'==_0x57282a['type'])return _0x46b11b['length']?{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x419259,'\x22'+_0x46b11b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN',_0x419259))};if('deletion'==_0x57282a['type'])return _0x46b11b['length']?{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x419259,'\x22'+_0x46b11b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN',_0x419259))};}}),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8452c4),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8452c4),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x225a3e),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x225a3e),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33c1a4),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33c1a4),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14aa31),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14aa31);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6ed1b6=this['editor'],_0x448d5c=_0x6ed1b6['model']['document']['selection'];return(_0x209de8,_0x346751)=>{_0x6ed1b6['model']['change'](_0x4e9345=>{const {commandName:_0x43fff1,commandParams:_0x1cb230}=_0x346751;let _0x26e04e=_0x209de8[0x0]['end']['nodeBefore'];_0x1cb230&&_0x1cb230[0x0]&&!0x1===_0x1cb230[0x0]['forceValue']&&(_0x26e04e=_0x209de8[0x0]['start']['nodeAfter']);const _0x4f170e=_0x4e9345['createRangeIn'](_0x26e04e);if('$graveyard'==_0x4f170e['root']['rootName'])return;const _0x172929=Array['from'](_0x448d5c['getRanges']())['map'](_0x3f0447=>_0x20b456['fromRange'](_0x3f0447));_0x4e9345['setSelection'](_0x4f170e),_0x6ed1b6['commands']['get'](_0x43fff1)['refresh'](),_0x1cb230['push']({'forceDefaultExecution':!0x0}),_0x6ed1b6['execute'](_0x43fff1,..._0x1cb230);const _0x389e2e=_0x172929['filter'](_0x239410=>'$graveyard'!=_0x239410['root']['rootName']);_0x389e2e['length']>0x0&&_0x4e9345['setSelection'](_0x389e2e);for(const _0x369637 of _0x172929)_0x369637['detach']();});};}['_getCoordsForCells'](_0x5f383f){const _0x530358=this['editor']['plugins']['get']('TableUtils');let _0x202196=Number['MAX_SAFE_INTEGER'],_0x114ced=Number['MIN_SAFE_INTEGER'],_0x43d77d=Number['MAX_SAFE_INTEGER'],_0x3fb18e=Number['MIN_SAFE_INTEGER'];for(const _0x5c4946 of _0x5f383f){if('$graveyard'==_0x5c4946['root']['rootName'])continue;const {row:_0x420591,column:_0x151622}=_0x530358['getCellLocation'](_0x5c4946),_0x148253=_0x5c4946['hasAttribute']('rowspan')?_0x5c4946['getAttribute']('rowspan')-0x1:0x0,_0x51c475=_0x5c4946['hasAttribute']('colspan')?_0x5c4946['getAttribute']('colspan')-0x1:0x0;_0x202196=_0x420591<_0x202196?_0x420591:_0x202196,_0x114ced=_0x420591+_0x148253>_0x114ced?_0x420591+_0x148253:_0x114ced,_0x43d77d=_0x151622<_0x43d77d?_0x151622:_0x43d77d,_0x3fb18e=_0x151622+_0x51c475>_0x3fb18e?_0x151622+_0x51c475:_0x3fb18e;}return{'minRow':_0x202196,'maxRow':_0x114ced,'minColumn':_0x43d77d,'maxColumn':_0x3fb18e};}['_setupColumnsRowsFixing'](){const _0x5c0919=this['editor'],_0x58f209=_0x5c0919['plugins']['get']('TrackChangesEditing'),_0x39e323=_0x5c0919['plugins']['get']('TableUtils');_0x5c0919['model']['document']['on']('change:data',()=>{const _0x2b2917=Array['from'](_0x5c0919['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x99bc64,data:_0x369dae}of _0x2b2917){const {group:_0x2a9e7a,id:_0x37ee46,subType:_0x37f8e7}=_0x58f209['_splitMarkerName'](_0x99bc64);if('suggestion'!=_0x2a9e7a)continue;if(null!=_0x369dae['oldRange'])continue;const _0x515ec8=_0x58f209['getSuggestion'](_0x37ee46);this['_tablePostFixingSubtypes']['includes'](_0x37f8e7)&&this['_tableSuggestions']['add'](_0x515ec8);}},{'priority':'low'});const _0x191db5=(_0x3e1a97,_0x2b643c)=>{let _0x4049a2=!0x1;const _0x1c01df=_0x2b643c['createRangeOn'](_0x3e1a97),_0x399801=_0x3e1a97['findAncestor']('table'),_0x35a93c=_0x39e323['getCellLocation'](_0x3e1a97);for(const _0x51d772 of this['_tableSuggestions']){const _0x5108bc=_0x51d772['subType'],_0x25b882=_0x5108bc['startsWith']('tablePaste'),_0x2c64f8=_0x5108bc['substr'](_0x25b882?0xa:0x5),_0x80c21c=_0x2c64f8['toLowerCase'](),_0x5d9680=_0x80c21c['substr'](0x0,0x3)+'span',_0x1ea047='min'+_0x2c64f8,_0x240675='max'+_0x2c64f8;if(!_0x51d772['isInContent'])continue;if(_0x399801!=_0x51d772['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51d772['isIntersectingWithRange'](_0x1c01df))continue;const _0x96a8b2=_0x3e1a97['hasAttribute'](_0x5d9680)?_0x3e1a97['getAttribute'](_0x5d9680)-0x1:0x0,_0x5a2a46=this['_getSuggestionCoords'](_0x51d772),_0x3b465=_0x5a2a46[_0x1ea047],_0x469867=_0x5a2a46[_0x240675];_0x3b465<=_0x35a93c[_0x80c21c]&&_0x35a93c[_0x80c21c]+_0x96a8b2<=_0x469867&&(_0x51d772['addRange'](_0x1c01df),_0x4049a2=!0x0);}return _0x4049a2;};_0x5c0919['model']['document']['registerPostFixer'](_0x341ce3=>{let _0x1a21f5=!0x1;for(const _0x5a537a of _0x5c0919['model']['document']['differ']['getChanges']())if('insert'==_0x5a537a['type']){if('tableRow'==_0x5a537a['name']){for(const _0x367cf8 of _0x5a537a['position']['nodeAfter']['getChildren']())_0x1a21f5=_0x1a21f5||_0x191db5(_0x367cf8,_0x341ce3);}else'tableCell'==_0x5a537a['name']&&(_0x1a21f5=_0x1a21f5||_0x191db5(_0x5a537a['position']['nodeAfter'],_0x341ce3));}return _0x1a21f5;});}['_getSuggestionCoords'](_0x50c3c9){return this['_getCoordsForCells'](_0x50c3c9['getRanges']()['map'](_0xd81a5d=>_0xd81a5d['start']['nodeAfter']));}}function Ne(_0x1ea1bc){return Array['from'](new Set(_0x1ea1bc)['values']());}class _t extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x34dac2=this['editor'],_0x3e90cb=_0x34dac2['model']['document']['selection'],_0x364f34=_0x34dac2['locale'];if(!_0x34dac2['plugins']['has']('TableEditing'))return;const _0x1b85ef=_0x34dac2['plugins']['get']('TrackChangesEditing'),_0x18d226=_0x34dac2['plugins']['get']('TableUtils'),_0x1ed2eb=_0x34dac2['plugins']['get'](At);_0x1ed2eb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b85ef['enableCommand']('mergeTableCells',()=>{const _0x27a398=_0x18d226['getSelectionAffectedTableCells'](_0x34dac2['model']['document']['selection']);_0x34dac2['model']['change'](()=>{_0x1b85ef['markMultiRangeBlockFormat'](_0x27a398,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34dac2['commands']['get']('mergeTableCells')['on']('execute',(_0x1b95ef,_0x4e0aa9)=>{_0x34dac2['commands']['get']('trackChanges')['value']&&(_0x4e0aa9['length']>0x0&&_0x4e0aa9[_0x4e0aa9['length']-0x1]&&_0x4e0aa9[_0x4e0aa9['length']-0x1]['forceDefaultExecution']||_0x1b85ef['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1b95ef['stop']());},{'priority':'highest'});for(const _0x1a2afb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3e5b8d=_0x34dac2['commands']['get'](_0x1a2afb);_0x1b85ef['enableCommand'](_0x1a2afb,()=>{const _0x3d0836=_0x34dac2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33224d=>_0x33224d['is']('element','tableCell')),_0xbceeb2=_0x3e5b8d['value'];_0x34dac2['model']['change'](()=>{_0x1b85ef['markMultiRangeBlockFormat']([_0x3d0836,_0xbceeb2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x421930 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17f3cb=_0x34dac2['commands']['get'](_0x421930);_0x1b85ef['enableCommand'](_0x421930,()=>{const _0x4f8d06=_0x18d226['getSelectionAffectedTableCells'](_0x34dac2['model']['document']['selection'])[0x0],_0x426fdd=_0x4f8d06['findAncestor']('table'),{column:_0x3cd23b,row:_0x1514cc}=_0x18d226['getCellLocation'](_0x4f8d06);let _0x458407=[];if('horizontally'==_0x17f3cb['direction']){const _0x290081=_0x18d226['createTableWalker'](_0x426fdd,{'startRow':_0x1514cc,'endRow':_0x1514cc,'includeAllSlots':!0x0});_0x458407=Array['from'](_0x290081)['map'](_0x3f35ee=>_0x3f35ee['cell']);}else{const _0x84082d=_0x18d226['createTableWalker'](_0x426fdd,{'column':_0x3cd23b,'includeAllSlots':!0x0});_0x458407=Array['from'](_0x84082d)['map'](_0x4e3969=>_0x4e3969['cell']);}_0x34dac2['model']['change'](_0x2b4f9a=>{_0x1b85ef['markBlockFormat'](_0x2b4f9a['createRangeOn'](_0x4f8d06),{'commandName':_0x421930,'commandParams':[]},_0x458407,_0x421930);});});}_0x1b85ef['descriptionFactory']['registerDescriptionCallback'](_0x44681c=>{if('formatBlock'!=_0x44681c['type']&&'formatInline'!=_0x44681c['type'])return;const {data:_0x19a715}=_0x44681c;return _0x19a715&&'mergeTableCells'==_0x19a715['commandName']?{'type':'format','content':o(_0x364f34,'*Merge\x20cells*')}:void 0x0;}),_0x1b85ef['descriptionFactory']['registerDescriptionCallback'](_0x3d7313=>{if('formatBlock'!=_0x3d7313['type']&&'formatInline'!=_0x3d7313['type'])return;const {data:_0x598ea4}=_0x3d7313;return _0x598ea4?'splitTableCellVertically'==_0x598ea4['commandName']?{'type':'format','content':o(_0x364f34,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x598ea4['commandName']?{'type':'format','content':o(_0x364f34,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x328204=_0x1ed2eb['_acceptFormatSuggestionCallbackFactory']();for(const _0x2736ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2736ff,'accept',_0x328204);for(const _0xa1bb6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa1bb6,'accept',_0x328204);_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x888d1d=>{_0x34dac2['model']['change'](_0x21c55c=>{const _0xbb0322=Array['from'](_0x3e90cb['getRanges']())['map'](_0x3d3f57=>_0x20b456['fromRange'](_0x3d3f57));_0x21c55c['setSelection'](_0x888d1d),_0x34dac2['commands']['get']('mergeTableCells')['refresh'](),_0x34dac2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a8609=_0xbb0322['filter'](_0x288be3=>'$graveyard'!=_0x288be3['root']['rootName']);_0x3a8609['length']>0x0&&_0x21c55c['setSelection'](_0x3a8609);for(const _0x1d5b53 of _0xbb0322)_0x1d5b53['detach']();});});for(const _0x5d59ad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56995c=_0x34dac2['commands']['get'](_0x5d59ad);_0x56995c['on']('set:isEnabled',(_0x246d71,_0x144424,_0x3b0a29)=>{if(_0x3b0a29){const _0x239fb8=_0x34dac2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b6edb=>_0x2b6edb['is']('element','tableCell'));this['_areMergableCells'](_0x56995c['value'],_0x239fb8)||(_0x246d71['return']=!0x1,_0x246d71['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5653cd=this['editor']['commands']['get']('mergeTableCells'),_0x123ac8=this['editor']['plugins']['get']('TableUtils');if(!_0x5653cd['isEnabled'])return!0x1;const _0xbc1793=_0x123ac8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x184c57 of _0xbc1793)for(const _0x17daee of _0xbc1793)if(_0x184c57!=_0x17daee&&!this['_areMergableCells'](_0x184c57,_0x17daee))return!0x1;return!0x0;}['_areMergableCells'](_0x5ee01e,_0x4db436){const _0x198e08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cedbe=this['editor']['model']['createRangeOn'](_0x5ee01e),_0x30d122=this['editor']['model']['createRangeOn'](_0x4db436),_0x4f9d9b=new Set(),_0x56e172=new Set();for(const _0x244415 of _0x198e08['getSuggestions']())if(('insertion'==_0x244415['type']||'deletion'==_0x244415['type']||'mergeTableCells'==_0x244415['subType'])&&_0x244415['isInContent']){for(const _0x374152 of _0x244415['getRanges']())_0x374152['containsRange'](_0x3cedbe,!0x0)&&_0x4f9d9b['add'](_0x244415['type']+':'+_0x244415['author']['id']),_0x374152['containsRange'](_0x30d122,!0x0)&&_0x56e172['add'](_0x244415['type']+':'+_0x244415['author']['id']);}if(_0x4f9d9b['size']!=_0x56e172['size'])return!0x1;for(const _0x2a2d7f of _0x4f9d9b)if(!_0x56e172['has'](_0x2a2d7f))return!0x1;return!0x0;}}class Ct extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x484fd9=this['editor'];if(!_0x484fd9['plugins']['has']('TableEditing'))return;const _0x4dc352=_0x484fd9['locale'],_0x12da2d=_0x484fd9['plugins']['get']('TrackChangesEditing');_0x12da2d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12da2d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12da2d['registerBlockAttribute']('headingRows'),_0x12da2d['registerBlockAttribute']('headingColumns'),_0x12da2d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4dc352,'FORMAT_HEADER_ROW')),_0x12da2d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4dc352,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x562504=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149141=this['editor']['plugins']['get']('TableUtils'),_0x329472=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x10b37e({showActiveMarker:_0x44746a=!0x0,setDataAttribute:_0x468273=!0x0}={}){return(_0x40cb2e,_0x407c48,_0x14f14d)=>{const {type:_0x2201c0,id:_0x106c36}=_0x562504['_splitMarkerName'](_0x407c48['markerName']),_0x59d832=_0x562504['getSuggestion'](_0x106c36),_0x2829dd=_0x59d832['data'];if('formatBlock'!=_0x59d832['type']||!_0x2829dd||'setTableColumnHeader'!=_0x2829dd['commandName'])return;if(_0x407c48['item'])return void _0x40cb2e['stop']();if(!_0x14f14d['consumable']['consume'](_0x407c48['markerRange'],_0x40cb2e['name']))return;const _0x1d8681=_0x407c48['markerRange']['start']['nodeAfter'],_0x2bcb24=_0x407c48['markerRange']['end']['nodeBefore'],_0x133536=_0x1d8681['parent']['parent'],{column:_0x58e96e}=_0x149141['getCellLocation'](_0x1d8681),{column:_0x582379}=_0x149141['getCellLocation'](_0x2bcb24);for(let _0x267255=_0x58e96e;_0x267255<=_0x582379;_0x267255++){const _0xe29ef9=_0x149141['createTableWalker'](_0x133536,{'column':_0x267255,'includeAllSlots':!0x1});for(const _0x3e7c9e of _0xe29ef9){const _0x54f121=_0x3e7c9e['cell'],_0x3ac1e0=_0x14f14d['mapper']['toViewElement'](_0x54f121);_0x14f14d['writer']['addClass']('ck-suggestion-marker-'+_0x2201c0,_0x3ac1e0),_0x468273&&_0x14f14d['writer']['setAttribute']('data-suggestion',_0x106c36,_0x3ac1e0),_0x14f14d['mapper']['bindElementToMarker'](_0x3ac1e0,_0x407c48['markerName']),_0x44746a&&(_0x562504['activeMarkers']['includes'](_0x407c48['markerName'])?_0x14f14d['writer']['addClass']('ck-suggestion-marker--active',_0x3ac1e0):_0x14f14d['writer']['removeClass']('ck-suggestion-marker--active',_0x3ac1e0));}}};}_0x562504['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x329472),_0x562504['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x329472),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10b37e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x348a67,_0x3d157a,_0x3eae7c)=>{_0x3eae7c['options']['showSuggestionHighlights']&&_0x10b37e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x348a67,_0x3d157a,_0x3eae7c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c2264,_0x3562d8,_0x45eb1b)=>{const {type:_0x57de2d,id:_0x2914f9}=_0x562504['_splitMarkerName'](_0x3562d8['markerName']),_0xcb6c9b=_0x562504['getSuggestion'](_0x2914f9),_0x421f64=_0xcb6c9b['data'];if('formatBlock'!=_0xcb6c9b['type']||!_0x421f64||'setTableColumnHeader'!=_0x421f64['commandName'])return;const _0x28c05d=_0x45eb1b['mapper']['markerNameToElements'](_0x3562d8['markerName']);if(_0x28c05d){for(const _0x3b83ef of _0x28c05d)_0x45eb1b['writer']['removeClass']('ck-suggestion-marker-'+_0x57de2d,_0x3b83ef),_0x45eb1b['writer']['removeClass']('ck-suggestion-marker--active',_0x3b83ef),_0x45eb1b['writer']['removeAttribute']('data-suggestion',_0x3b83ef),_0x45eb1b['mapper']['unbindElementFromMarkerName'](_0x3b83ef,_0x3562d8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4cbe=this['editor'],_0x367f93=_0x3a4cbe['locale'];function _0x2a99a4(_0x273335){return{'type':'format','content':o(_0x367f93,'*Format:*\x20%0',_0x273335)};}_0x3a4cbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a438=>{if('formatBlock'!=_0x12a438['type'])return;const {data:_0x45e55e}=_0x12a438;if(_0x45e55e){if('setTableRowHeader'==_0x45e55e['commandName']){const _0x4f21d1=_0x45e55e['commandParams'][0x0]['forceValue'];return _0x2a99a4(o(_0x367f93,_0x4f21d1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x45e55e['commandName']){const _0x29ea3e=_0x45e55e['commandParams'][0x0]['forceValue'];return _0x2a99a4(o(_0x367f93,_0x29ea3e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xccd55c{['afterInit'](){const _0x5b4139=this['editor'],_0x3b1e7a=_0x5b4139['locale'],_0x2d563b=_0x5b4139['plugins']['get']('TrackChangesEditing');function _0x281be7(_0x4c6f23){return{'type':'format','content':''+o(_0x3b1e7a,'*Set\x20table\x20type:*\x20%0',_0x4c6f23)};}_0x5b4139['plugins']['has']('TableLayout')&&(_0x2d563b['enableCommand']('insertTableLayout'),_0x2d563b['enableDefaultAttributesIntegration']('tableType'),_0x2d563b['registerBlockAttribute']('tableType'),_0x2d563b['descriptionFactory']['registerElementLabel'](_0x6225ca=>_0x6225ca['is']('element','table')&&'layout'===_0x6225ca['getAttribute']('tableType'),_0x1f46d2=>o(_0x3b1e7a,'ELEMENT_LAYOUT_TABLE',_0x1f46d2)),_0x2d563b['descriptionFactory']['registerDescriptionCallback'](_0x23e9e6=>{const {data:_0x482ae8}=_0x23e9e6;if(_0x482ae8&&'tableType'==_0x482ae8['key'])switch(_0x482ae8['newValue']){case'layout':return _0x281be7(o(_0x3b1e7a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x281be7(o(_0x3b1e7a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x18186d=>[_0x18186d,null]));class Nt extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x26ea85=this['editor'];if(!_0x26ea85['plugins']['has']('TableClipboard'))return;const _0x3ed86c=_0x26ea85['plugins']['get']('TrackChangesEditing'),_0x2000f9=_0x26ea85['plugins']['get']('TableUtils'),_0x1554e2=_0x26ea85['plugins']['get'](At),_0x1cbab3=_0x26ea85['plugins']['get']('TableClipboard'),_0x184b43=_0x26ea85['plugins']['get']('TableSelection'),_0x3f35de=_0x26ea85['plugins']['get'](_0x6b813f);_0x1554e2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x26ea85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x26ea85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4f9f11=null,_0x3935cd=!0x1;_0x3f35de['on']('contentInsertion',(_0x580c28,_0x8283f4)=>{_0x3935cd='paste'===_0x8283f4['method'];}),_0x26ea85['model']['on']('insertContent',(_0x100aee,_0x1495a1)=>{if(!_0x3935cd&&null===_0x184b43['getSelectedTableCells']())return;const [_0x20f5dd,_0x408c4b]=_0x1495a1,_0x17f34f=_0x1495a1[_0x1495a1['length']-0x1];_0x17f34f&&_0x17f34f['forceDefaultExecution']||_0x3ed86c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a9bcf,_0x57f5c6,_0x3d537a,_0x59a976,_0x15ae51){if(_0x57f5c6&&!_0x57f5c6['is']('documentSelection'))return!0x1;const _0x363a5e=_0x15ae51['getTableIfOnlyTableInContent'](_0x1a9bcf,_0x3d537a);if(!_0x363a5e||!Ue(_0x363a5e,void 0x0,_0x59a976))return!0x1;const _0x42f957=_0x59a976['getSelectionAffectedTableCells'](_0x3d537a['document']['selection']);if(!_0x42f957['length'])return!0x1;const _0x2becce=_0x42f957[0x0]['findAncestor']('table'),_0x2ecb63=_0x59a976['getRowIndexes'](_0x42f957),_0x4804a3=_0x59a976['getColumnIndexes'](_0x42f957),_0x2f7e84={'startRow':_0x2ecb63['first'],'endRow':_0x2ecb63['last'],'startColumn':_0x4804a3['first'],'endColumn':_0x4804a3['last']};return 0x1==_0x42f957['length']&&(_0x2f7e84['endRow']+=_0x59a976['getRows'](_0x363a5e)-0x1,_0x2f7e84['endColumn']+=_0x59a976['getColumns'](_0x363a5e)-0x1),Ue(_0x2becce,_0x2f7e84,_0x59a976);}(_0x20f5dd,_0x408c4b,_0x26ea85['model'],_0x2000f9,_0x1cbab3)&&(_0x100aee['stop'](),_0x4f9f11={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x26ea85['model']['change'](()=>{_0x26ea85['model']['insertContent'](_0x1495a1[0x0],_0x1495a1[0x1],_0x1495a1[0x2],{'forceDefaultExecution':!0x0});const _0x518f60=_0x427844(),{rowInsertionRanges:_0xcf67cb,columnInsertionRanges:_0xb4a573,insertionRanges:_0x2fab7f,deletionRanges:_0x5b80c4,cells:_0x5e346b}=_0x4f9f11;_0xcf67cb['length']&&_0x3ed86c['markMultiRangeInsertion'](_0xcf67cb,'tablePasteRow',{'tablePasteChainId':_0x518f60}),_0xb4a573['length']&&_0x3ed86c['markMultiRangeInsertion'](_0xb4a573,'tablePasteColumn',{'tablePasteChainId':_0x518f60}),_0x2fab7f['length']&&(_0x3ed86c['markMultiRangeInsertion'](_0x2fab7f,'tablePaste',{'tablePasteChainId':_0x518f60,'skipNestingCheck':!0x0}),_0x2fab7f['forEach'](_0x19a4ff=>_0x19a4ff['detach']?.())),_0x5b80c4['length']&&(_0x3ed86c['markMultiRangeDeletion'](_0x5b80c4,'tablePaste',{'tablePasteChainId':_0x518f60,'skipNestingCheck':!0x0}),_0x5b80c4['forEach'](_0x35e3cd=>_0x35e3cd['detach']?.()));const _0x4035a9=_0x3ed86c['markMultiRangeBlockFormat'](_0x5e346b['map'](({element:_0x18d3f4})=>_0x18d3f4),{'formatGroupId':_0x427844()},[],'tablePasteCell',{'tablePasteChainId':_0x518f60});if(_0x4035a9){const _0x4dc100=_0x4035a9['getMarkers'](),_0x3943aa=[];for(const {element:_0x59c655,attributes:_0x20b3eb}of _0x5e346b){if(!_0x20b3eb)continue;const _0xd8c73b=_0x26ea85['model']['createRangeOn'](_0x59c655),_0x4706e0=_0x4dc100['find'](_0x16e87f=>_0x16e87f['getRange']()['isEqual'](_0xd8c73b));_0x4706e0&&_0x3943aa['push']([_0x4706e0['name'],_0x20b3eb]);}_0x3943aa['length']&&_0x4035a9['setAttribute']('markerAttributes',Object['fromEntries'](_0x3943aa));}_0x4f9f11=null;}));},{'priority':_0x850491['high']+0xa}),_0x3f35de['on']('contentInsertion',()=>{_0x3935cd=!0x1;},{'priority':'lowest'}),_0x26ea85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x238aaf,_0x5ceba4)=>{const [_0x4f62ab,_0x47966a,,_0x2a5960]=_0x5ceba4;if(!_0x4f9f11)return;_0x238aaf['stop']();const _0x503be6=_0x4f62ab['cell'],_0x16b615=_0x47966a,_0x33c8d7=Oe(_0x503be6),_0x3e5eb1=Oe(_0x16b615);_0x238aaf['return']=_0x503be6;let _0xb2f0d9=null,_0x2299eb=null;if(_0x3e5eb1||_0x33c8d7){if(_0x33c8d7&&!_0x3e5eb1){_0x2a5960['remove'](_0x503be6['getChild'](0x0));for(const _0x33a0f0 of Array['from'](_0x16b615['getChildren']()))_0x2a5960['insert'](_0x33a0f0,_0x503be6,'end');const _0x1494fe=_0x4f9f11['rowInsertionIndexes']['includes'](_0x4f62ab['row']),_0x2a4c9e=_0x4f9f11['columnInsertionIndexes']['includes'](_0x4f62ab['column']);_0x1494fe||_0x2a4c9e||(_0xb2f0d9=_0x20b456['fromRange'](_0x2a5960['createRangeIn'](_0x503be6)));}else _0x3e5eb1&&!_0x33c8d7&&(_0x2299eb=_0x2a5960['createRangeIn'](_0x503be6));}else{const _0x7509b5=_0x2a5960['createElement']('tableCellSuggestion'),_0x44e03a=_0x2a5960['createElement']('tableCellSuggestion');_0x2a5960['wrap'](_0x2a5960['createRangeIn'](_0x503be6),_0x44e03a),_0x2a5960['insert'](_0x7509b5,_0x503be6,0x0);for(const _0x6ceda6 of Array['from'](_0x16b615['getChildren']()))_0x2a5960['insert'](_0x6ceda6,_0x7509b5,'end');_0xb2f0d9=_0x20b456['fromRange'](_0x2a5960['createRangeOn'](_0x7509b5)),_0x2299eb=_0x20b456['fromRange'](_0x2a5960['createRangeOn'](_0x44e03a));}const _0x1fd80a=Array['from'](_0x16b615['getAttributes']())['filter'](([_0x40657f])=>Be['includes'](_0x40657f));_0x4f9f11['cells']['push']({'element':_0x503be6,'attributes':_0x1fd80a['length']?Object['fromEntries'](_0x1fd80a):null}),_0xb2f0d9&&_0x4f9f11['insertionRanges']['push'](_0xb2f0d9),_0x2299eb&&_0x4f9f11['deletionRanges']['push'](_0x2299eb);},{'priority':'high'}),_0x2000f9['on']('insertColumns',(_0x37afeb,_0x28d7d4)=>{const [_0x426ea6,_0x2cc6cf={}]=_0x28d7d4;if(!_0x4f9f11)return;const _0x1c81b7=_0x2cc6cf['at']||0x0,_0x12ee8f=_0x2cc6cf['columns']||0x1;_0x4f9f11['columnInsertionIndexes']=new Array(_0x12ee8f)['fill'](_0x1c81b7)['map']((_0x3aa0e7,_0x1e70aa)=>_0x3aa0e7+_0x1e70aa);for(const {cell:_0x179357}of _0x2000f9['createTableWalker'](_0x426ea6,{'startColumn':_0x1c81b7,'endColumn':_0x1c81b7+_0x12ee8f-0x1}))_0x4f9f11['columnInsertionRanges']['push'](_0x26ea85['model']['createRangeOn'](_0x179357));},{'priority':'low'}),_0x2000f9['on']('insertRows',(_0x4c9422,_0x62847e)=>{const [_0x4c7cc8,_0x4e5890={}]=_0x62847e;if(!_0x4f9f11)return;const _0x3ae346=_0x4e5890['at']||0x0,_0x3f67ad=_0x4e5890['rows']||0x1;_0x4f9f11['rowInsertionIndexes']=new Array(_0x3f67ad)['fill'](_0x3ae346)['map']((_0x1f1499,_0x56b47d)=>_0x1f1499+_0x56b47d);for(const {cell:_0x33491f}of _0x2000f9['createTableWalker'](_0x4c7cc8,{'startRow':_0x3ae346,'endRow':_0x3ae346+_0x3f67ad-0x1}))_0x4f9f11['rowInsertionRanges']['push'](_0x26ea85['model']['createRangeOn'](_0x33491f));},{'priority':'low'}),_0x3ed86c['descriptionFactory']['registerDescriptionCallback'](_0xd511a8=>{if(_0xd511a8['subType']&&_0xd511a8['subType']['startsWith']('tablePaste'))return _0xd511a8['previous']?{}:{'type':'insertion','content':o(_0x26ea85['locale'],'*Replace\x20table\x20cells*')};});const _0x4036e2=()=>!0x1;for(const _0x32cd62 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion',_0x32cd62,'join',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('deletion',_0x32cd62,'join',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32cd62,'join',_0x4036e2);_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13e10b,_0x414446,_0x44ceb4)=>{const _0x326ada=_0x13e10b['map'](_0x3783d0=>_0x3783d0['getContainedElement']())['filter'](_0x298e9b=>_0x298e9b),_0x3cb4aa=new Map(_0x326ada['map'](_0x485330=>[_0x485330,null]));if(_0x4f9f11){for(const {element:_0x4808b8,attributes:_0x208a86}of _0x4f9f11['cells'])_0x208a86&&_0x3cb4aa['set'](_0x4808b8,_0x208a86);}else{if(_0x44ceb4&&_0x44ceb4['markerAttributes'])for(const [_0x560fe5,_0xa89c72]of Object['entries'](_0x44ceb4['markerAttributes'])){const _0x13b2ea=_0x26ea85['model']['markers']['get'](_0x560fe5),_0x813cdf=_0x13b2ea?_0x13b2ea['getRange']()['getContainedElement']():null;_0x813cdf&&_0x3cb4aa['set'](_0x813cdf,_0xa89c72);}}_0x26ea85['model']['change'](_0xed16a6=>{for(const [_0x220cc9,_0x4e2066]of _0x3cb4aa)_0xed16a6['setAttributes']({...xe,..._0x4e2066},_0x220cc9);});});const _0x3769ab=(_0x4ff79f,_0x484e9a)=>{_0x3ed86c['_suggestionFactory']['registerCustomCallback'](_0x4ff79f,'tablePaste',_0x484e9a,(_0x69441d,_0x57102e,_0x4960bd)=>{_0x26ea85['model']['change'](_0x26c2eb=>{const _0x3950f8=[];for(const _0x414bb5 of _0x69441d){const _0x233e59=_0x414bb5['start']['nodeAfter'];_0x233e59['is']('element','tableCellSuggestion')&&_0x3950f8['push'](_0x233e59);}_0x3ed86c['_suggestionFactory']['getSuggestionCallback'](_0x4ff79f,null,_0x484e9a)(_0x69441d,_0x57102e,_0x4960bd);for(const _0x4fc71c of _0x3950f8)'$graveyard'!=_0x4fc71c['root']['rootName']&&_0x26c2eb['unwrap'](_0x4fc71c);});});};_0x3769ab('insertion','accept'),_0x3769ab('insertion','discard'),_0x3769ab('deletion','accept'),_0x3769ab('deletion','discard'),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ad176=>{const _0x27dcc1=_0x4ad176['map'](_0x2679cd=>_0x2679cd['getContainedElement']()),_0x3f7788=_0x27dcc1[0x0]['findAncestor']('table'),{minRow:_0x5eb9b4,maxRow:_0x1ae917}=_0x1554e2['_getCoordsForCells'](_0x27dcc1);_0x2000f9['removeRows'](_0x3f7788,{'at':_0x5eb9b4,'rows':_0x1ae917-_0x5eb9b4+0x1});}),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x408099=>{const _0x424d1b=_0x408099['map'](_0x39d4ec=>_0x39d4ec['getContainedElement']()),_0x5f9edc=_0x424d1b[0x0]['findAncestor']('table'),{minColumn:_0x4f8e44,maxColumn:_0x306bc7}=_0x1554e2['_getCoordsForCells'](_0x424d1b);_0x2000f9['removeColumns'](_0x5f9edc,{'at':_0x4f8e44,'columns':_0x306bc7-_0x4f8e44+0x1});});const _0x4df38c=(_0x41b6ab,_0x39123a)=>{if(!_0x39123a['subType']||!_0x39123a['subType']['startsWith']('tablePaste'))return;const _0x5af8f0=_0x39123a['attributes']['tablePasteChainId'],_0x116d40=_0x3ed86c['getSuggestions']()['filter'](_0x3b1217=>_0x3b1217['isInContent']&&_0x3b1217['attributes']&&_0x3b1217['attributes']['tablePasteChainId']==_0x5af8f0);_0x116d40['length']&&_0x39123a['getAllAdjacentSuggestions']()['length']!=_0x116d40['length']&&_0x116d40['reduce']((_0x365ef2,_0x4cb34a)=>(_0x365ef2['next']=_0x4cb34a,_0x4cb34a['previous']=_0x365ef2,_0x4cb34a));};function _0x3d1b7d(_0x3ec34e,_0x40955e=!0x0){const {id:_0x41d05a,authorId:_0x82f522}=_0x3ed86c['_splitMarkerName'](_0x3ec34e['markerName']),_0x26af44=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3790e4=_0x3ed86c['activeMarkers']['includes'](_0x3ec34e['markerName']);return _0x3790e4&&_0x26af44['push']('ck-suggestion-marker--active'),{'classes':_0x26af44,'attributes':{'data-suggestion':_0x41d05a,'data-author-id':_0x82f522},'priority':_0x3790e4&&_0x40955e?0xbc2:0xbb8};}_0x3ed86c['on']('suggestionLoaded',_0x4df38c,{'priority':'high'}),_0x3ed86c['on']('suggestionUnloaded',_0x4df38c,{'priority':'high'}),_0x26ea85['model']['document']['registerPostFixer'](()=>{let _0x33de2e=!0x1;const _0x15be7a=Array['from'](_0x26ea85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bd159,data:_0x50d014}of _0x15be7a){const {group:_0x5a881e,type:_0x3cb6a8,id:_0xfb589f}=_0x3ed86c['_splitMarkerName'](_0x2bd159);if('suggestion'!=_0x5a881e||'deletion'!=_0x3cb6a8||_0x50d014['oldRange'])continue;if(!_0x3ed86c['hasSuggestion'](_0xfb589f))continue;const _0x588665=_0x3ed86c['getSuggestion'](_0xfb589f)['getRanges'](),_0x232843=_0x26ea85['plugins']['get']('Users')['me'];for(const _0x38569c of _0x3ed86c['getSuggestions']()){if(!_0x38569c['isInContent']||_0x38569c['author']!=_0x232843)continue;if('formatBlock'!=_0x38569c['type']||'tablePasteCell'!=_0x38569c['subType'])continue;if(_0x38569c['getRanges']()['every'](_0x553080=>_0x588665['some'](_0xd6ba98=>_0xd6ba98['containsRange'](_0x553080,!0x0)))){for(const _0x2b64f9 of _0x38569c['getAllAdjacentSuggestions']())_0x2b64f9['isInContent']&&(_0x2b64f9['discard'](),_0x33de2e=!0x0);}}}return _0x33de2e;}),_0x26ea85['model']['document']['registerPostFixer'](_0x1d75ea=>{const _0x41ef6c=_0x26ea85['commands']['get']('redo');if(!_0x41ef6c||!_0x41ef6c['_createdBatches']['has'](_0x1d75ea['batch']))return!0x1;let _0x3fcb4d=!0x1;const _0x4e0958=_0x26ea85['plugins']['get']('Users')['me'],_0x4fbffa=_0x26ea85['model']['document']['differ']['getChanges'](),_0x26a54a=Array['from'](_0x26ea85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x533df9,data:_0x4aa73c})=>{const {group:_0x42474b,subType:_0x23f50d,authorId:_0x4edb49}=_0x3ed86c['_splitMarkerName'](_0x533df9);return'suggestion'==_0x42474b&&'tablePaste'==_0x23f50d&&_0x4edb49==_0x4e0958['id']&&!_0x4aa73c['oldRange'];});for(const _0x58dce5 of _0x4fbffa){if('insert'!=_0x58dce5['type']||'tableCellSuggestion'!=_0x58dce5['name']||0x1!=_0x58dce5['length'])continue;const _0x304fd0=_0x1d75ea['createRange'](_0x58dce5['position'],_0x58dce5['position']['getShiftedBy'](0x1));if(!_0x26a54a['find'](({data:_0x2f61ad})=>_0x2f61ad['newRange']['isEqual'](_0x304fd0))){for(const {name:_0x3c342e,data:_0x4c5374}of _0x26a54a)if(_0x304fd0['containsRange'](_0x4c5374['newRange'])){_0x1d75ea['updateMarker'](_0x3c342e,{'range':_0x304fd0}),_0x3fcb4d=!0x0;break;}}}return _0x3fcb4d;}),_0x26ea85['model']['document']['registerPostFixer'](_0x995b01=>{let _0x30de04=!0x1;const _0x292d76=_0x26ea85['plugins']['get']('Users')['me'],_0x2c95c6=_0x3ed86c['getSuggestions']()['filter'](_0xd29c06=>_0xd29c06['isInContent']&&_0xd29c06['author']==_0x292d76),_0x4a866e=new Set(),_0x328cb6=new Set();for(const _0x34c999 of _0x2c95c6)if('tablePaste'==_0x34c999['subType'])for(const _0x5b4ef9 of _0x34c999['getMarkers']()){const _0x2a9986=_0x5b4ef9['getRange']()['getContainedElement']();if(_0x2a9986){if(_0x2a9986['is']('element','tableCellSuggestion')&&Oe(_0x2a9986)){_0x34c999['removeMarker'](_0x5b4ef9['name']),_0x4a866e['add'](_0x2a9986),_0x30de04=!0x0;const _0x5b3f6c=_0x2a9986['nextSibling'],_0x176c3d=_0x2a9986['previousSibling'],_0x16bd10=_0x5b3f6c&&_0x5b3f6c['is']('element','tableCellSuggestion'),_0xdb1940=_0x176c3d&&_0x176c3d['is']('element','tableCellSuggestion');_0x16bd10&&!_0x4a866e['has'](_0x5b3f6c)&&_0x328cb6['add'](_0x5b3f6c),_0xdb1940&&!_0x4a866e['has'](_0x176c3d)&&_0x328cb6['add'](_0x176c3d);}else _0x2a9986['is']('element','paragraph')&&_0x2a9986['isEmpty']&&(_0x34c999['removeMarker'](_0x5b4ef9['name']),_0x30de04=!0x0);}}else{if('tablePasteCell'==_0x34c999['subType']){if(!_0x34c999['attributes']||!_0x34c999['attributes']['tablePasteChainId'])continue;const _0x1577a1=_0x34c999['attributes']['markerAttributes'];if(_0x1577a1&&Object['keys'](_0x1577a1)['length'])continue;const _0x1c4f99=_0x34c999['attributes']['tablePasteChainId'];let _0x5432d9=!0x0,_0x146137=!0x0;for(const _0x12a2a7 of _0x2c95c6)if(_0x12a2a7['subType']&&_0x12a2a7['subType']['startsWith']('tablePaste')){if(!_0x12a2a7['attributes']['tablePasteChainId']){_0x146137=!0x1;break;}if(_0x12a2a7['id']!=_0x34c999['id']&&_0x12a2a7['attributes']['tablePasteChainId']==_0x1c4f99){_0x5432d9=!0x1;break;}}_0x146137&&_0x5432d9&&(_0x34c999['removeMarkers'](),_0x30de04=!0x0);}}for(const _0x23ea2e of _0x4a866e)_0x995b01['remove'](_0x23ea2e);for(const _0x46a9aa of _0x328cb6)_0x995b01['unwrap'](_0x46a9aa);return _0x30de04;}),_0x26ea85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x134c92=>_0x3d1b7d(_0x134c92),'converterPriority':'high'}),_0x26ea85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x183c25,_0x26a273)=>_0x26a273['options']['showSuggestionHighlights']?_0x3d1b7d(_0x183c25,!0x1):null,'converterPriority':'high'});const _0xea5ab0=_0x26ea85['editing']['view'];this['listenTo'](_0xea5ab0['document'],'clipboardOutput',(_0x452942,_0x1234ed)=>{const _0x578be0=[];for(const _0x21e699 of _0xea5ab0['createRangeIn'](_0x1234ed['content'])['getItems']())_0x21e699['is']('element','suggestion-td')&&_0x578be0['push'](_0x21e699);_0xea5ab0['change'](_0xb2622a=>{for(const _0x24b21c of _0x578be0)_0xb2622a['move'](_0xb2622a['createRangeIn'](_0x24b21c),_0xb2622a['createPositionBefore'](_0x24b21c)),_0xb2622a['remove'](_0x24b21c);});});}}function Oe(_0x444aa0){if(_0x444aa0['isEmpty'])return!0x0;const _0x1a307f=_0x444aa0['getChild'](0x0);return _0x1a307f['is']('element','paragraph')&&_0x1a307f['isEmpty'];}function Ue(_0xc9d39d,_0x257c1a={},_0x137b4e){for(const {isAnchor:_0x8575ac,cellHeight:_0x5b89c0,cellWidth:_0x19c309}of _0x137b4e['createTableWalker'](_0xc9d39d,{'includeAllSlots':!0x0,..._0x257c1a}))if(!_0x8575ac||0x1!=_0x5b89c0||0x1!=_0x19c309)return!0x1;return!0x0;}class Dt extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d1e41=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d1e41['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d1e41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d1e41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d1e41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d1e41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d1e41['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xda1d68,_0x127af3){const _0x5502ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4850a1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8e208=_0x127af3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12e229=_0x4850a1['getColumnGroupElement'](_0x8e208);let _0x5bc6f4=_0x12e229?_0x4850a1['getTableColumnsWidths'](_0x12e229):null,_0x414e92=_0x8e208['getAttribute']('tableWidth')||null;const _0x2d6b01=_0x127af3['tableWidth']||_0x414e92,_0x54fa0f=_0x127af3['columnWidths']||_0x5bc6f4,_0x56962d=this['editor']['plugins']['get']('Users')['me'];for(const _0x17bf47 of _0x5502ca['getSuggestions']()){const _0xa8013a=_0x17bf47['getContainedElement']();if('resizeTable'===_0x17bf47['subType']&&_0xa8013a===_0x8e208){_0x17bf47['author']!==_0x56962d&&_0x17bf47['discard']();const _0x364696=_0x17bf47['data']['commandParams'];_0x414e92=_0x364696[0x0]['tableWidth'],_0x5bc6f4=_0x364696[0x0]['columnWidths'];break;}}_0xda1d68({'table':_0x8e208,'tableWidth':_0x2d6b01,'columnWidths':_0x54fa0f}),_0x5502ca['markBlockFormat'](_0x8e208,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x414e92,'columnWidths':_0x5bc6f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d22cc){if('formatBlock'!=_0x1d22cc['type']&&'formatInline'!=_0x1d22cc['type'])return;const {data:_0x5dee17}=_0x1d22cc;if(_0x5dee17&&'resizeTable'===_0x5dee17['formatGroupId']){const _0xe6f469='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xe6f469)};}}}class Mt extends _0xccd55c{['afterInit'](){const _0x3e0b3e=this['editor'];_0x3e0b3e['plugins']['has']('Template')&&_0x3e0b3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xccd55c{['afterInit'](){const _0x3afcb0=this['editor'];if(!_0x3afcb0['commands']['get']('insertTableOfContents'))return;_0x3afcb0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5855cd=_0x3afcb0['plugins']['get']('TrackChangesEditing'),_0xfcd76a=_0x3afcb0['locale'];_0x5855cd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a4f0c=>o(_0xfcd76a,'ELEMENT_TABLE_OF_CONTENTS',_0x1a4f0c));}}class Bt extends _0xccd55c{['afterInit'](){const _0x393697=this['editor'];if(!_0x393697['plugins']['has']('Title'))return;const _0x55665c=_0x393697['plugins']['get']('TrackChangesEditing');_0x55665c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x393697['locale'],'ELEMENT_TITLE')),_0x393697['model']['document']['registerPostFixer'](_0x5190f5=>{let _0x342314=!0x1;const _0xccd604=Array['from'](_0x393697['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x428700,data:_0x270add}of _0xccd604){const {group:_0x23eb95}=_0x55665c['_splitMarkerName'](_0x428700);if('suggestion'!==_0x23eb95||!_0x270add['newRange'])continue;const _0x3997de=_0x270add['newRange'],_0x382d99=_0x3997de['end']['nodeBefore'];if(!_0x382d99||!_0x382d99['is']('element','title-content'))continue;if(!_0x3997de['start']['isTouching'](_0x3997de['end']))continue;const _0x382daa=_0x393697['model']['schema']['getNearestSelectionRange'](_0x3997de['end'],'forward');if(_0x382daa&&_0x382daa['isCollapsed']){const _0x2ffa5a=_0x5190f5['createRange'](_0x3997de['start'],_0x382daa['start']);_0x2ffa5a['isEqual'](_0x3997de)||(_0x5190f5['updateMarker'](_0x428700,{'range':_0x2ffa5a}),_0x342314=!0x0);}_0x342314||(_0x5190f5['removeMarker'](_0x428700),_0x342314=!0x0);}return _0x342314;});}}class Tt extends _0xccd55c{['afterInit'](){const _0x48526d=this['editor'],_0x5bd51a=_0x48526d['plugins']['get']('TrackChangesEditing');_0x48526d['plugins']['has']('Uploadcare')&&(_0x5bd51a['enableCommand']('uploadcare'),_0x48526d['plugins']['has']('UploadcareImageEdit')&&(_0x5bd51a['enableCommand']('uploadcareImageEdit'),_0x5bd51a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5bd51a['registerBlockAttribute']('uploadcareImageId'),_0x5bd51a['descriptionFactory']['registerDescriptionCallback'](_0xc9f70a=>{if('attribute'!=_0xc9f70a['type'])return;const {data:_0x10037f}=_0xc9f70a;return _0x10037f&&'uploadcareImageId'==_0x10037f['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xccd55c{['afterInit'](){const _0x58912f=this['editor'],_0x59ca0e=_0x58912f['plugins']['get']('TrackChangesEditing');_0x58912f['plugins']['has']('UndoEditing')&&(_0x59ca0e['enableCommand']('undo'),_0x59ca0e['enableCommand']('redo'));}}class Ot extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x2a8c8c=this['editor'];if(!_0x2a8c8c['plugins']['has']('TableCaptionEditing'))return;_0x2a8c8c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xccd55c{['tableProperties'];['tableCellProperties'];constructor(_0x56e5aa){super(_0x56e5aa),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 _0x1ddac3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x528528 of this['tableProperties'])_0x1ddac3['enableCommand'](_0x528528,(_0x2834ce,_0x512d35)=>{const _0x1d5f45=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x528528,[_0x1d5f45],this['tableProperties'],'tableProperties',_0x2834ce,_0x512d35);});_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ddac3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cc8d0,_0x3bfc61)=>this['handleDiscardAction'](this['tableProperties'],_0x2cc8d0,_0x3bfc61)),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5125c3 of this['tableCellProperties'])_0x1ddac3['enableCommand'](_0x5125c3,(_0xa51bdf,_0x4e9f56)=>{const _0xdb6f29=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5125c3,_0xdb6f29,this['tableCellProperties'],'tableCellProperties',_0xa51bdf,_0x4e9f56);});_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ddac3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5087de,_0x2ea797)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5087de,_0x2ea797)),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ddac3['descriptionFactory']['registerDescriptionCallback'](_0x1169dc=>this['handleSuggestionDescription'](_0x1169dc)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1f2bc0,_0x380bb2,_0x16a2bf,_0x3a1d92,_0xa02314,_0x27bc01){const _0x55c234=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x27bc01['batch'],()=>{for(const _0x14883f of _0x380bb2){if(this['_getSuggestion'](_0x14883f,_0x3a1d92))_0xa02314(_0x27bc01);else{const _0x4afb11={};for(const _0x390b81 of _0x16a2bf){const _0x533de8=_0x14883f['getAttribute'](_0x390b81);void 0x0!==_0x533de8&&(_0x4afb11[_0x390b81]=_0x533de8);}_0xa02314(_0x27bc01),_0x55c234['markBlockFormat'](_0x14883f,{'commandParams':[_0x4afb11]},[],_0x3a1d92);}}});}['handleDiscardAction'](_0x2840c5,_0x1c83bd,_0x35e433){const _0x5945dd=_0x1c83bd[0x0]['start']['nodeAfter'],_0x505d5b=_0x35e433['commandParams'][0x0];this['editor']['model']['change'](_0x18ab1b=>{for(const _0xf22e5 of _0x2840c5)void 0x0!==_0x505d5b[_0xf22e5]?_0x18ab1b['setAttribute'](_0xf22e5,_0x505d5b[_0xf22e5],_0x5945dd):_0x18ab1b['removeAttribute'](_0xf22e5,_0x5945dd);});}['handleSuggestionDescription'](_0x2390a3){if(_0x2390a3['data'])switch(_0x2390a3['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x595275,_0x2a5298){const _0x348a87=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c2732 of _0x348a87['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ebe35=_0x3c2732['getContainedElement']();if(_0x3c2732['subType']===_0x2a5298&&_0x1ebe35===_0x595275)return _0x3c2732;}return null;}['_registerTablePropertiesAttributes'](){const _0x4d2954=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37d50a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x48d4f9 of _0x37d50a){const _0x323cc9=_0x48d4f9['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4d2954['registerBlockAttribute'](_0x48d4f9),_0x4d2954['descriptionFactory']['registerAttributeLabel'](_0x48d4f9,o(this['editor']['locale'],'FORMAT_'+_0x323cc9));}}}class Rt extends _0xccd55c{['afterInit'](){const _0x2d4d0c=this['editor'];if(!_0x2d4d0c['plugins']['has']('LineHeight'))return;const _0x405f9b=_0x2d4d0c['plugins']['get']('TrackChangesEditing'),_0x218b52=_0x2d4d0c['locale'];_0x405f9b['enableDefaultAttributesIntegration']('lineHeight'),_0x405f9b['registerBlockAttribute']('lineHeight'),_0x405f9b['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x218b52,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xccd55c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1c60de,_0x3bc0b2,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4881d9){super(_0x4881d9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x54f101,_0x4217c8,_0x3c25f2,_0x2c616d)=>{this['_model']['change'](()=>{for(const _0x1a8c47 of[..._0x2c616d,..._0x3c25f2])this['_model']['markers']['has'](_0x1a8c47)&&_0x4881d9['editing']['reconvertMarker'](_0x1a8c47);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4881d9['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4881d9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4881d9['config']['get']('trackChanges.trackFormatChanges'),_0x4881d9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4881d9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4881d9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa46894=this['editor'],_0x2d1068=(_0x4cbb20,_0x294d56)=>{if('attribute'!=_0x4cbb20)return'ck-suggestion-marker-'+_0x4cbb20;const _0x298a0c=_0x294d56['split']('|')[0x0];return this['_isBlockAttribute'](_0x298a0c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa46894['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1194a4=>{const {id:_0x3a7a38,authorId:_0x43faf6,type:_0x449026,subType:_0x167cbb}=this['_splitMarkerName'](_0x1194a4['markerName']),_0x1f467b=['ck-suggestion-marker',_0x2d1068(_0x449026,_0x167cbb)];let _0xc5b771=0xbb8;return this['activeMarkers']['includes'](_0x1194a4['markerName'])&&(_0x1f467b['push']('ck-suggestion-marker--active'),_0xc5b771=0xbc2),'deletion'==_0x449026&&(_0xc5b771+=0x5),{'classes':_0x1f467b,'attributes':{'data-suggestion':_0x3a7a38,'data-author-id':_0x43faf6},'priority':_0xc5b771};}}),_0xa46894['conversion']['for']('dataDowncast')['add'](_0x31f36f=>{_0x31f36f['on']('addMarker:suggestion',(_0x4f8fd0,_0x4666ba,_0x572fe7)=>{if(!_0x572fe7['options']['showSuggestionHighlights'])return;const _0x580c63=_0x4666ba['item'];if(!_0x580c63)return;const _0x33cbcd=_0x572fe7['mapper']['toViewElement'](_0x580c63);_0xa46894['model']['schema']['isObject'](_0x580c63)&&_0x33cbcd&&!_0x33cbcd['getCustomProperty']('widget')&&_0x33cbcd['is']('containerElement')&&_0xc4712e(_0x33cbcd,_0x572fe7['writer']);},{'priority':'high'});}),_0xa46894['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x288b92,_0x3ed205)=>{if(!_0x3ed205['options']['showSuggestionHighlights'])return null;const {id:_0x5dacbd,authorId:_0x20cf2d,type:_0x1539a6,subType:_0x298200}=this['_splitMarkerName'](_0x288b92['markerName']);return{'classes':['ck-suggestion-marker',_0x2d1068(_0x1539a6,_0x298200)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5dacbd,'data-author-id':_0x20cf2d}};}});const _0x2b0bbd=({showActiveMarkers:_0x24f42d=!0x0,isAttributeSuggestion:_0x5cc811=!0x1}={})=>(_0x569d55,_0x22fa7a,_0x1e848c)=>{if(!_0x22fa7a['item'])return;const {id:_0x7ead43,authorId:_0x47c6c8}=this['_splitMarkerName'](_0x22fa7a['markerName']);if(_0x5cc811){const _0x2fd0a7=this['_suggestions']['get'](_0x7ead43),_0x5f03a8=this['_getAttributeKey'](_0x2fd0a7);if(!this['_isBlockAttribute'](_0x5f03a8))return;}if(_0x22fa7a['item']['is']('selection'))return void _0x1e848c['consumable']['consume'](_0x22fa7a['item'],_0x569d55['name']);const _0x4b6534=_0x1e848c['mapper']['toViewElement'](_0x22fa7a['item']);if(_0x22fa7a['item']['is']('element')&&_0xa46894['model']['schema']['isBlock'](_0x22fa7a['item'])&&!_0x4b6534['getCustomProperty']('addHighlight')){_0x1e848c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b6534),_0x1e848c['writer']['setAttribute']('data-suggestion',_0x7ead43,_0x4b6534),_0x1e848c['writer']['setAttribute']('data-author-id',_0x47c6c8,_0x4b6534),_0x1e848c['mapper']['bindElementToMarker'](_0x4b6534,_0x22fa7a['markerName']),_0x24f42d&&(this['activeMarkers']['includes'](_0x22fa7a['markerName'])?_0x1e848c['writer']['addClass']('ck-suggestion-marker--active',_0x4b6534):_0x1e848c['writer']['removeClass']('ck-suggestion-marker--active',_0x4b6534));for(const _0x45c4cf of _0xa46894['model']['createRangeIn'](_0x22fa7a['item'])['getItems']())_0x1e848c['consumable']['consume'](_0x45c4cf,_0x569d55['name']);_0x1e848c['consumable']['consume'](_0x22fa7a['item'],_0x569d55['name']);}};_0xa46894['conversion']['for']('dataDowncast')['add'](_0x290c44=>{_0x290c44['on']('addMarker:suggestion:formatBlock',(_0x56a043,_0x7553d9,_0x603492)=>{_0x603492['options']['showSuggestionHighlights']&&_0x2b0bbd({'showActiveMarkers':!0x1})(_0x56a043,_0x7553d9,_0x603492);},{'priority':'highest'});}),_0xa46894['conversion']['for']('dataDowncast')['add'](_0x263445=>{_0x263445['on']('addMarker:suggestion:attribute',(_0x372f9b,_0x3ba9bc,_0x57726a)=>{_0x57726a['options']['showSuggestionHighlights']&&_0x2b0bbd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x372f9b,_0x3ba9bc,_0x57726a);},{'priority':'highest'});}),_0xa46894['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x7133c7,_0x40aecf)=>{if(_0x40aecf['options']['showSuggestionHighlights']){const {id:_0x1b4a86,authorId:_0x2e784d}=this['_splitMarkerName'](_0x7133c7);return _0x7133c7['includes'](':split')||_0x7133c7['includes'](':merge')?{'group':'suggestion','name':_0x7133c7['substr'](0xb),'attributes':{'data-suggestion':_0x1b4a86,'data-author-id':_0x2e784d}}:null;}return{'group':'suggestion','name':_0x7133c7['substr'](0xb)};}}),_0xa46894['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5568fe,{writer:_0x5c62be})=>{let _0x4342c7='suggestion:'+_0x5568fe['getAttribute']('suggestion-type')+':'+_0x5568fe['getAttribute']('id');return _0x5568fe['getAttribute']('marker-count')&&(_0x4342c7+=':'+_0x5568fe['getAttribute']('marker-count')),_0x5c62be['createElement']('$marker',{'data-name':_0x4342c7});}}),_0xa46894['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x45fdcf=>{_0x45fdcf['on']('addMarker:suggestion:formatBlock',_0x2b0bbd(),{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x29007e=>{_0x29007e['on']('addMarker:suggestion:attribute',_0x2b0bbd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x4807ac=>{_0x4807ac['on']('removeMarker:suggestion:formatBlock',(_0x20d0f8,_0x217833,_0x5c4887)=>{const _0x2f9848=_0x5c4887['mapper']['markerNameToElements'](_0x217833['markerName']);if(_0x2f9848){for(const _0x4d6cda of _0x2f9848)_0x4d6cda['getCustomProperty']('addHighlight')||(_0x5c4887['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d6cda),_0x5c4887['writer']['removeAttribute']('data-suggestion',_0x4d6cda),_0x5c4887['writer']['removeAttribute']('data-author-id',_0x4d6cda),_0x5c4887['mapper']['unbindElementFromMarkerName'](_0x4d6cda,_0x217833['markerName']));}},{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x40699d=>{_0x40699d['on']('removeMarker:suggestion:attribute',(_0x5e3e38,_0x52902c,_0x2d3b18)=>{const _0x451120=_0x2d3b18['mapper']['markerNameToElements'](_0x52902c['markerName']);if(!_0x451120)return;const {id:_0x8ca5a5}=this['_splitMarkerName'](_0x52902c['markerName']),_0x4b3613=this['_suggestions']['get'](_0x8ca5a5),_0x38f65b=this['_getAttributeKey'](_0x4b3613);if(this['_isBlockAttribute'](_0x38f65b)){for(const _0x362d52 of _0x451120)_0x362d52['getCustomProperty']('addHighlight')||(_0x2d3b18['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x362d52),_0x2d3b18['writer']['removeAttribute']('data-suggestion',_0x362d52),_0x2d3b18['writer']['removeAttribute']('data-author-id',_0x362d52),_0x2d3b18['mapper']['unbindElementFromMarkerName'](_0x362d52,_0x52902c['markerName']));}},{'priority':'high'});}),_0xa46894['model']['document']['registerPostFixer'](_0x4fb545=>{let _0x3aa184=!0x1;const _0x36806b=Array['from'](_0xa46894['model']['document']['differ']['getChangedMarkers']()),_0x54b81d=new Set();for(const {name:_0x5e266c,data:_0x3eb5cc}of _0x36806b){const {group:_0x67e938,type:_0x393fd8,subType:_0x4a2409,id:_0x537889}=this['_splitMarkerName'](_0x5e266c);if('suggestion'!==_0x67e938)continue;const _0x426d81=this['_suggestions']['get'](_0x537889);if(null!=_0x3eb5cc['newRange']){'formatInline'==_0x393fd8&&(_0x3aa184=_0x3aa184||Gt(_0x3eb5cc['newRange'],_0x5e266c,_0x4fb545,_0xa46894['model']['schema']));const _0x183e2c='attribute'==_0x393fd8&&this['_isBlockAttribute'](_0x4a2409['split']('|')[0x0]);if(_0x3eb5cc['newRange']['isCollapsed']||'$graveyard'==_0x3eb5cc['newRange']['root']['rootName']||'formatBlock'==_0x393fd8&&!Jt(_0x3eb5cc['newRange'])||_0x183e2c&&!Jt(_0x3eb5cc['newRange'])||'deletion'==_0x393fd8&&!Kt(_0x3eb5cc['newRange']))_0x4fb545['removeMarker'](_0x5e266c),_0x3aa184=!0x0;else{if(!_0x426d81||!_0x426d81['isInContent'])continue;if(_0x3eb5cc['newRange']&&_0x3eb5cc['oldRange']&&_0x3eb5cc['newRange']['isEqual'](_0x3eb5cc['oldRange']))continue;_0x54b81d['add'](_0x426d81);}}}return _0x54b81d['size']>0x0&&(_0x3aa184=!!this['_joinWithAdjacentSuggestions'](_0x54b81d)||_0x3aa184),_0x3aa184;}),_0xa46894['model']['document']['registerPostFixer'](_0x9323ce=>{let _0x551441=!0x1;for(const _0x19a768 of _0xa46894['model']['document']['differ']['getChanges']())if('insert'==_0x19a768['type'])for(const _0x391745 of this['_suggestions']['values']()){if(_0x391745['isMultiRange']||!_0x391745['isInContent'])continue;const _0x3ef803='formatBlock'==_0x391745['type'],_0x1d5a6d=this['_getAttributeKey'](_0x391745),_0x9ad2=_0x1d5a6d&&this['_isBlockAttribute'](_0x1d5a6d);if(!_0x3ef803&&!_0x9ad2)continue;const _0x3b7936=_0x391745['getFirstRange']();if(_0x3b7936['start']['parent']!=_0x3b7936['end']['parent']&&!_0x3b7936['end']['isAtEnd']){const _0x154530=_0xa46894['model']['createPositionAt'](_0x3b7936['start']['nodeAfter'],'end'),_0x3312d7=_0xa46894['model']['createRange'](_0x3b7936['start'],_0x154530);_0x9323ce['updateMarker'](_0x391745['getFirstMarker'](),{'range':_0x3312d7}),_0x551441=!0x0;}}return _0x551441;}),_0xa46894['model']['document']['registerPostFixer'](_0x2c9329=>this['_processAttributeChanges'](_0x2c9329)),_0xa46894['model']['document']['registerPostFixer'](_0x42ea7a=>!_0x42ea7a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x42ea7a)),_0xa46894['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa46894['model']['document']['on']('change:data',(_0x190d30,_0x2af8a5)=>{if(!_0x2af8a5['isLocal']||_0x2af8a5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2f63d8=_0xa46894['model']['document']['differ']['getChanges']();if(0x0==_0x2f63d8['length'])return;const _0x36a262=[],_0x5a04a0=_0x2f63d8['filter'](_0x3b4af3=>'attribute'==_0x3b4af3['type']),_0x3d5b79=_0x2f63d8['filter'](_0x2dcb2d=>'insert'==_0x2dcb2d['type']&&'$text'!=_0x2dcb2d['name']);for(const _0x206dac of _0x5a04a0)this['_isRegisteredAttribute'](_0x206dac['attributeKey'])&&_0x36a262['push']({'key':_0x206dac['attributeKey'],'newValue':_0x206dac['attributeNewValue'],'oldValue':_0x206dac['attributeOldValue'],'range':Ht(_0x206dac['range'],_0xa46894['model'])});for(const _0x4e7d06 of _0x3d5b79){if('rename'!=_0x4e7d06['action']&&'refresh'!=_0x4e7d06['action'])continue;const _0x40a946=qt(_0x4e7d06['position']['nodeAfter'],_0xa46894['model']),_0x618f0b=_0x4e7d06['before'];'rename'==_0x4e7d06['action']&&_0x36a262['push']({'key':m,'newValue':_0x4e7d06['name'],'oldValue':_0x618f0b['name'],'range':_0x40a946});for(const [_0x381b98,_0x8eb814]of _0x618f0b['attributes']){if(!this['_isRegisteredAttribute'](_0x381b98))continue;const _0x124c93=_0x4e7d06['attributes']['get'](_0x381b98);_0x8eb814!==_0x124c93&&_0x36a262['push']({'key':_0x381b98,'newValue':_0x124c93,'oldValue':_0x8eb814,'range':_0x40a946});}for(const [_0x49c3b0,_0x1ac1a2]of _0x4e7d06['attributes'])this['_isRegisteredAttribute'](_0x49c3b0)&&(_0x618f0b['attributes']['has'](_0x49c3b0)||_0x36a262['push']({'key':_0x49c3b0,'newValue':_0x1ac1a2,'oldValue':null,'range':_0x40a946}));}0x0!=_0x36a262['length']&&_0xa46894['model']['enqueueChange'](_0x2af8a5,_0x462ea7=>{const _0x594965=_0x427844();for(const {range:_0x4bfb29,key:_0x203ddc,oldValue:_0x424337,newValue:_0x8174c6}of _0x36a262)this['markAttributeChange'](_0x4bfb29,_0x203ddc,_0x424337,_0x8174c6,{'groupId':_0x594965});this['_reduceExistingSuggestions'](_0x462ea7,_0x36a262);});},{'priority':'lowest'}),_0xa46894['model']['markers']['on']('update:suggestion',(_0x271679,_0x2e8280,_0x5d671d)=>{if(null==_0x5d671d){const {id:_0x5094be}=this['_splitMarkerName'](_0x2e8280['name']),_0x557e3d=this['_suggestions']['get'](_0x5094be);_0x557e3d&&_0x557e3d['addMarkerName'](_0x2e8280['name']);}}),_0xa46894['model']['document']['on']('change:data',()=>{const _0x55598f=Array['from'](_0xa46894['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f0ba5=>'suggestion'===this['_splitMarkerName'](_0x4f0ba5['name'])['group']);if(0x0===_0x55598f['length'])return;_0x55598f['sort']((_0x329c59,_0x59e2d9)=>{const _0x4ea2ae=_0x329c59['data']['oldRange'],_0xe016e6=_0x59e2d9['data']['oldRange'];return null===_0x4ea2ae&&null===_0xe016e6?0x0:null===_0x4ea2ae&&null!==_0xe016e6?-0x1:null!==_0x4ea2ae&&null===_0xe016e6?0x1:_0x4ea2ae['start']['isBefore'](_0xe016e6['start'])?-0x1:0x1;});const _0xe9bfd7=new Set(),_0x1111c6=new Set();for(const {name:_0x1117af,data:_0x1d9e35}of _0x55598f){const {id:_0x5c40bb}=this['_splitMarkerName'](_0x1117af);if(null===_0x1d9e35['oldRange']){const _0x1c285d=this['_handleNewSuggestionMarker'](_0x1117af);_0x1111c6['add'](_0x1c285d);}else{const _0x39f918=this['_suggestions']['get'](_0x5c40bb);null!==_0x1d9e35['newRange']||_0x39f918['isInContent']?(_0xe9bfd7['add'](_0x39f918['head']),_0x1111c6['add'](_0x39f918)):this['_removeSuggestion'](_0x39f918);}}_0x1111c6['size']>0x0&&this['_refreshSuggestionsChain'](_0x1111c6);for(const _0x7e4e79 of _0xe9bfd7)this['fire']('suggestionChanged',_0x7e4e79);}),_0xa46894['model']['on']('applyOperation',(_0x17ef6f,_0x1627ed)=>{const _0x4f7f55=_0x1627ed[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f7f55['isDocumentOperation'])return;if(_0x4f7f55['batch']['isUndo']||!_0x4f7f55['batch']['isLocal'])return;let _0x774b74,_0x384101;switch(_0x4f7f55['type']){case'insert':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['position']),_0x384101=_0x774b74['getShiftedBy'](_0x4f7f55['howMany']);break;case'split':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['splitPosition']),_0x384101=_0xa46894['model']['createPositionAt'](_0x4f7f55['moveTargetPosition']);break;case'move':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['targetPosition']),_0x384101=_0x774b74['getShiftedBy'](_0x4f7f55['howMany']);break;default:return;}const _0x2945c0=_0xa46894['model']['createRange'](_0x774b74,_0x384101);_0xa46894['model']['change'](()=>{for(const {suggestion:_0x4f911d,meta:_0x3feab3}of this['_findSuggestions'](_0x2945c0)){if(_0x4f911d['isMultiRange'])continue;if('formatInline'==_0x4f911d['type'])continue;const _0x1b7adc=this['_getAttributeKey'](_0x4f911d);if(_0x1b7adc&&this['_isBlockAttribute'](_0x1b7adc)&&'split'!=_0x4f7f55['type'])continue;const _0x16b926=_0x4f911d['data']&&_0x4f911d['data']['multipleBlocks'];('formatBlock'!=_0x4f911d['type']||'split'==_0x4f7f55['type']&&!_0x16b926)&&(_0x3feab3['containsRangeInObject']||'insertion'==_0x4f911d['type']&&_0x3feab3['isOwn']||_0x4f911d['getFirstRange']()['containsRange'](_0x2945c0)&&this['_breakSuggestionMarker'](_0x4f911d,_0x774b74,_0x384101));}});},{'priority':'lowest'}),_0xa46894['model']['on']('deleteContent',(_0x2b3893,_0x5ae73a)=>{const _0x2fc9d2=_0x5ae73a[0x0],_0x1f4966=_0x5ae73a[0x1];if(_0x1f4966&&_0x1f4966['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2fc9d2['isCollapsed'])return;const _0x4491b8=_0xa46894['model']['schema'],{start:_0x47bee7,end:_0x4497eb}=_0x2fc9d2['getFirstRange'](),_0x5dbdfe=_0x47bee7['nodeAfter']&&_0x4491b8['isLimit'](_0x47bee7['nodeAfter'])?null:_0x4491b8['getNearestSelectionRange'](_0x47bee7,'forward'),_0x56ea50=_0x4497eb['nodeBefore']&&_0x4491b8['isLimit'](_0x4497eb['nodeBefore'])?null:_0x4491b8['getNearestSelectionRange'](_0x4497eb,'backward'),_0xd8781f=_0xa46894['model']['createRange'](_0x5dbdfe?_0x5dbdfe['start']:_0x47bee7,_0x56ea50?_0x56ea50['end']:_0x4497eb);_0xa46894['model']['change'](_0x26716a=>{this['markDeletion'](_0xd8781f);const _0x15058b=_0xa46894['model']['schema']['getNearestSelectionRange'](_0xd8781f['start']);_0x2fc9d2['is']('documentSelection')?_0x26716a['setSelection'](_0x15058b):_0x2fc9d2['setTo'](_0x15058b);}),_0x2b3893['stop']();},{'priority':_0x850491['normal']+0xa}),_0xa46894['model']['on']('insertContent',(_0xf8e3e4,_0x372801)=>{const _0x351353=_0x372801[_0x372801['length']-0x1];_0x351353&&_0x351353['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa46894['model']['change'](()=>{let _0x669ef8=_0xa46894['model']['insertContent'](_0x372801[0x0],_0x372801[0x1],_0x372801[0x2],{'forceDefaultExecution':!0x0});if(!_0x669ef8)return;_0xf8e3e4['return']=_0x669ef8['clone']();const _0x1523b8=_0x669ef8['end']['nodeBefore'],_0x28025b=_0xa46894['model']['schema'];_0x1523b8&&_0x28025b['isBlock'](_0x1523b8)&&!_0x28025b['isObject'](_0x1523b8)&&(_0x669ef8=_0xa46894['model']['createRange'](_0x669ef8['start'],_0xa46894['model']['createPositionAt'](_0x1523b8,'end'))),this['markInsertion'](_0x669ef8);}),_0xf8e3e4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36e49c=new D(_0xa46894,this['_suggestions']);_0xa46894['commands']['add']('acceptSuggestion',_0x36e49c),this['enableCommand']('acceptSuggestion');const _0x3ffb9d=new M(_0xa46894,this['_suggestions']);_0xa46894['commands']['add']('discardSuggestion',_0x3ffb9d),this['enableCommand']('discardSuggestion'),_0xa46894['commands']['add']('acceptAllSuggestions',new $(_0xa46894,_0x36e49c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa46894['commands']['add']('discardAllSuggestions',new $(_0xa46894,_0x3ffb9d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa46894['commands']['add']('acceptSelectedSuggestions',new B(_0xa46894,_0x36e49c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa46894['commands']['add']('discardSelectedSuggestions',new B(_0xa46894,_0x3ffb9d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20f4bf=_0xa46894['plugins']['get']('CommentsRepository');this['listenTo'](_0x20f4bf,'addComment',(_0x1f15f7,{threadId:_0x31dd27})=>{const _0xf25c72=this['_suggestions']['get'](_0x31dd27);_0xf25c72&&_0xf25c72['commentThread']&&0x1===_0xf25c72['commentThread']['length']&&this['_updateSuggestionData'](_0x31dd27,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20f4bf,'removeComment',(_0x2521df,{threadId:_0x3adfcc})=>{const _0x5e6ff0=this['_suggestions']['get'](_0x3adfcc);_0x5e6ff0&&_0x5e6ff0['commentThread']&&!_0x5e6ff0['commentThread']['length']&&this['_updateSuggestionData'](_0x3adfcc,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39966b){const _0x3b1585=_0x490000([0x4a,0x79,0x51,0x44,0x74,0x35,0x56,0x58,0x6b,0x49,0x57,0x30,0x6f,0x6c,0x63,0x33,0x53,0x32,0x6e,0x65,0x52,0x37,0x4e,0x42,0x62,0x39,0x41,0x6a,0x46,0x55,0x69,0x76,0x48,0x54,0x4b,0x59,0x73,0x31,0x68,0x77,0x75,0x4c,0x4d,0x61,0x64,0x45,0x50,0x72,0x71,0x34,0x7a,0x43,0x47,0x66,0x38,0x78,0x5a,0x67,0x70,0x6d,0x36,0x4f]),_0x2a4779=0x20d32aad,_0x4a0a8c=0x20d4461d^_0x2a4779,_0x362a8f=window[_0x490000([0x44,0x61,0x74,0x65])][_0x490000([0x6e,0x6f,0x77])](),_0x2aef16=_0x39966b[_0x490000([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cc430=new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5220ca=>{_0x2aef16[_0x490000([0x6f,0x6e,0x63,0x65])](_0x490000([0x72,0x65,0x61,0x64,0x79]),_0x5220ca);}),_0x5b1219={[_0x490000([0x6b,0x74,0x79])]:_0x490000([0x45,0x43]),[_0x490000([0x75,0x73,0x65])]:_0x490000([0x73,0x69,0x67]),[_0x490000([0x63,0x72,0x76])]:_0x490000([0x50,0x2d,0x32,0x35,0x36]),[_0x490000([0x78])]:_0x490000([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]),[_0x490000([0x79])]:_0x490000([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]),[_0x490000([0x61,0x6c,0x67])]:_0x490000([0x45,0x53,0x32,0x35,0x36])},_0xfba685=_0x2aef16[_0x490000([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x490000([0x67,0x65,0x74])](_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3969ea(){let _0x283bff,_0x4600e4=null,_0x5f30fc=null;try{if(_0xfba685==_0x490000([0x47,0x50,0x4c]))return _0x490000([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x283bff=_0x45ad5b(),!_0x283bff)return _0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x283bff[_0x490000([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f30fc=_0x57901e(_0x283bff[_0x490000([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x283bff[_0x490000([0x6a,0x74,0x69])])),await _0x4a1e8d()?_0x52e3d0()?_0x5214bc()?_0x490000([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x308d24()?(_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490000([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4600e4=_0x3a5ff5(_0x490000([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490000([0x74,0x72,0x69,0x61,0x6c])&&(_0x4600e4=_0x3a5ff5(_0x490000([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b6edd()):_0x490000([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x490000([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5214bc(){const _0x3a50a3=[_0x490000([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x490000([0x74,0x72,0x69,0x61,0x6c])][_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x362a8f/0x3e8:0xe10*_0x4a0a8c;return _0x283bff[_0x490000([0x65,0x78,0x70])]<_0x3a50a3;}function _0x52e3d0(){const _0x3ac7fe=_0x283bff[_0x490000([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ac7fe)return!0x1;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x2a])))return!0x0;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x54,0x43])))return!0x0;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x52,0x54,0x43]))){if(_0x48ead5())return!0x0;if(_0xa5db03()||_0x4cc811())return!0x0;}return!0x1;}function _0x308d24(){const _0x47a35e=_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47a35e||0x0==_0x47a35e[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f30e2}=new URL(window[_0x490000([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47a35e[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f30e2))return!0x0;const _0x14c2cd=_0x4f30e2[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e]));return _0x47a35e[_0x490000([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x437b87=>_0x437b87[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x2a])))[_0x490000([0x6d,0x61,0x70])](_0x5cfe77=>_0x5cfe77[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e])))[_0x490000([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x483023=>_0x483023[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14c2cd[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490000([0x6d,0x61,0x70])](_0xa4f096=>Array(_0x14c2cd[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa4f096[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490000([0x66,0x69,0x6c,0x6c])](_0xa4f096[0x0]===_0x490000([0x2a])?_0x490000([0x2a]):'')[_0x490000([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa4f096))[_0x490000([0x73,0x6f,0x6d,0x65])](_0x40cd9f=>_0x14c2cd[_0x490000([0x65,0x76,0x65,0x72,0x79])]((_0xbb4310,_0x4b3960)=>_0x40cd9f[_0x4b3960]===_0xbb4310||_0x40cd9f[_0x4b3960]===_0x490000([0x2a])));}function _0x5b6edd(){return _0x4600e4&&_0x5f30fc?new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x407222,_0x43cbe5)=>{_0x4600e4[_0x490000([0x74,0x68,0x65,0x6e])](_0x407222,_0x43cbe5),_0x5f30fc[_0x490000([0x74,0x68,0x65,0x6e])](_0xa8aad5=>{_0xa8aad5!=_0x490000([0x56,0x61,0x6c,0x69,0x64])&&_0x407222(_0xa8aad5);},_0x43cbe5);}):_0x4600e4||_0x5f30fc||_0x490000([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57901e(_0x428ca1,_0xd6823e){return new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cc81d=>{if(_0x33beb9())return _0x1cc81d(_0x490000([0x56,0x61,0x6c,0x69,0x64]));_0x1c1dda(),_0x2aef16[_0x490000([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5693=!0x1;const _0x7828f8=_0x427844();function _0x47e3bc(_0x2c4312){return!!_0x2c4312&&(typeof _0x2c4312===_0x490000([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c4312===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c4312[_0x490000([0x74,0x68,0x65,0x6e])]===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c4312[_0x490000([0x63,0x61,0x74,0x63,0x68])]===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x177f5e(_0x1bec76){_0x17b204(_0x1bec76)[_0x490000([0x74,0x68,0x65,0x6e])](_0x559cd4=>{if(!_0x559cd4||_0x559cd4[_0x490000([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x490000([0x6f,0x6b]))return _0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x516357(_0x42f9d8(_0x7828f8+_0xd6823e))!=_0x559cd4[_0x490000([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x490000([0x56,0x61,0x6c,0x69,0x64]);})[_0x490000([0x74,0x68,0x65,0x6e])](_0x4f32c1=>(_0x3bdf63(),_0x4f32c1),()=>{const _0x3e5768=_0x323146();return null==_0x3e5768?(_0x3bdf63(),_0x490000([0x56,0x61,0x6c,0x69,0x64])):_0x490000(_0x362a8f-_0x3e5768>(0x4dfaead^_0x2a4779)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x490000([0x74,0x68,0x65,0x6e])](_0x1cc81d)[_0x490000([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f225f=0x20e5c42d^_0x2a4779;function _0x3bdf63(){const _0x4b3dc4=_0x490000([0x6c,0x6c,0x63,0x74,0x2d])+_0x516357(_0x42f9d8(_0x428ca1)),_0x1f8164=_0x260fab(_0x516357(window[_0x490000([0x4d,0x61,0x74,0x68])][_0x490000([0x63,0x65,0x69,0x6c])](_0x362a8f/_0x5f225f)));window[_0x490000([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490000([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b3dc4,_0x1f8164);}function _0x323146(){const _0x18668d=_0x490000([0x6c,0x6c,0x63,0x74,0x2d])+_0x516357(_0x42f9d8(_0x428ca1)),_0x5e286a=window[_0x490000([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490000([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18668d);return _0x5e286a?window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260fab(_0x5e286a),0x10)*_0x5f225f:null;}function _0x17b204(_0x125a4b){return new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x349b54,_0x2fb5a6)=>{_0x125a4b[_0x490000([0x74,0x68,0x65,0x6e])](_0x349b54,_0x2fb5a6),window[_0x490000([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fb5a6,0x20d2fe6d^_0x2a4779);});}}_0x2aef16[_0x490000([0x6f,0x6e])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47d7b5,_0x5cdc38)=>{if(_0x5cdc38[0x0]!=_0x428ca1)return _0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cdc38[0x1]={..._0x5cdc38[0x1],[_0x490000([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7828f8};},{[_0x490000([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490000([0x68,0x69,0x67,0x68])}),_0x2aef16[_0x490000([0x6f,0x6e])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3249cc=>{_0x47e3bc(_0x3249cc[_0x490000([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5693=!0x0,_0x177f5e(_0x3249cc[_0x490000([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x490000([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490000([0x6c,0x6f,0x77])}),_0x3cc430[_0x490000([0x74,0x68,0x65,0x6e])](()=>{_0x5c5693||_0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33beb9(){return _0x2aef16[_0x490000([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490000([0x76,0x69,0x65,0x77])][_0x490000([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x490000([0x61,0x75,0x74,0x6f]);}function _0x1c1dda(){_0x2aef16[_0x490000([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490000([0x76,0x69,0x65,0x77])][_0x490000([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x490000([0x61,0x75,0x74,0x6f]);}}function _0x3a5ff5(_0xd96578){const _0x535956=[new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505877=>setTimeout(_0x505877,0x20da1461^_0x2a4779)),_0x3cc430[_0x490000([0x74,0x68,0x65,0x6e])](()=>new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11365a=>{let _0xc92c53=0x0;_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x6f,0x6e])](_0x490000([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x132c53,_0x3b1484)=>{_0x3b1484[0x0][_0x490000([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc92c53++,_0xc92c53==(0x20d32b55^_0x2a4779)&&(_0x11365a(),_0x132c53[_0x490000([0x6f,0x66,0x66])]());});}))];return window[_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x490000([0x72,0x61,0x63,0x65])](_0x535956)[_0x490000([0x74,0x68,0x65,0x6e])](()=>_0xd96578);}async function _0x3db60b(){await _0x3cc430,_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44eebe,_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44eebe,_0x2aef16[_0x490000([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x490000([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48ead5(){return _0x18040d(_0x490000([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52f77e(_0x490000([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x490000([0x73,0x74,0x61,0x74,0x65])]==_0x490000([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5db03(){return _0x18040d(_0x490000([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 _0x4cc811(){return _0x18040d(_0x490000([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x411b3e(_0x58c951){const _0x4bcf83=_0x3c185d();_0x2aef16[_0x4bcf83]=_0x490000([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58c951,_0x58c951!=_0x490000([0x56,0x61,0x6c,0x69,0x64])&&_0x3db60b();}function _0x3c185d(){const _0x230a4f=window[_0x490000([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x490000([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x490000([0x6e,0x6f,0x77])]())[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x490000([0x2e]),'');let _0x32f346=_0x490000([0x4a]);for(let _0xf9a101=0x0;_0xf9a101<_0x230a4f[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf9a101+=0x2){let _0x4b1b47=window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230a4f[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf9a101,_0xf9a101+0x2));_0x4b1b47>=_0x3b1585[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b1b47-=_0x3b1585[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32f346+=_0x3b1585[_0x4b1b47];}return _0x32f346;}function _0x45ad5b(){const _0x2406b0=_0xfba685[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e]));if(0x3!=_0x2406b0[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d39e9(_0x2406b0[0x1]);function _0x4d39e9(_0x21c16a){const _0x32de7f=_0x478190(_0x21c16a);return _0x32de7f&&_0x5b7eba()?_0x32de7f:null;function _0x5b7eba(){const _0x5bdb58=_0x32de7f[_0x490000([0x6a,0x74,0x69])],_0x311593=window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bdb58[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bdb58[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x202e4d={..._0x32de7f,[_0x490000([0x6a,0x74,0x69])]:_0x5bdb58[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bdb58[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x202e4d[_0x490000([0x76,0x63])],_0x42f9d8(_0x202e4d)==_0x311593;}}}async function _0x4a1e8d(){let _0x3449f7=!0x0;try{const _0x3c37b0=_0xfba685[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e])),[_0x59d9fe,_0xbf8aeb,_0x16b44c]=_0x3c37b0;return _0x3842dc(_0x59d9fe),await _0x4706ab(_0x59d9fe,_0xbf8aeb,_0x16b44c),_0x3449f7;}catch{return!0x1;}function _0x3842dc(_0x28438c){const _0x171f24=_0x478190(_0x28438c);_0x171f24&&_0x171f24[_0x490000([0x61,0x6c,0x67])]==_0x490000([0x45,0x53,0x32,0x35,0x36])||(_0x3449f7=!0x1);}async function _0x4706ab(_0x2f0389,_0xf12f52,_0x1f411f){const _0x41d8a7=window[_0x490000([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x490000([0x66,0x72,0x6f,0x6d])](_0x28e483(_0x1f411f),_0x315dd1=>_0x315dd1[_0x490000([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13a7c6=new window[(_0x490000([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x490000([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f0389+_0x490000([0x2e])+_0xf12f52),_0x4365d2=window[_0x490000([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x490000([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4365d2)return;const _0x37ee40=await _0x4365d2[_0x490000([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x490000([0x6a,0x77,0x6b]),_0x5b1219,{[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x45,0x43,0x44,0x53,0x41]),[_0x490000([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x490000([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x490000([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4365d2[_0x490000([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x45,0x43,0x44,0x53,0x41]),[_0x490000([0x68,0x61,0x73,0x68])]:{[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37ee40,_0x41d8a7,_0x13a7c6)||(_0x3449f7=!0x1);}}function _0x478190(_0xa29aae){return _0xa29aae[_0x490000([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x490000([0x65,0x79]))?JSON[_0x490000([0x70,0x61,0x72,0x73,0x65])](_0x28e483(_0xa29aae)):null;}function _0x28e483(_0x34f463){return window[_0x490000([0x61,0x74,0x6f,0x62])](_0x34f463[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x490000([0x2b]))[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x490000([0x2f])));}function _0x42f9d8(_0x28096d){let _0x415607=0x1505;function _0x4f7599(_0xeab788){for(let _0x351be9=0x0;_0x351be9<_0xeab788[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x351be9++){const _0x4bb656=_0xeab788[_0x490000([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x351be9);_0x415607=(_0x415607<<0x5)+_0x415607+_0x4bb656,_0x415607&=_0x415607;}}function _0xe566ed(_0x1558b6){Array[_0x490000([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1558b6)?_0x1558b6[_0x490000([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe566ed):_0x1558b6&&typeof _0x1558b6==_0x490000([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x490000([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1558b6)[_0x490000([0x73,0x6f,0x72,0x74])]()[_0x490000([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b682d,_0xa3a3e2])=>{_0x4f7599(_0x5b682d),_0xe566ed(_0xa3a3e2);}):_0x4f7599(window[_0x490000([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1558b6));}return _0xe566ed(_0x28096d),_0x415607>>>0x0;}function _0x516357(_0x4623ba){return _0x4623ba[_0x490000([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x490000([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x490000([0x30]));}function _0x260fab(_0x1c0c8a){return _0x1c0c8a[_0x490000([0x73,0x70,0x6c,0x69,0x74])]('')[_0x490000([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x490000([0x6a,0x6f,0x69,0x6e])]('');}function _0x18040d(_0x224a6b){return _0x2aef16[_0x490000([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x490000([0x68,0x61,0x73])](_0x224a6b);}function _0x52f77e(_0x1398b6){return _0x2aef16[_0x490000([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x490000([0x67,0x65,0x74])](_0x1398b6);}function _0x44eebe(){}function _0x490000(_0x452a6d){return _0x452a6d['map'](_0x125c75=>String['fromCharCode'](_0x125c75))['join']('');}_0x411b3e(await _0x3969ea());}(this);}set['adapter'](_0x211d83){if(this['_adapter'])throw new _0x59d332('track-changes-adapter-already-set',this);this['_adapter']=_0x211d83;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x18521c=!0x1,toJSON:_0x3616ac=!0x1}={}){const _0xe35d74=[];for(const _0x443c01 of this['_suggestions']['values']())_0x18521c&&!_0x443c01['isInContent']||_0xe35d74['push'](_0x443c01);return _0x3616ac?_0xe35d74['map'](_0x411f44=>_0x411f44['toJSON']()):_0xe35d74;}['getSuggestion'](_0x4a9206){const _0x57d6a4=this['_suggestions']['get'](_0x4a9206);if(!_0x57d6a4)throw new _0x59d332('track-changes-suggestion-not-found',this);return _0x57d6a4;}['hasSuggestion'](_0x1e220b){return this['_suggestions']['has'](_0x1e220b);}['addSuggestionData'](_0x5bd114){const {authorId:_0x2ea59c,id:_0x1ca493,originalSuggestionId:_0x5958e3,attributes:_0x15281e}=_0x5bd114,[_0x1c8685,_0x12e550]=_0x5bd114['type']['split'](':'),_0x2848cf=this['_suggestions']['get'](_0x1ca493)||this['_createSuggestion'](_0x1c8685,_0x12e550,_0x1ca493,_0x2ea59c,_0x15281e,_0x5958e3);if(this['_addThreadToSuggestion'](_0x2848cf),this['_checkSuggestionCorrectness'](_0x2848cf,_0x1c8685,_0x12e550||null,_0x2ea59c),_0x2848cf['createdAt']=_0x5bd114['createdAt'],_0x2848cf['_isDataLoaded']=!0x0,_0x15281e&&_0x15281e['@external']){const _0x47a6ec=_0x15281e['@external'],_0x175682=this['_getExternalAuthor'](_0x47a6ec['authorName']);_0x2848cf['authoredAt']=_0x47a6ec['createdAt'],_0x2848cf['author']=_0x175682,_0x2848cf['isExternal']=!0x0;}else _0x2848cf['authoredAt']=_0x5bd114['createdAt'];switch(_0x5bd114['data']&&(_0x2848cf['data']=_0x5bd114['data']),_0x5bd114['attributes']&&(_0x2848cf['attributes']=_0x5bd114['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2848cf['_saved']=!0x0),this['_suggestionState']['get'](_0x2848cf)){case'notReady':this['_suggestionState']['set'](_0x2848cf,'dataReady');break;case'markerReady':_0x2848cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2848cf])),this['_refreshSuggestionsChain'](new Set([_0x2848cf])),this['_suggestionState']['set'](_0x2848cf,'ready'),this['fire']('suggestionLoaded',_0x2848cf)):this['_suggestionState']['set'](_0x2848cf,'removed');}return _0x2848cf;}['acceptSuggestion'](_0x2a3b97){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26f8bd of _0x2a3b97['getAllAdjacentSuggestions']())_0x26f8bd['accept']();});});}['discardSuggestion'](_0x2aaef5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56ec88 of _0x2aaef5['getAllAdjacentSuggestions']())_0x56ec88['discard']();});});}['enableCommand'](_0x46ec26,_0x64cdb1){const _0x283c31=this['editor']['commands']['get'](_0x46ec26);if(!_0x283c31)throw new _0x59d332('track-changes-command-not-found',this,{'commandName':_0x46ec26});if(this['_enabledCommands']['has'](_0x283c31))throw new _0x59d332('track-changes-enable-command-twice',this,{'commandName':_0x46ec26});this['_enabledCommands']['add'](_0x283c31),_0x64cdb1&&_0x283c31['on']('execute',(_0x3c3c4b,_0x5ae015)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ae015['length']>0x0&&_0x5ae015[_0x5ae015['length']-0x1]&&_0x5ae015[_0x5ae015['length']-0x1]['forceDefaultExecution']?_0x5ae015['pop']():(_0x3c3c4b['return']=_0x64cdb1((..._0x3686c8)=>_0x283c31['execute'](..._0x3686c8,{'forceDefaultExecution':!0x0}),..._0x5ae015),_0x3c3c4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4099c1){let _0x4c495a,_0x4f4c84;const _0xd294b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c495a=_0x4099c1();}catch(_0x16ecfd){_0x4f4c84=_0x16ecfd;}return _0xd294b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4c84&&_0x59d332['rethrowUnexpectedError'](_0x4f4c84,this),_0x4c495a;}['markInsertion'](_0x145e26,_0x303c3c=null,_0x5edade={}){if(_0x145e26['isCollapsed'])return null;const _0x4180b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5edade['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e5347,meta:_0xa1185a}of this['_findSuggestions'](_0x145e26,'insertion'))if(_0xa1185a['isOwn']){if(!_0xa1185a['isNextTo']){if(_0xa1185a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1e5347,_0x5edade))continue;return _0x1e5347;}if(Qt(_0x1e5347,_0x5edade))return _0x1e5347;this['_breakSuggestionMarker'](_0x1e5347,_0x145e26['start'],_0x145e26['end']);break;}if(_0x303c3c==_0x1e5347['subType']&&Qt(_0x1e5347,_0x5edade)){const _0x368ba9=_0x1e5347['getFirstRange']();return _0x368ba9['start']['isEqual'](_0x145e26['end'])?this['_setSuggestionRange'](_0x1e5347,this['_model']['createRange'](_0x145e26['start'],_0x368ba9['end'])):this['_setSuggestionRange'](_0x1e5347,this['_model']['createRange'](_0x368ba9['start'],_0x145e26['end'])),_0x1e5347;}}const _0x483846=_0x427844(),_0xc25c57=_0x4180b8['id'],_0x4908a4=_0x303c3c?'insertion:'+_0x303c3c:'insertion',_0x60b720=this['_setSuggestionData']({'id':_0x483846,'type':_0x4908a4,'createdAt':new Date(),'authorId':_0xc25c57,'attributes':_0x5edade});return this['_addSuggestionMarker'](_0x4908a4,_0x483846,_0xc25c57,_0x145e26),_0x60b720;}['markMultiRangeInsertion'](_0x32544e,_0x426770='multi',_0x268aca={}){const _0x1ffb71=this['editor']['plugins']['get']('Users')['me'],_0x282727=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x426770,'join');this['_trackingSessionId']&&(_0x268aca['trackingSessionId']=this['_trackingSessionId']);for(const _0x4ae562 of this['getSuggestions']())if(_0x4ae562['author']['id']==_0x1ffb71['id']&&'insertion'==_0x4ae562['type']&&_0x4ae562['subType']==_0x426770&&Qt(_0x4ae562,_0x268aca)&&(_0x282727(_0x4ae562['getRanges'](),_0x32544e)||_0x282727(_0x32544e,_0x4ae562['getRanges']()))){for(const _0xb76fe5 of _0x32544e)_0x4ae562['addRange'](_0xb76fe5);return _0x4ae562;}for(const {suggestion:_0x3856b6,meta:_0x148baa}of this['_findSuggestions'](_0x32544e,'insertion')){if(!_0x148baa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x148baa['containsRangeInObject'])continue;if(!Qt(_0x3856b6,_0x268aca))continue;let _0xcfbe12=!0x0;for(const _0x5a56f5 of _0x3856b6['getRanges']())for(const _0x33b48c of _0x32544e)if(!_0x5a56f5['containsRange'](_0x33b48c)){_0xcfbe12=!0x1;break;}if(_0xcfbe12)return _0x3856b6;}const _0x277b0b=_0x427844(),_0x3c8359=_0x1ffb71['id'],_0x41a43f='insertion:'+_0x426770,_0x50e551=this['_setSuggestionData']({'id':_0x277b0b,'type':_0x41a43f,'createdAt':new Date(),'authorId':_0x3c8359,'attributes':_0x268aca});for(const _0x459e54 of _0x32544e)this['_addSuggestionMarker'](_0x41a43f,_0x277b0b,_0x3c8359,_0x459e54,T['getMultiRangeId']());return _0x50e551;}['markInlineFormat'](_0x1a42c2,_0x154260,_0x24f4cb=null,_0x5db114={}){if(_0x24f4cb=_0x24f4cb||Lt(_0x154260),_0x1a42c2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5db114['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3088aa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24f4cb,'accept');return this['forceDefaultExecution'](()=>_0x3088aa([_0x1a42c2],_0x154260,_0x5db114)),null;}const _0x156508=this['editor']['plugins']['get']('Users')['me'],_0x14e029=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e04fe,meta:_0x146a34}of this['_findSuggestions'](_0x1a42c2,'insertion'))_0x146a34['isOwn']&&!_0x146a34['isInsideObject']&&_0x14e029['push'](..._0x1e04fe['getRanges']());}const _0x462b25=function(_0x2d9ac7,_0x56aee2){const _0x3fe0a4=[];for(const _0x39327d of _0x56aee2){const _0x303dea=_0x2d9ac7['getIntersection'](_0x39327d);_0x303dea&&_0x3fe0a4['push'](_0x303dea);}return _0x3fe0a4;}(_0x1a42c2,_0x14e029),_0x4dbaa4=function(_0x175ca4,_0x5eb3e6){const _0x36c3df=[_0x175ca4];for(const _0x2df915 of _0x5eb3e6){let _0x588f49=0x0;for(;_0x588f49<_0x36c3df['length'];){const _0x207cdf=_0x36c3df[_0x588f49]['getDifference'](_0x2df915);_0x36c3df['splice'](_0x588f49,0x1,..._0x207cdf),_0x588f49+=_0x207cdf['length'];}}return _0x36c3df;}(_0x1a42c2,_0x14e029);_0x462b25['length']&&this['_model']['change'](()=>{for(const _0x27ae7c of _0x462b25){const _0x456b6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24f4cb,'accept');this['forceDefaultExecution'](()=>_0x456b6e([_0x27ae7c],_0x154260,_0x5db114));}});for(const _0x137b49 of _0x4dbaa4){let _0x19951f=null,_0x55a2f8=_0x137b49['start'],_0x7ff54e=_0x137b49['end'];for(const {suggestion:_0x105ea4,meta:_0x1bea1d}of this['_findSuggestions'](_0x137b49,'formatInline')){if(!_0x1bea1d['isOwn'])continue;if(_0x105ea4['subType']!=_0x24f4cb)continue;if(!Qt(_0x105ea4,_0x5db114))continue;const _0x179996=_0x105ea4['getFirstRange']();if(_0x179996['containsRange'](_0x137b49,!0x0))return null;_0x55a2f8=_0x55a2f8['isBefore'](_0x179996['start'])?_0x55a2f8:_0x179996['start'],_0x7ff54e=_0x7ff54e['isAfter'](_0x179996['end'])?_0x7ff54e:_0x179996['end'],_0x19951f?_0x179996['start']['isBefore'](_0x19951f['getFirstRange']()['start'])?(_0x19951f['removeMarkers'](),_0x19951f=_0x105ea4):_0x105ea4['removeMarkers']():_0x19951f=_0x105ea4;}const _0x171424=this['_model']['createRange'](_0x55a2f8,_0x7ff54e);if(_0x19951f)this['_setSuggestionRange'](_0x19951f,_0x171424);else{const _0x16f48c=_0x427844(),_0x42d6ac=_0x156508['id'];this['_setSuggestionData']({'id':_0x16f48c,'type':'formatInline:'+_0x24f4cb,'data':_0x154260,'createdAt':new Date(),'authorId':_0x42d6ac,'attributes':_0x5db114}),this['_addSuggestionMarker']('formatInline:'+_0x24f4cb,_0x16f48c,_0x42d6ac,_0x171424);}}return null;}['markBlockFormat'](_0x1ad1ef,_0x4d158f,_0x111e81=[],_0x57913f=null,_0x334781={}){_0x4d158f['formatGroupId']||(_0x4d158f['formatGroupId']=_0x4d158f['commandName']),_0x4d158f['multipleBlocks']=_0x1ad1ef['is']('range'),_0x57913f=_0x57913f||Lt(_0x4d158f);const _0x373dfe=_0x111e81['map'](_0x4e92ff=>qt(_0x4e92ff,this['_model'])),_0x48bff1=_0x1ad1ef['is']('range')?_0x1ad1ef:qt(_0x1ad1ef,this['_model']);if(this['_trackingSessionId']&&(_0x334781['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f84e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57913f,'accept');return this['forceDefaultExecution'](()=>_0x3f84e5([_0x48bff1],_0x4d158f,_0x334781)),null;}_0x373dfe['push'](_0x48bff1);let _0x2549ce=!0x0;for(const _0x22ce71 of _0x373dfe)if(!this['_rangeIsInLocalUserInsertion'](_0x22ce71)){_0x2549ce=!0x1;break;}if(_0x2549ce&&'always'!==this['_trackFormatChanges']){const _0x1fb8da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57913f,'accept');return this['forceDefaultExecution'](()=>_0x1fb8da([_0x48bff1],_0x4d158f,_0x334781)),null;}let _0x30c9df=null,_0x5cdf8e=_0x48bff1['start'],_0x59c7d9=_0x48bff1['end'];for(const {suggestion:_0x1225d7,meta:_0x103d01}of this['_findSuggestions'](_0x48bff1,'formatBlock')){if(!_0x103d01['isOwn'])continue;if(_0x103d01['isNextTo']||_0x103d01['containsRangeInObject']||_0x103d01['isInsideObject'])continue;if(_0x1225d7['data']['formatGroupId']!=_0x4d158f['formatGroupId'])continue;if(!Qt(_0x1225d7,_0x334781))continue;const _0x45a924=_0x1225d7['getFirstRange']();if(_0x1225d7['subType']==_0x57913f){if(_0x45a924['containsRange'](_0x48bff1,!0x0))return null;_0x5cdf8e=_0x5cdf8e['isBefore'](_0x45a924['start'])?_0x5cdf8e:_0x45a924['start'],_0x59c7d9=_0x59c7d9['isAfter'](_0x45a924['end'])?_0x59c7d9:_0x45a924['end'],_0x30c9df?_0x45a924['start']['isBefore'](_0x30c9df['getFirstRange']()['start'])?(_0x30c9df['removeMarkers'](),_0x30c9df=_0x1225d7):_0x1225d7['removeMarkers']():_0x30c9df=_0x1225d7;}else{const _0x5c1293=_0x48bff1['getIntersection'](_0x45a924);this['_cutOutSuggestionMarker'](_0x1225d7,_0x5c1293);}}const _0x12ef75=this['editor']['plugins']['get']('Users')['me'],_0x2fccd6=_0x427844(),_0x266076=_0x12ef75['id'];if(_0x30c9df)return this['_setSuggestionRange'](_0x30c9df,this['_model']['createRange'](_0x5cdf8e,_0x59c7d9)),_0x30c9df;{const _0x16882a=this['_setSuggestionData']({'id':_0x2fccd6,'type':'formatBlock:'+_0x57913f,'data':_0x4d158f,'createdAt':new Date(),'authorId':_0x266076,'attributes':_0x334781});return this['_addSuggestionMarker']('formatBlock:'+_0x57913f,_0x2fccd6,_0x266076,this['_model']['createRange'](_0x5cdf8e,_0x59c7d9)),_0x16882a;}}['markMultiRangeBlockFormat'](_0x190fb7,_0x235513,_0x283145=[],_0x270835=null,_0x126a14={}){_0x235513['formatGroupId']||(_0x235513['formatGroupId']=_0x235513['commandName']);const _0x5d84d6=_0x190fb7[0x0];_0x235513['multipleBlocks']=_0x5d84d6['is']('range'),_0x270835=_0x270835||Lt(_0x235513);const _0x19b9f4=_0x283145['map'](_0x107931=>qt(_0x107931,this['_model'])),_0x1f0d7b=_0x5d84d6['is']('range')?_0x190fb7:_0x190fb7['map'](_0x4b23d9=>qt(_0x4b23d9,this['_model']));if(this['_trackingSessionId']&&(_0x126a14['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4880fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'accept');return this['forceDefaultExecution'](()=>_0x4880fb(_0x1f0d7b,_0x235513,_0x126a14)),null;}_0x19b9f4['push'](..._0x1f0d7b);let _0x342cd9=!0x0;for(const _0x2170c0 of _0x19b9f4)if(!this['_rangeIsInLocalUserInsertion'](_0x2170c0)){_0x342cd9=!0x1;break;}if(_0x342cd9&&'always'!==this['_trackFormatChanges']){const _0x10ff1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'accept');return this['forceDefaultExecution'](()=>_0x10ff1c(_0x1f0d7b,_0x235513,_0x126a14)),null;}const _0x8274a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a330a of this['getSuggestions']()){const _0x1b53c8=_0x4a330a['data'];if(_0x4a330a['author']['id']!=_0x8274a5['id'])continue;if('formatBlock'!=_0x4a330a['type']||_0x1b53c8['formatGroupId']!=_0x235513['formatGroupId'])continue;if(!Qt(_0x4a330a,_0x126a14))continue;const _0x2c76b0=_0x4a330a['subType']==_0x270835;for(let _0x3b81d9=0x0;_0x3b81d9<_0x1f0d7b['length'];_0x3b81d9++){const _0x583444=_0x1f0d7b[_0x3b81d9];for(const _0x731c7c of _0x4a330a['getMarkers']()){const _0x260b40=_0x731c7c['getRange']();if(_0x583444['isEqual'](_0x260b40)){_0x2c76b0?(_0x1f0d7b['splice'](_0x3b81d9,0x1),_0x3b81d9--):_0x4a330a['removeMarker'](_0x731c7c['name']);break;}}}}if(0x0==_0x1f0d7b['length'])return null;const _0x2dc749=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'join');for(const _0x3d6b00 of this['getSuggestions']()){const _0x21ab98=_0x3d6b00['data'];if(_0x3d6b00['author']['id']==_0x8274a5['id']&&('formatBlock'==_0x3d6b00['type']&&_0x21ab98['formatGroupId']==_0x235513['formatGroupId']&&_0x3d6b00['subType']==_0x270835&&Qt(_0x3d6b00,_0x126a14)&&(_0x2dc749(_0x3d6b00['getRanges'](),_0x1f0d7b)||_0x2dc749(_0x1f0d7b,_0x3d6b00['getRanges']())))){for(const _0x312b38 of _0x1f0d7b)_0x3d6b00['addRange'](_0x312b38);return _0x3d6b00;}}const _0x9b23cd=_0x427844(),_0x26fd33=_0x8274a5['id'],_0x53fb79='formatBlock:'+_0x270835,_0x1294cb=this['_setSuggestionData']({'id':_0x9b23cd,'type':_0x53fb79,'data':_0x235513,'createdAt':new Date(),'authorId':_0x26fd33,'attributes':_0x126a14});for(const _0x151f91 of _0x1f0d7b)this['_addSuggestionMarker'](_0x53fb79,_0x9b23cd,_0x26fd33,_0x151f91,T['getMultiRangeId']());return _0x1294cb;}['markDeletion'](_0x5b7b3f,_0x2f24d6=null,_0x2cab79={}){if(_0x5b7b3f['isCollapsed'])return null;const _0x236faa=this['editor']['plugins']['get']('Users')['me'],_0x5ad32a=new _0x20b456(_0x5b7b3f['start'],_0x5b7b3f['end']);this['_trackingSessionId']&&(_0x2cab79['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d2bef,meta:_0x520085}of this['_findSuggestions'](_0x5ad32a,'insertion'))if(_0x520085['isOwn']&&!_0x520085['isNextTo']){if(_0x4d2bef['isMultiRange']){const _0x18487c=_0x4d2bef['getRanges']()['filter'](_0x32bf40=>'$graveyard'!=_0x32bf40['root']['rootName']);_0x18487c['every'](_0x52a77c=>_0x5ad32a['containsRange'](_0x52a77c,!0x0))&&_0x4d2bef['discard']();if(_0x18487c['some'](_0xf9f08a=>_0xf9f08a['containsRange'](_0x5ad32a,!0x0))){const _0x2865d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f24d6,'accept');return this['forceDefaultExecution'](()=>_0x2865d5([_0x5ad32a],null,_0x2cab79)),null;}}else{const _0x1d337d=_0x5ad32a['getIntersection'](_0x4d2bef['getFirstRange']());null!==_0x1d337d&&_0x4d2bef['_onDiscard']([_0x1d337d],null,_0x2cab79);}}if(_0x5ad32a['detach'](),_0x5ad32a['isCollapsed']||'$graveyard'==_0x5ad32a['root']['rootName'])return null;let _0x31253f=null,_0x5662b1=_0x5ad32a['start'],_0xb91a9b=_0x5ad32a['end'];const _0x575446=this['_findSuggestions'](_0x5ad32a,'deletion');for(const {suggestion:_0x531ef6,meta:_0xc87558}of _0x575446){const _0x3be59f=this['_model']['createRange'](_0x5662b1,_0xb91a9b);if(_0xc87558['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc87558['containsRangeInObject']&&!_0xc87558['isInsideObject'])){if(_0x531ef6['isMultiRange']){if(!Qt(_0x531ef6,_0x2cab79))continue;let _0x3c5fe7=!0x0;for(const _0x439970 of _0x531ef6['getRanges']()){if(_0x439970['containsRange'](_0x3be59f,!0x0))return _0x531ef6;_0x3be59f['containsRange'](_0x439970)||(_0x3c5fe7=!0x1);}_0x3c5fe7&&_0x531ef6['discard']();}else{const _0x5badf2=_0x531ef6['getFirstRange']();if(_0x5badf2['containsRange'](_0x3be59f,!0x0))return _0x531ef6;if(!Qt(_0x531ef6,_0x2cab79)){_0x3be59f['containsRange'](_0x5badf2)?_0x531ef6['removeMarkers']():_0x5badf2['containsPosition'](_0x5662b1)?_0x5662b1=_0x5badf2['end']:_0x5badf2['containsPosition'](_0xb91a9b)&&(_0xb91a9b=_0x5badf2['start']);continue;}_0x5662b1=_0x5662b1['isBefore'](_0x5badf2['start'])?_0x5662b1:_0x5badf2['start'],_0xb91a9b=_0xb91a9b['isAfter'](_0x5badf2['end'])?_0xb91a9b:_0x5badf2['end'],_0x2cab79=Object['assign']({},_0x531ef6['attributes']),_0x31253f?_0x5badf2['start']['isBefore'](_0x31253f['getFirstRange']()['start'])?(_0x31253f['removeMarkers'](),_0x31253f=_0x531ef6):_0x531ef6['removeMarkers']():_0x31253f=_0x531ef6;}}}if(_0x31253f)return this['_setSuggestionRange'](_0x31253f,this['_model']['createRange'](_0x5662b1,_0xb91a9b)),_0x31253f;{const _0x4f7299=_0x427844(),_0x1d63d4=this['_model']['createRange'](_0x5662b1,_0xb91a9b),_0x4992ac=_0x236faa['id'],_0x1a1eb4=_0x2f24d6?'deletion:'+_0x2f24d6:'deletion',_0x4e08a6=this['_setSuggestionData']({'id':_0x4f7299,'type':_0x1a1eb4,'createdAt':new Date(),'authorId':_0x4992ac,'attributes':_0x2cab79});return this['_addSuggestionMarker'](_0x1a1eb4,_0x4f7299,_0x4992ac,_0x1d63d4),_0x4e08a6;}}['markMultiRangeDeletion'](_0x2c7a04,_0x244c9b='multi',_0x4007c5={}){const _0x3766c3=this['editor']['plugins']['get']('Users')['me'],_0x4d3aa3=_0x2c7a04['map'](_0x1dd3a0=>new _0x20b456(_0x1dd3a0['start'],_0x1dd3a0['end'])),_0x44c4bd=new Set();this['_trackingSessionId']&&(_0x4007c5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xe93da,meta:_0x4b248b}of this['_findSuggestions'](_0x4d3aa3,'insertion'))_0x4b248b['isOwn']&&!_0x4b248b['isNextTo']&&_0x44c4bd['add'](_0xe93da);for(const _0x219ea1 of _0x44c4bd)if(_0x219ea1['isMultiRange']){const _0xc18ec2=_0x219ea1['getRanges']();(!_0x219ea1['attributes']||!_0x219ea1['attributes']['skipNestingCheck'])&&(_0xc18ec2['every'](_0x22bb41=>_0x4d3aa3['some'](_0x5b90f6=>_0x5b90f6['containsRange'](_0x22bb41,!0x0)))&&_0x219ea1['discard']());if(_0x4d3aa3['every'](_0x117cd0=>_0xc18ec2['some'](_0x59a380=>_0x59a380['containsRange'](_0x117cd0,!0x0)))){const _0x436dd8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'accept');return this['forceDefaultExecution'](()=>_0x436dd8(_0x2c7a04,null,_0x4007c5)),null;}}else{const _0x281d05=_0x219ea1['getFirstRange']();_0x4d3aa3['some'](_0x8feb49=>_0x8feb49['containsRange'](_0x281d05,!0x0))&&_0x219ea1['discard']();if(_0x4d3aa3['every'](_0x261abd=>_0x281d05['containsRange'](_0x261abd,!0x0))){const _0x479950=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'accept');return this['forceDefaultExecution'](()=>_0x479950(_0x4d3aa3,null,_0x4007c5)),null;}}const _0x37143e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'join');let _0x28fd18=null;for(const _0x4fea56 of this['getSuggestions']())if(_0x4fea56['author']['id']==_0x3766c3['id']&&_0x4fea56['isInContent']&&'deletion'==_0x4fea56['type']&&_0x4fea56['subType']==_0x244c9b&&Qt(_0x4fea56,_0x4007c5)&&(_0x37143e(_0x4fea56['getRanges'](),_0x4d3aa3)||_0x37143e(_0x4d3aa3,_0x4fea56['getRanges']()))){if(_0x28fd18){if(_0x4fea56['commentThread']&&_0x4fea56['commentThread']['length'])continue;for(const _0x38e2ff of _0x4fea56['getRanges']())_0x28fd18['isIntersectingWithRange'](_0x38e2ff)||_0x28fd18['addRange'](_0x38e2ff);_0x4fea56['removeMarkers']();}else{_0x28fd18=_0x4fea56;for(const _0x4ca386 of _0x4d3aa3)_0x4fea56['isIntersectingWithRange'](_0x4ca386)||_0x4fea56['addRange'](_0x4ca386);}}if(_0x28fd18)return _0x28fd18;_0x44c4bd['clear']();for(const {suggestion:_0x2fbdd9,meta:_0x1b794a}of this['_findSuggestions'](_0x4d3aa3,'deletion'))_0x1b794a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b794a['containsRangeInObject']&&!_0x1b794a['isInsideObject'])&&Qt(_0x2fbdd9,_0x4007c5)&&_0x44c4bd['add'](_0x2fbdd9);for(const _0x17e2d2 of _0x44c4bd){const _0x29befe=_0x17e2d2['getRanges']();if(!_0x4007c5||!_0x4007c5['skipNestingCheck']){if(_0x4d3aa3['every'](_0x5763f7=>_0x29befe['some'](_0x1316b2=>_0x1316b2['containsRange'](_0x5763f7,!0x0))))return _0x17e2d2;}(!_0x17e2d2['attributes']||!_0x17e2d2['attributes']['skipNestingCheck'])&&(_0x29befe['every'](_0x2e45e9=>_0x4d3aa3['some'](_0x89d9ee=>_0x89d9ee['containsRange'](_0x2e45e9,!0x0)))&&_0x17e2d2['discard']());}const _0x548e70=_0x427844(),_0x234fb5=_0x3766c3['id'],_0x33eba='deletion:'+_0x244c9b,_0x2ed518=this['_setSuggestionData']({'id':_0x548e70,'type':_0x33eba,'createdAt':new Date(),'authorId':_0x234fb5,'attributes':_0x4007c5});for(const _0x33180a of _0x4d3aa3)_0x33180a['detach'](),_0x33180a['isCollapsed']||'$graveyard'==_0x33180a['root']['rootName']||this['_addSuggestionMarker'](_0x33eba,_0x548e70,_0x234fb5,_0x33180a,T['getMultiRangeId']());return _0x2ed518;}['markAttributeChange'](_0x1f08ef,_0x12857b,_0xf3d088,_0x2b2378,_0x2044a2){if(_0x1f08ef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x45c163=this['editor']['plugins']['get']('Users')['me']['id'],_0x576138=Array['from'](this['_suggestions']['values']())['filter'](_0xb09f2e=>'attribute'==_0xb09f2e['type']&&_0xb09f2e['data']['key']==_0x12857b&&_0xb09f2e['isIntersectingWithRange'](_0x1f08ef));if(this['_trackingSessionId']&&(_0x2044a2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x38308d=this['_findSuggestions'](_0x1f08ef,'insertion')['filter'](({meta:_0x52adde})=>_0x52adde['isOwn']&&!_0x52adde['isInsideObject']&&!_0x52adde['isNextTo'])['map'](({suggestion:_0x114b0a})=>_0x114b0a);_0x576138['unshift'](..._0x38308d);}const _0x422879=new Map([[_0x1f08ef,_0xf3d088]]);for(const _0x314313 of _0x576138){const _0x36cd6b='attribute'==_0x314313['type']?_0x314313['data']['oldValue']:void 0x0,_0x59141e=_0x314313['getFirstRange'](),_0x59e36b=Array['from'](_0x422879['keys']())['find'](_0x4c409d=>_0x4c409d['isIntersecting'](_0x59141e));if(!_0x59e36b)continue;const _0x26b213=_0x59e36b['getDifference'](_0x59141e);this['_isBlockAttribute'](_0x12857b)&&'insertion'==_0x314313['type']&&0x0!=_0x26b213['length']||(_0x422879['delete'](_0x59e36b),_0x26b213['forEach'](_0x1ab3d7=>{_0x422879['set'](_0x1ab3d7,_0xf3d088);}),'insertion'!=_0x314313['type']&&_0x36cd6b!=_0x2b2378&&_0x422879['set'](_0x59e36b['getIntersection'](_0x59141e),_0x36cd6b));}const _0x29f3aa=[];for(const [_0x27daf7,_0x480a93]of _0x422879){const _0x4cbacf=_0x427844(),_0x235927={'key':_0x12857b,'oldValue':_0x480a93,'newValue':_0x2b2378};_0x12857b['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':_0x12857b});const _0x207607=('attribute:'+(_0x12857b+'|'+Lt({'newValue':_0x2b2378})))['substring'](0x0,0x3c),_0x2bb07f=this['_setSuggestionData']({'id':_0x4cbacf,'type':_0x207607,'data':_0x235927,'createdAt':new Date(),'authorId':_0x45c163,'attributes':_0x2044a2});_0x29f3aa['push'](_0x2bb07f),this['_addSuggestionMarker'](_0x207607,_0x4cbacf,_0x45c163,_0x27daf7);}return _0x29f3aa;}['enableDefaultAttributesIntegration'](_0x5e2b6b){this['enableCommand'](_0x5e2b6b,(_0x11ce69,..._0x2b4b27)=>{this['recordAttributeChanges'](()=>{_0x11ce69(..._0x2b4b27);});});}['registerBlockAttribute'](_0x2adad5){this['_blockAttributeKeys']['add'](_0x2adad5);}['registerInlineAttribute'](_0x44c782){this['_inlineAttributeKeys']['add'](_0x44c782);}['startTrackingSession'](_0x1dc907){return this['_trackingSessionId']=void 0x0!==_0x1dc907?_0x1dc907:_0x427844(),this['_trackingSessionId'];}['_getAttributeKey'](_0x455b9e){return'attribute'==_0x455b9e['type']?_0x455b9e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x166d33,_0x2a6c59){const _0x18d9f4=_0x166d33['getFirstMarker']();this['_model']['change'](_0x198cb6=>{_0x198cb6['updateMarker'](_0x18d9f4,{'range':_0x2a6c59});});}['_addThreadToSuggestion'](_0x173e19){const _0x316834=_0x173e19['id'],_0xb6b7cc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x316834)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb6b7cc,'threadId':_0x316834,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3501=this['_commentsRepository']['getCommentThread'](_0x316834);_0x3f3501['unbind']('isRemovable'),_0x3f3501['isRemovable']=!0x1,_0x173e19['commentThread']=_0x3f3501;}['_checkSuggestionCorrectness'](_0x22f718,_0x53689d,_0x3cd338,_0x19d24b){if(_0x22f718['type']!=_0x53689d||_0x22f718['subType']!=_0x3cd338||_0x22f718['creator']['id']!=_0x19d24b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59d332('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54bc81,_0x596d23){const _0x4653ce=_0x54bc81['getFirstRange']();if(_0x596d23['isEqual'](_0x4653ce))_0x54bc81['removeMarkers']();else{if(_0x4653ce['containsRange'](_0x596d23)){const _0x5ee093=this['_model']['createPositionAt'](_0x596d23['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x4653ce['start'],_0x5ee093));const _0x3e3d10=_0x427844(),_0x67b27=_0x54bc81['creator']['id'],_0x919526=_0x54bc81['type']+':'+_0x54bc81['subType'];this['_setSuggestionData']({'id':_0x3e3d10,'type':_0x919526,'createdAt':new Date(),'authorId':_0x67b27,'data':_0x54bc81['data'],'attributes':_0x54bc81['attributes']});const _0x43a96e=this['_model']['createPositionAt'](_0x596d23['end']['parent'],'after'),_0x1323d9=this['_model']['createRange'](_0x43a96e,_0x4653ce['end']);this['_addSuggestionMarker'](_0x919526,_0x3e3d10,_0x67b27,_0x1323d9);}else{if(_0x4653ce['containsPosition'](_0x596d23['start'])){const _0x566efd=this['_model']['createPositionAt'](_0x596d23['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x4653ce['start'],_0x566efd));}else{const _0x3a4222=this['_model']['createPositionAt'](_0x596d23['end']['parent'],'after');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x3a4222,_0x4653ce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x506a31){for(const {suggestion:_0x497d24,meta:_0x42ca2e}of this['_findSuggestions'](_0x506a31,'insertion')){if(!_0x42ca2e['isOwn'])continue;const _0x3545bc=_0x497d24['getRanges']();for(const _0x378a14 of _0x3545bc)if(!_0x506a31['getDifference'](_0x378a14)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2987db){const _0x3d1fa0=this['editor']['plugins']['get']('Users')['getUser'](_0x2987db);if(!_0x3d1fa0)throw new _0x59d332('track-changes-user-not-found',this);return _0x3d1fa0;}['_getExternalAuthor'](_0x350e0e){const _0x52e0b8=this['editor']['plugins']['get']('Users'),_0x155c52=_0x17437d('external:'+_0x350e0e),_0x55b88e=_0x52e0b8['getUser'](_0x155c52);return _0x55b88e||_0x52e0b8['addUser']({'id':_0x155c52,'name':_0x350e0e});}['_createSuggestion'](_0x35ac81,_0x1bd56a,_0x4cf8b7,_0x497b04,_0x5b6ecb,_0x505c8a){const _0x50a206=this['_getAuthorFromId'](_0x497b04),_0x2d070e=this['_suggestionFactory']['buildSuggestion'](_0x35ac81,_0x1bd56a,_0x4cf8b7,_0x50a206,_0x5b6ecb,_0x43c93f=>{this['_updateSuggestionData'](_0x4cf8b7,{'attributes':_0x43c93f});const _0x246f90=this['getSuggestion'](_0x4cf8b7);this['_joinWithAdjacentSuggestions'](new Set([_0x246f90])),this['_refreshSuggestionsChain'](new Set([_0x246f90]));},_0x505c8a);return this['listenTo'](_0x2d070e,'accept',()=>{this['_updateSuggestionData'](_0x4cf8b7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2d070e,'discard',()=>{this['_updateSuggestionData'](_0x4cf8b7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4cf8b7,_0x2d070e),this['_suggestionState']['set'](_0x2d070e,'notReady'),_0x2d070e;}['_splitMarkerName'](_0x484cce){const _0x3245da=_0x484cce['split'](':');return{'group':_0x3245da[0x0],'type':_0x3245da[0x1],'subType':_0x3245da['length']>=0x5?_0x3245da[0x2]:null,'id':_0x3245da['length']<0x5?_0x3245da[0x2]:_0x3245da[0x3],'authorId':_0x3245da['length']<0x5?_0x3245da[0x3]:_0x3245da[0x4],'markerCount':0x6==_0x3245da['length']?_0x3245da[0x5]:null};}['_breakSuggestionMarker'](_0x496efd,_0x3339d8,_0xd7447a){const _0x4aba52=_0x496efd['getFirstRange'](),_0x5d2ed5=_0x4aba52['start'],_0x23cf03=_0x4aba52['end'];this['_setSuggestionRange'](_0x496efd,this['_model']['createRange'](_0x5d2ed5,_0x3339d8));const _0x29cea8=_0x427844(),_0x2cf7bf=_0x496efd['creator']['id'],_0x1c9cc7=_0x496efd['type']+(_0x496efd['subType']?':'+_0x496efd['subType']:'');this['_setSuggestionData']({'id':_0x29cea8,'type':_0x1c9cc7,'createdAt':new Date(),'authorId':_0x2cf7bf,'originalSuggestionId':_0x496efd['_originalSuggestionId']||_0x496efd['id'],'attributes':_0x496efd['attributes'],'data':_0x496efd['data']});const _0x49df18=this['_getAttributeKey'](_0x496efd);('formatBlock'==_0x496efd['type']||_0x49df18&&this['_isBlockAttribute'](_0x49df18))&&(_0xd7447a=this['_model']['createPositionBefore'](_0xd7447a['parent'])),this['_addSuggestionMarker'](_0x1c9cc7,_0x29cea8,_0x2cf7bf,this['_model']['createRange'](_0xd7447a,_0x23cf03));}['_findSuggestions'](_0xde3c16,_0x34c245=null){const _0x27e0bc=[],_0x52defb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xde3c16)||(_0xde3c16=[_0xde3c16]);for(const _0xd3e582 of this['getSuggestions']()){if(!_0xd3e582['isInContent'])continue;if(_0x34c245&&_0xd3e582['type']!=_0x34c245)continue;let _0x4cdb2f=!0x1;for(const _0x38cd56 of _0xd3e582['getRanges']()){for(const _0xa41cf of _0xde3c16){const _0xe70eb4=_0xa41cf['start']['isEqual'](_0x38cd56['end'])||_0xa41cf['end']['isEqual'](_0x38cd56['start']);if(_0xe70eb4||_0xa41cf['getIntersection'](_0x38cd56)){const _0x5ab920=_0xa41cf['containsRange'](_0x38cd56)&&Ft(this['_model']['schema'],_0x38cd56['start'],_0xa41cf),_0x37905e=_0x38cd56['containsRange'](_0xa41cf)&&Ft(this['_model']['schema'],_0xa41cf['start'],_0x38cd56);_0x27e0bc['push']({'suggestion':_0xd3e582,'meta':{'isOwn':_0x52defb==_0xd3e582['author'],'isNextTo':_0xe70eb4,'isInsideObject':_0x5ab920,'containsRangeInObject':_0x37905e}}),_0x4cdb2f=!0x0;break;}}if(_0x4cdb2f)break;}}return _0x27e0bc;}['_addSuggestionMarker'](_0x70f780,_0x14c457,_0x275502,_0x3f3f4e,_0x55b915){this['_model']['change'](_0x89f79a=>{let _0x26679a='suggestion:'+_0x70f780+':'+_0x14c457+':'+_0x275502;_0x55b915&&(_0x26679a=_0x26679a+':'+_0x55b915),_0x89f79a['addMarker'](_0x26679a,{'range':_0x3f3f4e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4eedcb){const _0x54eb2a=_0x4eedcb['previous'],_0xe4be8=_0x4eedcb['next'];_0x4eedcb['previous']=null,_0x4eedcb['next']=null,null!=_0x54eb2a&&_0x54eb2a['next']==_0x4eedcb&&(_0x54eb2a['next']=_0xe4be8),null!=_0xe4be8&&_0xe4be8['previous']==_0x4eedcb&&(_0xe4be8['previous']=_0x54eb2a),'ready'==this['_suggestionState']['get'](_0x4eedcb)&&(this['_suggestionState']['set'](_0x4eedcb,'removed'),this['fire']('suggestionUnloaded',_0x4eedcb,_0x54eb2a,_0xe4be8));}['_setSuggestionData'](_0x21abfb){const _0x213272=_0x21abfb['id'],_0x2d9b72=this['addSuggestionData'](_0x21abfb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b0bbc=this['editor']['plugins']['get']('PendingActions'),_0x7845bf=_0x2d9b72['hasComments'],_0x56dd8f=_0x2d9b72['subType']?_0x2d9b72['type']+':'+_0x2d9b72['subType']:_0x2d9b72['type'],_0x121186=this['editor']['locale'],_0x5dda89=_0x1b0bbc['add'](o(_0x121186,'PENDING_ACTION_SUGGESTION')),_0xd9670={'id':_0x213272,'type':_0x56dd8f,'hasComments':_0x7845bf,'data':_0x21abfb['data']||null,'originalSuggestionId':_0x21abfb['originalSuggestionId']||null,'attributes':_0x2d9b72['attributes']};this['_adapter']['addSuggestion'](_0xd9670)['then'](_0x22f2a6=>{_0x2d9b72['_saved']=!0x0,_0x1b0bbc['remove'](_0x5dda89),_0x22f2a6&&_0x22f2a6['createdAt']&&(this['_suggestions']['get'](_0x213272)['createdAt']=_0x22f2a6['createdAt']);})['catch'](_0x196b77=>{throw _0x14c28e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d9b72['discard']();}),_0x2d9b72['stopListening'](),this['_suggestions']['delete'](_0x2d9b72['id']),this['_suggestionState']['delete'](_0x2d9b72),_0x196b77;});}return _0x2d9b72;}['_isBlockAttribute'](_0x44e6bc){return this['_blockAttributeKeys']['has'](_0x44e6bc);}['_updateSuggestionData'](_0x3b4f6f,_0x2320d0){const _0x232872=this['editor']['plugins']['get']('PendingActions'),_0x1471cb=this['getSuggestion'](_0x3b4f6f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1471cb['_saved']){const _0x429701=_0x232872['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3b4f6f,_0x2320d0)['then'](()=>{_0x232872['remove'](_0x429701);});}else _0x1471cb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3b4f6f,_0x2320d0);});}}['_getSuggestionData'](_0x22545a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59d332('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22545a);}['_handleNewSuggestionMarker'](_0x2cee23){const {id:_0xcf674f,type:_0x4804da,subType:_0x266f56,authorId:_0x33e5a4}=this['_splitMarkerName'](_0x2cee23),_0x1af3ad=this['_suggestions']['get'](_0xcf674f)||this['_createSuggestion'](_0x4804da,_0x266f56,_0xcf674f,_0x33e5a4,{});switch(this['_checkSuggestionCorrectness'](_0x1af3ad,_0x4804da,_0x266f56,_0x33e5a4),this['_suggestionState']['get'](_0x1af3ad)){case'notReady':this['_getSuggestionData'](_0xcf674f)['then'](_0x263989=>{let _0xe73b2f=Promise['resolve']();_0x263989['hasComments']&&(_0xe73b2f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcf674f})),_0xe73b2f['then'](()=>{this['addSuggestionData'](_0x263989)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1af3ad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcf674f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1af3ad,'ready'),this['fire']('suggestionLoaded',_0x1af3ad);break;case'ready':this['fire']('suggestionChanged',_0x1af3ad);}return _0x1af3ad['addMarkerName'](_0x2cee23),_0x1af3ad;}['_refreshSuggestionsChain'](_0x2d0fb6){const _0x497d29=Array['from'](_0x2d0fb6),_0x12df11=_0x497d29['filter'](_0x464b1a=>'attribute'==_0x464b1a['type']);this['_refreshAttributeSuggestionsChain'](_0x12df11);const _0x1037ab=_0x497d29['filter'](_0x44ba7c=>!_0x44ba7c['isMultiRange']&&'attribute'!=_0x44ba7c['type']),_0x3fcfb8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d5e3=>!_0x44d5e3['isMultiRange']&&'attribute'!=_0x44d5e3['type']),_0x213f74=_0x3fcfb8['filter'](_0x5b6d94=>!_0x2d0fb6['has'](_0x5b6d94)),_0x112a41=new Map(_0x3fcfb8['map'](_0x183ffe=>[_0x183ffe,this['_suggestionFactory']['getSuggestionCallback'](_0x183ffe['type'],_0x183ffe['subType'],'chain')])),_0x23e40f=new Map(_0x3fcfb8['map'](_0x5aa84a=>[_0x5aa84a,_0x5aa84a['getFirstRange']()])),_0x17ec66=new Set(),_0x4fafba=new Set();for(let _0x547f95=0x0;_0x547f95<_0x1037ab['length'];_0x547f95++)_0x44da66(_0x1037ab[_0x547f95],_0x1037ab,_0x547f95+0x1);for(let _0x19ffe4=0x0;_0x19ffe4<_0x1037ab['length'];_0x19ffe4++)_0x44da66(_0x1037ab[_0x19ffe4],_0x213f74,0x0);const _0x1cc9ef=new Set();for(let _0x4e2543=0x0;_0x4e2543<_0x1037ab['length'];_0x4e2543++){const _0x236d5c=_0x1037ab[_0x4e2543];!_0x4fafba['has'](_0x236d5c)&&_0x236d5c['previous']&&(_0x1cc9ef['add'](_0x236d5c['previous']),_0x236d5c['previous']['next']===_0x236d5c&&(_0x236d5c['previous']['next']=null),_0x236d5c['previous']=null),!_0x17ec66['has'](_0x236d5c)&&_0x236d5c['next']&&(_0x1cc9ef['add'](_0x236d5c['next']),_0x236d5c['next']['previous']===_0x236d5c&&(_0x236d5c['next']['previous']=null),_0x236d5c['next']=null);}function _0x44da66(_0x96996,_0x517771,_0x1fcd72){for(let _0x49f1ba=_0x1fcd72;_0x49f1ba<_0x517771['length'];_0x49f1ba++){const _0xb6083d=_0x624875(_0x96996,_0x517771[_0x49f1ba]);_0xb6083d&&(_0xb6083d[0x0]['next']=_0xb6083d[0x1],_0xb6083d[0x1]['previous']=_0xb6083d[0x0],_0x17ec66['add'](_0xb6083d[0x0]),_0x4fafba['add'](_0xb6083d[0x1]));}}function _0x624875(_0x19c196,_0x558047){if(_0x19c196['author']['id']!==_0x558047['author']['id'])return null;const _0x5a1bd4=_0x112a41['get'](_0x19c196)(_0x19c196,_0x558047,_0x23e40f['get'](_0x19c196),_0x23e40f['get'](_0x558047));if(!_0x5a1bd4)return null;return _0x112a41['get'](_0x558047)(_0x19c196,_0x558047,_0x23e40f['get'](_0x19c196),_0x23e40f['get'](_0x558047))?_0x5a1bd4[0x1]['commentThread']&&_0x5a1bd4[0x1]['commentThread']['length']?null:_0x5a1bd4:null;}_0x1cc9ef['size']&&this['_refreshSuggestionsChain'](_0x1cc9ef);}['_refreshAttributeSuggestionsChain'](_0x374886){if(0x0==_0x374886['length'])return;const _0x1a57cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179c82=>'attribute'==_0x179c82['type']&&_0x179c82['_isDataLoaded']),_0x3a2f1c=[],_0x4655ac=new Map();for(const _0x3c6ac3 of _0x1a57cd){const _0xf60cc7=_0x17437d(_0x3c6ac3['attributes']);_0x4655ac['has'](_0xf60cc7)||(_0x4655ac['set'](_0xf60cc7,_0x3a2f1c['length']),_0x3a2f1c['push']([]));const _0x3280d4=_0x4655ac['get'](_0xf60cc7);_0x3a2f1c[_0x3280d4]['push'](_0x3c6ac3);}!(function(){_0x3a2f1c['sort']((_0x41247e,_0x426ba0)=>{const _0x2dd398=_0x41247e[0x0]['createdAt'],_0x179f3b=_0x426ba0[0x0]['createdAt'];return _0x2dd398==_0x179f3b?_0x41247e[0x0]['attributes']['groupId']<_0x426ba0[0x0]['attributes']['groupId']?-0x1:0x1:_0x2dd398<_0x179f3b?-0x1:0x1;});for(const _0x142675 of _0x3a2f1c)_0x142675['sort']((_0xdea70f,_0x4bc75e)=>_0xdea70f['id']<_0x4bc75e['id']?-0x1:0x1);}());for(let _0x4a8ae2=0x0;_0x4a8ae2<_0x3a2f1c['length'];_0x4a8ae2++){if(0x0==_0x3a2f1c[_0x4a8ae2]['length'])continue;const _0x503ce8=[];for(let _0x5cdfd2=_0x4a8ae2+0x1;_0x5cdfd2<_0x3a2f1c['length'];_0x5cdfd2++)0x0!=_0x3a2f1c[_0x5cdfd2]['length']&&_0x5b780e(_0x3a2f1c[_0x4a8ae2],_0x3a2f1c[_0x5cdfd2])&&_0x503ce8['push'](_0x5cdfd2);for(const _0x32aa9a of _0x503ce8)_0x3a2f1c[_0x4a8ae2]=_0x3a2f1c[_0x4a8ae2]['concat'](_0x3a2f1c[_0x32aa9a]),_0x3a2f1c[_0x32aa9a]=[];}for(const _0x3ae529 of _0x3a2f1c)for(let _0x45eb4e=0x0;_0x45eb4e<_0x3ae529['length'];_0x45eb4e++){const _0x21f91d=_0x3ae529[_0x45eb4e+0x1]||null;_0x3ae529[_0x45eb4e]['next']!==_0x21f91d&&(_0x3ae529[_0x45eb4e]['next']=_0x21f91d);}for(const _0x47126e of _0x3a2f1c)for(let _0x3a4105=0x0;_0x3a4105<_0x47126e['length'];_0x3a4105++){const _0x19b7c6=_0x47126e[_0x3a4105-0x1]||null;_0x47126e[_0x3a4105]['previous']!==_0x19b7c6&&(_0x47126e[_0x3a4105]['previous']=_0x19b7c6);}function _0x5b780e(_0x1f1970,_0x27267c){if(_0x1f1970[0x0]['attributes']['groupId']!==_0x27267c[0x0]['attributes']['groupId']&&_0x1f1970[0x0]['author']!==_0x27267c[0x0]['author'])return!0x1;if(!function(_0x4b67e3,_0x5c1eb2){if(!_0x4b67e3['hasComments']&&!_0x5c1eb2['hasComments'])return!0x0;if(_0x4b67e3['hasComments']&&_0x5c1eb2['hasComments'])return!0x1;if(_0x4b67e3['hasComments']&&_0x5c1eb2['createdAt']<_0x4b67e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c1eb2['hasComments']&&_0x4b67e3['createdAt']<_0x5c1eb2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f1970[0x0],_0x27267c[0x0]))return!0x1;const _0x298714=Ut(_0x1f1970[0x0]['attributes'],['groupId','trackingSessionId']),_0x39ba05=Ut(_0x27267c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x23cad6(_0x298714,_0x39ba05))return!0x1;if(_0x1f1970[0x0]['attributes']['groupId']==_0x27267c[0x0]['attributes']['groupId'])return!0x0;if(_0x1f1970[0x0]['attributes']['trackingSessionId']!==_0x27267c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1f1970['every'](_0x82c462=>_0x27267c['some'](_0x53f8d9=>_0x82c462['getFirstRange']()['isEqual'](_0x53f8d9['getFirstRange']())))&&_0x27267c['every'](_0x1f27f9=>_0x1f1970['some'](_0x199a40=>_0x1f27f9['getFirstRange']()['isEqual'](_0x199a40['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fc010){const _0x449de8=Array['from'](_0x2fc010),_0x1abbd7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a6875=_0x1abbd7['filter'](_0x2d506f=>!_0x2fc010['has'](_0x2d506f)),_0x110364=new Map(_0x449de8['map'](_0x1b184a=>[_0x1b184a,this['_suggestionFactory']['getSuggestionCallback'](_0x1b184a['type'],_0x1b184a['subType'],'join')])),_0x520480=new Map(_0x1abbd7['map'](_0x1b7b64=>[_0x1b7b64,_0x1b7b64['getRanges']()]));for(let _0x377160=0x0;_0x377160<_0x449de8['length'];_0x377160++){if(_0xaaa7bb(this,_0x449de8[_0x377160],_0x449de8,_0x377160+0x1))return!0x0;}for(let _0x58d600=0x0;_0x58d600<_0x449de8['length'];_0x58d600++){if(_0xaaa7bb(this,_0x449de8[_0x58d600],_0x5a6875,0x0))return!0x0;}return!0x1;function _0xaaa7bb(_0x55e467,_0xfb02fc,_0x365701,_0x406bbf){for(let _0x31a497=_0x406bbf;_0x31a497<_0x365701['length'];_0x31a497++){const _0x40a676=_0x365701[_0x31a497];if(_0x40a676['type']!==_0xfb02fc['type']||_0x40a676['author']['id']!==_0xfb02fc['author']['id']||_0x40a676['subType']!==_0xfb02fc['subType'])continue;if(!Wt(_0xfb02fc,_0x40a676))continue;if('attribute'==_0xfb02fc['type']&&_0xfb02fc['data']['oldValue']!=_0x40a676['data']['oldValue'])continue;if('attribute'==_0xfb02fc['type']&&_0x55e467['_isBlockAttribute'](_0xfb02fc['data']['key']))continue;if('formatBlock'==_0xfb02fc['type']){const _0x3b3bc8=_0x55e467['editor']['model'],_0x5e83b5=_0xfb02fc['getContainedElement']();if(_0x5e83b5&&(_0x3b3bc8['schema']['isObject'](_0x5e83b5)||_0x3b3bc8['schema']['isLimit'](_0x5e83b5)))continue;}const _0x29295f=_0x110364['get'](_0xfb02fc),_0x48433d=_0x520480['get'](_0xfb02fc),_0x2e478f=_0x520480['get'](_0x40a676),_0x3d3760=_0xfb02fc['commentThread']&&_0xfb02fc['commentThread']['length'],_0x3aabf8=_0x40a676['commentThread']&&_0x40a676['commentThread']['length'];if(!_0x3d3760&&_0x29295f(_0x2e478f,_0x48433d))return _0x55e467['_joinSuggestions'](_0x40a676,_0xfb02fc),_0x520480['delete'](_0xfb02fc),!0x0;if(!_0x3aabf8&&_0x29295f(_0x48433d,_0x2e478f))return _0x55e467['_joinSuggestions'](_0xfb02fc,_0x40a676),_0x520480['delete'](_0x40a676),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d26fc,_0x8c01e3){if(_0x5d26fc['isMultiRange']){for(const _0x5815ba of _0x8c01e3['getRanges']())_0x5d26fc['addRange'](_0x5815ba);}else{const _0x3a1d7d=_0x8c01e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d26fc,this['_model']['createRange'](_0x5d26fc['getFirstRange']()['start'],_0x3a1d7d));}_0x8c01e3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5a0453,_0x3ba922,_0xc3e110){const _0x2f1512=_0x5a0453['startsWith']('format')||_0x5a0453['startsWith']('attribute')?'FORMATTING':_0x5a0453['toUpperCase']();return o(this['editor']['locale'],_0x3ba922+'_'+_0x2f1512+'_SUGGESTION_ANNOUNCEMENT',_0xc3e110);}['_initAriaMarkerChangeAnnouncements'](){const _0x74457d=this['editor'];if(!_0x74457d['ui'])return;const {ariaLiveAnnouncer:_0x3a2bd0}=_0x74457d['ui'];_0xfb66d9(this['_model'],({left:_0x395195,entered:_0x49c023})=>{for(const _0x1e70fc of _0x395195){const {group:_0x2cf402,type:_0x5d0e20}=this['_splitMarkerName'](_0x1e70fc['name']);if('suggestion'===_0x2cf402){_0x3a2bd0['announce'](this['_getMarkerAnnouncementText'](_0x5d0e20,'LEAVE'));break;}}for(const _0x2d49c1 of _0x49c023){const {group:_0x10e95d,type:_0x2cd2ba}=this['_splitMarkerName'](_0x2d49c1['name']);if('suggestion'===_0x10e95d){_0x3a2bd0['announce'](this['_getMarkerAnnouncementText'](_0x2cd2ba,'ENTER',_0x2a60c2(_0x59a850)));break;}}});}['_processAttributeChanges'](_0x3d544f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x495e29=this['editor'],_0x37eb02=_0x495e29['model']['document']['differ']['getChanges']();if(0x0==_0x37eb02['length'])return!0x1;const _0x14bb14=[],_0x5d7674=_0x37eb02['filter'](_0x86fceb=>'attribute'==_0x86fceb['type']),_0x330f0a=_0x37eb02['filter'](_0x11a052=>'insert'==_0x11a052['type']&&'$text'!=_0x11a052['name']),_0x213f6b=_0x37eb02['filter'](_0x5ba0ac=>'remove'==_0x5ba0ac['type']&&'$text'!=_0x5ba0ac['name']);for(const _0x5a5148 of _0x5d7674)_0x14bb14['push']({'key':_0x5a5148['attributeKey'],'newValue':_0x5a5148['attributeNewValue'],'oldValue':_0x5a5148['attributeOldValue'],'range':Ht(_0x5a5148['range'],_0x495e29['model'])});for(const _0x209c01 of _0x330f0a){const _0x2d1e3c=_0x213f6b['find'](_0x542186=>_0x542186['position']['isEqual'](_0x209c01['position']));_0x2d1e3c&&_0x14bb14['push']({'key':m,'newValue':_0x209c01['name'],'oldValue':_0x2d1e3c['name'],'range':_0x495e29['model']['createRangeOn'](_0x209c01['position']['nodeAfter'])});}return 0x0!=_0x14bb14['length']&&this['_reduceExistingSuggestions'](_0x3d544f,_0x14bb14);}['_processAttributeSuggestions'](_0x5973e7){let _0x1254fa=!0x1;const _0x32c72e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43db44=>_0x43db44['data']['newRange']&&_0x43db44['name']['startsWith']('suggestion:attribute:'));for(const _0x2730ad of _0x32c72e){const {subType:_0x313803,id:_0x2bfebc}=this['_splitMarkerName'](_0x2730ad['name']),_0x31ac3f=_0x313803['split']('|')[0x0];for(const _0x233fa5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x233fa5['id']!=_0x2bfebc&&'attribute'==_0x233fa5['type']&&_0x233fa5['data']&&_0x233fa5['data']['key']==_0x31ac3f&&_0x233fa5['getFirstRange']()['isIntersecting'](_0x2730ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x233fa5,_0x2730ad['data']['newRange'],_0x5973e7),_0x1254fa=!0x0);}return _0x1254fa;}['recordAttributeChanges'](_0x517950){this['_recordAttributeSuggestions']=!0x0,_0x517950();}['_isRegisteredAttribute'](_0x13d94e){const _0x5cac63=this['_isBlockAttribute'](_0x13d94e),_0x4758b8=this['_inlineAttributeKeys']['has'](_0x13d94e);return _0x5cac63||_0x4758b8;}['_reduceExistingSuggestions'](_0x4b5228,_0x7a6b5f){if(0x0==_0x7a6b5f['length'])return!0x1;let _0x1344b2=!0x1;for(const _0x5c5914 of _0x7a6b5f){const _0x44a921=this['_findSuggestions'](_0x5c5914['range'],'attribute')['filter'](_0x479f53=>!_0x479f53['meta']['isNextTo'])['map'](_0x16a7aa=>_0x16a7aa['suggestion']),_0x56b2e7=_0x17437d({'newValue':_0x5c5914['newValue']});_0x44a921['filter'](_0xc7d7d4=>{const [_0x438917,_0x2cc353]=_0xc7d7d4['subType']['split']('|');return _0x438917==_0x5c5914['key']&&_0x2cc353!=_0x56b2e7;})['forEach'](_0x5b1033=>{this['_reduceSuggestionAttributeRange'](_0x5b1033,_0x5c5914['range'],_0x4b5228),_0x1344b2=!0x0;});}return _0x1344b2;}['_reduceSuggestionAttributeRange'](_0x1076e2,_0x764eaf,_0x2f7e67){const _0xa8d701=_0x1076e2['getFirstRange']()['getDifference'](_0x764eaf);0x0!==_0xa8d701['length']?0x1!==_0xa8d701['length']?this['_breakSuggestionMarker'](_0x1076e2,_0x764eaf['start'],_0x764eaf['end']):this['_setSuggestionRange'](_0x1076e2,_0xa8d701[0x0]):_0x2f7e67['removeMarker'](_0x1076e2['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a8d44){this['_editor']=_0x1a8d44,this['_model']=_0x1a8d44['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1606e5,_0x22936b,_0x25bca3,_0x43f9d9,_0x3b8b69,_0x1b0e85,_0x218403){return new T(this['_model'],{'type':_0x1606e5,'subType':_0x22936b,'id':_0x25bca3,'originalSuggestionId':_0x218403,'author':_0x43f9d9,'creator':_0x43f9d9,'attributes':_0x3b8b69,'onAttributesChange':_0x1b0e85,'onAccept':(..._0x66453)=>this['getSuggestionCallback'](_0x1606e5,_0x22936b,'accept')(..._0x66453),'onDiscard':(..._0x23eea9)=>this['getSuggestionCallback'](_0x1606e5,_0x22936b,'discard')(..._0x23eea9)});}['registerCustomCallback'](_0x51086c,_0x3cc3ed,_0x387ae3,_0x1a53ef){const _0xee4cb8=_0x51086c+':'+_0x3cc3ed+':'+_0x387ae3;this['_customCallbacks']['set'](_0xee4cb8,_0x1a53ef);}['getSuggestionCallback'](_0x3b3427,_0x43c445,_0xb41d6d){const _0x16ff26=_0x3b3427+':'+_0x43c445+':'+_0xb41d6d;return this['_customCallbacks']['get'](_0x16ff26)||this['_defaultCallbacks']['get'](_0x3b3427+':'+_0xb41d6d);}['_registerDefaultCallbacks'](){const _0x25aeb7=()=>!0x1,_0x490875=_0x440a3b=>{_0x440a3b['sort']((_0x360268,_0x5ef1d3)=>_0x360268['start']['isBefore'](_0x5ef1d3['start'])?0x1:-0x1),this['_model']['change'](_0x10543b=>{for(const _0x394732 of _0x440a3b){let _0x157d91;_0x157d91=_0x394732['end']['isAtEnd']&&_0x394732['end']['parent']==_0x394732['start']['nodeAfter']?_0x10543b['createSelection'](_0x394732['start']['nodeAfter'],'on'):_0x10543b['createSelection'](_0x394732),this['_model']['deleteContent'](_0x157d91,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1327ec=(_0x45b247,_0x2a34ad)=>{_0x2a34ad&&this['_model']['change'](_0x544f31=>{const {commandName:_0x422cb7,commandParams:_0x3377ab=[]}=_0x2a34ad,_0x7ffe5=_0x45b247['map'](_0x436776=>(Pt(_0x436776)&&(_0x436776=this['_model']['createRange'](_0x436776['end'])),_0x436776))['filter'](_0x271892=>'$graveyard'!==_0x271892['root']['rootName']);if(_0x7ffe5['length']<0x1)return;const _0x411f39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f6e16=>_0x20b456['fromRange'](_0x3f6e16));_0x544f31['setSelection'](_0x7ffe5);for(const _0x1cf6db of this['_editor']['commands']['commands']())_0x1cf6db['refresh']();_0x3377ab['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x422cb7,..._0x3377ab);const _0x28e8be=_0x411f39['filter'](_0x1a7ed4=>'$graveyard'!=_0x1a7ed4['root']['rootName']);_0x28e8be['length']>0x0&&_0x544f31['setSelection'](_0x28e8be);for(const _0x5b8f11 of _0x411f39)_0x5b8f11['detach']();});},_0x40baa4=(_0x8d7dc8,_0x43cf1f)=>0x1==_0x8d7dc8['length']&&0x1==_0x43cf1f['length']&&_0x8d7dc8[0x0]['end']['isEqual'](_0x43cf1f[0x0]['start']),_0x1a091b=(_0x15d81b,_0x68431a,_0x3ef8e9,_0x41a5b9)=>zt(_0x15d81b,_0x68431a,_0x3ef8e9,_0x41a5b9)?[_0x15d81b,_0x68431a]:zt(_0x68431a,_0x15d81b,_0x41a5b9,_0x3ef8e9)?[_0x68431a,_0x15d81b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x25aeb7),this['_defaultCallbacks']['set']('insertion:discard',_0x490875),this['_defaultCallbacks']['set']('insertion:join',_0x40baa4),this['_defaultCallbacks']['set']('insertion:chain',_0x1a091b),this['_defaultCallbacks']['set']('deletion:accept',_0x490875),this['_defaultCallbacks']['set']('deletion:discard',_0x25aeb7),this['_defaultCallbacks']['set']('deletion:join',_0x40baa4),this['_defaultCallbacks']['set']('deletion:chain',_0x1a091b),this['_defaultCallbacks']['set']('formatInline:accept',_0x1327ec),this['_defaultCallbacks']['set']('formatInline:discard',_0x25aeb7),this['_defaultCallbacks']['set']('formatInline:join',_0x40baa4),this['_defaultCallbacks']['set']('formatInline:chain',_0x25aeb7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1327ec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x25aeb7),this['_defaultCallbacks']['set']('formatBlock:join',_0x40baa4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x25aeb7),this['_defaultCallbacks']['set']('attribute:accept',_0x25aeb7),this['_defaultCallbacks']['set']('attribute:discard',(_0x12d61e,_0x540697)=>{if(!_0x540697)return;const _0x5ec0e5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x18491b=>{if(_0x540697['key']==m)for(const _0x3114c1 of _0x12d61e){const _0x51b064=_0x3114c1['start']['nodeAfter'],_0x3ef773=_0x540697['oldValue'];_0x18491b['rename'](_0x51b064,_0x3ef773);}else{if(_0x5ec0e5['_isBlockAttribute'](_0x540697['key'])){for(const _0x3f4a35 of _0x12d61e)void 0x0!==_0x540697['oldValue']?_0x18491b['setAttribute'](_0x540697['key'],_0x540697['oldValue'],_0x3f4a35['start']['nodeAfter']):_0x18491b['removeAttribute'](_0x540697['key'],_0x3f4a35['start']['nodeAfter']);}else{for(const _0x48f413 of _0x12d61e)_0x540697['oldValue']?_0x18491b['setAttribute'](_0x540697['key'],_0x540697['oldValue'],_0x48f413):_0x18491b['removeAttribute'](_0x540697['key'],_0x48f413);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40baa4);}}function Ft(_0x30ff4b,_0xc89c6d,_0x119a6a){for(const _0x28fe19 of _0xc89c6d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28fe19['root']==_0x28fe19)return!0x1;if(!_0x119a6a['containsItem'](_0x28fe19))return!0x1;if(_0x30ff4b['isObject'](_0x28fe19)||_0x30ff4b['isLimit'](_0x28fe19))return!0x0;}return!0x1;}function Pt(_0x5d8ab9){return _0x5d8ab9['end']['parent']==_0x5d8ab9['start']['nodeAfter']&&_0x5d8ab9['end']['isAtStart'];}function Gt(_0x79a8e,_0x118fe4,_0x52308b,_0x3a5b92){const _0x44a107=_0x324a17=>!_0x324a17['item']['is']('$textProxy')&&!_0x3a5b92['isObject'](_0x324a17['item']),_0x306faf=_0x79a8e['start']['getLastMatchingPosition'](_0x44a107),_0xbfc081=_0x79a8e['end']['getLastMatchingPosition'](_0x44a107,{'direction':'backward'});return(!_0x79a8e['start']['isEqual'](_0x306faf)||!_0x79a8e['end']['isEqual'](_0xbfc081))&&(_0x306faf['isBefore'](_0xbfc081)?_0x52308b['updateMarker'](_0x118fe4,{'range':_0x52308b['createRange'](_0x306faf,_0xbfc081)}):_0x52308b['removeMarker'](_0x118fe4),!0x0);}function Lt(_0x41b5c9){return _0x17437d(_0x41b5c9);}function Jt(_0xb6cfa){const _0xeea4d9=_0xb6cfa['start']['nodeAfter'];return _0xeea4d9&&_0xeea4d9['is']('element');}function Kt(_0x2c5cab){return!Pt(_0x2c5cab)&&!function(_0x5187eb){return _0x5187eb['start']['parent']==_0x5187eb['end']['nodeBefore']&&_0x5187eb['start']['isAtEnd'];}(_0x2c5cab);}function Ht(_0x17ac8c,_0x98addb){return null==_0x17ac8c['end']['nodeBefore']&&_0x17ac8c['end']['parent']==_0x17ac8c['start']['nodeAfter']?qt(_0x17ac8c['start']['nodeAfter'],_0x98addb):_0x17ac8c;}function qt(_0x182f63,_0x34d9c5){const _0xe01cde=_0x34d9c5['schema']['isObject'](_0x182f63)||_0x34d9c5['schema']['isSelectable'](_0x182f63);return _0x34d9c5['createRange'](_0x34d9c5['createPositionAt'](_0x182f63,'before'),_0xe01cde?_0x34d9c5['createPositionAfter'](_0x182f63):_0x34d9c5['createPositionAt'](_0x182f63,'end'));}function zt(_0x42a1bc,_0x549b22,_0xa714c4,_0x4ebf9d){return!!Wt(_0x42a1bc,_0x549b22)&&_0xa714c4['end']['isEqual'](_0x4ebf9d['start']);}function Wt(_0x36b930,_0x5aa9ef){if(!_0x36b930['_isDataLoaded']||!_0x5aa9ef['_isDataLoaded'])return!0x1;const _0xd7d62b=new Set(Object['keys'](_0x36b930['attributes'])),_0x13953c=new Set(Object['keys'](_0x5aa9ef['attributes']));if(_0xd7d62b['delete']('groupId'),_0x13953c['delete']('groupId'),0x0==_0xd7d62b['size']&&0x0==_0x13953c['size'])return!0x0;if(_0xd7d62b['size']!=_0x13953c['size'])return!0x1;const _0x1232c7={..._0x36b930['attributes']},_0x4c92ca={..._0x5aa9ef['attributes']};return delete _0x1232c7['groupId'],delete _0x4c92ca['groupId'],JSON['stringify'](_0x1232c7)==JSON['stringify'](_0x4c92ca);}function Qt(_0x5a86a7,_0x200bb7){const _0x38ff34=Xt(_0x5a86a7['attributes']),_0x7bfc9d=Xt(_0x200bb7);if(!_0x5a86a7['_isDataLoaded'])return!0x1;for(const _0x2ca6f8 of Object['keys'](_0x7bfc9d))if(!_0x23cad6(_0x38ff34[_0x2ca6f8],_0x7bfc9d[_0x2ca6f8]))return!0x1;return!0x0;}function Xt(_0x6b77ff){const _0xcecd20=Object['assign']({},_0x6b77ff);return delete _0xcecd20['skipNestingCheck'],delete _0xcecd20['tablePasteChainId'],_0xcecd20;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x389d9b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12a5a0,_0x127a7d,_0x2864c5,_0x2bd4da){super(),this['model']=_0x127a7d,this['view']=_0x2864c5,this['commentThreadController']=_0x2bd4da,this['_editor']=_0x12a5a0,this['_acceptCommand']=_0x12a5a0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12a5a0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b08f8,_0x3badb3)=>_0x2b08f8||_0x3badb3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2da56a=>_0x2da56a&&this['_editor']['model']['canEditAt'](_0x127a7d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x520b91=>_0x520b91&&this['_editor']['model']['canEditAt'](_0x127a7d['getRanges']())),this['_pendingAction']=null,_0x2864c5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2864c5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2864c5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2864c5,'change:isDirty',()=>{_0x2864c5['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 _0x55e4ef=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55e4ef);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x390189{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5877ef,_0x2338ec,_0x51c87d,_0xbf7293){super(_0x5877ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2805ed(_0x5877ef,o(_0x5877ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2338ec['authoredAt']),this['bind']('authoredAt')['to'](_0x2338ec),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',_0x2338ec,'authoredAt',this,'descriptionParts',(_0x101771,_0x39ed5a,_0x557dc1)=>{const _0x222cd0=_0x557dc1['map'](_0x4d8989=>ls(_0x4d8989['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x101771-0x1,_0x2338ec['author']['name'],_0x39ed5a?_0xbf7293['formatDateTime'](_0x39ed5a):'',new DOMParser()['parseFromString'](_0x222cd0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x164c10(),this['focusTracker']=new _0x336cee(),this['keystrokes']=new _0x1db80e(),this['focusCycler']=new _0x435308({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54890b=>_0x54890b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2338ec,this['_localUser']=_0x51c87d,this['_config']=_0xbf7293,_0xbf7293['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d2696(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x82802}=this['_config'];this['commentsListView']=new _0x82802(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',_0x218a6d=>_0x218a6d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xbefecc,_0x124b78)=>_0xbefecc||!!_0x124b78);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x207300}=this['_config'],_0x18a9a2=new _0x207300(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4765d5=_0x18a9a2['commentInputView'];return _0x18a9a2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4765d5,'value',(_0x13891c,_0x7223da,_0x596cff)=>!!_0x596cff||_0x13891c&&!_0x7223da),_0x4765d5['on']('submit',(_0x2cc791,_0x374007)=>{this['fire']('addComment',_0x374007),_0x4765d5['editor']['setData']('');}),_0x4765d5['on']('cancel',()=>this['focus']()),_0x4765d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x18a9a2;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x29eb26,_0x504462,_0x2bbb34,_0x27f517){super(_0x29eb26,_0x504462,_0x2bbb34,_0x27f517),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10042b=>_0x10042b&&_0x10042b[0x0]?_0x10042b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x15e69a,_0x37df0c)=>{let _0x249431='';for(const _0x23afc0 of _0x15e69a)_0x249431+='<p>'+ls(_0x23afc0['content'],_0x23afc0['color'])+'</p>';return _0x37df0c?_0x249431:_0x33cbe5(_0x249431,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x27f517['SuggestionView'](_0x29eb26,_0x504462,{'formatDateTime':_0x27f517['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 _0x2f00a3=this['bindTemplate'],_0x1cf872=[this['suggestionView']];return this['commentsListView']&&_0x1cf872['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1cf872['push'](this['commentThreadInputView']),_0x1cf872['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2f00a3['if']('isActive','ck-suggestion-wrapper--active'),_0x2f00a3['to']('type',_0x349339=>'ck-suggestion-'+_0x349339),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':_0x2f00a3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1cf872};}['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 _0x390189{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27e1fe,_0x34399c,_0x120c15){super(_0x27e1fe),this['_model']=_0x34399c,this['_config']=_0x120c15,this['set']('description',''),this['bind']('authoredAt')['to'](_0x34399c),this['acceptButton']=this['_createButton'](o(_0x27e1fe,'Accept\x20suggestion'),_0x4d3828,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27e1fe,'Discard\x20suggestion'),_0x220b2c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x924866(_0x27e1fe,_0x34399c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x164c10([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x336cee(),this['keystrokes']=new _0x1db80e(),this['focusCycler']=new _0x435308({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4b6557=>_0x4b6557['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aa4b5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aa4b5['innerHTML']=this['description'],this['on']('change:description',(_0x1244bd,_0x1c1bb8,_0x21a6a1)=>{_0x1aa4b5['innerHTML']=_0x21a6a1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x110142=this['bindTemplate'],_0x1e8f34=[{'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':_0x110142['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x110142['to']('authoredAt',_0x22de38=>this['_config']['formatDateTime'](_0x22de38))}]}]},{'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']&&_0x1e8f34['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':_0x1e8f34}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x34604c,_0x2b7fcb,_0x28ed24,_0x594900,_0x55bce2){const _0x5f5085=new _0x5dfb91(this['locale']);return _0x5f5085['set']({'label':_0x34604c,'icon':_0x2b7fcb,'tooltip':!0x0,'tooltipPosition':_0x55bce2}),_0x5f5085['extendTemplate']({'attributes':{'class':_0x28ed24}}),_0x5f5085['on']('execute',()=>{this['fire'](_0x594900,this['_model']['id']);}),_0x5f5085;}['_setupKeyboardNavigation'](){const _0xf438ad=this['element'];this['keystrokes']['listenTo'](_0xf438ad);for(const _0x3e3d3b of this['focusables'])this['focusTracker']['add'](_0x3e3d3b['element']),this['keystrokes']['listenTo'](_0x3e3d3b['element']);this['keystrokes']['set']('enter',(_0x44217b,_0x228693)=>{_0xf438ad===_0x44217b['target']&&(this['focusCycler']['focusFirst'](),_0x228693());}),this['keystrokes']['set']('esc',(_0x2eda01,_0x68026f)=>{_0xf438ad!==_0x2eda01['target']&&(this['focus'](),_0x68026f());});}}class u extends _0xccd55c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1c60de,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25988a){super(_0x25988a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cbf44=this['editor']['config'];_0x5cbf44['define']('trackChanges.SuggestionThreadView',fe),_0x5cbf44['define']('trackChanges.SuggestionView',we),_0x5cbf44['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cbf44['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x401545,_0x26bda2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x510e46,_0x40751d]of this['_handleControllerBuffer']){const _0x14d822=this['_suggestionToController']['has'](_0x510e46);_0x14d822||_0x40751d?_0x14d822&&_0x40751d&&this['_destroyController'](_0x510e46):this['_initializeController'](_0x510e46);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x401545,_0x26bda2);}['init'](){const _0x3bc827=this['editor'],_0x5e418d=_0x3bc827['plugins']['get']('TrackChangesEditing'),_0x378569=_0x3bc827['plugins']['get']('Annotations'),_0x18c763=_0x3bc827['plugins']['get']('EditorAnnotations'),_0x30256b=_0x3bc827['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x18c763['addSourceCollector'](()=>{const _0x1bcf94=[];for(const [_0x22d648,_0x40bd3c]of Array['from'](this['_suggestionToController'])){const _0x271f24=_0x22d648['getAllAdjacentSuggestions'](),_0x317d10=[];for(const _0x2d8a7f of _0x271f24){if(!_0x2d8a7f['isInContent'])continue;if(_0x2d8a7f['isMultiRange']){_0x317d10['push'](..._0x2d8a7f['getRanges']());continue;}const _0x3c2ecd=_0x2d8a7f['getFirstRange']();if(_0x317d10['length']>0x0){const _0x6e824d=_0x317d10[0x0]['getJoined'](_0x3c2ecd);if(_0x6e824d){_0x317d10[0x0]=_0x6e824d;continue;}}_0x317d10['push'](_0x3c2ecd);}_0x1bcf94['push']([_0x40bd3c['view'],_0x317d10]);}return _0x1bcf94;}),this['listenTo'](_0x5e418d,'suggestionLoaded',(_0x50b806,_0x4b0df4)=>{this['listenTo'](_0x4b0df4,'change:previous',(_0x23c051,_0x54d3a5,_0x11022d,_0x3c61a4)=>{_0x4b0df4['isInContent']&&(null==_0x11022d?(this['_updateController'](_0x3c61a4['head']),this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x1)):(this['_updateController'](_0x11022d['head']),null==_0x3c61a4&&this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x0)));}),null!==_0x4b0df4['previous']?this['_updateController'](_0x4b0df4['head']):this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x1);}),this['listenTo'](_0x5e418d,'suggestionUnloaded',(_0x3c867d,_0x528769,_0x1837ac)=>{this['stopListening'](_0x528769,'change:previous'),this['_handleControllerBuffer']['delete'](_0x528769),this['_suggestionToController']['has'](_0x528769)&&this['_destroyController'](_0x528769),_0x1837ac&&this['_updateController'](_0x1837ac['head']);}),this['listenTo'](_0x5e418d,'suggestionChanged',(_0x3dba96,_0x19390d)=>{this['_updateController'](_0x19390d);}),this['listenTo'](_0x378569,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x30256b,'addComment',(_0x5cd89b,{threadId:_0x38910e,isFromAdapter:_0xb9cdef})=>{if(_0xb9cdef||!_0x5e418d['hasSuggestion'](_0x38910e))return;const _0x5be12e=_0x5e418d['getSuggestion'](_0x38910e);this['_suggestionToController']['get'](_0x5be12e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8bf601=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10b2ed;for(const _0x318ae8 in _0x8bf601){const _0x35a87d=_0x318ae8,_0x5cf0cc=_0x8bf601[_0x35a87d];if('trackChangesLicenseKeyValid'==_0x5cf0cc||'trackChangesLicenseKeyInvalid'==_0x5cf0cc||'trackChangesLicenseKeyExpired'==_0x5cf0cc||'trackChangesLicenseKeyDomainLimit'==_0x5cf0cc||'trackChangesLicenseKeyNotAllowed'==_0x5cf0cc||'trackChangesLicenseKeyEvaluationLimit'==_0x5cf0cc||'trackChangesLicenseKeyTrialLimit'==_0x5cf0cc||'trackChangesLicenseKeyUsageLimit'==_0x5cf0cc){delete _0x8bf601[_0x35a87d],_0x10b2ed=_0x5cf0cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10b2ed&&_0x8bf601['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10b2ed&&_0x8bf601['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10b2ed&&_0x8bf601['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1046b5){const _0xaadbac=this['_suggestionToController']['get'](_0x1046b5);if(!_0xaadbac)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xaadbac['view'])||null;}['getSuggestionForAnnotation'](_0x4b7dd7){const _0x27942b=this['_viewToController']['get'](_0x4b7dd7['innerView']);return _0x27942b?_0x27942b['model']:null;}['_refreshActiveMarkers'](){const _0x2cc3f4=this['editor']['plugins']['get']('Annotations'),_0x2e5041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fad77=Array['from'](_0x2cc3f4['activeAnnotations'],_0x587ce7=>_0x587ce7['innerView'])['filter'](_0x534057=>this['_viewToController']['has'](_0x534057)),_0x1129e1=[];for(const _0x231f84 of _0x2fad77){const _0x465326=this['_viewToController']['get'](_0x231f84)['model']['getAllAdjacentSuggestions']();_0x1129e1['push'](..._0x465326['reduce']((_0x5868f2,_0x12b85d)=>[..._0x5868f2,..._0x12b85d['getMarkerNames']()],[]));}_0x2e5041['activeMarkers']=_0x1129e1;}['_addUIComponentsToFactory'](){const _0x54e97f=this['editor'],_0x4ff1d2=_0x54e97f['locale'],_0x1a6e73=o(_0x4ff1d2,'Track\x20changes'),_0x221a5e=new _0x52b0e2([{'type':'switchbutton','model':new _0xe74fc0({'withText':!0x0,'isToggleable':!0x0,'label':_0x1a6e73,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54e97f['plugins']['has']('TrackChangesPreview')&&_0x221a5e['addMany']([{'type':'separator'},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2f6976 of _0x221a5e)if(ke(_0x2f6976)){const _0x19072e=_0x54e97f['commands']['get'](_0x2f6976['model']['commandName']);_0x2f6976['model']['bind']('isOn','isEnabled')['to'](_0x19072e,'value','isEnabled');}_0x54e97f['ui']['componentFactory']['add']('trackChanges',_0x1d815a=>this['_createToolbarButton'](_0x1d815a,_0x221a5e,_0x1a6e73)),_0x54e97f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xcafe4f=>this['_createMenuBarMenu'](_0xcafe4f,_0x221a5e,_0x1a6e73));}['_createToolbarButton'](_0x3afbae,_0x204fa4,_0x35cd0c){const _0x256994=_0x3ec213(_0x3afbae,_0x23a6b0),_0x24a55a=this['editor']['commands']['get']('trackChanges');_0x256994['buttonView']['set']({'tooltip':_0x35cd0c,'label':_0x35cd0c,'icon':_0x2a8276}),_0x256994['buttonView']['bind']('isOn')['to'](_0x24a55a,'value'),_0x256994['buttonView']['on']('execute',()=>{_0x24a55a['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ac0a4(_0x256994,_0x204fa4,{'role':'menu'});const _0x2debc5=[];for(const _0x5c1c13 of _0x204fa4)ke(_0x5c1c13)&&_0x2debc5['push'](this['editor']['commands']['get'](_0x5c1c13['model']['commandName']));const _0x19f852=_0x256994['buttonView'];return _0x19f852['actionView']['unbind']('isEnabled'),_0x19f852['arrowView']['unbind']('isEnabled'),_0x19f852['actionView']['bind']('isEnabled')['to'](_0x24a55a,'isEnabled'),_0x19f852['arrowView']['bind']('isEnabled')['toMany'](_0x2debc5,'isEnabled',(..._0x2860c9)=>_0x2860c9['some'](_0x3c2cfb=>_0x3c2cfb)),_0x256994['on']('execute',_0x2e270a=>{this['editor']['execute'](_0x2e270a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x256994;}['_createMenuBarMenu'](_0x5c2998,_0x3fee90,_0x42c1be){const _0x1c51be=new _0x52984c(_0x5c2998),_0x35f8ad=this['editor']['commands']['get']('trackChanges');_0x1c51be['buttonView']['set']({'label':_0x42c1be,'icon':_0x2a8276});const _0x3492ed=new _0x42add5(_0x5c2998);for(const _0x58feea of _0x3fee90){if('separator'==_0x58feea['type']){_0x3492ed['items']['add'](new _0x6bdc90(_0x5c2998));continue;}const _0x28875e=new _0x3d5b90(_0x5c2998,_0x1c51be),_0x5d479d=new _0x51bfc9(_0x5c2998),_0x3d871e=_0x58feea['model'];_0x5d479d['bind'](...Object['keys'](_0x3d871e))['to'](_0x3d871e),_0x5d479d['delegate']('execute')['to'](_0x1c51be),_0x5d479d['on']('execute',()=>{this['editor']['execute'](_0x3d871e['commandName']),this['editor']['editing']['view']['focus']();}),_0x28875e['children']['add'](_0x5d479d),_0x3492ed['items']['add'](_0x28875e);}return _0x1c51be['bind']('isEnabled')['to'](_0x35f8ad,'isEnabled'),_0x1c51be['panelView']['children']['add'](_0x3492ed),_0x1c51be;}['_initializeController'](_0x35ad3d){const _0x2f0fc4=this['editor'],_0x24544c=_0x2f0fc4['config'],_0x3a7ebc=_0x2f0fc4['plugins']['get']('Annotations'),_0x190bce=_0x2f0fc4['plugins']['get']('CommentsRepository'),_0x50128f=_0x2f0fc4['plugins']['get']('EditorAnnotations'),_0xc02bc4=_0x2f0fc4['plugins']['get'](_0x1c60de)['me'],_0xc02bb2=_0x24544c['get']('trackChanges')['SuggestionThreadView'],_0x20860a=_0x24544c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24d4c2,CommentThreadInputView:_0x27355c}=_0x2f0fc4['plugins']['get']('CommentsUI');let _0x4c00db,_0x51b1f1,_0x18f6df;this['_annotationViews']['has'](_0x35ad3d['id'])?(_0x51b1f1=this['_annotationViews']['get'](_0x35ad3d['id']),_0x4c00db=_0x51b1f1['mainView']):(_0x4c00db=new _0xc02bb2(_0x2f0fc4['locale'],_0x35ad3d,_0xc02bc4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24544c['get']('comments.editorConfig'),'licenseKey':_0x24544c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24544c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24544c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24544c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x142fa3(_0x24544c['get']('locale'),_0x2f0fc4['locale']),'CommentView':_0x24544c['get']('comments')['CommentView'],'CommentsListView':_0x24d4c2,'CommentThreadInputView':_0x27355c,'SuggestionView':_0x20860a}),_0x4c00db['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f0fc4['editing']['view']['focus']();}),_0x4c00db['suggestionView']['discardButton']['on']('execute',()=>{_0x2f0fc4['editing']['view']['focus']();}),_0x51b1f1=_0x3a7ebc['createAnnotationView'](this['editor']['locale'],_0x4c00db),_0x51b1f1['bind']('isDirty')['to'](_0x4c00db,'isDirty'),_0x51b1f1['bind']('length')['to'](_0x4c00db),_0x51b1f1['bind']('type')['to'](_0x4c00db,'type',_0x47d14e=>'suggestion-'+_0x47d14e),_0x4c00db['on']('escape',()=>{_0x18f6df['fire']('escape');}),this['_annotationViews']['set'](_0x35ad3d['id'],_0x51b1f1));const _0x2b3af0=_0x190bce['createCommentThreadController'](_0x35ad3d['commentThread'],_0x4c00db),_0x3f5899=new pe(_0x2f0fc4,_0x35ad3d,_0x4c00db,_0x2b3af0),_0x1a3963=_0x35ad3d['getAllAdjacentSuggestions']()['filter'](_0xdd64a3=>_0xdd64a3['isInContent']);_0x4c00db['descriptionParts']=_0x2f0fc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a3963),this['_suggestionToController']['set'](_0x35ad3d,_0x3f5899),this['_viewToController']['set'](_0x4c00db,_0x3f5899),_0x18f6df=_0x3a7ebc['createAnnotation']({'view':_0x51b1f1,'target':()=>{const _0x21cbf5=[],_0x1abfa5=_0x35ad3d['getAllAdjacentSuggestions']()['filter'](_0x2896bc=>_0x2896bc['isInContent']);for(const _0xfd0eff of _0x1abfa5)_0x21cbf5['push'](..._0xfd0eff['getMarkers']());return _0x17848e(_0x2f0fc4['editing'],_0x21cbf5);},'type':()=>'suggestion-'+_0x3f5899['view']['type']}),_0x190bce['_bindAnnotationToEditors'](_0x4c00db,_0x18f6df),_0x3a7ebc['add'](_0x18f6df),_0x50128f['registerAnnotation'](_0x18f6df);}['_destroyController'](_0x263f67){const _0x433e4d=this['editor']['plugins']['get']('CommentsRepository'),_0x1a7e73=this['editor']['plugins']['get']('Annotations'),_0xa19b5e=this['_suggestionToController']['get'](_0x263f67),_0x1724c0=_0xa19b5e['view'],_0x1cc646=_0x1a7e73['getByInnerView'](_0x1724c0);_0x433e4d['_unbindEditors'](_0x1724c0),_0x1cc646&&_0x1a7e73['remove'](_0x1cc646),this['_suggestionToController']['delete'](_0x263f67),this['_viewToController']['delete'](_0x1724c0),_0xa19b5e['destroy']();}['_updateController'](_0x1a5fcc){if(!_0x1a5fcc['isInContent']||!this['_suggestionToController']['has'](_0x1a5fcc))return;const _0x35ecaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106659=this['_suggestionToController']['get'](_0x1a5fcc),_0x2340f8=_0x1a5fcc['getAllAdjacentSuggestions']();_0x106659['view']['descriptionParts']=_0x35ecaa['descriptionFactory']['getDescriptions'](_0x2340f8);}['destroy'](){for(const _0xa50d5c of this['_suggestionToController']['keys']())this['_destroyController'](_0xa50d5c);for(const _0x490185 of this['_annotationViews']['values']())_0x490185['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5533a2){return'model'in _0x5533a2;}class Fe extends _0xccd55c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x261a57){this['editor']['plugins']['get'](d)['adapter']=_0x261a57;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1c7324){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1c7324);}['getSuggestions']({skipNotAttached:_0x5bde25=!0x1,toJSON:_0x59710b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5bde25,'toJSON':_0x59710b});}['getSuggestion'](_0x56af69){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x56af69);}}const p=['Pagination'];class re extends _0xccd55c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x498d2d=this['editor'];if(_0x498d2d['config']['define']('trackChangesData.editorCreator',_0x372a7b=>{const _0x51e393=_0x498d2d['model']['document']['getRootNames']()['reduce']((_0x1ad061,_0x2c7d1d)=>(_0x1ad061[_0x2c7d1d]='',_0x1ad061),{});return _0x498d2d['constructor']['create'](_0x51e393,_0x372a7b);}),'function'!=typeof _0x498d2d['config']['get']('trackChangesData')['editorCreator'])throw new _0x59d332('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x387c69){return P(this['editor'],!0x0,_0x387c69);}['getDataWithDiscardedSuggestions'](_0x54e8e6){return P(this['editor'],!0x1,_0x54e8e6);}}class Ge extends _0xccd55c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c447a){function _0x469f64(_0x36689d){return _0x36689d['map'](_0x68a9e7=>String['fromCharCode'](_0x68a9e7))['join']('');}super(_0x5c447a),this['result']='end',_0x5c447a[_0x469f64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x469f64([0x76,0x69,0x65,0x77])][_0x469f64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x469f64([0x61,0x75,0x74,0x6f]),_0x5c447a[_0x469f64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x469f64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x469f64([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x469f64([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x469f64([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 He(_0x1ebc51){return void 0x0!==_0x1ebc51['getRootsAttributes'];}async function P(_0x1a3ca5,_0xd86b14,_0x2e38c8){const _0x2ef92f=_0x423a1d(_0x1a3ca5,p);_0x2ef92f['plugins']['push'](d,Ge),_0x2ef92f['rootsAttributes']=He(_0x1a3ca5)?_0x1a3ca5['getRootsAttributes']():void 0x0;const _0x2d9eac=document['createDocumentFragment'](),_0x45261d=_0x1a3ca5['config']['get']('trackChangesData')['editorCreator'],_0x1c0eb7=await _0x45261d(_0x2ef92f,()=>function(_0x4a83b3){const _0x26226d=document['createElement']('div');return _0x4a83b3['appendChild'](_0x26226d),_0x26226d;}(_0x2d9eac));!function(_0x2ec068,_0x794988){const _0x2695b4=_0x2ec068['model']['document']['getRootNames']()['reduce']((_0x164f01,_0x252a0c)=>(_0x164f01[_0x252a0c]=_0x2ec068['data']['get']({'rootName':_0x252a0c}),_0x164f01),{}),_0x4d698f=_0x2ec068['plugins']['get']('Users')['users']['map'](_0xb25a41=>({'id':_0xb25a41['id'],'name':_0xb25a41['name']})),_0x44d95d=_0x2ec068['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f38be=_0x2ec068['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2214a7=_0x794988['plugins']['get']('Users'),_0x830c81=_0x794988['plugins']['get']('TrackChangesEditing'),_0x52fac6=_0x794988['plugins']['get']('CommentsRepository');for(const _0x327a7a of _0x52fac6['getCommentThreads']())_0x327a7a['remove']();for(const _0x5ee1d7 of _0x4d698f)_0x2214a7['getUser'](_0x5ee1d7['id'])||_0x2214a7['addUser'](_0x5ee1d7);_0x2214a7['me']||_0x2214a7['useAnonymousUser']();for(const _0x4cc1f7 of _0x1f38be)_0x52fac6['addCommentThread'](_0x4cc1f7);for(const _0x443230 of _0x44d95d)_0x830c81['addSuggestionData'](_0x443230);_0x794988['data']['set'](_0x2695b4);}(_0x1a3ca5,_0x1c0eb7),_0x1c0eb7['execute'](_0xd86b14?'acceptAllSuggestions':'discardAllSuggestions');const _0x5adcb9=He(_0x1c0eb7)?_0x1c0eb7['getFullData'](_0x2e38c8):_0x1c0eb7['data']['get'](_0x2e38c8);return await _0x1c0eb7['destroy'](),_0x5adcb9;}class Me extends _0x390189{['options'];constructor(_0x111590,_0x3afff8){super(_0x111590),this['options']=_0x3afff8,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'](_0x332f0d,_0xff6f5a){if(!this['element'])return;const _0x227b19=[];for(const [_0x217d45,_0x39e40c]of _0x332f0d){const _0x4bab1d=document['createElement']('div');_0x4bab1d['setAttribute']('data-ck-root-name',_0x217d45),_0x4bab1d['className']=_0x39e40c['classes']+'\x20ck-track-changes-preview__root-container',_0x4bab1d['innerHTML']=_0x39e40c['content'],_0x227b19['push'](_0x4bab1d);}_0xff6f5a(this['element'],_0x227b19),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ae931{constructor(_0x30ffea){super(_0x30ffea),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x58a9b2=this['editor'],_0x31f06e=_0x58a9b2['locale'],_0x82eb5a=_0x58a9b2['plugins']['get']('Dialog');let _0x169bc4;const _0xd7925a=function(_0x1f3418){const _0x5e4a21={};if('editables'in _0x1f3418['ui']['view']){for(const [_0x119f74,_0x4d5c0e]of Object['entries'](_0x1f3418['ui']['view']['editables']))_0x5e4a21[_0x119f74]=_0x4d5c0e['element'];}else _0x5e4a21[_0x1f3418['model']['document']['getRootNames']()[0x0]]=_0x1f3418['ui']['view']['editable']['element'];return _0x5e4a21;}(_0x58a9b2),_0x2f242f=function(_0x35cf19){let _0x4e5ab3=0x0;for(const _0x48164c of Object['values'](_0x35cf19))_0x4e5ab3=Math['max'](_0x4e5ab3,_0x48164c['getBoundingClientRect']()['width']);let _0xbc59f=0x0;for(const _0x1870e1 of Object['values'](_0x35cf19))_0xbc59f+=_0x1870e1['getBoundingClientRect']()['height'];const _0x520f7f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2343d8=Math['min'](_0xbc59f,_0x520f7f);return{'width':_0x4e5ab3,'height':_0x2343d8};}(_0xd7925a);_0x82eb5a['show']({'id':'finalContentPreview','title':o(_0x31f06e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x31f06e,{'dialogRects':_0x2f242f}),'onHide':()=>{_0x169bc4['detachFromDom']();},'onShow':()=>{_0x58a9b2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x53e52a=>{const _0x108c5b=this['_standarizeRootsData'](_0x53e52a,_0x58a9b2,_0xd7925a);_0x82eb5a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x108c5b,_0x58a9b2['config']['get']('trackChanges.preview.renderFunction'));}),_0x169bc4=new _0x49dc14(_0x31f06e,[_0x82eb5a['view']]),_0x169bc4['attachToDom'](),_0x169bc4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x58a9b2['once']('destroy',()=>{_0x169bc4['detachFromDom']();});const _0x1b1d26=_0x82eb5a['view']['headerView']['class'];_0x82eb5a['view']['headerView']['class']=_0x1b1d26?_0x1b1d26+'\x20ck-reset_all':'ck-reset_all',_0x82eb5a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x82eb5a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3a1336=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x389ed9=_0x3a1336['previewMode'],_0x36c6bd={};if('$labels'===_0x389ed9){for(const _0x407ef6 of _0x3a1336['getMergeFieldsIds']())_0x36c6bd[_0x407ef6]=_0x3a1336['getLabel'](_0x407ef6)||_0x407ef6;}else{const _0x1f3e1d='$defaultValues'===_0x389ed9?_0x3a1336['getDefaultValues']():_0x3a1336['getDataSetValues'](_0x389ed9,!0x0);for(const _0x3a3b39 of Object['entries'](_0x1f3e1d)){const [_0x2af69f,_0x552cfb]=_0x3a3b39;_0x36c6bd[_0x2af69f]=null!==_0x552cfb?_0x552cfb:_0x3a1336['getLabel'](_0x2af69f)||_0x2af69f;}}return{'mergeFieldsData':_0x36c6bd};}['_standarizeRootsData'](_0x249a43,_0x459a2d,_0x30c8c3){let _0x43519c;if('string'==typeof _0x249a43){const _0xe73120=_0x459a2d['model']['document']['getRootNames']()[0x0];_0x43519c={[_0xe73120]:_0x249a43};}else _0x43519c=_0x249a43;const _0x3e5cfa=this['_fixMediaEmbeds'](_0x43519c,_0x459a2d),_0x3c16c6=function(_0x5c8d80,_0x206941){for(const [_0x269881,_0x437ff5]of _0x5c8d80)_0x437ff5['classes']=_0x206941[_0x269881]['classList']['value']['replace']('ck-focused','');return _0x5c8d80;}(this['_sortRoots'](_0x459a2d)['reduce']((_0x5f57e1,_0x29aef4)=>(_0x5f57e1['push']([_0x29aef4,{'content':_0x3e5cfa[_0x29aef4],'classes':''}]),_0x5f57e1),[]),_0x30c8c3);return _0x3c16c6;}['_fixMediaEmbeds'](_0xf5912,_0x2f45c6){if(!_0x2f45c6['plugins']['has']('MediaEmbedEditing'))return _0xf5912;const _0x932a2a=_0x2f45c6['plugins']['get']('MediaEmbedEditing');for(const [_0x401dd0,_0x42a170]of Object['entries'](_0xf5912)){const _0x121fe8=document['createElement']('div');_0x121fe8['innerHTML']=_0x42a170,(_0x121fe8['querySelectorAll']('figure.media')['forEach'](_0x1e7fd0=>{const _0x4f02a0=_0x1e7fd0['querySelector']('oembed');if(_0x4f02a0){const _0x34b58b=_0x4f02a0['getAttribute']('url');if(_0x34b58b){const _0x448734=_0x932a2a['registry']['getMediaViewElement'](new _0x278fb4(_0x2f45c6['editing']['view']['document']),_0x34b58b,{'elementName':'','renderForEditingView':!0x0}),_0x553333=document['createElement']('div');_0x553333['classList']['add']('ck-media__wrapper'),_0x448734['render'](_0x553333,_0x2f45c6['editing']['view']['domConverter']),_0x4f02a0['replaceWith'](_0x553333);}}}),_0xf5912[_0x401dd0]=_0x121fe8['innerHTML']);}return _0xf5912;}['_sortRoots'](_0x247db4){if(!function(_0x3a3f9e){return void 0x0!==_0x3a3f9e['getRootsAttributes'];}(_0x247db4))return _0x247db4['model']['document']['getRootNames']();const _0x58ecf2=[],_0x323930=new Map();for(const _0x27652b of _0x247db4['model']['document']['getRootNames']()){const _0x2dad6e=_0x247db4['editing']['view']['getDomRoot'](_0x27652b)['getClientRects']()['item'](0x0);_0x58ecf2['push'](_0x27652b),_0x323930['set'](_0x27652b,_0x2dad6e);}return _0x58ecf2['sort']((_0x3b56c8,_0x15dda9)=>{const _0x33bd82=_0x323930['get'](_0x3b56c8),_0x550b15=_0x323930['get'](_0x15dda9);return _0x33bd82['y']-_0x550b15['y']||_0x33bd82['x']-_0x550b15['x'];}),_0x58ecf2;}}class $e extends _0xccd55c{static get['requires'](){return[re,_0xb00e44];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a2cc){super(_0x28a2cc),_0x28a2cc['commands']['add']('previewFinalContent',new te(this['editor'])),_0x28a2cc['config']['define']('trackChanges.preview.renderFunction',(_0x4e3cd8,_0x17d63a)=>{for(const _0x5ccfcd of _0x17d63a)_0x4e3cd8['appendChild'](_0x5ccfcd);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x1ceda1,Plugin as _0x559983,PendingActions as _0x5e448f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x346a74,ObservableMixin as _0x4f27e0,uid as _0x20cf05,priorities as _0x3a0027,insertToPriorityArray as _0x838c40,toArray as _0x549793,logWarning as _0xe69762,getEnvKeystrokeText as _0x538503,FocusTracker as _0x231eb3,KeystrokeHandler as _0x1ffabe,Collection as _0x30f5d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x34b441,IconCancel as _0x40347d,IconTrackChanges as _0x2f5b1a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x542ec3,View as _0x59a488,ViewCollection as _0x56d81b,FocusCycler as _0x3129c0,UIModel as _0x4d3856,createDropdown as _0x1e80c3,SplitButtonView as _0x552a5f,addListToDropdown as _0x56cc45,MenuBarMenuView as _0x2f852e,MenuBarMenuListView as _0xa85213,ListSeparatorView as _0x381151,MenuBarMenuListItemView as _0x32fd6e,MenuBarMenuListItemButtonView as _0x5ce50d,BodyCollection as _0x107e82,Dialog as _0x401523}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x597f1a,hashObject as _0x2fe077,surroundingMarkersDetector as _0x138bd3,FOCUS_ANNOTATION_KEYSTROKE as _0x49096d,AriaDescriptionView as _0x395108,setupThreadKeyboardNavigation as _0x163ace,trimHtml as _0x347682,UserView as _0x3b83ce,LateFocusButtonView as _0x2ec40b,getDateTimeFormatter as _0x4f5d71,getAllMarkersDomElementsSorted as _0x3a0d9a,sanitizeEditorConfig as _0x17c6af}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x10593b,ModelLiveRange as _0x334b1a,ModelLivePosition as _0x333b95,ViewDowncastWriter as _0x3be5d0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x186ae4,toWidget as _0x1a071f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e2439,set as _0x39eb1c,isEqual as _0x17f578,unset as _0x5d356b,omit as Ut}from'es-toolkit/compat';import{Delete as _0x35d7e9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bca97}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x9367c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1ceda1{['_enabledCommands'];constructor(_0x10a7df,_0x4043a8){super(_0x10a7df),this['_enabledCommands']=_0x4043a8,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 _0x4b395f of this['editor']['commands']['commands']())_0x4b395f['affectsData']&&!this['_enabledCommands']['has'](_0x4b395f)&&_0x4b395f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x57769a of this['editor']['commands']['commands']())_0x57769a['affectsData']&&!this['_enabledCommands']['has'](_0x57769a)&&_0x57769a['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1ceda1{['_suggestions'];constructor(_0x5be312,_0x4e6bef){super(_0x5be312),this['_suggestions']=_0x4e6bef,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23bcb8){const _0xa7b4e4=this['_suggestions']['get'](_0x23bcb8);if(!_0xa7b4e4)throw new _0x346a74('track-changes-accept-suggestion-not-found',this);const _0x174ff6=_0xa7b4e4['getRanges']();this['editor']['model']['canEditAt'](_0x174ff6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa7b4e4);}}class M extends _0x1ceda1{['_suggestions'];constructor(_0x5a76d3,_0x2185f7){super(_0x5a76d3),this['_suggestions']=_0x2185f7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x588ad3){const _0x3d8b86=this['_suggestions']['get'](_0x588ad3);if(!_0x3d8b86)throw new _0x346a74('track-changes-discard-suggestion-not-found',this);const _0x2ca09c=_0x3d8b86['getRanges']();this['editor']['model']['canEditAt'](_0x2ca09c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d8b86);}}function ls(_0x47c11f,_0xcad8f9){let _0x4b40dd='';return _0x4b40dd+=_0x47c11f['split']('*')['map']((_0x2a192a,_0x2c08be)=>_0x2c08be%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x2a192a)+'</span>':Yt(_0x2a192a))['join'](''),_0xcad8f9&&(_0x4b40dd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xcad8f9['value']+'\x22\x20title=\x22'+_0xcad8f9['title']+'\x22></span>'),_0x4b40dd;}function Yt(_0xdba502){const _0x55adea=document['createElement']('span');return _0x55adea['innerText']=_0xdba502,_0x55adea['innerHTML'];}function ts(_0x2786e6){return _0x2786e6['sort']((_0x5b8dff,_0x239cd5)=>'attribute'===_0x5b8dff['type']&&'attribute'!==_0x239cd5['type']?-0x1:'attribute'!==_0x5b8dff['type']&&'attribute'===_0x239cd5['type']?0x1:'deletion'==_0x5b8dff['type']&&'deletion'!=_0x239cd5['type']?-0x1:'deletion'!=_0x5b8dff['type']&&'deletion'==_0x239cd5['type']?0x1:0x0);}function to(_0xc13dcb,_0x436584){let _0x566e85,_0x245f7f=0x0;const _0x34e125=[],_0x2f07e8=_0x436584['schema'];for(;_0x245f7f<_0xc13dcb['length'];){const _0x120387=_0xc13dcb[_0x245f7f],_0x1fdd8a=_0xc13dcb[_0x245f7f+0x1];_0x566e85||(_0x566e85=_0x436584['createPositionBefore'](_0x120387)),Zt(_0x436584,_0x120387,_0x1fdd8a)||(_0x34e125['push'](_0x436584['createRange'](_0x566e85,_0x2f07e8['isObject'](_0x120387)?_0x436584['createPositionAfter'](_0x120387):_0x436584['createPositionAt'](_0x120387,'end'))),_0x566e85=null),_0x245f7f++;}return _0x34e125;}function Zt(_0x5864de,_0x1f2b57,_0x423046){if(!_0x423046)return!0x1;const _0x438d91=_0x5864de['createPositionAfter'](_0x1f2b57),_0x3e7bd0=_0x5864de['createPositionBefore'](_0x423046);return _0x438d91['isTouching'](_0x3e7bd0);}function rs(_0x18325c,_0x51096a,_0x3fb6a5){for(;_0x3fb6a5['length'];){const _0x5db7f0=_0x3fb6a5['splice'](0x0,0x64);_0x18325c['change'](()=>{for(const _0x1bebb5 of _0x5db7f0)_0x1bebb5['isInContent']&&_0x51096a['execute'](_0x1bebb5['id']);});}}class $ extends _0x1ceda1{['_command'];['_suggestions'];constructor(_0xc772dd,_0x52a38c,_0x19704c){super(_0xc772dd),this['_command']=_0x52a38c,this['_suggestions']=_0x19704c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3daa7c=Array['from'](this['_suggestions']['values']())['some'](_0x44cbd7=>_0x44cbd7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3daa7c;}['execute'](){const _0x4ce0cd=ts(Array['from'](this['_suggestions']['values']()));for(const _0x58a4ff of _0x4ce0cd){const _0x187c58=_0x58a4ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x187c58))return;}rs(this['editor']['model'],this['_command'],_0x4ce0cd);}}class B extends _0x1ceda1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x123f8a,_0x3e4128,_0x360ef6){super(_0x123f8a),this['_command']=_0x3e4128,this['_suggestions']=_0x360ef6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x44f629=this['editor']['model']['document']['selection'],_0x4cc609=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xd92b2b,_0x1e03ef){const _0x389e3d=Array['from'](_0xd92b2b['getRanges']()),_0x62e653=new Set();for(const _0x15fdcf of _0x1e03ef)if(_0x15fdcf['isInContent']){for(const _0xcb22ac of _0x389e3d)for(const _0x35c939 of _0x15fdcf['getRanges']())(_0xcb22ac['isIntersecting'](_0x35c939)||_0xd92b2b['isCollapsed']&&!_0x15fdcf['isMultiRange']&&_0x15fdcf['next']&&_0x35c939['end']['isTouching'](_0xcb22ac['start']))&&_0x62e653['add'](_0x15fdcf);}return _0x62e653;}(_0x44f629,_0x4cc609),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x93448d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b9f2e of _0x93448d){const _0x4b0fb0=_0x4b9f2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b0fb0))return;}rs(this['editor']['model'],this['_command'],_0x93448d);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4f27e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x509a45,_0x2a92b1){super(),this['id']=_0x2a92b1['id'],this['type']=_0x2a92b1['type'],this['subType']=_0x2a92b1['subType']||null,this['author']=_0x2a92b1['author'],this['creator']=_0x2a92b1['creator']||_0x2a92b1['author'],this['isExternal']=Boolean(_0x2a92b1['attributes']&&_0x2a92b1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2a92b1['originalSuggestionId']||null,this['_model']=_0x509a45,this['_onAccept']=_0x2a92b1['onAccept'],this['_onDiscard']=_0x2a92b1['onDiscard'],this['_onAttributesChange']=_0x2a92b1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a92b1['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 _0x29f988=this;for(;_0x29f988['previous'];)_0x29f988=_0x29f988['previous'];return _0x29f988;}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'](_0x27b1d8){this['_markerNames']['add'](_0x27b1d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x466132=>this['_model']['markers']['get'](_0x466132))['filter'](_0x41ed1f=>_0x41ed1f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c0544=>{for(const _0x4818a2 of this['getMarkers']())_0x5c0544['removeMarker'](_0x4818a2);}),this['_markerNames']['clear']();}['removeMarker'](_0x568730){this['_model']['change'](_0xb54f74=>{_0xb54f74['removeMarker'](_0x568730);}),this['_markerNames']['delete'](_0x568730);}['addRange'](_0x2a4dd9){const _0x5614c1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5614c1),this['_model']['change'](_0x2b120a=>{_0x2b120a['addMarker'](_0x5614c1,{'range':_0x2a4dd9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28c143){for(const _0x53512b of this['getRanges']())if(_0x53512b['isIntersecting'](_0x28c143))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a9c16=>_0x4a9c16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4eb1b7,_0x5f8511)=>[..._0x4eb1b7,..._0x5f8511['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35433d=this['getRanges']();if(0x1!=_0x35433d['length'])return null;const _0x26a322=_0x35433d[0x0],_0x4a4788=_0x26a322['start']['nodeAfter'],_0x4a9b22=_0x26a322['end']['nodeBefore'];return _0x4a4788 instanceof _0x10593b?_0x4a4788!=_0x4a9b22?null:_0x4a4788: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 _0x2c494c=[];let _0x4f2df2=this['head'];for(;_0x4f2df2;)_0x2c494c['push'](_0x4f2df2),_0x4f2df2=_0x4f2df2['next'];return _0x2c494c;}['setAttribute'](_0x21f4c2,_0x141afb){const _0x56de02=_0x3e2439(this['attributes']);_0x39eb1c(_0x56de02,_0x21f4c2,_0x141afb),_0x17f578(_0x56de02,this['attributes'])||(this['attributes']=_0x56de02,this['_onAttributesChange'](_0x56de02));}['removeAttribute'](_0x55fcf5){const _0x1c7834=_0x3e2439(this['attributes']);_0x5d356b(_0x1c7834,_0x55fcf5),_0x17f578(_0x1c7834,this['attributes'])||(this['attributes']=_0x1c7834,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 _0x20cf05()['substr'](0x1,0x5);}}function o(_0x30671f,_0x4ccdb0,_0x421bfa){const _0x703a8=_0x30671f['t'],t=_0x30671f['t'];switch(_0x4ccdb0){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',_0x421bfa);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x421bfa);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x421bfa);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x421bfa);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x421bfa);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',_0x421bfa);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x421bfa);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',_0x421bfa);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x421bfa);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x421bfa);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x421bfa);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x421bfa);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x421bfa);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x421bfa);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x421bfa);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x421bfa);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x421bfa);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x421bfa);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x421bfa);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x421bfa);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x421bfa);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x421bfa);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x421bfa);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x421bfa);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x421bfa);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'},_0x421bfa);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x421bfa);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x421bfa);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x421bfa);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x421bfa);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x421bfa);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x421bfa);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x421bfa);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x421bfa);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x421bfa);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x421bfa);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'},_0x421bfa);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x421bfa);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x421bfa);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x421bfa);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 _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x421bfa);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x421bfa);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ccdb0;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c4fc5,_0x5e76c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c4fc5,this['_locale']=_0x5e76c8;}['getDescriptions'](_0x30dcdf){const _0xb22d53=[],_0x35b3f7=new Set(),_0x3397ce=new Set();for(let _0x3ff526=0x0;_0x3ff526<_0x30dcdf['length'];_0x3ff526++){const _0x4edf4d=_0x30dcdf[_0x3ff526];if(!_0x4edf4d['isInContent'])continue;const _0x508210=this['_handleCustomCallbackDescription'](_0x4edf4d);if(_0x508210){if(null!=_0x4edf4d['subType']){if(_0x35b3f7['has'](_0x4edf4d['subType']))continue;_0x35b3f7['add'](_0x4edf4d['subType']);}_0xb22d53['push'](_0x508210);}else{if('attribute'==_0x4edf4d['type']){const _0x390345=_0x4edf4d['data']['key'];if(_0x3397ce['has'](_0x390345))continue;_0x3397ce['add'](_0x4edf4d['data']['key']),_0x390345==m?this['_handleRenameSuggestionDescription'](_0xb22d53,_0x4edf4d):this['_handleAttributeSuggestionDescription'](_0xb22d53,_0x4edf4d);continue;}'insertion'!=_0x4edf4d['type']&&'deletion'!=_0x4edf4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb22d53,_0x4edf4d,_0x30dcdf[_0x3ff526+0x1]);}}return this['_resolveDescriptionItems'](_0xb22d53);}['registerDescriptionCallback'](_0x5259d7){this['_customCallbacks']['push'](_0x5259d7);}['registerElementLabel'](_0x5d13ce,_0x564876,_0x561866=_0x3a0027['normal']){'function'==typeof _0x5d13ce?_0x838c40(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5d13ce,'label':_0x564876,'priority':_0x561866}):this['_itemLabels']['set'](_0x5d13ce,_0x564876);}['registerAttributeLabel'](_0x1e3846,_0x562639){this['_attributeLabels']['set'](_0x1e3846,_0x562639);}['getItemLabel'](_0x19b46f,_0x56a25f=0x1){let _0x328397;for(const _0x4075af of this['_itemLabelsCallbacks'])if(_0x4075af['matchingCallback'](_0x19b46f)){_0x328397=_0x4075af['label'];break;}return _0x328397||(_0x328397=this['_itemLabels']['get'](_0x19b46f['name'])),_0x328397?_0x328397(_0x56a25f):0x1!==_0x56a25f?_0x56a25f+'\x20'+_0x19b46f['name']+'s':''+_0x19b46f['name'];}['_addDescriptionItems'](_0x24c6d9,_0x156dfd){const _0x133ab3=_0x156dfd['getFirstRange']()['getWalker'](),_0x2dab09='insertion'==_0x156dfd['type']?'add':'remove';for(const _0x39ce94 of _0x133ab3){const _0x2ca1a5=_0x39ce94['item'],_0x20295f=_0x24c6d9[_0x24c6d9['length']-0x1];if(_0x2ca1a5['is']('$textProxy'))_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),_0x20295f&&'text'==_0x20295f['type']?_0x20295f[_0x2dab09]+=_0x2ca1a5['data']:_0x24c6d9['push']({'type':'text','add':'add'==_0x2dab09?_0x2ca1a5['data']:'','remove':'remove'==_0x2dab09?_0x2ca1a5['data']:''});else{if(this['_schema']['isObject'](_0x2ca1a5)){const _0x4fd613=_0x2ca1a5;if(_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),'elementEnd'==_0x39ce94['type'])continue;_0x20295f&&_0x20295f['type']==_0x2dab09+'Object'&&_0x20295f['element']['name']==_0x4fd613['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'Object','element':_0x4fd613,'quantity':0x1}),_0x133ab3['skip'](_0x117124=>!('elementEnd'==_0x117124['type']&&_0x117124['item']==_0x2ca1a5));}else{if(this['_schema']['checkChild'](_0x2ca1a5,'$text')||_0x2ca1a5['is']('element','softBreak')){const _0x559f62=_0x2ca1a5;if('add'==_0x2dab09&&'elementStart'==_0x39ce94['type']||'remove'==_0x2dab09&&'elementEnd'==_0x39ce94['type'])continue;if(_0x20295f&&-0x1==_0x20295f['type']['indexOf']('Container')){'text'==_0x20295f['type']&&(_0x20295f[_0x2dab09]+='\x0a');continue;}let _0x52acf4;if(_0x52acf4='add'==_0x2dab09?_0x559f62['nextSibling']&&!this['_schema']['isObject'](_0x559f62['nextSibling'])?_0x559f62['nextSibling']:null:_0x559f62['previousSibling']&&!this['_schema']['isObject'](_0x559f62['previousSibling'])?_0x559f62['previousSibling']:null,_0x559f62['isEmpty']||_0x52acf4&&_0x52acf4['isEmpty']){const _0x4be9b2=_0x52acf4&&_0x52acf4['isEmpty']?_0x52acf4:_0x559f62;_0x20295f&&_0x20295f['type']==_0x2dab09+'EmptyContainer'&&_0x20295f['element']['name']==_0x4be9b2['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'EmptyContainer','element':_0x4be9b2,'quantity':0x1});}else _0x24c6d9['push']({'type':_0x2dab09+'Container','element':_0x559f62});}}}}}['_resolveDescriptionItems'](_0x208d8d){const _0x36abb9=this['_locale'],_0x2e3198=[],_0x1e6799=[],_0x76c728=[];for(const _0x45adc1 of _0x208d8d)switch(_0x45adc1['type']){case'text':if(_0x45adc1['add']=_0x45adc1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45adc1['remove']=_0x45adc1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45adc1['add']&&''!=_0x45adc1['remove']){_0x2e3198['push']({'type':'replace','content':o(_0x36abb9,'REPLACE_TEXT',['\x22'+_0x45adc1['remove']+'\x22','\x22'+_0x45adc1['add']+'\x22'])});continue;}if(null!=_0x45adc1['add']['match'](/^ +$/)){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['add']['length']))});continue;}if(null!=_0x45adc1['remove']['match'](/^ +$/)){_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['remove']['length']))});continue;}if(''!=_0x45adc1['add']){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0','\x22'+_0x45adc1['add']+'\x22')});continue;}_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0','\x22'+_0x45adc1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addContainer':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Split:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeContainer':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Merge:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addFormat':_0x1e6799['push'](_0x45adc1['key']);continue;case'removeFormat':_0x76c728['push'](_0x45adc1['key']);continue;default:_0x2e3198['push'](_0x45adc1);}if(_0x1e6799['length']){const _0x23d03f=_0x1e6799['map'](_0x15e38b=>this['_attributeLabels']['has'](_0x15e38b)?this['_attributeLabels']['get'](_0x15e38b):_0x15e38b)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x23d03f)});}if(_0x76c728['length']){const _0xdd3780=_0x76c728['map'](_0x143807=>this['_attributeLabels']['has'](_0x143807)?this['_attributeLabels']['get'](_0x143807):_0x143807)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xdd3780)});}return _0x2e3198;}['_handleCustomCallbackDescription'](_0x52c856){for(const _0x3adb42 of this['_customCallbacks']){const _0x265ac8=_0x3adb42(_0x52c856);if(_0x265ac8&&'type'in _0x265ac8)return _0x265ac8;}}['_handleAttributeSuggestionDescription'](_0x548ab5,_0x3a8072){const _0x1e50e6=_0x3a8072['data'],_0x4a37ab=void 0x0===_0x1e50e6['newValue']?'removeFormat':'addFormat';_0x548ab5['push']({'type':_0x4a37ab,'key':_0x1e50e6['key']});}['_handleRenameSuggestionDescription'](_0x23d942,_0x5c0f5e){_0x23d942['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c0f5e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57dcd8,_0x58020c,_0x1fda90){if(this['_addDescriptionItems'](_0x57dcd8,_0x58020c),_0x1fda90&&_0x1fda90['getFirstRange']()&&!_0x58020c['getFirstRange']()['end']['isEqual'](_0x1fda90['getFirstRange']()['start'])){const _0x5c4f2a=_0x57dcd8[_0x57dcd8['length']-0x1],_0x4f1ca5='insertion'==_0x58020c['type']?'add':'remove';_0x5c4f2a&&'text'==_0x5c4f2a['type']&&(_0x5c4f2a[_0x4f1ca5]+='\x0a');}}}class O extends _0x559983{['afterInit'](){const _0x5a5561=this['editor'],_0x21a249=_0x5a5561['plugins']['get']('TrackChangesEditing');_0x5a5561['commands']['get']('showAIAssistant')&&_0x21a249['enableCommand']('showAIAssistant');}}class E extends _0x559983{['afterInit'](){const _0x11eda3=this['editor'],_0x41becf=_0x11eda3['locale'];if(!_0x11eda3['plugins']['has']('AlignmentEditing'))return;const _0x26a6aa=_0x11eda3['plugins']['get']('TrackChangesEditing');_0x26a6aa['enableDefaultAttributesIntegration']('alignment'),_0x26a6aa['registerBlockAttribute']('alignment'),_0x26a6aa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x41becf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e58bd=this['editor'],_0x118933=_0x5e58bd['locale'];_0x5e58bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204e45=>{if('formatBlock'!=_0x204e45['type'])return;const {data:_0x2d15f0}=_0x204e45;if(_0x2d15f0&&'alignment'==_0x2d15f0['commandName']){const _0x254ac1=_0x2d15f0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x118933,'*Format:*\x20%0',function(_0x2b3046){switch(_0x2b3046){case'left':return o(_0x118933,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x118933,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x118933,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x118933,'FORMAT_JUSTIFY_TEXT');}}(_0x254ac1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x559983{['afterInit'](){const _0x1ca13d=this['editor'],_0x3795c1=_0x1ca13d['plugins']['get']('TrackChangesEditing'),_0x198c6b=_0x1ca13d['locale'];for(const _0x42a65a of ti){if(!_0x1ca13d['plugins']['has'](_0x42a65a))continue;const _0x7fa956=_0x42a65a['slice'](0x0,-0x7)['toLowerCase'](),_0x13e2f3='FORMAT_'+_0x7fa956['toUpperCase']();_0x3795c1['enableDefaultAttributesIntegration'](_0x7fa956),_0x3795c1['registerInlineAttribute'](_0x7fa956),_0x3795c1['descriptionFactory']['registerAttributeLabel'](_0x7fa956,o(_0x198c6b,_0x13e2f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c32e7=this['editor'],_0x39ebb5=_0x4c32e7['locale'],_0x134742=_0x4c32e7['plugins']['get']('TrackChangesEditing');function _0x4069de(_0x284a76,_0x4b4645){_0x134742['descriptionFactory']['registerDescriptionCallback'](_0x4a2fa8=>{if('formatInline'!=_0x4a2fa8['type'])return;const {data:_0x2e5dbc}=_0x4a2fa8;return _0x2e5dbc&&_0x2e5dbc['commandName']===_0x284a76?_0x2e5dbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39ebb5,'*Format:*\x20%0',_0x4b4645)}:{'type':'format','content':o(_0x39ebb5,'*Remove\x20format:*\x20%0',_0x4b4645)}:void 0x0;});}_0x4069de('bold',o(_0x39ebb5,'FORMAT_BOLD')),_0x4069de('italic',o(_0x39ebb5,'FORMAT_ITALIC')),_0x4069de('underline',o(_0x39ebb5,'FORMAT_UNDERLINE')),_0x4069de('code',o(_0x39ebb5,'FORMAT_CODE')),_0x4069de('strikethrough',o(_0x39ebb5,'FORMAT_STRIKETHROUGH')),_0x4069de('subscript',o(_0x39ebb5,'FORMAT_SUBSCRIPT')),_0x4069de('superscript',o(_0x39ebb5,'FORMAT_SUPERSCRIPT'));}}class U extends _0x559983{['afterInit'](){const _0x281da8=this['editor'],_0x5237d9=_0x281da8['locale'];if(!_0x281da8['plugins']['has']('BlockQuoteEditing'))return;const _0xc56995=_0x281da8['plugins']['get']('TrackChangesEditing'),_0x14bb6c=this['editor']['commands']['get']('blockQuote');_0xc56995['enableCommand']('blockQuote',(_0x484e5e,_0x4092ad={})=>{const _0x301489=this['editor']['model']['document']['selection'],_0x5b8563=_0x4092ad&&void 0x0!==_0x4092ad['forceValue']?_0x4092ad['forceValue']:!_0x14bb6c['value'];let _0x4ce808=[];if(_0x5b8563){const _0x1530d5=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x1c5299=>oo(_0x1c5299)||function(_0x420812,_0x14f26b){const _0x4ad019=_0x14f26b['checkChild'](_0x420812['parent'],'blockQuote'),_0x21a8e5=_0x14f26b['checkChild'](['$root','blockQuote'],_0x420812);return _0x4ad019&&_0x21a8e5;}(_0x1c5299,this['editor']['model']['schema']));_0x4ce808=to(_0x1530d5,_0x281da8['model']);}else{const _0x55984a=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x24c4b2=>oo(_0x24c4b2));_0x4ce808=to(_0x55984a,_0x281da8['model']);}_0x281da8['model']['change'](()=>{for(const _0x1d7bcf of _0x4ce808)_0xc56995['markBlockFormat'](_0x1d7bcf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b8563}]});});}),_0xc56995['descriptionFactory']['registerDescriptionCallback'](_0x2bf013=>{const {data:_0x2f932d}=_0x2bf013;if(_0x2f932d&&'blockQuote'==_0x2f932d['commandName']){const _0x31ea07=o(_0x5237d9,'ELEMENT_BLOCK_QUOTE');return _0x2f932d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5237d9,'*Set\x20format:*\x20%0',_0x31ea07)}:{'type':'format','content':o(_0x5237d9,'*Remove\x20format:*\x20%0',_0x31ea07)};}});}}function oo(_0x3dc317){return'blockQuote'==_0x3dc317['parent']['name'];}class V extends _0x559983{['afterInit'](){const _0x2fc883=this['editor'],_0x48726c=_0x2fc883['locale'],_0x5a82da=_0x2fc883['plugins']['get']('TrackChangesEditing');_0x2fc883['plugins']['has']('BookmarkEditing')&&(_0x5a82da['enableCommand']('insertBookmark'),_0x5a82da['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a82da['registerBlockAttribute']('bookmarkId'),_0x5a82da['descriptionFactory']['registerDescriptionCallback'](_0x53eb59=>{if('insertion'!=_0x53eb59['type']&&'deletion'!=_0x53eb59['type']&&'attribute'!=_0x53eb59['type'])return;const _0x469b7c=_0x53eb59['getContainedElement']();if(null==_0x469b7c)return;if(!_0x469b7c['is']('element','bookmark'))return;const _0x4e65d8=_0x469b7c['getAttribute']('bookmarkId');if('insertion'==_0x53eb59['type'])return{'type':'insertion','content':o(_0x48726c,'*Insert:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53eb59['type'])return{'type':'deletion','content':o(_0x48726c,'*Remove:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};const {data:_0x5ae6d8}=_0x53eb59;if(!_0x5ae6d8||'bookmarkId'!=_0x5ae6d8['key'])return;return{'type':'format','content':o(_0x48726c,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ae6d8['newValue']+'\x22')};}));}}class F extends _0x559983{['afterInit'](){const _0x42614a=this['editor'];_0x42614a['plugins']['has']('CaseChange')&&(_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x559983{['afterInit'](){const _0x1a0956=this['editor'];_0x1a0956['commands']['get']('ckbox')&&_0x1a0956['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x559983{['afterInit'](){const _0x3dc6be=this['editor'];if(!_0x3dc6be['plugins']['has']('CodeBlock'))return;const _0x50a8e9=_0x3dc6be['plugins']['get']('TrackChangesEditing'),_0x1cb70d=_0x3dc6be['locale'],_0x2fb454=_0x3dc6be['config']['get']('codeBlock')['languages'],_0x1f7947=_0x3dc6be['commands']['get']('codeBlock');_0x50a8e9['enableCommand']('indentCodeBlock'),_0x50a8e9['enableCommand']('outdentCodeBlock'),_0x50a8e9['enableCommand']('codeBlock',(_0x593334,_0x55da66={})=>{const _0x4f5775=_0x3dc6be['model'],_0x32c53e=_0x3dc6be['model']['document']['selection'],_0x144bef=_0x55da66&&void 0x0!==_0x55da66['forceValue']?_0x55da66['forceValue']:!_0x1f7947['value'];let _0x1121f3;_0x55da66['language']||(_0x55da66['language']=_0x2fb454[0x0]['language']),_0x1121f3=_0x144bef?Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x13bbb1=>co(_0x13bbb1)||function(_0x3f3eed,_0x5af99e){if(_0x3f3eed['is']('rootElement')||_0x5af99e['isLimit'](_0x3f3eed))return!0x1;return _0x5af99e['checkChild'](_0x3f3eed['parent'],'codeBlock');}(_0x13bbb1,_0x4f5775['schema'])):Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x4b8f4f=>co(_0x4b8f4f));const _0x20ae54=to(_0x1121f3,_0x4f5775);_0x4f5775['change'](()=>{for(const _0x288e45 of _0x20ae54)_0x50a8e9['markBlockFormat'](_0x288e45,{'commandName':'codeBlock','commandParams':[{..._0x55da66,'forceValue':_0x144bef}],'formatGroupId':'blockName'});});}),(_0x50a8e9['descriptionFactory']['registerElementLabel']('codeBlock',_0x30da98=>o(_0x1cb70d,'ELEMENT_CODE_BLOCK',_0x30da98)),_0x50a8e9['descriptionFactory']['registerDescriptionCallback'](_0x29974e=>{if('formatBlock'!=_0x29974e['type'])return;const _0x324464=_0x1cb70d['t'],{data:_0x43875e}=_0x29974e;if(!_0x43875e||'codeBlock'!=_0x43875e['commandName'])return;const _0x1a28fb=_0x43875e['commandParams'][0x0]['language'],_0x55f382=_0x324464(_0x2fb454['find'](_0x4f1b8e=>_0x4f1b8e['language']===_0x1a28fb)['label'])['toLowerCase']();return _0x43875e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cb70d,'*Set\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x55f382+')')}:{'type':'format','content':o(_0x1cb70d,'*Remove\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3ff004){return'codeBlock'==_0x3ff004['name'];}class J extends _0x559983{['afterInit'](){const _0x4bf834=this['editor'];if(!_0x4bf834['plugins']['has']('CommentsEditing'))return;_0x4bf834['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe89933,_0x337507,_0x5b437c){const _0x213d32=[];for(const _0x233f1d of _0x337507['getItems']())_0x233f1d['hasAttribute'](_0xe89933)&&_0x213d32['push'](_0x5b437c['createRangeOn'](_0x233f1d));return _0x213d32;}function De(_0x197120,_0x515e41,{showActiveMarker:_0x46c28e=!0x0}={}){const _0x448413=_0x197120['plugins']['get']('TrackChangesEditing');return(_0x1c9068,_0x48f092,_0x7eedac)=>{if(!_0x7eedac['consumable']['test'](_0x48f092['markerRange'],_0x1c9068['name']))return;const _0x4de17=_0x48f092['markerRange']['getWalker'](),_0x412a6a=_0x48f092['markerRange']['start'],_0x22b920=_0x197120['model']['schema'];let _0x303989=null,_0x3cc075=null,_0x4ace48=!0x1,_0x5b360e=!0x1;for(const _0x48234b of _0x4de17){const _0x26d627=_0x48234b['item'];_0x4ace48=_0x4ace48||_0x22b920['isContent'](_0x26d627);const _0x5f3cc2=_0x7eedac['mapper']['toViewElement'](_0x26d627);if(_0x5f3cc2&&_0x5f3cc2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48234b['type']&&(_0x22b920['isBlock'](_0x26d627)&&!_0x22b920['isLimit'](_0x26d627)&&(_0x26d627['nextSibling']||_0x412a6a['isAtEnd']?_0x303989&&_0x303989['parent']==_0x26d627||(_0x303989=_0x26d627,_0x37510d(_0x48234b['previousPosition']),_0x5b360e=!0x0):_0x3cc075=_0x3cc075||_0x48234b['previousPosition']));}function _0x37510d(_0x50dc68){const {id:_0x50e85c,authorId:_0x1252ce}=_0x448413['_splitMarkerName'](_0x48f092['markerName']),_0x4319b8=_0x7eedac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x515e41,'data-suggestion':_0x50e85c,'data-author-id':_0x1252ce}),_0x5042ef=_0x7eedac['mapper']['toViewPosition'](_0x50dc68);_0x46c28e&&_0x448413['activeMarkers']['includes'](_0x48f092['markerName'])&&_0x7eedac['writer']['addClass']('ck-suggestion-marker--active',_0x4319b8),_0x7eedac['writer']['insert'](_0x5042ef,_0x4319b8),_0x7eedac['mapper']['bindElementToMarker'](_0x4319b8,_0x48f092['markerName']);}_0x4ace48||_0x5b360e||!_0x3cc075||_0x37510d(_0x3cc075);};}class K extends _0x559983{static get['requires'](){return[_0x35d7e9];}['init'](){const _0x349690=this['editor'],_0x3c679c=_0x349690['plugins']['get']('TrackChangesEditing');_0x3c679c['enableCommand']('delete');const _0x5d9a09=_0x349690['commands']['get']('deleteForward');_0x3c679c['enableCommand']('deleteForward',(_0x4890c0,_0x12adfd={})=>{const _0x546aae=_0x349690['model']['createSelection'](_0x349690['model']['document']['selection']);_0x546aae['isCollapsed']&&_0x349690['model']['modifySelection'](_0x546aae,{'direction':'forward','unit':_0x12adfd['unit']});const _0x350756=_0x546aae['getFirstRange'](),_0x37fea8=_0x334b1a['fromRange'](_0x350756);let _0x2c1767;_0x4890c0(_0x12adfd),_0x2c1767='$graveyard'==_0x37fea8['root']['rootName']?_0x349690['model']['createRange'](_0x350756['start']):_0x349690['model']['createRange'](_0x37fea8['start'],_0x37fea8['end']),_0x37fea8['detach'](),_0x349690['model']['enqueueChange'](_0x5d9a09['buffer']['batch'],_0x400b43=>{_0x5d9a09['buffer']['lock'](),_0x400b43['setSelection'](_0x400b43['createRange'](_0x2c1767['end'])),_0x5d9a09['buffer']['unlock']();});}),_0x349690['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x349690,'merge'),{'priority':'high'}),_0x349690['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x435610,_0x2fbe71,_0x28b743)=>{_0x28b743['options']['showSuggestionHighlights']&&De(_0x349690,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x435610,_0x2fbe71,_0x28b743);},{'priority':'high'}),_0x349690['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3de3f1,_0x4c1d45,_0x4f96f8)=>{const _0x1b9fd4=_0x4f96f8['mapper']['markerNameToElements'](_0x4c1d45['markerName']);if(_0x1b9fd4){for(const _0x60c0bf of _0x1b9fd4)_0x60c0bf['is']('uiElement')&&(_0x4f96f8['mapper']['unbindElementFromMarkerName'](_0x60c0bf,_0x4c1d45['markerName']),_0x4f96f8['writer']['remove'](_0x60c0bf));}},{'priority':'high'});}}class H extends _0x559983{['afterInit'](){const _0x21b8ef=this['editor'];if(!_0x21b8ef['plugins']['has']('ListEditing'))return;const _0x4b7368=_0x21b8ef['locale'],_0x1cf8b2=_0x21b8ef['plugins']['get']('TrackChangesEditing'),_0x77d31d=_0x21b8ef['plugins']['has']('TodoListEditing'),_0xb54a86=!!_0x21b8ef['config']['get']('list.multiBlock');function _0xf28a34(_0xf5c83e){return{'type':'format','content':''+o(_0x4b7368,'*Set\x20format:*\x20%0',_0xf5c83e)};}function _0x4c8cc3(_0x37303c){return{'type':'format','content':''+o(_0x4b7368,'*Remove\x20format:*\x20%0',_0x37303c)};}_0x1cf8b2['enableDefaultAttributesIntegration']('numberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('bulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('indentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('outdentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cf8b2['registerBlockAttribute']('listItemId'),_0x1cf8b2['registerBlockAttribute']('listType'),_0x1cf8b2['registerBlockAttribute']('listIndent'),_0xb54a86&&(_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x77d31d&&(_0x1cf8b2['enableDefaultAttributesIntegration']('todoList'),_0x1cf8b2['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cf8b2['registerBlockAttribute']('todoListChecked'),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x170688=>{const {data:_0x2c04ce}=_0x170688;if(_0x2c04ce&&'todoListChecked'==_0x2c04ce['key'])return{'type':'format','content':_0x2c04ce['newValue']?o(_0x4b7368,'*Check\x20item*'):o(_0x4b7368,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x532e64=>{if(_0x532e64['batch']['isUndo'])return!0x1;let _0x1ecc87=!0x1;const _0x51ab05=_0x1cf8b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12e8c6=>'todoListChecked'===_0x1cf8b2['_getAttributeKey'](_0x12e8c6));for(const _0x5ea20b of _0x51ab05){'todo'!=_0x5ea20b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cf8b2['_findSuggestions'](_0x5ea20b['getFirstRange'](),'attribute')['find'](_0x160c32=>'listType'===_0x1cf8b2['_getAttributeKey'](_0x160c32['suggestion']))||(_0x532e64['removeMarker'](_0x5ea20b['getFirstMarker']()),_0x1ecc87=!0x0));}return _0x1ecc87;})),_0x1cf8b2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b7368,'FORMAT_INDENT'));const _0x4e6149={'type':'format','content':''};_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x3d141b=>{const {data:_0x13f047}=_0x3d141b;if(!_0x13f047||'listType'!=_0x13f047['key'])return;let _0x334aad=_0x3d141b['head'];for(;_0x334aad;){if(_0x334aad['data']&&(('listStyle'==_0x334aad['data']['key']||'listMarkerStyle'==_0x334aad['data']['key'])&&(_0x334aad['data']['newValue']&&'default'!=_0x334aad['data']['newValue']||'default'!=_0x334aad['data']['oldValue']&&!_0x13f047['newValue'])||!_0xb54a86&&_0x334aad['data']['key']==m))return _0x4e6149;_0x334aad=_0x334aad['next'];}if(null==_0x13f047['newValue'])switch(_0x13f047['oldValue']){case'bulleted':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_TODO_LIST'));}switch(_0x13f047['newValue']){case'bulleted':return _0xf28a34(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf28a34(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf28a34(o(_0x4b7368,'ELEMENT_TODO_LIST'));}}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x1878fa=>{const {data:_0xab3a59}=_0x1878fa;if(_0xab3a59&&'listIndent'==_0xab3a59['key'])return null==_0xab3a59['newValue']||null==_0xab3a59['oldValue']&&0x0==_0xab3a59['newValue']?_0x4e6149:void 0x0;}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x455524=>{if('attribute'!=_0x455524['type'])return;const {data:_0x3053b9}=_0x455524;if(!_0x3053b9||'listItemId'!=_0x3053b9['key'])return;const _0x35e222=Te(_0x455524);return'newValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Split:*\x20list\x20item')}:_0x4e6149;}),_0x21b8ef['model']['document']['registerPostFixer'](_0xb758ce=>this['listItemIdFixer'](_0xb758ce)),_0x21b8ef['model']['document']['registerPostFixer'](_0x3af6e7=>this['noTrackChangesFixer'](_0x3af6e7)),_0x21b8ef['model']['document']['on']('change:data',(_0x4d03f8,_0xe0c753)=>{if(_0xe0c753['isUndo']||!_0xe0c753['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23fe35){if(_0x23fe35['batch']['isUndo']||!_0x23fe35['batch']['isLocal'])return!0x1;let _0x55b32f=!0x1;const _0x187439=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x197f52=>_0x197f52['data']&&'listItemId'==_0x197f52['data']['key'])['filter'](_0x347092=>_0x347092['data']['newValue']&&_0x347092['data']['oldValue']);for(const _0x87f01c of _0x187439)Te(_0x87f01c)||(_0x23fe35['removeMarker'](_0x87f01c['getFirstMarker']()),_0x55b32f=!0x0);return _0x55b32f;}['noTrackChangesFixer'](_0x46be35){if(_0x46be35['batch']['isUndo']||!_0x46be35['batch']['isLocal'])return!0x1;const _0x54ef6d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54ef6d['trackChangesCommand']['value'])return!0x1;let _0x127f3b=!0x1;const _0x1e0441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26461b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x65ae42=>'attribute'==_0x65ae42['type'])['filter'](_0xcb5560=>_0x1e0441['includes'](_0xcb5560['attributeKey']));if(0x0==_0x26461b['length'])return _0x127f3b;for(const _0x2b5d9b of _0x26461b){const _0x51b73c=_0x54ef6d['_findSuggestions'](_0x2b5d9b['range'],'attribute')['filter'](_0x8da664=>!_0x8da664['meta']['isNextTo'])['map'](_0x54e400=>_0x54e400['suggestion'])['filter'](_0x3ac0da=>{const _0x2240e9=_0x54ef6d['_getAttributeKey'](_0x3ac0da);return _0x1e0441['includes'](_0x2240e9);});if(_0x51b73c['length']){for(const _0x12f219 of _0x51b73c)_0x46be35['removeMarker'](_0x12f219['getFirstMarker']());_0x127f3b=!0x0;}}return _0x127f3b;}['assureChains'](){const _0x2991d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec907c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x26022e;const _0x22f5a0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26ad1e=>{if(_0x26ad1e['data']['oldRange']||!_0x26ad1e['data']['newRange'])return null;if(!_0x26ad1e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e834e}=_0x2991d7['_splitMarkerName'](_0x26ad1e['name']);if(!_0x2991d7['hasSuggestion'](_0x4e834e))return null;const _0x20da3d=_0x2991d7['getSuggestion'](_0x4e834e);return _0xec907c['includes'](_0x20da3d['data']['key']);})['map'](_0x5e1f76=>{const {id:_0x9f7e26}=_0x2991d7['_splitMarkerName'](_0x5e1f76['name']),_0x5ac37d=_0x2991d7['getSuggestion'](_0x9f7e26);return _0x26022e=_0x5ac37d['attributes']['groupId'],_0x5ac37d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x22f5a0['size'])return;const _0x3208b7=_0x2991d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573a8f=>'attribute'==_0x573a8f['type']&&_0x573a8f['data']&&_0xec907c['includes'](_0x573a8f['data']['key'])&&_0x573a8f['attributes']['groupId']!=_0x26022e)['map'](_0x578315=>({'listItem':_0x578315['getFirstRange']()['start']['nodeAfter'],'groupId':_0x578315['attributes']['groupId']})),_0x3b3ba2=new Set();for(const {groupId:_0x447aa1,listItem:_0x37a1f4}of _0x3208b7)_0x22f5a0['has'](_0x37a1f4)&&_0x3b3ba2['add'](_0x447aa1);for(const _0x4c7e11 of _0x2991d7['getSuggestions']())_0x3b3ba2['has'](_0x4c7e11['attributes']['groupId'])&&_0x4c7e11['setAttribute']('groupId',_0x26022e);}['_supportLegacySuggestions'](){const _0x4bd490=this['editor'],_0x149901=_0x4bd490['locale'],_0x4cf1c1=_0x4bd490['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4cf1c1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49d7d9,_0x1dadce){const _0x551988=[];for(let _0x36c227 of _0x49d7d9)_0x36c227['start']['nodeAfter']===_0x36c227['end']['parent']&&(_0x36c227=_0x4bd490['model']['createRange'](_0x4bd490['model']['createPositionAt'](_0x36c227['start']['nodeAfter'],0x0))),_0x551988['push'](_0x36c227);_0x4bd490['model']['change'](_0x69413=>{const _0x564a0c=_0x4bd490['model']['document']['selection'],_0x1a7c8c=Array['from'](_0x564a0c['getRanges']())['map'](_0x846b4c=>_0x334b1a['fromRange'](_0x846b4c));_0x69413['setSelection'](_0x551988),_0x4bd490['commands']['get'](_0x1dadce['commandName'])['refresh'](),_0x1dadce['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bd490['execute'](_0x1dadce['commandName'],..._0x1dadce['commandParams']),_0x69413['setSelection'](_0x1a7c8c);for(const _0x570870 of _0x1a7c8c)_0x570870['detach']();});}),_0x4cf1c1['descriptionFactory']['registerElementLabel'](function(_0x57e446){const _0x8ea621=!_0x4bd490['model']['schema']['isObject'](_0x57e446),_0xa1889c=_0x57e446['previousSibling'],_0x4791bb=_0x57e446['nextSibling'],_0x5b4997=_0x57e446['getAttribute']('listItemId'),_0x27408e=!_0xa1889c||_0xa1889c['getAttribute']('listItemId')!==_0x5b4997,_0x30217f=!_0x4791bb||_0x4791bb['getAttribute']('listItemId')!==_0x5b4997;return _0x8ea621&&Boolean(_0x5b4997)&&_0x27408e&&_0x30217f;},_0x2b5ec3=>o(_0x149901,'ELEMENT_LIST_ITEM',_0x2b5ec3));}['_registerLegacyDescription'](){const _0x275d8b=this['editor'],_0x1323bc=_0x275d8b['locale'];function _0xf7a411(_0xfe1c87){const _0x596b05=_0x275d8b['commands']['get']('bulletedList')['value'],_0x47bb47=_0x275d8b['commands']['get']('numberedList')['value'];return'numberedList'===_0xfe1c87?_0x596b05:_0x47bb47;}_0x275d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x10545c){if('formatBlock'!=_0x10545c['type'])return;const {data:_0x4128a9}=_0x10545c;if(!_0x4128a9)return;let _0x4cd94f,_0x2cb3f2,_0x50896f,_0x3c74c7;switch(_0x4128a9['commandName']){case'bulletedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cd94f='*Indent:*\x20%0',_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cd94f=function(_0x4364f5){const _0x49b6a5=_0x4364f5['getFirstRange']();let _0x381100=_0x49b6a5['start']['nodeAfter'];for(;_0x381100&&_0x49b6a5['containsItem'](_0x381100);){if(_0x381100['getAttribute']('listIndent')>0x0)return!0x1;_0x381100=_0x381100['nextSibling'];}return!0x0;}(_0x10545c)?o(_0x1323bc,'*Format:*\x20remove\x20from\x20%0',o(_0x1323bc,function(_0x131007){return'ELEMENT_'+_0x131007['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x10545c))):o(_0x1323bc,'*Outdent:*\x20%0',o(_0x1323bc,'ELEMENT_LIST_ITEM')),_0x2cb3f2={'type':'format','content':_0x4cd94f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4128a9['multipleBlocks']&&(_0x4cd94f='*Merge:*\x20%0',_0x2cb3f2={'type':'deletion','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))});}return _0x2cb3f2;});}}function Te(_0x39add4){let _0xd05927=_0x39add4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd05927;){const _0x1f1c9c=_0xd05927['getAttribute']('listItemId');if(!_0x1f1c9c)return!0x1;if(_0x1f1c9c==_0x39add4['data']['newValue'])return'newValue';if(_0x1f1c9c==_0x39add4['data']['oldValue'])return'oldValue';_0xd05927=_0xd05927['previousSibling'];}return!0x1;}class q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133606=this['editor']['config']['get']('list.properties'),_0x175e71=this['editor']['plugins']['get']('TrackChangesEditing');_0x133606['styles']&&(_0x175e71['enableDefaultAttributesIntegration']('listStyle'),_0x175e71['registerBlockAttribute']('listStyle')),_0x133606['reversed']&&(_0x175e71['enableDefaultAttributesIntegration']('listReversed'),_0x175e71['registerBlockAttribute']('listReversed')),_0x133606['startIndex']&&(_0x175e71['enableDefaultAttributesIntegration']('listStart'),_0x175e71['registerBlockAttribute']('listStart'));const _0xf1cb7e={'type':'format','content':''};_0x175e71['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b862b=this['editor']['locale'];_0x175e71['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4b862b,'FORMAT_LIST_REVERSED')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x4d7038=>{const {data:_0x148cc0}=_0x4d7038;if(_0x148cc0&&'listReversed'==_0x148cc0['key'])return null==_0x148cc0['newValue']||0x0==_0x148cc0['newValue']&&null==_0x148cc0['oldValue']?_0xf1cb7e:void 0x0;}),_0x175e71['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4b862b,'FORMAT_LIST_START')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x59a6aa=>{const {data:_0xbe76b9}=_0x59a6aa;if(_0xbe76b9&&'listStart'==_0xbe76b9['key'])return null==_0xbe76b9['newValue']||0x1==_0xbe76b9['newValue']&&null==_0xbe76b9['oldValue']?_0xf1cb7e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f517c=>{if(_0x1f517c['batch']['isUndo'])return!0x1;let _0x5934fe=!0x1;const _0x3ea7ce=_0x175e71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3060bb=>{const _0xdfcb0c=_0x175e71['_getAttributeKey'](_0x3060bb);return'listStart'==_0xdfcb0c||'listReversed'==_0xdfcb0c;});for(const _0x409050 of _0x3ea7ce){const _0x42b91a=_0x409050['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42b91a||'customNumbered'==_0x42b91a)continue;_0x175e71['_findSuggestions'](_0x409050['getFirstRange'](),'attribute')['find'](_0x4b1913=>'listType'==_0x175e71['_getAttributeKey'](_0x4b1913['suggestion']))||(_0x1f517c['removeMarker'](_0x409050['getFirstMarker']()),_0x5934fe=!0x0);}return _0x5934fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c64c4){const _0x118336=this['editor']['locale'],{data:_0x6e5893}=_0x2c64c4,_0xd8b62c={'type':'format','content':''};if(!_0x6e5893||'listStyle'!=_0x6e5893['key'])return;if(!_0x6e5893['oldValue'])return'default'==_0x6e5893['newValue']?_0xd8b62c:{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};if(!_0x6e5893['newValue']){if('default'==_0x6e5893['oldValue'])return _0xd8b62c;let _0x481fdf=_0x2c64c4['head'];for(;_0x481fdf;){if(_0x481fdf['data']&&'listType'==_0x481fdf['data']['key']&&_0x481fdf['data']['newValue'])return _0xd8b62c;_0x481fdf=_0x481fdf['next'];}return{'type':'format','content':''+o(_0x118336,'*Remove\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['oldValue'])))};}if('default'!=_0x6e5893['newValue'])return{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};let _0x59925b=_0x2c64c4['head'];for(;_0x59925b;){if(_0x59925b['data']&&'listType'==_0x59925b['data']['key']&&_0x59925b['data']['newValue']&&_0x59925b['data']['oldValue'])return _0xd8b62c;_0x59925b=_0x59925b['next'];}return{'type':'format','content':o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,'ELEMENT_'+_0x2c64c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x12c189=this['editor'],_0x1a8b40=_0x12c189['locale'];_0x12c189['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5efe88=>{if('formatBlock'!=_0x5efe88['type'])return;const {data:_0xf69680}=_0x5efe88;if(!_0xf69680)return;let _0xb38ab3,_0x398083;switch(_0xf69680['commandName']){case'listStyle':_0xb38ab3='*Change\x20to:*\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,o(_0x1a8b40,this['_getTranslationKeyForListStyle'](_0xf69680['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb38ab3=_0xf69680['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3)};break;case'listStart':_0xb38ab3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,_0xf69680['commandParams'][0x0]['startIndex'])};}return _0x398083;});}['_getTranslationKeyForListStyle'](_0x1850ca){return'ELEMENT_'+function(_0x468565){if(Se['includes'](_0x468565))return'bulleted';if(_e['includes'](_0x468565))return'numbered';return null;}(_0x1850ca)['toUpperCase']()+'_LIST_'+_0x1850ca['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x559983{['afterInit'](){const _0x5ad632=this['editor'];_0x5ad632['commands']['get']('emoji')&&_0x5ad632['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x559983{static get['requires'](){return[_0x5bca97];}['init'](){const _0x586bb3=this['editor'],_0x457a86=_0x586bb3['plugins']['get']('TrackChangesEditing'),_0x46b67b=_0x586bb3['commands']['get']('enter');_0x457a86['enableCommand']('enter',()=>{_0x586bb3['model']['change'](_0x399a75=>{const _0x55ec53=_0x586bb3['model']['document']['selection'],_0x52ce4f=_0x55ec53['getFirstPosition'](),_0x11be70=_0x334b1a['fromRange'](_0x55ec53['getFirstRange']());if(_0x46b67b['enterBlock'](_0x399a75)){const _0x5189c9=_0x586bb3['model']['createPositionAt'](_0x52ce4f['parent']['nextSibling'],0x0),_0x5a27e7=_0x399a75['createRange'](_0x52ce4f,_0x5189c9);_0x457a86['markInsertion'](_0x5a27e7);}else _0x399a75['setSelection'](_0x399a75['createRange'](_0x11be70['end']));_0x11be70['detach'](),_0x46b67b['fire']('afterExecute',{'writer':_0x399a75});});}),_0x586bb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x586bb3,'split'),{'priority':'high'}),_0x586bb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5cae34,_0x516796,_0x1c9944)=>{const _0x562f51=_0x1c9944['mapper']['markerNameToElements'](_0x516796['markerName']);if(_0x562f51){for(const _0x195e4e of _0x562f51)_0x195e4e['hasClass']('ck-suggestion-marker-split')&&(_0x1c9944['mapper']['unbindElementFromMarkerName'](_0x195e4e,_0x516796['markerName']),_0x1c9944['writer']['remove'](_0x195e4e));}},{'priority':'high'}),_0x586bb3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf6637f,_0x40b022,_0x9f2980)=>{_0x9f2980['options']['showSuggestionHighlights']&&De(_0x586bb3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xf6637f,_0x40b022,_0x9f2980);},{'priority':'high'});}}class Q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x44255b=this['editor']['plugins']['get']('TrackChangesEditing');_0x44255b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x44255b['enableCommand']('findNext'),_0x44255b['enableCommand']('findPrevious'),_0x44255b['enableCommand']('replace'),_0x44255b['enableCommand']('replaceAll');}['handleFindCommand'](_0x48d867,_0x2f0536,_0x1677bf={}){const _0x340362=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48d867(_0x4e3926=>{let _0x155c95=('string'==typeof _0x2f0536?_0x340362['findByTextCallback'](_0x2f0536,_0x1677bf):_0x2f0536)(_0x4e3926);Array['isArray'](_0x155c95)&&(_0x155c95={'results':_0x155c95,'searchText':'string'==typeof _0x2f0536?_0x2f0536:''});const _0x12cf01=_0x155c95['results']['filter'](_0x1f5555=>!0x1===this['_isInDeletionRange'](_0x1f5555,_0x4e3926['item']));return{..._0x155c95,'results':_0x12cf01};},_0x1677bf);}['_isInDeletionRange'](_0x51796c,_0x4aa644){const _0x329da9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['start']),this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['end']));for(const _0x2d6f9f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x329da9['getIntersection'](_0x2d6f9f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x559983{['afterInit'](){const _0x4c7f5d=this['editor']['locale'],_0x49ec8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x30d7d1,commandName:_0x526404}of eo)this['editor']['plugins']['has'](_0x30d7d1)&&(_0x49ec8d['enableDefaultAttributesIntegration'](_0x526404),_0x49ec8d['registerInlineAttribute'](_0x526404));_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c7f5d,'FORMAT_FONT_SIZE')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c7f5d,'FORMAT_FONT_FAMILY')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c7f5d,'FORMAT_FONT_COLOR')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c7f5d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21206a=this['editor'],_0x1a36aa=_0x21206a['locale'];_0x21206a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404109=>{const _0x5b47ec=_0x1a36aa['t'];if('formatInline'!=_0x404109['type'])return;const {data:_0x281a6b}=_0x404109;if(null!=_0x281a6b){if('fontSize'==_0x281a6b['commandName']){const _0x11dde8=_0x281a6b['commandParams'][0x0]['value'];if(_0x11dde8){const _0x4d2d72=_0x5b47ec(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xdf8158=>_0xdf8158['model']==_0x11dde8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20size:*\x20%0',_0x4d2d72)};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x281a6b['commandName']){const _0x118fe5=_0x281a6b['commandParams'][0x0]['value'];return _0x118fe5?{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20family:*\x20%0',_0x118fe5)}:{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x281a6b['commandName']){const _0x50f175=_0x281a6b['commandParams'][0x0]['value'];if(_0x50f175){const _0x9fe841=_0x542ec3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516e7a=>_0x516e7a['model']==_0x50f175);let _0x6ee6db=_0x50f175,_0x3d6a78='';return _0x9fe841&&(_0x6ee6db=_0x9fe841['label'],_0x3d6a78=_0x5b47ec(_0x6ee6db)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20color:*\x20%0',_0x3d6a78)['trim'](),'color':{'value':_0x50f175,'title':_0x3d6a78||_0x6ee6db}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x281a6b['commandName']){const _0x217e6f=_0x281a6b['commandParams'][0x0]['value'];if(_0x217e6f){const _0x3591b=_0x542ec3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47ee41=>_0x47ee41['model']==_0x217e6f);let _0x43adcc=_0x217e6f,_0x45b202='';return _0x3591b&&(_0x43adcc=_0x3591b['label'],_0x45b202=_0x5b47ec(_0x43adcc)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x45b202)['trim'](),'color':{'value':_0x217e6f,'title':_0x45b202||_0x43adcc}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x559983{['afterInit'](){const _0x5412cd=this['editor'],_0x2eb79a=_0x5412cd['plugins']['get']('TrackChangesEditing'),_0x4d6604=_0x5412cd['commands']['get']('copyFormat'),_0x303d30=_0x5412cd['commands']['get']('pasteFormat');_0x4d6604&&_0x303d30&&(_0x2eb79a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2eb79a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3dfe22=this['editor'],_0x482f67=_0x3dfe22['locale'];_0x3dfe22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2944ac=>{if('formatBlock'!=_0x2944ac['type']&&'formatInline'!=_0x2944ac['type'])return;const {data:_0x16966b}=_0x2944ac;if(_0x16966b&&'pasteFormat'===_0x16966b['commandName']){const _0x3e88fd=[],_0x4165a8=_0x16966b['commandParams'][0x0];for(const [_0x151537,_0x36749d]of Object['entries'](_0x4165a8))_0x3e88fd['push'](ro(_0x3dfe22,_0x151537,_0x36749d));return _0x3e88fd['length']?{'type':'format','content':o(_0x482f67,'*Set\x20format\x20to:*\x20%0',_0x3e88fd['join'](',\x20'))}:{'type':'format','content':o(_0x482f67,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2a015d,_0x5061db,_0x221795){const _0x11d8a2=_0x2a015d['locale']['t'],_0x31eda1=_0x5061db['split'](/(?=[A-Z])/)['join']('\x20'),_0x483611=_0x11d8a2(_0x31eda1['charAt'](0x0)['toUpperCase']()+_0x31eda1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x221795)return _0x483611;if('fontColor'===_0x5061db||'fontBackgroundColor'===_0x5061db){const _0xc31f7f=_0x542ec3(_0x2a015d['config']['get']('fontColor.colors'))['find'](_0x6dec29=>_0x6dec29['model']==_0x221795);return _0x483611+'\x20('+(_0xc31f7f?_0x11d8a2(_0xc31f7f['label'])['toLowerCase']():_0x221795)+')';}if('fontSize'===_0x5061db&&isNaN(parseFloat(_0x221795))){const _0x18e974=_0x2a015d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2a015d['config']['get']('fontSize.options'))['find'](_0x249cf6=>_0x249cf6['model']==_0x221795);return _0x483611+'\x20('+(_0x18e974?_0x11d8a2(_0x18e974['title'])['toLowerCase']():_0x221795)+')';}return _0x483611+'\x20('+_0x221795+')';}class Z extends _0x559983{['_headingOptions'];['afterInit'](){const _0x5bfe97=this['editor'];if(!_0x5bfe97['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bfe97['config']['get']('heading.options');const _0x41bca0=_0x5bfe97['locale'],_0x37b564=_0x5bfe97['plugins']['get']('TrackChangesEditing');_0x37b564['enableDefaultAttributesIntegration']('heading');for(const _0x1607e6 of this['_headingOptions'])'paragraph'!=_0x1607e6['model']&&_0x37b564['descriptionFactory']['registerElementLabel'](_0x1607e6['model'],_0x3f16fe=>{const _0x452d87=this['_getHeadingLevel'](_0x1607e6['model']);return null!==_0x452d87?_0x1e2c2b(_0x3f16fe,_0x452d87):_0x454745(_0x3f16fe,_0x1607e6['title']);});function _0x1e2c2b(_0x254c70,_0x691e48){return o(_0x41bca0,'ELEMENT_HEADING',[_0x254c70,_0x691e48]);}function _0x454745(_0x5a7d5a,_0x119a2d){return o(_0x41bca0,'ELEMENT_HEADING_CUSTOM',[_0x5a7d5a,_0x119a2d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1507d2=this['editor'],_0x57b68b=_0x1507d2['locale'];function _0x58dc85(_0x1b0581,_0x469aa3){return o(_0x57b68b,'ELEMENT_HEADING_CUSTOM',[_0x1b0581,_0x469aa3]);}_0x1507d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2382=>{if('formatBlock'!=_0x1b2382['type'])return;const {data:_0x206c15}=_0x1b2382;if(_0x206c15&&'heading'==_0x206c15['commandName']){const _0x43c318=_0x206c15['commandParams'][0x0]['value'],_0x399c10=this['_getHeadingLevel'](_0x43c318);if(null!==_0x399c10)return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',(_0x39de28=0x1,_0x4c7f0a=_0x399c10,o(_0x57b68b,'ELEMENT_HEADING',[_0x39de28,_0x4c7f0a])))};const _0x2081a9=this['_headingOptions']['find'](_0x569e15=>_0x569e15['model']===_0x43c318)['title'];return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',_0x58dc85(0x1,_0x2081a9))};}var _0x39de28,_0x4c7f0a;});}['_getHeadingLevel'](_0x2d75d6){const _0xdeef9f=_0x2d75d6['match'](/^heading(\d+)/);if(_0xdeef9f)return _0xdeef9f[0x1];const _0x14e42f=this['_headingOptions']?.['find'](_0x4ffa39=>_0x4ffa39['model']==_0x2d75d6);if(_0x14e42f&&_0x14e42f['view']){const _0x4cf6a5=_0x14e42f['view'],_0x174857=(_0x4cf6a5['name']??_0x4cf6a5)['match'](/^h(\d+)/);if(_0x174857)return _0x174857[0x1];}return null;}}class tt extends _0x559983{['afterInit'](){const _0x50a792=this['editor'];if(!_0x50a792['plugins']['has']('HighlightEditing'))return;const _0x4fbc0e=_0x50a792['plugins']['get']('TrackChangesEditing'),_0x4e1663=_0x50a792['locale'];_0x4fbc0e['enableDefaultAttributesIntegration']('highlight'),_0x4fbc0e['registerInlineAttribute']('highlight'),_0x4fbc0e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e1663,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c576c=this['editor'],_0x2fed5f=_0x3c576c['locale'];_0x3c576c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274dc7=>{if('formatInline'!=_0x274dc7['type'])return;const {data:_0x216ba0}=_0x274dc7;if(_0x216ba0&&'highlight'==_0x216ba0['commandName']){const _0x17fb4c=_0x2fed5f['t'],_0x5540bd=_0x216ba0['commandParams'][0x0]['value'];if(_0x5540bd){const _0x17b41f=_0x3c576c['config']['get']('highlight.options')['find'](_0x70e6a5=>_0x70e6a5['model']==_0x5540bd),_0x479322=_0x17fb4c(_0x17b41f['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fed5f,'*Set\x20highlight:*\x20%0',_0x479322),'color':{'value':_0x17b41f['color'],'title':_0x17b41f['title']}};}return{'type':'format','content':o(_0x2fed5f,'*Remove\x20highlight*',o(_0x2fed5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x559983{['afterInit'](){const _0x3d6da2=this['editor'];if(!_0x3d6da2['plugins']['has']('HorizontalLineEditing'))return;_0x3d6da2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x406983=_0x3d6da2['plugins']['get']('TrackChangesEditing'),_0x4c9a14=_0x3d6da2['locale'];_0x406983['descriptionFactory']['registerElementLabel']('horizontalLine',_0x491ff0=>o(_0x4c9a14,'ELEMENT_HORIZONTAL_LINE',_0x491ff0)),_0x3d6da2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ec920,{writer:_0x44a883,options:_0x5bafb6})=>{if(!_0x5bafb6['showSuggestionHighlights'])return null;const _0x348e42=_0x44a883['createContainerElement']('div'),_0x560ecb=_0x44a883['createEmptyElement']('hr');return _0x44a883['addClass']('ck-horizontal-line',_0x348e42),_0x44a883['insert'](_0x44a883['createPositionAt'](_0x348e42,0x0),_0x560ecb),_0x348e42;},'converterPriority':'high'});}}class nt extends _0x559983{['afterInit'](){const _0x493135=this['editor'];if(!_0x493135['plugins']['has']('HtmlEmbed'))return;const _0x5326ac=_0x493135['plugins']['get']('TrackChangesEditing'),_0xf10b7f=_0x493135['locale'];_0x5326ac['descriptionFactory']['registerElementLabel']('rawHtml',_0xced4a8=>o(_0xf10b7f,'ELEMENT_HTML_EMBED',_0xced4a8)),_0x5326ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5326ac['registerBlockAttribute']('value'),_0x5326ac['descriptionFactory']['registerDescriptionCallback'](_0xb477a1=>{if('attribute'!=_0xb477a1['type'])return;const {data:_0x4ad33c}=_0xb477a1;if(_0x4ad33c&&'value'==_0x4ad33c['key']&&_0xb477a1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x17fc18=o(_0xf10b7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf10b7f,'*Change\x20%0\x20content*',_0x17fc18)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccab9=this['editor'],_0x5bd46d=_0x4ccab9['locale'];_0x4ccab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ada16=>{if('formatBlock'!=_0x5ada16['type'])return;const {data:_0x309805}=_0x5ada16;if(_0x309805&&'htmlEmbed'==_0x309805['commandName']){const _0x30e7fd=o(_0x5bd46d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5bd46d,'*Change\x20%0\x20content*',_0x30e7fd)};}});}}class et extends _0x559983{['afterInit'](){const _0x32d569=this['editor'];if(!_0x32d569['plugins']['has']('ImageEditing'))return;const _0x31b76c=_0x32d569['plugins']['get']('TrackChangesEditing'),_0x284fd2=_0x32d569['plugins']['get']('ImageUtils'),_0x4cab40=_0x32d569['locale'];_0x31b76c['enableCommand']('insertImage'),_0x31b76c['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e3ad6=>o(_0x4cab40,'ELEMENT_IMAGE',_0x1e3ad6)),_0x31b76c['descriptionFactory']['registerElementLabel']('imageInline',_0x2edb7e=>o(_0x4cab40,'ELEMENT_INLINE_IMAGE',_0x2edb7e)),_0x31b76c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4cab40,'ELEMENT_CAPTION')),_0x32d569['plugins']['has']('ImageUploadEditing')&&_0x31b76c['enableCommand']('uploadImage'),_0x32d569['plugins']['has']('ImageBlockEditing')&&_0x32d569['plugins']['has']('ImageInlineEditing')&&(_0x31b76c['enableCommand']('imageTypeInline',(_0x18a7a3,_0x5b0b5b)=>{const _0x24ac75=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']);_0x32d569['model']['change'](()=>{_0x31b76c['markBlockFormat'](_0x24ac75,{'commandName':'imageTypeInline','commandParams':[_0x5b0b5b]},[],'convertBlockImageToInline');});}),_0x31b76c['enableCommand']('imageTypeBlock',(_0x57d90c,_0x31ccb5)=>{_0x32d569['model']['change'](_0x23b5c9=>{let _0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x43c4e3=_0x333b95['fromPosition'](_0x2a326d['start'],'toPrevious'),_0xacf220=_0x333b95['fromPosition'](_0x2a326d['end'],'toNext');_0x31b76c['forceDefaultExecution'](()=>_0x57d90c(_0x31ccb5)),_0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x51cc58=_0x23b5c9['createRange'](_0x43c4e3,_0xacf220);_0x43c4e3['detach'](),_0xacf220['detach'](),_0x31b76c['markBlockFormat'](_0x1ae1fe,{'commandName':'imageTypeInline','commandParams':[_0x31ccb5]},[],'convertInlineImageToBlock'),_0x51cc58['start']['isBefore'](_0x2a326d['start'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x51cc58['start'],_0x2a326d['start']),'convertInlineImageToBlock'),_0x2a326d['end']['isBefore'](_0x51cc58['end'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x2a326d['end'],_0x51cc58['end']),'convertInlineImageToBlock');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31b76c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xfa7d66])=>{const _0x3b3cc9=_0x31b76c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xda88bd=_0xfa7d66['start'],_0x245333=_0xfa7d66['end'];const _0x7ca3f0=_0x32d569['model']['schema']['getNearestSelectionRange'](_0xda88bd,'backward'),_0x588bb1=_0x32d569['model']['schema']['getNearestSelectionRange'](_0x245333,'forward');_0x7ca3f0['isCollapsed']&&(_0xda88bd=_0x7ca3f0['start']),_0x588bb1['isCollapsed']&&(_0x245333=_0x588bb1['end']),_0x3b3cc9([_0x32d569['model']['createRange'](_0xda88bd,_0x245333)]);}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18d5bf),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18d5bf)),_0x32d569['plugins']['has']('ImageCaptionEditing')&&(_0x31b76c['enableCommand']('toggleImageCaption',(_0x3d5fad,_0x18425d)=>{const _0xa5ca53=_0x32d569['plugins']['get']('ImageCaptionUtils');let _0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715);_0x32d569['model']['change'](()=>{if(_0x4f3e30)return void _0x31b76c['markDeletion'](_0x32d569['model']['createRangeOn'](_0x4f3e30));const _0x250b2e=_0x284fd2['isBlockImage'](_0x4e1715);_0x3d5fad(_0x18425d),_0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715),_0x31b76c['markInsertion'](_0x32d569['model']['createRangeOn'](_0x4f3e30),_0x250b2e?null:'imageCaption');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18d5bf));const _0x4dfb4f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x208dd8(_0x399d3c,_0xd32e71){const _0x1522c2=_0x4dfb4f['findIndex'](({type:_0x1b89a7,subType:_0x21f0f4})=>_0x399d3c['type']==_0x1b89a7&&_0x399d3c['subType']==_0x21f0f4),_0x14b4f0=_0x4dfb4f['findIndex'](({type:_0x25ff91,subType:_0x15856b})=>_0xd32e71['type']==_0x25ff91&&_0xd32e71['subType']==_0x15856b);if(_0x1522c2<0x0||_0x14b4f0<0x0)return!0x1;const _0x2cb6e3=_0x399d3c['getFirstRange'](),_0x20c656=_0xd32e71['getFirstRange']();if((0x0==_0x1522c2||0x1==_0x1522c2)&&0x2==_0x14b4f0&&_0x2cb6e3['isIntersecting'](_0x20c656))return!0x0;if(0x2==_0x1522c2&&0x3==_0x14b4f0){const _0x13ddc8=_0x31b76c['_findSuggestions'](_0x2cb6e3,'insertion')['filter'](({suggestion:_0x483396,meta:_0x44bfbc})=>_0x44bfbc['isOwn']&&'convertInlineImageToBlock'==_0x483396['subType']);if(_0x13ddc8['length']>0x1&&_0x20c656['end']['isEqual'](_0x2cb6e3['start']))return!0x0;if(0x1==_0x13ddc8['length']&&(_0x2cb6e3['start']['isEqual'](_0x20c656['end'])||_0x2cb6e3['end']['isEqual'](_0x20c656['start'])))return!0x0;}if(0x3==_0x1522c2&&0x3==_0x14b4f0&&_0x2cb6e3['start']['isBefore'](_0x20c656['start'])){const _0x493137=_0x2cb6e3['end']['nodeAfter'],_0x55c34c=_0x20c656['start']['nodeBefore'];return _0x284fd2['isBlockImage'](_0x493137)&&_0x493137===_0x55c34c;}return!0x1;}function _0x18d5bf(_0x3a5a75,_0x194dc8){return _0x208dd8(_0x3a5a75,_0x194dc8)?[_0x3a5a75,_0x194dc8]:_0x208dd8(_0x194dc8,_0x3a5a75)?[_0x194dc8,_0x3a5a75]:null;}_0x32d569['plugins']['has']('ImageResize')&&(_0x31b76c['enableDefaultAttributesIntegration']('resizeImage'),_0x31b76c['registerBlockAttribute']('resizedWidth'),_0x31b76c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4cab40,'FORMAT_IMAGE_SIZE'))),_0x32d569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x31b76c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31b76c['registerBlockAttribute']('alt')),_0x32d569['plugins']['has']('PictureEditing')&&(_0x31b76c['registerBlockAttribute']('sources'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x1cb923=>{if('attribute'!=_0x1cb923['type'])return;const {data:_0x47c625}=_0x1cb923;return _0x47c625&&'sources'==_0x47c625['key']?{'type':'format','content':''}:void 0x0;})),_0x32d569['plugins']['has']('ImageSizeAttributes')&&(_0x31b76c['registerBlockAttribute']('width'),_0x31b76c['registerBlockAttribute']('height'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x32d4d5=>{if('attribute'!=_0x32d4d5['type'])return;const {data:_0x886710}=_0x32d4d5;return!_0x886710||'width'!=_0x886710['key']&&'height'!=_0x886710['key']?void 0x0:{'type':'format','content':''};})),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x57f211=>{if(!!_0x4dfb4f['find'](({type:_0x374e02,subType:_0x578e22})=>_0x57f211['type']==_0x374e02&&_0x57f211['subType']==_0x578e22))return _0x57f211['previous']?{}:void 0x0;}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x410473=>{if('insertion'==_0x410473['type']||'deletion'==_0x410473['type']){const _0x24a2a4=_0x410473['getContainedElement']();if(_0x24a2a4&&_0x24a2a4['is']('element','caption'))return{'type':'insertion'==_0x410473['type']?'addObject':'removeObject','element':_0x24a2a4,'quantity':0x1};}}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x330054=>'formatBlock'==_0x330054['type']&&'convertInlineImageToBlock'==_0x330054['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x330054['type']&&'convertBlockImageToInline'==_0x330054['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x49e103=>{if('attribute'!=_0x49e103['type'])return;const {data:_0x255b72}=_0x49e103;if(!_0x255b72||'alt'!=_0x255b72['key'])return;const _0x9596bc=_0x255b72['newValue'];return _0x9596bc?{'type':'format','content':o(_0x4cab40,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9596bc+'\x22')}:{'type':'format','content':o(_0x4cab40,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576560=this['editor'],_0x10268b=_0x576560['locale'];_0x576560['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504461=>{if('formatBlock'!=_0x504461['type']&&'formatInline'!=_0x504461['type'])return;const {data:_0x1d83fe}=_0x504461;if(_0x1d83fe){if('imageTextAlternative'==_0x1d83fe['commandName']){const _0x4a93f7=_0x1d83fe['commandParams'][0x0]['newValue'];return _0x4a93f7?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a93f7+'\x22')}:{'type':'format','content':o(_0x10268b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d83fe['commandName']){const _0x2103d9=_0x1d83fe['commandParams'][0x0]['width'];return _0x2103d9?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20width:*\x20%0',_0x2103d9)}:{'type':'format','content':o(_0x10268b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a8128=this['editor']['locale'],_0x17f70c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17f70c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17f70c['registerBlockAttribute']('src'),_0x17f70c['descriptionFactory']['registerDescriptionCallback'](_0x92e2b6=>{if('attribute'!=_0x92e2b6['type'])return;const {data:_0x1d1ab8}=_0x92e2b6;return _0x1d1ab8&&'src'==_0x1d1ab8['key']?_0x1d1ab8['newValue']&&_0x1d1ab8['oldValue']?{'type':'format','content':o(_0x3a8128,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d7765=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x627f65=this['editor'],_0x3a5401=_0x627f65['locale'];_0x627f65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c286b=>{if('formatBlock'!=_0x3c286b['type']&&'formatInline'!=_0x3c286b['type'])return;const {data:_0x338f17}=_0x3c286b;if(!_0x338f17||'replaceImageSource'!=_0x338f17['commandName'])return;return{'type':'format','content':o(_0x3a5401,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x559983{['afterInit'](){const _0x59bd74=this['editor'];if(!_0x59bd74['plugins']['has']('ImageStyleEditing'))return;const _0x48918e=_0x59bd74['plugins']['get']('TrackChangesEditing'),_0x216671=_0x59bd74['plugins']['get']('ImageUtils'),_0x599e5c={};_0x48918e['enableCommand']('imageStyle',(_0x5a48a5,_0x29b1cb)=>{const _0xf6e101=_0x59bd74['plugins']['get']('Users')['me'],_0x18c3fb=_0x59bd74['commands']['get']('imageStyle');let _0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x55d718=_0x18c3fb['value'];if(_0x55d718==_0x29b1cb['value'])return;const _0xf0ab1b={'commandName':'imageStyle','commandParams':[_0x29b1cb],'formatGroupId':_0x20cf05()};_0x59bd74['model']['change'](()=>{if(_0x48918e['getSuggestions']()['filter'](_0x13f4dc=>_0x13f4dc['isInContent']&&_0xf6e101==_0x13f4dc['author']&&('formatBlock'==_0x13f4dc['type']||'formatInline'==_0x13f4dc['type'])&&('imageStylePreApply'==_0x13f4dc['subType']||'imageStylePostApply'==_0x13f4dc['subType'])&&_0x13f4dc['getFirstRange']()['isEqual'](_0x3d15ba))['forEach'](_0x147013=>_0x48918e['discardSuggestion'](_0x147013['head'])),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x18c3fb['refresh'](),_0x59bd74['commands']['get']('imageTypeInline')['refresh'](),_0x59bd74['commands']['get']('imageTypeBlock')['refresh'](),_0x55d718=_0x18c3fb['value'],_0x55d718!=_0x29b1cb['value'])return _0x216671['isInlineImage'](_0x284857)&&_0x18c3fb['shouldConvertImageType'](_0x29b1cb['value'],_0x284857)?(_0x5a48a5({..._0x29b1cb,'setImageSizes':!0x1}),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),void _0x48918e['markBlockFormat'](_0x284857,{..._0xf0ab1b,'commandReversedParams':[{'value':_0x55d718||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x216671['isBlockImage'](_0x284857)?_0x48918e['markBlockFormat'](_0x284857,_0xf0ab1b,[],'imageStylePostApply'):_0x48918e['markInlineFormat'](_0x3d15ba,_0xf0ab1b,'imageStylePostApply'));});});for(const _0x2f5e76 of _0x59bd74['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x599e5c[_0x2f5e76['name']]=_0x2f5e76['title']['toLowerCase']();_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20906d])=>{_0x216671['setImageNaturalSizeAttributes'](_0x20906d['getContainedElement']());}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1611a8,_0x25e6a4)=>{_0x48918e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1611a8,{'commandName':_0x25e6a4['commandName'],'commandParams':_0x25e6a4['commandReversedParams']});}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21998c,_0x60bb42){if(_0xfa874e(_0x21998c,_0x60bb42))return[_0x21998c,_0x60bb42];if(_0xfa874e(_0x60bb42,_0x21998c))return[_0x60bb42,_0x21998c];return null;});const _0x321089=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa874e(_0x2014de,_0x263f3b){const _0xbb4bfe=_0x321089['findIndex'](({type:_0x4ecb59,subType:_0x22b121})=>_0x2014de['type']==_0x4ecb59&&_0x2014de['subType']==_0x22b121),_0x8fe3b1=_0x321089['findIndex'](({type:_0x1f48be,subType:_0x30e69c})=>_0x263f3b['type']==_0x1f48be&&_0x263f3b['subType']==_0x30e69c);if(_0xbb4bfe<0x0||_0x8fe3b1<0x0)return!0x1;const _0x1d755c=_0x2014de['getFirstRange'](),_0x221c94=_0x263f3b['getFirstRange']();if((0x0==_0xbb4bfe||0x1==_0xbb4bfe)&&0x2==_0x8fe3b1&&_0x1d755c['isIntersecting'](_0x221c94))return!0x0;if(0x2==_0xbb4bfe&&0x3==_0x8fe3b1){const _0xa18bb=_0x48918e['_findSuggestions'](_0x1d755c,'insertion')['filter'](({suggestion:_0x4ad890,meta:_0x120e20})=>_0x120e20['isOwn']&&'convertInlineImageToBlock'==_0x4ad890['subType']);if(_0xa18bb['length']>0x1&&_0x221c94['end']['isEqual'](_0x1d755c['start']))return!0x0;if(0x1==_0xa18bb['length']&&(_0x1d755c['start']['isEqual'](_0x221c94['end'])||_0x1d755c['end']['isEqual'](_0x221c94['start'])))return!0x0;}if(0x3==_0xbb4bfe&&0x3==_0x8fe3b1&&_0x1d755c['start']['isBefore'](_0x221c94['start'])){const _0x455869=_0x1d755c['end']['nodeAfter'],_0x33b733=_0x221c94['start']['nodeBefore'];return _0x216671['isBlockImage'](_0x455869)&&_0x455869===_0x33b733;}return!0x1;}_0x59bd74['model']['document']['registerPostFixer'](()=>{let _0x159f23=!0x1;const _0xbe37b3=Array['from'](_0x59bd74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x448108,data:_0x3492d4}of _0xbe37b3){const {group:_0x3f2ec9,type:_0xbaaf74,subType:_0x31f0c2,id:_0x5bee91}=_0x48918e['_splitMarkerName'](_0x448108);if('suggestion'==_0x3f2ec9&&_0x48918e['hasSuggestion'](_0x5bee91)){if('formatBlock'==_0xbaaf74&&('imageStylePreApply'==_0x31f0c2||'imageStylePostApply'==_0x31f0c2)){const _0x2715e1=_0x48918e['getSuggestion'](_0x5bee91);if(_0x3492d4['newRange']){const _0x224dfc=_0x2715e1['getFirstRange']()['getContainedElement']();if(_0x216671['isBlockImage'](_0x224dfc))continue;_0x48918e['discardSuggestion'](_0x2715e1),_0x159f23=!0x0;}}if('insertion'==_0xbaaf74&&'imageCaption'==_0x31f0c2&&!_0x3492d4['newRange']){const _0x28e501=_0x48918e['getSuggestion'](_0x5bee91);_0x28e501['next']&&_0x28e501['next']['isInContent']&&(_0x48918e['discardSuggestion'](_0x28e501['next']),_0x159f23=!0x0);}}}return _0x159f23;}),this['_registerLegacyDescription'](_0x599e5c);}['_registerLegacyDescription'](_0x18ce48){const _0x13ec39=this['editor'],_0x54009e=_0x13ec39['locale'];_0x13ec39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d131=>{if('formatBlock'!=_0x10d131['type']&&'formatInline'!=_0x10d131['type'])return;const {data:_0x17ca4c}=_0x10d131;if(!_0x17ca4c||'imageStyle'!=_0x17ca4c['commandName'])return;const _0x448334=_0x17ca4c['commandParams'][0x0]['value'];return _0x2bf2bc('side'===_0x448334?o(_0x54009e,'FORMAT_SIDE_IMAGE'):_0x18ce48[_0x448334]||_0x448334);function _0x2bf2bc(_0x9a7a4a){return{'type':'format','content':o(_0x54009e,'*Format:*\x20%0',_0x9a7a4a)};}});}}class rt extends _0x559983{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d933e){super(_0x5d933e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b9419=this['editor'],_0x234e55=_0x4b9419['commands']['get']('importWord'),_0x146b1a=_0x4b9419['commands']['get']('trackChanges');_0x234e55&&(_0x234e55['on']('execute',(_0x3e927b,[,_0x594d9c])=>{this['_trackChangesValueDuringImport']=_0x146b1a['value'],_0x594d9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x234e55,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x234e55,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x146b1a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b9419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x552960,_0x425eb8){const {suggestions:_0x378efd}=_0x425eb8,_0x3fa348=this['editor']['commands']['get']('trackChanges'),_0x180f69=_0x3fa348['value'];this['_trackChangesValueDuringImport']!==_0x180f69&&(_0x3fa348['execute'](),this['_trackChangesExecuted']=!0x0),_0x378efd&&_0x378efd['forEach'](({id:_0xb2cd56,type:_0x33dedf,author:_0x4f2aba,created_at:_0x2bce55})=>{const _0x1c66f2={'id':_0xb2cd56,'type':_0x33dedf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f2aba,'createdAt':_0x2bce55?new Date(_0x2bce55):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c66f2);});}}class at extends _0x559983{['afterInit'](){const _0xb95243=this['editor'],_0x1c2500=_0xb95243['plugins']['get']('TrackChangesEditing');if(_0xb95243['plugins']['has']('IndentEditing')&&(_0x1c2500['enableCommand']('indent'),_0x1c2500['enableCommand']('outdent')),_0xb95243['plugins']['has']('IndentBlock')){for(const _0x36285b of['indentBlock','outdentBlock'])_0x1c2500['enableDefaultAttributesIntegration'](_0x36285b);}const _0x450f78=_0xb95243['locale'];_0x1c2500['registerBlockAttribute']('blockIndent'),_0x1c2500['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x450f78,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ab84e=this['editor'],_0x455908=_0x4ab84e['locale'],_0x5857c9=_0x4ab84e['plugins']['get']('TrackChangesEditing');_0x5857c9['descriptionFactory']['registerDescriptionCallback'](_0xf82e15=>{if('formatBlock'!=_0xf82e15['type'])return;const {data:_0x429279}=_0xf82e15;if(!_0x429279)return;if('indentBlock'!=_0x429279['commandName']&&'outdentBlock'!=_0x429279['commandName'])return;const _0x46be02=_0xf82e15['getItems']()[0x0],_0x5bd58a=_0x5857c9['descriptionFactory']['getItemLabel'](_0x46be02);return'indentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Indent:*\x20%0',_0x5bd58a)}:'outdentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Outdent:*\x20%0',_0x5bd58a)}:void 0x0;});}}class ct extends _0x559983{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x559983{['afterInit'](){const _0x56ba5d=this['editor'];if(!_0x56ba5d['plugins']['has']('LinkEditing'))return;const _0x455de7=_0x56ba5d['plugins']['get']('TrackChangesEditing'),_0x11e40c=_0x56ba5d['commands']['get']('link');_0x455de7['enableDefaultAttributesIntegration']('link'),_0x455de7['enableDefaultAttributesIntegration']('unlink'),_0x455de7['registerInlineAttribute']('linkHref');for(const _0x309bc0 of _0x11e40c['manualDecorators'])_0x455de7['registerInlineAttribute'](_0x309bc0['id']),_0x455de7['descriptionFactory']['registerAttributeLabel'](_0x309bc0['id'],'link\x20('+_0x309bc0['label']['toLowerCase']()+')');_0x455de7['descriptionFactory']['registerDescriptionCallback'](_0x34f0a4=>{if('attribute'!=_0x34f0a4['type'])return;const {data:_0x267cd7}=_0x34f0a4;if(!_0x267cd7||'linkHref'!=_0x267cd7['key'])return;const _0x931d38=_0x267cd7['newValue'],_0x450060=_0x56ba5d['locale'];return{'type':'format','content':null==_0x931d38?o(_0x450060,'*Remove\x20link*'):o(_0x450060,'*Set\x20link:*\x20%0','\x22'+_0x931d38+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485be0=this['editor'],_0x324eff=_0x485be0['locale'];_0x485be0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b01d6=>{if('formatInline'!=_0x3b01d6['type'])return;const {data:_0x49188b}=_0x3b01d6;if(_0x49188b){if('link'==_0x49188b['commandName']){const _0x4847a2=_0x49188b['commandParams'][0x0];return{'type':'format','content':o(_0x324eff,'*Set\x20link:*\x20%0','\x22'+_0x4847a2+'\x22')};}return'unlink'==_0x49188b['commandName']?{'type':'format','content':o(_0x324eff,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x559983{['afterInit'](){const _0x56fa0c=this['editor'],_0x5dcf85=_0x56fa0c['locale'];if(!_0x56fa0c['plugins']['has']('LegacyListEditing'))return;const _0x3001b0=_0x56fa0c['plugins']['get']('TrackChangesEditing'),_0x2209bd=_0x56fa0c['plugins']['has']('LegacyTodoListEditing');function _0x235c03(_0x164912){return()=>{const _0x40399c=_0x56fa0c['model']['document']['selection'],_0x15f023=_0x56fa0c['commands']['get'](_0x164912);if(_0x15f023['value'])return void _0x56fa0c['execute']('paragraph',{});const _0x29aa39=_0x164912['slice'](0x0,-0x4),_0x970162=function(_0x461742,_0x1e6d8a,_0x27b306){let _0x2c5896=Array['from'](_0x461742)['filter'](_0x1239fd=>function(_0x4fff23,_0x58d8c5){return _0x58d8c5['checkChild'](_0x4fff23['parent'],'listItem')&&!_0x58d8c5['isObject'](_0x4fff23);}(_0x1239fd,_0x27b306));_0x2c5896=_0x2c5896['filter'](_0x50cd51=>!_0x50cd51['is']('element','listItem')||_0x50cd51['getAttribute']('listType')!=_0x1e6d8a);const _0x44059a=new Set();for(const _0x59dd38 of _0x2c5896)_0x59dd38['is']('element','listItem')?_0x44059a['add'](Le(_0x59dd38)):_0x44059a['add'](_0x59dd38);return Array['from'](_0x44059a);}(_0x40399c['getSelectedBlocks'](),_0x29aa39,_0x56fa0c['model']['schema']);_0x56fa0c['model']['change'](()=>{for(const _0x337255 of _0x970162)_0x3001b0['markBlockFormat'](_0x337255,{'commandName':_0x164912,'commandParams':[{'forceValue':!_0x15f023['value']}],'formatGroupId':'blockName'},Ee(_0x337255));});};}function _0x5785e1(_0x12c935){return()=>{const _0x33cd06=function(_0x3651d6){let _0x32ab17=Array['from'](_0x3651d6);const _0xf0470=_0x32ab17['findIndex'](_0x366d85=>'listItem'!=_0x366d85['name']);return _0xf0470>-0x1&&(_0x32ab17=_0x32ab17['slice'](0x0,_0xf0470)),_0x32ab17;}(_0x56fa0c['model']['document']['selection']['getSelectedBlocks']()),_0x16be30=_0x56fa0c['model']['createRange'](_0x56fa0c['model']['createPositionAt'](_0x33cd06[0x0],'before'),_0x56fa0c['model']['createPositionAt'](_0x33cd06[_0x33cd06['length']-0x1],'end'));_0x56fa0c['model']['change'](()=>{_0x3001b0['markBlockFormat'](_0x16be30,{'commandName':_0x12c935,'commandParams':[],'formatGroupId':'listIndent'},function(_0x502a58){const _0x48482d=new Set();for(const _0x170032 of _0x502a58){let _0x14ef18=_0x170032['nextSibling'];for(;_0x14ef18&&_0x14ef18['getAttribute']('listIndent')>_0x170032['getAttribute']('listIndent');)_0x48482d['add'](_0x14ef18),_0x14ef18=_0x14ef18['nextSibling'];}return Array['from'](_0x48482d);}(_0x33cd06));});};}_0x3001b0['enableCommand']('numberedList',_0x235c03('numberedList')),_0x3001b0['enableCommand']('bulletedList',_0x235c03('bulletedList')),_0x2209bd&&_0x3001b0['enableCommand']('todoList',_0x235c03('todoList')),_0x3001b0['enableCommand']('indentList',_0x5785e1('indentList')),_0x3001b0['enableCommand']('outdentList',_0x5785e1('outdentList')),_0x2209bd&&_0x3001b0['enableCommand']('checkTodoList',()=>{const _0x316067=_0x56fa0c['commands']['get']('checkTodoList'),_0x4ea747=Array['from'](_0x316067['_selectedElements']);_0x4ea747['filter'](_0x2c187c=>_0x2c187c['getAttribute']('todoListChecked')!=_0x316067['value']),_0x56fa0c['model']['change'](()=>{for(const _0x32fe43 of _0x4ea747)_0x3001b0['markBlockFormat'](_0x32fe43,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x316067['value']}]});});}),_0x3001b0['descriptionFactory']['registerElementLabel']('listItem',_0x2dc31b=>o(_0x5dcf85,'ELEMENT_LIST_ITEM',_0x2dc31b)),_0x3001b0['descriptionFactory']['registerDescriptionCallback'](_0x4888cb=>{if('formatBlock'!=_0x4888cb['type']&&'formatInline'!=_0x4888cb['type'])return;const {data:_0x226935}=_0x4888cb;if(_0x226935){if('numberedList'==_0x226935['commandName']||'bulletedList'==_0x226935['commandName']||'todoList'==_0x226935['commandName'])switch(_0x226935['commandName']['replace']('List','')){case'bulleted':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_TODO_LIST'));}if('indentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Indent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Outdent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x226935['commandName'])return _0x226935['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dcf85,'*Check\x20item*')}:{'type':'format','content':o(_0x5dcf85,'*Uncheck\x20item*')};}function _0x75bbd8(_0x66acff){return{'type':'format','content':o(_0x5dcf85,'*Change\x20to:*\x20%0',_0x66acff)};}});}}function Le(_0x498e0f){const _0xd4888e=_0x498e0f['getAttribute']('listIndent');if(0x0==_0xd4888e)return _0x498e0f;let _0x39d32a=_0x498e0f;for(;_0x498e0f['previousSibling']&&_0x498e0f['previousSibling']['is']('element','listItem');){const _0x4abe34=_0x498e0f['previousSibling']['getAttribute']('listIndent');if(_0x4abe34==_0xd4888e)_0x39d32a=_0x498e0f['previousSibling'];else{if(_0x4abe34<_0xd4888e)break;}_0x498e0f=_0x498e0f['previousSibling'];}return _0x39d32a;}function Ee(_0xb6db7c){const _0x3861ca=[];if(_0xb6db7c['is']('element','listItem')&&_0xb6db7c['getAttribute']('listIndent')>0x0){let _0x40d0a9=_0xb6db7c['nextSibling'];for(;_0x40d0a9&&'listItem'==_0x40d0a9['name']&&_0x40d0a9['getAttribute']('listIndent')==_0xb6db7c['getAttribute']('listIndent');)_0x3861ca['push'](_0x40d0a9),_0x40d0a9=_0x40d0a9['nextSibling'];}return _0x3861ca;}class ht extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46f863=this['editor']['config']['get']('list.properties'),_0xa8603d=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f863['styles']&&_0xa8603d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46f863['reversed']&&_0xa8603d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46f863['startIndex']&&_0xa8603d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa8603d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3bca6b,_0x4f0819={}){const _0x29a1bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42519f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29a1bd['markMultiRangeBlockFormat'](_0x42519f,{'commandName':'listStyle','commandParams':[{'type':_0x4f0819['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x485c04,_0x2986a2={}){const _0x2291e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47414d=this['_getSuggestionBlocks'](_0x2b8fc7=>_0x2b8fc7['is']('element','listItem')&&'numbered'===_0x2b8fc7['getAttribute']('listType'));if(_0x47414d['length']<0x1)return;const _0x11d1bf=_0x47414d['map'](_0x296c93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x296c93,'before'),this['editor']['model']['createPositionAt'](_0x296c93,0x0)));this['editor']['model']['change'](()=>{_0x2291e8['markMultiRangeBlockFormat'](_0x11d1bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x2986a2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1dc0a4,_0x1992f8={}){const _0x21b50b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a4c06=this['_getSuggestionBlocks'](_0x10ce85=>_0x10ce85['is']('element','listItem')&&'numbered'===_0x10ce85['getAttribute']('listType'));if(_0x3a4c06['length']<0x1)return;const _0x28fbfe=_0x3a4c06['map'](_0xfdeb7b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfdeb7b,'before'),this['editor']['model']['createPositionAt'](_0xfdeb7b,0x0)));this['editor']['model']['change'](()=>{_0x21b50b['markMultiRangeBlockFormat'](_0x28fbfe,{'commandName':'listStart','commandParams':[{'startIndex':_0x1992f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1540ff){if('formatBlock'!=_0x1540ff['type']&&'formatInline'!=_0x1540ff['type'])return;const _0x42f350=this['editor']['locale'],{data:_0x3c886d}=_0x1540ff;if(!_0x3c886d)return;let _0x4bdcaf,_0x154b87;switch(_0x3c886d['commandName']){case'listStyle':_0x4bdcaf='*Change\x20to:*\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,o(_0x42f350,this['_getTranslationKeyForListStyle'](_0x3c886d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bdcaf=_0x3c886d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf)};break;case'listStart':_0x4bdcaf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,_0x3c886d['commandParams'][0x0]['startIndex'])};}return _0x154b87;}['_getSuggestionBlocksForListStyle'](){const _0x4072fc=this['editor']['plugins']['get']('LegacyListUtils');let _0xa8057a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa8057a[0x0]?.['is']('element','listItem')&&_0xa8057a['unshift'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa8057a[_0xa8057a['length']-0x1]?.['is']('element','listItem')&&_0xa8057a['push'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa8057a=[...new Set(_0xa8057a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa8057a=_0xa8057a['filter'](_0x3e99b4=>_0x3e99b4['is']('element','listItem'))),_0xa8057a;}['_getSuggestionBlocks'](_0x467705){const _0x48fd5b=this['editor']['plugins']['get']('LegacyListUtils');let _0x8f9109=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x467705)['map'](_0x5dd6c5=>{const _0x52eb55=this['editor']['model']['createPositionAt'](_0x5dd6c5,0x0);return[..._0x48fd5b['getSiblingNodes'](_0x52eb55,'backward'),..._0x48fd5b['getSiblingNodes'](_0x52eb55,'forward')];})['flat']();return _0x8f9109=[...new Set(_0x8f9109)],_0x8f9109;}['_getTranslationKeyForListStyle'](_0x1f2132){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f2132)||'default')['toUpperCase']()+'_LIST_'+_0x1f2132['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x559983{['afterInit'](){const _0xd8a30d=this['editor'];if(!_0xd8a30d['plugins']['has']('MediaEmbedEditing'))return;const _0x3e3e05=_0xd8a30d['plugins']['get']('TrackChangesEditing'),_0x1860dc=_0xd8a30d['locale'];_0x3e3e05['enableCommand']('mediaEmbed'),_0x3e3e05['descriptionFactory']['registerElementLabel']('media',_0x51eedc=>o(_0x1860dc,'ELEMENT_MEDIA',_0x51eedc)),_0xd8a30d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3437fc,{writer:_0x13c1ed,options:_0x73f205})=>{if(_0x73f205['showSuggestionHighlights'])return _0x13c1ed['createEmptyElement']('div');},'converterPriority':'high'}),_0xd8a30d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x597327,_0x3f8cf4,_0x597b13)=>{_0x597b13['options']['showSuggestionHighlights']&&_0x597327['stop']();},{'priority':'high'});}}class lt extends _0x559983{['afterInit'](){const _0x2dd547=this['editor'];_0x2dd547['plugins']['has']('MentionEditing')&&_0x2dd547['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x559983{['afterInit'](){const _0x3e5266=this['editor'];if(!_0x3e5266['plugins']['has']('MergeFieldsEditing'))return;const _0x325998=_0x3e5266['plugins']['get']('TrackChangesEditing'),_0x541ad8=_0x3e5266['locale'];_0x325998['enableCommand']('insertMergeField'),_0x325998['enableCommand']('insertMergeFieldBlock'),_0x325998['enableCommand']('insertMergeFieldImage'),_0x325998['descriptionFactory']['registerElementLabel']('mergeField',_0xf310bc=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0xf310bc)),_0x325998['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2768b7=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0x2768b7)),_0x325998['descriptionFactory']['registerDescriptionCallback'](_0x13def5=>{if('insertion'!=_0x13def5['type']&&'deletion'!=_0x13def5['type'])return;const _0x52a8c3=_0x13def5['getContainedElement']();if(null==_0x52a8c3)return;const _0x9db6=_0x3e5266['plugins']['get']('MergeFieldsEditing');let _0x10f74e;switch(_0x9db6['getMergeFieldType'](_0x52a8c3)){case null:return;case'image':{const _0x15be9c=_0x9db6['unwrapAffixes'](_0x52a8c3['getAttribute']('src'));_0x10f74e=_0x9db6['getLabel'](_0x15be9c)||_0x15be9c;break;}default:{const _0x37137a=_0x52a8c3['getAttribute']('id');_0x10f74e=_0x9db6['getLabel'](_0x37137a)||_0x37137a;break;}}return'insertion'==_0x13def5['type']?{'type':'insertion','content':o(_0x541ad8,'*Insert:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x541ad8,'*Remove:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x559983{['afterInit'](){const _0xbbcc26=this['editor'],_0x21d624=_0xbbcc26['plugins']['get']('TrackChangesEditing');_0xbbcc26['plugins']['has']('MultiLevelList')&&(_0x21d624['enableDefaultAttributesIntegration']('multiLevelList'),_0x21d624['registerBlockAttribute']('listMarkerStyle'),_0x21d624['descriptionFactory']['registerDescriptionCallback'](_0x1535ee=>this['handleDescriptions'](_0x1535ee)));}['handleDescriptions'](_0x3d4513){const _0x1b0a82=this['editor']['locale'],{data:_0x2d4dd1}=_0x3d4513,_0x5f4889={'type':'format','content':''};if(_0x2d4dd1&&'listMarkerStyle'==_0x2d4dd1['key']){if(!_0x2d4dd1['oldValue'])return{'type':'format','content':o(_0x1b0a82,'*Set\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['newValue']+')'};if(!_0x2d4dd1['newValue']){let _0x1d78a3=_0x3d4513['head'];for(;_0x1d78a3;){if(_0x1d78a3['data']&&'listType'==_0x1d78a3['data']['key']&&_0x1d78a3['data']['newValue'])return _0x5f4889;_0x1d78a3=_0x1d78a3['next'];}return{'type':'format','content':o(_0x1b0a82,'*Remove\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['oldValue']+')'};}}}}class pt extends _0x559983{['afterInit'](){const _0x5d27b1=this['editor'];if(!_0x5d27b1['plugins']['has']('PageBreakEditing'))return;_0x5d27b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9672e=_0x5d27b1['plugins']['get']('TrackChangesEditing'),_0xd06b0d=_0x5d27b1['locale'];_0x9672e['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fb6e9=>o(_0xd06b0d,'ELEMENT_PAGE_BREAK',_0x1fb6e9));}}class kt extends _0x559983{['afterInit'](){const _0x436ba3=this['editor'];if(!_0x436ba3['plugins']['has']('Paragraph'))return;const _0x41b51a=_0x436ba3['locale'],_0x46ba70=_0x436ba3['plugins']['get']('TrackChangesEditing');_0x46ba70['descriptionFactory']['registerElementLabel']('paragraph',_0x241a86=>o(_0x41b51a,'ELEMENT_PARAGRAPH',_0x241a86)),_0x46ba70['enableDefaultAttributesIntegration']('paragraph'),_0x46ba70['enableCommand']('insertParagraph'),_0x436ba3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x436ba3),{'priority':'highest'}),_0x436ba3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52123,_0x49d470,_0x48feeb)=>{_0x48feeb['options']['showSuggestionHighlights']&&nr(_0x436ba3,{'showActiveMarker':!0x1})(_0x52123,_0x49d470,_0x48feeb);},{'priority':'highest'});const _0x10241c=_0x46ba70['descriptionFactory'];_0x10241c['registerDescriptionCallback'](_0x2e2560=>{if('insertion'!==_0x2e2560['type'])return;const {start:_0xbaba32,end:_0x2cca42}=_0x2e2560['getFirstRange']();if(!_0xbaba32['isTouching'](_0x2cca42)||!_0xbaba32['nodeAfter'])return;const _0x109c7e=_0x436ba3['model']['schema'],_0x26c20c=_0xbaba32['nodeAfter'];return _0x109c7e['isBlock'](_0x26c20c)&&!_0x109c7e['isLimit'](_0x26c20c)&&_0x109c7e['checkChild'](_0x26c20c,'$text')?{'type':'insertion','content':o(_0x41b51a,'*Insert:*\x20%0',_0x10241c['getItemLabel'](_0x26c20c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398fe3=this['editor'],_0xb2c0e0=_0x398fe3['locale'];_0x398fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474ae4=>{if('formatBlock'!=_0x474ae4['type'])return;const {data:_0x756201}=_0x474ae4;return _0x756201&&'paragraph'==_0x756201['commandName']?{'type':'format','content':o(_0xb2c0e0,'*Change\x20to:*\x20%0',o(_0xb2c0e0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd54cb2,{showActiveMarker:_0x345280=!0x0}={}){return(_0x3064e7,_0x4ba056,_0x460c17)=>{const _0x1078b3=_0xd54cb2['plugins']['get']('TrackChangesEditing'),_0x16c0a3=_0x4ba056['markerRange']['start'],_0x10f4ea=_0x4ba056['markerRange']['end'],_0x47e0e1=_0xd54cb2['model']['schema'];if(!_0x16c0a3['isTouching'](_0x10f4ea)||!_0x16c0a3['nodeAfter'])return;const _0x36c0d1=_0x16c0a3['nodeAfter'];if(_0x47e0e1['isBlock'](_0x36c0d1)&&!_0x47e0e1['isLimit'](_0x36c0d1)&&_0x47e0e1['checkChild'](_0x36c0d1,'$text')){if(!_0x460c17['consumable']['consume'](_0x4ba056['markerRange'],_0x3064e7['name']))return;const {id:_0x43f2fb,authorId:_0x51f5f4}=_0x1078b3['_splitMarkerName'](_0x4ba056['markerName']),_0x12a739=_0x460c17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x43f2fb,'data-author-id':_0x51f5f4}),_0x4f77b4=_0x460c17['mapper']['toViewPosition'](_0x10f4ea);_0x345280&&_0x1078b3['activeMarkers']['includes'](_0x4ba056['markerName'])&&_0x460c17['writer']['addClass']('ck-suggestion-marker--active',_0x12a739),_0x460c17['writer']['insert'](_0x4f77b4,_0x12a739),_0x460c17['mapper']['bindElementToMarker'](_0x12a739,_0x4ba056['markerName']);}};}class wt extends _0x559983{['afterInit'](){const _0x4e00e1=this['editor'];_0x4e00e1['commands']['get']('replaceSource')&&_0x4e00e1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x559983{['afterInit'](){const _0xb46dbb=this['editor'];if(!_0xb46dbb['plugins']['has']('RemoveFormatEditing'))return;_0xb46dbb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e482=this['editor'];_0x42e482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b603=>{if('formatBlock'!=_0x40b603['type']&&'formatInline'!=_0x40b603['type'])return;const {data:_0x59e7e9}=_0x40b603;return _0x59e7e9&&'removeFormat'==_0x59e7e9['commandName']?{'type':'format','content':o(_0x42e482['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x559983{['afterInit'](){const _0x545b52=this['editor'];if(!_0x545b52['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x152458=_0x545b52['plugins']['get']('TrackChangesEditing');_0x152458['enableCommand']('goToPreviousRestrictedEditingException'),_0x152458['enableCommand']('goToNextRestrictedEditingException');const _0xef1e26=_0x545b52['plugins']['get']('RestrictedEditingModeEditing');_0xef1e26['enableCommand']('trackChanges'),_0xef1e26['enableCommand']('acceptSuggestion'),_0xef1e26['enableCommand']('discardSuggestion'),_0xef1e26['enableCommand']('acceptAllSuggestions'),_0xef1e26['enableCommand']('discardAllSuggestions'),_0xef1e26['enableCommand']('acceptSelectedSuggestions'),_0xef1e26['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x559983{['afterInit'](){const _0x4536a7=this['editor'];if(!_0x4536a7['plugins']['has']('ShiftEnter'))return;const _0x835daa=_0x4536a7['plugins']['get']('TrackChangesEditing');_0x835daa['enableCommand']('shiftEnter'),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x373547,_0x176b3c,_0x478ea2)=>{_0x478ea2['options']['showSuggestionHighlights']&&je(_0x4536a7,{'showActiveMarker':!0x1})(_0x373547,_0x176b3c,_0x478ea2);}),_0x835daa['descriptionFactory']['registerElementLabel']('softBreak',_0x55b014=>o(_0x4536a7['locale'],'ELEMENT_LINE_BREAK',_0x55b014));}}function je(_0x42b0ed,{showActiveMarker:_0x5c44a7=!0x0}={}){return(_0xb558b0,_0x2910fa,_0x48f9ce)=>{const _0x7bea16=_0x42b0ed['plugins']['get']('TrackChangesEditing');if(!_0x48f9ce['consumable']['test'](_0x2910fa['markerRange'],_0xb558b0['name']))return;const _0x2e65dd=_0x42b0ed['model'];for(const _0x408761 of _0x2910fa['markerRange']['getItems']()){if(!_0x408761['is']('element','softBreak'))continue;const _0x4fae2c='deletion'==_0x2910fa['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1ff91e,authorId:_0x102c44}=_0x7bea16['_splitMarkerName'](_0x2910fa['markerName']),_0x152fbf=_0x48f9ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fae2c,'data-suggestion':_0x1ff91e,'data-author-id':_0x102c44}),_0xcd2b3c=_0x48f9ce['mapper']['toViewPosition'](_0x2e65dd['createPositionBefore'](_0x408761));_0x5c44a7&&_0x7bea16['activeMarkers']['includes'](_0x2910fa['markerName'])&&_0x48f9ce['writer']['addClass']('ck-suggestion-marker--active',_0x152fbf),_0x48f9ce['writer']['insert'](_0xcd2b3c,_0x152fbf),_0x48f9ce['mapper']['bindElementToMarker'](_0x152fbf,_0x2910fa['markerName']);}};}class St extends _0x559983{['afterInit'](){const _0x2505e5=this['editor'],_0x528fb4=_0x2505e5['model'],_0x40d3ab=_0x2505e5['locale'];if(!_0x2505e5['plugins']['has']('StandardEditingModeEditing'))return;const _0x4d705f=_0x2505e5['plugins']['get']('TrackChangesEditing'),_0x110c9b='restrictedEditingException',_0x576709=_0x2505e5['commands']['get'](_0x110c9b);_0x4d705f['enableCommand'](_0x110c9b,(_0x53bf72,_0x200121={})=>{const _0x4e6c1e=_0x528fb4['document']['selection'];if(_0x4e6c1e['isCollapsed'])return void _0x53bf72(_0x200121);const _0x751654=void 0x0!==_0x200121['forceValue']?_0x200121['forceValue']:!_0x576709['value'];_0x528fb4['change'](()=>{const _0x2777a2=Array['from'](_0x4e6c1e['getRanges']());for(const _0x690aa8 of _0x2777a2){const _0x5a0873=_0x751654?[_0x690aa8]:io(_0x110c9b,_0x690aa8,_0x528fb4);for(const _0x2f9c2e of _0x5a0873)_0x4d705f['markInlineFormat'](_0x2f9c2e,{'commandName':_0x110c9b,'commandParams':[{'forceValue':_0x751654}]});}});}),_0x4d705f['descriptionFactory']['registerDescriptionCallback'](_0x4b0cef=>{if('formatBlock'!=_0x4b0cef['type']&&'formatInline'!=_0x4b0cef['type'])return;const {data:_0x3c128a}=_0x4b0cef;return _0x3c128a&&_0x3c128a['commandName']==_0x110c9b?_0x3c128a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x559983{['afterInit'](){const _0x11a734=this['editor'];if(!_0x11a734['plugins']['has']('Style')||!_0x11a734['plugins']['has']('DataSchema'))return;const _0x4c7a9c=_0x11a734['plugins']['get']('TrackChangesEditing'),_0xb15dc0=_0x11a734['locale'],_0x3509da=_0x11a734['config']['get']('style')||{},_0x2772b0=_0x11a734['plugins']['get']('GeneralHtmlSupport'),_0x7e5b=_0x11a734['plugins']['get']('StyleUtils')['normalizeConfig'](_0x11a734['plugins']['get']('DataSchema'),_0x3509da['definitions']);_0x4c7a9c['enableDefaultAttributesIntegration']('style');const _0x381e1c=new Set();for(const _0x4a5f01 of _0x7e5b['block']){const _0x5ed6d8=_0x2772b0['getGhsAttributeNameForElement'](_0x4a5f01['element']);_0x381e1c['add'](_0x5ed6d8);}const _0x157b32=new Set();for(const _0x23d22e of _0x7e5b['inline']){const _0x46d0a5=_0x2772b0['getGhsAttributeNameForElement'](_0x23d22e['element']);_0x157b32['add'](_0x46d0a5);for(const _0x84ad1d of _0x23d22e['ghsAttributes'])_0x157b32['add'](_0x84ad1d);}for(const _0x71b3af of _0x381e1c)_0x4c7a9c['registerBlockAttribute'](_0x71b3af),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x71b3af,o(_0xb15dc0,'FORMAT_STYLE'));for(const _0x3987e6 of _0x157b32)_0x4c7a9c['registerInlineAttribute'](_0x3987e6),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x3987e6,o(_0xb15dc0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2f1c=this['editor'],_0x6be108=_0x1f2f1c['locale'];_0x1f2f1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a5bfe=>{if('formatBlock'!=_0x4a5bfe['type']&&'formatInline'!=_0x4a5bfe['type'])return;const {data:_0xe4ad9f}=_0x4a5bfe;return _0xe4ad9f&&'style'===_0xe4ad9f['commandName']?_0xe4ad9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6be108,'*Set\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x6be108,'*Remove\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x559983{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a8e5f){super(_0x3a8e5f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31f9ad=this['editor'],_0x1427a1=_0x31f9ad['model']['document']['selection'];if(!_0x31f9ad['plugins']['has']('TableEditing'))return;const _0x576601=_0x31f9ad['locale'],_0x4f7bfb=_0x31f9ad['plugins']['get']('TrackChangesEditing'),_0x3e5c5c=_0x31f9ad['plugins']['get']('TableUtils');_0x4f7bfb['descriptionFactory']['registerElementLabel']('table',_0xee0f5=>o(_0x576601,'ELEMENT_TABLE',_0xee0f5)),this['_setupColumnsRowsFixing'](),_0x4f7bfb['enableCommand']('insertTable'),_0x4f7bfb['enableCommand']('selectTableRow'),_0x4f7bfb['enableCommand']('selectTableColumn');for(const _0x2f89c4 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d31d7=_0x31f9ad['commands']['get'](_0x2f89c4);_0x4f7bfb['enableCommand'](_0x2f89c4,_0x30d092=>{_0x31f9ad['model']['change'](_0x31b9ad=>{_0x30d092();const _0x846286='above'===_0x3d31d7['order'],_0x3be933=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x31fe8d=_0x3e5c5c['getRowIndexes'](_0x3be933),_0x1624ab=_0x846286?_0x31fe8d['first']-0x1:_0x31fe8d['last']+0x1,_0x3e0bd1=_0x3be933[0x0]['findAncestor']('table'),_0x43e0d3=_0x3e5c5c['createTableWalker'](_0x3e0bd1,{'startRow':_0x1624ab,'endRow':_0x1624ab}),_0x5794f4=Array['from'](_0x43e0d3)['map'](_0x55068b=>_0x31b9ad['createRangeOn'](_0x55068b['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x5794f4,'tableRow');});});}for(const _0x2aa8dc of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e767e=_0x31f9ad['commands']['get'](_0x2aa8dc);_0x4f7bfb['enableCommand'](_0x2aa8dc,_0x591fe7=>{_0x31f9ad['model']['change'](_0x331273=>{_0x591fe7();const _0x42a605='left'===_0x5e767e['order'],_0x55bcc7=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x3ab19e=_0x3e5c5c['getColumnIndexes'](_0x55bcc7),_0x8b6592=_0x42a605?_0x3ab19e['first']-0x1:_0x3ab19e['last']+0x1,_0x3790db=_0x55bcc7[0x0]['findAncestor']('table'),_0x526ac0=_0x3e5c5c['createTableWalker'](_0x3790db,{'startRow':0x0,'column':_0x8b6592,'includeAllSlots':!0x1}),_0x39650f=Array['from'](_0x526ac0)['map'](_0x242878=>_0x331273['createRangeOn'](_0x242878['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x39650f,'tableColumn');});});}for(const _0x39f158 of['removeTableRow','removeTableColumn']){const _0x4ad6f0=_0x39f158['substr'](0xb),_0x32003c=_0x4ad6f0['toLowerCase'](),_0x1a44ed=_0x32003c['substr'](0x0,0x3)+'span',_0x2e0203='table'+_0x4ad6f0,_0x49e344='min'+_0x4ad6f0,_0x19534c='max'+_0x4ad6f0;_0x4f7bfb['enableCommand'](_0x39f158,()=>{_0x31f9ad['model']['change'](_0x3d1e75=>{const _0x391869=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0xee3136=_0x391869[0x0]['findAncestor']('table');let _0x307eb9;if('removeTableRow'==_0x39f158){const _0x731ff=_0x3e5c5c['getRowIndexes'](_0x391869);_0x307eb9={'startRow':_0x731ff['first'],'endRow':_0x731ff['last'],'includeAllSlots':!0x0};}else{const _0x52472d=_0x3e5c5c['getColumnIndexes'](_0x391869);_0x307eb9={'startColumn':_0x52472d['first'],'endColumn':_0x52472d['last'],'includeAllSlots':!0x0};}const _0x138392=_0x3e5c5c['createTableWalker'](_0xee3136,_0x307eb9),_0x3bedd6=Array['from'](_0x138392)['map'](({cell:_0x59d1f9})=>_0x59d1f9),_0x572ec7=Ne(_0x3bedd6['filter'](_0x2b704e=>_0x2b704e['hasAttribute'](_0x1a44ed))),_0x509963=Ne(_0x3bedd6['filter'](_0x592370=>!_0x592370['hasAttribute'](_0x1a44ed)))['map'](_0x39131e=>_0x3d1e75['createRangeOn'](_0x39131e)),_0x4ba2ad=_0x4f7bfb['markMultiRangeDeletion'](_0x509963,_0x2e0203);if(_0x4ba2ad&&('tableRow'==_0x4ba2ad['subType']||'tableColumn'==_0x4ba2ad['subType'])){const _0x91462d=this['_getSuggestionCoords'](_0x4ba2ad);for(const _0x2157ce of _0x572ec7){const _0x15d920=_0x3d1e75['createRangeOn'](_0x2157ce),_0x49879c=_0x3e5c5c['getCellLocation'](_0x2157ce),_0x3eaeec=_0x2157ce['getAttribute'](_0x1a44ed)-0x1,_0xbc571e=_0x91462d[_0x49e344],_0x29ff47=_0x91462d[_0x19534c];_0xbc571e<=_0x49879c[_0x32003c]&&_0x49879c[_0x32003c]+_0x3eaeec<=_0x29ff47&&_0x4ba2ad['addRange'](_0x15d920);}}});});}function _0x45d895(_0x2d6d6f){const _0x479041=Array['from'](_0x1427a1['getRanges']())['map'](_0x3e521e=>_0x334b1a['fromRange'](_0x3e521e));_0x31f9ad['model']['change'](_0x4c91c9=>{const _0x4c73a0=_0x4c91c9['batch'];_0x2d6d6f=_0x2d6d6f['filter'](_0x6350b8=>'$graveyard'!=_0x6350b8['root']['rootName']),_0x4c91c9['setSelection'](_0x2d6d6f),_0x31f9ad['commands']['get']('removeTableRow')['refresh'](),_0x31f9ad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31f9ad['model']['enqueueChange'](()=>{_0x31f9ad['model']['enqueueChange'](_0x4c73a0,_0x18229c=>{const _0xc61e6b=_0x479041['filter'](_0x592556=>'$graveyard'!=_0x592556['root']['rootName']);_0xc61e6b['length']>0x0&&_0x18229c['setSelection'](_0xc61e6b);for(const _0xab535d of _0x479041)_0xab535d['detach']();});});});}function _0x6063d1(_0x282eb6){_0x31f9ad['model']['change'](_0x54ab5e=>{const _0x2ebab0=Array['from'](_0x1427a1['getRanges']())['map'](_0xfc7165=>_0x334b1a['fromRange'](_0xfc7165)),_0x1b19c6=[];for(const _0x423100 of _0x282eb6)for(const _0x38f4a4 of _0x423100['getItems']({'shallow':!0x0}))_0x1b19c6['push'](_0x38f4a4);for(const _0x28eda9 of _0x1b19c6)'$graveyard'!=_0x28eda9['root']['rootName']&&(_0x54ab5e['setSelection'](_0x54ab5e['createPositionAt'](_0x28eda9,0x0)),_0x31f9ad['commands']['get']('removeTableColumn')['refresh'](),_0x31f9ad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x13d2c3=_0x2ebab0['filter'](_0x187140=>'$graveyard'!=_0x187140['root']['rootName']);_0x13d2c3['length']>0x0&&_0x54ab5e['setSelection'](_0x13d2c3);for(const _0x4b00b5 of _0x2ebab0)_0x4b00b5['detach']();});}function _0x4ad8a1(_0x45ec06,_0x1225ab){return _0x1225ab['every'](_0x5deeef=>_0x45ec06['some'](_0x44d345=>_0x44d345['end']['isEqual'](_0x5deeef['start'])||_0x5deeef['end']['isEqual'](_0x44d345['start'])));}function _0x2fadc6(_0x27d259,_0x50982c){return!_0x27d259['some'](_0x4437f8=>_0x50982c['some'](_0x40f178=>_0x4437f8['isIntersecting'](_0x40f178)))&&_0x27d259['some'](_0x30c235=>_0x50982c['some'](_0x568e7a=>_0x30c235['end']['isTouching'](_0x568e7a['start'])));}_0x31f9ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x948ef4,_0x1ffc56,_0x3cc1a4)=>{if(!_0x3cc1a4['options']['showSuggestionHighlights'])return;const _0xde9df1=_0x1ffc56['item'];if(!_0xde9df1||!_0xde9df1['is']('element','tableCell'))return;const _0x5e05d1=_0x3cc1a4['mapper']['toViewElement'](_0xde9df1);if(_0x5e05d1){const {id:_0x303f43,authorId:_0x199296}=_0x4f7bfb['_splitMarkerName'](_0x1ffc56['markerName']);_0x186ae4(_0x5e05d1,_0x3cc1a4['writer'],(_0x237548,_0x250050,_0x160d33)=>{_0x160d33['addClass'](_0x549793(_0x250050['classes']),_0x237548),_0x160d33['setAttribute']('data-suggestion-id',_0x303f43,_0x237548),_0x160d33['setAttribute']('data-author-id',_0x199296,_0x237548);},(_0x27903d,_0x56fcc9,_0x5a8cfa)=>{_0x5a8cfa['removeClass'](_0x549793(_0x56fcc9['classes']),_0x27903d),_0x5a8cfa['removeAttribute']('data-suggestion-id',_0x27903d),_0x5a8cfa['removeAttribute']('data-author-id',_0x27903d);});}},{'priority':'highest'}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x3d65ac=>{if('insertion'!=_0x3d65ac['type']&&'deletion'!=_0x3d65ac['type'])return;const _0x515829=_0x3d65ac['getContainedElement']();if(null!=_0x515829&&_0x515829['is']('element','table')){if('insertion'==_0x3d65ac['type']){const _0x42f0f4=_0x3d65ac['getItems']()['filter'](_0x4cd210=>_0x4cd210['is']('$textProxy'))['map'](_0x2961f0=>_0x2961f0['data']);if(_0x42f0f4['length'])return{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f0f4['join']('\x20')+'\x22'))};}if('deletion'==_0x3d65ac['type']){const _0x52b6f4=_0x3d65ac['getItems']()['filter'](_0x321591=>_0x321591['is']('$textProxy'))['map'](_0x7584d2=>_0x7584d2['data']);if(_0x52b6f4['length'])return{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52b6f4['join']('\x20')+'\x22'))};}}}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x42bcc7=>{if('tableRow'==_0x42bcc7['subType']){const _0x3bbb79=_0x42bcc7['getItems']()['filter'](_0x3e2c1f=>_0x3e2c1f['is']('$textProxy'))['map'](_0x206f97=>_0x206f97['data']),_0x3c4491=this['_getSuggestionCoords'](_0x42bcc7),_0x2a14fd=_0x3c4491['maxRow']-_0x3c4491['minRow']+0x1;if('insertion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};if('deletion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};}if('tableColumn'==_0x42bcc7['subType']){const _0x52acd6=_0x42bcc7['getItems']()['filter'](_0xd3e460=>_0xd3e460['is']('$textProxy'))['map'](_0x176146=>_0x176146['data']),_0x187a5d=this['_getSuggestionCoords'](_0x42bcc7),_0x2c146d=_0x187a5d['maxColumn']-_0x187a5d['minColumn']+0x1;if('insertion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};if('deletion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};}}),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2fadc6),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2fadc6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5e8547=this['editor'],_0x214364=_0x5e8547['model']['document']['selection'];return(_0x2805dd,_0xa1e9ed)=>{_0x5e8547['model']['change'](_0x343a04=>{const {commandName:_0x1c0c34,commandParams:_0x4688b3}=_0xa1e9ed;let _0x4dc1e9=_0x2805dd[0x0]['end']['nodeBefore'];_0x4688b3&&_0x4688b3[0x0]&&!0x1===_0x4688b3[0x0]['forceValue']&&(_0x4dc1e9=_0x2805dd[0x0]['start']['nodeAfter']);const _0x385c9f=_0x343a04['createRangeIn'](_0x4dc1e9);if('$graveyard'==_0x385c9f['root']['rootName'])return;const _0x7b0640=Array['from'](_0x214364['getRanges']())['map'](_0x533e91=>_0x334b1a['fromRange'](_0x533e91));_0x343a04['setSelection'](_0x385c9f),_0x5e8547['commands']['get'](_0x1c0c34)['refresh'](),_0x4688b3['push']({'forceDefaultExecution':!0x0}),_0x5e8547['execute'](_0x1c0c34,..._0x4688b3);const _0x50f6c6=_0x7b0640['filter'](_0x9c8f83=>'$graveyard'!=_0x9c8f83['root']['rootName']);_0x50f6c6['length']>0x0&&_0x343a04['setSelection'](_0x50f6c6);for(const _0x515f7b of _0x7b0640)_0x515f7b['detach']();});};}['_getCoordsForCells'](_0x40c1d0){const _0x43486b=this['editor']['plugins']['get']('TableUtils');let _0x281c0f=Number['MAX_SAFE_INTEGER'],_0xf2de73=Number['MIN_SAFE_INTEGER'],_0x231495=Number['MAX_SAFE_INTEGER'],_0x5c1849=Number['MIN_SAFE_INTEGER'];for(const _0x5be48c of _0x40c1d0){if('$graveyard'==_0x5be48c['root']['rootName'])continue;const {row:_0x3c668e,column:_0x38c018}=_0x43486b['getCellLocation'](_0x5be48c),_0x1cf6b7=_0x5be48c['hasAttribute']('rowspan')?_0x5be48c['getAttribute']('rowspan')-0x1:0x0,_0x22659f=_0x5be48c['hasAttribute']('colspan')?_0x5be48c['getAttribute']('colspan')-0x1:0x0;_0x281c0f=_0x3c668e<_0x281c0f?_0x3c668e:_0x281c0f,_0xf2de73=_0x3c668e+_0x1cf6b7>_0xf2de73?_0x3c668e+_0x1cf6b7:_0xf2de73,_0x231495=_0x38c018<_0x231495?_0x38c018:_0x231495,_0x5c1849=_0x38c018+_0x22659f>_0x5c1849?_0x38c018+_0x22659f:_0x5c1849;}return{'minRow':_0x281c0f,'maxRow':_0xf2de73,'minColumn':_0x231495,'maxColumn':_0x5c1849};}['_setupColumnsRowsFixing'](){const _0x453365=this['editor'],_0x2fdb66=_0x453365['plugins']['get']('TrackChangesEditing'),_0x34c1d4=_0x453365['plugins']['get']('TableUtils');_0x453365['model']['document']['on']('change:data',()=>{const _0x150b44=Array['from'](_0x453365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3349fd,data:_0x30828e}of _0x150b44){const {group:_0x1ed4bd,id:_0x1f14eb,subType:_0x18e47c}=_0x2fdb66['_splitMarkerName'](_0x3349fd);if('suggestion'!=_0x1ed4bd)continue;if(null!=_0x30828e['oldRange'])continue;const _0x88fc23=_0x2fdb66['getSuggestion'](_0x1f14eb);this['_tablePostFixingSubtypes']['includes'](_0x18e47c)&&this['_tableSuggestions']['add'](_0x88fc23);}},{'priority':'low'});const _0x1376e3=(_0x501e86,_0x227127)=>{let _0x2665da=!0x1;const _0x475938=_0x227127['createRangeOn'](_0x501e86),_0x264a53=_0x501e86['findAncestor']('table'),_0x5b2ac6=_0x34c1d4['getCellLocation'](_0x501e86);for(const _0x1abd7a of this['_tableSuggestions']){const _0x182991=_0x1abd7a['subType'],_0x4ce38b=_0x182991['startsWith']('tablePaste'),_0x4200ed=_0x182991['substr'](_0x4ce38b?0xa:0x5),_0x14dd81=_0x4200ed['toLowerCase'](),_0x298ad0=_0x14dd81['substr'](0x0,0x3)+'span',_0x118ea8='min'+_0x4200ed,_0x83dadc='max'+_0x4200ed;if(!_0x1abd7a['isInContent'])continue;if(_0x264a53!=_0x1abd7a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1abd7a['isIntersectingWithRange'](_0x475938))continue;const _0x2a0ad0=_0x501e86['hasAttribute'](_0x298ad0)?_0x501e86['getAttribute'](_0x298ad0)-0x1:0x0,_0x43dbd7=this['_getSuggestionCoords'](_0x1abd7a),_0x4c85fa=_0x43dbd7[_0x118ea8],_0x1860c9=_0x43dbd7[_0x83dadc];_0x4c85fa<=_0x5b2ac6[_0x14dd81]&&_0x5b2ac6[_0x14dd81]+_0x2a0ad0<=_0x1860c9&&(_0x1abd7a['addRange'](_0x475938),_0x2665da=!0x0);}return _0x2665da;};_0x453365['model']['document']['registerPostFixer'](_0x50ac70=>{let _0x3f0255=!0x1;for(const _0x7e6944 of _0x453365['model']['document']['differ']['getChanges']())if('insert'==_0x7e6944['type']){if('tableRow'==_0x7e6944['name']){for(const _0x4c651b of _0x7e6944['position']['nodeAfter']['getChildren']())_0x3f0255=_0x3f0255||_0x1376e3(_0x4c651b,_0x50ac70);}else'tableCell'==_0x7e6944['name']&&(_0x3f0255=_0x3f0255||_0x1376e3(_0x7e6944['position']['nodeAfter'],_0x50ac70));}return _0x3f0255;});}['_getSuggestionCoords'](_0x5cab69){return this['_getCoordsForCells'](_0x5cab69['getRanges']()['map'](_0x4a7e5e=>_0x4a7e5e['start']['nodeAfter']));}}function Ne(_0x2f2adb){return Array['from'](new Set(_0x2f2adb)['values']());}class _t extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x4d23e0=this['editor'],_0xacdd55=_0x4d23e0['model']['document']['selection'],_0x1f1d1b=_0x4d23e0['locale'];if(!_0x4d23e0['plugins']['has']('TableEditing'))return;const _0x177b32=_0x4d23e0['plugins']['get']('TrackChangesEditing'),_0x579241=_0x4d23e0['plugins']['get']('TableUtils'),_0xcb6b5a=_0x4d23e0['plugins']['get'](At);_0xcb6b5a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x177b32['enableCommand']('mergeTableCells',()=>{const _0x766583=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection']);_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat'](_0x766583,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4d23e0['commands']['get']('mergeTableCells')['on']('execute',(_0x442ceb,_0x32a430)=>{_0x4d23e0['commands']['get']('trackChanges')['value']&&(_0x32a430['length']>0x0&&_0x32a430[_0x32a430['length']-0x1]&&_0x32a430[_0x32a430['length']-0x1]['forceDefaultExecution']||_0x177b32['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x442ceb['stop']());},{'priority':'highest'});for(const _0x4ef318 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x824f33=_0x4d23e0['commands']['get'](_0x4ef318);_0x177b32['enableCommand'](_0x4ef318,()=>{const _0x3969aa=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x133f31=>_0x133f31['is']('element','tableCell')),_0x2a858e=_0x824f33['value'];_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat']([_0x3969aa,_0x2a858e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37be7c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37ba43=_0x4d23e0['commands']['get'](_0x37be7c);_0x177b32['enableCommand'](_0x37be7c,()=>{const _0x3f4fc3=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection'])[0x0],_0x68561b=_0x3f4fc3['findAncestor']('table'),{column:_0x2a8466,row:_0x53786d}=_0x579241['getCellLocation'](_0x3f4fc3);let _0xe554b8=[];if('horizontally'==_0x37ba43['direction']){const _0x1e5961=_0x579241['createTableWalker'](_0x68561b,{'startRow':_0x53786d,'endRow':_0x53786d,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x1e5961)['map'](_0x521bd4=>_0x521bd4['cell']);}else{const _0x30629e=_0x579241['createTableWalker'](_0x68561b,{'column':_0x2a8466,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x30629e)['map'](_0x1cd2e3=>_0x1cd2e3['cell']);}_0x4d23e0['model']['change'](_0xfa2b6a=>{_0x177b32['markBlockFormat'](_0xfa2b6a['createRangeOn'](_0x3f4fc3),{'commandName':_0x37be7c,'commandParams':[]},_0xe554b8,_0x37be7c);});});}_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x4e9b1f=>{if('formatBlock'!=_0x4e9b1f['type']&&'formatInline'!=_0x4e9b1f['type'])return;const {data:_0x40d995}=_0x4e9b1f;return _0x40d995&&'mergeTableCells'==_0x40d995['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Merge\x20cells*')}:void 0x0;}),_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x3a3f5f=>{if('formatBlock'!=_0x3a3f5f['type']&&'formatInline'!=_0x3a3f5f['type'])return;const {data:_0x3c5b8b}=_0x3a3f5f;return _0x3c5b8b?'splitTableCellVertically'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x509888=_0xcb6b5a['_acceptFormatSuggestionCallbackFactory']();for(const _0x15fd36 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15fd36,'accept',_0x509888);for(const _0x249d35 of['splitTableCellVertically','splitTableCellHorizontally'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x249d35,'accept',_0x509888);_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2afb2e=>{_0x4d23e0['model']['change'](_0x55db0c=>{const _0x4f85f7=Array['from'](_0xacdd55['getRanges']())['map'](_0x6d0d51=>_0x334b1a['fromRange'](_0x6d0d51));_0x55db0c['setSelection'](_0x2afb2e),_0x4d23e0['commands']['get']('mergeTableCells')['refresh'](),_0x4d23e0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x234371=_0x4f85f7['filter'](_0x55c33e=>'$graveyard'!=_0x55c33e['root']['rootName']);_0x234371['length']>0x0&&_0x55db0c['setSelection'](_0x234371);for(const _0x4d15dd of _0x4f85f7)_0x4d15dd['detach']();});});for(const _0x416ee8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25b248=_0x4d23e0['commands']['get'](_0x416ee8);_0x25b248['on']('set:isEnabled',(_0x1d4fbd,_0x15a53f,_0x5bbcc6)=>{if(_0x5bbcc6){const _0x167d61=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57038c=>_0x57038c['is']('element','tableCell'));this['_areMergableCells'](_0x25b248['value'],_0x167d61)||(_0x1d4fbd['return']=!0x1,_0x1d4fbd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5563e2=this['editor']['commands']['get']('mergeTableCells'),_0x76bf74=this['editor']['plugins']['get']('TableUtils');if(!_0x5563e2['isEnabled'])return!0x1;const _0x15d747=_0x76bf74['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4893da of _0x15d747)for(const _0x5090b3 of _0x15d747)if(_0x4893da!=_0x5090b3&&!this['_areMergableCells'](_0x4893da,_0x5090b3))return!0x1;return!0x0;}['_areMergableCells'](_0x56398a,_0x1e1941){const _0x198147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366e03=this['editor']['model']['createRangeOn'](_0x56398a),_0x4b8182=this['editor']['model']['createRangeOn'](_0x1e1941),_0x1f5096=new Set(),_0x14090f=new Set();for(const _0x5d9647 of _0x198147['getSuggestions']())if(('insertion'==_0x5d9647['type']||'deletion'==_0x5d9647['type']||'mergeTableCells'==_0x5d9647['subType'])&&_0x5d9647['isInContent']){for(const _0x2f2159 of _0x5d9647['getRanges']())_0x2f2159['containsRange'](_0x366e03,!0x0)&&_0x1f5096['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']),_0x2f2159['containsRange'](_0x4b8182,!0x0)&&_0x14090f['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']);}if(_0x1f5096['size']!=_0x14090f['size'])return!0x1;for(const _0x43b290 of _0x1f5096)if(!_0x14090f['has'](_0x43b290))return!0x1;return!0x0;}}class Ct extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x41d2bd=this['editor'];if(!_0x41d2bd['plugins']['has']('TableEditing'))return;const _0xa516bf=_0x41d2bd['locale'],_0x517d6d=_0x41d2bd['plugins']['get']('TrackChangesEditing');_0x517d6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x517d6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x517d6d['registerBlockAttribute']('headingRows'),_0x517d6d['registerBlockAttribute']('headingColumns'),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa516bf,'FORMAT_HEADER_ROW')),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa516bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4219f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f04f4=this['editor']['plugins']['get']('TableUtils'),_0x30f93c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2c8454({showActiveMarker:_0x3f7595=!0x0,setDataAttribute:_0x44ec8e=!0x0}={}){return(_0x44c853,_0x57105f,_0x53a227)=>{const {type:_0xe07dcf,id:_0x239b4b}=_0x4219f2['_splitMarkerName'](_0x57105f['markerName']),_0x3cf833=_0x4219f2['getSuggestion'](_0x239b4b),_0x4b165d=_0x3cf833['data'];if('formatBlock'!=_0x3cf833['type']||!_0x4b165d||'setTableColumnHeader'!=_0x4b165d['commandName'])return;if(_0x57105f['item'])return void _0x44c853['stop']();if(!_0x53a227['consumable']['consume'](_0x57105f['markerRange'],_0x44c853['name']))return;const _0x10c5b1=_0x57105f['markerRange']['start']['nodeAfter'],_0x15850c=_0x57105f['markerRange']['end']['nodeBefore'],_0x393338=_0x10c5b1['parent']['parent'],{column:_0x1f448b}=_0x1f04f4['getCellLocation'](_0x10c5b1),{column:_0x41a6e6}=_0x1f04f4['getCellLocation'](_0x15850c);for(let _0x53ebf6=_0x1f448b;_0x53ebf6<=_0x41a6e6;_0x53ebf6++){const _0x19c0d2=_0x1f04f4['createTableWalker'](_0x393338,{'column':_0x53ebf6,'includeAllSlots':!0x1});for(const _0x12380f of _0x19c0d2){const _0x1bd958=_0x12380f['cell'],_0x22eb24=_0x53a227['mapper']['toViewElement'](_0x1bd958);_0x53a227['writer']['addClass']('ck-suggestion-marker-'+_0xe07dcf,_0x22eb24),_0x44ec8e&&_0x53a227['writer']['setAttribute']('data-suggestion',_0x239b4b,_0x22eb24),_0x53a227['mapper']['bindElementToMarker'](_0x22eb24,_0x57105f['markerName']),_0x3f7595&&(_0x4219f2['activeMarkers']['includes'](_0x57105f['markerName'])?_0x53a227['writer']['addClass']('ck-suggestion-marker--active',_0x22eb24):_0x53a227['writer']['removeClass']('ck-suggestion-marker--active',_0x22eb24));}}};}_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30f93c),_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30f93c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c8454(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf298a2,_0x3d6c4f,_0x146195)=>{_0x146195['options']['showSuggestionHighlights']&&_0x2c8454({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf298a2,_0x3d6c4f,_0x146195);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x266439,_0x1d8ba8,_0x81caf1)=>{const {type:_0xdf3783,id:_0x24602e}=_0x4219f2['_splitMarkerName'](_0x1d8ba8['markerName']),_0x12ff03=_0x4219f2['getSuggestion'](_0x24602e),_0x33cf9c=_0x12ff03['data'];if('formatBlock'!=_0x12ff03['type']||!_0x33cf9c||'setTableColumnHeader'!=_0x33cf9c['commandName'])return;const _0x4c9462=_0x81caf1['mapper']['markerNameToElements'](_0x1d8ba8['markerName']);if(_0x4c9462){for(const _0x316108 of _0x4c9462)_0x81caf1['writer']['removeClass']('ck-suggestion-marker-'+_0xdf3783,_0x316108),_0x81caf1['writer']['removeClass']('ck-suggestion-marker--active',_0x316108),_0x81caf1['writer']['removeAttribute']('data-suggestion',_0x316108),_0x81caf1['mapper']['unbindElementFromMarkerName'](_0x316108,_0x1d8ba8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1528b7=this['editor'],_0x2615ad=_0x1528b7['locale'];function _0x260999(_0x267e12){return{'type':'format','content':o(_0x2615ad,'*Format:*\x20%0',_0x267e12)};}_0x1528b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x212342=>{if('formatBlock'!=_0x212342['type'])return;const {data:_0x1ad803}=_0x212342;if(_0x1ad803){if('setTableRowHeader'==_0x1ad803['commandName']){const _0x1238f9=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x1238f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1ad803['commandName']){const _0x35d242=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x35d242?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x559983{['afterInit'](){const _0x4122cb=this['editor'],_0x2e6b0a=_0x4122cb['locale'],_0x175734=_0x4122cb['plugins']['get']('TrackChangesEditing');function _0x532b93(_0x278830){return{'type':'format','content':''+o(_0x2e6b0a,'*Set\x20table\x20type:*\x20%0',_0x278830)};}_0x4122cb['plugins']['has']('TableLayout')&&(_0x175734['enableCommand']('insertTableLayout'),_0x175734['enableDefaultAttributesIntegration']('tableType'),_0x175734['registerBlockAttribute']('tableType'),_0x175734['descriptionFactory']['registerElementLabel'](_0x1a0bd8=>_0x1a0bd8['is']('element','table')&&'layout'===_0x1a0bd8['getAttribute']('tableType'),_0x520501=>o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE',_0x520501)),_0x175734['descriptionFactory']['registerDescriptionCallback'](_0x353f3e=>{const {data:_0x47c894}=_0x353f3e;if(_0x47c894&&'tableType'==_0x47c894['key'])switch(_0x47c894['newValue']){case'layout':return _0x532b93(o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x532b93(o(_0x2e6b0a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x46e8e2=>[_0x46e8e2,null]));class Nt extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2fd095=this['editor'];if(!_0x2fd095['plugins']['has']('TableClipboard'))return;const _0x136206=_0x2fd095['plugins']['get']('TrackChangesEditing'),_0x2e4b71=_0x2fd095['plugins']['get']('TableUtils'),_0x2579d0=_0x2fd095['plugins']['get'](At),_0xabbbb9=_0x2fd095['plugins']['get']('TableClipboard'),_0x365de2=_0x2fd095['plugins']['get']('TableSelection'),_0xc4156b=_0x2fd095['plugins']['get'](_0x9367c);_0x2579d0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fd095['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fd095['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46f3f4=null,_0x33f587=!0x1;_0xc4156b['on']('contentInsertion',(_0xbbbadd,_0x2ba014)=>{_0x33f587='paste'===_0x2ba014['method'];}),_0x2fd095['model']['on']('insertContent',(_0x37f7a8,_0x16456c)=>{if(!_0x33f587&&null===_0x365de2['getSelectedTableCells']())return;const [_0x4aad2d,_0x2a523b]=_0x16456c,_0x3655ae=_0x16456c[_0x16456c['length']-0x1];_0x3655ae&&_0x3655ae['forceDefaultExecution']||_0x136206['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2bd6ff,_0xd45e45,_0x13f739,_0x291b84,_0x2fed87){if(_0xd45e45&&!_0xd45e45['is']('documentSelection'))return!0x1;const _0x48a26d=_0x2fed87['getTableIfOnlyTableInContent'](_0x2bd6ff,_0x13f739);if(!_0x48a26d||!Ue(_0x48a26d,void 0x0,_0x291b84))return!0x1;const _0x5db761=_0x291b84['getSelectionAffectedTableCells'](_0x13f739['document']['selection']);if(!_0x5db761['length'])return!0x1;const _0x137a3f=_0x5db761[0x0]['findAncestor']('table'),_0x337a09=_0x291b84['getRowIndexes'](_0x5db761),_0x527912=_0x291b84['getColumnIndexes'](_0x5db761),_0x5102e1={'startRow':_0x337a09['first'],'endRow':_0x337a09['last'],'startColumn':_0x527912['first'],'endColumn':_0x527912['last']};return 0x1==_0x5db761['length']&&(_0x5102e1['endRow']+=_0x291b84['getRows'](_0x48a26d)-0x1,_0x5102e1['endColumn']+=_0x291b84['getColumns'](_0x48a26d)-0x1),Ue(_0x137a3f,_0x5102e1,_0x291b84);}(_0x4aad2d,_0x2a523b,_0x2fd095['model'],_0x2e4b71,_0xabbbb9)&&(_0x37f7a8['stop'](),_0x46f3f4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fd095['model']['change'](()=>{_0x2fd095['model']['insertContent'](_0x16456c[0x0],_0x16456c[0x1],_0x16456c[0x2],{'forceDefaultExecution':!0x0});const _0x580ddd=_0x20cf05(),{rowInsertionRanges:_0x34e858,columnInsertionRanges:_0x22aaf6,insertionRanges:_0x2b488b,deletionRanges:_0x306b2b,cells:_0x4b45a5}=_0x46f3f4;_0x34e858['length']&&_0x136206['markMultiRangeInsertion'](_0x34e858,'tablePasteRow',{'tablePasteChainId':_0x580ddd}),_0x22aaf6['length']&&_0x136206['markMultiRangeInsertion'](_0x22aaf6,'tablePasteColumn',{'tablePasteChainId':_0x580ddd}),_0x2b488b['length']&&(_0x136206['markMultiRangeInsertion'](_0x2b488b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x2b488b['forEach'](_0xd04a0c=>_0xd04a0c['detach']?.())),_0x306b2b['length']&&(_0x136206['markMultiRangeDeletion'](_0x306b2b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x306b2b['forEach'](_0x29f4ad=>_0x29f4ad['detach']?.()));const _0x4bf1f9=_0x136206['markMultiRangeBlockFormat'](_0x4b45a5['map'](({element:_0x466038})=>_0x466038),{'formatGroupId':_0x20cf05()},[],'tablePasteCell',{'tablePasteChainId':_0x580ddd});if(_0x4bf1f9){const _0x548b5b=_0x4bf1f9['getMarkers'](),_0x452c56=[];for(const {element:_0x52a98c,attributes:_0x248ffc}of _0x4b45a5){if(!_0x248ffc)continue;const _0x468370=_0x2fd095['model']['createRangeOn'](_0x52a98c),_0x52aca7=_0x548b5b['find'](_0x1e1a9c=>_0x1e1a9c['getRange']()['isEqual'](_0x468370));_0x52aca7&&_0x452c56['push']([_0x52aca7['name'],_0x248ffc]);}_0x452c56['length']&&_0x4bf1f9['setAttribute']('markerAttributes',Object['fromEntries'](_0x452c56));}_0x46f3f4=null;}));},{'priority':_0x3a0027['high']+0xa}),_0xc4156b['on']('contentInsertion',()=>{_0x33f587=!0x1;},{'priority':'lowest'}),_0x2fd095['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44a354,_0x55a911)=>{const [_0x3dfa33,_0x72be0c,,_0x29b2fc]=_0x55a911;if(!_0x46f3f4)return;_0x44a354['stop']();const _0xbd090c=_0x3dfa33['cell'],_0x3cc856=_0x72be0c,_0x2d3e13=Oe(_0xbd090c),_0x2c9f21=Oe(_0x3cc856);_0x44a354['return']=_0xbd090c;let _0x436242=null,_0x23224c=null;if(_0x2c9f21||_0x2d3e13){if(_0x2d3e13&&!_0x2c9f21){_0x29b2fc['remove'](_0xbd090c['getChild'](0x0));for(const _0x128f75 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x128f75,_0xbd090c,'end');const _0x4333cc=_0x46f3f4['rowInsertionIndexes']['includes'](_0x3dfa33['row']),_0x14c64f=_0x46f3f4['columnInsertionIndexes']['includes'](_0x3dfa33['column']);_0x4333cc||_0x14c64f||(_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeIn'](_0xbd090c)));}else _0x2c9f21&&!_0x2d3e13&&(_0x23224c=_0x29b2fc['createRangeIn'](_0xbd090c));}else{const _0x2f166a=_0x29b2fc['createElement']('tableCellSuggestion'),_0x5cb6fb=_0x29b2fc['createElement']('tableCellSuggestion');_0x29b2fc['wrap'](_0x29b2fc['createRangeIn'](_0xbd090c),_0x5cb6fb),_0x29b2fc['insert'](_0x2f166a,_0xbd090c,0x0);for(const _0x20c617 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x20c617,_0x2f166a,'end');_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x2f166a)),_0x23224c=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x5cb6fb));}const _0x38578=Array['from'](_0x3cc856['getAttributes']())['filter'](([_0x4da127])=>Be['includes'](_0x4da127));_0x46f3f4['cells']['push']({'element':_0xbd090c,'attributes':_0x38578['length']?Object['fromEntries'](_0x38578):null}),_0x436242&&_0x46f3f4['insertionRanges']['push'](_0x436242),_0x23224c&&_0x46f3f4['deletionRanges']['push'](_0x23224c);},{'priority':'high'}),_0x2e4b71['on']('insertColumns',(_0x2d6558,_0x43d45a)=>{const [_0x40af8f,_0x50cad3={}]=_0x43d45a;if(!_0x46f3f4)return;const _0x408bd2=_0x50cad3['at']||0x0,_0x2f08a2=_0x50cad3['columns']||0x1;_0x46f3f4['columnInsertionIndexes']=new Array(_0x2f08a2)['fill'](_0x408bd2)['map']((_0xcd6914,_0x3f7890)=>_0xcd6914+_0x3f7890);for(const {cell:_0xa7f81d}of _0x2e4b71['createTableWalker'](_0x40af8f,{'startColumn':_0x408bd2,'endColumn':_0x408bd2+_0x2f08a2-0x1}))_0x46f3f4['columnInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0xa7f81d));},{'priority':'low'}),_0x2e4b71['on']('insertRows',(_0x12d930,_0x51666d)=>{const [_0x547b3b,_0x1f3266={}]=_0x51666d;if(!_0x46f3f4)return;const _0x5bd135=_0x1f3266['at']||0x0,_0x5cbfce=_0x1f3266['rows']||0x1;_0x46f3f4['rowInsertionIndexes']=new Array(_0x5cbfce)['fill'](_0x5bd135)['map']((_0x54dccf,_0x3c1813)=>_0x54dccf+_0x3c1813);for(const {cell:_0x2c01a1}of _0x2e4b71['createTableWalker'](_0x547b3b,{'startRow':_0x5bd135,'endRow':_0x5bd135+_0x5cbfce-0x1}))_0x46f3f4['rowInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0x2c01a1));},{'priority':'low'}),_0x136206['descriptionFactory']['registerDescriptionCallback'](_0x20d28=>{if(_0x20d28['subType']&&_0x20d28['subType']['startsWith']('tablePaste'))return _0x20d28['previous']?{}:{'type':'insertion','content':o(_0x2fd095['locale'],'*Replace\x20table\x20cells*')};});const _0x576112=()=>!0x1;for(const _0xb97b60 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x136206['_suggestionFactory']['registerCustomCallback']('insertion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('deletion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb97b60,'join',_0x576112);_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd56cdc,_0x307754,_0x8ea4bc)=>{const _0x5054a8=_0xd56cdc['map'](_0x343faf=>_0x343faf['getContainedElement']())['filter'](_0x137530=>_0x137530),_0x4cc8ce=new Map(_0x5054a8['map'](_0x2856d2=>[_0x2856d2,null]));if(_0x46f3f4){for(const {element:_0x4edbfb,attributes:_0x1f424e}of _0x46f3f4['cells'])_0x1f424e&&_0x4cc8ce['set'](_0x4edbfb,_0x1f424e);}else{if(_0x8ea4bc&&_0x8ea4bc['markerAttributes'])for(const [_0x531073,_0x2e3e56]of Object['entries'](_0x8ea4bc['markerAttributes'])){const _0x39d44e=_0x2fd095['model']['markers']['get'](_0x531073),_0x91cbf=_0x39d44e?_0x39d44e['getRange']()['getContainedElement']():null;_0x91cbf&&_0x4cc8ce['set'](_0x91cbf,_0x2e3e56);}}_0x2fd095['model']['change'](_0x12e532=>{for(const [_0x4d6878,_0x694b04]of _0x4cc8ce)_0x12e532['setAttributes']({...xe,..._0x694b04},_0x4d6878);});});const _0x4516d8=(_0x3ca69d,_0x1a05ac)=>{_0x136206['_suggestionFactory']['registerCustomCallback'](_0x3ca69d,'tablePaste',_0x1a05ac,(_0x456ae6,_0x13a6fc,_0xfe318d)=>{_0x2fd095['model']['change'](_0x3a0c9b=>{const _0xc8bd93=[];for(const _0x19c8a7 of _0x456ae6){const _0xc7c95f=_0x19c8a7['start']['nodeAfter'];_0xc7c95f['is']('element','tableCellSuggestion')&&_0xc8bd93['push'](_0xc7c95f);}_0x136206['_suggestionFactory']['getSuggestionCallback'](_0x3ca69d,null,_0x1a05ac)(_0x456ae6,_0x13a6fc,_0xfe318d);for(const _0x470511 of _0xc8bd93)'$graveyard'!=_0x470511['root']['rootName']&&_0x3a0c9b['unwrap'](_0x470511);});});};_0x4516d8('insertion','accept'),_0x4516d8('insertion','discard'),_0x4516d8('deletion','accept'),_0x4516d8('deletion','discard'),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1c4872=>{const _0x16a4c5=_0x1c4872['map'](_0x127182=>_0x127182['getContainedElement']()),_0x4f86b1=_0x16a4c5[0x0]['findAncestor']('table'),{minRow:_0x80db34,maxRow:_0x59e938}=_0x2579d0['_getCoordsForCells'](_0x16a4c5);_0x2e4b71['removeRows'](_0x4f86b1,{'at':_0x80db34,'rows':_0x59e938-_0x80db34+0x1});}),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17f49d=>{const _0x1145e7=_0x17f49d['map'](_0x419231=>_0x419231['getContainedElement']()),_0x50ef80=_0x1145e7[0x0]['findAncestor']('table'),{minColumn:_0x3c257b,maxColumn:_0x4098da}=_0x2579d0['_getCoordsForCells'](_0x1145e7);_0x2e4b71['removeColumns'](_0x50ef80,{'at':_0x3c257b,'columns':_0x4098da-_0x3c257b+0x1});});const _0xdefbca=(_0x10293a,_0xbb2d4b)=>{if(!_0xbb2d4b['subType']||!_0xbb2d4b['subType']['startsWith']('tablePaste'))return;const _0x3a9562=_0xbb2d4b['attributes']['tablePasteChainId'],_0x3e95ad=_0x136206['getSuggestions']()['filter'](_0x436a39=>_0x436a39['isInContent']&&_0x436a39['attributes']&&_0x436a39['attributes']['tablePasteChainId']==_0x3a9562);_0x3e95ad['length']&&_0xbb2d4b['getAllAdjacentSuggestions']()['length']!=_0x3e95ad['length']&&_0x3e95ad['reduce']((_0x49ba7a,_0xad23f4)=>(_0x49ba7a['next']=_0xad23f4,_0xad23f4['previous']=_0x49ba7a,_0xad23f4));};function _0x2408bb(_0x120e9f,_0x35ddef=!0x0){const {id:_0x57c808,authorId:_0x656252}=_0x136206['_splitMarkerName'](_0x120e9f['markerName']),_0x12b9cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4c44fd=_0x136206['activeMarkers']['includes'](_0x120e9f['markerName']);return _0x4c44fd&&_0x12b9cb['push']('ck-suggestion-marker--active'),{'classes':_0x12b9cb,'attributes':{'data-suggestion':_0x57c808,'data-author-id':_0x656252},'priority':_0x4c44fd&&_0x35ddef?0xbc2:0xbb8};}_0x136206['on']('suggestionLoaded',_0xdefbca,{'priority':'high'}),_0x136206['on']('suggestionUnloaded',_0xdefbca,{'priority':'high'}),_0x2fd095['model']['document']['registerPostFixer'](()=>{let _0x1b03c6=!0x1;const _0x1fb45b=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cdd8d,data:_0x6336f5}of _0x1fb45b){const {group:_0x306072,type:_0x3a238b,id:_0x4b4a15}=_0x136206['_splitMarkerName'](_0x5cdd8d);if('suggestion'!=_0x306072||'deletion'!=_0x3a238b||_0x6336f5['oldRange'])continue;if(!_0x136206['hasSuggestion'](_0x4b4a15))continue;const _0x2a9e4c=_0x136206['getSuggestion'](_0x4b4a15)['getRanges'](),_0xd909f=_0x2fd095['plugins']['get']('Users')['me'];for(const _0x48200f of _0x136206['getSuggestions']()){if(!_0x48200f['isInContent']||_0x48200f['author']!=_0xd909f)continue;if('formatBlock'!=_0x48200f['type']||'tablePasteCell'!=_0x48200f['subType'])continue;if(_0x48200f['getRanges']()['every'](_0x18935b=>_0x2a9e4c['some'](_0xe9f921=>_0xe9f921['containsRange'](_0x18935b,!0x0)))){for(const _0xabdef9 of _0x48200f['getAllAdjacentSuggestions']())_0xabdef9['isInContent']&&(_0xabdef9['discard'](),_0x1b03c6=!0x0);}}}return _0x1b03c6;}),_0x2fd095['model']['document']['registerPostFixer'](_0x4d39ec=>{const _0x40f23f=_0x2fd095['commands']['get']('redo');if(!_0x40f23f||!_0x40f23f['_createdBatches']['has'](_0x4d39ec['batch']))return!0x1;let _0x17359f=!0x1;const _0x4c71ca=_0x2fd095['plugins']['get']('Users')['me'],_0x25f248=_0x2fd095['model']['document']['differ']['getChanges'](),_0x5245b5=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xbcb808,data:_0x473b75})=>{const {group:_0x4d70a1,subType:_0x3089c3,authorId:_0x2799e8}=_0x136206['_splitMarkerName'](_0xbcb808);return'suggestion'==_0x4d70a1&&'tablePaste'==_0x3089c3&&_0x2799e8==_0x4c71ca['id']&&!_0x473b75['oldRange'];});for(const _0x5a8110 of _0x25f248){if('insert'!=_0x5a8110['type']||'tableCellSuggestion'!=_0x5a8110['name']||0x1!=_0x5a8110['length'])continue;const _0x1b070c=_0x4d39ec['createRange'](_0x5a8110['position'],_0x5a8110['position']['getShiftedBy'](0x1));if(!_0x5245b5['find'](({data:_0xf92e0b})=>_0xf92e0b['newRange']['isEqual'](_0x1b070c))){for(const {name:_0x237510,data:_0xb3d601}of _0x5245b5)if(_0x1b070c['containsRange'](_0xb3d601['newRange'])){_0x4d39ec['updateMarker'](_0x237510,{'range':_0x1b070c}),_0x17359f=!0x0;break;}}}return _0x17359f;}),_0x2fd095['model']['document']['registerPostFixer'](_0x5dee4d=>{let _0x287a1f=!0x1;const _0x134f8d=_0x2fd095['plugins']['get']('Users')['me'],_0x4228b8=_0x136206['getSuggestions']()['filter'](_0x42bbb3=>_0x42bbb3['isInContent']&&_0x42bbb3['author']==_0x134f8d),_0x4ab2ca=new Set(),_0x5c726b=new Set();for(const _0x24c1e2 of _0x4228b8)if('tablePaste'==_0x24c1e2['subType'])for(const _0x31160b of _0x24c1e2['getMarkers']()){const _0x492950=_0x31160b['getRange']()['getContainedElement']();if(_0x492950){if(_0x492950['is']('element','tableCellSuggestion')&&Oe(_0x492950)){_0x24c1e2['removeMarker'](_0x31160b['name']),_0x4ab2ca['add'](_0x492950),_0x287a1f=!0x0;const _0x11a07f=_0x492950['nextSibling'],_0x2bc1e9=_0x492950['previousSibling'],_0x5a597c=_0x11a07f&&_0x11a07f['is']('element','tableCellSuggestion'),_0x327400=_0x2bc1e9&&_0x2bc1e9['is']('element','tableCellSuggestion');_0x5a597c&&!_0x4ab2ca['has'](_0x11a07f)&&_0x5c726b['add'](_0x11a07f),_0x327400&&!_0x4ab2ca['has'](_0x2bc1e9)&&_0x5c726b['add'](_0x2bc1e9);}else _0x492950['is']('element','paragraph')&&_0x492950['isEmpty']&&(_0x24c1e2['removeMarker'](_0x31160b['name']),_0x287a1f=!0x0);}}else{if('tablePasteCell'==_0x24c1e2['subType']){if(!_0x24c1e2['attributes']||!_0x24c1e2['attributes']['tablePasteChainId'])continue;const _0x5dd3ab=_0x24c1e2['attributes']['markerAttributes'];if(_0x5dd3ab&&Object['keys'](_0x5dd3ab)['length'])continue;const _0x4a7242=_0x24c1e2['attributes']['tablePasteChainId'];let _0x36d0b2=!0x0,_0x278efb=!0x0;for(const _0x133fcf of _0x4228b8)if(_0x133fcf['subType']&&_0x133fcf['subType']['startsWith']('tablePaste')){if(!_0x133fcf['attributes']['tablePasteChainId']){_0x278efb=!0x1;break;}if(_0x133fcf['id']!=_0x24c1e2['id']&&_0x133fcf['attributes']['tablePasteChainId']==_0x4a7242){_0x36d0b2=!0x1;break;}}_0x278efb&&_0x36d0b2&&(_0x24c1e2['removeMarkers'](),_0x287a1f=!0x0);}}for(const _0xaadaec of _0x4ab2ca)_0x5dee4d['remove'](_0xaadaec);for(const _0x4ceb99 of _0x5c726b)_0x5dee4d['unwrap'](_0x4ceb99);return _0x287a1f;}),_0x2fd095['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5e0cfe=>_0x2408bb(_0x5e0cfe),'converterPriority':'high'}),_0x2fd095['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d0104,_0x46d9b8)=>_0x46d9b8['options']['showSuggestionHighlights']?_0x2408bb(_0x2d0104,!0x1):null,'converterPriority':'high'});const _0x2a1671=_0x2fd095['editing']['view'];this['listenTo'](_0x2a1671['document'],'clipboardOutput',(_0x1587ce,_0x5a0498)=>{const _0x105e47=[];for(const _0x541189 of _0x2a1671['createRangeIn'](_0x5a0498['content'])['getItems']())_0x541189['is']('element','suggestion-td')&&_0x105e47['push'](_0x541189);_0x2a1671['change'](_0x1cd808=>{for(const _0x37086a of _0x105e47)_0x1cd808['move'](_0x1cd808['createRangeIn'](_0x37086a),_0x1cd808['createPositionBefore'](_0x37086a)),_0x1cd808['remove'](_0x37086a);});});}}function Oe(_0x574ab9){if(_0x574ab9['isEmpty'])return!0x0;const _0x3a68c3=_0x574ab9['getChild'](0x0);return _0x3a68c3['is']('element','paragraph')&&_0x3a68c3['isEmpty'];}function Ue(_0x925738,_0x58783c={},_0x32117d){for(const {isAnchor:_0x4c7902,cellHeight:_0x304048,cellWidth:_0x2149ba}of _0x32117d['createTableWalker'](_0x925738,{'includeAllSlots':!0x0,..._0x58783c}))if(!_0x4c7902||0x1!=_0x304048||0x1!=_0x2149ba)return!0x1;return!0x0;}class Dt extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6c2116=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c2116['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6c2116['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x299a11,_0x4bdabe){const _0x1d46ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b9f23=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cce2f=_0x4bdabe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x216876=_0x2b9f23['getColumnGroupElement'](_0x4cce2f);let _0x4652d0=_0x216876?_0x2b9f23['getTableColumnsWidths'](_0x216876):null,_0x3867dd=_0x4cce2f['getAttribute']('tableWidth')||null;const _0x59b378=_0x4bdabe['tableWidth']||_0x3867dd,_0xd19d54=_0x4bdabe['columnWidths']||_0x4652d0,_0xa6d6fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x358139 of _0x1d46ee['getSuggestions']()){const _0x490ce5=_0x358139['getContainedElement']();if('resizeTable'===_0x358139['subType']&&_0x490ce5===_0x4cce2f){_0x358139['author']!==_0xa6d6fa&&_0x358139['discard']();const _0x5bde8c=_0x358139['data']['commandParams'];_0x3867dd=_0x5bde8c[0x0]['tableWidth'],_0x4652d0=_0x5bde8c[0x0]['columnWidths'];break;}}_0x299a11({'table':_0x4cce2f,'tableWidth':_0x59b378,'columnWidths':_0xd19d54}),_0x1d46ee['markBlockFormat'](_0x4cce2f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3867dd,'columnWidths':_0x4652d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x6b7bda){if('formatBlock'!=_0x6b7bda['type']&&'formatInline'!=_0x6b7bda['type'])return;const {data:_0x2b0259}=_0x6b7bda;if(_0x2b0259&&'resizeTable'===_0x2b0259['formatGroupId']){const _0x49eee6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49eee6)};}}}class Mt extends _0x559983{['afterInit'](){const _0x433caf=this['editor'];_0x433caf['plugins']['has']('Template')&&_0x433caf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x559983{['afterInit'](){const _0x374510=this['editor'];if(!_0x374510['commands']['get']('insertTableOfContents'))return;_0x374510['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7bc32f=_0x374510['plugins']['get']('TrackChangesEditing'),_0x5cbf90=_0x374510['locale'];_0x7bc32f['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfb58c2=>o(_0x5cbf90,'ELEMENT_TABLE_OF_CONTENTS',_0xfb58c2));}}class Bt extends _0x559983{['afterInit'](){const _0xe920c=this['editor'];if(!_0xe920c['plugins']['has']('Title'))return;const _0x419486=_0xe920c['plugins']['get']('TrackChangesEditing');_0x419486['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe920c['locale'],'ELEMENT_TITLE')),_0xe920c['model']['document']['registerPostFixer'](_0x4d77ac=>{let _0x4a20e8=!0x1;const _0x3e87b5=Array['from'](_0xe920c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b6846,data:_0x1353af}of _0x3e87b5){const {group:_0x25d295}=_0x419486['_splitMarkerName'](_0x3b6846);if('suggestion'!==_0x25d295||!_0x1353af['newRange'])continue;const _0x150c8f=_0x1353af['newRange'],_0x323c1f=_0x150c8f['end']['nodeBefore'];if(!_0x323c1f||!_0x323c1f['is']('element','title-content'))continue;if(!_0x150c8f['start']['isTouching'](_0x150c8f['end']))continue;const _0x322c40=_0xe920c['model']['schema']['getNearestSelectionRange'](_0x150c8f['end'],'forward');if(_0x322c40&&_0x322c40['isCollapsed']){const _0x36f3a7=_0x4d77ac['createRange'](_0x150c8f['start'],_0x322c40['start']);_0x36f3a7['isEqual'](_0x150c8f)||(_0x4d77ac['updateMarker'](_0x3b6846,{'range':_0x36f3a7}),_0x4a20e8=!0x0);}_0x4a20e8||(_0x4d77ac['removeMarker'](_0x3b6846),_0x4a20e8=!0x0);}return _0x4a20e8;});}}class Tt extends _0x559983{['afterInit'](){const _0x3e5909=this['editor'],_0x23fac3=_0x3e5909['plugins']['get']('TrackChangesEditing');_0x3e5909['plugins']['has']('Uploadcare')&&(_0x23fac3['enableCommand']('uploadcare'),_0x3e5909['plugins']['has']('UploadcareImageEdit')&&(_0x23fac3['enableCommand']('uploadcareImageEdit'),_0x23fac3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23fac3['registerBlockAttribute']('uploadcareImageId'),_0x23fac3['descriptionFactory']['registerDescriptionCallback'](_0x275b86=>{if('attribute'!=_0x275b86['type'])return;const {data:_0x4bbd3e}=_0x275b86;return _0x4bbd3e&&'uploadcareImageId'==_0x4bbd3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x559983{['afterInit'](){const _0x1318d0=this['editor'],_0x2e4e9b=_0x1318d0['plugins']['get']('TrackChangesEditing');_0x1318d0['plugins']['has']('UndoEditing')&&(_0x2e4e9b['enableCommand']('undo'),_0x2e4e9b['enableCommand']('redo'));}}class Ot extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2de04f=this['editor'];if(!_0x2de04f['plugins']['has']('TableCaptionEditing'))return;_0x2de04f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x559983{['tableProperties'];['tableCellProperties'];constructor(_0x52d472){super(_0x52d472),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 _0x41f134=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf3fce4 of this['tableProperties'])_0x41f134['enableCommand'](_0xf3fce4,(_0x44c4a0,_0x5a88b5)=>{const _0x462057=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf3fce4,[_0x462057],this['tableProperties'],'tableProperties',_0x44c4a0,_0x5a88b5);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x44988b,_0x1aa11c)=>this['handleDiscardAction'](this['tableProperties'],_0x44988b,_0x1aa11c)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f9fd9 of this['tableCellProperties'])_0x41f134['enableCommand'](_0x1f9fd9,(_0x5b842a,_0x407da2)=>{const _0x46d848=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f9fd9,_0x46d848,this['tableCellProperties'],'tableCellProperties',_0x5b842a,_0x407da2);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e02e0,_0x14f2f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e02e0,_0x14f2f0)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x41f134['descriptionFactory']['registerDescriptionCallback'](_0x1ff34e=>this['handleSuggestionDescription'](_0x1ff34e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5b2e41,_0x4e4b49,_0x5ed8d7,_0xb6595f,_0x10bc50,_0x26d1e7){const _0x1e067b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26d1e7['batch'],()=>{for(const _0x5c102b of _0x4e4b49){if(this['_getSuggestion'](_0x5c102b,_0xb6595f))_0x10bc50(_0x26d1e7);else{const _0x2467e3={};for(const _0x14c385 of _0x5ed8d7){const _0x7cb274=_0x5c102b['getAttribute'](_0x14c385);void 0x0!==_0x7cb274&&(_0x2467e3[_0x14c385]=_0x7cb274);}_0x10bc50(_0x26d1e7),_0x1e067b['markBlockFormat'](_0x5c102b,{'commandParams':[_0x2467e3]},[],_0xb6595f);}}});}['handleDiscardAction'](_0x17ceab,_0x2b44d6,_0x14ad58){const _0x4c283d=_0x2b44d6[0x0]['start']['nodeAfter'],_0x15fea8=_0x14ad58['commandParams'][0x0];this['editor']['model']['change'](_0x708dd3=>{for(const _0x3f5e9c of _0x17ceab)void 0x0!==_0x15fea8[_0x3f5e9c]?_0x708dd3['setAttribute'](_0x3f5e9c,_0x15fea8[_0x3f5e9c],_0x4c283d):_0x708dd3['removeAttribute'](_0x3f5e9c,_0x4c283d);});}['handleSuggestionDescription'](_0x334bdb){if(_0x334bdb['data'])switch(_0x334bdb['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x10c081,_0x2ee6a5){const _0x243495=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50516a of _0x243495['getSuggestions']({'skipNotAttached':!0x0})){const _0x489d1b=_0x50516a['getContainedElement']();if(_0x50516a['subType']===_0x2ee6a5&&_0x489d1b===_0x10c081)return _0x50516a;}return null;}['_registerTablePropertiesAttributes'](){const _0xab091a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421d22=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x433b94 of _0x421d22){const _0x148ee3=_0x433b94['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xab091a['registerBlockAttribute'](_0x433b94),_0xab091a['descriptionFactory']['registerAttributeLabel'](_0x433b94,o(this['editor']['locale'],'FORMAT_'+_0x148ee3));}}}class Rt extends _0x559983{['afterInit'](){const _0x157a82=this['editor'];if(!_0x157a82['plugins']['has']('LineHeight'))return;const _0x3a7db7=_0x157a82['plugins']['get']('TrackChangesEditing'),_0x52ef3c=_0x157a82['locale'];_0x3a7db7['enableDefaultAttributesIntegration']('lineHeight'),_0x3a7db7['registerBlockAttribute']('lineHeight'),_0x3a7db7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52ef3c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x559983{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x597f1a,_0x5e448f,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b062f){super(_0x4b062f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x300c5a,_0x2e449e,_0x2c44ef,_0x11ee52)=>{this['_model']['change'](()=>{for(const _0x4247a9 of[..._0x11ee52,..._0x2c44ef])this['_model']['markers']['has'](_0x4247a9)&&_0x4b062f['editing']['reconvertMarker'](_0x4247a9);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4b062f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4b062f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b062f['config']['get']('trackChanges.trackFormatChanges'),_0x4b062f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b062f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4b062f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23bca9=this['editor'],_0x56645c=(_0x4d7565,_0x114800)=>{if('attribute'!=_0x4d7565)return'ck-suggestion-marker-'+_0x4d7565;const _0xc82358=_0x114800['split']('|')[0x0];return this['_isBlockAttribute'](_0xc82358)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23bca9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf09776=>{const {id:_0x4b03eb,authorId:_0x734fae,type:_0x5a0539,subType:_0x4c8384}=this['_splitMarkerName'](_0xf09776['markerName']),_0x548817=['ck-suggestion-marker',_0x56645c(_0x5a0539,_0x4c8384)];let _0x7db6b5=0xbb8;return this['activeMarkers']['includes'](_0xf09776['markerName'])&&(_0x548817['push']('ck-suggestion-marker--active'),_0x7db6b5=0xbc2),'deletion'==_0x5a0539&&(_0x7db6b5+=0x5),{'classes':_0x548817,'attributes':{'data-suggestion':_0x4b03eb,'data-author-id':_0x734fae},'priority':_0x7db6b5};}}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x4655c7=>{_0x4655c7['on']('addMarker:suggestion',(_0x47871c,_0x216b12,_0x1ece88)=>{if(!_0x1ece88['options']['showSuggestionHighlights'])return;const _0x33f679=_0x216b12['item'];if(!_0x33f679)return;const _0x3bb3da=_0x1ece88['mapper']['toViewElement'](_0x33f679);_0x23bca9['model']['schema']['isObject'](_0x33f679)&&_0x3bb3da&&!_0x3bb3da['getCustomProperty']('widget')&&_0x3bb3da['is']('containerElement')&&_0x1a071f(_0x3bb3da,_0x1ece88['writer']);},{'priority':'high'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18c326,_0x182639)=>{if(!_0x182639['options']['showSuggestionHighlights'])return null;const {id:_0x2dee30,authorId:_0x59d738,type:_0xc22673,subType:_0x3e5245}=this['_splitMarkerName'](_0x18c326['markerName']);return{'classes':['ck-suggestion-marker',_0x56645c(_0xc22673,_0x3e5245)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2dee30,'data-author-id':_0x59d738}};}});const _0x3b00ff=({showActiveMarkers:_0x3405bc=!0x0,isAttributeSuggestion:_0x5f44dc=!0x1}={})=>(_0x128766,_0x58a15c,_0x182d07)=>{if(!_0x58a15c['item'])return;const {id:_0x259d4d,authorId:_0x2e556c}=this['_splitMarkerName'](_0x58a15c['markerName']);if(_0x5f44dc){const _0xa88727=this['_suggestions']['get'](_0x259d4d),_0x12f7cb=this['_getAttributeKey'](_0xa88727);if(!this['_isBlockAttribute'](_0x12f7cb))return;}if(_0x58a15c['item']['is']('selection'))return void _0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);const _0x15e0bc=_0x182d07['mapper']['toViewElement'](_0x58a15c['item']);if(_0x58a15c['item']['is']('element')&&_0x23bca9['model']['schema']['isBlock'](_0x58a15c['item'])&&!_0x15e0bc['getCustomProperty']('addHighlight')){_0x182d07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15e0bc),_0x182d07['writer']['setAttribute']('data-suggestion',_0x259d4d,_0x15e0bc),_0x182d07['writer']['setAttribute']('data-author-id',_0x2e556c,_0x15e0bc),_0x182d07['mapper']['bindElementToMarker'](_0x15e0bc,_0x58a15c['markerName']),_0x3405bc&&(this['activeMarkers']['includes'](_0x58a15c['markerName'])?_0x182d07['writer']['addClass']('ck-suggestion-marker--active',_0x15e0bc):_0x182d07['writer']['removeClass']('ck-suggestion-marker--active',_0x15e0bc));for(const _0x513398 of _0x23bca9['model']['createRangeIn'](_0x58a15c['item'])['getItems']())_0x182d07['consumable']['consume'](_0x513398,_0x128766['name']);_0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);}};_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x1fb4ec=>{_0x1fb4ec['on']('addMarker:suggestion:formatBlock',(_0x1ba42b,_0x23f210,_0x4220ac)=>{_0x4220ac['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1})(_0x1ba42b,_0x23f210,_0x4220ac);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x17be71=>{_0x17be71['on']('addMarker:suggestion:attribute',(_0x35f425,_0x5ed581,_0x343627)=>{_0x343627['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35f425,_0x5ed581,_0x343627);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e8250,_0x312fb6)=>{if(_0x312fb6['options']['showSuggestionHighlights']){const {id:_0x374d5f,authorId:_0x675006}=this['_splitMarkerName'](_0x1e8250);return _0x1e8250['includes'](':split')||_0x1e8250['includes'](':merge')?{'group':'suggestion','name':_0x1e8250['substr'](0xb),'attributes':{'data-suggestion':_0x374d5f,'data-author-id':_0x675006}}:null;}return{'group':'suggestion','name':_0x1e8250['substr'](0xb)};}}),_0x23bca9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ea570,{writer:_0x410278})=>{let _0xdf8d70='suggestion:'+_0x1ea570['getAttribute']('suggestion-type')+':'+_0x1ea570['getAttribute']('id');return _0x1ea570['getAttribute']('marker-count')&&(_0xdf8d70+=':'+_0x1ea570['getAttribute']('marker-count')),_0x410278['createElement']('$marker',{'data-name':_0xdf8d70});}}),_0x23bca9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x12daec=>{_0x12daec['on']('addMarker:suggestion:formatBlock',_0x3b00ff(),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4b5e53=>{_0x4b5e53['on']('addMarker:suggestion:attribute',_0x3b00ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4031a0=>{_0x4031a0['on']('removeMarker:suggestion:formatBlock',(_0x2d82ed,_0x34cfd5,_0x2eca93)=>{const _0x27b824=_0x2eca93['mapper']['markerNameToElements'](_0x34cfd5['markerName']);if(_0x27b824){for(const _0x3df03a of _0x27b824)_0x3df03a['getCustomProperty']('addHighlight')||(_0x2eca93['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-suggestion',_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-author-id',_0x3df03a),_0x2eca93['mapper']['unbindElementFromMarkerName'](_0x3df03a,_0x34cfd5['markerName']));}},{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x26b909=>{_0x26b909['on']('removeMarker:suggestion:attribute',(_0x492e9d,_0x24e9a9,_0x8b826e)=>{const _0x55bcdd=_0x8b826e['mapper']['markerNameToElements'](_0x24e9a9['markerName']);if(!_0x55bcdd)return;const {id:_0x45d054}=this['_splitMarkerName'](_0x24e9a9['markerName']),_0x267cce=this['_suggestions']['get'](_0x45d054),_0x532881=this['_getAttributeKey'](_0x267cce);if(this['_isBlockAttribute'](_0x532881)){for(const _0x29ed9b of _0x55bcdd)_0x29ed9b['getCustomProperty']('addHighlight')||(_0x8b826e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-suggestion',_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-author-id',_0x29ed9b),_0x8b826e['mapper']['unbindElementFromMarkerName'](_0x29ed9b,_0x24e9a9['markerName']));}},{'priority':'high'});}),_0x23bca9['model']['document']['registerPostFixer'](_0x4ba6c0=>{let _0xd61779=!0x1;const _0x4fbcab=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']()),_0x45faa4=new Set();for(const {name:_0x5ee20f,data:_0x303cc9}of _0x4fbcab){const {group:_0x43123c,type:_0x109ac6,subType:_0x4cf9ff,id:_0x55bb09}=this['_splitMarkerName'](_0x5ee20f);if('suggestion'!==_0x43123c)continue;const _0x53d43c=this['_suggestions']['get'](_0x55bb09);if(null!=_0x303cc9['newRange']){'formatInline'==_0x109ac6&&(_0xd61779=_0xd61779||Gt(_0x303cc9['newRange'],_0x5ee20f,_0x4ba6c0,_0x23bca9['model']['schema']));const _0x4a4692='attribute'==_0x109ac6&&this['_isBlockAttribute'](_0x4cf9ff['split']('|')[0x0]);if(_0x303cc9['newRange']['isCollapsed']||'$graveyard'==_0x303cc9['newRange']['root']['rootName']||'formatBlock'==_0x109ac6&&!Jt(_0x303cc9['newRange'])||_0x4a4692&&!Jt(_0x303cc9['newRange'])||'deletion'==_0x109ac6&&!Kt(_0x303cc9['newRange']))_0x4ba6c0['removeMarker'](_0x5ee20f),_0xd61779=!0x0;else{if(!_0x53d43c||!_0x53d43c['isInContent'])continue;if(_0x303cc9['newRange']&&_0x303cc9['oldRange']&&_0x303cc9['newRange']['isEqual'](_0x303cc9['oldRange']))continue;_0x45faa4['add'](_0x53d43c);}}}return _0x45faa4['size']>0x0&&(_0xd61779=!!this['_joinWithAdjacentSuggestions'](_0x45faa4)||_0xd61779),_0xd61779;}),_0x23bca9['model']['document']['registerPostFixer'](_0x101241=>{let _0x30b477=!0x1;for(const _0x77bfc8 of _0x23bca9['model']['document']['differ']['getChanges']())if('insert'==_0x77bfc8['type'])for(const _0x36dfe5 of this['_suggestions']['values']()){if(_0x36dfe5['isMultiRange']||!_0x36dfe5['isInContent'])continue;const _0x50f72b='formatBlock'==_0x36dfe5['type'],_0x4618b8=this['_getAttributeKey'](_0x36dfe5),_0x2f0c33=_0x4618b8&&this['_isBlockAttribute'](_0x4618b8);if(!_0x50f72b&&!_0x2f0c33)continue;const _0x124d1d=_0x36dfe5['getFirstRange']();if(_0x124d1d['start']['parent']!=_0x124d1d['end']['parent']&&!_0x124d1d['end']['isAtEnd']){const _0x4e1821=_0x23bca9['model']['createPositionAt'](_0x124d1d['start']['nodeAfter'],'end'),_0x2f90a9=_0x23bca9['model']['createRange'](_0x124d1d['start'],_0x4e1821);_0x101241['updateMarker'](_0x36dfe5['getFirstMarker'](),{'range':_0x2f90a9}),_0x30b477=!0x0;}}return _0x30b477;}),_0x23bca9['model']['document']['registerPostFixer'](_0x7f28d3=>this['_processAttributeChanges'](_0x7f28d3)),_0x23bca9['model']['document']['registerPostFixer'](_0x15fb5c=>!_0x15fb5c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x15fb5c)),_0x23bca9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23bca9['model']['document']['on']('change:data',(_0x838a48,_0x474892)=>{if(!_0x474892['isLocal']||_0x474892['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x455f18=_0x23bca9['model']['document']['differ']['getChanges']();if(0x0==_0x455f18['length'])return;const _0x115431=[],_0x5292e2=_0x455f18['filter'](_0x30bf65=>'attribute'==_0x30bf65['type']),_0x5e7f2a=_0x455f18['filter'](_0x1002b2=>'insert'==_0x1002b2['type']&&'$text'!=_0x1002b2['name']);for(const _0x5996bc of _0x5292e2)this['_isRegisteredAttribute'](_0x5996bc['attributeKey'])&&_0x115431['push']({'key':_0x5996bc['attributeKey'],'newValue':_0x5996bc['attributeNewValue'],'oldValue':_0x5996bc['attributeOldValue'],'range':Ht(_0x5996bc['range'],_0x23bca9['model'])});for(const _0x15ec31 of _0x5e7f2a){if('rename'!=_0x15ec31['action']&&'refresh'!=_0x15ec31['action'])continue;const _0x2da076=qt(_0x15ec31['position']['nodeAfter'],_0x23bca9['model']),_0x4f6316=_0x15ec31['before'];'rename'==_0x15ec31['action']&&_0x115431['push']({'key':m,'newValue':_0x15ec31['name'],'oldValue':_0x4f6316['name'],'range':_0x2da076});for(const [_0x29d76b,_0xc451ef]of _0x4f6316['attributes']){if(!this['_isRegisteredAttribute'](_0x29d76b))continue;const _0x84277b=_0x15ec31['attributes']['get'](_0x29d76b);_0xc451ef!==_0x84277b&&_0x115431['push']({'key':_0x29d76b,'newValue':_0x84277b,'oldValue':_0xc451ef,'range':_0x2da076});}for(const [_0x4fb0b1,_0xc1111f]of _0x15ec31['attributes'])this['_isRegisteredAttribute'](_0x4fb0b1)&&(_0x4f6316['attributes']['has'](_0x4fb0b1)||_0x115431['push']({'key':_0x4fb0b1,'newValue':_0xc1111f,'oldValue':null,'range':_0x2da076}));}0x0!=_0x115431['length']&&_0x23bca9['model']['enqueueChange'](_0x474892,_0x16c7bd=>{const _0x339dd1=_0x20cf05();for(const {range:_0x4cd2b9,key:_0x33f81c,oldValue:_0x4b8d4f,newValue:_0x462c39}of _0x115431)this['markAttributeChange'](_0x4cd2b9,_0x33f81c,_0x4b8d4f,_0x462c39,{'groupId':_0x339dd1});this['_reduceExistingSuggestions'](_0x16c7bd,_0x115431);});},{'priority':'lowest'}),_0x23bca9['model']['markers']['on']('update:suggestion',(_0x3bb1d6,_0x446720,_0x4c7e46)=>{if(null==_0x4c7e46){const {id:_0x200c93}=this['_splitMarkerName'](_0x446720['name']),_0x27e5de=this['_suggestions']['get'](_0x200c93);_0x27e5de&&_0x27e5de['addMarkerName'](_0x446720['name']);}}),_0x23bca9['model']['document']['on']('change:data',()=>{const _0x51e784=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46ec89=>'suggestion'===this['_splitMarkerName'](_0x46ec89['name'])['group']);if(0x0===_0x51e784['length'])return;_0x51e784['sort']((_0x1f845b,_0x2379a9)=>{const _0xb3271=_0x1f845b['data']['oldRange'],_0x1251dd=_0x2379a9['data']['oldRange'];return null===_0xb3271&&null===_0x1251dd?0x0:null===_0xb3271&&null!==_0x1251dd?-0x1:null!==_0xb3271&&null===_0x1251dd?0x1:_0xb3271['start']['isBefore'](_0x1251dd['start'])?-0x1:0x1;});const _0x14b2f8=new Set(),_0x560b69=new Set();for(const {name:_0x2993c4,data:_0x487dec}of _0x51e784){const {id:_0x3d09f8}=this['_splitMarkerName'](_0x2993c4);if(null===_0x487dec['oldRange']){const _0x69a6dd=this['_handleNewSuggestionMarker'](_0x2993c4);_0x560b69['add'](_0x69a6dd);}else{const _0x55db7e=this['_suggestions']['get'](_0x3d09f8);null!==_0x487dec['newRange']||_0x55db7e['isInContent']?(_0x14b2f8['add'](_0x55db7e['head']),_0x560b69['add'](_0x55db7e)):this['_removeSuggestion'](_0x55db7e);}}_0x560b69['size']>0x0&&this['_refreshSuggestionsChain'](_0x560b69);for(const _0x59587b of _0x14b2f8)this['fire']('suggestionChanged',_0x59587b);}),_0x23bca9['model']['on']('applyOperation',(_0x35a964,_0x56cb30)=>{const _0x38d2e2=_0x56cb30[0x0];if(!this['_suggestions']['size'])return;if(!_0x38d2e2['isDocumentOperation'])return;if(_0x38d2e2['batch']['isUndo']||!_0x38d2e2['batch']['isLocal'])return;let _0x490ad9,_0x4d06db;switch(_0x38d2e2['type']){case'insert':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['position']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;case'split':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['splitPosition']),_0x4d06db=_0x23bca9['model']['createPositionAt'](_0x38d2e2['moveTargetPosition']);break;case'move':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['targetPosition']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;default:return;}const _0x5e2848=_0x23bca9['model']['createRange'](_0x490ad9,_0x4d06db);_0x23bca9['model']['change'](()=>{for(const {suggestion:_0x19947f,meta:_0x17e615}of this['_findSuggestions'](_0x5e2848)){if(_0x19947f['isMultiRange'])continue;if('formatInline'==_0x19947f['type'])continue;const _0x3f34ff=this['_getAttributeKey'](_0x19947f);if(_0x3f34ff&&this['_isBlockAttribute'](_0x3f34ff)&&'split'!=_0x38d2e2['type'])continue;const _0x54aa49=_0x19947f['data']&&_0x19947f['data']['multipleBlocks'];('formatBlock'!=_0x19947f['type']||'split'==_0x38d2e2['type']&&!_0x54aa49)&&(_0x17e615['containsRangeInObject']||'insertion'==_0x19947f['type']&&_0x17e615['isOwn']||_0x19947f['getFirstRange']()['containsRange'](_0x5e2848)&&this['_breakSuggestionMarker'](_0x19947f,_0x490ad9,_0x4d06db));}});},{'priority':'lowest'}),_0x23bca9['model']['on']('deleteContent',(_0x58fc64,_0x492cf2)=>{const _0x3b4c3a=_0x492cf2[0x0],_0x29f5d6=_0x492cf2[0x1];if(_0x29f5d6&&_0x29f5d6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b4c3a['isCollapsed'])return;const _0x264b8b=_0x23bca9['model']['schema'],{start:_0x42ed71,end:_0x86923b}=_0x3b4c3a['getFirstRange'](),_0x24535e=_0x42ed71['nodeAfter']&&_0x264b8b['isLimit'](_0x42ed71['nodeAfter'])?null:_0x264b8b['getNearestSelectionRange'](_0x42ed71,'forward'),_0x912057=_0x86923b['nodeBefore']&&_0x264b8b['isLimit'](_0x86923b['nodeBefore'])?null:_0x264b8b['getNearestSelectionRange'](_0x86923b,'backward'),_0x1fb918=_0x23bca9['model']['createRange'](_0x24535e?_0x24535e['start']:_0x42ed71,_0x912057?_0x912057['end']:_0x86923b);_0x23bca9['model']['change'](_0x2d7843=>{this['markDeletion'](_0x1fb918);const _0x335305=_0x23bca9['model']['schema']['getNearestSelectionRange'](_0x1fb918['start']);_0x3b4c3a['is']('documentSelection')?_0x2d7843['setSelection'](_0x335305):_0x3b4c3a['setTo'](_0x335305);}),_0x58fc64['stop']();},{'priority':_0x3a0027['normal']+0xa}),_0x23bca9['model']['on']('insertContent',(_0x2f18c3,_0x4d1122)=>{const _0x59e4c6=_0x4d1122[_0x4d1122['length']-0x1];_0x59e4c6&&_0x59e4c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23bca9['model']['change'](()=>{let _0xfda2b7=_0x23bca9['model']['insertContent'](_0x4d1122[0x0],_0x4d1122[0x1],_0x4d1122[0x2],{'forceDefaultExecution':!0x0});if(!_0xfda2b7)return;_0x2f18c3['return']=_0xfda2b7['clone']();const _0x35ad52=_0xfda2b7['end']['nodeBefore'],_0x46fef5=_0x23bca9['model']['schema'];_0x35ad52&&_0x46fef5['isBlock'](_0x35ad52)&&!_0x46fef5['isObject'](_0x35ad52)&&(_0xfda2b7=_0x23bca9['model']['createRange'](_0xfda2b7['start'],_0x23bca9['model']['createPositionAt'](_0x35ad52,'end'))),this['markInsertion'](_0xfda2b7);}),_0x2f18c3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14ced0=new D(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('acceptSuggestion',_0x14ced0),this['enableCommand']('acceptSuggestion');const _0x284cac=new M(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('discardSuggestion',_0x284cac),this['enableCommand']('discardSuggestion'),_0x23bca9['commands']['add']('acceptAllSuggestions',new $(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23bca9['commands']['add']('discardAllSuggestions',new $(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23bca9['commands']['add']('acceptSelectedSuggestions',new B(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23bca9['commands']['add']('discardSelectedSuggestions',new B(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x320370=_0x23bca9['plugins']['get']('CommentsRepository');this['listenTo'](_0x320370,'addComment',(_0x118770,{threadId:_0x51bf3a})=>{const _0x49a7fc=this['_suggestions']['get'](_0x51bf3a);_0x49a7fc&&_0x49a7fc['commentThread']&&0x1===_0x49a7fc['commentThread']['length']&&this['_updateSuggestionData'](_0x51bf3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x320370,'removeComment',(_0x1a9bc4,{threadId:_0x4ae482})=>{const _0x4d806b=this['_suggestions']['get'](_0x4ae482);_0x4d806b&&_0x4d806b['commentThread']&&!_0x4d806b['commentThread']['length']&&this['_updateSuggestionData'](_0x4ae482,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1b9b0d){const _0x4f5590=_0x24c341([0x6c,0x79,0x4b,0x6b,0x32,0x58,0x75,0x74,0x78,0x55,0x61,0x53,0x33,0x6d,0x35,0x38,0x5a,0x41,0x64,0x4f,0x45,0x4a,0x50,0x36,0x69,0x65,0x6f,0x59,0x42,0x66,0x57,0x76,0x39,0x31,0x56,0x49,0x30,0x70,0x48,0x34,0x72,0x7a,0x6e,0x4d,0x68,0x52,0x77,0x67,0x62,0x6a,0x37,0x73,0x46,0x54,0x63,0x43,0x71,0x51,0x47,0x4c,0x4e,0x44]),_0x5dbf5b=0x59bb6ff8,_0x55432d=0x59bc0330^_0x5dbf5b,_0x58ce10=window[_0x24c341([0x44,0x61,0x74,0x65])][_0x24c341([0x6e,0x6f,0x77])](),_0x3b6ec9=_0x1b9b0d[_0x24c341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15aba8=new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1527fe=>{_0x3b6ec9[_0x24c341([0x6f,0x6e,0x63,0x65])](_0x24c341([0x72,0x65,0x61,0x64,0x79]),_0x1527fe);}),_0x160b80={[_0x24c341([0x6b,0x74,0x79])]:_0x24c341([0x45,0x43]),[_0x24c341([0x75,0x73,0x65])]:_0x24c341([0x73,0x69,0x67]),[_0x24c341([0x63,0x72,0x76])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36]),[_0x24c341([0x78])]:_0x24c341([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]),[_0x24c341([0x79])]:_0x24c341([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]),[_0x24c341([0x61,0x6c,0x67])]:_0x24c341([0x45,0x53,0x32,0x35,0x36])},_0x135718=_0x3b6ec9[_0x24c341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24c341([0x67,0x65,0x74])](_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a2cad(){let _0x437eba,_0x3eef64=null,_0x111617=null;try{if(_0x135718==_0x24c341([0x47,0x50,0x4c]))return _0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x437eba=_0x5d0ce2(),!_0x437eba)return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x111617=_0x197b1a(_0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x437eba[_0x24c341([0x6a,0x74,0x69])])),await _0x770d51()?_0x456959()?_0x574a8c()?_0x24c341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac9589()?(_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eef64=_0x34a973(_0x24c341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eef64=_0x34a973(_0x24c341([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x304eec()):_0x24c341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x574a8c(){const _0x5efd7a=[_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24c341([0x74,0x72,0x69,0x61,0x6c])][_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58ce10/0x3e8:0xe10*_0x55432d;return _0x437eba[_0x24c341([0x65,0x78,0x70])]<_0x5efd7a;}function _0x456959(){const _0x29f04a=_0x437eba[_0x24c341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29f04a)return!0x1;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x54,0x43])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x52,0x54,0x43]))){if(_0x39bb6f())return!0x0;if(_0x28fc5f()||_0x4420d4())return!0x0;}return!0x1;}function _0xac9589(){const _0x4abc13=_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4abc13||0x0==_0x4abc13[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x399d7f}=new URL(window[_0x24c341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4abc13[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x399d7f))return!0x0;const _0x3d186a=_0x399d7f[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));return _0x4abc13[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26b84f=>_0x26b84f[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))[_0x24c341([0x6d,0x61,0x70])](_0x3f8220=>_0x3f8220[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])))[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e5b8d=>_0x1e5b8d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x6d,0x61,0x70])](_0x59cff1=>Array(_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59cff1[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x66,0x69,0x6c,0x6c])](_0x59cff1[0x0]===_0x24c341([0x2a])?_0x24c341([0x2a]):'')[_0x24c341([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59cff1))[_0x24c341([0x73,0x6f,0x6d,0x65])](_0x222a18=>_0x3d186a[_0x24c341([0x65,0x76,0x65,0x72,0x79])]((_0x188dac,_0x32310)=>_0x222a18[_0x32310]===_0x188dac||_0x222a18[_0x32310]===_0x24c341([0x2a])));}function _0x304eec(){return _0x3eef64&&_0x111617?new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x428bd8,_0x440a5f)=>{_0x3eef64[_0x24c341([0x74,0x68,0x65,0x6e])](_0x428bd8,_0x440a5f),_0x111617[_0x24c341([0x74,0x68,0x65,0x6e])](_0x42f73f=>{_0x42f73f!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x428bd8(_0x42f73f);},_0x440a5f);}):_0x3eef64||_0x111617||_0x24c341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x197b1a(_0x4d5242,_0x212910){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2548e7=>{if(_0x385652())return _0x2548e7(_0x24c341([0x56,0x61,0x6c,0x69,0x64]));_0x4b2144(),_0x3b6ec9[_0x24c341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x284aaa=!0x1;const _0x36f1b7=_0x20cf05();function _0x816ede(_0x3c64f0){return!!_0x3c64f0&&(typeof _0x3c64f0===_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c64f0===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c64f0[_0x24c341([0x74,0x68,0x65,0x6e])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c64f0[_0x24c341([0x63,0x61,0x74,0x63,0x68])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57a2b1(_0x30a75e){_0x497ff5(_0x30a75e)[_0x24c341([0x74,0x68,0x65,0x6e])](_0x56f46c=>{if(!_0x56f46c||_0x56f46c[_0x24c341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24c341([0x6f,0x6b]))return _0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50cf3b(_0x4e569b(_0x36f1b7+_0x212910))!=_0x56f46c[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x3c6bce=>(_0x1b0923(),_0x3c6bce),()=>{const _0x238a8c=_0x55dda7();return null==_0x238a8c?(_0x1b0923(),_0x24c341([0x56,0x61,0x6c,0x69,0x64])):_0x24c341(_0x58ce10-_0x238a8c>(0x7db7ebf8^_0x5dbf5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x2548e7)[_0x24c341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3949f2=0x598d8178^_0x5dbf5b;function _0x1b0923(){const _0x403bb0=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0x1516e=_0x1e5e12(_0x50cf3b(window[_0x24c341([0x4d,0x61,0x74,0x68])][_0x24c341([0x63,0x65,0x69,0x6c])](_0x58ce10/_0x3949f2)));window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x403bb0,_0x1516e);}function _0x55dda7(){const _0x214e6e=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0xe5eb1d=window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x214e6e);return _0xe5eb1d?window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5e12(_0xe5eb1d),0x10)*_0x3949f2:null;}function _0x497ff5(_0x33cffd){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33c0ee,_0x220719)=>{_0x33cffd[_0x24c341([0x74,0x68,0x65,0x6e])](_0x33c0ee,_0x220719),window[_0x24c341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x220719,0x59babb38^_0x5dbf5b);});}}_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x159182,_0x247d76)=>{if(_0x247d76[0x0]!=_0x4d5242)return _0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247d76[0x1]={..._0x247d76[0x1],[_0x24c341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36f1b7};},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x68,0x69,0x67,0x68])}),_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x124ea6=>{_0x816ede(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x284aaa=!0x0,_0x57a2b1(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x6c,0x6f,0x77])}),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>{_0x284aaa||_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x385652(){return _0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24c341([0x61,0x75,0x74,0x6f]);}function _0x4b2144(){_0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24c341([0x61,0x75,0x74,0x6f]);}}function _0x34a973(_0x408ec9){const _0x583ec6=[new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5d71=>setTimeout(_0x2f5d71,0x59b25134^_0x5dbf5b)),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23ec0b=>{let _0x35c87f=0x0;_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x6f,0x6e])](_0x24c341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x119f98,_0x2d079f)=>{_0x2d079f[0x0][_0x24c341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35c87f++,_0x35c87f==(0x59bb6e00^_0x5dbf5b)&&(_0x23ec0b(),_0x119f98[_0x24c341([0x6f,0x66,0x66])]());});}))];return window[_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24c341([0x72,0x61,0x63,0x65])](_0x583ec6)[_0x24c341([0x74,0x68,0x65,0x6e])](()=>_0x408ec9);}async function _0x1a6564(){await _0x15aba8,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24c341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39bb6f(){return _0x5edec2(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1090ef(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24c341([0x73,0x74,0x61,0x74,0x65])]==_0x24c341([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x28fc5f(){return _0x5edec2(_0x24c341([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 _0x4420d4(){return _0x5edec2(_0x24c341([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51f8ff(_0xd7fb4b){const _0x227a73=_0x40ec2b();_0x3b6ec9[_0x227a73]=_0x24c341([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd7fb4b,_0xd7fb4b!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x1a6564();}function _0x40ec2b(){const _0x1ccede=window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24c341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24c341([0x6e,0x6f,0x77])]())[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24c341([0x2e]),'');let _0x1c8d76=_0x24c341([0x6c]);for(let _0x5e1575=0x0;_0x5e1575<_0x1ccede[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e1575+=0x2){let _0x451738=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccede[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e1575,_0x5e1575+0x2));_0x451738>=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x451738-=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c8d76+=_0x4f5590[_0x451738];}return _0x1c8d76;}function _0x5d0ce2(){const _0x26172d=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));if(0x3!=_0x26172d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e9970(_0x26172d[0x1]);function _0x4e9970(_0x17f50f){const _0x5ba533=_0xb47c02(_0x17f50f);return _0x5ba533&&_0x329639()?_0x5ba533:null;function _0x329639(){const _0x36b7b2=_0x5ba533[_0x24c341([0x6a,0x74,0x69])],_0x16b391=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18dd13={..._0x5ba533,[_0x24c341([0x6a,0x74,0x69])]:_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18dd13[_0x24c341([0x76,0x63])],_0x4e569b(_0x18dd13)==_0x16b391;}}}async function _0x770d51(){let _0x49eb4f=!0x0;try{const _0x44145b=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])),[_0x48b6af,_0x3197e6,_0x4fc7eb]=_0x44145b;return _0x4f7fd1(_0x48b6af),await _0x43c698(_0x48b6af,_0x3197e6,_0x4fc7eb),_0x49eb4f;}catch{return!0x1;}function _0x4f7fd1(_0x40b42e){const _0xfd3d63=_0xb47c02(_0x40b42e);_0xfd3d63&&_0xfd3d63[_0x24c341([0x61,0x6c,0x67])]==_0x24c341([0x45,0x53,0x32,0x35,0x36])||(_0x49eb4f=!0x1);}async function _0x43c698(_0x25ee29,_0x573de5,_0x3bd54d){const _0x581cb5=window[_0x24c341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24c341([0x66,0x72,0x6f,0x6d])](_0x559380(_0x3bd54d),_0x36fcb4=>_0x36fcb4[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ce4c=new window[(_0x24c341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24c341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25ee29+_0x24c341([0x2e])+_0x573de5),_0x107818=window[_0x24c341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24c341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x107818)return;const _0x1d609b=await _0x107818[_0x24c341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24c341([0x6a,0x77,0x6b]),_0x160b80,{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x107818[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x68,0x61,0x73,0x68])]:{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d609b,_0x581cb5,_0x34ce4c)||(_0x49eb4f=!0x1);}}function _0xb47c02(_0x46e5e6){return _0x46e5e6[_0x24c341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24c341([0x65,0x79]))?JSON[_0x24c341([0x70,0x61,0x72,0x73,0x65])](_0x559380(_0x46e5e6)):null;}function _0x559380(_0x5ea9ef){return window[_0x24c341([0x61,0x74,0x6f,0x62])](_0x5ea9ef[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24c341([0x2b]))[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24c341([0x2f])));}function _0x4e569b(_0x219128){let _0x443470=0x1505;function _0x3d957c(_0x14ce22){for(let _0x2b5dcf=0x0;_0x2b5dcf<_0x14ce22[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b5dcf++){const _0x538b53=_0x14ce22[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b5dcf);_0x443470=(_0x443470<<0x5)+_0x443470+_0x538b53,_0x443470&=_0x443470;}}function _0x3c7877(_0x5539d1){Array[_0x24c341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5539d1)?_0x5539d1[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c7877):_0x5539d1&&typeof _0x5539d1==_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24c341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5539d1)[_0x24c341([0x73,0x6f,0x72,0x74])]()[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd4c56c,_0x1fc15d])=>{_0x3d957c(_0xd4c56c),_0x3c7877(_0x1fc15d);}):_0x3d957c(window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5539d1));}return _0x3c7877(_0x219128),_0x443470>>>0x0;}function _0x50cf3b(_0x54dc82){return _0x54dc82[_0x24c341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24c341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24c341([0x30]));}function _0x1e5e12(_0x2ebc07){return _0x2ebc07[_0x24c341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24c341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24c341([0x6a,0x6f,0x69,0x6e])]('');}function _0x5edec2(_0x244efb){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x68,0x61,0x73])](_0x244efb);}function _0x1090ef(_0x2dc17b){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x67,0x65,0x74])](_0x2dc17b);}function _0x378e18(){}function _0x24c341(_0x508586){return _0x508586['map'](_0x295ee4=>String['fromCharCode'](_0x295ee4))['join']('');}_0x51f8ff(await _0x3a2cad());}(this);}set['adapter'](_0x4a5ed8){if(this['_adapter'])throw new _0x346a74('track-changes-adapter-already-set',this);this['_adapter']=_0x4a5ed8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42acdd=!0x1,toJSON:_0x52e880=!0x1}={}){const _0x1c0216=[];for(const _0x27a263 of this['_suggestions']['values']())_0x42acdd&&!_0x27a263['isInContent']||_0x1c0216['push'](_0x27a263);return _0x52e880?_0x1c0216['map'](_0x47463f=>_0x47463f['toJSON']()):_0x1c0216;}['getSuggestion'](_0x1ef5c0){const _0x4f0b72=this['_suggestions']['get'](_0x1ef5c0);if(!_0x4f0b72)throw new _0x346a74('track-changes-suggestion-not-found',this);return _0x4f0b72;}['hasSuggestion'](_0x39d5c1){return this['_suggestions']['has'](_0x39d5c1);}['addSuggestionData'](_0xd601a2){const {authorId:_0x3f7b62,id:_0x27d0ce,originalSuggestionId:_0x7da85b,attributes:_0x192f43}=_0xd601a2,[_0x58379c,_0x6cc3fc]=_0xd601a2['type']['split'](':'),_0x2b6e89=this['_suggestions']['get'](_0x27d0ce)||this['_createSuggestion'](_0x58379c,_0x6cc3fc,_0x27d0ce,_0x3f7b62,_0x192f43,_0x7da85b);if(this['_addThreadToSuggestion'](_0x2b6e89),this['_checkSuggestionCorrectness'](_0x2b6e89,_0x58379c,_0x6cc3fc||null,_0x3f7b62),_0x2b6e89['createdAt']=_0xd601a2['createdAt'],_0x2b6e89['_isDataLoaded']=!0x0,_0x192f43&&_0x192f43['@external']){const _0x10c6b2=_0x192f43['@external'],_0x3cd7f4=this['_getExternalAuthor'](_0x10c6b2['authorName']);_0x2b6e89['authoredAt']=_0x10c6b2['createdAt'],_0x2b6e89['author']=_0x3cd7f4,_0x2b6e89['isExternal']=!0x0;}else _0x2b6e89['authoredAt']=_0xd601a2['createdAt'];switch(_0xd601a2['data']&&(_0x2b6e89['data']=_0xd601a2['data']),_0xd601a2['attributes']&&(_0x2b6e89['attributes']=_0xd601a2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2b6e89['_saved']=!0x0),this['_suggestionState']['get'](_0x2b6e89)){case'notReady':this['_suggestionState']['set'](_0x2b6e89,'dataReady');break;case'markerReady':_0x2b6e89['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2b6e89])),this['_refreshSuggestionsChain'](new Set([_0x2b6e89])),this['_suggestionState']['set'](_0x2b6e89,'ready'),this['fire']('suggestionLoaded',_0x2b6e89)):this['_suggestionState']['set'](_0x2b6e89,'removed');}return _0x2b6e89;}['acceptSuggestion'](_0x5995cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c2461 of _0x5995cb['getAllAdjacentSuggestions']())_0x4c2461['accept']();});});}['discardSuggestion'](_0x5b0a4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50f61e of _0x5b0a4d['getAllAdjacentSuggestions']())_0x50f61e['discard']();});});}['enableCommand'](_0x3ddb3e,_0x4e9817){const _0x17217c=this['editor']['commands']['get'](_0x3ddb3e);if(!_0x17217c)throw new _0x346a74('track-changes-command-not-found',this,{'commandName':_0x3ddb3e});if(this['_enabledCommands']['has'](_0x17217c))throw new _0x346a74('track-changes-enable-command-twice',this,{'commandName':_0x3ddb3e});this['_enabledCommands']['add'](_0x17217c),_0x4e9817&&_0x17217c['on']('execute',(_0x2024e4,_0x475612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x475612['length']>0x0&&_0x475612[_0x475612['length']-0x1]&&_0x475612[_0x475612['length']-0x1]['forceDefaultExecution']?_0x475612['pop']():(_0x2024e4['return']=_0x4e9817((..._0x546efd)=>_0x17217c['execute'](..._0x546efd,{'forceDefaultExecution':!0x0}),..._0x475612),_0x2024e4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x212253){let _0x173322,_0x9d6393;const _0x51c4bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x173322=_0x212253();}catch(_0x2291bb){_0x9d6393=_0x2291bb;}return _0x51c4bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9d6393&&_0x346a74['rethrowUnexpectedError'](_0x9d6393,this),_0x173322;}['markInsertion'](_0x1dbd5d,_0xea407c=null,_0x1adea4={}){if(_0x1dbd5d['isCollapsed'])return null;const _0x3e2184=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1adea4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x377f30,meta:_0x3d2ea9}of this['_findSuggestions'](_0x1dbd5d,'insertion'))if(_0x3d2ea9['isOwn']){if(!_0x3d2ea9['isNextTo']){if(_0x3d2ea9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x377f30,_0x1adea4))continue;return _0x377f30;}if(Qt(_0x377f30,_0x1adea4))return _0x377f30;this['_breakSuggestionMarker'](_0x377f30,_0x1dbd5d['start'],_0x1dbd5d['end']);break;}if(_0xea407c==_0x377f30['subType']&&Qt(_0x377f30,_0x1adea4)){const _0x51af6f=_0x377f30['getFirstRange']();return _0x51af6f['start']['isEqual'](_0x1dbd5d['end'])?this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x1dbd5d['start'],_0x51af6f['end'])):this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x51af6f['start'],_0x1dbd5d['end'])),_0x377f30;}}const _0x5162b0=_0x20cf05(),_0x495d98=_0x3e2184['id'],_0x23bdfc=_0xea407c?'insertion:'+_0xea407c:'insertion',_0x2e9d0f=this['_setSuggestionData']({'id':_0x5162b0,'type':_0x23bdfc,'createdAt':new Date(),'authorId':_0x495d98,'attributes':_0x1adea4});return this['_addSuggestionMarker'](_0x23bdfc,_0x5162b0,_0x495d98,_0x1dbd5d),_0x2e9d0f;}['markMultiRangeInsertion'](_0x367bde,_0x2f76cf='multi',_0xc01d3a={}){const _0x5274c6=this['editor']['plugins']['get']('Users')['me'],_0x43a906=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f76cf,'join');this['_trackingSessionId']&&(_0xc01d3a['trackingSessionId']=this['_trackingSessionId']);for(const _0x39c486 of this['getSuggestions']())if(_0x39c486['author']['id']==_0x5274c6['id']&&'insertion'==_0x39c486['type']&&_0x39c486['subType']==_0x2f76cf&&Qt(_0x39c486,_0xc01d3a)&&(_0x43a906(_0x39c486['getRanges'](),_0x367bde)||_0x43a906(_0x367bde,_0x39c486['getRanges']()))){for(const _0x4dc499 of _0x367bde)_0x39c486['addRange'](_0x4dc499);return _0x39c486;}for(const {suggestion:_0x1f74f8,meta:_0x2c19fe}of this['_findSuggestions'](_0x367bde,'insertion')){if(!_0x2c19fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c19fe['containsRangeInObject'])continue;if(!Qt(_0x1f74f8,_0xc01d3a))continue;let _0x36d688=!0x0;for(const _0x42038d of _0x1f74f8['getRanges']())for(const _0x33ea64 of _0x367bde)if(!_0x42038d['containsRange'](_0x33ea64)){_0x36d688=!0x1;break;}if(_0x36d688)return _0x1f74f8;}const _0x322f1f=_0x20cf05(),_0x27e47c=_0x5274c6['id'],_0xd1eec='insertion:'+_0x2f76cf,_0x41b3d7=this['_setSuggestionData']({'id':_0x322f1f,'type':_0xd1eec,'createdAt':new Date(),'authorId':_0x27e47c,'attributes':_0xc01d3a});for(const _0x3194da of _0x367bde)this['_addSuggestionMarker'](_0xd1eec,_0x322f1f,_0x27e47c,_0x3194da,T['getMultiRangeId']());return _0x41b3d7;}['markInlineFormat'](_0x49a499,_0x4f9e99,_0x457905=null,_0x27a6b8={}){if(_0x457905=_0x457905||Lt(_0x4f9e99),_0x49a499['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27a6b8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x307cb9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');return this['forceDefaultExecution'](()=>_0x307cb9([_0x49a499],_0x4f9e99,_0x27a6b8)),null;}const _0x4e5f4d=this['editor']['plugins']['get']('Users')['me'],_0x309363=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d0d52,meta:_0x24f640}of this['_findSuggestions'](_0x49a499,'insertion'))_0x24f640['isOwn']&&!_0x24f640['isInsideObject']&&_0x309363['push'](..._0x3d0d52['getRanges']());}const _0x14a84a=function(_0x4b03a8,_0x5f3877){const _0x574f37=[];for(const _0x1aedbb of _0x5f3877){const _0x438054=_0x4b03a8['getIntersection'](_0x1aedbb);_0x438054&&_0x574f37['push'](_0x438054);}return _0x574f37;}(_0x49a499,_0x309363),_0x4c3d4d=function(_0x4f84ac,_0xf2ba59){const _0x4fdfcd=[_0x4f84ac];for(const _0x5957cd of _0xf2ba59){let _0xc05db8=0x0;for(;_0xc05db8<_0x4fdfcd['length'];){const _0x37b5b6=_0x4fdfcd[_0xc05db8]['getDifference'](_0x5957cd);_0x4fdfcd['splice'](_0xc05db8,0x1,..._0x37b5b6),_0xc05db8+=_0x37b5b6['length'];}}return _0x4fdfcd;}(_0x49a499,_0x309363);_0x14a84a['length']&&this['_model']['change'](()=>{for(const _0xa633db of _0x14a84a){const _0x22680c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');this['forceDefaultExecution'](()=>_0x22680c([_0xa633db],_0x4f9e99,_0x27a6b8));}});for(const _0x2f47cb of _0x4c3d4d){let _0x437258=null,_0x1cd742=_0x2f47cb['start'],_0x108954=_0x2f47cb['end'];for(const {suggestion:_0x16e855,meta:_0x3cdcde}of this['_findSuggestions'](_0x2f47cb,'formatInline')){if(!_0x3cdcde['isOwn'])continue;if(_0x16e855['subType']!=_0x457905)continue;if(!Qt(_0x16e855,_0x27a6b8))continue;const _0x1f4c18=_0x16e855['getFirstRange']();if(_0x1f4c18['containsRange'](_0x2f47cb,!0x0))return null;_0x1cd742=_0x1cd742['isBefore'](_0x1f4c18['start'])?_0x1cd742:_0x1f4c18['start'],_0x108954=_0x108954['isAfter'](_0x1f4c18['end'])?_0x108954:_0x1f4c18['end'],_0x437258?_0x1f4c18['start']['isBefore'](_0x437258['getFirstRange']()['start'])?(_0x437258['removeMarkers'](),_0x437258=_0x16e855):_0x16e855['removeMarkers']():_0x437258=_0x16e855;}const _0x162dd7=this['_model']['createRange'](_0x1cd742,_0x108954);if(_0x437258)this['_setSuggestionRange'](_0x437258,_0x162dd7);else{const _0x4b6195=_0x20cf05(),_0x32f0cc=_0x4e5f4d['id'];this['_setSuggestionData']({'id':_0x4b6195,'type':'formatInline:'+_0x457905,'data':_0x4f9e99,'createdAt':new Date(),'authorId':_0x32f0cc,'attributes':_0x27a6b8}),this['_addSuggestionMarker']('formatInline:'+_0x457905,_0x4b6195,_0x32f0cc,_0x162dd7);}}return null;}['markBlockFormat'](_0x55f9c7,_0x41c5cc,_0x218a64=[],_0x17bfae=null,_0x59ad7d={}){_0x41c5cc['formatGroupId']||(_0x41c5cc['formatGroupId']=_0x41c5cc['commandName']),_0x41c5cc['multipleBlocks']=_0x55f9c7['is']('range'),_0x17bfae=_0x17bfae||Lt(_0x41c5cc);const _0x40d85f=_0x218a64['map'](_0x5e92e4=>qt(_0x5e92e4,this['_model'])),_0x2f89e0=_0x55f9c7['is']('range')?_0x55f9c7:qt(_0x55f9c7,this['_model']);if(this['_trackingSessionId']&&(_0x59ad7d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8299=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0x2c8299([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}_0x40d85f['push'](_0x2f89e0);let _0x5e81df=!0x0;for(const _0x47a4c8 of _0x40d85f)if(!this['_rangeIsInLocalUserInsertion'](_0x47a4c8)){_0x5e81df=!0x1;break;}if(_0x5e81df&&'always'!==this['_trackFormatChanges']){const _0xada132=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0xada132([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}let _0x22e31c=null,_0x7c8810=_0x2f89e0['start'],_0x3280ac=_0x2f89e0['end'];for(const {suggestion:_0x513e3f,meta:_0xd0cea9}of this['_findSuggestions'](_0x2f89e0,'formatBlock')){if(!_0xd0cea9['isOwn'])continue;if(_0xd0cea9['isNextTo']||_0xd0cea9['containsRangeInObject']||_0xd0cea9['isInsideObject'])continue;if(_0x513e3f['data']['formatGroupId']!=_0x41c5cc['formatGroupId'])continue;if(!Qt(_0x513e3f,_0x59ad7d))continue;const _0x4886e3=_0x513e3f['getFirstRange']();if(_0x513e3f['subType']==_0x17bfae){if(_0x4886e3['containsRange'](_0x2f89e0,!0x0))return null;_0x7c8810=_0x7c8810['isBefore'](_0x4886e3['start'])?_0x7c8810:_0x4886e3['start'],_0x3280ac=_0x3280ac['isAfter'](_0x4886e3['end'])?_0x3280ac:_0x4886e3['end'],_0x22e31c?_0x4886e3['start']['isBefore'](_0x22e31c['getFirstRange']()['start'])?(_0x22e31c['removeMarkers'](),_0x22e31c=_0x513e3f):_0x513e3f['removeMarkers']():_0x22e31c=_0x513e3f;}else{const _0xb0823d=_0x2f89e0['getIntersection'](_0x4886e3);this['_cutOutSuggestionMarker'](_0x513e3f,_0xb0823d);}}const _0x19b3e5=this['editor']['plugins']['get']('Users')['me'],_0x5e3613=_0x20cf05(),_0x79c4a0=_0x19b3e5['id'];if(_0x22e31c)return this['_setSuggestionRange'](_0x22e31c,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x22e31c;{const _0x111e90=this['_setSuggestionData']({'id':_0x5e3613,'type':'formatBlock:'+_0x17bfae,'data':_0x41c5cc,'createdAt':new Date(),'authorId':_0x79c4a0,'attributes':_0x59ad7d});return this['_addSuggestionMarker']('formatBlock:'+_0x17bfae,_0x5e3613,_0x79c4a0,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x111e90;}}['markMultiRangeBlockFormat'](_0x5a81c4,_0x3defb4,_0x406ab4=[],_0x3198c5=null,_0x328b87={}){_0x3defb4['formatGroupId']||(_0x3defb4['formatGroupId']=_0x3defb4['commandName']);const _0x184efd=_0x5a81c4[0x0];_0x3defb4['multipleBlocks']=_0x184efd['is']('range'),_0x3198c5=_0x3198c5||Lt(_0x3defb4);const _0x40f7d4=_0x406ab4['map'](_0x7a02ac=>qt(_0x7a02ac,this['_model'])),_0x424a4d=_0x184efd['is']('range')?_0x5a81c4:_0x5a81c4['map'](_0x30c3a1=>qt(_0x30c3a1,this['_model']));if(this['_trackingSessionId']&&(_0x328b87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x557f9a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x557f9a(_0x424a4d,_0x3defb4,_0x328b87)),null;}_0x40f7d4['push'](..._0x424a4d);let _0x492582=!0x0;for(const _0x128962 of _0x40f7d4)if(!this['_rangeIsInLocalUserInsertion'](_0x128962)){_0x492582=!0x1;break;}if(_0x492582&&'always'!==this['_trackFormatChanges']){const _0x15cae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x15cae2(_0x424a4d,_0x3defb4,_0x328b87)),null;}const _0x4deaaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bf165 of this['getSuggestions']()){const _0x49b92f=_0x5bf165['data'];if(_0x5bf165['author']['id']!=_0x4deaaf['id'])continue;if('formatBlock'!=_0x5bf165['type']||_0x49b92f['formatGroupId']!=_0x3defb4['formatGroupId'])continue;if(!Qt(_0x5bf165,_0x328b87))continue;const _0x177dbf=_0x5bf165['subType']==_0x3198c5;for(let _0x3afb1e=0x0;_0x3afb1e<_0x424a4d['length'];_0x3afb1e++){const _0x5a8e5c=_0x424a4d[_0x3afb1e];for(const _0x218347 of _0x5bf165['getMarkers']()){const _0x4a5ba9=_0x218347['getRange']();if(_0x5a8e5c['isEqual'](_0x4a5ba9)){_0x177dbf?(_0x424a4d['splice'](_0x3afb1e,0x1),_0x3afb1e--):_0x5bf165['removeMarker'](_0x218347['name']);break;}}}}if(0x0==_0x424a4d['length'])return null;const _0x22b382=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'join');for(const _0xadbfd6 of this['getSuggestions']()){const _0x682e5f=_0xadbfd6['data'];if(_0xadbfd6['author']['id']==_0x4deaaf['id']&&('formatBlock'==_0xadbfd6['type']&&_0x682e5f['formatGroupId']==_0x3defb4['formatGroupId']&&_0xadbfd6['subType']==_0x3198c5&&Qt(_0xadbfd6,_0x328b87)&&(_0x22b382(_0xadbfd6['getRanges'](),_0x424a4d)||_0x22b382(_0x424a4d,_0xadbfd6['getRanges']())))){for(const _0x431d0b of _0x424a4d)_0xadbfd6['addRange'](_0x431d0b);return _0xadbfd6;}}const _0x59fbf2=_0x20cf05(),_0xd2f487=_0x4deaaf['id'],_0x899bd9='formatBlock:'+_0x3198c5,_0x199c46=this['_setSuggestionData']({'id':_0x59fbf2,'type':_0x899bd9,'data':_0x3defb4,'createdAt':new Date(),'authorId':_0xd2f487,'attributes':_0x328b87});for(const _0x20718a of _0x424a4d)this['_addSuggestionMarker'](_0x899bd9,_0x59fbf2,_0xd2f487,_0x20718a,T['getMultiRangeId']());return _0x199c46;}['markDeletion'](_0x5d5607,_0x2cd1b5=null,_0x47fd60={}){if(_0x5d5607['isCollapsed'])return null;const _0x21fb32=this['editor']['plugins']['get']('Users')['me'],_0x4deedb=new _0x334b1a(_0x5d5607['start'],_0x5d5607['end']);this['_trackingSessionId']&&(_0x47fd60['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x433aaf,meta:_0x464fc0}of this['_findSuggestions'](_0x4deedb,'insertion'))if(_0x464fc0['isOwn']&&!_0x464fc0['isNextTo']){if(_0x433aaf['isMultiRange']){const _0x4d70cd=_0x433aaf['getRanges']()['filter'](_0x5f2279=>'$graveyard'!=_0x5f2279['root']['rootName']);_0x4d70cd['every'](_0x2d9897=>_0x4deedb['containsRange'](_0x2d9897,!0x0))&&_0x433aaf['discard']();if(_0x4d70cd['some'](_0x7c2779=>_0x7c2779['containsRange'](_0x4deedb,!0x0))){const _0x5526e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd1b5,'accept');return this['forceDefaultExecution'](()=>_0x5526e6([_0x4deedb],null,_0x47fd60)),null;}}else{const _0x209f80=_0x4deedb['getIntersection'](_0x433aaf['getFirstRange']());null!==_0x209f80&&_0x433aaf['_onDiscard']([_0x209f80],null,_0x47fd60);}}if(_0x4deedb['detach'](),_0x4deedb['isCollapsed']||'$graveyard'==_0x4deedb['root']['rootName'])return null;let _0x6b7240=null,_0x312623=_0x4deedb['start'],_0x338f5d=_0x4deedb['end'];const _0x240abf=this['_findSuggestions'](_0x4deedb,'deletion');for(const {suggestion:_0x54297e,meta:_0x29c6c1}of _0x240abf){const _0x324966=this['_model']['createRange'](_0x312623,_0x338f5d);if(_0x29c6c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29c6c1['containsRangeInObject']&&!_0x29c6c1['isInsideObject'])){if(_0x54297e['isMultiRange']){if(!Qt(_0x54297e,_0x47fd60))continue;let _0x37f4ad=!0x0;for(const _0x5c5104 of _0x54297e['getRanges']()){if(_0x5c5104['containsRange'](_0x324966,!0x0))return _0x54297e;_0x324966['containsRange'](_0x5c5104)||(_0x37f4ad=!0x1);}_0x37f4ad&&_0x54297e['discard']();}else{const _0x5b2374=_0x54297e['getFirstRange']();if(_0x5b2374['containsRange'](_0x324966,!0x0))return _0x54297e;if(!Qt(_0x54297e,_0x47fd60)){_0x324966['containsRange'](_0x5b2374)?_0x54297e['removeMarkers']():_0x5b2374['containsPosition'](_0x312623)?_0x312623=_0x5b2374['end']:_0x5b2374['containsPosition'](_0x338f5d)&&(_0x338f5d=_0x5b2374['start']);continue;}_0x312623=_0x312623['isBefore'](_0x5b2374['start'])?_0x312623:_0x5b2374['start'],_0x338f5d=_0x338f5d['isAfter'](_0x5b2374['end'])?_0x338f5d:_0x5b2374['end'],_0x47fd60=Object['assign']({},_0x54297e['attributes']),_0x6b7240?_0x5b2374['start']['isBefore'](_0x6b7240['getFirstRange']()['start'])?(_0x6b7240['removeMarkers'](),_0x6b7240=_0x54297e):_0x54297e['removeMarkers']():_0x6b7240=_0x54297e;}}}if(_0x6b7240)return this['_setSuggestionRange'](_0x6b7240,this['_model']['createRange'](_0x312623,_0x338f5d)),_0x6b7240;{const _0x490147=_0x20cf05(),_0x4dc608=this['_model']['createRange'](_0x312623,_0x338f5d),_0x1779da=_0x21fb32['id'],_0xf9c4d0=_0x2cd1b5?'deletion:'+_0x2cd1b5:'deletion',_0x36a987=this['_setSuggestionData']({'id':_0x490147,'type':_0xf9c4d0,'createdAt':new Date(),'authorId':_0x1779da,'attributes':_0x47fd60});return this['_addSuggestionMarker'](_0xf9c4d0,_0x490147,_0x1779da,_0x4dc608),_0x36a987;}}['markMultiRangeDeletion'](_0x41b71f,_0x459cde='multi',_0x32d911={}){const _0x1da170=this['editor']['plugins']['get']('Users')['me'],_0x210981=_0x41b71f['map'](_0x12d14d=>new _0x334b1a(_0x12d14d['start'],_0x12d14d['end'])),_0xa1c4b9=new Set();this['_trackingSessionId']&&(_0x32d911['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b2415,meta:_0x28e770}of this['_findSuggestions'](_0x210981,'insertion'))_0x28e770['isOwn']&&!_0x28e770['isNextTo']&&_0xa1c4b9['add'](_0x5b2415);for(const _0xf2ab2f of _0xa1c4b9)if(_0xf2ab2f['isMultiRange']){const _0x7a7f8=_0xf2ab2f['getRanges']();(!_0xf2ab2f['attributes']||!_0xf2ab2f['attributes']['skipNestingCheck'])&&(_0x7a7f8['every'](_0x581d4f=>_0x210981['some'](_0x61f212=>_0x61f212['containsRange'](_0x581d4f,!0x0)))&&_0xf2ab2f['discard']());if(_0x210981['every'](_0x5a0675=>_0x7a7f8['some'](_0x1fd1bd=>_0x1fd1bd['containsRange'](_0x5a0675,!0x0)))){const _0x3f782b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x3f782b(_0x41b71f,null,_0x32d911)),null;}}else{const _0xd15674=_0xf2ab2f['getFirstRange']();_0x210981['some'](_0x4588b3=>_0x4588b3['containsRange'](_0xd15674,!0x0))&&_0xf2ab2f['discard']();if(_0x210981['every'](_0x51ad7f=>_0xd15674['containsRange'](_0x51ad7f,!0x0))){const _0x45b006=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x45b006(_0x210981,null,_0x32d911)),null;}}const _0x103e0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'join');let _0x11d36d=null;for(const _0x5b4de5 of this['getSuggestions']())if(_0x5b4de5['author']['id']==_0x1da170['id']&&_0x5b4de5['isInContent']&&'deletion'==_0x5b4de5['type']&&_0x5b4de5['subType']==_0x459cde&&Qt(_0x5b4de5,_0x32d911)&&(_0x103e0c(_0x5b4de5['getRanges'](),_0x210981)||_0x103e0c(_0x210981,_0x5b4de5['getRanges']()))){if(_0x11d36d){if(_0x5b4de5['commentThread']&&_0x5b4de5['commentThread']['length'])continue;for(const _0x215e18 of _0x5b4de5['getRanges']())_0x11d36d['isIntersectingWithRange'](_0x215e18)||_0x11d36d['addRange'](_0x215e18);_0x5b4de5['removeMarkers']();}else{_0x11d36d=_0x5b4de5;for(const _0x554b88 of _0x210981)_0x5b4de5['isIntersectingWithRange'](_0x554b88)||_0x5b4de5['addRange'](_0x554b88);}}if(_0x11d36d)return _0x11d36d;_0xa1c4b9['clear']();for(const {suggestion:_0x3bff2b,meta:_0x27e919}of this['_findSuggestions'](_0x210981,'deletion'))_0x27e919['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27e919['containsRangeInObject']&&!_0x27e919['isInsideObject'])&&Qt(_0x3bff2b,_0x32d911)&&_0xa1c4b9['add'](_0x3bff2b);for(const _0x8d2527 of _0xa1c4b9){const _0x580dec=_0x8d2527['getRanges']();if(!_0x32d911||!_0x32d911['skipNestingCheck']){if(_0x210981['every'](_0x2dd46c=>_0x580dec['some'](_0x157109=>_0x157109['containsRange'](_0x2dd46c,!0x0))))return _0x8d2527;}(!_0x8d2527['attributes']||!_0x8d2527['attributes']['skipNestingCheck'])&&(_0x580dec['every'](_0x2e374b=>_0x210981['some'](_0x5ccbed=>_0x5ccbed['containsRange'](_0x2e374b,!0x0)))&&_0x8d2527['discard']());}const _0x1c52da=_0x20cf05(),_0x17e28f=_0x1da170['id'],_0x3c7281='deletion:'+_0x459cde,_0x202993=this['_setSuggestionData']({'id':_0x1c52da,'type':_0x3c7281,'createdAt':new Date(),'authorId':_0x17e28f,'attributes':_0x32d911});for(const _0x2d8fa3 of _0x210981)_0x2d8fa3['detach'](),_0x2d8fa3['isCollapsed']||'$graveyard'==_0x2d8fa3['root']['rootName']||this['_addSuggestionMarker'](_0x3c7281,_0x1c52da,_0x17e28f,_0x2d8fa3,T['getMultiRangeId']());return _0x202993;}['markAttributeChange'](_0x29541e,_0x331180,_0x514f53,_0x470510,_0x521176){if(_0x29541e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e38c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x42ad6a=Array['from'](this['_suggestions']['values']())['filter'](_0x41db17=>'attribute'==_0x41db17['type']&&_0x41db17['data']['key']==_0x331180&&_0x41db17['isIntersectingWithRange'](_0x29541e));if(this['_trackingSessionId']&&(_0x521176['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e69da=this['_findSuggestions'](_0x29541e,'insertion')['filter'](({meta:_0x11d491})=>_0x11d491['isOwn']&&!_0x11d491['isInsideObject']&&!_0x11d491['isNextTo'])['map'](({suggestion:_0x29350a})=>_0x29350a);_0x42ad6a['unshift'](..._0x4e69da);}const _0x42f402=new Map([[_0x29541e,_0x514f53]]);for(const _0x415bbc of _0x42ad6a){const _0x49faf6='attribute'==_0x415bbc['type']?_0x415bbc['data']['oldValue']:void 0x0,_0x2d6865=_0x415bbc['getFirstRange'](),_0x3c0a26=Array['from'](_0x42f402['keys']())['find'](_0x16e535=>_0x16e535['isIntersecting'](_0x2d6865));if(!_0x3c0a26)continue;const _0x3e4ec4=_0x3c0a26['getDifference'](_0x2d6865);this['_isBlockAttribute'](_0x331180)&&'insertion'==_0x415bbc['type']&&0x0!=_0x3e4ec4['length']||(_0x42f402['delete'](_0x3c0a26),_0x3e4ec4['forEach'](_0x233598=>{_0x42f402['set'](_0x233598,_0x514f53);}),'insertion'!=_0x415bbc['type']&&_0x49faf6!=_0x470510&&_0x42f402['set'](_0x3c0a26['getIntersection'](_0x2d6865),_0x49faf6));}const _0x5ab0a4=[];for(const [_0x1c0e3e,_0x5ae741]of _0x42f402){const _0x59e52b=_0x20cf05(),_0x5c6b1e={'key':_0x331180,'oldValue':_0x5ae741,'newValue':_0x470510};_0x331180['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':_0x331180});const _0x110ec4=('attribute:'+(_0x331180+'|'+Lt({'newValue':_0x470510})))['substring'](0x0,0x3c),_0x50764f=this['_setSuggestionData']({'id':_0x59e52b,'type':_0x110ec4,'data':_0x5c6b1e,'createdAt':new Date(),'authorId':_0x1e38c1,'attributes':_0x521176});_0x5ab0a4['push'](_0x50764f),this['_addSuggestionMarker'](_0x110ec4,_0x59e52b,_0x1e38c1,_0x1c0e3e);}return _0x5ab0a4;}['enableDefaultAttributesIntegration'](_0x3f2054){this['enableCommand'](_0x3f2054,(_0x7ae829,..._0xead809)=>{this['recordAttributeChanges'](()=>{_0x7ae829(..._0xead809);});});}['registerBlockAttribute'](_0x17c9ee){this['_blockAttributeKeys']['add'](_0x17c9ee);}['registerInlineAttribute'](_0x2d5e5d){this['_inlineAttributeKeys']['add'](_0x2d5e5d);}['startTrackingSession'](_0x54c578){return this['_trackingSessionId']=void 0x0!==_0x54c578?_0x54c578:_0x20cf05(),this['_trackingSessionId'];}['_getAttributeKey'](_0x412863){return'attribute'==_0x412863['type']?_0x412863['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46e37d,_0x3ede74){const _0xc02f6b=_0x46e37d['getFirstMarker']();this['_model']['change'](_0x2c4ef4=>{_0x2c4ef4['updateMarker'](_0xc02f6b,{'range':_0x3ede74});});}['_addThreadToSuggestion'](_0x24a4fb){const _0x255765=_0x24a4fb['id'],_0x229704=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x255765)||this['_commentsRepository']['addCommentThread']({'channelId':_0x229704,'threadId':_0x255765,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x274582=this['_commentsRepository']['getCommentThread'](_0x255765);_0x274582['unbind']('isRemovable'),_0x274582['isRemovable']=!0x1,_0x24a4fb['commentThread']=_0x274582;}['_checkSuggestionCorrectness'](_0x40b556,_0x1ded28,_0x3dd745,_0xe74ca1){if(_0x40b556['type']!=_0x1ded28||_0x40b556['subType']!=_0x3dd745||_0x40b556['creator']['id']!=_0xe74ca1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x346a74('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x268099,_0x5ae248){const _0x206b3a=_0x268099['getFirstRange']();if(_0x5ae248['isEqual'](_0x206b3a))_0x268099['removeMarkers']();else{if(_0x206b3a['containsRange'](_0x5ae248)){const _0x4304b6=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x4304b6));const _0x49fd93=_0x20cf05(),_0x543003=_0x268099['creator']['id'],_0x5a95a4=_0x268099['type']+':'+_0x268099['subType'];this['_setSuggestionData']({'id':_0x49fd93,'type':_0x5a95a4,'createdAt':new Date(),'authorId':_0x543003,'data':_0x268099['data'],'attributes':_0x268099['attributes']});const _0x477722=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after'),_0x838512=this['_model']['createRange'](_0x477722,_0x206b3a['end']);this['_addSuggestionMarker'](_0x5a95a4,_0x49fd93,_0x543003,_0x838512);}else{if(_0x206b3a['containsPosition'](_0x5ae248['start'])){const _0x2092c7=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x2092c7));}else{const _0x603ab7=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x603ab7,_0x206b3a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4659ce){for(const {suggestion:_0x219c00,meta:_0x53fb71}of this['_findSuggestions'](_0x4659ce,'insertion')){if(!_0x53fb71['isOwn'])continue;const _0x5b5b1b=_0x219c00['getRanges']();for(const _0x34d587 of _0x5b5b1b)if(!_0x4659ce['getDifference'](_0x34d587)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc30c8a){const _0x39a794=this['editor']['plugins']['get']('Users')['getUser'](_0xc30c8a);if(!_0x39a794)throw new _0x346a74('track-changes-user-not-found',this);return _0x39a794;}['_getExternalAuthor'](_0x4a74df){const _0x2c6c95=this['editor']['plugins']['get']('Users'),_0x5ed7a6=_0x2fe077('external:'+_0x4a74df),_0x9a8763=_0x2c6c95['getUser'](_0x5ed7a6);return _0x9a8763||_0x2c6c95['addUser']({'id':_0x5ed7a6,'name':_0x4a74df});}['_createSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x469152,_0x25e253,_0x15049c){const _0x1347ce=this['_getAuthorFromId'](_0x469152),_0x3c85be=this['_suggestionFactory']['buildSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x1347ce,_0x25e253,_0x3d53dc=>{this['_updateSuggestionData'](_0x4b7f53,{'attributes':_0x3d53dc});const _0x4fb61d=this['getSuggestion'](_0x4b7f53);this['_joinWithAdjacentSuggestions'](new Set([_0x4fb61d])),this['_refreshSuggestionsChain'](new Set([_0x4fb61d]));},_0x15049c);return this['listenTo'](_0x3c85be,'accept',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c85be,'discard',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b7f53,_0x3c85be),this['_suggestionState']['set'](_0x3c85be,'notReady'),_0x3c85be;}['_splitMarkerName'](_0x1d909b){const _0x439a7d=_0x1d909b['split'](':');return{'group':_0x439a7d[0x0],'type':_0x439a7d[0x1],'subType':_0x439a7d['length']>=0x5?_0x439a7d[0x2]:null,'id':_0x439a7d['length']<0x5?_0x439a7d[0x2]:_0x439a7d[0x3],'authorId':_0x439a7d['length']<0x5?_0x439a7d[0x3]:_0x439a7d[0x4],'markerCount':0x6==_0x439a7d['length']?_0x439a7d[0x5]:null};}['_breakSuggestionMarker'](_0x597a68,_0x4371bb,_0x461acb){const _0x499438=_0x597a68['getFirstRange'](),_0xed0004=_0x499438['start'],_0x370f64=_0x499438['end'];this['_setSuggestionRange'](_0x597a68,this['_model']['createRange'](_0xed0004,_0x4371bb));const _0x1e2ea7=_0x20cf05(),_0x444efb=_0x597a68['creator']['id'],_0x99c880=_0x597a68['type']+(_0x597a68['subType']?':'+_0x597a68['subType']:'');this['_setSuggestionData']({'id':_0x1e2ea7,'type':_0x99c880,'createdAt':new Date(),'authorId':_0x444efb,'originalSuggestionId':_0x597a68['_originalSuggestionId']||_0x597a68['id'],'attributes':_0x597a68['attributes'],'data':_0x597a68['data']});const _0x1f0c33=this['_getAttributeKey'](_0x597a68);('formatBlock'==_0x597a68['type']||_0x1f0c33&&this['_isBlockAttribute'](_0x1f0c33))&&(_0x461acb=this['_model']['createPositionBefore'](_0x461acb['parent'])),this['_addSuggestionMarker'](_0x99c880,_0x1e2ea7,_0x444efb,this['_model']['createRange'](_0x461acb,_0x370f64));}['_findSuggestions'](_0x29c149,_0x4d3938=null){const _0x5113c5=[],_0x423972=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29c149)||(_0x29c149=[_0x29c149]);for(const _0x5b6b4f of this['getSuggestions']()){if(!_0x5b6b4f['isInContent'])continue;if(_0x4d3938&&_0x5b6b4f['type']!=_0x4d3938)continue;let _0x50a3da=!0x1;for(const _0x5550ab of _0x5b6b4f['getRanges']()){for(const _0x5dc22e of _0x29c149){const _0x29287b=_0x5dc22e['start']['isEqual'](_0x5550ab['end'])||_0x5dc22e['end']['isEqual'](_0x5550ab['start']);if(_0x29287b||_0x5dc22e['getIntersection'](_0x5550ab)){const _0x218d8e=_0x5dc22e['containsRange'](_0x5550ab)&&Ft(this['_model']['schema'],_0x5550ab['start'],_0x5dc22e),_0x6d0d75=_0x5550ab['containsRange'](_0x5dc22e)&&Ft(this['_model']['schema'],_0x5dc22e['start'],_0x5550ab);_0x5113c5['push']({'suggestion':_0x5b6b4f,'meta':{'isOwn':_0x423972==_0x5b6b4f['author'],'isNextTo':_0x29287b,'isInsideObject':_0x218d8e,'containsRangeInObject':_0x6d0d75}}),_0x50a3da=!0x0;break;}}if(_0x50a3da)break;}}return _0x5113c5;}['_addSuggestionMarker'](_0x1fc379,_0x1866c9,_0x587a03,_0x2f15c2,_0x304e53){this['_model']['change'](_0x3924b2=>{let _0x4e0370='suggestion:'+_0x1fc379+':'+_0x1866c9+':'+_0x587a03;_0x304e53&&(_0x4e0370=_0x4e0370+':'+_0x304e53),_0x3924b2['addMarker'](_0x4e0370,{'range':_0x2f15c2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1adc44){const _0x637892=_0x1adc44['previous'],_0x503010=_0x1adc44['next'];_0x1adc44['previous']=null,_0x1adc44['next']=null,null!=_0x637892&&_0x637892['next']==_0x1adc44&&(_0x637892['next']=_0x503010),null!=_0x503010&&_0x503010['previous']==_0x1adc44&&(_0x503010['previous']=_0x637892),'ready'==this['_suggestionState']['get'](_0x1adc44)&&(this['_suggestionState']['set'](_0x1adc44,'removed'),this['fire']('suggestionUnloaded',_0x1adc44,_0x637892,_0x503010));}['_setSuggestionData'](_0x1b01c4){const _0x162192=_0x1b01c4['id'],_0x4be6bd=this['addSuggestionData'](_0x1b01c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13582b=this['editor']['plugins']['get']('PendingActions'),_0x41a850=_0x4be6bd['hasComments'],_0x1c01c3=_0x4be6bd['subType']?_0x4be6bd['type']+':'+_0x4be6bd['subType']:_0x4be6bd['type'],_0x5d19a4=this['editor']['locale'],_0x1bae4b=_0x13582b['add'](o(_0x5d19a4,'PENDING_ACTION_SUGGESTION')),_0x597471={'id':_0x162192,'type':_0x1c01c3,'hasComments':_0x41a850,'data':_0x1b01c4['data']||null,'originalSuggestionId':_0x1b01c4['originalSuggestionId']||null,'attributes':_0x4be6bd['attributes']};this['_adapter']['addSuggestion'](_0x597471)['then'](_0x3703f9=>{_0x4be6bd['_saved']=!0x0,_0x13582b['remove'](_0x1bae4b),_0x3703f9&&_0x3703f9['createdAt']&&(this['_suggestions']['get'](_0x162192)['createdAt']=_0x3703f9['createdAt']);})['catch'](_0x39a9af=>{throw _0xe69762('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4be6bd['discard']();}),_0x4be6bd['stopListening'](),this['_suggestions']['delete'](_0x4be6bd['id']),this['_suggestionState']['delete'](_0x4be6bd),_0x39a9af;});}return _0x4be6bd;}['_isBlockAttribute'](_0xed2b91){return this['_blockAttributeKeys']['has'](_0xed2b91);}['_updateSuggestionData'](_0x5bf0d9,_0x1187fd){const _0x5b3ab0=this['editor']['plugins']['get']('PendingActions'),_0x3e547e=this['getSuggestion'](_0x5bf0d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3e547e['_saved']){const _0x956b56=_0x5b3ab0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bf0d9,_0x1187fd)['then'](()=>{_0x5b3ab0['remove'](_0x956b56);});}else _0x3e547e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bf0d9,_0x1187fd);});}}['_getSuggestionData'](_0x4f13f1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x346a74('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f13f1);}['_handleNewSuggestionMarker'](_0x481c56){const {id:_0x5a6a2a,type:_0x4ec9e3,subType:_0x329300,authorId:_0x2ccfa5}=this['_splitMarkerName'](_0x481c56),_0x57c834=this['_suggestions']['get'](_0x5a6a2a)||this['_createSuggestion'](_0x4ec9e3,_0x329300,_0x5a6a2a,_0x2ccfa5,{});switch(this['_checkSuggestionCorrectness'](_0x57c834,_0x4ec9e3,_0x329300,_0x2ccfa5),this['_suggestionState']['get'](_0x57c834)){case'notReady':this['_getSuggestionData'](_0x5a6a2a)['then'](_0x14ee63=>{let _0x21ec3d=Promise['resolve']();_0x14ee63['hasComments']&&(_0x21ec3d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a6a2a})),_0x21ec3d['then'](()=>{this['addSuggestionData'](_0x14ee63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57c834,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a6a2a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57c834,'ready'),this['fire']('suggestionLoaded',_0x57c834);break;case'ready':this['fire']('suggestionChanged',_0x57c834);}return _0x57c834['addMarkerName'](_0x481c56),_0x57c834;}['_refreshSuggestionsChain'](_0x1b878a){const _0x539b5c=Array['from'](_0x1b878a),_0x185a11=_0x539b5c['filter'](_0x26120f=>'attribute'==_0x26120f['type']);this['_refreshAttributeSuggestionsChain'](_0x185a11);const _0x254b59=_0x539b5c['filter'](_0x716271=>!_0x716271['isMultiRange']&&'attribute'!=_0x716271['type']),_0x407320=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3371ac=>!_0x3371ac['isMultiRange']&&'attribute'!=_0x3371ac['type']),_0x504524=_0x407320['filter'](_0x5518f2=>!_0x1b878a['has'](_0x5518f2)),_0x3729de=new Map(_0x407320['map'](_0x3cf968=>[_0x3cf968,this['_suggestionFactory']['getSuggestionCallback'](_0x3cf968['type'],_0x3cf968['subType'],'chain')])),_0x142f5c=new Map(_0x407320['map'](_0xfb3766=>[_0xfb3766,_0xfb3766['getFirstRange']()])),_0x1b11d9=new Set(),_0x118407=new Set();for(let _0x5cb609=0x0;_0x5cb609<_0x254b59['length'];_0x5cb609++)_0x9fef86(_0x254b59[_0x5cb609],_0x254b59,_0x5cb609+0x1);for(let _0x33aa5f=0x0;_0x33aa5f<_0x254b59['length'];_0x33aa5f++)_0x9fef86(_0x254b59[_0x33aa5f],_0x504524,0x0);const _0x4c6b4f=new Set();for(let _0x28f535=0x0;_0x28f535<_0x254b59['length'];_0x28f535++){const _0x2be495=_0x254b59[_0x28f535];!_0x118407['has'](_0x2be495)&&_0x2be495['previous']&&(_0x4c6b4f['add'](_0x2be495['previous']),_0x2be495['previous']['next']===_0x2be495&&(_0x2be495['previous']['next']=null),_0x2be495['previous']=null),!_0x1b11d9['has'](_0x2be495)&&_0x2be495['next']&&(_0x4c6b4f['add'](_0x2be495['next']),_0x2be495['next']['previous']===_0x2be495&&(_0x2be495['next']['previous']=null),_0x2be495['next']=null);}function _0x9fef86(_0x3d5ee2,_0x24b4b6,_0x53f3db){for(let _0x14b8d4=_0x53f3db;_0x14b8d4<_0x24b4b6['length'];_0x14b8d4++){const _0x5be58e=_0x5c2aab(_0x3d5ee2,_0x24b4b6[_0x14b8d4]);_0x5be58e&&(_0x5be58e[0x0]['next']=_0x5be58e[0x1],_0x5be58e[0x1]['previous']=_0x5be58e[0x0],_0x1b11d9['add'](_0x5be58e[0x0]),_0x118407['add'](_0x5be58e[0x1]));}}function _0x5c2aab(_0x1c42e3,_0x18aefa){if(_0x1c42e3['author']['id']!==_0x18aefa['author']['id'])return null;const _0x18bac2=_0x3729de['get'](_0x1c42e3)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa));if(!_0x18bac2)return null;return _0x3729de['get'](_0x18aefa)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa))?_0x18bac2[0x1]['commentThread']&&_0x18bac2[0x1]['commentThread']['length']?null:_0x18bac2:null;}_0x4c6b4f['size']&&this['_refreshSuggestionsChain'](_0x4c6b4f);}['_refreshAttributeSuggestionsChain'](_0x2142fd){if(0x0==_0x2142fd['length'])return;const _0x42252b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18ff57=>'attribute'==_0x18ff57['type']&&_0x18ff57['_isDataLoaded']),_0x46b080=[],_0x5d0001=new Map();for(const _0x187f9e of _0x42252b){const _0x2173b8=_0x2fe077(_0x187f9e['attributes']);_0x5d0001['has'](_0x2173b8)||(_0x5d0001['set'](_0x2173b8,_0x46b080['length']),_0x46b080['push']([]));const _0x371f72=_0x5d0001['get'](_0x2173b8);_0x46b080[_0x371f72]['push'](_0x187f9e);}!(function(){_0x46b080['sort']((_0xc9542e,_0x367cef)=>{const _0x3d2676=_0xc9542e[0x0]['createdAt'],_0x218856=_0x367cef[0x0]['createdAt'];return _0x3d2676==_0x218856?_0xc9542e[0x0]['attributes']['groupId']<_0x367cef[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d2676<_0x218856?-0x1:0x1;});for(const _0x1cc170 of _0x46b080)_0x1cc170['sort']((_0x3c0a4f,_0x1bfc00)=>_0x3c0a4f['id']<_0x1bfc00['id']?-0x1:0x1);}());for(let _0x2d5466=0x0;_0x2d5466<_0x46b080['length'];_0x2d5466++){if(0x0==_0x46b080[_0x2d5466]['length'])continue;const _0x590222=[];for(let _0x292b1b=_0x2d5466+0x1;_0x292b1b<_0x46b080['length'];_0x292b1b++)0x0!=_0x46b080[_0x292b1b]['length']&&_0x2bc0cb(_0x46b080[_0x2d5466],_0x46b080[_0x292b1b])&&_0x590222['push'](_0x292b1b);for(const _0x23d571 of _0x590222)_0x46b080[_0x2d5466]=_0x46b080[_0x2d5466]['concat'](_0x46b080[_0x23d571]),_0x46b080[_0x23d571]=[];}for(const _0x418d75 of _0x46b080)for(let _0x237d66=0x0;_0x237d66<_0x418d75['length'];_0x237d66++){const _0x587a2f=_0x418d75[_0x237d66+0x1]||null;_0x418d75[_0x237d66]['next']!==_0x587a2f&&(_0x418d75[_0x237d66]['next']=_0x587a2f);}for(const _0x16bddd of _0x46b080)for(let _0x1009a1=0x0;_0x1009a1<_0x16bddd['length'];_0x1009a1++){const _0xcb19cd=_0x16bddd[_0x1009a1-0x1]||null;_0x16bddd[_0x1009a1]['previous']!==_0xcb19cd&&(_0x16bddd[_0x1009a1]['previous']=_0xcb19cd);}function _0x2bc0cb(_0x3e9aa2,_0x461616){if(_0x3e9aa2[0x0]['attributes']['groupId']!==_0x461616[0x0]['attributes']['groupId']&&_0x3e9aa2[0x0]['author']!==_0x461616[0x0]['author'])return!0x1;if(!function(_0x2caa51,_0x12f35a){if(!_0x2caa51['hasComments']&&!_0x12f35a['hasComments'])return!0x0;if(_0x2caa51['hasComments']&&_0x12f35a['hasComments'])return!0x1;if(_0x2caa51['hasComments']&&_0x12f35a['createdAt']<_0x2caa51['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x12f35a['hasComments']&&_0x2caa51['createdAt']<_0x12f35a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3e9aa2[0x0],_0x461616[0x0]))return!0x1;const _0x1e4c0b=Ut(_0x3e9aa2[0x0]['attributes'],['groupId','trackingSessionId']),_0x44c4b4=Ut(_0x461616[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x17f578(_0x1e4c0b,_0x44c4b4))return!0x1;if(_0x3e9aa2[0x0]['attributes']['groupId']==_0x461616[0x0]['attributes']['groupId'])return!0x0;if(_0x3e9aa2[0x0]['attributes']['trackingSessionId']!==_0x461616[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3e9aa2['every'](_0xc170ac=>_0x461616['some'](_0xf3f6b1=>_0xc170ac['getFirstRange']()['isEqual'](_0xf3f6b1['getFirstRange']())))&&_0x461616['every'](_0x30f228=>_0x3e9aa2['some'](_0x18ec58=>_0x30f228['getFirstRange']()['isEqual'](_0x18ec58['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x55dcd4){const _0x38a7de=Array['from'](_0x55dcd4),_0xccaf5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc3e671=_0xccaf5e['filter'](_0x4cbed3=>!_0x55dcd4['has'](_0x4cbed3)),_0x4bb7fc=new Map(_0x38a7de['map'](_0x3f09f4=>[_0x3f09f4,this['_suggestionFactory']['getSuggestionCallback'](_0x3f09f4['type'],_0x3f09f4['subType'],'join')])),_0x729ff=new Map(_0xccaf5e['map'](_0x1a2dcf=>[_0x1a2dcf,_0x1a2dcf['getRanges']()]));for(let _0x4b23cd=0x0;_0x4b23cd<_0x38a7de['length'];_0x4b23cd++){if(_0x528d1c(this,_0x38a7de[_0x4b23cd],_0x38a7de,_0x4b23cd+0x1))return!0x0;}for(let _0x3cc86e=0x0;_0x3cc86e<_0x38a7de['length'];_0x3cc86e++){if(_0x528d1c(this,_0x38a7de[_0x3cc86e],_0xc3e671,0x0))return!0x0;}return!0x1;function _0x528d1c(_0x2b67c8,_0x52b7aa,_0x3d72c2,_0x2001d7){for(let _0x1f2e3b=_0x2001d7;_0x1f2e3b<_0x3d72c2['length'];_0x1f2e3b++){const _0x4cece6=_0x3d72c2[_0x1f2e3b];if(_0x4cece6['type']!==_0x52b7aa['type']||_0x4cece6['author']['id']!==_0x52b7aa['author']['id']||_0x4cece6['subType']!==_0x52b7aa['subType'])continue;if(!Wt(_0x52b7aa,_0x4cece6))continue;if('attribute'==_0x52b7aa['type']&&_0x52b7aa['data']['oldValue']!=_0x4cece6['data']['oldValue'])continue;if('attribute'==_0x52b7aa['type']&&_0x2b67c8['_isBlockAttribute'](_0x52b7aa['data']['key']))continue;if('formatBlock'==_0x52b7aa['type']){const _0x3dd0ce=_0x2b67c8['editor']['model'],_0x21b577=_0x52b7aa['getContainedElement']();if(_0x21b577&&(_0x3dd0ce['schema']['isObject'](_0x21b577)||_0x3dd0ce['schema']['isLimit'](_0x21b577)))continue;}const _0x5d6446=_0x4bb7fc['get'](_0x52b7aa),_0x4d9560=_0x729ff['get'](_0x52b7aa),_0x424471=_0x729ff['get'](_0x4cece6),_0x428aeb=_0x52b7aa['commentThread']&&_0x52b7aa['commentThread']['length'],_0x1ff173=_0x4cece6['commentThread']&&_0x4cece6['commentThread']['length'];if(!_0x428aeb&&_0x5d6446(_0x424471,_0x4d9560))return _0x2b67c8['_joinSuggestions'](_0x4cece6,_0x52b7aa),_0x729ff['delete'](_0x52b7aa),!0x0;if(!_0x1ff173&&_0x5d6446(_0x4d9560,_0x424471))return _0x2b67c8['_joinSuggestions'](_0x52b7aa,_0x4cece6),_0x729ff['delete'](_0x4cece6),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa8b28b,_0x1993ed){if(_0xa8b28b['isMultiRange']){for(const _0x28bf75 of _0x1993ed['getRanges']())_0xa8b28b['addRange'](_0x28bf75);}else{const _0x151169=_0x1993ed['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa8b28b,this['_model']['createRange'](_0xa8b28b['getFirstRange']()['start'],_0x151169));}_0x1993ed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1925be,_0x2c9c60,_0x5d14e9){const _0x5959fc=_0x1925be['startsWith']('format')||_0x1925be['startsWith']('attribute')?'FORMATTING':_0x1925be['toUpperCase']();return o(this['editor']['locale'],_0x2c9c60+'_'+_0x5959fc+'_SUGGESTION_ANNOUNCEMENT',_0x5d14e9);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fd82f=this['editor'];if(!_0x2fd82f['ui'])return;const {ariaLiveAnnouncer:_0x33bf36}=_0x2fd82f['ui'];_0x138bd3(this['_model'],({left:_0x533dd4,entered:_0xb9d3b9})=>{for(const _0x25afbe of _0x533dd4){const {group:_0x4335ec,type:_0x1220ff}=this['_splitMarkerName'](_0x25afbe['name']);if('suggestion'===_0x4335ec){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0x1220ff,'LEAVE'));break;}}for(const _0x2e4a21 of _0xb9d3b9){const {group:_0x181ff1,type:_0xcbd3d7}=this['_splitMarkerName'](_0x2e4a21['name']);if('suggestion'===_0x181ff1){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0xcbd3d7,'ENTER',_0x538503(_0x49096d)));break;}}});}['_processAttributeChanges'](_0x48eed6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e9bf1=this['editor'],_0x28db08=_0x1e9bf1['model']['document']['differ']['getChanges']();if(0x0==_0x28db08['length'])return!0x1;const _0x49a61c=[],_0x4b7b80=_0x28db08['filter'](_0x1d34fd=>'attribute'==_0x1d34fd['type']),_0x2c5f1a=_0x28db08['filter'](_0x4defc7=>'insert'==_0x4defc7['type']&&'$text'!=_0x4defc7['name']),_0x37e164=_0x28db08['filter'](_0xc93c91=>'remove'==_0xc93c91['type']&&'$text'!=_0xc93c91['name']);for(const _0x40f70d of _0x4b7b80)_0x49a61c['push']({'key':_0x40f70d['attributeKey'],'newValue':_0x40f70d['attributeNewValue'],'oldValue':_0x40f70d['attributeOldValue'],'range':Ht(_0x40f70d['range'],_0x1e9bf1['model'])});for(const _0x5b8dbb of _0x2c5f1a){const _0x4fd1a5=_0x37e164['find'](_0xfe3e01=>_0xfe3e01['position']['isEqual'](_0x5b8dbb['position']));_0x4fd1a5&&_0x49a61c['push']({'key':m,'newValue':_0x5b8dbb['name'],'oldValue':_0x4fd1a5['name'],'range':_0x1e9bf1['model']['createRangeOn'](_0x5b8dbb['position']['nodeAfter'])});}return 0x0!=_0x49a61c['length']&&this['_reduceExistingSuggestions'](_0x48eed6,_0x49a61c);}['_processAttributeSuggestions'](_0x3330a6){let _0x4fa1e4=!0x1;const _0x23b8b0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ea2e1=>_0x3ea2e1['data']['newRange']&&_0x3ea2e1['name']['startsWith']('suggestion:attribute:'));for(const _0x15a107 of _0x23b8b0){const {subType:_0x168b4d,id:_0x267c9b}=this['_splitMarkerName'](_0x15a107['name']),_0x588638=_0x168b4d['split']('|')[0x0];for(const _0x112f1b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x112f1b['id']!=_0x267c9b&&'attribute'==_0x112f1b['type']&&_0x112f1b['data']&&_0x112f1b['data']['key']==_0x588638&&_0x112f1b['getFirstRange']()['isIntersecting'](_0x15a107['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x112f1b,_0x15a107['data']['newRange'],_0x3330a6),_0x4fa1e4=!0x0);}return _0x4fa1e4;}['recordAttributeChanges'](_0x55fd1f){this['_recordAttributeSuggestions']=!0x0,_0x55fd1f();}['_isRegisteredAttribute'](_0xbb2189){const _0x1d7802=this['_isBlockAttribute'](_0xbb2189),_0x38c83b=this['_inlineAttributeKeys']['has'](_0xbb2189);return _0x1d7802||_0x38c83b;}['_reduceExistingSuggestions'](_0xcddf79,_0x1e2311){if(0x0==_0x1e2311['length'])return!0x1;let _0x5489fc=!0x1;for(const _0x1fa094 of _0x1e2311){const _0x49063a=this['_findSuggestions'](_0x1fa094['range'],'attribute')['filter'](_0x3eaa69=>!_0x3eaa69['meta']['isNextTo'])['map'](_0x51ef30=>_0x51ef30['suggestion']),_0x537ccd=_0x2fe077({'newValue':_0x1fa094['newValue']});_0x49063a['filter'](_0x17e91a=>{const [_0xa53ea5,_0x4e23ed]=_0x17e91a['subType']['split']('|');return _0xa53ea5==_0x1fa094['key']&&_0x4e23ed!=_0x537ccd;})['forEach'](_0x431de9=>{this['_reduceSuggestionAttributeRange'](_0x431de9,_0x1fa094['range'],_0xcddf79),_0x5489fc=!0x0;});}return _0x5489fc;}['_reduceSuggestionAttributeRange'](_0x4ef69d,_0x2cf90b,_0x2801a6){const _0x190fbe=_0x4ef69d['getFirstRange']()['getDifference'](_0x2cf90b);0x0!==_0x190fbe['length']?0x1!==_0x190fbe['length']?this['_breakSuggestionMarker'](_0x4ef69d,_0x2cf90b['start'],_0x2cf90b['end']):this['_setSuggestionRange'](_0x4ef69d,_0x190fbe[0x0]):_0x2801a6['removeMarker'](_0x4ef69d['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd69aeb){this['_editor']=_0xd69aeb,this['_model']=_0xd69aeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b8b41,_0x35992d,_0x4ccd5b,_0x5bce8b,_0x24bb61,_0x4189f3,_0x5c542b){return new T(this['_model'],{'type':_0x5b8b41,'subType':_0x35992d,'id':_0x4ccd5b,'originalSuggestionId':_0x5c542b,'author':_0x5bce8b,'creator':_0x5bce8b,'attributes':_0x24bb61,'onAttributesChange':_0x4189f3,'onAccept':(..._0x44d4b4)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'accept')(..._0x44d4b4),'onDiscard':(..._0x307eff)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'discard')(..._0x307eff)});}['registerCustomCallback'](_0x3bf96f,_0x3e9390,_0x249de0,_0x225e6c){const _0x1498a4=_0x3bf96f+':'+_0x3e9390+':'+_0x249de0;this['_customCallbacks']['set'](_0x1498a4,_0x225e6c);}['getSuggestionCallback'](_0x4947c6,_0x3028fd,_0x4a5ff7){const _0x362f87=_0x4947c6+':'+_0x3028fd+':'+_0x4a5ff7;return this['_customCallbacks']['get'](_0x362f87)||this['_defaultCallbacks']['get'](_0x4947c6+':'+_0x4a5ff7);}['_registerDefaultCallbacks'](){const _0x455c4d=()=>!0x1,_0x4d071d=_0x187866=>{_0x187866['sort']((_0x1bce9b,_0x4f83d0)=>_0x1bce9b['start']['isBefore'](_0x4f83d0['start'])?0x1:-0x1),this['_model']['change'](_0x1b4c2c=>{for(const _0x215de of _0x187866){let _0x1bfc9a;_0x1bfc9a=_0x215de['end']['isAtEnd']&&_0x215de['end']['parent']==_0x215de['start']['nodeAfter']?_0x1b4c2c['createSelection'](_0x215de['start']['nodeAfter'],'on'):_0x1b4c2c['createSelection'](_0x215de),this['_model']['deleteContent'](_0x1bfc9a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2fddd8=(_0x552e47,_0x1d8f54)=>{_0x1d8f54&&this['_model']['change'](_0x1ab9b9=>{const {commandName:_0xa30b3b,commandParams:_0x4541de=[]}=_0x1d8f54,_0x2633a8=_0x552e47['map'](_0x36410d=>(Pt(_0x36410d)&&(_0x36410d=this['_model']['createRange'](_0x36410d['end'])),_0x36410d))['filter'](_0xe1a750=>'$graveyard'!==_0xe1a750['root']['rootName']);if(_0x2633a8['length']<0x1)return;const _0x524d37=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3013f6=>_0x334b1a['fromRange'](_0x3013f6));_0x1ab9b9['setSelection'](_0x2633a8);for(const _0x3de3f3 of this['_editor']['commands']['commands']())_0x3de3f3['refresh']();_0x4541de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa30b3b,..._0x4541de);const _0x1ea174=_0x524d37['filter'](_0x2cd14e=>'$graveyard'!=_0x2cd14e['root']['rootName']);_0x1ea174['length']>0x0&&_0x1ab9b9['setSelection'](_0x1ea174);for(const _0x296807 of _0x524d37)_0x296807['detach']();});},_0x237d15=(_0x598ff0,_0x457f0c)=>0x1==_0x598ff0['length']&&0x1==_0x457f0c['length']&&_0x598ff0[0x0]['end']['isEqual'](_0x457f0c[0x0]['start']),_0x1f7b49=(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)=>zt(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)?[_0x48beb6,_0x102a05]:zt(_0x102a05,_0x48beb6,_0x11c972,_0x5cc86c)?[_0x102a05,_0x48beb6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x455c4d),this['_defaultCallbacks']['set']('insertion:discard',_0x4d071d),this['_defaultCallbacks']['set']('insertion:join',_0x237d15),this['_defaultCallbacks']['set']('insertion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('deletion:accept',_0x4d071d),this['_defaultCallbacks']['set']('deletion:discard',_0x455c4d),this['_defaultCallbacks']['set']('deletion:join',_0x237d15),this['_defaultCallbacks']['set']('deletion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('formatInline:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatInline:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatInline:join',_0x237d15),this['_defaultCallbacks']['set']('formatInline:chain',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:join',_0x237d15),this['_defaultCallbacks']['set']('formatBlock:chain',_0x455c4d),this['_defaultCallbacks']['set']('attribute:accept',_0x455c4d),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e1216,_0x201f0e)=>{if(!_0x201f0e)return;const _0x103cea=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1d6a56=>{if(_0x201f0e['key']==m)for(const _0x45deac of _0x2e1216){const _0x6474e5=_0x45deac['start']['nodeAfter'],_0x539feb=_0x201f0e['oldValue'];_0x1d6a56['rename'](_0x6474e5,_0x539feb);}else{if(_0x103cea['_isBlockAttribute'](_0x201f0e['key'])){for(const _0x2a98bb of _0x2e1216)void 0x0!==_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x2a98bb['start']['nodeAfter']):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x2a98bb['start']['nodeAfter']);}else{for(const _0x32f530 of _0x2e1216)_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x32f530):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x32f530);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x237d15);}}function Ft(_0x4a9d80,_0xe81ce2,_0x1ff9b7){for(const _0x283584 of _0xe81ce2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x283584['root']==_0x283584)return!0x1;if(!_0x1ff9b7['containsItem'](_0x283584))return!0x1;if(_0x4a9d80['isObject'](_0x283584)||_0x4a9d80['isLimit'](_0x283584))return!0x0;}return!0x1;}function Pt(_0x3d424b){return _0x3d424b['end']['parent']==_0x3d424b['start']['nodeAfter']&&_0x3d424b['end']['isAtStart'];}function Gt(_0x864747,_0x2cd35f,_0xfe925d,_0x5acfd8){const _0x9e2997=_0x50d7c8=>!_0x50d7c8['item']['is']('$textProxy')&&!_0x5acfd8['isObject'](_0x50d7c8['item']),_0x4029c5=_0x864747['start']['getLastMatchingPosition'](_0x9e2997),_0x95678b=_0x864747['end']['getLastMatchingPosition'](_0x9e2997,{'direction':'backward'});return(!_0x864747['start']['isEqual'](_0x4029c5)||!_0x864747['end']['isEqual'](_0x95678b))&&(_0x4029c5['isBefore'](_0x95678b)?_0xfe925d['updateMarker'](_0x2cd35f,{'range':_0xfe925d['createRange'](_0x4029c5,_0x95678b)}):_0xfe925d['removeMarker'](_0x2cd35f),!0x0);}function Lt(_0xa835ad){return _0x2fe077(_0xa835ad);}function Jt(_0x5b0f62){const _0x2b48d3=_0x5b0f62['start']['nodeAfter'];return _0x2b48d3&&_0x2b48d3['is']('element');}function Kt(_0x221709){return!Pt(_0x221709)&&!function(_0x533627){return _0x533627['start']['parent']==_0x533627['end']['nodeBefore']&&_0x533627['start']['isAtEnd'];}(_0x221709);}function Ht(_0x285217,_0x5dbde8){return null==_0x285217['end']['nodeBefore']&&_0x285217['end']['parent']==_0x285217['start']['nodeAfter']?qt(_0x285217['start']['nodeAfter'],_0x5dbde8):_0x285217;}function qt(_0x2202c7,_0x178e0d){const _0x1110f8=_0x178e0d['schema']['isObject'](_0x2202c7)||_0x178e0d['schema']['isSelectable'](_0x2202c7);return _0x178e0d['createRange'](_0x178e0d['createPositionAt'](_0x2202c7,'before'),_0x1110f8?_0x178e0d['createPositionAfter'](_0x2202c7):_0x178e0d['createPositionAt'](_0x2202c7,'end'));}function zt(_0x294583,_0xced17e,_0x226bce,_0x16b215){return!!Wt(_0x294583,_0xced17e)&&_0x226bce['end']['isEqual'](_0x16b215['start']);}function Wt(_0x267a96,_0x4ea59d){if(!_0x267a96['_isDataLoaded']||!_0x4ea59d['_isDataLoaded'])return!0x1;const _0x56c82f=new Set(Object['keys'](_0x267a96['attributes'])),_0x4e4313=new Set(Object['keys'](_0x4ea59d['attributes']));if(_0x56c82f['delete']('groupId'),_0x4e4313['delete']('groupId'),0x0==_0x56c82f['size']&&0x0==_0x4e4313['size'])return!0x0;if(_0x56c82f['size']!=_0x4e4313['size'])return!0x1;const _0x3854ad={..._0x267a96['attributes']},_0x2f81ad={..._0x4ea59d['attributes']};return delete _0x3854ad['groupId'],delete _0x2f81ad['groupId'],JSON['stringify'](_0x3854ad)==JSON['stringify'](_0x2f81ad);}function Qt(_0x459499,_0x3ba21f){const _0x1c2ca8=Xt(_0x459499['attributes']),_0xc10a30=Xt(_0x3ba21f);if(!_0x459499['_isDataLoaded'])return!0x1;for(const _0x4ddb19 of Object['keys'](_0xc10a30))if(!_0x17f578(_0x1c2ca8[_0x4ddb19],_0xc10a30[_0x4ddb19]))return!0x1;return!0x0;}function Xt(_0x51bec3){const _0x18bea4=Object['assign']({},_0x51bec3);return delete _0x18bea4['skipNestingCheck'],delete _0x18bea4['tablePasteChainId'],_0x18bea4;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4f27e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29c21f,_0x365790,_0x446f2c,_0x48fd6e){super(),this['model']=_0x365790,this['view']=_0x446f2c,this['commentThreadController']=_0x48fd6e,this['_editor']=_0x29c21f,this['_acceptCommand']=_0x29c21f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29c21f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x204be6,_0x4b41f8)=>_0x204be6||_0x4b41f8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x323da6=>_0x323da6&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f5c41=>_0x3f5c41&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['_pendingAction']=null,_0x446f2c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x446f2c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x446f2c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x446f2c,'change:isDirty',()=>{_0x446f2c['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 _0x38623d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38623d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x59a488{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2d5ef3,_0x3eb8bc,_0x3d158b,_0x279cbe){super(_0x2d5ef3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x395108(_0x2d5ef3,o(_0x2d5ef3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3eb8bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3eb8bc),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',_0x3eb8bc,'authoredAt',this,'descriptionParts',(_0x37b940,_0x53eb6b,_0x521e0a)=>{const _0x381c19=_0x521e0a['map'](_0x1dd608=>ls(_0x1dd608['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37b940-0x1,_0x3eb8bc['author']['name'],_0x53eb6b?_0x279cbe['formatDateTime'](_0x53eb6b):'',new DOMParser()['parseFromString'](_0x381c19,'text/html')['body']['textContent']]);}),this['focusables']=new _0x56d81b(),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3931e7=>_0x3931e7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3eb8bc,this['_localUser']=_0x3d158b,this['_config']=_0x279cbe,_0x279cbe['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x163ace(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4cd545}=this['_config'];this['commentsListView']=new _0x4cd545(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',_0x7cfbf6=>_0x7cfbf6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cf5ce,_0x4f92fb)=>_0x3cf5ce||!!_0x4f92fb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c7ae8}=this['_config'],_0x59e5f8=new _0x4c7ae8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfe4902=_0x59e5f8['commentInputView'];return _0x59e5f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfe4902,'value',(_0x428201,_0x1bc52f,_0x2b593b)=>!!_0x2b593b||_0x428201&&!_0x1bc52f),_0xfe4902['on']('submit',(_0x16ab9c,_0x564b21)=>{this['fire']('addComment',_0x564b21),_0xfe4902['editor']['setData']('');}),_0xfe4902['on']('cancel',()=>this['focus']()),_0xfe4902['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59e5f8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef){super(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b4135=>_0x3b4135&&_0x3b4135[0x0]?_0x3b4135[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d88b8,_0x34823f)=>{let _0x25d26d='';for(const _0x27ecc3 of _0x2d88b8)_0x25d26d+='<p>'+ls(_0x27ecc3['content'],_0x27ecc3['color'])+'</p>';return _0x34823f?_0x25d26d:_0x347682(_0x25d26d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2729ef['SuggestionView'](_0x59b7e2,_0x4bd3f6,{'formatDateTime':_0x2729ef['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 _0x3ac019=this['bindTemplate'],_0x4acc01=[this['suggestionView']];return this['commentsListView']&&_0x4acc01['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4acc01['push'](this['commentThreadInputView']),_0x4acc01['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ac019['if']('isActive','ck-suggestion-wrapper--active'),_0x3ac019['to']('type',_0x4573c9=>'ck-suggestion-'+_0x4573c9),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':_0x3ac019['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4acc01};}['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 _0x59a488{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a7235,_0x2ce77b,_0x254f25){super(_0x3a7235),this['_model']=_0x2ce77b,this['_config']=_0x254f25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2ce77b),this['acceptButton']=this['_createButton'](o(_0x3a7235,'Accept\x20suggestion'),_0x34b441,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3a7235,'Discard\x20suggestion'),_0x40347d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b83ce(_0x3a7235,_0x2ce77b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x56d81b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8e28e7=>_0x8e28e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x321771=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x321771['innerHTML']=this['description'],this['on']('change:description',(_0x29921a,_0x140729,_0x3d69cd)=>{_0x321771['innerHTML']=_0x3d69cd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x52a1e2=this['bindTemplate'],_0x5bb0ac=[{'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':_0x52a1e2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52a1e2['to']('authoredAt',_0x4fbb39=>this['_config']['formatDateTime'](_0x4fbb39))}]}]},{'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']&&_0x5bb0ac['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':_0x5bb0ac}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2d3b9f,_0xf7f6d2,_0x26a969,_0x2a5cff,_0x4302bb){const _0x50f986=new _0x2ec40b(this['locale']);return _0x50f986['set']({'label':_0x2d3b9f,'icon':_0xf7f6d2,'tooltip':!0x0,'tooltipPosition':_0x4302bb}),_0x50f986['extendTemplate']({'attributes':{'class':_0x26a969}}),_0x50f986['on']('execute',()=>{this['fire'](_0x2a5cff,this['_model']['id']);}),_0x50f986;}['_setupKeyboardNavigation'](){const _0x577226=this['element'];this['keystrokes']['listenTo'](_0x577226);for(const _0x16028e of this['focusables'])this['focusTracker']['add'](_0x16028e['element']),this['keystrokes']['listenTo'](_0x16028e['element']);this['keystrokes']['set']('enter',(_0x41c443,_0x3d2def)=>{_0x577226===_0x41c443['target']&&(this['focusCycler']['focusFirst'](),_0x3d2def());}),this['keystrokes']['set']('esc',(_0x1855af,_0x5c54c3)=>{_0x577226!==_0x1855af['target']&&(this['focus'](),_0x5c54c3());});}}class u extends _0x559983{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x597f1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x568d6b){super(_0x568d6b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x121840=this['editor']['config'];_0x121840['define']('trackChanges.SuggestionThreadView',fe),_0x121840['define']('trackChanges.SuggestionView',we),_0x121840['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x121840['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x445c7a,_0x4f9a22){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf92fc4,_0x5b0842]of this['_handleControllerBuffer']){const _0x104f0c=this['_suggestionToController']['has'](_0xf92fc4);_0x104f0c||_0x5b0842?_0x104f0c&&_0x5b0842&&this['_destroyController'](_0xf92fc4):this['_initializeController'](_0xf92fc4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x445c7a,_0x4f9a22);}['init'](){const _0x209af1=this['editor'],_0x1de06b=_0x209af1['plugins']['get']('TrackChangesEditing'),_0x5225da=_0x209af1['plugins']['get']('Annotations'),_0x16118f=_0x209af1['plugins']['get']('EditorAnnotations'),_0x1cb947=_0x209af1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16118f['addSourceCollector'](()=>{const _0x3a907b=[];for(const [_0x1b04a8,_0x2ffe4d]of Array['from'](this['_suggestionToController'])){const _0x2d581c=_0x1b04a8['getAllAdjacentSuggestions'](),_0x2a5a38=[];for(const _0xc7b089 of _0x2d581c){if(!_0xc7b089['isInContent'])continue;if(_0xc7b089['isMultiRange']){_0x2a5a38['push'](..._0xc7b089['getRanges']());continue;}const _0x3d229e=_0xc7b089['getFirstRange']();if(_0x2a5a38['length']>0x0){const _0x23b6cb=_0x2a5a38[0x0]['getJoined'](_0x3d229e);if(_0x23b6cb){_0x2a5a38[0x0]=_0x23b6cb;continue;}}_0x2a5a38['push'](_0x3d229e);}_0x3a907b['push']([_0x2ffe4d['view'],_0x2a5a38]);}return _0x3a907b;}),this['listenTo'](_0x1de06b,'suggestionLoaded',(_0xccd635,_0x1602bb)=>{this['listenTo'](_0x1602bb,'change:previous',(_0x55206a,_0x4be9c3,_0x1d2672,_0x1257c6)=>{_0x1602bb['isInContent']&&(null==_0x1d2672?(this['_updateController'](_0x1257c6['head']),this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1)):(this['_updateController'](_0x1d2672['head']),null==_0x1257c6&&this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x0)));}),null!==_0x1602bb['previous']?this['_updateController'](_0x1602bb['head']):this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1);}),this['listenTo'](_0x1de06b,'suggestionUnloaded',(_0x3a9ae3,_0x3e1594,_0x7eb405)=>{this['stopListening'](_0x3e1594,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e1594),this['_suggestionToController']['has'](_0x3e1594)&&this['_destroyController'](_0x3e1594),_0x7eb405&&this['_updateController'](_0x7eb405['head']);}),this['listenTo'](_0x1de06b,'suggestionChanged',(_0x282d1f,_0x381b4d)=>{this['_updateController'](_0x381b4d);}),this['listenTo'](_0x5225da,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1cb947,'addComment',(_0xc75cd0,{threadId:_0x3057c7,isFromAdapter:_0x3e3324})=>{if(_0x3e3324||!_0x1de06b['hasSuggestion'](_0x3057c7))return;const _0x2938ee=_0x1de06b['getSuggestion'](_0x3057c7);this['_suggestionToController']['get'](_0x2938ee)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbb86a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7ffad4;for(const _0x286c37 in _0xbb86a7){const _0x38dae0=_0x286c37,_0x450e3f=_0xbb86a7[_0x38dae0];if('trackChangesLicenseKeyValid'==_0x450e3f||'trackChangesLicenseKeyInvalid'==_0x450e3f||'trackChangesLicenseKeyExpired'==_0x450e3f||'trackChangesLicenseKeyDomainLimit'==_0x450e3f||'trackChangesLicenseKeyNotAllowed'==_0x450e3f||'trackChangesLicenseKeyEvaluationLimit'==_0x450e3f||'trackChangesLicenseKeyTrialLimit'==_0x450e3f||'trackChangesLicenseKeyUsageLimit'==_0x450e3f){delete _0xbb86a7[_0x38dae0],_0x7ffad4=_0x450e3f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2eedf6){const _0x35b0da=this['_suggestionToController']['get'](_0x2eedf6);if(!_0x35b0da)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x35b0da['view'])||null;}['getSuggestionForAnnotation'](_0x58a4e7){const _0xa4afff=this['_viewToController']['get'](_0x58a4e7['innerView']);return _0xa4afff?_0xa4afff['model']:null;}['_refreshActiveMarkers'](){const _0x12aefd=this['editor']['plugins']['get']('Annotations'),_0x207d2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x444ac6=Array['from'](_0x12aefd['activeAnnotations'],_0x3eacbc=>_0x3eacbc['innerView'])['filter'](_0x7bd554=>this['_viewToController']['has'](_0x7bd554)),_0x3b32b2=[];for(const _0x3e8146 of _0x444ac6){const _0x391d51=this['_viewToController']['get'](_0x3e8146)['model']['getAllAdjacentSuggestions']();_0x3b32b2['push'](..._0x391d51['reduce']((_0x51a6ca,_0x4e9de9)=>[..._0x51a6ca,..._0x4e9de9['getMarkerNames']()],[]));}_0x207d2d['activeMarkers']=_0x3b32b2;}['_addUIComponentsToFactory'](){const _0x35fba4=this['editor'],_0x479166=_0x35fba4['locale'],_0x41c929=o(_0x479166,'Track\x20changes'),_0x1efd51=new _0x30f5d4([{'type':'switchbutton','model':new _0x4d3856({'withText':!0x0,'isToggleable':!0x0,'label':_0x41c929,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35fba4['plugins']['has']('TrackChangesPreview')&&_0x1efd51['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3213ae of _0x1efd51)if(ke(_0x3213ae)){const _0x3a5a3e=_0x35fba4['commands']['get'](_0x3213ae['model']['commandName']);_0x3213ae['model']['bind']('isOn','isEnabled')['to'](_0x3a5a3e,'value','isEnabled');}_0x35fba4['ui']['componentFactory']['add']('trackChanges',_0x1f2da9=>this['_createToolbarButton'](_0x1f2da9,_0x1efd51,_0x41c929)),_0x35fba4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eeccb=>this['_createMenuBarMenu'](_0x3eeccb,_0x1efd51,_0x41c929));}['_createToolbarButton'](_0x34b562,_0x4bb64f,_0x394a58){const _0x4f3a81=_0x1e80c3(_0x34b562,_0x552a5f),_0x3c27d2=this['editor']['commands']['get']('trackChanges');_0x4f3a81['buttonView']['set']({'tooltip':_0x394a58,'label':_0x394a58,'icon':_0x2f5b1a}),_0x4f3a81['buttonView']['bind']('isOn')['to'](_0x3c27d2,'value'),_0x4f3a81['buttonView']['on']('execute',()=>{_0x3c27d2['execute'](),this['editor']['editing']['view']['focus']();}),_0x56cc45(_0x4f3a81,_0x4bb64f,{'role':'menu'});const _0x5be482=[];for(const _0xee336c of _0x4bb64f)ke(_0xee336c)&&_0x5be482['push'](this['editor']['commands']['get'](_0xee336c['model']['commandName']));const _0x5088a2=_0x4f3a81['buttonView'];return _0x5088a2['actionView']['unbind']('isEnabled'),_0x5088a2['arrowView']['unbind']('isEnabled'),_0x5088a2['actionView']['bind']('isEnabled')['to'](_0x3c27d2,'isEnabled'),_0x5088a2['arrowView']['bind']('isEnabled')['toMany'](_0x5be482,'isEnabled',(..._0x54f444)=>_0x54f444['some'](_0x29b87e=>_0x29b87e)),_0x4f3a81['on']('execute',_0x2639c4=>{this['editor']['execute'](_0x2639c4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f3a81;}['_createMenuBarMenu'](_0x1ecba6,_0x2870e8,_0x22684a){const _0x2dde9d=new _0x2f852e(_0x1ecba6),_0x506995=this['editor']['commands']['get']('trackChanges');_0x2dde9d['buttonView']['set']({'label':_0x22684a,'icon':_0x2f5b1a});const _0x3daf20=new _0xa85213(_0x1ecba6);for(const _0x403e03 of _0x2870e8){if('separator'==_0x403e03['type']){_0x3daf20['items']['add'](new _0x381151(_0x1ecba6));continue;}const _0x5c6c9b=new _0x32fd6e(_0x1ecba6,_0x2dde9d),_0x2f1751=new _0x5ce50d(_0x1ecba6),_0x15cfce=_0x403e03['model'];_0x2f1751['bind'](...Object['keys'](_0x15cfce))['to'](_0x15cfce),_0x2f1751['delegate']('execute')['to'](_0x2dde9d),_0x2f1751['on']('execute',()=>{this['editor']['execute'](_0x15cfce['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c6c9b['children']['add'](_0x2f1751),_0x3daf20['items']['add'](_0x5c6c9b);}return _0x2dde9d['bind']('isEnabled')['to'](_0x506995,'isEnabled'),_0x2dde9d['panelView']['children']['add'](_0x3daf20),_0x2dde9d;}['_initializeController'](_0x9c0179){const _0x5a8483=this['editor'],_0x49bf04=_0x5a8483['config'],_0x24c815=_0x5a8483['plugins']['get']('Annotations'),_0x1519a7=_0x5a8483['plugins']['get']('CommentsRepository'),_0x175632=_0x5a8483['plugins']['get']('EditorAnnotations'),_0x317e0f=_0x5a8483['plugins']['get'](_0x597f1a)['me'],_0x54eb7c=_0x49bf04['get']('trackChanges')['SuggestionThreadView'],_0x3fa1da=_0x49bf04['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b4fbe,CommentThreadInputView:_0x9575be}=_0x5a8483['plugins']['get']('CommentsUI');let _0x228758,_0xeb176,_0x1b282f;this['_annotationViews']['has'](_0x9c0179['id'])?(_0xeb176=this['_annotationViews']['get'](_0x9c0179['id']),_0x228758=_0xeb176['mainView']):(_0x228758=new _0x54eb7c(_0x5a8483['locale'],_0x9c0179,_0x317e0f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x49bf04['get']('comments.editorConfig'),'licenseKey':_0x49bf04['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x49bf04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x49bf04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x49bf04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4f5d71(_0x49bf04['get']('locale'),_0x5a8483['locale']),'CommentView':_0x49bf04['get']('comments')['CommentView'],'CommentsListView':_0x2b4fbe,'CommentThreadInputView':_0x9575be,'SuggestionView':_0x3fa1da}),_0x228758['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0x228758['suggestionView']['discardButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0xeb176=_0x24c815['createAnnotationView'](this['editor']['locale'],_0x228758),_0xeb176['bind']('isDirty')['to'](_0x228758,'isDirty'),_0xeb176['bind']('length')['to'](_0x228758),_0xeb176['bind']('type')['to'](_0x228758,'type',_0x6c2355=>'suggestion-'+_0x6c2355),_0x228758['on']('escape',()=>{_0x1b282f['fire']('escape');}),this['_annotationViews']['set'](_0x9c0179['id'],_0xeb176));const _0x5c0715=_0x1519a7['createCommentThreadController'](_0x9c0179['commentThread'],_0x228758),_0x5b8f09=new pe(_0x5a8483,_0x9c0179,_0x228758,_0x5c0715),_0x3e40bd=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x5502ba=>_0x5502ba['isInContent']);_0x228758['descriptionParts']=_0x5a8483['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e40bd),this['_suggestionToController']['set'](_0x9c0179,_0x5b8f09),this['_viewToController']['set'](_0x228758,_0x5b8f09),_0x1b282f=_0x24c815['createAnnotation']({'view':_0xeb176,'target':()=>{const _0x7327c=[],_0xd9abcb=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x3074d9=>_0x3074d9['isInContent']);for(const _0x5beb6c of _0xd9abcb)_0x7327c['push'](..._0x5beb6c['getMarkers']());return _0x3a0d9a(_0x5a8483['editing'],_0x7327c);},'type':()=>'suggestion-'+_0x5b8f09['view']['type']}),_0x1519a7['_bindAnnotationToEditors'](_0x228758,_0x1b282f),_0x24c815['add'](_0x1b282f),_0x175632['registerAnnotation'](_0x1b282f);}['_destroyController'](_0x46730c){const _0xdf4d16=this['editor']['plugins']['get']('CommentsRepository'),_0x2ab652=this['editor']['plugins']['get']('Annotations'),_0x54bf61=this['_suggestionToController']['get'](_0x46730c),_0x182b0b=_0x54bf61['view'],_0x202094=_0x2ab652['getByInnerView'](_0x182b0b);_0xdf4d16['_unbindEditors'](_0x182b0b),_0x202094&&_0x2ab652['remove'](_0x202094),this['_suggestionToController']['delete'](_0x46730c),this['_viewToController']['delete'](_0x182b0b),_0x54bf61['destroy']();}['_updateController'](_0x107d65){if(!_0x107d65['isInContent']||!this['_suggestionToController']['has'](_0x107d65))return;const _0x2ce008=this['editor']['plugins']['get']('TrackChangesEditing'),_0x229463=this['_suggestionToController']['get'](_0x107d65),_0x2a37b7=_0x107d65['getAllAdjacentSuggestions']();_0x229463['view']['descriptionParts']=_0x2ce008['descriptionFactory']['getDescriptions'](_0x2a37b7);}['destroy'](){for(const _0x40bc4f of this['_suggestionToController']['keys']())this['_destroyController'](_0x40bc4f);for(const _0x3363d1 of this['_annotationViews']['values']())_0x3363d1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2e486b){return'model'in _0x2e486b;}class Fe extends _0x559983{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4e470c){this['editor']['plugins']['get'](d)['adapter']=_0x4e470c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x37f429){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x37f429);}['getSuggestions']({skipNotAttached:_0x51d968=!0x1,toJSON:_0x5c0160=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x51d968,'toJSON':_0x5c0160});}['getSuggestion'](_0x4ecf16){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4ecf16);}}const p=['Pagination'];class re extends _0x559983{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e3e59=this['editor'];if(_0x2e3e59['config']['define']('trackChangesData.editorCreator',_0x4f00e9=>{const _0x14344d=_0x2e3e59['model']['document']['getRootNames']()['reduce']((_0x10c1aa,_0x12e03c)=>(_0x10c1aa[_0x12e03c]='',_0x10c1aa),{});return _0x2e3e59['constructor']['create'](_0x14344d,_0x4f00e9);}),'function'!=typeof _0x2e3e59['config']['get']('trackChangesData')['editorCreator'])throw new _0x346a74('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47bf8c){return P(this['editor'],!0x0,_0x47bf8c);}['getDataWithDiscardedSuggestions'](_0x20e1af){return P(this['editor'],!0x1,_0x20e1af);}}class Ge extends _0x559983{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1385dc){function _0x58fc20(_0x4b64d1){return _0x4b64d1['map'](_0x22f813=>String['fromCharCode'](_0x22f813))['join']('');}super(_0x1385dc),this['result']='end',_0x1385dc[_0x58fc20([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58fc20([0x76,0x69,0x65,0x77])][_0x58fc20([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58fc20([0x61,0x75,0x74,0x6f]),_0x1385dc[_0x58fc20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58fc20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58fc20([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58fc20([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58fc20([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 He(_0x1c90f4){return void 0x0!==_0x1c90f4['getRootsAttributes'];}async function P(_0xdf611,_0x7afc97,_0x4d2933){const _0x12148f=_0x17c6af(_0xdf611,p);_0x12148f['plugins']['push'](d,Ge),_0x12148f['rootsAttributes']=He(_0xdf611)?_0xdf611['getRootsAttributes']():void 0x0;const _0x3247e7=document['createDocumentFragment'](),_0x5a6204=_0xdf611['config']['get']('trackChangesData')['editorCreator'],_0x2c4d4c=await _0x5a6204(_0x12148f,()=>function(_0x5b552c){const _0x23480c=document['createElement']('div');return _0x5b552c['appendChild'](_0x23480c),_0x23480c;}(_0x3247e7));!function(_0x536be4,_0x3b8f27){const _0x33b580=_0x536be4['model']['document']['getRootNames']()['reduce']((_0x25ec2d,_0x5dbfb4)=>(_0x25ec2d[_0x5dbfb4]=_0x536be4['data']['get']({'rootName':_0x5dbfb4}),_0x25ec2d),{}),_0x27e1bd=_0x536be4['plugins']['get']('Users')['users']['map'](_0x25fb80=>({'id':_0x25fb80['id'],'name':_0x25fb80['name']})),_0x4f7bd2=_0x536be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x217edc=_0x536be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x191141=_0x3b8f27['plugins']['get']('Users'),_0x3236ca=_0x3b8f27['plugins']['get']('TrackChangesEditing'),_0x100ef8=_0x3b8f27['plugins']['get']('CommentsRepository');for(const _0xd85748 of _0x100ef8['getCommentThreads']())_0xd85748['remove']();for(const _0x26df00 of _0x27e1bd)_0x191141['getUser'](_0x26df00['id'])||_0x191141['addUser'](_0x26df00);_0x191141['me']||_0x191141['useAnonymousUser']();for(const _0x3cffc4 of _0x217edc)_0x100ef8['addCommentThread'](_0x3cffc4);for(const _0x26350f of _0x4f7bd2)_0x3236ca['addSuggestionData'](_0x26350f);_0x3b8f27['data']['set'](_0x33b580);}(_0xdf611,_0x2c4d4c),_0x2c4d4c['execute'](_0x7afc97?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e4e70=He(_0x2c4d4c)?_0x2c4d4c['getFullData'](_0x4d2933):_0x2c4d4c['data']['get'](_0x4d2933);return await _0x2c4d4c['destroy'](),_0x3e4e70;}class Me extends _0x59a488{['options'];constructor(_0x32214f,_0x421226){super(_0x32214f),this['options']=_0x421226,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'](_0x223509,_0xb553f6){if(!this['element'])return;const _0x2029cf=[];for(const [_0x206b44,_0x2388f2]of _0x223509){const _0x1fbd00=document['createElement']('div');_0x1fbd00['setAttribute']('data-ck-root-name',_0x206b44),_0x1fbd00['className']=_0x2388f2['classes']+'\x20ck-track-changes-preview__root-container',_0x1fbd00['innerHTML']=_0x2388f2['content'],_0x2029cf['push'](_0x1fbd00);}_0xb553f6(this['element'],_0x2029cf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ceda1{constructor(_0x53efba){super(_0x53efba),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x510332=this['editor'],_0x3a1494=_0x510332['locale'],_0x3b577e=_0x510332['plugins']['get']('Dialog');let _0x2ece02;const _0x560705=function(_0x337c2e){const _0x2baf30={};if('editables'in _0x337c2e['ui']['view']){for(const [_0x3c068f,_0x507ce0]of Object['entries'](_0x337c2e['ui']['view']['editables']))_0x2baf30[_0x3c068f]=_0x507ce0['element'];}else _0x2baf30[_0x337c2e['model']['document']['getRootNames']()[0x0]]=_0x337c2e['ui']['view']['editable']['element'];return _0x2baf30;}(_0x510332),_0x4625b0=function(_0x4e9299){let _0xfc975=0x0;for(const _0x3b4deb of Object['values'](_0x4e9299))_0xfc975=Math['max'](_0xfc975,_0x3b4deb['getBoundingClientRect']()['width']);let _0x499e78=0x0;for(const _0x21a907 of Object['values'](_0x4e9299))_0x499e78+=_0x21a907['getBoundingClientRect']()['height'];const _0xbadc94=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x441dbc=Math['min'](_0x499e78,_0xbadc94);return{'width':_0xfc975,'height':_0x441dbc};}(_0x560705);_0x3b577e['show']({'id':'finalContentPreview','title':o(_0x3a1494,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a1494,{'dialogRects':_0x4625b0}),'onHide':()=>{_0x2ece02['detachFromDom']();},'onShow':()=>{_0x510332['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b1a1c=>{const _0x17639a=this['_standarizeRootsData'](_0x4b1a1c,_0x510332,_0x560705);_0x3b577e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17639a,_0x510332['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ece02=new _0x107e82(_0x3a1494,[_0x3b577e['view']]),_0x2ece02['attachToDom'](),_0x2ece02['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x510332['once']('destroy',()=>{_0x2ece02['detachFromDom']();});const _0x2ad7ae=_0x3b577e['view']['headerView']['class'];_0x3b577e['view']['headerView']['class']=_0x2ad7ae?_0x2ad7ae+'\x20ck-reset_all':'ck-reset_all',_0x3b577e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3b577e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x244881=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4298cf=_0x244881['previewMode'],_0x544a57={};if('$labels'===_0x4298cf){for(const _0x4c1b1a of _0x244881['getMergeFieldsIds']())_0x544a57[_0x4c1b1a]=_0x244881['getLabel'](_0x4c1b1a)||_0x4c1b1a;}else{const _0x478dc6='$defaultValues'===_0x4298cf?_0x244881['getDefaultValues']():_0x244881['getDataSetValues'](_0x4298cf,!0x0);for(const _0x460d7d of Object['entries'](_0x478dc6)){const [_0x272124,_0x40510b]=_0x460d7d;_0x544a57[_0x272124]=null!==_0x40510b?_0x40510b:_0x244881['getLabel'](_0x272124)||_0x272124;}}return{'mergeFieldsData':_0x544a57};}['_standarizeRootsData'](_0x4111aa,_0x59a31b,_0x6286ae){let _0x18c35f;if('string'==typeof _0x4111aa){const _0x46ebd1=_0x59a31b['model']['document']['getRootNames']()[0x0];_0x18c35f={[_0x46ebd1]:_0x4111aa};}else _0x18c35f=_0x4111aa;const _0x2767e7=this['_fixMediaEmbeds'](_0x18c35f,_0x59a31b),_0x153e36=function(_0x29ec41,_0x56a1dd){for(const [_0x390807,_0x5e0055]of _0x29ec41)_0x5e0055['classes']=_0x56a1dd[_0x390807]['classList']['value']['replace']('ck-focused','');return _0x29ec41;}(this['_sortRoots'](_0x59a31b)['reduce']((_0x21aa92,_0x2cbe6b)=>(_0x21aa92['push']([_0x2cbe6b,{'content':_0x2767e7[_0x2cbe6b],'classes':''}]),_0x21aa92),[]),_0x6286ae);return _0x153e36;}['_fixMediaEmbeds'](_0x49f20a,_0x5d96ca){if(!_0x5d96ca['plugins']['has']('MediaEmbedEditing'))return _0x49f20a;const _0x527574=_0x5d96ca['plugins']['get']('MediaEmbedEditing');for(const [_0x166e4c,_0x5bfc81]of Object['entries'](_0x49f20a)){const _0xae0037=document['createElement']('div');_0xae0037['innerHTML']=_0x5bfc81,(_0xae0037['querySelectorAll']('figure.media')['forEach'](_0x210422=>{const _0x9b35ab=_0x210422['querySelector']('oembed');if(_0x9b35ab){const _0x252f9b=_0x9b35ab['getAttribute']('url');if(_0x252f9b){const _0x272a12=_0x527574['registry']['getMediaViewElement'](new _0x3be5d0(_0x5d96ca['editing']['view']['document']),_0x252f9b,{'elementName':'','renderForEditingView':!0x0}),_0x450551=document['createElement']('div');_0x450551['classList']['add']('ck-media__wrapper'),_0x272a12['render'](_0x450551,_0x5d96ca['editing']['view']['domConverter']),_0x9b35ab['replaceWith'](_0x450551);}}}),_0x49f20a[_0x166e4c]=_0xae0037['innerHTML']);}return _0x49f20a;}['_sortRoots'](_0x408b5e){if(!function(_0x1a27b3){return void 0x0!==_0x1a27b3['getRootsAttributes'];}(_0x408b5e))return _0x408b5e['model']['document']['getRootNames']();const _0xf9c280=[],_0x154d48=new Map();for(const _0x336c90 of _0x408b5e['model']['document']['getRootNames']()){const _0x4a3218=_0x408b5e['editing']['view']['getDomRoot'](_0x336c90)['getClientRects']()['item'](0x0);_0xf9c280['push'](_0x336c90),_0x154d48['set'](_0x336c90,_0x4a3218);}return _0xf9c280['sort']((_0x2161d5,_0x22cb8a)=>{const _0x6f04b2=_0x154d48['get'](_0x2161d5),_0x524a10=_0x154d48['get'](_0x22cb8a);return _0x6f04b2['y']-_0x524a10['y']||_0x6f04b2['x']-_0x524a10['x'];}),_0xf9c280;}}class $e extends _0x559983{static get['requires'](){return[re,_0x401523];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b200f){super(_0x5b200f),_0x5b200f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5b200f['config']['define']('trackChanges.preview.renderFunction',(_0x57df4e,_0x3cfaf2)=>{for(const _0x34523e of _0x3cfaf2)_0x57df4e['appendChild'](_0x34523e);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};