@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250208.0 → 0.0.0-nightly-20250209.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x5d6d85,PendingActions as _0x5cc16f,icons as _0x4c8ee3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x29d5ac,ObservableMixin as _0x3c6444,uid as _0x39ba3e,priorities as _0x144da7,insertToPriorityArray as _0x14a0d9,logWarning as _0x2bcb48,getEnvKeystrokeText as _0xff9ef1,FocusTracker as _0x2b4231,KeystrokeHandler as _0x3254d8,Collection as _0x9348b0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4db594,View as _0xb8f822,ViewCollection as _0x170438,FocusCycler as ts,ViewModel as _0x10cbf3,createDropdown as _0x3281b7,SplitButtonView as _0x11c105,addListToDropdown as _0x23fcda,MenuBarMenuView as _0x56b16a,MenuBarMenuListView as _0x16ca5a,ListSeparatorView as _0x1d2b06,MenuBarMenuListItemView as _0x522a14,MenuBarMenuListItemButtonView as _0x425554,BodyCollection as _0x1ab9e7,Dialog as _0x4fd160}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xc8e4c,hashObject as _0x2fabc6,surroundingMarkersDetector as _0x10b131,FOCUS_ANNOTATION_KEYSTROKE as _0x29a97c,AriaDescriptionView as _0x1bc3ff,setupThreadKeyboardNavigation as _0x41d368,trimHtml as _0x3a5076,UserView as _0x29e6d6,LateFocusButtonView as _0x18f485,getDateTimeFormatter as _0x5737cc,getAllMarkersDomElementsSorted as _0x458c25,sanitizeEditorConfig as _0x1faa66}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x382a32,LiveRange as _0x1e09a5,LivePosition as _0x3d1475,DowncastWriter as _0x13342a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x6cf509,toWidget as _0xf74619}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1aee9a,set as _0x3e5d67,isEqual as _0x27c121,unset as _0x1ab7e1,omit as Et}from'lodash-es';import{Delete as _0x4f5774,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5b6bef,ShiftEnter as _0x5c4d6f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x242920,_0xb6d0e){super(_0x242920),this['_enabledCommands']=_0xb6d0e,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 _0x511be9 of this['editor']['commands']['commands']())_0x511be9['affectsData']&&!this['_enabledCommands']['has'](_0x511be9)&&_0x511be9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x29838c of this['editor']['commands']['commands']())_0x29838c['affectsData']&&!this['_enabledCommands']['has'](_0x29838c)&&_0x29838c['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x1cb4eb,_0x230366){super(_0x1cb4eb),this['_suggestions']=_0x230366,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2683fa){const _0x31e8c7=this['_suggestions']['get'](_0x2683fa);if(!_0x31e8c7)throw new _0x29d5ac('track-changes-accept-suggestion-not-found',this);const _0x2e2f41=_0x31e8c7['getRanges']();this['editor']['model']['canEditAt'](_0x2e2f41)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x31e8c7);}}class R extends Qt{['_suggestions'];constructor(_0x493561,_0x3eb68f){super(_0x493561),this['_suggestions']=_0x3eb68f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x34498a){const _0x127458=this['_suggestions']['get'](_0x34498a);if(!_0x127458)throw new _0x29d5ac('track-changes-discard-suggestion-not-found',this);const _0x100e47=_0x127458['getRanges']();this['editor']['model']['canEditAt'](_0x100e47)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x127458);}}function ns(_0x66e7ee,_0x5234fc){let _0x461012='';return _0x461012+=_0x66e7ee['split']('*')['map']((_0x19aac2,_0x15efaa)=>_0x15efaa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x19aac2)+'</span>':nn(_0x19aac2))['join'](''),_0x5234fc&&(_0x461012+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5234fc['value']+'\x22\x20title=\x22'+_0x5234fc['title']+'\x22></span>'),_0x461012;}function nn(_0x1558c5){const _0x4d0a95=document['createElement']('span');return _0x4d0a95['innerText']=_0x1558c5,_0x4d0a95['innerHTML'];}function Xt(_0x5195e){return _0x5195e['sort']((_0x25e8c5,_0x537177)=>'deletion'==_0x25e8c5['type']&&'deletion'!=_0x537177['type']?-0x1:'deletion'!=_0x25e8c5['type']&&'deletion'==_0x537177['type']?0x1:0x0);}function to(_0x5407d1,_0x27c0a9){let _0x17feae,_0x342671=0x0;const _0x14234b=[],_0x2d56e8=_0x27c0a9['schema'];for(;_0x342671<_0x5407d1['length'];){const _0x397c0f=_0x5407d1[_0x342671],_0x377d18=_0x5407d1[_0x342671+0x1];_0x17feae||(_0x17feae=_0x27c0a9['createPositionBefore'](_0x397c0f)),on(_0x27c0a9,_0x397c0f,_0x377d18)||(_0x14234b['push'](_0x27c0a9['createRange'](_0x17feae,_0x2d56e8['isObject'](_0x397c0f)?_0x27c0a9['createPositionAfter'](_0x397c0f):_0x27c0a9['createPositionAt'](_0x397c0f,'end'))),_0x17feae=null),_0x342671++;}return _0x14234b;}function on(_0x581b21,_0x2facf9,_0x43679c){if(!_0x43679c)return!0x1;const _0x3bb96c=_0x581b21['createPositionAfter'](_0x2facf9),_0x47d3ed=_0x581b21['createPositionBefore'](_0x43679c);return _0x3bb96c['isTouching'](_0x47d3ed);}function Yt(_0x5d3bc5,_0x3c8aac,_0x383a2e){for(;_0x383a2e['length'];){const _0x2294a1=_0x383a2e['splice'](0x0,0x64);_0x5d3bc5['change'](()=>{for(const _0x262b09 of _0x2294a1)_0x262b09['isInContent']&&_0x3c8aac['execute'](_0x262b09['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x45c369,_0x3304c4,_0x52a14f){super(_0x45c369),this['_command']=_0x3304c4,this['_suggestions']=_0x52a14f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x416f7f=Array['from'](this['_suggestions']['values']())['some'](_0x5af775=>_0x5af775['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x416f7f;}['execute'](){const _0x29cbc8=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x37ae91 of _0x29cbc8){const _0x192466=_0x37ae91['getRanges']();if(!this['editor']['model']['canEditAt'](_0x192466))return;}Yt(this['editor']['model'],this['_command'],_0x29cbc8);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x26956d,_0x15f2fa,_0x535d62){super(_0x26956d),this['_command']=_0x15f2fa,this['_suggestions']=_0x535d62,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48dbdf=this['editor']['model']['document']['selection'],_0x498e15=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c52d0,_0x31275b){const _0x44642e=Array['from'](_0x4c52d0['getRanges']()),_0x49157c=new Set();for(const _0x375d85 of _0x31275b)if(_0x375d85['isInContent']){for(const _0x717b31 of _0x44642e)for(const _0x16503a of _0x375d85['getRanges']())(_0x717b31['isIntersecting'](_0x16503a)||_0x4c52d0['isCollapsed']&&!_0x375d85['isMultiRange']&&_0x375d85['next']&&_0x16503a['end']['isTouching'](_0x717b31['start']))&&_0x49157c['add'](_0x375d85);}return _0x49157c;}(_0x48dbdf,_0x498e15),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xa41845=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x22f67e of _0xa41845){const _0x1b029f=_0x22f67e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1b029f))return;}Yt(this['editor']['model'],this['_command'],_0xa41845);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x3c6444(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x40dbbc,_0x1243a3){super(),this['id']=_0x1243a3['id'],this['type']=_0x1243a3['type'],this['subType']=_0x1243a3['subType']||null,this['author']=_0x1243a3['author'],this['creator']=_0x1243a3['creator']||_0x1243a3['author'],this['isExternal']=Boolean(_0x1243a3['attributes']&&_0x1243a3['attributes']['@external']),this['data']=null,this['_model']=_0x40dbbc,this['_onAccept']=_0x1243a3['onAccept'],this['_onDiscard']=_0x1243a3['onDiscard'],this['_onAttributesChange']=_0x1243a3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1243a3['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 _0x50df9b=this;for(;_0x50df9b['previous'];)_0x50df9b=_0x50df9b['previous'];return _0x50df9b;}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'](_0x1de908){this['_markerNames']['add'](_0x1de908);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3fa3f9=>this['_model']['markers']['get'](_0x3fa3f9))['filter'](_0xf399a9=>_0xf399a9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3547ab=>{for(const _0x2dd8e8 of this['getMarkers']())_0x3547ab['removeMarker'](_0x2dd8e8);}),this['_markerNames']['clear']();}['removeMarker'](_0x518eb1){this['_model']['change'](_0x4f1761=>{_0x4f1761['removeMarker'](_0x518eb1);}),this['_markerNames']['delete'](_0x518eb1);}['addRange'](_0x2d0a1d){const _0x96752e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x96752e),this['_model']['change'](_0x4d1367=>{_0x4d1367['addMarker'](_0x96752e,{'range':_0x2d0a1d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1360e2){for(const _0x40e1a9 of this['getRanges']())if(_0x40e1a9['isIntersecting'](_0x1360e2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3505e6=>_0x3505e6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xd89cfb,_0x99077a)=>[..._0xd89cfb,..._0x99077a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x16f11a=this['getRanges']();if(0x1!=_0x16f11a['length'])return null;const _0x8a939c=_0x16f11a[0x0],_0x45a24e=_0x8a939c['start']['nodeAfter'],_0x348e71=_0x8a939c['end']['nodeBefore'];return _0x45a24e instanceof _0x382a32?_0x45a24e!=_0x348e71?null:_0x45a24e: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 _0x5c7a52=[];let _0x5358af=this['head'];for(;_0x5358af;)_0x5c7a52['push'](_0x5358af),_0x5358af=_0x5358af['next'];return _0x5c7a52;}['setAttribute'](_0x3033dc,_0x1ad446){const _0x4b72e1=_0x1aee9a(this['attributes']);_0x3e5d67(_0x4b72e1,_0x3033dc,_0x1ad446),_0x27c121(_0x4b72e1,this['attributes'])||(this['attributes']=_0x4b72e1,this['_onAttributesChange'](_0x4b72e1));}['removeAttribute'](_0x15f9ba){const _0x1fa159=_0x1aee9a(this['attributes']);_0x1ab7e1(_0x1fa159,_0x15f9ba),_0x27c121(_0x1fa159,this['attributes'])||(this['attributes']=_0x1fa159,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 _0x39ba3e()['substr'](0x1,0x5);}}function o(_0x100f5e,_0x469491,_0x51ace0){const _0xeea534=_0x100f5e['t'],t=_0x100f5e['t'];switch(_0x469491){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',_0x51ace0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x51ace0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x51ace0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x51ace0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x51ace0);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',_0x51ace0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x51ace0);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',_0x51ace0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x51ace0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x51ace0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x51ace0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x51ace0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x51ace0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x51ace0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x51ace0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x51ace0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x51ace0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x51ace0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x51ace0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x51ace0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x51ace0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x51ace0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x51ace0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x51ace0);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'},_0x51ace0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x51ace0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x51ace0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x51ace0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x51ace0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x51ace0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x51ace0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x51ace0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x51ace0);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'},_0x51ace0);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x51ace0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x51ace0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x51ace0);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'},_0x51ace0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x51ace0);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 _0xeea534({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x51ace0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xeea534({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x51ace0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x51ace0);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'},_0x51ace0);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'},_0x51ace0);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'},_0x51ace0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x469491;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x45c8bd,_0x403077){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x45c8bd,this['_locale']=_0x403077;}['getDescriptions'](_0x53b19e){const _0x2c8a89=[],_0x2d4f7f=new Set(),_0x17485b=new Set();for(let _0x188b00=0x0;_0x188b00<_0x53b19e['length'];_0x188b00++){const _0xd7d61c=_0x53b19e[_0x188b00];if(!_0xd7d61c['isInContent'])continue;const _0x31af8b=this['_handleCustomCallbackDescription'](_0xd7d61c);if(_0x31af8b){if(null!=_0xd7d61c['subType']){if(_0x2d4f7f['has'](_0xd7d61c['subType']))continue;_0x2d4f7f['add'](_0xd7d61c['subType']);}_0x2c8a89['push'](_0x31af8b);}else{if('attribute'!=_0xd7d61c['type'])'insertion'!=_0xd7d61c['type']&&'deletion'!=_0xd7d61c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2c8a89,_0xd7d61c,_0x53b19e[_0x188b00+0x1]);else{const _0x1243f5=_0xd7d61c['data']['key'];if(_0x17485b['has'](_0x1243f5))continue;_0x17485b['add'](_0xd7d61c['data']['key']),_0x1243f5==m?this['_handleRenameSuggestionDescription'](_0x2c8a89,_0xd7d61c):this['_handleAttributeSuggestionDescription'](_0x2c8a89,_0xd7d61c);}}}return this['_resolveDescriptionItems'](_0x2c8a89);}['registerDescriptionCallback'](_0x20c191){this['_customCallbacks']['push'](_0x20c191);}['registerElementLabel'](_0x7dcf3c,_0x748173,_0x88d03b=_0x144da7['normal']){'function'==typeof _0x7dcf3c?_0x14a0d9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7dcf3c,'label':_0x748173,'priority':_0x88d03b}):this['_itemLabels']['set'](_0x7dcf3c,_0x748173);}['registerAttributeLabel'](_0xc1fcb1,_0x11329b){this['_attributeLabels']['set'](_0xc1fcb1,_0x11329b);}['getItemLabel'](_0x470c9d,_0x53fabf=0x1){let _0x282f17;for(const _0x5e78a4 of this['_itemLabelsCallbacks'])if(_0x5e78a4['matchingCallback'](_0x470c9d)){_0x282f17=_0x5e78a4['label'];break;}return _0x282f17||(_0x282f17=this['_itemLabels']['get'](_0x470c9d['name'])),_0x282f17?_0x282f17(_0x53fabf):0x1!==_0x53fabf?_0x53fabf+'\x20'+_0x470c9d['name']+'s':''+_0x470c9d['name'];}['_addDescriptionItems'](_0x5749d5,_0x16b7ed){const _0x16312b=_0x16b7ed['getFirstRange']()['getWalker'](),_0x35795d='insertion'==_0x16b7ed['type']?'add':'remove';for(const _0x5b788e of _0x16312b){const _0xd74f22=_0x5b788e['item'],_0x15348e=_0x5749d5[_0x5749d5['length']-0x1];if(_0xd74f22['is']('$textProxy'))_0x15348e&&_0x15348e['type']['indexOf']('Container')>-0x1&&_0x5749d5['pop'](),_0x15348e&&'text'==_0x15348e['type']?_0x15348e[_0x35795d]+=_0xd74f22['data']:_0x5749d5['push']({'type':'text','add':'add'==_0x35795d?_0xd74f22['data']:'','remove':'remove'==_0x35795d?_0xd74f22['data']:''});else{if(this['_schema']['isObject'](_0xd74f22)){const _0x56169e=_0xd74f22;if(_0x15348e&&_0x15348e['type']['indexOf']('Container')>-0x1&&_0x5749d5['pop'](),'elementEnd'==_0x5b788e['type'])continue;_0x15348e&&_0x15348e['type']==_0x35795d+'Object'&&_0x15348e['element']['name']==_0x56169e['name']?_0x15348e['quantity']++:_0x5749d5['push']({'type':_0x35795d+'Object','element':_0x56169e,'quantity':0x1}),_0x16312b['skip'](_0x2a7f4d=>!('elementEnd'==_0x2a7f4d['type']&&_0x2a7f4d['item']==_0xd74f22));}else{if(this['_schema']['checkChild'](_0xd74f22,'$text')||_0xd74f22['is']('element','softBreak')){const _0x42c00c=_0xd74f22;if('add'==_0x35795d&&'elementStart'==_0x5b788e['type']||'remove'==_0x35795d&&'elementEnd'==_0x5b788e['type'])continue;if(_0x15348e&&-0x1==_0x15348e['type']['indexOf']('Container')){'text'==_0x15348e['type']&&(_0x15348e[_0x35795d]+='\x0a');continue;}let _0x350f1f;if(_0x350f1f='add'==_0x35795d?_0x42c00c['nextSibling']&&!this['_schema']['isObject'](_0x42c00c['nextSibling'])?_0x42c00c['nextSibling']:null:_0x42c00c['previousSibling']&&!this['_schema']['isObject'](_0x42c00c['previousSibling'])?_0x42c00c['previousSibling']:null,_0x42c00c['isEmpty']||_0x350f1f&&_0x350f1f['isEmpty']){const _0x45eff4=_0x350f1f&&_0x350f1f['isEmpty']?_0x350f1f:_0x42c00c;_0x15348e&&_0x15348e['type']==_0x35795d+'EmptyContainer'&&_0x15348e['element']['name']==_0x45eff4['name']?_0x15348e['quantity']++:_0x5749d5['push']({'type':_0x35795d+'EmptyContainer','element':_0x45eff4,'quantity':0x1});}else _0x5749d5['push']({'type':_0x35795d+'Container','element':_0x42c00c});}}}}}['_resolveDescriptionItems'](_0x4f4fed){const _0x4b3fad=this['_locale'],_0x4c2ac7=[],_0x339fe8=[],_0x116af7=[];for(const _0x6ef8c of _0x4f4fed)switch(_0x6ef8c['type']){case'text':if(_0x6ef8c['add']=_0x6ef8c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x6ef8c['remove']=_0x6ef8c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x6ef8c['add']&&''!=_0x6ef8c['remove']){_0x4c2ac7['push']({'type':'replace','content':o(_0x4b3fad,'REPLACE_TEXT',['\x22'+_0x6ef8c['remove']+'\x22','\x22'+_0x6ef8c['add']+'\x22'])});continue;}if(null!=_0x6ef8c['add']['match'](/^ +$/)){_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Insert:*\x20%0',o(_0x4b3fad,'ELEMENT_SPACE',_0x6ef8c['add']['length']))});continue;}if(null!=_0x6ef8c['remove']['match'](/^ +$/)){_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Remove:*\x20%0',o(_0x4b3fad,'ELEMENT_SPACE',_0x6ef8c['remove']['length']))});continue;}if(''!=_0x6ef8c['add']){_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Insert:*\x20%0','\x22'+_0x6ef8c['add']+'\x22')});continue;}_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Remove:*\x20%0','\x22'+_0x6ef8c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Insert:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Remove:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'addContainer':_0x4c2ac7['push']({'type':'insertion','content':o(_0x4b3fad,'*Split:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'removeContainer':_0x4c2ac7['push']({'type':'deletion','content':o(_0x4b3fad,'*Merge:*\x20%0',this['getItemLabel'](_0x6ef8c['element'],_0x6ef8c['quantity']))});continue;case'addFormat':_0x339fe8['push'](_0x6ef8c['key']);continue;case'removeFormat':_0x116af7['push'](_0x6ef8c['key']);continue;default:_0x4c2ac7['push'](_0x6ef8c);}if(_0x339fe8['length']){const _0x1beb62=_0x339fe8['map'](_0x302754=>this['_attributeLabels']['has'](_0x302754)?this['_attributeLabels']['get'](_0x302754):_0x302754)['join'](',\x20');_0x4c2ac7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1beb62)});}if(_0x116af7['length']){const _0x41c20f=_0x116af7['map'](_0x188f89=>this['_attributeLabels']['has'](_0x188f89)?this['_attributeLabels']['get'](_0x188f89):_0x188f89)['join'](',\x20');_0x4c2ac7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x41c20f)});}return _0x4c2ac7;}['_handleCustomCallbackDescription'](_0x59c25c){for(const _0x6f54ba of this['_customCallbacks']){const _0x2ca432=_0x6f54ba(_0x59c25c);if(_0x2ca432&&'type'in _0x2ca432)return _0x2ca432;}}['_handleAttributeSuggestionDescription'](_0x142cea,_0x1af96e){const _0x162143=_0x1af96e['data'],_0x2d8340=void 0x0===_0x162143['newValue']?'removeFormat':'addFormat';_0x142cea['push']({'type':_0x2d8340,'key':_0x162143['key']});}['_handleRenameSuggestionDescription'](_0x376792,_0x260456){_0x376792['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x260456['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5716fa,_0x42e014,_0x472093){if(this['_addDescriptionItems'](_0x5716fa,_0x42e014),_0x472093&&_0x472093['getFirstRange']()&&!_0x42e014['getFirstRange']()['end']['isEqual'](_0x472093['getFirstRange']()['start'])){const _0x40057d=_0x5716fa[_0x5716fa['length']-0x1],_0x54fad1='insertion'==_0x42e014['type']?'add':'remove';_0x40057d&&'text'==_0x40057d['type']&&(_0x40057d[_0x54fad1]+='\x0a');}}}class U extends _0x5d6d85{['afterInit'](){const _0xc6371=this['editor'],_0x5992cc=_0xc6371['plugins']['get']('TrackChangesEditing');_0xc6371['commands']['get']('showAIAssistant')&&_0x5992cc['enableCommand']('showAIAssistant');}}class V extends _0x5d6d85{['afterInit'](){const _0x745f19=this['editor'],_0x5a1b7a=_0x745f19['locale'];if(!_0x745f19['plugins']['has']('AlignmentEditing'))return;const _0x5964b6=_0x745f19['plugins']['get']('TrackChangesEditing');_0x5964b6['enableDefaultAttributesIntegration']('alignment'),_0x5964b6['registerBlockAttribute']('alignment'),_0x5964b6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a1b7a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2485ab=this['editor'],_0x35036c=_0x2485ab['locale'];_0x2485ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e29a9=>{if('formatBlock'!=_0x3e29a9['type'])return;const {data:_0x51ce24}=_0x3e29a9;if(_0x51ce24&&'alignment'==_0x51ce24['commandName']){const _0x416b99=_0x51ce24['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x35036c,'*Format:*\x20%0',function(_0x43e4fd){switch(_0x43e4fd){case'left':return o(_0x35036c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x35036c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x35036c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x35036c,'FORMAT_JUSTIFY_TEXT');}}(_0x416b99))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5d6d85{['afterInit'](){const _0x3a9e9e=this['editor'],_0x17b639=_0x3a9e9e['plugins']['get']('TrackChangesEditing'),_0x106942=_0x3a9e9e['locale'];for(const _0x596f7e of ti){if(!_0x3a9e9e['plugins']['has'](_0x596f7e))continue;const _0x35f6bd=_0x596f7e['slice'](0x0,-0x7)['toLowerCase'](),_0x1b145b='FORMAT_'+_0x35f6bd['toUpperCase']();_0x17b639['enableDefaultAttributesIntegration'](_0x35f6bd),_0x17b639['registerInlineAttribute'](_0x35f6bd),_0x17b639['descriptionFactory']['registerAttributeLabel'](_0x35f6bd,o(_0x106942,_0x1b145b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf6d366=this['editor'],_0x1ae170=_0xf6d366['locale'],_0x48404e=_0xf6d366['plugins']['get']('TrackChangesEditing');function _0x29de73(_0x2f4a2f,_0x10efc2){_0x48404e['descriptionFactory']['registerDescriptionCallback'](_0x37f65e=>{if('formatInline'!=_0x37f65e['type'])return;const {data:_0x1861f1}=_0x37f65e;return _0x1861f1&&_0x1861f1['commandName']===_0x2f4a2f?_0x1861f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ae170,'*Format:*\x20%0',_0x10efc2)}:{'type':'format','content':o(_0x1ae170,'*Remove\x20format:*\x20%0',_0x10efc2)}:void 0x0;});}_0x29de73('bold',o(_0x1ae170,'FORMAT_BOLD')),_0x29de73('italic',o(_0x1ae170,'FORMAT_ITALIC')),_0x29de73('underline',o(_0x1ae170,'FORMAT_UNDERLINE')),_0x29de73('code',o(_0x1ae170,'FORMAT_CODE')),_0x29de73('strikethrough',o(_0x1ae170,'FORMAT_STRIKETHROUGH')),_0x29de73('subscript',o(_0x1ae170,'FORMAT_SUBSCRIPT')),_0x29de73('superscript',o(_0x1ae170,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5d6d85{['afterInit'](){const _0x5c7fb5=this['editor'],_0xd1aee=_0x5c7fb5['locale'];if(!_0x5c7fb5['plugins']['has']('BlockQuoteEditing'))return;const _0x53a472=_0x5c7fb5['plugins']['get']('TrackChangesEditing'),_0x5f2787=this['editor']['commands']['get']('blockQuote');_0x53a472['enableCommand']('blockQuote',(_0x2bc840,_0x117014={})=>{const _0x2446ab=this['editor']['model']['document']['selection'],_0x5d94e7=_0x117014&&void 0x0!==_0x117014['forceValue']?_0x117014['forceValue']:!_0x5f2787['value'];let _0xa98c5f=[];if(_0x5d94e7){const _0xd2d08e=Array['from'](_0x2446ab['getSelectedBlocks']())['filter'](_0x3fd1a5=>oo(_0x3fd1a5)||function(_0x2ab99f,_0x49040e){const _0x10e68e=_0x49040e['checkChild'](_0x2ab99f['parent'],'blockQuote'),_0x5a0455=_0x49040e['checkChild'](['$root','blockQuote'],_0x2ab99f);return _0x10e68e&&_0x5a0455;}(_0x3fd1a5,this['editor']['model']['schema']));_0xa98c5f=to(_0xd2d08e,_0x5c7fb5['model']);}else{const _0xeae76e=Array['from'](_0x2446ab['getSelectedBlocks']())['filter'](_0x4a7db2=>oo(_0x4a7db2));_0xa98c5f=to(_0xeae76e,_0x5c7fb5['model']);}_0x5c7fb5['model']['change'](()=>{for(const _0x148e92 of _0xa98c5f)_0x53a472['markBlockFormat'](_0x148e92,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5d94e7}]});});}),_0x53a472['descriptionFactory']['registerDescriptionCallback'](_0x126bc3=>{const {data:_0x39a6f6}=_0x126bc3;if(_0x39a6f6&&'blockQuote'==_0x39a6f6['commandName']){const _0x53f605=o(_0xd1aee,'ELEMENT_BLOCK_QUOTE');return _0x39a6f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd1aee,'*Set\x20format:*\x20%0',_0x53f605)}:{'type':'format','content':o(_0xd1aee,'*Remove\x20format:*\x20%0',_0x53f605)};}});}}function oo(_0x1257bf){return'blockQuote'==_0x1257bf['parent']['name'];}class L extends _0x5d6d85{['afterInit'](){const _0x91cef9=this['editor'],_0x49e138=_0x91cef9['locale'],_0x3a243d=_0x91cef9['plugins']['get']('TrackChangesEditing');_0x91cef9['plugins']['has']('BookmarkEditing')&&(_0x3a243d['enableCommand']('insertBookmark'),_0x3a243d['enableDefaultAttributesIntegration']('updateBookmark'),_0x3a243d['registerBlockAttribute']('bookmarkId'),_0x3a243d['descriptionFactory']['registerDescriptionCallback'](_0x1b3bb3=>{if('insertion'!=_0x1b3bb3['type']&&'deletion'!=_0x1b3bb3['type']&&'attribute'!=_0x1b3bb3['type'])return;const _0x55689d=_0x1b3bb3['getContainedElement']();if(null==_0x55689d)return;if(!_0x55689d['is']('element','bookmark'))return;const _0xf2c64e=_0x55689d['getAttribute']('bookmarkId');if('insertion'==_0x1b3bb3['type'])return{'type':'insertion','content':o(_0x49e138,'*Insert:*\x20%0','\x22'+_0xf2c64e+'\x22\x20'+o(_0x49e138,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1b3bb3['type'])return{'type':'deletion','content':o(_0x49e138,'*Remove:*\x20%0','\x22'+_0xf2c64e+'\x22\x20'+o(_0x49e138,'ELEMENT_BOOKMARK'))};const {data:_0x529be7}=_0x1b3bb3;if(!_0x529be7||'bookmarkId'!=_0x529be7['key'])return;return{'type':'format','content':o(_0x49e138,'*Set\x20bookmark:*\x20%0','\x22'+_0x529be7['newValue']+'\x22')};}));}}class J extends _0x5d6d85{['afterInit'](){const _0x2346b4=this['editor'];_0x2346b4['plugins']['has']('CaseChange')&&(_0x2346b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2346b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2346b4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5d6d85{['afterInit'](){const _0x1bdc06=this['editor'];_0x1bdc06['commands']['get']('ckbox')&&_0x1bdc06['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5d6d85{['afterInit'](){const _0x44e924=this['editor'];if(!_0x44e924['plugins']['has']('CodeBlock'))return;const _0x446ae8=_0x44e924['plugins']['get']('TrackChangesEditing'),_0x4eb91e=_0x44e924['locale'],_0x3f100d=_0x44e924['config']['get']('codeBlock')['languages'],_0x5b30bf=_0x44e924['commands']['get']('codeBlock');_0x446ae8['enableCommand']('indentCodeBlock'),_0x446ae8['enableCommand']('outdentCodeBlock'),_0x446ae8['enableCommand']('codeBlock',(_0x582b47,_0x380b98={})=>{const _0x3b55f1=_0x44e924['model'],_0x7976c2=_0x44e924['model']['document']['selection'],_0x493ffa=_0x380b98&&void 0x0!==_0x380b98['forceValue']?_0x380b98['forceValue']:!_0x5b30bf['value'];let _0x1d80ab;_0x380b98['language']||(_0x380b98['language']=_0x3f100d[0x0]['language']),_0x1d80ab=_0x493ffa?Array['from'](_0x7976c2['getSelectedBlocks']())['filter'](_0x12eef5=>eo(_0x12eef5)||function(_0x4c9047,_0xa2fda){if(_0x4c9047['is']('rootElement')||_0xa2fda['isLimit'](_0x4c9047))return!0x1;return _0xa2fda['checkChild'](_0x4c9047['parent'],'codeBlock');}(_0x12eef5,_0x3b55f1['schema'])):Array['from'](_0x7976c2['getSelectedBlocks']())['filter'](_0xc8343e=>eo(_0xc8343e));const _0x3573a4=to(_0x1d80ab,_0x3b55f1);_0x3b55f1['change'](()=>{for(const _0x366fc4 of _0x3573a4)_0x446ae8['markBlockFormat'](_0x366fc4,{'commandName':'codeBlock','commandParams':[{..._0x380b98,'forceValue':_0x493ffa}],'formatGroupId':'blockName'});});}),(_0x446ae8['descriptionFactory']['registerElementLabel']('codeBlock',_0x412eb3=>o(_0x4eb91e,'ELEMENT_CODE_BLOCK',_0x412eb3)),_0x446ae8['descriptionFactory']['registerDescriptionCallback'](_0x2e80c5=>{if('formatBlock'!=_0x2e80c5['type'])return;const _0x50e3d9=_0x4eb91e['t'],{data:_0xe10874}=_0x2e80c5;if(!_0xe10874||'codeBlock'!=_0xe10874['commandName'])return;const _0x3edd3e=_0xe10874['commandParams'][0x0]['language'],_0x29a8ca=_0x50e3d9(_0x3f100d['find'](_0x5a4d3e=>_0x5a4d3e['language']===_0x3edd3e)['label'])['toLowerCase']();return _0xe10874['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4eb91e,'*Set\x20format:*\x20%0',o(_0x4eb91e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x29a8ca+')')}:{'type':'format','content':o(_0x4eb91e,'*Remove\x20format:*\x20%0',o(_0x4eb91e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x241ac7){return'codeBlock'==_0x241ac7['name'];}class z extends _0x5d6d85{['afterInit'](){const _0x32d123=this['editor'];if(!_0x32d123['plugins']['has']('CommentsEditing'))return;_0x32d123['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2dd937,_0x5bc18f,_0x3a45ad){const _0x1222d1=[];for(const _0x4537f0 of _0x5bc18f['getItems']())_0x4537f0['hasAttribute'](_0x2dd937)&&_0x1222d1['push'](_0x3a45ad['createRangeOn'](_0x4537f0));return _0x1222d1;}function De(_0x177c8a,_0x468a30,{showActiveMarker:_0x557959=!0x0}={}){const _0xd6b6ea=_0x177c8a['plugins']['get']('TrackChangesEditing');return(_0x531983,_0xa08dc3,_0x533130)=>{if(!_0x533130['consumable']['test'](_0xa08dc3['markerRange'],_0x531983['name']))return;const _0x4ecede=_0xa08dc3['markerRange']['getWalker'](),_0x281b18=_0xa08dc3['markerRange']['start'],_0x540494=_0x177c8a['model']['schema'];let _0x5b2455=null,_0x52b3c5=null,_0x2b55fc=!0x1,_0x3a9845=!0x1;for(const _0x29286e of _0x4ecede){const _0x285846=_0x29286e['item'];_0x2b55fc=_0x2b55fc||_0x540494['isContent'](_0x285846);const _0x12dc63=_0x533130['mapper']['toViewElement'](_0x285846);if(_0x12dc63&&_0x12dc63['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x29286e['type']&&(_0x540494['isBlock'](_0x285846)&&!_0x540494['isLimit'](_0x285846)&&(_0x285846['nextSibling']||_0x281b18['isAtEnd']?_0x5b2455&&_0x5b2455['parent']==_0x285846||(_0x5b2455=_0x285846,_0xdea3f8(_0x29286e['previousPosition']),_0x3a9845=!0x0):_0x52b3c5=_0x52b3c5||_0x29286e['previousPosition']));}function _0xdea3f8(_0x34ef9b){const {authorId:_0x461bb6}=_0xd6b6ea['_splitMarkerName'](_0xa08dc3['markerName']),_0xde3521=_0x533130['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x468a30,'data-author-id':_0x461bb6}),_0x5c9062=_0x533130['mapper']['toViewPosition'](_0x34ef9b);_0x557959&&_0xd6b6ea['activeMarkers']['includes'](_0xa08dc3['markerName'])&&_0x533130['writer']['addClass']('ck-suggestion-marker--active',_0xde3521),_0x533130['writer']['insert'](_0x5c9062,_0xde3521),_0x533130['mapper']['bindElementToMarker'](_0xde3521,_0xa08dc3['markerName']);}_0x2b55fc||_0x3a9845||!_0x52b3c5||_0xdea3f8(_0x52b3c5);};}class K extends _0x5d6d85{static get['requires'](){return[_0x4f5774];}['init'](){const _0x2e4c9c=this['editor'],_0x36b152=_0x2e4c9c['plugins']['get']('TrackChangesEditing');_0x36b152['enableCommand']('delete');const _0x42e30a=_0x2e4c9c['commands']['get']('deleteForward');_0x36b152['enableCommand']('deleteForward',(_0x5addc2,_0x572a07={})=>{const _0x1249f9=_0x2e4c9c['model']['createSelection'](_0x2e4c9c['model']['document']['selection']);_0x1249f9['isCollapsed']&&_0x2e4c9c['model']['modifySelection'](_0x1249f9,{'direction':'forward','unit':_0x572a07['unit']});const _0x2e64d7=_0x1249f9['getFirstRange'](),_0x3da4a1=_0x1e09a5['fromRange'](_0x2e64d7);let _0x133986;_0x5addc2(_0x572a07),_0x133986='$graveyard'==_0x3da4a1['root']['rootName']?_0x2e4c9c['model']['createRange'](_0x2e64d7['start']):_0x2e4c9c['model']['createRange'](_0x3da4a1['start'],_0x3da4a1['end']),_0x3da4a1['detach'](),_0x2e4c9c['model']['enqueueChange'](_0x42e30a['buffer']['batch'],_0x2ba518=>{_0x42e30a['buffer']['lock'](),_0x2ba518['setSelection'](_0x2ba518['createRange'](_0x133986['end'])),_0x42e30a['buffer']['unlock']();});}),_0x2e4c9c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2e4c9c,'merge'),{'priority':'high'}),_0x2e4c9c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e65fb,_0x48623b,_0x330adf)=>{_0x330adf['options']['showSuggestionHighlights']&&De(_0x2e4c9c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e65fb,_0x48623b,_0x330adf);},{'priority':'high'}),_0x2e4c9c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xfaf5b1,_0x4215c9,_0x5ab643)=>{const _0x2910ab=_0x5ab643['mapper']['markerNameToElements'](_0x4215c9['markerName']);if(_0x2910ab){for(const _0x12541e of _0x2910ab)_0x12541e['is']('uiElement')&&(_0x5ab643['mapper']['unbindElementFromMarkerName'](_0x12541e,_0x4215c9['markerName']),_0x5ab643['writer']['remove'](_0x12541e));}},{'priority':'high'});}}class W extends _0x5d6d85{['afterInit'](){const _0x408879=this['editor'];if(!_0x408879['plugins']['has']('ListEditing'))return;const _0x3582f3=_0x408879['locale'],_0x17fc91=_0x408879['plugins']['get']('TrackChangesEditing'),_0xe1f588=_0x408879['plugins']['has']('TodoListEditing'),_0x107972=!!_0x408879['config']['get']('list.multiBlock');function _0x9dd77e(_0x4b342c){return{'type':'format','content':''+o(_0x3582f3,'*Set\x20format:*\x20%0',_0x4b342c)};}function _0x5aa4de(_0x2566b0){return{'type':'format','content':''+o(_0x3582f3,'*Remove\x20format:*\x20%0',_0x2566b0)};}_0x17fc91['enableDefaultAttributesIntegration']('numberedList'),_0x17fc91['enableDefaultAttributesIntegration']('bulletedList'),_0x17fc91['enableDefaultAttributesIntegration']('customNumberedList'),_0x17fc91['enableDefaultAttributesIntegration']('customBulletedList'),_0x17fc91['enableDefaultAttributesIntegration']('indentList'),_0x17fc91['enableDefaultAttributesIntegration']('outdentList'),_0x17fc91['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x17fc91['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17fc91['registerBlockAttribute']('listItemId'),_0x17fc91['registerBlockAttribute']('listType'),_0x17fc91['registerBlockAttribute']('listIndent'),_0x107972&&(_0x17fc91['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x17fc91['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe1f588&&(_0x17fc91['enableDefaultAttributesIntegration']('todoList'),_0x17fc91['enableDefaultAttributesIntegration']('checkTodoList'),_0x17fc91['registerBlockAttribute']('todoListChecked'),_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x35892d=>{const {data:_0x18fe5f}=_0x35892d;if(_0x18fe5f&&'todoListChecked'==_0x18fe5f['key'])return{'type':'format','content':_0x18fe5f['newValue']?o(_0x3582f3,'*Check\x20item*'):o(_0x3582f3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x275c76=>{if(_0x275c76['batch']['isUndo'])return!0x1;let _0x1f4742=!0x1;const _0x56473e=_0x17fc91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10680b=>'todoListChecked'===_0x17fc91['_getAttributeKey'](_0x10680b));for(const _0xbc9a6 of _0x56473e){'todo'!=_0xbc9a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x17fc91['_findSuggestions'](_0xbc9a6['getFirstRange'](),'attribute')['find'](_0x3fd8b7=>'listType'===_0x17fc91['_getAttributeKey'](_0x3fd8b7['suggestion']))||(_0x275c76['removeMarker'](_0xbc9a6['getFirstMarker']()),_0x1f4742=!0x0));}return _0x1f4742;})),_0x17fc91['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3582f3,'FORMAT_INDENT'));const _0x123a7f={'type':'format','content':''};_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x1650bb=>{const {data:_0x1db03c}=_0x1650bb;if(!_0x1db03c||'listType'!=_0x1db03c['key'])return;let _0x37f47b=_0x1650bb['head'];for(;_0x37f47b;){if(_0x37f47b['data']&&(('listStyle'==_0x37f47b['data']['key']||'listMarkerStyle'==_0x37f47b['data']['key'])&&(_0x37f47b['data']['newValue']&&'default'!=_0x37f47b['data']['newValue']||'default'!=_0x37f47b['data']['oldValue']&&!_0x1db03c['newValue'])||!_0x107972&&_0x37f47b['data']['key']==m))return _0x123a7f;_0x37f47b=_0x37f47b['next'];}if(null==_0x1db03c['newValue'])switch(_0x1db03c['oldValue']){case'bulleted':return _0x5aa4de(o(_0x3582f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5aa4de(o(_0x3582f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5aa4de(o(_0x3582f3,'ELEMENT_TODO_LIST'));}switch(_0x1db03c['newValue']){case'bulleted':return _0x9dd77e(o(_0x3582f3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9dd77e(o(_0x3582f3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9dd77e(o(_0x3582f3,'ELEMENT_TODO_LIST'));}}),_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x56ddc0=>{const {data:_0x111cad}=_0x56ddc0;if(_0x111cad&&'listIndent'==_0x111cad['key'])return null==_0x111cad['newValue']||null==_0x111cad['oldValue']&&0x0==_0x111cad['newValue']?_0x123a7f:void 0x0;}),_0x17fc91['descriptionFactory']['registerDescriptionCallback'](_0x3eab52=>{if('attribute'!=_0x3eab52['type'])return;const {data:_0x12a5ca}=_0x3eab52;if(!_0x12a5ca||'listItemId'!=_0x12a5ca['key'])return;const _0x260592=Te(_0x3eab52);return'newValue'==_0x260592?{'type':'format','content':o(_0x3582f3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x260592?{'type':'format','content':o(_0x3582f3,'*Split:*\x20list\x20item')}:_0x123a7f;}),_0x408879['model']['document']['registerPostFixer'](_0x368ca9=>this['listItemIdFixer'](_0x368ca9)),_0x408879['model']['document']['registerPostFixer'](_0x1e6c2a=>this['noTrackChangesFixer'](_0x1e6c2a)),_0x408879['model']['document']['on']('change:data',(_0x41ce19,_0x19ca4c)=>{if(_0x19ca4c['isUndo']||!_0x19ca4c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10f424){if(_0x10f424['batch']['isUndo']||!_0x10f424['batch']['isLocal'])return!0x1;let _0x3f3d42=!0x1;const _0x34bcaa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc51e=>_0x5dc51e['data']&&'listItemId'==_0x5dc51e['data']['key'])['filter'](_0x5a40d0=>_0x5a40d0['data']['newValue']&&_0x5a40d0['data']['oldValue']);for(const _0x2640b7 of _0x34bcaa)Te(_0x2640b7)||(_0x10f424['removeMarker'](_0x2640b7['getFirstMarker']()),_0x3f3d42=!0x0);return _0x3f3d42;}['noTrackChangesFixer'](_0x4a45fd){if(_0x4a45fd['batch']['isUndo']||!_0x4a45fd['batch']['isLocal'])return!0x1;const _0x2b0a75=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b0a75['trackChangesCommand']['value'])return!0x1;let _0x3e351e=!0x1;const _0x139482=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b469b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30d74f=>'attribute'==_0x30d74f['type'])['filter'](_0x6a246c=>_0x139482['includes'](_0x6a246c['attributeKey']));if(0x0==_0x2b469b['length'])return _0x3e351e;for(const _0x54b4b1 of _0x2b469b){const _0x14957f=_0x2b0a75['_findSuggestions'](_0x54b4b1['range'],'attribute')['filter'](_0x3b7d8e=>!_0x3b7d8e['meta']['isNextTo'])['map'](_0x22e3ea=>_0x22e3ea['suggestion'])['filter'](_0x1e8ce9=>{const _0x407e85=_0x2b0a75['_getAttributeKey'](_0x1e8ce9);return _0x139482['includes'](_0x407e85);});if(_0x14957f['length']){for(const _0x3c6f2c of _0x14957f)_0x4a45fd['removeMarker'](_0x3c6f2c['getFirstMarker']());_0x3e351e=!0x0;}}return _0x3e351e;}['assureChains'](){const _0x28d143=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48aace=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4bff82;const _0x54c320=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ae31d=>{if(_0x4ae31d['data']['oldRange']||!_0x4ae31d['data']['newRange'])return null;if(!_0x4ae31d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x28095f}=_0x28d143['_splitMarkerName'](_0x4ae31d['name']);if(!_0x28d143['hasSuggestion'](_0x28095f))return null;const _0x18b98f=_0x28d143['getSuggestion'](_0x28095f);return _0x48aace['includes'](_0x18b98f['data']['key']);})['map'](_0x4165e6=>{const {id:_0x2b4136}=_0x28d143['_splitMarkerName'](_0x4165e6['name']),_0x2a1005=_0x28d143['getSuggestion'](_0x2b4136);return _0x4bff82=_0x2a1005['attributes']['groupId'],_0x2a1005['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x54c320['size'])return;const _0x1f4bfe=_0x28d143['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x395e84=>'attribute'==_0x395e84['type']&&_0x395e84['data']&&_0x48aace['includes'](_0x395e84['data']['key'])&&_0x395e84['attributes']['groupId']!=_0x4bff82)['map'](_0x38a873=>({'listItem':_0x38a873['getFirstRange']()['start']['nodeAfter'],'groupId':_0x38a873['attributes']['groupId']})),_0x1db15c=new Set();for(const {groupId:_0xeb42ce,listItem:_0xbe403}of _0x1f4bfe)_0x54c320['has'](_0xbe403)&&_0x1db15c['add'](_0xeb42ce);for(const _0x3dec56 of _0x28d143['getSuggestions']())_0x1db15c['has'](_0x3dec56['attributes']['groupId'])&&_0x3dec56['setAttribute']('groupId',_0x4bff82);}['_supportLegacySuggestions'](){const _0x2dab8f=this['editor'],_0x5edeef=_0x2dab8f['locale'],_0xf6dc28=_0x2dab8f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf6dc28['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x433629,_0x1fabb2){const _0x5494b6=[];for(let _0x5d5aa8 of _0x433629)_0x5d5aa8['start']['nodeAfter']===_0x5d5aa8['end']['parent']&&(_0x5d5aa8=_0x2dab8f['model']['createRange'](_0x2dab8f['model']['createPositionAt'](_0x5d5aa8['start']['nodeAfter'],0x0))),_0x5494b6['push'](_0x5d5aa8);_0x2dab8f['model']['change'](_0x3f3169=>{const _0x3f6c80=_0x2dab8f['model']['document']['selection'],_0x43f5b6=Array['from'](_0x3f6c80['getRanges']())['map'](_0x1c5a17=>_0x1e09a5['fromRange'](_0x1c5a17));_0x3f3169['setSelection'](_0x5494b6),_0x2dab8f['commands']['get'](_0x1fabb2['commandName'])['refresh'](),_0x1fabb2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2dab8f['execute'](_0x1fabb2['commandName'],..._0x1fabb2['commandParams']),_0x3f3169['setSelection'](_0x43f5b6);for(const _0x1bfb71 of _0x43f5b6)_0x1bfb71['detach']();});}),_0xf6dc28['descriptionFactory']['registerElementLabel'](function(_0x5e2f04){const _0xdb7111=!_0x2dab8f['model']['schema']['isObject'](_0x5e2f04),_0x4bf0b4=_0x5e2f04['previousSibling'],_0x1cec24=_0x5e2f04['nextSibling'],_0x18f76e=_0x5e2f04['getAttribute']('listItemId'),_0x15484d=!_0x4bf0b4||_0x4bf0b4['getAttribute']('listItemId')!==_0x18f76e,_0x2b3cba=!_0x1cec24||_0x1cec24['getAttribute']('listItemId')!==_0x18f76e;return _0xdb7111&&Boolean(_0x18f76e)&&_0x15484d&&_0x2b3cba;},_0x5caeef=>o(_0x5edeef,'ELEMENT_LIST_ITEM',_0x5caeef));}['_registerLegacyDescription'](){const _0x40e31d=this['editor'],_0x1d0d96=_0x40e31d['locale'];function _0x44823d(_0x229604){const _0x34a45d=_0x40e31d['commands']['get']('bulletedList')['value'],_0x113605=_0x40e31d['commands']['get']('numberedList')['value'];return'numberedList'===_0x229604?_0x34a45d:_0x113605;}_0x40e31d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4260fa){if('formatBlock'!=_0x4260fa['type'])return;const {data:_0x5cc81e}=_0x4260fa;if(!_0x5cc81e)return;let _0x1c8cbd,_0x1108fd,_0x18a119,_0x450668;switch(_0x5cc81e['commandName']){case'bulletedList':_0x18a119=_0x5cc81e['commandParams'][0x0]['forceValue'],_0x450668=_0x44823d(_0x5cc81e['commandName']),_0x1c8cbd=_0x18a119?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x450668&&_0x40e31d['config']['get']('list.multiBlock')||(_0x1c8cbd='*Change\x20to:*\x20%0'),_0x1108fd={'type':'format','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18a119=_0x5cc81e['commandParams'][0x0]['forceValue'],_0x450668=_0x44823d(_0x5cc81e['commandName']),_0x1c8cbd=_0x18a119?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x450668&&_0x40e31d['config']['get']('list.multiBlock')||(_0x1c8cbd='*Change\x20to:*\x20%0'),_0x1108fd={'type':'format','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c8cbd='*Indent:*\x20%0',_0x1108fd={'type':'format','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c8cbd=function(_0x3b95b8){const _0x57be5b=_0x3b95b8['getFirstRange']();let _0x36cbc2=_0x57be5b['start']['nodeAfter'];for(;_0x36cbc2&&_0x57be5b['containsItem'](_0x36cbc2);){if(_0x36cbc2['getAttribute']('listIndent')>0x0)return!0x1;_0x36cbc2=_0x36cbc2['nextSibling'];}return!0x0;}(_0x4260fa)?o(_0x1d0d96,'*Format:*\x20remove\x20from\x20%0',o(_0x1d0d96,function(_0x5bf528){return'ELEMENT_'+_0x5bf528['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4260fa))):o(_0x1d0d96,'*Outdent:*\x20%0',o(_0x1d0d96,'ELEMENT_LIST_ITEM')),_0x1108fd={'type':'format','content':_0x1c8cbd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5cc81e['multipleBlocks']&&(_0x1c8cbd='*Merge:*\x20%0',_0x1108fd={'type':'deletion','content':o(_0x1d0d96,_0x1c8cbd,o(_0x1d0d96,'ELEMENT_LIST_ITEM'))});}return _0x1108fd;});}}function Te(_0x10008a){let _0x5a853a=_0x10008a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5a853a;){const _0x212a88=_0x5a853a['getAttribute']('listItemId');if(!_0x212a88)return!0x1;if(_0x212a88==_0x10008a['data']['newValue'])return'newValue';if(_0x212a88==_0x10008a['data']['oldValue'])return'oldValue';_0x5a853a=_0x5a853a['previousSibling'];}return!0x1;}class Se extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x37dfc6=this['editor']['config']['get']('list.properties'),_0x3e323f=this['editor']['plugins']['get']('TrackChangesEditing');_0x37dfc6['styles']&&(_0x3e323f['enableDefaultAttributesIntegration']('listStyle'),_0x3e323f['registerBlockAttribute']('listStyle')),_0x37dfc6['reversed']&&(_0x3e323f['enableDefaultAttributesIntegration']('listReversed'),_0x3e323f['registerBlockAttribute']('listReversed')),_0x37dfc6['startIndex']&&(_0x3e323f['enableDefaultAttributesIntegration']('listStart'),_0x3e323f['registerBlockAttribute']('listStart'));const _0xf5863a={'type':'format','content':''};_0x3e323f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3dcabb=this['editor']['locale'];_0x3e323f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3dcabb,'FORMAT_LIST_REVERSED')),_0x3e323f['descriptionFactory']['registerDescriptionCallback'](_0x1f47e3=>{const {data:_0x55b056}=_0x1f47e3;if(_0x55b056&&'listReversed'==_0x55b056['key'])return null==_0x55b056['newValue']||0x0==_0x55b056['newValue']&&null==_0x55b056['oldValue']?_0xf5863a:void 0x0;}),_0x3e323f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3dcabb,'FORMAT_LIST_START')),_0x3e323f['descriptionFactory']['registerDescriptionCallback'](_0x2ccee9=>{const {data:_0x1459a5}=_0x2ccee9;if(_0x1459a5&&'listStart'==_0x1459a5['key'])return null==_0x1459a5['newValue']||0x1==_0x1459a5['newValue']&&null==_0x1459a5['oldValue']?_0xf5863a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x7ce9a2=>{if(_0x7ce9a2['batch']['isUndo'])return!0x1;let _0xaa75a6=!0x1;const _0xf64ad2=_0x3e323f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55c585=>{const _0x1c7067=_0x3e323f['_getAttributeKey'](_0x55c585);return'listStart'==_0x1c7067||'listReversed'==_0x1c7067;});for(const _0x541948 of _0xf64ad2){const _0xe5ff83=_0x541948['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe5ff83||'customNumbered'==_0xe5ff83)continue;_0x3e323f['_findSuggestions'](_0x541948['getFirstRange'](),'attribute')['find'](_0x26d68a=>'listType'==_0x3e323f['_getAttributeKey'](_0x26d68a['suggestion']))||(_0x7ce9a2['removeMarker'](_0x541948['getFirstMarker']()),_0xaa75a6=!0x0);}return _0xaa75a6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xccc9a4){const _0x3378a9=this['editor']['locale'],{data:_0x5c70b5}=_0xccc9a4,_0x29401c={'type':'format','content':''};if(!_0x5c70b5||'listStyle'!=_0x5c70b5['key'])return;if(!_0x5c70b5['oldValue'])return'default'==_0x5c70b5['newValue']?_0x29401c:{'type':'format','content':''+o(_0x3378a9,'*Set\x20format:*\x20%0',o(_0x3378a9,this['_getTranslationKeyForListStyle'](_0x5c70b5['newValue'])))};if(!_0x5c70b5['newValue']){if('default'==_0x5c70b5['oldValue'])return _0x29401c;let _0x4661a8=_0xccc9a4['head'];for(;_0x4661a8;){if(_0x4661a8['data']&&'listType'==_0x4661a8['data']['key']&&_0x4661a8['data']['newValue'])return _0x29401c;_0x4661a8=_0x4661a8['next'];}return{'type':'format','content':''+o(_0x3378a9,'*Remove\x20format:*\x20%0',o(_0x3378a9,this['_getTranslationKeyForListStyle'](_0x5c70b5['oldValue'])))};}if('default'!=_0x5c70b5['newValue'])return{'type':'format','content':''+o(_0x3378a9,'*Set\x20format:*\x20%0',o(_0x3378a9,this['_getTranslationKeyForListStyle'](_0x5c70b5['newValue'])))};let _0x12b2fe=_0xccc9a4['head'];for(;_0x12b2fe;){if(_0x12b2fe['data']&&'listType'==_0x12b2fe['data']['key']&&_0x12b2fe['data']['newValue']&&_0x12b2fe['data']['oldValue'])return _0x29401c;_0x12b2fe=_0x12b2fe['next'];}return{'type':'format','content':o(_0x3378a9,'*Set\x20format:*\x20%0',o(_0x3378a9,'ELEMENT_'+_0xccc9a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x50aa08=this['editor'],_0x532dc3=_0x50aa08['locale'];_0x50aa08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa881ac=>{if('formatBlock'!=_0xa881ac['type'])return;const {data:_0x1011c9}=_0xa881ac;if(!_0x1011c9)return;let _0x453583,_0x18045e;switch(_0x1011c9['commandName']){case'listStyle':_0x453583='*Change\x20to:*\x20%0',_0x18045e={'type':'format','content':o(_0x532dc3,_0x453583,o(_0x532dc3,this['_getTranslationKeyForListStyle'](_0x1011c9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x453583=_0x1011c9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18045e={'type':'format','content':o(_0x532dc3,_0x453583)};break;case'listStart':_0x453583='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18045e={'type':'format','content':o(_0x532dc3,_0x453583,_0x1011c9['commandParams'][0x0]['startIndex'])};}return _0x18045e;});}['_getTranslationKeyForListStyle'](_0x1a7bcd){return'ELEMENT_'+function(_0x125689){if(_e['includes'](_0x125689))return'bulleted';if(Re['includes'](_0x125689))return'numbered';return null;}(_0x1a7bcd)['toUpperCase']()+'_LIST_'+_0x1a7bcd['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5d6d85{static get['requires'](){return[_0x5b6bef];}['init'](){const _0x35083d=this['editor'],_0x333fae=_0x35083d['plugins']['get']('TrackChangesEditing'),_0x367a08=_0x35083d['commands']['get']('enter');_0x333fae['enableCommand']('enter',()=>{_0x35083d['model']['change'](_0x5e471a=>{const _0x2825dc=_0x35083d['model']['document']['selection'],_0x2a3227=_0x2825dc['getFirstPosition'](),_0x3704da=_0x1e09a5['fromRange'](_0x2825dc['getFirstRange']());if(_0x367a08['enterBlock'](_0x5e471a)){const _0x2af8dd=_0x35083d['model']['createPositionAt'](_0x2a3227['parent']['nextSibling'],0x0),_0x969424=_0x5e471a['createRange'](_0x2a3227,_0x2af8dd);_0x333fae['markInsertion'](_0x969424);}else _0x5e471a['setSelection'](_0x5e471a['createRange'](_0x3704da['end']));_0x3704da['detach'](),_0x367a08['fire']('afterExecute',{'writer':_0x5e471a});});}),_0x35083d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x35083d,'split'),{'priority':'high'}),_0x35083d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2364d7,_0x370331,_0x158ef3)=>{const _0x3acc1b=_0x158ef3['mapper']['markerNameToElements'](_0x370331['markerName']);if(_0x3acc1b){for(const _0x2fbf8e of _0x3acc1b)_0x2fbf8e['hasClass']('ck-suggestion-marker-split')&&(_0x158ef3['mapper']['unbindElementFromMarkerName'](_0x2fbf8e,_0x370331['markerName']),_0x158ef3['writer']['remove'](_0x2fbf8e));}},{'priority':'high'}),_0x35083d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4455d2,_0x2f3e6b,_0x13d422)=>{_0x13d422['options']['showSuggestionHighlights']&&De(_0x35083d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4455d2,_0x2f3e6b,_0x13d422);},{'priority':'high'});}}class Y extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4aedbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4aedbe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4aedbe['enableCommand']('findNext'),_0x4aedbe['enableCommand']('findPrevious'),_0x4aedbe['enableCommand']('replace'),_0x4aedbe['enableCommand']('replaceAll');}['handleFindCommand'](_0x1fae21,_0x346216,_0x139497={}){const _0x3ab697=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1fae21(_0x28a2f6=>{let _0x4e0a33=('string'==typeof _0x346216?_0x3ab697['findByTextCallback'](_0x346216,_0x139497):_0x346216)(_0x28a2f6);Array['isArray'](_0x4e0a33)&&(_0x4e0a33={'results':_0x4e0a33,'searchText':'string'==typeof _0x346216?_0x346216:''});const _0x4f0409=_0x4e0a33['results']['filter'](_0x392f62=>!0x1===this['_isInDeletionRange'](_0x392f62,_0x28a2f6['item']));return{..._0x4e0a33,'results':_0x4f0409};},_0x139497);}['_isInDeletionRange'](_0x32ca81,_0x4f1fa6){const _0x25caaa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f1fa6,_0x32ca81['start']),this['editor']['model']['createPositionAt'](_0x4f1fa6,_0x32ca81['end']));for(const _0x1155b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25caaa['getIntersection'](_0x1155b3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5d6d85{['afterInit'](){const _0x13ee77=this['editor']['locale'],_0x411246=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e461c,commandName:_0x2e8720}of ro)this['editor']['plugins']['has'](_0x1e461c)&&(_0x411246['enableDefaultAttributesIntegration'](_0x2e8720),_0x411246['registerInlineAttribute'](_0x2e8720));_0x411246['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13ee77,'FORMAT_FONT_SIZE')),_0x411246['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13ee77,'FORMAT_FONT_FAMILY')),_0x411246['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13ee77,'FORMAT_FONT_COLOR')),_0x411246['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13ee77,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeaf635=this['editor'],_0xbb616=_0xeaf635['locale'];_0xeaf635['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xee8bb1=>{const _0x4a26ff=_0xbb616['t'];if('formatInline'!=_0xee8bb1['type'])return;const {data:_0xd7c3f2}=_0xee8bb1;if(null!=_0xd7c3f2){if('fontSize'==_0xd7c3f2['commandName']){const _0x210de7=_0xd7c3f2['commandParams'][0x0]['value'];if(_0x210de7){const _0xb4933f=_0x4a26ff(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x837f85=>_0x837f85['model']==_0x210de7)['title'])['toLowerCase']();return{'type':'format','content':o(_0xbb616,'*Set\x20font\x20size:*\x20%0',_0xb4933f)};}return{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd7c3f2['commandName']){const _0x17fe67=_0xd7c3f2['commandParams'][0x0]['value'];return _0x17fe67?{'type':'format','content':o(_0xbb616,'*Set\x20font\x20family:*\x20%0',_0x17fe67)}:{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd7c3f2['commandName']){const _0x582a2f=_0xd7c3f2['commandParams'][0x0]['value'];if(_0x582a2f){const _0x47d163=_0x4db594(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4ebf19=>_0x4ebf19['model']==_0x582a2f);let _0x2746ca=_0x582a2f,_0x40a333='';return _0x47d163&&(_0x2746ca=_0x47d163['label'],_0x40a333=_0x4a26ff(_0x2746ca)['toLowerCase']()),{'type':'format','content':o(_0xbb616,'*Set\x20font\x20color:*\x20%0',_0x40a333)['trim'](),'color':{'value':_0x582a2f,'title':_0x40a333||_0x2746ca}};}return{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd7c3f2['commandName']){const _0x311496=_0xd7c3f2['commandParams'][0x0]['value'];if(_0x311496){const _0x43041b=_0x4db594(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1bd41a=>_0x1bd41a['model']==_0x311496);let _0x217ec2=_0x311496,_0x4f7fde='';return _0x43041b&&(_0x217ec2=_0x43041b['label'],_0x4f7fde=_0x4a26ff(_0x217ec2)['toLowerCase']()),{'type':'format','content':o(_0xbb616,'*Set\x20font\x20background\x20color:*\x20%0',_0x4f7fde)['trim'](),'color':{'value':_0x311496,'title':_0x4f7fde||_0x217ec2}};}return{'type':'format','content':o(_0xbb616,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5d6d85{['afterInit'](){const _0x384ee4=this['editor'],_0x11a7cc=_0x384ee4['plugins']['get']('TrackChangesEditing'),_0x292441=_0x384ee4['commands']['get']('copyFormat'),_0xe7a0f8=_0x384ee4['commands']['get']('pasteFormat');_0x292441&&_0xe7a0f8&&(_0x11a7cc['enableDefaultAttributesIntegration']('pasteFormat'),_0x11a7cc['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5f1107=this['editor'],_0x489402=_0x5f1107['locale'];_0x5f1107['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5909d0=>{if('formatBlock'!=_0x5909d0['type']&&'formatInline'!=_0x5909d0['type'])return;const {data:_0x532b6a}=_0x5909d0;if(_0x532b6a&&'pasteFormat'===_0x532b6a['commandName']){const _0x3876d3=[],_0x1266fb=_0x532b6a['commandParams'][0x0];for(const [_0x359db5,_0x13730e]of Object['entries'](_0x1266fb))_0x3876d3['push'](so(_0x5f1107,_0x359db5,_0x13730e));return _0x3876d3['length']?{'type':'format','content':o(_0x489402,'*Set\x20format\x20to:*\x20%0',_0x3876d3['join'](',\x20'))}:{'type':'format','content':o(_0x489402,'*Remove\x20all\x20formatting*')};}});}}function so(_0x23030f,_0x465ac6,_0x12069c){const _0x16c0b5=_0x23030f['locale']['t'],_0x47b1c2=_0x465ac6['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b4333=_0x16c0b5(_0x47b1c2['charAt'](0x0)['toUpperCase']()+_0x47b1c2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12069c)return _0x3b4333;if('fontColor'===_0x465ac6||'fontBackgroundColor'===_0x465ac6){const _0x58ca76=_0x4db594(_0x23030f['config']['get']('fontColor.colors'))['find'](_0x5483c7=>_0x5483c7['model']==_0x12069c);return _0x3b4333+'\x20('+(_0x58ca76?_0x16c0b5(_0x58ca76['label'])['toLowerCase']():_0x12069c)+')';}if('fontSize'===_0x465ac6&&isNaN(parseFloat(_0x12069c))){const _0x427dc3=_0x23030f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23030f['config']['get']('fontSize.options'))['find'](_0xc4c0dd=>_0xc4c0dd['model']==_0x12069c);return _0x3b4333+'\x20('+(_0x427dc3?_0x16c0b5(_0x427dc3['title'])['toLowerCase']():_0x12069c)+')';}return _0x3b4333+'\x20('+_0x12069c+')';}class nt extends _0x5d6d85{['_headingOptions'];['afterInit'](){const _0x248a92=this['editor'];if(!_0x248a92['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x248a92['config']['get']('heading.options');const _0x37a952=_0x248a92['locale'],_0x535dbe=_0x248a92['plugins']['get']('TrackChangesEditing');_0x535dbe['enableDefaultAttributesIntegration']('heading');for(const _0x2e022d of this['_headingOptions'])'paragraph'!=_0x2e022d['model']&&_0x535dbe['descriptionFactory']['registerElementLabel'](_0x2e022d['model'],_0x3da538=>{const _0x18111a=this['_getHeadingLevel'](_0x2e022d['model']);return null!==_0x18111a?_0x4a7992(_0x3da538,_0x18111a):_0x1c2c37(_0x3da538,_0x2e022d['title']);});function _0x4a7992(_0x153432,_0x2ec64e){return o(_0x37a952,'ELEMENT_HEADING',[_0x153432,_0x2ec64e]);}function _0x1c2c37(_0x414411,_0x488e0e){return o(_0x37a952,'ELEMENT_HEADING_CUSTOM',[_0x414411,_0x488e0e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2687fa=this['editor'],_0x141cb9=_0x2687fa['locale'];function _0x4daa09(_0x426d19,_0x6078c){return o(_0x141cb9,'ELEMENT_HEADING_CUSTOM',[_0x426d19,_0x6078c]);}_0x2687fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41c7df=>{if('formatBlock'!=_0x41c7df['type'])return;const {data:_0x3be1a7}=_0x41c7df;if(_0x3be1a7&&'heading'==_0x3be1a7['commandName']){const _0x169070=_0x3be1a7['commandParams'][0x0]['value'],_0x3e1dd0=this['_getHeadingLevel'](_0x169070);if(null!==_0x3e1dd0)return{'type':'format','content':o(_0x141cb9,'*Change\x20to:*\x20%0',(_0x29fa3b=0x1,_0xb9c84c=_0x3e1dd0,o(_0x141cb9,'ELEMENT_HEADING',[_0x29fa3b,_0xb9c84c])))};const _0x268f3b=this['_headingOptions']['find'](_0xdf81fe=>_0xdf81fe['model']===_0x169070)['title'];return{'type':'format','content':o(_0x141cb9,'*Change\x20to:*\x20%0',_0x4daa09(0x1,_0x268f3b))};}var _0x29fa3b,_0xb9c84c;});}['_getHeadingLevel'](_0x51bfbf){const _0x2dd5b2=_0x51bfbf['match'](/^heading(\d+)/);if(_0x2dd5b2)return _0x2dd5b2[0x1];const _0x1e8cbc=this['_headingOptions']?.['find'](_0x1624fc=>_0x1624fc['model']==_0x51bfbf);if(_0x1e8cbc&&_0x1e8cbc['view']){const _0x490b31=_0x1e8cbc['view'],_0x7e8829=(_0x490b31['name']??_0x490b31)['match'](/^h(\d+)/);if(_0x7e8829)return _0x7e8829[0x1];}return null;}}class it extends _0x5d6d85{['afterInit'](){const _0x3418b6=this['editor'];if(!_0x3418b6['plugins']['has']('HighlightEditing'))return;const _0x238eed=_0x3418b6['plugins']['get']('TrackChangesEditing'),_0x3a8fe0=_0x3418b6['locale'];_0x238eed['enableDefaultAttributesIntegration']('highlight'),_0x238eed['registerInlineAttribute']('highlight'),_0x238eed['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3a8fe0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fa385=this['editor'],_0x86a437=_0x3fa385['locale'];_0x3fa385['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x263430=>{if('formatInline'!=_0x263430['type'])return;const {data:_0x391cfc}=_0x263430;if(_0x391cfc&&'highlight'==_0x391cfc['commandName']){const _0x5b7233=_0x86a437['t'],_0x8da83c=_0x391cfc['commandParams'][0x0]['value'];if(_0x8da83c){const _0x563885=_0x3fa385['config']['get']('highlight.options')['find'](_0x50456d=>_0x50456d['model']==_0x8da83c),_0x29db79=_0x5b7233(_0x563885['title'])['toLowerCase']();return{'type':'format','content':o(_0x86a437,'*Set\x20highlight:*\x20%0',_0x29db79),'color':{'value':_0x563885['color'],'title':_0x563885['title']}};}return{'type':'format','content':o(_0x86a437,'*Remove\x20highlight*',o(_0x86a437,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x5d6d85{['afterInit'](){const _0x11a1fe=this['editor'];if(!_0x11a1fe['plugins']['has']('HorizontalLineEditing'))return;_0x11a1fe['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55a8e1=_0x11a1fe['plugins']['get']('TrackChangesEditing'),_0x316a46=_0x11a1fe['locale'];_0x55a8e1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x526e7b=>o(_0x316a46,'ELEMENT_HORIZONTAL_LINE',_0x526e7b)),_0x11a1fe['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x21ea6c,{writer:_0x5dfec9,options:_0x45304d})=>{if(!_0x45304d['showSuggestionHighlights'])return null;const _0x1385c2=_0x5dfec9['createContainerElement']('div'),_0x5c7241=_0x5dfec9['createEmptyElement']('hr');return _0x5dfec9['addClass']('ck-horizontal-line',_0x1385c2),_0x5dfec9['insert'](_0x5dfec9['createPositionAt'](_0x1385c2,0x0),_0x5c7241),_0x1385c2;},'converterPriority':'high'});}}class st extends _0x5d6d85{['afterInit'](){const _0x3d108d=this['editor'];if(!_0x3d108d['plugins']['has']('HtmlEmbed'))return;const _0x415a18=_0x3d108d['plugins']['get']('TrackChangesEditing'),_0x5305c9=_0x3d108d['locale'];_0x415a18['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b82dc=>o(_0x5305c9,'ELEMENT_HTML_EMBED',_0x5b82dc)),_0x415a18['enableDefaultAttributesIntegration']('htmlEmbed'),_0x415a18['registerBlockAttribute']('value'),_0x415a18['descriptionFactory']['registerDescriptionCallback'](_0x3068b9=>{if('attribute'!=_0x3068b9['type'])return;const {data:_0x49bb87}=_0x3068b9;if(_0x49bb87&&'value'==_0x49bb87['key']&&_0x3068b9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x321e7a=o(_0x5305c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5305c9,'*Change\x20%0\x20content*',_0x321e7a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2383c9=this['editor'],_0x5cd3f9=_0x2383c9['locale'];_0x2383c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x377f0e=>{if('formatBlock'!=_0x377f0e['type'])return;const {data:_0x21cdc0}=_0x377f0e;if(_0x21cdc0&&'htmlEmbed'==_0x21cdc0['commandName']){const _0x3feb04=o(_0x5cd3f9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5cd3f9,'*Change\x20%0\x20content*',_0x3feb04)};}});}}class ot extends _0x5d6d85{['afterInit'](){const _0x4e053f=this['editor'];if(!_0x4e053f['plugins']['has']('ImageEditing'))return;const _0x2d10d3=_0x4e053f['plugins']['get']('TrackChangesEditing'),_0x2821ee=_0x4e053f['plugins']['get']('ImageUtils'),_0x4101e1=_0x4e053f['locale'];_0x2d10d3['enableCommand']('insertImage'),_0x2d10d3['descriptionFactory']['registerElementLabel']('imageBlock',_0x24fd29=>o(_0x4101e1,'ELEMENT_IMAGE',_0x24fd29)),_0x2d10d3['descriptionFactory']['registerElementLabel']('imageInline',_0x5148bb=>o(_0x4101e1,'ELEMENT_INLINE_IMAGE',_0x5148bb)),_0x2d10d3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4101e1,'ELEMENT_CAPTION')),_0x4e053f['plugins']['has']('ImageUploadEditing')&&_0x2d10d3['enableCommand']('uploadImage'),_0x4e053f['plugins']['has']('ImageBlockEditing')&&_0x4e053f['plugins']['has']('ImageInlineEditing')&&(_0x2d10d3['enableCommand']('imageTypeInline',(_0x3526b9,_0x38c641)=>{const _0x2a24d1=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']);_0x4e053f['model']['change'](()=>{_0x2d10d3['markBlockFormat'](_0x2a24d1,{'commandName':'imageTypeInline','commandParams':[_0x38c641]},[],'convertBlockImageToInline');});}),_0x2d10d3['enableCommand']('imageTypeBlock',(_0x3177f3,_0x4e1d8f)=>{_0x4e053f['model']['change'](_0x3bf752=>{let _0x2e77c0=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0xfc2987=_0x3bf752['createRangeOn'](_0x2e77c0);const _0x115cc9=_0x3d1475['fromPosition'](_0xfc2987['start'],'toPrevious'),_0x2ff129=_0x3d1475['fromPosition'](_0xfc2987['end'],'toNext');_0x2d10d3['forceDefaultExecution'](()=>_0x3177f3(_0x4e1d8f)),_0x2e77c0=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0xfc2987=_0x3bf752['createRangeOn'](_0x2e77c0);const _0xc72cb3=_0x3bf752['createRange'](_0x115cc9,_0x2ff129);_0x115cc9['detach'](),_0x2ff129['detach'](),_0x2d10d3['markBlockFormat'](_0x2e77c0,{'commandName':'imageTypeInline','commandParams':[_0x4e1d8f]},[],'convertInlineImageToBlock'),_0xc72cb3['start']['isBefore'](_0xfc2987['start'])&&_0x2d10d3['markInsertion'](_0x3bf752['createRange'](_0xc72cb3['start'],_0xfc2987['start']),'convertInlineImageToBlock'),_0xfc2987['end']['isBefore'](_0xc72cb3['end'])&&_0x2d10d3['markInsertion'](_0x3bf752['createRange'](_0xfc2987['end'],_0xc72cb3['end']),'convertInlineImageToBlock');});}),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d10d3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3eae1c])=>{const _0x4166d1=_0x2d10d3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x516d42=_0x3eae1c['start'],_0x4eb726=_0x3eae1c['end'];const _0xdd5f5c=_0x4e053f['model']['schema']['getNearestSelectionRange'](_0x516d42,'backward'),_0x3213d8=_0x4e053f['model']['schema']['getNearestSelectionRange'](_0x4eb726,'forward');_0xdd5f5c['isCollapsed']&&(_0x516d42=_0xdd5f5c['start']),_0x3213d8['isCollapsed']&&(_0x4eb726=_0x3213d8['end']),_0x4166d1([_0x4e053f['model']['createRange'](_0x516d42,_0x4eb726)]);}),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2fb4fe),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2fb4fe)),_0x4e053f['plugins']['has']('ImageCaptionEditing')&&(_0x2d10d3['enableCommand']('toggleImageCaption',(_0x536a30,_0x452368)=>{const _0x5d1873=_0x4e053f['plugins']['get']('ImageCaptionUtils');let _0x2bb433=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0x1d7f83=_0x5d1873['getCaptionFromImageModelElement'](_0x2bb433);_0x4e053f['model']['change'](()=>{if(_0x1d7f83)return void _0x2d10d3['markDeletion'](_0x4e053f['model']['createRangeOn'](_0x1d7f83));const _0xec934c=_0x2821ee['isBlockImage'](_0x2bb433);_0x536a30(_0x452368),_0x2bb433=_0x2821ee['getClosestSelectedImageElement'](_0x4e053f['model']['document']['selection']),_0x1d7f83=_0x5d1873['getCaptionFromImageModelElement'](_0x2bb433),_0x2d10d3['markInsertion'](_0x4e053f['model']['createRangeOn'](_0x1d7f83),_0xec934c?null:'imageCaption');});}),_0x2d10d3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2fb4fe));const _0x1bb4ed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ba751(_0x18ec96,_0x46ecfd){const _0x4653a7=_0x1bb4ed['findIndex'](({type:_0x2dd7fe,subType:_0x4dcbe3})=>_0x18ec96['type']==_0x2dd7fe&&_0x18ec96['subType']==_0x4dcbe3),_0x55623b=_0x1bb4ed['findIndex'](({type:_0x2dab15,subType:_0x22d3df})=>_0x46ecfd['type']==_0x2dab15&&_0x46ecfd['subType']==_0x22d3df);if(_0x4653a7<0x0||_0x55623b<0x0)return!0x1;const _0x5911cf=_0x18ec96['getFirstRange'](),_0x3ca697=_0x46ecfd['getFirstRange']();if((0x0==_0x4653a7||0x1==_0x4653a7)&&0x2==_0x55623b&&_0x5911cf['isIntersecting'](_0x3ca697))return!0x0;if(0x2==_0x4653a7&&0x3==_0x55623b){const _0x15e69f=_0x2d10d3['_findSuggestions'](_0x5911cf,'insertion')['filter'](({suggestion:_0x4f7cac,meta:_0x5bbf6c})=>_0x5bbf6c['isOwn']&&'convertInlineImageToBlock'==_0x4f7cac['subType']);if(_0x15e69f['length']>0x1&&_0x3ca697['end']['isEqual'](_0x5911cf['start']))return!0x0;if(0x1==_0x15e69f['length']&&(_0x5911cf['start']['isEqual'](_0x3ca697['end'])||_0x5911cf['end']['isEqual'](_0x3ca697['start'])))return!0x0;}if(0x3==_0x4653a7&&0x3==_0x55623b&&_0x5911cf['start']['isBefore'](_0x3ca697['start'])){const _0x4032a8=_0x5911cf['end']['nodeAfter'],_0x147e26=_0x3ca697['start']['nodeBefore'];return _0x2821ee['isBlockImage'](_0x4032a8)&&_0x4032a8===_0x147e26;}return!0x1;}function _0x2fb4fe(_0x595daa,_0x5bf195){return _0x1ba751(_0x595daa,_0x5bf195)?[_0x595daa,_0x5bf195]:_0x1ba751(_0x5bf195,_0x595daa)?[_0x5bf195,_0x595daa]:null;}_0x4e053f['plugins']['has']('ImageResize')&&(_0x2d10d3['enableDefaultAttributesIntegration']('resizeImage'),_0x2d10d3['registerBlockAttribute']('resizedWidth'),_0x2d10d3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4101e1,'FORMAT_IMAGE_SIZE'))),_0x4e053f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2d10d3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2d10d3['registerBlockAttribute']('alt')),_0x4e053f['plugins']['has']('PictureEditing')&&(_0x2d10d3['registerBlockAttribute']('sources'),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x38db73=>{if('attribute'!=_0x38db73['type'])return;const {data:_0x33977d}=_0x38db73;return _0x33977d&&'sources'==_0x33977d['key']?{'type':'format','content':''}:void 0x0;})),_0x4e053f['plugins']['has']('ImageSizeAttributes')&&(_0x2d10d3['registerBlockAttribute']('width'),_0x2d10d3['registerBlockAttribute']('height'),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x3b3de6=>{if('attribute'!=_0x3b3de6['type'])return;const {data:_0x589565}=_0x3b3de6;return!_0x589565||'width'!=_0x589565['key']&&'height'!=_0x589565['key']?void 0x0:{'type':'format','content':''};})),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x45cc7d=>{if(!!_0x1bb4ed['find'](({type:_0x35fbd3,subType:_0xe0db97})=>_0x45cc7d['type']==_0x35fbd3&&_0x45cc7d['subType']==_0xe0db97))return _0x45cc7d['previous']?{}:void 0x0;}),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x4d9fbc=>{if('insertion'==_0x4d9fbc['type']||'deletion'==_0x4d9fbc['type']){const _0x52d57c=_0x4d9fbc['getContainedElement']();if(_0x52d57c&&_0x52d57c['is']('element','caption'))return{'type':'insertion'==_0x4d9fbc['type']?'addObject':'removeObject','element':_0x52d57c,'quantity':0x1};}}),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0x173fb8=>'formatBlock'==_0x173fb8['type']&&'convertInlineImageToBlock'==_0x173fb8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x173fb8['type']&&'convertBlockImageToInline'==_0x173fb8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d10d3['descriptionFactory']['registerDescriptionCallback'](_0xe08bec=>{if('attribute'!=_0xe08bec['type'])return;const {data:_0x31ea3b}=_0xe08bec;if(!_0x31ea3b||'alt'!=_0x31ea3b['key'])return;const _0x43d3ee=_0x31ea3b['newValue'];return _0x43d3ee?{'type':'format','content':o(_0x4101e1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43d3ee+'\x22')}:{'type':'format','content':o(_0x4101e1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x596e56=this['editor'],_0x31e1c0=_0x596e56['locale'];_0x596e56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b55e8=>{if('formatBlock'!=_0x1b55e8['type']&&'formatInline'!=_0x1b55e8['type'])return;const {data:_0x497738}=_0x1b55e8;if(_0x497738){if('imageTextAlternative'==_0x497738['commandName']){const _0x4883b0=_0x497738['commandParams'][0x0]['newValue'];return _0x4883b0?{'type':'format','content':o(_0x31e1c0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4883b0+'\x22')}:{'type':'format','content':o(_0x31e1c0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x497738['commandName']){const _0x25798a=_0x497738['commandParams'][0x0]['width'];return _0x25798a?{'type':'format','content':o(_0x31e1c0,'*Set\x20image\x20width:*\x20%0',_0x25798a)}:{'type':'format','content':o(_0x31e1c0,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x9d0c29=this['editor']['locale'],_0x4916bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4916bf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4916bf['registerBlockAttribute']('src'),_0x4916bf['descriptionFactory']['registerDescriptionCallback'](_0x128884=>{if('attribute'!=_0x128884['type'])return;const {data:_0x2a9943}=_0x128884;return _0x2a9943&&'src'==_0x2a9943['key']?_0x2a9943['newValue']&&_0x2a9943['oldValue']?{'type':'format','content':o(_0x9d0c29,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x277a69=this['editor']['plugins']['get']('TrackChangesEditing');_0x277a69['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x277a69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x277a69['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x277a69['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ba820=this['editor'],_0x2cb532=_0x4ba820['locale'];_0x4ba820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x533145=>{if('formatBlock'!=_0x533145['type']&&'formatInline'!=_0x533145['type'])return;const {data:_0x4eb7e8}=_0x533145;if(!_0x4eb7e8||'replaceImageSource'!=_0x4eb7e8['commandName'])return;return{'type':'format','content':o(_0x2cb532,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x5d6d85{['afterInit'](){const _0x4b0574=this['editor'];if(!_0x4b0574['plugins']['has']('ImageStyleEditing'))return;const _0x47bf6c=_0x4b0574['plugins']['get']('TrackChangesEditing'),_0x4e0785=_0x4b0574['plugins']['get']('ImageUtils'),_0x51031c={};_0x47bf6c['enableCommand']('imageStyle',(_0x1fc9ee,_0x47b5e0)=>{const _0x527252=_0x4b0574['plugins']['get']('Users')['me'],_0x33f4d8=_0x4b0574['commands']['get']('imageStyle');let _0x312260=_0x4e0785['getClosestSelectedImageElement'](_0x4b0574['model']['document']['selection']),_0x3b58e5=_0x4b0574['model']['createRangeOn'](_0x312260),_0x374166=_0x33f4d8['value'];if(_0x374166==_0x47b5e0['value'])return;const _0x2133b7={'commandName':'imageStyle','commandParams':[_0x47b5e0],'formatGroupId':_0x39ba3e()};_0x4b0574['model']['change'](()=>{if(_0x47bf6c['getSuggestions']()['filter'](_0x578233=>_0x578233['isInContent']&&_0x527252==_0x578233['author']&&('formatBlock'==_0x578233['type']||'formatInline'==_0x578233['type'])&&('imageStylePreApply'==_0x578233['subType']||'imageStylePostApply'==_0x578233['subType'])&&_0x578233['getFirstRange']()['isEqual'](_0x3b58e5))['forEach'](_0x45834c=>_0x47bf6c['discardSuggestion'](_0x45834c['head'])),_0x312260=_0x4e0785['getClosestSelectedImageElement'](_0x4b0574['model']['document']['selection']),_0x3b58e5=_0x4b0574['model']['createRangeOn'](_0x312260),_0x33f4d8['refresh'](),_0x4b0574['commands']['get']('imageTypeInline')['refresh'](),_0x4b0574['commands']['get']('imageTypeBlock')['refresh'](),_0x374166=_0x33f4d8['value'],_0x374166!=_0x47b5e0['value'])return _0x4e0785['isInlineImage'](_0x312260)&&_0x33f4d8['shouldConvertImageType'](_0x47b5e0['value'],_0x312260)?(_0x1fc9ee({..._0x47b5e0,'setImageSizes':!0x1}),_0x312260=_0x4e0785['getClosestSelectedImageElement'](_0x4b0574['model']['document']['selection']),void _0x47bf6c['markBlockFormat'](_0x312260,{..._0x2133b7,'commandReversedParams':[{'value':_0x374166||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e0785['isBlockImage'](_0x312260)?_0x47bf6c['markBlockFormat'](_0x312260,_0x2133b7,[],'imageStylePostApply'):_0x47bf6c['markInlineFormat'](_0x3b58e5,_0x2133b7,'imageStylePostApply'));});});for(const _0x5aa8c8 of _0x4b0574['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51031c[_0x5aa8c8['name']]=_0x5aa8c8['title']['toLowerCase']();_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1493e9])=>{_0x4e0785['setImageNaturalSizeAttributes'](_0x1493e9['getContainedElement']());}),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x31fc88,_0x325a11)=>{_0x47bf6c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x31fc88,{'commandName':_0x325a11['commandName'],'commandParams':_0x325a11['commandReversedParams']});}),_0x47bf6c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e4af6,_0x25f3c6){if(_0x5b161b(_0x5e4af6,_0x25f3c6))return[_0x5e4af6,_0x25f3c6];if(_0x5b161b(_0x25f3c6,_0x5e4af6))return[_0x25f3c6,_0x5e4af6];return null;});const _0x16bea1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b161b(_0x3bdff2,_0x536971){const _0x2efeea=_0x16bea1['findIndex'](({type:_0x1d5da2,subType:_0x39b0f8})=>_0x3bdff2['type']==_0x1d5da2&&_0x3bdff2['subType']==_0x39b0f8),_0x5886fc=_0x16bea1['findIndex'](({type:_0x3a818c,subType:_0x5ce109})=>_0x536971['type']==_0x3a818c&&_0x536971['subType']==_0x5ce109);if(_0x2efeea<0x0||_0x5886fc<0x0)return!0x1;const _0x1356d0=_0x3bdff2['getFirstRange'](),_0x2e449b=_0x536971['getFirstRange']();if((0x0==_0x2efeea||0x1==_0x2efeea)&&0x2==_0x5886fc&&_0x1356d0['isIntersecting'](_0x2e449b))return!0x0;if(0x2==_0x2efeea&&0x3==_0x5886fc){const _0x82a67a=_0x47bf6c['_findSuggestions'](_0x1356d0,'insertion')['filter'](({suggestion:_0x35e6ca,meta:_0x4aecf9})=>_0x4aecf9['isOwn']&&'convertInlineImageToBlock'==_0x35e6ca['subType']);if(_0x82a67a['length']>0x1&&_0x2e449b['end']['isEqual'](_0x1356d0['start']))return!0x0;if(0x1==_0x82a67a['length']&&(_0x1356d0['start']['isEqual'](_0x2e449b['end'])||_0x1356d0['end']['isEqual'](_0x2e449b['start'])))return!0x0;}if(0x3==_0x2efeea&&0x3==_0x5886fc&&_0x1356d0['start']['isBefore'](_0x2e449b['start'])){const _0x55bde9=_0x1356d0['end']['nodeAfter'],_0x479e99=_0x2e449b['start']['nodeBefore'];return _0x4e0785['isBlockImage'](_0x55bde9)&&_0x55bde9===_0x479e99;}return!0x1;}_0x4b0574['model']['document']['registerPostFixer'](()=>{let _0x3fdafe=!0x1;const _0x46edbd=Array['from'](_0x4b0574['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25ab3a,data:_0xf92f9e}of _0x46edbd){const {group:_0x42b413,type:_0x482b76,subType:_0x3ce96c,id:_0x2897b3}=_0x47bf6c['_splitMarkerName'](_0x25ab3a);if('suggestion'==_0x42b413&&_0x47bf6c['hasSuggestion'](_0x2897b3)){if('formatBlock'==_0x482b76&&('imageStylePreApply'==_0x3ce96c||'imageStylePostApply'==_0x3ce96c)){const _0x1bd664=_0x47bf6c['getSuggestion'](_0x2897b3);if(_0xf92f9e['newRange']){const _0x9215c5=_0x1bd664['getFirstRange']()['getContainedElement']();if(_0x4e0785['isBlockImage'](_0x9215c5))continue;_0x47bf6c['discardSuggestion'](_0x1bd664),_0x3fdafe=!0x0;}}if('insertion'==_0x482b76&&'imageCaption'==_0x3ce96c&&!_0xf92f9e['newRange']){const _0xa24bc2=_0x47bf6c['getSuggestion'](_0x2897b3);_0xa24bc2['next']&&_0xa24bc2['next']['isInContent']&&(_0x47bf6c['discardSuggestion'](_0xa24bc2['next']),_0x3fdafe=!0x0);}}}return _0x3fdafe;}),this['_registerLegacyDescription'](_0x51031c);}['_registerLegacyDescription'](_0xf4ed9e){const _0x241d1d=this['editor'],_0x4e7f3c=_0x241d1d['locale'];_0x241d1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c0de1=>{if('formatBlock'!=_0x1c0de1['type']&&'formatInline'!=_0x1c0de1['type'])return;const {data:_0x54319c}=_0x1c0de1;if(!_0x54319c||'imageStyle'!=_0x54319c['commandName'])return;const _0x2dd079=_0x54319c['commandParams'][0x0]['value'];return _0x5dec49('side'===_0x2dd079?o(_0x4e7f3c,'FORMAT_SIDE_IMAGE'):_0xf4ed9e[_0x2dd079]||_0x2dd079);function _0x5dec49(_0x44a3f7){return{'type':'format','content':o(_0x4e7f3c,'*Format:*\x20%0',_0x44a3f7)};}});}}class ct extends _0x5d6d85{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x151b97){super(_0x151b97),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x315c81=this['editor'],_0x5779c6=_0x315c81['commands']['get']('importWord'),_0x2fd9ac=_0x315c81['commands']['get']('trackChanges');_0x5779c6&&(_0x5779c6['on']('execute',(_0x1f0224,[,_0x37bbc2])=>{this['_trackChangesValueDuringImport']=_0x2fd9ac['value'],_0x37bbc2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5779c6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5779c6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2fd9ac['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x315c81['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d135e,_0x10baf6){const {suggestions:_0x5f4117}=_0x10baf6,_0x507224=this['editor']['commands']['get']('trackChanges'),_0x516df0=_0x507224['value'];this['_trackChangesValueDuringImport']!==_0x516df0&&(_0x507224['execute'](),this['_trackChangesExecuted']=!0x0),_0x5f4117&&_0x5f4117['forEach'](({id:_0x5c05cd,type:_0xc00ed,author:_0x590a2b,created_at:_0x55f653})=>{const _0x510500={'id':_0x5c05cd,'type':_0xc00ed,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x590a2b,'createdAt':_0x55f653?new Date(_0x55f653):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x510500);});}}class ut extends _0x5d6d85{['afterInit'](){const _0x403c7c=this['editor'],_0x1e2d54=_0x403c7c['plugins']['get']('TrackChangesEditing');if(_0x403c7c['plugins']['has']('IndentEditing')&&(_0x1e2d54['enableCommand']('indent'),_0x1e2d54['enableCommand']('outdent')),_0x403c7c['plugins']['has']('IndentBlock')){for(const _0x446d27 of['indentBlock','outdentBlock'])_0x1e2d54['enableDefaultAttributesIntegration'](_0x446d27);}const _0x3ce195=_0x403c7c['locale'];_0x1e2d54['registerBlockAttribute']('blockIndent'),_0x1e2d54['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ce195,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f419a=this['editor'],_0x7fee82=_0x1f419a['locale'],_0x27fd41=_0x1f419a['plugins']['get']('TrackChangesEditing');_0x27fd41['descriptionFactory']['registerDescriptionCallback'](_0xf7a3c=>{if('formatBlock'!=_0xf7a3c['type'])return;const {data:_0x16785b}=_0xf7a3c;if(!_0x16785b)return;if('indentBlock'!=_0x16785b['commandName']&&'outdentBlock'!=_0x16785b['commandName'])return;const _0x3434cf=_0xf7a3c['getItems']()[0x0],_0x4524e3=_0x27fd41['descriptionFactory']['getItemLabel'](_0x3434cf);return'indentBlock'==_0x16785b['commandName']?{'type':'format','content':o(_0x7fee82,'*Indent:*\x20%0',_0x4524e3)}:'outdentBlock'==_0x16785b['commandName']?{'type':'format','content':o(_0x7fee82,'*Outdent:*\x20%0',_0x4524e3)}:void 0x0;});}}class ft extends _0x5d6d85{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5d6d85{['afterInit'](){const _0x56c6ac=this['editor'];if(!_0x56c6ac['plugins']['has']('LinkEditing'))return;const _0x5be110=_0x56c6ac['plugins']['get']('TrackChangesEditing'),_0x3943c7=_0x56c6ac['commands']['get']('link');_0x5be110['enableDefaultAttributesIntegration']('link'),_0x5be110['enableDefaultAttributesIntegration']('unlink'),_0x5be110['registerInlineAttribute']('linkHref');for(const _0x57fe15 of _0x3943c7['manualDecorators'])_0x5be110['registerInlineAttribute'](_0x57fe15['id']),_0x5be110['descriptionFactory']['registerAttributeLabel'](_0x57fe15['id'],'link\x20('+_0x57fe15['label']['toLowerCase']()+')');_0x5be110['descriptionFactory']['registerDescriptionCallback'](_0x34d868=>{if('attribute'!=_0x34d868['type'])return;const {data:_0xb8a49a}=_0x34d868;if(!_0xb8a49a||'linkHref'!=_0xb8a49a['key'])return;const _0x3a534d=_0xb8a49a['newValue'],_0xc58a0b=_0x56c6ac['locale'];return{'type':'format','content':null==_0x3a534d?o(_0xc58a0b,'*Remove\x20link*'):o(_0xc58a0b,'*Set\x20link:*\x20%0','\x22'+_0x3a534d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f4be=this['editor'],_0x1c11ad=_0x58f4be['locale'];_0x58f4be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cdc02=>{if('formatInline'!=_0x2cdc02['type'])return;const {data:_0x4f0b3f}=_0x2cdc02;if(_0x4f0b3f){if('link'==_0x4f0b3f['commandName']){const _0x540ea7=_0x4f0b3f['commandParams'][0x0];return{'type':'format','content':o(_0x1c11ad,'*Set\x20link:*\x20%0','\x22'+_0x540ea7+'\x22')};}return'unlink'==_0x4f0b3f['commandName']?{'type':'format','content':o(_0x1c11ad,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5d6d85{['afterInit'](){const _0xae85e1=this['editor'],_0x1be4b5=_0xae85e1['locale'];if(!_0xae85e1['plugins']['has']('LegacyListEditing'))return;const _0x51453b=_0xae85e1['plugins']['get']('TrackChangesEditing'),_0xebbf71=_0xae85e1['plugins']['has']('LegacyTodoListEditing');function _0xe770c9(_0x12c159){return()=>{const _0x581614=_0xae85e1['model']['document']['selection'],_0x28444c=_0xae85e1['commands']['get'](_0x12c159);if(_0x28444c['value'])return void _0xae85e1['execute']('paragraph',{});const _0x2f88b1=_0x12c159['slice'](0x0,-0x4),_0x4b22ae=function(_0x423e99,_0xbec988,_0x2e2b89){let _0x34905e=Array['from'](_0x423e99)['filter'](_0x49a603=>function(_0x29d144,_0x14b6a5){return _0x14b6a5['checkChild'](_0x29d144['parent'],'listItem')&&!_0x14b6a5['isObject'](_0x29d144);}(_0x49a603,_0x2e2b89));_0x34905e=_0x34905e['filter'](_0x29dd1a=>!_0x29dd1a['is']('element','listItem')||_0x29dd1a['getAttribute']('listType')!=_0xbec988);const _0x190369=new Set();for(const _0x1060e7 of _0x34905e)_0x1060e7['is']('element','listItem')?_0x190369['add'](Le(_0x1060e7)):_0x190369['add'](_0x1060e7);return Array['from'](_0x190369);}(_0x581614['getSelectedBlocks'](),_0x2f88b1,_0xae85e1['model']['schema']);_0xae85e1['model']['change'](()=>{for(const _0x4ff25a of _0x4b22ae)_0x51453b['markBlockFormat'](_0x4ff25a,{'commandName':_0x12c159,'commandParams':[{'forceValue':!_0x28444c['value']}],'formatGroupId':'blockName'},Ee(_0x4ff25a));});};}function _0x992571(_0x199f5e){return()=>{const _0x306ae1=function(_0x5be14b){let _0x16284d=Array['from'](_0x5be14b);const _0x4ad2fa=_0x16284d['findIndex'](_0x47b165=>'listItem'!=_0x47b165['name']);return _0x4ad2fa>-0x1&&(_0x16284d=_0x16284d['slice'](0x0,_0x4ad2fa)),_0x16284d;}(_0xae85e1['model']['document']['selection']['getSelectedBlocks']()),_0x13dadc=_0xae85e1['model']['createRange'](_0xae85e1['model']['createPositionAt'](_0x306ae1[0x0],'before'),_0xae85e1['model']['createPositionAt'](_0x306ae1[_0x306ae1['length']-0x1],'end'));_0xae85e1['model']['change'](()=>{_0x51453b['markBlockFormat'](_0x13dadc,{'commandName':_0x199f5e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x275cd4){const _0xa600f7=new Set();for(const _0x3691ba of _0x275cd4){let _0x3823ee=_0x3691ba['nextSibling'];for(;_0x3823ee&&_0x3823ee['getAttribute']('listIndent')>_0x3691ba['getAttribute']('listIndent');)_0xa600f7['add'](_0x3823ee),_0x3823ee=_0x3823ee['nextSibling'];}return Array['from'](_0xa600f7);}(_0x306ae1));});};}_0x51453b['enableCommand']('numberedList',_0xe770c9('numberedList')),_0x51453b['enableCommand']('bulletedList',_0xe770c9('bulletedList')),_0xebbf71&&_0x51453b['enableCommand']('todoList',_0xe770c9('todoList')),_0x51453b['enableCommand']('indentList',_0x992571('indentList')),_0x51453b['enableCommand']('outdentList',_0x992571('outdentList')),_0xebbf71&&_0x51453b['enableCommand']('checkTodoList',()=>{const _0x325f95=_0xae85e1['commands']['get']('checkTodoList'),_0xaf188=Array['from'](_0x325f95['_selectedElements']);_0xaf188['filter'](_0x33933d=>_0x33933d['getAttribute']('todoListChecked')!=_0x325f95['value']),_0xae85e1['model']['change'](()=>{for(const _0x4660aa of _0xaf188)_0x51453b['markBlockFormat'](_0x4660aa,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x325f95['value']}]});});}),_0x51453b['descriptionFactory']['registerElementLabel']('listItem',_0x3b28f9=>o(_0x1be4b5,'ELEMENT_LIST_ITEM',_0x3b28f9)),_0x51453b['descriptionFactory']['registerDescriptionCallback'](_0xe92a8e=>{if('formatBlock'!=_0xe92a8e['type']&&'formatInline'!=_0xe92a8e['type'])return;const {data:_0x2051bd}=_0xe92a8e;if(_0x2051bd){if('numberedList'==_0x2051bd['commandName']||'bulletedList'==_0x2051bd['commandName']||'todoList'==_0x2051bd['commandName'])switch(_0x2051bd['commandName']['replace']('List','')){case'bulleted':return _0x1b526c(o(_0x1be4b5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b526c(o(_0x1be4b5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b526c(o(_0x1be4b5,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2051bd['commandName'])return{'type':'format','content':o(_0x1be4b5,'*Indent:*\x20%0',o(_0x1be4b5,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2051bd['commandName'])return{'type':'format','content':o(_0x1be4b5,'*Outdent:*\x20%0',o(_0x1be4b5,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2051bd['commandName'])return _0x2051bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1be4b5,'*Check\x20item*')}:{'type':'format','content':o(_0x1be4b5,'*Uncheck\x20item*')};}function _0x1b526c(_0x331ede){return{'type':'format','content':o(_0x1be4b5,'*Change\x20to:*\x20%0',_0x331ede)};}});}}function Le(_0x206040){const _0x2a4e1c=_0x206040['getAttribute']('listIndent');if(0x0==_0x2a4e1c)return _0x206040;let _0x409377=_0x206040;for(;_0x206040['previousSibling']&&_0x206040['previousSibling']['is']('element','listItem');){const _0x694818=_0x206040['previousSibling']['getAttribute']('listIndent');if(_0x694818==_0x2a4e1c)_0x409377=_0x206040['previousSibling'];else{if(_0x694818<_0x2a4e1c)break;}_0x206040=_0x206040['previousSibling'];}return _0x409377;}function Ee(_0x54fbdf){const _0x44f2af=[];if(_0x54fbdf['is']('element','listItem')&&_0x54fbdf['getAttribute']('listIndent')>0x0){let _0x1e5ead=_0x54fbdf['nextSibling'];for(;_0x1e5ead&&'listItem'==_0x1e5ead['name']&&_0x1e5ead['getAttribute']('listIndent')==_0x54fbdf['getAttribute']('listIndent');)_0x44f2af['push'](_0x1e5ead),_0x1e5ead=_0x1e5ead['nextSibling'];}return _0x44f2af;}class Q extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2233ba=this['editor']['config']['get']('list.properties'),_0x57bc47=this['editor']['plugins']['get']('TrackChangesEditing');_0x2233ba['styles']&&_0x57bc47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2233ba['reversed']&&_0x57bc47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2233ba['startIndex']&&_0x57bc47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x57bc47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4796ce,_0x3e06d9={}){const _0x54871e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c8b1d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54871e['markMultiRangeBlockFormat'](_0x5c8b1d,{'commandName':'listStyle','commandParams':[{'type':_0x3e06d9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1993fb,_0x254a37={}){const _0x1f1059=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1768a3=this['_getSuggestionBlocks'](_0x35e742=>_0x35e742['is']('element','listItem')&&'numbered'===_0x35e742['getAttribute']('listType'));if(_0x1768a3['length']<0x1)return;const _0x4bd961=_0x1768a3['map'](_0x4103eb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4103eb,'before'),this['editor']['model']['createPositionAt'](_0x4103eb,0x0)));this['editor']['model']['change'](()=>{_0x1f1059['markMultiRangeBlockFormat'](_0x4bd961,{'commandName':'listReversed','commandParams':[{'reversed':_0x254a37['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b509b,_0x45de52={}){const _0x42da7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce361=this['_getSuggestionBlocks'](_0x860224=>_0x860224['is']('element','listItem')&&'numbered'===_0x860224['getAttribute']('listType'));if(_0x4ce361['length']<0x1)return;const _0x38e403=_0x4ce361['map'](_0x12b6a5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12b6a5,'before'),this['editor']['model']['createPositionAt'](_0x12b6a5,0x0)));this['editor']['model']['change'](()=>{_0x42da7e['markMultiRangeBlockFormat'](_0x38e403,{'commandName':'listStart','commandParams':[{'startIndex':_0x45de52['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x57e4d5){if('formatBlock'!=_0x57e4d5['type']&&'formatInline'!=_0x57e4d5['type'])return;const _0x5ade13=this['editor']['locale'],{data:_0x2200b4}=_0x57e4d5;if(!_0x2200b4)return;let _0x3f3f0c,_0x56485b;switch(_0x2200b4['commandName']){case'listStyle':_0x3f3f0c='*Change\x20to:*\x20%0',_0x56485b={'type':'format','content':o(_0x5ade13,_0x3f3f0c,o(_0x5ade13,this['_getTranslationKeyForListStyle'](_0x2200b4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f3f0c=_0x2200b4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56485b={'type':'format','content':o(_0x5ade13,_0x3f3f0c)};break;case'listStart':_0x3f3f0c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56485b={'type':'format','content':o(_0x5ade13,_0x3f3f0c,_0x2200b4['commandParams'][0x0]['startIndex'])};}return _0x56485b;}['_getSuggestionBlocksForListStyle'](){const _0x105c09=this['editor']['plugins']['get']('LegacyListUtils');let _0x11f8ba=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11f8ba[0x0]?.['is']('element','listItem')&&_0x11f8ba['unshift'](..._0x105c09['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11f8ba[_0x11f8ba['length']-0x1]?.['is']('element','listItem')&&_0x11f8ba['push'](..._0x105c09['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11f8ba=[...new Set(_0x11f8ba)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11f8ba=_0x11f8ba['filter'](_0x472611=>_0x472611['is']('element','listItem'))),_0x11f8ba;}['_getSuggestionBlocks'](_0x9b918e){const _0x2cf518=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a7aef=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x9b918e)['map'](_0x28947a=>{const _0x358591=this['editor']['model']['createPositionAt'](_0x28947a,0x0);return[..._0x2cf518['getSiblingNodes'](_0x358591,'backward'),..._0x2cf518['getSiblingNodes'](_0x358591,'forward')];})['flat']();return _0x4a7aef=[...new Set(_0x4a7aef)],_0x4a7aef;}['_getTranslationKeyForListStyle'](_0x175ef4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x175ef4)||'default')['toUpperCase']()+'_LIST_'+_0x175ef4['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5d6d85{['afterInit'](){const _0x325966=this['editor'];if(!_0x325966['plugins']['has']('MediaEmbedEditing'))return;const _0x47dc00=_0x325966['plugins']['get']('TrackChangesEditing'),_0x1ff776=_0x325966['locale'];_0x47dc00['enableCommand']('mediaEmbed'),_0x47dc00['descriptionFactory']['registerElementLabel']('media',_0x26fa52=>o(_0x1ff776,'ELEMENT_MEDIA',_0x26fa52)),_0x325966['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9a7a55,{writer:_0x5a61cf,options:_0x6f6173})=>{if(_0x6f6173['showSuggestionHighlights'])return _0x5a61cf['createEmptyElement']('div');},'converterPriority':'high'}),_0x325966['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ce895,_0x7b6c70,_0x328869)=>{_0x328869['options']['showSuggestionHighlights']&&_0x3ce895['stop']();},{'priority':'high'});}}class mt extends _0x5d6d85{['afterInit'](){const _0x2ff423=this['editor'];_0x2ff423['plugins']['has']('MentionEditing')&&_0x2ff423['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x5d6d85{['afterInit'](){const _0xff2d90=this['editor'];if(!_0xff2d90['plugins']['has']('MergeFieldsEditing'))return;const _0x557b86=_0xff2d90['plugins']['get']('TrackChangesEditing'),_0x51d9a0=_0xff2d90['locale'];_0x557b86['enableCommand']('insertMergeField'),_0x557b86['enableCommand']('insertMergeFieldBlock'),_0x557b86['enableCommand']('insertMergeFieldImage'),_0x557b86['descriptionFactory']['registerElementLabel']('mergeField',_0x3de53c=>o(_0x51d9a0,'ELEMENT_MERGE_FIELD',_0x3de53c)),_0x557b86['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x112ce4=>o(_0x51d9a0,'ELEMENT_MERGE_FIELD',_0x112ce4)),_0x557b86['descriptionFactory']['registerDescriptionCallback'](_0x461d64=>{if('insertion'!=_0x461d64['type']&&'deletion'!=_0x461d64['type'])return;const _0x2075ef=_0x461d64['getContainedElement']();if(null==_0x2075ef)return;const _0x56da57=_0xff2d90['plugins']['get']('MergeFieldsEditing');let _0x34638a;switch(_0x56da57['getMergeFieldType'](_0x2075ef)){case null:return;case'image':{const _0x5a2b4e=_0x56da57['unwrapAffixes'](_0x2075ef['getAttribute']('src'));_0x34638a=_0x56da57['getLabel'](_0x5a2b4e)||_0x5a2b4e;break;}default:{const _0xd44910=_0x2075ef['getAttribute']('id');_0x34638a=_0x56da57['getLabel'](_0xd44910)||_0xd44910;break;}}return'insertion'==_0x461d64['type']?{'type':'insertion','content':o(_0x51d9a0,'*Insert:*\x20%0','\x22'+_0x34638a+'\x22\x20'+o(_0x51d9a0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x51d9a0,'*Remove:*\x20%0','\x22'+_0x34638a+'\x22\x20'+o(_0x51d9a0,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5d6d85{['afterInit'](){const _0x27aa10=this['editor'],_0x3f610d=_0x27aa10['plugins']['get']('TrackChangesEditing');_0x27aa10['plugins']['has']('MultiLevelList')&&(_0x3f610d['enableDefaultAttributesIntegration']('multiLevelList'),_0x3f610d['registerBlockAttribute']('listMarkerStyle'),_0x3f610d['descriptionFactory']['registerDescriptionCallback'](_0x5b3530=>this['handleDescriptions'](_0x5b3530)));}['handleDescriptions'](_0x3719f6){const _0x5cc5b5=this['editor']['locale'],{data:_0x9a880f}=_0x3719f6,_0x29966a={'type':'format','content':''};if(_0x9a880f&&'listMarkerStyle'==_0x9a880f['key']){if(!_0x9a880f['oldValue'])return{'type':'format','content':o(_0x5cc5b5,'*Set\x20format:*\x20%0',o(_0x5cc5b5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9a880f['newValue']+')'};if(!_0x9a880f['newValue']){let _0x493391=_0x3719f6['head'];for(;_0x493391;){if(_0x493391['data']&&'listType'==_0x493391['data']['key']&&_0x493391['data']['newValue'])return _0x29966a;_0x493391=_0x493391['next'];}return{'type':'format','content':o(_0x5cc5b5,'*Remove\x20format:*\x20%0',o(_0x5cc5b5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x9a880f['oldValue']+')'};}}}}class kt extends _0x5d6d85{['afterInit'](){const _0x764afc=this['editor'];if(!_0x764afc['plugins']['has']('PageBreakEditing'))return;_0x764afc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x47ea08=_0x764afc['plugins']['get']('TrackChangesEditing'),_0x560c6a=_0x764afc['locale'];_0x47ea08['descriptionFactory']['registerElementLabel']('pageBreak',_0x5d64c3=>o(_0x560c6a,'ELEMENT_PAGE_BREAK',_0x5d64c3));}}class bt extends _0x5d6d85{['afterInit'](){const _0x9f1106=this['editor'];if(!_0x9f1106['plugins']['has']('Paragraph'))return;const _0x2a4333=_0x9f1106['locale'],_0x485062=_0x9f1106['plugins']['get']('TrackChangesEditing');_0x485062['descriptionFactory']['registerElementLabel']('paragraph',_0x2bd2db=>o(_0x2a4333,'ELEMENT_PARAGRAPH',_0x2bd2db)),_0x485062['enableDefaultAttributesIntegration']('paragraph'),_0x485062['enableCommand']('insertParagraph'),_0x9f1106['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9f1106),{'priority':'highest'}),_0x9f1106['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1cc203,_0x151ccf,_0x59ad66)=>{_0x59ad66['options']['showSuggestionHighlights']&&nr(_0x9f1106,{'showActiveMarker':!0x1})(_0x1cc203,_0x151ccf,_0x59ad66);},{'priority':'highest'});const _0x4f78d3=_0x485062['descriptionFactory'];_0x4f78d3['registerDescriptionCallback'](_0x519b84=>{if('insertion'!==_0x519b84['type'])return;const {start:_0xd93446,end:_0x240f40}=_0x519b84['getFirstRange']();if(!_0xd93446['isTouching'](_0x240f40)||!_0xd93446['nodeAfter'])return;const _0x26736d=_0x9f1106['model']['schema'],_0xe85fd5=_0xd93446['nodeAfter'];return _0x26736d['isBlock'](_0xe85fd5)&&!_0x26736d['isLimit'](_0xe85fd5)&&_0x26736d['checkChild'](_0xe85fd5,'$text')?{'type':'insertion','content':o(_0x2a4333,'*Insert:*\x20%0',_0x4f78d3['getItemLabel'](_0xe85fd5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274fb3=this['editor'],_0x595aa8=_0x274fb3['locale'];_0x274fb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fb4e9=>{if('formatBlock'!=_0x4fb4e9['type'])return;const {data:_0x18d90c}=_0x4fb4e9;return _0x18d90c&&'paragraph'==_0x18d90c['commandName']?{'type':'format','content':o(_0x595aa8,'*Change\x20to:*\x20%0',o(_0x595aa8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x48430c,{showActiveMarker:_0x2fb9f0=!0x0}={}){return(_0x24e61d,_0x459a59,_0x34ac25)=>{const _0x169e01=_0x48430c['plugins']['get']('TrackChangesEditing'),_0x28b133=_0x459a59['markerRange']['start'],_0x114709=_0x459a59['markerRange']['end'],_0x5a0fcf=_0x48430c['model']['schema'];if(!_0x28b133['isTouching'](_0x114709)||!_0x28b133['nodeAfter'])return;const _0x33851c=_0x28b133['nodeAfter'];if(_0x5a0fcf['isBlock'](_0x33851c)&&!_0x5a0fcf['isLimit'](_0x33851c)&&_0x5a0fcf['checkChild'](_0x33851c,'$text')){if(!_0x34ac25['consumable']['consume'](_0x459a59['markerRange'],_0x24e61d['name']))return;const {authorId:_0x4128f2}=_0x169e01['_splitMarkerName'](_0x459a59['markerName']),_0x7f8f2=_0x34ac25['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4128f2}),_0x59e28f=_0x34ac25['mapper']['toViewPosition'](_0x114709);_0x2fb9f0&&_0x169e01['activeMarkers']['includes'](_0x459a59['markerName'])&&_0x34ac25['writer']['addClass']('ck-suggestion-marker--active',_0x7f8f2),_0x34ac25['writer']['insert'](_0x59e28f,_0x7f8f2),_0x34ac25['mapper']['bindElementToMarker'](_0x7f8f2,_0x459a59['markerName']);}};}class yt extends _0x5d6d85{['afterInit'](){const _0x114aa8=this['editor'];if(!_0x114aa8['plugins']['has']('RemoveFormatEditing'))return;_0x114aa8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2121ca=this['editor'];_0x2121ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4be1bb=>{if('formatBlock'!=_0x4be1bb['type']&&'formatInline'!=_0x4be1bb['type'])return;const {data:_0x30fc41}=_0x4be1bb;return _0x30fc41&&'removeFormat'==_0x30fc41['commandName']?{'type':'format','content':o(_0x2121ca['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x5d6d85{['afterInit'](){const _0x3bf807=this['editor'];if(!_0x3bf807['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x432baf=_0x3bf807['plugins']['get']('TrackChangesEditing');_0x432baf['enableCommand']('goToPreviousRestrictedEditingException'),_0x432baf['enableCommand']('goToNextRestrictedEditingException');const _0x32a3a5=_0x3bf807['plugins']['get']('RestrictedEditingModeEditing');_0x32a3a5['enableCommand']('trackChanges'),_0x32a3a5['enableCommand']('acceptSuggestion'),_0x32a3a5['enableCommand']('discardSuggestion'),_0x32a3a5['enableCommand']('acceptAllSuggestions'),_0x32a3a5['enableCommand']('discardAllSuggestions'),_0x32a3a5['enableCommand']('acceptSelectedSuggestions'),_0x32a3a5['enableCommand']('discardSelectedSuggestions');}}class St extends _0x5d6d85{static get['requires'](){return[_0x5c4d6f];}['init'](){const _0x54b62a=this['editor'],_0x547a20=_0x54b62a['plugins']['get']('TrackChangesEditing');_0x547a20['enableCommand']('shiftEnter'),_0x54b62a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54b62a),{'priority':'high'}),_0x54b62a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54b62a),{'priority':'high'}),_0x54b62a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x272519,_0x349175,_0x2bfcf9)=>{_0x2bfcf9['options']['showSuggestionHighlights']&&je(_0x54b62a,{'showActiveMarker':!0x1})(_0x272519,_0x349175,_0x2bfcf9);}),_0x547a20['descriptionFactory']['registerElementLabel']('softBreak',_0x52987d=>o(_0x54b62a['locale'],'ELEMENT_LINE_BREAK',_0x52987d));}}function je(_0xb021ac,{showActiveMarker:_0x3ab429=!0x0}={}){return(_0x1741f9,_0x466ad4,_0x44e82e)=>{const _0x30cb57=_0xb021ac['plugins']['get']('TrackChangesEditing');if(!_0x44e82e['consumable']['test'](_0x466ad4['markerRange'],_0x1741f9['name']))return;const _0x43c718=_0xb021ac['model'];for(const _0x3cf99f of _0x466ad4['markerRange']['getItems']()){if(!_0x3cf99f['is']('element','softBreak'))continue;const _0x16231='deletion'==_0x466ad4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x27b1a1}=_0x30cb57['_splitMarkerName'](_0x466ad4['markerName']),_0x25da7c=_0x44e82e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16231,'data-author-id':_0x27b1a1}),_0x2f90b6=_0x44e82e['mapper']['toViewPosition'](_0x43c718['createPositionBefore'](_0x3cf99f));_0x3ab429&&_0x30cb57['activeMarkers']['includes'](_0x466ad4['markerName'])&&_0x44e82e['writer']['addClass']('ck-suggestion-marker--active',_0x25da7c),_0x44e82e['writer']['insert'](_0x2f90b6,_0x25da7c),_0x44e82e['mapper']['bindElementToMarker'](_0x25da7c,_0x466ad4['markerName']);}};}class At extends _0x5d6d85{['afterInit'](){const _0x256bc6=this['editor'],_0x4441c3=_0x256bc6['model'],_0x586d9a=_0x256bc6['locale'];if(!_0x256bc6['plugins']['has']('StandardEditingModeEditing'))return;const _0x34fab2=_0x256bc6['plugins']['get']('TrackChangesEditing'),_0x228ba9='restrictedEditingException',_0x55cf08=_0x256bc6['commands']['get'](_0x228ba9);_0x34fab2['enableCommand'](_0x228ba9,(_0x41da66,_0x316ef8={})=>{const _0x47b571=_0x4441c3['document']['selection'];if(_0x47b571['isCollapsed'])return void _0x41da66(_0x316ef8);const _0x28e631=void 0x0!==_0x316ef8['forceValue']?_0x316ef8['forceValue']:!_0x55cf08['value'];_0x4441c3['change'](()=>{const _0x5115c0=Array['from'](_0x47b571['getRanges']());for(const _0x2f4501 of _0x5115c0){const _0xae48c0=_0x28e631?[_0x2f4501]:io(_0x228ba9,_0x2f4501,_0x4441c3);for(const _0x44de17 of _0xae48c0)_0x34fab2['markInlineFormat'](_0x44de17,{'commandName':_0x228ba9,'commandParams':[{'forceValue':_0x28e631}]});}});}),_0x34fab2['descriptionFactory']['registerDescriptionCallback'](_0x585670=>{if('formatBlock'!=_0x585670['type']&&'formatInline'!=_0x585670['type'])return;const {data:_0x5e46f8}=_0x585670;return _0x5e46f8&&_0x5e46f8['commandName']==_0x228ba9?_0x5e46f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x586d9a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x586d9a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5d6d85{['afterInit'](){const _0x2f44c0=this['editor'];if(!_0x2f44c0['plugins']['has']('Style')||!_0x2f44c0['plugins']['has']('DataSchema'))return;const _0x13cfe2=_0x2f44c0['plugins']['get']('TrackChangesEditing'),_0x490e00=_0x2f44c0['locale'],_0x9d61ba=_0x2f44c0['config']['get']('style')||{},_0x1d4238=_0x2f44c0['plugins']['get']('GeneralHtmlSupport'),_0x24dcd5=_0x2f44c0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2f44c0['plugins']['get']('DataSchema'),_0x9d61ba['definitions']);_0x13cfe2['enableDefaultAttributesIntegration']('style');const _0x222f64=new Set();for(const _0xb1d879 of _0x24dcd5['block']){const _0x316bb9=_0x1d4238['getGhsAttributeNameForElement'](_0xb1d879['element']);_0x222f64['add'](_0x316bb9);}const _0x30e881=new Set();for(const _0x1fe4cf of _0x24dcd5['inline']){const _0x4c69a8=_0x1d4238['getGhsAttributeNameForElement'](_0x1fe4cf['element']);_0x30e881['add'](_0x4c69a8);for(const _0x1d0cd8 of _0x1fe4cf['ghsAttributes'])_0x30e881['add'](_0x1d0cd8);}for(const _0xd7cb3e of _0x222f64)_0x13cfe2['registerBlockAttribute'](_0xd7cb3e),_0x13cfe2['descriptionFactory']['registerAttributeLabel'](_0xd7cb3e,o(_0x490e00,'FORMAT_STYLE'));for(const _0x38ef4b of _0x30e881)_0x13cfe2['registerInlineAttribute'](_0x38ef4b),_0x13cfe2['descriptionFactory']['registerAttributeLabel'](_0x38ef4b,o(_0x490e00,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x533062=this['editor'],_0x1a393d=_0x533062['locale'];_0x533062['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18aa26=>{if('formatBlock'!=_0x18aa26['type']&&'formatInline'!=_0x18aa26['type'])return;const {data:_0x4df500}=_0x18aa26;return _0x4df500&&'style'===_0x4df500['commandName']?_0x4df500['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a393d,'*Set\x20format:*\x20%0',_0x4df500['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1a393d,'*Remove\x20format:*\x20%0',_0x4df500['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x5d6d85{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x524cb0){super(_0x524cb0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x54466a=this['editor'],_0x169b79=_0x54466a['model']['document']['selection'];if(!_0x54466a['plugins']['has']('TableEditing'))return;const _0x3512af=_0x54466a['locale'],_0x1c26aa=_0x54466a['plugins']['get']('TrackChangesEditing'),_0x4e8282=_0x54466a['plugins']['get']('TableUtils');_0x1c26aa['descriptionFactory']['registerElementLabel']('table',_0x14fec8=>o(_0x3512af,'ELEMENT_TABLE',_0x14fec8)),this['_setupColumnsRowsFixing'](),_0x1c26aa['enableCommand']('insertTable'),_0x1c26aa['enableCommand']('selectTableRow'),_0x1c26aa['enableCommand']('selectTableColumn');for(const _0x3cffbb of['insertTableRowAbove','insertTableRowBelow']){const _0x2c60cc=_0x54466a['commands']['get'](_0x3cffbb);_0x1c26aa['enableCommand'](_0x3cffbb,_0x328d4d=>{_0x54466a['model']['change'](_0x40ba09=>{_0x328d4d();const _0x263425='above'===_0x2c60cc['order'],_0x35faa9=_0x4e8282['getSelectionAffectedTableCells'](_0x169b79),_0x2d596d=_0x4e8282['getRowIndexes'](_0x35faa9),_0x1f1eff=_0x263425?_0x2d596d['first']-0x1:_0x2d596d['last']+0x1,_0x1089ac=_0x35faa9[0x0]['findAncestor']('table'),_0x4e440c=_0x4e8282['createTableWalker'](_0x1089ac,{'startRow':_0x1f1eff,'endRow':_0x1f1eff}),_0x5be19d=Array['from'](_0x4e440c)['map'](_0xe27e23=>_0x40ba09['createRangeOn'](_0xe27e23['cell']));_0x1c26aa['markMultiRangeInsertion'](_0x5be19d,'tableRow');});});}for(const _0x433950 of['insertTableColumnLeft','insertTableColumnRight']){const _0x565ef4=_0x54466a['commands']['get'](_0x433950);_0x1c26aa['enableCommand'](_0x433950,_0xacc023=>{_0x54466a['model']['change'](_0x22e7ed=>{_0xacc023();const _0x79e403='left'===_0x565ef4['order'],_0x3de67e=_0x4e8282['getSelectionAffectedTableCells'](_0x169b79),_0x36d186=_0x4e8282['getColumnIndexes'](_0x3de67e),_0x137d90=_0x79e403?_0x36d186['first']-0x1:_0x36d186['last']+0x1,_0x13684b=_0x3de67e[0x0]['findAncestor']('table'),_0x17fbb6=_0x4e8282['createTableWalker'](_0x13684b,{'startRow':0x0,'column':_0x137d90,'includeAllSlots':!0x1}),_0x15c28d=Array['from'](_0x17fbb6)['map'](_0x5a3b3f=>_0x22e7ed['createRangeOn'](_0x5a3b3f['cell']));_0x1c26aa['markMultiRangeInsertion'](_0x15c28d,'tableColumn');});});}for(const _0x253a56 of['removeTableRow','removeTableColumn']){const _0x30a667=_0x253a56['substr'](0xb),_0x5ec985=_0x30a667['toLowerCase'](),_0x1d106e=_0x5ec985['substr'](0x0,0x3)+'span',_0x2e4ebc='table'+_0x30a667,_0x24d506='min'+_0x30a667,_0x358da9='max'+_0x30a667;_0x1c26aa['enableCommand'](_0x253a56,()=>{_0x54466a['model']['change'](_0x349ed5=>{const _0x87554e=_0x4e8282['getSelectionAffectedTableCells'](_0x169b79),_0x10e1f6=_0x87554e[0x0]['findAncestor']('table');let _0x5a25aa;if('removeTableRow'==_0x253a56){const _0x5c425c=_0x4e8282['getRowIndexes'](_0x87554e);_0x5a25aa={'startRow':_0x5c425c['first'],'endRow':_0x5c425c['last'],'includeAllSlots':!0x0};}else{const _0x385c86=_0x4e8282['getColumnIndexes'](_0x87554e);_0x5a25aa={'startColumn':_0x385c86['first'],'endColumn':_0x385c86['last'],'includeAllSlots':!0x0};}const _0x4583c3=_0x4e8282['createTableWalker'](_0x10e1f6,_0x5a25aa),_0x23e443=Array['from'](_0x4583c3)['map'](({cell:_0x4f8b7b})=>_0x4f8b7b),_0x13343f=Ne(_0x23e443['filter'](_0x291e27=>_0x291e27['hasAttribute'](_0x1d106e))),_0x4f87db=Ne(_0x23e443['filter'](_0x59c434=>!_0x59c434['hasAttribute'](_0x1d106e)))['map'](_0x448e42=>_0x349ed5['createRangeOn'](_0x448e42)),_0x34dc12=_0x1c26aa['markMultiRangeDeletion'](_0x4f87db,_0x2e4ebc);if(_0x34dc12&&('tableRow'==_0x34dc12['subType']||'tableColumn'==_0x34dc12['subType'])){const _0x13b1c4=this['_getSuggestionCoords'](_0x34dc12);for(const _0x38ce25 of _0x13343f){const _0x296785=_0x349ed5['createRangeOn'](_0x38ce25),_0x16cc5a=_0x4e8282['getCellLocation'](_0x38ce25),_0x210344=_0x38ce25['getAttribute'](_0x1d106e)-0x1,_0x26a42b=_0x13b1c4[_0x24d506],_0x162fd1=_0x13b1c4[_0x358da9];_0x26a42b<=_0x16cc5a[_0x5ec985]&&_0x16cc5a[_0x5ec985]+_0x210344<=_0x162fd1&&_0x34dc12['addRange'](_0x296785);}}});});}function _0x158240(_0x4a18f9){const _0x1ad3be=Array['from'](_0x169b79['getRanges']())['map'](_0x3e64f7=>_0x1e09a5['fromRange'](_0x3e64f7));_0x54466a['model']['change'](_0x42720c=>{const _0x31dbcf=_0x42720c['batch'];_0x4a18f9=_0x4a18f9['filter'](_0x12d380=>'$graveyard'!=_0x12d380['root']['rootName']),_0x42720c['setSelection'](_0x4a18f9),_0x54466a['commands']['get']('removeTableRow')['refresh'](),_0x54466a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x54466a['model']['enqueueChange'](()=>{_0x54466a['model']['enqueueChange'](_0x31dbcf,_0xf6e3fa=>{const _0x2fe32c=_0x1ad3be['filter'](_0x56c8ff=>'$graveyard'!=_0x56c8ff['root']['rootName']);_0x2fe32c['length']>0x0&&_0xf6e3fa['setSelection'](_0x2fe32c);for(const _0x32e77b of _0x1ad3be)_0x32e77b['detach']();});});});}function _0x42079d(_0x652fe){_0x54466a['model']['change'](_0x4966b5=>{const _0x524443=Array['from'](_0x169b79['getRanges']())['map'](_0xe6faae=>_0x1e09a5['fromRange'](_0xe6faae)),_0x3e4b1a=[];for(const _0x88dcc of _0x652fe)for(const _0x79c523 of _0x88dcc['getItems']({'shallow':!0x0}))_0x3e4b1a['push'](_0x79c523);for(const _0x5a662f of _0x3e4b1a)'$graveyard'!=_0x5a662f['root']['rootName']&&(_0x4966b5['setSelection'](_0x4966b5['createPositionAt'](_0x5a662f,0x0)),_0x54466a['commands']['get']('removeTableColumn')['refresh'](),_0x54466a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x309449=_0x524443['filter'](_0x348b7e=>'$graveyard'!=_0x348b7e['root']['rootName']);_0x309449['length']>0x0&&_0x4966b5['setSelection'](_0x309449);for(const _0x70f51a of _0x524443)_0x70f51a['detach']();});}function _0x421e5f(_0x2b71b1,_0x695b4a){return _0x695b4a['every'](_0x4bb9e6=>_0x2b71b1['some'](_0x38833b=>_0x38833b['end']['isEqual'](_0x4bb9e6['start'])||_0x4bb9e6['end']['isEqual'](_0x38833b['start'])));}function _0x24e6a7(_0x5b79c0,_0x1cadef){return!_0x5b79c0['some'](_0x2971ac=>_0x1cadef['some'](_0x274c77=>_0x2971ac['isIntersecting'](_0x274c77)))&&_0x5b79c0['some'](_0x34ce18=>_0x1cadef['some'](_0x142ff4=>_0x34ce18['end']['isTouching'](_0x142ff4['start'])));}_0x54466a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6397b1,_0x14b767,_0x3a0548)=>{if(!_0x3a0548['options']['showSuggestionHighlights'])return;const _0x4978c7=_0x14b767['item'];if(!_0x4978c7)return;const _0x29fc4d=_0x3a0548['mapper']['toViewElement'](_0x4978c7);function _0xb032ad(_0x480101){return Array['isArray'](_0x480101)?_0x480101:[_0x480101];}_0x29fc4d&&'tableCell'===_0x4978c7['name']&&_0x6cf509(_0x29fc4d,_0x3a0548['writer'],(_0xc3ab7,_0x1023f5,_0x54a1f6)=>_0x54a1f6['addClass'](_0xb032ad(_0x1023f5['classes']),_0xc3ab7),(_0x5cb280,_0x5f21b0,_0x2b2523)=>_0x2b2523['removeClass'](_0xb032ad(_0x5f21b0['classes']),_0x5cb280));},{'priority':'highest'}),_0x1c26aa['descriptionFactory']['registerDescriptionCallback'](_0x423407=>{if('insertion'!=_0x423407['type']&&'deletion'!=_0x423407['type'])return;const _0x12f33c=_0x423407['getContainedElement']();if(null!=_0x12f33c&&_0x12f33c['is']('element','table')){if('insertion'==_0x423407['type']){const _0x36244e=_0x423407['getItems']()['filter'](_0x3f2bd5=>_0x3f2bd5['is']('$textProxy'))['map'](_0x617796=>_0x617796['data']);if(_0x36244e['length'])return{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36244e['join']('\x20')+'\x22'))};}if('deletion'==_0x423407['type']){const _0x4a5d16=_0x423407['getItems']()['filter'](_0x1d0021=>_0x1d0021['is']('$textProxy'))['map'](_0x32368d=>_0x32368d['data']);if(_0x4a5d16['length'])return{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a5d16['join']('\x20')+'\x22'))};}}}),_0x1c26aa['descriptionFactory']['registerDescriptionCallback'](_0x51cb97=>{if('tableRow'==_0x51cb97['subType']){const _0xea0f7a=_0x51cb97['getItems']()['filter'](_0x53907c=>_0x53907c['is']('$textProxy'))['map'](_0x459a33=>_0x459a33['data']),_0x5d4dea=this['_getSuggestionCoords'](_0x51cb97),_0x5cc6ad=_0x5d4dea['maxRow']-_0x5d4dea['minRow']+0x1;if('insertion'==_0x51cb97['type'])return _0xea0f7a['length']?{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cc6ad,'\x22'+_0xea0f7a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW',_0x5cc6ad))};if('deletion'==_0x51cb97['type'])return _0xea0f7a['length']?{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5cc6ad,'\x22'+_0xea0f7a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_ROW',_0x5cc6ad))};}if('tableColumn'==_0x51cb97['subType']){const _0x17ee1b=_0x51cb97['getItems']()['filter'](_0x508a51=>_0x508a51['is']('$textProxy'))['map'](_0x379cab=>_0x379cab['data']),_0x847025=this['_getSuggestionCoords'](_0x51cb97),_0x5569d5=_0x847025['maxColumn']-_0x847025['minColumn']+0x1;if('insertion'==_0x51cb97['type'])return _0x17ee1b['length']?{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5569d5,'\x22'+_0x17ee1b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3512af,'*Insert:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN',_0x5569d5))};if('deletion'==_0x51cb97['type'])return _0x17ee1b['length']?{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5569d5,'\x22'+_0x17ee1b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3512af,'*Remove:*\x20%0',o(_0x3512af,'ELEMENT_TABLE_COLUMN',_0x5569d5))};}}),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x158240),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x158240),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42079d),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42079d),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x421e5f),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x421e5f),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x24e6a7),_0x1c26aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x24e6a7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55fb13=this['editor'],_0x502c6c=_0x55fb13['model']['document']['selection'];return(_0x293e5c,_0x4e84fd)=>{_0x55fb13['model']['change'](_0x491412=>{const {commandName:_0x241225,commandParams:_0x4bbdd5}=_0x4e84fd;let _0x24200a=_0x293e5c[0x0]['end']['nodeBefore'];_0x4bbdd5&&_0x4bbdd5[0x0]&&!0x1===_0x4bbdd5[0x0]['forceValue']&&(_0x24200a=_0x293e5c[0x0]['start']['nodeAfter']);const _0x245b1f=_0x491412['createRangeIn'](_0x24200a);if('$graveyard'==_0x245b1f['root']['rootName'])return;const _0x562852=Array['from'](_0x502c6c['getRanges']())['map'](_0x3b2def=>_0x1e09a5['fromRange'](_0x3b2def));_0x491412['setSelection'](_0x245b1f),_0x55fb13['commands']['get'](_0x241225)['refresh'](),_0x4bbdd5['push']({'forceDefaultExecution':!0x0}),_0x55fb13['execute'](_0x241225,..._0x4bbdd5);const _0x580559=_0x562852['filter'](_0x49cce0=>'$graveyard'!=_0x49cce0['root']['rootName']);_0x580559['length']>0x0&&_0x491412['setSelection'](_0x580559);for(const _0x4bbb73 of _0x562852)_0x4bbb73['detach']();});};}['_getCoordsForCells'](_0xb1d6a7){const _0x17b5f3=this['editor']['plugins']['get']('TableUtils');let _0x4de376=Number['MAX_SAFE_INTEGER'],_0x59a8a0=Number['MIN_SAFE_INTEGER'],_0x1af899=Number['MAX_SAFE_INTEGER'],_0x2d5284=Number['MIN_SAFE_INTEGER'];for(const _0x146dcb of _0xb1d6a7){if('$graveyard'==_0x146dcb['root']['rootName'])continue;const {row:_0x2247d7,column:_0x366d56}=_0x17b5f3['getCellLocation'](_0x146dcb),_0xbb41eb=_0x146dcb['hasAttribute']('rowspan')?_0x146dcb['getAttribute']('rowspan')-0x1:0x0,_0x5935d4=_0x146dcb['hasAttribute']('colspan')?_0x146dcb['getAttribute']('colspan')-0x1:0x0;_0x4de376=_0x2247d7<_0x4de376?_0x2247d7:_0x4de376,_0x59a8a0=_0x2247d7+_0xbb41eb>_0x59a8a0?_0x2247d7+_0xbb41eb:_0x59a8a0,_0x1af899=_0x366d56<_0x1af899?_0x366d56:_0x1af899,_0x2d5284=_0x366d56+_0x5935d4>_0x2d5284?_0x366d56+_0x5935d4:_0x2d5284;}return{'minRow':_0x4de376,'maxRow':_0x59a8a0,'minColumn':_0x1af899,'maxColumn':_0x2d5284};}['_setupColumnsRowsFixing'](){const _0x4145c0=this['editor'],_0x253511=_0x4145c0['plugins']['get']('TrackChangesEditing'),_0xbbe4b8=_0x4145c0['plugins']['get']('TableUtils');_0x4145c0['model']['document']['on']('change:data',()=>{const _0x52d414=Array['from'](_0x4145c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42a82e,data:_0x35c601}of _0x52d414){const {group:_0x615cef,id:_0x42cad4,subType:_0x53b457}=_0x253511['_splitMarkerName'](_0x42a82e);if('suggestion'!=_0x615cef)continue;if(null!=_0x35c601['oldRange'])continue;const _0x2f163b=_0x253511['getSuggestion'](_0x42cad4);this['_tablePostFixingSubtypes']['includes'](_0x53b457)&&this['_tableSuggestions']['add'](_0x2f163b);}},{'priority':'low'});const _0xc0dda8=(_0x2e73e3,_0x5c7ae1)=>{let _0x441914=!0x1;const _0x4eeac0=_0x5c7ae1['createRangeOn'](_0x2e73e3),_0x241f4e=_0x2e73e3['findAncestor']('table'),_0x4687ac=_0xbbe4b8['getCellLocation'](_0x2e73e3);for(const _0x2cdc47 of this['_tableSuggestions']){const _0x77bd4b=_0x2cdc47['subType'],_0x404214=_0x77bd4b['startsWith']('tablePaste'),_0x3d0187=_0x77bd4b['substr'](_0x404214?0xa:0x5),_0x524081=_0x3d0187['toLowerCase'](),_0x56757c=_0x524081['substr'](0x0,0x3)+'span',_0x751a0f='min'+_0x3d0187,_0x3832b4='max'+_0x3d0187;if(!_0x2cdc47['isInContent'])continue;if(_0x241f4e!=_0x2cdc47['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2cdc47['isIntersectingWithRange'](_0x4eeac0))continue;const _0xec07d1=_0x2e73e3['hasAttribute'](_0x56757c)?_0x2e73e3['getAttribute'](_0x56757c)-0x1:0x0,_0x2d857e=this['_getSuggestionCoords'](_0x2cdc47),_0x414a84=_0x2d857e[_0x751a0f],_0x11b8e1=_0x2d857e[_0x3832b4];_0x414a84<=_0x4687ac[_0x524081]&&_0x4687ac[_0x524081]+_0xec07d1<=_0x11b8e1&&(_0x2cdc47['addRange'](_0x4eeac0),_0x441914=!0x0);}return _0x441914;};_0x4145c0['model']['document']['registerPostFixer'](_0x1d28ac=>{let _0x40130f=!0x1;for(const _0x52daca of _0x4145c0['model']['document']['differ']['getChanges']())if('insert'==_0x52daca['type']){if('tableRow'==_0x52daca['name']){for(const _0xc8ec8d of _0x52daca['position']['nodeAfter']['getChildren']())_0x40130f=_0x40130f||_0xc0dda8(_0xc8ec8d,_0x1d28ac);}else'tableCell'==_0x52daca['name']&&(_0x40130f=_0x40130f||_0xc0dda8(_0x52daca['position']['nodeAfter'],_0x1d28ac));}return _0x40130f;});}['_getSuggestionCoords'](_0x4e4b37){return this['_getCoordsForCells'](_0x4e4b37['getRanges']()['map'](_0x508962=>_0x508962['start']['nodeAfter']));}}function Ne(_0x3f4bed){return Array['from'](new Set(_0x3f4bed)['values']());}class _t extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x4809a3=this['editor'],_0x2d9b7b=_0x4809a3['model']['document']['selection'],_0x47964f=_0x4809a3['locale'];if(!_0x4809a3['plugins']['has']('TableEditing'))return;const _0x263035=_0x4809a3['plugins']['get']('TrackChangesEditing'),_0x5f3bbf=_0x4809a3['plugins']['get']('TableUtils'),_0x579426=_0x4809a3['plugins']['get'](vt);_0x579426['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x263035['enableCommand']('mergeTableCells',()=>{const _0x3484c9=_0x5f3bbf['getSelectionAffectedTableCells'](_0x4809a3['model']['document']['selection']);_0x4809a3['model']['change'](()=>{_0x263035['markMultiRangeBlockFormat'](_0x3484c9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4809a3['commands']['get']('mergeTableCells')['on']('execute',(_0x53086a,_0x944ab0)=>{_0x4809a3['commands']['get']('trackChanges')['value']&&(_0x944ab0['length']>0x0&&_0x944ab0[_0x944ab0['length']-0x1]&&_0x944ab0[_0x944ab0['length']-0x1]['forceDefaultExecution']||_0x263035['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53086a['stop']());},{'priority':'highest'});for(const _0x32c66a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x44c0ea=_0x4809a3['commands']['get'](_0x32c66a);_0x263035['enableCommand'](_0x32c66a,()=>{const _0xea16e9=_0x4809a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8776a8=>_0x8776a8['is']('element','tableCell')),_0x14022f=_0x44c0ea['value'];_0x4809a3['model']['change'](()=>{_0x263035['markMultiRangeBlockFormat']([_0xea16e9,_0x14022f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x505dd8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1a7721=_0x4809a3['commands']['get'](_0x505dd8);_0x263035['enableCommand'](_0x505dd8,()=>{const _0x7c1918=_0x5f3bbf['getSelectionAffectedTableCells'](_0x4809a3['model']['document']['selection'])[0x0],_0x3f7425=_0x7c1918['findAncestor']('table'),{column:_0x514925,row:_0x54c3b1}=_0x5f3bbf['getCellLocation'](_0x7c1918);let _0x2c6a91=[];if('horizontally'==_0x1a7721['direction']){const _0x46791f=_0x5f3bbf['createTableWalker'](_0x3f7425,{'startRow':_0x54c3b1,'endRow':_0x54c3b1,'includeAllSlots':!0x0});_0x2c6a91=Array['from'](_0x46791f)['map'](_0x5d2254=>_0x5d2254['cell']);}else{const _0xd361da=_0x5f3bbf['createTableWalker'](_0x3f7425,{'column':_0x514925,'includeAllSlots':!0x0});_0x2c6a91=Array['from'](_0xd361da)['map'](_0x43d27b=>_0x43d27b['cell']);}_0x4809a3['model']['change'](_0x3fa125=>{_0x263035['markBlockFormat'](_0x3fa125['createRangeOn'](_0x7c1918),{'commandName':_0x505dd8,'commandParams':[]},_0x2c6a91,_0x505dd8);});});}_0x263035['descriptionFactory']['registerDescriptionCallback'](_0x184077=>{if('formatBlock'!=_0x184077['type']&&'formatInline'!=_0x184077['type'])return;const {data:_0x46b32d}=_0x184077;return _0x46b32d&&'mergeTableCells'==_0x46b32d['commandName']?{'type':'format','content':o(_0x47964f,'*Merge\x20cells*')}:void 0x0;}),_0x263035['descriptionFactory']['registerDescriptionCallback'](_0x3564e3=>{if('formatBlock'!=_0x3564e3['type']&&'formatInline'!=_0x3564e3['type'])return;const {data:_0x41e0a6}=_0x3564e3;return _0x41e0a6?'splitTableCellVertically'==_0x41e0a6['commandName']?{'type':'format','content':o(_0x47964f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x41e0a6['commandName']?{'type':'format','content':o(_0x47964f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3f6bd2=_0x579426['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d8e1f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x263035['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d8e1f,'accept',_0x3f6bd2);for(const _0x1e3cb5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x263035['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e3cb5,'accept',_0x3f6bd2);_0x263035['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x374ce0=>{_0x4809a3['model']['change'](_0x2cb3f8=>{const _0x586e49=Array['from'](_0x2d9b7b['getRanges']())['map'](_0x4a97d3=>_0x1e09a5['fromRange'](_0x4a97d3));_0x2cb3f8['setSelection'](_0x374ce0),_0x4809a3['commands']['get']('mergeTableCells')['refresh'](),_0x4809a3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x58b06f=_0x586e49['filter'](_0x3072c4=>'$graveyard'!=_0x3072c4['root']['rootName']);_0x58b06f['length']>0x0&&_0x2cb3f8['setSelection'](_0x58b06f);for(const _0x5ced1b of _0x586e49)_0x5ced1b['detach']();});});for(const _0x2aa720 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ce867=_0x4809a3['commands']['get'](_0x2aa720);_0x5ce867['on']('set:isEnabled',(_0x243817,_0x40e47e,_0xb98666)=>{if(_0xb98666){const _0x51c5a5=_0x4809a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24f1e2=>_0x24f1e2['is']('element','tableCell'));this['_areMergableCells'](_0x5ce867['value'],_0x51c5a5)||(_0x243817['return']=!0x1,_0x243817['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16e30f=this['editor']['commands']['get']('mergeTableCells'),_0x394b16=this['editor']['plugins']['get']('TableUtils');if(!_0x16e30f['isEnabled'])return!0x1;const _0x4ab383=_0x394b16['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x53b5e4 of _0x4ab383)for(const _0x2e574c of _0x4ab383)if(_0x53b5e4!=_0x2e574c&&!this['_areMergableCells'](_0x53b5e4,_0x2e574c))return!0x1;return!0x0;}['_areMergableCells'](_0x1b69b8,_0x46c003){const _0x234b96=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2890c2=this['editor']['model']['createRangeOn'](_0x1b69b8),_0x2600b3=this['editor']['model']['createRangeOn'](_0x46c003),_0x1f2917=new Set(),_0x498ec1=new Set();for(const _0x252a75 of _0x234b96['getSuggestions']())if(('insertion'==_0x252a75['type']||'deletion'==_0x252a75['type']||'mergeTableCells'==_0x252a75['subType'])&&_0x252a75['isInContent']){for(const _0x2e958c of _0x252a75['getRanges']())_0x2e958c['containsRange'](_0x2890c2,!0x0)&&_0x1f2917['add'](_0x252a75['type']+':'+_0x252a75['author']['id']),_0x2e958c['containsRange'](_0x2600b3,!0x0)&&_0x498ec1['add'](_0x252a75['type']+':'+_0x252a75['author']['id']);}if(_0x1f2917['size']!=_0x498ec1['size'])return!0x1;for(const _0x3e300d of _0x1f2917)if(!_0x498ec1['has'](_0x3e300d))return!0x1;return!0x0;}}class Ct extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x2c63b7=this['editor'];if(!_0x2c63b7['plugins']['has']('TableEditing'))return;const _0x7f44f1=_0x2c63b7['locale'],_0x181155=_0x2c63b7['plugins']['get']('TrackChangesEditing');_0x181155['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x181155['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x181155['registerBlockAttribute']('headingRows'),_0x181155['registerBlockAttribute']('headingColumns'),_0x181155['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x7f44f1,'FORMAT_HEADER_ROW')),_0x181155['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x7f44f1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4752eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3600db=this['editor']['plugins']['get']('TableUtils'),_0x57b50a=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0xb72006({showActiveMarker:_0x578231=!0x0,setDataAttribute:_0x41ff21=!0x0}={}){return(_0x4c2578,_0x25e7c4,_0x3ae11e)=>{const {type:_0x2408a8,id:_0x12427f}=_0x4752eb['_splitMarkerName'](_0x25e7c4['markerName']),_0x4b32fc=_0x4752eb['getSuggestion'](_0x12427f),_0xf7246d=_0x4b32fc['data'];if('formatBlock'!=_0x4b32fc['type']||!_0xf7246d||'setTableColumnHeader'!=_0xf7246d['commandName'])return;if(_0x25e7c4['item'])return void _0x4c2578['stop']();if(!_0x3ae11e['consumable']['consume'](_0x25e7c4['markerRange'],_0x4c2578['name']))return;const _0xf8b87d=_0x25e7c4['markerRange']['start']['nodeAfter'],_0x5ae3e6=_0x25e7c4['markerRange']['end']['nodeBefore'],_0xdc45b7=_0xf8b87d['parent']['parent'],{column:_0x693a69}=_0x3600db['getCellLocation'](_0xf8b87d),{column:_0x508438}=_0x3600db['getCellLocation'](_0x5ae3e6);for(let _0x15692e=_0x693a69;_0x15692e<=_0x508438;_0x15692e++){const _0x21d512=_0x3600db['createTableWalker'](_0xdc45b7,{'column':_0x15692e,'includeAllSlots':!0x1});for(const _0x1b9f25 of _0x21d512){const _0x2541ab=_0x1b9f25['cell'],_0xb289d7=_0x3ae11e['mapper']['toViewElement'](_0x2541ab);_0x3ae11e['writer']['addClass']('ck-suggestion-marker-'+_0x2408a8,_0xb289d7),_0x41ff21&&_0x3ae11e['writer']['setAttribute']('data-suggestion',_0x12427f,_0xb289d7),_0x3ae11e['mapper']['bindElementToMarker'](_0xb289d7,_0x25e7c4['markerName']),_0x578231&&(_0x4752eb['activeMarkers']['includes'](_0x25e7c4['markerName'])?_0x3ae11e['writer']['addClass']('ck-suggestion-marker--active',_0xb289d7):_0x3ae11e['writer']['removeClass']('ck-suggestion-marker--active',_0xb289d7));}}};}_0x4752eb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x57b50a),_0x4752eb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x57b50a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb72006(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b2b83,_0x477e3b,_0x38c334)=>{_0x38c334['options']['showSuggestionHighlights']&&_0xb72006({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b2b83,_0x477e3b,_0x38c334);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xefb1a4,_0x2cc5ed,_0x343221)=>{const {type:_0x579f65,id:_0x50a128}=_0x4752eb['_splitMarkerName'](_0x2cc5ed['markerName']),_0x3158f5=_0x4752eb['getSuggestion'](_0x50a128),_0x14333a=_0x3158f5['data'];if('formatBlock'!=_0x3158f5['type']||!_0x14333a||'setTableColumnHeader'!=_0x14333a['commandName'])return;const _0x387238=_0x343221['mapper']['markerNameToElements'](_0x2cc5ed['markerName']);if(_0x387238){for(const _0x552713 of _0x387238)_0x343221['writer']['removeClass']('ck-suggestion-marker-'+_0x579f65,_0x552713),_0x343221['writer']['removeClass']('ck-suggestion-marker--active',_0x552713),_0x343221['writer']['removeAttribute']('data-suggestion',_0x552713),_0x343221['mapper']['unbindElementFromMarkerName'](_0x552713,_0x2cc5ed['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9d048=this['editor'],_0x58b17a=_0xe9d048['locale'];function _0x427cc4(_0xda7625){return{'type':'format','content':o(_0x58b17a,'*Format:*\x20%0',_0xda7625)};}_0xe9d048['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20e44e=>{if('formatBlock'!=_0x20e44e['type'])return;const {data:_0x77d98d}=_0x20e44e;if(_0x77d98d){if('setTableRowHeader'==_0x77d98d['commandName']){const _0x465565=_0x77d98d['commandParams'][0x0]['forceValue'];return _0x427cc4(o(_0x58b17a,_0x465565?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x77d98d['commandName']){const _0xd0a319=_0x77d98d['commandParams'][0x0]['forceValue'];return _0x427cc4(o(_0x58b17a,_0xd0a319?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3e1d33=>[_0x3e1d33,null]));class Nt extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x5622e3=this['editor'];if(!_0x5622e3['plugins']['has']('TableClipboard'))return;const _0x2aadd0=_0x5622e3['plugins']['get']('TrackChangesEditing'),_0x5aff5c=_0x5622e3['plugins']['get']('TableUtils'),_0x34f823=_0x5622e3['plugins']['get'](vt),_0x2fdb91=_0x5622e3['plugins']['get']('TableClipboard');_0x34f823['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5622e3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5622e3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e144f=null;_0x5622e3['model']['on']('insertContent',(_0x1dd59d,_0x4ceec7)=>{const [_0x2760f9,_0x5e3664]=_0x4ceec7,_0x1a34e0=_0x4ceec7[_0x4ceec7['length']-0x1];_0x1a34e0&&_0x1a34e0['forceDefaultExecution']||_0x2aadd0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5750d2,_0x136917,_0x57eea1,_0xa77077,_0x49c8b4){if(_0x136917&&!_0x136917['is']('documentSelection'))return!0x1;const _0x122d22=_0x49c8b4['getTableIfOnlyTableInContent'](_0x5750d2,_0x57eea1);if(!_0x122d22||!Ue(_0x122d22,void 0x0,_0xa77077))return!0x1;const _0x1463f2=_0xa77077['getSelectionAffectedTableCells'](_0x57eea1['document']['selection']);if(!_0x1463f2['length'])return!0x1;const _0x24b0e1=_0x1463f2[0x0]['findAncestor']('table'),_0x987eb=_0xa77077['getRowIndexes'](_0x1463f2),_0x3b0787=_0xa77077['getColumnIndexes'](_0x1463f2),_0x300e1f={'startRow':_0x987eb['first'],'endRow':_0x987eb['last'],'startColumn':_0x3b0787['first'],'endColumn':_0x3b0787['last']};return 0x1==_0x1463f2['length']&&(_0x300e1f['endRow']+=_0xa77077['getRows'](_0x122d22)-0x1,_0x300e1f['endColumn']+=_0xa77077['getColumns'](_0x122d22)-0x1),Ue(_0x24b0e1,_0x300e1f,_0xa77077);}(_0x2760f9,_0x5e3664,_0x5622e3['model'],_0x5aff5c,_0x2fdb91)&&(_0x1dd59d['stop'](),_0x4e144f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5622e3['model']['change'](()=>{_0x5622e3['model']['insertContent'](_0x4ceec7[0x0],_0x4ceec7[0x1],_0x4ceec7[0x2],{'forceDefaultExecution':!0x0});const _0x2ffc96=_0x39ba3e(),{rowInsertionRanges:_0x44423a,columnInsertionRanges:_0x243a57,insertionRanges:_0x4d2c4c,deletionRanges:_0x31cb51,cells:_0x4a8ee8}=_0x4e144f;_0x44423a['length']&&_0x2aadd0['markMultiRangeInsertion'](_0x44423a,'tablePasteRow',{'tablePasteChainId':_0x2ffc96}),_0x243a57['length']&&_0x2aadd0['markMultiRangeInsertion'](_0x243a57,'tablePasteColumn',{'tablePasteChainId':_0x2ffc96}),_0x4d2c4c['length']&&(_0x2aadd0['markMultiRangeInsertion'](_0x4d2c4c,'tablePaste',{'tablePasteChainId':_0x2ffc96,'skipNestingCheck':!0x0}),_0x4d2c4c['forEach'](_0x589c97=>_0x589c97['detach']?.())),_0x31cb51['length']&&(_0x2aadd0['markMultiRangeDeletion'](_0x31cb51,'tablePaste',{'tablePasteChainId':_0x2ffc96,'skipNestingCheck':!0x0}),_0x31cb51['forEach'](_0xc74c52=>_0xc74c52['detach']?.()));const _0x120c03=_0x2aadd0['markMultiRangeBlockFormat'](_0x4a8ee8['map'](({element:_0x55cc82})=>_0x55cc82),{'formatGroupId':_0x39ba3e()},[],'tablePasteCell',{'tablePasteChainId':_0x2ffc96});if(_0x120c03){const _0x22c7b5=_0x120c03['getMarkers'](),_0x370ef7=[];for(const {element:_0xf663ec,attributes:_0x4a1f18}of _0x4a8ee8){if(!_0x4a1f18)continue;const _0x19e47e=_0x5622e3['model']['createRangeOn'](_0xf663ec),_0x2e8045=_0x22c7b5['find'](_0x3be2d4=>_0x3be2d4['getRange']()['isEqual'](_0x19e47e));_0x2e8045&&_0x370ef7['push']([_0x2e8045['name'],_0x4a1f18]);}_0x370ef7['length']&&_0x120c03['setAttribute']('markerAttributes',Object['fromEntries'](_0x370ef7));}_0x4e144f=null;}));},{'priority':_0x144da7['high']+0xa}),_0x5622e3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x543aa6,_0x2c6e3e)=>{const [_0x33fd2f,_0x17ee95,,_0x19026]=_0x2c6e3e;if(!_0x4e144f)return;_0x543aa6['stop']();const _0x1db3f4=_0x33fd2f['cell'],_0x3d85ee=_0x17ee95,_0x3f98af=Oe(_0x1db3f4),_0x4c7674=Oe(_0x3d85ee);_0x543aa6['return']=_0x1db3f4;let _0x511966=null,_0x15cb4b=null;if(_0x4c7674||_0x3f98af){if(_0x3f98af&&!_0x4c7674){_0x19026['remove'](_0x1db3f4['getChild'](0x0));for(const _0x2645e8 of Array['from'](_0x3d85ee['getChildren']()))_0x19026['insert'](_0x2645e8,_0x1db3f4,'end');const _0x3401c5=_0x4e144f['rowInsertionIndexes']['includes'](_0x33fd2f['row']),_0x103c1a=_0x4e144f['columnInsertionIndexes']['includes'](_0x33fd2f['column']);_0x3401c5||_0x103c1a||(_0x511966=_0x1e09a5['fromRange'](_0x19026['createRangeIn'](_0x1db3f4)));}else _0x4c7674&&!_0x3f98af&&(_0x15cb4b=_0x19026['createRangeIn'](_0x1db3f4));}else{const _0x531ce5=_0x19026['createElement']('tableCellSuggestion'),_0x264f05=_0x19026['createElement']('tableCellSuggestion');_0x19026['wrap'](_0x19026['createRangeIn'](_0x1db3f4),_0x264f05),_0x19026['insert'](_0x531ce5,_0x1db3f4,0x0);for(const _0x4ce107 of Array['from'](_0x3d85ee['getChildren']()))_0x19026['insert'](_0x4ce107,_0x531ce5,'end');_0x511966=_0x1e09a5['fromRange'](_0x19026['createRangeOn'](_0x531ce5)),_0x15cb4b=_0x1e09a5['fromRange'](_0x19026['createRangeOn'](_0x264f05));}const _0x273a0c=Array['from'](_0x3d85ee['getAttributes']())['filter'](([_0x167729])=>Be['includes'](_0x167729));_0x4e144f['cells']['push']({'element':_0x1db3f4,'attributes':_0x273a0c['length']?Object['fromEntries'](_0x273a0c):null}),_0x511966&&_0x4e144f['insertionRanges']['push'](_0x511966),_0x15cb4b&&_0x4e144f['deletionRanges']['push'](_0x15cb4b);},{'priority':'high'}),_0x5aff5c['on']('insertColumns',(_0x2c8b41,_0x53c278)=>{const [_0x24807b,_0x53bba4={}]=_0x53c278;if(!_0x4e144f)return;const _0x1cef03=_0x53bba4['at']||0x0,_0x3f5183=_0x53bba4['columns']||0x1;_0x4e144f['columnInsertionIndexes']=new Array(_0x3f5183)['fill'](_0x1cef03)['map']((_0x38b9ad,_0x5b9562)=>_0x38b9ad+_0x5b9562);for(const {cell:_0x3498aa}of _0x5aff5c['createTableWalker'](_0x24807b,{'startColumn':_0x1cef03,'endColumn':_0x1cef03+_0x3f5183-0x1}))_0x4e144f['columnInsertionRanges']['push'](_0x5622e3['model']['createRangeOn'](_0x3498aa));},{'priority':'low'}),_0x5aff5c['on']('insertRows',(_0x4538d7,_0x2da96f)=>{const [_0x21306e,_0x3404da={}]=_0x2da96f;if(!_0x4e144f)return;const _0x571369=_0x3404da['at']||0x0,_0x1a4a94=_0x3404da['rows']||0x1;_0x4e144f['rowInsertionIndexes']=new Array(_0x1a4a94)['fill'](_0x571369)['map']((_0x5e79b7,_0x5c396d)=>_0x5e79b7+_0x5c396d);for(const {cell:_0x448d30}of _0x5aff5c['createTableWalker'](_0x21306e,{'startRow':_0x571369,'endRow':_0x571369+_0x1a4a94-0x1}))_0x4e144f['rowInsertionRanges']['push'](_0x5622e3['model']['createRangeOn'](_0x448d30));},{'priority':'low'}),_0x2aadd0['descriptionFactory']['registerDescriptionCallback'](_0x51a914=>{if(_0x51a914['subType']&&_0x51a914['subType']['startsWith']('tablePaste'))return _0x51a914['previous']?{}:{'type':'insertion','content':o(_0x5622e3['locale'],'*Replace\x20table\x20cells*')};});const _0x2870b6=()=>!0x1;for(const _0x4ca428 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2aadd0['_suggestionFactory']['registerCustomCallback']('insertion',_0x4ca428,'join',_0x2870b6),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('deletion',_0x4ca428,'join',_0x2870b6),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ca428,'join',_0x2870b6);_0x2aadd0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2870b6),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa2d4f9,_0x48385d,_0x246ffd)=>{const _0xd62aeb=_0xa2d4f9['map'](_0x609712=>_0x609712['getContainedElement']())['filter'](_0x3dc378=>_0x3dc378),_0x33e81a=new Map(_0xd62aeb['map'](_0x1c2b1f=>[_0x1c2b1f,null]));if(_0x4e144f){for(const {element:_0x57fc02,attributes:_0x19e1cb}of _0x4e144f['cells'])_0x19e1cb&&_0x33e81a['set'](_0x57fc02,_0x19e1cb);}else{if(_0x246ffd&&_0x246ffd['markerAttributes'])for(const [_0x297439,_0x5b47df]of Object['entries'](_0x246ffd['markerAttributes'])){const _0x3acd95=_0x5622e3['model']['markers']['get'](_0x297439),_0x19117a=_0x3acd95?_0x3acd95['getRange']()['getContainedElement']():null;_0x19117a&&_0x33e81a['set'](_0x19117a,_0x5b47df);}}_0x5622e3['model']['change'](_0x23473b=>{for(const [_0x485e69,_0x2d1b9e]of _0x33e81a)_0x23473b['setAttributes']({...xe,..._0x2d1b9e},_0x485e69);});});const _0x3dbf65=(_0x1460d4,_0xffe2ad)=>{_0x2aadd0['_suggestionFactory']['registerCustomCallback'](_0x1460d4,'tablePaste',_0xffe2ad,(_0x5319ef,_0x26577c,_0x1fd104)=>{_0x5622e3['model']['change'](_0x5916bc=>{const _0x55bbb7=[];for(const _0x7648ac of _0x5319ef){const _0x3912d0=_0x7648ac['start']['nodeAfter'];_0x3912d0['is']('element','tableCellSuggestion')&&_0x55bbb7['push'](_0x3912d0);}_0x2aadd0['_suggestionFactory']['getSuggestionCallback'](_0x1460d4,null,_0xffe2ad)(_0x5319ef,_0x26577c,_0x1fd104);for(const _0x2a940f of _0x55bbb7)'$graveyard'!=_0x2a940f['root']['rootName']&&_0x5916bc['unwrap'](_0x2a940f);});});};_0x3dbf65('insertion','accept'),_0x3dbf65('insertion','discard'),_0x3dbf65('deletion','accept'),_0x3dbf65('deletion','discard'),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a06d9=>{const _0x69d730=_0x2a06d9['map'](_0x4d02f0=>_0x4d02f0['getContainedElement']()),_0x965c47=_0x69d730[0x0]['findAncestor']('table'),{minRow:_0x19d218,maxRow:_0x2d8831}=_0x34f823['_getCoordsForCells'](_0x69d730);_0x5aff5c['removeRows'](_0x965c47,{'at':_0x19d218,'rows':_0x2d8831-_0x19d218+0x1});}),_0x2aadd0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x288946=>{const _0x49f31a=_0x288946['map'](_0x4b6546=>_0x4b6546['getContainedElement']()),_0x395ebd=_0x49f31a[0x0]['findAncestor']('table'),{minColumn:_0x38df76,maxColumn:_0x420a71}=_0x34f823['_getCoordsForCells'](_0x49f31a);_0x5aff5c['removeColumns'](_0x395ebd,{'at':_0x38df76,'columns':_0x420a71-_0x38df76+0x1});});const _0xb61cdc=(_0x48e1bd,_0x5c691a)=>{if(!_0x5c691a['subType']||!_0x5c691a['subType']['startsWith']('tablePaste'))return;const _0x58eb7a=_0x5c691a['attributes']['tablePasteChainId'],_0x16d349=_0x2aadd0['getSuggestions']()['filter'](_0x1f4745=>_0x1f4745['isInContent']&&_0x1f4745['attributes']&&_0x1f4745['attributes']['tablePasteChainId']==_0x58eb7a);_0x16d349['length']&&_0x5c691a['getAllAdjacentSuggestions']()['length']!=_0x16d349['length']&&_0x16d349['reduce']((_0x28eab6,_0x390fce)=>(_0x28eab6['next']=_0x390fce,_0x390fce['previous']=_0x28eab6,_0x390fce));};function _0x511428(_0x586e6e,_0x28f6f5=!0x0){const {id:_0x23a9fe,authorId:_0x46f58f}=_0x2aadd0['_splitMarkerName'](_0x586e6e['markerName']),_0x205570=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x220afd=_0x2aadd0['activeMarkers']['includes'](_0x586e6e['markerName']);return _0x220afd&&_0x205570['push']('ck-suggestion-marker--active'),{'classes':_0x205570,'attributes':{'data-suggestion':_0x23a9fe,'data-author-id':_0x46f58f},'priority':_0x220afd&&_0x28f6f5?0xbc2:0xbb8};}_0x2aadd0['on']('suggestionLoaded',_0xb61cdc,{'priority':'high'}),_0x2aadd0['on']('suggestionUnloaded',_0xb61cdc,{'priority':'high'}),_0x5622e3['model']['document']['registerPostFixer'](()=>{let _0x36d655=!0x1;const _0x25b269=Array['from'](_0x5622e3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3654f1,data:_0x1a38e3}of _0x25b269){const {group:_0xdc8042,type:_0x16ac71,id:_0x295da1}=_0x2aadd0['_splitMarkerName'](_0x3654f1);if('suggestion'!=_0xdc8042||'deletion'!=_0x16ac71||_0x1a38e3['oldRange'])continue;if(!_0x2aadd0['hasSuggestion'](_0x295da1))continue;const _0x4cbe23=_0x2aadd0['getSuggestion'](_0x295da1)['getRanges'](),_0x15a476=_0x5622e3['plugins']['get']('Users')['me'];for(const _0x51280e of _0x2aadd0['getSuggestions']()){if(!_0x51280e['isInContent']||_0x51280e['author']!=_0x15a476)continue;if('formatBlock'!=_0x51280e['type']||'tablePasteCell'!=_0x51280e['subType'])continue;if(_0x51280e['getRanges']()['every'](_0xbeb0eb=>_0x4cbe23['some'](_0xe7553d=>_0xe7553d['containsRange'](_0xbeb0eb,!0x0)))){for(const _0x4a8e2a of _0x51280e['getAllAdjacentSuggestions']())_0x4a8e2a['isInContent']&&(_0x4a8e2a['discard'](),_0x36d655=!0x0);}}}return _0x36d655;}),_0x5622e3['model']['document']['registerPostFixer'](_0xdd2f10=>{const _0x5a589e=_0x5622e3['commands']['get']('redo');if(!_0x5a589e||!_0x5a589e['_createdBatches']['has'](_0xdd2f10['batch']))return!0x1;let _0x33ab94=!0x1;const _0x218d21=_0x5622e3['plugins']['get']('Users')['me'],_0x1b92b5=_0x5622e3['model']['document']['differ']['getChanges'](),_0x203917=Array['from'](_0x5622e3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4715cf,data:_0x44eb30})=>{const {group:_0x54a6bc,subType:_0x4cf5a3,authorId:_0xb998ec}=_0x2aadd0['_splitMarkerName'](_0x4715cf);return'suggestion'==_0x54a6bc&&'tablePaste'==_0x4cf5a3&&_0xb998ec==_0x218d21['id']&&!_0x44eb30['oldRange'];});for(const _0x3eb193 of _0x1b92b5){if('insert'!=_0x3eb193['type']||'tableCellSuggestion'!=_0x3eb193['name']||0x1!=_0x3eb193['length'])continue;const _0x2f4e67=_0xdd2f10['createRange'](_0x3eb193['position'],_0x3eb193['position']['getShiftedBy'](0x1));if(!_0x203917['find'](({data:_0x142ccd})=>_0x142ccd['newRange']['isEqual'](_0x2f4e67))){for(const {name:_0x3787d6,data:_0x5524a2}of _0x203917)if(_0x2f4e67['containsRange'](_0x5524a2['newRange'])){_0xdd2f10['updateMarker'](_0x3787d6,{'range':_0x2f4e67}),_0x33ab94=!0x0;break;}}}return _0x33ab94;}),_0x5622e3['model']['document']['registerPostFixer'](_0x38b7eb=>{let _0x139490=!0x1;const _0x96f620=_0x5622e3['plugins']['get']('Users')['me'],_0x3d281d=_0x2aadd0['getSuggestions']()['filter'](_0x521a72=>_0x521a72['isInContent']&&_0x521a72['author']==_0x96f620),_0x5dc35a=new Set(),_0x40f965=new Set();for(const _0x11b5c8 of _0x3d281d)if('tablePaste'==_0x11b5c8['subType'])for(const _0x25e800 of _0x11b5c8['getMarkers']()){const _0x32c5f6=_0x25e800['getRange']()['getContainedElement']();if(_0x32c5f6){if(_0x32c5f6['is']('element','tableCellSuggestion')&&Oe(_0x32c5f6)){_0x11b5c8['removeMarker'](_0x25e800['name']),_0x5dc35a['add'](_0x32c5f6),_0x139490=!0x0;const _0x948d39=_0x32c5f6['nextSibling'],_0x2bb3be=_0x32c5f6['previousSibling'],_0xc3e4a1=_0x948d39&&_0x948d39['is']('element','tableCellSuggestion'),_0x59a783=_0x2bb3be&&_0x2bb3be['is']('element','tableCellSuggestion');_0xc3e4a1&&!_0x5dc35a['has'](_0x948d39)&&_0x40f965['add'](_0x948d39),_0x59a783&&!_0x5dc35a['has'](_0x2bb3be)&&_0x40f965['add'](_0x2bb3be);}else _0x32c5f6['is']('element','paragraph')&&_0x32c5f6['isEmpty']&&(_0x11b5c8['removeMarker'](_0x25e800['name']),_0x139490=!0x0);}}else{if('tablePasteCell'==_0x11b5c8['subType']){if(!_0x11b5c8['attributes']||!_0x11b5c8['attributes']['tablePasteChainId'])continue;const _0x3288d0=_0x11b5c8['attributes']['markerAttributes'];if(_0x3288d0&&Object['keys'](_0x3288d0)['length'])continue;const _0x35fbb3=_0x11b5c8['attributes']['tablePasteChainId'];let _0x4386fe=!0x0,_0x227f20=!0x0;for(const _0x4f9b2e of _0x3d281d)if(_0x4f9b2e['subType']&&_0x4f9b2e['subType']['startsWith']('tablePaste')){if(!_0x4f9b2e['attributes']['tablePasteChainId']){_0x227f20=!0x1;break;}if(_0x4f9b2e['id']!=_0x11b5c8['id']&&_0x4f9b2e['attributes']['tablePasteChainId']==_0x35fbb3){_0x4386fe=!0x1;break;}}_0x227f20&&_0x4386fe&&(_0x11b5c8['removeMarkers'](),_0x139490=!0x0);}}for(const _0x1645e3 of _0x5dc35a)_0x38b7eb['remove'](_0x1645e3);for(const _0x178829 of _0x40f965)_0x38b7eb['unwrap'](_0x178829);return _0x139490;}),_0x5622e3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x19ae24=>_0x511428(_0x19ae24),'converterPriority':'high'}),_0x5622e3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b8b93,_0x13b10e)=>_0x13b10e['options']['showSuggestionHighlights']?_0x511428(_0x3b8b93,!0x1):null,'converterPriority':'high'});const _0x92e1ea=_0x5622e3['editing']['view'];this['listenTo'](_0x92e1ea['document'],'clipboardOutput',(_0x110754,_0x5f582b)=>{const _0xf340b6=[];for(const _0x421e24 of _0x92e1ea['createRangeIn'](_0x5f582b['content'])['getItems']())_0x421e24['is']('element','suggestion-td')&&_0xf340b6['push'](_0x421e24);_0x92e1ea['change'](_0x25e527=>{for(const _0x5ad815 of _0xf340b6)_0x25e527['move'](_0x25e527['createRangeIn'](_0x5ad815),_0x25e527['createPositionBefore'](_0x5ad815)),_0x25e527['remove'](_0x5ad815);});});}}function Oe(_0x955892){if(_0x955892['isEmpty'])return!0x0;const _0x35caa5=_0x955892['getChild'](0x0);return _0x35caa5['is']('element','paragraph')&&_0x35caa5['isEmpty'];}function Ue(_0x162df8,_0x1548b4={},_0x466bbb){for(const {isAnchor:_0x328f82,cellHeight:_0x3addee,cellWidth:_0x294dbc}of _0x466bbb['createTableWalker'](_0x162df8,{'includeAllSlots':!0x0,..._0x1548b4}))if(!_0x328f82||0x1!=_0x3addee||0x1!=_0x294dbc)return!0x1;return!0x0;}class Dt extends _0x5d6d85{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x79b54f=this['editor']['plugins']['get']('TrackChangesEditing');_0x79b54f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x79b54f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x79b54f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x79b54f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x79b54f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x79b54f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5b9727,_0x195e6b){const _0x4352a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ab06=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4a0c3e=_0x195e6b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x139664=_0x35ab06['getColumnGroupElement'](_0x4a0c3e);let _0xecd73e=_0x139664?_0x35ab06['getTableColumnsWidths'](_0x139664):null,_0x51339d=_0x4a0c3e['getAttribute']('tableWidth')||null;const _0x1e56e0=_0x195e6b['tableWidth']||_0x51339d,_0x47cf72=_0x195e6b['columnWidths']||_0xecd73e,_0x35e6da=this['editor']['plugins']['get']('Users')['me'];for(const _0x19c9ab of _0x4352a7['getSuggestions']()){const _0x5bf363=_0x19c9ab['getContainedElement']();if('resizeTable'===_0x19c9ab['subType']&&_0x5bf363===_0x4a0c3e){_0x19c9ab['author']!==_0x35e6da&&_0x19c9ab['discard']();const _0x5f265d=_0x19c9ab['data']['commandParams'];_0x51339d=_0x5f265d[0x0]['tableWidth'],_0xecd73e=_0x5f265d[0x0]['columnWidths'];break;}}_0x5b9727({'table':_0x4a0c3e,'tableWidth':_0x1e56e0,'columnWidths':_0x47cf72}),_0x4352a7['markBlockFormat'](_0x4a0c3e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x51339d,'columnWidths':_0xecd73e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x38aa1a){if('formatBlock'!=_0x38aa1a['type']&&'formatInline'!=_0x38aa1a['type'])return;const {data:_0xd8a8d2}=_0x38aa1a;if(_0xd8a8d2&&'resizeTable'===_0xd8a8d2['formatGroupId']){const _0x359816='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x359816)};}}}class Mt extends _0x5d6d85{['afterInit'](){const _0x2cf554=this['editor'];_0x2cf554['plugins']['has']('Template')&&_0x2cf554['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x5d6d85{['afterInit'](){const _0x23310b=this['editor'];if(!_0x23310b['commands']['get']('insertTableOfContents'))return;_0x23310b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x52c3c6=_0x23310b['plugins']['get']('TrackChangesEditing'),_0x4c69d6=_0x23310b['locale'];_0x52c3c6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x586be8=>o(_0x4c69d6,'ELEMENT_TABLE_OF_CONTENTS',_0x586be8));}}class Bt extends _0x5d6d85{['afterInit'](){const _0x15d953=this['editor'];if(!_0x15d953['plugins']['has']('Title'))return;const _0x3f3f96=_0x15d953['plugins']['get']('TrackChangesEditing');_0x3f3f96['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x15d953['locale'],'ELEMENT_TITLE')),_0x15d953['model']['document']['registerPostFixer'](_0x43df81=>{let _0x2f0aa6=!0x1;const _0x5155ea=Array['from'](_0x15d953['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49caff,data:_0x5ecc57}of _0x5155ea){const {group:_0x4554c9}=_0x3f3f96['_splitMarkerName'](_0x49caff);if('suggestion'!==_0x4554c9||!_0x5ecc57['newRange'])continue;const _0x1c8782=_0x5ecc57['newRange'],_0x20c4df=_0x1c8782['end']['nodeBefore'];if(!_0x20c4df||!_0x20c4df['is']('element','title-content'))continue;if(!_0x1c8782['start']['isTouching'](_0x1c8782['end']))continue;const _0x319f50=_0x15d953['model']['schema']['getNearestSelectionRange'](_0x1c8782['end'],'forward');if(_0x319f50&&_0x319f50['isCollapsed']){const _0x2ee696=_0x43df81['createRange'](_0x1c8782['start'],_0x319f50['start']);_0x2ee696['isEqual'](_0x1c8782)||(_0x43df81['updateMarker'](_0x49caff,{'range':_0x2ee696}),_0x2f0aa6=!0x0);}_0x2f0aa6||(_0x43df81['removeMarker'](_0x49caff),_0x2f0aa6=!0x0);}return _0x2f0aa6;});}}class Ot extends _0x5d6d85{['afterInit'](){const _0x12a806=this['editor'],_0x52d7b2=_0x12a806['plugins']['get']('TrackChangesEditing');_0x12a806['plugins']['has']('Uploadcare')&&(_0x52d7b2['enableCommand']('uploadcare'),_0x12a806['plugins']['has']('UploadcareImageEdit')&&(_0x52d7b2['enableCommand']('uploadcareImageEdit'),_0x52d7b2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x52d7b2['registerBlockAttribute']('uploadcareImageId'),_0x52d7b2['descriptionFactory']['registerDescriptionCallback'](_0x4cc4b8=>{if('attribute'!=_0x4cc4b8['type'])return;const {data:_0x4567c8}=_0x4cc4b8;return _0x4567c8&&'uploadcareImageId'==_0x4567c8['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x5d6d85{['afterInit'](){const _0x5c80d6=this['editor'],_0x587a41=_0x5c80d6['plugins']['get']('TrackChangesEditing');_0x5c80d6['plugins']['has']('UndoEditing')&&(_0x587a41['enableCommand']('undo'),_0x587a41['enableCommand']('redo'));}}class Tt extends _0x5d6d85{static get['requires'](){return[vt];}['afterInit'](){const _0x1b4205=this['editor'];if(!_0x1b4205['plugins']['has']('TableCaptionEditing'))return;_0x1b4205['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x5d6d85{['tableProperties'];['tableCellProperties'];constructor(_0x5d5043){super(_0x5d5043),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 _0x2bbd03=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x286d46 of this['tableProperties'])_0x2bbd03['enableCommand'](_0x286d46,(_0x5c2d94,_0x158d0b)=>{const _0x428bbf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x286d46,[_0x428bbf],this['tableProperties'],'tableProperties',_0x5c2d94,_0x158d0b);});_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2bbd03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x538666,_0x3bb842)=>this['handleDiscardAction'](this['tableProperties'],_0x538666,_0x3bb842)),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa55cc of this['tableCellProperties'])_0x2bbd03['enableCommand'](_0xa55cc,(_0x35a34e,_0x522a2e)=>{const _0x13fe4f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa55cc,_0x13fe4f,this['tableCellProperties'],'tableCellProperties',_0x35a34e,_0x522a2e);});_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2bbd03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x35a81c,_0x13c5e8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x35a81c,_0x13c5e8)),_0x2bbd03['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2bbd03['descriptionFactory']['registerDescriptionCallback'](_0x49c6be=>this['handleSuggestionDescription'](_0x49c6be));}['_handlePropertyChange'](_0x3e440b,_0x28711e,_0x36d351,_0x1bdcdb,_0x38e4ca,_0x1f6ca9){const _0x12ae2d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f6ca9['batch'],()=>{for(const _0x38ed13 of _0x28711e){if(this['_getSuggestion'](_0x38ed13,_0x1bdcdb))_0x38e4ca(_0x1f6ca9);else{const _0x1fb3aa={};for(const _0x490dc0 of _0x36d351){const _0x596ddf=_0x38ed13['getAttribute'](_0x490dc0);void 0x0!==_0x596ddf&&(_0x1fb3aa[_0x490dc0]=_0x596ddf);}_0x38e4ca(_0x1f6ca9),_0x12ae2d['markBlockFormat'](_0x38ed13,{'commandParams':[_0x1fb3aa]},[],_0x1bdcdb);}}});}['handleDiscardAction'](_0x5a92c1,_0x4cc17b,_0x2c14c5){const _0x2c2359=_0x4cc17b[0x0]['start']['nodeAfter'],_0x202f16=_0x2c14c5['commandParams'][0x0];this['editor']['model']['change'](_0x125670=>{for(const _0x2f7ba1 of _0x5a92c1)void 0x0!==_0x202f16[_0x2f7ba1]?_0x125670['setAttribute'](_0x2f7ba1,_0x202f16[_0x2f7ba1],_0x2c2359):_0x125670['removeAttribute'](_0x2f7ba1,_0x2c2359);});}['handleSuggestionDescription'](_0x5ad4dd){if(_0x5ad4dd['data'])switch(_0x5ad4dd['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'](_0x4bc4bb,_0x525222){const _0x188f7b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x184291 of _0x188f7b['getSuggestions']({'skipNotAttached':!0x0})){const _0x51d917=_0x184291['getContainedElement']();if(_0x184291['subType']===_0x525222&&_0x51d917===_0x4bc4bb)return _0x184291;}return null;}}const m='$elementName';class p extends _0x5d6d85{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xc8e4c,_0x5cc16f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f77fb){super(_0x1f77fb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57f06f,_0x453ee6,_0xf57ca3,_0x54daeb)=>{this['_model']['change'](()=>{for(const _0x4263ed of[..._0x54daeb,..._0xf57ca3])this['_model']['markers']['has'](_0x4263ed)&&_0x1f77fb['editing']['reconvertMarker'](_0x4263ed);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f77fb['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(),_0x1f77fb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f77fb['config']['get']('trackChanges.trackFormatChanges'),_0x1f77fb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f77fb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1f77fb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x169d26=this['editor'],_0x4d7bde=(_0x1e131a,_0x1d702b)=>{if('attribute'!=_0x1e131a)return'ck-suggestion-marker-'+_0x1e131a;const _0xca4721=_0x1d702b['split']('|')[0x0];return this['_isBlockAttribute'](_0xca4721)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x169d26['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x30dc73=>{const {id:_0x49907c,authorId:_0x5f55b3,type:_0x7ecc84,subType:_0xc63db0}=this['_splitMarkerName'](_0x30dc73['markerName']),_0x5bd667=['ck-suggestion-marker',_0x4d7bde(_0x7ecc84,_0xc63db0)];let _0x37370e=0xbb8;return this['activeMarkers']['includes'](_0x30dc73['markerName'])&&(_0x5bd667['push']('ck-suggestion-marker--active'),_0x37370e=0xbc2),'deletion'==_0x7ecc84&&(_0x37370e+=0x5),{'classes':_0x5bd667,'attributes':{'data-suggestion':_0x49907c,'data-author-id':_0x5f55b3},'priority':_0x37370e};}}),_0x169d26['conversion']['for']('dataDowncast')['add'](_0x26775c=>{_0x26775c['on']('addMarker:suggestion',(_0xa7de18,_0x8a5aa0,_0x2ccf55)=>{if(!_0x2ccf55['options']['showSuggestionHighlights'])return;const _0x5916d3=_0x8a5aa0['item'];if(!_0x5916d3)return;const _0x20ba93=_0x2ccf55['mapper']['toViewElement'](_0x5916d3);_0x169d26['model']['schema']['isObject'](_0x5916d3)&&_0x20ba93&&!_0x20ba93['getCustomProperty']('widget')&&_0x20ba93['is']('containerElement')&&_0xf74619(_0x20ba93,_0x2ccf55['writer']);},{'priority':'high'});}),_0x169d26['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2428ef,_0x40c6a6)=>{if(!_0x40c6a6['options']['showSuggestionHighlights'])return null;const {type:_0x40abc2,subType:_0x5253e6}=this['_splitMarkerName'](_0x2428ef['markerName']);return{'classes':['ck-suggestion-marker',_0x4d7bde(_0x40abc2,_0x5253e6)],'priority':0xbb8};}});const _0x525caa=({showActiveMarkers:_0x1a7746=!0x0,isAttributeSuggestion:_0x4b75eb=!0x1}={})=>(_0x1dc742,_0x4243fb,_0x5328ec)=>{if(!_0x4243fb['item'])return;const {id:_0x1d4568,authorId:_0x362014}=this['_splitMarkerName'](_0x4243fb['markerName']);if(_0x4b75eb){const _0x591525=this['_suggestions']['get'](_0x1d4568),_0x43dd9a=this['_getAttributeKey'](_0x591525);if(!this['_isBlockAttribute'](_0x43dd9a))return;}if(_0x4243fb['item']['is']('selection'))return void _0x5328ec['consumable']['consume'](_0x4243fb['item'],_0x1dc742['name']);const _0xb7710e=_0x5328ec['mapper']['toViewElement'](_0x4243fb['item']);if(_0x4243fb['item']['is']('element')&&_0x169d26['model']['schema']['isBlock'](_0x4243fb['item'])&&!_0xb7710e['getCustomProperty']('addHighlight')){_0x5328ec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb7710e),_0x5328ec['writer']['setAttribute']('data-suggestion',_0x1d4568,_0xb7710e),_0x5328ec['writer']['setAttribute']('data-author-id',_0x362014,_0xb7710e),_0x5328ec['mapper']['bindElementToMarker'](_0xb7710e,_0x4243fb['markerName']),_0x1a7746&&(this['activeMarkers']['includes'](_0x4243fb['markerName'])?_0x5328ec['writer']['addClass']('ck-suggestion-marker--active',_0xb7710e):_0x5328ec['writer']['removeClass']('ck-suggestion-marker--active',_0xb7710e));for(const _0x2bdadf of _0x169d26['model']['createRangeIn'](_0x4243fb['item'])['getItems']())_0x5328ec['consumable']['consume'](_0x2bdadf,_0x1dc742['name']);_0x5328ec['consumable']['consume'](_0x4243fb['item'],_0x1dc742['name']);}};_0x169d26['conversion']['for']('dataDowncast')['add'](_0x281a48=>{_0x281a48['on']('addMarker:suggestion:formatBlock',(_0x2e8eb2,_0x2fd3df,_0x5a522b)=>{_0x5a522b['options']['showSuggestionHighlights']&&_0x525caa({'showActiveMarkers':!0x1})(_0x2e8eb2,_0x2fd3df,_0x5a522b);},{'priority':'highest'});}),_0x169d26['conversion']['for']('dataDowncast')['add'](_0x3a52a6=>{_0x3a52a6['on']('addMarker:suggestion:attribute',(_0x50471b,_0x33599c,_0x1beefe)=>{_0x1beefe['options']['showSuggestionHighlights']&&_0x525caa({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x50471b,_0x33599c,_0x1beefe);},{'priority':'highest'});}),_0x169d26['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3f60c4,_0x2d782b)=>_0x2d782b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f60c4['substr'](0xb)}}),_0x169d26['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f2409,{writer:_0x42b551})=>{let _0x48520e='suggestion:'+_0x5f2409['getAttribute']('suggestion-type')+':'+_0x5f2409['getAttribute']('id');return _0x5f2409['getAttribute']('marker-count')&&(_0x48520e+=':'+_0x5f2409['getAttribute']('marker-count')),_0x42b551['createElement']('$marker',{'data-name':_0x48520e});}}),_0x169d26['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x2a3fb2=>{_0x2a3fb2['on']('addMarker:suggestion:formatBlock',_0x525caa(),{'priority':'high'});}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x3c5570=>{_0x3c5570['on']('addMarker:suggestion:attribute',_0x525caa({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x5a35c0=>{_0x5a35c0['on']('removeMarker:suggestion:formatBlock',(_0x4ebd6a,_0x1d91d6,_0x22dc8b)=>{const _0x5f2586=_0x22dc8b['mapper']['markerNameToElements'](_0x1d91d6['markerName']);if(_0x5f2586){for(const _0x3c92f8 of _0x5f2586)_0x3c92f8['getCustomProperty']('addHighlight')||(_0x22dc8b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c92f8),_0x22dc8b['writer']['removeAttribute']('data-suggestion',_0x3c92f8),_0x22dc8b['writer']['removeAttribute']('data-author-id',_0x3c92f8),_0x22dc8b['mapper']['unbindElementFromMarkerName'](_0x3c92f8,_0x1d91d6['markerName']));}},{'priority':'high'});}),_0x169d26['conversion']['for']('editingDowncast')['add'](_0x30562a=>{_0x30562a['on']('removeMarker:suggestion:attribute',(_0x5b1e5a,_0x558afd,_0x3baa7f)=>{const _0x34e0a9=_0x3baa7f['mapper']['markerNameToElements'](_0x558afd['markerName']);if(!_0x34e0a9)return;const {id:_0x2ffbfc}=this['_splitMarkerName'](_0x558afd['markerName']),_0x29948f=this['_suggestions']['get'](_0x2ffbfc),_0x3e9645=this['_getAttributeKey'](_0x29948f);if(this['_isBlockAttribute'](_0x3e9645)){for(const _0x3cc85d of _0x34e0a9)_0x3cc85d['getCustomProperty']('addHighlight')||(_0x3baa7f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3cc85d),_0x3baa7f['writer']['removeAttribute']('data-suggestion',_0x3cc85d),_0x3baa7f['writer']['removeAttribute']('data-author-id',_0x3cc85d),_0x3baa7f['mapper']['unbindElementFromMarkerName'](_0x3cc85d,_0x558afd['markerName']));}},{'priority':'high'});}),_0x169d26['model']['document']['registerPostFixer'](_0x364a12=>{let _0x5128cc=!0x1;const _0x516253=Array['from'](_0x169d26['model']['document']['differ']['getChangedMarkers']()),_0x19d5fb=new Set();for(const {name:_0x22b656,data:_0x354bff}of _0x516253){const {group:_0x340593,type:_0x421d25,subType:_0x1a5425,id:_0x41c5c4}=this['_splitMarkerName'](_0x22b656);if('suggestion'!==_0x340593)continue;const _0x1ce08d=this['_suggestions']['get'](_0x41c5c4);if(null!=_0x354bff['newRange']){'formatInline'==_0x421d25&&(_0x5128cc=_0x5128cc||Gt(_0x354bff['newRange'],_0x22b656,_0x364a12,_0x169d26['model']['schema']));const _0xc33fd='attribute'==_0x421d25&&this['_isBlockAttribute'](_0x1a5425['split']('|')[0x0]);if(_0x354bff['newRange']['isCollapsed']||'$graveyard'==_0x354bff['newRange']['root']['rootName']||'formatBlock'==_0x421d25&&!Lt(_0x354bff['newRange'])||_0xc33fd&&!Lt(_0x354bff['newRange'])||'deletion'==_0x421d25&&!(!Pt(_0x4a9f76=_0x354bff['newRange'])&&!function(_0x9c61d2){return _0x9c61d2['start']['parent']==_0x9c61d2['end']['nodeBefore']&&_0x9c61d2['start']['isAtEnd'];}(_0x4a9f76)))_0x364a12['removeMarker'](_0x22b656),_0x5128cc=!0x0;else{if(!_0x1ce08d||!_0x1ce08d['isInContent'])continue;if(_0x354bff['newRange']&&_0x354bff['oldRange']&&_0x354bff['newRange']['isEqual'](_0x354bff['oldRange']))continue;_0x19d5fb['add'](_0x1ce08d);}}}var _0x4a9f76;return _0x19d5fb['size']>0x0&&(_0x5128cc=!!this['_joinWithAdjacentSuggestions'](_0x19d5fb)||_0x5128cc),_0x5128cc;}),_0x169d26['model']['document']['registerPostFixer'](_0x1fc20c=>{let _0x54df96=!0x1;for(const _0x4d2ad7 of _0x169d26['model']['document']['differ']['getChanges']())if('insert'==_0x4d2ad7['type'])for(const _0x2a5715 of this['_suggestions']['values']()){if(_0x2a5715['isMultiRange']||!_0x2a5715['isInContent'])continue;const _0x4dd932='formatBlock'==_0x2a5715['type'],_0x41a3f4=this['_getAttributeKey'](_0x2a5715),_0xdf51d9=_0x41a3f4&&this['_isBlockAttribute'](_0x41a3f4);if(!_0x4dd932&&!_0xdf51d9)continue;const _0xf4ca=_0x2a5715['getFirstRange']();if(_0xf4ca['start']['parent']!=_0xf4ca['end']['parent']&&!_0xf4ca['end']['isAtEnd']){const _0x4d2d1c=_0x169d26['model']['createPositionAt'](_0xf4ca['start']['nodeAfter'],'end'),_0x1fc990=_0x169d26['model']['createRange'](_0xf4ca['start'],_0x4d2d1c);_0x1fc20c['updateMarker'](_0x2a5715['getFirstMarker'](),{'range':_0x1fc990}),_0x54df96=!0x0;}}return _0x54df96;}),_0x169d26['model']['document']['registerPostFixer'](_0x16a0a9=>this['_processAttributeChanges'](_0x16a0a9)),_0x169d26['model']['document']['registerPostFixer'](_0x2a5ed8=>!_0x2a5ed8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a5ed8)),_0x169d26['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x169d26['model']['document']['on']('change:data',(_0x56f85e,_0x1f300b)=>{if(!_0x1f300b['isLocal']||_0x1f300b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e48bc=_0x169d26['model']['document']['differ']['getChanges']();if(0x0==_0x2e48bc['length'])return;const _0x472c1f=[],_0x1f874=_0x2e48bc['filter'](_0x135716=>'attribute'==_0x135716['type']),_0x3596f7=_0x2e48bc['filter'](_0x249fa9=>'insert'==_0x249fa9['type']&&'$text'!=_0x249fa9['name']);for(const _0xbfc11b of _0x1f874)this['_isRegisteredAttribute'](_0xbfc11b['attributeKey'])&&_0x472c1f['push']({'key':_0xbfc11b['attributeKey'],'newValue':_0xbfc11b['attributeNewValue'],'oldValue':_0xbfc11b['attributeOldValue'],'range':Jt(_0xbfc11b['range'],_0x169d26['model'])});for(const _0xc69647 of _0x3596f7){if('rename'!=_0xc69647['action']&&'refresh'!=_0xc69647['action'])continue;const _0x391c80=Ht(_0xc69647['position']['nodeAfter'],_0x169d26['model']),_0x3f3e3e=_0xc69647['before'];'rename'==_0xc69647['action']&&_0x472c1f['push']({'key':m,'newValue':_0xc69647['name'],'oldValue':_0x3f3e3e['name'],'range':_0x391c80});for(const [_0x190f8f,_0x15ba20]of _0x3f3e3e['attributes']){if(!this['_isRegisteredAttribute'](_0x190f8f))continue;const _0x5e9d44=_0xc69647['attributes']['get'](_0x190f8f);_0x15ba20!==_0x5e9d44&&_0x472c1f['push']({'key':_0x190f8f,'newValue':_0x5e9d44,'oldValue':_0x15ba20,'range':_0x391c80});}for(const [_0x171c35,_0x290f1a]of _0xc69647['attributes'])this['_isRegisteredAttribute'](_0x171c35)&&(_0x3f3e3e['attributes']['has'](_0x171c35)||_0x472c1f['push']({'key':_0x171c35,'newValue':_0x290f1a,'oldValue':null,'range':_0x391c80}));}0x0!=_0x472c1f['length']&&_0x169d26['model']['enqueueChange'](_0x1f300b,_0x25c739=>{const _0x136bfe=_0x39ba3e();for(const {range:_0x2da94a,key:_0x43dbcd,oldValue:_0x213e3f,newValue:_0x46e76f}of _0x472c1f)this['markAttributeChange'](_0x2da94a,_0x43dbcd,_0x213e3f,_0x46e76f,{'groupId':_0x136bfe});this['_reduceExistingSuggestions'](_0x25c739,_0x472c1f);});},{'priority':'lowest'}),_0x169d26['model']['markers']['on']('update:suggestion',(_0x441540,_0x42e501,_0x1e80d1)=>{if(null==_0x1e80d1){const {id:_0x6ef999}=this['_splitMarkerName'](_0x42e501['name']),_0x45e82e=this['_suggestions']['get'](_0x6ef999);_0x45e82e&&_0x45e82e['addMarkerName'](_0x42e501['name']);}}),_0x169d26['model']['document']['on']('change:data',()=>{const _0x953531=Array['from'](_0x169d26['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14ceb6=>'suggestion'===this['_splitMarkerName'](_0x14ceb6['name'])['group']);if(0x0===_0x953531['length'])return;_0x953531['sort']((_0x41c127,_0x5468ac)=>{const _0x37a97a=_0x41c127['data']['oldRange'],_0x1c6c19=_0x5468ac['data']['oldRange'];return null===_0x37a97a&&null===_0x1c6c19?0x0:null===_0x37a97a&&null!==_0x1c6c19?-0x1:null!==_0x37a97a&&null===_0x1c6c19?0x1:_0x37a97a['start']['isBefore'](_0x1c6c19['start'])?-0x1:0x1;});const _0xef1e84=new Set(),_0x3df60b=new Set();for(const {name:_0x161ba5,data:_0x55ca0f}of _0x953531){const {id:_0x29f75c}=this['_splitMarkerName'](_0x161ba5);if(null===_0x55ca0f['oldRange']){const _0x5894a7=this['_handleNewSuggestionMarker'](_0x161ba5);_0x3df60b['add'](_0x5894a7);}else{const _0x914ecd=this['_suggestions']['get'](_0x29f75c);null!==_0x55ca0f['newRange']||_0x914ecd['isInContent']?(_0xef1e84['add'](_0x914ecd['head']),_0x3df60b['add'](_0x914ecd)):this['_removeSuggestion'](_0x914ecd);}}_0x3df60b['size']>0x0&&this['_refreshSuggestionsChain'](_0x3df60b);for(const _0x1cc61c of _0xef1e84)this['fire']('suggestionChanged',_0x1cc61c);}),_0x169d26['model']['on']('applyOperation',(_0x2122b9,_0xef7aab)=>{const _0x38863b=_0xef7aab[0x0];if(!this['_suggestions']['size'])return;if(!_0x38863b['isDocumentOperation'])return;if(_0x38863b['batch']['isUndo']||!_0x38863b['batch']['isLocal'])return;let _0x8f2f86,_0x64c247;switch(_0x38863b['type']){case'insert':_0x8f2f86=_0x169d26['model']['createPositionAt'](_0x38863b['position']),_0x64c247=_0x8f2f86['getShiftedBy'](_0x38863b['howMany']);break;case'split':_0x8f2f86=_0x169d26['model']['createPositionAt'](_0x38863b['splitPosition']),_0x64c247=_0x169d26['model']['createPositionAt'](_0x38863b['moveTargetPosition']);break;case'move':_0x8f2f86=_0x169d26['model']['createPositionAt'](_0x38863b['targetPosition']),_0x64c247=_0x8f2f86['getShiftedBy'](_0x38863b['howMany']);break;default:return;}const _0xbfcd00=_0x169d26['model']['createRange'](_0x8f2f86,_0x64c247);_0x169d26['model']['change'](()=>{for(const {suggestion:_0x10e2f3,meta:_0x393d01}of this['_findSuggestions'](_0xbfcd00)){if(_0x10e2f3['isMultiRange'])continue;if('formatInline'==_0x10e2f3['type'])continue;const _0x20f0ab=this['_getAttributeKey'](_0x10e2f3);if(_0x20f0ab&&this['_isBlockAttribute'](_0x20f0ab)&&'split'!=_0x38863b['type'])continue;const _0x1dc58e=_0x10e2f3['data']&&_0x10e2f3['data']['multipleBlocks'];('formatBlock'!=_0x10e2f3['type']||'split'==_0x38863b['type']&&!_0x1dc58e)&&(_0x393d01['containsRangeInObject']||'insertion'==_0x10e2f3['type']&&_0x393d01['isOwn']||_0x10e2f3['getFirstRange']()['containsRange'](_0xbfcd00)&&this['_breakSuggestionMarker'](_0x10e2f3,_0x8f2f86,_0x64c247));}});},{'priority':'lowest'}),_0x169d26['model']['on']('deleteContent',(_0x185652,_0x2b9da8)=>{const _0x48c23b=_0x2b9da8[0x0],_0x1d0bbe=_0x2b9da8[0x1];if(_0x1d0bbe&&_0x1d0bbe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48c23b['isCollapsed'])return;const _0x439255=_0x169d26['model']['schema'],{start:_0x269c38,end:_0x115774}=_0x48c23b['getFirstRange'](),_0x1606e3=_0x269c38['nodeAfter']&&_0x439255['isLimit'](_0x269c38['nodeAfter'])?null:_0x439255['getNearestSelectionRange'](_0x269c38,'forward'),_0x2c4963=_0x115774['nodeBefore']&&_0x439255['isLimit'](_0x115774['nodeBefore'])?null:_0x439255['getNearestSelectionRange'](_0x115774,'backward'),_0x4ca362=_0x169d26['model']['createRange'](_0x1606e3?_0x1606e3['start']:_0x269c38,_0x2c4963?_0x2c4963['end']:_0x115774);_0x169d26['model']['change'](_0x343f46=>{this['markDeletion'](_0x4ca362);const _0x5efbee=_0x169d26['model']['schema']['getNearestSelectionRange'](_0x4ca362['start']);_0x48c23b['is']('documentSelection')?_0x343f46['setSelection'](_0x5efbee):_0x48c23b['setTo'](_0x5efbee);}),_0x185652['stop']();},{'priority':_0x144da7['normal']+0xa}),_0x169d26['model']['on']('insertContent',(_0x55b250,_0xd5b77)=>{const _0x510dce=_0xd5b77[_0xd5b77['length']-0x1];_0x510dce&&_0x510dce['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x169d26['model']['change'](()=>{let _0x5755b8=_0x169d26['model']['insertContent'](_0xd5b77[0x0],_0xd5b77[0x1],_0xd5b77[0x2],{'forceDefaultExecution':!0x0});if(!_0x5755b8)return;_0x55b250['return']=_0x5755b8['clone']();const _0x4e9444=_0x5755b8['end']['nodeBefore'],_0x590ca1=_0x169d26['model']['schema'];_0x4e9444&&_0x590ca1['isBlock'](_0x4e9444)&&!_0x590ca1['isObject'](_0x4e9444)&&(_0x5755b8=_0x169d26['model']['createRange'](_0x5755b8['start'],_0x169d26['model']['createPositionAt'](_0x4e9444,'end'))),this['markInsertion'](_0x5755b8);}),_0x55b250['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x23a907=new O(_0x169d26,this['_suggestions']);_0x169d26['commands']['add']('acceptSuggestion',_0x23a907),this['enableCommand']('acceptSuggestion');const _0x524261=new R(_0x169d26,this['_suggestions']);_0x169d26['commands']['add']('discardSuggestion',_0x524261),this['enableCommand']('discardSuggestion'),_0x169d26['commands']['add']('acceptAllSuggestions',new x(_0x169d26,_0x23a907,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x169d26['commands']['add']('discardAllSuggestions',new x(_0x169d26,_0x524261,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x169d26['commands']['add']('acceptSelectedSuggestions',new E(_0x169d26,_0x23a907,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x169d26['commands']['add']('discardSelectedSuggestions',new E(_0x169d26,_0x524261,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2afff5=_0x169d26['plugins']['get']('CommentsRepository');this['listenTo'](_0x2afff5,'addComment',(_0x7d54a9,{threadId:_0x31d354})=>{const _0x220271=this['_suggestions']['get'](_0x31d354);_0x220271&&_0x220271['commentThread']&&0x1===_0x220271['commentThread']['length']&&this['_updateSuggestionData'](_0x31d354,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2afff5,'removeComment',(_0xf663d6,{threadId:_0x24cfa4})=>{const _0x52333a=this['_suggestions']['get'](_0x24cfa4);_0x52333a&&_0x52333a['commentThread']&&!_0x52333a['commentThread']['length']&&this['_updateSuggestionData'](_0x24cfa4,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2dcda9){const _0x5adec2=_0x424dd6([0x58,0x6f,0x48,0x4b,0x79,0x71,0x4a,0x6a,0x66,0x5a,0x54,0x32,0x34,0x64,0x39,0x63,0x30,0x33,0x46,0x67,0x52,0x6c,0x44,0x4d,0x50,0x47,0x73,0x41,0x38,0x55,0x6d,0x7a,0x70,0x51,0x35,0x37,0x6b,0x74,0x62,0x68,0x4e,0x6e,0x43,0x65,0x76,0x45,0x49,0x4f,0x72,0x77,0x53,0x69,0x56,0x59,0x36,0x4c,0x42,0x78,0x61,0x57,0x31,0x75]),_0x2a5335=0x583ce318,_0x245585=0x583bbdf0^_0x2a5335,_0x487d5a=window[_0x424dd6([0x44,0x61,0x74,0x65])][_0x424dd6([0x6e,0x6f,0x77])](),_0x356c35=_0x2dcda9[_0x424dd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f8465=new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a060e=>{_0x356c35[_0x424dd6([0x6f,0x6e,0x63,0x65])](_0x424dd6([0x72,0x65,0x61,0x64,0x79]),_0x3a060e);}),_0xae9638={[_0x424dd6([0x6b,0x74,0x79])]:_0x424dd6([0x45,0x43]),[_0x424dd6([0x75,0x73,0x65])]:_0x424dd6([0x73,0x69,0x67]),[_0x424dd6([0x63,0x72,0x76])]:_0x424dd6([0x50,0x2d,0x32,0x35,0x36]),[_0x424dd6([0x78])]:_0x424dd6([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]),[_0x424dd6([0x79])]:_0x424dd6([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]),[_0x424dd6([0x61,0x6c,0x67])]:_0x424dd6([0x45,0x53,0x32,0x35,0x36])},_0x1086c8=_0x356c35[_0x424dd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x424dd6([0x67,0x65,0x74])](_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x426bef(){let _0x2f9dd8,_0x5048d0=null,_0xf459ef=null;try{if(_0x1086c8==_0x424dd6([0x47,0x50,0x4c]))return _0x424dd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f9dd8=_0x572c77(),!_0x2f9dd8)return _0x424dd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f9dd8[_0x424dd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf459ef=_0x5b83b1(_0x2f9dd8[_0x424dd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f9dd8[_0x424dd6([0x6a,0x74,0x69])])),await _0x3d3945()?_0x28e3c5()?_0x6d79a4()?_0x424dd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19b66b()?(_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x424dd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5048d0=_0x1fd82c(_0x424dd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x424dd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5048d0=_0x1fd82c(_0x424dd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20217c()):_0x424dd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x424dd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x424dd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34edef){return _0x424dd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6d79a4(){const _0x5de9b0=[_0x424dd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x424dd6([0x74,0x72,0x69,0x61,0x6c])][_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x487d5a/0x3e8:0xe10*_0x245585;return _0x2f9dd8[_0x424dd6([0x65,0x78,0x70])]<_0x5de9b0;}function _0x28e3c5(){const _0x472eae=_0x2f9dd8[_0x424dd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x472eae)return!0x1;if(_0x472eae[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x2a])))return!0x0;if(_0x472eae[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x54,0x43])))return!0x0;if(_0x472eae[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x52,0x54,0x43]))){if(_0x446449())return!0x0;if(_0x17b943()||_0x1b3b33())return!0x0;}return!0x1;}function _0x19b66b(){const _0x28e0cf=_0x2f9dd8[_0x424dd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28e0cf||0x0==_0x28e0cf[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e121a}=new URL(window[_0x424dd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28e0cf[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e121a))return!0x0;const _0x325c7a=_0x5e121a[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e]));return _0x28e0cf[_0x424dd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b83d8=>_0x3b83d8[_0x424dd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x424dd6([0x2a])))[_0x424dd6([0x6d,0x61,0x70])](_0x77ba18=>_0x77ba18[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e])))[_0x424dd6([0x73,0x6f,0x6d,0x65])](_0x1e38c9=>_0x325c7a[_0x424dd6([0x65,0x76,0x65,0x72,0x79])]((_0x35a280,_0x5149d5)=>_0x1e38c9[_0x5149d5]===_0x35a280||_0x1e38c9[_0x5149d5]===_0x424dd6([0x2a])));}function _0x20217c(){return _0x5048d0&&_0xf459ef?new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe59e14,_0x437380)=>{_0x5048d0[_0x424dd6([0x74,0x68,0x65,0x6e])](_0xe59e14,_0x437380),_0xf459ef[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x2a8e57=>{_0x2a8e57!=_0x424dd6([0x56,0x61,0x6c,0x69,0x64])&&_0xe59e14(_0x2a8e57);},_0x437380);}):_0x5048d0||_0xf459ef||_0x424dd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b83b1(_0x4e46f2,_0x176c26){return new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x145929=>{if(_0x1d0972())return _0x145929(_0x424dd6([0x56,0x61,0x6c,0x69,0x64]));_0x58ff41(),_0x356c35[_0x424dd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x424dd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1bf343=!0x1;const _0x152a78=_0x39ba3e();function _0x2a8e84(_0x1f763b){return!!_0x1f763b&&(typeof _0x1f763b===_0x424dd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f763b===_0x424dd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f763b[_0x424dd6([0x74,0x68,0x65,0x6e])]===_0x424dd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f763b[_0x424dd6([0x63,0x61,0x74,0x63,0x68])]===_0x424dd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43931c(_0x5b7738){_0x5c86ad(_0x5b7738)[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x15f1a0=>{if(!_0x15f1a0||_0x15f1a0[_0x424dd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x424dd6([0x6f,0x6b]))return _0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52578a(_0x3d3e2c(_0x152a78+_0x176c26))!=_0x15f1a0[_0x424dd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x424dd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x21b4b4=>(_0x2e3665(),_0x21b4b4),()=>{const _0x220813=_0x4f373f();return null==_0x220813?(_0x2e3665(),_0x424dd6([0x56,0x61,0x6c,0x69,0x64])):_0x424dd6(_0x487d5a-_0x220813>(0x7c306718^_0x2a5335)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x145929)[_0x424dd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x145929(_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d776b=0x580a0d98^_0x2a5335;function _0x2e3665(){const _0x9fa237=_0x424dd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x52578a(_0x3d3e2c(_0x4e46f2)),_0x3ea922=_0x48a488(_0x52578a(window[_0x424dd6([0x4d,0x61,0x74,0x68])][_0x424dd6([0x63,0x65,0x69,0x6c])](_0x487d5a/_0x3d776b)));window[_0x424dd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x424dd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9fa237,_0x3ea922);}function _0x4f373f(){const _0x1d5788=_0x424dd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x52578a(_0x3d3e2c(_0x4e46f2)),_0x1e97d4=window[_0x424dd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x424dd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d5788);return _0x1e97d4?window[_0x424dd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48a488(_0x1e97d4),0x10)*_0x3d776b:null;}function _0x5c86ad(_0x581a4d){return new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a1ca7,_0xe4b6d7)=>{_0x581a4d[_0x424dd6([0x74,0x68,0x65,0x6e])](_0x4a1ca7,_0xe4b6d7),window[_0x424dd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe4b6d7,0x583d37d8^_0x2a5335);});}}_0x356c35[_0x424dd6([0x6f,0x6e])](_0x424dd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14a660,_0x1d8dd3)=>{if(_0x1d8dd3[0x0]!=_0x4e46f2)return _0x145929(_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d8dd3[0x1]={..._0x1d8dd3[0x1],[_0x424dd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x152a78};},{[_0x424dd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x424dd6([0x68,0x69,0x67,0x68])}),_0x356c35[_0x424dd6([0x6f,0x6e])](_0x424dd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47fd18=>{_0x2a8e84(_0x47fd18[_0x424dd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1bf343=!0x0,_0x43931c(_0x47fd18[_0x424dd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x424dd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x424dd6([0x6c,0x6f,0x77])}),_0x1f8465[_0x424dd6([0x74,0x68,0x65,0x6e])](()=>{_0x1bf343||_0x145929(_0x424dd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d0972(){return _0x356c35[_0x424dd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424dd6([0x76,0x69,0x65,0x77])][_0x424dd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x424dd6([0x61,0x75,0x74,0x6f]);}function _0x58ff41(){_0x356c35[_0x424dd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424dd6([0x76,0x69,0x65,0x77])][_0x424dd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x424dd6([0x61,0x75,0x74,0x6f]);}}function _0x1fd82c(_0x4e65ea){const _0x3d24d7=[new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37ac0b=>setTimeout(_0x37ac0b,0x5835ddd4^_0x2a5335)),_0x1f8465[_0x424dd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341e11=>{let _0x12f9ef=0x0;_0x356c35[_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x424dd6([0x6f,0x6e])](_0x424dd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5212b3,_0x568dc7)=>{_0x568dc7[0x0][_0x424dd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12f9ef++,_0x12f9ef==(0x583ce2e0^_0x2a5335)&&(_0x341e11(),_0x5212b3[_0x424dd6([0x6f,0x66,0x66])]());});}))];return window[_0x424dd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x424dd6([0x72,0x61,0x63,0x65])](_0x3d24d7)[_0x424dd6([0x74,0x68,0x65,0x6e])](()=>_0x4e65ea);}async function _0x75ca8(){await _0x1f8465,_0x356c35[_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x424dd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1454f4,_0x356c35[_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x424dd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1454f4,_0x356c35[_0x424dd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x424dd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x446449(){return _0x58c0df(_0x424dd6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47ce3b(_0x424dd6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x424dd6([0x73,0x74,0x61,0x74,0x65])]==_0x424dd6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x17b943(){return _0x58c0df(_0x424dd6([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 _0x1b3b33(){return _0x58c0df(_0x424dd6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e4f04(_0x28442a){const _0x3981ec=_0x59606c();_0x356c35[_0x3981ec]=_0x424dd6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28442a,_0x28442a!=_0x424dd6([0x56,0x61,0x6c,0x69,0x64])&&_0x75ca8();}function _0x59606c(){const _0x1fca5c=window[_0x424dd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x424dd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x424dd6([0x6e,0x6f,0x77])]())[_0x424dd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x424dd6([0x2e]),'');let _0x4d547f=_0x424dd6([0x58]);for(let _0x43afd3=0x0;_0x43afd3<_0x1fca5c[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43afd3+=0x2){let _0x590fd4=window[_0x424dd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fca5c[_0x424dd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43afd3,_0x43afd3+0x2));_0x590fd4>=_0x5adec2[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x590fd4-=_0x5adec2[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d547f+=_0x5adec2[_0x590fd4];}return _0x4d547f;}function _0x572c77(){const _0x1c45d4=_0x1086c8[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e]));if(0x3!=_0x1c45d4[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d8a8c(_0x1c45d4[0x1]);function _0x2d8a8c(_0x12ab21){const _0x499cc0=_0x15a0f8(_0x12ab21);return _0x499cc0&&_0x2e9e0c()?_0x499cc0:null;function _0x2e9e0c(){const _0xc3f39b=_0x499cc0[_0x424dd6([0x6a,0x74,0x69])],_0x48117b=window[_0x424dd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc3f39b[_0x424dd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc3f39b[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x263b54={..._0x499cc0,[_0x424dd6([0x6a,0x74,0x69])]:_0xc3f39b[_0x424dd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc3f39b[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x263b54[_0x424dd6([0x76,0x63])],_0x3d3e2c(_0x263b54)==_0x48117b;}}}async function _0x3d3945(){let _0x3473bd=!0x0;try{const _0x3851c2=_0x1086c8[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])](_0x424dd6([0x2e])),[_0x1b55a1,_0x3be817,_0x413b29]=_0x3851c2;return _0x2bff45(_0x1b55a1),await _0x2638e2(_0x1b55a1,_0x3be817,_0x413b29),_0x3473bd;}catch(_0x4c68c2){return!0x1;}function _0x2bff45(_0x1f45c2){const _0x1da69e=_0x15a0f8(_0x1f45c2);_0x1da69e&&_0x1da69e[_0x424dd6([0x61,0x6c,0x67])]==_0x424dd6([0x45,0x53,0x32,0x35,0x36])||(_0x3473bd=!0x1);}async function _0x2638e2(_0x395abb,_0x3713c2,_0x4fea07){const _0x52e74c=window[_0x424dd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x424dd6([0x66,0x72,0x6f,0x6d])](_0x1f52cb(_0x4fea07),_0x59286d=>_0x59286d[_0x424dd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c8180=new window[(_0x424dd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x424dd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x395abb+_0x424dd6([0x2e])+_0x3713c2),_0x397686=window[_0x424dd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x424dd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x397686)return;const _0x2af669=await _0x397686[_0x424dd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x424dd6([0x6a,0x77,0x6b]),_0xae9638,{[_0x424dd6([0x6e,0x61,0x6d,0x65])]:_0x424dd6([0x45,0x43,0x44,0x53,0x41]),[_0x424dd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x424dd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x424dd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x397686[_0x424dd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x424dd6([0x6e,0x61,0x6d,0x65])]:_0x424dd6([0x45,0x43,0x44,0x53,0x41]),[_0x424dd6([0x68,0x61,0x73,0x68])]:{[_0x424dd6([0x6e,0x61,0x6d,0x65])]:_0x424dd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2af669,_0x52e74c,_0x1c8180)||(_0x3473bd=!0x1);}}function _0x15a0f8(_0x15638e){return _0x15638e[_0x424dd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x424dd6([0x65,0x79]))?JSON[_0x424dd6([0x70,0x61,0x72,0x73,0x65])](_0x1f52cb(_0x15638e)):null;}function _0x1f52cb(_0x23df05){return window[_0x424dd6([0x61,0x74,0x6f,0x62])](_0x23df05[_0x424dd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x424dd6([0x2b]))[_0x424dd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x424dd6([0x2f])));}function _0x3d3e2c(_0x5ec454){let _0x15536f=0x1505;function _0x1c6f7a(_0x5874af){for(let _0xce3435=0x0;_0xce3435<_0x5874af[_0x424dd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xce3435++){const _0x550564=_0x5874af[_0x424dd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xce3435);_0x15536f=(_0x15536f<<0x5)+_0x15536f+_0x550564,_0x15536f&=_0x15536f;}}function _0xad4c46(_0x2d3099){Array[_0x424dd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d3099)?_0x2d3099[_0x424dd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xad4c46):_0x2d3099&&typeof _0x2d3099==_0x424dd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x424dd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d3099)[_0x424dd6([0x73,0x6f,0x72,0x74])]()[_0x424dd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x694849,_0x3d20bd])=>{_0x1c6f7a(_0x694849),_0xad4c46(_0x3d20bd);}):_0x1c6f7a(window[_0x424dd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d3099));}return _0xad4c46(_0x5ec454),_0x15536f>>>0x0;}function _0x52578a(_0xefb5c8){return _0xefb5c8[_0x424dd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x424dd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x424dd6([0x30]));}function _0x48a488(_0x5391c9){return _0x5391c9[_0x424dd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x424dd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x424dd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x58c0df(_0x1b346e){return _0x356c35[_0x424dd6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x424dd6([0x68,0x61,0x73])](_0x1b346e);}function _0x47ce3b(_0x2ce5ae){return _0x356c35[_0x424dd6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x424dd6([0x67,0x65,0x74])](_0x2ce5ae);}function _0x1454f4(){}function _0x424dd6(_0x169d99){return _0x169d99['map'](_0x1f4cba=>String['fromCharCode'](_0x1f4cba))['join']('');}_0x1e4f04(await _0x426bef());}(this);}set['adapter'](_0xe87479){if(this['_adapter'])throw new _0x29d5ac('track-changes-adapter-already-set',this);this['_adapter']=_0xe87479;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x32d25b=!0x1,toJSON:_0x29469e=!0x1}={}){const _0x3da750=[];for(const _0x3fca1a of this['_suggestions']['values']())_0x32d25b&&!_0x3fca1a['isInContent']||_0x3da750['push'](_0x3fca1a);return _0x29469e?_0x3da750['map'](_0x488143=>_0x488143['toJSON']()):_0x3da750;}['getSuggestion'](_0x5687a0){const _0x3ca476=this['_suggestions']['get'](_0x5687a0);if(!_0x3ca476)throw new _0x29d5ac('track-changes-suggestion-not-found',this);return _0x3ca476;}['hasSuggestion'](_0x2af7ab){return this['_suggestions']['has'](_0x2af7ab);}['addSuggestionData'](_0x5917de){const {authorId:_0x331f10,id:_0x55f3cc,attributes:_0xe7e66c}=_0x5917de,[_0x26096c,_0x117a38]=_0x5917de['type']['split'](':'),_0x46e548=this['_suggestions']['get'](_0x55f3cc)||this['_createSuggestion'](_0x26096c,_0x117a38,_0x55f3cc,_0x331f10,_0xe7e66c);if(this['_addThreadToSuggestion'](_0x46e548),this['_checkSuggestionCorrectness'](_0x46e548,_0x26096c,_0x117a38||null,_0x331f10),_0x46e548['createdAt']=_0x5917de['createdAt'],_0x46e548['_isDataLoaded']=!0x0,_0xe7e66c&&_0xe7e66c['@external']){const _0xdfba24=_0xe7e66c['@external'],_0x190512=this['_getExternalAuthor'](_0xdfba24['authorName']);_0x46e548['authoredAt']=_0xdfba24['createdAt'],_0x46e548['author']=_0x190512,_0x46e548['isExternal']=!0x0;}else _0x46e548['authoredAt']=_0x5917de['createdAt'];switch(_0x5917de['data']&&(_0x46e548['data']=_0x5917de['data']),_0x5917de['attributes']&&(_0x46e548['attributes']=_0x5917de['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46e548['_saved']=!0x0),this['_suggestionState']['get'](_0x46e548)){case'notReady':this['_suggestionState']['set'](_0x46e548,'dataReady');break;case'markerReady':_0x46e548['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46e548])),this['_refreshSuggestionsChain'](new Set([_0x46e548])),this['_suggestionState']['set'](_0x46e548,'ready'),this['fire']('suggestionLoaded',_0x46e548)):this['_suggestionState']['set'](_0x46e548,'removed');}return _0x46e548;}['acceptSuggestion'](_0x4ddf3a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x336d2b of _0x4ddf3a['getAllAdjacentSuggestions']())_0x336d2b['accept']();});});}['discardSuggestion'](_0x4136c9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c3193 of _0x4136c9['getAllAdjacentSuggestions']())_0x5c3193['discard']();});});}['enableCommand'](_0xe0cac5,_0x101a37){const _0x1d7048=this['editor']['commands']['get'](_0xe0cac5);if(!_0x1d7048)throw new _0x29d5ac('track-changes-command-not-found',this,{'commandName':_0xe0cac5});if(this['_enabledCommands']['has'](_0x1d7048))throw new _0x29d5ac('track-changes-enable-command-twice',this,{'commandName':_0xe0cac5});this['_enabledCommands']['add'](_0x1d7048),_0x101a37&&_0x1d7048['on']('execute',(_0x513848,_0x59181d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x59181d['length']>0x0&&_0x59181d[_0x59181d['length']-0x1]&&_0x59181d[_0x59181d['length']-0x1]['forceDefaultExecution']?_0x59181d['pop']():(_0x513848['return']=_0x101a37((..._0x55e795)=>_0x1d7048['execute'](..._0x55e795,{'forceDefaultExecution':!0x0}),..._0x59181d),_0x513848['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5730c1){let _0x4cddb9,_0x426f0a;const _0x550e18=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cddb9=_0x5730c1();}catch(_0x449fd6){_0x426f0a=_0x449fd6;}return _0x550e18||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x426f0a&&_0x29d5ac['rethrowUnexpectedError'](_0x426f0a,this),_0x4cddb9;}['markInsertion'](_0x2af155,_0x2df418=null,_0x5d9470={}){if(_0x2af155['isCollapsed'])return null;const _0x1a335a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3a2280,meta:_0x39c44f}of this['_findSuggestions'](_0x2af155,'insertion'))if(_0x39c44f['isOwn']){if(!_0x39c44f['isNextTo']){if(_0x39c44f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x3a2280,_0x5d9470))continue;return _0x3a2280;}if(Kt(_0x3a2280,_0x5d9470))return _0x3a2280;this['_breakSuggestionMarker'](_0x3a2280,_0x2af155['start'],_0x2af155['end']);break;}if(_0x2df418==_0x3a2280['subType']&&Kt(_0x3a2280,_0x5d9470)){const _0x559236=_0x3a2280['getFirstRange']();return _0x559236['start']['isEqual'](_0x2af155['end'])?this['_setSuggestionRange'](_0x3a2280,this['_model']['createRange'](_0x2af155['start'],_0x559236['end'])):this['_setSuggestionRange'](_0x3a2280,this['_model']['createRange'](_0x559236['start'],_0x2af155['end'])),_0x3a2280;}}const _0x4bee90=_0x39ba3e(),_0x48479c=_0x1a335a['id'],_0x1a21ee=_0x2df418?'insertion:'+_0x2df418:'insertion',_0x4a9ff7=this['_setSuggestionData']({'id':_0x4bee90,'type':_0x1a21ee,'createdAt':new Date(),'authorId':_0x48479c,'attributes':_0x5d9470});return this['_addSuggestionMarker'](_0x1a21ee,_0x4bee90,_0x48479c,_0x2af155),_0x4a9ff7;}['markMultiRangeInsertion'](_0xd7c27,_0x50fecf='multi',_0x57360d={}){const _0x2b6c22=this['editor']['plugins']['get']('Users')['me'],_0x3ac9fa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x50fecf,'join');for(const _0x52c0d9 of this['getSuggestions']())if(_0x52c0d9['author']['id']==_0x2b6c22['id']&&'insertion'==_0x52c0d9['type']&&_0x52c0d9['subType']==_0x50fecf&&Kt(_0x52c0d9,_0x57360d)&&(_0x3ac9fa(_0x52c0d9['getRanges'](),_0xd7c27)||_0x3ac9fa(_0xd7c27,_0x52c0d9['getRanges']()))){for(const _0x5819b7 of _0xd7c27)_0x52c0d9['addRange'](_0x5819b7);return _0x52c0d9;}for(const {suggestion:_0x2b2d3c,meta:_0x130a13}of this['_findSuggestions'](_0xd7c27,'insertion')){if(!_0x130a13['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x130a13['containsRangeInObject'])continue;if(!Kt(_0x2b2d3c,_0x57360d))continue;let _0x55c25e=!0x0;for(const _0x48ea33 of _0x2b2d3c['getRanges']())for(const _0x3783d4 of _0xd7c27)if(!_0x48ea33['containsRange'](_0x3783d4)){_0x55c25e=!0x1;break;}if(_0x55c25e)return _0x2b2d3c;}const _0x22d8b5=_0x39ba3e(),_0x3b3d25=_0x2b6c22['id'],_0x55897='insertion:'+_0x50fecf,_0x54ca76=this['_setSuggestionData']({'id':_0x22d8b5,'type':_0x55897,'createdAt':new Date(),'authorId':_0x3b3d25,'attributes':_0x57360d});for(const _0x757086 of _0xd7c27)this['_addSuggestionMarker'](_0x55897,_0x22d8b5,_0x3b3d25,_0x757086,u['getMultiRangeId']());return _0x54ca76;}['markInlineFormat'](_0x470c10,_0x394898,_0x49ca38=null,_0x53f4cf={}){if(_0x49ca38=_0x49ca38||Ft(_0x394898),_0x470c10['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a23f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49ca38,'accept');return this['forceDefaultExecution'](()=>_0x5a23f([_0x470c10],_0x394898,_0x53f4cf)),null;}const _0x32670c=this['editor']['plugins']['get']('Users')['me'],_0x5b429e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35efcc,meta:_0xc333aa}of this['_findSuggestions'](_0x470c10,'insertion'))_0xc333aa['isOwn']&&!_0xc333aa['isInsideObject']&&_0x5b429e['push'](..._0x35efcc['getRanges']());}const _0x32e007=function(_0x127d39,_0x1b269e){const _0x25ccf1=[];for(const _0x370d5d of _0x1b269e){const _0x4f7a9e=_0x127d39['getIntersection'](_0x370d5d);_0x4f7a9e&&_0x25ccf1['push'](_0x4f7a9e);}return _0x25ccf1;}(_0x470c10,_0x5b429e),_0x2b0a15=function(_0x4a5679,_0x314bc6){const _0x1c528d=[_0x4a5679];for(const _0x3d06a4 of _0x314bc6){let _0x4d8f89=0x0;for(;_0x4d8f89<_0x1c528d['length'];){const _0x3aded8=_0x1c528d[_0x4d8f89]['getDifference'](_0x3d06a4);_0x1c528d['splice'](_0x4d8f89,0x1,..._0x3aded8),_0x4d8f89+=_0x3aded8['length'];}}return _0x1c528d;}(_0x470c10,_0x5b429e);_0x32e007['length']&&this['_model']['change'](()=>{for(const _0x115462 of _0x32e007){const _0x190a15=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49ca38,'accept');this['forceDefaultExecution'](()=>_0x190a15([_0x115462],_0x394898,_0x53f4cf));}});for(const _0x405e99 of _0x2b0a15){let _0x9fa9e8=null,_0x2d174c=_0x405e99['start'],_0x123451=_0x405e99['end'];for(const {suggestion:_0x444256,meta:_0x28a1ed}of this['_findSuggestions'](_0x405e99,'formatInline')){if(!_0x28a1ed['isOwn'])continue;if(_0x444256['subType']!=_0x49ca38)continue;if(!Kt(_0x444256,_0x53f4cf))continue;const _0x2eaa3b=_0x444256['getFirstRange']();if(_0x2eaa3b['containsRange'](_0x405e99,!0x0))return null;_0x2d174c=_0x2d174c['isBefore'](_0x2eaa3b['start'])?_0x2d174c:_0x2eaa3b['start'],_0x123451=_0x123451['isAfter'](_0x2eaa3b['end'])?_0x123451:_0x2eaa3b['end'],_0x9fa9e8?_0x2eaa3b['start']['isBefore'](_0x9fa9e8['getFirstRange']()['start'])?(_0x9fa9e8['removeMarkers'](),_0x9fa9e8=_0x444256):_0x444256['removeMarkers']():_0x9fa9e8=_0x444256;}const _0x3d19e0=this['_model']['createRange'](_0x2d174c,_0x123451);if(_0x9fa9e8)this['_setSuggestionRange'](_0x9fa9e8,_0x3d19e0);else{const _0x5496d5=_0x39ba3e(),_0x16aa16=_0x32670c['id'];this['_setSuggestionData']({'id':_0x5496d5,'type':'formatInline:'+_0x49ca38,'data':_0x394898,'createdAt':new Date(),'authorId':_0x16aa16,'attributes':_0x53f4cf}),this['_addSuggestionMarker']('formatInline:'+_0x49ca38,_0x5496d5,_0x16aa16,_0x3d19e0);}}return null;}['markBlockFormat'](_0x3a4a1a,_0x45e06f,_0x47675a=[],_0x451a66=null,_0x100fdf={}){_0x45e06f['formatGroupId']||(_0x45e06f['formatGroupId']=_0x45e06f['commandName']),_0x45e06f['multipleBlocks']=_0x3a4a1a['is']('range'),_0x451a66=_0x451a66||Ft(_0x45e06f);const _0x1c96a4=_0x47675a['map'](_0x1c63a2=>Ht(_0x1c63a2,this['_model'])),_0x260cc8=_0x3a4a1a['is']('range')?_0x3a4a1a:Ht(_0x3a4a1a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3f7685=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x451a66,'accept');return this['forceDefaultExecution'](()=>_0x3f7685([_0x260cc8],_0x45e06f,_0x100fdf)),null;}_0x1c96a4['push'](_0x260cc8);let _0x9912f3=!0x0;for(const _0x3f3739 of _0x1c96a4)if(!this['_rangeIsInLocalUserInsertion'](_0x3f3739)){_0x9912f3=!0x1;break;}if(_0x9912f3&&'always'!==this['_trackFormatChanges']){const _0x57ad1a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x451a66,'accept');return this['forceDefaultExecution'](()=>_0x57ad1a([_0x260cc8],_0x45e06f,_0x100fdf)),null;}let _0x3133a4=null,_0x563a07=_0x260cc8['start'],_0x2ce424=_0x260cc8['end'];for(const {suggestion:_0x2038f1,meta:_0x1e3866}of this['_findSuggestions'](_0x260cc8,'formatBlock')){if(!_0x1e3866['isOwn'])continue;if(_0x1e3866['isNextTo']||_0x1e3866['containsRangeInObject']||_0x1e3866['isInsideObject'])continue;if(_0x2038f1['data']['formatGroupId']!=_0x45e06f['formatGroupId'])continue;if(!Kt(_0x2038f1,_0x100fdf))continue;const _0x168d80=_0x2038f1['getFirstRange']();if(_0x2038f1['subType']==_0x451a66){if(_0x168d80['containsRange'](_0x260cc8,!0x0))return null;_0x563a07=_0x563a07['isBefore'](_0x168d80['start'])?_0x563a07:_0x168d80['start'],_0x2ce424=_0x2ce424['isAfter'](_0x168d80['end'])?_0x2ce424:_0x168d80['end'],_0x3133a4?_0x168d80['start']['isBefore'](_0x3133a4['getFirstRange']()['start'])?(_0x3133a4['removeMarkers'](),_0x3133a4=_0x2038f1):_0x2038f1['removeMarkers']():_0x3133a4=_0x2038f1;}else{const _0x508218=_0x260cc8['getIntersection'](_0x168d80);this['_cutOutSuggestionMarker'](_0x2038f1,_0x508218);}}const _0x270512=this['editor']['plugins']['get']('Users')['me'],_0x5d0fb4=_0x39ba3e(),_0x42fb9a=_0x270512['id'];if(_0x3133a4)return this['_setSuggestionRange'](_0x3133a4,this['_model']['createRange'](_0x563a07,_0x2ce424)),_0x3133a4;{const _0x5a0619=this['_setSuggestionData']({'id':_0x5d0fb4,'type':'formatBlock:'+_0x451a66,'data':_0x45e06f,'createdAt':new Date(),'authorId':_0x42fb9a,'attributes':_0x100fdf});return this['_addSuggestionMarker']('formatBlock:'+_0x451a66,_0x5d0fb4,_0x42fb9a,this['_model']['createRange'](_0x563a07,_0x2ce424)),_0x5a0619;}}['markMultiRangeBlockFormat'](_0x2e0a51,_0xd7617e,_0x387b77=[],_0x5b1712=null,_0x243d84={}){_0xd7617e['formatGroupId']||(_0xd7617e['formatGroupId']=_0xd7617e['commandName']);const _0x321ced=_0x2e0a51[0x0];_0xd7617e['multipleBlocks']=_0x321ced['is']('range'),_0x5b1712=_0x5b1712||Ft(_0xd7617e);const _0x35bd65=_0x387b77['map'](_0x5b6413=>Ht(_0x5b6413,this['_model'])),_0x464e37=_0x321ced['is']('range')?_0x2e0a51:_0x2e0a51['map'](_0x2854d0=>Ht(_0x2854d0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x454e28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b1712,'accept');return this['forceDefaultExecution'](()=>_0x454e28(_0x464e37,_0xd7617e,_0x243d84)),null;}_0x35bd65['push'](..._0x464e37);let _0x5c3771=!0x0;for(const _0x3a435f of _0x35bd65)if(!this['_rangeIsInLocalUserInsertion'](_0x3a435f)){_0x5c3771=!0x1;break;}if(_0x5c3771&&'always'!==this['_trackFormatChanges']){const _0x4b3d93=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b1712,'accept');return this['forceDefaultExecution'](()=>_0x4b3d93(_0x464e37,_0xd7617e,_0x243d84)),null;}const _0x24e61=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ca2fe of this['getSuggestions']()){if(_0x3ca2fe['author']['id']!=_0x24e61['id'])continue;if('formatBlock'!=_0x3ca2fe['type']||_0x3ca2fe['data']['formatGroupId']!=_0xd7617e['formatGroupId'])continue;if(!Kt(_0x3ca2fe,_0x243d84))continue;const _0x291edb=_0x3ca2fe['subType']==_0x5b1712;for(let _0x4a417e=0x0;_0x4a417e<_0x464e37['length'];_0x4a417e++){const _0x52c18f=_0x464e37[_0x4a417e];for(const _0x152cb8 of _0x3ca2fe['getMarkers']()){const _0x8779b0=_0x152cb8['getRange']();if(_0x52c18f['isEqual'](_0x8779b0)){_0x291edb?(_0x464e37['splice'](_0x4a417e,0x1),_0x4a417e--):_0x3ca2fe['removeMarker'](_0x152cb8['name']);break;}}}}if(0x0==_0x464e37['length'])return null;const _0x205f9d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b1712,'join');for(const _0x51755a of this['getSuggestions']())if(_0x51755a['author']['id']==_0x24e61['id']&&'formatBlock'==_0x51755a['type']&&_0x51755a['data']['formatGroupId']==_0xd7617e['formatGroupId']&&_0x51755a['subType']==_0x5b1712&&Kt(_0x51755a,_0x243d84)&&(_0x205f9d(_0x51755a['getRanges'](),_0x464e37)||_0x205f9d(_0x464e37,_0x51755a['getRanges']()))){for(const _0x77e46e of _0x464e37)_0x51755a['addRange'](_0x77e46e);return _0x51755a;}const _0x3cf1de=_0x39ba3e(),_0x495efd=_0x24e61['id'],_0x3b07e7='formatBlock:'+_0x5b1712,_0x4f1cd4=this['_setSuggestionData']({'id':_0x3cf1de,'type':_0x3b07e7,'data':_0xd7617e,'createdAt':new Date(),'authorId':_0x495efd,'attributes':_0x243d84});for(const _0x55a1e4 of _0x464e37)this['_addSuggestionMarker'](_0x3b07e7,_0x3cf1de,_0x495efd,_0x55a1e4,u['getMultiRangeId']());return _0x4f1cd4;}['markDeletion'](_0x312fd0,_0xa80230=null,_0x49111b={}){if(_0x312fd0['isCollapsed'])return null;const _0x4a91b7=this['editor']['plugins']['get']('Users')['me'],_0x578d30=new _0x1e09a5(_0x312fd0['start'],_0x312fd0['end']);for(const {suggestion:_0x2d8913,meta:_0x1f08b9}of this['_findSuggestions'](_0x578d30,'insertion'))if(_0x1f08b9['isOwn']&&!_0x1f08b9['isNextTo']){if(_0x2d8913['isMultiRange']){const _0x1e33c3=_0x2d8913['getRanges']()['filter'](_0x5267df=>'$graveyard'!=_0x5267df['root']['rootName']);_0x1e33c3['every'](_0x1607ca=>_0x578d30['containsRange'](_0x1607ca,!0x0))&&_0x2d8913['discard']();if(_0x1e33c3['some'](_0xc1acdf=>_0xc1acdf['containsRange'](_0x578d30,!0x0))){const _0x49d031=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa80230,'accept');return this['forceDefaultExecution'](()=>_0x49d031([_0x578d30],null,_0x49111b)),null;}}else{const _0x29739a=_0x578d30['getIntersection'](_0x2d8913['getFirstRange']());null!==_0x29739a&&_0x2d8913['_onDiscard']([_0x29739a],null,_0x49111b);}}if(_0x578d30['detach'](),_0x578d30['isCollapsed']||'$graveyard'==_0x578d30['root']['rootName'])return null;let _0x2e3679=null,_0x23d8b9=_0x578d30['start'],_0x2565df=_0x578d30['end'];const _0xa9ed16=this['_findSuggestions'](_0x578d30,'deletion');for(const {suggestion:_0xc7369c,meta:_0x1ba503}of _0xa9ed16){const _0x53f789=this['_model']['createRange'](_0x23d8b9,_0x2565df);if(_0x1ba503['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ba503['containsRangeInObject']&&!_0x1ba503['isInsideObject'])){if(_0xc7369c['isMultiRange']){if(!Kt(_0xc7369c,_0x49111b))continue;let _0xd53b2c=!0x0;for(const _0x1ac2e2 of _0xc7369c['getRanges']()){if(_0x1ac2e2['containsRange'](_0x53f789,!0x0))return _0xc7369c;_0x53f789['containsRange'](_0x1ac2e2)||(_0xd53b2c=!0x1);}_0xd53b2c&&_0xc7369c['discard']();}else{const _0x124edd=_0xc7369c['getFirstRange']();if(_0x124edd['containsRange'](_0x53f789,!0x0))return _0xc7369c;if(!Kt(_0xc7369c,_0x49111b)){_0x53f789['containsRange'](_0x124edd)?_0xc7369c['removeMarkers']():_0x124edd['containsPosition'](_0x23d8b9)?_0x23d8b9=_0x124edd['end']:_0x124edd['containsPosition'](_0x2565df)&&(_0x2565df=_0x124edd['start']);continue;}_0x23d8b9=_0x23d8b9['isBefore'](_0x124edd['start'])?_0x23d8b9:_0x124edd['start'],_0x2565df=_0x2565df['isAfter'](_0x124edd['end'])?_0x2565df:_0x124edd['end'],_0x49111b=Object['assign']({},_0xc7369c['attributes']),_0x2e3679?_0x124edd['start']['isBefore'](_0x2e3679['getFirstRange']()['start'])?(_0x2e3679['removeMarkers'](),_0x2e3679=_0xc7369c):_0xc7369c['removeMarkers']():_0x2e3679=_0xc7369c;}}}if(_0x2e3679)return this['_setSuggestionRange'](_0x2e3679,this['_model']['createRange'](_0x23d8b9,_0x2565df)),_0x2e3679;{const _0x5e0f59=_0x39ba3e(),_0x1170dc=this['_model']['createRange'](_0x23d8b9,_0x2565df),_0x598fcc=_0x4a91b7['id'],_0x266a3d=_0xa80230?'deletion:'+_0xa80230:'deletion',_0x40878d=this['_setSuggestionData']({'id':_0x5e0f59,'type':_0x266a3d,'createdAt':new Date(),'authorId':_0x598fcc,'attributes':_0x49111b});return this['_addSuggestionMarker'](_0x266a3d,_0x5e0f59,_0x598fcc,_0x1170dc),_0x40878d;}}['markMultiRangeDeletion'](_0x2f3a0c,_0x4b1962='multi',_0x3d4962={}){const _0x379212=this['editor']['plugins']['get']('Users')['me'],_0x135e2c=_0x2f3a0c['map'](_0x4e3af4=>new _0x1e09a5(_0x4e3af4['start'],_0x4e3af4['end'])),_0x49d556=new Set();for(const {suggestion:_0x77839,meta:_0x4e5c96}of this['_findSuggestions'](_0x135e2c,'insertion'))_0x4e5c96['isOwn']&&!_0x4e5c96['isNextTo']&&_0x49d556['add'](_0x77839);for(const _0x53f938 of _0x49d556)if(_0x53f938['isMultiRange']){const _0x1376ff=_0x53f938['getRanges']();(!_0x53f938['attributes']||!_0x53f938['attributes']['skipNestingCheck'])&&(_0x1376ff['every'](_0x1d0419=>_0x135e2c['some'](_0x4b449b=>_0x4b449b['containsRange'](_0x1d0419,!0x0)))&&_0x53f938['discard']());if(_0x135e2c['every'](_0xac676=>_0x1376ff['some'](_0x4dc44f=>_0x4dc44f['containsRange'](_0xac676,!0x0)))){const _0x39d638=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1962,'accept');return this['forceDefaultExecution'](()=>_0x39d638(_0x2f3a0c,null,_0x3d4962)),null;}}else{const _0x1621dd=_0x53f938['getFirstRange']();_0x135e2c['some'](_0x24e731=>_0x24e731['containsRange'](_0x1621dd,!0x0))&&_0x53f938['discard']();if(_0x135e2c['every'](_0x2ab8ac=>_0x1621dd['containsRange'](_0x2ab8ac,!0x0))){const _0x4bb9ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1962,'accept');return this['forceDefaultExecution'](()=>_0x4bb9ca(_0x135e2c,null,_0x3d4962)),null;}}const _0x3d176f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1962,'join');let _0x796ee1=null;for(const _0xc167ca of this['getSuggestions']())if(_0xc167ca['author']['id']==_0x379212['id']&&_0xc167ca['isInContent']&&'deletion'==_0xc167ca['type']&&_0xc167ca['subType']==_0x4b1962&&Kt(_0xc167ca,_0x3d4962)&&(_0x3d176f(_0xc167ca['getRanges'](),_0x135e2c)||_0x3d176f(_0x135e2c,_0xc167ca['getRanges']()))){if(_0x796ee1){if(_0xc167ca['commentThread']&&_0xc167ca['commentThread']['length'])continue;for(const _0x4d8a4a of _0xc167ca['getRanges']())_0x796ee1['isIntersectingWithRange'](_0x4d8a4a)||_0x796ee1['addRange'](_0x4d8a4a);_0xc167ca['removeMarkers']();}else{_0x796ee1=_0xc167ca;for(const _0x20074a of _0x135e2c)_0xc167ca['isIntersectingWithRange'](_0x20074a)||_0xc167ca['addRange'](_0x20074a);}}if(_0x796ee1)return _0x796ee1;_0x49d556['clear']();for(const {suggestion:_0x1dfab9,meta:_0x571efc}of this['_findSuggestions'](_0x135e2c,'deletion'))_0x571efc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x571efc['containsRangeInObject']&&!_0x571efc['isInsideObject'])&&Kt(_0x1dfab9,_0x3d4962)&&_0x49d556['add'](_0x1dfab9);for(const _0x1beb8e of _0x49d556){const _0x254bc2=_0x1beb8e['getRanges']();if(!_0x3d4962||!_0x3d4962['skipNestingCheck']){if(_0x135e2c['every'](_0x2ae9f1=>_0x254bc2['some'](_0x2bd5e9=>_0x2bd5e9['containsRange'](_0x2ae9f1,!0x0))))return _0x1beb8e;}(!_0x1beb8e['attributes']||!_0x1beb8e['attributes']['skipNestingCheck'])&&(_0x254bc2['every'](_0xb5b67b=>_0x135e2c['some'](_0x3f495e=>_0x3f495e['containsRange'](_0xb5b67b,!0x0)))&&_0x1beb8e['discard']());}const _0x4c61d0=_0x39ba3e(),_0x5c2711=_0x379212['id'],_0x2fb5c6='deletion:'+_0x4b1962,_0x40a135=this['_setSuggestionData']({'id':_0x4c61d0,'type':_0x2fb5c6,'createdAt':new Date(),'authorId':_0x5c2711,'attributes':_0x3d4962});for(const _0x244bfa of _0x135e2c)_0x244bfa['detach'](),_0x244bfa['isCollapsed']||'$graveyard'==_0x244bfa['root']['rootName']||this['_addSuggestionMarker'](_0x2fb5c6,_0x4c61d0,_0x5c2711,_0x244bfa,u['getMultiRangeId']());return _0x40a135;}['markAttributeChange'](_0xf26b0c,_0x4bee56,_0x2b592d,_0x5da676,_0x3200d3){if(_0xf26b0c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x59aded=this['editor']['plugins']['get']('Users')['me']['id'],_0x362fa=Array['from'](this['_suggestions']['values']())['filter'](_0x1f12e1=>'attribute'==_0x1f12e1['type']&&_0x1f12e1['data']['key']==_0x4bee56&&_0x1f12e1['isIntersectingWithRange'](_0xf26b0c));if('default'===this['_trackFormatChanges']){const _0x407b05=this['_findSuggestions'](_0xf26b0c,'insertion')['filter'](({meta:_0x51fd44})=>_0x51fd44['isOwn']&&!_0x51fd44['isInsideObject']&&!_0x51fd44['isNextTo'])['map'](({suggestion:_0x309cac})=>_0x309cac);_0x362fa['unshift'](..._0x407b05);}const _0x407357=new Map([[_0xf26b0c,_0x2b592d]]);for(const _0x36d0cd of _0x362fa){const _0x41f9ee='attribute'==_0x36d0cd['type']?_0x36d0cd['data']['oldValue']:void 0x0,_0x1661e6=_0x36d0cd['getFirstRange'](),_0x5ddc84=Array['from'](_0x407357['keys']())['find'](_0x3d30c4=>_0x3d30c4['isIntersecting'](_0x1661e6));if(!_0x5ddc84)continue;const _0x2c3044=_0x5ddc84['getDifference'](_0x1661e6);this['_isBlockAttribute'](_0x4bee56)&&'insertion'==_0x36d0cd['type']&&0x0!=_0x2c3044['length']||(_0x407357['delete'](_0x5ddc84),_0x2c3044['forEach'](_0x356750=>{_0x407357['set'](_0x356750,_0x2b592d);}),'insertion'!=_0x36d0cd['type']&&_0x41f9ee!=_0x5da676&&_0x407357['set'](_0x5ddc84['getIntersection'](_0x1661e6),_0x41f9ee));}const _0x7b4ebf=[];for(const [_0x2aef68,_0xdd3e16]of _0x407357){const _0x514a48=_0x39ba3e(),_0x571fa1={'key':_0x4bee56,'oldValue':_0xdd3e16,'newValue':_0x5da676};_0x4bee56['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':_0x4bee56});const _0x2d1eef=('attribute:'+(_0x4bee56+'|'+Ft({'newValue':_0x5da676})))['substring'](0x0,0x3c),_0xabea8e=this['_setSuggestionData']({'id':_0x514a48,'type':_0x2d1eef,'data':_0x571fa1,'createdAt':new Date(),'authorId':_0x59aded,'attributes':_0x3200d3});_0x7b4ebf['push'](_0xabea8e),this['_addSuggestionMarker'](_0x2d1eef,_0x514a48,_0x59aded,_0x2aef68);}return _0x7b4ebf;}['enableDefaultAttributesIntegration'](_0x4f7f5f){this['enableCommand'](_0x4f7f5f,(_0x3b3650,..._0xf1ddc4)=>{this['_recordAttributeChanges'](()=>{_0x3b3650(..._0xf1ddc4);});});}['registerBlockAttribute'](_0x598545){this['_blockAttributeKeys']['add'](_0x598545);}['registerInlineAttribute'](_0x579fa4){this['_inlineAttributeKeys']['add'](_0x579fa4);}['_getAttributeKey'](_0x404f4f){return'attribute'==_0x404f4f['type']?_0x404f4f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x587d2b,_0x133839){const _0x40fe51=_0x587d2b['getFirstMarker']();this['_model']['change'](_0x3f0591=>{_0x3f0591['updateMarker'](_0x40fe51,{'range':_0x133839});});}['_addThreadToSuggestion'](_0x404e9){const _0x11e915=_0x404e9['id'],_0x17b3fa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x11e915)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17b3fa,'threadId':_0x11e915,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x416adf=this['_commentsRepository']['getCommentThread'](_0x11e915);_0x416adf['unbind']('isRemovable'),_0x416adf['isRemovable']=!0x1,_0x404e9['commentThread']=_0x416adf;}['_checkSuggestionCorrectness'](_0x521ea2,_0x2c33bc,_0xf74b82,_0x2926e4){if(_0x521ea2['type']!=_0x2c33bc||_0x521ea2['subType']!=_0xf74b82||_0x521ea2['creator']['id']!=_0x2926e4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x29d5ac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c7493,_0x438e87){const _0x4b13e2=_0x1c7493['getFirstRange']();if(_0x438e87['isEqual'](_0x4b13e2))_0x1c7493['removeMarkers']();else{if(_0x4b13e2['containsRange'](_0x438e87)){const _0x4d65cf=this['_model']['createPositionAt'](_0x438e87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c7493,this['_model']['createRange'](_0x4b13e2['start'],_0x4d65cf));const _0x4ee6b7=_0x39ba3e(),_0x253979=_0x1c7493['creator']['id'],_0x424cc6=_0x1c7493['type']+':'+_0x1c7493['subType'];this['_setSuggestionData']({'id':_0x4ee6b7,'type':_0x424cc6,'createdAt':new Date(),'authorId':_0x253979,'data':_0x1c7493['data'],'attributes':_0x1c7493['attributes']});const _0x2dd312=this['_model']['createPositionAt'](_0x438e87['end']['parent'],'after'),_0x460b25=this['_model']['createRange'](_0x2dd312,_0x4b13e2['end']);this['_addSuggestionMarker'](_0x424cc6,_0x4ee6b7,_0x253979,_0x460b25);}else{if(_0x4b13e2['containsPosition'](_0x438e87['start'])){const _0x3e0449=this['_model']['createPositionAt'](_0x438e87['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c7493,this['_model']['createRange'](_0x4b13e2['start'],_0x3e0449));}else{const _0x3901a3=this['_model']['createPositionAt'](_0x438e87['end']['parent'],'after');this['_setSuggestionRange'](_0x1c7493,this['_model']['createRange'](_0x3901a3,_0x4b13e2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b2e4b){for(const {suggestion:_0x10085f,meta:_0x2e2522}of this['_findSuggestions'](_0x3b2e4b,'insertion')){if(!_0x2e2522['isOwn'])continue;const _0x2026ac=_0x10085f['getRanges']();for(const _0x3c7a46 of _0x2026ac)if(!_0x3b2e4b['getDifference'](_0x3c7a46)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x162540){const _0x52cb6d=this['editor']['plugins']['get']('Users')['getUser'](_0x162540);if(!_0x52cb6d)throw new _0x29d5ac('track-changes-user-not-found',this);return _0x52cb6d;}['_getExternalAuthor'](_0x2d49c3){const _0x243440=this['editor']['plugins']['get']('Users'),_0x9405b8=_0x2fabc6('external:'+_0x2d49c3),_0x225417=_0x243440['getUser'](_0x9405b8);return _0x225417||_0x243440['addUser']({'id':_0x9405b8,'name':_0x2d49c3});}['_createSuggestion'](_0x35c21e,_0x157267,_0x4905bb,_0x5380db,_0x87e3bd){const _0x58495e=this['_getAuthorFromId'](_0x5380db),_0x544727=this['_suggestionFactory']['buildSuggestion'](_0x35c21e,_0x157267,_0x4905bb,_0x58495e,_0x87e3bd,_0x34b4a8=>{this['_updateSuggestionData'](_0x4905bb,{'attributes':_0x34b4a8});const _0x4de25b=this['getSuggestion'](_0x4905bb);this['_joinWithAdjacentSuggestions'](new Set([_0x4de25b])),this['_refreshSuggestionsChain'](new Set([_0x4de25b]));});return this['listenTo'](_0x544727,'accept',()=>{this['_updateSuggestionData'](_0x4905bb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x544727,'discard',()=>{this['_updateSuggestionData'](_0x4905bb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4905bb,_0x544727),this['_suggestionState']['set'](_0x544727,'notReady'),_0x544727;}['_splitMarkerName'](_0x3cdc13){const _0x3fa734=_0x3cdc13['split'](':');return{'group':_0x3fa734[0x0],'type':_0x3fa734[0x1],'subType':_0x3fa734['length']>=0x5?_0x3fa734[0x2]:null,'id':_0x3fa734['length']<0x5?_0x3fa734[0x2]:_0x3fa734[0x3],'authorId':_0x3fa734['length']<0x5?_0x3fa734[0x3]:_0x3fa734[0x4],'markerCount':0x6==_0x3fa734['length']?_0x3fa734[0x5]:null};}['_breakSuggestionMarker'](_0x5888b7,_0x48a623,_0x16155c){const _0x21a600=_0x5888b7['getFirstRange'](),_0x555186=_0x21a600['start'],_0x23645b=_0x21a600['end'];this['_setSuggestionRange'](_0x5888b7,this['_model']['createRange'](_0x555186,_0x48a623));const _0x9f6c2f=_0x39ba3e(),_0x2d05c8=_0x5888b7['creator']['id'],_0x495f1f=_0x5888b7['type']+(_0x5888b7['subType']?':'+_0x5888b7['subType']:'');this['_setSuggestionData']({'id':_0x9f6c2f,'type':_0x495f1f,'createdAt':new Date(),'authorId':_0x2d05c8,'originalSuggestionId':_0x5888b7['id'],'attributes':_0x5888b7['attributes'],'data':_0x5888b7['data']});const _0x1ed5c3=this['_getAttributeKey'](_0x5888b7);('formatBlock'==_0x5888b7['type']||_0x1ed5c3&&this['_isBlockAttribute'](_0x1ed5c3))&&(_0x16155c=this['_model']['createPositionBefore'](_0x16155c['parent'])),this['_addSuggestionMarker'](_0x495f1f,_0x9f6c2f,_0x2d05c8,this['_model']['createRange'](_0x16155c,_0x23645b));}['_findSuggestions'](_0x10ce0f,_0x236c32=null){const _0x2204c1=[],_0x241ea5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x10ce0f)||(_0x10ce0f=[_0x10ce0f]);for(const _0x4eef31 of this['getSuggestions']()){if(!_0x4eef31['isInContent'])continue;if(_0x236c32&&_0x4eef31['type']!=_0x236c32)continue;let _0x5d4aca=!0x1;for(const _0x405e09 of _0x4eef31['getRanges']()){for(const _0x215720 of _0x10ce0f){const _0x51afc2=_0x215720['start']['isEqual'](_0x405e09['end'])||_0x215720['end']['isEqual'](_0x405e09['start']);if(_0x51afc2||_0x215720['getIntersection'](_0x405e09)){const _0x3a2b37=_0x215720['containsRange'](_0x405e09)&&Vt(this['_model']['schema'],_0x405e09['start'],_0x215720),_0x478513=_0x405e09['containsRange'](_0x215720)&&Vt(this['_model']['schema'],_0x215720['start'],_0x405e09);_0x2204c1['push']({'suggestion':_0x4eef31,'meta':{'isOwn':_0x241ea5==_0x4eef31['author'],'isNextTo':_0x51afc2,'isInsideObject':_0x3a2b37,'containsRangeInObject':_0x478513}}),_0x5d4aca=!0x0;break;}}if(_0x5d4aca)break;}}return _0x2204c1;}['_addSuggestionMarker'](_0x2d3e3b,_0x6b18f6,_0x1e9f84,_0x1b2d44,_0x4b8369){this['_model']['change'](_0xa1c7a0=>{let _0x59dbfd='suggestion:'+_0x2d3e3b+':'+_0x6b18f6+':'+_0x1e9f84;_0x4b8369&&(_0x59dbfd=_0x59dbfd+':'+_0x4b8369),_0xa1c7a0['addMarker'](_0x59dbfd,{'range':_0x1b2d44,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x13eb2d){const _0x203a18=_0x13eb2d['previous'],_0xccc9ac=_0x13eb2d['next'];_0x13eb2d['previous']=null,_0x13eb2d['next']=null,null!=_0x203a18&&_0x203a18['next']==_0x13eb2d&&(_0x203a18['next']=_0xccc9ac),null!=_0xccc9ac&&_0xccc9ac['previous']==_0x13eb2d&&(_0xccc9ac['previous']=_0x203a18),'ready'==this['_suggestionState']['get'](_0x13eb2d)&&(this['_suggestionState']['set'](_0x13eb2d,'removed'),this['fire']('suggestionUnloaded',_0x13eb2d,_0x203a18,_0xccc9ac));}['_setSuggestionData'](_0x5c996d){const _0x360fa1=_0x5c996d['id'],_0x3aad78=this['addSuggestionData'](_0x5c996d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5eb1be=this['editor']['plugins']['get']('PendingActions'),_0x28111c=_0x3aad78['hasComments'],_0x12a802=_0x3aad78['subType']?_0x3aad78['type']+':'+_0x3aad78['subType']:_0x3aad78['type'],_0x470c94=this['editor']['locale'],_0x3c52f7=_0x5eb1be['add'](o(_0x470c94,'PENDING_ACTION_SUGGESTION')),_0x231e3a={'id':_0x360fa1,'type':_0x12a802,'hasComments':_0x28111c,'data':_0x5c996d['data']||null,'originalSuggestionId':_0x5c996d['originalSuggestionId']||null,'attributes':_0x3aad78['attributes']};this['_adapter']['addSuggestion'](_0x231e3a)['then'](_0x20fce4=>{_0x3aad78['_saved']=!0x0,_0x5eb1be['remove'](_0x3c52f7),_0x20fce4&&_0x20fce4['createdAt']&&(this['_suggestions']['get'](_0x360fa1)['createdAt']=_0x20fce4['createdAt']);})['catch'](_0x454bd4=>{throw _0x2bcb48('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3aad78['discard']();}),_0x3aad78['stopListening'](),this['_suggestions']['delete'](_0x3aad78['id']),this['_suggestionState']['delete'](_0x3aad78),_0x454bd4;});}return _0x3aad78;}['_isBlockAttribute'](_0x41473c){return this['_blockAttributeKeys']['has'](_0x41473c);}['_updateSuggestionData'](_0x39714d,_0x403331){const _0x2dc9ba=this['editor']['plugins']['get']('PendingActions'),_0x5898e2=this['getSuggestion'](_0x39714d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5898e2['_saved']){const _0x2139be=_0x2dc9ba['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x39714d,_0x403331)['then'](()=>{_0x2dc9ba['remove'](_0x2139be);});}else _0x5898e2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x39714d,_0x403331);});}}['_getSuggestionData'](_0x595fde){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x29d5ac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x595fde);}['_handleNewSuggestionMarker'](_0x1f9c60){const {id:_0x37456b,type:_0x5d0284,subType:_0x2f6047,authorId:_0x2f64df}=this['_splitMarkerName'](_0x1f9c60),_0x38110e=this['_suggestions']['get'](_0x37456b)||this['_createSuggestion'](_0x5d0284,_0x2f6047,_0x37456b,_0x2f64df,{});switch(this['_checkSuggestionCorrectness'](_0x38110e,_0x5d0284,_0x2f6047,_0x2f64df),this['_suggestionState']['get'](_0x38110e)){case'notReady':this['_getSuggestionData'](_0x37456b)['then'](_0x5ed5ee=>{let _0x215b2b=Promise['resolve']();_0x5ed5ee['hasComments']&&(_0x215b2b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x37456b})),_0x215b2b['then'](()=>{this['addSuggestionData'](_0x5ed5ee)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38110e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x37456b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38110e,'ready'),this['fire']('suggestionLoaded',_0x38110e);break;case'ready':this['fire']('suggestionChanged',_0x38110e);}return _0x38110e['addMarkerName'](_0x1f9c60),_0x38110e;}['_refreshSuggestionsChain'](_0x276432){const _0x2486f2=Array['from'](_0x276432),_0x534b94=_0x2486f2['filter'](_0x364faf=>'attribute'==_0x364faf['type']);this['_refreshAttributeSuggestionsChain'](_0x534b94);const _0x4bd7ab=_0x2486f2['filter'](_0x45b822=>!_0x45b822['isMultiRange']&&'attribute'!=_0x45b822['type']),_0x39fb8a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19807d=>!_0x19807d['isMultiRange']&&'attribute'!=_0x19807d['type']),_0x4040dc=_0x39fb8a['filter'](_0x175151=>!_0x276432['has'](_0x175151)),_0x1eaa82=new Map(_0x39fb8a['map'](_0x26a2a8=>[_0x26a2a8,this['_suggestionFactory']['getSuggestionCallback'](_0x26a2a8['type'],_0x26a2a8['subType'],'chain')])),_0x2e0825=new Map(_0x39fb8a['map'](_0x272c43=>[_0x272c43,_0x272c43['getFirstRange']()])),_0x5654a0=new Set(),_0x5a8b07=new Set();for(let _0x4ccfdb=0x0;_0x4ccfdb<_0x4bd7ab['length'];_0x4ccfdb++)_0x7ef361(_0x4bd7ab[_0x4ccfdb],_0x4bd7ab,_0x4ccfdb+0x1);for(let _0x42ebdf=0x0;_0x42ebdf<_0x4bd7ab['length'];_0x42ebdf++)_0x7ef361(_0x4bd7ab[_0x42ebdf],_0x4040dc,0x0);const _0x2583c6=new Set();for(let _0x2de823=0x0;_0x2de823<_0x4bd7ab['length'];_0x2de823++){const _0x153f47=_0x4bd7ab[_0x2de823];!_0x5a8b07['has'](_0x153f47)&&_0x153f47['previous']&&(_0x2583c6['add'](_0x153f47['previous']),_0x153f47['previous']['next']===_0x153f47&&(_0x153f47['previous']['next']=null),_0x153f47['previous']=null),!_0x5654a0['has'](_0x153f47)&&_0x153f47['next']&&(_0x2583c6['add'](_0x153f47['next']),_0x153f47['next']['previous']===_0x153f47&&(_0x153f47['next']['previous']=null),_0x153f47['next']=null);}function _0x7ef361(_0x4d7e3d,_0x3dc0fa,_0x4e427e){for(let _0x1056bb=_0x4e427e;_0x1056bb<_0x3dc0fa['length'];_0x1056bb++){const _0x3a65f1=_0x2579d3(_0x4d7e3d,_0x3dc0fa[_0x1056bb]);_0x3a65f1&&(_0x3a65f1[0x0]['next']=_0x3a65f1[0x1],_0x3a65f1[0x1]['previous']=_0x3a65f1[0x0],_0x5654a0['add'](_0x3a65f1[0x0]),_0x5a8b07['add'](_0x3a65f1[0x1]));}}function _0x2579d3(_0x52118e,_0xbd5b0a){if(_0x52118e['author']['id']!==_0xbd5b0a['author']['id'])return null;const _0x5cb60b=_0x1eaa82['get'](_0x52118e)(_0x52118e,_0xbd5b0a,_0x2e0825['get'](_0x52118e),_0x2e0825['get'](_0xbd5b0a));if(!_0x5cb60b)return null;return _0x1eaa82['get'](_0xbd5b0a)(_0x52118e,_0xbd5b0a,_0x2e0825['get'](_0x52118e),_0x2e0825['get'](_0xbd5b0a))?_0x5cb60b[0x1]['commentThread']&&_0x5cb60b[0x1]['commentThread']['length']?null:_0x5cb60b:null;}_0x2583c6['size']&&this['_refreshSuggestionsChain'](_0x2583c6);}['_refreshAttributeSuggestionsChain'](_0x1424ff){if(0x0==_0x1424ff['length'])return;const _0x4ea718=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561f9a=>'attribute'==_0x561f9a['type']&&_0x561f9a['_isDataLoaded']),_0x30bca4=[],_0xb4bb7c=new Map();for(const _0x5aeb3f of _0x4ea718){const _0x5df03f=_0x2fabc6(_0x5aeb3f['attributes']);_0xb4bb7c['has'](_0x5df03f)||(_0xb4bb7c['set'](_0x5df03f,_0x30bca4['length']),_0x30bca4['push']([]));const _0x42c058=_0xb4bb7c['get'](_0x5df03f);_0x30bca4[_0x42c058]['push'](_0x5aeb3f);}!(function(){_0x30bca4['sort']((_0x8e8756,_0xe3416d)=>{const _0x1a6ef1=_0x8e8756[0x0]['createdAt'],_0x57b28c=_0xe3416d[0x0]['createdAt'];return _0x1a6ef1==_0x57b28c?_0x8e8756[0x0]['attributes']['groupId']<_0xe3416d[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a6ef1<_0x57b28c?-0x1:0x1;});for(const _0x2ef1a9 of _0x30bca4)_0x2ef1a9['sort']((_0x392469,_0x452e6a)=>_0x392469['id']<_0x452e6a['id']?-0x1:0x1);}());for(let _0x1f4aa1=0x0;_0x1f4aa1<_0x30bca4['length'];_0x1f4aa1++){if(0x0==_0x30bca4[_0x1f4aa1]['length'])continue;const _0x435692=[];for(let _0x50e6e6=_0x1f4aa1+0x1;_0x50e6e6<_0x30bca4['length'];_0x50e6e6++)0x0!=_0x30bca4[_0x50e6e6]['length']&&_0x2f0e17(_0x30bca4[_0x1f4aa1],_0x30bca4[_0x50e6e6])&&_0x435692['push'](_0x50e6e6);for(const _0x3d201a of _0x435692)_0x30bca4[_0x1f4aa1]=_0x30bca4[_0x1f4aa1]['concat'](_0x30bca4[_0x3d201a]),_0x30bca4[_0x3d201a]=[];}for(const _0x20f854 of _0x30bca4)for(let _0x780d27=0x0;_0x780d27<_0x20f854['length'];_0x780d27++){const _0x5c9d84=_0x20f854[_0x780d27+0x1]||null;_0x20f854[_0x780d27]['next']!==_0x5c9d84&&(_0x20f854[_0x780d27]['next']=_0x5c9d84);}for(const _0x4e2b39 of _0x30bca4)for(let _0x40c6ab=0x0;_0x40c6ab<_0x4e2b39['length'];_0x40c6ab++){const _0x227bc7=_0x4e2b39[_0x40c6ab-0x1]||null;_0x4e2b39[_0x40c6ab]['previous']!==_0x227bc7&&(_0x4e2b39[_0x40c6ab]['previous']=_0x227bc7);}function _0x2f0e17(_0x58fb89,_0x2baa85){if(_0x58fb89[0x0]['attributes']['groupId']!==_0x2baa85[0x0]['attributes']['groupId']&&_0x58fb89[0x0]['author']!==_0x2baa85[0x0]['author'])return!0x1;if(!function(_0x32a1f4,_0x77d1a3){if(!_0x32a1f4['hasComments']&&!_0x77d1a3['hasComments'])return!0x0;if(_0x32a1f4['hasComments']&&_0x77d1a3['hasComments'])return!0x1;if(_0x32a1f4['hasComments']&&_0x77d1a3['createdAt']<_0x32a1f4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x77d1a3['hasComments']&&_0x32a1f4['createdAt']<_0x77d1a3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x58fb89[0x0],_0x2baa85[0x0]))return!0x1;const _0x2a0d5b=Et(_0x58fb89[0x0]['attributes'],'groupId'),_0x1d56ca=Et(_0x2baa85[0x0]['attributes'],'groupId');if(!_0x27c121(_0x2a0d5b,_0x1d56ca))return!0x1;return!!_0x58fb89['every'](_0x43ba61=>_0x2baa85['some'](_0x515dbe=>_0x43ba61['getFirstRange']()['isEqual'](_0x515dbe['getFirstRange']())))&&_0x2baa85['every'](_0x1f611e=>_0x58fb89['some'](_0x1c1e80=>_0x1f611e['getFirstRange']()['isEqual'](_0x1c1e80['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43b891){const _0x3f6d6d=Array['from'](_0x43b891),_0x5c5c77=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1d4a6f=_0x5c5c77['filter'](_0x3f4a2f=>!_0x43b891['has'](_0x3f4a2f)),_0x9626e9=new Map(_0x3f6d6d['map'](_0x24c2e8=>[_0x24c2e8,this['_suggestionFactory']['getSuggestionCallback'](_0x24c2e8['type'],_0x24c2e8['subType'],'join')])),_0x5f5498=new Map(_0x5c5c77['map'](_0x377f57=>[_0x377f57,_0x377f57['getRanges']()]));for(let _0x4f30f7=0x0;_0x4f30f7<_0x3f6d6d['length'];_0x4f30f7++){if(_0x29413b(this,_0x3f6d6d[_0x4f30f7],_0x3f6d6d,_0x4f30f7+0x1))return!0x0;}for(let _0x1a47ee=0x0;_0x1a47ee<_0x3f6d6d['length'];_0x1a47ee++){if(_0x29413b(this,_0x3f6d6d[_0x1a47ee],_0x1d4a6f,0x0))return!0x0;}return!0x1;function _0x29413b(_0x3ec165,_0x3eb03a,_0x2c39d6,_0x11f93f){for(let _0x4d55b5=_0x11f93f;_0x4d55b5<_0x2c39d6['length'];_0x4d55b5++){const _0x4b31c7=_0x2c39d6[_0x4d55b5];if(_0x4b31c7['type']!==_0x3eb03a['type']||_0x4b31c7['author']['id']!==_0x3eb03a['author']['id']||_0x4b31c7['subType']!==_0x3eb03a['subType'])continue;if(!zt(_0x3eb03a,_0x4b31c7))continue;if('attribute'==_0x3eb03a['type']&&_0x3eb03a['data']['oldValue']!=_0x4b31c7['data']['oldValue'])continue;if('attribute'==_0x3eb03a['type']&&_0x3ec165['_isBlockAttribute'](_0x3eb03a['data']['key']))continue;if('formatBlock'==_0x3eb03a['type']){const _0xd6d0aa=_0x3ec165['editor']['model'],_0x33b1c1=_0x3eb03a['getContainedElement']();if(_0x33b1c1&&(_0xd6d0aa['schema']['isObject'](_0x33b1c1)||_0xd6d0aa['schema']['isLimit'](_0x33b1c1)))continue;}const _0x1f5654=_0x9626e9['get'](_0x3eb03a),_0x1d68fa=_0x5f5498['get'](_0x3eb03a),_0x91738d=_0x5f5498['get'](_0x4b31c7),_0x2286bc=_0x3eb03a['commentThread']&&_0x3eb03a['commentThread']['length'],_0x39f984=_0x4b31c7['commentThread']&&_0x4b31c7['commentThread']['length'];if(!_0x2286bc&&_0x1f5654(_0x91738d,_0x1d68fa))return _0x3ec165['_joinSuggestions'](_0x4b31c7,_0x3eb03a),_0x5f5498['delete'](_0x3eb03a),!0x0;if(!_0x39f984&&_0x1f5654(_0x1d68fa,_0x91738d))return _0x3ec165['_joinSuggestions'](_0x3eb03a,_0x4b31c7),_0x5f5498['delete'](_0x4b31c7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x55c143,_0x4ad0d7){if(_0x55c143['isMultiRange']){for(const _0x17867b of _0x4ad0d7['getRanges']())_0x55c143['addRange'](_0x17867b);}else{const _0x4c665f=_0x4ad0d7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x55c143,this['_model']['createRange'](_0x55c143['getFirstRange']()['start'],_0x4c665f));}_0x4ad0d7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x352282,_0x18c40d,_0x4b7dc1){const _0x574205=_0x352282['startsWith']('format')||_0x352282['startsWith']('attribute')?'FORMATTING':_0x352282['toUpperCase']();return o(this['editor']['locale'],_0x18c40d+'_'+_0x574205+'_SUGGESTION_ANNOUNCEMENT',_0x4b7dc1);}['_initAriaMarkerChangeAnnouncements'](){const _0x1713b0=this['editor'];if(!_0x1713b0['ui'])return;const {ariaLiveAnnouncer:_0x55ba6c}=_0x1713b0['ui'];_0x10b131(this['_model'],({left:_0xb3b652,entered:_0x3be455})=>{for(const _0x6d8136 of _0xb3b652){const {group:_0x59428c,type:_0x532b81}=this['_splitMarkerName'](_0x6d8136['name']);if('suggestion'===_0x59428c){_0x55ba6c['announce'](this['_getMarkerAnnouncementText'](_0x532b81,'LEAVE'));break;}}for(const _0x2d6be5 of _0x3be455){const {group:_0x5f53c3,type:_0x21b1e1}=this['_splitMarkerName'](_0x2d6be5['name']);if('suggestion'===_0x5f53c3){_0x55ba6c['announce'](this['_getMarkerAnnouncementText'](_0x21b1e1,'ENTER',_0xff9ef1(_0x29a97c)));break;}}});}['_processAttributeChanges'](_0x188322){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2855c2=this['editor'],_0x51e631=_0x2855c2['model']['document']['differ']['getChanges']();if(0x0==_0x51e631['length'])return!0x1;const _0x2e4035=[],_0x27473e=_0x51e631['filter'](_0xd4ba60=>'attribute'==_0xd4ba60['type']),_0x1e0f27=_0x51e631['filter'](_0x2a796e=>'insert'==_0x2a796e['type']&&'$text'!=_0x2a796e['name']),_0x317eaf=_0x51e631['filter'](_0x2be29f=>'remove'==_0x2be29f['type']&&'$text'!=_0x2be29f['name']);for(const _0x3b3088 of _0x27473e)_0x2e4035['push']({'key':_0x3b3088['attributeKey'],'newValue':_0x3b3088['attributeNewValue'],'oldValue':_0x3b3088['attributeOldValue'],'range':Jt(_0x3b3088['range'],_0x2855c2['model'])});for(const _0x14cfe1 of _0x1e0f27){const _0x1d807f=_0x317eaf['find'](_0x368bb=>_0x368bb['position']['isEqual'](_0x14cfe1['position']));_0x1d807f&&_0x2e4035['push']({'key':m,'newValue':_0x14cfe1['name'],'oldValue':_0x1d807f['name'],'range':_0x2855c2['model']['createRangeOn'](_0x14cfe1['position']['nodeAfter'])});}return 0x0!=_0x2e4035['length']&&this['_reduceExistingSuggestions'](_0x188322,_0x2e4035);}['_processAttributeSuggestions'](_0x40c898){let _0x198552=!0x1;const _0x16f3a1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xff6dd6=>_0xff6dd6['data']['newRange']&&_0xff6dd6['name']['startsWith']('suggestion:attribute:'));for(const _0x1cadaa of _0x16f3a1){const {subType:_0x2772ee,id:_0x1b56c5}=this['_splitMarkerName'](_0x1cadaa['name']),_0xf90203=_0x2772ee['split']('|')[0x0];for(const _0x90d018 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x90d018['id']!=_0x1b56c5&&'attribute'==_0x90d018['type']&&_0x90d018['data']&&_0x90d018['data']['key']==_0xf90203&&_0x90d018['getFirstRange']()['isIntersecting'](_0x1cadaa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x90d018,_0x1cadaa['data']['newRange'],_0x40c898),_0x198552=!0x0);}return _0x198552;}['_recordAttributeChanges'](_0x6b4b11){this['_recordAttributeSuggestions']=!0x0,_0x6b4b11();}['_isRegisteredAttribute'](_0x1779a2){const _0x188708=this['_isBlockAttribute'](_0x1779a2),_0x99ea1=this['_inlineAttributeKeys']['has'](_0x1779a2);return _0x188708||_0x99ea1;}['_reduceExistingSuggestions'](_0x49e518,_0x5150a3){if(0x0==_0x5150a3['length'])return!0x1;let _0xec3619=!0x1;for(const _0x4bedc1 of _0x5150a3){const _0x1b7012=this['_findSuggestions'](_0x4bedc1['range'],'attribute')['filter'](_0x36ba34=>!_0x36ba34['meta']['isNextTo'])['map'](_0x2b297a=>_0x2b297a['suggestion']),_0x46eea7=_0x2fabc6({'newValue':_0x4bedc1['newValue']});_0x1b7012['filter'](_0x58472c=>{const [_0x3645f2,_0x431cfb]=_0x58472c['subType']['split']('|');return _0x3645f2==_0x4bedc1['key']&&_0x431cfb!=_0x46eea7;})['forEach'](_0x3a5b94=>{this['_reduceSuggestionAttributeRange'](_0x3a5b94,_0x4bedc1['range'],_0x49e518),_0xec3619=!0x0;});}return _0xec3619;}['_reduceSuggestionAttributeRange'](_0x5b3c39,_0x5744e4,_0xbb145f){const _0x38778b=_0x5b3c39['getFirstRange']()['getDifference'](_0x5744e4);0x0!==_0x38778b['length']?0x1!==_0x38778b['length']?this['_breakSuggestionMarker'](_0x5b3c39,_0x5744e4['start'],_0x5744e4['end']):this['_setSuggestionRange'](_0x5b3c39,_0x38778b[0x0]):_0xbb145f['removeMarker'](_0x5b3c39['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2db0ff){this['_editor']=_0x2db0ff,this['_model']=_0x2db0ff['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a2d3d,_0x3438cf,_0x6a98bf,_0x21e201,_0x260bc1,_0x44dae1){return new u(this['_model'],{'type':_0x4a2d3d,'subType':_0x3438cf,'id':_0x6a98bf,'author':_0x21e201,'creator':_0x21e201,'attributes':_0x260bc1,'onAttributesChange':_0x44dae1,'onAccept':(..._0x1959de)=>this['getSuggestionCallback'](_0x4a2d3d,_0x3438cf,'accept')(..._0x1959de),'onDiscard':(..._0x3effc1)=>this['getSuggestionCallback'](_0x4a2d3d,_0x3438cf,'discard')(..._0x3effc1)});}['registerCustomCallback'](_0x4fccd7,_0x28128a,_0x2efbeb,_0x25113d){const _0xe22b65=_0x4fccd7+':'+_0x28128a+':'+_0x2efbeb;this['_customCallbacks']['set'](_0xe22b65,_0x25113d);}['getSuggestionCallback'](_0x589719,_0x405463,_0x4e33c4){const _0x22802c=_0x589719+':'+_0x405463+':'+_0x4e33c4;return this['_customCallbacks']['get'](_0x22802c)||this['_defaultCallbacks']['get'](_0x589719+':'+_0x4e33c4);}['_registerDefaultCallbacks'](){const _0x2198b6=()=>!0x1,_0x202bc0=_0x54973b=>{_0x54973b['sort']((_0x2d8700,_0x568c44)=>_0x2d8700['start']['isBefore'](_0x568c44['start'])?0x1:-0x1),this['_model']['change'](_0x170db5=>{for(const _0x10ce48 of _0x54973b){let _0x2c620c;_0x2c620c=_0x10ce48['end']['isAtEnd']&&_0x10ce48['end']['parent']==_0x10ce48['start']['nodeAfter']?_0x170db5['createSelection'](_0x10ce48['start']['nodeAfter'],'on'):_0x170db5['createSelection'](_0x10ce48),this['_model']['deleteContent'](_0x2c620c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x106a9e=(_0x25a652,_0x3c0422)=>{_0x3c0422&&this['_model']['change'](_0x3a72e7=>{const {commandName:_0x56124b,commandParams:_0x2d9fb5=[]}=_0x3c0422,_0x2d02c5=_0x25a652['map'](_0x1364c5=>(Pt(_0x1364c5)&&(_0x1364c5=this['_model']['createRange'](_0x1364c5['end'])),_0x1364c5))['filter'](_0x415961=>'$graveyard'!==_0x415961['root']['rootName']);if(_0x2d02c5['length']<0x1)return;const _0x378ac7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x30001c=>_0x1e09a5['fromRange'](_0x30001c));_0x3a72e7['setSelection'](_0x2d02c5);for(const _0x5b6fcf of this['_editor']['commands']['commands']())_0x5b6fcf['refresh']();_0x2d9fb5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x56124b,..._0x2d9fb5);const _0x3e0071=_0x378ac7['filter'](_0x636a6e=>'$graveyard'!=_0x636a6e['root']['rootName']);_0x3e0071['length']>0x0&&_0x3a72e7['setSelection'](_0x3e0071);for(const _0x4c53d8 of _0x378ac7)_0x4c53d8['detach']();});},_0x91d2a8=(_0x5bf509,_0x4a12d9)=>0x1==_0x5bf509['length']&&0x1==_0x4a12d9['length']&&_0x5bf509[0x0]['end']['isEqual'](_0x4a12d9[0x0]['start']),_0x3b87d7=(_0x1363ac,_0x16c443,_0xb66187,_0x16c939)=>qt(_0x1363ac,_0x16c443,_0xb66187,_0x16c939)?[_0x1363ac,_0x16c443]:qt(_0x16c443,_0x1363ac,_0x16c939,_0xb66187)?[_0x16c443,_0x1363ac]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2198b6),this['_defaultCallbacks']['set']('insertion:discard',_0x202bc0),this['_defaultCallbacks']['set']('insertion:join',_0x91d2a8),this['_defaultCallbacks']['set']('insertion:chain',_0x3b87d7),this['_defaultCallbacks']['set']('deletion:accept',_0x202bc0),this['_defaultCallbacks']['set']('deletion:discard',_0x2198b6),this['_defaultCallbacks']['set']('deletion:join',_0x91d2a8),this['_defaultCallbacks']['set']('deletion:chain',_0x3b87d7),this['_defaultCallbacks']['set']('formatInline:accept',_0x106a9e),this['_defaultCallbacks']['set']('formatInline:discard',_0x2198b6),this['_defaultCallbacks']['set']('formatInline:join',_0x91d2a8),this['_defaultCallbacks']['set']('formatInline:chain',_0x2198b6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x106a9e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2198b6),this['_defaultCallbacks']['set']('formatBlock:join',_0x91d2a8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2198b6),this['_defaultCallbacks']['set']('attribute:accept',_0x2198b6),this['_defaultCallbacks']['set']('attribute:discard',(_0x46bae2,_0x1e3b42)=>{if(!_0x1e3b42)return;const _0x1668b9=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x390b83=>{if(_0x1e3b42['key']==m)for(const _0x1c46da of _0x46bae2){const _0x56d901=_0x1c46da['start']['nodeAfter'],_0x4d9567=_0x1e3b42['oldValue'];_0x390b83['rename'](_0x56d901,_0x4d9567);}else{if(_0x1668b9['_isBlockAttribute'](_0x1e3b42['key'])){for(const _0x5aa4ab of _0x46bae2)void 0x0!==_0x1e3b42['oldValue']?_0x390b83['setAttribute'](_0x1e3b42['key'],_0x1e3b42['oldValue'],_0x5aa4ab['start']['nodeAfter']):_0x390b83['removeAttribute'](_0x1e3b42['key'],_0x5aa4ab['start']['nodeAfter']);}else{for(const _0xf26e51 of _0x46bae2)_0x1e3b42['oldValue']?_0x390b83['setAttribute'](_0x1e3b42['key'],_0x1e3b42['oldValue'],_0xf26e51):_0x390b83['removeAttribute'](_0x1e3b42['key'],_0xf26e51);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x91d2a8);}}function Vt(_0xdc85c7,_0x445660,_0xf24c73){for(const _0x2039b0 of _0x445660['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2039b0['root']==_0x2039b0)return!0x1;if(!_0xf24c73['containsItem'](_0x2039b0))return!0x1;if(_0xdc85c7['isObject'](_0x2039b0)||_0xdc85c7['isLimit'](_0x2039b0))return!0x0;}return!0x1;}function Pt(_0x20cec4){return _0x20cec4['end']['parent']==_0x20cec4['start']['nodeAfter']&&_0x20cec4['end']['isAtStart'];}function Gt(_0x3faa4b,_0x5cdbd9,_0x558f0a,_0x56ba07){const _0x12b3e9=_0x1ec567=>!_0x1ec567['item']['is']('$textProxy')&&!_0x56ba07['isObject'](_0x1ec567['item']),_0x292849=_0x3faa4b['start']['getLastMatchingPosition'](_0x12b3e9),_0x3f3319=_0x3faa4b['end']['getLastMatchingPosition'](_0x12b3e9,{'direction':'backward'});return(!_0x3faa4b['start']['isEqual'](_0x292849)||!_0x3faa4b['end']['isEqual'](_0x3f3319))&&(_0x292849['isBefore'](_0x3f3319)?_0x558f0a['updateMarker'](_0x5cdbd9,{'range':_0x558f0a['createRange'](_0x292849,_0x3f3319)}):_0x558f0a['removeMarker'](_0x5cdbd9),!0x0);}function Ft(_0x543097){return _0x2fabc6(_0x543097);}function Lt(_0x577479){const _0xbc98f4=_0x577479['start']['nodeAfter'];return _0xbc98f4&&_0xbc98f4['is']('element');}function Jt(_0x256c59,_0x43c538){return null==_0x256c59['end']['nodeBefore']&&_0x256c59['end']['parent']==_0x256c59['start']['nodeAfter']?Ht(_0x256c59['start']['nodeAfter'],_0x43c538):_0x256c59;}function Ht(_0xda67f6,_0x25357f){const _0x4817e3=_0x25357f['schema']['isObject'](_0xda67f6)||_0x25357f['schema']['isSelectable'](_0xda67f6);return _0x25357f['createRange'](_0x25357f['createPositionAt'](_0xda67f6,'before'),_0x4817e3?_0x25357f['createPositionAfter'](_0xda67f6):_0x25357f['createPositionAt'](_0xda67f6,'end'));}function qt(_0x57b5e6,_0x27117f,_0x494e1f,_0x35f653){return!!zt(_0x57b5e6,_0x27117f)&&_0x494e1f['end']['isEqual'](_0x35f653['start']);}function zt(_0x1060b8,_0x12c01c){if(!_0x1060b8['_isDataLoaded']||!_0x12c01c['_isDataLoaded'])return!0x1;const _0xa460d3=new Set(Object['keys'](_0x1060b8['attributes'])),_0x545e49=new Set(Object['keys'](_0x12c01c['attributes']));if(_0xa460d3['delete']('groupId'),_0x545e49['delete']('groupId'),0x0==_0xa460d3['size']&&0x0==_0x545e49['size'])return!0x0;if(_0xa460d3['size']!=_0x545e49['size'])return!0x1;const _0x5670bf={..._0x1060b8['attributes']},_0x566c60={..._0x12c01c['attributes']};return delete _0x5670bf['groupId'],delete _0x566c60['groupId'],JSON['stringify'](_0x5670bf)==JSON['stringify'](_0x566c60);}function Kt(_0x54792a,_0x22c360){const _0x52bec6=Wt(_0x54792a['attributes']),_0x1d2de1=Wt(_0x22c360);if(!_0x54792a['_isDataLoaded'])return!0x1;for(const _0x238ec5 of Object['keys'](_0x1d2de1))if(!_0x27c121(_0x52bec6[_0x238ec5],_0x1d2de1[_0x238ec5]))return!0x1;return!0x0;}function Wt(_0x39a9cf){const _0x4816b9=Object['assign']({},_0x39a9cf);return delete _0x4816b9['skipNestingCheck'],delete _0x4816b9['tablePasteChainId'],_0x4816b9;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x3c6444(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x247a63,_0x58199c,_0x465903,_0x3554fe){super(),this['model']=_0x58199c,this['view']=_0x465903,this['commentThreadController']=_0x3554fe,this['_editor']=_0x247a63,this['_acceptCommand']=_0x247a63['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x247a63['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x14406d,_0x3abd62)=>_0x14406d||_0x3abd62),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3274f0=>_0x3274f0&&this['_editor']['model']['canEditAt'](_0x58199c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1fa51b=>_0x1fa51b&&this['_editor']['model']['canEditAt'](_0x58199c['getRanges']())),this['_pendingAction']=null,_0x465903['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x465903,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x465903,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x465903,'change:isDirty',()=>{_0x465903['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 _0x280c43=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x280c43);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xb8f822{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa8c20f,_0x6f8b97,_0x32a4c3,_0x449042){super(_0xa8c20f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1bc3ff(_0xa8c20f,o(_0xa8c20f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6f8b97['authoredAt']),this['bind']('authoredAt')['to'](_0x6f8b97),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',_0x6f8b97,'authoredAt',this,'descriptionParts',(_0x52ce8b,_0x213390,_0x39ff1d)=>{const _0x58b649=_0x39ff1d['map'](_0x21fdd7=>ns(_0x21fdd7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x52ce8b-0x1,_0x6f8b97['author']['name'],_0x213390?_0x449042['formatDateTime'](_0x213390):'',new DOMParser()['parseFromString'](_0x58b649,'text/html')['body']['textContent']]);}),this['focusables']=new _0x170438(),this['focusTracker']=new _0x2b4231(),this['keystrokes']=new _0x3254d8(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xc34a15=>_0xc34a15['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6f8b97,this['_localUser']=_0x32a4c3,this['_config']=_0x449042,_0x449042['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x41d368(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x362524}=this['_config'];this['commentsListView']=new _0x362524(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',_0x592479=>_0x592479+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b73ab,_0x43447c)=>_0x3b73ab||!!_0x43447c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1e7584}=this['_config'],_0x56f1cb=new _0x1e7584(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b11bf=_0x56f1cb['commentInputView'];return _0x56f1cb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b11bf,'value',(_0x2cbe6b,_0x544665,_0x163f70)=>!!_0x163f70||_0x2cbe6b&&!_0x544665),_0x4b11bf['on']('submit',(_0x31543c,_0x19c4b0)=>{this['fire']('addComment',_0x19c4b0),_0x4b11bf['editor']['setData']('');}),_0x4b11bf['on']('cancel',()=>this['focus']()),_0x4b11bf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x56f1cb;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x390a2d,_0x139ad5,_0x1d245f,_0x4c8cf5){super(_0x390a2d,_0x139ad5,_0x1d245f,_0x4c8cf5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3219c6=>_0x3219c6&&_0x3219c6[0x0]?_0x3219c6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d9f7c,_0x456b37)=>{let _0x35ddca='';for(const _0x3c4a37 of _0x5d9f7c)_0x35ddca+='<p>'+ns(_0x3c4a37['content'],_0x3c4a37['color'])+'</p>';return _0x456b37?_0x35ddca:_0x3a5076(_0x35ddca,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4c8cf5['SuggestionView'](_0x390a2d,_0x139ad5,{'formatDateTime':_0x4c8cf5['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 _0x35959e=this['bindTemplate'],_0x33b2a8=[this['suggestionView']];return this['commentsListView']&&_0x33b2a8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33b2a8['push'](this['commentThreadInputView']),_0x33b2a8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35959e['if']('isActive','ck-suggestion-wrapper--active'),_0x35959e['to']('type',_0x1ca691=>'ck-suggestion-'+_0x1ca691),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':_0x35959e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33b2a8};}['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 fe extends _0xb8f822{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x34a24a,_0x5634a4,_0x252efa){super(_0x34a24a),this['_model']=_0x5634a4,this['_config']=_0x252efa,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5634a4),this['acceptButton']=this['_createButton'](o(_0x34a24a,'Accept\x20suggestion'),_0x4c8ee3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x34a24a,'Discard\x20suggestion'),_0x4c8ee3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x29e6d6(_0x34a24a,_0x5634a4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x170438([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2b4231(),this['keystrokes']=new _0x3254d8(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x28e22c=>_0x28e22c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x550b6d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x550b6d['innerHTML']=this['description'],this['on']('change:description',(_0x1036dd,_0x3a4c7e,_0x1d2417)=>{_0x550b6d['innerHTML']=_0x1d2417;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57ca08=this['bindTemplate'],_0x138bbb=[{'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':_0x57ca08['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57ca08['to']('authoredAt',_0x152195=>this['_config']['formatDateTime'](_0x152195))}]}]},{'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']&&_0x138bbb['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':_0x138bbb}]};}['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'](_0x3b2589,_0x57d111,_0x29f08b,_0x2a3bdd,_0x1c6acd){const _0x58bb9e=new _0x18f485(this['locale']);return _0x58bb9e['set']({'label':_0x3b2589,'icon':_0x57d111,'tooltip':!0x0,'tooltipPosition':_0x1c6acd}),_0x58bb9e['extendTemplate']({'attributes':{'class':_0x29f08b}}),_0x58bb9e['on']('execute',()=>{this['fire'](_0x2a3bdd,this['_model']['id']);}),_0x58bb9e;}['_setupKeyboardNavigation'](){const _0x439214=this['element'];this['keystrokes']['listenTo'](_0x439214);for(const _0x37c2fd of this['focusables'])this['focusTracker']['add'](_0x37c2fd['element']),this['keystrokes']['listenTo'](_0x37c2fd['element']);this['keystrokes']['set']('enter',(_0x3d3dc5,_0xcbc643)=>{_0x439214===_0x3d3dc5['target']&&(this['focusCycler']['focusFirst'](),_0xcbc643());}),this['keystrokes']['set']('esc',(_0x3b7adf,_0x329a90)=>{_0x439214!==_0x3b7adf['target']&&(this['focus'](),_0x329a90());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5d6d85{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xc8e4c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b6901){super(_0x2b6901),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2db929=this['editor']['config'];_0x2db929['define']('trackChanges.SuggestionThreadView',pe),_0x2db929['define']('trackChanges.SuggestionView',fe),_0x2db929['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2db929['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x178985,_0x2f4d0b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x218f11,_0x1062a8]of this['_handleControllerBuffer']){const _0x4de825=this['_suggestionToController']['has'](_0x218f11);_0x4de825||_0x1062a8?_0x4de825&&_0x1062a8&&this['_destroyController'](_0x218f11):this['_initializeController'](_0x218f11);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x178985,_0x2f4d0b);}['init'](){const _0x17ff9d=this['editor'],_0x457da0=_0x17ff9d['plugins']['get']('TrackChangesEditing'),_0x383323=_0x17ff9d['plugins']['get']('Annotations'),_0x18ef18=_0x17ff9d['plugins']['get']('EditorAnnotations'),_0x557d72=_0x17ff9d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x18ef18['addSourceCollector'](()=>{const _0x4061eb=[];for(const [_0x4de026,_0x48efbd]of Array['from'](this['_suggestionToController'])){const _0x27fc26=_0x4de026['getAllAdjacentSuggestions'](),_0x4dbdef=[];for(const _0x5f5808 of _0x27fc26){if(!_0x5f5808['isInContent'])continue;if(_0x5f5808['isMultiRange']){_0x4dbdef['push'](..._0x5f5808['getRanges']());continue;}const _0x4b4205=_0x5f5808['getFirstRange']();if(_0x4dbdef['length']>0x0){const _0x5aeae2=_0x4dbdef[0x0]['getJoined'](_0x4b4205);if(_0x5aeae2){_0x4dbdef[0x0]=_0x5aeae2;continue;}}_0x4dbdef['push'](_0x4b4205);}_0x4061eb['push']([_0x48efbd['view'],_0x4dbdef]);}return _0x4061eb;}),this['listenTo'](_0x457da0,'suggestionLoaded',(_0x11fc78,_0x27d0d4)=>{this['listenTo'](_0x27d0d4,'change:previous',(_0x1cdcae,_0x3bbd6c,_0x216c43,_0x278c77)=>{_0x27d0d4['isInContent']&&(null==_0x216c43?(this['_updateController'](_0x278c77['head']),this['_handleSuggestionControllerDelayed'](_0x27d0d4,!0x1)):(this['_updateController'](_0x216c43['head']),null==_0x278c77&&this['_handleSuggestionControllerDelayed'](_0x27d0d4,!0x0)));}),null!==_0x27d0d4['previous']?this['_updateController'](_0x27d0d4['head']):this['_handleSuggestionControllerDelayed'](_0x27d0d4,!0x1);}),this['listenTo'](_0x457da0,'suggestionUnloaded',(_0x5033c0,_0x2715eb,_0x15c8bb)=>{this['stopListening'](_0x2715eb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2715eb),this['_suggestionToController']['has'](_0x2715eb)&&this['_destroyController'](_0x2715eb),_0x15c8bb&&this['_updateController'](_0x15c8bb['head']);}),this['listenTo'](_0x457da0,'suggestionChanged',(_0x33801a,_0x3e3b03)=>{this['_updateController'](_0x3e3b03);}),this['listenTo'](_0x383323,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x557d72,'addComment',(_0x5aa08d,{threadId:_0x464b5d,isFromAdapter:_0x30b657})=>{if(_0x30b657||!_0x457da0['hasSuggestion'](_0x464b5d))return;const _0x3cafd1=_0x457da0['getSuggestion'](_0x464b5d);this['_suggestionToController']['get'](_0x3cafd1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e103b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24b80d;for(const _0xbf4a9a in _0x5e103b){const _0x2f25f5=_0xbf4a9a,_0x1347e8=_0x5e103b[_0x2f25f5];if('trackChangesLicenseKeyValid'==_0x1347e8||'trackChangesLicenseKeyInvalid'==_0x1347e8||'trackChangesLicenseKeyExpired'==_0x1347e8||'trackChangesLicenseKeyDomainLimit'==_0x1347e8||'trackChangesLicenseKeyNotAllowed'==_0x1347e8||'trackChangesLicenseKeyEvaluationLimit'==_0x1347e8||'trackChangesLicenseKeyTrialLimit'==_0x1347e8||'trackChangesLicenseKeyUsageLimit'==_0x1347e8){delete _0x5e103b[_0x2f25f5],_0x24b80d=_0x1347e8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24b80d&&_0x5e103b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24b80d&&_0x5e103b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24b80d&&_0x5e103b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24b80d&&_0x5e103b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3d3634=this['editor']['plugins']['get']('Annotations'),_0x128fd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31009b=Array['from'](_0x3d3634['activeAnnotations'],_0x2dfd22=>_0x2dfd22['innerView'])['filter'](_0x26159f=>this['_viewToController']['has'](_0x26159f)),_0x151d72=[];for(const _0x403b02 of _0x31009b){const _0x38a6a3=this['_viewToController']['get'](_0x403b02)['model']['getAllAdjacentSuggestions']();_0x151d72['push'](..._0x38a6a3['reduce']((_0x2de9ed,_0x5d7326)=>[..._0x2de9ed,..._0x5d7326['getMarkerNames']()],[]));}_0x128fd2['activeMarkers']=_0x151d72;}['_addUIComponentsToFactory'](){const _0x1c5f38=this['editor'],_0x504115=_0x1c5f38['locale'],_0x2af5d9=o(_0x504115,'Track\x20changes'),_0x1ce21a=new _0x9348b0([{'type':'switchbutton','model':new _0x10cbf3({'withText':!0x0,'isToggleable':!0x0,'label':_0x2af5d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1c5f38['plugins']['has']('TrackChangesPreview')&&_0x1ce21a['addMany']([{'type':'separator'},{'type':'button','model':new _0x10cbf3({'withText':!0x0,'label':o(_0x504115,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1c418d of _0x1ce21a)if(ke(_0x1c418d)){const _0x49c7c0=_0x1c5f38['commands']['get'](_0x1c418d['model']['commandName']);_0x1c418d['model']['bind']('isOn','isEnabled')['to'](_0x49c7c0,'value','isEnabled');}_0x1c5f38['ui']['componentFactory']['add']('trackChanges',_0x2b2c68=>this['_createToolbarButton'](_0x2b2c68,_0x1ce21a,_0x2af5d9)),_0x1c5f38['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3cfad7=>this['_createMenuBarMenu'](_0x3cfad7,_0x1ce21a,_0x2af5d9));}['_createToolbarButton'](_0x1a06fe,_0x114ef3,_0x375326){const _0x53f934=_0x3281b7(_0x1a06fe,_0x11c105),_0x5b09ac=this['editor']['commands']['get']('trackChanges');_0x53f934['buttonView']['set']({'tooltip':_0x375326,'label':_0x375326,'icon':we}),_0x53f934['buttonView']['bind']('isOn')['to'](_0x5b09ac,'value'),_0x53f934['buttonView']['on']('execute',()=>{_0x5b09ac['execute'](),this['editor']['editing']['view']['focus']();}),_0x23fcda(_0x53f934,_0x114ef3,{'role':'menu'});const _0x31b1be=[];for(const _0xfb64d3 of _0x114ef3)ke(_0xfb64d3)&&_0x31b1be['push'](this['editor']['commands']['get'](_0xfb64d3['model']['commandName']));const _0x4ec780=_0x53f934['buttonView'];return _0x4ec780['actionView']['unbind']('isEnabled'),_0x4ec780['arrowView']['unbind']('isEnabled'),_0x4ec780['actionView']['bind']('isEnabled')['to'](_0x5b09ac,'isEnabled'),_0x4ec780['arrowView']['bind']('isEnabled')['toMany'](_0x31b1be,'isEnabled',(..._0xcebfbe)=>_0xcebfbe['some'](_0x21ffa8=>_0x21ffa8)),_0x53f934['on']('execute',_0x17d2db=>{this['editor']['execute'](_0x17d2db['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x53f934;}['_createMenuBarMenu'](_0x5ad088,_0x5f17d6,_0x541c38){const _0x51a5c6=new _0x56b16a(_0x5ad088),_0x45cb36=this['editor']['commands']['get']('trackChanges');_0x51a5c6['buttonView']['set']({'label':_0x541c38,'icon':we});const _0x2a4637=new _0x16ca5a(_0x5ad088);for(const _0x3e4e7a of _0x5f17d6){if('separator'==_0x3e4e7a['type']){_0x2a4637['items']['add'](new _0x1d2b06(_0x5ad088));continue;}const _0x44174e=new _0x522a14(_0x5ad088,_0x51a5c6),_0x3a2cd0=new _0x425554(_0x5ad088),_0x4e2db3=_0x3e4e7a['model'];_0x3a2cd0['bind'](...Object['keys'](_0x4e2db3))['to'](_0x4e2db3),_0x3a2cd0['delegate']('execute')['to'](_0x51a5c6),_0x3a2cd0['on']('execute',()=>{this['editor']['execute'](_0x4e2db3['commandName']),this['editor']['editing']['view']['focus']();}),_0x44174e['children']['add'](_0x3a2cd0),_0x2a4637['items']['add'](_0x44174e);}return _0x51a5c6['bind']('isEnabled')['to'](_0x45cb36,'isEnabled'),_0x51a5c6['panelView']['children']['add'](_0x2a4637),_0x51a5c6;}['_initializeController'](_0x587d86){const _0x346244=this['editor'],_0x291f82=_0x346244['config'],_0x19732f=_0x346244['plugins']['get']('Annotations'),_0x595d9d=_0x346244['plugins']['get']('CommentsRepository'),_0x33b6b2=_0x346244['plugins']['get']('EditorAnnotations'),_0x182b4a=_0x346244['plugins']['get'](_0xc8e4c)['me'],_0x39f599=_0x291f82['get']('trackChanges')['SuggestionThreadView'],_0x2e8220=_0x291f82['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3b3dbd,CommentThreadInputView:_0x11f88a}=_0x346244['plugins']['get']('CommentsUI');let _0x4e862f,_0x439643,_0x59ab59;this['_annotationViews']['has'](_0x587d86['id'])?(_0x439643=this['_annotationViews']['get'](_0x587d86['id']),_0x4e862f=_0x439643['mainView']):(_0x4e862f=new _0x39f599(_0x346244['locale'],_0x587d86,_0x182b4a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x291f82['get']('comments.editorConfig'),'licenseKey':_0x291f82['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x291f82['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x291f82['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x291f82['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5737cc(_0x291f82['get']('locale')),'CommentView':_0x291f82['get']('comments')['CommentView'],'CommentsListView':_0x3b3dbd,'CommentThreadInputView':_0x11f88a,'SuggestionView':_0x2e8220}),_0x4e862f['suggestionView']['acceptButton']['on']('execute',()=>{_0x346244['editing']['view']['focus']();}),_0x4e862f['suggestionView']['discardButton']['on']('execute',()=>{_0x346244['editing']['view']['focus']();}),_0x439643=_0x19732f['createAnnotationView'](this['editor']['locale'],_0x4e862f),_0x439643['bind']('isDirty')['to'](_0x4e862f,'isDirty'),_0x439643['bind']('length')['to'](_0x4e862f),_0x439643['bind']('type')['to'](_0x4e862f,'type',_0x5a054b=>'suggestion-'+_0x5a054b),_0x4e862f['on']('escape',()=>{_0x59ab59['fire']('escape');}),this['_annotationViews']['set'](_0x587d86['id'],_0x439643));const _0xe54c0=_0x595d9d['createCommentThreadController'](_0x587d86['commentThread'],_0x4e862f),_0x559c1a=new Ce(_0x346244,_0x587d86,_0x4e862f,_0xe54c0),_0x30354d=_0x587d86['getAllAdjacentSuggestions']()['filter'](_0x2fb6fe=>_0x2fb6fe['isInContent']);_0x4e862f['descriptionParts']=_0x346244['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x30354d),this['_suggestionToController']['set'](_0x587d86,_0x559c1a),this['_viewToController']['set'](_0x4e862f,_0x559c1a),_0x59ab59=_0x19732f['createAnnotation']({'view':_0x439643,'target':()=>{const _0xf2161b=[],_0x140ece=_0x587d86['getAllAdjacentSuggestions']()['filter'](_0xe00913=>_0xe00913['isInContent']);for(const _0x2eac33 of _0x140ece)_0xf2161b['push'](..._0x2eac33['getMarkers']());return _0x458c25(_0x346244['editing'],_0xf2161b);},'type':()=>'suggestion-'+_0x559c1a['view']['type']}),_0x595d9d['_bindAnnotationToEditors'](_0x4e862f,_0x59ab59),_0x19732f['add'](_0x59ab59),_0x33b6b2['registerAnnotation'](_0x59ab59);}['_destroyController'](_0x36e86b){const _0x441612=this['editor']['plugins']['get']('CommentsRepository'),_0x471078=this['editor']['plugins']['get']('Annotations'),_0x4d171f=this['_suggestionToController']['get'](_0x36e86b),_0x1051a5=_0x4d171f['view'],_0xefce49=_0x471078['getByInnerView'](_0x1051a5);_0x441612['_unbindEditors'](_0x1051a5),_0xefce49&&_0x471078['remove'](_0xefce49),this['_suggestionToController']['delete'](_0x36e86b),this['_viewToController']['delete'](_0x1051a5),_0x4d171f['destroy']();}['_updateController'](_0x34b522){if(!_0x34b522['isInContent']||!this['_suggestionToController']['has'](_0x34b522))return;const _0x3df059=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cb7fd=this['_suggestionToController']['get'](_0x34b522),_0x403166=_0x34b522['getAllAdjacentSuggestions']();_0x4cb7fd['view']['descriptionParts']=_0x3df059['descriptionFactory']['getDescriptions'](_0x403166);}['destroy'](){for(const _0x2624cc of this['_suggestionToController']['keys']())this['_destroyController'](_0x2624cc);for(const _0x854338 of this['_annotationViews']['values']())_0x854338['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3b676f){return'model'in _0x3b676f;}class k extends _0x5d6d85{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3a7325){this['editor']['plugins']['get'](p)['adapter']=_0x3a7325;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5a6e30){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5a6e30);}['getSuggestions']({skipNotAttached:_0x388823=!0x1,toJSON:_0xbb6bd5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x388823,'toJSON':_0xbb6bd5});}['getSuggestion'](_0x36f219){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x36f219);}}const w=['Pagination'];class T extends _0x5d6d85{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6dc72c=this['editor'];if(_0x6dc72c['config']['define']('trackChangesData.editorCreator',_0x14c976=>{const _0x5d4fbb=_0x6dc72c['model']['document']['getRootNames']()['reduce']((_0x3de3b1,_0x1cc34d)=>(_0x3de3b1[_0x1cc34d]='',_0x3de3b1),{});return _0x6dc72c['constructor']['create'](_0x5d4fbb,_0x14c976);}),'function'!=typeof _0x6dc72c['config']['get']('trackChangesData')['editorCreator'])throw new _0x29d5ac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xceb9a5){return N(this['editor'],!0x0,_0xceb9a5);}['getDataWithDiscardedSuggestions'](_0x5ba943){return N(this['editor'],!0x1,_0x5ba943);}}class D extends _0x5d6d85{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19cb1b){function _0x349503(_0x105462){return _0x105462['map'](_0x3b36ea=>String['fromCharCode'](_0x3b36ea))['join']('');}super(_0x19cb1b),this['result']='end',_0x19cb1b[_0x349503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x349503([0x76,0x69,0x65,0x77])][_0x349503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x349503([0x61,0x75,0x74,0x6f]),_0x19cb1b[_0x349503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x349503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x349503([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x349503([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x349503([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x36cf20){return void 0x0!==_0x36cf20['getRootsAttributes'];}async function N(_0x48fcfa,_0x207fa3,_0x34c887){const _0x3e25b9=_0x1faa66(_0x48fcfa,w);_0x3e25b9['plugins']['push'](p,D),_0x3e25b9['rootsAttributes']=Fe(_0x48fcfa)?_0x48fcfa['getRootsAttributes']():void 0x0;const _0x56d99d=document['createDocumentFragment'](),_0x1c49de=_0x48fcfa['config']['get']('trackChangesData')['editorCreator'],_0x106452=await _0x1c49de(_0x3e25b9,()=>function(_0x5ad0f1){const _0x5f4264=document['createElement']('div');return _0x5ad0f1['appendChild'](_0x5f4264),_0x5f4264;}(_0x56d99d));!function(_0x527470,_0x453d66){const _0x185a4b=_0x527470['model']['document']['getRootNames']()['reduce']((_0x4df2dd,_0x5d0ab4)=>(_0x4df2dd[_0x5d0ab4]=_0x527470['data']['get']({'rootName':_0x5d0ab4}),_0x4df2dd),{}),_0x1e3662=_0x527470['plugins']['get']('Users')['users']['map'](_0x1669db=>({'id':_0x1669db['id'],'name':_0x1669db['name']})),_0x2aa5b9=_0x527470['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x98e5cb=_0x527470['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x108f06=_0x453d66['plugins']['get']('Users'),_0x373876=_0x453d66['plugins']['get']('TrackChangesEditing'),_0x14e166=_0x453d66['plugins']['get']('CommentsRepository');for(const _0x5ae211 of _0x14e166['getCommentThreads']())_0x5ae211['remove']();for(const _0x1b4598 of _0x1e3662)_0x108f06['getUser'](_0x1b4598['id'])||_0x108f06['addUser'](_0x1b4598);_0x108f06['me']||_0x108f06['useAnonymousUser']();for(const _0xf2ec65 of _0x98e5cb)_0x14e166['addCommentThread'](_0xf2ec65);for(const _0x1b45d8 of _0x2aa5b9)_0x373876['addSuggestionData'](_0x1b45d8);_0x453d66['data']['set'](_0x185a4b);}(_0x48fcfa,_0x106452),_0x106452['execute'](_0x207fa3?'acceptAllSuggestions':'discardAllSuggestions');const _0x4419d8=Fe(_0x106452)?_0x106452['getFullData'](_0x34c887):_0x106452['data']['get'](_0x34c887);return await _0x106452['destroy'](),_0x4419d8;}class Me extends _0xb8f822{['options'];constructor(_0x46ff0a,_0x3d6f00){super(_0x46ff0a),this['options']=_0x3d6f00,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'](_0x467521,_0x1137aa){if(!this['element'])return;const _0x43f400=[];for(const [_0x3bc055,_0x9ac524]of _0x467521){const _0x15b948=document['createElement']('div');_0x15b948['setAttribute']('data-ck-root-name',_0x3bc055),_0x15b948['className']=_0x9ac524['classes']+'\x20ck-track-changes-preview__root-container',_0x15b948['innerHTML']=_0x9ac524['content'],_0x43f400['push'](_0x15b948);}_0x1137aa(this['element'],_0x43f400),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x108780){super(_0x108780),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x436286=this['editor'],_0x474ab4=_0x436286['locale'],_0x372016=_0x436286['plugins']['get']('Dialog');let _0x3e660c;const _0x2c1eda=function(_0x4e2509){const _0x126eaa={};if('editables'in _0x4e2509['ui']['view']){for(const [_0x10409d,_0x13d690]of Object['entries'](_0x4e2509['ui']['view']['editables']))_0x126eaa[_0x10409d]=_0x13d690['element'];}else _0x126eaa[_0x4e2509['model']['document']['getRootNames']()[0x0]]=_0x4e2509['ui']['view']['editable']['element'];return _0x126eaa;}(_0x436286),_0x398b77=function(_0x2a4d58){let _0x65fd8e=0x0;for(const _0x59777e of Object['values'](_0x2a4d58))_0x65fd8e=Math['max'](_0x65fd8e,_0x59777e['getBoundingClientRect']()['width']);let _0x3b27ed=0x0;for(const _0x1d6771 of Object['values'](_0x2a4d58))_0x3b27ed+=_0x1d6771['getBoundingClientRect']()['height'];const _0x1cf4cb=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4c5aa9=Math['min'](_0x3b27ed,_0x1cf4cb);return{'width':_0x65fd8e,'height':_0x4c5aa9};}(_0x2c1eda);_0x372016['show']({'id':'finalContentPreview','title':o(_0x474ab4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x474ab4,{'dialogRects':_0x398b77}),'onHide':()=>{_0x3e660c['detachFromDom']();},'onShow':()=>{_0x436286['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x295482=>{const _0x43502f=this['_standarizeRootsData'](_0x295482,_0x436286,_0x2c1eda);_0x372016['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43502f,_0x436286['config']['get']('trackChanges.preview.renderFunction'));}),_0x3e660c=new _0x1ab9e7(_0x474ab4,[_0x372016['view']]),_0x3e660c['attachToDom'](),_0x3e660c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x436286['once']('destroy',()=>{_0x3e660c['detachFromDom']();});const _0x50bf52=_0x372016['view']['headerView']['class'];_0x372016['view']['headerView']['class']=_0x50bf52?_0x50bf52+'\x20ck-reset_all':'ck-reset_all',_0x372016['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x372016['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x447090=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x31892b=_0x447090['previewMode'],_0x289eb1={};if('$labels'===_0x31892b){for(const _0x45c6c6 of _0x447090['getMergeFieldsIds']())_0x289eb1[_0x45c6c6]=_0x447090['getLabel'](_0x45c6c6)||_0x45c6c6;}else{const _0x345054='$defaultValues'===_0x31892b?_0x447090['getDefaultValues']():_0x447090['getDataSetValues'](_0x31892b,!0x0);for(const _0x3711bd of Object['entries'](_0x345054)){const [_0x242356,_0x382904]=_0x3711bd;_0x289eb1[_0x242356]=null!==_0x382904?_0x382904:_0x447090['getLabel'](_0x242356)||_0x242356;}}return{'mergeFieldsData':_0x289eb1};}['_standarizeRootsData'](_0x4ebfe9,_0x29d527,_0x17d824){let _0x11e4a1;if('string'==typeof _0x4ebfe9){const _0x3e33e3=_0x29d527['model']['document']['getRootNames']()[0x0];_0x11e4a1={[_0x3e33e3]:_0x4ebfe9};}else _0x11e4a1=_0x4ebfe9;const _0x2c9fe9=this['_fixMediaEmbeds'](_0x11e4a1,_0x29d527),_0x418d3f=function(_0x508c96,_0x2fd092){for(const [_0x9eb477,_0x34afc8]of _0x508c96)_0x34afc8['classes']=_0x2fd092[_0x9eb477]['classList']['value']['replace']('ck-focused','');return _0x508c96;}(this['_sortRoots'](_0x29d527)['reduce']((_0x43f654,_0x4c8291)=>(_0x43f654['push']([_0x4c8291,{'content':_0x2c9fe9[_0x4c8291],'classes':''}]),_0x43f654),[]),_0x17d824);return _0x418d3f;}['_fixMediaEmbeds'](_0x38cfc2,_0x28cef9){if(!_0x28cef9['plugins']['has']('MediaEmbedEditing'))return _0x38cfc2;const _0x96d6f2=_0x28cef9['plugins']['get']('MediaEmbedEditing');for(const [_0x54aea9,_0x17f34e]of Object['entries'](_0x38cfc2)){const _0x23d532=document['createElement']('div');_0x23d532['innerHTML']=_0x17f34e,(_0x23d532['querySelectorAll']('figure.media')['forEach'](_0x12fffe=>{const _0x75f948=_0x12fffe['querySelector']('oembed');if(_0x75f948){const _0x5a024c=_0x75f948['getAttribute']('url');if(_0x5a024c){const _0x47b482=_0x96d6f2['registry']['getMediaViewElement'](new _0x13342a(_0x28cef9['editing']['view']['document']),_0x5a024c,{'elementName':'','renderForEditingView':!0x0}),_0x45c7af=document['createElement']('div');_0x45c7af['classList']['add']('ck-media__wrapper'),_0x47b482['render'](_0x45c7af,_0x28cef9['editing']['view']['domConverter']),_0x75f948['replaceWith'](_0x45c7af);}}}),_0x38cfc2[_0x54aea9]=_0x23d532['innerHTML']);}return _0x38cfc2;}['_sortRoots'](_0x4c54db){if(!function(_0x1ab107){return void 0x0!==_0x1ab107['getRootsAttributes'];}(_0x4c54db))return _0x4c54db['model']['document']['getRootNames']();const _0x305498=[],_0x445cda=new Map();for(const _0x1fba06 of _0x4c54db['model']['document']['getRootNames']()){const _0x1bad88=_0x4c54db['editing']['view']['getDomRoot'](_0x1fba06)['getClientRects']()['item'](0x0);_0x305498['push'](_0x1fba06),_0x445cda['set'](_0x1fba06,_0x1bad88);}return _0x305498['sort']((_0x29bb77,_0x337d52)=>{const _0x2b7eed=_0x445cda['get'](_0x29bb77),_0x38c344=_0x445cda['get'](_0x337d52);return _0x2b7eed['y']-_0x38c344['y']||_0x2b7eed['x']-_0x38c344['x'];}),_0x305498;}}class te extends _0x5d6d85{static get['requires'](){return[T,_0x4fd160];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x220e22){super(_0x220e22),_0x220e22['commands']['add']('previewFinalContent',new re(this['editor'])),_0x220e22['config']['define']('trackChanges.preview.renderFunction',(_0x22d4f1,_0x2dc5c4)=>{for(const _0xc72b00 of _0x2dc5c4)_0x22d4f1['appendChild'](_0xc72b00);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x32d277,PendingActions as _0x46e603,icons as _0x1280c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c4487,ObservableMixin as _0x6fb9b,uid as _0x12e0b6,priorities as _0x3e5933,insertToPriorityArray as _0x3a2fa8,logWarning as _0x194bc4,getEnvKeystrokeText as _0xe7169f,FocusTracker as _0x127950,KeystrokeHandler as _0x260502,Collection as _0x3a7b8e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9dac81,View as _0x19b550,ViewCollection as _0xd0bff9,FocusCycler as ts,ViewModel as _0x127161,createDropdown as _0x111af9,SplitButtonView as _0x4045c4,addListToDropdown as _0x387a00,MenuBarMenuView as _0x544f32,MenuBarMenuListView as _0x10e9be,ListSeparatorView as _0x1b58c6,MenuBarMenuListItemView as _0x30c9f3,MenuBarMenuListItemButtonView as _0x28a4cd,BodyCollection as _0x2cf5af,Dialog as _0x2e48b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x485da9,hashObject as _0x1f57d0,surroundingMarkersDetector as _0x54a2c9,FOCUS_ANNOTATION_KEYSTROKE as _0x1980b7,AriaDescriptionView as _0x3d12d4,setupThreadKeyboardNavigation as _0x418455,trimHtml as _0x5e35a2,UserView as _0x163e6a,LateFocusButtonView as _0x3e0fbb,getDateTimeFormatter as _0x4fcd9d,getAllMarkersDomElementsSorted as _0x54bfae,sanitizeEditorConfig as _0x218599}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45cc74,LiveRange as _0x14dd4f,LivePosition as _0x1adf65,DowncastWriter as _0x2200ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xb393f7,toWidget as _0x20d843}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4538e0,set as _0x315543,isEqual as _0x42e77d,unset as _0x585406,omit as Et}from'lodash-es';import{Delete as _0x4c5371,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xc65384,ShiftEnter as _0x4ae6b1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x1ef2e1,_0x4aeb3f){super(_0x1ef2e1),this['_enabledCommands']=_0x4aeb3f,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 _0x3c234d of this['editor']['commands']['commands']())_0x3c234d['affectsData']&&!this['_enabledCommands']['has'](_0x3c234d)&&_0x3c234d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x939c5b of this['editor']['commands']['commands']())_0x939c5b['affectsData']&&!this['_enabledCommands']['has'](_0x939c5b)&&_0x939c5b['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x5629d4,_0x101918){super(_0x5629d4),this['_suggestions']=_0x101918,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e5b1b){const _0x3f03bd=this['_suggestions']['get'](_0x4e5b1b);if(!_0x3f03bd)throw new _0x3c4487('track-changes-accept-suggestion-not-found',this);const _0x3d9ce5=_0x3f03bd['getRanges']();this['editor']['model']['canEditAt'](_0x3d9ce5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f03bd);}}class R extends Qt{['_suggestions'];constructor(_0x52f0af,_0x12489c){super(_0x52f0af),this['_suggestions']=_0x12489c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2760fe){const _0x482cc8=this['_suggestions']['get'](_0x2760fe);if(!_0x482cc8)throw new _0x3c4487('track-changes-discard-suggestion-not-found',this);const _0x23abee=_0x482cc8['getRanges']();this['editor']['model']['canEditAt'](_0x23abee)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x482cc8);}}function ns(_0x489950,_0x4f3fb8){let _0xcafa34='';return _0xcafa34+=_0x489950['split']('*')['map']((_0x5b6312,_0x4793dd)=>_0x4793dd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5b6312)+'</span>':nn(_0x5b6312))['join'](''),_0x4f3fb8&&(_0xcafa34+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4f3fb8['value']+'\x22\x20title=\x22'+_0x4f3fb8['title']+'\x22></span>'),_0xcafa34;}function nn(_0x3eb8fa){const _0x2dfe1c=document['createElement']('span');return _0x2dfe1c['innerText']=_0x3eb8fa,_0x2dfe1c['innerHTML'];}function Xt(_0x5e5e23){return _0x5e5e23['sort']((_0x175940,_0x3cdf96)=>'deletion'==_0x175940['type']&&'deletion'!=_0x3cdf96['type']?-0x1:'deletion'!=_0x175940['type']&&'deletion'==_0x3cdf96['type']?0x1:0x0);}function to(_0x4cc98f,_0xf04925){let _0x552505,_0x1087e9=0x0;const _0x1c4086=[],_0x18e46c=_0xf04925['schema'];for(;_0x1087e9<_0x4cc98f['length'];){const _0x40c19a=_0x4cc98f[_0x1087e9],_0x18c8c3=_0x4cc98f[_0x1087e9+0x1];_0x552505||(_0x552505=_0xf04925['createPositionBefore'](_0x40c19a)),on(_0xf04925,_0x40c19a,_0x18c8c3)||(_0x1c4086['push'](_0xf04925['createRange'](_0x552505,_0x18e46c['isObject'](_0x40c19a)?_0xf04925['createPositionAfter'](_0x40c19a):_0xf04925['createPositionAt'](_0x40c19a,'end'))),_0x552505=null),_0x1087e9++;}return _0x1c4086;}function on(_0x299e21,_0x267fd5,_0x253f67){if(!_0x253f67)return!0x1;const _0x144b78=_0x299e21['createPositionAfter'](_0x267fd5),_0x48a701=_0x299e21['createPositionBefore'](_0x253f67);return _0x144b78['isTouching'](_0x48a701);}function Yt(_0x261203,_0x3e72c3,_0x5228d2){for(;_0x5228d2['length'];){const _0x1ef5e7=_0x5228d2['splice'](0x0,0x64);_0x261203['change'](()=>{for(const _0x5f3d80 of _0x1ef5e7)_0x5f3d80['isInContent']&&_0x3e72c3['execute'](_0x5f3d80['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x2c3600,_0xb999ed,_0x5f0365){super(_0x2c3600),this['_command']=_0xb999ed,this['_suggestions']=_0x5f0365,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x435b43=Array['from'](this['_suggestions']['values']())['some'](_0x337c48=>_0x337c48['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x435b43;}['execute'](){const _0x1e7674=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x5df445 of _0x1e7674){const _0x5c2936=_0x5df445['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c2936))return;}Yt(this['editor']['model'],this['_command'],_0x1e7674);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a0e1c,_0x241d2d,_0x526944){super(_0x4a0e1c),this['_command']=_0x241d2d,this['_suggestions']=_0x526944,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x486460=this['editor']['model']['document']['selection'],_0x1b0d3a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4fd1f0,_0x30bf14){const _0x4f3c63=Array['from'](_0x4fd1f0['getRanges']()),_0x1fc5cb=new Set();for(const _0x3092ca of _0x30bf14)if(_0x3092ca['isInContent']){for(const _0x5061bf of _0x4f3c63)for(const _0xd0806d of _0x3092ca['getRanges']())(_0x5061bf['isIntersecting'](_0xd0806d)||_0x4fd1f0['isCollapsed']&&!_0x3092ca['isMultiRange']&&_0x3092ca['next']&&_0xd0806d['end']['isTouching'](_0x5061bf['start']))&&_0x1fc5cb['add'](_0x3092ca);}return _0x1fc5cb;}(_0x486460,_0x1b0d3a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x207e3e=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x535467 of _0x207e3e){const _0x28d6e9=_0x535467['getRanges']();if(!this['editor']['model']['canEditAt'](_0x28d6e9))return;}Yt(this['editor']['model'],this['_command'],_0x207e3e);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x6fb9b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x413174,_0x5cc3c3){super(),this['id']=_0x5cc3c3['id'],this['type']=_0x5cc3c3['type'],this['subType']=_0x5cc3c3['subType']||null,this['author']=_0x5cc3c3['author'],this['creator']=_0x5cc3c3['creator']||_0x5cc3c3['author'],this['isExternal']=Boolean(_0x5cc3c3['attributes']&&_0x5cc3c3['attributes']['@external']),this['data']=null,this['_model']=_0x413174,this['_onAccept']=_0x5cc3c3['onAccept'],this['_onDiscard']=_0x5cc3c3['onDiscard'],this['_onAttributesChange']=_0x5cc3c3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5cc3c3['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 _0x35b491=this;for(;_0x35b491['previous'];)_0x35b491=_0x35b491['previous'];return _0x35b491;}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'](_0x1ed62a){this['_markerNames']['add'](_0x1ed62a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2096c5=>this['_model']['markers']['get'](_0x2096c5))['filter'](_0xd5cf5c=>_0xd5cf5c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x498419=>{for(const _0x4d2b97 of this['getMarkers']())_0x498419['removeMarker'](_0x4d2b97);}),this['_markerNames']['clear']();}['removeMarker'](_0x1f6f7c){this['_model']['change'](_0xf373ef=>{_0xf373ef['removeMarker'](_0x1f6f7c);}),this['_markerNames']['delete'](_0x1f6f7c);}['addRange'](_0x3af636){const _0x68f1ca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x68f1ca),this['_model']['change'](_0x173de6=>{_0x173de6['addMarker'](_0x68f1ca,{'range':_0x3af636,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e3377){for(const _0x1d97b2 of this['getRanges']())if(_0x1d97b2['isIntersecting'](_0x3e3377))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46d6f5=>_0x46d6f5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4bc200,_0xa4a238)=>[..._0x4bc200,..._0xa4a238['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3f2e83=this['getRanges']();if(0x1!=_0x3f2e83['length'])return null;const _0x32d5ff=_0x3f2e83[0x0],_0x563b20=_0x32d5ff['start']['nodeAfter'],_0x5206c1=_0x32d5ff['end']['nodeBefore'];return _0x563b20 instanceof _0x45cc74?_0x563b20!=_0x5206c1?null:_0x563b20: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 _0x3019d3=[];let _0x23d0ca=this['head'];for(;_0x23d0ca;)_0x3019d3['push'](_0x23d0ca),_0x23d0ca=_0x23d0ca['next'];return _0x3019d3;}['setAttribute'](_0x3a6179,_0x3bf1cb){const _0x55350c=_0x4538e0(this['attributes']);_0x315543(_0x55350c,_0x3a6179,_0x3bf1cb),_0x42e77d(_0x55350c,this['attributes'])||(this['attributes']=_0x55350c,this['_onAttributesChange'](_0x55350c));}['removeAttribute'](_0x3ea053){const _0x36b9c0=_0x4538e0(this['attributes']);_0x585406(_0x36b9c0,_0x3ea053),_0x42e77d(_0x36b9c0,this['attributes'])||(this['attributes']=_0x36b9c0,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 _0x12e0b6()['substr'](0x1,0x5);}}function o(_0x617f0c,_0x29ab23,_0x46edcb){const _0x7c1e65=_0x617f0c['t'],t=_0x617f0c['t'];switch(_0x29ab23){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',_0x46edcb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46edcb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46edcb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46edcb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46edcb);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',_0x46edcb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46edcb);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',_0x46edcb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46edcb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46edcb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46edcb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46edcb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46edcb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46edcb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46edcb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46edcb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46edcb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46edcb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46edcb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46edcb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46edcb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46edcb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46edcb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46edcb);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'},_0x46edcb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46edcb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46edcb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46edcb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46edcb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46edcb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46edcb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46edcb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46edcb);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'},_0x46edcb);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x46edcb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46edcb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46edcb);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'},_0x46edcb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46edcb);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 _0x7c1e65({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46edcb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x7c1e65({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46edcb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);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'},_0x46edcb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x29ab23;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d5f79,_0x17a7ab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d5f79,this['_locale']=_0x17a7ab;}['getDescriptions'](_0x445669){const _0x308257=[],_0x2e512d=new Set(),_0x3844c1=new Set();for(let _0x5238c3=0x0;_0x5238c3<_0x445669['length'];_0x5238c3++){const _0x487177=_0x445669[_0x5238c3];if(!_0x487177['isInContent'])continue;const _0x6b35d2=this['_handleCustomCallbackDescription'](_0x487177);if(_0x6b35d2){if(null!=_0x487177['subType']){if(_0x2e512d['has'](_0x487177['subType']))continue;_0x2e512d['add'](_0x487177['subType']);}_0x308257['push'](_0x6b35d2);}else{if('attribute'!=_0x487177['type'])'insertion'!=_0x487177['type']&&'deletion'!=_0x487177['type']||this['_handleInsertRemoveSuggestionDescription'](_0x308257,_0x487177,_0x445669[_0x5238c3+0x1]);else{const _0x3a9d22=_0x487177['data']['key'];if(_0x3844c1['has'](_0x3a9d22))continue;_0x3844c1['add'](_0x487177['data']['key']),_0x3a9d22==m?this['_handleRenameSuggestionDescription'](_0x308257,_0x487177):this['_handleAttributeSuggestionDescription'](_0x308257,_0x487177);}}}return this['_resolveDescriptionItems'](_0x308257);}['registerDescriptionCallback'](_0x269bc6){this['_customCallbacks']['push'](_0x269bc6);}['registerElementLabel'](_0x1af446,_0x22d942,_0x2e2eaa=_0x3e5933['normal']){'function'==typeof _0x1af446?_0x3a2fa8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1af446,'label':_0x22d942,'priority':_0x2e2eaa}):this['_itemLabels']['set'](_0x1af446,_0x22d942);}['registerAttributeLabel'](_0x539157,_0x4f07ed){this['_attributeLabels']['set'](_0x539157,_0x4f07ed);}['getItemLabel'](_0x42f12e,_0x39dd51=0x1){let _0x27f383;for(const _0x5f34e1 of this['_itemLabelsCallbacks'])if(_0x5f34e1['matchingCallback'](_0x42f12e)){_0x27f383=_0x5f34e1['label'];break;}return _0x27f383||(_0x27f383=this['_itemLabels']['get'](_0x42f12e['name'])),_0x27f383?_0x27f383(_0x39dd51):0x1!==_0x39dd51?_0x39dd51+'\x20'+_0x42f12e['name']+'s':''+_0x42f12e['name'];}['_addDescriptionItems'](_0x524b30,_0x37ca78){const _0x20ea06=_0x37ca78['getFirstRange']()['getWalker'](),_0x1cd5cc='insertion'==_0x37ca78['type']?'add':'remove';for(const _0x4e4510 of _0x20ea06){const _0x11323e=_0x4e4510['item'],_0x358a0d=_0x524b30[_0x524b30['length']-0x1];if(_0x11323e['is']('$textProxy'))_0x358a0d&&_0x358a0d['type']['indexOf']('Container')>-0x1&&_0x524b30['pop'](),_0x358a0d&&'text'==_0x358a0d['type']?_0x358a0d[_0x1cd5cc]+=_0x11323e['data']:_0x524b30['push']({'type':'text','add':'add'==_0x1cd5cc?_0x11323e['data']:'','remove':'remove'==_0x1cd5cc?_0x11323e['data']:''});else{if(this['_schema']['isObject'](_0x11323e)){const _0x38b14c=_0x11323e;if(_0x358a0d&&_0x358a0d['type']['indexOf']('Container')>-0x1&&_0x524b30['pop'](),'elementEnd'==_0x4e4510['type'])continue;_0x358a0d&&_0x358a0d['type']==_0x1cd5cc+'Object'&&_0x358a0d['element']['name']==_0x38b14c['name']?_0x358a0d['quantity']++:_0x524b30['push']({'type':_0x1cd5cc+'Object','element':_0x38b14c,'quantity':0x1}),_0x20ea06['skip'](_0x22ae42=>!('elementEnd'==_0x22ae42['type']&&_0x22ae42['item']==_0x11323e));}else{if(this['_schema']['checkChild'](_0x11323e,'$text')||_0x11323e['is']('element','softBreak')){const _0x15808c=_0x11323e;if('add'==_0x1cd5cc&&'elementStart'==_0x4e4510['type']||'remove'==_0x1cd5cc&&'elementEnd'==_0x4e4510['type'])continue;if(_0x358a0d&&-0x1==_0x358a0d['type']['indexOf']('Container')){'text'==_0x358a0d['type']&&(_0x358a0d[_0x1cd5cc]+='\x0a');continue;}let _0x4858a7;if(_0x4858a7='add'==_0x1cd5cc?_0x15808c['nextSibling']&&!this['_schema']['isObject'](_0x15808c['nextSibling'])?_0x15808c['nextSibling']:null:_0x15808c['previousSibling']&&!this['_schema']['isObject'](_0x15808c['previousSibling'])?_0x15808c['previousSibling']:null,_0x15808c['isEmpty']||_0x4858a7&&_0x4858a7['isEmpty']){const _0x467bc7=_0x4858a7&&_0x4858a7['isEmpty']?_0x4858a7:_0x15808c;_0x358a0d&&_0x358a0d['type']==_0x1cd5cc+'EmptyContainer'&&_0x358a0d['element']['name']==_0x467bc7['name']?_0x358a0d['quantity']++:_0x524b30['push']({'type':_0x1cd5cc+'EmptyContainer','element':_0x467bc7,'quantity':0x1});}else _0x524b30['push']({'type':_0x1cd5cc+'Container','element':_0x15808c});}}}}}['_resolveDescriptionItems'](_0x5a20e5){const _0x57bc89=this['_locale'],_0x3b80d2=[],_0x588ec0=[],_0xed432=[];for(const _0x436c3f of _0x5a20e5)switch(_0x436c3f['type']){case'text':if(_0x436c3f['add']=_0x436c3f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x436c3f['remove']=_0x436c3f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x436c3f['add']&&''!=_0x436c3f['remove']){_0x3b80d2['push']({'type':'replace','content':o(_0x57bc89,'REPLACE_TEXT',['\x22'+_0x436c3f['remove']+'\x22','\x22'+_0x436c3f['add']+'\x22'])});continue;}if(null!=_0x436c3f['add']['match'](/^ +$/)){_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0',o(_0x57bc89,'ELEMENT_SPACE',_0x436c3f['add']['length']))});continue;}if(null!=_0x436c3f['remove']['match'](/^ +$/)){_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0',o(_0x57bc89,'ELEMENT_SPACE',_0x436c3f['remove']['length']))});continue;}if(''!=_0x436c3f['add']){_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0','\x22'+_0x436c3f['add']+'\x22')});continue;}_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0','\x22'+_0x436c3f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Insert:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Remove:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'addContainer':_0x3b80d2['push']({'type':'insertion','content':o(_0x57bc89,'*Split:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'removeContainer':_0x3b80d2['push']({'type':'deletion','content':o(_0x57bc89,'*Merge:*\x20%0',this['getItemLabel'](_0x436c3f['element'],_0x436c3f['quantity']))});continue;case'addFormat':_0x588ec0['push'](_0x436c3f['key']);continue;case'removeFormat':_0xed432['push'](_0x436c3f['key']);continue;default:_0x3b80d2['push'](_0x436c3f);}if(_0x588ec0['length']){const _0x4850b6=_0x588ec0['map'](_0xafc0a1=>this['_attributeLabels']['has'](_0xafc0a1)?this['_attributeLabels']['get'](_0xafc0a1):_0xafc0a1)['join'](',\x20');_0x3b80d2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4850b6)});}if(_0xed432['length']){const _0x495398=_0xed432['map'](_0x34f367=>this['_attributeLabels']['has'](_0x34f367)?this['_attributeLabels']['get'](_0x34f367):_0x34f367)['join'](',\x20');_0x3b80d2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x495398)});}return _0x3b80d2;}['_handleCustomCallbackDescription'](_0x29a58c){for(const _0x1aeaaf of this['_customCallbacks']){const _0x3e8ee9=_0x1aeaaf(_0x29a58c);if(_0x3e8ee9&&'type'in _0x3e8ee9)return _0x3e8ee9;}}['_handleAttributeSuggestionDescription'](_0x511597,_0x559a28){const _0x2faa0f=_0x559a28['data'],_0x5b7d98=void 0x0===_0x2faa0f['newValue']?'removeFormat':'addFormat';_0x511597['push']({'type':_0x5b7d98,'key':_0x2faa0f['key']});}['_handleRenameSuggestionDescription'](_0x2fdd74,_0x371ffc){_0x2fdd74['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x371ffc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x462a8c,_0x20094a,_0x5429a4){if(this['_addDescriptionItems'](_0x462a8c,_0x20094a),_0x5429a4&&_0x5429a4['getFirstRange']()&&!_0x20094a['getFirstRange']()['end']['isEqual'](_0x5429a4['getFirstRange']()['start'])){const _0x3638c1=_0x462a8c[_0x462a8c['length']-0x1],_0x5274ff='insertion'==_0x20094a['type']?'add':'remove';_0x3638c1&&'text'==_0x3638c1['type']&&(_0x3638c1[_0x5274ff]+='\x0a');}}}class U extends _0x32d277{['afterInit'](){const _0x59dbdd=this['editor'],_0x1774db=_0x59dbdd['plugins']['get']('TrackChangesEditing');_0x59dbdd['commands']['get']('showAIAssistant')&&_0x1774db['enableCommand']('showAIAssistant');}}class V extends _0x32d277{['afterInit'](){const _0x374ae0=this['editor'],_0x43f583=_0x374ae0['locale'];if(!_0x374ae0['plugins']['has']('AlignmentEditing'))return;const _0x35b0e5=_0x374ae0['plugins']['get']('TrackChangesEditing');_0x35b0e5['enableDefaultAttributesIntegration']('alignment'),_0x35b0e5['registerBlockAttribute']('alignment'),_0x35b0e5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x43f583,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198fde=this['editor'],_0x5e21a4=_0x198fde['locale'];_0x198fde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5f4c=>{if('formatBlock'!=_0x2e5f4c['type'])return;const {data:_0x2c8620}=_0x2e5f4c;if(_0x2c8620&&'alignment'==_0x2c8620['commandName']){const _0x202a74=_0x2c8620['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5e21a4,'*Format:*\x20%0',function(_0x2bb794){switch(_0x2bb794){case'left':return o(_0x5e21a4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5e21a4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5e21a4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5e21a4,'FORMAT_JUSTIFY_TEXT');}}(_0x202a74))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x32d277{['afterInit'](){const _0x1fc509=this['editor'],_0x14a099=_0x1fc509['plugins']['get']('TrackChangesEditing'),_0x2762d9=_0x1fc509['locale'];for(const _0x1e39ad of ti){if(!_0x1fc509['plugins']['has'](_0x1e39ad))continue;const _0x4ee649=_0x1e39ad['slice'](0x0,-0x7)['toLowerCase'](),_0x4f442b='FORMAT_'+_0x4ee649['toUpperCase']();_0x14a099['enableDefaultAttributesIntegration'](_0x4ee649),_0x14a099['registerInlineAttribute'](_0x4ee649),_0x14a099['descriptionFactory']['registerAttributeLabel'](_0x4ee649,o(_0x2762d9,_0x4f442b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc4ad=this['editor'],_0x4e3b72=_0x1dc4ad['locale'],_0x56284f=_0x1dc4ad['plugins']['get']('TrackChangesEditing');function _0x1dbf4d(_0x5a78c7,_0x5a303d){_0x56284f['descriptionFactory']['registerDescriptionCallback'](_0x27887d=>{if('formatInline'!=_0x27887d['type'])return;const {data:_0x5be476}=_0x27887d;return _0x5be476&&_0x5be476['commandName']===_0x5a78c7?_0x5be476['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e3b72,'*Format:*\x20%0',_0x5a303d)}:{'type':'format','content':o(_0x4e3b72,'*Remove\x20format:*\x20%0',_0x5a303d)}:void 0x0;});}_0x1dbf4d('bold',o(_0x4e3b72,'FORMAT_BOLD')),_0x1dbf4d('italic',o(_0x4e3b72,'FORMAT_ITALIC')),_0x1dbf4d('underline',o(_0x4e3b72,'FORMAT_UNDERLINE')),_0x1dbf4d('code',o(_0x4e3b72,'FORMAT_CODE')),_0x1dbf4d('strikethrough',o(_0x4e3b72,'FORMAT_STRIKETHROUGH')),_0x1dbf4d('subscript',o(_0x4e3b72,'FORMAT_SUBSCRIPT')),_0x1dbf4d('superscript',o(_0x4e3b72,'FORMAT_SUPERSCRIPT'));}}class F extends _0x32d277{['afterInit'](){const _0xeac70b=this['editor'],_0x3dc1c8=_0xeac70b['locale'];if(!_0xeac70b['plugins']['has']('BlockQuoteEditing'))return;const _0x2559f3=_0xeac70b['plugins']['get']('TrackChangesEditing'),_0x3ad922=this['editor']['commands']['get']('blockQuote');_0x2559f3['enableCommand']('blockQuote',(_0x31438f,_0x234bff={})=>{const _0x429553=this['editor']['model']['document']['selection'],_0x10ebca=_0x234bff&&void 0x0!==_0x234bff['forceValue']?_0x234bff['forceValue']:!_0x3ad922['value'];let _0x2a9558=[];if(_0x10ebca){const _0x49e35d=Array['from'](_0x429553['getSelectedBlocks']())['filter'](_0x211bc1=>oo(_0x211bc1)||function(_0x1a5dfa,_0x418fee){const _0x3ccfde=_0x418fee['checkChild'](_0x1a5dfa['parent'],'blockQuote'),_0xee2764=_0x418fee['checkChild'](['$root','blockQuote'],_0x1a5dfa);return _0x3ccfde&&_0xee2764;}(_0x211bc1,this['editor']['model']['schema']));_0x2a9558=to(_0x49e35d,_0xeac70b['model']);}else{const _0x52f5a3=Array['from'](_0x429553['getSelectedBlocks']())['filter'](_0x2f2548=>oo(_0x2f2548));_0x2a9558=to(_0x52f5a3,_0xeac70b['model']);}_0xeac70b['model']['change'](()=>{for(const _0x4e897e of _0x2a9558)_0x2559f3['markBlockFormat'](_0x4e897e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10ebca}]});});}),_0x2559f3['descriptionFactory']['registerDescriptionCallback'](_0x2823f9=>{const {data:_0x571cf7}=_0x2823f9;if(_0x571cf7&&'blockQuote'==_0x571cf7['commandName']){const _0x1ba73f=o(_0x3dc1c8,'ELEMENT_BLOCK_QUOTE');return _0x571cf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dc1c8,'*Set\x20format:*\x20%0',_0x1ba73f)}:{'type':'format','content':o(_0x3dc1c8,'*Remove\x20format:*\x20%0',_0x1ba73f)};}});}}function oo(_0x151ae8){return'blockQuote'==_0x151ae8['parent']['name'];}class L extends _0x32d277{['afterInit'](){const _0x44f2e2=this['editor'],_0x5bdf7c=_0x44f2e2['locale'],_0x110949=_0x44f2e2['plugins']['get']('TrackChangesEditing');_0x44f2e2['plugins']['has']('BookmarkEditing')&&(_0x110949['enableCommand']('insertBookmark'),_0x110949['enableDefaultAttributesIntegration']('updateBookmark'),_0x110949['registerBlockAttribute']('bookmarkId'),_0x110949['descriptionFactory']['registerDescriptionCallback'](_0x50cbcc=>{if('insertion'!=_0x50cbcc['type']&&'deletion'!=_0x50cbcc['type']&&'attribute'!=_0x50cbcc['type'])return;const _0x121596=_0x50cbcc['getContainedElement']();if(null==_0x121596)return;if(!_0x121596['is']('element','bookmark'))return;const _0x3ee900=_0x121596['getAttribute']('bookmarkId');if('insertion'==_0x50cbcc['type'])return{'type':'insertion','content':o(_0x5bdf7c,'*Insert:*\x20%0','\x22'+_0x3ee900+'\x22\x20'+o(_0x5bdf7c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x50cbcc['type'])return{'type':'deletion','content':o(_0x5bdf7c,'*Remove:*\x20%0','\x22'+_0x3ee900+'\x22\x20'+o(_0x5bdf7c,'ELEMENT_BOOKMARK'))};const {data:_0x37279e}=_0x50cbcc;if(!_0x37279e||'bookmarkId'!=_0x37279e['key'])return;return{'type':'format','content':o(_0x5bdf7c,'*Set\x20bookmark:*\x20%0','\x22'+_0x37279e['newValue']+'\x22')};}));}}class J extends _0x32d277{['afterInit'](){const _0x299b78=this['editor'];_0x299b78['plugins']['has']('CaseChange')&&(_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x299b78['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x32d277{['afterInit'](){const _0xf246c2=this['editor'];_0xf246c2['commands']['get']('ckbox')&&_0xf246c2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x32d277{['afterInit'](){const _0x3d135d=this['editor'];if(!_0x3d135d['plugins']['has']('CodeBlock'))return;const _0x59a31d=_0x3d135d['plugins']['get']('TrackChangesEditing'),_0x31fef8=_0x3d135d['locale'],_0x19ff2d=_0x3d135d['config']['get']('codeBlock')['languages'],_0x5f1880=_0x3d135d['commands']['get']('codeBlock');_0x59a31d['enableCommand']('indentCodeBlock'),_0x59a31d['enableCommand']('outdentCodeBlock'),_0x59a31d['enableCommand']('codeBlock',(_0x3489b7,_0x16f2c1={})=>{const _0x2b0133=_0x3d135d['model'],_0x537c99=_0x3d135d['model']['document']['selection'],_0x2f0134=_0x16f2c1&&void 0x0!==_0x16f2c1['forceValue']?_0x16f2c1['forceValue']:!_0x5f1880['value'];let _0x4e664c;_0x16f2c1['language']||(_0x16f2c1['language']=_0x19ff2d[0x0]['language']),_0x4e664c=_0x2f0134?Array['from'](_0x537c99['getSelectedBlocks']())['filter'](_0x490563=>eo(_0x490563)||function(_0xb17ed7,_0x1ab9e2){if(_0xb17ed7['is']('rootElement')||_0x1ab9e2['isLimit'](_0xb17ed7))return!0x1;return _0x1ab9e2['checkChild'](_0xb17ed7['parent'],'codeBlock');}(_0x490563,_0x2b0133['schema'])):Array['from'](_0x537c99['getSelectedBlocks']())['filter'](_0x1f8189=>eo(_0x1f8189));const _0x4f0429=to(_0x4e664c,_0x2b0133);_0x2b0133['change'](()=>{for(const _0x15890f of _0x4f0429)_0x59a31d['markBlockFormat'](_0x15890f,{'commandName':'codeBlock','commandParams':[{..._0x16f2c1,'forceValue':_0x2f0134}],'formatGroupId':'blockName'});});}),(_0x59a31d['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e4ca7=>o(_0x31fef8,'ELEMENT_CODE_BLOCK',_0x5e4ca7)),_0x59a31d['descriptionFactory']['registerDescriptionCallback'](_0x4499a2=>{if('formatBlock'!=_0x4499a2['type'])return;const _0xe224c9=_0x31fef8['t'],{data:_0x5a76bf}=_0x4499a2;if(!_0x5a76bf||'codeBlock'!=_0x5a76bf['commandName'])return;const _0xfcc7e0=_0x5a76bf['commandParams'][0x0]['language'],_0x5951d=_0xe224c9(_0x19ff2d['find'](_0x447d3e=>_0x447d3e['language']===_0xfcc7e0)['label'])['toLowerCase']();return _0x5a76bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31fef8,'*Set\x20format:*\x20%0',o(_0x31fef8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5951d+')')}:{'type':'format','content':o(_0x31fef8,'*Remove\x20format:*\x20%0',o(_0x31fef8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4c6b34){return'codeBlock'==_0x4c6b34['name'];}class z extends _0x32d277{['afterInit'](){const _0x3ddf36=this['editor'];if(!_0x3ddf36['plugins']['has']('CommentsEditing'))return;_0x3ddf36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x572181,_0x56ac81,_0x589b57){const _0x301512=[];for(const _0x444fb3 of _0x56ac81['getItems']())_0x444fb3['hasAttribute'](_0x572181)&&_0x301512['push'](_0x589b57['createRangeOn'](_0x444fb3));return _0x301512;}function De(_0x3163a0,_0x42c275,{showActiveMarker:_0x47321a=!0x0}={}){const _0x3178d9=_0x3163a0['plugins']['get']('TrackChangesEditing');return(_0xd96937,_0x1b26b6,_0x50b0f1)=>{if(!_0x50b0f1['consumable']['test'](_0x1b26b6['markerRange'],_0xd96937['name']))return;const _0x3bf2f6=_0x1b26b6['markerRange']['getWalker'](),_0x65b99a=_0x1b26b6['markerRange']['start'],_0x755913=_0x3163a0['model']['schema'];let _0x498a7b=null,_0x35ad86=null,_0x51165f=!0x1,_0x3d8fe4=!0x1;for(const _0x58c066 of _0x3bf2f6){const _0x426bc8=_0x58c066['item'];_0x51165f=_0x51165f||_0x755913['isContent'](_0x426bc8);const _0x3ce40a=_0x50b0f1['mapper']['toViewElement'](_0x426bc8);if(_0x3ce40a&&_0x3ce40a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58c066['type']&&(_0x755913['isBlock'](_0x426bc8)&&!_0x755913['isLimit'](_0x426bc8)&&(_0x426bc8['nextSibling']||_0x65b99a['isAtEnd']?_0x498a7b&&_0x498a7b['parent']==_0x426bc8||(_0x498a7b=_0x426bc8,_0x4abde7(_0x58c066['previousPosition']),_0x3d8fe4=!0x0):_0x35ad86=_0x35ad86||_0x58c066['previousPosition']));}function _0x4abde7(_0x2b0c0a){const {authorId:_0x133165}=_0x3178d9['_splitMarkerName'](_0x1b26b6['markerName']),_0x12e7f2=_0x50b0f1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42c275,'data-author-id':_0x133165}),_0x528624=_0x50b0f1['mapper']['toViewPosition'](_0x2b0c0a);_0x47321a&&_0x3178d9['activeMarkers']['includes'](_0x1b26b6['markerName'])&&_0x50b0f1['writer']['addClass']('ck-suggestion-marker--active',_0x12e7f2),_0x50b0f1['writer']['insert'](_0x528624,_0x12e7f2),_0x50b0f1['mapper']['bindElementToMarker'](_0x12e7f2,_0x1b26b6['markerName']);}_0x51165f||_0x3d8fe4||!_0x35ad86||_0x4abde7(_0x35ad86);};}class K extends _0x32d277{static get['requires'](){return[_0x4c5371];}['init'](){const _0x59c56b=this['editor'],_0x52c508=_0x59c56b['plugins']['get']('TrackChangesEditing');_0x52c508['enableCommand']('delete');const _0x1a768a=_0x59c56b['commands']['get']('deleteForward');_0x52c508['enableCommand']('deleteForward',(_0x28a10e,_0x28a84a={})=>{const _0xb7db70=_0x59c56b['model']['createSelection'](_0x59c56b['model']['document']['selection']);_0xb7db70['isCollapsed']&&_0x59c56b['model']['modifySelection'](_0xb7db70,{'direction':'forward','unit':_0x28a84a['unit']});const _0x2c3dbd=_0xb7db70['getFirstRange'](),_0x59ebf3=_0x14dd4f['fromRange'](_0x2c3dbd);let _0xb0bab6;_0x28a10e(_0x28a84a),_0xb0bab6='$graveyard'==_0x59ebf3['root']['rootName']?_0x59c56b['model']['createRange'](_0x2c3dbd['start']):_0x59c56b['model']['createRange'](_0x59ebf3['start'],_0x59ebf3['end']),_0x59ebf3['detach'](),_0x59c56b['model']['enqueueChange'](_0x1a768a['buffer']['batch'],_0x4c6512=>{_0x1a768a['buffer']['lock'](),_0x4c6512['setSelection'](_0x4c6512['createRange'](_0xb0bab6['end'])),_0x1a768a['buffer']['unlock']();});}),_0x59c56b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x59c56b,'merge'),{'priority':'high'}),_0x59c56b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x27bdf2,_0x201bb9,_0x1e818f)=>{_0x1e818f['options']['showSuggestionHighlights']&&De(_0x59c56b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x27bdf2,_0x201bb9,_0x1e818f);},{'priority':'high'}),_0x59c56b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1902a0,_0x2c3dad,_0x4c35f6)=>{const _0x3dc0ff=_0x4c35f6['mapper']['markerNameToElements'](_0x2c3dad['markerName']);if(_0x3dc0ff){for(const _0x55604d of _0x3dc0ff)_0x55604d['is']('uiElement')&&(_0x4c35f6['mapper']['unbindElementFromMarkerName'](_0x55604d,_0x2c3dad['markerName']),_0x4c35f6['writer']['remove'](_0x55604d));}},{'priority':'high'});}}class W extends _0x32d277{['afterInit'](){const _0x19de56=this['editor'];if(!_0x19de56['plugins']['has']('ListEditing'))return;const _0x44f395=_0x19de56['locale'],_0x5e03ad=_0x19de56['plugins']['get']('TrackChangesEditing'),_0x1bfe78=_0x19de56['plugins']['has']('TodoListEditing'),_0x1d70ea=!!_0x19de56['config']['get']('list.multiBlock');function _0x13f0a8(_0x1e65b8){return{'type':'format','content':''+o(_0x44f395,'*Set\x20format:*\x20%0',_0x1e65b8)};}function _0x3b4610(_0x3711f5){return{'type':'format','content':''+o(_0x44f395,'*Remove\x20format:*\x20%0',_0x3711f5)};}_0x5e03ad['enableDefaultAttributesIntegration']('numberedList'),_0x5e03ad['enableDefaultAttributesIntegration']('bulletedList'),_0x5e03ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x5e03ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x5e03ad['enableDefaultAttributesIntegration']('indentList'),_0x5e03ad['enableDefaultAttributesIntegration']('outdentList'),_0x5e03ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5e03ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e03ad['registerBlockAttribute']('listItemId'),_0x5e03ad['registerBlockAttribute']('listType'),_0x5e03ad['registerBlockAttribute']('listIndent'),_0x1d70ea&&(_0x5e03ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5e03ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1bfe78&&(_0x5e03ad['enableDefaultAttributesIntegration']('todoList'),_0x5e03ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x5e03ad['registerBlockAttribute']('todoListChecked'),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x195cf3=>{const {data:_0x2027f5}=_0x195cf3;if(_0x2027f5&&'todoListChecked'==_0x2027f5['key'])return{'type':'format','content':_0x2027f5['newValue']?o(_0x44f395,'*Check\x20item*'):o(_0x44f395,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5bf56f=>{if(_0x5bf56f['batch']['isUndo'])return!0x1;let _0x2aff77=!0x1;const _0x1d633e=_0x5e03ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3747f5=>'todoListChecked'===_0x5e03ad['_getAttributeKey'](_0x3747f5));for(const _0x448e9a of _0x1d633e){'todo'!=_0x448e9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5e03ad['_findSuggestions'](_0x448e9a['getFirstRange'](),'attribute')['find'](_0x50a25d=>'listType'===_0x5e03ad['_getAttributeKey'](_0x50a25d['suggestion']))||(_0x5bf56f['removeMarker'](_0x448e9a['getFirstMarker']()),_0x2aff77=!0x0));}return _0x2aff77;})),_0x5e03ad['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x44f395,'FORMAT_INDENT'));const _0x55f30c={'type':'format','content':''};_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0xd2bb02=>{const {data:_0xd1af07}=_0xd2bb02;if(!_0xd1af07||'listType'!=_0xd1af07['key'])return;let _0x40b168=_0xd2bb02['head'];for(;_0x40b168;){if(_0x40b168['data']&&(('listStyle'==_0x40b168['data']['key']||'listMarkerStyle'==_0x40b168['data']['key'])&&(_0x40b168['data']['newValue']&&'default'!=_0x40b168['data']['newValue']||'default'!=_0x40b168['data']['oldValue']&&!_0xd1af07['newValue'])||!_0x1d70ea&&_0x40b168['data']['key']==m))return _0x55f30c;_0x40b168=_0x40b168['next'];}if(null==_0xd1af07['newValue'])switch(_0xd1af07['oldValue']){case'bulleted':return _0x3b4610(o(_0x44f395,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b4610(o(_0x44f395,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b4610(o(_0x44f395,'ELEMENT_TODO_LIST'));}switch(_0xd1af07['newValue']){case'bulleted':return _0x13f0a8(o(_0x44f395,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13f0a8(o(_0x44f395,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13f0a8(o(_0x44f395,'ELEMENT_TODO_LIST'));}}),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x55d802=>{const {data:_0x155eaf}=_0x55d802;if(_0x155eaf&&'listIndent'==_0x155eaf['key'])return null==_0x155eaf['newValue']||null==_0x155eaf['oldValue']&&0x0==_0x155eaf['newValue']?_0x55f30c:void 0x0;}),_0x5e03ad['descriptionFactory']['registerDescriptionCallback'](_0x4871ea=>{if('attribute'!=_0x4871ea['type'])return;const {data:_0x48298f}=_0x4871ea;if(!_0x48298f||'listItemId'!=_0x48298f['key'])return;const _0x566cb0=Te(_0x4871ea);return'newValue'==_0x566cb0?{'type':'format','content':o(_0x44f395,'*Merge:*\x20list\x20item')}:'oldValue'==_0x566cb0?{'type':'format','content':o(_0x44f395,'*Split:*\x20list\x20item')}:_0x55f30c;}),_0x19de56['model']['document']['registerPostFixer'](_0x22be3b=>this['listItemIdFixer'](_0x22be3b)),_0x19de56['model']['document']['registerPostFixer'](_0x575b68=>this['noTrackChangesFixer'](_0x575b68)),_0x19de56['model']['document']['on']('change:data',(_0x2fa27e,_0x58f1dd)=>{if(_0x58f1dd['isUndo']||!_0x58f1dd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e3fbd){if(_0x2e3fbd['batch']['isUndo']||!_0x2e3fbd['batch']['isLocal'])return!0x1;let _0x4c7cd0=!0x1;const _0x30a964=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a6cec=>_0x3a6cec['data']&&'listItemId'==_0x3a6cec['data']['key'])['filter'](_0x40f6a7=>_0x40f6a7['data']['newValue']&&_0x40f6a7['data']['oldValue']);for(const _0x38fac2 of _0x30a964)Te(_0x38fac2)||(_0x2e3fbd['removeMarker'](_0x38fac2['getFirstMarker']()),_0x4c7cd0=!0x0);return _0x4c7cd0;}['noTrackChangesFixer'](_0x480fb3){if(_0x480fb3['batch']['isUndo']||!_0x480fb3['batch']['isLocal'])return!0x1;const _0xeaef08=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xeaef08['trackChangesCommand']['value'])return!0x1;let _0x222c68=!0x1;const _0x33c8e8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x23ef13=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4630e1=>'attribute'==_0x4630e1['type'])['filter'](_0x26a235=>_0x33c8e8['includes'](_0x26a235['attributeKey']));if(0x0==_0x23ef13['length'])return _0x222c68;for(const _0x14b7c4 of _0x23ef13){const _0x1155ef=_0xeaef08['_findSuggestions'](_0x14b7c4['range'],'attribute')['filter'](_0x426fdd=>!_0x426fdd['meta']['isNextTo'])['map'](_0xccfe25=>_0xccfe25['suggestion'])['filter'](_0x4a0a3c=>{const _0x3e2f05=_0xeaef08['_getAttributeKey'](_0x4a0a3c);return _0x33c8e8['includes'](_0x3e2f05);});if(_0x1155ef['length']){for(const _0x2cd03e of _0x1155ef)_0x480fb3['removeMarker'](_0x2cd03e['getFirstMarker']());_0x222c68=!0x0;}}return _0x222c68;}['assureChains'](){const _0x3737f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37df11=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc421fe;const _0x5c64ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4303e0=>{if(_0x4303e0['data']['oldRange']||!_0x4303e0['data']['newRange'])return null;if(!_0x4303e0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x52c10a}=_0x3737f9['_splitMarkerName'](_0x4303e0['name']);if(!_0x3737f9['hasSuggestion'](_0x52c10a))return null;const _0x1b4e9a=_0x3737f9['getSuggestion'](_0x52c10a);return _0x37df11['includes'](_0x1b4e9a['data']['key']);})['map'](_0xc25f86=>{const {id:_0x5b3256}=_0x3737f9['_splitMarkerName'](_0xc25f86['name']),_0x1d2c30=_0x3737f9['getSuggestion'](_0x5b3256);return _0xc421fe=_0x1d2c30['attributes']['groupId'],_0x1d2c30['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c64ba['size'])return;const _0x4b08c8=_0x3737f9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba538f=>'attribute'==_0xba538f['type']&&_0xba538f['data']&&_0x37df11['includes'](_0xba538f['data']['key'])&&_0xba538f['attributes']['groupId']!=_0xc421fe)['map'](_0x21630e=>({'listItem':_0x21630e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x21630e['attributes']['groupId']})),_0x51cac8=new Set();for(const {groupId:_0x55a4c2,listItem:_0x88825b}of _0x4b08c8)_0x5c64ba['has'](_0x88825b)&&_0x51cac8['add'](_0x55a4c2);for(const _0x46a6ec of _0x3737f9['getSuggestions']())_0x51cac8['has'](_0x46a6ec['attributes']['groupId'])&&_0x46a6ec['setAttribute']('groupId',_0xc421fe);}['_supportLegacySuggestions'](){const _0x109305=this['editor'],_0x18fd80=_0x109305['locale'],_0x14c5cf=_0x109305['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x14c5cf['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ffb44,_0x3b1131){const _0x31d413=[];for(let _0x345500 of _0x1ffb44)_0x345500['start']['nodeAfter']===_0x345500['end']['parent']&&(_0x345500=_0x109305['model']['createRange'](_0x109305['model']['createPositionAt'](_0x345500['start']['nodeAfter'],0x0))),_0x31d413['push'](_0x345500);_0x109305['model']['change'](_0x4ca0b7=>{const _0x3a3572=_0x109305['model']['document']['selection'],_0x1b534f=Array['from'](_0x3a3572['getRanges']())['map'](_0x579529=>_0x14dd4f['fromRange'](_0x579529));_0x4ca0b7['setSelection'](_0x31d413),_0x109305['commands']['get'](_0x3b1131['commandName'])['refresh'](),_0x3b1131['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x109305['execute'](_0x3b1131['commandName'],..._0x3b1131['commandParams']),_0x4ca0b7['setSelection'](_0x1b534f);for(const _0x1f242a of _0x1b534f)_0x1f242a['detach']();});}),_0x14c5cf['descriptionFactory']['registerElementLabel'](function(_0x55ef69){const _0x3d5a80=!_0x109305['model']['schema']['isObject'](_0x55ef69),_0x2261f1=_0x55ef69['previousSibling'],_0x464bb5=_0x55ef69['nextSibling'],_0xfef34e=_0x55ef69['getAttribute']('listItemId'),_0x5ea3d9=!_0x2261f1||_0x2261f1['getAttribute']('listItemId')!==_0xfef34e,_0x2cced5=!_0x464bb5||_0x464bb5['getAttribute']('listItemId')!==_0xfef34e;return _0x3d5a80&&Boolean(_0xfef34e)&&_0x5ea3d9&&_0x2cced5;},_0x33f141=>o(_0x18fd80,'ELEMENT_LIST_ITEM',_0x33f141));}['_registerLegacyDescription'](){const _0x3c61ed=this['editor'],_0x68990f=_0x3c61ed['locale'];function _0x5be3c3(_0x3d6a1a){const _0x266d95=_0x3c61ed['commands']['get']('bulletedList')['value'],_0x34be82=_0x3c61ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d6a1a?_0x266d95:_0x34be82;}_0x3c61ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d2481){if('formatBlock'!=_0x5d2481['type'])return;const {data:_0x570af9}=_0x5d2481;if(!_0x570af9)return;let _0x911850,_0x2fd532,_0xde4350,_0x153db8;switch(_0x570af9['commandName']){case'bulletedList':_0xde4350=_0x570af9['commandParams'][0x0]['forceValue'],_0x153db8=_0x5be3c3(_0x570af9['commandName']),_0x911850=_0xde4350?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x153db8&&_0x3c61ed['config']['get']('list.multiBlock')||(_0x911850='*Change\x20to:*\x20%0'),_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xde4350=_0x570af9['commandParams'][0x0]['forceValue'],_0x153db8=_0x5be3c3(_0x570af9['commandName']),_0x911850=_0xde4350?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x153db8&&_0x3c61ed['config']['get']('list.multiBlock')||(_0x911850='*Change\x20to:*\x20%0'),_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x911850='*Indent:*\x20%0',_0x2fd532={'type':'format','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x911850=function(_0x45f9c8){const _0x33e329=_0x45f9c8['getFirstRange']();let _0x1e4f8e=_0x33e329['start']['nodeAfter'];for(;_0x1e4f8e&&_0x33e329['containsItem'](_0x1e4f8e);){if(_0x1e4f8e['getAttribute']('listIndent')>0x0)return!0x1;_0x1e4f8e=_0x1e4f8e['nextSibling'];}return!0x0;}(_0x5d2481)?o(_0x68990f,'*Format:*\x20remove\x20from\x20%0',o(_0x68990f,function(_0x3ccb8c){return'ELEMENT_'+_0x3ccb8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d2481))):o(_0x68990f,'*Outdent:*\x20%0',o(_0x68990f,'ELEMENT_LIST_ITEM')),_0x2fd532={'type':'format','content':_0x911850};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x570af9['multipleBlocks']&&(_0x911850='*Merge:*\x20%0',_0x2fd532={'type':'deletion','content':o(_0x68990f,_0x911850,o(_0x68990f,'ELEMENT_LIST_ITEM'))});}return _0x2fd532;});}}function Te(_0x57b144){let _0x52e323=_0x57b144['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x52e323;){const _0x9619f3=_0x52e323['getAttribute']('listItemId');if(!_0x9619f3)return!0x1;if(_0x9619f3==_0x57b144['data']['newValue'])return'newValue';if(_0x9619f3==_0x57b144['data']['oldValue'])return'oldValue';_0x52e323=_0x52e323['previousSibling'];}return!0x1;}class Se extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x324721=this['editor']['config']['get']('list.properties'),_0x3b17c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x324721['styles']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listStyle'),_0x3b17c5['registerBlockAttribute']('listStyle')),_0x324721['reversed']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listReversed'),_0x3b17c5['registerBlockAttribute']('listReversed')),_0x324721['startIndex']&&(_0x3b17c5['enableDefaultAttributesIntegration']('listStart'),_0x3b17c5['registerBlockAttribute']('listStart'));const _0x4abe1b={'type':'format','content':''};_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ffe4b=this['editor']['locale'];_0x3b17c5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ffe4b,'FORMAT_LIST_REVERSED')),_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](_0x37ac45=>{const {data:_0x6e28f3}=_0x37ac45;if(_0x6e28f3&&'listReversed'==_0x6e28f3['key'])return null==_0x6e28f3['newValue']||0x0==_0x6e28f3['newValue']&&null==_0x6e28f3['oldValue']?_0x4abe1b:void 0x0;}),_0x3b17c5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ffe4b,'FORMAT_LIST_START')),_0x3b17c5['descriptionFactory']['registerDescriptionCallback'](_0x47b4cf=>{const {data:_0x2e65f5}=_0x47b4cf;if(_0x2e65f5&&'listStart'==_0x2e65f5['key'])return null==_0x2e65f5['newValue']||0x1==_0x2e65f5['newValue']&&null==_0x2e65f5['oldValue']?_0x4abe1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14715a=>{if(_0x14715a['batch']['isUndo'])return!0x1;let _0x479b01=!0x1;const _0x42764e=_0x3b17c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ba884=>{const _0x4d21c5=_0x3b17c5['_getAttributeKey'](_0x5ba884);return'listStart'==_0x4d21c5||'listReversed'==_0x4d21c5;});for(const _0x59c9c5 of _0x42764e){const _0x3bd771=_0x59c9c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3bd771||'customNumbered'==_0x3bd771)continue;_0x3b17c5['_findSuggestions'](_0x59c9c5['getFirstRange'](),'attribute')['find'](_0xac7c8a=>'listType'==_0x3b17c5['_getAttributeKey'](_0xac7c8a['suggestion']))||(_0x14715a['removeMarker'](_0x59c9c5['getFirstMarker']()),_0x479b01=!0x0);}return _0x479b01;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2cc41d){const _0x11dc63=this['editor']['locale'],{data:_0x21ab34}=_0x2cc41d,_0x4f9f84={'type':'format','content':''};if(!_0x21ab34||'listStyle'!=_0x21ab34['key'])return;if(!_0x21ab34['oldValue'])return'default'==_0x21ab34['newValue']?_0x4f9f84:{'type':'format','content':''+o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['newValue'])))};if(!_0x21ab34['newValue']){if('default'==_0x21ab34['oldValue'])return _0x4f9f84;let _0x3823b6=_0x2cc41d['head'];for(;_0x3823b6;){if(_0x3823b6['data']&&'listType'==_0x3823b6['data']['key']&&_0x3823b6['data']['newValue'])return _0x4f9f84;_0x3823b6=_0x3823b6['next'];}return{'type':'format','content':''+o(_0x11dc63,'*Remove\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['oldValue'])))};}if('default'!=_0x21ab34['newValue'])return{'type':'format','content':''+o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,this['_getTranslationKeyForListStyle'](_0x21ab34['newValue'])))};let _0x3aef28=_0x2cc41d['head'];for(;_0x3aef28;){if(_0x3aef28['data']&&'listType'==_0x3aef28['data']['key']&&_0x3aef28['data']['newValue']&&_0x3aef28['data']['oldValue'])return _0x4f9f84;_0x3aef28=_0x3aef28['next'];}return{'type':'format','content':o(_0x11dc63,'*Set\x20format:*\x20%0',o(_0x11dc63,'ELEMENT_'+_0x2cc41d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x491cc5=this['editor'],_0x387907=_0x491cc5['locale'];_0x491cc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a8af=>{if('formatBlock'!=_0x28a8af['type'])return;const {data:_0x1ee152}=_0x28a8af;if(!_0x1ee152)return;let _0x4602a3,_0x274e98;switch(_0x1ee152['commandName']){case'listStyle':_0x4602a3='*Change\x20to:*\x20%0',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3,o(_0x387907,this['_getTranslationKeyForListStyle'](_0x1ee152['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4602a3=_0x1ee152['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3)};break;case'listStart':_0x4602a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x274e98={'type':'format','content':o(_0x387907,_0x4602a3,_0x1ee152['commandParams'][0x0]['startIndex'])};}return _0x274e98;});}['_getTranslationKeyForListStyle'](_0x5dd8b4){return'ELEMENT_'+function(_0x37be40){if(_e['includes'](_0x37be40))return'bulleted';if(Re['includes'](_0x37be40))return'numbered';return null;}(_0x5dd8b4)['toUpperCase']()+'_LIST_'+_0x5dd8b4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32d277{static get['requires'](){return[_0xc65384];}['init'](){const _0x1a1d95=this['editor'],_0x2bc819=_0x1a1d95['plugins']['get']('TrackChangesEditing'),_0xef40a3=_0x1a1d95['commands']['get']('enter');_0x2bc819['enableCommand']('enter',()=>{_0x1a1d95['model']['change'](_0x3d1b17=>{const _0x291c4e=_0x1a1d95['model']['document']['selection'],_0x21609a=_0x291c4e['getFirstPosition'](),_0xa34627=_0x14dd4f['fromRange'](_0x291c4e['getFirstRange']());if(_0xef40a3['enterBlock'](_0x3d1b17)){const _0x5776e7=_0x1a1d95['model']['createPositionAt'](_0x21609a['parent']['nextSibling'],0x0),_0x15641b=_0x3d1b17['createRange'](_0x21609a,_0x5776e7);_0x2bc819['markInsertion'](_0x15641b);}else _0x3d1b17['setSelection'](_0x3d1b17['createRange'](_0xa34627['end']));_0xa34627['detach'](),_0xef40a3['fire']('afterExecute',{'writer':_0x3d1b17});});}),_0x1a1d95['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1a1d95,'split'),{'priority':'high'}),_0x1a1d95['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xada386,_0x800653,_0x185983)=>{const _0x5e0dad=_0x185983['mapper']['markerNameToElements'](_0x800653['markerName']);if(_0x5e0dad){for(const _0x187c9c of _0x5e0dad)_0x187c9c['hasClass']('ck-suggestion-marker-split')&&(_0x185983['mapper']['unbindElementFromMarkerName'](_0x187c9c,_0x800653['markerName']),_0x185983['writer']['remove'](_0x187c9c));}},{'priority':'high'}),_0x1a1d95['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b8102,_0x5ba37e,_0x350aed)=>{_0x350aed['options']['showSuggestionHighlights']&&De(_0x1a1d95,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b8102,_0x5ba37e,_0x350aed);},{'priority':'high'});}}class Y extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x460912=this['editor']['plugins']['get']('TrackChangesEditing');_0x460912['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x460912['enableCommand']('findNext'),_0x460912['enableCommand']('findPrevious'),_0x460912['enableCommand']('replace'),_0x460912['enableCommand']('replaceAll');}['handleFindCommand'](_0x1a7fc9,_0x43ecd7,_0xe43343={}){const _0x28bdb4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1a7fc9(_0x539307=>{let _0x141d86=('string'==typeof _0x43ecd7?_0x28bdb4['findByTextCallback'](_0x43ecd7,_0xe43343):_0x43ecd7)(_0x539307);Array['isArray'](_0x141d86)&&(_0x141d86={'results':_0x141d86,'searchText':'string'==typeof _0x43ecd7?_0x43ecd7:''});const _0x3e3314=_0x141d86['results']['filter'](_0xfcfbbf=>!0x1===this['_isInDeletionRange'](_0xfcfbbf,_0x539307['item']));return{..._0x141d86,'results':_0x3e3314};},_0xe43343);}['_isInDeletionRange'](_0x52b076,_0x1993fe){const _0x5cb9cd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1993fe,_0x52b076['start']),this['editor']['model']['createPositionAt'](_0x1993fe,_0x52b076['end']));for(const _0x543838 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5cb9cd['getIntersection'](_0x543838['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x32d277{['afterInit'](){const _0x4a29be=this['editor']['locale'],_0x395033=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4101f0,commandName:_0x2c6d64}of ro)this['editor']['plugins']['has'](_0x4101f0)&&(_0x395033['enableDefaultAttributesIntegration'](_0x2c6d64),_0x395033['registerInlineAttribute'](_0x2c6d64));_0x395033['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4a29be,'FORMAT_FONT_SIZE')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4a29be,'FORMAT_FONT_FAMILY')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4a29be,'FORMAT_FONT_COLOR')),_0x395033['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4a29be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3758e5=this['editor'],_0x35370f=_0x3758e5['locale'];_0x3758e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ae71=>{const _0x4940af=_0x35370f['t'];if('formatInline'!=_0x42ae71['type'])return;const {data:_0x271765}=_0x42ae71;if(null!=_0x271765){if('fontSize'==_0x271765['commandName']){const _0x2ca4ec=_0x271765['commandParams'][0x0]['value'];if(_0x2ca4ec){const _0x491030=_0x4940af(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5a817a=>_0x5a817a['model']==_0x2ca4ec)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35370f,'*Set\x20font\x20size:*\x20%0',_0x491030)};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x271765['commandName']){const _0x15f9a5=_0x271765['commandParams'][0x0]['value'];return _0x15f9a5?{'type':'format','content':o(_0x35370f,'*Set\x20font\x20family:*\x20%0',_0x15f9a5)}:{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x271765['commandName']){const _0x558705=_0x271765['commandParams'][0x0]['value'];if(_0x558705){const _0x6c11e=_0x9dac81(this['editor']['config']['get']('fontColor.colors'))['find'](_0x51699a=>_0x51699a['model']==_0x558705);let _0xe74109=_0x558705,_0x1dd66e='';return _0x6c11e&&(_0xe74109=_0x6c11e['label'],_0x1dd66e=_0x4940af(_0xe74109)['toLowerCase']()),{'type':'format','content':o(_0x35370f,'*Set\x20font\x20color:*\x20%0',_0x1dd66e)['trim'](),'color':{'value':_0x558705,'title':_0x1dd66e||_0xe74109}};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x271765['commandName']){const _0x3ef7e2=_0x271765['commandParams'][0x0]['value'];if(_0x3ef7e2){const _0x45456d=_0x9dac81(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x472035=>_0x472035['model']==_0x3ef7e2);let _0x6c69f0=_0x3ef7e2,_0x4e626b='';return _0x45456d&&(_0x6c69f0=_0x45456d['label'],_0x4e626b=_0x4940af(_0x6c69f0)['toLowerCase']()),{'type':'format','content':o(_0x35370f,'*Set\x20font\x20background\x20color:*\x20%0',_0x4e626b)['trim'](),'color':{'value':_0x3ef7e2,'title':_0x4e626b||_0x6c69f0}};}return{'type':'format','content':o(_0x35370f,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x32d277{['afterInit'](){const _0x309d29=this['editor'],_0x22eb85=_0x309d29['plugins']['get']('TrackChangesEditing'),_0x35ef7f=_0x309d29['commands']['get']('copyFormat'),_0x1a4c57=_0x309d29['commands']['get']('pasteFormat');_0x35ef7f&&_0x1a4c57&&(_0x22eb85['enableDefaultAttributesIntegration']('pasteFormat'),_0x22eb85['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2763b6=this['editor'],_0x186671=_0x2763b6['locale'];_0x2763b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a76c2=>{if('formatBlock'!=_0x1a76c2['type']&&'formatInline'!=_0x1a76c2['type'])return;const {data:_0x18f202}=_0x1a76c2;if(_0x18f202&&'pasteFormat'===_0x18f202['commandName']){const _0x40d35c=[],_0x3c354e=_0x18f202['commandParams'][0x0];for(const [_0x4dfbb2,_0x596099]of Object['entries'](_0x3c354e))_0x40d35c['push'](so(_0x2763b6,_0x4dfbb2,_0x596099));return _0x40d35c['length']?{'type':'format','content':o(_0x186671,'*Set\x20format\x20to:*\x20%0',_0x40d35c['join'](',\x20'))}:{'type':'format','content':o(_0x186671,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa76cd,_0x371257,_0x5a8287){const _0x496d3f=_0xa76cd['locale']['t'],_0x38b466=_0x371257['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c514b=_0x496d3f(_0x38b466['charAt'](0x0)['toUpperCase']()+_0x38b466['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5a8287)return _0x1c514b;if('fontColor'===_0x371257||'fontBackgroundColor'===_0x371257){const _0xa3a7fb=_0x9dac81(_0xa76cd['config']['get']('fontColor.colors'))['find'](_0x33b60b=>_0x33b60b['model']==_0x5a8287);return _0x1c514b+'\x20('+(_0xa3a7fb?_0x496d3f(_0xa3a7fb['label'])['toLowerCase']():_0x5a8287)+')';}if('fontSize'===_0x371257&&isNaN(parseFloat(_0x5a8287))){const _0x22f4b6=_0xa76cd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa76cd['config']['get']('fontSize.options'))['find'](_0x1fe36e=>_0x1fe36e['model']==_0x5a8287);return _0x1c514b+'\x20('+(_0x22f4b6?_0x496d3f(_0x22f4b6['title'])['toLowerCase']():_0x5a8287)+')';}return _0x1c514b+'\x20('+_0x5a8287+')';}class nt extends _0x32d277{['_headingOptions'];['afterInit'](){const _0x55e319=this['editor'];if(!_0x55e319['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55e319['config']['get']('heading.options');const _0x2e28df=_0x55e319['locale'],_0x4c6d89=_0x55e319['plugins']['get']('TrackChangesEditing');_0x4c6d89['enableDefaultAttributesIntegration']('heading');for(const _0x477618 of this['_headingOptions'])'paragraph'!=_0x477618['model']&&_0x4c6d89['descriptionFactory']['registerElementLabel'](_0x477618['model'],_0x4a97b2=>{const _0x525d3b=this['_getHeadingLevel'](_0x477618['model']);return null!==_0x525d3b?_0x475128(_0x4a97b2,_0x525d3b):_0x4bb9d2(_0x4a97b2,_0x477618['title']);});function _0x475128(_0xf49c47,_0x9f5e45){return o(_0x2e28df,'ELEMENT_HEADING',[_0xf49c47,_0x9f5e45]);}function _0x4bb9d2(_0x1d07f5,_0x58ec2e){return o(_0x2e28df,'ELEMENT_HEADING_CUSTOM',[_0x1d07f5,_0x58ec2e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x927245=this['editor'],_0x3503ed=_0x927245['locale'];function _0x18b1b9(_0x23c607,_0x40a6b4){return o(_0x3503ed,'ELEMENT_HEADING_CUSTOM',[_0x23c607,_0x40a6b4]);}_0x927245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72f655=>{if('formatBlock'!=_0x72f655['type'])return;const {data:_0x2aee2f}=_0x72f655;if(_0x2aee2f&&'heading'==_0x2aee2f['commandName']){const _0x21e00c=_0x2aee2f['commandParams'][0x0]['value'],_0x9c87b1=this['_getHeadingLevel'](_0x21e00c);if(null!==_0x9c87b1)return{'type':'format','content':o(_0x3503ed,'*Change\x20to:*\x20%0',(_0x5aa635=0x1,_0x1bc03b=_0x9c87b1,o(_0x3503ed,'ELEMENT_HEADING',[_0x5aa635,_0x1bc03b])))};const _0x44d6de=this['_headingOptions']['find'](_0x2c6f36=>_0x2c6f36['model']===_0x21e00c)['title'];return{'type':'format','content':o(_0x3503ed,'*Change\x20to:*\x20%0',_0x18b1b9(0x1,_0x44d6de))};}var _0x5aa635,_0x1bc03b;});}['_getHeadingLevel'](_0x555e7d){const _0x36343d=_0x555e7d['match'](/^heading(\d+)/);if(_0x36343d)return _0x36343d[0x1];const _0x147785=this['_headingOptions']?.['find'](_0x21a8d5=>_0x21a8d5['model']==_0x555e7d);if(_0x147785&&_0x147785['view']){const _0x4bff1a=_0x147785['view'],_0x3c7c5a=(_0x4bff1a['name']??_0x4bff1a)['match'](/^h(\d+)/);if(_0x3c7c5a)return _0x3c7c5a[0x1];}return null;}}class it extends _0x32d277{['afterInit'](){const _0x1fd659=this['editor'];if(!_0x1fd659['plugins']['has']('HighlightEditing'))return;const _0x4e541a=_0x1fd659['plugins']['get']('TrackChangesEditing'),_0x5463da=_0x1fd659['locale'];_0x4e541a['enableDefaultAttributesIntegration']('highlight'),_0x4e541a['registerInlineAttribute']('highlight'),_0x4e541a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5463da,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc46d=this['editor'],_0x3f0e80=_0x1fc46d['locale'];_0x1fc46d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2547d2=>{if('formatInline'!=_0x2547d2['type'])return;const {data:_0x130a06}=_0x2547d2;if(_0x130a06&&'highlight'==_0x130a06['commandName']){const _0x1ba02b=_0x3f0e80['t'],_0x422730=_0x130a06['commandParams'][0x0]['value'];if(_0x422730){const _0x5f4829=_0x1fc46d['config']['get']('highlight.options')['find'](_0x35c3bc=>_0x35c3bc['model']==_0x422730),_0x3925c1=_0x1ba02b(_0x5f4829['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f0e80,'*Set\x20highlight:*\x20%0',_0x3925c1),'color':{'value':_0x5f4829['color'],'title':_0x5f4829['title']}};}return{'type':'format','content':o(_0x3f0e80,'*Remove\x20highlight*',o(_0x3f0e80,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x32d277{['afterInit'](){const _0xbf3d74=this['editor'];if(!_0xbf3d74['plugins']['has']('HorizontalLineEditing'))return;_0xbf3d74['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x21e9d6=_0xbf3d74['plugins']['get']('TrackChangesEditing'),_0x22b380=_0xbf3d74['locale'];_0x21e9d6['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd5bb2d=>o(_0x22b380,'ELEMENT_HORIZONTAL_LINE',_0xd5bb2d)),_0xbf3d74['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ed6cb,{writer:_0x1828d6,options:_0x54049e})=>{if(!_0x54049e['showSuggestionHighlights'])return null;const _0x46865b=_0x1828d6['createContainerElement']('div'),_0x26a9e5=_0x1828d6['createEmptyElement']('hr');return _0x1828d6['addClass']('ck-horizontal-line',_0x46865b),_0x1828d6['insert'](_0x1828d6['createPositionAt'](_0x46865b,0x0),_0x26a9e5),_0x46865b;},'converterPriority':'high'});}}class st extends _0x32d277{['afterInit'](){const _0x5c8a2b=this['editor'];if(!_0x5c8a2b['plugins']['has']('HtmlEmbed'))return;const _0x1de44c=_0x5c8a2b['plugins']['get']('TrackChangesEditing'),_0x1c28e1=_0x5c8a2b['locale'];_0x1de44c['descriptionFactory']['registerElementLabel']('rawHtml',_0x50615a=>o(_0x1c28e1,'ELEMENT_HTML_EMBED',_0x50615a)),_0x1de44c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1de44c['registerBlockAttribute']('value'),_0x1de44c['descriptionFactory']['registerDescriptionCallback'](_0x1994fc=>{if('attribute'!=_0x1994fc['type'])return;const {data:_0x3dda3b}=_0x1994fc;if(_0x3dda3b&&'value'==_0x3dda3b['key']&&_0x1994fc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x67ed86=o(_0x1c28e1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c28e1,'*Change\x20%0\x20content*',_0x67ed86)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31940a=this['editor'],_0x40b6c3=_0x31940a['locale'];_0x31940a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eadd4=>{if('formatBlock'!=_0x4eadd4['type'])return;const {data:_0x294240}=_0x4eadd4;if(_0x294240&&'htmlEmbed'==_0x294240['commandName']){const _0x4af025=o(_0x40b6c3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x40b6c3,'*Change\x20%0\x20content*',_0x4af025)};}});}}class ot extends _0x32d277{['afterInit'](){const _0x49ba12=this['editor'];if(!_0x49ba12['plugins']['has']('ImageEditing'))return;const _0x101bee=_0x49ba12['plugins']['get']('TrackChangesEditing'),_0x556d7e=_0x49ba12['plugins']['get']('ImageUtils'),_0x17836a=_0x49ba12['locale'];_0x101bee['enableCommand']('insertImage'),_0x101bee['descriptionFactory']['registerElementLabel']('imageBlock',_0x216e29=>o(_0x17836a,'ELEMENT_IMAGE',_0x216e29)),_0x101bee['descriptionFactory']['registerElementLabel']('imageInline',_0x1e1fad=>o(_0x17836a,'ELEMENT_INLINE_IMAGE',_0x1e1fad)),_0x101bee['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x17836a,'ELEMENT_CAPTION')),_0x49ba12['plugins']['has']('ImageUploadEditing')&&_0x101bee['enableCommand']('uploadImage'),_0x49ba12['plugins']['has']('ImageBlockEditing')&&_0x49ba12['plugins']['has']('ImageInlineEditing')&&(_0x101bee['enableCommand']('imageTypeInline',(_0x49d577,_0x650116)=>{const _0x53e826=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']);_0x49ba12['model']['change'](()=>{_0x101bee['markBlockFormat'](_0x53e826,{'commandName':'imageTypeInline','commandParams':[_0x650116]},[],'convertBlockImageToInline');});}),_0x101bee['enableCommand']('imageTypeBlock',(_0x551d6a,_0x342aea)=>{_0x49ba12['model']['change'](_0x1fd227=>{let _0x29fd15=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x37a2ba=_0x1fd227['createRangeOn'](_0x29fd15);const _0x22056a=_0x1adf65['fromPosition'](_0x37a2ba['start'],'toPrevious'),_0x5c23c1=_0x1adf65['fromPosition'](_0x37a2ba['end'],'toNext');_0x101bee['forceDefaultExecution'](()=>_0x551d6a(_0x342aea)),_0x29fd15=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x37a2ba=_0x1fd227['createRangeOn'](_0x29fd15);const _0x546865=_0x1fd227['createRange'](_0x22056a,_0x5c23c1);_0x22056a['detach'](),_0x5c23c1['detach'](),_0x101bee['markBlockFormat'](_0x29fd15,{'commandName':'imageTypeInline','commandParams':[_0x342aea]},[],'convertInlineImageToBlock'),_0x546865['start']['isBefore'](_0x37a2ba['start'])&&_0x101bee['markInsertion'](_0x1fd227['createRange'](_0x546865['start'],_0x37a2ba['start']),'convertInlineImageToBlock'),_0x37a2ba['end']['isBefore'](_0x546865['end'])&&_0x101bee['markInsertion'](_0x1fd227['createRange'](_0x37a2ba['end'],_0x546865['end']),'convertInlineImageToBlock');});}),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x101bee['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1555b8])=>{const _0x179223=_0x101bee['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2daabc=_0x1555b8['start'],_0x41f816=_0x1555b8['end'];const _0x3900b8=_0x49ba12['model']['schema']['getNearestSelectionRange'](_0x2daabc,'backward'),_0x2bb3c7=_0x49ba12['model']['schema']['getNearestSelectionRange'](_0x41f816,'forward');_0x3900b8['isCollapsed']&&(_0x2daabc=_0x3900b8['start']),_0x2bb3c7['isCollapsed']&&(_0x41f816=_0x2bb3c7['end']),_0x179223([_0x49ba12['model']['createRange'](_0x2daabc,_0x41f816)]);}),_0x101bee['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3716a6),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3716a6)),_0x49ba12['plugins']['has']('ImageCaptionEditing')&&(_0x101bee['enableCommand']('toggleImageCaption',(_0x3e42a5,_0x41bdbd)=>{const _0x422dfa=_0x49ba12['plugins']['get']('ImageCaptionUtils');let _0x2dc42b=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x5d477f=_0x422dfa['getCaptionFromImageModelElement'](_0x2dc42b);_0x49ba12['model']['change'](()=>{if(_0x5d477f)return void _0x101bee['markDeletion'](_0x49ba12['model']['createRangeOn'](_0x5d477f));const _0x18a239=_0x556d7e['isBlockImage'](_0x2dc42b);_0x3e42a5(_0x41bdbd),_0x2dc42b=_0x556d7e['getClosestSelectedImageElement'](_0x49ba12['model']['document']['selection']),_0x5d477f=_0x422dfa['getCaptionFromImageModelElement'](_0x2dc42b),_0x101bee['markInsertion'](_0x49ba12['model']['createRangeOn'](_0x5d477f),_0x18a239?null:'imageCaption');});}),_0x101bee['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3716a6));const _0x5583de=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d615e(_0x1d9e1d,_0x3df6e4){const _0x3bb64b=_0x5583de['findIndex'](({type:_0x1ffef2,subType:_0x40ee65})=>_0x1d9e1d['type']==_0x1ffef2&&_0x1d9e1d['subType']==_0x40ee65),_0x1ff7b0=_0x5583de['findIndex'](({type:_0x2d02df,subType:_0x3014c5})=>_0x3df6e4['type']==_0x2d02df&&_0x3df6e4['subType']==_0x3014c5);if(_0x3bb64b<0x0||_0x1ff7b0<0x0)return!0x1;const _0x3e5c1e=_0x1d9e1d['getFirstRange'](),_0x28093a=_0x3df6e4['getFirstRange']();if((0x0==_0x3bb64b||0x1==_0x3bb64b)&&0x2==_0x1ff7b0&&_0x3e5c1e['isIntersecting'](_0x28093a))return!0x0;if(0x2==_0x3bb64b&&0x3==_0x1ff7b0){const _0x4b4451=_0x101bee['_findSuggestions'](_0x3e5c1e,'insertion')['filter'](({suggestion:_0xe37eac,meta:_0x30637b})=>_0x30637b['isOwn']&&'convertInlineImageToBlock'==_0xe37eac['subType']);if(_0x4b4451['length']>0x1&&_0x28093a['end']['isEqual'](_0x3e5c1e['start']))return!0x0;if(0x1==_0x4b4451['length']&&(_0x3e5c1e['start']['isEqual'](_0x28093a['end'])||_0x3e5c1e['end']['isEqual'](_0x28093a['start'])))return!0x0;}if(0x3==_0x3bb64b&&0x3==_0x1ff7b0&&_0x3e5c1e['start']['isBefore'](_0x28093a['start'])){const _0x56c2f0=_0x3e5c1e['end']['nodeAfter'],_0x5cf400=_0x28093a['start']['nodeBefore'];return _0x556d7e['isBlockImage'](_0x56c2f0)&&_0x56c2f0===_0x5cf400;}return!0x1;}function _0x3716a6(_0x3846c0,_0x45be8b){return _0x4d615e(_0x3846c0,_0x45be8b)?[_0x3846c0,_0x45be8b]:_0x4d615e(_0x45be8b,_0x3846c0)?[_0x45be8b,_0x3846c0]:null;}_0x49ba12['plugins']['has']('ImageResize')&&(_0x101bee['enableDefaultAttributesIntegration']('resizeImage'),_0x101bee['registerBlockAttribute']('resizedWidth'),_0x101bee['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x17836a,'FORMAT_IMAGE_SIZE'))),_0x49ba12['plugins']['has']('ImageTextAlternativeEditing')&&(_0x101bee['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x101bee['registerBlockAttribute']('alt')),_0x49ba12['plugins']['has']('PictureEditing')&&(_0x101bee['registerBlockAttribute']('sources'),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x7a8e4c=>{if('attribute'!=_0x7a8e4c['type'])return;const {data:_0x563dcc}=_0x7a8e4c;return _0x563dcc&&'sources'==_0x563dcc['key']?{'type':'format','content':''}:void 0x0;})),_0x49ba12['plugins']['has']('ImageSizeAttributes')&&(_0x101bee['registerBlockAttribute']('width'),_0x101bee['registerBlockAttribute']('height'),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x2ca697=>{if('attribute'!=_0x2ca697['type'])return;const {data:_0x54c0d2}=_0x2ca697;return!_0x54c0d2||'width'!=_0x54c0d2['key']&&'height'!=_0x54c0d2['key']?void 0x0:{'type':'format','content':''};})),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x34c36f=>{if(!!_0x5583de['find'](({type:_0x20fe78,subType:_0x3e88d1})=>_0x34c36f['type']==_0x20fe78&&_0x34c36f['subType']==_0x3e88d1))return _0x34c36f['previous']?{}:void 0x0;}),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x3abfc2=>{if('insertion'==_0x3abfc2['type']||'deletion'==_0x3abfc2['type']){const _0x14917b=_0x3abfc2['getContainedElement']();if(_0x14917b&&_0x14917b['is']('element','caption'))return{'type':'insertion'==_0x3abfc2['type']?'addObject':'removeObject','element':_0x14917b,'quantity':0x1};}}),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x298088=>'formatBlock'==_0x298088['type']&&'convertInlineImageToBlock'==_0x298088['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x298088['type']&&'convertBlockImageToInline'==_0x298088['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x101bee['descriptionFactory']['registerDescriptionCallback'](_0x58b589=>{if('attribute'!=_0x58b589['type'])return;const {data:_0x342834}=_0x58b589;if(!_0x342834||'alt'!=_0x342834['key'])return;const _0x44c90d=_0x342834['newValue'];return _0x44c90d?{'type':'format','content':o(_0x17836a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44c90d+'\x22')}:{'type':'format','content':o(_0x17836a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18dc23=this['editor'],_0x3be3ec=_0x18dc23['locale'];_0x18dc23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272d41=>{if('formatBlock'!=_0x272d41['type']&&'formatInline'!=_0x272d41['type'])return;const {data:_0x272ce6}=_0x272d41;if(_0x272ce6){if('imageTextAlternative'==_0x272ce6['commandName']){const _0x1fa2fe=_0x272ce6['commandParams'][0x0]['newValue'];return _0x1fa2fe?{'type':'format','content':o(_0x3be3ec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fa2fe+'\x22')}:{'type':'format','content':o(_0x3be3ec,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x272ce6['commandName']){const _0x4cfe3e=_0x272ce6['commandParams'][0x0]['width'];return _0x4cfe3e?{'type':'format','content':o(_0x3be3ec,'*Set\x20image\x20width:*\x20%0',_0x4cfe3e)}:{'type':'format','content':o(_0x3be3ec,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19e6e7=this['editor']['locale'],_0x29f27a=this['editor']['plugins']['get']('TrackChangesEditing');_0x29f27a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29f27a['registerBlockAttribute']('src'),_0x29f27a['descriptionFactory']['registerDescriptionCallback'](_0xeccfcb=>{if('attribute'!=_0xeccfcb['type'])return;const {data:_0x59cafb}=_0xeccfcb;return _0x59cafb&&'src'==_0x59cafb['key']?_0x59cafb['newValue']&&_0x59cafb['oldValue']?{'type':'format','content':o(_0x19e6e7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x53b14b=this['editor']['plugins']['get']('TrackChangesEditing');_0x53b14b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x53b14b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53b14b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x53b14b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e9ae=this['editor'],_0x5daa1d=_0x52e9ae['locale'];_0x52e9ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5515c9=>{if('formatBlock'!=_0x5515c9['type']&&'formatInline'!=_0x5515c9['type'])return;const {data:_0x1254d9}=_0x5515c9;if(!_0x1254d9||'replaceImageSource'!=_0x1254d9['commandName'])return;return{'type':'format','content':o(_0x5daa1d,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x32d277{['afterInit'](){const _0x2f1316=this['editor'];if(!_0x2f1316['plugins']['has']('ImageStyleEditing'))return;const _0x543c0c=_0x2f1316['plugins']['get']('TrackChangesEditing'),_0x851765=_0x2f1316['plugins']['get']('ImageUtils'),_0x55bc26={};_0x543c0c['enableCommand']('imageStyle',(_0x7ad9ad,_0x4ca501)=>{const _0x52690d=_0x2f1316['plugins']['get']('Users')['me'],_0x47c4ce=_0x2f1316['commands']['get']('imageStyle');let _0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),_0x52d98f=_0x2f1316['model']['createRangeOn'](_0x43371b),_0x10f439=_0x47c4ce['value'];if(_0x10f439==_0x4ca501['value'])return;const _0x1de771={'commandName':'imageStyle','commandParams':[_0x4ca501],'formatGroupId':_0x12e0b6()};_0x2f1316['model']['change'](()=>{if(_0x543c0c['getSuggestions']()['filter'](_0x3cba7e=>_0x3cba7e['isInContent']&&_0x52690d==_0x3cba7e['author']&&('formatBlock'==_0x3cba7e['type']||'formatInline'==_0x3cba7e['type'])&&('imageStylePreApply'==_0x3cba7e['subType']||'imageStylePostApply'==_0x3cba7e['subType'])&&_0x3cba7e['getFirstRange']()['isEqual'](_0x52d98f))['forEach'](_0x55d2ce=>_0x543c0c['discardSuggestion'](_0x55d2ce['head'])),_0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),_0x52d98f=_0x2f1316['model']['createRangeOn'](_0x43371b),_0x47c4ce['refresh'](),_0x2f1316['commands']['get']('imageTypeInline')['refresh'](),_0x2f1316['commands']['get']('imageTypeBlock')['refresh'](),_0x10f439=_0x47c4ce['value'],_0x10f439!=_0x4ca501['value'])return _0x851765['isInlineImage'](_0x43371b)&&_0x47c4ce['shouldConvertImageType'](_0x4ca501['value'],_0x43371b)?(_0x7ad9ad({..._0x4ca501,'setImageSizes':!0x1}),_0x43371b=_0x851765['getClosestSelectedImageElement'](_0x2f1316['model']['document']['selection']),void _0x543c0c['markBlockFormat'](_0x43371b,{..._0x1de771,'commandReversedParams':[{'value':_0x10f439||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x851765['isBlockImage'](_0x43371b)?_0x543c0c['markBlockFormat'](_0x43371b,_0x1de771,[],'imageStylePostApply'):_0x543c0c['markInlineFormat'](_0x52d98f,_0x1de771,'imageStylePostApply'));});});for(const _0x4175d3 of _0x2f1316['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55bc26[_0x4175d3['name']]=_0x4175d3['title']['toLowerCase']();_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8c8dc2])=>{_0x851765['setImageNaturalSizeAttributes'](_0x8c8dc2['getContainedElement']());}),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3041c0,_0x2fce1d)=>{_0x543c0c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3041c0,{'commandName':_0x2fce1d['commandName'],'commandParams':_0x2fce1d['commandReversedParams']});}),_0x543c0c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15278b,_0x4b5a84){if(_0x585fc0(_0x15278b,_0x4b5a84))return[_0x15278b,_0x4b5a84];if(_0x585fc0(_0x4b5a84,_0x15278b))return[_0x4b5a84,_0x15278b];return null;});const _0x1123cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x585fc0(_0x46a6ac,_0x395e55){const _0x51146c=_0x1123cd['findIndex'](({type:_0x4a0939,subType:_0x1f62d1})=>_0x46a6ac['type']==_0x4a0939&&_0x46a6ac['subType']==_0x1f62d1),_0x474cbb=_0x1123cd['findIndex'](({type:_0x53638f,subType:_0x3c2e52})=>_0x395e55['type']==_0x53638f&&_0x395e55['subType']==_0x3c2e52);if(_0x51146c<0x0||_0x474cbb<0x0)return!0x1;const _0x55b12c=_0x46a6ac['getFirstRange'](),_0x57b4ae=_0x395e55['getFirstRange']();if((0x0==_0x51146c||0x1==_0x51146c)&&0x2==_0x474cbb&&_0x55b12c['isIntersecting'](_0x57b4ae))return!0x0;if(0x2==_0x51146c&&0x3==_0x474cbb){const _0x31ebea=_0x543c0c['_findSuggestions'](_0x55b12c,'insertion')['filter'](({suggestion:_0x45a0ac,meta:_0xc00bb})=>_0xc00bb['isOwn']&&'convertInlineImageToBlock'==_0x45a0ac['subType']);if(_0x31ebea['length']>0x1&&_0x57b4ae['end']['isEqual'](_0x55b12c['start']))return!0x0;if(0x1==_0x31ebea['length']&&(_0x55b12c['start']['isEqual'](_0x57b4ae['end'])||_0x55b12c['end']['isEqual'](_0x57b4ae['start'])))return!0x0;}if(0x3==_0x51146c&&0x3==_0x474cbb&&_0x55b12c['start']['isBefore'](_0x57b4ae['start'])){const _0x56bab7=_0x55b12c['end']['nodeAfter'],_0x566e82=_0x57b4ae['start']['nodeBefore'];return _0x851765['isBlockImage'](_0x56bab7)&&_0x56bab7===_0x566e82;}return!0x1;}_0x2f1316['model']['document']['registerPostFixer'](()=>{let _0x32f511=!0x1;const _0xc4b6cc=Array['from'](_0x2f1316['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25f7db,data:_0x564fbd}of _0xc4b6cc){const {group:_0x455de3,type:_0x5cb822,subType:_0xc600a2,id:_0x147086}=_0x543c0c['_splitMarkerName'](_0x25f7db);if('suggestion'==_0x455de3&&_0x543c0c['hasSuggestion'](_0x147086)){if('formatBlock'==_0x5cb822&&('imageStylePreApply'==_0xc600a2||'imageStylePostApply'==_0xc600a2)){const _0x1394d0=_0x543c0c['getSuggestion'](_0x147086);if(_0x564fbd['newRange']){const _0x462fab=_0x1394d0['getFirstRange']()['getContainedElement']();if(_0x851765['isBlockImage'](_0x462fab))continue;_0x543c0c['discardSuggestion'](_0x1394d0),_0x32f511=!0x0;}}if('insertion'==_0x5cb822&&'imageCaption'==_0xc600a2&&!_0x564fbd['newRange']){const _0x1c5d39=_0x543c0c['getSuggestion'](_0x147086);_0x1c5d39['next']&&_0x1c5d39['next']['isInContent']&&(_0x543c0c['discardSuggestion'](_0x1c5d39['next']),_0x32f511=!0x0);}}}return _0x32f511;}),this['_registerLegacyDescription'](_0x55bc26);}['_registerLegacyDescription'](_0x380b0b){const _0x16f5f9=this['editor'],_0x3f0b25=_0x16f5f9['locale'];_0x16f5f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b9d8f=>{if('formatBlock'!=_0x3b9d8f['type']&&'formatInline'!=_0x3b9d8f['type'])return;const {data:_0x20b3a0}=_0x3b9d8f;if(!_0x20b3a0||'imageStyle'!=_0x20b3a0['commandName'])return;const _0x38808d=_0x20b3a0['commandParams'][0x0]['value'];return _0x5ea5c9('side'===_0x38808d?o(_0x3f0b25,'FORMAT_SIDE_IMAGE'):_0x380b0b[_0x38808d]||_0x38808d);function _0x5ea5c9(_0x36aa31){return{'type':'format','content':o(_0x3f0b25,'*Format:*\x20%0',_0x36aa31)};}});}}class ct extends _0x32d277{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd0c414){super(_0xd0c414),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x16abb3=this['editor'],_0x2baa6c=_0x16abb3['commands']['get']('importWord'),_0x11d0fa=_0x16abb3['commands']['get']('trackChanges');_0x2baa6c&&(_0x2baa6c['on']('execute',(_0x520abb,[,_0x4d2037])=>{this['_trackChangesValueDuringImport']=_0x11d0fa['value'],_0x4d2037['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2baa6c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2baa6c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11d0fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x16abb3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x129bf9,_0x9f8fcd){const {suggestions:_0x227de4}=_0x9f8fcd,_0x397c0c=this['editor']['commands']['get']('trackChanges'),_0x4de27e=_0x397c0c['value'];this['_trackChangesValueDuringImport']!==_0x4de27e&&(_0x397c0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x227de4&&_0x227de4['forEach'](({id:_0xb79457,type:_0x165809,author:_0x11869b,created_at:_0x57904b})=>{const _0x4925d0={'id':_0xb79457,'type':_0x165809,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x11869b,'createdAt':_0x57904b?new Date(_0x57904b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4925d0);});}}class ut extends _0x32d277{['afterInit'](){const _0x341783=this['editor'],_0x3fb91f=_0x341783['plugins']['get']('TrackChangesEditing');if(_0x341783['plugins']['has']('IndentEditing')&&(_0x3fb91f['enableCommand']('indent'),_0x3fb91f['enableCommand']('outdent')),_0x341783['plugins']['has']('IndentBlock')){for(const _0x537961 of['indentBlock','outdentBlock'])_0x3fb91f['enableDefaultAttributesIntegration'](_0x537961);}const _0x39e625=_0x341783['locale'];_0x3fb91f['registerBlockAttribute']('blockIndent'),_0x3fb91f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39e625,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84e184=this['editor'],_0x4bd954=_0x84e184['locale'],_0x52a7d6=_0x84e184['plugins']['get']('TrackChangesEditing');_0x52a7d6['descriptionFactory']['registerDescriptionCallback'](_0x25adb7=>{if('formatBlock'!=_0x25adb7['type'])return;const {data:_0x1259b1}=_0x25adb7;if(!_0x1259b1)return;if('indentBlock'!=_0x1259b1['commandName']&&'outdentBlock'!=_0x1259b1['commandName'])return;const _0x3301e0=_0x25adb7['getItems']()[0x0],_0x19c1f0=_0x52a7d6['descriptionFactory']['getItemLabel'](_0x3301e0);return'indentBlock'==_0x1259b1['commandName']?{'type':'format','content':o(_0x4bd954,'*Indent:*\x20%0',_0x19c1f0)}:'outdentBlock'==_0x1259b1['commandName']?{'type':'format','content':o(_0x4bd954,'*Outdent:*\x20%0',_0x19c1f0)}:void 0x0;});}}class ft extends _0x32d277{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x32d277{['afterInit'](){const _0x4075b5=this['editor'];if(!_0x4075b5['plugins']['has']('LinkEditing'))return;const _0x50cb7a=_0x4075b5['plugins']['get']('TrackChangesEditing'),_0x565027=_0x4075b5['commands']['get']('link');_0x50cb7a['enableDefaultAttributesIntegration']('link'),_0x50cb7a['enableDefaultAttributesIntegration']('unlink'),_0x50cb7a['registerInlineAttribute']('linkHref');for(const _0x182b46 of _0x565027['manualDecorators'])_0x50cb7a['registerInlineAttribute'](_0x182b46['id']),_0x50cb7a['descriptionFactory']['registerAttributeLabel'](_0x182b46['id'],'link\x20('+_0x182b46['label']['toLowerCase']()+')');_0x50cb7a['descriptionFactory']['registerDescriptionCallback'](_0x2ef529=>{if('attribute'!=_0x2ef529['type'])return;const {data:_0x36275b}=_0x2ef529;if(!_0x36275b||'linkHref'!=_0x36275b['key'])return;const _0x3fbc96=_0x36275b['newValue'],_0x537b7f=_0x4075b5['locale'];return{'type':'format','content':null==_0x3fbc96?o(_0x537b7f,'*Remove\x20link*'):o(_0x537b7f,'*Set\x20link:*\x20%0','\x22'+_0x3fbc96+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f75d9=this['editor'],_0x939987=_0x1f75d9['locale'];_0x1f75d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30518d=>{if('formatInline'!=_0x30518d['type'])return;const {data:_0x44835d}=_0x30518d;if(_0x44835d){if('link'==_0x44835d['commandName']){const _0x488bdb=_0x44835d['commandParams'][0x0];return{'type':'format','content':o(_0x939987,'*Set\x20link:*\x20%0','\x22'+_0x488bdb+'\x22')};}return'unlink'==_0x44835d['commandName']?{'type':'format','content':o(_0x939987,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x32d277{['afterInit'](){const _0x30fc05=this['editor'],_0x59f7c1=_0x30fc05['locale'];if(!_0x30fc05['plugins']['has']('LegacyListEditing'))return;const _0x2e0a42=_0x30fc05['plugins']['get']('TrackChangesEditing'),_0x8b2f8e=_0x30fc05['plugins']['has']('LegacyTodoListEditing');function _0x40e134(_0x406977){return()=>{const _0x26b6d2=_0x30fc05['model']['document']['selection'],_0xa8baa2=_0x30fc05['commands']['get'](_0x406977);if(_0xa8baa2['value'])return void _0x30fc05['execute']('paragraph',{});const _0x3fa533=_0x406977['slice'](0x0,-0x4),_0x4bc4e1=function(_0x205efe,_0x2ad0e7,_0x47840f){let _0x7ad5d8=Array['from'](_0x205efe)['filter'](_0x3d0ab7=>function(_0x25b511,_0x443b85){return _0x443b85['checkChild'](_0x25b511['parent'],'listItem')&&!_0x443b85['isObject'](_0x25b511);}(_0x3d0ab7,_0x47840f));_0x7ad5d8=_0x7ad5d8['filter'](_0x556de5=>!_0x556de5['is']('element','listItem')||_0x556de5['getAttribute']('listType')!=_0x2ad0e7);const _0x3da1bb=new Set();for(const _0x2b980d of _0x7ad5d8)_0x2b980d['is']('element','listItem')?_0x3da1bb['add'](Le(_0x2b980d)):_0x3da1bb['add'](_0x2b980d);return Array['from'](_0x3da1bb);}(_0x26b6d2['getSelectedBlocks'](),_0x3fa533,_0x30fc05['model']['schema']);_0x30fc05['model']['change'](()=>{for(const _0x48d280 of _0x4bc4e1)_0x2e0a42['markBlockFormat'](_0x48d280,{'commandName':_0x406977,'commandParams':[{'forceValue':!_0xa8baa2['value']}],'formatGroupId':'blockName'},Ee(_0x48d280));});};}function _0x36fcbb(_0x1c6686){return()=>{const _0x312388=function(_0x25fcc8){let _0x572307=Array['from'](_0x25fcc8);const _0xb4627e=_0x572307['findIndex'](_0x361088=>'listItem'!=_0x361088['name']);return _0xb4627e>-0x1&&(_0x572307=_0x572307['slice'](0x0,_0xb4627e)),_0x572307;}(_0x30fc05['model']['document']['selection']['getSelectedBlocks']()),_0x314531=_0x30fc05['model']['createRange'](_0x30fc05['model']['createPositionAt'](_0x312388[0x0],'before'),_0x30fc05['model']['createPositionAt'](_0x312388[_0x312388['length']-0x1],'end'));_0x30fc05['model']['change'](()=>{_0x2e0a42['markBlockFormat'](_0x314531,{'commandName':_0x1c6686,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16b3bb){const _0x4ca50c=new Set();for(const _0xd92001 of _0x16b3bb){let _0xe39f9d=_0xd92001['nextSibling'];for(;_0xe39f9d&&_0xe39f9d['getAttribute']('listIndent')>_0xd92001['getAttribute']('listIndent');)_0x4ca50c['add'](_0xe39f9d),_0xe39f9d=_0xe39f9d['nextSibling'];}return Array['from'](_0x4ca50c);}(_0x312388));});};}_0x2e0a42['enableCommand']('numberedList',_0x40e134('numberedList')),_0x2e0a42['enableCommand']('bulletedList',_0x40e134('bulletedList')),_0x8b2f8e&&_0x2e0a42['enableCommand']('todoList',_0x40e134('todoList')),_0x2e0a42['enableCommand']('indentList',_0x36fcbb('indentList')),_0x2e0a42['enableCommand']('outdentList',_0x36fcbb('outdentList')),_0x8b2f8e&&_0x2e0a42['enableCommand']('checkTodoList',()=>{const _0x2064b1=_0x30fc05['commands']['get']('checkTodoList'),_0x4cd0dd=Array['from'](_0x2064b1['_selectedElements']);_0x4cd0dd['filter'](_0xf100a7=>_0xf100a7['getAttribute']('todoListChecked')!=_0x2064b1['value']),_0x30fc05['model']['change'](()=>{for(const _0x3d5078 of _0x4cd0dd)_0x2e0a42['markBlockFormat'](_0x3d5078,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2064b1['value']}]});});}),_0x2e0a42['descriptionFactory']['registerElementLabel']('listItem',_0x19f9f9=>o(_0x59f7c1,'ELEMENT_LIST_ITEM',_0x19f9f9)),_0x2e0a42['descriptionFactory']['registerDescriptionCallback'](_0x13af1c=>{if('formatBlock'!=_0x13af1c['type']&&'formatInline'!=_0x13af1c['type'])return;const {data:_0x49d464}=_0x13af1c;if(_0x49d464){if('numberedList'==_0x49d464['commandName']||'bulletedList'==_0x49d464['commandName']||'todoList'==_0x49d464['commandName'])switch(_0x49d464['commandName']['replace']('List','')){case'bulleted':return _0x4913f9(o(_0x59f7c1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4913f9(o(_0x59f7c1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4913f9(o(_0x59f7c1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x49d464['commandName'])return{'type':'format','content':o(_0x59f7c1,'*Indent:*\x20%0',o(_0x59f7c1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x49d464['commandName'])return{'type':'format','content':o(_0x59f7c1,'*Outdent:*\x20%0',o(_0x59f7c1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x49d464['commandName'])return _0x49d464['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59f7c1,'*Check\x20item*')}:{'type':'format','content':o(_0x59f7c1,'*Uncheck\x20item*')};}function _0x4913f9(_0x592a82){return{'type':'format','content':o(_0x59f7c1,'*Change\x20to:*\x20%0',_0x592a82)};}});}}function Le(_0x324dda){const _0x50efab=_0x324dda['getAttribute']('listIndent');if(0x0==_0x50efab)return _0x324dda;let _0x10fb1d=_0x324dda;for(;_0x324dda['previousSibling']&&_0x324dda['previousSibling']['is']('element','listItem');){const _0x247ab8=_0x324dda['previousSibling']['getAttribute']('listIndent');if(_0x247ab8==_0x50efab)_0x10fb1d=_0x324dda['previousSibling'];else{if(_0x247ab8<_0x50efab)break;}_0x324dda=_0x324dda['previousSibling'];}return _0x10fb1d;}function Ee(_0x181df9){const _0x1bb176=[];if(_0x181df9['is']('element','listItem')&&_0x181df9['getAttribute']('listIndent')>0x0){let _0x1d1e80=_0x181df9['nextSibling'];for(;_0x1d1e80&&'listItem'==_0x1d1e80['name']&&_0x1d1e80['getAttribute']('listIndent')==_0x181df9['getAttribute']('listIndent');)_0x1bb176['push'](_0x1d1e80),_0x1d1e80=_0x1d1e80['nextSibling'];}return _0x1bb176;}class Q extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x248357=this['editor']['config']['get']('list.properties'),_0x168107=this['editor']['plugins']['get']('TrackChangesEditing');_0x248357['styles']&&_0x168107['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x248357['reversed']&&_0x168107['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x248357['startIndex']&&_0x168107['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x168107['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d36ad,_0x2795e8={}){const _0x5e2e5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5880f7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e2e5b['markMultiRangeBlockFormat'](_0x5880f7,{'commandName':'listStyle','commandParams':[{'type':_0x2795e8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x25f651,_0x3c055a={}){const _0x5063db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x371e77=this['_getSuggestionBlocks'](_0x556556=>_0x556556['is']('element','listItem')&&'numbered'===_0x556556['getAttribute']('listType'));if(_0x371e77['length']<0x1)return;const _0x1e0c09=_0x371e77['map'](_0x3df67e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3df67e,'before'),this['editor']['model']['createPositionAt'](_0x3df67e,0x0)));this['editor']['model']['change'](()=>{_0x5063db['markMultiRangeBlockFormat'](_0x1e0c09,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c055a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x57cdf3,_0x3684ed={}){const _0x1ef0c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x275f12=this['_getSuggestionBlocks'](_0x3f7072=>_0x3f7072['is']('element','listItem')&&'numbered'===_0x3f7072['getAttribute']('listType'));if(_0x275f12['length']<0x1)return;const _0x55a3e9=_0x275f12['map'](_0x244117=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244117,'before'),this['editor']['model']['createPositionAt'](_0x244117,0x0)));this['editor']['model']['change'](()=>{_0x1ef0c5['markMultiRangeBlockFormat'](_0x55a3e9,{'commandName':'listStart','commandParams':[{'startIndex':_0x3684ed['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3405c2){if('formatBlock'!=_0x3405c2['type']&&'formatInline'!=_0x3405c2['type'])return;const _0x52f83a=this['editor']['locale'],{data:_0x19ebc7}=_0x3405c2;if(!_0x19ebc7)return;let _0x54a1a9,_0xfc5c7d;switch(_0x19ebc7['commandName']){case'listStyle':_0x54a1a9='*Change\x20to:*\x20%0',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9,o(_0x52f83a,this['_getTranslationKeyForListStyle'](_0x19ebc7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x54a1a9=_0x19ebc7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9)};break;case'listStart':_0x54a1a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfc5c7d={'type':'format','content':o(_0x52f83a,_0x54a1a9,_0x19ebc7['commandParams'][0x0]['startIndex'])};}return _0xfc5c7d;}['_getSuggestionBlocksForListStyle'](){const _0x38e7ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x25ff34=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25ff34[0x0]?.['is']('element','listItem')&&_0x25ff34['unshift'](..._0x38e7ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25ff34[_0x25ff34['length']-0x1]?.['is']('element','listItem')&&_0x25ff34['push'](..._0x38e7ae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25ff34=[...new Set(_0x25ff34)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25ff34=_0x25ff34['filter'](_0x35dfed=>_0x35dfed['is']('element','listItem'))),_0x25ff34;}['_getSuggestionBlocks'](_0xd27535){const _0x36479a=this['editor']['plugins']['get']('LegacyListUtils');let _0x192116=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd27535)['map'](_0x178e12=>{const _0x18e19c=this['editor']['model']['createPositionAt'](_0x178e12,0x0);return[..._0x36479a['getSiblingNodes'](_0x18e19c,'backward'),..._0x36479a['getSiblingNodes'](_0x18e19c,'forward')];})['flat']();return _0x192116=[...new Set(_0x192116)],_0x192116;}['_getTranslationKeyForListStyle'](_0x279fec){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x279fec)||'default')['toUpperCase']()+'_LIST_'+_0x279fec['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32d277{['afterInit'](){const _0x1ebdba=this['editor'];if(!_0x1ebdba['plugins']['has']('MediaEmbedEditing'))return;const _0x3d3ee6=_0x1ebdba['plugins']['get']('TrackChangesEditing'),_0x851992=_0x1ebdba['locale'];_0x3d3ee6['enableCommand']('mediaEmbed'),_0x3d3ee6['descriptionFactory']['registerElementLabel']('media',_0x5e01eb=>o(_0x851992,'ELEMENT_MEDIA',_0x5e01eb)),_0x1ebdba['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3fe02f,{writer:_0x3ee633,options:_0x35b934})=>{if(_0x35b934['showSuggestionHighlights'])return _0x3ee633['createEmptyElement']('div');},'converterPriority':'high'}),_0x1ebdba['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7eee8b,_0xd51397,_0x3f5265)=>{_0x3f5265['options']['showSuggestionHighlights']&&_0x7eee8b['stop']();},{'priority':'high'});}}class mt extends _0x32d277{['afterInit'](){const _0x13f44a=this['editor'];_0x13f44a['plugins']['has']('MentionEditing')&&_0x13f44a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x32d277{['afterInit'](){const _0x150a80=this['editor'];if(!_0x150a80['plugins']['has']('MergeFieldsEditing'))return;const _0x41cafe=_0x150a80['plugins']['get']('TrackChangesEditing'),_0x2d2db4=_0x150a80['locale'];_0x41cafe['enableCommand']('insertMergeField'),_0x41cafe['enableCommand']('insertMergeFieldBlock'),_0x41cafe['enableCommand']('insertMergeFieldImage'),_0x41cafe['descriptionFactory']['registerElementLabel']('mergeField',_0x305b83=>o(_0x2d2db4,'ELEMENT_MERGE_FIELD',_0x305b83)),_0x41cafe['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xb82db4=>o(_0x2d2db4,'ELEMENT_MERGE_FIELD',_0xb82db4)),_0x41cafe['descriptionFactory']['registerDescriptionCallback'](_0x5a62a4=>{if('insertion'!=_0x5a62a4['type']&&'deletion'!=_0x5a62a4['type'])return;const _0x1a6e42=_0x5a62a4['getContainedElement']();if(null==_0x1a6e42)return;const _0x4ef083=_0x150a80['plugins']['get']('MergeFieldsEditing');let _0xf9ae07;switch(_0x4ef083['getMergeFieldType'](_0x1a6e42)){case null:return;case'image':{const _0x4976fe=_0x4ef083['unwrapAffixes'](_0x1a6e42['getAttribute']('src'));_0xf9ae07=_0x4ef083['getLabel'](_0x4976fe)||_0x4976fe;break;}default:{const _0x510674=_0x1a6e42['getAttribute']('id');_0xf9ae07=_0x4ef083['getLabel'](_0x510674)||_0x510674;break;}}return'insertion'==_0x5a62a4['type']?{'type':'insertion','content':o(_0x2d2db4,'*Insert:*\x20%0','\x22'+_0xf9ae07+'\x22\x20'+o(_0x2d2db4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2d2db4,'*Remove:*\x20%0','\x22'+_0xf9ae07+'\x22\x20'+o(_0x2d2db4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x32d277{['afterInit'](){const _0x294468=this['editor'],_0x46ea7e=_0x294468['plugins']['get']('TrackChangesEditing');_0x294468['plugins']['has']('MultiLevelList')&&(_0x46ea7e['enableDefaultAttributesIntegration']('multiLevelList'),_0x46ea7e['registerBlockAttribute']('listMarkerStyle'),_0x46ea7e['descriptionFactory']['registerDescriptionCallback'](_0x40c7ac=>this['handleDescriptions'](_0x40c7ac)));}['handleDescriptions'](_0x47a7b7){const _0x169531=this['editor']['locale'],{data:_0xc5fd30}=_0x47a7b7,_0x785c9b={'type':'format','content':''};if(_0xc5fd30&&'listMarkerStyle'==_0xc5fd30['key']){if(!_0xc5fd30['oldValue'])return{'type':'format','content':o(_0x169531,'*Set\x20format:*\x20%0',o(_0x169531,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc5fd30['newValue']+')'};if(!_0xc5fd30['newValue']){let _0x1b5c0c=_0x47a7b7['head'];for(;_0x1b5c0c;){if(_0x1b5c0c['data']&&'listType'==_0x1b5c0c['data']['key']&&_0x1b5c0c['data']['newValue'])return _0x785c9b;_0x1b5c0c=_0x1b5c0c['next'];}return{'type':'format','content':o(_0x169531,'*Remove\x20format:*\x20%0',o(_0x169531,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc5fd30['oldValue']+')'};}}}}class kt extends _0x32d277{['afterInit'](){const _0x5962f3=this['editor'];if(!_0x5962f3['plugins']['has']('PageBreakEditing'))return;_0x5962f3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x49aea=_0x5962f3['plugins']['get']('TrackChangesEditing'),_0x204c3c=_0x5962f3['locale'];_0x49aea['descriptionFactory']['registerElementLabel']('pageBreak',_0xf7fc5e=>o(_0x204c3c,'ELEMENT_PAGE_BREAK',_0xf7fc5e));}}class bt extends _0x32d277{['afterInit'](){const _0x4c2e26=this['editor'];if(!_0x4c2e26['plugins']['has']('Paragraph'))return;const _0x5f3e62=_0x4c2e26['locale'],_0x1d9b3f=_0x4c2e26['plugins']['get']('TrackChangesEditing');_0x1d9b3f['descriptionFactory']['registerElementLabel']('paragraph',_0x9863ba=>o(_0x5f3e62,'ELEMENT_PARAGRAPH',_0x9863ba)),_0x1d9b3f['enableDefaultAttributesIntegration']('paragraph'),_0x1d9b3f['enableCommand']('insertParagraph'),_0x4c2e26['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c2e26),{'priority':'highest'}),_0x4c2e26['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bbe92,_0x41cd38,_0x36a207)=>{_0x36a207['options']['showSuggestionHighlights']&&nr(_0x4c2e26,{'showActiveMarker':!0x1})(_0x1bbe92,_0x41cd38,_0x36a207);},{'priority':'highest'});const _0x5721dc=_0x1d9b3f['descriptionFactory'];_0x5721dc['registerDescriptionCallback'](_0x174b40=>{if('insertion'!==_0x174b40['type'])return;const {start:_0x12f565,end:_0xfa7f14}=_0x174b40['getFirstRange']();if(!_0x12f565['isTouching'](_0xfa7f14)||!_0x12f565['nodeAfter'])return;const _0x38adc3=_0x4c2e26['model']['schema'],_0xd7a3c2=_0x12f565['nodeAfter'];return _0x38adc3['isBlock'](_0xd7a3c2)&&!_0x38adc3['isLimit'](_0xd7a3c2)&&_0x38adc3['checkChild'](_0xd7a3c2,'$text')?{'type':'insertion','content':o(_0x5f3e62,'*Insert:*\x20%0',_0x5721dc['getItemLabel'](_0xd7a3c2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf659=this['editor'],_0x1a5b2c=_0x3cf659['locale'];_0x3cf659['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aee43=>{if('formatBlock'!=_0x4aee43['type'])return;const {data:_0x4aec1e}=_0x4aee43;return _0x4aec1e&&'paragraph'==_0x4aec1e['commandName']?{'type':'format','content':o(_0x1a5b2c,'*Change\x20to:*\x20%0',o(_0x1a5b2c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2d9e83,{showActiveMarker:_0x3ab1cc=!0x0}={}){return(_0x5c2c0f,_0xabee8f,_0x1bcda6)=>{const _0x5b03ba=_0x2d9e83['plugins']['get']('TrackChangesEditing'),_0xa18821=_0xabee8f['markerRange']['start'],_0x27cdcb=_0xabee8f['markerRange']['end'],_0x25ecee=_0x2d9e83['model']['schema'];if(!_0xa18821['isTouching'](_0x27cdcb)||!_0xa18821['nodeAfter'])return;const _0x186de7=_0xa18821['nodeAfter'];if(_0x25ecee['isBlock'](_0x186de7)&&!_0x25ecee['isLimit'](_0x186de7)&&_0x25ecee['checkChild'](_0x186de7,'$text')){if(!_0x1bcda6['consumable']['consume'](_0xabee8f['markerRange'],_0x5c2c0f['name']))return;const {authorId:_0x1dc193}=_0x5b03ba['_splitMarkerName'](_0xabee8f['markerName']),_0x2ae2af=_0x1bcda6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1dc193}),_0x48a423=_0x1bcda6['mapper']['toViewPosition'](_0x27cdcb);_0x3ab1cc&&_0x5b03ba['activeMarkers']['includes'](_0xabee8f['markerName'])&&_0x1bcda6['writer']['addClass']('ck-suggestion-marker--active',_0x2ae2af),_0x1bcda6['writer']['insert'](_0x48a423,_0x2ae2af),_0x1bcda6['mapper']['bindElementToMarker'](_0x2ae2af,_0xabee8f['markerName']);}};}class yt extends _0x32d277{['afterInit'](){const _0x4b08ed=this['editor'];if(!_0x4b08ed['plugins']['has']('RemoveFormatEditing'))return;_0x4b08ed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430d55=this['editor'];_0x430d55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x191b3d=>{if('formatBlock'!=_0x191b3d['type']&&'formatInline'!=_0x191b3d['type'])return;const {data:_0x4ee1e7}=_0x191b3d;return _0x4ee1e7&&'removeFormat'==_0x4ee1e7['commandName']?{'type':'format','content':o(_0x430d55['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x32d277{['afterInit'](){const _0x31c958=this['editor'];if(!_0x31c958['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x83754f=_0x31c958['plugins']['get']('TrackChangesEditing');_0x83754f['enableCommand']('goToPreviousRestrictedEditingException'),_0x83754f['enableCommand']('goToNextRestrictedEditingException');const _0x2fb335=_0x31c958['plugins']['get']('RestrictedEditingModeEditing');_0x2fb335['enableCommand']('trackChanges'),_0x2fb335['enableCommand']('acceptSuggestion'),_0x2fb335['enableCommand']('discardSuggestion'),_0x2fb335['enableCommand']('acceptAllSuggestions'),_0x2fb335['enableCommand']('discardAllSuggestions'),_0x2fb335['enableCommand']('acceptSelectedSuggestions'),_0x2fb335['enableCommand']('discardSelectedSuggestions');}}class St extends _0x32d277{static get['requires'](){return[_0x4ae6b1];}['init'](){const _0x5da2c9=this['editor'],_0x2c97fc=_0x5da2c9['plugins']['get']('TrackChangesEditing');_0x2c97fc['enableCommand']('shiftEnter'),_0x5da2c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5da2c9),{'priority':'high'}),_0x5da2c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5da2c9),{'priority':'high'}),_0x5da2c9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x591b63,_0x4768c5,_0x1857f8)=>{_0x1857f8['options']['showSuggestionHighlights']&&je(_0x5da2c9,{'showActiveMarker':!0x1})(_0x591b63,_0x4768c5,_0x1857f8);}),_0x2c97fc['descriptionFactory']['registerElementLabel']('softBreak',_0x3f15ef=>o(_0x5da2c9['locale'],'ELEMENT_LINE_BREAK',_0x3f15ef));}}function je(_0x2caa22,{showActiveMarker:_0x3d9f29=!0x0}={}){return(_0x1c915b,_0x137350,_0xa1dec3)=>{const _0x10852c=_0x2caa22['plugins']['get']('TrackChangesEditing');if(!_0xa1dec3['consumable']['test'](_0x137350['markerRange'],_0x1c915b['name']))return;const _0x4402d8=_0x2caa22['model'];for(const _0x1d487c of _0x137350['markerRange']['getItems']()){if(!_0x1d487c['is']('element','softBreak'))continue;const _0x5e8ec5='deletion'==_0x137350['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x278957}=_0x10852c['_splitMarkerName'](_0x137350['markerName']),_0xd052d1=_0xa1dec3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e8ec5,'data-author-id':_0x278957}),_0x2fbd6e=_0xa1dec3['mapper']['toViewPosition'](_0x4402d8['createPositionBefore'](_0x1d487c));_0x3d9f29&&_0x10852c['activeMarkers']['includes'](_0x137350['markerName'])&&_0xa1dec3['writer']['addClass']('ck-suggestion-marker--active',_0xd052d1),_0xa1dec3['writer']['insert'](_0x2fbd6e,_0xd052d1),_0xa1dec3['mapper']['bindElementToMarker'](_0xd052d1,_0x137350['markerName']);}};}class At extends _0x32d277{['afterInit'](){const _0x13b3af=this['editor'],_0x5856e2=_0x13b3af['model'],_0x10bc1a=_0x13b3af['locale'];if(!_0x13b3af['plugins']['has']('StandardEditingModeEditing'))return;const _0x19bcae=_0x13b3af['plugins']['get']('TrackChangesEditing'),_0x11eb8d='restrictedEditingException',_0x7befad=_0x13b3af['commands']['get'](_0x11eb8d);_0x19bcae['enableCommand'](_0x11eb8d,(_0x32cec0,_0x34a680={})=>{const _0x37fabd=_0x5856e2['document']['selection'];if(_0x37fabd['isCollapsed'])return void _0x32cec0(_0x34a680);const _0x11b2bb=void 0x0!==_0x34a680['forceValue']?_0x34a680['forceValue']:!_0x7befad['value'];_0x5856e2['change'](()=>{const _0xe581f8=Array['from'](_0x37fabd['getRanges']());for(const _0x48fe8d of _0xe581f8){const _0x399a8c=_0x11b2bb?[_0x48fe8d]:io(_0x11eb8d,_0x48fe8d,_0x5856e2);for(const _0x59a0f1 of _0x399a8c)_0x19bcae['markInlineFormat'](_0x59a0f1,{'commandName':_0x11eb8d,'commandParams':[{'forceValue':_0x11b2bb}]});}});}),_0x19bcae['descriptionFactory']['registerDescriptionCallback'](_0x4f9a4c=>{if('formatBlock'!=_0x4f9a4c['type']&&'formatInline'!=_0x4f9a4c['type'])return;const {data:_0x3a2986}=_0x4f9a4c;return _0x3a2986&&_0x3a2986['commandName']==_0x11eb8d?_0x3a2986['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10bc1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10bc1a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x32d277{['afterInit'](){const _0x4de1d9=this['editor'];if(!_0x4de1d9['plugins']['has']('Style')||!_0x4de1d9['plugins']['has']('DataSchema'))return;const _0x1b88f0=_0x4de1d9['plugins']['get']('TrackChangesEditing'),_0x43bedc=_0x4de1d9['locale'],_0x2be0ec=_0x4de1d9['config']['get']('style')||{},_0x5803b9=_0x4de1d9['plugins']['get']('GeneralHtmlSupport'),_0x366129=_0x4de1d9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4de1d9['plugins']['get']('DataSchema'),_0x2be0ec['definitions']);_0x1b88f0['enableDefaultAttributesIntegration']('style');const _0x34d9ce=new Set();for(const _0x48e330 of _0x366129['block']){const _0x25769c=_0x5803b9['getGhsAttributeNameForElement'](_0x48e330['element']);_0x34d9ce['add'](_0x25769c);}const _0xccc9a9=new Set();for(const _0x19251a of _0x366129['inline']){const _0x2567c1=_0x5803b9['getGhsAttributeNameForElement'](_0x19251a['element']);_0xccc9a9['add'](_0x2567c1);for(const _0x3cba56 of _0x19251a['ghsAttributes'])_0xccc9a9['add'](_0x3cba56);}for(const _0x5bc8c0 of _0x34d9ce)_0x1b88f0['registerBlockAttribute'](_0x5bc8c0),_0x1b88f0['descriptionFactory']['registerAttributeLabel'](_0x5bc8c0,o(_0x43bedc,'FORMAT_STYLE'));for(const _0x632b66 of _0xccc9a9)_0x1b88f0['registerInlineAttribute'](_0x632b66),_0x1b88f0['descriptionFactory']['registerAttributeLabel'](_0x632b66,o(_0x43bedc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ca68=this['editor'],_0xd5b052=_0x11ca68['locale'];_0x11ca68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x519358=>{if('formatBlock'!=_0x519358['type']&&'formatInline'!=_0x519358['type'])return;const {data:_0x320a70}=_0x519358;return _0x320a70&&'style'===_0x320a70['commandName']?_0x320a70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd5b052,'*Set\x20format:*\x20%0',_0x320a70['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd5b052,'*Remove\x20format:*\x20%0',_0x320a70['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x32d277{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x33b744){super(_0x33b744),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x42d3c6=this['editor'],_0x3b4a27=_0x42d3c6['model']['document']['selection'];if(!_0x42d3c6['plugins']['has']('TableEditing'))return;const _0x1901f8=_0x42d3c6['locale'],_0x1114ab=_0x42d3c6['plugins']['get']('TrackChangesEditing'),_0x248d7d=_0x42d3c6['plugins']['get']('TableUtils');_0x1114ab['descriptionFactory']['registerElementLabel']('table',_0x565ba1=>o(_0x1901f8,'ELEMENT_TABLE',_0x565ba1)),this['_setupColumnsRowsFixing'](),_0x1114ab['enableCommand']('insertTable'),_0x1114ab['enableCommand']('selectTableRow'),_0x1114ab['enableCommand']('selectTableColumn');for(const _0x58f335 of['insertTableRowAbove','insertTableRowBelow']){const _0x3488ac=_0x42d3c6['commands']['get'](_0x58f335);_0x1114ab['enableCommand'](_0x58f335,_0x3707ee=>{_0x42d3c6['model']['change'](_0x21f2eb=>{_0x3707ee();const _0x3a34b4='above'===_0x3488ac['order'],_0x492c91=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x498bb6=_0x248d7d['getRowIndexes'](_0x492c91),_0x25e386=_0x3a34b4?_0x498bb6['first']-0x1:_0x498bb6['last']+0x1,_0x547059=_0x492c91[0x0]['findAncestor']('table'),_0x51edf7=_0x248d7d['createTableWalker'](_0x547059,{'startRow':_0x25e386,'endRow':_0x25e386}),_0x460a16=Array['from'](_0x51edf7)['map'](_0x22510c=>_0x21f2eb['createRangeOn'](_0x22510c['cell']));_0x1114ab['markMultiRangeInsertion'](_0x460a16,'tableRow');});});}for(const _0x45e873 of['insertTableColumnLeft','insertTableColumnRight']){const _0x220971=_0x42d3c6['commands']['get'](_0x45e873);_0x1114ab['enableCommand'](_0x45e873,_0x3eb3e0=>{_0x42d3c6['model']['change'](_0x528ca7=>{_0x3eb3e0();const _0xf32010='left'===_0x220971['order'],_0x3401e3=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x13a4e2=_0x248d7d['getColumnIndexes'](_0x3401e3),_0x421a42=_0xf32010?_0x13a4e2['first']-0x1:_0x13a4e2['last']+0x1,_0x3e5d88=_0x3401e3[0x0]['findAncestor']('table'),_0xf13a=_0x248d7d['createTableWalker'](_0x3e5d88,{'startRow':0x0,'column':_0x421a42,'includeAllSlots':!0x1}),_0x5aa3ac=Array['from'](_0xf13a)['map'](_0x5ea627=>_0x528ca7['createRangeOn'](_0x5ea627['cell']));_0x1114ab['markMultiRangeInsertion'](_0x5aa3ac,'tableColumn');});});}for(const _0xe64396 of['removeTableRow','removeTableColumn']){const _0xc3828a=_0xe64396['substr'](0xb),_0x1a4862=_0xc3828a['toLowerCase'](),_0x2db53b=_0x1a4862['substr'](0x0,0x3)+'span',_0x3fc01a='table'+_0xc3828a,_0x3711ae='min'+_0xc3828a,_0xd92beb='max'+_0xc3828a;_0x1114ab['enableCommand'](_0xe64396,()=>{_0x42d3c6['model']['change'](_0x3775c1=>{const _0x505d13=_0x248d7d['getSelectionAffectedTableCells'](_0x3b4a27),_0x594bdf=_0x505d13[0x0]['findAncestor']('table');let _0x1975ba;if('removeTableRow'==_0xe64396){const _0x440bd3=_0x248d7d['getRowIndexes'](_0x505d13);_0x1975ba={'startRow':_0x440bd3['first'],'endRow':_0x440bd3['last'],'includeAllSlots':!0x0};}else{const _0x4bcc73=_0x248d7d['getColumnIndexes'](_0x505d13);_0x1975ba={'startColumn':_0x4bcc73['first'],'endColumn':_0x4bcc73['last'],'includeAllSlots':!0x0};}const _0x4acc08=_0x248d7d['createTableWalker'](_0x594bdf,_0x1975ba),_0x32fa30=Array['from'](_0x4acc08)['map'](({cell:_0x5a2b83})=>_0x5a2b83),_0x1d1a76=Ne(_0x32fa30['filter'](_0x42fcb8=>_0x42fcb8['hasAttribute'](_0x2db53b))),_0x1d0510=Ne(_0x32fa30['filter'](_0x2282d3=>!_0x2282d3['hasAttribute'](_0x2db53b)))['map'](_0x4e88ac=>_0x3775c1['createRangeOn'](_0x4e88ac)),_0x55fd25=_0x1114ab['markMultiRangeDeletion'](_0x1d0510,_0x3fc01a);if(_0x55fd25&&('tableRow'==_0x55fd25['subType']||'tableColumn'==_0x55fd25['subType'])){const _0xfee2da=this['_getSuggestionCoords'](_0x55fd25);for(const _0x54734f of _0x1d1a76){const _0x415872=_0x3775c1['createRangeOn'](_0x54734f),_0x248ecd=_0x248d7d['getCellLocation'](_0x54734f),_0x2ca234=_0x54734f['getAttribute'](_0x2db53b)-0x1,_0x1e6e37=_0xfee2da[_0x3711ae],_0x40fece=_0xfee2da[_0xd92beb];_0x1e6e37<=_0x248ecd[_0x1a4862]&&_0x248ecd[_0x1a4862]+_0x2ca234<=_0x40fece&&_0x55fd25['addRange'](_0x415872);}}});});}function _0x5d8160(_0x5b7dad){const _0x39b889=Array['from'](_0x3b4a27['getRanges']())['map'](_0x2fad5c=>_0x14dd4f['fromRange'](_0x2fad5c));_0x42d3c6['model']['change'](_0x59948e=>{const _0x331c38=_0x59948e['batch'];_0x5b7dad=_0x5b7dad['filter'](_0x305804=>'$graveyard'!=_0x305804['root']['rootName']),_0x59948e['setSelection'](_0x5b7dad),_0x42d3c6['commands']['get']('removeTableRow')['refresh'](),_0x42d3c6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x42d3c6['model']['enqueueChange'](()=>{_0x42d3c6['model']['enqueueChange'](_0x331c38,_0x4bf3bf=>{const _0x72fe8a=_0x39b889['filter'](_0x1e5fbd=>'$graveyard'!=_0x1e5fbd['root']['rootName']);_0x72fe8a['length']>0x0&&_0x4bf3bf['setSelection'](_0x72fe8a);for(const _0x5ba268 of _0x39b889)_0x5ba268['detach']();});});});}function _0x53f1d6(_0x8928da){_0x42d3c6['model']['change'](_0x35a05b=>{const _0x151e87=Array['from'](_0x3b4a27['getRanges']())['map'](_0x883b8b=>_0x14dd4f['fromRange'](_0x883b8b)),_0x2d0121=[];for(const _0x324797 of _0x8928da)for(const _0x3406c2 of _0x324797['getItems']({'shallow':!0x0}))_0x2d0121['push'](_0x3406c2);for(const _0x1747ab of _0x2d0121)'$graveyard'!=_0x1747ab['root']['rootName']&&(_0x35a05b['setSelection'](_0x35a05b['createPositionAt'](_0x1747ab,0x0)),_0x42d3c6['commands']['get']('removeTableColumn')['refresh'](),_0x42d3c6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x398988=_0x151e87['filter'](_0x1fd560=>'$graveyard'!=_0x1fd560['root']['rootName']);_0x398988['length']>0x0&&_0x35a05b['setSelection'](_0x398988);for(const _0x48499c of _0x151e87)_0x48499c['detach']();});}function _0x44d2d4(_0x41b755,_0x38aa1c){return _0x38aa1c['every'](_0x5a6d91=>_0x41b755['some'](_0x367453=>_0x367453['end']['isEqual'](_0x5a6d91['start'])||_0x5a6d91['end']['isEqual'](_0x367453['start'])));}function _0x5d094a(_0x17a2e0,_0x1ca951){return!_0x17a2e0['some'](_0x1b7342=>_0x1ca951['some'](_0x1d21dd=>_0x1b7342['isIntersecting'](_0x1d21dd)))&&_0x17a2e0['some'](_0x403cef=>_0x1ca951['some'](_0x38e81c=>_0x403cef['end']['isTouching'](_0x38e81c['start'])));}_0x42d3c6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b23ef,_0x59d475,_0xab5394)=>{if(!_0xab5394['options']['showSuggestionHighlights'])return;const _0x20e810=_0x59d475['item'];if(!_0x20e810)return;const _0x5218a1=_0xab5394['mapper']['toViewElement'](_0x20e810);function _0x2b6460(_0x390052){return Array['isArray'](_0x390052)?_0x390052:[_0x390052];}_0x5218a1&&'tableCell'===_0x20e810['name']&&_0xb393f7(_0x5218a1,_0xab5394['writer'],(_0x5e65e4,_0x38bbff,_0x5425e7)=>_0x5425e7['addClass'](_0x2b6460(_0x38bbff['classes']),_0x5e65e4),(_0x3d7725,_0xc16e6,_0x4c2c3b)=>_0x4c2c3b['removeClass'](_0x2b6460(_0xc16e6['classes']),_0x3d7725));},{'priority':'highest'}),_0x1114ab['descriptionFactory']['registerDescriptionCallback'](_0x3e246f=>{if('insertion'!=_0x3e246f['type']&&'deletion'!=_0x3e246f['type'])return;const _0x461d2f=_0x3e246f['getContainedElement']();if(null!=_0x461d2f&&_0x461d2f['is']('element','table')){if('insertion'==_0x3e246f['type']){const _0x4cdd73=_0x3e246f['getItems']()['filter'](_0x48290c=>_0x48290c['is']('$textProxy'))['map'](_0x35d1d7=>_0x35d1d7['data']);if(_0x4cdd73['length'])return{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cdd73['join']('\x20')+'\x22'))};}if('deletion'==_0x3e246f['type']){const _0x51a776=_0x3e246f['getItems']()['filter'](_0x390fbb=>_0x390fbb['is']('$textProxy'))['map'](_0x57b3bb=>_0x57b3bb['data']);if(_0x51a776['length'])return{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51a776['join']('\x20')+'\x22'))};}}}),_0x1114ab['descriptionFactory']['registerDescriptionCallback'](_0x2140e3=>{if('tableRow'==_0x2140e3['subType']){const _0x4c228c=_0x2140e3['getItems']()['filter'](_0x5eacbd=>_0x5eacbd['is']('$textProxy'))['map'](_0x24e65b=>_0x24e65b['data']),_0x37f8f1=this['_getSuggestionCoords'](_0x2140e3),_0x48f000=_0x37f8f1['maxRow']-_0x37f8f1['minRow']+0x1;if('insertion'==_0x2140e3['type'])return _0x4c228c['length']?{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48f000,'\x22'+_0x4c228c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW',_0x48f000))};if('deletion'==_0x2140e3['type'])return _0x4c228c['length']?{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48f000,'\x22'+_0x4c228c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_ROW',_0x48f000))};}if('tableColumn'==_0x2140e3['subType']){const _0x42b803=_0x2140e3['getItems']()['filter'](_0x40b5e1=>_0x40b5e1['is']('$textProxy'))['map'](_0x175911=>_0x175911['data']),_0x5e232c=this['_getSuggestionCoords'](_0x2140e3),_0x2dd508=_0x5e232c['maxColumn']-_0x5e232c['minColumn']+0x1;if('insertion'==_0x2140e3['type'])return _0x42b803['length']?{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dd508,'\x22'+_0x42b803['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1901f8,'*Insert:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN',_0x2dd508))};if('deletion'==_0x2140e3['type'])return _0x42b803['length']?{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2dd508,'\x22'+_0x42b803['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1901f8,'*Remove:*\x20%0',o(_0x1901f8,'ELEMENT_TABLE_COLUMN',_0x2dd508))};}}),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d8160),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d8160),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53f1d6),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53f1d6),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x44d2d4),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x44d2d4),_0x1114ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d094a),_0x1114ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d094a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32561e=this['editor'],_0x44dea2=_0x32561e['model']['document']['selection'];return(_0x7da9d5,_0x5d288b)=>{_0x32561e['model']['change'](_0x317807=>{const {commandName:_0x21ee55,commandParams:_0x11fe45}=_0x5d288b;let _0x4288bd=_0x7da9d5[0x0]['end']['nodeBefore'];_0x11fe45&&_0x11fe45[0x0]&&!0x1===_0x11fe45[0x0]['forceValue']&&(_0x4288bd=_0x7da9d5[0x0]['start']['nodeAfter']);const _0x57c04f=_0x317807['createRangeIn'](_0x4288bd);if('$graveyard'==_0x57c04f['root']['rootName'])return;const _0x89d1e5=Array['from'](_0x44dea2['getRanges']())['map'](_0x38ac82=>_0x14dd4f['fromRange'](_0x38ac82));_0x317807['setSelection'](_0x57c04f),_0x32561e['commands']['get'](_0x21ee55)['refresh'](),_0x11fe45['push']({'forceDefaultExecution':!0x0}),_0x32561e['execute'](_0x21ee55,..._0x11fe45);const _0xaef996=_0x89d1e5['filter'](_0x47a93=>'$graveyard'!=_0x47a93['root']['rootName']);_0xaef996['length']>0x0&&_0x317807['setSelection'](_0xaef996);for(const _0x1dbd77 of _0x89d1e5)_0x1dbd77['detach']();});};}['_getCoordsForCells'](_0x2cabe8){const _0x5a39cf=this['editor']['plugins']['get']('TableUtils');let _0x62db3=Number['MAX_SAFE_INTEGER'],_0xf4a5fc=Number['MIN_SAFE_INTEGER'],_0x1b731f=Number['MAX_SAFE_INTEGER'],_0x3391c6=Number['MIN_SAFE_INTEGER'];for(const _0x11599d of _0x2cabe8){if('$graveyard'==_0x11599d['root']['rootName'])continue;const {row:_0x15340a,column:_0x5906d8}=_0x5a39cf['getCellLocation'](_0x11599d),_0x423765=_0x11599d['hasAttribute']('rowspan')?_0x11599d['getAttribute']('rowspan')-0x1:0x0,_0x476e1a=_0x11599d['hasAttribute']('colspan')?_0x11599d['getAttribute']('colspan')-0x1:0x0;_0x62db3=_0x15340a<_0x62db3?_0x15340a:_0x62db3,_0xf4a5fc=_0x15340a+_0x423765>_0xf4a5fc?_0x15340a+_0x423765:_0xf4a5fc,_0x1b731f=_0x5906d8<_0x1b731f?_0x5906d8:_0x1b731f,_0x3391c6=_0x5906d8+_0x476e1a>_0x3391c6?_0x5906d8+_0x476e1a:_0x3391c6;}return{'minRow':_0x62db3,'maxRow':_0xf4a5fc,'minColumn':_0x1b731f,'maxColumn':_0x3391c6};}['_setupColumnsRowsFixing'](){const _0x5e1427=this['editor'],_0x374d2c=_0x5e1427['plugins']['get']('TrackChangesEditing'),_0x4dd91b=_0x5e1427['plugins']['get']('TableUtils');_0x5e1427['model']['document']['on']('change:data',()=>{const _0x3d4024=Array['from'](_0x5e1427['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x284566,data:_0x559c2a}of _0x3d4024){const {group:_0x42df26,id:_0x3c4ead,subType:_0xd74c3a}=_0x374d2c['_splitMarkerName'](_0x284566);if('suggestion'!=_0x42df26)continue;if(null!=_0x559c2a['oldRange'])continue;const _0x1987fe=_0x374d2c['getSuggestion'](_0x3c4ead);this['_tablePostFixingSubtypes']['includes'](_0xd74c3a)&&this['_tableSuggestions']['add'](_0x1987fe);}},{'priority':'low'});const _0x56b2c7=(_0x100db3,_0x423ccf)=>{let _0x3514f6=!0x1;const _0x58110b=_0x423ccf['createRangeOn'](_0x100db3),_0xc1d9a6=_0x100db3['findAncestor']('table'),_0x692e60=_0x4dd91b['getCellLocation'](_0x100db3);for(const _0x161fa1 of this['_tableSuggestions']){const _0x52fa75=_0x161fa1['subType'],_0xd0ae43=_0x52fa75['startsWith']('tablePaste'),_0x310f98=_0x52fa75['substr'](_0xd0ae43?0xa:0x5),_0x55649e=_0x310f98['toLowerCase'](),_0x2b1abc=_0x55649e['substr'](0x0,0x3)+'span',_0x22b1a8='min'+_0x310f98,_0xdc794b='max'+_0x310f98;if(!_0x161fa1['isInContent'])continue;if(_0xc1d9a6!=_0x161fa1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x161fa1['isIntersectingWithRange'](_0x58110b))continue;const _0x3e641c=_0x100db3['hasAttribute'](_0x2b1abc)?_0x100db3['getAttribute'](_0x2b1abc)-0x1:0x0,_0x1712f1=this['_getSuggestionCoords'](_0x161fa1),_0x3b7032=_0x1712f1[_0x22b1a8],_0x55cd64=_0x1712f1[_0xdc794b];_0x3b7032<=_0x692e60[_0x55649e]&&_0x692e60[_0x55649e]+_0x3e641c<=_0x55cd64&&(_0x161fa1['addRange'](_0x58110b),_0x3514f6=!0x0);}return _0x3514f6;};_0x5e1427['model']['document']['registerPostFixer'](_0x120cb9=>{let _0x57d35e=!0x1;for(const _0x486d0e of _0x5e1427['model']['document']['differ']['getChanges']())if('insert'==_0x486d0e['type']){if('tableRow'==_0x486d0e['name']){for(const _0x2431a7 of _0x486d0e['position']['nodeAfter']['getChildren']())_0x57d35e=_0x57d35e||_0x56b2c7(_0x2431a7,_0x120cb9);}else'tableCell'==_0x486d0e['name']&&(_0x57d35e=_0x57d35e||_0x56b2c7(_0x486d0e['position']['nodeAfter'],_0x120cb9));}return _0x57d35e;});}['_getSuggestionCoords'](_0x1b4013){return this['_getCoordsForCells'](_0x1b4013['getRanges']()['map'](_0x53fe31=>_0x53fe31['start']['nodeAfter']));}}function Ne(_0x2dfc57){return Array['from'](new Set(_0x2dfc57)['values']());}class _t extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x4c2e46=this['editor'],_0x342ded=_0x4c2e46['model']['document']['selection'],_0x3cc898=_0x4c2e46['locale'];if(!_0x4c2e46['plugins']['has']('TableEditing'))return;const _0x204651=_0x4c2e46['plugins']['get']('TrackChangesEditing'),_0x479093=_0x4c2e46['plugins']['get']('TableUtils'),_0x39ee4b=_0x4c2e46['plugins']['get'](vt);_0x39ee4b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x204651['enableCommand']('mergeTableCells',()=>{const _0x30ea39=_0x479093['getSelectionAffectedTableCells'](_0x4c2e46['model']['document']['selection']);_0x4c2e46['model']['change'](()=>{_0x204651['markMultiRangeBlockFormat'](_0x30ea39,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c2e46['commands']['get']('mergeTableCells')['on']('execute',(_0x5aba41,_0x22159c)=>{_0x4c2e46['commands']['get']('trackChanges')['value']&&(_0x22159c['length']>0x0&&_0x22159c[_0x22159c['length']-0x1]&&_0x22159c[_0x22159c['length']-0x1]['forceDefaultExecution']||_0x204651['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5aba41['stop']());},{'priority':'highest'});for(const _0x1d9ddf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25914d=_0x4c2e46['commands']['get'](_0x1d9ddf);_0x204651['enableCommand'](_0x1d9ddf,()=>{const _0x25efe1=_0x4c2e46['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f60aa=>_0x3f60aa['is']('element','tableCell')),_0x4957e9=_0x25914d['value'];_0x4c2e46['model']['change'](()=>{_0x204651['markMultiRangeBlockFormat']([_0x25efe1,_0x4957e9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x10aa02 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x192441=_0x4c2e46['commands']['get'](_0x10aa02);_0x204651['enableCommand'](_0x10aa02,()=>{const _0x324f38=_0x479093['getSelectionAffectedTableCells'](_0x4c2e46['model']['document']['selection'])[0x0],_0x597e44=_0x324f38['findAncestor']('table'),{column:_0x2f349e,row:_0x4beb77}=_0x479093['getCellLocation'](_0x324f38);let _0x4576eb=[];if('horizontally'==_0x192441['direction']){const _0x1bb1c0=_0x479093['createTableWalker'](_0x597e44,{'startRow':_0x4beb77,'endRow':_0x4beb77,'includeAllSlots':!0x0});_0x4576eb=Array['from'](_0x1bb1c0)['map'](_0x15d700=>_0x15d700['cell']);}else{const _0x59e742=_0x479093['createTableWalker'](_0x597e44,{'column':_0x2f349e,'includeAllSlots':!0x0});_0x4576eb=Array['from'](_0x59e742)['map'](_0x39f6a7=>_0x39f6a7['cell']);}_0x4c2e46['model']['change'](_0x4ad30f=>{_0x204651['markBlockFormat'](_0x4ad30f['createRangeOn'](_0x324f38),{'commandName':_0x10aa02,'commandParams':[]},_0x4576eb,_0x10aa02);});});}_0x204651['descriptionFactory']['registerDescriptionCallback'](_0x21ccda=>{if('formatBlock'!=_0x21ccda['type']&&'formatInline'!=_0x21ccda['type'])return;const {data:_0x3b76f7}=_0x21ccda;return _0x3b76f7&&'mergeTableCells'==_0x3b76f7['commandName']?{'type':'format','content':o(_0x3cc898,'*Merge\x20cells*')}:void 0x0;}),_0x204651['descriptionFactory']['registerDescriptionCallback'](_0x4660c6=>{if('formatBlock'!=_0x4660c6['type']&&'formatInline'!=_0x4660c6['type'])return;const {data:_0x3c4db4}=_0x4660c6;return _0x3c4db4?'splitTableCellVertically'==_0x3c4db4['commandName']?{'type':'format','content':o(_0x3cc898,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c4db4['commandName']?{'type':'format','content':o(_0x3cc898,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x331ea7=_0x39ee4b['_acceptFormatSuggestionCallbackFactory']();for(const _0x54b9ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54b9ff,'accept',_0x331ea7);for(const _0x738dbe of['splitTableCellVertically','splitTableCellHorizontally'])_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x738dbe,'accept',_0x331ea7);_0x204651['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ab738=>{_0x4c2e46['model']['change'](_0x312d75=>{const _0xfaef2=Array['from'](_0x342ded['getRanges']())['map'](_0x17431c=>_0x14dd4f['fromRange'](_0x17431c));_0x312d75['setSelection'](_0x4ab738),_0x4c2e46['commands']['get']('mergeTableCells')['refresh'](),_0x4c2e46['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b6538=_0xfaef2['filter'](_0x4bae36=>'$graveyard'!=_0x4bae36['root']['rootName']);_0x3b6538['length']>0x0&&_0x312d75['setSelection'](_0x3b6538);for(const _0x271e73 of _0xfaef2)_0x271e73['detach']();});});for(const _0x7d08ff of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x504985=_0x4c2e46['commands']['get'](_0x7d08ff);_0x504985['on']('set:isEnabled',(_0x19488e,_0x59aa70,_0x4da146)=>{if(_0x4da146){const _0x2dbe27=_0x4c2e46['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x570fc1=>_0x570fc1['is']('element','tableCell'));this['_areMergableCells'](_0x504985['value'],_0x2dbe27)||(_0x19488e['return']=!0x1,_0x19488e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x55b018=this['editor']['commands']['get']('mergeTableCells'),_0x3a3541=this['editor']['plugins']['get']('TableUtils');if(!_0x55b018['isEnabled'])return!0x1;const _0x296d07=_0x3a3541['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ab8ed of _0x296d07)for(const _0x2ca5ce of _0x296d07)if(_0x2ab8ed!=_0x2ca5ce&&!this['_areMergableCells'](_0x2ab8ed,_0x2ca5ce))return!0x1;return!0x0;}['_areMergableCells'](_0x502e42,_0x113dcd){const _0x15da75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28c55a=this['editor']['model']['createRangeOn'](_0x502e42),_0x34097f=this['editor']['model']['createRangeOn'](_0x113dcd),_0x33e724=new Set(),_0x3ed867=new Set();for(const _0x892931 of _0x15da75['getSuggestions']())if(('insertion'==_0x892931['type']||'deletion'==_0x892931['type']||'mergeTableCells'==_0x892931['subType'])&&_0x892931['isInContent']){for(const _0x4a96d5 of _0x892931['getRanges']())_0x4a96d5['containsRange'](_0x28c55a,!0x0)&&_0x33e724['add'](_0x892931['type']+':'+_0x892931['author']['id']),_0x4a96d5['containsRange'](_0x34097f,!0x0)&&_0x3ed867['add'](_0x892931['type']+':'+_0x892931['author']['id']);}if(_0x33e724['size']!=_0x3ed867['size'])return!0x1;for(const _0x1f6fbb of _0x33e724)if(!_0x3ed867['has'](_0x1f6fbb))return!0x1;return!0x0;}}class Ct extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x1bf4da=this['editor'];if(!_0x1bf4da['plugins']['has']('TableEditing'))return;const _0x1bf07e=_0x1bf4da['locale'],_0x16a7e8=_0x1bf4da['plugins']['get']('TrackChangesEditing');_0x16a7e8['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x16a7e8['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x16a7e8['registerBlockAttribute']('headingRows'),_0x16a7e8['registerBlockAttribute']('headingColumns'),_0x16a7e8['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1bf07e,'FORMAT_HEADER_ROW')),_0x16a7e8['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1bf07e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c902=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e8bf=this['editor']['plugins']['get']('TableUtils'),_0x383208=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x143e65({showActiveMarker:_0x2d825b=!0x0,setDataAttribute:_0x4174b9=!0x0}={}){return(_0x554e0d,_0xf101b8,_0x490734)=>{const {type:_0x1b82a9,id:_0x53285e}=_0x43c902['_splitMarkerName'](_0xf101b8['markerName']),_0x1c892c=_0x43c902['getSuggestion'](_0x53285e),_0x1ed6de=_0x1c892c['data'];if('formatBlock'!=_0x1c892c['type']||!_0x1ed6de||'setTableColumnHeader'!=_0x1ed6de['commandName'])return;if(_0xf101b8['item'])return void _0x554e0d['stop']();if(!_0x490734['consumable']['consume'](_0xf101b8['markerRange'],_0x554e0d['name']))return;const _0x2b63fe=_0xf101b8['markerRange']['start']['nodeAfter'],_0x517ee5=_0xf101b8['markerRange']['end']['nodeBefore'],_0x1f3a30=_0x2b63fe['parent']['parent'],{column:_0x21f50b}=_0x14e8bf['getCellLocation'](_0x2b63fe),{column:_0x56f9a2}=_0x14e8bf['getCellLocation'](_0x517ee5);for(let _0xa2e835=_0x21f50b;_0xa2e835<=_0x56f9a2;_0xa2e835++){const _0x46fd70=_0x14e8bf['createTableWalker'](_0x1f3a30,{'column':_0xa2e835,'includeAllSlots':!0x1});for(const _0xcc7894 of _0x46fd70){const _0x29fc31=_0xcc7894['cell'],_0x46deb8=_0x490734['mapper']['toViewElement'](_0x29fc31);_0x490734['writer']['addClass']('ck-suggestion-marker-'+_0x1b82a9,_0x46deb8),_0x4174b9&&_0x490734['writer']['setAttribute']('data-suggestion',_0x53285e,_0x46deb8),_0x490734['mapper']['bindElementToMarker'](_0x46deb8,_0xf101b8['markerName']),_0x2d825b&&(_0x43c902['activeMarkers']['includes'](_0xf101b8['markerName'])?_0x490734['writer']['addClass']('ck-suggestion-marker--active',_0x46deb8):_0x490734['writer']['removeClass']('ck-suggestion-marker--active',_0x46deb8));}}};}_0x43c902['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x383208),_0x43c902['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x383208),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x143e65(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x404ce8,_0x247994,_0x553596)=>{_0x553596['options']['showSuggestionHighlights']&&_0x143e65({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x404ce8,_0x247994,_0x553596);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1155e4,_0x2c9619,_0xd61e85)=>{const {type:_0x47b7fb,id:_0x12e194}=_0x43c902['_splitMarkerName'](_0x2c9619['markerName']),_0x52c09c=_0x43c902['getSuggestion'](_0x12e194),_0x2fa6d6=_0x52c09c['data'];if('formatBlock'!=_0x52c09c['type']||!_0x2fa6d6||'setTableColumnHeader'!=_0x2fa6d6['commandName'])return;const _0x416abe=_0xd61e85['mapper']['markerNameToElements'](_0x2c9619['markerName']);if(_0x416abe){for(const _0x4cf179 of _0x416abe)_0xd61e85['writer']['removeClass']('ck-suggestion-marker-'+_0x47b7fb,_0x4cf179),_0xd61e85['writer']['removeClass']('ck-suggestion-marker--active',_0x4cf179),_0xd61e85['writer']['removeAttribute']('data-suggestion',_0x4cf179),_0xd61e85['mapper']['unbindElementFromMarkerName'](_0x4cf179,_0x2c9619['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf4da02=this['editor'],_0x1d66a2=_0xf4da02['locale'];function _0x10918c(_0x2c5784){return{'type':'format','content':o(_0x1d66a2,'*Format:*\x20%0',_0x2c5784)};}_0xf4da02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27d485=>{if('formatBlock'!=_0x27d485['type'])return;const {data:_0xe75452}=_0x27d485;if(_0xe75452){if('setTableRowHeader'==_0xe75452['commandName']){const _0xf2991=_0xe75452['commandParams'][0x0]['forceValue'];return _0x10918c(o(_0x1d66a2,_0xf2991?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe75452['commandName']){const _0x286c4=_0xe75452['commandParams'][0x0]['forceValue'];return _0x10918c(o(_0x1d66a2,_0x286c4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xe7b38a=>[_0xe7b38a,null]));class Nt extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x531162=this['editor'];if(!_0x531162['plugins']['has']('TableClipboard'))return;const _0xda7204=_0x531162['plugins']['get']('TrackChangesEditing'),_0x3de8e0=_0x531162['plugins']['get']('TableUtils'),_0x2b5d87=_0x531162['plugins']['get'](vt),_0x49ddf0=_0x531162['plugins']['get']('TableClipboard');_0x2b5d87['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x531162['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x531162['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2c7df3=null;_0x531162['model']['on']('insertContent',(_0x212f88,_0x1bd73d)=>{const [_0x48c311,_0x53eb67]=_0x1bd73d,_0x3d5b57=_0x1bd73d[_0x1bd73d['length']-0x1];_0x3d5b57&&_0x3d5b57['forceDefaultExecution']||_0xda7204['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3028e1,_0x51323f,_0x50e39e,_0xd46d70,_0x47d821){if(_0x51323f&&!_0x51323f['is']('documentSelection'))return!0x1;const _0x29c728=_0x47d821['getTableIfOnlyTableInContent'](_0x3028e1,_0x50e39e);if(!_0x29c728||!Ue(_0x29c728,void 0x0,_0xd46d70))return!0x1;const _0x18ece2=_0xd46d70['getSelectionAffectedTableCells'](_0x50e39e['document']['selection']);if(!_0x18ece2['length'])return!0x1;const _0x480dc1=_0x18ece2[0x0]['findAncestor']('table'),_0x3731d8=_0xd46d70['getRowIndexes'](_0x18ece2),_0x393c05=_0xd46d70['getColumnIndexes'](_0x18ece2),_0x381979={'startRow':_0x3731d8['first'],'endRow':_0x3731d8['last'],'startColumn':_0x393c05['first'],'endColumn':_0x393c05['last']};return 0x1==_0x18ece2['length']&&(_0x381979['endRow']+=_0xd46d70['getRows'](_0x29c728)-0x1,_0x381979['endColumn']+=_0xd46d70['getColumns'](_0x29c728)-0x1),Ue(_0x480dc1,_0x381979,_0xd46d70);}(_0x48c311,_0x53eb67,_0x531162['model'],_0x3de8e0,_0x49ddf0)&&(_0x212f88['stop'](),_0x2c7df3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x531162['model']['change'](()=>{_0x531162['model']['insertContent'](_0x1bd73d[0x0],_0x1bd73d[0x1],_0x1bd73d[0x2],{'forceDefaultExecution':!0x0});const _0x1c2145=_0x12e0b6(),{rowInsertionRanges:_0x3d2128,columnInsertionRanges:_0x5a6afc,insertionRanges:_0x1000ab,deletionRanges:_0x5e015a,cells:_0x49fb12}=_0x2c7df3;_0x3d2128['length']&&_0xda7204['markMultiRangeInsertion'](_0x3d2128,'tablePasteRow',{'tablePasteChainId':_0x1c2145}),_0x5a6afc['length']&&_0xda7204['markMultiRangeInsertion'](_0x5a6afc,'tablePasteColumn',{'tablePasteChainId':_0x1c2145}),_0x1000ab['length']&&(_0xda7204['markMultiRangeInsertion'](_0x1000ab,'tablePaste',{'tablePasteChainId':_0x1c2145,'skipNestingCheck':!0x0}),_0x1000ab['forEach'](_0x133c72=>_0x133c72['detach']?.())),_0x5e015a['length']&&(_0xda7204['markMultiRangeDeletion'](_0x5e015a,'tablePaste',{'tablePasteChainId':_0x1c2145,'skipNestingCheck':!0x0}),_0x5e015a['forEach'](_0x4bb058=>_0x4bb058['detach']?.()));const _0x28428e=_0xda7204['markMultiRangeBlockFormat'](_0x49fb12['map'](({element:_0x739594})=>_0x739594),{'formatGroupId':_0x12e0b6()},[],'tablePasteCell',{'tablePasteChainId':_0x1c2145});if(_0x28428e){const _0x547c63=_0x28428e['getMarkers'](),_0x522acb=[];for(const {element:_0x19b7d5,attributes:_0x4808af}of _0x49fb12){if(!_0x4808af)continue;const _0x2263d2=_0x531162['model']['createRangeOn'](_0x19b7d5),_0x239517=_0x547c63['find'](_0x57019a=>_0x57019a['getRange']()['isEqual'](_0x2263d2));_0x239517&&_0x522acb['push']([_0x239517['name'],_0x4808af]);}_0x522acb['length']&&_0x28428e['setAttribute']('markerAttributes',Object['fromEntries'](_0x522acb));}_0x2c7df3=null;}));},{'priority':_0x3e5933['high']+0xa}),_0x531162['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3edbc0,_0x189dda)=>{const [_0xa4ba98,_0x4db285,,_0x4e3e22]=_0x189dda;if(!_0x2c7df3)return;_0x3edbc0['stop']();const _0x3a2ca1=_0xa4ba98['cell'],_0x59a097=_0x4db285,_0x22e89=Oe(_0x3a2ca1),_0x471b4e=Oe(_0x59a097);_0x3edbc0['return']=_0x3a2ca1;let _0x17fc54=null,_0xb9e8fd=null;if(_0x471b4e||_0x22e89){if(_0x22e89&&!_0x471b4e){_0x4e3e22['remove'](_0x3a2ca1['getChild'](0x0));for(const _0x5b1b48 of Array['from'](_0x59a097['getChildren']()))_0x4e3e22['insert'](_0x5b1b48,_0x3a2ca1,'end');const _0x51aa27=_0x2c7df3['rowInsertionIndexes']['includes'](_0xa4ba98['row']),_0x3b1eb0=_0x2c7df3['columnInsertionIndexes']['includes'](_0xa4ba98['column']);_0x51aa27||_0x3b1eb0||(_0x17fc54=_0x14dd4f['fromRange'](_0x4e3e22['createRangeIn'](_0x3a2ca1)));}else _0x471b4e&&!_0x22e89&&(_0xb9e8fd=_0x4e3e22['createRangeIn'](_0x3a2ca1));}else{const _0x50545d=_0x4e3e22['createElement']('tableCellSuggestion'),_0x2af8aa=_0x4e3e22['createElement']('tableCellSuggestion');_0x4e3e22['wrap'](_0x4e3e22['createRangeIn'](_0x3a2ca1),_0x2af8aa),_0x4e3e22['insert'](_0x50545d,_0x3a2ca1,0x0);for(const _0x1bba70 of Array['from'](_0x59a097['getChildren']()))_0x4e3e22['insert'](_0x1bba70,_0x50545d,'end');_0x17fc54=_0x14dd4f['fromRange'](_0x4e3e22['createRangeOn'](_0x50545d)),_0xb9e8fd=_0x14dd4f['fromRange'](_0x4e3e22['createRangeOn'](_0x2af8aa));}const _0x10c4fb=Array['from'](_0x59a097['getAttributes']())['filter'](([_0x29aa65])=>Be['includes'](_0x29aa65));_0x2c7df3['cells']['push']({'element':_0x3a2ca1,'attributes':_0x10c4fb['length']?Object['fromEntries'](_0x10c4fb):null}),_0x17fc54&&_0x2c7df3['insertionRanges']['push'](_0x17fc54),_0xb9e8fd&&_0x2c7df3['deletionRanges']['push'](_0xb9e8fd);},{'priority':'high'}),_0x3de8e0['on']('insertColumns',(_0x4786c7,_0x31b4e1)=>{const [_0x10e43c,_0x6b99cd={}]=_0x31b4e1;if(!_0x2c7df3)return;const _0xa04ae6=_0x6b99cd['at']||0x0,_0x4317c8=_0x6b99cd['columns']||0x1;_0x2c7df3['columnInsertionIndexes']=new Array(_0x4317c8)['fill'](_0xa04ae6)['map']((_0x94165,_0x3564b2)=>_0x94165+_0x3564b2);for(const {cell:_0x17939f}of _0x3de8e0['createTableWalker'](_0x10e43c,{'startColumn':_0xa04ae6,'endColumn':_0xa04ae6+_0x4317c8-0x1}))_0x2c7df3['columnInsertionRanges']['push'](_0x531162['model']['createRangeOn'](_0x17939f));},{'priority':'low'}),_0x3de8e0['on']('insertRows',(_0x250a08,_0x4f6784)=>{const [_0x30c1e5,_0x37c351={}]=_0x4f6784;if(!_0x2c7df3)return;const _0x32588d=_0x37c351['at']||0x0,_0x35959c=_0x37c351['rows']||0x1;_0x2c7df3['rowInsertionIndexes']=new Array(_0x35959c)['fill'](_0x32588d)['map']((_0x1ca45f,_0x25ff4e)=>_0x1ca45f+_0x25ff4e);for(const {cell:_0x1c7c16}of _0x3de8e0['createTableWalker'](_0x30c1e5,{'startRow':_0x32588d,'endRow':_0x32588d+_0x35959c-0x1}))_0x2c7df3['rowInsertionRanges']['push'](_0x531162['model']['createRangeOn'](_0x1c7c16));},{'priority':'low'}),_0xda7204['descriptionFactory']['registerDescriptionCallback'](_0x4318e6=>{if(_0x4318e6['subType']&&_0x4318e6['subType']['startsWith']('tablePaste'))return _0x4318e6['previous']?{}:{'type':'insertion','content':o(_0x531162['locale'],'*Replace\x20table\x20cells*')};});const _0x3981ce=()=>!0x1;for(const _0x24a53c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion',_0x24a53c,'join',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('deletion',_0x24a53c,'join',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24a53c,'join',_0x3981ce);_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3981ce),_0xda7204['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11aed4,_0xc7f8b7,_0x384b5b)=>{const _0x30ba53=_0x11aed4['map'](_0x6b8387=>_0x6b8387['getContainedElement']())['filter'](_0x2ec071=>_0x2ec071),_0x29b14e=new Map(_0x30ba53['map'](_0x317db9=>[_0x317db9,null]));if(_0x2c7df3){for(const {element:_0x1c819c,attributes:_0x2348cc}of _0x2c7df3['cells'])_0x2348cc&&_0x29b14e['set'](_0x1c819c,_0x2348cc);}else{if(_0x384b5b&&_0x384b5b['markerAttributes'])for(const [_0x14794f,_0x381400]of Object['entries'](_0x384b5b['markerAttributes'])){const _0x2a8e08=_0x531162['model']['markers']['get'](_0x14794f),_0x107d39=_0x2a8e08?_0x2a8e08['getRange']()['getContainedElement']():null;_0x107d39&&_0x29b14e['set'](_0x107d39,_0x381400);}}_0x531162['model']['change'](_0x5971ea=>{for(const [_0x332de2,_0x4e7c8b]of _0x29b14e)_0x5971ea['setAttributes']({...xe,..._0x4e7c8b},_0x332de2);});});const _0x40ccdf=(_0x1d4500,_0x5919c9)=>{_0xda7204['_suggestionFactory']['registerCustomCallback'](_0x1d4500,'tablePaste',_0x5919c9,(_0x45b137,_0x249862,_0x17ee38)=>{_0x531162['model']['change'](_0x1a51ef=>{const _0x558ba5=[];for(const _0x37a387 of _0x45b137){const _0x3cf5cf=_0x37a387['start']['nodeAfter'];_0x3cf5cf['is']('element','tableCellSuggestion')&&_0x558ba5['push'](_0x3cf5cf);}_0xda7204['_suggestionFactory']['getSuggestionCallback'](_0x1d4500,null,_0x5919c9)(_0x45b137,_0x249862,_0x17ee38);for(const _0x3499ad of _0x558ba5)'$graveyard'!=_0x3499ad['root']['rootName']&&_0x1a51ef['unwrap'](_0x3499ad);});});};_0x40ccdf('insertion','accept'),_0x40ccdf('insertion','discard'),_0x40ccdf('deletion','accept'),_0x40ccdf('deletion','discard'),_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4658b2=>{const _0x405d83=_0x4658b2['map'](_0x4cc3c1=>_0x4cc3c1['getContainedElement']()),_0x5b09a2=_0x405d83[0x0]['findAncestor']('table'),{minRow:_0x1094e3,maxRow:_0x27825d}=_0x2b5d87['_getCoordsForCells'](_0x405d83);_0x3de8e0['removeRows'](_0x5b09a2,{'at':_0x1094e3,'rows':_0x27825d-_0x1094e3+0x1});}),_0xda7204['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x48bf3f=>{const _0xa85608=_0x48bf3f['map'](_0x147a55=>_0x147a55['getContainedElement']()),_0x4d23fd=_0xa85608[0x0]['findAncestor']('table'),{minColumn:_0x113bbe,maxColumn:_0x268621}=_0x2b5d87['_getCoordsForCells'](_0xa85608);_0x3de8e0['removeColumns'](_0x4d23fd,{'at':_0x113bbe,'columns':_0x268621-_0x113bbe+0x1});});const _0x3a9edd=(_0x5d7aa1,_0x457257)=>{if(!_0x457257['subType']||!_0x457257['subType']['startsWith']('tablePaste'))return;const _0xe46420=_0x457257['attributes']['tablePasteChainId'],_0x37302c=_0xda7204['getSuggestions']()['filter'](_0x5d9b1b=>_0x5d9b1b['isInContent']&&_0x5d9b1b['attributes']&&_0x5d9b1b['attributes']['tablePasteChainId']==_0xe46420);_0x37302c['length']&&_0x457257['getAllAdjacentSuggestions']()['length']!=_0x37302c['length']&&_0x37302c['reduce']((_0x168ba6,_0x79a87b)=>(_0x168ba6['next']=_0x79a87b,_0x79a87b['previous']=_0x168ba6,_0x79a87b));};function _0x2804e9(_0xb85fcf,_0xa4f7e6=!0x0){const {id:_0x43e2cc,authorId:_0x31ec38}=_0xda7204['_splitMarkerName'](_0xb85fcf['markerName']),_0x4aae60=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2fd413=_0xda7204['activeMarkers']['includes'](_0xb85fcf['markerName']);return _0x2fd413&&_0x4aae60['push']('ck-suggestion-marker--active'),{'classes':_0x4aae60,'attributes':{'data-suggestion':_0x43e2cc,'data-author-id':_0x31ec38},'priority':_0x2fd413&&_0xa4f7e6?0xbc2:0xbb8};}_0xda7204['on']('suggestionLoaded',_0x3a9edd,{'priority':'high'}),_0xda7204['on']('suggestionUnloaded',_0x3a9edd,{'priority':'high'}),_0x531162['model']['document']['registerPostFixer'](()=>{let _0xabdc=!0x1;const _0x2ec2a6=Array['from'](_0x531162['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x473bff,data:_0x55611c}of _0x2ec2a6){const {group:_0xaa3934,type:_0x1f3824,id:_0x4dece2}=_0xda7204['_splitMarkerName'](_0x473bff);if('suggestion'!=_0xaa3934||'deletion'!=_0x1f3824||_0x55611c['oldRange'])continue;if(!_0xda7204['hasSuggestion'](_0x4dece2))continue;const _0x176645=_0xda7204['getSuggestion'](_0x4dece2)['getRanges'](),_0x5d8a58=_0x531162['plugins']['get']('Users')['me'];for(const _0x4e9919 of _0xda7204['getSuggestions']()){if(!_0x4e9919['isInContent']||_0x4e9919['author']!=_0x5d8a58)continue;if('formatBlock'!=_0x4e9919['type']||'tablePasteCell'!=_0x4e9919['subType'])continue;if(_0x4e9919['getRanges']()['every'](_0x5c3a94=>_0x176645['some'](_0x3d2be7=>_0x3d2be7['containsRange'](_0x5c3a94,!0x0)))){for(const _0x45c957 of _0x4e9919['getAllAdjacentSuggestions']())_0x45c957['isInContent']&&(_0x45c957['discard'](),_0xabdc=!0x0);}}}return _0xabdc;}),_0x531162['model']['document']['registerPostFixer'](_0x21638a=>{const _0x2f5c9b=_0x531162['commands']['get']('redo');if(!_0x2f5c9b||!_0x2f5c9b['_createdBatches']['has'](_0x21638a['batch']))return!0x1;let _0x27944f=!0x1;const _0x8fb1ad=_0x531162['plugins']['get']('Users')['me'],_0x2065f4=_0x531162['model']['document']['differ']['getChanges'](),_0x7d6c05=Array['from'](_0x531162['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4a8443,data:_0x3a2b23})=>{const {group:_0x5520a3,subType:_0x340f88,authorId:_0x556165}=_0xda7204['_splitMarkerName'](_0x4a8443);return'suggestion'==_0x5520a3&&'tablePaste'==_0x340f88&&_0x556165==_0x8fb1ad['id']&&!_0x3a2b23['oldRange'];});for(const _0x23aa65 of _0x2065f4){if('insert'!=_0x23aa65['type']||'tableCellSuggestion'!=_0x23aa65['name']||0x1!=_0x23aa65['length'])continue;const _0xce32ee=_0x21638a['createRange'](_0x23aa65['position'],_0x23aa65['position']['getShiftedBy'](0x1));if(!_0x7d6c05['find'](({data:_0x5ec11c})=>_0x5ec11c['newRange']['isEqual'](_0xce32ee))){for(const {name:_0xcf919a,data:_0x5177ce}of _0x7d6c05)if(_0xce32ee['containsRange'](_0x5177ce['newRange'])){_0x21638a['updateMarker'](_0xcf919a,{'range':_0xce32ee}),_0x27944f=!0x0;break;}}}return _0x27944f;}),_0x531162['model']['document']['registerPostFixer'](_0x52d659=>{let _0x440113=!0x1;const _0x4ecf61=_0x531162['plugins']['get']('Users')['me'],_0x4a9806=_0xda7204['getSuggestions']()['filter'](_0x311792=>_0x311792['isInContent']&&_0x311792['author']==_0x4ecf61),_0x410daf=new Set(),_0xb86be0=new Set();for(const _0x405720 of _0x4a9806)if('tablePaste'==_0x405720['subType'])for(const _0x230207 of _0x405720['getMarkers']()){const _0x37bc8f=_0x230207['getRange']()['getContainedElement']();if(_0x37bc8f){if(_0x37bc8f['is']('element','tableCellSuggestion')&&Oe(_0x37bc8f)){_0x405720['removeMarker'](_0x230207['name']),_0x410daf['add'](_0x37bc8f),_0x440113=!0x0;const _0x1b13b7=_0x37bc8f['nextSibling'],_0x4fea40=_0x37bc8f['previousSibling'],_0x23121b=_0x1b13b7&&_0x1b13b7['is']('element','tableCellSuggestion'),_0x4f6a58=_0x4fea40&&_0x4fea40['is']('element','tableCellSuggestion');_0x23121b&&!_0x410daf['has'](_0x1b13b7)&&_0xb86be0['add'](_0x1b13b7),_0x4f6a58&&!_0x410daf['has'](_0x4fea40)&&_0xb86be0['add'](_0x4fea40);}else _0x37bc8f['is']('element','paragraph')&&_0x37bc8f['isEmpty']&&(_0x405720['removeMarker'](_0x230207['name']),_0x440113=!0x0);}}else{if('tablePasteCell'==_0x405720['subType']){if(!_0x405720['attributes']||!_0x405720['attributes']['tablePasteChainId'])continue;const _0x23fc5d=_0x405720['attributes']['markerAttributes'];if(_0x23fc5d&&Object['keys'](_0x23fc5d)['length'])continue;const _0x12160c=_0x405720['attributes']['tablePasteChainId'];let _0x59582f=!0x0,_0x3d1a25=!0x0;for(const _0x2782f4 of _0x4a9806)if(_0x2782f4['subType']&&_0x2782f4['subType']['startsWith']('tablePaste')){if(!_0x2782f4['attributes']['tablePasteChainId']){_0x3d1a25=!0x1;break;}if(_0x2782f4['id']!=_0x405720['id']&&_0x2782f4['attributes']['tablePasteChainId']==_0x12160c){_0x59582f=!0x1;break;}}_0x3d1a25&&_0x59582f&&(_0x405720['removeMarkers'](),_0x440113=!0x0);}}for(const _0x55211c of _0x410daf)_0x52d659['remove'](_0x55211c);for(const _0xa4539b of _0xb86be0)_0x52d659['unwrap'](_0xa4539b);return _0x440113;}),_0x531162['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x113814=>_0x2804e9(_0x113814),'converterPriority':'high'}),_0x531162['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34262d,_0x4cea2e)=>_0x4cea2e['options']['showSuggestionHighlights']?_0x2804e9(_0x34262d,!0x1):null,'converterPriority':'high'});const _0x1c1970=_0x531162['editing']['view'];this['listenTo'](_0x1c1970['document'],'clipboardOutput',(_0xcda16b,_0x13fae8)=>{const _0x164648=[];for(const _0x932ef6 of _0x1c1970['createRangeIn'](_0x13fae8['content'])['getItems']())_0x932ef6['is']('element','suggestion-td')&&_0x164648['push'](_0x932ef6);_0x1c1970['change'](_0x20ea22=>{for(const _0x9abc45 of _0x164648)_0x20ea22['move'](_0x20ea22['createRangeIn'](_0x9abc45),_0x20ea22['createPositionBefore'](_0x9abc45)),_0x20ea22['remove'](_0x9abc45);});});}}function Oe(_0x538668){if(_0x538668['isEmpty'])return!0x0;const _0x4ae32f=_0x538668['getChild'](0x0);return _0x4ae32f['is']('element','paragraph')&&_0x4ae32f['isEmpty'];}function Ue(_0x5be4ce,_0x430e97={},_0x2e03ef){for(const {isAnchor:_0x140807,cellHeight:_0x2d05d9,cellWidth:_0x17819e}of _0x2e03ef['createTableWalker'](_0x5be4ce,{'includeAllSlots':!0x0,..._0x430e97}))if(!_0x140807||0x1!=_0x2d05d9||0x1!=_0x17819e)return!0x1;return!0x0;}class Dt extends _0x32d277{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x583347=this['editor']['plugins']['get']('TrackChangesEditing');_0x583347['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x583347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x583347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x583347['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x583347['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x583347['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e726c,_0x5aa5c7){const _0x1a1dda=this['editor']['plugins']['get']('TrackChangesEditing'),_0xacf96e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x532e2d=_0x5aa5c7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3e1efb=_0xacf96e['getColumnGroupElement'](_0x532e2d);let _0xe962d8=_0x3e1efb?_0xacf96e['getTableColumnsWidths'](_0x3e1efb):null,_0x286ee2=_0x532e2d['getAttribute']('tableWidth')||null;const _0x814777=_0x5aa5c7['tableWidth']||_0x286ee2,_0x4725e7=_0x5aa5c7['columnWidths']||_0xe962d8,_0x17cde8=this['editor']['plugins']['get']('Users')['me'];for(const _0x56532d of _0x1a1dda['getSuggestions']()){const _0x1a1b4b=_0x56532d['getContainedElement']();if('resizeTable'===_0x56532d['subType']&&_0x1a1b4b===_0x532e2d){_0x56532d['author']!==_0x17cde8&&_0x56532d['discard']();const _0x40ab32=_0x56532d['data']['commandParams'];_0x286ee2=_0x40ab32[0x0]['tableWidth'],_0xe962d8=_0x40ab32[0x0]['columnWidths'];break;}}_0x5e726c({'table':_0x532e2d,'tableWidth':_0x814777,'columnWidths':_0x4725e7}),_0x1a1dda['markBlockFormat'](_0x532e2d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x286ee2,'columnWidths':_0xe962d8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d0631){if('formatBlock'!=_0x4d0631['type']&&'formatInline'!=_0x4d0631['type'])return;const {data:_0x5047f7}=_0x4d0631;if(_0x5047f7&&'resizeTable'===_0x5047f7['formatGroupId']){const _0x28feb1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28feb1)};}}}class Mt extends _0x32d277{['afterInit'](){const _0x55e03d=this['editor'];_0x55e03d['plugins']['has']('Template')&&_0x55e03d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x32d277{['afterInit'](){const _0x51e8c7=this['editor'];if(!_0x51e8c7['commands']['get']('insertTableOfContents'))return;_0x51e8c7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a6cd8=_0x51e8c7['plugins']['get']('TrackChangesEditing'),_0x198666=_0x51e8c7['locale'];_0x3a6cd8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5279f9=>o(_0x198666,'ELEMENT_TABLE_OF_CONTENTS',_0x5279f9));}}class Bt extends _0x32d277{['afterInit'](){const _0x2e1448=this['editor'];if(!_0x2e1448['plugins']['has']('Title'))return;const _0xeae00e=_0x2e1448['plugins']['get']('TrackChangesEditing');_0xeae00e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2e1448['locale'],'ELEMENT_TITLE')),_0x2e1448['model']['document']['registerPostFixer'](_0x557878=>{let _0x48783a=!0x1;const _0x2ec03f=Array['from'](_0x2e1448['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x189bfc,data:_0x39e8b1}of _0x2ec03f){const {group:_0x1c9bb5}=_0xeae00e['_splitMarkerName'](_0x189bfc);if('suggestion'!==_0x1c9bb5||!_0x39e8b1['newRange'])continue;const _0x3848e4=_0x39e8b1['newRange'],_0x1e5976=_0x3848e4['end']['nodeBefore'];if(!_0x1e5976||!_0x1e5976['is']('element','title-content'))continue;if(!_0x3848e4['start']['isTouching'](_0x3848e4['end']))continue;const _0x8a415c=_0x2e1448['model']['schema']['getNearestSelectionRange'](_0x3848e4['end'],'forward');if(_0x8a415c&&_0x8a415c['isCollapsed']){const _0x15ac68=_0x557878['createRange'](_0x3848e4['start'],_0x8a415c['start']);_0x15ac68['isEqual'](_0x3848e4)||(_0x557878['updateMarker'](_0x189bfc,{'range':_0x15ac68}),_0x48783a=!0x0);}_0x48783a||(_0x557878['removeMarker'](_0x189bfc),_0x48783a=!0x0);}return _0x48783a;});}}class Ot extends _0x32d277{['afterInit'](){const _0x43a900=this['editor'],_0x3d9905=_0x43a900['plugins']['get']('TrackChangesEditing');_0x43a900['plugins']['has']('Uploadcare')&&(_0x3d9905['enableCommand']('uploadcare'),_0x43a900['plugins']['has']('UploadcareImageEdit')&&(_0x3d9905['enableCommand']('uploadcareImageEdit'),_0x3d9905['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d9905['registerBlockAttribute']('uploadcareImageId'),_0x3d9905['descriptionFactory']['registerDescriptionCallback'](_0x22ea06=>{if('attribute'!=_0x22ea06['type'])return;const {data:_0xa362fa}=_0x22ea06;return _0xa362fa&&'uploadcareImageId'==_0xa362fa['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x32d277{['afterInit'](){const _0x17dc17=this['editor'],_0x2251fd=_0x17dc17['plugins']['get']('TrackChangesEditing');_0x17dc17['plugins']['has']('UndoEditing')&&(_0x2251fd['enableCommand']('undo'),_0x2251fd['enableCommand']('redo'));}}class Tt extends _0x32d277{static get['requires'](){return[vt];}['afterInit'](){const _0x1d5ae8=this['editor'];if(!_0x1d5ae8['plugins']['has']('TableCaptionEditing'))return;_0x1d5ae8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x32d277{['tableProperties'];['tableCellProperties'];constructor(_0x458d3d){super(_0x458d3d),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 _0x1ddb21=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x226aea of this['tableProperties'])_0x1ddb21['enableCommand'](_0x226aea,(_0x1d5db4,_0x379bfe)=>{const _0x39fa17=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x226aea,[_0x39fa17],this['tableProperties'],'tableProperties',_0x1d5db4,_0x379bfe);});_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ddb21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x558f75,_0x3fda26)=>this['handleDiscardAction'](this['tableProperties'],_0x558f75,_0x3fda26)),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xabf80b of this['tableCellProperties'])_0x1ddb21['enableCommand'](_0xabf80b,(_0x417cb2,_0x4e020d)=>{const _0x4cf3ca=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xabf80b,_0x4cf3ca,this['tableCellProperties'],'tableCellProperties',_0x417cb2,_0x4e020d);});_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ddb21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4472c8,_0x2786d3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4472c8,_0x2786d3)),_0x1ddb21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ddb21['descriptionFactory']['registerDescriptionCallback'](_0x57bb0f=>this['handleSuggestionDescription'](_0x57bb0f));}['_handlePropertyChange'](_0x5e07b9,_0x349677,_0x3b48a5,_0x4f7b0c,_0xb2ae11,_0x334fd5){const _0x558f93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x334fd5['batch'],()=>{for(const _0x225b43 of _0x349677){if(this['_getSuggestion'](_0x225b43,_0x4f7b0c))_0xb2ae11(_0x334fd5);else{const _0xc7be58={};for(const _0x20222b of _0x3b48a5){const _0x3a1aee=_0x225b43['getAttribute'](_0x20222b);void 0x0!==_0x3a1aee&&(_0xc7be58[_0x20222b]=_0x3a1aee);}_0xb2ae11(_0x334fd5),_0x558f93['markBlockFormat'](_0x225b43,{'commandParams':[_0xc7be58]},[],_0x4f7b0c);}}});}['handleDiscardAction'](_0xde30c0,_0x31f16c,_0x4551f8){const _0x2814d5=_0x31f16c[0x0]['start']['nodeAfter'],_0x35d0ca=_0x4551f8['commandParams'][0x0];this['editor']['model']['change'](_0x101f60=>{for(const _0x330b1f of _0xde30c0)void 0x0!==_0x35d0ca[_0x330b1f]?_0x101f60['setAttribute'](_0x330b1f,_0x35d0ca[_0x330b1f],_0x2814d5):_0x101f60['removeAttribute'](_0x330b1f,_0x2814d5);});}['handleSuggestionDescription'](_0x359a65){if(_0x359a65['data'])switch(_0x359a65['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'](_0xea32ae,_0x506168){const _0x19a71a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4550a9 of _0x19a71a['getSuggestions']({'skipNotAttached':!0x0})){const _0x1aac2c=_0x4550a9['getContainedElement']();if(_0x4550a9['subType']===_0x506168&&_0x1aac2c===_0xea32ae)return _0x4550a9;}return null;}}const m='$elementName';class p extends _0x32d277{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x485da9,_0x46e603,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30fecf){super(_0x30fecf),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4be8ea,_0x4a05b2,_0x1a89b9,_0x11d765)=>{this['_model']['change'](()=>{for(const _0x54ba95 of[..._0x11d765,..._0x1a89b9])this['_model']['markers']['has'](_0x54ba95)&&_0x30fecf['editing']['reconvertMarker'](_0x54ba95);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x30fecf['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(),_0x30fecf['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x30fecf['config']['get']('trackChanges.trackFormatChanges'),_0x30fecf['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x30fecf['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x30fecf,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa9e272=this['editor'],_0x261897=(_0x4bac06,_0x40ffa6)=>{if('attribute'!=_0x4bac06)return'ck-suggestion-marker-'+_0x4bac06;const _0x482557=_0x40ffa6['split']('|')[0x0];return this['_isBlockAttribute'](_0x482557)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa9e272['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5e9ebe=>{const {id:_0x210129,authorId:_0xc0710e,type:_0x126a18,subType:_0x4528ff}=this['_splitMarkerName'](_0x5e9ebe['markerName']),_0x23b941=['ck-suggestion-marker',_0x261897(_0x126a18,_0x4528ff)];let _0x47993a=0xbb8;return this['activeMarkers']['includes'](_0x5e9ebe['markerName'])&&(_0x23b941['push']('ck-suggestion-marker--active'),_0x47993a=0xbc2),'deletion'==_0x126a18&&(_0x47993a+=0x5),{'classes':_0x23b941,'attributes':{'data-suggestion':_0x210129,'data-author-id':_0xc0710e},'priority':_0x47993a};}}),_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x3abe32=>{_0x3abe32['on']('addMarker:suggestion',(_0x5ca709,_0x36a2b7,_0x50b1fb)=>{if(!_0x50b1fb['options']['showSuggestionHighlights'])return;const _0x2a989a=_0x36a2b7['item'];if(!_0x2a989a)return;const _0x1a778b=_0x50b1fb['mapper']['toViewElement'](_0x2a989a);_0xa9e272['model']['schema']['isObject'](_0x2a989a)&&_0x1a778b&&!_0x1a778b['getCustomProperty']('widget')&&_0x1a778b['is']('containerElement')&&_0x20d843(_0x1a778b,_0x50b1fb['writer']);},{'priority':'high'});}),_0xa9e272['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4be133,_0x226bd6)=>{if(!_0x226bd6['options']['showSuggestionHighlights'])return null;const {type:_0x3378cd,subType:_0x35abf7}=this['_splitMarkerName'](_0x4be133['markerName']);return{'classes':['ck-suggestion-marker',_0x261897(_0x3378cd,_0x35abf7)],'priority':0xbb8};}});const _0x41df3c=({showActiveMarkers:_0x4cf66d=!0x0,isAttributeSuggestion:_0x1041f9=!0x1}={})=>(_0x3f7625,_0x2f2ffd,_0x517919)=>{if(!_0x2f2ffd['item'])return;const {id:_0xcde694,authorId:_0x541686}=this['_splitMarkerName'](_0x2f2ffd['markerName']);if(_0x1041f9){const _0x30586e=this['_suggestions']['get'](_0xcde694),_0x5c16f2=this['_getAttributeKey'](_0x30586e);if(!this['_isBlockAttribute'](_0x5c16f2))return;}if(_0x2f2ffd['item']['is']('selection'))return void _0x517919['consumable']['consume'](_0x2f2ffd['item'],_0x3f7625['name']);const _0x31e070=_0x517919['mapper']['toViewElement'](_0x2f2ffd['item']);if(_0x2f2ffd['item']['is']('element')&&_0xa9e272['model']['schema']['isBlock'](_0x2f2ffd['item'])&&!_0x31e070['getCustomProperty']('addHighlight')){_0x517919['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x31e070),_0x517919['writer']['setAttribute']('data-suggestion',_0xcde694,_0x31e070),_0x517919['writer']['setAttribute']('data-author-id',_0x541686,_0x31e070),_0x517919['mapper']['bindElementToMarker'](_0x31e070,_0x2f2ffd['markerName']),_0x4cf66d&&(this['activeMarkers']['includes'](_0x2f2ffd['markerName'])?_0x517919['writer']['addClass']('ck-suggestion-marker--active',_0x31e070):_0x517919['writer']['removeClass']('ck-suggestion-marker--active',_0x31e070));for(const _0x1f0f5a of _0xa9e272['model']['createRangeIn'](_0x2f2ffd['item'])['getItems']())_0x517919['consumable']['consume'](_0x1f0f5a,_0x3f7625['name']);_0x517919['consumable']['consume'](_0x2f2ffd['item'],_0x3f7625['name']);}};_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x241a9b=>{_0x241a9b['on']('addMarker:suggestion:formatBlock',(_0x27252e,_0x1dca2e,_0x77b224)=>{_0x77b224['options']['showSuggestionHighlights']&&_0x41df3c({'showActiveMarkers':!0x1})(_0x27252e,_0x1dca2e,_0x77b224);},{'priority':'highest'});}),_0xa9e272['conversion']['for']('dataDowncast')['add'](_0x47a71e=>{_0x47a71e['on']('addMarker:suggestion:attribute',(_0xb4d389,_0x3d4b58,_0x364a34)=>{_0x364a34['options']['showSuggestionHighlights']&&_0x41df3c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xb4d389,_0x3d4b58,_0x364a34);},{'priority':'highest'});}),_0xa9e272['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x20d00f,_0x26ddac)=>_0x26ddac['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x20d00f['substr'](0xb)}}),_0xa9e272['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50ba56,{writer:_0x54d040})=>{let _0x4a393b='suggestion:'+_0x50ba56['getAttribute']('suggestion-type')+':'+_0x50ba56['getAttribute']('id');return _0x50ba56['getAttribute']('marker-count')&&(_0x4a393b+=':'+_0x50ba56['getAttribute']('marker-count')),_0x54d040['createElement']('$marker',{'data-name':_0x4a393b});}}),_0xa9e272['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x3876f0=>{_0x3876f0['on']('addMarker:suggestion:formatBlock',_0x41df3c(),{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x36257d=>{_0x36257d['on']('addMarker:suggestion:attribute',_0x41df3c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x5cd4ff=>{_0x5cd4ff['on']('removeMarker:suggestion:formatBlock',(_0x4cc626,_0x3b13ee,_0x381c37)=>{const _0x54b94a=_0x381c37['mapper']['markerNameToElements'](_0x3b13ee['markerName']);if(_0x54b94a){for(const _0x296f39 of _0x54b94a)_0x296f39['getCustomProperty']('addHighlight')||(_0x381c37['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x296f39),_0x381c37['writer']['removeAttribute']('data-suggestion',_0x296f39),_0x381c37['writer']['removeAttribute']('data-author-id',_0x296f39),_0x381c37['mapper']['unbindElementFromMarkerName'](_0x296f39,_0x3b13ee['markerName']));}},{'priority':'high'});}),_0xa9e272['conversion']['for']('editingDowncast')['add'](_0x2bbfc9=>{_0x2bbfc9['on']('removeMarker:suggestion:attribute',(_0x54bfab,_0x8f802,_0x21208a)=>{const _0x1607c6=_0x21208a['mapper']['markerNameToElements'](_0x8f802['markerName']);if(!_0x1607c6)return;const {id:_0x3539e0}=this['_splitMarkerName'](_0x8f802['markerName']),_0x34366f=this['_suggestions']['get'](_0x3539e0),_0x1da1f1=this['_getAttributeKey'](_0x34366f);if(this['_isBlockAttribute'](_0x1da1f1)){for(const _0x34a711 of _0x1607c6)_0x34a711['getCustomProperty']('addHighlight')||(_0x21208a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34a711),_0x21208a['writer']['removeAttribute']('data-suggestion',_0x34a711),_0x21208a['writer']['removeAttribute']('data-author-id',_0x34a711),_0x21208a['mapper']['unbindElementFromMarkerName'](_0x34a711,_0x8f802['markerName']));}},{'priority':'high'});}),_0xa9e272['model']['document']['registerPostFixer'](_0x5d17c3=>{let _0x578f2e=!0x1;const _0x504b1a=Array['from'](_0xa9e272['model']['document']['differ']['getChangedMarkers']()),_0x453a88=new Set();for(const {name:_0x4b3f1e,data:_0x50f740}of _0x504b1a){const {group:_0x5c1c41,type:_0x27294e,subType:_0x3a2e7e,id:_0x29e16c}=this['_splitMarkerName'](_0x4b3f1e);if('suggestion'!==_0x5c1c41)continue;const _0x2bafaa=this['_suggestions']['get'](_0x29e16c);if(null!=_0x50f740['newRange']){'formatInline'==_0x27294e&&(_0x578f2e=_0x578f2e||Gt(_0x50f740['newRange'],_0x4b3f1e,_0x5d17c3,_0xa9e272['model']['schema']));const _0x3b163e='attribute'==_0x27294e&&this['_isBlockAttribute'](_0x3a2e7e['split']('|')[0x0]);if(_0x50f740['newRange']['isCollapsed']||'$graveyard'==_0x50f740['newRange']['root']['rootName']||'formatBlock'==_0x27294e&&!Lt(_0x50f740['newRange'])||_0x3b163e&&!Lt(_0x50f740['newRange'])||'deletion'==_0x27294e&&!(!Pt(_0x12b586=_0x50f740['newRange'])&&!function(_0x39aa36){return _0x39aa36['start']['parent']==_0x39aa36['end']['nodeBefore']&&_0x39aa36['start']['isAtEnd'];}(_0x12b586)))_0x5d17c3['removeMarker'](_0x4b3f1e),_0x578f2e=!0x0;else{if(!_0x2bafaa||!_0x2bafaa['isInContent'])continue;if(_0x50f740['newRange']&&_0x50f740['oldRange']&&_0x50f740['newRange']['isEqual'](_0x50f740['oldRange']))continue;_0x453a88['add'](_0x2bafaa);}}}var _0x12b586;return _0x453a88['size']>0x0&&(_0x578f2e=!!this['_joinWithAdjacentSuggestions'](_0x453a88)||_0x578f2e),_0x578f2e;}),_0xa9e272['model']['document']['registerPostFixer'](_0x4b6e73=>{let _0x5d49a8=!0x1;for(const _0x20789e of _0xa9e272['model']['document']['differ']['getChanges']())if('insert'==_0x20789e['type'])for(const _0x3df08c of this['_suggestions']['values']()){if(_0x3df08c['isMultiRange']||!_0x3df08c['isInContent'])continue;const _0x4d648f='formatBlock'==_0x3df08c['type'],_0x1c6fcf=this['_getAttributeKey'](_0x3df08c),_0x158560=_0x1c6fcf&&this['_isBlockAttribute'](_0x1c6fcf);if(!_0x4d648f&&!_0x158560)continue;const _0x8afd9=_0x3df08c['getFirstRange']();if(_0x8afd9['start']['parent']!=_0x8afd9['end']['parent']&&!_0x8afd9['end']['isAtEnd']){const _0x2619ae=_0xa9e272['model']['createPositionAt'](_0x8afd9['start']['nodeAfter'],'end'),_0x3642b0=_0xa9e272['model']['createRange'](_0x8afd9['start'],_0x2619ae);_0x4b6e73['updateMarker'](_0x3df08c['getFirstMarker'](),{'range':_0x3642b0}),_0x5d49a8=!0x0;}}return _0x5d49a8;}),_0xa9e272['model']['document']['registerPostFixer'](_0x4c90a1=>this['_processAttributeChanges'](_0x4c90a1)),_0xa9e272['model']['document']['registerPostFixer'](_0x24a0ad=>!_0x24a0ad['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24a0ad)),_0xa9e272['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa9e272['model']['document']['on']('change:data',(_0xc01cad,_0x4e75b0)=>{if(!_0x4e75b0['isLocal']||_0x4e75b0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x551bf2=_0xa9e272['model']['document']['differ']['getChanges']();if(0x0==_0x551bf2['length'])return;const _0x3638d4=[],_0xd0d2a8=_0x551bf2['filter'](_0x4880f8=>'attribute'==_0x4880f8['type']),_0xb089a0=_0x551bf2['filter'](_0x5ddf5d=>'insert'==_0x5ddf5d['type']&&'$text'!=_0x5ddf5d['name']);for(const _0x1beac8 of _0xd0d2a8)this['_isRegisteredAttribute'](_0x1beac8['attributeKey'])&&_0x3638d4['push']({'key':_0x1beac8['attributeKey'],'newValue':_0x1beac8['attributeNewValue'],'oldValue':_0x1beac8['attributeOldValue'],'range':Jt(_0x1beac8['range'],_0xa9e272['model'])});for(const _0xb1d467 of _0xb089a0){if('rename'!=_0xb1d467['action']&&'refresh'!=_0xb1d467['action'])continue;const _0x2e9ee0=Ht(_0xb1d467['position']['nodeAfter'],_0xa9e272['model']),_0x4ea2a7=_0xb1d467['before'];'rename'==_0xb1d467['action']&&_0x3638d4['push']({'key':m,'newValue':_0xb1d467['name'],'oldValue':_0x4ea2a7['name'],'range':_0x2e9ee0});for(const [_0x2f9b0f,_0x3971b1]of _0x4ea2a7['attributes']){if(!this['_isRegisteredAttribute'](_0x2f9b0f))continue;const _0x18e1ab=_0xb1d467['attributes']['get'](_0x2f9b0f);_0x3971b1!==_0x18e1ab&&_0x3638d4['push']({'key':_0x2f9b0f,'newValue':_0x18e1ab,'oldValue':_0x3971b1,'range':_0x2e9ee0});}for(const [_0x583047,_0x3be4f7]of _0xb1d467['attributes'])this['_isRegisteredAttribute'](_0x583047)&&(_0x4ea2a7['attributes']['has'](_0x583047)||_0x3638d4['push']({'key':_0x583047,'newValue':_0x3be4f7,'oldValue':null,'range':_0x2e9ee0}));}0x0!=_0x3638d4['length']&&_0xa9e272['model']['enqueueChange'](_0x4e75b0,_0x3956cd=>{const _0x2a6d02=_0x12e0b6();for(const {range:_0x4b2b5c,key:_0x5daf54,oldValue:_0x427403,newValue:_0x51f6e7}of _0x3638d4)this['markAttributeChange'](_0x4b2b5c,_0x5daf54,_0x427403,_0x51f6e7,{'groupId':_0x2a6d02});this['_reduceExistingSuggestions'](_0x3956cd,_0x3638d4);});},{'priority':'lowest'}),_0xa9e272['model']['markers']['on']('update:suggestion',(_0x525bc2,_0x35f6ec,_0x3e2526)=>{if(null==_0x3e2526){const {id:_0x123d8c}=this['_splitMarkerName'](_0x35f6ec['name']),_0x5a2e62=this['_suggestions']['get'](_0x123d8c);_0x5a2e62&&_0x5a2e62['addMarkerName'](_0x35f6ec['name']);}}),_0xa9e272['model']['document']['on']('change:data',()=>{const _0x5713c0=Array['from'](_0xa9e272['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b9013=>'suggestion'===this['_splitMarkerName'](_0x5b9013['name'])['group']);if(0x0===_0x5713c0['length'])return;_0x5713c0['sort']((_0x5f43b4,_0x1c7fd9)=>{const _0x253919=_0x5f43b4['data']['oldRange'],_0x32b41c=_0x1c7fd9['data']['oldRange'];return null===_0x253919&&null===_0x32b41c?0x0:null===_0x253919&&null!==_0x32b41c?-0x1:null!==_0x253919&&null===_0x32b41c?0x1:_0x253919['start']['isBefore'](_0x32b41c['start'])?-0x1:0x1;});const _0x585854=new Set(),_0x3a5a89=new Set();for(const {name:_0x28beaa,data:_0x4b8550}of _0x5713c0){const {id:_0x3c9e99}=this['_splitMarkerName'](_0x28beaa);if(null===_0x4b8550['oldRange']){const _0x14d5d4=this['_handleNewSuggestionMarker'](_0x28beaa);_0x3a5a89['add'](_0x14d5d4);}else{const _0x2ec9c6=this['_suggestions']['get'](_0x3c9e99);null!==_0x4b8550['newRange']||_0x2ec9c6['isInContent']?(_0x585854['add'](_0x2ec9c6['head']),_0x3a5a89['add'](_0x2ec9c6)):this['_removeSuggestion'](_0x2ec9c6);}}_0x3a5a89['size']>0x0&&this['_refreshSuggestionsChain'](_0x3a5a89);for(const _0x2e1f0f of _0x585854)this['fire']('suggestionChanged',_0x2e1f0f);}),_0xa9e272['model']['on']('applyOperation',(_0x537066,_0x48531b)=>{const _0x40130f=_0x48531b[0x0];if(!this['_suggestions']['size'])return;if(!_0x40130f['isDocumentOperation'])return;if(_0x40130f['batch']['isUndo']||!_0x40130f['batch']['isLocal'])return;let _0x277667,_0x4dd983;switch(_0x40130f['type']){case'insert':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['position']),_0x4dd983=_0x277667['getShiftedBy'](_0x40130f['howMany']);break;case'split':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['splitPosition']),_0x4dd983=_0xa9e272['model']['createPositionAt'](_0x40130f['moveTargetPosition']);break;case'move':_0x277667=_0xa9e272['model']['createPositionAt'](_0x40130f['targetPosition']),_0x4dd983=_0x277667['getShiftedBy'](_0x40130f['howMany']);break;default:return;}const _0x456315=_0xa9e272['model']['createRange'](_0x277667,_0x4dd983);_0xa9e272['model']['change'](()=>{for(const {suggestion:_0x37fbbd,meta:_0xaf1234}of this['_findSuggestions'](_0x456315)){if(_0x37fbbd['isMultiRange'])continue;if('formatInline'==_0x37fbbd['type'])continue;const _0x5894b4=this['_getAttributeKey'](_0x37fbbd);if(_0x5894b4&&this['_isBlockAttribute'](_0x5894b4)&&'split'!=_0x40130f['type'])continue;const _0x4f00d6=_0x37fbbd['data']&&_0x37fbbd['data']['multipleBlocks'];('formatBlock'!=_0x37fbbd['type']||'split'==_0x40130f['type']&&!_0x4f00d6)&&(_0xaf1234['containsRangeInObject']||'insertion'==_0x37fbbd['type']&&_0xaf1234['isOwn']||_0x37fbbd['getFirstRange']()['containsRange'](_0x456315)&&this['_breakSuggestionMarker'](_0x37fbbd,_0x277667,_0x4dd983));}});},{'priority':'lowest'}),_0xa9e272['model']['on']('deleteContent',(_0xed520,_0x41621b)=>{const _0x5a79af=_0x41621b[0x0],_0x5eecaf=_0x41621b[0x1];if(_0x5eecaf&&_0x5eecaf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5a79af['isCollapsed'])return;const _0x598a07=_0xa9e272['model']['schema'],{start:_0x821ca4,end:_0x337381}=_0x5a79af['getFirstRange'](),_0x2e8db1=_0x821ca4['nodeAfter']&&_0x598a07['isLimit'](_0x821ca4['nodeAfter'])?null:_0x598a07['getNearestSelectionRange'](_0x821ca4,'forward'),_0x4041e2=_0x337381['nodeBefore']&&_0x598a07['isLimit'](_0x337381['nodeBefore'])?null:_0x598a07['getNearestSelectionRange'](_0x337381,'backward'),_0x577c2a=_0xa9e272['model']['createRange'](_0x2e8db1?_0x2e8db1['start']:_0x821ca4,_0x4041e2?_0x4041e2['end']:_0x337381);_0xa9e272['model']['change'](_0x3ca73e=>{this['markDeletion'](_0x577c2a);const _0x355063=_0xa9e272['model']['schema']['getNearestSelectionRange'](_0x577c2a['start']);_0x5a79af['is']('documentSelection')?_0x3ca73e['setSelection'](_0x355063):_0x5a79af['setTo'](_0x355063);}),_0xed520['stop']();},{'priority':_0x3e5933['normal']+0xa}),_0xa9e272['model']['on']('insertContent',(_0x2e126d,_0x55f61e)=>{const _0x2432b6=_0x55f61e[_0x55f61e['length']-0x1];_0x2432b6&&_0x2432b6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa9e272['model']['change'](()=>{let _0x4ecaf5=_0xa9e272['model']['insertContent'](_0x55f61e[0x0],_0x55f61e[0x1],_0x55f61e[0x2],{'forceDefaultExecution':!0x0});if(!_0x4ecaf5)return;_0x2e126d['return']=_0x4ecaf5['clone']();const _0x5f03b8=_0x4ecaf5['end']['nodeBefore'],_0x4fda17=_0xa9e272['model']['schema'];_0x5f03b8&&_0x4fda17['isBlock'](_0x5f03b8)&&!_0x4fda17['isObject'](_0x5f03b8)&&(_0x4ecaf5=_0xa9e272['model']['createRange'](_0x4ecaf5['start'],_0xa9e272['model']['createPositionAt'](_0x5f03b8,'end'))),this['markInsertion'](_0x4ecaf5);}),_0x2e126d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x25e082=new O(_0xa9e272,this['_suggestions']);_0xa9e272['commands']['add']('acceptSuggestion',_0x25e082),this['enableCommand']('acceptSuggestion');const _0x21db64=new R(_0xa9e272,this['_suggestions']);_0xa9e272['commands']['add']('discardSuggestion',_0x21db64),this['enableCommand']('discardSuggestion'),_0xa9e272['commands']['add']('acceptAllSuggestions',new x(_0xa9e272,_0x25e082,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa9e272['commands']['add']('discardAllSuggestions',new x(_0xa9e272,_0x21db64,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa9e272['commands']['add']('acceptSelectedSuggestions',new E(_0xa9e272,_0x25e082,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa9e272['commands']['add']('discardSelectedSuggestions',new E(_0xa9e272,_0x21db64,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17a795=_0xa9e272['plugins']['get']('CommentsRepository');this['listenTo'](_0x17a795,'addComment',(_0x3a39f4,{threadId:_0x153b44})=>{const _0x1350bf=this['_suggestions']['get'](_0x153b44);_0x1350bf&&_0x1350bf['commentThread']&&0x1===_0x1350bf['commentThread']['length']&&this['_updateSuggestionData'](_0x153b44,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17a795,'removeComment',(_0x27aeb8,{threadId:_0x65cdfa})=>{const _0x227581=this['_suggestions']['get'](_0x65cdfa);_0x227581&&_0x227581['commentThread']&&!_0x227581['commentThread']['length']&&this['_updateSuggestionData'](_0x65cdfa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x794031){const _0x885b89=_0x506754([0x45,0x65,0x71,0x47,0x66,0x4a,0x6e,0x63,0x41,0x39,0x64,0x44,0x4e,0x30,0x6c,0x46,0x35,0x6b,0x56,0x50,0x7a,0x62,0x5a,0x73,0x76,0x32,0x58,0x6f,0x51,0x43,0x78,0x53,0x4d,0x55,0x69,0x54,0x6a,0x79,0x75,0x33,0x37,0x72,0x67,0x49,0x4b,0x61,0x57,0x31,0x48,0x38,0x36,0x4c,0x42,0x77,0x52,0x68,0x74,0x4f,0x6d,0x59,0x70,0x34]),_0x319cf4=0x1353a7b2,_0x3cdff3=0x1354f8b2^_0x319cf4,_0x150266=window[_0x506754([0x44,0x61,0x74,0x65])][_0x506754([0x6e,0x6f,0x77])](),_0x1e5f3f=_0x794031[_0x506754([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x457df7=new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5981f8=>{_0x1e5f3f[_0x506754([0x6f,0x6e,0x63,0x65])](_0x506754([0x72,0x65,0x61,0x64,0x79]),_0x5981f8);}),_0x336579={[_0x506754([0x6b,0x74,0x79])]:_0x506754([0x45,0x43]),[_0x506754([0x75,0x73,0x65])]:_0x506754([0x73,0x69,0x67]),[_0x506754([0x63,0x72,0x76])]:_0x506754([0x50,0x2d,0x32,0x35,0x36]),[_0x506754([0x78])]:_0x506754([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]),[_0x506754([0x79])]:_0x506754([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]),[_0x506754([0x61,0x6c,0x67])]:_0x506754([0x45,0x53,0x32,0x35,0x36])},_0x12acbd=_0x1e5f3f[_0x506754([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x506754([0x67,0x65,0x74])](_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41355e(){let _0x158591,_0xe1d1d6=null,_0x33a5e0=null;try{if(_0x12acbd==_0x506754([0x47,0x50,0x4c]))return _0x506754([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x158591=_0x1f2b8d(),!_0x158591)return _0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x158591[_0x506754([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33a5e0=_0x15b335(_0x158591[_0x506754([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x158591[_0x506754([0x6a,0x74,0x69])])),await _0x452f77()?_0x42b2ef()?_0x133902()?_0x506754([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25752b()?(_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x506754([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe1d1d6=_0x421964(_0x506754([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x506754([0x74,0x72,0x69,0x61,0x6c])&&(_0xe1d1d6=_0x421964(_0x506754([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5433d3()):_0x506754([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x506754([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x575d87){return _0x506754([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x133902(){const _0x332dfe=[_0x506754([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x506754([0x74,0x72,0x69,0x61,0x6c])][_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x150266/0x3e8:0xe10*_0x3cdff3;return _0x158591[_0x506754([0x65,0x78,0x70])]<_0x332dfe;}function _0x42b2ef(){const _0x315ede=_0x158591[_0x506754([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x315ede)return!0x1;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x2a])))return!0x0;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x54,0x43])))return!0x0;if(_0x315ede[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x52,0x54,0x43]))){if(_0x803976())return!0x0;if(_0x1cdb3e()||_0x3e5de7())return!0x0;}return!0x1;}function _0x25752b(){const _0xdcfcdf=_0x158591[_0x506754([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdcfcdf||0x0==_0xdcfcdf[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x146aef}=new URL(window[_0x506754([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdcfcdf[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x146aef))return!0x0;const _0x36b885=_0x146aef[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e]));return _0xdcfcdf[_0x506754([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x539112=>_0x539112[_0x506754([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x506754([0x2a])))[_0x506754([0x6d,0x61,0x70])](_0x5be559=>_0x5be559[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e])))[_0x506754([0x73,0x6f,0x6d,0x65])](_0x4c4bbe=>_0x36b885[_0x506754([0x65,0x76,0x65,0x72,0x79])]((_0x31ad5c,_0xe1f457)=>_0x4c4bbe[_0xe1f457]===_0x31ad5c||_0x4c4bbe[_0xe1f457]===_0x506754([0x2a])));}function _0x5433d3(){return _0xe1d1d6&&_0x33a5e0?new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa7cf,_0x17c262)=>{_0xe1d1d6[_0x506754([0x74,0x68,0x65,0x6e])](_0x2aa7cf,_0x17c262),_0x33a5e0[_0x506754([0x74,0x68,0x65,0x6e])](_0x28b127=>{_0x28b127!=_0x506754([0x56,0x61,0x6c,0x69,0x64])&&_0x2aa7cf(_0x28b127);},_0x17c262);}):_0xe1d1d6||_0x33a5e0||_0x506754([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15b335(_0x3f8f69,_0x372351){return new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25dc0e=>{if(_0x4af935())return _0x25dc0e(_0x506754([0x56,0x61,0x6c,0x69,0x64]));_0xf675a6(),_0x1e5f3f[_0x506754([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5452de=!0x1;const _0x3a7328=_0x12e0b6();function _0x1f6ac9(_0x46eaed){return!!_0x46eaed&&(typeof _0x46eaed===_0x506754([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46eaed===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46eaed[_0x506754([0x74,0x68,0x65,0x6e])]===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46eaed[_0x506754([0x63,0x61,0x74,0x63,0x68])]===_0x506754([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x22eb59(_0x620a60){_0x3c1b62(_0x620a60)[_0x506754([0x74,0x68,0x65,0x6e])](_0x25e111=>{if(!_0x25e111||_0x25e111[_0x506754([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x506754([0x6f,0x6b]))return _0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b8409(_0x4646ea(_0x3a7328+_0x372351))!=_0x25e111[_0x506754([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x506754([0x56,0x61,0x6c,0x69,0x64]);})[_0x506754([0x74,0x68,0x65,0x6e])](_0x9a6bff=>(_0x12f305(),_0x9a6bff),()=>{const _0x2435f9=_0x22cdd0();return null==_0x2435f9?(_0x12f305(),_0x506754([0x56,0x61,0x6c,0x69,0x64])):_0x506754(_0x150266-_0x2435f9>(0x375f23b2^_0x319cf4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x506754([0x74,0x68,0x65,0x6e])](_0x25dc0e)[_0x506754([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x60f1a5=0x13654932^_0x319cf4;function _0x12f305(){const _0x44b9fb=_0x506754([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b8409(_0x4646ea(_0x3f8f69)),_0xb25e4c=_0x20260b(_0x3b8409(window[_0x506754([0x4d,0x61,0x74,0x68])][_0x506754([0x63,0x65,0x69,0x6c])](_0x150266/_0x60f1a5)));window[_0x506754([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x506754([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b9fb,_0xb25e4c);}function _0x22cdd0(){const _0x351c55=_0x506754([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b8409(_0x4646ea(_0x3f8f69)),_0x13c193=window[_0x506754([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x506754([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x351c55);return _0x13c193?window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20260b(_0x13c193),0x10)*_0x60f1a5:null;}function _0x3c1b62(_0x2e3917){return new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a897e,_0x312be1)=>{_0x2e3917[_0x506754([0x74,0x68,0x65,0x6e])](_0x1a897e,_0x312be1),window[_0x506754([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x312be1,0x13527372^_0x319cf4);});}}_0x1e5f3f[_0x506754([0x6f,0x6e])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3eb880,_0x593ef4)=>{if(_0x593ef4[0x0]!=_0x3f8f69)return _0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x593ef4[0x1]={..._0x593ef4[0x1],[_0x506754([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a7328};},{[_0x506754([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x506754([0x68,0x69,0x67,0x68])}),_0x1e5f3f[_0x506754([0x6f,0x6e])](_0x506754([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5557df=>{_0x1f6ac9(_0x5557df[_0x506754([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5452de=!0x0,_0x22eb59(_0x5557df[_0x506754([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x506754([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x506754([0x6c,0x6f,0x77])}),_0x457df7[_0x506754([0x74,0x68,0x65,0x6e])](()=>{_0x5452de||_0x25dc0e(_0x506754([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4af935(){return _0x1e5f3f[_0x506754([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506754([0x76,0x69,0x65,0x77])][_0x506754([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x506754([0x61,0x75,0x74,0x6f]);}function _0xf675a6(){_0x1e5f3f[_0x506754([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x506754([0x76,0x69,0x65,0x77])][_0x506754([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x506754([0x61,0x75,0x74,0x6f]);}}function _0x421964(_0x5f5624){const _0x41d544=[new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cef86=>setTimeout(_0x4cef86,0x135a997e^_0x319cf4)),_0x457df7[_0x506754([0x74,0x68,0x65,0x6e])](()=>new window[(_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494874=>{let _0x559c0f=0x0;_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x6f,0x6e])](_0x506754([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f30de,_0x396513)=>{_0x396513[0x0][_0x506754([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x559c0f++,_0x559c0f==(0x1353a64a^_0x319cf4)&&(_0x494874(),_0x4f30de[_0x506754([0x6f,0x66,0x66])]());});}))];return window[_0x506754([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x506754([0x72,0x61,0x63,0x65])](_0x41d544)[_0x506754([0x74,0x68,0x65,0x6e])](()=>_0x5f5624);}async function _0x2f8027(){await _0x457df7,_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc4d6f6,_0x1e5f3f[_0x506754([0x6d,0x6f,0x64,0x65,0x6c])][_0x506754([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc4d6f6,_0x1e5f3f[_0x506754([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x506754([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x803976(){return _0x28fdf4(_0x506754([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a4836(_0x506754([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x506754([0x73,0x74,0x61,0x74,0x65])]==_0x506754([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1cdb3e(){return _0x28fdf4(_0x506754([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 _0x3e5de7(){return _0x28fdf4(_0x506754([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4957c3(_0x36ed76){const _0xafa67f=_0x4d21cd();_0x1e5f3f[_0xafa67f]=_0x506754([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36ed76,_0x36ed76!=_0x506754([0x56,0x61,0x6c,0x69,0x64])&&_0x2f8027();}function _0x4d21cd(){const _0x472e27=window[_0x506754([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x506754([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x506754([0x6e,0x6f,0x77])]())[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x506754([0x2e]),'');let _0x37f995=_0x506754([0x45]);for(let _0xa4fa30=0x0;_0xa4fa30<_0x472e27[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa4fa30+=0x2){let _0x57a7dd=window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472e27[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa4fa30,_0xa4fa30+0x2));_0x57a7dd>=_0x885b89[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57a7dd-=_0x885b89[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37f995+=_0x885b89[_0x57a7dd];}return _0x37f995;}function _0x1f2b8d(){const _0x5d0939=_0x12acbd[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e]));if(0x3!=_0x5d0939[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d77a2(_0x5d0939[0x1]);function _0x1d77a2(_0x1873ed){const _0x24ab75=_0x2e583d(_0x1873ed);return _0x24ab75&&_0x11900d()?_0x24ab75:null;function _0x11900d(){const _0x3befe5=_0x24ab75[_0x506754([0x6a,0x74,0x69])],_0xb9e25f=window[_0x506754([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3befe5[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3befe5[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a2e2a={..._0x24ab75,[_0x506754([0x6a,0x74,0x69])]:_0x3befe5[_0x506754([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3befe5[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a2e2a[_0x506754([0x76,0x63])],_0x4646ea(_0x1a2e2a)==_0xb9e25f;}}}async function _0x452f77(){let _0x3d1437=!0x0;try{const _0x4b3644=_0x12acbd[_0x506754([0x73,0x70,0x6c,0x69,0x74])](_0x506754([0x2e])),[_0x159ff2,_0x215bb8,_0x7bf158]=_0x4b3644;return _0x303398(_0x159ff2),await _0x7f2bb3(_0x159ff2,_0x215bb8,_0x7bf158),_0x3d1437;}catch(_0x54354b){return!0x1;}function _0x303398(_0x51a057){const _0x535366=_0x2e583d(_0x51a057);_0x535366&&_0x535366[_0x506754([0x61,0x6c,0x67])]==_0x506754([0x45,0x53,0x32,0x35,0x36])||(_0x3d1437=!0x1);}async function _0x7f2bb3(_0x353b97,_0x3f71a1,_0x330de7){const _0x11053e=window[_0x506754([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x506754([0x66,0x72,0x6f,0x6d])](_0x123aa4(_0x330de7),_0x4aa73a=>_0x4aa73a[_0x506754([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e5ae7=new window[(_0x506754([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x506754([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x353b97+_0x506754([0x2e])+_0x3f71a1),_0x51765d=window[_0x506754([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x506754([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51765d)return;const _0x282c12=await _0x51765d[_0x506754([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x506754([0x6a,0x77,0x6b]),_0x336579,{[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x45,0x43,0x44,0x53,0x41]),[_0x506754([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x506754([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x506754([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51765d[_0x506754([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x45,0x43,0x44,0x53,0x41]),[_0x506754([0x68,0x61,0x73,0x68])]:{[_0x506754([0x6e,0x61,0x6d,0x65])]:_0x506754([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x282c12,_0x11053e,_0x4e5ae7)||(_0x3d1437=!0x1);}}function _0x2e583d(_0x5cc45e){return _0x5cc45e[_0x506754([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x506754([0x65,0x79]))?JSON[_0x506754([0x70,0x61,0x72,0x73,0x65])](_0x123aa4(_0x5cc45e)):null;}function _0x123aa4(_0x4d74b9){return window[_0x506754([0x61,0x74,0x6f,0x62])](_0x4d74b9[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x506754([0x2b]))[_0x506754([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x506754([0x2f])));}function _0x4646ea(_0x1d0e1f){let _0x294ae2=0x1505;function _0x326641(_0x2ac656){for(let _0x54aead=0x0;_0x54aead<_0x2ac656[_0x506754([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54aead++){const _0x1a24b2=_0x2ac656[_0x506754([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54aead);_0x294ae2=(_0x294ae2<<0x5)+_0x294ae2+_0x1a24b2,_0x294ae2&=_0x294ae2;}}function _0x299384(_0x24404a){Array[_0x506754([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24404a)?_0x24404a[_0x506754([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299384):_0x24404a&&typeof _0x24404a==_0x506754([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x506754([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24404a)[_0x506754([0x73,0x6f,0x72,0x74])]()[_0x506754([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x332660,_0x1826dc])=>{_0x326641(_0x332660),_0x299384(_0x1826dc);}):_0x326641(window[_0x506754([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24404a));}return _0x299384(_0x1d0e1f),_0x294ae2>>>0x0;}function _0x3b8409(_0x24e117){return _0x24e117[_0x506754([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x506754([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x506754([0x30]));}function _0x20260b(_0x165340){return _0x165340[_0x506754([0x73,0x70,0x6c,0x69,0x74])]('')[_0x506754([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x506754([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fdf4(_0x19427e){return _0x1e5f3f[_0x506754([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x506754([0x68,0x61,0x73])](_0x19427e);}function _0x2a4836(_0x1b342f){return _0x1e5f3f[_0x506754([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x506754([0x67,0x65,0x74])](_0x1b342f);}function _0xc4d6f6(){}function _0x506754(_0x45f227){return _0x45f227['map'](_0x412fd8=>String['fromCharCode'](_0x412fd8))['join']('');}_0x4957c3(await _0x41355e());}(this);}set['adapter'](_0x44a6e3){if(this['_adapter'])throw new _0x3c4487('track-changes-adapter-already-set',this);this['_adapter']=_0x44a6e3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x15aca0=!0x1,toJSON:_0x3b5553=!0x1}={}){const _0x198f33=[];for(const _0x2e9c3d of this['_suggestions']['values']())_0x15aca0&&!_0x2e9c3d['isInContent']||_0x198f33['push'](_0x2e9c3d);return _0x3b5553?_0x198f33['map'](_0x23c825=>_0x23c825['toJSON']()):_0x198f33;}['getSuggestion'](_0x278225){const _0x36360f=this['_suggestions']['get'](_0x278225);if(!_0x36360f)throw new _0x3c4487('track-changes-suggestion-not-found',this);return _0x36360f;}['hasSuggestion'](_0x317cbc){return this['_suggestions']['has'](_0x317cbc);}['addSuggestionData'](_0x575222){const {authorId:_0x48a609,id:_0x2afc0d,attributes:_0x121670}=_0x575222,[_0x1c04e9,_0x206c36]=_0x575222['type']['split'](':'),_0x46ba4c=this['_suggestions']['get'](_0x2afc0d)||this['_createSuggestion'](_0x1c04e9,_0x206c36,_0x2afc0d,_0x48a609,_0x121670);if(this['_addThreadToSuggestion'](_0x46ba4c),this['_checkSuggestionCorrectness'](_0x46ba4c,_0x1c04e9,_0x206c36||null,_0x48a609),_0x46ba4c['createdAt']=_0x575222['createdAt'],_0x46ba4c['_isDataLoaded']=!0x0,_0x121670&&_0x121670['@external']){const _0x4dc5ef=_0x121670['@external'],_0x5935ad=this['_getExternalAuthor'](_0x4dc5ef['authorName']);_0x46ba4c['authoredAt']=_0x4dc5ef['createdAt'],_0x46ba4c['author']=_0x5935ad,_0x46ba4c['isExternal']=!0x0;}else _0x46ba4c['authoredAt']=_0x575222['createdAt'];switch(_0x575222['data']&&(_0x46ba4c['data']=_0x575222['data']),_0x575222['attributes']&&(_0x46ba4c['attributes']=_0x575222['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46ba4c['_saved']=!0x0),this['_suggestionState']['get'](_0x46ba4c)){case'notReady':this['_suggestionState']['set'](_0x46ba4c,'dataReady');break;case'markerReady':_0x46ba4c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46ba4c])),this['_refreshSuggestionsChain'](new Set([_0x46ba4c])),this['_suggestionState']['set'](_0x46ba4c,'ready'),this['fire']('suggestionLoaded',_0x46ba4c)):this['_suggestionState']['set'](_0x46ba4c,'removed');}return _0x46ba4c;}['acceptSuggestion'](_0x27ff0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2193c7 of _0x27ff0d['getAllAdjacentSuggestions']())_0x2193c7['accept']();});});}['discardSuggestion'](_0x2c361a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34b943 of _0x2c361a['getAllAdjacentSuggestions']())_0x34b943['discard']();});});}['enableCommand'](_0x48476a,_0x475e0e){const _0x18a4bd=this['editor']['commands']['get'](_0x48476a);if(!_0x18a4bd)throw new _0x3c4487('track-changes-command-not-found',this,{'commandName':_0x48476a});if(this['_enabledCommands']['has'](_0x18a4bd))throw new _0x3c4487('track-changes-enable-command-twice',this,{'commandName':_0x48476a});this['_enabledCommands']['add'](_0x18a4bd),_0x475e0e&&_0x18a4bd['on']('execute',(_0x4ea479,_0x29b0de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x29b0de['length']>0x0&&_0x29b0de[_0x29b0de['length']-0x1]&&_0x29b0de[_0x29b0de['length']-0x1]['forceDefaultExecution']?_0x29b0de['pop']():(_0x4ea479['return']=_0x475e0e((..._0x23e7f6)=>_0x18a4bd['execute'](..._0x23e7f6,{'forceDefaultExecution':!0x0}),..._0x29b0de),_0x4ea479['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a940b){let _0x585027,_0x4b7d28;const _0x17d5e0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x585027=_0x4a940b();}catch(_0x2b1257){_0x4b7d28=_0x2b1257;}return _0x17d5e0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b7d28&&_0x3c4487['rethrowUnexpectedError'](_0x4b7d28,this),_0x585027;}['markInsertion'](_0x2018e9,_0x5bf14c=null,_0x37341a={}){if(_0x2018e9['isCollapsed'])return null;const _0x1544f0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x33f6fe,meta:_0x1e7f76}of this['_findSuggestions'](_0x2018e9,'insertion'))if(_0x1e7f76['isOwn']){if(!_0x1e7f76['isNextTo']){if(_0x1e7f76['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x33f6fe,_0x37341a))continue;return _0x33f6fe;}if(Kt(_0x33f6fe,_0x37341a))return _0x33f6fe;this['_breakSuggestionMarker'](_0x33f6fe,_0x2018e9['start'],_0x2018e9['end']);break;}if(_0x5bf14c==_0x33f6fe['subType']&&Kt(_0x33f6fe,_0x37341a)){const _0x5cbf04=_0x33f6fe['getFirstRange']();return _0x5cbf04['start']['isEqual'](_0x2018e9['end'])?this['_setSuggestionRange'](_0x33f6fe,this['_model']['createRange'](_0x2018e9['start'],_0x5cbf04['end'])):this['_setSuggestionRange'](_0x33f6fe,this['_model']['createRange'](_0x5cbf04['start'],_0x2018e9['end'])),_0x33f6fe;}}const _0x54e85c=_0x12e0b6(),_0x10dc65=_0x1544f0['id'],_0x3fc37a=_0x5bf14c?'insertion:'+_0x5bf14c:'insertion',_0x43ed80=this['_setSuggestionData']({'id':_0x54e85c,'type':_0x3fc37a,'createdAt':new Date(),'authorId':_0x10dc65,'attributes':_0x37341a});return this['_addSuggestionMarker'](_0x3fc37a,_0x54e85c,_0x10dc65,_0x2018e9),_0x43ed80;}['markMultiRangeInsertion'](_0x52bced,_0x243ada='multi',_0xb54347={}){const _0x14d8e8=this['editor']['plugins']['get']('Users')['me'],_0x361cde=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x243ada,'join');for(const _0x25428d of this['getSuggestions']())if(_0x25428d['author']['id']==_0x14d8e8['id']&&'insertion'==_0x25428d['type']&&_0x25428d['subType']==_0x243ada&&Kt(_0x25428d,_0xb54347)&&(_0x361cde(_0x25428d['getRanges'](),_0x52bced)||_0x361cde(_0x52bced,_0x25428d['getRanges']()))){for(const _0x4af5cc of _0x52bced)_0x25428d['addRange'](_0x4af5cc);return _0x25428d;}for(const {suggestion:_0x5dc582,meta:_0x595d0e}of this['_findSuggestions'](_0x52bced,'insertion')){if(!_0x595d0e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x595d0e['containsRangeInObject'])continue;if(!Kt(_0x5dc582,_0xb54347))continue;let _0x167ad8=!0x0;for(const _0x1e20a5 of _0x5dc582['getRanges']())for(const _0x46510a of _0x52bced)if(!_0x1e20a5['containsRange'](_0x46510a)){_0x167ad8=!0x1;break;}if(_0x167ad8)return _0x5dc582;}const _0x2ffd47=_0x12e0b6(),_0x284f52=_0x14d8e8['id'],_0x3a5924='insertion:'+_0x243ada,_0x6aa059=this['_setSuggestionData']({'id':_0x2ffd47,'type':_0x3a5924,'createdAt':new Date(),'authorId':_0x284f52,'attributes':_0xb54347});for(const _0x5bc9d3 of _0x52bced)this['_addSuggestionMarker'](_0x3a5924,_0x2ffd47,_0x284f52,_0x5bc9d3,u['getMultiRangeId']());return _0x6aa059;}['markInlineFormat'](_0x45e55f,_0x421494,_0xf4bc48=null,_0x1f995e={}){if(_0xf4bc48=_0xf4bc48||Ft(_0x421494),_0x45e55f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4d7039=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf4bc48,'accept');return this['forceDefaultExecution'](()=>_0x4d7039([_0x45e55f],_0x421494,_0x1f995e)),null;}const _0x156f5f=this['editor']['plugins']['get']('Users')['me'],_0x1fa912=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x217d51,meta:_0x4ee76d}of this['_findSuggestions'](_0x45e55f,'insertion'))_0x4ee76d['isOwn']&&!_0x4ee76d['isInsideObject']&&_0x1fa912['push'](..._0x217d51['getRanges']());}const _0x3d3216=function(_0x4a3a5b,_0x50f1fc){const _0x674faa=[];for(const _0x5104a6 of _0x50f1fc){const _0x2efc1c=_0x4a3a5b['getIntersection'](_0x5104a6);_0x2efc1c&&_0x674faa['push'](_0x2efc1c);}return _0x674faa;}(_0x45e55f,_0x1fa912),_0x40f0d7=function(_0x5a0fce,_0x4cdfac){const _0x2656c4=[_0x5a0fce];for(const _0x3f2db3 of _0x4cdfac){let _0x2e263b=0x0;for(;_0x2e263b<_0x2656c4['length'];){const _0xcf5849=_0x2656c4[_0x2e263b]['getDifference'](_0x3f2db3);_0x2656c4['splice'](_0x2e263b,0x1,..._0xcf5849),_0x2e263b+=_0xcf5849['length'];}}return _0x2656c4;}(_0x45e55f,_0x1fa912);_0x3d3216['length']&&this['_model']['change'](()=>{for(const _0x4c4db2 of _0x3d3216){const _0x4e037f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf4bc48,'accept');this['forceDefaultExecution'](()=>_0x4e037f([_0x4c4db2],_0x421494,_0x1f995e));}});for(const _0xbe183d of _0x40f0d7){let _0x91fa61=null,_0x1ae08b=_0xbe183d['start'],_0x56539b=_0xbe183d['end'];for(const {suggestion:_0x5b06af,meta:_0x25e7fa}of this['_findSuggestions'](_0xbe183d,'formatInline')){if(!_0x25e7fa['isOwn'])continue;if(_0x5b06af['subType']!=_0xf4bc48)continue;if(!Kt(_0x5b06af,_0x1f995e))continue;const _0xe12c9c=_0x5b06af['getFirstRange']();if(_0xe12c9c['containsRange'](_0xbe183d,!0x0))return null;_0x1ae08b=_0x1ae08b['isBefore'](_0xe12c9c['start'])?_0x1ae08b:_0xe12c9c['start'],_0x56539b=_0x56539b['isAfter'](_0xe12c9c['end'])?_0x56539b:_0xe12c9c['end'],_0x91fa61?_0xe12c9c['start']['isBefore'](_0x91fa61['getFirstRange']()['start'])?(_0x91fa61['removeMarkers'](),_0x91fa61=_0x5b06af):_0x5b06af['removeMarkers']():_0x91fa61=_0x5b06af;}const _0xc6bf6=this['_model']['createRange'](_0x1ae08b,_0x56539b);if(_0x91fa61)this['_setSuggestionRange'](_0x91fa61,_0xc6bf6);else{const _0x5194d3=_0x12e0b6(),_0x294d55=_0x156f5f['id'];this['_setSuggestionData']({'id':_0x5194d3,'type':'formatInline:'+_0xf4bc48,'data':_0x421494,'createdAt':new Date(),'authorId':_0x294d55,'attributes':_0x1f995e}),this['_addSuggestionMarker']('formatInline:'+_0xf4bc48,_0x5194d3,_0x294d55,_0xc6bf6);}}return null;}['markBlockFormat'](_0x11ff61,_0x580d8f,_0x1e5f28=[],_0x51c132=null,_0x257f97={}){_0x580d8f['formatGroupId']||(_0x580d8f['formatGroupId']=_0x580d8f['commandName']),_0x580d8f['multipleBlocks']=_0x11ff61['is']('range'),_0x51c132=_0x51c132||Ft(_0x580d8f);const _0x3c1b1f=_0x1e5f28['map'](_0x2072a2=>Ht(_0x2072a2,this['_model'])),_0x1356db=_0x11ff61['is']('range')?_0x11ff61:Ht(_0x11ff61,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4ef5be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51c132,'accept');return this['forceDefaultExecution'](()=>_0x4ef5be([_0x1356db],_0x580d8f,_0x257f97)),null;}_0x3c1b1f['push'](_0x1356db);let _0x20ab3a=!0x0;for(const _0x8d4906 of _0x3c1b1f)if(!this['_rangeIsInLocalUserInsertion'](_0x8d4906)){_0x20ab3a=!0x1;break;}if(_0x20ab3a&&'always'!==this['_trackFormatChanges']){const _0x18e3e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51c132,'accept');return this['forceDefaultExecution'](()=>_0x18e3e4([_0x1356db],_0x580d8f,_0x257f97)),null;}let _0x259642=null,_0x2582a8=_0x1356db['start'],_0x42fff5=_0x1356db['end'];for(const {suggestion:_0x1de33f,meta:_0x1241fd}of this['_findSuggestions'](_0x1356db,'formatBlock')){if(!_0x1241fd['isOwn'])continue;if(_0x1241fd['isNextTo']||_0x1241fd['containsRangeInObject']||_0x1241fd['isInsideObject'])continue;if(_0x1de33f['data']['formatGroupId']!=_0x580d8f['formatGroupId'])continue;if(!Kt(_0x1de33f,_0x257f97))continue;const _0x2b3063=_0x1de33f['getFirstRange']();if(_0x1de33f['subType']==_0x51c132){if(_0x2b3063['containsRange'](_0x1356db,!0x0))return null;_0x2582a8=_0x2582a8['isBefore'](_0x2b3063['start'])?_0x2582a8:_0x2b3063['start'],_0x42fff5=_0x42fff5['isAfter'](_0x2b3063['end'])?_0x42fff5:_0x2b3063['end'],_0x259642?_0x2b3063['start']['isBefore'](_0x259642['getFirstRange']()['start'])?(_0x259642['removeMarkers'](),_0x259642=_0x1de33f):_0x1de33f['removeMarkers']():_0x259642=_0x1de33f;}else{const _0x4ce73c=_0x1356db['getIntersection'](_0x2b3063);this['_cutOutSuggestionMarker'](_0x1de33f,_0x4ce73c);}}const _0x187ae5=this['editor']['plugins']['get']('Users')['me'],_0x1f22f9=_0x12e0b6(),_0x4d39c4=_0x187ae5['id'];if(_0x259642)return this['_setSuggestionRange'](_0x259642,this['_model']['createRange'](_0x2582a8,_0x42fff5)),_0x259642;{const _0x49b48f=this['_setSuggestionData']({'id':_0x1f22f9,'type':'formatBlock:'+_0x51c132,'data':_0x580d8f,'createdAt':new Date(),'authorId':_0x4d39c4,'attributes':_0x257f97});return this['_addSuggestionMarker']('formatBlock:'+_0x51c132,_0x1f22f9,_0x4d39c4,this['_model']['createRange'](_0x2582a8,_0x42fff5)),_0x49b48f;}}['markMultiRangeBlockFormat'](_0x14302e,_0x2af82b,_0x192781=[],_0x3cc6ed=null,_0x1d25d1={}){_0x2af82b['formatGroupId']||(_0x2af82b['formatGroupId']=_0x2af82b['commandName']);const _0x4d6025=_0x14302e[0x0];_0x2af82b['multipleBlocks']=_0x4d6025['is']('range'),_0x3cc6ed=_0x3cc6ed||Ft(_0x2af82b);const _0x2c0417=_0x192781['map'](_0x332ee9=>Ht(_0x332ee9,this['_model'])),_0x199dfa=_0x4d6025['is']('range')?_0x14302e:_0x14302e['map'](_0x42de76=>Ht(_0x42de76,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3b76ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'accept');return this['forceDefaultExecution'](()=>_0x3b76ed(_0x199dfa,_0x2af82b,_0x1d25d1)),null;}_0x2c0417['push'](..._0x199dfa);let _0x21efd1=!0x0;for(const _0x2dcbd3 of _0x2c0417)if(!this['_rangeIsInLocalUserInsertion'](_0x2dcbd3)){_0x21efd1=!0x1;break;}if(_0x21efd1&&'always'!==this['_trackFormatChanges']){const _0xbf1124=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'accept');return this['forceDefaultExecution'](()=>_0xbf1124(_0x199dfa,_0x2af82b,_0x1d25d1)),null;}const _0x43cb3f=this['editor']['plugins']['get']('Users')['me'];for(const _0x165939 of this['getSuggestions']()){if(_0x165939['author']['id']!=_0x43cb3f['id'])continue;if('formatBlock'!=_0x165939['type']||_0x165939['data']['formatGroupId']!=_0x2af82b['formatGroupId'])continue;if(!Kt(_0x165939,_0x1d25d1))continue;const _0x2b55cd=_0x165939['subType']==_0x3cc6ed;for(let _0x221109=0x0;_0x221109<_0x199dfa['length'];_0x221109++){const _0x1a4958=_0x199dfa[_0x221109];for(const _0x4dbb60 of _0x165939['getMarkers']()){const _0x55eb1f=_0x4dbb60['getRange']();if(_0x1a4958['isEqual'](_0x55eb1f)){_0x2b55cd?(_0x199dfa['splice'](_0x221109,0x1),_0x221109--):_0x165939['removeMarker'](_0x4dbb60['name']);break;}}}}if(0x0==_0x199dfa['length'])return null;const _0x7722f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3cc6ed,'join');for(const _0x447a98 of this['getSuggestions']())if(_0x447a98['author']['id']==_0x43cb3f['id']&&'formatBlock'==_0x447a98['type']&&_0x447a98['data']['formatGroupId']==_0x2af82b['formatGroupId']&&_0x447a98['subType']==_0x3cc6ed&&Kt(_0x447a98,_0x1d25d1)&&(_0x7722f(_0x447a98['getRanges'](),_0x199dfa)||_0x7722f(_0x199dfa,_0x447a98['getRanges']()))){for(const _0x38a5f3 of _0x199dfa)_0x447a98['addRange'](_0x38a5f3);return _0x447a98;}const _0x5fcd42=_0x12e0b6(),_0x131334=_0x43cb3f['id'],_0x3c1f8e='formatBlock:'+_0x3cc6ed,_0x2683d9=this['_setSuggestionData']({'id':_0x5fcd42,'type':_0x3c1f8e,'data':_0x2af82b,'createdAt':new Date(),'authorId':_0x131334,'attributes':_0x1d25d1});for(const _0x18f906 of _0x199dfa)this['_addSuggestionMarker'](_0x3c1f8e,_0x5fcd42,_0x131334,_0x18f906,u['getMultiRangeId']());return _0x2683d9;}['markDeletion'](_0x2156c5,_0x1cec58=null,_0x434a4e={}){if(_0x2156c5['isCollapsed'])return null;const _0x266ed2=this['editor']['plugins']['get']('Users')['me'],_0x360065=new _0x14dd4f(_0x2156c5['start'],_0x2156c5['end']);for(const {suggestion:_0x2fd8bd,meta:_0x1da0f2}of this['_findSuggestions'](_0x360065,'insertion'))if(_0x1da0f2['isOwn']&&!_0x1da0f2['isNextTo']){if(_0x2fd8bd['isMultiRange']){const _0x2364af=_0x2fd8bd['getRanges']()['filter'](_0x3ef516=>'$graveyard'!=_0x3ef516['root']['rootName']);_0x2364af['every'](_0x3aa693=>_0x360065['containsRange'](_0x3aa693,!0x0))&&_0x2fd8bd['discard']();if(_0x2364af['some'](_0x2e7a95=>_0x2e7a95['containsRange'](_0x360065,!0x0))){const _0x4a9d0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1cec58,'accept');return this['forceDefaultExecution'](()=>_0x4a9d0b([_0x360065],null,_0x434a4e)),null;}}else{const _0x42d6bf=_0x360065['getIntersection'](_0x2fd8bd['getFirstRange']());null!==_0x42d6bf&&_0x2fd8bd['_onDiscard']([_0x42d6bf],null,_0x434a4e);}}if(_0x360065['detach'](),_0x360065['isCollapsed']||'$graveyard'==_0x360065['root']['rootName'])return null;let _0x35e43d=null,_0x479fb3=_0x360065['start'],_0x862d4c=_0x360065['end'];const _0x4e932c=this['_findSuggestions'](_0x360065,'deletion');for(const {suggestion:_0x37a630,meta:_0x1f5c94}of _0x4e932c){const _0x1619f0=this['_model']['createRange'](_0x479fb3,_0x862d4c);if(_0x1f5c94['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f5c94['containsRangeInObject']&&!_0x1f5c94['isInsideObject'])){if(_0x37a630['isMultiRange']){if(!Kt(_0x37a630,_0x434a4e))continue;let _0x38d46b=!0x0;for(const _0x59c65a of _0x37a630['getRanges']()){if(_0x59c65a['containsRange'](_0x1619f0,!0x0))return _0x37a630;_0x1619f0['containsRange'](_0x59c65a)||(_0x38d46b=!0x1);}_0x38d46b&&_0x37a630['discard']();}else{const _0x5ad824=_0x37a630['getFirstRange']();if(_0x5ad824['containsRange'](_0x1619f0,!0x0))return _0x37a630;if(!Kt(_0x37a630,_0x434a4e)){_0x1619f0['containsRange'](_0x5ad824)?_0x37a630['removeMarkers']():_0x5ad824['containsPosition'](_0x479fb3)?_0x479fb3=_0x5ad824['end']:_0x5ad824['containsPosition'](_0x862d4c)&&(_0x862d4c=_0x5ad824['start']);continue;}_0x479fb3=_0x479fb3['isBefore'](_0x5ad824['start'])?_0x479fb3:_0x5ad824['start'],_0x862d4c=_0x862d4c['isAfter'](_0x5ad824['end'])?_0x862d4c:_0x5ad824['end'],_0x434a4e=Object['assign']({},_0x37a630['attributes']),_0x35e43d?_0x5ad824['start']['isBefore'](_0x35e43d['getFirstRange']()['start'])?(_0x35e43d['removeMarkers'](),_0x35e43d=_0x37a630):_0x37a630['removeMarkers']():_0x35e43d=_0x37a630;}}}if(_0x35e43d)return this['_setSuggestionRange'](_0x35e43d,this['_model']['createRange'](_0x479fb3,_0x862d4c)),_0x35e43d;{const _0x75250e=_0x12e0b6(),_0x45d1d3=this['_model']['createRange'](_0x479fb3,_0x862d4c),_0x1ff243=_0x266ed2['id'],_0x593527=_0x1cec58?'deletion:'+_0x1cec58:'deletion',_0x445f25=this['_setSuggestionData']({'id':_0x75250e,'type':_0x593527,'createdAt':new Date(),'authorId':_0x1ff243,'attributes':_0x434a4e});return this['_addSuggestionMarker'](_0x593527,_0x75250e,_0x1ff243,_0x45d1d3),_0x445f25;}}['markMultiRangeDeletion'](_0x5e7f81,_0x3db0b7='multi',_0x3e9b9c={}){const _0x4f1206=this['editor']['plugins']['get']('Users')['me'],_0x2a56af=_0x5e7f81['map'](_0x1139e7=>new _0x14dd4f(_0x1139e7['start'],_0x1139e7['end'])),_0x1b1c4e=new Set();for(const {suggestion:_0xeaef6a,meta:_0xacc4b2}of this['_findSuggestions'](_0x2a56af,'insertion'))_0xacc4b2['isOwn']&&!_0xacc4b2['isNextTo']&&_0x1b1c4e['add'](_0xeaef6a);for(const _0x444ed7 of _0x1b1c4e)if(_0x444ed7['isMultiRange']){const _0x155247=_0x444ed7['getRanges']();(!_0x444ed7['attributes']||!_0x444ed7['attributes']['skipNestingCheck'])&&(_0x155247['every'](_0xc02959=>_0x2a56af['some'](_0x33d0fc=>_0x33d0fc['containsRange'](_0xc02959,!0x0)))&&_0x444ed7['discard']());if(_0x2a56af['every'](_0x18841b=>_0x155247['some'](_0x56a8d2=>_0x56a8d2['containsRange'](_0x18841b,!0x0)))){const _0x4c3587=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'accept');return this['forceDefaultExecution'](()=>_0x4c3587(_0x5e7f81,null,_0x3e9b9c)),null;}}else{const _0x1b7c2a=_0x444ed7['getFirstRange']();_0x2a56af['some'](_0x191d59=>_0x191d59['containsRange'](_0x1b7c2a,!0x0))&&_0x444ed7['discard']();if(_0x2a56af['every'](_0x2bb139=>_0x1b7c2a['containsRange'](_0x2bb139,!0x0))){const _0x5a0fb0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'accept');return this['forceDefaultExecution'](()=>_0x5a0fb0(_0x2a56af,null,_0x3e9b9c)),null;}}const _0x26e42b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3db0b7,'join');let _0x18abac=null;for(const _0x1eaced of this['getSuggestions']())if(_0x1eaced['author']['id']==_0x4f1206['id']&&_0x1eaced['isInContent']&&'deletion'==_0x1eaced['type']&&_0x1eaced['subType']==_0x3db0b7&&Kt(_0x1eaced,_0x3e9b9c)&&(_0x26e42b(_0x1eaced['getRanges'](),_0x2a56af)||_0x26e42b(_0x2a56af,_0x1eaced['getRanges']()))){if(_0x18abac){if(_0x1eaced['commentThread']&&_0x1eaced['commentThread']['length'])continue;for(const _0xa94f15 of _0x1eaced['getRanges']())_0x18abac['isIntersectingWithRange'](_0xa94f15)||_0x18abac['addRange'](_0xa94f15);_0x1eaced['removeMarkers']();}else{_0x18abac=_0x1eaced;for(const _0x560a79 of _0x2a56af)_0x1eaced['isIntersectingWithRange'](_0x560a79)||_0x1eaced['addRange'](_0x560a79);}}if(_0x18abac)return _0x18abac;_0x1b1c4e['clear']();for(const {suggestion:_0x79f312,meta:_0x50332b}of this['_findSuggestions'](_0x2a56af,'deletion'))_0x50332b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50332b['containsRangeInObject']&&!_0x50332b['isInsideObject'])&&Kt(_0x79f312,_0x3e9b9c)&&_0x1b1c4e['add'](_0x79f312);for(const _0x4225d1 of _0x1b1c4e){const _0x4eea4b=_0x4225d1['getRanges']();if(!_0x3e9b9c||!_0x3e9b9c['skipNestingCheck']){if(_0x2a56af['every'](_0x67c02f=>_0x4eea4b['some'](_0x3d31d8=>_0x3d31d8['containsRange'](_0x67c02f,!0x0))))return _0x4225d1;}(!_0x4225d1['attributes']||!_0x4225d1['attributes']['skipNestingCheck'])&&(_0x4eea4b['every'](_0x4cacb8=>_0x2a56af['some'](_0x554fdd=>_0x554fdd['containsRange'](_0x4cacb8,!0x0)))&&_0x4225d1['discard']());}const _0x30b20f=_0x12e0b6(),_0xba21ae=_0x4f1206['id'],_0x20c433='deletion:'+_0x3db0b7,_0x3715a0=this['_setSuggestionData']({'id':_0x30b20f,'type':_0x20c433,'createdAt':new Date(),'authorId':_0xba21ae,'attributes':_0x3e9b9c});for(const _0x5a3767 of _0x2a56af)_0x5a3767['detach'](),_0x5a3767['isCollapsed']||'$graveyard'==_0x5a3767['root']['rootName']||this['_addSuggestionMarker'](_0x20c433,_0x30b20f,_0xba21ae,_0x5a3767,u['getMultiRangeId']());return _0x3715a0;}['markAttributeChange'](_0x362af2,_0xae4326,_0x287c4c,_0x201072,_0x298484){if(_0x362af2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3006d4=this['editor']['plugins']['get']('Users')['me']['id'],_0x1a7a57=Array['from'](this['_suggestions']['values']())['filter'](_0x153aa5=>'attribute'==_0x153aa5['type']&&_0x153aa5['data']['key']==_0xae4326&&_0x153aa5['isIntersectingWithRange'](_0x362af2));if('default'===this['_trackFormatChanges']){const _0x5f2ec9=this['_findSuggestions'](_0x362af2,'insertion')['filter'](({meta:_0x3e07cf})=>_0x3e07cf['isOwn']&&!_0x3e07cf['isInsideObject']&&!_0x3e07cf['isNextTo'])['map'](({suggestion:_0x423d00})=>_0x423d00);_0x1a7a57['unshift'](..._0x5f2ec9);}const _0x115298=new Map([[_0x362af2,_0x287c4c]]);for(const _0x14c6dc of _0x1a7a57){const _0x96470e='attribute'==_0x14c6dc['type']?_0x14c6dc['data']['oldValue']:void 0x0,_0x444b05=_0x14c6dc['getFirstRange'](),_0x4adb04=Array['from'](_0x115298['keys']())['find'](_0x14ab0c=>_0x14ab0c['isIntersecting'](_0x444b05));if(!_0x4adb04)continue;const _0x50fce6=_0x4adb04['getDifference'](_0x444b05);this['_isBlockAttribute'](_0xae4326)&&'insertion'==_0x14c6dc['type']&&0x0!=_0x50fce6['length']||(_0x115298['delete'](_0x4adb04),_0x50fce6['forEach'](_0x35636a=>{_0x115298['set'](_0x35636a,_0x287c4c);}),'insertion'!=_0x14c6dc['type']&&_0x96470e!=_0x201072&&_0x115298['set'](_0x4adb04['getIntersection'](_0x444b05),_0x96470e));}const _0x2a6cdc=[];for(const [_0x5063b5,_0x3b2791]of _0x115298){const _0x4bc830=_0x12e0b6(),_0x1d255b={'key':_0xae4326,'oldValue':_0x3b2791,'newValue':_0x201072};_0xae4326['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':_0xae4326});const _0x1d31dc=('attribute:'+(_0xae4326+'|'+Ft({'newValue':_0x201072})))['substring'](0x0,0x3c),_0x34b582=this['_setSuggestionData']({'id':_0x4bc830,'type':_0x1d31dc,'data':_0x1d255b,'createdAt':new Date(),'authorId':_0x3006d4,'attributes':_0x298484});_0x2a6cdc['push'](_0x34b582),this['_addSuggestionMarker'](_0x1d31dc,_0x4bc830,_0x3006d4,_0x5063b5);}return _0x2a6cdc;}['enableDefaultAttributesIntegration'](_0x359e5e){this['enableCommand'](_0x359e5e,(_0x14090a,..._0x18c2bd)=>{this['_recordAttributeChanges'](()=>{_0x14090a(..._0x18c2bd);});});}['registerBlockAttribute'](_0x49d4c0){this['_blockAttributeKeys']['add'](_0x49d4c0);}['registerInlineAttribute'](_0x54c184){this['_inlineAttributeKeys']['add'](_0x54c184);}['_getAttributeKey'](_0x44ae1a){return'attribute'==_0x44ae1a['type']?_0x44ae1a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x157539,_0x3c0ae3){const _0x2acc42=_0x157539['getFirstMarker']();this['_model']['change'](_0x1165a3=>{_0x1165a3['updateMarker'](_0x2acc42,{'range':_0x3c0ae3});});}['_addThreadToSuggestion'](_0x2bb11f){const _0x11e6fb=_0x2bb11f['id'],_0x5e66eb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x11e6fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e66eb,'threadId':_0x11e6fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4faa92=this['_commentsRepository']['getCommentThread'](_0x11e6fb);_0x4faa92['unbind']('isRemovable'),_0x4faa92['isRemovable']=!0x1,_0x2bb11f['commentThread']=_0x4faa92;}['_checkSuggestionCorrectness'](_0x2f5aa7,_0x486870,_0x1aab2d,_0x13e81b){if(_0x2f5aa7['type']!=_0x486870||_0x2f5aa7['subType']!=_0x1aab2d||_0x2f5aa7['creator']['id']!=_0x13e81b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c4487('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3628a7,_0x416d61){const _0x4137a5=_0x3628a7['getFirstRange']();if(_0x416d61['isEqual'](_0x4137a5))_0x3628a7['removeMarkers']();else{if(_0x4137a5['containsRange'](_0x416d61)){const _0x5ae5ab=this['_model']['createPositionAt'](_0x416d61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x4137a5['start'],_0x5ae5ab));const _0x5e875c=_0x12e0b6(),_0x3dfbad=_0x3628a7['creator']['id'],_0xc276f=_0x3628a7['type']+':'+_0x3628a7['subType'];this['_setSuggestionData']({'id':_0x5e875c,'type':_0xc276f,'createdAt':new Date(),'authorId':_0x3dfbad,'data':_0x3628a7['data'],'attributes':_0x3628a7['attributes']});const _0x4a529a=this['_model']['createPositionAt'](_0x416d61['end']['parent'],'after'),_0x30e775=this['_model']['createRange'](_0x4a529a,_0x4137a5['end']);this['_addSuggestionMarker'](_0xc276f,_0x5e875c,_0x3dfbad,_0x30e775);}else{if(_0x4137a5['containsPosition'](_0x416d61['start'])){const _0x476b48=this['_model']['createPositionAt'](_0x416d61['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x4137a5['start'],_0x476b48));}else{const _0x19a24d=this['_model']['createPositionAt'](_0x416d61['end']['parent'],'after');this['_setSuggestionRange'](_0x3628a7,this['_model']['createRange'](_0x19a24d,_0x4137a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xa0c970){for(const {suggestion:_0x4c92bd,meta:_0x195866}of this['_findSuggestions'](_0xa0c970,'insertion')){if(!_0x195866['isOwn'])continue;const _0x269ea6=_0x4c92bd['getRanges']();for(const _0x46e560 of _0x269ea6)if(!_0xa0c970['getDifference'](_0x46e560)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5984a1){const _0x34450d=this['editor']['plugins']['get']('Users')['getUser'](_0x5984a1);if(!_0x34450d)throw new _0x3c4487('track-changes-user-not-found',this);return _0x34450d;}['_getExternalAuthor'](_0x166958){const _0x3ec05b=this['editor']['plugins']['get']('Users'),_0x3c9f3b=_0x1f57d0('external:'+_0x166958),_0x300c5e=_0x3ec05b['getUser'](_0x3c9f3b);return _0x300c5e||_0x3ec05b['addUser']({'id':_0x3c9f3b,'name':_0x166958});}['_createSuggestion'](_0x1ae764,_0x315b39,_0x4c98a9,_0x461782,_0x156743){const _0x354bff=this['_getAuthorFromId'](_0x461782),_0x5d72ea=this['_suggestionFactory']['buildSuggestion'](_0x1ae764,_0x315b39,_0x4c98a9,_0x354bff,_0x156743,_0x33afb7=>{this['_updateSuggestionData'](_0x4c98a9,{'attributes':_0x33afb7});const _0x41dd77=this['getSuggestion'](_0x4c98a9);this['_joinWithAdjacentSuggestions'](new Set([_0x41dd77])),this['_refreshSuggestionsChain'](new Set([_0x41dd77]));});return this['listenTo'](_0x5d72ea,'accept',()=>{this['_updateSuggestionData'](_0x4c98a9,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5d72ea,'discard',()=>{this['_updateSuggestionData'](_0x4c98a9,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4c98a9,_0x5d72ea),this['_suggestionState']['set'](_0x5d72ea,'notReady'),_0x5d72ea;}['_splitMarkerName'](_0x37904f){const _0x233d54=_0x37904f['split'](':');return{'group':_0x233d54[0x0],'type':_0x233d54[0x1],'subType':_0x233d54['length']>=0x5?_0x233d54[0x2]:null,'id':_0x233d54['length']<0x5?_0x233d54[0x2]:_0x233d54[0x3],'authorId':_0x233d54['length']<0x5?_0x233d54[0x3]:_0x233d54[0x4],'markerCount':0x6==_0x233d54['length']?_0x233d54[0x5]:null};}['_breakSuggestionMarker'](_0x3e4bfa,_0x3dd81f,_0x1621ca){const _0x2671f8=_0x3e4bfa['getFirstRange'](),_0x585b7d=_0x2671f8['start'],_0x39fef5=_0x2671f8['end'];this['_setSuggestionRange'](_0x3e4bfa,this['_model']['createRange'](_0x585b7d,_0x3dd81f));const _0x57fd21=_0x12e0b6(),_0x226c12=_0x3e4bfa['creator']['id'],_0x587da3=_0x3e4bfa['type']+(_0x3e4bfa['subType']?':'+_0x3e4bfa['subType']:'');this['_setSuggestionData']({'id':_0x57fd21,'type':_0x587da3,'createdAt':new Date(),'authorId':_0x226c12,'originalSuggestionId':_0x3e4bfa['id'],'attributes':_0x3e4bfa['attributes'],'data':_0x3e4bfa['data']});const _0x2a3de8=this['_getAttributeKey'](_0x3e4bfa);('formatBlock'==_0x3e4bfa['type']||_0x2a3de8&&this['_isBlockAttribute'](_0x2a3de8))&&(_0x1621ca=this['_model']['createPositionBefore'](_0x1621ca['parent'])),this['_addSuggestionMarker'](_0x587da3,_0x57fd21,_0x226c12,this['_model']['createRange'](_0x1621ca,_0x39fef5));}['_findSuggestions'](_0x21efb8,_0x1879a4=null){const _0x2554ee=[],_0x1ab8c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21efb8)||(_0x21efb8=[_0x21efb8]);for(const _0x138d1a of this['getSuggestions']()){if(!_0x138d1a['isInContent'])continue;if(_0x1879a4&&_0x138d1a['type']!=_0x1879a4)continue;let _0x4618f6=!0x1;for(const _0x46c9ff of _0x138d1a['getRanges']()){for(const _0x5011a9 of _0x21efb8){const _0x235c5e=_0x5011a9['start']['isEqual'](_0x46c9ff['end'])||_0x5011a9['end']['isEqual'](_0x46c9ff['start']);if(_0x235c5e||_0x5011a9['getIntersection'](_0x46c9ff)){const _0x36830c=_0x5011a9['containsRange'](_0x46c9ff)&&Vt(this['_model']['schema'],_0x46c9ff['start'],_0x5011a9),_0x3c36b=_0x46c9ff['containsRange'](_0x5011a9)&&Vt(this['_model']['schema'],_0x5011a9['start'],_0x46c9ff);_0x2554ee['push']({'suggestion':_0x138d1a,'meta':{'isOwn':_0x1ab8c0==_0x138d1a['author'],'isNextTo':_0x235c5e,'isInsideObject':_0x36830c,'containsRangeInObject':_0x3c36b}}),_0x4618f6=!0x0;break;}}if(_0x4618f6)break;}}return _0x2554ee;}['_addSuggestionMarker'](_0x1fc44c,_0x2159b3,_0x38f26d,_0x399873,_0x2535b8){this['_model']['change'](_0x17eed9=>{let _0x141ac6='suggestion:'+_0x1fc44c+':'+_0x2159b3+':'+_0x38f26d;_0x2535b8&&(_0x141ac6=_0x141ac6+':'+_0x2535b8),_0x17eed9['addMarker'](_0x141ac6,{'range':_0x399873,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18eef7){const _0x287d77=_0x18eef7['previous'],_0x33cde0=_0x18eef7['next'];_0x18eef7['previous']=null,_0x18eef7['next']=null,null!=_0x287d77&&_0x287d77['next']==_0x18eef7&&(_0x287d77['next']=_0x33cde0),null!=_0x33cde0&&_0x33cde0['previous']==_0x18eef7&&(_0x33cde0['previous']=_0x287d77),'ready'==this['_suggestionState']['get'](_0x18eef7)&&(this['_suggestionState']['set'](_0x18eef7,'removed'),this['fire']('suggestionUnloaded',_0x18eef7,_0x287d77,_0x33cde0));}['_setSuggestionData'](_0x3c6f3b){const _0x531d4c=_0x3c6f3b['id'],_0x1f1110=this['addSuggestionData'](_0x3c6f3b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42cc1b=this['editor']['plugins']['get']('PendingActions'),_0x443ba0=_0x1f1110['hasComments'],_0x52c2c5=_0x1f1110['subType']?_0x1f1110['type']+':'+_0x1f1110['subType']:_0x1f1110['type'],_0x4e8b2b=this['editor']['locale'],_0x542df3=_0x42cc1b['add'](o(_0x4e8b2b,'PENDING_ACTION_SUGGESTION')),_0x3e98de={'id':_0x531d4c,'type':_0x52c2c5,'hasComments':_0x443ba0,'data':_0x3c6f3b['data']||null,'originalSuggestionId':_0x3c6f3b['originalSuggestionId']||null,'attributes':_0x1f1110['attributes']};this['_adapter']['addSuggestion'](_0x3e98de)['then'](_0x1f63b2=>{_0x1f1110['_saved']=!0x0,_0x42cc1b['remove'](_0x542df3),_0x1f63b2&&_0x1f63b2['createdAt']&&(this['_suggestions']['get'](_0x531d4c)['createdAt']=_0x1f63b2['createdAt']);})['catch'](_0x5692fb=>{throw _0x194bc4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f1110['discard']();}),_0x1f1110['stopListening'](),this['_suggestions']['delete'](_0x1f1110['id']),this['_suggestionState']['delete'](_0x1f1110),_0x5692fb;});}return _0x1f1110;}['_isBlockAttribute'](_0x16f25e){return this['_blockAttributeKeys']['has'](_0x16f25e);}['_updateSuggestionData'](_0x32f459,_0x2c22ce){const _0xc0e0ae=this['editor']['plugins']['get']('PendingActions'),_0x4a31be=this['getSuggestion'](_0x32f459);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a31be['_saved']){const _0x31834e=_0xc0e0ae['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x32f459,_0x2c22ce)['then'](()=>{_0xc0e0ae['remove'](_0x31834e);});}else _0x4a31be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x32f459,_0x2c22ce);});}}['_getSuggestionData'](_0x5ab8bc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c4487('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5ab8bc);}['_handleNewSuggestionMarker'](_0x5c9460){const {id:_0x1aca59,type:_0x4a529c,subType:_0x1a4ad3,authorId:_0x2bb46c}=this['_splitMarkerName'](_0x5c9460),_0x1abb8a=this['_suggestions']['get'](_0x1aca59)||this['_createSuggestion'](_0x4a529c,_0x1a4ad3,_0x1aca59,_0x2bb46c,{});switch(this['_checkSuggestionCorrectness'](_0x1abb8a,_0x4a529c,_0x1a4ad3,_0x2bb46c),this['_suggestionState']['get'](_0x1abb8a)){case'notReady':this['_getSuggestionData'](_0x1aca59)['then'](_0x57537a=>{let _0x2722bb=Promise['resolve']();_0x57537a['hasComments']&&(_0x2722bb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1aca59})),_0x2722bb['then'](()=>{this['addSuggestionData'](_0x57537a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1abb8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1aca59,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1abb8a,'ready'),this['fire']('suggestionLoaded',_0x1abb8a);break;case'ready':this['fire']('suggestionChanged',_0x1abb8a);}return _0x1abb8a['addMarkerName'](_0x5c9460),_0x1abb8a;}['_refreshSuggestionsChain'](_0xe32ec6){const _0x3bda3f=Array['from'](_0xe32ec6),_0xc825d8=_0x3bda3f['filter'](_0x30ef5c=>'attribute'==_0x30ef5c['type']);this['_refreshAttributeSuggestionsChain'](_0xc825d8);const _0x3b24f0=_0x3bda3f['filter'](_0x2a3cc2=>!_0x2a3cc2['isMultiRange']&&'attribute'!=_0x2a3cc2['type']),_0x57ca3e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x198f4c=>!_0x198f4c['isMultiRange']&&'attribute'!=_0x198f4c['type']),_0x352fda=_0x57ca3e['filter'](_0x29ef22=>!_0xe32ec6['has'](_0x29ef22)),_0x5e8292=new Map(_0x57ca3e['map'](_0x85c16f=>[_0x85c16f,this['_suggestionFactory']['getSuggestionCallback'](_0x85c16f['type'],_0x85c16f['subType'],'chain')])),_0x4cc650=new Map(_0x57ca3e['map'](_0xe24ef0=>[_0xe24ef0,_0xe24ef0['getFirstRange']()])),_0x2de314=new Set(),_0x279a18=new Set();for(let _0x3ca75a=0x0;_0x3ca75a<_0x3b24f0['length'];_0x3ca75a++)_0x2e9777(_0x3b24f0[_0x3ca75a],_0x3b24f0,_0x3ca75a+0x1);for(let _0x1dfb3d=0x0;_0x1dfb3d<_0x3b24f0['length'];_0x1dfb3d++)_0x2e9777(_0x3b24f0[_0x1dfb3d],_0x352fda,0x0);const _0x4fbeeb=new Set();for(let _0x2018b9=0x0;_0x2018b9<_0x3b24f0['length'];_0x2018b9++){const _0x15e513=_0x3b24f0[_0x2018b9];!_0x279a18['has'](_0x15e513)&&_0x15e513['previous']&&(_0x4fbeeb['add'](_0x15e513['previous']),_0x15e513['previous']['next']===_0x15e513&&(_0x15e513['previous']['next']=null),_0x15e513['previous']=null),!_0x2de314['has'](_0x15e513)&&_0x15e513['next']&&(_0x4fbeeb['add'](_0x15e513['next']),_0x15e513['next']['previous']===_0x15e513&&(_0x15e513['next']['previous']=null),_0x15e513['next']=null);}function _0x2e9777(_0x163d6f,_0x5297f4,_0x23d2ec){for(let _0x347004=_0x23d2ec;_0x347004<_0x5297f4['length'];_0x347004++){const _0x2e5883=_0x28f30c(_0x163d6f,_0x5297f4[_0x347004]);_0x2e5883&&(_0x2e5883[0x0]['next']=_0x2e5883[0x1],_0x2e5883[0x1]['previous']=_0x2e5883[0x0],_0x2de314['add'](_0x2e5883[0x0]),_0x279a18['add'](_0x2e5883[0x1]));}}function _0x28f30c(_0x22e757,_0x411bc){if(_0x22e757['author']['id']!==_0x411bc['author']['id'])return null;const _0x1befca=_0x5e8292['get'](_0x22e757)(_0x22e757,_0x411bc,_0x4cc650['get'](_0x22e757),_0x4cc650['get'](_0x411bc));if(!_0x1befca)return null;return _0x5e8292['get'](_0x411bc)(_0x22e757,_0x411bc,_0x4cc650['get'](_0x22e757),_0x4cc650['get'](_0x411bc))?_0x1befca[0x1]['commentThread']&&_0x1befca[0x1]['commentThread']['length']?null:_0x1befca:null;}_0x4fbeeb['size']&&this['_refreshSuggestionsChain'](_0x4fbeeb);}['_refreshAttributeSuggestionsChain'](_0x3cc2cf){if(0x0==_0x3cc2cf['length'])return;const _0x26a821=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x298d43=>'attribute'==_0x298d43['type']&&_0x298d43['_isDataLoaded']),_0x1ee4c2=[],_0x5e292f=new Map();for(const _0x50ad4f of _0x26a821){const _0x2243c8=_0x1f57d0(_0x50ad4f['attributes']);_0x5e292f['has'](_0x2243c8)||(_0x5e292f['set'](_0x2243c8,_0x1ee4c2['length']),_0x1ee4c2['push']([]));const _0x326bd1=_0x5e292f['get'](_0x2243c8);_0x1ee4c2[_0x326bd1]['push'](_0x50ad4f);}!(function(){_0x1ee4c2['sort']((_0x65d29b,_0x355c0d)=>{const _0x2739ea=_0x65d29b[0x0]['createdAt'],_0x2481ba=_0x355c0d[0x0]['createdAt'];return _0x2739ea==_0x2481ba?_0x65d29b[0x0]['attributes']['groupId']<_0x355c0d[0x0]['attributes']['groupId']?-0x1:0x1:_0x2739ea<_0x2481ba?-0x1:0x1;});for(const _0x58adc7 of _0x1ee4c2)_0x58adc7['sort']((_0x83ab35,_0x3cc693)=>_0x83ab35['id']<_0x3cc693['id']?-0x1:0x1);}());for(let _0x1b1273=0x0;_0x1b1273<_0x1ee4c2['length'];_0x1b1273++){if(0x0==_0x1ee4c2[_0x1b1273]['length'])continue;const _0x91f2c=[];for(let _0x103f86=_0x1b1273+0x1;_0x103f86<_0x1ee4c2['length'];_0x103f86++)0x0!=_0x1ee4c2[_0x103f86]['length']&&_0x215308(_0x1ee4c2[_0x1b1273],_0x1ee4c2[_0x103f86])&&_0x91f2c['push'](_0x103f86);for(const _0x411083 of _0x91f2c)_0x1ee4c2[_0x1b1273]=_0x1ee4c2[_0x1b1273]['concat'](_0x1ee4c2[_0x411083]),_0x1ee4c2[_0x411083]=[];}for(const _0x31b7b4 of _0x1ee4c2)for(let _0x5b824b=0x0;_0x5b824b<_0x31b7b4['length'];_0x5b824b++){const _0x27397c=_0x31b7b4[_0x5b824b+0x1]||null;_0x31b7b4[_0x5b824b]['next']!==_0x27397c&&(_0x31b7b4[_0x5b824b]['next']=_0x27397c);}for(const _0x4ac90c of _0x1ee4c2)for(let _0x56aa9e=0x0;_0x56aa9e<_0x4ac90c['length'];_0x56aa9e++){const _0x454300=_0x4ac90c[_0x56aa9e-0x1]||null;_0x4ac90c[_0x56aa9e]['previous']!==_0x454300&&(_0x4ac90c[_0x56aa9e]['previous']=_0x454300);}function _0x215308(_0x469ebd,_0x44f93f){if(_0x469ebd[0x0]['attributes']['groupId']!==_0x44f93f[0x0]['attributes']['groupId']&&_0x469ebd[0x0]['author']!==_0x44f93f[0x0]['author'])return!0x1;if(!function(_0x23c05d,_0x261a9c){if(!_0x23c05d['hasComments']&&!_0x261a9c['hasComments'])return!0x0;if(_0x23c05d['hasComments']&&_0x261a9c['hasComments'])return!0x1;if(_0x23c05d['hasComments']&&_0x261a9c['createdAt']<_0x23c05d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x261a9c['hasComments']&&_0x23c05d['createdAt']<_0x261a9c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x469ebd[0x0],_0x44f93f[0x0]))return!0x1;const _0x5cd459=Et(_0x469ebd[0x0]['attributes'],'groupId'),_0x4c1c78=Et(_0x44f93f[0x0]['attributes'],'groupId');if(!_0x42e77d(_0x5cd459,_0x4c1c78))return!0x1;return!!_0x469ebd['every'](_0x4bb337=>_0x44f93f['some'](_0x156b6e=>_0x4bb337['getFirstRange']()['isEqual'](_0x156b6e['getFirstRange']())))&&_0x44f93f['every'](_0x67cdc2=>_0x469ebd['some'](_0x38de28=>_0x67cdc2['getFirstRange']()['isEqual'](_0x38de28['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4c4c04){const _0x50463a=Array['from'](_0x4c4c04),_0xa3219d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12a51c=_0xa3219d['filter'](_0xec8128=>!_0x4c4c04['has'](_0xec8128)),_0x54aa9d=new Map(_0x50463a['map'](_0x1ece1d=>[_0x1ece1d,this['_suggestionFactory']['getSuggestionCallback'](_0x1ece1d['type'],_0x1ece1d['subType'],'join')])),_0x561813=new Map(_0xa3219d['map'](_0x4bbb77=>[_0x4bbb77,_0x4bbb77['getRanges']()]));for(let _0x1b3e09=0x0;_0x1b3e09<_0x50463a['length'];_0x1b3e09++){if(_0x3d574d(this,_0x50463a[_0x1b3e09],_0x50463a,_0x1b3e09+0x1))return!0x0;}for(let _0x128e79=0x0;_0x128e79<_0x50463a['length'];_0x128e79++){if(_0x3d574d(this,_0x50463a[_0x128e79],_0x12a51c,0x0))return!0x0;}return!0x1;function _0x3d574d(_0x40fda6,_0x589281,_0x5c81e8,_0x420fd9){for(let _0x56386b=_0x420fd9;_0x56386b<_0x5c81e8['length'];_0x56386b++){const _0x586b8b=_0x5c81e8[_0x56386b];if(_0x586b8b['type']!==_0x589281['type']||_0x586b8b['author']['id']!==_0x589281['author']['id']||_0x586b8b['subType']!==_0x589281['subType'])continue;if(!zt(_0x589281,_0x586b8b))continue;if('attribute'==_0x589281['type']&&_0x589281['data']['oldValue']!=_0x586b8b['data']['oldValue'])continue;if('attribute'==_0x589281['type']&&_0x40fda6['_isBlockAttribute'](_0x589281['data']['key']))continue;if('formatBlock'==_0x589281['type']){const _0x19081f=_0x40fda6['editor']['model'],_0x44244b=_0x589281['getContainedElement']();if(_0x44244b&&(_0x19081f['schema']['isObject'](_0x44244b)||_0x19081f['schema']['isLimit'](_0x44244b)))continue;}const _0x28136e=_0x54aa9d['get'](_0x589281),_0x58b6fe=_0x561813['get'](_0x589281),_0x2c426d=_0x561813['get'](_0x586b8b),_0x36be63=_0x589281['commentThread']&&_0x589281['commentThread']['length'],_0x1b6638=_0x586b8b['commentThread']&&_0x586b8b['commentThread']['length'];if(!_0x36be63&&_0x28136e(_0x2c426d,_0x58b6fe))return _0x40fda6['_joinSuggestions'](_0x586b8b,_0x589281),_0x561813['delete'](_0x589281),!0x0;if(!_0x1b6638&&_0x28136e(_0x58b6fe,_0x2c426d))return _0x40fda6['_joinSuggestions'](_0x589281,_0x586b8b),_0x561813['delete'](_0x586b8b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x12aed4,_0x1a0a15){if(_0x12aed4['isMultiRange']){for(const _0x43dc82 of _0x1a0a15['getRanges']())_0x12aed4['addRange'](_0x43dc82);}else{const _0x57a8b8=_0x1a0a15['getFirstRange']()['end'];this['_setSuggestionRange'](_0x12aed4,this['_model']['createRange'](_0x12aed4['getFirstRange']()['start'],_0x57a8b8));}_0x1a0a15['removeMarkers']();}['_getMarkerAnnouncementText'](_0x48203c,_0x141e9d,_0x342693){const _0x2eba5c=_0x48203c['startsWith']('format')||_0x48203c['startsWith']('attribute')?'FORMATTING':_0x48203c['toUpperCase']();return o(this['editor']['locale'],_0x141e9d+'_'+_0x2eba5c+'_SUGGESTION_ANNOUNCEMENT',_0x342693);}['_initAriaMarkerChangeAnnouncements'](){const _0xe15c0=this['editor'];if(!_0xe15c0['ui'])return;const {ariaLiveAnnouncer:_0x56eb77}=_0xe15c0['ui'];_0x54a2c9(this['_model'],({left:_0x4d176c,entered:_0x414dd0})=>{for(const _0x19b7c5 of _0x4d176c){const {group:_0xd95183,type:_0x16cc8a}=this['_splitMarkerName'](_0x19b7c5['name']);if('suggestion'===_0xd95183){_0x56eb77['announce'](this['_getMarkerAnnouncementText'](_0x16cc8a,'LEAVE'));break;}}for(const _0x455820 of _0x414dd0){const {group:_0xaa572b,type:_0x53dd8b}=this['_splitMarkerName'](_0x455820['name']);if('suggestion'===_0xaa572b){_0x56eb77['announce'](this['_getMarkerAnnouncementText'](_0x53dd8b,'ENTER',_0xe7169f(_0x1980b7)));break;}}});}['_processAttributeChanges'](_0x3e69c7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x107080=this['editor'],_0x4a87a0=_0x107080['model']['document']['differ']['getChanges']();if(0x0==_0x4a87a0['length'])return!0x1;const _0x7a9a5=[],_0x3719fa=_0x4a87a0['filter'](_0x561793=>'attribute'==_0x561793['type']),_0x2d39c2=_0x4a87a0['filter'](_0xd157ae=>'insert'==_0xd157ae['type']&&'$text'!=_0xd157ae['name']),_0x30f7eb=_0x4a87a0['filter'](_0x47d0ca=>'remove'==_0x47d0ca['type']&&'$text'!=_0x47d0ca['name']);for(const _0x2d5a19 of _0x3719fa)_0x7a9a5['push']({'key':_0x2d5a19['attributeKey'],'newValue':_0x2d5a19['attributeNewValue'],'oldValue':_0x2d5a19['attributeOldValue'],'range':Jt(_0x2d5a19['range'],_0x107080['model'])});for(const _0x3b85b1 of _0x2d39c2){const _0x2b394e=_0x30f7eb['find'](_0x5cc4af=>_0x5cc4af['position']['isEqual'](_0x3b85b1['position']));_0x2b394e&&_0x7a9a5['push']({'key':m,'newValue':_0x3b85b1['name'],'oldValue':_0x2b394e['name'],'range':_0x107080['model']['createRangeOn'](_0x3b85b1['position']['nodeAfter'])});}return 0x0!=_0x7a9a5['length']&&this['_reduceExistingSuggestions'](_0x3e69c7,_0x7a9a5);}['_processAttributeSuggestions'](_0x10ff04){let _0x27556e=!0x1;const _0x15c0e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b0bf2=>_0x5b0bf2['data']['newRange']&&_0x5b0bf2['name']['startsWith']('suggestion:attribute:'));for(const _0x5c8f24 of _0x15c0e0){const {subType:_0x584d0b,id:_0x532257}=this['_splitMarkerName'](_0x5c8f24['name']),_0x37de6c=_0x584d0b['split']('|')[0x0];for(const _0x1e4bda of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1e4bda['id']!=_0x532257&&'attribute'==_0x1e4bda['type']&&_0x1e4bda['data']&&_0x1e4bda['data']['key']==_0x37de6c&&_0x1e4bda['getFirstRange']()['isIntersecting'](_0x5c8f24['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1e4bda,_0x5c8f24['data']['newRange'],_0x10ff04),_0x27556e=!0x0);}return _0x27556e;}['_recordAttributeChanges'](_0x1722e5){this['_recordAttributeSuggestions']=!0x0,_0x1722e5();}['_isRegisteredAttribute'](_0xfc9068){const _0x23f524=this['_isBlockAttribute'](_0xfc9068),_0x185762=this['_inlineAttributeKeys']['has'](_0xfc9068);return _0x23f524||_0x185762;}['_reduceExistingSuggestions'](_0x189680,_0x204393){if(0x0==_0x204393['length'])return!0x1;let _0x5c7e67=!0x1;for(const _0x5a5aef of _0x204393){const _0x14d913=this['_findSuggestions'](_0x5a5aef['range'],'attribute')['filter'](_0x5abced=>!_0x5abced['meta']['isNextTo'])['map'](_0x5ee1a6=>_0x5ee1a6['suggestion']),_0x28f08f=_0x1f57d0({'newValue':_0x5a5aef['newValue']});_0x14d913['filter'](_0x576f03=>{const [_0x2e1b7f,_0x2969f6]=_0x576f03['subType']['split']('|');return _0x2e1b7f==_0x5a5aef['key']&&_0x2969f6!=_0x28f08f;})['forEach'](_0x55991a=>{this['_reduceSuggestionAttributeRange'](_0x55991a,_0x5a5aef['range'],_0x189680),_0x5c7e67=!0x0;});}return _0x5c7e67;}['_reduceSuggestionAttributeRange'](_0x404011,_0x4f9462,_0x2ebe70){const _0xe439bb=_0x404011['getFirstRange']()['getDifference'](_0x4f9462);0x0!==_0xe439bb['length']?0x1!==_0xe439bb['length']?this['_breakSuggestionMarker'](_0x404011,_0x4f9462['start'],_0x4f9462['end']):this['_setSuggestionRange'](_0x404011,_0xe439bb[0x0]):_0x2ebe70['removeMarker'](_0x404011['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x34e842){this['_editor']=_0x34e842,this['_model']=_0x34e842['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x233703,_0x36070c,_0x226054,_0x479c34,_0x3cf3c7,_0x5bbf3){return new u(this['_model'],{'type':_0x233703,'subType':_0x36070c,'id':_0x226054,'author':_0x479c34,'creator':_0x479c34,'attributes':_0x3cf3c7,'onAttributesChange':_0x5bbf3,'onAccept':(..._0x2b439e)=>this['getSuggestionCallback'](_0x233703,_0x36070c,'accept')(..._0x2b439e),'onDiscard':(..._0x39fab3)=>this['getSuggestionCallback'](_0x233703,_0x36070c,'discard')(..._0x39fab3)});}['registerCustomCallback'](_0x342f04,_0x4aac89,_0xd162c7,_0x4b6cba){const _0x4a323a=_0x342f04+':'+_0x4aac89+':'+_0xd162c7;this['_customCallbacks']['set'](_0x4a323a,_0x4b6cba);}['getSuggestionCallback'](_0x12c1af,_0x2aebe8,_0x5d02a2){const _0x3fad12=_0x12c1af+':'+_0x2aebe8+':'+_0x5d02a2;return this['_customCallbacks']['get'](_0x3fad12)||this['_defaultCallbacks']['get'](_0x12c1af+':'+_0x5d02a2);}['_registerDefaultCallbacks'](){const _0xb0dc43=()=>!0x1,_0x2da8f1=_0x2a0441=>{_0x2a0441['sort']((_0x1a2e62,_0x39f672)=>_0x1a2e62['start']['isBefore'](_0x39f672['start'])?0x1:-0x1),this['_model']['change'](_0x1c5bff=>{for(const _0x169b45 of _0x2a0441){let _0x1f5394;_0x1f5394=_0x169b45['end']['isAtEnd']&&_0x169b45['end']['parent']==_0x169b45['start']['nodeAfter']?_0x1c5bff['createSelection'](_0x169b45['start']['nodeAfter'],'on'):_0x1c5bff['createSelection'](_0x169b45),this['_model']['deleteContent'](_0x1f5394,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49838e=(_0x33fe3e,_0x310d15)=>{_0x310d15&&this['_model']['change'](_0x1e5e1b=>{const {commandName:_0x1a92e6,commandParams:_0x3b7b1d=[]}=_0x310d15,_0x465b00=_0x33fe3e['map'](_0x83da99=>(Pt(_0x83da99)&&(_0x83da99=this['_model']['createRange'](_0x83da99['end'])),_0x83da99))['filter'](_0x1cc5b2=>'$graveyard'!==_0x1cc5b2['root']['rootName']);if(_0x465b00['length']<0x1)return;const _0x369b94=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x374d5c=>_0x14dd4f['fromRange'](_0x374d5c));_0x1e5e1b['setSelection'](_0x465b00);for(const _0x1d823e of this['_editor']['commands']['commands']())_0x1d823e['refresh']();_0x3b7b1d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a92e6,..._0x3b7b1d);const _0x122925=_0x369b94['filter'](_0x530f4c=>'$graveyard'!=_0x530f4c['root']['rootName']);_0x122925['length']>0x0&&_0x1e5e1b['setSelection'](_0x122925);for(const _0x52c9b0 of _0x369b94)_0x52c9b0['detach']();});},_0xcbf3f2=(_0x4386ce,_0x47be51)=>0x1==_0x4386ce['length']&&0x1==_0x47be51['length']&&_0x4386ce[0x0]['end']['isEqual'](_0x47be51[0x0]['start']),_0x23677d=(_0x39069f,_0xbfc4c5,_0x42777c,_0x1e035b)=>qt(_0x39069f,_0xbfc4c5,_0x42777c,_0x1e035b)?[_0x39069f,_0xbfc4c5]:qt(_0xbfc4c5,_0x39069f,_0x1e035b,_0x42777c)?[_0xbfc4c5,_0x39069f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xb0dc43),this['_defaultCallbacks']['set']('insertion:discard',_0x2da8f1),this['_defaultCallbacks']['set']('insertion:join',_0xcbf3f2),this['_defaultCallbacks']['set']('insertion:chain',_0x23677d),this['_defaultCallbacks']['set']('deletion:accept',_0x2da8f1),this['_defaultCallbacks']['set']('deletion:discard',_0xb0dc43),this['_defaultCallbacks']['set']('deletion:join',_0xcbf3f2),this['_defaultCallbacks']['set']('deletion:chain',_0x23677d),this['_defaultCallbacks']['set']('formatInline:accept',_0x49838e),this['_defaultCallbacks']['set']('formatInline:discard',_0xb0dc43),this['_defaultCallbacks']['set']('formatInline:join',_0xcbf3f2),this['_defaultCallbacks']['set']('formatInline:chain',_0xb0dc43),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49838e),this['_defaultCallbacks']['set']('formatBlock:discard',_0xb0dc43),this['_defaultCallbacks']['set']('formatBlock:join',_0xcbf3f2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xb0dc43),this['_defaultCallbacks']['set']('attribute:accept',_0xb0dc43),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b0431,_0x331201)=>{if(!_0x331201)return;const _0x2c2439=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51361f=>{if(_0x331201['key']==m)for(const _0x87ed4e of _0x3b0431){const _0x3fdff3=_0x87ed4e['start']['nodeAfter'],_0x4564fe=_0x331201['oldValue'];_0x51361f['rename'](_0x3fdff3,_0x4564fe);}else{if(_0x2c2439['_isBlockAttribute'](_0x331201['key'])){for(const _0x188287 of _0x3b0431)void 0x0!==_0x331201['oldValue']?_0x51361f['setAttribute'](_0x331201['key'],_0x331201['oldValue'],_0x188287['start']['nodeAfter']):_0x51361f['removeAttribute'](_0x331201['key'],_0x188287['start']['nodeAfter']);}else{for(const _0x314ec0 of _0x3b0431)_0x331201['oldValue']?_0x51361f['setAttribute'](_0x331201['key'],_0x331201['oldValue'],_0x314ec0):_0x51361f['removeAttribute'](_0x331201['key'],_0x314ec0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcbf3f2);}}function Vt(_0x3fc1b2,_0x1f9ffc,_0x28f2de){for(const _0x2fbeb0 of _0x1f9ffc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2fbeb0['root']==_0x2fbeb0)return!0x1;if(!_0x28f2de['containsItem'](_0x2fbeb0))return!0x1;if(_0x3fc1b2['isObject'](_0x2fbeb0)||_0x3fc1b2['isLimit'](_0x2fbeb0))return!0x0;}return!0x1;}function Pt(_0x15d480){return _0x15d480['end']['parent']==_0x15d480['start']['nodeAfter']&&_0x15d480['end']['isAtStart'];}function Gt(_0x505bbf,_0x4c59b9,_0x53d5f3,_0x11aa2a){const _0x1509a4=_0x1bde25=>!_0x1bde25['item']['is']('$textProxy')&&!_0x11aa2a['isObject'](_0x1bde25['item']),_0x38c64e=_0x505bbf['start']['getLastMatchingPosition'](_0x1509a4),_0x555859=_0x505bbf['end']['getLastMatchingPosition'](_0x1509a4,{'direction':'backward'});return(!_0x505bbf['start']['isEqual'](_0x38c64e)||!_0x505bbf['end']['isEqual'](_0x555859))&&(_0x38c64e['isBefore'](_0x555859)?_0x53d5f3['updateMarker'](_0x4c59b9,{'range':_0x53d5f3['createRange'](_0x38c64e,_0x555859)}):_0x53d5f3['removeMarker'](_0x4c59b9),!0x0);}function Ft(_0x538b20){return _0x1f57d0(_0x538b20);}function Lt(_0x1f8787){const _0x333a90=_0x1f8787['start']['nodeAfter'];return _0x333a90&&_0x333a90['is']('element');}function Jt(_0x45fdc4,_0x39528c){return null==_0x45fdc4['end']['nodeBefore']&&_0x45fdc4['end']['parent']==_0x45fdc4['start']['nodeAfter']?Ht(_0x45fdc4['start']['nodeAfter'],_0x39528c):_0x45fdc4;}function Ht(_0x1f20e9,_0x140abf){const _0x5ab211=_0x140abf['schema']['isObject'](_0x1f20e9)||_0x140abf['schema']['isSelectable'](_0x1f20e9);return _0x140abf['createRange'](_0x140abf['createPositionAt'](_0x1f20e9,'before'),_0x5ab211?_0x140abf['createPositionAfter'](_0x1f20e9):_0x140abf['createPositionAt'](_0x1f20e9,'end'));}function qt(_0x1b9ef5,_0x5319db,_0x5664a0,_0x3a4af7){return!!zt(_0x1b9ef5,_0x5319db)&&_0x5664a0['end']['isEqual'](_0x3a4af7['start']);}function zt(_0x472507,_0x3e1dc2){if(!_0x472507['_isDataLoaded']||!_0x3e1dc2['_isDataLoaded'])return!0x1;const _0xd0f94=new Set(Object['keys'](_0x472507['attributes'])),_0x468484=new Set(Object['keys'](_0x3e1dc2['attributes']));if(_0xd0f94['delete']('groupId'),_0x468484['delete']('groupId'),0x0==_0xd0f94['size']&&0x0==_0x468484['size'])return!0x0;if(_0xd0f94['size']!=_0x468484['size'])return!0x1;const _0x1af45f={..._0x472507['attributes']},_0x151b35={..._0x3e1dc2['attributes']};return delete _0x1af45f['groupId'],delete _0x151b35['groupId'],JSON['stringify'](_0x1af45f)==JSON['stringify'](_0x151b35);}function Kt(_0x16cdeb,_0x5e996a){const _0x15f2bf=Wt(_0x16cdeb['attributes']),_0x546fed=Wt(_0x5e996a);if(!_0x16cdeb['_isDataLoaded'])return!0x1;for(const _0x3a83a1 of Object['keys'](_0x546fed))if(!_0x42e77d(_0x15f2bf[_0x3a83a1],_0x546fed[_0x3a83a1]))return!0x1;return!0x0;}function Wt(_0x4b92b1){const _0x5a0cc4=Object['assign']({},_0x4b92b1);return delete _0x5a0cc4['skipNestingCheck'],delete _0x5a0cc4['tablePasteChainId'],_0x5a0cc4;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x6fb9b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x546043,_0x3c5153,_0x3b324b,_0x406669){super(),this['model']=_0x3c5153,this['view']=_0x3b324b,this['commentThreadController']=_0x406669,this['_editor']=_0x546043,this['_acceptCommand']=_0x546043['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x546043['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa2192a,_0x3d27e8)=>_0xa2192a||_0x3d27e8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x508820=>_0x508820&&this['_editor']['model']['canEditAt'](_0x3c5153['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26254b=>_0x26254b&&this['_editor']['model']['canEditAt'](_0x3c5153['getRanges']())),this['_pendingAction']=null,_0x3b324b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b324b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b324b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b324b,'change:isDirty',()=>{_0x3b324b['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 _0x342e3d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x342e3d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x19b550{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x567a91,_0x4077b8,_0xde6427,_0x535fa9){super(_0x567a91),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d12d4(_0x567a91,o(_0x567a91,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4077b8['authoredAt']),this['bind']('authoredAt')['to'](_0x4077b8),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',_0x4077b8,'authoredAt',this,'descriptionParts',(_0x355957,_0x1e5580,_0x326b83)=>{const _0x59f2ae=_0x326b83['map'](_0x1546ba=>ns(_0x1546ba['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x355957-0x1,_0x4077b8['author']['name'],_0x1e5580?_0x535fa9['formatDateTime'](_0x1e5580):'',new DOMParser()['parseFromString'](_0x59f2ae,'text/html')['body']['textContent']]);}),this['focusables']=new _0xd0bff9(),this['focusTracker']=new _0x127950(),this['keystrokes']=new _0x260502(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x658957=>_0x658957['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4077b8,this['_localUser']=_0xde6427,this['_config']=_0x535fa9,_0x535fa9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x418455(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3553d9}=this['_config'];this['commentsListView']=new _0x3553d9(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',_0x25ba29=>_0x25ba29+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f32e4,_0x16440d)=>_0x2f32e4||!!_0x16440d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f5393}=this['_config'],_0x13d845=new _0x5f5393(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ad8ca=_0x13d845['commentInputView'];return _0x13d845['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ad8ca,'value',(_0x5f3401,_0x3c51f5,_0x583e53)=>!!_0x583e53||_0x5f3401&&!_0x3c51f5),_0x1ad8ca['on']('submit',(_0x272e92,_0x443630)=>{this['fire']('addComment',_0x443630),_0x1ad8ca['editor']['setData']('');}),_0x1ad8ca['on']('cancel',()=>this['focus']()),_0x1ad8ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x13d845;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x5e9955,_0x54cd57,_0x52ab29,_0x50eb93){super(_0x5e9955,_0x54cd57,_0x52ab29,_0x50eb93),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb98ce4=>_0xb98ce4&&_0xb98ce4[0x0]?_0xb98ce4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x78c9ee,_0x52bf17)=>{let _0x13fda8='';for(const _0x47613a of _0x78c9ee)_0x13fda8+='<p>'+ns(_0x47613a['content'],_0x47613a['color'])+'</p>';return _0x52bf17?_0x13fda8:_0x5e35a2(_0x13fda8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x50eb93['SuggestionView'](_0x5e9955,_0x54cd57,{'formatDateTime':_0x50eb93['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 _0x10780c=this['bindTemplate'],_0x3e62e7=[this['suggestionView']];return this['commentsListView']&&_0x3e62e7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e62e7['push'](this['commentThreadInputView']),_0x3e62e7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x10780c['if']('isActive','ck-suggestion-wrapper--active'),_0x10780c['to']('type',_0x2f19d4=>'ck-suggestion-'+_0x2f19d4),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':_0x10780c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e62e7};}['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 fe extends _0x19b550{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4cc5dd,_0x1a5ac5,_0x463482){super(_0x4cc5dd),this['_model']=_0x1a5ac5,this['_config']=_0x463482,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a5ac5),this['acceptButton']=this['_createButton'](o(_0x4cc5dd,'Accept\x20suggestion'),_0x1280c7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4cc5dd,'Discard\x20suggestion'),_0x1280c7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x163e6a(_0x4cc5dd,_0x1a5ac5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xd0bff9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x127950(),this['keystrokes']=new _0x260502(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3877cf=>_0x3877cf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x294547=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x294547['innerHTML']=this['description'],this['on']('change:description',(_0x335dfc,_0x3caa50,_0x2122b4)=>{_0x294547['innerHTML']=_0x2122b4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x54d6de=this['bindTemplate'],_0x1c5bcf=[{'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':_0x54d6de['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x54d6de['to']('authoredAt',_0x45a481=>this['_config']['formatDateTime'](_0x45a481))}]}]},{'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']&&_0x1c5bcf['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':_0x1c5bcf}]};}['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'](_0x341b1c,_0xc9a0db,_0x15e9fe,_0x55155e,_0xdcc685){const _0xec196c=new _0x3e0fbb(this['locale']);return _0xec196c['set']({'label':_0x341b1c,'icon':_0xc9a0db,'tooltip':!0x0,'tooltipPosition':_0xdcc685}),_0xec196c['extendTemplate']({'attributes':{'class':_0x15e9fe}}),_0xec196c['on']('execute',()=>{this['fire'](_0x55155e,this['_model']['id']);}),_0xec196c;}['_setupKeyboardNavigation'](){const _0x5eaaaf=this['element'];this['keystrokes']['listenTo'](_0x5eaaaf);for(const _0x56b278 of this['focusables'])this['focusTracker']['add'](_0x56b278['element']),this['keystrokes']['listenTo'](_0x56b278['element']);this['keystrokes']['set']('enter',(_0x347bf7,_0x366943)=>{_0x5eaaaf===_0x347bf7['target']&&(this['focusCycler']['focusFirst'](),_0x366943());}),this['keystrokes']['set']('esc',(_0x462893,_0x422094)=>{_0x5eaaaf!==_0x462893['target']&&(this['focus'](),_0x422094());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x32d277{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x485da9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48526c){super(_0x48526c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1425b2=this['editor']['config'];_0x1425b2['define']('trackChanges.SuggestionThreadView',pe),_0x1425b2['define']('trackChanges.SuggestionView',fe),_0x1425b2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1425b2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4eb3ec,_0x7746d6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11b47a,_0x24012a]of this['_handleControllerBuffer']){const _0x486895=this['_suggestionToController']['has'](_0x11b47a);_0x486895||_0x24012a?_0x486895&&_0x24012a&&this['_destroyController'](_0x11b47a):this['_initializeController'](_0x11b47a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4eb3ec,_0x7746d6);}['init'](){const _0x226675=this['editor'],_0x11727b=_0x226675['plugins']['get']('TrackChangesEditing'),_0x37c180=_0x226675['plugins']['get']('Annotations'),_0x1d7e0f=_0x226675['plugins']['get']('EditorAnnotations'),_0x5ac451=_0x226675['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d7e0f['addSourceCollector'](()=>{const _0x345f2b=[];for(const [_0x20ccbe,_0x47f78a]of Array['from'](this['_suggestionToController'])){const _0xd0108b=_0x20ccbe['getAllAdjacentSuggestions'](),_0x86b578=[];for(const _0x2bf0c7 of _0xd0108b){if(!_0x2bf0c7['isInContent'])continue;if(_0x2bf0c7['isMultiRange']){_0x86b578['push'](..._0x2bf0c7['getRanges']());continue;}const _0x44ae79=_0x2bf0c7['getFirstRange']();if(_0x86b578['length']>0x0){const _0x16b843=_0x86b578[0x0]['getJoined'](_0x44ae79);if(_0x16b843){_0x86b578[0x0]=_0x16b843;continue;}}_0x86b578['push'](_0x44ae79);}_0x345f2b['push']([_0x47f78a['view'],_0x86b578]);}return _0x345f2b;}),this['listenTo'](_0x11727b,'suggestionLoaded',(_0x4bc457,_0x4a3ce8)=>{this['listenTo'](_0x4a3ce8,'change:previous',(_0x336678,_0x2d668f,_0x19473d,_0x43d1c8)=>{_0x4a3ce8['isInContent']&&(null==_0x19473d?(this['_updateController'](_0x43d1c8['head']),this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x1)):(this['_updateController'](_0x19473d['head']),null==_0x43d1c8&&this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x0)));}),null!==_0x4a3ce8['previous']?this['_updateController'](_0x4a3ce8['head']):this['_handleSuggestionControllerDelayed'](_0x4a3ce8,!0x1);}),this['listenTo'](_0x11727b,'suggestionUnloaded',(_0x5ac303,_0x58980f,_0x1a31b5)=>{this['stopListening'](_0x58980f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x58980f),this['_suggestionToController']['has'](_0x58980f)&&this['_destroyController'](_0x58980f),_0x1a31b5&&this['_updateController'](_0x1a31b5['head']);}),this['listenTo'](_0x11727b,'suggestionChanged',(_0x27a5a2,_0x27c59e)=>{this['_updateController'](_0x27c59e);}),this['listenTo'](_0x37c180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ac451,'addComment',(_0x5c4b90,{threadId:_0x57227d,isFromAdapter:_0x511bfa})=>{if(_0x511bfa||!_0x11727b['hasSuggestion'](_0x57227d))return;const _0x14a619=_0x11727b['getSuggestion'](_0x57227d);this['_suggestionToController']['get'](_0x14a619)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f38da=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f09cd;for(const _0x1ed79d in _0x4f38da){const _0x528734=_0x1ed79d,_0x54da9b=_0x4f38da[_0x528734];if('trackChangesLicenseKeyValid'==_0x54da9b||'trackChangesLicenseKeyInvalid'==_0x54da9b||'trackChangesLicenseKeyExpired'==_0x54da9b||'trackChangesLicenseKeyDomainLimit'==_0x54da9b||'trackChangesLicenseKeyNotAllowed'==_0x54da9b||'trackChangesLicenseKeyEvaluationLimit'==_0x54da9b||'trackChangesLicenseKeyTrialLimit'==_0x54da9b||'trackChangesLicenseKeyUsageLimit'==_0x54da9b){delete _0x4f38da[_0x528734],_0x5f09cd=_0x54da9b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5f09cd&&_0x4f38da['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5f09cd&&_0x4f38da['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5f09cd&&_0x4f38da['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5f09cd&&_0x4f38da['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4e32ff=this['editor']['plugins']['get']('Annotations'),_0x530a1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x279a22=Array['from'](_0x4e32ff['activeAnnotations'],_0x23be5e=>_0x23be5e['innerView'])['filter'](_0x4df129=>this['_viewToController']['has'](_0x4df129)),_0x31ac35=[];for(const _0x1b6343 of _0x279a22){const _0x5a68ea=this['_viewToController']['get'](_0x1b6343)['model']['getAllAdjacentSuggestions']();_0x31ac35['push'](..._0x5a68ea['reduce']((_0x20ee3d,_0x319faa)=>[..._0x20ee3d,..._0x319faa['getMarkerNames']()],[]));}_0x530a1f['activeMarkers']=_0x31ac35;}['_addUIComponentsToFactory'](){const _0x53e4bf=this['editor'],_0x81efaa=_0x53e4bf['locale'],_0x31aee0=o(_0x81efaa,'Track\x20changes'),_0x1d9cc6=new _0x3a7b8e([{'type':'switchbutton','model':new _0x127161({'withText':!0x0,'isToggleable':!0x0,'label':_0x31aee0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x53e4bf['plugins']['has']('TrackChangesPreview')&&_0x1d9cc6['addMany']([{'type':'separator'},{'type':'button','model':new _0x127161({'withText':!0x0,'label':o(_0x81efaa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2acbe3 of _0x1d9cc6)if(ke(_0x2acbe3)){const _0x56a7aa=_0x53e4bf['commands']['get'](_0x2acbe3['model']['commandName']);_0x2acbe3['model']['bind']('isOn','isEnabled')['to'](_0x56a7aa,'value','isEnabled');}_0x53e4bf['ui']['componentFactory']['add']('trackChanges',_0x25eadf=>this['_createToolbarButton'](_0x25eadf,_0x1d9cc6,_0x31aee0)),_0x53e4bf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x201e19=>this['_createMenuBarMenu'](_0x201e19,_0x1d9cc6,_0x31aee0));}['_createToolbarButton'](_0x5ea632,_0x449448,_0x1c15b9){const _0x39fbc9=_0x111af9(_0x5ea632,_0x4045c4),_0x4aa18d=this['editor']['commands']['get']('trackChanges');_0x39fbc9['buttonView']['set']({'tooltip':_0x1c15b9,'label':_0x1c15b9,'icon':we}),_0x39fbc9['buttonView']['bind']('isOn')['to'](_0x4aa18d,'value'),_0x39fbc9['buttonView']['on']('execute',()=>{_0x4aa18d['execute'](),this['editor']['editing']['view']['focus']();}),_0x387a00(_0x39fbc9,_0x449448,{'role':'menu'});const _0x2b4e05=[];for(const _0x598687 of _0x449448)ke(_0x598687)&&_0x2b4e05['push'](this['editor']['commands']['get'](_0x598687['model']['commandName']));const _0x58d4d4=_0x39fbc9['buttonView'];return _0x58d4d4['actionView']['unbind']('isEnabled'),_0x58d4d4['arrowView']['unbind']('isEnabled'),_0x58d4d4['actionView']['bind']('isEnabled')['to'](_0x4aa18d,'isEnabled'),_0x58d4d4['arrowView']['bind']('isEnabled')['toMany'](_0x2b4e05,'isEnabled',(..._0x1a4028)=>_0x1a4028['some'](_0x14bd76=>_0x14bd76)),_0x39fbc9['on']('execute',_0x456c45=>{this['editor']['execute'](_0x456c45['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x39fbc9;}['_createMenuBarMenu'](_0x20c0a8,_0x231ada,_0x250842){const _0x21ee00=new _0x544f32(_0x20c0a8),_0x21a7d5=this['editor']['commands']['get']('trackChanges');_0x21ee00['buttonView']['set']({'label':_0x250842,'icon':we});const _0x3ea7aa=new _0x10e9be(_0x20c0a8);for(const _0x52046c of _0x231ada){if('separator'==_0x52046c['type']){_0x3ea7aa['items']['add'](new _0x1b58c6(_0x20c0a8));continue;}const _0x2d308a=new _0x30c9f3(_0x20c0a8,_0x21ee00),_0x3bc495=new _0x28a4cd(_0x20c0a8),_0x15169a=_0x52046c['model'];_0x3bc495['bind'](...Object['keys'](_0x15169a))['to'](_0x15169a),_0x3bc495['delegate']('execute')['to'](_0x21ee00),_0x3bc495['on']('execute',()=>{this['editor']['execute'](_0x15169a['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d308a['children']['add'](_0x3bc495),_0x3ea7aa['items']['add'](_0x2d308a);}return _0x21ee00['bind']('isEnabled')['to'](_0x21a7d5,'isEnabled'),_0x21ee00['panelView']['children']['add'](_0x3ea7aa),_0x21ee00;}['_initializeController'](_0x1b33f8){const _0x3748dd=this['editor'],_0x17646f=_0x3748dd['config'],_0x1b96c7=_0x3748dd['plugins']['get']('Annotations'),_0x4f2767=_0x3748dd['plugins']['get']('CommentsRepository'),_0x2b00a1=_0x3748dd['plugins']['get']('EditorAnnotations'),_0x4f0884=_0x3748dd['plugins']['get'](_0x485da9)['me'],_0x56d4db=_0x17646f['get']('trackChanges')['SuggestionThreadView'],_0x30ae8c=_0x17646f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x7afce5,CommentThreadInputView:_0x48138a}=_0x3748dd['plugins']['get']('CommentsUI');let _0x21ffe5,_0x99ed33,_0x713152;this['_annotationViews']['has'](_0x1b33f8['id'])?(_0x99ed33=this['_annotationViews']['get'](_0x1b33f8['id']),_0x21ffe5=_0x99ed33['mainView']):(_0x21ffe5=new _0x56d4db(_0x3748dd['locale'],_0x1b33f8,_0x4f0884,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17646f['get']('comments.editorConfig'),'licenseKey':_0x17646f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17646f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17646f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17646f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fcd9d(_0x17646f['get']('locale')),'CommentView':_0x17646f['get']('comments')['CommentView'],'CommentsListView':_0x7afce5,'CommentThreadInputView':_0x48138a,'SuggestionView':_0x30ae8c}),_0x21ffe5['suggestionView']['acceptButton']['on']('execute',()=>{_0x3748dd['editing']['view']['focus']();}),_0x21ffe5['suggestionView']['discardButton']['on']('execute',()=>{_0x3748dd['editing']['view']['focus']();}),_0x99ed33=_0x1b96c7['createAnnotationView'](this['editor']['locale'],_0x21ffe5),_0x99ed33['bind']('isDirty')['to'](_0x21ffe5,'isDirty'),_0x99ed33['bind']('length')['to'](_0x21ffe5),_0x99ed33['bind']('type')['to'](_0x21ffe5,'type',_0x470410=>'suggestion-'+_0x470410),_0x21ffe5['on']('escape',()=>{_0x713152['fire']('escape');}),this['_annotationViews']['set'](_0x1b33f8['id'],_0x99ed33));const _0x505103=_0x4f2767['createCommentThreadController'](_0x1b33f8['commentThread'],_0x21ffe5),_0x4bf4fb=new Ce(_0x3748dd,_0x1b33f8,_0x21ffe5,_0x505103),_0x4a78d4=_0x1b33f8['getAllAdjacentSuggestions']()['filter'](_0x2d7215=>_0x2d7215['isInContent']);_0x21ffe5['descriptionParts']=_0x3748dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a78d4),this['_suggestionToController']['set'](_0x1b33f8,_0x4bf4fb),this['_viewToController']['set'](_0x21ffe5,_0x4bf4fb),_0x713152=_0x1b96c7['createAnnotation']({'view':_0x99ed33,'target':()=>{const _0x4aa4b0=[],_0x29bae0=_0x1b33f8['getAllAdjacentSuggestions']()['filter'](_0x21e423=>_0x21e423['isInContent']);for(const _0x547d01 of _0x29bae0)_0x4aa4b0['push'](..._0x547d01['getMarkers']());return _0x54bfae(_0x3748dd['editing'],_0x4aa4b0);},'type':()=>'suggestion-'+_0x4bf4fb['view']['type']}),_0x4f2767['_bindAnnotationToEditors'](_0x21ffe5,_0x713152),_0x1b96c7['add'](_0x713152),_0x2b00a1['registerAnnotation'](_0x713152);}['_destroyController'](_0x3fb59d){const _0x11a219=this['editor']['plugins']['get']('CommentsRepository'),_0x6e4543=this['editor']['plugins']['get']('Annotations'),_0x2f5027=this['_suggestionToController']['get'](_0x3fb59d),_0x4daae3=_0x2f5027['view'],_0x335230=_0x6e4543['getByInnerView'](_0x4daae3);_0x11a219['_unbindEditors'](_0x4daae3),_0x335230&&_0x6e4543['remove'](_0x335230),this['_suggestionToController']['delete'](_0x3fb59d),this['_viewToController']['delete'](_0x4daae3),_0x2f5027['destroy']();}['_updateController'](_0x589a99){if(!_0x589a99['isInContent']||!this['_suggestionToController']['has'](_0x589a99))return;const _0x463b75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x260308=this['_suggestionToController']['get'](_0x589a99),_0x40b7d7=_0x589a99['getAllAdjacentSuggestions']();_0x260308['view']['descriptionParts']=_0x463b75['descriptionFactory']['getDescriptions'](_0x40b7d7);}['destroy'](){for(const _0x56112c of this['_suggestionToController']['keys']())this['_destroyController'](_0x56112c);for(const _0x3ed665 of this['_annotationViews']['values']())_0x3ed665['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1e7823){return'model'in _0x1e7823;}class k extends _0x32d277{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x214503){this['editor']['plugins']['get'](p)['adapter']=_0x214503;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x432269){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x432269);}['getSuggestions']({skipNotAttached:_0x2c3daa=!0x1,toJSON:_0xb8f8cf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c3daa,'toJSON':_0xb8f8cf});}['getSuggestion'](_0x16cbad){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x16cbad);}}const w=['Pagination'];class T extends _0x32d277{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x32af8c=this['editor'];if(_0x32af8c['config']['define']('trackChangesData.editorCreator',_0x985f31=>{const _0x58a32f=_0x32af8c['model']['document']['getRootNames']()['reduce']((_0x19ded0,_0x7e8309)=>(_0x19ded0[_0x7e8309]='',_0x19ded0),{});return _0x32af8c['constructor']['create'](_0x58a32f,_0x985f31);}),'function'!=typeof _0x32af8c['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c4487('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e522f){return N(this['editor'],!0x0,_0x4e522f);}['getDataWithDiscardedSuggestions'](_0x236238){return N(this['editor'],!0x1,_0x236238);}}class D extends _0x32d277{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5022bd){function _0x51c2b6(_0x3e7321){return _0x3e7321['map'](_0x4aef57=>String['fromCharCode'](_0x4aef57))['join']('');}super(_0x5022bd),this['result']='end',_0x5022bd[_0x51c2b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51c2b6([0x76,0x69,0x65,0x77])][_0x51c2b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51c2b6([0x61,0x75,0x74,0x6f]),_0x5022bd[_0x51c2b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51c2b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51c2b6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51c2b6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51c2b6([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3147b3){return void 0x0!==_0x3147b3['getRootsAttributes'];}async function N(_0x4992f2,_0x66cf4,_0x36b686){const _0x490772=_0x218599(_0x4992f2,w);_0x490772['plugins']['push'](p,D),_0x490772['rootsAttributes']=Fe(_0x4992f2)?_0x4992f2['getRootsAttributes']():void 0x0;const _0x48bd6b=document['createDocumentFragment'](),_0x5b154b=_0x4992f2['config']['get']('trackChangesData')['editorCreator'],_0x34023d=await _0x5b154b(_0x490772,()=>function(_0x47275d){const _0x3135b6=document['createElement']('div');return _0x47275d['appendChild'](_0x3135b6),_0x3135b6;}(_0x48bd6b));!function(_0x53933,_0x5a6111){const _0xd90222=_0x53933['model']['document']['getRootNames']()['reduce']((_0x4238d3,_0x7f21a1)=>(_0x4238d3[_0x7f21a1]=_0x53933['data']['get']({'rootName':_0x7f21a1}),_0x4238d3),{}),_0x220460=_0x53933['plugins']['get']('Users')['users']['map'](_0x50a0cc=>({'id':_0x50a0cc['id'],'name':_0x50a0cc['name']})),_0x35d0a0=_0x53933['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x18ecc8=_0x53933['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3273cf=_0x5a6111['plugins']['get']('Users'),_0x9c1f84=_0x5a6111['plugins']['get']('TrackChangesEditing'),_0x52ee17=_0x5a6111['plugins']['get']('CommentsRepository');for(const _0x4ce4ea of _0x52ee17['getCommentThreads']())_0x4ce4ea['remove']();for(const _0x2f6383 of _0x220460)_0x3273cf['getUser'](_0x2f6383['id'])||_0x3273cf['addUser'](_0x2f6383);_0x3273cf['me']||_0x3273cf['useAnonymousUser']();for(const _0x12a1b9 of _0x18ecc8)_0x52ee17['addCommentThread'](_0x12a1b9);for(const _0x3ff0a2 of _0x35d0a0)_0x9c1f84['addSuggestionData'](_0x3ff0a2);_0x5a6111['data']['set'](_0xd90222);}(_0x4992f2,_0x34023d),_0x34023d['execute'](_0x66cf4?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a8268=Fe(_0x34023d)?_0x34023d['getFullData'](_0x36b686):_0x34023d['data']['get'](_0x36b686);return await _0x34023d['destroy'](),_0x3a8268;}class Me extends _0x19b550{['options'];constructor(_0x4ba204,_0x1bee87){super(_0x4ba204),this['options']=_0x1bee87,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'](_0x214fa2,_0x55e49e){if(!this['element'])return;const _0x12d39b=[];for(const [_0x2a071e,_0x1a4ad1]of _0x214fa2){const _0x10bd15=document['createElement']('div');_0x10bd15['setAttribute']('data-ck-root-name',_0x2a071e),_0x10bd15['className']=_0x1a4ad1['classes']+'\x20ck-track-changes-preview__root-container',_0x10bd15['innerHTML']=_0x1a4ad1['content'],_0x12d39b['push'](_0x10bd15);}_0x55e49e(this['element'],_0x12d39b),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x1ed033){super(_0x1ed033),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1404d3=this['editor'],_0x48a2b0=_0x1404d3['locale'],_0x329f77=_0x1404d3['plugins']['get']('Dialog');let _0x1291bc;const _0x1c1885=function(_0x492872){const _0x550c7a={};if('editables'in _0x492872['ui']['view']){for(const [_0x4fefbf,_0x2448ff]of Object['entries'](_0x492872['ui']['view']['editables']))_0x550c7a[_0x4fefbf]=_0x2448ff['element'];}else _0x550c7a[_0x492872['model']['document']['getRootNames']()[0x0]]=_0x492872['ui']['view']['editable']['element'];return _0x550c7a;}(_0x1404d3),_0x37e0a4=function(_0x5c3f73){let _0x7285ad=0x0;for(const _0x537bdc of Object['values'](_0x5c3f73))_0x7285ad=Math['max'](_0x7285ad,_0x537bdc['getBoundingClientRect']()['width']);let _0x24e163=0x0;for(const _0x1ecef0 of Object['values'](_0x5c3f73))_0x24e163+=_0x1ecef0['getBoundingClientRect']()['height'];const _0x4f6a2c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x55e9b5=Math['min'](_0x24e163,_0x4f6a2c);return{'width':_0x7285ad,'height':_0x55e9b5};}(_0x1c1885);_0x329f77['show']({'id':'finalContentPreview','title':o(_0x48a2b0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x48a2b0,{'dialogRects':_0x37e0a4}),'onHide':()=>{_0x1291bc['detachFromDom']();},'onShow':()=>{_0x1404d3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4ca59f=>{const _0x464930=this['_standarizeRootsData'](_0x4ca59f,_0x1404d3,_0x1c1885);_0x329f77['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x464930,_0x1404d3['config']['get']('trackChanges.preview.renderFunction'));}),_0x1291bc=new _0x2cf5af(_0x48a2b0,[_0x329f77['view']]),_0x1291bc['attachToDom'](),_0x1291bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1404d3['once']('destroy',()=>{_0x1291bc['detachFromDom']();});const _0x42bc3f=_0x329f77['view']['headerView']['class'];_0x329f77['view']['headerView']['class']=_0x42bc3f?_0x42bc3f+'\x20ck-reset_all':'ck-reset_all',_0x329f77['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x329f77['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1b131d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x27e654=_0x1b131d['previewMode'],_0x2deb4c={};if('$labels'===_0x27e654){for(const _0x3604c2 of _0x1b131d['getMergeFieldsIds']())_0x2deb4c[_0x3604c2]=_0x1b131d['getLabel'](_0x3604c2)||_0x3604c2;}else{const _0x671826='$defaultValues'===_0x27e654?_0x1b131d['getDefaultValues']():_0x1b131d['getDataSetValues'](_0x27e654,!0x0);for(const _0x5445f9 of Object['entries'](_0x671826)){const [_0x3ef151,_0x1170d9]=_0x5445f9;_0x2deb4c[_0x3ef151]=null!==_0x1170d9?_0x1170d9:_0x1b131d['getLabel'](_0x3ef151)||_0x3ef151;}}return{'mergeFieldsData':_0x2deb4c};}['_standarizeRootsData'](_0x23264b,_0x316fc1,_0x297bf6){let _0x20f6ae;if('string'==typeof _0x23264b){const _0x4c31fc=_0x316fc1['model']['document']['getRootNames']()[0x0];_0x20f6ae={[_0x4c31fc]:_0x23264b};}else _0x20f6ae=_0x23264b;const _0x52c224=this['_fixMediaEmbeds'](_0x20f6ae,_0x316fc1),_0x230fa6=function(_0x3d8217,_0x27a751){for(const [_0x3aa661,_0x1b2397]of _0x3d8217)_0x1b2397['classes']=_0x27a751[_0x3aa661]['classList']['value']['replace']('ck-focused','');return _0x3d8217;}(this['_sortRoots'](_0x316fc1)['reduce']((_0xc5440e,_0x4822a7)=>(_0xc5440e['push']([_0x4822a7,{'content':_0x52c224[_0x4822a7],'classes':''}]),_0xc5440e),[]),_0x297bf6);return _0x230fa6;}['_fixMediaEmbeds'](_0x1d0568,_0x48aac3){if(!_0x48aac3['plugins']['has']('MediaEmbedEditing'))return _0x1d0568;const _0x21d3c4=_0x48aac3['plugins']['get']('MediaEmbedEditing');for(const [_0x28e37f,_0x5d071b]of Object['entries'](_0x1d0568)){const _0x120079=document['createElement']('div');_0x120079['innerHTML']=_0x5d071b,(_0x120079['querySelectorAll']('figure.media')['forEach'](_0x9b2bd5=>{const _0x522a0e=_0x9b2bd5['querySelector']('oembed');if(_0x522a0e){const _0x41ef6a=_0x522a0e['getAttribute']('url');if(_0x41ef6a){const _0x8db9f6=_0x21d3c4['registry']['getMediaViewElement'](new _0x2200ff(_0x48aac3['editing']['view']['document']),_0x41ef6a,{'elementName':'','renderForEditingView':!0x0}),_0x57ac86=document['createElement']('div');_0x57ac86['classList']['add']('ck-media__wrapper'),_0x8db9f6['render'](_0x57ac86,_0x48aac3['editing']['view']['domConverter']),_0x522a0e['replaceWith'](_0x57ac86);}}}),_0x1d0568[_0x28e37f]=_0x120079['innerHTML']);}return _0x1d0568;}['_sortRoots'](_0x13437){if(!function(_0x2d1d29){return void 0x0!==_0x2d1d29['getRootsAttributes'];}(_0x13437))return _0x13437['model']['document']['getRootNames']();const _0xc79dd7=[],_0x4e730e=new Map();for(const _0x147388 of _0x13437['model']['document']['getRootNames']()){const _0x224cdf=_0x13437['editing']['view']['getDomRoot'](_0x147388)['getClientRects']()['item'](0x0);_0xc79dd7['push'](_0x147388),_0x4e730e['set'](_0x147388,_0x224cdf);}return _0xc79dd7['sort']((_0x5893f6,_0x58ebbb)=>{const _0x29ec17=_0x4e730e['get'](_0x5893f6),_0x1d5630=_0x4e730e['get'](_0x58ebbb);return _0x29ec17['y']-_0x1d5630['y']||_0x29ec17['x']-_0x1d5630['x'];}),_0xc79dd7;}}class te extends _0x32d277{static get['requires'](){return[T,_0x2e48b0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x203d3b){super(_0x203d3b),_0x203d3b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x203d3b['config']['define']('trackChanges.preview.renderFunction',(_0x3368f5,_0x512d1b)=>{for(const _0x3483a6 of _0x512d1b)_0x3368f5['appendChild'](_0x3483a6);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};