@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240913.0 → 0.0.0-nightly-20240915.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 ts,Plugin as _0x2271db,PendingActions as _0x2a298e,icons as _0x41e326}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x43e970,ObservableMixin as _0x259fbc,uid as _0x177e31,insertToPriorityArray as _0x2af217,priorities as _0x2928f8,logWarning as _0x1851d0,getEnvKeystrokeText as _0x424102,FocusTracker as _0x59c196,KeystrokeHandler as _0x12a8cd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x34badb,View as _0x132716,ViewCollection as _0x37e956,FocusCycler as _0x44c7c3,ViewModel as _0x348614,createDropdown as Qt,SplitButtonView as _0x4c3f97,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5f4b83}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1356f8,hashObject as _0x269fbe,surroundingMarkersDetector as _0x10fc5d,FOCUS_ANNOTATION_KEYSTROKE as _0x5514eb,AriaDescriptionView as _0x2825f0,setupThreadKeyboardNavigation as _0x5f1100,trimHtml as _0x3f2fef,UserView as _0x28ba27,LateFocusButtonView as _0x2d82d4,getDateTimeFormatter as _0x22b793,getAllMarkersDomElementsSorted as _0x1b79e2,sanitizeEditorConfig as _0x571cb1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x330661,LiveRange as _0xb0a740,LivePosition as _0x520bb4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2177d6,toWidget as _0x444ef0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3a8b6b,set as _0x22fb8c,isEqual as _0xcc9de1,unset as _0x3a8c2f,omit as Tt}from'lodash-es';import{Delete as _0xf8b72e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x62fdbf,ShiftEnter as _0x36c155}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x589405,_0x5a7a8a){super(_0x589405),this['_enabledCommands']=_0x5a7a8a,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 _0x47db51 of this['editor']['commands']['commands']())_0x47db51['affectsData']&&!this['_enabledCommands']['has'](_0x47db51)&&_0x47db51['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x36bdae of this['editor']['commands']['commands']())_0x36bdae['affectsData']&&!this['_enabledCommands']['has'](_0x36bdae)&&_0x36bdae['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x445866,_0x5ee6ec){super(_0x445866),this['_suggestions']=_0x5ee6ec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x575f0b){const _0x17a9a4=this['_suggestions']['get'](_0x575f0b);if(!_0x17a9a4)throw new _0x43e970('track-changes-accept-suggestion-not-found',this);const _0x46808b=_0x17a9a4['getRanges']();this['editor']['model']['canEditAt'](_0x46808b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17a9a4);}}class R extends ts{['_suggestions'];constructor(_0xd181a0,_0x5874ed){super(_0xd181a0),this['_suggestions']=_0x5874ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x117885){const _0x14804=this['_suggestions']['get'](_0x117885);if(!_0x14804)throw new _0x43e970('track-changes-discard-suggestion-not-found',this);const _0x447e29=_0x14804['getRanges']();this['editor']['model']['canEditAt'](_0x447e29)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x14804);}}function ls(_0x280591,_0x11ed22){let _0x579ccd='';return _0x579ccd+=_0x280591['split']('*')['map']((_0x3d3849,_0x512cb4)=>_0x512cb4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3d3849)+'</span>':nn(_0x3d3849))['join'](''),_0x11ed22&&(_0x579ccd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x11ed22['value']+'\x22\x20title=\x22'+_0x11ed22['title']+'\x22></span>'),_0x579ccd;}function nn(_0x34aa84){const _0x393f39=document['createElement']('span');return _0x393f39['innerText']=_0x34aa84,_0x393f39['innerHTML'];}function ss(_0x2805ac){return _0x2805ac['sort']((_0x348073,_0x2f0c9f)=>'deletion'==_0x348073['type']&&'deletion'!=_0x2f0c9f['type']?-0x1:'deletion'!=_0x348073['type']&&'deletion'==_0x2f0c9f['type']?0x1:0x0);}function to(_0xc18e6e,_0x3c4cc8){let _0x450814,_0x30bb91=0x0;const _0x16ef8f=[],_0x582472=_0x3c4cc8['schema'];for(;_0x30bb91<_0xc18e6e['length'];){const _0x133208=_0xc18e6e[_0x30bb91],_0x232053=_0xc18e6e[_0x30bb91+0x1];_0x450814||(_0x450814=_0x3c4cc8['createPositionBefore'](_0x133208)),on(_0x3c4cc8,_0x133208,_0x232053)||(_0x16ef8f['push'](_0x3c4cc8['createRange'](_0x450814,_0x582472['isObject'](_0x133208)?_0x3c4cc8['createPositionAfter'](_0x133208):_0x3c4cc8['createPositionAt'](_0x133208,'end'))),_0x450814=null),_0x30bb91++;}return _0x16ef8f;}function on(_0x5de7d5,_0x23280a,_0xc06f8b){if(!_0xc06f8b)return!0x1;const _0x5f5272=_0x5de7d5['createPositionAfter'](_0x23280a),_0xc3a126=_0x5de7d5['createPositionBefore'](_0xc06f8b);return _0x5f5272['isTouching'](_0xc3a126);}function rs(_0x46b161,_0x2decfb,_0x5b7b9d){for(;_0x5b7b9d['length'];){const _0x1fbb7b=_0x5b7b9d['splice'](0x0,0x64);_0x46b161['change'](()=>{for(const _0x42821a of _0x1fbb7b)_0x42821a['isInContent']&&_0x2decfb['execute'](_0x42821a['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x16ed92,_0x356c77,_0x4e3f61){super(_0x16ed92),this['_command']=_0x356c77,this['_suggestions']=_0x4e3f61,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48e54e=Array['from'](this['_suggestions']['values']())['some'](_0x5df2ba=>_0x5df2ba['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x48e54e;}['execute'](){const _0x2dc544=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5c12d7 of _0x2dc544){const _0x1c65f2=_0x5c12d7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1c65f2))return;}rs(this['editor']['model'],this['_command'],_0x2dc544);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x16e129,_0x3fd1a4,_0xe2544){super(_0x16e129),this['_command']=_0x3fd1a4,this['_suggestions']=_0xe2544,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x41b1db=this['editor']['model']['document']['selection'],_0x29050b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x41ab4c,_0x2aaef8){const _0x517a38=Array['from'](_0x41ab4c['getRanges']()),_0x458d06=new Set();for(const _0x592a1d of _0x2aaef8)if(_0x592a1d['isInContent']){for(const _0x53bb43 of _0x517a38)for(const _0x57b67d of _0x592a1d['getRanges']())(_0x53bb43['isIntersecting'](_0x57b67d)||_0x41ab4c['isCollapsed']&&!_0x592a1d['isMultiRange']&&_0x592a1d['next']&&_0x57b67d['end']['isTouching'](_0x53bb43['start']))&&_0x458d06['add'](_0x592a1d);}return _0x458d06;}(_0x41b1db,_0x29050b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1778ae=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1a88d8 of _0x1778ae){const _0x178fe7=_0x1a88d8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x178fe7))return;}rs(this['editor']['model'],this['_command'],_0x1778ae);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x259fbc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x52445b,_0x342a89){super(),this['id']=_0x342a89['id'],this['type']=_0x342a89['type'],this['subType']=_0x342a89['subType']||null,this['author']=_0x342a89['author'],this['creator']=_0x342a89['creator']||_0x342a89['author'],this['isExternal']=Boolean(_0x342a89['attributes']&&_0x342a89['attributes']['@external']),this['data']=null,this['_model']=_0x52445b,this['_onAccept']=_0x342a89['onAccept'],this['_onDiscard']=_0x342a89['onDiscard'],this['_onAttributesChange']=_0x342a89['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x342a89['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 _0x316a75=this;for(;_0x316a75['previous'];)_0x316a75=_0x316a75['previous'];return _0x316a75;}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'](_0x2eff32){this['_markerNames']['add'](_0x2eff32);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e0c2e=>this['_model']['markers']['get'](_0x3e0c2e))['filter'](_0xd12274=>_0xd12274);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a4bb8=>{for(const _0x570f2a of this['getMarkers']())_0x5a4bb8['removeMarker'](_0x570f2a);}),this['_markerNames']['clear']();}['removeMarker'](_0x128211){this['_model']['change'](_0x36322e=>{_0x36322e['removeMarker'](_0x128211);}),this['_markerNames']['delete'](_0x128211);}['addRange'](_0x11e0c9){const _0x262548='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x262548),this['_model']['change'](_0x34dd38=>{_0x34dd38['addMarker'](_0x262548,{'range':_0x11e0c9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4621f1){for(const _0x4b9e38 of this['getRanges']())if(_0x4b9e38['isIntersecting'](_0x4621f1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x35a28a=>_0x35a28a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x595b28,_0x5497f3)=>[..._0x595b28,..._0x5497f3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5eb163=this['getRanges']();if(0x1!=_0x5eb163['length'])return null;const _0x2e3933=_0x5eb163[0x0],_0x485ab9=_0x2e3933['start']['nodeAfter'],_0x227be4=_0x2e3933['end']['nodeBefore'];return _0x485ab9 instanceof _0x330661?_0x485ab9!=_0x227be4?null:_0x485ab9: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 _0x3b3305=[];let _0x483825=this['head'];for(;_0x483825;)_0x3b3305['push'](_0x483825),_0x483825=_0x483825['next'];return _0x3b3305;}['setAttribute'](_0x13499f,_0x27a6ea){const _0x5c820c=_0x3a8b6b(this['attributes']);_0x22fb8c(_0x5c820c,_0x13499f,_0x27a6ea),_0xcc9de1(_0x5c820c,this['attributes'])||(this['attributes']=_0x5c820c,this['_onAttributesChange'](_0x5c820c));}['removeAttribute'](_0x5862bf){const _0x2955cf=_0x3a8b6b(this['attributes']);_0x3a8c2f(_0x2955cf,_0x5862bf),_0xcc9de1(_0x2955cf,this['attributes'])||(this['attributes']=_0x2955cf,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 _0x177e31()['substr'](0x1,0x5);}}function o(_0x294749,_0x3ee8be,_0x2d5fe0){const t=_0x294749['t'];switch(_0x3ee8be){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'*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',_0x2d5fe0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d5fe0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d5fe0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d5fe0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d5fe0);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',_0x2d5fe0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d5fe0);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x2d5fe0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d5fe0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d5fe0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d5fe0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d5fe0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d5fe0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d5fe0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d5fe0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d5fe0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d5fe0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d5fe0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d5fe0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d5fe0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d5fe0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d5fe0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d5fe0);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'},_0x2d5fe0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d5fe0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d5fe0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d5fe0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d5fe0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d5fe0);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'},_0x2d5fe0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d5fe0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d5fe0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d5fe0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d5fe0);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'},_0x2d5fe0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d5fe0);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'},_0x2d5fe0);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'},_0x2d5fe0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d5fe0);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'},_0x2d5fe0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d5fe0);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'},_0x2d5fe0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d5fe0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d5fe0);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'},_0x2d5fe0);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d5fe0);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d5fe0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d5fe0);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'},_0x2d5fe0);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'},_0x2d5fe0);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'},_0x2d5fe0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ee8be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3a76b8,_0x92daa7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3a76b8,this['_locale']=_0x92daa7;}['getDescriptions'](_0x167b62){const _0x60fdbb=[],_0x2cca07=new Set(),_0x52a0fb=new Set();for(let _0x25ce83=0x0;_0x25ce83<_0x167b62['length'];_0x25ce83++){const _0x500b84=_0x167b62[_0x25ce83];if(!_0x500b84['isInContent'])continue;const _0x88a36e=this['_handleCustomCallbackDescription'](_0x500b84);if(_0x88a36e){if(null!=_0x500b84['subType']){if(_0x2cca07['has'](_0x500b84['subType']))continue;_0x2cca07['add'](_0x500b84['subType']);}_0x60fdbb['push'](_0x88a36e);}else{if('attribute'!=_0x500b84['type'])'insertion'!=_0x500b84['type']&&'deletion'!=_0x500b84['type']||this['_handleInsertRemoveSuggestionDescription'](_0x60fdbb,_0x500b84,_0x167b62[_0x25ce83+0x1]);else{const _0x5a02d5=_0x500b84['data']['key'];if(_0x52a0fb['has'](_0x5a02d5))continue;_0x52a0fb['add'](_0x500b84['data']['key']),_0x5a02d5==m?this['_handleRenameSuggestionDescription'](_0x60fdbb,_0x500b84):this['_handleAttributeSuggestionDescription'](_0x60fdbb,_0x500b84);}}}return this['_resolveDescriptionItems'](_0x60fdbb);}['registerDescriptionCallback'](_0x2cda57){this['_customCallbacks']['push'](_0x2cda57);}['registerElementLabel'](_0x170c30,_0x331720,_0x2d7079=_0x2928f8['normal']){'function'==typeof _0x170c30?_0x2af217(this['_itemLabelsCallbacks'],{'matchingCallback':_0x170c30,'label':_0x331720,'priority':_0x2d7079}):this['_itemLabels']['set'](_0x170c30,_0x331720);}['registerAttributeLabel'](_0x5ea6e5,_0x455508){this['_attributeLabels']['set'](_0x5ea6e5,_0x455508);}['getItemLabel'](_0x4ca798,_0x247798=0x1){let _0x293921;for(const _0x16d8b4 of this['_itemLabelsCallbacks'])if(_0x16d8b4['matchingCallback'](_0x4ca798)){_0x293921=_0x16d8b4['label'];break;}return _0x293921||(_0x293921=this['_itemLabels']['get'](_0x4ca798['name'])),_0x293921?_0x293921(_0x247798):0x1!==_0x247798?_0x247798+'\x20'+_0x4ca798['name']+'s':''+_0x4ca798['name'];}['_addDescriptionItems'](_0x19e658,_0x28f849){const _0x3896e2=_0x28f849['getFirstRange']()['getWalker'](),_0x5171a7='insertion'==_0x28f849['type']?'add':'remove';for(const _0x5cab8e of _0x3896e2){const _0x45a7b2=_0x5cab8e['item'],_0x8b54e1=_0x19e658[_0x19e658['length']-0x1];if(_0x45a7b2['is']('$textProxy'))_0x8b54e1&&_0x8b54e1['type']['indexOf']('Container')>-0x1&&_0x19e658['pop'](),_0x8b54e1&&'text'==_0x8b54e1['type']?_0x8b54e1[_0x5171a7]+=_0x45a7b2['data']:_0x19e658['push']({'type':'text','add':'add'==_0x5171a7?_0x45a7b2['data']:'','remove':'remove'==_0x5171a7?_0x45a7b2['data']:''});else{if(this['_schema']['isObject'](_0x45a7b2)){const _0xe10c0a=_0x45a7b2;if(_0x8b54e1&&_0x8b54e1['type']['indexOf']('Container')>-0x1&&_0x19e658['pop'](),'elementEnd'==_0x5cab8e['type'])continue;_0x8b54e1&&_0x8b54e1['type']==_0x5171a7+'Object'&&_0x8b54e1['element']['name']==_0xe10c0a['name']?_0x8b54e1['quantity']++:_0x19e658['push']({'type':_0x5171a7+'Object','element':_0xe10c0a,'quantity':0x1}),_0x3896e2['skip'](_0x4b1f74=>!('elementEnd'==_0x4b1f74['type']&&_0x4b1f74['item']==_0x45a7b2));}else{if(this['_schema']['checkChild'](_0x45a7b2,'$text')||_0x45a7b2['is']('element','softBreak')){const _0x4d5a35=_0x45a7b2;if('add'==_0x5171a7&&'elementStart'==_0x5cab8e['type']||'remove'==_0x5171a7&&'elementEnd'==_0x5cab8e['type'])continue;if(_0x8b54e1&&-0x1==_0x8b54e1['type']['indexOf']('Container')){'text'==_0x8b54e1['type']&&(_0x8b54e1[_0x5171a7]+='\x0a');continue;}let _0x3a83b6;if(_0x3a83b6='add'==_0x5171a7?_0x4d5a35['nextSibling']&&!this['_schema']['isObject'](_0x4d5a35['nextSibling'])?_0x4d5a35['nextSibling']:null:_0x4d5a35['previousSibling']&&!this['_schema']['isObject'](_0x4d5a35['previousSibling'])?_0x4d5a35['previousSibling']:null,_0x4d5a35['isEmpty']||_0x3a83b6&&_0x3a83b6['isEmpty']){const _0x5eee78=_0x3a83b6&&_0x3a83b6['isEmpty']?_0x3a83b6:_0x4d5a35;_0x8b54e1&&_0x8b54e1['type']==_0x5171a7+'EmptyContainer'&&_0x8b54e1['element']['name']==_0x5eee78['name']?_0x8b54e1['quantity']++:_0x19e658['push']({'type':_0x5171a7+'EmptyContainer','element':_0x5eee78,'quantity':0x1});}else _0x19e658['push']({'type':_0x5171a7+'Container','element':_0x4d5a35});}}}}}['_resolveDescriptionItems'](_0xa640b0){const _0x387d8f=this['_locale'],_0x5d175a=[],_0x44e2c2=[],_0x533b86=[];for(const _0x740cd6 of _0xa640b0)switch(_0x740cd6['type']){case'text':if(_0x740cd6['add']=_0x740cd6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x740cd6['remove']=_0x740cd6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x740cd6['add']&&''!=_0x740cd6['remove']){_0x5d175a['push']({'type':'replace','content':o(_0x387d8f,'REPLACE_TEXT',['\x22'+_0x740cd6['remove']+'\x22','\x22'+_0x740cd6['add']+'\x22'])});continue;}if(null!=_0x740cd6['add']['match'](/^ +$/)){_0x5d175a['push']({'type':'insertion','content':o(_0x387d8f,'*Insert:*\x20%0',o(_0x387d8f,'ELEMENT_SPACE',_0x740cd6['add']['length']))});continue;}if(null!=_0x740cd6['remove']['match'](/^ +$/)){_0x5d175a['push']({'type':'deletion','content':o(_0x387d8f,'*Remove:*\x20%0',o(_0x387d8f,'ELEMENT_SPACE',_0x740cd6['remove']['length']))});continue;}if(''!=_0x740cd6['add']){_0x5d175a['push']({'type':'insertion','content':o(_0x387d8f,'*Insert:*\x20%0','\x22'+_0x740cd6['add']+'\x22')});continue;}_0x5d175a['push']({'type':'deletion','content':o(_0x387d8f,'*Remove:*\x20%0','\x22'+_0x740cd6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5d175a['push']({'type':'insertion','content':o(_0x387d8f,'*Insert:*\x20%0',this['getItemLabel'](_0x740cd6['element'],_0x740cd6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5d175a['push']({'type':'deletion','content':o(_0x387d8f,'*Remove:*\x20%0',this['getItemLabel'](_0x740cd6['element'],_0x740cd6['quantity']))});continue;case'addContainer':_0x5d175a['push']({'type':'insertion','content':o(_0x387d8f,'*Split:*\x20%0',this['getItemLabel'](_0x740cd6['element'],_0x740cd6['quantity']))});continue;case'removeContainer':_0x5d175a['push']({'type':'deletion','content':o(_0x387d8f,'*Merge:*\x20%0',this['getItemLabel'](_0x740cd6['element'],_0x740cd6['quantity']))});continue;case'addFormat':_0x44e2c2['push'](_0x740cd6['key']);continue;case'removeFormat':_0x533b86['push'](_0x740cd6['key']);continue;default:_0x5d175a['push'](_0x740cd6);}if(_0x44e2c2['length']){const _0x59a477=_0x44e2c2['map'](_0x2a97c3=>this['_attributeLabels']['has'](_0x2a97c3)?this['_attributeLabels']['get'](_0x2a97c3):_0x2a97c3)['join'](',\x20');_0x5d175a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x59a477)});}if(_0x533b86['length']){const _0x490755=_0x533b86['map'](_0x3a75ea=>this['_attributeLabels']['has'](_0x3a75ea)?this['_attributeLabels']['get'](_0x3a75ea):_0x3a75ea)['join'](',\x20');_0x5d175a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x490755)});}return _0x5d175a;}['_handleCustomCallbackDescription'](_0x5a7789){for(const _0x155c80 of this['_customCallbacks']){const _0x539687=_0x155c80(_0x5a7789);if(_0x539687&&'type'in _0x539687)return _0x539687;}}['_handleAttributeSuggestionDescription'](_0x3346f4,_0x502228){const _0x36bd23=_0x502228['data'],_0xfe73aa=void 0x0===_0x36bd23['newValue']?'removeFormat':'addFormat';_0x3346f4['push']({'type':_0xfe73aa,'key':_0x36bd23['key']});}['_handleRenameSuggestionDescription'](_0xca52ba,_0x4ca0ae){_0xca52ba['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4ca0ae['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4b4eb3,_0x26c899,_0x64585e){if(this['_addDescriptionItems'](_0x4b4eb3,_0x26c899),_0x64585e&&_0x64585e['getFirstRange']()&&!_0x26c899['getFirstRange']()['end']['isEqual'](_0x64585e['getFirstRange']()['start'])){const _0x2e5ff6=_0x4b4eb3[_0x4b4eb3['length']-0x1],_0x273ba2='insertion'==_0x26c899['type']?'add':'remove';_0x2e5ff6&&'text'==_0x2e5ff6['type']&&(_0x2e5ff6[_0x273ba2]+='\x0a');}}}class V extends _0x2271db{['afterInit'](){const _0x367cbd=this['editor'],_0x4637c4=_0x367cbd['plugins']['get']('TrackChangesEditing');_0x367cbd['commands']['get']('showAIAssistant')&&_0x4637c4['enableCommand']('showAIAssistant');}}class U extends _0x2271db{['afterInit'](){const _0xd2b903=this['editor'],_0x158c90=_0xd2b903['locale'];if(!_0xd2b903['plugins']['has']('AlignmentEditing'))return;const _0x476d01=_0xd2b903['plugins']['get']('TrackChangesEditing');_0x476d01['enableDefaultAttributesIntegration']('alignment'),_0x476d01['registerBlockAttribute']('alignment'),_0x476d01['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x158c90,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fae83=this['editor'],_0x10cca6=_0x4fae83['locale'];_0x4fae83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x441198=>{if('formatBlock'!=_0x441198['type'])return;const {data:_0x55c782}=_0x441198;if(_0x55c782&&'alignment'==_0x55c782['commandName']){const _0x3af315=_0x55c782['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x10cca6,'*Format:*\x20%0',function(_0x37aab0){switch(_0x37aab0){case'left':return o(_0x10cca6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x10cca6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x10cca6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x10cca6,'FORMAT_JUSTIFY_TEXT');}}(_0x3af315))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2271db{['afterInit'](){const _0x14842a=this['editor'],_0x30113f=_0x14842a['plugins']['get']('TrackChangesEditing'),_0x5844a5=_0x14842a['locale'];for(const _0xb74c32 of ti){if(!_0x14842a['plugins']['has'](_0xb74c32))continue;const _0x5b7339=_0xb74c32['slice'](0x0,-0x7)['toLowerCase'](),_0x4eb081='FORMAT_'+_0x5b7339['toUpperCase']();_0x30113f['enableDefaultAttributesIntegration'](_0x5b7339),_0x30113f['registerInlineAttribute'](_0x5b7339),_0x30113f['descriptionFactory']['registerAttributeLabel'](_0x5b7339,o(_0x5844a5,_0x4eb081));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3504eb=this['editor'],_0xbacc70=_0x3504eb['locale'],_0x3e3f4d=_0x3504eb['plugins']['get']('TrackChangesEditing');function _0x9780df(_0x45afa6,_0x20542d){_0x3e3f4d['descriptionFactory']['registerDescriptionCallback'](_0x318d13=>{if('formatInline'!=_0x318d13['type'])return;const {data:_0xa07e12}=_0x318d13;return _0xa07e12&&_0xa07e12['commandName']===_0x45afa6?_0xa07e12['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbacc70,'*Format:*\x20%0',_0x20542d)}:{'type':'format','content':o(_0xbacc70,'*Remove\x20format:*\x20%0',_0x20542d)}:void 0x0;});}_0x9780df('bold',o(_0xbacc70,'FORMAT_BOLD')),_0x9780df('italic',o(_0xbacc70,'FORMAT_ITALIC')),_0x9780df('underline',o(_0xbacc70,'FORMAT_UNDERLINE')),_0x9780df('code',o(_0xbacc70,'FORMAT_CODE')),_0x9780df('strikethrough',o(_0xbacc70,'FORMAT_STRIKETHROUGH')),_0x9780df('subscript',o(_0xbacc70,'FORMAT_SUBSCRIPT')),_0x9780df('superscript',o(_0xbacc70,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2271db{['afterInit'](){const _0x460f59=this['editor'],_0x35a181=_0x460f59['locale'];if(!_0x460f59['plugins']['has']('BlockQuoteEditing'))return;const _0xe596f=_0x460f59['plugins']['get']('TrackChangesEditing'),_0x561030=this['editor']['commands']['get']('blockQuote');_0xe596f['enableCommand']('blockQuote',(_0x2d2ff4,_0x37dd0e={})=>{const _0x4de8af=this['editor']['model']['document']['selection'],_0x3febe1=_0x37dd0e&&void 0x0!==_0x37dd0e['forceValue']?_0x37dd0e['forceValue']:!_0x561030['value'];let _0xe1716b=[];if(_0x3febe1){const _0x3ea0b1=Array['from'](_0x4de8af['getSelectedBlocks']())['filter'](_0x25a275=>oo(_0x25a275)||function(_0x27790b,_0x323c99){const _0x375df2=_0x323c99['checkChild'](_0x27790b['parent'],'blockQuote'),_0x1ae543=_0x323c99['checkChild'](['$root','blockQuote'],_0x27790b);return _0x375df2&&_0x1ae543;}(_0x25a275,this['editor']['model']['schema']));_0xe1716b=to(_0x3ea0b1,_0x460f59['model']);}else{const _0x1893fc=Array['from'](_0x4de8af['getSelectedBlocks']())['filter'](_0x9811a5=>oo(_0x9811a5));_0xe1716b=to(_0x1893fc,_0x460f59['model']);}_0x460f59['model']['change'](()=>{for(const _0x1685bd of _0xe1716b)_0xe596f['markBlockFormat'](_0x1685bd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3febe1}]});});}),_0xe596f['descriptionFactory']['registerDescriptionCallback'](_0x560d96=>{const {data:_0x460ecd}=_0x560d96;if(_0x460ecd&&'blockQuote'==_0x460ecd['commandName']){const _0x1e343f=o(_0x35a181,'ELEMENT_BLOCK_QUOTE');return _0x460ecd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35a181,'*Set\x20format:*\x20%0',_0x1e343f)}:{'type':'format','content':o(_0x35a181,'*Remove\x20format:*\x20%0',_0x1e343f)};}});}}function oo(_0x11d25b){return'blockQuote'==_0x11d25b['parent']['name'];}class L extends _0x2271db{['afterInit'](){const _0x4423a0=this['editor'];_0x4423a0['plugins']['has']('CaseChange')&&(_0x4423a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4423a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4423a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2271db{['afterInit'](){const _0x3c1331=this['editor'];_0x3c1331['commands']['get']('ckbox')&&_0x3c1331['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2271db{['afterInit'](){const _0x2de13b=this['editor'];if(!_0x2de13b['plugins']['has']('CodeBlock'))return;const _0x2522e8=_0x2de13b['plugins']['get']('TrackChangesEditing'),_0x2fa630=_0x2de13b['locale'],_0x671846=_0x2de13b['config']['get']('codeBlock')['languages'],_0x3fca0d=_0x2de13b['commands']['get']('codeBlock');_0x2522e8['enableCommand']('indentCodeBlock'),_0x2522e8['enableCommand']('outdentCodeBlock'),_0x2522e8['enableCommand']('codeBlock',(_0x4b61e4,_0x15fbc9={})=>{const _0x54e304=_0x2de13b['model'],_0x5b0664=_0x2de13b['model']['document']['selection'],_0x3d6577=_0x15fbc9&&void 0x0!==_0x15fbc9['forceValue']?_0x15fbc9['forceValue']:!_0x3fca0d['value'];let _0xd1ad8a;_0x15fbc9['language']||(_0x15fbc9['language']=_0x671846[0x0]['language']),_0xd1ad8a=_0x3d6577?Array['from'](_0x5b0664['getSelectedBlocks']())['filter'](_0x407dfe=>eo(_0x407dfe)||function(_0x535853,_0x1f6f49){if(_0x535853['is']('rootElement')||_0x1f6f49['isLimit'](_0x535853))return!0x1;return _0x1f6f49['checkChild'](_0x535853['parent'],'codeBlock');}(_0x407dfe,_0x54e304['schema'])):Array['from'](_0x5b0664['getSelectedBlocks']())['filter'](_0x54dfc7=>eo(_0x54dfc7));const _0x2bb256=to(_0xd1ad8a,_0x54e304);_0x54e304['change'](()=>{for(const _0x25f061 of _0x2bb256)_0x2522e8['markBlockFormat'](_0x25f061,{'commandName':'codeBlock','commandParams':[{..._0x15fbc9,'forceValue':_0x3d6577}],'formatGroupId':'blockName'});});}),(_0x2522e8['descriptionFactory']['registerElementLabel']('codeBlock',_0x538b08=>o(_0x2fa630,'ELEMENT_CODE_BLOCK',_0x538b08)),_0x2522e8['descriptionFactory']['registerDescriptionCallback'](_0x571d44=>{if('formatBlock'!=_0x571d44['type'])return;const _0x455c33=_0x2fa630['t'],{data:_0x1276e2}=_0x571d44;if(!_0x1276e2||'codeBlock'!=_0x1276e2['commandName'])return;const _0x335674=_0x1276e2['commandParams'][0x0]['language'],_0x42ef03=_0x455c33(_0x671846['find'](_0x4be42e=>_0x4be42e['language']===_0x335674)['label'])['toLowerCase']();return _0x1276e2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fa630,'*Set\x20format:*\x20%0',o(_0x2fa630,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x42ef03+')')}:{'type':'format','content':o(_0x2fa630,'*Remove\x20format:*\x20%0',o(_0x2fa630,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x55b249){return'codeBlock'==_0x55b249['name'];}class q extends _0x2271db{['afterInit'](){const _0x47700e=this['editor'];if(!_0x47700e['plugins']['has']('CommentsEditing'))return;_0x47700e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x537aae,_0x32e115,_0x1115d3){const _0x54501a=[];for(const _0x238457 of _0x32e115['getItems']())_0x238457['hasAttribute'](_0x537aae)&&_0x54501a['push'](_0x1115d3['createRangeOn'](_0x238457));return _0x54501a;}function _e(_0x288a76,_0xb9b734,{showActiveMarker:_0x50f083=!0x0}={}){const _0x4ccd10=_0x288a76['plugins']['get']('TrackChangesEditing');return(_0x139d3d,_0x3c9667,_0x585f0b)=>{if(!_0x585f0b['consumable']['test'](_0x3c9667['markerRange'],_0x139d3d['name']))return;const _0x5cf3f8=_0x3c9667['markerRange']['getWalker'](),_0x383439=_0x3c9667['markerRange']['start'],_0x471f86=_0x288a76['model']['schema'];let _0x414256=null,_0x47bcfe=null,_0x5171da=!0x1,_0x417f84=!0x1;for(const _0x583e05 of _0x5cf3f8){const _0x241af=_0x583e05['item'];_0x5171da=_0x5171da||_0x471f86['isContent'](_0x241af);const _0x2fc3f5=_0x585f0b['mapper']['toViewElement'](_0x241af);if(_0x2fc3f5&&_0x2fc3f5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x583e05['type']&&(_0x471f86['isBlock'](_0x241af)&&!_0x471f86['isLimit'](_0x241af)&&(_0x241af['nextSibling']||_0x383439['isAtEnd']?_0x414256&&_0x414256['parent']==_0x241af||(_0x414256=_0x241af,_0x1ea285(_0x583e05['previousPosition']),_0x417f84=!0x0):_0x47bcfe=_0x47bcfe||_0x583e05['previousPosition']));}function _0x1ea285(_0x27fb51){const {authorId:_0x4b7d09}=_0x4ccd10['_splitMarkerName'](_0x3c9667['markerName']),_0x702d63=_0x585f0b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb9b734,'data-author-id':_0x4b7d09}),_0x47497f=_0x585f0b['mapper']['toViewPosition'](_0x27fb51);_0x50f083&&_0x4ccd10['activeMarkers']['includes'](_0x3c9667['markerName'])&&_0x585f0b['writer']['addClass']('ck-suggestion-marker--active',_0x702d63),_0x585f0b['writer']['insert'](_0x47497f,_0x702d63),_0x585f0b['mapper']['bindElementToMarker'](_0x702d63,_0x3c9667['markerName']);}_0x5171da||_0x417f84||!_0x47bcfe||_0x1ea285(_0x47bcfe);};}class z extends _0x2271db{static get['requires'](){return[_0xf8b72e];}['init'](){const _0x28c97f=this['editor'],_0xd10332=_0x28c97f['plugins']['get']('TrackChangesEditing');_0xd10332['enableCommand']('delete');const _0x24ef69=_0x28c97f['commands']['get']('deleteForward');_0xd10332['enableCommand']('deleteForward',(_0x47ff28,_0x28c6af={})=>{const _0x398a72=_0x28c97f['model']['createSelection'](_0x28c97f['model']['document']['selection']);_0x398a72['isCollapsed']&&_0x28c97f['model']['modifySelection'](_0x398a72,{'direction':'forward','unit':_0x28c6af['unit']});const _0x735119=_0x398a72['getFirstRange'](),_0x4b0949=_0xb0a740['fromRange'](_0x735119);let _0x41cde2;_0x47ff28(_0x28c6af),_0x41cde2='$graveyard'==_0x4b0949['root']['rootName']?_0x28c97f['model']['createRange'](_0x735119['start']):_0x28c97f['model']['createRange'](_0x4b0949['start'],_0x4b0949['end']),_0x4b0949['detach'](),_0x28c97f['model']['enqueueChange'](_0x24ef69['buffer']['batch'],_0x4911ef=>{_0x24ef69['buffer']['lock'](),_0x4911ef['setSelection'](_0x4911ef['createRange'](_0x41cde2['end'])),_0x24ef69['buffer']['unlock']();});}),_0x28c97f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28c97f,'merge'),{'priority':'high'}),_0x28c97f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x36a5e1,_0x31ba8c,_0x531e33)=>{_0x531e33['options']['showSuggestionHighlights']&&_e(_0x28c97f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x36a5e1,_0x31ba8c,_0x531e33);},{'priority':'high'}),_0x28c97f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xc64982,_0x47f96b,_0xad251b)=>{const _0x5001c2=_0xad251b['mapper']['markerNameToElements'](_0x47f96b['markerName']);if(_0x5001c2){for(const _0x53ad1b of _0x5001c2)_0x53ad1b['is']('uiElement')&&(_0xad251b['mapper']['unbindElementFromMarkerName'](_0x53ad1b,_0x47f96b['markerName']),_0xad251b['writer']['remove'](_0x53ad1b));}},{'priority':'high'});}}class K extends _0x2271db{['afterInit'](){const _0x2ff4dc=this['editor'];if(!_0x2ff4dc['plugins']['has']('ListEditing'))return;const _0x2d2660=_0x2ff4dc['locale'],_0x37af43=_0x2ff4dc['plugins']['get']('TrackChangesEditing'),_0x3c6e62=_0x2ff4dc['plugins']['has']('TodoListEditing'),_0x3d7599=!!_0x2ff4dc['config']['get']('list.multiBlock');function _0x17e34c(_0x50ee24){return{'type':'format','content':''+o(_0x2d2660,'*Set\x20format:*\x20%0',_0x50ee24)};}function _0x58b804(_0x305eff){return{'type':'format','content':''+o(_0x2d2660,'*Remove\x20format:*\x20%0',_0x305eff)};}_0x37af43['enableDefaultAttributesIntegration']('numberedList'),_0x37af43['enableDefaultAttributesIntegration']('bulletedList'),_0x37af43['enableDefaultAttributesIntegration']('customNumberedList'),_0x37af43['enableDefaultAttributesIntegration']('customBulletedList'),_0x37af43['enableDefaultAttributesIntegration']('indentList'),_0x37af43['enableDefaultAttributesIntegration']('outdentList'),_0x37af43['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x37af43['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x37af43['registerBlockAttribute']('listItemId'),_0x37af43['registerBlockAttribute']('listType'),_0x37af43['registerBlockAttribute']('listIndent'),_0x3d7599&&(_0x37af43['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x37af43['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c6e62&&(_0x37af43['enableDefaultAttributesIntegration']('todoList'),_0x37af43['enableDefaultAttributesIntegration']('checkTodoList'),_0x37af43['registerBlockAttribute']('todoListChecked'),_0x37af43['descriptionFactory']['registerDescriptionCallback'](_0x4d21a5=>{const {data:_0x15897b}=_0x4d21a5;if(_0x15897b&&'todoListChecked'==_0x15897b['key'])return{'type':'format','content':_0x15897b['newValue']?o(_0x2d2660,'*Check\x20item*'):o(_0x2d2660,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3fe426=>{if(_0x3fe426['batch']['isUndo'])return!0x1;let _0x781f30=!0x1;const _0x1bd520=_0x37af43['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x250515=>'todoListChecked'===_0x37af43['_getAttributeKey'](_0x250515));for(const _0x1ed5cb of _0x1bd520){'todo'!=_0x1ed5cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x37af43['_findSuggestions'](_0x1ed5cb['getFirstRange'](),'attribute')['find'](_0xfeb461=>'listType'===_0x37af43['_getAttributeKey'](_0xfeb461['suggestion']))||(_0x3fe426['removeMarker'](_0x1ed5cb['getFirstMarker']()),_0x781f30=!0x0));}return _0x781f30;})),_0x37af43['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d2660,'FORMAT_INDENT'));const _0x556a1e={'type':'format','content':''};_0x37af43['descriptionFactory']['registerDescriptionCallback'](_0x3d5df1=>{const {data:_0x35cf8c}=_0x3d5df1;if(!_0x35cf8c||'listType'!=_0x35cf8c['key'])return;let _0x398124=_0x3d5df1['head'];for(;_0x398124;){if(_0x398124['data']&&(('listStyle'==_0x398124['data']['key']||'listMarkerStyle'==_0x398124['data']['key'])&&(_0x398124['data']['newValue']&&'default'!=_0x398124['data']['newValue']||'default'!=_0x398124['data']['oldValue']&&!_0x35cf8c['newValue'])||!_0x3d7599&&_0x398124['data']['key']==m))return _0x556a1e;_0x398124=_0x398124['next'];}if(null==_0x35cf8c['newValue'])switch(_0x35cf8c['oldValue']){case'bulleted':return _0x58b804(o(_0x2d2660,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58b804(o(_0x2d2660,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58b804(o(_0x2d2660,'ELEMENT_TODO_LIST'));}switch(_0x35cf8c['newValue']){case'bulleted':return _0x17e34c(o(_0x2d2660,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17e34c(o(_0x2d2660,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17e34c(o(_0x2d2660,'ELEMENT_TODO_LIST'));}}),_0x37af43['descriptionFactory']['registerDescriptionCallback'](_0x3001b1=>{const {data:_0x28fcaf}=_0x3001b1;if(_0x28fcaf&&'listIndent'==_0x28fcaf['key'])return null==_0x28fcaf['newValue']||null==_0x28fcaf['oldValue']&&0x0==_0x28fcaf['newValue']?_0x556a1e:void 0x0;}),_0x37af43['descriptionFactory']['registerDescriptionCallback'](_0xce638a=>{if('attribute'!=_0xce638a['type'])return;const {data:_0x471e3a}=_0xce638a;if(!_0x471e3a||'listItemId'!=_0x471e3a['key'])return;const _0x547565=Ee(_0xce638a);return'newValue'==_0x547565?{'type':'format','content':o(_0x2d2660,'*Merge:*\x20list\x20item')}:'oldValue'==_0x547565?{'type':'format','content':o(_0x2d2660,'*Split:*\x20list\x20item')}:_0x556a1e;}),_0x2ff4dc['model']['document']['registerPostFixer'](_0x31308c=>this['listItemIdFixer'](_0x31308c)),_0x2ff4dc['model']['document']['registerPostFixer'](_0x30006e=>this['noTrackChangesFixer'](_0x30006e)),_0x2ff4dc['model']['document']['on']('change:data',(_0x3480bb,_0x48040c)=>{if(_0x48040c['isUndo']||!_0x48040c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2ca329){if(_0x2ca329['batch']['isUndo']||!_0x2ca329['batch']['isLocal'])return!0x1;let _0x38e3cb=!0x1;const _0x2214db=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44fe9a=>_0x44fe9a['data']&&'listItemId'==_0x44fe9a['data']['key'])['filter'](_0x4b14cc=>_0x4b14cc['data']['newValue']&&_0x4b14cc['data']['oldValue']);for(const _0x4c7e71 of _0x2214db)Ee(_0x4c7e71)||(_0x2ca329['removeMarker'](_0x4c7e71['getFirstMarker']()),_0x38e3cb=!0x0);return _0x38e3cb;}['noTrackChangesFixer'](_0x530ba2){if(_0x530ba2['batch']['isUndo']||!_0x530ba2['batch']['isLocal'])return!0x1;const _0x54eb7d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54eb7d['trackChangesCommand']['value'])return!0x1;let _0x5d311a=!0x1;const _0x32729a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x163e10=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xee832=>'attribute'==_0xee832['type'])['filter'](_0x5bb7cd=>_0x32729a['includes'](_0x5bb7cd['attributeKey']));if(0x0==_0x163e10['length'])return _0x5d311a;for(const _0x170dac of _0x163e10){const _0x1934a2=_0x54eb7d['_findSuggestions'](_0x170dac['range'],'attribute')['filter'](_0x5bbe47=>!_0x5bbe47['meta']['isNextTo'])['map'](_0x523123=>_0x523123['suggestion'])['filter'](_0x15865b=>{const _0x2df862=_0x54eb7d['_getAttributeKey'](_0x15865b);return _0x32729a['includes'](_0x2df862);});if(_0x1934a2['length']){for(const _0x4d98d1 of _0x1934a2)_0x530ba2['removeMarker'](_0x4d98d1['getFirstMarker']());_0x5d311a=!0x0;}}return _0x5d311a;}['assureChains'](){const _0x2ceda1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e205c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3062d8;const _0x18ae7b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a0184=>{if(_0x2a0184['data']['oldRange']||!_0x2a0184['data']['newRange'])return null;if(!_0x2a0184['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x583cf5}=_0x2ceda1['_splitMarkerName'](_0x2a0184['name']);if(!_0x2ceda1['hasSuggestion'](_0x583cf5))return null;const _0x4f07a4=_0x2ceda1['getSuggestion'](_0x583cf5);return _0x4e205c['includes'](_0x4f07a4['data']['key']);})['map'](_0x171897=>{const {id:_0x46e8ca}=_0x2ceda1['_splitMarkerName'](_0x171897['name']),_0x21c15e=_0x2ceda1['getSuggestion'](_0x46e8ca);return _0x3062d8=_0x21c15e['attributes']['groupId'],_0x21c15e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x18ae7b['size'])return;const _0x18fcf3=_0x2ceda1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x425de0=>'attribute'==_0x425de0['type']&&_0x425de0['data']&&_0x4e205c['includes'](_0x425de0['data']['key'])&&_0x425de0['attributes']['groupId']!=_0x3062d8)['map'](_0x2662ba=>({'listItem':_0x2662ba['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2662ba['attributes']['groupId']})),_0x348976=new Set();for(const {groupId:_0x420ac7,listItem:_0x5bfe35}of _0x18fcf3)_0x18ae7b['has'](_0x5bfe35)&&_0x348976['add'](_0x420ac7);for(const _0x28ca21 of _0x2ceda1['getSuggestions']())_0x348976['has'](_0x28ca21['attributes']['groupId'])&&_0x28ca21['setAttribute']('groupId',_0x3062d8);}['_supportLegacySuggestions'](){const _0x160b16=this['editor'],_0x5efc75=_0x160b16['locale'],_0x4e5273=_0x160b16['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e5273['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc033b3,_0x23ad27){const _0x3dbbfb=[];for(let _0x2c3504 of _0xc033b3)_0x2c3504['start']['nodeAfter']===_0x2c3504['end']['parent']&&(_0x2c3504=_0x160b16['model']['createRange'](_0x160b16['model']['createPositionAt'](_0x2c3504['start']['nodeAfter'],0x0))),_0x3dbbfb['push'](_0x2c3504);_0x160b16['model']['change'](_0x37d531=>{const _0x1f83c8=_0x160b16['model']['document']['selection'],_0x4a3596=Array['from'](_0x1f83c8['getRanges']())['map'](_0x4afccc=>_0xb0a740['fromRange'](_0x4afccc));_0x37d531['setSelection'](_0x3dbbfb),_0x160b16['commands']['get'](_0x23ad27['commandName'])['refresh'](),_0x23ad27['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x160b16['execute'](_0x23ad27['commandName'],..._0x23ad27['commandParams']),_0x37d531['setSelection'](_0x4a3596);for(const _0x45565d of _0x4a3596)_0x45565d['detach']();});}),_0x4e5273['descriptionFactory']['registerElementLabel'](function(_0x24493f){const _0x8a638a=!_0x160b16['model']['schema']['isObject'](_0x24493f),_0x29d908=_0x24493f['previousSibling'],_0x2b469b=_0x24493f['nextSibling'],_0x4533a5=_0x24493f['getAttribute']('listItemId'),_0x36c970=!_0x29d908||_0x29d908['getAttribute']('listItemId')!==_0x4533a5,_0x3f650c=!_0x2b469b||_0x2b469b['getAttribute']('listItemId')!==_0x4533a5;return _0x8a638a&&Boolean(_0x4533a5)&&_0x36c970&&_0x3f650c;},_0x3efe3e=>o(_0x5efc75,'ELEMENT_LIST_ITEM',_0x3efe3e));}['_registerLegacyDescription'](){const _0x2856f4=this['editor'],_0x155405=_0x2856f4['locale'];function _0x3dff92(_0x4e8b5b){const _0x48f64f=_0x2856f4['commands']['get']('bulletedList')['value'],_0x12d614=_0x2856f4['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e8b5b?_0x48f64f:_0x12d614;}_0x2856f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x42f2a6){if('formatBlock'!=_0x42f2a6['type'])return;const {data:_0x53a0bc}=_0x42f2a6;if(!_0x53a0bc)return;let _0x4d3923,_0x5ae7a5,_0x107b7d,_0x513d73;switch(_0x53a0bc['commandName']){case'bulletedList':_0x107b7d=_0x53a0bc['commandParams'][0x0]['forceValue'],_0x513d73=_0x3dff92(_0x53a0bc['commandName']),_0x4d3923=_0x107b7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x513d73&&_0x2856f4['config']['get']('list.multiBlock')||(_0x4d3923='*Change\x20to:*\x20%0'),_0x5ae7a5={'type':'format','content':o(_0x155405,_0x4d3923,o(_0x155405,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x107b7d=_0x53a0bc['commandParams'][0x0]['forceValue'],_0x513d73=_0x3dff92(_0x53a0bc['commandName']),_0x4d3923=_0x107b7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x513d73&&_0x2856f4['config']['get']('list.multiBlock')||(_0x4d3923='*Change\x20to:*\x20%0'),_0x5ae7a5={'type':'format','content':o(_0x155405,_0x4d3923,o(_0x155405,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4d3923='*Indent:*\x20%0',_0x5ae7a5={'type':'format','content':o(_0x155405,_0x4d3923,o(_0x155405,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4d3923=function(_0x39107b){const _0x18bfee=_0x39107b['getFirstRange']();let _0xf1d5a=_0x18bfee['start']['nodeAfter'];for(;_0xf1d5a&&_0x18bfee['containsItem'](_0xf1d5a);){if(_0xf1d5a['getAttribute']('listIndent')>0x0)return!0x1;_0xf1d5a=_0xf1d5a['nextSibling'];}return!0x0;}(_0x42f2a6)?o(_0x155405,'*Format:*\x20remove\x20from\x20%0',o(_0x155405,function(_0x5e2ace){return'ELEMENT_'+_0x5e2ace['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x42f2a6))):o(_0x155405,'*Outdent:*\x20%0',o(_0x155405,'ELEMENT_LIST_ITEM')),_0x5ae7a5={'type':'format','content':_0x4d3923};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x53a0bc['multipleBlocks']&&(_0x4d3923='*Merge:*\x20%0',_0x5ae7a5={'type':'deletion','content':o(_0x155405,_0x4d3923,o(_0x155405,'ELEMENT_LIST_ITEM'))});}return _0x5ae7a5;});}}function Ee(_0x2f69a5){let _0x5ac5c9=_0x2f69a5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ac5c9;){const _0x5d1a50=_0x5ac5c9['getAttribute']('listItemId');if(!_0x5d1a50)return!0x1;if(_0x5d1a50==_0x2f69a5['data']['newValue'])return'newValue';if(_0x5d1a50==_0x2f69a5['data']['oldValue'])return'oldValue';_0x5ac5c9=_0x5ac5c9['previousSibling'];}return!0x1;}class pe extends _0x2271db{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x580103=this['editor']['config']['get']('list.properties'),_0x2b46e9=this['editor']['plugins']['get']('TrackChangesEditing');_0x580103['styles']&&(_0x2b46e9['enableDefaultAttributesIntegration']('listStyle'),_0x2b46e9['registerBlockAttribute']('listStyle')),_0x580103['reversed']&&(_0x2b46e9['enableDefaultAttributesIntegration']('listReversed'),_0x2b46e9['registerBlockAttribute']('listReversed')),_0x580103['startIndex']&&(_0x2b46e9['enableDefaultAttributesIntegration']('listStart'),_0x2b46e9['registerBlockAttribute']('listStart'));const _0x147ffe={'type':'format','content':''};_0x2b46e9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x242daa=this['editor']['locale'];_0x2b46e9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x242daa,'FORMAT_LIST_REVERSED')),_0x2b46e9['descriptionFactory']['registerDescriptionCallback'](_0x45e8ff=>{const {data:_0x37a026}=_0x45e8ff;if(_0x37a026&&'listReversed'==_0x37a026['key'])return null==_0x37a026['newValue']||0x0==_0x37a026['newValue']&&null==_0x37a026['oldValue']?_0x147ffe:void 0x0;}),_0x2b46e9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x242daa,'FORMAT_LIST_START')),_0x2b46e9['descriptionFactory']['registerDescriptionCallback'](_0x44e70b=>{const {data:_0x4d852e}=_0x44e70b;if(_0x4d852e&&'listStart'==_0x4d852e['key'])return null==_0x4d852e['newValue']||0x1==_0x4d852e['newValue']&&null==_0x4d852e['oldValue']?_0x147ffe:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x58f053=>{if(_0x58f053['batch']['isUndo'])return!0x1;let _0x1812b7=!0x1;const _0x51671d=_0x2b46e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5883d3=>{const _0x19d06a=_0x2b46e9['_getAttributeKey'](_0x5883d3);return'listStart'==_0x19d06a||'listReversed'==_0x19d06a;});for(const _0x1c308e of _0x51671d){const _0x3e797f=_0x1c308e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3e797f||'customNumbered'==_0x3e797f)continue;_0x2b46e9['_findSuggestions'](_0x1c308e['getFirstRange'](),'attribute')['find'](_0x107a8e=>'listType'==_0x2b46e9['_getAttributeKey'](_0x107a8e['suggestion']))||(_0x58f053['removeMarker'](_0x1c308e['getFirstMarker']()),_0x1812b7=!0x0);}return _0x1812b7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x130489){const _0x4a1b86=this['editor']['locale'],{data:_0x5c0ad6}=_0x130489,_0x4ac88f={'type':'format','content':''};if(!_0x5c0ad6||'listStyle'!=_0x5c0ad6['key'])return;if(!_0x5c0ad6['oldValue'])return'default'==_0x5c0ad6['newValue']?_0x4ac88f:{'type':'format','content':''+o(_0x4a1b86,'*Set\x20format:*\x20%0',o(_0x4a1b86,this['_getTranslationKeyForListStyle'](_0x5c0ad6['newValue'])))};if(!_0x5c0ad6['newValue']){if('default'==_0x5c0ad6['oldValue'])return _0x4ac88f;let _0x5b7b2f=_0x130489['head'];for(;_0x5b7b2f;){if(_0x5b7b2f['data']&&'listType'==_0x5b7b2f['data']['key']&&_0x5b7b2f['data']['newValue'])return _0x4ac88f;_0x5b7b2f=_0x5b7b2f['next'];}return{'type':'format','content':''+o(_0x4a1b86,'*Remove\x20format:*\x20%0',o(_0x4a1b86,this['_getTranslationKeyForListStyle'](_0x5c0ad6['oldValue'])))};}if('default'!=_0x5c0ad6['newValue'])return{'type':'format','content':''+o(_0x4a1b86,'*Set\x20format:*\x20%0',o(_0x4a1b86,this['_getTranslationKeyForListStyle'](_0x5c0ad6['newValue'])))};let _0x5deeed=_0x130489['head'];for(;_0x5deeed;){if(_0x5deeed['data']&&'listType'==_0x5deeed['data']['key']&&_0x5deeed['data']['newValue']&&_0x5deeed['data']['oldValue'])return _0x4ac88f;_0x5deeed=_0x5deeed['next'];}return{'type':'format','content':o(_0x4a1b86,'*Set\x20format:*\x20%0',o(_0x4a1b86,'ELEMENT_'+_0x130489['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x132a5c=this['editor'],_0x1167a8=_0x132a5c['locale'];_0x132a5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bfe35=>{if('formatBlock'!=_0x3bfe35['type'])return;const {data:_0x4df8b1}=_0x3bfe35;if(!_0x4df8b1)return;let _0x5c6745,_0x51f089;switch(_0x4df8b1['commandName']){case'listStyle':_0x5c6745='*Change\x20to:*\x20%0',_0x51f089={'type':'format','content':o(_0x1167a8,_0x5c6745,o(_0x1167a8,this['_getTranslationKeyForListStyle'](_0x4df8b1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c6745=_0x4df8b1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51f089={'type':'format','content':o(_0x1167a8,_0x5c6745)};break;case'listStart':_0x5c6745='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51f089={'type':'format','content':o(_0x1167a8,_0x5c6745,_0x4df8b1['commandParams'][0x0]['startIndex'])};}return _0x51f089;});}['_getTranslationKeyForListStyle'](_0x5c161e){return'ELEMENT_'+function(_0x46fe4d){if(ye['includes'](_0x46fe4d))return'bulleted';if(Se['includes'](_0x46fe4d))return'numbered';return null;}(_0x5c161e)['toUpperCase']()+'_LIST_'+_0x5c161e['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2271db{static get['requires'](){return[_0x62fdbf];}['init'](){const _0x49e8c0=this['editor'],_0xd6f8ee=_0x49e8c0['plugins']['get']('TrackChangesEditing'),_0x1c493e=_0x49e8c0['commands']['get']('enter');_0xd6f8ee['enableCommand']('enter',()=>{_0x49e8c0['model']['change'](_0x1e4bdd=>{const _0x1e0347=_0x49e8c0['model']['document']['selection'],_0xf909c6=_0x1e0347['getFirstPosition'](),_0x2cd77b=_0xb0a740['fromRange'](_0x1e0347['getFirstRange']());if(_0x1c493e['enterBlock'](_0x1e4bdd)){const _0x5418d0=_0x49e8c0['model']['createPositionAt'](_0xf909c6['parent']['nextSibling'],0x0),_0x4e2e68=_0x1e4bdd['createRange'](_0xf909c6,_0x5418d0);_0xd6f8ee['markInsertion'](_0x4e2e68);}else _0x1e4bdd['setSelection'](_0x1e4bdd['createRange'](_0x2cd77b['end']));_0x2cd77b['detach'](),_0x1c493e['fire']('afterExecute',{'writer':_0x1e4bdd});});}),_0x49e8c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x49e8c0,'split'),{'priority':'high'}),_0x49e8c0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x26f8ae,_0x3178eb,_0x528a5c)=>{const _0x22270c=_0x528a5c['mapper']['markerNameToElements'](_0x3178eb['markerName']);if(_0x22270c){for(const _0x168e36 of _0x22270c)_0x168e36['hasClass']('ck-suggestion-marker-split')&&(_0x528a5c['mapper']['unbindElementFromMarkerName'](_0x168e36,_0x3178eb['markerName']),_0x528a5c['writer']['remove'](_0x168e36));}},{'priority':'high'}),_0x49e8c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e0ef1,_0x499917,_0x3f81fd)=>{_0x3f81fd['options']['showSuggestionHighlights']&&_e(_0x49e8c0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1e0ef1,_0x499917,_0x3f81fd);},{'priority':'high'});}}class X extends _0x2271db{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x477368=this['editor']['plugins']['get']('TrackChangesEditing');_0x477368['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x477368['enableCommand']('findNext'),_0x477368['enableCommand']('findPrevious'),_0x477368['enableCommand']('replace'),_0x477368['enableCommand']('replaceAll');}['handleFindCommand'](_0x183869,_0x1fece9,_0x58c630={}){const _0x58159c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x183869(_0x5a9fe1=>{let _0x4fcd91=('string'==typeof _0x1fece9?_0x58159c['findByTextCallback'](_0x1fece9,_0x58c630):_0x1fece9)(_0x5a9fe1);Array['isArray'](_0x4fcd91)&&(_0x4fcd91={'results':_0x4fcd91,'searchText':'string'==typeof _0x1fece9?_0x1fece9:''});const _0x5ef153=_0x4fcd91['results']['filter'](_0x18a399=>!0x1===this['_isInDeletionRange'](_0x18a399,_0x5a9fe1['item']));return{..._0x4fcd91,'results':_0x5ef153};},_0x58c630);}['_isInDeletionRange'](_0x4f711a,_0x168c0d){const _0x52d891=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x168c0d,_0x4f711a['start']),this['editor']['model']['createPositionAt'](_0x168c0d,_0x4f711a['end']));for(const _0x3c044a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x52d891['getIntersection'](_0x3c044a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2271db{['afterInit'](){const _0x34c138=this['editor']['locale'],_0x336e64=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x143398,commandName:_0x268e7e}of ro)this['editor']['plugins']['has'](_0x143398)&&(_0x336e64['enableDefaultAttributesIntegration'](_0x268e7e),_0x336e64['registerInlineAttribute'](_0x268e7e));_0x336e64['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x34c138,'FORMAT_FONT_SIZE')),_0x336e64['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x34c138,'FORMAT_FONT_FAMILY')),_0x336e64['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x34c138,'FORMAT_FONT_COLOR')),_0x336e64['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x34c138,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x171007=this['editor'],_0x1bf327=_0x171007['locale'];_0x171007['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4850ff=>{const _0x199d12=_0x1bf327['t'];if('formatInline'!=_0x4850ff['type'])return;const {data:_0x2c32c4}=_0x4850ff;if(null!=_0x2c32c4){if('fontSize'==_0x2c32c4['commandName']){const _0x72507b=_0x2c32c4['commandParams'][0x0]['value'];if(_0x72507b){const _0x84c975=_0x199d12(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x10205a=>_0x10205a['model']==_0x72507b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1bf327,'*Set\x20font\x20size:*\x20%0',_0x84c975)};}return{'type':'format','content':o(_0x1bf327,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2c32c4['commandName']){const _0xb20610=_0x2c32c4['commandParams'][0x0]['value'];return _0xb20610?{'type':'format','content':o(_0x1bf327,'*Set\x20font\x20family:*\x20%0',_0xb20610)}:{'type':'format','content':o(_0x1bf327,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2c32c4['commandName']){const _0x4eca68=_0x2c32c4['commandParams'][0x0]['value'];if(_0x4eca68){const _0x10016d=_0x34badb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x126a4f=>_0x126a4f['model']==_0x4eca68);let _0x2e38b5=_0x4eca68,_0x125c57='';return _0x10016d&&(_0x2e38b5=_0x10016d['label'],_0x125c57=_0x199d12(_0x2e38b5)['toLowerCase']()),{'type':'format','content':o(_0x1bf327,'*Set\x20font\x20color:*\x20%0',_0x125c57)['trim'](),'color':{'value':_0x4eca68,'title':_0x125c57||_0x2e38b5}};}return{'type':'format','content':o(_0x1bf327,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2c32c4['commandName']){const _0x294323=_0x2c32c4['commandParams'][0x0]['value'];if(_0x294323){const _0x210d82=_0x34badb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe3024=>_0xe3024['model']==_0x294323);let _0x24688c=_0x294323,_0x81a615='';return _0x210d82&&(_0x24688c=_0x210d82['label'],_0x81a615=_0x199d12(_0x24688c)['toLowerCase']()),{'type':'format','content':o(_0x1bf327,'*Set\x20font\x20background\x20color:*\x20%0',_0x81a615)['trim'](),'color':{'value':_0x294323,'title':_0x81a615||_0x24688c}};}return{'type':'format','content':o(_0x1bf327,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2271db{['afterInit'](){const _0x2a0a05=this['editor'],_0x162439=_0x2a0a05['plugins']['get']('TrackChangesEditing'),_0x284120=_0x2a0a05['commands']['get']('copyFormat'),_0x22345d=_0x2a0a05['commands']['get']('pasteFormat');_0x284120&&_0x22345d&&(_0x162439['enableDefaultAttributesIntegration']('pasteFormat'),_0x162439['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5524de=this['editor'],_0x5420ec=_0x5524de['locale'];_0x5524de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13d98e=>{if('formatBlock'!=_0x13d98e['type']&&'formatInline'!=_0x13d98e['type'])return;const {data:_0x2fce76}=_0x13d98e;if(_0x2fce76&&'pasteFormat'===_0x2fce76['commandName']){const _0xb5f9e3=[],_0x336b7a=_0x2fce76['commandParams'][0x0];for(const [_0x5c66b5,_0x47afc6]of Object['entries'](_0x336b7a))_0xb5f9e3['push'](so(_0x5524de,_0x5c66b5,_0x47afc6));return _0xb5f9e3['length']?{'type':'format','content':o(_0x5420ec,'*Set\x20format\x20to:*\x20%0',_0xb5f9e3['join'](',\x20'))}:{'type':'format','content':o(_0x5420ec,'*Remove\x20all\x20formatting*')};}});}}function so(_0x286d88,_0x25a029,_0x332c28){const _0x2cd152=_0x286d88['locale']['t'],_0x272d63=_0x25a029['split'](/(?=[A-Z])/)['join']('\x20'),_0x24294f=_0x2cd152(_0x272d63['charAt'](0x0)['toUpperCase']()+_0x272d63['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x332c28)return _0x24294f;if('fontColor'===_0x25a029||'fontBackgroundColor'===_0x25a029){const _0x7420c6=_0x34badb(_0x286d88['config']['get']('fontColor.colors'))['find'](_0x4b09e3=>_0x4b09e3['model']==_0x332c28);return _0x24294f+'\x20('+(_0x7420c6?_0x2cd152(_0x7420c6['label'])['toLowerCase']():_0x332c28)+')';}if('fontSize'===_0x25a029&&isNaN(parseFloat(_0x332c28))){const _0x21aa28=_0x286d88['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x286d88['config']['get']('fontSize.options'))['find'](_0x20046a=>_0x20046a['model']==_0x332c28);return _0x24294f+'\x20('+(_0x21aa28?_0x2cd152(_0x21aa28['title'])['toLowerCase']():_0x332c28)+')';}return _0x24294f+'\x20('+_0x332c28+')';}class tt extends _0x2271db{['_headingOptions'];['afterInit'](){const _0x318bb6=this['editor'];if(!_0x318bb6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x318bb6['config']['get']('heading.options');const _0x18e033=_0x318bb6['locale'],_0x9d70d1=_0x318bb6['plugins']['get']('TrackChangesEditing');_0x9d70d1['enableDefaultAttributesIntegration']('heading');for(const _0x370e8a of this['_headingOptions'])'paragraph'!=_0x370e8a['model']&&_0x9d70d1['descriptionFactory']['registerElementLabel'](_0x370e8a['model'],_0x5ddb67=>{const _0x13eab7=this['_getHeadingLevel'](_0x370e8a['model']);return null!==_0x13eab7?_0xa06099(_0x5ddb67,_0x13eab7):_0x359157(_0x5ddb67,_0x370e8a['title']);});function _0xa06099(_0xc457d1,_0x4dff26){return o(_0x18e033,'ELEMENT_HEADING',[_0xc457d1,_0x4dff26]);}function _0x359157(_0x27875c,_0x36a48c){return o(_0x18e033,'ELEMENT_HEADING_CUSTOM',[_0x27875c,_0x36a48c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6ad57e=this['editor'],_0x397d39=_0x6ad57e['locale'];function _0x21af3b(_0x23573e,_0x5f3c94){return o(_0x397d39,'ELEMENT_HEADING_CUSTOM',[_0x23573e,_0x5f3c94]);}_0x6ad57e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x639e42=>{if('formatBlock'!=_0x639e42['type'])return;const {data:_0x222cf5}=_0x639e42;if(_0x222cf5&&'heading'==_0x222cf5['commandName']){const _0x335d4b=_0x222cf5['commandParams'][0x0]['value'],_0x28a515=this['_getHeadingLevel'](_0x335d4b);if(null!==_0x28a515)return{'type':'format','content':o(_0x397d39,'*Change\x20to:*\x20%0',(_0x5d3d1a=0x1,_0x203a6a=_0x28a515,o(_0x397d39,'ELEMENT_HEADING',[_0x5d3d1a,_0x203a6a])))};const _0xa46312=this['_headingOptions']['find'](_0x47d173=>_0x47d173['model']===_0x335d4b)['title'];return{'type':'format','content':o(_0x397d39,'*Change\x20to:*\x20%0',_0x21af3b(0x1,_0xa46312))};}var _0x5d3d1a,_0x203a6a;});}['_getHeadingLevel'](_0x238eb5){const _0x390370=_0x238eb5['match'](/^heading(\d+)/);if(_0x390370)return _0x390370[0x1];const _0x5acb50=this['_headingOptions']?.['find'](_0x580433=>_0x580433['model']==_0x238eb5);if(_0x5acb50&&_0x5acb50['view']){const _0x5e74e1=_0x5acb50['view'],_0x29eea4=(_0x5e74e1['name']??_0x5e74e1)['match'](/^h(\d+)/);if(_0x29eea4)return _0x29eea4[0x1];}return null;}}class et extends _0x2271db{['afterInit'](){const _0xc0cc83=this['editor'];if(!_0xc0cc83['plugins']['has']('HighlightEditing'))return;const _0x12efda=_0xc0cc83['plugins']['get']('TrackChangesEditing'),_0x48fcc4=_0xc0cc83['locale'];_0x12efda['enableDefaultAttributesIntegration']('highlight'),_0x12efda['registerInlineAttribute']('highlight'),_0x12efda['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48fcc4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe54115=this['editor'],_0x1c0ff7=_0xe54115['locale'];_0xe54115['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d08c5=>{if('formatInline'!=_0x5d08c5['type'])return;const {data:_0x40e669}=_0x5d08c5;if(_0x40e669&&'highlight'==_0x40e669['commandName']){const _0x3846e3=_0x1c0ff7['t'],_0x40911a=_0x40e669['commandParams'][0x0]['value'];if(_0x40911a){const _0x448573=_0xe54115['config']['get']('highlight.options')['find'](_0x390433=>_0x390433['model']==_0x40911a),_0x18aad7=_0x3846e3(_0x448573['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c0ff7,'*Set\x20highlight:*\x20%0',_0x18aad7),'color':{'value':_0x448573['color'],'title':_0x448573['title']}};}return{'type':'format','content':o(_0x1c0ff7,'*Remove\x20highlight*',o(_0x1c0ff7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2271db{['afterInit'](){const _0x3df7a5=this['editor'];if(!_0x3df7a5['plugins']['has']('HorizontalLineEditing'))return;_0x3df7a5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5b4fbb=_0x3df7a5['plugins']['get']('TrackChangesEditing'),_0x46d277=_0x3df7a5['locale'];_0x5b4fbb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x41a0e1=>o(_0x46d277,'ELEMENT_HORIZONTAL_LINE',_0x41a0e1)),_0x3df7a5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3e27fd,{writer:_0x599188,options:_0x5efb3e})=>{if(!_0x5efb3e['showSuggestionHighlights'])return null;const _0x46a021=_0x599188['createContainerElement']('div'),_0x5d36ae=_0x599188['createEmptyElement']('hr');return _0x599188['addClass']('ck-horizontal-line',_0x46a021),_0x599188['insert'](_0x599188['createPositionAt'](_0x46a021,0x0),_0x5d36ae),_0x46a021;},'converterPriority':'high'});}}class st extends _0x2271db{['afterInit'](){const _0x3f57db=this['editor'];if(!_0x3f57db['plugins']['has']('HtmlEmbed'))return;const _0x5d3354=_0x3f57db['plugins']['get']('TrackChangesEditing'),_0x4dd271=_0x3f57db['locale'];_0x5d3354['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e126b=>o(_0x4dd271,'ELEMENT_HTML_EMBED',_0x1e126b)),_0x5d3354['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d3354['registerBlockAttribute']('value'),_0x5d3354['descriptionFactory']['registerDescriptionCallback'](_0x41caff=>{if('attribute'!=_0x41caff['type'])return;const {data:_0x3cefc3}=_0x41caff;if(_0x3cefc3&&'value'==_0x3cefc3['key']&&_0x41caff['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x53e63a=o(_0x4dd271,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4dd271,'*Change\x20%0\x20content*',_0x53e63a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x354ecd=this['editor'],_0x2b868a=_0x354ecd['locale'];_0x354ecd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50d6c8=>{if('formatBlock'!=_0x50d6c8['type'])return;const {data:_0x4014c3}=_0x50d6c8;if(_0x4014c3&&'htmlEmbed'==_0x4014c3['commandName']){const _0x3a7bb8=o(_0x2b868a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b868a,'*Change\x20%0\x20content*',_0x3a7bb8)};}});}}class nt extends _0x2271db{['afterInit'](){const _0x389fba=this['editor'];if(!_0x389fba['plugins']['has']('ImageEditing'))return;const _0x14e493=_0x389fba['plugins']['get']('TrackChangesEditing'),_0x2cba2f=_0x389fba['plugins']['get']('ImageUtils'),_0x340549=_0x389fba['locale'];_0x14e493['enableCommand']('insertImage'),_0x14e493['descriptionFactory']['registerElementLabel']('imageBlock',_0x345d59=>o(_0x340549,'ELEMENT_IMAGE',_0x345d59)),_0x14e493['descriptionFactory']['registerElementLabel']('imageInline',_0x34ee61=>o(_0x340549,'ELEMENT_INLINE_IMAGE',_0x34ee61)),_0x14e493['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x340549,'ELEMENT_CAPTION')),_0x389fba['plugins']['has']('ImageUploadEditing')&&_0x14e493['enableCommand']('uploadImage'),_0x389fba['plugins']['has']('ImageBlockEditing')&&_0x389fba['plugins']['has']('ImageInlineEditing')&&(_0x14e493['enableCommand']('imageTypeInline',(_0x497a81,_0x3133bd)=>{const _0x4dc830=_0x2cba2f['getClosestSelectedImageElement'](_0x389fba['model']['document']['selection']);_0x389fba['model']['change'](()=>{_0x14e493['markBlockFormat'](_0x4dc830,{'commandName':'imageTypeInline','commandParams':[_0x3133bd]},[],'convertBlockImageToInline');});}),_0x14e493['enableCommand']('imageTypeBlock',(_0x519e8e,_0x39231a)=>{_0x389fba['model']['change'](_0x19f44c=>{let _0x101658=_0x2cba2f['getClosestSelectedImageElement'](_0x389fba['model']['document']['selection']),_0x537c18=_0x19f44c['createRangeOn'](_0x101658);const _0x2e86cf=_0x520bb4['fromPosition'](_0x537c18['start'],'toPrevious'),_0x4936cc=_0x520bb4['fromPosition'](_0x537c18['end'],'toNext');_0x14e493['forceDefaultExecution'](()=>_0x519e8e(_0x39231a)),_0x101658=_0x2cba2f['getClosestSelectedImageElement'](_0x389fba['model']['document']['selection']),_0x537c18=_0x19f44c['createRangeOn'](_0x101658);const _0x431016=_0x19f44c['createRange'](_0x2e86cf,_0x4936cc);_0x2e86cf['detach'](),_0x4936cc['detach'](),_0x14e493['markBlockFormat'](_0x101658,{'commandName':'imageTypeInline','commandParams':[_0x39231a]},[],'convertInlineImageToBlock'),_0x431016['start']['isBefore'](_0x537c18['start'])&&_0x14e493['markInsertion'](_0x19f44c['createRange'](_0x431016['start'],_0x537c18['start']),'convertInlineImageToBlock'),_0x537c18['end']['isBefore'](_0x431016['end'])&&_0x14e493['markInsertion'](_0x19f44c['createRange'](_0x537c18['end'],_0x431016['end']),'convertInlineImageToBlock');});}),_0x14e493['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x14e493['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x14e493['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x14e493['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x14e493['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x14e493['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2bbec7])=>{const _0x35207c=_0x14e493['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1326e0=_0x2bbec7['start'],_0x5c7ccb=_0x2bbec7['end'];const _0x4322b4=_0x389fba['model']['schema']['getNearestSelectionRange'](_0x1326e0,'backward'),_0x467415=_0x389fba['model']['schema']['getNearestSelectionRange'](_0x5c7ccb,'forward');_0x4322b4['isCollapsed']&&(_0x1326e0=_0x4322b4['start']),_0x467415['isCollapsed']&&(_0x5c7ccb=_0x467415['end']),_0x35207c([_0x389fba['model']['createRange'](_0x1326e0,_0x5c7ccb)]);}),_0x14e493['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x16cce1),_0x14e493['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x16cce1)),_0x389fba['plugins']['has']('ImageCaptionEditing')&&(_0x14e493['enableCommand']('toggleImageCaption',(_0x2175e2,_0x27cb1f)=>{const _0x201234=_0x389fba['plugins']['get']('ImageCaptionUtils');let _0x4fc584=_0x2cba2f['getClosestSelectedImageElement'](_0x389fba['model']['document']['selection']),_0x4e075f=_0x201234['getCaptionFromImageModelElement'](_0x4fc584);_0x389fba['model']['change'](()=>{if(_0x4e075f)return void _0x14e493['markDeletion'](_0x389fba['model']['createRangeOn'](_0x4e075f));const _0x18fff7=_0x2cba2f['isBlockImage'](_0x4fc584);_0x2175e2(_0x27cb1f),_0x4fc584=_0x2cba2f['getClosestSelectedImageElement'](_0x389fba['model']['document']['selection']),_0x4e075f=_0x201234['getCaptionFromImageModelElement'](_0x4fc584),_0x14e493['markInsertion'](_0x389fba['model']['createRangeOn'](_0x4e075f),_0x18fff7?null:'imageCaption');});}),_0x14e493['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x16cce1));const _0x9c67ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x227d39(_0x10ee5f,_0x2468c4){const _0x1dd5c8=_0x9c67ec['findIndex'](({type:_0x3abfa9,subType:_0x30bbcc})=>_0x10ee5f['type']==_0x3abfa9&&_0x10ee5f['subType']==_0x30bbcc),_0x32a3a3=_0x9c67ec['findIndex'](({type:_0x212b3e,subType:_0x56927f})=>_0x2468c4['type']==_0x212b3e&&_0x2468c4['subType']==_0x56927f);if(_0x1dd5c8<0x0||_0x32a3a3<0x0)return!0x1;const _0x190a19=_0x10ee5f['getFirstRange'](),_0x4d0d2c=_0x2468c4['getFirstRange']();if((0x0==_0x1dd5c8||0x1==_0x1dd5c8)&&0x2==_0x32a3a3&&_0x190a19['isIntersecting'](_0x4d0d2c))return!0x0;if(0x2==_0x1dd5c8&&0x3==_0x32a3a3){const _0x39e1ce=_0x14e493['_findSuggestions'](_0x190a19,'insertion')['filter'](({suggestion:_0x28a9c8,meta:_0x5059be})=>_0x5059be['isOwn']&&'convertInlineImageToBlock'==_0x28a9c8['subType']);if(_0x39e1ce['length']>0x1&&_0x4d0d2c['end']['isEqual'](_0x190a19['start']))return!0x0;if(0x1==_0x39e1ce['length']&&(_0x190a19['start']['isEqual'](_0x4d0d2c['end'])||_0x190a19['end']['isEqual'](_0x4d0d2c['start'])))return!0x0;}if(0x3==_0x1dd5c8&&0x3==_0x32a3a3&&_0x190a19['start']['isBefore'](_0x4d0d2c['start'])){const _0x5af7c9=_0x190a19['end']['nodeAfter'],_0x15232e=_0x4d0d2c['start']['nodeBefore'];return _0x2cba2f['isBlockImage'](_0x5af7c9)&&_0x5af7c9===_0x15232e;}return!0x1;}function _0x16cce1(_0x34be95,_0x1457e9){return _0x227d39(_0x34be95,_0x1457e9)?[_0x34be95,_0x1457e9]:_0x227d39(_0x1457e9,_0x34be95)?[_0x1457e9,_0x34be95]:null;}_0x389fba['plugins']['has']('ImageResize')&&(_0x14e493['enableDefaultAttributesIntegration']('resizeImage'),_0x14e493['registerBlockAttribute']('resizedWidth'),_0x14e493['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x340549,'FORMAT_IMAGE_SIZE'))),_0x389fba['plugins']['has']('ImageTextAlternativeEditing')&&(_0x14e493['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x14e493['registerBlockAttribute']('alt')),_0x14e493['descriptionFactory']['registerDescriptionCallback'](_0x2c7618=>{if(!!_0x9c67ec['find'](({type:_0x4f0d80,subType:_0x2eb8f3})=>_0x2c7618['type']==_0x4f0d80&&_0x2c7618['subType']==_0x2eb8f3))return _0x2c7618['previous']?{}:void 0x0;}),_0x14e493['descriptionFactory']['registerDescriptionCallback'](_0x218066=>{if('insertion'==_0x218066['type']||'deletion'==_0x218066['type']){const _0x533c1b=_0x218066['getContainedElement']();if(_0x533c1b&&_0x533c1b['is']('element','caption'))return{'type':'insertion'==_0x218066['type']?'addObject':'removeObject','element':_0x533c1b,'quantity':0x1};}}),_0x14e493['descriptionFactory']['registerDescriptionCallback'](_0x265fba=>'formatBlock'==_0x265fba['type']&&'convertInlineImageToBlock'==_0x265fba['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x265fba['type']&&'convertBlockImageToInline'==_0x265fba['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x14e493['descriptionFactory']['registerDescriptionCallback'](_0x135183=>{if('attribute'!=_0x135183['type'])return;const {data:_0x329593}=_0x135183;if(!_0x329593||'alt'!=_0x329593['key'])return;const _0x9b2537=_0x329593['newValue'];return _0x9b2537?{'type':'format','content':o(_0x340549,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9b2537+'\x22')}:{'type':'format','content':o(_0x340549,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8d076a=this['editor'],_0x47c2b2=_0x8d076a['locale'];_0x8d076a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e994=>{if('formatBlock'!=_0x56e994['type']&&'formatInline'!=_0x56e994['type'])return;const {data:_0x30c0d8}=_0x56e994;if(_0x30c0d8){if('imageTextAlternative'==_0x30c0d8['commandName']){const _0x87770a=_0x30c0d8['commandParams'][0x0]['newValue'];return _0x87770a?{'type':'format','content':o(_0x47c2b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x87770a+'\x22')}:{'type':'format','content':o(_0x47c2b2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30c0d8['commandName']){const _0x22a8bb=_0x30c0d8['commandParams'][0x0]['width'];return _0x22a8bb?{'type':'format','content':o(_0x47c2b2,'*Set\x20image\x20width:*\x20%0',_0x22a8bb)}:{'type':'format','content':o(_0x47c2b2,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2271db{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x309c91=this['editor']['locale'],_0x58e97b=this['editor']['plugins']['get']('TrackChangesEditing');_0x58e97b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x58e97b['registerBlockAttribute']('src'),_0x58e97b['descriptionFactory']['registerDescriptionCallback'](_0x494bf9=>{if('attribute'!=_0x494bf9['type'])return;const {data:_0x2d5bd0}=_0x494bf9;return _0x2d5bd0&&'src'==_0x2d5bd0['key']?_0x2d5bd0['newValue']&&_0x2d5bd0['oldValue']?{'type':'format','content':o(_0x309c91,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1599ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x1599ca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1599ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1599ca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1599ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d6eb=this['editor'],_0x8b5b2b=_0x20d6eb['locale'];_0x20d6eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2526a3=>{if('formatBlock'!=_0x2526a3['type']&&'formatInline'!=_0x2526a3['type'])return;const {data:_0x27bacc}=_0x2526a3;if(!_0x27bacc||'replaceImageSource'!=_0x27bacc['commandName'])return;return{'type':'format','content':o(_0x8b5b2b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2271db{['afterInit'](){const _0x426223=this['editor'];if(!_0x426223['plugins']['has']('ImageStyleEditing'))return;const _0x1dc652=_0x426223['plugins']['get']('TrackChangesEditing'),_0x3ed654=_0x426223['plugins']['get']('ImageUtils'),_0x4a9c02={};_0x1dc652['enableCommand']('imageStyle',(_0x1a394a,_0x6b54b2)=>{const _0x4abf42=_0x426223['plugins']['get']('Users')['me'],_0x34af41=_0x426223['commands']['get']('imageStyle');let _0x16cb77=_0x3ed654['getClosestSelectedImageElement'](_0x426223['model']['document']['selection']),_0x4dc514=_0x426223['model']['createRangeOn'](_0x16cb77),_0x485827=_0x34af41['value'];if(_0x485827==_0x6b54b2['value'])return;const _0x2e08ec={'commandName':'imageStyle','commandParams':[_0x6b54b2],'formatGroupId':_0x177e31()};_0x426223['model']['change'](()=>{if(_0x1dc652['getSuggestions']()['filter'](_0x5309dc=>_0x5309dc['isInContent']&&_0x4abf42==_0x5309dc['author']&&('formatBlock'==_0x5309dc['type']||'formatInline'==_0x5309dc['type'])&&('imageStylePreApply'==_0x5309dc['subType']||'imageStylePostApply'==_0x5309dc['subType'])&&_0x5309dc['getFirstRange']()['isEqual'](_0x4dc514))['forEach'](_0xf038de=>_0x1dc652['discardSuggestion'](_0xf038de['head'])),_0x16cb77=_0x3ed654['getClosestSelectedImageElement'](_0x426223['model']['document']['selection']),_0x4dc514=_0x426223['model']['createRangeOn'](_0x16cb77),_0x34af41['refresh'](),_0x426223['commands']['get']('imageTypeInline')['refresh'](),_0x426223['commands']['get']('imageTypeBlock')['refresh'](),_0x485827=_0x34af41['value'],_0x485827!=_0x6b54b2['value'])return _0x3ed654['isInlineImage'](_0x16cb77)&&_0x34af41['shouldConvertImageType'](_0x6b54b2['value'],_0x16cb77)?(_0x1a394a({..._0x6b54b2,'setImageSizes':!0x1}),_0x16cb77=_0x3ed654['getClosestSelectedImageElement'](_0x426223['model']['document']['selection']),void _0x1dc652['markBlockFormat'](_0x16cb77,{..._0x2e08ec,'commandReversedParams':[{'value':_0x485827||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ed654['isBlockImage'](_0x16cb77)?_0x1dc652['markBlockFormat'](_0x16cb77,_0x2e08ec,[],'imageStylePostApply'):_0x1dc652['markInlineFormat'](_0x4dc514,_0x2e08ec,'imageStylePostApply'));});});for(const _0x371f27 of _0x426223['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a9c02[_0x371f27['name']]=_0x371f27['title']['toLowerCase']();_0x1dc652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1dc652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1dc652['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1dc652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d4642])=>{_0x3ed654['setImageNaturalSizeAttributes'](_0x2d4642['getContainedElement']());}),_0x1dc652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3f0d14,_0x52492b)=>{_0x1dc652['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3f0d14,{'commandName':_0x52492b['commandName'],'commandParams':_0x52492b['commandReversedParams']});}),_0x1dc652['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xdc1f70,_0x408bbe){if(_0x3557d5(_0xdc1f70,_0x408bbe))return[_0xdc1f70,_0x408bbe];if(_0x3557d5(_0x408bbe,_0xdc1f70))return[_0x408bbe,_0xdc1f70];return null;});const _0x32a459=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3557d5(_0x198b16,_0x7212f5){const _0x1ea3a6=_0x32a459['findIndex'](({type:_0x587991,subType:_0x72c464})=>_0x198b16['type']==_0x587991&&_0x198b16['subType']==_0x72c464),_0x32da99=_0x32a459['findIndex'](({type:_0x21dbbd,subType:_0x3c1870})=>_0x7212f5['type']==_0x21dbbd&&_0x7212f5['subType']==_0x3c1870);if(_0x1ea3a6<0x0||_0x32da99<0x0)return!0x1;const _0x1887f2=_0x198b16['getFirstRange'](),_0x1807f9=_0x7212f5['getFirstRange']();if((0x0==_0x1ea3a6||0x1==_0x1ea3a6)&&0x2==_0x32da99&&_0x1887f2['isIntersecting'](_0x1807f9))return!0x0;if(0x2==_0x1ea3a6&&0x3==_0x32da99){const _0x58df6c=_0x1dc652['_findSuggestions'](_0x1887f2,'insertion')['filter'](({suggestion:_0x11beeb,meta:_0x3d1987})=>_0x3d1987['isOwn']&&'convertInlineImageToBlock'==_0x11beeb['subType']);if(_0x58df6c['length']>0x1&&_0x1807f9['end']['isEqual'](_0x1887f2['start']))return!0x0;if(0x1==_0x58df6c['length']&&(_0x1887f2['start']['isEqual'](_0x1807f9['end'])||_0x1887f2['end']['isEqual'](_0x1807f9['start'])))return!0x0;}if(0x3==_0x1ea3a6&&0x3==_0x32da99&&_0x1887f2['start']['isBefore'](_0x1807f9['start'])){const _0x1e6e27=_0x1887f2['end']['nodeAfter'],_0x390eb5=_0x1807f9['start']['nodeBefore'];return _0x3ed654['isBlockImage'](_0x1e6e27)&&_0x1e6e27===_0x390eb5;}return!0x1;}_0x426223['model']['document']['registerPostFixer'](()=>{let _0x43c282=!0x1;const _0x3ff844=Array['from'](_0x426223['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41b276,data:_0x2a9888}of _0x3ff844){const {group:_0x5c89db,type:_0xc5c5dc,subType:_0x6a39c8,id:_0x1bca44}=_0x1dc652['_splitMarkerName'](_0x41b276);if('suggestion'==_0x5c89db&&_0x1dc652['hasSuggestion'](_0x1bca44)){if('formatBlock'==_0xc5c5dc&&('imageStylePreApply'==_0x6a39c8||'imageStylePostApply'==_0x6a39c8)){const _0x153658=_0x1dc652['getSuggestion'](_0x1bca44);if(_0x2a9888['newRange']){const _0x1cfa1f=_0x153658['getFirstRange']()['getContainedElement']();if(_0x3ed654['isBlockImage'](_0x1cfa1f))continue;_0x1dc652['discardSuggestion'](_0x153658),_0x43c282=!0x0;}}if('insertion'==_0xc5c5dc&&'imageCaption'==_0x6a39c8&&!_0x2a9888['newRange']){const _0x5cdac3=_0x1dc652['getSuggestion'](_0x1bca44);_0x5cdac3['next']&&_0x5cdac3['next']['isInContent']&&(_0x1dc652['discardSuggestion'](_0x5cdac3['next']),_0x43c282=!0x0);}}}return _0x43c282;}),this['_registerLegacyDescription'](_0x4a9c02);}['_registerLegacyDescription'](_0xdbdc18){const _0x102716=this['editor'],_0x3d3bf5=_0x102716['locale'];_0x102716['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f252e=>{if('formatBlock'!=_0x2f252e['type']&&'formatInline'!=_0x2f252e['type'])return;const {data:_0x2ec29d}=_0x2f252e;if(!_0x2ec29d||'imageStyle'!=_0x2ec29d['commandName'])return;const _0x94b1fd=_0x2ec29d['commandParams'][0x0]['value'];return _0x1ed81a('side'===_0x94b1fd?o(_0x3d3bf5,'FORMAT_SIDE_IMAGE'):_0xdbdc18[_0x94b1fd]||_0x94b1fd);function _0x1ed81a(_0x2ac27b){return{'type':'format','content':o(_0x3d3bf5,'*Format:*\x20%0',_0x2ac27b)};}});}}class at extends _0x2271db{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2161ce){super(_0x2161ce),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x449d81=this['editor'],_0x1123c3=_0x449d81['commands']['get']('importWord'),_0x3bfd7b=_0x449d81['commands']['get']('trackChanges');_0x1123c3&&(_0x1123c3['on']('execute',(_0x502b10,[,_0x27ce2e])=>{this['_trackChangesValueDuringImport']=_0x3bfd7b['value'],_0x27ce2e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1123c3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1123c3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3bfd7b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x449d81['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x594c87,_0x215027){const {suggestions:_0x3a962e}=_0x215027,_0x3c62b0=this['editor']['commands']['get']('trackChanges'),_0x304b42=_0x3c62b0['value'];this['_trackChangesValueDuringImport']!==_0x304b42&&(_0x3c62b0['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a962e&&_0x3a962e['forEach'](({id:_0x4d4f90,type:_0x524bb0,author:_0x4f5c53,created_at:_0x34e214})=>{const _0x3194ff={'id':_0x4d4f90,'type':_0x524bb0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f5c53,'createdAt':_0x34e214?new Date(_0x34e214):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3194ff);});}}class ct extends _0x2271db{['afterInit'](){const _0x3381fe=this['editor'],_0x46dae6=_0x3381fe['plugins']['get']('TrackChangesEditing');if(_0x3381fe['plugins']['has']('IndentEditing')&&(_0x46dae6['enableCommand']('indent'),_0x46dae6['enableCommand']('outdent')),_0x3381fe['plugins']['has']('IndentBlock')){for(const _0x12bc21 of['indentBlock','outdentBlock'])_0x46dae6['enableDefaultAttributesIntegration'](_0x12bc21);}const _0x49e036=_0x3381fe['locale'];_0x46dae6['registerBlockAttribute']('blockIndent'),_0x46dae6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x49e036,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x104bb9=this['editor'],_0x25d3ed=_0x104bb9['locale'],_0x3d7621=_0x104bb9['plugins']['get']('TrackChangesEditing');_0x3d7621['descriptionFactory']['registerDescriptionCallback'](_0x254113=>{if('formatBlock'!=_0x254113['type'])return;const {data:_0x17f571}=_0x254113;if(!_0x17f571)return;if('indentBlock'!=_0x17f571['commandName']&&'outdentBlock'!=_0x17f571['commandName'])return;const _0x3344dc=_0x254113['getItems']()[0x0],_0x543179=_0x3d7621['descriptionFactory']['getItemLabel'](_0x3344dc);return'indentBlock'==_0x17f571['commandName']?{'type':'format','content':o(_0x25d3ed,'*Indent:*\x20%0',_0x543179)}:'outdentBlock'==_0x17f571['commandName']?{'type':'format','content':o(_0x25d3ed,'*Outdent:*\x20%0',_0x543179)}:void 0x0;});}}class ut extends _0x2271db{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2271db{['afterInit'](){const _0x17453f=this['editor'];if(!_0x17453f['plugins']['has']('LinkEditing'))return;const _0x996ed0=_0x17453f['plugins']['get']('TrackChangesEditing'),_0x48037b=_0x17453f['commands']['get']('link');_0x996ed0['enableDefaultAttributesIntegration']('link'),_0x996ed0['enableDefaultAttributesIntegration']('unlink'),_0x996ed0['registerInlineAttribute']('linkHref');for(const _0x4c90b1 of _0x48037b['manualDecorators'])_0x996ed0['registerInlineAttribute'](_0x4c90b1['id']),_0x996ed0['descriptionFactory']['registerAttributeLabel'](_0x4c90b1['id'],'link\x20('+_0x4c90b1['label']['toLowerCase']()+')');_0x996ed0['descriptionFactory']['registerDescriptionCallback'](_0xdd315c=>{if('attribute'!=_0xdd315c['type'])return;const {data:_0x97a11}=_0xdd315c;if(!_0x97a11||'linkHref'!=_0x97a11['key'])return;const _0x1f78ca=_0x97a11['newValue'],_0x5553ad=_0x17453f['locale'];return{'type':'format','content':null==_0x1f78ca?o(_0x5553ad,'*Remove\x20link*'):o(_0x5553ad,'*Set\x20link:*\x20%0','\x22'+_0x1f78ca+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x294c3d=this['editor'],_0x307af9=_0x294c3d['locale'];_0x294c3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x550592=>{if('formatInline'!=_0x550592['type'])return;const {data:_0x320d99}=_0x550592;if(_0x320d99){if('link'==_0x320d99['commandName']){const _0x4fe1f6=_0x320d99['commandParams'][0x0];return{'type':'format','content':o(_0x307af9,'*Set\x20link:*\x20%0','\x22'+_0x4fe1f6+'\x22')};}return'unlink'==_0x320d99['commandName']?{'type':'format','content':o(_0x307af9,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2271db{['afterInit'](){const _0x33a29e=this['editor'],_0x5d6c97=_0x33a29e['locale'];if(!_0x33a29e['plugins']['has']('LegacyListEditing'))return;const _0x52ac3d=_0x33a29e['plugins']['get']('TrackChangesEditing'),_0x5ed3d0=_0x33a29e['plugins']['has']('LegacyTodoListEditing');function _0x5cbd58(_0x2866c3){return()=>{const _0x5c350d=_0x33a29e['model']['document']['selection'],_0x114a69=_0x33a29e['commands']['get'](_0x2866c3);if(_0x114a69['value'])return void _0x33a29e['execute']('paragraph',{});const _0x245afe=_0x2866c3['slice'](0x0,-0x4),_0x8a533e=function(_0x1cd64d,_0x5ab2af,_0x493315){let _0x27335d=Array['from'](_0x1cd64d)['filter'](_0x8ec665=>function(_0x489bea,_0x4e67a3){return _0x4e67a3['checkChild'](_0x489bea['parent'],'listItem')&&!_0x4e67a3['isObject'](_0x489bea);}(_0x8ec665,_0x493315));_0x27335d=_0x27335d['filter'](_0x37d7e6=>!_0x37d7e6['is']('element','listItem')||_0x37d7e6['getAttribute']('listType')!=_0x5ab2af);const _0x46dbce=new Set();for(const _0x2f967d of _0x27335d)_0x2f967d['is']('element','listItem')?_0x46dbce['add'](fe(_0x2f967d)):_0x46dbce['add'](_0x2f967d);return Array['from'](_0x46dbce);}(_0x5c350d['getSelectedBlocks'](),_0x245afe,_0x33a29e['model']['schema']);_0x33a29e['model']['change'](()=>{for(const _0x176b4 of _0x8a533e)_0x52ac3d['markBlockFormat'](_0x176b4,{'commandName':_0x2866c3,'commandParams':[{'forceValue':!_0x114a69['value']}],'formatGroupId':'blockName'},ue(_0x176b4));});};}function _0x59c686(_0x35c201){return()=>{const _0x1101c4=function(_0x2b49c3){let _0xab134f=Array['from'](_0x2b49c3);const _0x2527e3=_0xab134f['findIndex'](_0x52cb44=>'listItem'!=_0x52cb44['name']);return _0x2527e3>-0x1&&(_0xab134f=_0xab134f['slice'](0x0,_0x2527e3)),_0xab134f;}(_0x33a29e['model']['document']['selection']['getSelectedBlocks']()),_0xd60195=_0x33a29e['model']['createRange'](_0x33a29e['model']['createPositionAt'](_0x1101c4[0x0],'before'),_0x33a29e['model']['createPositionAt'](_0x1101c4[_0x1101c4['length']-0x1],'end'));_0x33a29e['model']['change'](()=>{_0x52ac3d['markBlockFormat'](_0xd60195,{'commandName':_0x35c201,'commandParams':[],'formatGroupId':'listIndent'},function(_0x31dccc){const _0x31bfe9=new Set();for(const _0x1634e5 of _0x31dccc){let _0x3dca38=_0x1634e5['nextSibling'];for(;_0x3dca38&&_0x3dca38['getAttribute']('listIndent')>_0x1634e5['getAttribute']('listIndent');)_0x31bfe9['add'](_0x3dca38),_0x3dca38=_0x3dca38['nextSibling'];}return Array['from'](_0x31bfe9);}(_0x1101c4));});};}_0x52ac3d['enableCommand']('numberedList',_0x5cbd58('numberedList')),_0x52ac3d['enableCommand']('bulletedList',_0x5cbd58('bulletedList')),_0x5ed3d0&&_0x52ac3d['enableCommand']('todoList',_0x5cbd58('todoList')),_0x52ac3d['enableCommand']('indentList',_0x59c686('indentList')),_0x52ac3d['enableCommand']('outdentList',_0x59c686('outdentList')),_0x5ed3d0&&_0x52ac3d['enableCommand']('checkTodoList',()=>{const _0xe4afd8=_0x33a29e['commands']['get']('checkTodoList'),_0x19e842=Array['from'](_0xe4afd8['_selectedElements']);_0x19e842['filter'](_0x25fb4d=>_0x25fb4d['getAttribute']('todoListChecked')!=_0xe4afd8['value']),_0x33a29e['model']['change'](()=>{for(const _0x2624fc of _0x19e842)_0x52ac3d['markBlockFormat'](_0x2624fc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe4afd8['value']}]});});}),_0x52ac3d['descriptionFactory']['registerElementLabel']('listItem',_0x3397e2=>o(_0x5d6c97,'ELEMENT_LIST_ITEM',_0x3397e2)),_0x52ac3d['descriptionFactory']['registerDescriptionCallback'](_0xe79db6=>{if('formatBlock'!=_0xe79db6['type']&&'formatInline'!=_0xe79db6['type'])return;const {data:_0xb9e7de}=_0xe79db6;if(_0xb9e7de){if('numberedList'==_0xb9e7de['commandName']||'bulletedList'==_0xb9e7de['commandName']||'todoList'==_0xb9e7de['commandName'])switch(_0xb9e7de['commandName']['replace']('List','')){case'bulleted':return _0x5d2738(o(_0x5d6c97,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d2738(o(_0x5d6c97,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d2738(o(_0x5d6c97,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb9e7de['commandName'])return{'type':'format','content':o(_0x5d6c97,'*Indent:*\x20%0',o(_0x5d6c97,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb9e7de['commandName'])return{'type':'format','content':o(_0x5d6c97,'*Outdent:*\x20%0',o(_0x5d6c97,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb9e7de['commandName'])return _0xb9e7de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d6c97,'*Check\x20item*')}:{'type':'format','content':o(_0x5d6c97,'*Uncheck\x20item*')};}function _0x5d2738(_0x456dcc){return{'type':'format','content':o(_0x5d6c97,'*Change\x20to:*\x20%0',_0x456dcc)};}});}}function fe(_0x4f791d){const _0x2ad5f4=_0x4f791d['getAttribute']('listIndent');if(0x0==_0x2ad5f4)return _0x4f791d;let _0x41b470=_0x4f791d;for(;_0x4f791d['previousSibling']&&_0x4f791d['previousSibling']['is']('element','listItem');){const _0x62ef52=_0x4f791d['previousSibling']['getAttribute']('listIndent');if(_0x62ef52==_0x2ad5f4)_0x41b470=_0x4f791d['previousSibling'];else{if(_0x62ef52<_0x2ad5f4)break;}_0x4f791d=_0x4f791d['previousSibling'];}return _0x41b470;}function ue(_0x256064){const _0x23e816=[];if(_0x256064['is']('element','listItem')&&_0x256064['getAttribute']('listIndent')>0x0){let _0x5dbafa=_0x256064['nextSibling'];for(;_0x5dbafa&&'listItem'==_0x5dbafa['name']&&_0x5dbafa['getAttribute']('listIndent')==_0x256064['getAttribute']('listIndent');)_0x23e816['push'](_0x5dbafa),_0x5dbafa=_0x5dbafa['nextSibling'];}return _0x23e816;}class W extends _0x2271db{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53257b=this['editor']['config']['get']('list.properties'),_0x405d04=this['editor']['plugins']['get']('TrackChangesEditing');_0x53257b['styles']&&_0x405d04['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53257b['reversed']&&_0x405d04['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53257b['startIndex']&&_0x405d04['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x405d04['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4bc446,_0x333cd2={}){const _0xc71106=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7e28=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc71106['markMultiRangeBlockFormat'](_0x3f7e28,{'commandName':'listStyle','commandParams':[{'type':_0x333cd2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20abcd,_0x204061={}){const _0x534358=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c1db9=this['_getSuggestionBlocks'](_0x247af4=>_0x247af4['is']('element','listItem')&&'numbered'===_0x247af4['getAttribute']('listType'));if(_0x5c1db9['length']<0x1)return;const _0x907a09=_0x5c1db9['map'](_0x4eb163=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4eb163,'before'),this['editor']['model']['createPositionAt'](_0x4eb163,0x0)));this['editor']['model']['change'](()=>{_0x534358['markMultiRangeBlockFormat'](_0x907a09,{'commandName':'listReversed','commandParams':[{'reversed':_0x204061['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x799c19,_0x1b2ea7={}){const _0x510230=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106f60=this['_getSuggestionBlocks'](_0x2ebadf=>_0x2ebadf['is']('element','listItem')&&'numbered'===_0x2ebadf['getAttribute']('listType'));if(_0x106f60['length']<0x1)return;const _0x440299=_0x106f60['map'](_0x86f1e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x86f1e1,'before'),this['editor']['model']['createPositionAt'](_0x86f1e1,0x0)));this['editor']['model']['change'](()=>{_0x510230['markMultiRangeBlockFormat'](_0x440299,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b2ea7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x371343){if('formatBlock'!=_0x371343['type']&&'formatInline'!=_0x371343['type'])return;const _0x3a9225=this['editor']['locale'],{data:_0x4ceec9}=_0x371343;if(!_0x4ceec9)return;let _0x216c52,_0x1f3ba0;switch(_0x4ceec9['commandName']){case'listStyle':_0x216c52='*Change\x20to:*\x20%0',_0x1f3ba0={'type':'format','content':o(_0x3a9225,_0x216c52,o(_0x3a9225,this['_getTranslationKeyForListStyle'](_0x4ceec9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x216c52=_0x4ceec9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f3ba0={'type':'format','content':o(_0x3a9225,_0x216c52)};break;case'listStart':_0x216c52='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f3ba0={'type':'format','content':o(_0x3a9225,_0x216c52,_0x4ceec9['commandParams'][0x0]['startIndex'])};}return _0x1f3ba0;}['_getSuggestionBlocksForListStyle'](){const _0x3646fc=this['editor']['plugins']['get']('LegacyListUtils');let _0x25f3ca=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25f3ca[0x0]?.['is']('element','listItem')&&_0x25f3ca['unshift'](..._0x3646fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25f3ca[_0x25f3ca['length']-0x1]?.['is']('element','listItem')&&_0x25f3ca['push'](..._0x3646fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25f3ca=[...new Set(_0x25f3ca)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25f3ca=_0x25f3ca['filter'](_0x5f3c25=>_0x5f3c25['is']('element','listItem'))),_0x25f3ca;}['_getSuggestionBlocks'](_0xe8131b){const _0x465e51=this['editor']['plugins']['get']('LegacyListUtils');let _0x11053a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe8131b)['map'](_0x5ac340=>{const _0x242c35=this['editor']['model']['createPositionAt'](_0x5ac340,0x0);return[..._0x465e51['getSiblingNodes'](_0x242c35,'backward'),..._0x465e51['getSiblingNodes'](_0x242c35,'forward')];})['flat']();return _0x11053a=[...new Set(_0x11053a)],_0x11053a;}['_getTranslationKeyForListStyle'](_0x1e5209){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1e5209)||'default')['toUpperCase']()+'_LIST_'+_0x1e5209['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2271db{['afterInit'](){const _0x302a07=this['editor'];if(!_0x302a07['plugins']['has']('MediaEmbedEditing'))return;const _0x3ef735=_0x302a07['plugins']['get']('TrackChangesEditing'),_0x297fc7=_0x302a07['locale'];_0x3ef735['enableCommand']('mediaEmbed'),_0x3ef735['descriptionFactory']['registerElementLabel']('media',_0x265271=>o(_0x297fc7,'ELEMENT_MEDIA',_0x265271)),_0x302a07['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x16c2b1,{writer:_0x4c177e,options:_0xbb91db})=>{if(_0xbb91db['showSuggestionHighlights'])return _0x4c177e['createEmptyElement']('div');},'converterPriority':'high'}),_0x302a07['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5e3fbf,_0x199ea9,_0x135758)=>{_0x135758['options']['showSuggestionHighlights']&&_0x5e3fbf['stop']();},{'priority':'high'});}}class mt extends _0x2271db{['afterInit'](){const _0x47102d=this['editor'];_0x47102d['plugins']['has']('MentionEditing')&&_0x47102d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2271db{['afterInit'](){const _0xbec549=this['editor'];if(!_0xbec549['plugins']['has']('MergeFieldsEditing'))return;_0xbec549['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0xbec549['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x15197f=_0xbec549['plugins']['get']('TrackChangesEditing'),_0x272b29=_0xbec549['locale'];_0x15197f['descriptionFactory']['registerElementLabel']('mergeField',_0x4b2c30=>o(_0x272b29,'ELEMENT_MERGE_FIELD',_0x4b2c30)),_0x15197f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1a9c8b=>o(_0x272b29,'ELEMENT_MERGE_FIELD',_0x1a9c8b)),_0x15197f['descriptionFactory']['registerDescriptionCallback'](_0x4c64e0=>{if('insertion'!=_0x4c64e0['type']&&'deletion'!=_0x4c64e0['type'])return;const _0x5b50aa=_0x4c64e0['getContainedElement']();if(null==_0x5b50aa)return;if(!_0x5b50aa['is']('element','mergeField')&&!_0x5b50aa['is']('element','mergeFieldBlock'))return;const _0x77e010=_0xbec549['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5b50aa['getAttribute']('id'));return'insertion'==_0x4c64e0['type']?{'type':'insertion','content':o(_0x272b29,'*Insert:*\x20%0','\x22'+_0x77e010+'\x22\x20'+o(_0x272b29,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x272b29,'*Remove:*\x20%0','\x22'+_0x77e010+'\x22\x20'+o(_0x272b29,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2271db{['afterInit'](){const _0x4f2554=this['editor'],_0x17f30a=_0x4f2554['plugins']['get']('TrackChangesEditing');_0x4f2554['plugins']['has']('MultiLevelList')&&(_0x17f30a['enableDefaultAttributesIntegration']('multiLevelList'),_0x17f30a['registerBlockAttribute']('listMarkerStyle'),_0x17f30a['descriptionFactory']['registerDescriptionCallback'](_0x47a024=>this['handleDescriptions'](_0x47a024)));}['handleDescriptions'](_0x4969ea){const _0x5c5391=this['editor']['locale'],{data:_0xa53ec1}=_0x4969ea,_0x314713={'type':'format','content':''};if(_0xa53ec1&&'listMarkerStyle'==_0xa53ec1['key']){if(!_0xa53ec1['oldValue'])return{'type':'format','content':o(_0x5c5391,'*Set\x20format:*\x20%0',o(_0x5c5391,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xa53ec1['newValue']+')'};if(!_0xa53ec1['newValue']){let _0x12fb66=_0x4969ea['head'];for(;_0x12fb66;){if(_0x12fb66['data']&&'listType'==_0x12fb66['data']['key']&&_0x12fb66['data']['newValue'])return _0x314713;_0x12fb66=_0x12fb66['next'];}return{'type':'format','content':o(_0x5c5391,'*Remove\x20format:*\x20%0',o(_0x5c5391,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xa53ec1['oldValue']+')'};}}}}class kt extends _0x2271db{['afterInit'](){const _0x128615=this['editor'];if(!_0x128615['plugins']['has']('PageBreakEditing'))return;_0x128615['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x486ec5=_0x128615['plugins']['get']('TrackChangesEditing'),_0x15a43a=_0x128615['locale'];_0x486ec5['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c4a2a=>o(_0x15a43a,'ELEMENT_PAGE_BREAK',_0x1c4a2a));}}class bt extends _0x2271db{['afterInit'](){const _0x496b22=this['editor'];if(!_0x496b22['plugins']['has']('Paragraph'))return;const _0x27efd5=_0x496b22['locale'],_0x19ac1f=_0x496b22['plugins']['get']('TrackChangesEditing');_0x19ac1f['descriptionFactory']['registerElementLabel']('paragraph',_0x2b37c1=>o(_0x27efd5,'ELEMENT_PARAGRAPH',_0x2b37c1)),_0x19ac1f['enableDefaultAttributesIntegration']('paragraph'),_0x19ac1f['enableCommand']('insertParagraph'),_0x496b22['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x496b22),{'priority':'highest'}),_0x496b22['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4d8ec1,_0x4a8a56,_0x3c68b4)=>{_0x3c68b4['options']['showSuggestionHighlights']&&nr(_0x496b22,{'showActiveMarker':!0x1})(_0x4d8ec1,_0x4a8a56,_0x3c68b4);},{'priority':'highest'});const _0x35ddaf=_0x19ac1f['descriptionFactory'];_0x35ddaf['registerDescriptionCallback'](_0x5c8803=>{if('insertion'!==_0x5c8803['type'])return;const {start:_0x24bb6e,end:_0x55d091}=_0x5c8803['getFirstRange']();if(!_0x24bb6e['isTouching'](_0x55d091)||!_0x24bb6e['nodeAfter'])return;const _0x2b1ec1=_0x496b22['model']['schema'],_0x3a8d2c=_0x24bb6e['nodeAfter'];return _0x2b1ec1['isBlock'](_0x3a8d2c)&&!_0x2b1ec1['isLimit'](_0x3a8d2c)&&_0x2b1ec1['checkChild'](_0x3a8d2c,'$text')?{'type':'insertion','content':o(_0x27efd5,'*Insert:*\x20%0',_0x35ddaf['getItemLabel'](_0x3a8d2c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd6eaf1=this['editor'],_0x52acf8=_0xd6eaf1['locale'];_0xd6eaf1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aba3e=>{if('formatBlock'!=_0x5aba3e['type'])return;const {data:_0x2a0332}=_0x5aba3e;return _0x2a0332&&'paragraph'==_0x2a0332['commandName']?{'type':'format','content':o(_0x52acf8,'*Change\x20to:*\x20%0',o(_0x52acf8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5bed7c,{showActiveMarker:_0x1ade8e=!0x0}={}){return(_0x3b873e,_0x2ac275,_0x37f825)=>{const _0xfd8b6f=_0x5bed7c['plugins']['get']('TrackChangesEditing'),_0x4d8dac=_0x2ac275['markerRange']['start'],_0x498f3c=_0x2ac275['markerRange']['end'],_0x585966=_0x5bed7c['model']['schema'];if(!_0x4d8dac['isTouching'](_0x498f3c)||!_0x4d8dac['nodeAfter'])return;const _0x16cefc=_0x4d8dac['nodeAfter'];if(_0x585966['isBlock'](_0x16cefc)&&!_0x585966['isLimit'](_0x16cefc)&&_0x585966['checkChild'](_0x16cefc,'$text')){if(!_0x37f825['consumable']['consume'](_0x2ac275['markerRange'],_0x3b873e['name']))return;const {authorId:_0x3b8f6}=_0xfd8b6f['_splitMarkerName'](_0x2ac275['markerName']),_0x44f67e=_0x37f825['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3b8f6}),_0x525b29=_0x37f825['mapper']['toViewPosition'](_0x498f3c);_0x1ade8e&&_0xfd8b6f['activeMarkers']['includes'](_0x2ac275['markerName'])&&_0x37f825['writer']['addClass']('ck-suggestion-marker--active',_0x44f67e),_0x37f825['writer']['insert'](_0x525b29,_0x44f67e),_0x37f825['mapper']['bindElementToMarker'](_0x44f67e,_0x2ac275['markerName']);}};}class wt extends _0x2271db{['afterInit'](){const _0x5d1d5b=this['editor'];if(!_0x5d1d5b['plugins']['has']('RemoveFormatEditing'))return;_0x5d1d5b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x687add=this['editor'];_0x687add['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d477=>{if('formatBlock'!=_0x34d477['type']&&'formatInline'!=_0x34d477['type'])return;const {data:_0x338814}=_0x34d477;return _0x338814&&'removeFormat'==_0x338814['commandName']?{'type':'format','content':o(_0x687add['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2271db{['afterInit'](){const _0x2adf7e=this['editor'];if(!_0x2adf7e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x36c6eb=_0x2adf7e['plugins']['get']('TrackChangesEditing');_0x36c6eb['enableCommand']('goToPreviousRestrictedEditingException'),_0x36c6eb['enableCommand']('goToNextRestrictedEditingException');const _0x4fa453=_0x2adf7e['plugins']['get']('RestrictedEditingModeEditing');_0x4fa453['enableCommand']('trackChanges'),_0x4fa453['enableCommand']('acceptSuggestion'),_0x4fa453['enableCommand']('discardSuggestion'),_0x4fa453['enableCommand']('acceptAllSuggestions'),_0x4fa453['enableCommand']('discardAllSuggestions'),_0x4fa453['enableCommand']('acceptSelectedSuggestions'),_0x4fa453['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2271db{static get['requires'](){return[_0x36c155];}['init'](){const _0x13ec83=this['editor'],_0x430fd8=_0x13ec83['plugins']['get']('TrackChangesEditing');_0x430fd8['enableCommand']('shiftEnter'),_0x13ec83['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x13ec83),{'priority':'high'}),_0x13ec83['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x13ec83),{'priority':'high'}),_0x13ec83['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18ae67,_0x59386e,_0x21da1f)=>{_0x21da1f['options']['showSuggestionHighlights']&&ge(_0x13ec83,{'showActiveMarker':!0x1})(_0x18ae67,_0x59386e,_0x21da1f);}),_0x430fd8['descriptionFactory']['registerElementLabel']('softBreak',_0x3bb0ad=>o(_0x13ec83['locale'],'ELEMENT_LINE_BREAK',_0x3bb0ad));}}function ge(_0x28e16b,{showActiveMarker:_0x263a73=!0x0}={}){return(_0x2995ff,_0x1cdb04,_0x583f01)=>{const _0x36b3e4=_0x28e16b['plugins']['get']('TrackChangesEditing');if(!_0x583f01['consumable']['test'](_0x1cdb04['markerRange'],_0x2995ff['name']))return;const _0x48dfaf=_0x28e16b['model'];for(const _0x4a73ff of _0x1cdb04['markerRange']['getItems']()){if(!_0x4a73ff['is']('element','softBreak'))continue;const _0x42a806='deletion'==_0x1cdb04['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x12188b}=_0x36b3e4['_splitMarkerName'](_0x1cdb04['markerName']),_0x53afd0=_0x583f01['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42a806,'data-author-id':_0x12188b}),_0x43634b=_0x583f01['mapper']['toViewPosition'](_0x48dfaf['createPositionBefore'](_0x4a73ff));_0x263a73&&_0x36b3e4['activeMarkers']['includes'](_0x1cdb04['markerName'])&&_0x583f01['writer']['addClass']('ck-suggestion-marker--active',_0x53afd0),_0x583f01['writer']['insert'](_0x43634b,_0x53afd0),_0x583f01['mapper']['bindElementToMarker'](_0x53afd0,_0x1cdb04['markerName']);}};}class St extends _0x2271db{['afterInit'](){const _0x2ef98f=this['editor'],_0x2b0e54=_0x2ef98f['model'],_0x4b9438=_0x2ef98f['locale'];if(!_0x2ef98f['plugins']['has']('StandardEditingModeEditing'))return;const _0x556de1=_0x2ef98f['plugins']['get']('TrackChangesEditing'),_0xd5f301='restrictedEditingException',_0x51f6b4=_0x2ef98f['commands']['get'](_0xd5f301);_0x556de1['enableCommand'](_0xd5f301,(_0x29334d,_0x457f65={})=>{const _0x4c1076=_0x2b0e54['document']['selection'];if(_0x4c1076['isCollapsed'])return void _0x29334d(_0x457f65);const _0x3182ee=void 0x0!==_0x457f65['forceValue']?_0x457f65['forceValue']:!_0x51f6b4['value'];_0x2b0e54['change'](()=>{const _0x2afb58=Array['from'](_0x4c1076['getRanges']());for(const _0x2d30c8 of _0x2afb58){const _0x1e0cb3=_0x3182ee?[_0x2d30c8]:io(_0xd5f301,_0x2d30c8,_0x2b0e54);for(const _0x259f28 of _0x1e0cb3)_0x556de1['markInlineFormat'](_0x259f28,{'commandName':_0xd5f301,'commandParams':[{'forceValue':_0x3182ee}]});}});}),_0x556de1['descriptionFactory']['registerDescriptionCallback'](_0x52a6d7=>{if('formatBlock'!=_0x52a6d7['type']&&'formatInline'!=_0x52a6d7['type'])return;const {data:_0xb8bec1}=_0x52a6d7;return _0xb8bec1&&_0xb8bec1['commandName']==_0xd5f301?_0xb8bec1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b9438,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b9438,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2271db{['afterInit'](){const _0x454c0b=this['editor'];if(!_0x454c0b['plugins']['has']('Style')||!_0x454c0b['plugins']['has']('DataSchema'))return;const _0x3021bc=_0x454c0b['plugins']['get']('TrackChangesEditing'),_0x68769=_0x454c0b['locale'],_0x5751d3=_0x454c0b['config']['get']('style')||{},_0x1b842f=_0x454c0b['plugins']['get']('GeneralHtmlSupport'),_0x5a6732=_0x454c0b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x454c0b['plugins']['get']('DataSchema'),_0x5751d3['definitions']);_0x3021bc['enableDefaultAttributesIntegration']('style');const _0x492724=new Set();for(const _0x3745b7 of _0x5a6732['block']){const _0x4fa039=_0x1b842f['getGhsAttributeNameForElement'](_0x3745b7['element']);_0x492724['add'](_0x4fa039);}const _0x434d45=new Set();for(const _0x5965b1 of _0x5a6732['inline']){const _0x44c2af=_0x1b842f['getGhsAttributeNameForElement'](_0x5965b1['element']);_0x434d45['add'](_0x44c2af);for(const _0x12c947 of _0x5965b1['ghsAttributes'])_0x434d45['add'](_0x12c947);}for(const _0x45ef73 of _0x492724)_0x3021bc['registerBlockAttribute'](_0x45ef73),_0x3021bc['descriptionFactory']['registerAttributeLabel'](_0x45ef73,o(_0x68769,'FORMAT_STYLE'));for(const _0x2a651d of _0x434d45)_0x3021bc['registerInlineAttribute'](_0x2a651d),_0x3021bc['descriptionFactory']['registerAttributeLabel'](_0x2a651d,o(_0x68769,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf76911=this['editor'],_0x48910e=_0xf76911['locale'];_0xf76911['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18cf9c=>{if('formatBlock'!=_0x18cf9c['type']&&'formatInline'!=_0x18cf9c['type'])return;const {data:_0x4f581a}=_0x18cf9c;return _0x4f581a&&'style'===_0x4f581a['commandName']?_0x4f581a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48910e,'*Set\x20format:*\x20%0',_0x4f581a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x48910e,'*Remove\x20format:*\x20%0',_0x4f581a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2271db{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25138b){super(_0x25138b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x58dd01=this['editor'],_0x27a2aa=_0x58dd01['model']['document']['selection'];if(!_0x58dd01['plugins']['has']('TableEditing'))return;const _0x4c33e2=_0x58dd01['locale'],_0x8a77f0=_0x58dd01['plugins']['get']('TrackChangesEditing'),_0x1dea7f=_0x58dd01['plugins']['get']('TableUtils');_0x8a77f0['descriptionFactory']['registerElementLabel']('table',_0xb0f273=>o(_0x4c33e2,'ELEMENT_TABLE',_0xb0f273)),this['_setupColumnsRowsFixing'](),_0x8a77f0['enableCommand']('insertTable'),_0x8a77f0['enableCommand']('selectTableRow'),_0x8a77f0['enableCommand']('selectTableColumn');for(const _0x2865c7 of['insertTableRowAbove','insertTableRowBelow']){const _0x37fe3b=_0x58dd01['commands']['get'](_0x2865c7);_0x8a77f0['enableCommand'](_0x2865c7,_0x47cb4a=>{_0x58dd01['model']['change'](_0x570e96=>{_0x47cb4a();const _0x3fbad7='above'===_0x37fe3b['order'],_0xc0885b=_0x1dea7f['getSelectionAffectedTableCells'](_0x27a2aa),_0x38c920=_0x1dea7f['getRowIndexes'](_0xc0885b),_0x2f6ffe=_0x3fbad7?_0x38c920['first']-0x1:_0x38c920['last']+0x1,_0x425362=_0xc0885b[0x0]['findAncestor']('table'),_0x3bcc41=_0x1dea7f['createTableWalker'](_0x425362,{'startRow':_0x2f6ffe,'endRow':_0x2f6ffe}),_0x19f3d8=Array['from'](_0x3bcc41)['map'](_0x34edd1=>_0x570e96['createRangeOn'](_0x34edd1['cell']));_0x8a77f0['markMultiRangeInsertion'](_0x19f3d8,'tableRow');});});}for(const _0x1b4bde of['insertTableColumnLeft','insertTableColumnRight']){const _0x360c0d=_0x58dd01['commands']['get'](_0x1b4bde);_0x8a77f0['enableCommand'](_0x1b4bde,_0x5ec081=>{_0x58dd01['model']['change'](_0x4c3f62=>{_0x5ec081();const _0x3752db='left'===_0x360c0d['order'],_0x92923=_0x1dea7f['getSelectionAffectedTableCells'](_0x27a2aa),_0x7b2c23=_0x1dea7f['getColumnIndexes'](_0x92923),_0x3c26b6=_0x3752db?_0x7b2c23['first']-0x1:_0x7b2c23['last']+0x1,_0x5ad007=_0x92923[0x0]['findAncestor']('table'),_0x51337f=_0x1dea7f['createTableWalker'](_0x5ad007,{'startRow':0x0,'column':_0x3c26b6,'includeAllSlots':!0x1}),_0xb8a41f=Array['from'](_0x51337f)['map'](_0xde1dbe=>_0x4c3f62['createRangeOn'](_0xde1dbe['cell']));_0x8a77f0['markMultiRangeInsertion'](_0xb8a41f,'tableColumn');});});}for(const _0x475bd4 of['removeTableRow','removeTableColumn']){const _0x1ccc69=_0x475bd4['substr'](0xb),_0x6e136e=_0x1ccc69['toLowerCase'](),_0x10c881=_0x6e136e['substr'](0x0,0x3)+'span',_0x200c2a='table'+_0x1ccc69,_0x46cdb9='min'+_0x1ccc69,_0xf2a4dd='max'+_0x1ccc69;_0x8a77f0['enableCommand'](_0x475bd4,()=>{_0x58dd01['model']['change'](_0x17f704=>{const _0x26c17e=_0x1dea7f['getSelectionAffectedTableCells'](_0x27a2aa),_0x51c07c=_0x26c17e[0x0]['findAncestor']('table');let _0x54c559;if('removeTableRow'==_0x475bd4){const _0x3e53b4=_0x1dea7f['getRowIndexes'](_0x26c17e);_0x54c559={'startRow':_0x3e53b4['first'],'endRow':_0x3e53b4['last'],'includeAllSlots':!0x0};}else{const _0x449761=_0x1dea7f['getColumnIndexes'](_0x26c17e);_0x54c559={'startColumn':_0x449761['first'],'endColumn':_0x449761['last'],'includeAllSlots':!0x0};}const _0x4d1a49=_0x1dea7f['createTableWalker'](_0x51c07c,_0x54c559),_0x42e754=Array['from'](_0x4d1a49)['map'](({cell:_0xe0ddfe})=>_0xe0ddfe),_0x2f31ac=be(_0x42e754['filter'](_0x2783c2=>_0x2783c2['hasAttribute'](_0x10c881))),_0x53a3f8=be(_0x42e754['filter'](_0x2a3dd9=>!_0x2a3dd9['hasAttribute'](_0x10c881)))['map'](_0x26e8ec=>_0x17f704['createRangeOn'](_0x26e8ec)),_0x45f528=_0x8a77f0['markMultiRangeDeletion'](_0x53a3f8,_0x200c2a);if(_0x45f528&&('tableRow'==_0x45f528['subType']||'tableColumn'==_0x45f528['subType'])){const _0x107166=this['_getSuggestionCoords'](_0x45f528);for(const _0x48ca20 of _0x2f31ac){const _0x394dc0=_0x17f704['createRangeOn'](_0x48ca20),_0x3b3a81=_0x1dea7f['getCellLocation'](_0x48ca20),_0x3202f2=_0x48ca20['getAttribute'](_0x10c881)-0x1,_0x183a9c=_0x107166[_0x46cdb9],_0x1303c8=_0x107166[_0xf2a4dd];_0x183a9c<=_0x3b3a81[_0x6e136e]&&_0x3b3a81[_0x6e136e]+_0x3202f2<=_0x1303c8&&_0x45f528['addRange'](_0x394dc0);}}});});}function _0x1c507d(_0x9215e7){const _0x80420f=Array['from'](_0x27a2aa['getRanges']())['map'](_0x6fd7fd=>_0xb0a740['fromRange'](_0x6fd7fd));_0x58dd01['model']['change'](_0x33e514=>{const _0xf33ff8=_0x33e514['batch'];_0x9215e7=_0x9215e7['filter'](_0x3482c3=>'$graveyard'!=_0x3482c3['root']['rootName']),_0x33e514['setSelection'](_0x9215e7),_0x58dd01['commands']['get']('removeTableRow')['refresh'](),_0x58dd01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x58dd01['model']['enqueueChange'](()=>{_0x58dd01['model']['enqueueChange'](_0xf33ff8,_0x249cc8=>{const _0x1ed3eb=_0x80420f['filter'](_0x27690a=>'$graveyard'!=_0x27690a['root']['rootName']);_0x1ed3eb['length']>0x0&&_0x249cc8['setSelection'](_0x1ed3eb);for(const _0x1b9164 of _0x80420f)_0x1b9164['detach']();});});});}function _0x98a55f(_0x498276){_0x58dd01['model']['change'](_0x800db4=>{const _0x5efb7e=Array['from'](_0x27a2aa['getRanges']())['map'](_0x2bb171=>_0xb0a740['fromRange'](_0x2bb171)),_0x211dc8=[];for(const _0x4fc8b5 of _0x498276)for(const _0x1a8d8e of _0x4fc8b5['getItems']({'shallow':!0x0}))_0x211dc8['push'](_0x1a8d8e);for(const _0x3ccd3f of _0x211dc8)'$graveyard'!=_0x3ccd3f['root']['rootName']&&(_0x800db4['setSelection'](_0x800db4['createPositionAt'](_0x3ccd3f,0x0)),_0x58dd01['commands']['get']('removeTableColumn')['refresh'](),_0x58dd01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47b0c6=_0x5efb7e['filter'](_0x503cd7=>'$graveyard'!=_0x503cd7['root']['rootName']);_0x47b0c6['length']>0x0&&_0x800db4['setSelection'](_0x47b0c6);for(const _0x2d8d87 of _0x5efb7e)_0x2d8d87['detach']();});}function _0x4f0b25(_0x555023,_0xc9cd4){return _0xc9cd4['every'](_0x2e38ad=>_0x555023['some'](_0x36ad95=>_0x36ad95['end']['isEqual'](_0x2e38ad['start'])||_0x2e38ad['end']['isEqual'](_0x36ad95['start'])));}function _0x2762a6(_0x51e680,_0x2a951b){return!_0x51e680['some'](_0xd0e718=>_0x2a951b['some'](_0x312c73=>_0xd0e718['isIntersecting'](_0x312c73)))&&_0x51e680['some'](_0x28b116=>_0x2a951b['some'](_0x56401c=>_0x28b116['end']['isTouching'](_0x56401c['start'])));}_0x58dd01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3adffa,_0x26cf2f,_0x319700)=>{if(!_0x319700['options']['showSuggestionHighlights'])return;const _0x1b6774=_0x26cf2f['item'];if(!_0x1b6774)return;const _0x9060f8=_0x319700['mapper']['toViewElement'](_0x1b6774);function _0x48f628(_0x41a954){return Array['isArray'](_0x41a954)?_0x41a954:[_0x41a954];}_0x9060f8&&'tableCell'===_0x1b6774['name']&&_0x2177d6(_0x9060f8,_0x319700['writer'],(_0x578986,_0x43288c,_0x1d5330)=>_0x1d5330['addClass'](_0x48f628(_0x43288c['classes']),_0x578986),(_0x2ebea9,_0x1b35e2,_0x2036a2)=>_0x2036a2['removeClass'](_0x48f628(_0x1b35e2['classes']),_0x2ebea9));},{'priority':'highest'}),_0x8a77f0['descriptionFactory']['registerDescriptionCallback'](_0x589189=>{if('insertion'!=_0x589189['type']&&'deletion'!=_0x589189['type'])return;const _0x383e76=_0x589189['getContainedElement']();if(null!=_0x383e76&&_0x383e76['is']('element','table')){if('insertion'==_0x589189['type']){const _0x2bddc2=_0x589189['getItems']()['filter'](_0x23a93e=>_0x23a93e['is']('$textProxy'))['map'](_0x38a27a=>_0x38a27a['data']);if(_0x2bddc2['length'])return{'type':'insertion','content':o(_0x4c33e2,'*Insert:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2bddc2['join']('\x20')+'\x22'))};}if('deletion'==_0x589189['type']){const _0x22522e=_0x589189['getItems']()['filter'](_0x536dd6=>_0x536dd6['is']('$textProxy'))['map'](_0x3bc986=>_0x3bc986['data']);if(_0x22522e['length'])return{'type':'deletion','content':o(_0x4c33e2,'*Remove:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22522e['join']('\x20')+'\x22'))};}}}),_0x8a77f0['descriptionFactory']['registerDescriptionCallback'](_0x42633f=>{if('tableRow'==_0x42633f['subType']){const _0x1fe773=_0x42633f['getItems']()['filter'](_0x100efc=>_0x100efc['is']('$textProxy'))['map'](_0x4c11d7=>_0x4c11d7['data']),_0x18ad41=this['_getSuggestionCoords'](_0x42633f),_0x17750d=_0x18ad41['maxRow']-_0x18ad41['minRow']+0x1;if('insertion'==_0x42633f['type'])return _0x1fe773['length']?{'type':'insertion','content':o(_0x4c33e2,'*Insert:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17750d,'\x22'+_0x1fe773['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c33e2,'*Insert:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_ROW',_0x17750d))};if('deletion'==_0x42633f['type'])return _0x1fe773['length']?{'type':'deletion','content':o(_0x4c33e2,'*Remove:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17750d,'\x22'+_0x1fe773['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c33e2,'*Remove:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_ROW',_0x17750d))};}if('tableColumn'==_0x42633f['subType']){const _0xbf64eb=_0x42633f['getItems']()['filter'](_0x221172=>_0x221172['is']('$textProxy'))['map'](_0x306266=>_0x306266['data']),_0x2f1c3a=this['_getSuggestionCoords'](_0x42633f),_0x167412=_0x2f1c3a['maxColumn']-_0x2f1c3a['minColumn']+0x1;if('insertion'==_0x42633f['type'])return _0xbf64eb['length']?{'type':'insertion','content':o(_0x4c33e2,'*Insert:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x167412,'\x22'+_0xbf64eb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c33e2,'*Insert:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_COLUMN',_0x167412))};if('deletion'==_0x42633f['type'])return _0xbf64eb['length']?{'type':'deletion','content':o(_0x4c33e2,'*Remove:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x167412,'\x22'+_0xbf64eb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c33e2,'*Remove:*\x20%0',o(_0x4c33e2,'ELEMENT_TABLE_COLUMN',_0x167412))};}}),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c507d),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c507d),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x98a55f),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x98a55f),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f0b25),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f0b25),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2762a6),_0x8a77f0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2762a6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e3705=this['editor'],_0x1368ef=_0x4e3705['model']['document']['selection'];return(_0x2a9bd0,_0x469aa7)=>{_0x4e3705['model']['change'](_0x56e530=>{const {commandName:_0x59f357,commandParams:_0x3eece7}=_0x469aa7;let _0x32cc88=_0x2a9bd0[0x0]['end']['nodeBefore'];_0x3eece7&&_0x3eece7[0x0]&&!0x1===_0x3eece7[0x0]['forceValue']&&(_0x32cc88=_0x2a9bd0[0x0]['start']['nodeAfter']);const _0x4db29f=_0x56e530['createRangeIn'](_0x32cc88);if('$graveyard'==_0x4db29f['root']['rootName'])return;const _0x2d7698=Array['from'](_0x1368ef['getRanges']())['map'](_0x445833=>_0xb0a740['fromRange'](_0x445833));_0x56e530['setSelection'](_0x4db29f),_0x4e3705['commands']['get'](_0x59f357)['refresh'](),_0x3eece7['push']({'forceDefaultExecution':!0x0}),_0x4e3705['execute'](_0x59f357,..._0x3eece7);const _0x52440f=_0x2d7698['filter'](_0x120d5f=>'$graveyard'!=_0x120d5f['root']['rootName']);_0x52440f['length']>0x0&&_0x56e530['setSelection'](_0x52440f);for(const _0x15ee0f of _0x2d7698)_0x15ee0f['detach']();});};}['_getCoordsForCells'](_0x482c58){const _0x2255ea=this['editor']['plugins']['get']('TableUtils');let _0x4e1d3b=Number['MAX_SAFE_INTEGER'],_0x516ee2=Number['MIN_SAFE_INTEGER'],_0x2a3424=Number['MAX_SAFE_INTEGER'],_0x1971ce=Number['MIN_SAFE_INTEGER'];for(const _0x2340c8 of _0x482c58){if('$graveyard'==_0x2340c8['root']['rootName'])continue;const {row:_0x181616,column:_0x52ee4e}=_0x2255ea['getCellLocation'](_0x2340c8),_0x2fadd2=_0x2340c8['hasAttribute']('rowspan')?_0x2340c8['getAttribute']('rowspan')-0x1:0x0,_0x18a5ff=_0x2340c8['hasAttribute']('colspan')?_0x2340c8['getAttribute']('colspan')-0x1:0x0;_0x4e1d3b=_0x181616<_0x4e1d3b?_0x181616:_0x4e1d3b,_0x516ee2=_0x181616+_0x2fadd2>_0x516ee2?_0x181616+_0x2fadd2:_0x516ee2,_0x2a3424=_0x52ee4e<_0x2a3424?_0x52ee4e:_0x2a3424,_0x1971ce=_0x52ee4e+_0x18a5ff>_0x1971ce?_0x52ee4e+_0x18a5ff:_0x1971ce;}return{'minRow':_0x4e1d3b,'maxRow':_0x516ee2,'minColumn':_0x2a3424,'maxColumn':_0x1971ce};}['_setupColumnsRowsFixing'](){const _0x406c59=this['editor'],_0x1c575a=_0x406c59['plugins']['get']('TrackChangesEditing'),_0x17ef4a=_0x406c59['plugins']['get']('TableUtils');_0x406c59['model']['document']['on']('change:data',()=>{const _0x3fd6de=Array['from'](_0x406c59['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe4c35b,data:_0x173a61}of _0x3fd6de){const {group:_0xe4765d,id:_0xe58de7,subType:_0x125353}=_0x1c575a['_splitMarkerName'](_0xe4c35b);if('suggestion'!=_0xe4765d)continue;if(null!=_0x173a61['oldRange'])continue;const _0x3a56fc=_0x1c575a['getSuggestion'](_0xe58de7);this['_tablePostFixingSubtypes']['includes'](_0x125353)&&this['_tableSuggestions']['add'](_0x3a56fc);}},{'priority':'low'});const _0x11278c=(_0x16deae,_0x46e99b)=>{let _0xfd9f37=!0x1;const _0x34c313=_0x46e99b['createRangeOn'](_0x16deae),_0x6e7042=_0x16deae['findAncestor']('table'),_0x43ad0a=_0x17ef4a['getCellLocation'](_0x16deae);for(const _0x51fc05 of this['_tableSuggestions']){const _0x4b494a=_0x51fc05['subType'],_0xc0446b=_0x4b494a['startsWith']('tablePaste'),_0x4e54c0=_0x4b494a['substr'](_0xc0446b?0xa:0x5),_0x2beac3=_0x4e54c0['toLowerCase'](),_0x168219=_0x2beac3['substr'](0x0,0x3)+'span',_0x3f0bb3='min'+_0x4e54c0,_0x416a41='max'+_0x4e54c0;if(!_0x51fc05['isInContent'])continue;if(_0x6e7042!=_0x51fc05['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51fc05['isIntersectingWithRange'](_0x34c313))continue;const _0x2393c6=_0x16deae['hasAttribute'](_0x168219)?_0x16deae['getAttribute'](_0x168219)-0x1:0x0,_0x3439b2=this['_getSuggestionCoords'](_0x51fc05),_0x5e2253=_0x3439b2[_0x3f0bb3],_0x347575=_0x3439b2[_0x416a41];_0x5e2253<=_0x43ad0a[_0x2beac3]&&_0x43ad0a[_0x2beac3]+_0x2393c6<=_0x347575&&(_0x51fc05['addRange'](_0x34c313),_0xfd9f37=!0x0);}return _0xfd9f37;};_0x406c59['model']['document']['registerPostFixer'](_0x4d9d1e=>{let _0x3cf59e=!0x1;for(const _0x521ddf of _0x406c59['model']['document']['differ']['getChanges']())if('insert'==_0x521ddf['type']){if('tableRow'==_0x521ddf['name']){for(const _0x58e5b7 of _0x521ddf['position']['nodeAfter']['getChildren']())_0x3cf59e=_0x3cf59e||_0x11278c(_0x58e5b7,_0x4d9d1e);}else'tableCell'==_0x521ddf['name']&&(_0x3cf59e=_0x3cf59e||_0x11278c(_0x521ddf['position']['nodeAfter'],_0x4d9d1e));}return _0x3cf59e;});}['_getSuggestionCoords'](_0x576d58){return this['_getCoordsForCells'](_0x576d58['getRanges']()['map'](_0x23d787=>_0x23d787['start']['nodeAfter']));}}function be(_0x6311de){return Array['from'](new Set(_0x6311de)['values']());}class vt extends _0x2271db{static get['requires'](){return[It];}['afterInit'](){const _0x34f6f4=this['editor'],_0x3e2bfe=_0x34f6f4['model']['document']['selection'],_0x3b6cbe=_0x34f6f4['locale'];if(!_0x34f6f4['plugins']['has']('TableEditing'))return;const _0x47fb9d=_0x34f6f4['plugins']['get']('TrackChangesEditing'),_0x4f2e5d=_0x34f6f4['plugins']['get']('TableUtils'),_0x3e2169=_0x34f6f4['plugins']['get'](It);_0x3e2169['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x47fb9d['enableCommand']('mergeTableCells',()=>{const _0x5c4ca2=_0x4f2e5d['getSelectionAffectedTableCells'](_0x34f6f4['model']['document']['selection']);_0x34f6f4['model']['change'](()=>{_0x47fb9d['markMultiRangeBlockFormat'](_0x5c4ca2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34f6f4['commands']['get']('mergeTableCells')['on']('execute',(_0x54390d,_0x1ca62b)=>{_0x34f6f4['commands']['get']('trackChanges')['value']&&(_0x1ca62b['length']>0x0&&_0x1ca62b[_0x1ca62b['length']-0x1]&&_0x1ca62b[_0x1ca62b['length']-0x1]['forceDefaultExecution']||_0x47fb9d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x54390d['stop']());},{'priority':'highest'});for(const _0x2c1c6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e6970=_0x34f6f4['commands']['get'](_0x2c1c6e);_0x47fb9d['enableCommand'](_0x2c1c6e,()=>{const _0x21e89b=_0x34f6f4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x14aaf9=>_0x14aaf9['is']('element','tableCell')),_0x3fca32=_0x4e6970['value'];_0x34f6f4['model']['change'](()=>{_0x47fb9d['markMultiRangeBlockFormat']([_0x21e89b,_0x3fca32],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x18b233 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x92fb17=_0x34f6f4['commands']['get'](_0x18b233);_0x47fb9d['enableCommand'](_0x18b233,()=>{const _0x425a8d=_0x4f2e5d['getSelectionAffectedTableCells'](_0x34f6f4['model']['document']['selection'])[0x0],_0x1dbb3c=_0x425a8d['findAncestor']('table'),{column:_0x3c408c,row:_0x4aa4ae}=_0x4f2e5d['getCellLocation'](_0x425a8d);let _0x340e33=[];if('horizontally'==_0x92fb17['direction']){const _0x2bd0dc=_0x4f2e5d['createTableWalker'](_0x1dbb3c,{'startRow':_0x4aa4ae,'endRow':_0x4aa4ae,'includeAllSlots':!0x0});_0x340e33=Array['from'](_0x2bd0dc)['map'](_0x21deb0=>_0x21deb0['cell']);}else{const _0x3a65fa=_0x4f2e5d['createTableWalker'](_0x1dbb3c,{'column':_0x3c408c,'includeAllSlots':!0x0});_0x340e33=Array['from'](_0x3a65fa)['map'](_0x4799ff=>_0x4799ff['cell']);}_0x34f6f4['model']['change'](_0x2dc387=>{_0x47fb9d['markBlockFormat'](_0x2dc387['createRangeOn'](_0x425a8d),{'commandName':_0x18b233,'commandParams':[]},_0x340e33,_0x18b233);});});}_0x47fb9d['descriptionFactory']['registerDescriptionCallback'](_0x16fdd2=>{if('formatBlock'!=_0x16fdd2['type']&&'formatInline'!=_0x16fdd2['type'])return;const {data:_0x229f7c}=_0x16fdd2;return _0x229f7c&&'mergeTableCells'==_0x229f7c['commandName']?{'type':'format','content':o(_0x3b6cbe,'*Merge\x20cells*')}:void 0x0;}),_0x47fb9d['descriptionFactory']['registerDescriptionCallback'](_0x5f4151=>{if('formatBlock'!=_0x5f4151['type']&&'formatInline'!=_0x5f4151['type'])return;const {data:_0x487a39}=_0x5f4151;return _0x487a39?'splitTableCellVertically'==_0x487a39['commandName']?{'type':'format','content':o(_0x3b6cbe,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x487a39['commandName']?{'type':'format','content':o(_0x3b6cbe,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x27752b=_0x3e2169['_acceptFormatSuggestionCallbackFactory']();for(const _0x29f505 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x47fb9d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29f505,'accept',_0x27752b);for(const _0x41f4ce of['splitTableCellVertically','splitTableCellHorizontally'])_0x47fb9d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41f4ce,'accept',_0x27752b);_0x47fb9d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x18a1d5=>{_0x34f6f4['model']['change'](_0x2ff7e8=>{const _0x979c4b=Array['from'](_0x3e2bfe['getRanges']())['map'](_0x4f0c5a=>_0xb0a740['fromRange'](_0x4f0c5a));_0x2ff7e8['setSelection'](_0x18a1d5),_0x34f6f4['commands']['get']('mergeTableCells')['refresh'](),_0x34f6f4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b6dde=_0x979c4b['filter'](_0x49220d=>'$graveyard'!=_0x49220d['root']['rootName']);_0x5b6dde['length']>0x0&&_0x2ff7e8['setSelection'](_0x5b6dde);for(const _0x6033cd of _0x979c4b)_0x6033cd['detach']();});});for(const _0x3fa642 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ca56e=_0x34f6f4['commands']['get'](_0x3fa642);_0x3ca56e['on']('set:isEnabled',(_0x48c461,_0x36a9c8,_0x35be3f)=>{if(_0x35be3f){const _0x1c7471=_0x34f6f4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a6e1d=>_0x5a6e1d['is']('element','tableCell'));this['_areMergableCells'](_0x3ca56e['value'],_0x1c7471)||(_0x48c461['return']=!0x1,_0x48c461['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x19a79d=this['editor']['commands']['get']('mergeTableCells'),_0x58dcc4=this['editor']['plugins']['get']('TableUtils');if(!_0x19a79d['isEnabled'])return!0x1;const _0x58d87c=_0x58dcc4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x329a6e of _0x58d87c)for(const _0x4d4ae3 of _0x58d87c)if(_0x329a6e!=_0x4d4ae3&&!this['_areMergableCells'](_0x329a6e,_0x4d4ae3))return!0x1;return!0x0;}['_areMergableCells'](_0x3a4085,_0x4392cf){const _0x4ad19d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf0a247=this['editor']['model']['createRangeOn'](_0x3a4085),_0xbdcaf=this['editor']['model']['createRangeOn'](_0x4392cf),_0x342de0=new Set(),_0x501c2f=new Set();for(const _0x221b90 of _0x4ad19d['getSuggestions']())if(('insertion'==_0x221b90['type']||'deletion'==_0x221b90['type']||'mergeTableCells'==_0x221b90['subType'])&&_0x221b90['isInContent']){for(const _0x4a17ea of _0x221b90['getRanges']())_0x4a17ea['containsRange'](_0xf0a247,!0x0)&&_0x342de0['add'](_0x221b90['type']+':'+_0x221b90['author']['id']),_0x4a17ea['containsRange'](_0xbdcaf,!0x0)&&_0x501c2f['add'](_0x221b90['type']+':'+_0x221b90['author']['id']);}if(_0x342de0['size']!=_0x501c2f['size'])return!0x1;for(const _0x5ea5b8 of _0x342de0)if(!_0x501c2f['has'](_0x5ea5b8))return!0x1;return!0x0;}}class Ct extends _0x2271db{static get['requires'](){return[It];}['afterInit'](){const _0x4d7d49=this['editor'];if(!_0x4d7d49['plugins']['has']('TableEditing'))return;const _0x1e22c2=_0x4d7d49['locale'],_0x36d90b=_0x4d7d49['plugins']['get']('TrackChangesEditing');_0x36d90b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x36d90b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x36d90b['registerBlockAttribute']('headingRows'),_0x36d90b['registerBlockAttribute']('headingColumns'),_0x36d90b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1e22c2,'FORMAT_HEADER_ROW')),_0x36d90b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1e22c2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cab6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13aae6=this['editor']['plugins']['get']('TableUtils'),_0x483e56=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5a4623({showActiveMarker:_0x33d96f=!0x0,setDataAttribute:_0x323eb4=!0x0}={}){return(_0x53e762,_0x5bcafe,_0x3b1720)=>{const {type:_0x6c0c42,id:_0x5ed73a}=_0x5cab6f['_splitMarkerName'](_0x5bcafe['markerName']),_0x5ced5e=_0x5cab6f['getSuggestion'](_0x5ed73a),_0x3af8de=_0x5ced5e['data'];if('formatBlock'!=_0x5ced5e['type']||!_0x3af8de||'setTableColumnHeader'!=_0x3af8de['commandName'])return;if(_0x5bcafe['item'])return void _0x53e762['stop']();if(!_0x3b1720['consumable']['consume'](_0x5bcafe['markerRange'],_0x53e762['name']))return;const _0x188676=_0x5bcafe['markerRange']['start']['nodeAfter'],_0x5071cf=_0x5bcafe['markerRange']['end']['nodeBefore'],_0x5a87d8=_0x188676['parent']['parent'],{column:_0x5caa80}=_0x13aae6['getCellLocation'](_0x188676),{column:_0x5493f3}=_0x13aae6['getCellLocation'](_0x5071cf);for(let _0x3e828c=_0x5caa80;_0x3e828c<=_0x5493f3;_0x3e828c++){const _0x3ef95a=_0x13aae6['createTableWalker'](_0x5a87d8,{'column':_0x3e828c,'includeAllSlots':!0x1});for(const _0x74e4bb of _0x3ef95a){const _0x35263c=_0x74e4bb['cell'],_0xccc33f=_0x3b1720['mapper']['toViewElement'](_0x35263c);_0x3b1720['writer']['addClass']('ck-suggestion-marker-'+_0x6c0c42,_0xccc33f),_0x323eb4&&_0x3b1720['writer']['setAttribute']('data-suggestion',_0x5ed73a,_0xccc33f),_0x3b1720['mapper']['bindElementToMarker'](_0xccc33f,_0x5bcafe['markerName']),_0x33d96f&&(_0x5cab6f['activeMarkers']['includes'](_0x5bcafe['markerName'])?_0x3b1720['writer']['addClass']('ck-suggestion-marker--active',_0xccc33f):_0x3b1720['writer']['removeClass']('ck-suggestion-marker--active',_0xccc33f));}}};}_0x5cab6f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x483e56),_0x5cab6f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x483e56),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a4623(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cdd2,_0x1e45cf,_0x124e9b)=>{_0x124e9b['options']['showSuggestionHighlights']&&_0x5a4623({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4cdd2,_0x1e45cf,_0x124e9b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17c767,_0x118134,_0x233bfe)=>{const {type:_0x3824e4,id:_0x1f426c}=_0x5cab6f['_splitMarkerName'](_0x118134['markerName']),_0x2cb3a1=_0x5cab6f['getSuggestion'](_0x1f426c),_0x4a6e61=_0x2cb3a1['data'];if('formatBlock'!=_0x2cb3a1['type']||!_0x4a6e61||'setTableColumnHeader'!=_0x4a6e61['commandName'])return;const _0x5f47c7=_0x233bfe['mapper']['markerNameToElements'](_0x118134['markerName']);if(_0x5f47c7){for(const _0x570a8d of _0x5f47c7)_0x233bfe['writer']['removeClass']('ck-suggestion-marker-'+_0x3824e4,_0x570a8d),_0x233bfe['writer']['removeClass']('ck-suggestion-marker--active',_0x570a8d),_0x233bfe['writer']['removeAttribute']('data-suggestion',_0x570a8d),_0x233bfe['mapper']['unbindElementFromMarkerName'](_0x570a8d,_0x118134['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4caf59=this['editor'],_0x2b227c=_0x4caf59['locale'];function _0x3ef07a(_0x1e2e40){return{'type':'format','content':o(_0x2b227c,'*Format:*\x20%0',_0x1e2e40)};}_0x4caf59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27c53b=>{if('formatBlock'!=_0x27c53b['type'])return;const {data:_0x418d1d}=_0x27c53b;if(_0x418d1d){if('setTableRowHeader'==_0x418d1d['commandName']){const _0x20befc=_0x418d1d['commandParams'][0x0]['forceValue'];return _0x3ef07a(o(_0x2b227c,_0x20befc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x418d1d['commandName']){const _0x5272e4=_0x418d1d['commandParams'][0x0]['forceValue'];return _0x3ef07a(o(_0x2b227c,_0x5272e4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xecc3fd=>[_0xecc3fd,null]));class _t extends _0x2271db{static get['requires'](){return[It];}['afterInit'](){const _0x556bfb=this['editor'];if(!_0x556bfb['plugins']['has']('TableClipboard'))return;const _0x11a46a=_0x556bfb['plugins']['get']('TrackChangesEditing'),_0x5debb3=_0x556bfb['plugins']['get']('TableUtils'),_0xd83faf=_0x556bfb['plugins']['get'](It),_0x479e17=_0x556bfb['plugins']['get']('TableClipboard');_0xd83faf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x556bfb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x556bfb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x45ca4d=null;_0x556bfb['model']['on']('insertContent',(_0x3dbd71,_0x4c770a)=>{const [_0x289931,_0x5570dd]=_0x4c770a,_0x18feb1=_0x4c770a[_0x4c770a['length']-0x1];_0x18feb1&&_0x18feb1['forceDefaultExecution']||_0x11a46a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x54708c,_0x5655e1,_0x121fd5,_0x467ab3,_0x41a09c){if(_0x5655e1&&!_0x5655e1['is']('documentSelection'))return!0x1;const _0x4895a7=_0x41a09c['getTableIfOnlyTableInContent'](_0x54708c,_0x121fd5);if(!_0x4895a7||!Re(_0x4895a7,void 0x0,_0x467ab3))return!0x1;const _0x3f8573=_0x467ab3['getSelectionAffectedTableCells'](_0x121fd5['document']['selection']);if(!_0x3f8573['length'])return!0x1;const _0x979b4e=_0x3f8573[0x0]['findAncestor']('table'),_0x39185c=_0x467ab3['getRowIndexes'](_0x3f8573),_0x333e69=_0x467ab3['getColumnIndexes'](_0x3f8573),_0x14f980={'startRow':_0x39185c['first'],'endRow':_0x39185c['last'],'startColumn':_0x333e69['first'],'endColumn':_0x333e69['last']};return 0x1==_0x3f8573['length']&&(_0x14f980['endRow']+=_0x467ab3['getRows'](_0x4895a7)-0x1,_0x14f980['endColumn']+=_0x467ab3['getColumns'](_0x4895a7)-0x1),Re(_0x979b4e,_0x14f980,_0x467ab3);}(_0x289931,_0x5570dd,_0x556bfb['model'],_0x5debb3,_0x479e17)&&(_0x3dbd71['stop'](),_0x45ca4d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x556bfb['model']['change'](()=>{_0x556bfb['model']['insertContent'](_0x4c770a[0x0],_0x4c770a[0x1],_0x4c770a[0x2],{'forceDefaultExecution':!0x0});const _0x59a25e=_0x177e31(),{rowInsertionRanges:_0xb2ddbf,columnInsertionRanges:_0x3eb695,insertionRanges:_0x59b061,deletionRanges:_0x42125f,cells:_0x189a4f}=_0x45ca4d;_0xb2ddbf['length']&&_0x11a46a['markMultiRangeInsertion'](_0xb2ddbf,'tablePasteRow',{'tablePasteChainId':_0x59a25e}),_0x3eb695['length']&&_0x11a46a['markMultiRangeInsertion'](_0x3eb695,'tablePasteColumn',{'tablePasteChainId':_0x59a25e}),_0x59b061['length']&&(_0x11a46a['markMultiRangeInsertion'](_0x59b061,'tablePaste',{'tablePasteChainId':_0x59a25e,'skipNestingCheck':!0x0}),_0x59b061['forEach'](_0x5addb3=>_0x5addb3['detach']?.())),_0x42125f['length']&&(_0x11a46a['markMultiRangeDeletion'](_0x42125f,'tablePaste',{'tablePasteChainId':_0x59a25e,'skipNestingCheck':!0x0}),_0x42125f['forEach'](_0x3b4373=>_0x3b4373['detach']?.()));const _0x133913=_0x11a46a['markMultiRangeBlockFormat'](_0x189a4f['map'](({element:_0x32fe97})=>_0x32fe97),{'formatGroupId':_0x177e31()},[],'tablePasteCell',{'tablePasteChainId':_0x59a25e});if(_0x133913){const _0x571266=_0x133913['getMarkers'](),_0x43445b=[];for(const {element:_0x3d4026,attributes:_0x38b451}of _0x189a4f){if(!_0x38b451)continue;const _0x1de803=_0x556bfb['model']['createRangeOn'](_0x3d4026),_0x478094=_0x571266['find'](_0x31bf5b=>_0x31bf5b['getRange']()['isEqual'](_0x1de803));_0x478094&&_0x43445b['push']([_0x478094['name'],_0x38b451]);}_0x43445b['length']&&_0x133913['setAttribute']('markerAttributes',Object['fromEntries'](_0x43445b));}_0x45ca4d=null;}));},{'priority':_0x2928f8['high']+0xa}),_0x556bfb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x28b9e0,_0x2a5faa)=>{const [_0x37f6c6,_0x408783,,_0xafea27]=_0x2a5faa;if(!_0x45ca4d)return;_0x28b9e0['stop']();const _0x3ee0e4=_0x37f6c6['cell'],_0x3c410c=_0x408783,_0x368838=ke(_0x3ee0e4),_0x143217=ke(_0x3c410c);_0x28b9e0['return']=_0x3ee0e4;let _0x19cf1b=null,_0x10e65c=null;if(_0x143217||_0x368838){if(_0x368838&&!_0x143217){_0xafea27['remove'](_0x3ee0e4['getChild'](0x0));for(const _0x2b0064 of Array['from'](_0x3c410c['getChildren']()))_0xafea27['insert'](_0x2b0064,_0x3ee0e4,'end');const _0x3752ee=_0x45ca4d['rowInsertionIndexes']['includes'](_0x37f6c6['row']),_0xdee1f3=_0x45ca4d['columnInsertionIndexes']['includes'](_0x37f6c6['column']);_0x3752ee||_0xdee1f3||(_0x19cf1b=_0xb0a740['fromRange'](_0xafea27['createRangeIn'](_0x3ee0e4)));}else _0x143217&&!_0x368838&&(_0x10e65c=_0xafea27['createRangeIn'](_0x3ee0e4));}else{const _0x987b45=_0xafea27['createElement']('tableCellSuggestion'),_0x57d4bf=_0xafea27['createElement']('tableCellSuggestion');_0xafea27['wrap'](_0xafea27['createRangeIn'](_0x3ee0e4),_0x57d4bf),_0xafea27['insert'](_0x987b45,_0x3ee0e4,0x0);for(const _0x5e53a1 of Array['from'](_0x3c410c['getChildren']()))_0xafea27['insert'](_0x5e53a1,_0x987b45,'end');_0x19cf1b=_0xb0a740['fromRange'](_0xafea27['createRangeOn'](_0x987b45)),_0x10e65c=_0xb0a740['fromRange'](_0xafea27['createRangeOn'](_0x57d4bf));}const _0x36ef14=Array['from'](_0x3c410c['getAttributes']())['filter'](([_0x55ac23])=>Pe['includes'](_0x55ac23));_0x45ca4d['cells']['push']({'element':_0x3ee0e4,'attributes':_0x36ef14['length']?Object['fromEntries'](_0x36ef14):null}),_0x19cf1b&&_0x45ca4d['insertionRanges']['push'](_0x19cf1b),_0x10e65c&&_0x45ca4d['deletionRanges']['push'](_0x10e65c);},{'priority':'high'}),_0x5debb3['on']('insertColumns',(_0x238f8a,_0x171278)=>{const [_0x33c1d0,_0x269d81={}]=_0x171278;if(!_0x45ca4d)return;const _0x1bd94e=_0x269d81['at']||0x0,_0xa56d51=_0x269d81['columns']||0x1;_0x45ca4d['columnInsertionIndexes']=new Array(_0xa56d51)['fill'](_0x1bd94e)['map']((_0x1ffc12,_0x40fe85)=>_0x1ffc12+_0x40fe85);for(const {cell:_0x5eafb8}of _0x5debb3['createTableWalker'](_0x33c1d0,{'startColumn':_0x1bd94e,'endColumn':_0x1bd94e+_0xa56d51-0x1}))_0x45ca4d['columnInsertionRanges']['push'](_0x556bfb['model']['createRangeOn'](_0x5eafb8));},{'priority':'low'}),_0x5debb3['on']('insertRows',(_0x1d77eb,_0x3d4c64)=>{const [_0x444fc,_0x9ebb46={}]=_0x3d4c64;if(!_0x45ca4d)return;const _0x334cf3=_0x9ebb46['at']||0x0,_0x27b29f=_0x9ebb46['rows']||0x1;_0x45ca4d['rowInsertionIndexes']=new Array(_0x27b29f)['fill'](_0x334cf3)['map']((_0x958b6a,_0x5abfb8)=>_0x958b6a+_0x5abfb8);for(const {cell:_0xdd9810}of _0x5debb3['createTableWalker'](_0x444fc,{'startRow':_0x334cf3,'endRow':_0x334cf3+_0x27b29f-0x1}))_0x45ca4d['rowInsertionRanges']['push'](_0x556bfb['model']['createRangeOn'](_0xdd9810));},{'priority':'low'}),_0x11a46a['descriptionFactory']['registerDescriptionCallback'](_0x4e211b=>{if(_0x4e211b['subType']&&_0x4e211b['subType']['startsWith']('tablePaste'))return _0x4e211b['previous']?{}:{'type':'insertion','content':o(_0x556bfb['locale'],'*Replace\x20table\x20cells*')};});const _0x2fa7da=()=>!0x1;for(const _0x1a34a7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x11a46a['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a34a7,'join',_0x2fa7da),_0x11a46a['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a34a7,'join',_0x2fa7da),_0x11a46a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a34a7,'join',_0x2fa7da);_0x11a46a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2fa7da),_0x11a46a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x592587,_0x4243d8,_0x2157a4)=>{const _0x181996=_0x592587['map'](_0x33d288=>_0x33d288['getContainedElement']())['filter'](_0x15543e=>_0x15543e),_0x166919=new Map(_0x181996['map'](_0x5790af=>[_0x5790af,null]));if(_0x45ca4d){for(const {element:_0x2fce70,attributes:_0x48cc15}of _0x45ca4d['cells'])_0x48cc15&&_0x166919['set'](_0x2fce70,_0x48cc15);}else{if(_0x2157a4&&_0x2157a4['markerAttributes'])for(const [_0x3db535,_0x45a0ad]of Object['entries'](_0x2157a4['markerAttributes'])){const _0x2e311b=_0x556bfb['model']['markers']['get'](_0x3db535),_0xf953b=_0x2e311b?_0x2e311b['getRange']()['getContainedElement']():null;_0xf953b&&_0x166919['set'](_0xf953b,_0x45a0ad);}}_0x556bfb['model']['change'](_0x42015d=>{for(const [_0x441327,_0x2c7b5b]of _0x166919)_0x42015d['setAttributes']({...we,..._0x2c7b5b},_0x441327);});});const _0x49a3f9=(_0x326309,_0x82db91)=>{_0x11a46a['_suggestionFactory']['registerCustomCallback'](_0x326309,'tablePaste',_0x82db91,(_0x3e2cd4,_0x30f1c9,_0x43fff9)=>{_0x556bfb['model']['change'](_0x56e08a=>{const _0x5071ba=[];for(const _0x5b0148 of _0x3e2cd4){const _0x310393=_0x5b0148['start']['nodeAfter'];_0x310393['is']('element','tableCellSuggestion')&&_0x5071ba['push'](_0x310393);}_0x11a46a['_suggestionFactory']['getSuggestionCallback'](_0x326309,null,_0x82db91)(_0x3e2cd4,_0x30f1c9,_0x43fff9);for(const _0x24db5d of _0x5071ba)'$graveyard'!=_0x24db5d['root']['rootName']&&_0x56e08a['unwrap'](_0x24db5d);});});};_0x49a3f9('insertion','accept'),_0x49a3f9('insertion','discard'),_0x49a3f9('deletion','accept'),_0x49a3f9('deletion','discard'),_0x11a46a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2c9a7f=>{const _0x5db766=_0x2c9a7f['map'](_0x1a88ca=>_0x1a88ca['getContainedElement']()),_0x389772=_0x5db766[0x0]['findAncestor']('table'),{minRow:_0x25bab9,maxRow:_0x4cc1a8}=_0xd83faf['_getCoordsForCells'](_0x5db766);_0x5debb3['removeRows'](_0x389772,{'at':_0x25bab9,'rows':_0x4cc1a8-_0x25bab9+0x1});}),_0x11a46a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x393467=>{const _0x172d57=_0x393467['map'](_0x1110c5=>_0x1110c5['getContainedElement']()),_0x9ccfc8=_0x172d57[0x0]['findAncestor']('table'),{minColumn:_0x344e6d,maxColumn:_0x1314ea}=_0xd83faf['_getCoordsForCells'](_0x172d57);_0x5debb3['removeColumns'](_0x9ccfc8,{'at':_0x344e6d,'columns':_0x1314ea-_0x344e6d+0x1});});const _0x3954c2=(_0x3d5448,_0x377a59)=>{if(!_0x377a59['subType']||!_0x377a59['subType']['startsWith']('tablePaste'))return;const _0x349cdb=_0x377a59['attributes']['tablePasteChainId'],_0x505bd7=_0x11a46a['getSuggestions']()['filter'](_0x1d29c1=>_0x1d29c1['isInContent']&&_0x1d29c1['attributes']&&_0x1d29c1['attributes']['tablePasteChainId']==_0x349cdb);_0x505bd7['length']&&_0x377a59['getAllAdjacentSuggestions']()['length']!=_0x505bd7['length']&&_0x505bd7['reduce']((_0x2f14f3,_0x164b1a)=>(_0x2f14f3['next']=_0x164b1a,_0x164b1a['previous']=_0x2f14f3,_0x164b1a));};function _0x56955a(_0x3a4911,_0x550703=!0x0){const {id:_0x48949b,authorId:_0x1c4cc1}=_0x11a46a['_splitMarkerName'](_0x3a4911['markerName']),_0x5930ac=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ab711=_0x11a46a['activeMarkers']['includes'](_0x3a4911['markerName']);return _0x1ab711&&_0x5930ac['push']('ck-suggestion-marker--active'),{'classes':_0x5930ac,'attributes':{'data-suggestion':_0x48949b,'data-author-id':_0x1c4cc1},'priority':_0x1ab711&&_0x550703?0xbc2:0xbb8};}_0x11a46a['on']('suggestionLoaded',_0x3954c2,{'priority':'high'}),_0x11a46a['on']('suggestionUnloaded',_0x3954c2,{'priority':'high'}),_0x556bfb['model']['document']['registerPostFixer'](()=>{let _0xd57635=!0x1;const _0x23efc0=Array['from'](_0x556bfb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45199d,data:_0x1da980}of _0x23efc0){const {group:_0x5ea5c5,type:_0x5696df,id:_0x1ef779}=_0x11a46a['_splitMarkerName'](_0x45199d);if('suggestion'!=_0x5ea5c5||'deletion'!=_0x5696df||_0x1da980['oldRange'])continue;if(!_0x11a46a['hasSuggestion'](_0x1ef779))continue;const _0x190e1a=_0x11a46a['getSuggestion'](_0x1ef779)['getRanges'](),_0x34e154=_0x556bfb['plugins']['get']('Users')['me'];for(const _0x5d2d4a of _0x11a46a['getSuggestions']()){if(!_0x5d2d4a['isInContent']||_0x5d2d4a['author']!=_0x34e154)continue;if('formatBlock'!=_0x5d2d4a['type']||'tablePasteCell'!=_0x5d2d4a['subType'])continue;if(_0x5d2d4a['getRanges']()['every'](_0x55c7d4=>_0x190e1a['some'](_0x50e211=>_0x50e211['containsRange'](_0x55c7d4,!0x0)))){for(const _0x54a438 of _0x5d2d4a['getAllAdjacentSuggestions']())_0x54a438['isInContent']&&(_0x54a438['discard'](),_0xd57635=!0x0);}}}return _0xd57635;}),_0x556bfb['model']['document']['registerPostFixer'](_0x36077f=>{const _0x524d1d=_0x556bfb['commands']['get']('redo');if(!_0x524d1d||!_0x524d1d['_createdBatches']['has'](_0x36077f['batch']))return!0x1;let _0x38c857=!0x1;const _0x28e326=_0x556bfb['plugins']['get']('Users')['me'],_0x20cd5d=_0x556bfb['model']['document']['differ']['getChanges'](),_0x247d7a=Array['from'](_0x556bfb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2899f6,data:_0x3e9a4e})=>{const {group:_0x453289,subType:_0x373c11,authorId:_0x1f2575}=_0x11a46a['_splitMarkerName'](_0x2899f6);return'suggestion'==_0x453289&&'tablePaste'==_0x373c11&&_0x1f2575==_0x28e326['id']&&!_0x3e9a4e['oldRange'];});for(const _0x56dd69 of _0x20cd5d){if('insert'!=_0x56dd69['type']||'tableCellSuggestion'!=_0x56dd69['name']||0x1!=_0x56dd69['length'])continue;const _0x20279d=_0x36077f['createRange'](_0x56dd69['position'],_0x56dd69['position']['getShiftedBy'](0x1));if(!_0x247d7a['find'](({data:_0x1aac72})=>_0x1aac72['newRange']['isEqual'](_0x20279d))){for(const {name:_0x1746a8,data:_0x2edd82}of _0x247d7a)if(_0x20279d['containsRange'](_0x2edd82['newRange'])){_0x36077f['updateMarker'](_0x1746a8,{'range':_0x20279d}),_0x38c857=!0x0;break;}}}return _0x38c857;}),_0x556bfb['model']['document']['registerPostFixer'](_0x5c4933=>{let _0x46df88=!0x1;const _0x4ab890=_0x556bfb['plugins']['get']('Users')['me'],_0x467c6e=_0x11a46a['getSuggestions']()['filter'](_0x417295=>_0x417295['isInContent']&&_0x417295['author']==_0x4ab890),_0x1790ae=new Set(),_0x4ad806=new Set();for(const _0xc3b0f8 of _0x467c6e)if('tablePaste'==_0xc3b0f8['subType'])for(const _0x2e0b3f of _0xc3b0f8['getMarkers']()){const _0x2677bc=_0x2e0b3f['getRange']()['getContainedElement']();if(_0x2677bc){if(_0x2677bc['is']('element','tableCellSuggestion')&&ke(_0x2677bc)){_0xc3b0f8['removeMarker'](_0x2e0b3f['name']),_0x1790ae['add'](_0x2677bc),_0x46df88=!0x0;const _0x2f2a07=_0x2677bc['nextSibling'],_0x162bb2=_0x2677bc['previousSibling'],_0x4eb66a=_0x2f2a07&&_0x2f2a07['is']('element','tableCellSuggestion'),_0x46fc8d=_0x162bb2&&_0x162bb2['is']('element','tableCellSuggestion');_0x4eb66a&&!_0x1790ae['has'](_0x2f2a07)&&_0x4ad806['add'](_0x2f2a07),_0x46fc8d&&!_0x1790ae['has'](_0x162bb2)&&_0x4ad806['add'](_0x162bb2);}else _0x2677bc['is']('element','paragraph')&&_0x2677bc['isEmpty']&&(_0xc3b0f8['removeMarker'](_0x2e0b3f['name']),_0x46df88=!0x0);}}else{if('tablePasteCell'==_0xc3b0f8['subType']){if(!_0xc3b0f8['attributes']||!_0xc3b0f8['attributes']['tablePasteChainId'])continue;const _0x4a2735=_0xc3b0f8['attributes']['markerAttributes'];if(_0x4a2735&&Object['keys'](_0x4a2735)['length'])continue;const _0x58c609=_0xc3b0f8['attributes']['tablePasteChainId'];let _0x189a0a=!0x0,_0x1e2b49=!0x0;for(const _0x50e379 of _0x467c6e)if(_0x50e379['subType']&&_0x50e379['subType']['startsWith']('tablePaste')){if(!_0x50e379['attributes']['tablePasteChainId']){_0x1e2b49=!0x1;break;}if(_0x50e379['id']!=_0xc3b0f8['id']&&_0x50e379['attributes']['tablePasteChainId']==_0x58c609){_0x189a0a=!0x1;break;}}_0x1e2b49&&_0x189a0a&&(_0xc3b0f8['removeMarkers'](),_0x46df88=!0x0);}}for(const _0x47f611 of _0x1790ae)_0x5c4933['remove'](_0x47f611);for(const _0x5029c7 of _0x4ad806)_0x5c4933['unwrap'](_0x5029c7);return _0x46df88;}),_0x556bfb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x391cd9,_0x858ac1)=>_0x56955a(_0x391cd9),'converterPriority':'high'}),_0x556bfb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x448249,_0x284b6c)=>_0x284b6c['options']['showSuggestionHighlights']?_0x56955a(_0x448249,!0x1):null,'converterPriority':'high'});const _0x1c7ea5=_0x556bfb['editing']['view'];this['listenTo'](_0x1c7ea5['document'],'clipboardOutput',(_0x1f90a0,_0x49668c)=>{const _0x234df8=[];for(const _0x371bd1 of _0x1c7ea5['createRangeIn'](_0x49668c['content'])['getItems']())_0x371bd1['is']('element','suggestion-td')&&_0x234df8['push'](_0x371bd1);_0x1c7ea5['change'](_0x882751=>{for(const _0x10ab05 of _0x234df8)_0x882751['move'](_0x882751['createRangeIn'](_0x10ab05),_0x882751['createPositionBefore'](_0x10ab05)),_0x882751['remove'](_0x10ab05);});});}}function ke(_0xeab83e){if(_0xeab83e['isEmpty'])return!0x0;const _0x5a3d3d=_0xeab83e['getChild'](0x0);return _0x5a3d3d['is']('element','paragraph')&&_0x5a3d3d['isEmpty'];}function Re(_0x2d0db9,_0x53897a={},_0x2ae677){for(const {isAnchor:_0x31e264,cellHeight:_0x439512,cellWidth:_0x55cda5}of _0x2ae677['createTableWalker'](_0x2d0db9,{'includeAllSlots':!0x0,..._0x53897a}))if(!_0x31e264||0x1!=_0x439512||0x1!=_0x55cda5)return!0x1;return!0x0;}class Nt extends _0x2271db{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x397fbf=this['editor']['plugins']['get']('TrackChangesEditing');_0x397fbf['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x397fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x397fbf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x397fbf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x397fbf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x397fbf['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1ae22e,_0x4a9ea4){const _0x472d3c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41cb20=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x220919=_0x4a9ea4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x186436=_0x41cb20['getColumnGroupElement'](_0x220919);let _0x26d74e=_0x186436?_0x41cb20['getTableColumnsWidths'](_0x186436):null,_0x3e4da8=_0x220919['getAttribute']('tableWidth')||null;const _0x2e02fc=_0x4a9ea4['tableWidth']||_0x3e4da8,_0x38e3e1=_0x4a9ea4['columnWidths']||_0x26d74e,_0x5c457d=this['editor']['plugins']['get']('Users')['me'];for(const _0x5e1c57 of _0x472d3c['getSuggestions']()){const _0x21b0ec=_0x5e1c57['getContainedElement']();if('resizeTable'===_0x5e1c57['subType']&&_0x21b0ec===_0x220919){_0x5e1c57['author']!==_0x5c457d&&_0x5e1c57['discard']();const _0x1b4b02=_0x5e1c57['data']['commandParams'];_0x3e4da8=_0x1b4b02[0x0]['tableWidth'],_0x26d74e=_0x1b4b02[0x0]['columnWidths'];break;}}_0x1ae22e({'table':_0x220919,'tableWidth':_0x2e02fc,'columnWidths':_0x38e3e1}),_0x472d3c['markBlockFormat'](_0x220919,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3e4da8,'columnWidths':_0x26d74e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x31abfc){if('formatBlock'!=_0x31abfc['type']&&'formatInline'!=_0x31abfc['type'])return;const {data:_0x3ecf2a}=_0x31abfc;if(_0x3ecf2a&&'resizeTable'===_0x3ecf2a['formatGroupId']){const _0x4833a6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4833a6)};}}}class Dt extends _0x2271db{['afterInit'](){const _0x16b7f9=this['editor'];_0x16b7f9['plugins']['has']('Template')&&_0x16b7f9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2271db{['afterInit'](){const _0x4ce76c=this['editor'];if(!_0x4ce76c['commands']['get']('insertTableOfContents'))return;_0x4ce76c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x524658=_0x4ce76c['plugins']['get']('TrackChangesEditing'),_0x1ea7a4=_0x4ce76c['locale'];_0x524658['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3297bb=>o(_0x1ea7a4,'ELEMENT_TABLE_OF_CONTENTS',_0x3297bb));}}class $t extends _0x2271db{['afterInit'](){const _0x329369=this['editor'];if(!_0x329369['plugins']['has']('Title'))return;const _0x5e4432=_0x329369['plugins']['get']('TrackChangesEditing');_0x5e4432['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x329369['locale'],'ELEMENT_TITLE')),_0x329369['model']['document']['registerPostFixer'](_0xbe3037=>{let _0xd6ac60=!0x1;const _0x44d70a=Array['from'](_0x329369['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47566f,data:_0x1d0055}of _0x44d70a){const {group:_0x37e7bd}=_0x5e4432['_splitMarkerName'](_0x47566f);if('suggestion'!==_0x37e7bd||!_0x1d0055['newRange'])continue;const _0x3a557e=_0x1d0055['newRange'],_0x546630=_0x3a557e['end']['nodeBefore'];if(!_0x546630||!_0x546630['is']('element','title-content'))continue;if(!_0x3a557e['start']['isTouching'](_0x3a557e['end']))continue;const _0x221bd3=_0x329369['model']['schema']['getNearestSelectionRange'](_0x3a557e['end'],'forward');if(_0x221bd3&&_0x221bd3['isCollapsed']){const _0x49a868=_0xbe3037['createRange'](_0x3a557e['start'],_0x221bd3['start']);_0x49a868['isEqual'](_0x3a557e)||(_0xbe3037['updateMarker'](_0x47566f,{'range':_0x49a868}),_0xd6ac60=!0x0);}_0xd6ac60||(_0xbe3037['removeMarker'](_0x47566f),_0xd6ac60=!0x0);}return _0xd6ac60;});}}class Bt extends _0x2271db{['afterInit'](){const _0x2f9c21=this['editor'],_0x3909db=_0x2f9c21['plugins']['get']('TrackChangesEditing');_0x2f9c21['plugins']['has']('UndoEditing')&&(_0x3909db['enableCommand']('undo'),_0x3909db['enableCommand']('redo'));}}class xt extends _0x2271db{static get['requires'](){return[It];}['afterInit'](){const _0x1e9cac=this['editor'];if(!_0x1e9cac['plugins']['has']('TableCaptionEditing'))return;_0x1e9cac['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2271db{['tableProperties'];['tableCellProperties'];constructor(_0x2ed817){super(_0x2ed817),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';}['afterInit'](){const _0x5d0aa9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5ea4bf of this['tableProperties'])_0x5d0aa9['enableCommand'](_0x5ea4bf,(_0x40dffb,_0x5d5f25)=>{const _0x5b9323=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5ea4bf,[_0x5b9323],this['tableProperties'],'tableProperties',_0x40dffb,_0x5d5f25);});_0x5d0aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d0aa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d0aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xcfbd64,_0x487e4a)=>this['handleDiscardAction'](this['tableProperties'],_0xcfbd64,_0x487e4a)),_0x5d0aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x234186 of this['tableCellProperties'])_0x5d0aa9['enableCommand'](_0x234186,(_0x111c0c,_0x5365cc)=>{const _0x27f113=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x234186,_0x27f113,this['tableCellProperties'],'tableCellProperties',_0x111c0c,_0x5365cc);});_0x5d0aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d0aa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d0aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3a5be8,_0x125c11)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3a5be8,_0x125c11)),_0x5d0aa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5d0aa9['descriptionFactory']['registerDescriptionCallback'](_0x116ffc=>this['handleSuggestionDescription'](_0x116ffc));}['_handlePropertyChange'](_0x59bb80,_0xb84866,_0x2ea1e4,_0x239bf9,_0x55d7ab,_0x16cbcb){const _0x4d57cc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x16cbcb['batch'],()=>{for(const _0x36e775 of _0xb84866){if(this['_getSuggestion'](_0x36e775,_0x239bf9))_0x55d7ab(_0x16cbcb);else{const _0x3091a6={};for(const _0x3e82b0 of _0x2ea1e4){const _0x4d3aaf=_0x36e775['getAttribute'](_0x3e82b0);void 0x0!==_0x4d3aaf&&(_0x3091a6[_0x3e82b0]=_0x4d3aaf);}_0x55d7ab(_0x16cbcb),_0x4d57cc['markBlockFormat'](_0x36e775,{'commandParams':[_0x3091a6]},[],_0x239bf9);}}});}['handleDiscardAction'](_0x1311c3,_0x571712,_0x20c6d0){const _0x2ba2d9=_0x571712[0x0]['start']['nodeAfter'],_0x41563e=_0x20c6d0['commandParams'][0x0];this['editor']['model']['change'](_0x38b1c5=>{for(const _0x3ddef4 of _0x1311c3)void 0x0!==_0x41563e[_0x3ddef4]?_0x38b1c5['setAttribute'](_0x3ddef4,_0x41563e[_0x3ddef4],_0x2ba2d9):_0x38b1c5['removeAttribute'](_0x3ddef4,_0x2ba2d9);});}['handleSuggestionDescription'](_0x446021){if(_0x446021['data'])switch(_0x446021['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'](_0x1d93b3,_0x350b9a){const _0x175428=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ce429 of _0x175428['getSuggestions']({'skipNotAttached':!0x0})){const _0x244694=_0x5ce429['getContainedElement']();if(_0x5ce429['subType']===_0x350b9a&&_0x244694===_0x1d93b3)return _0x5ce429;}return null;}}const m='$elementName';class p extends _0x2271db{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1356f8,_0x2a298e,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3e4475){function _0x1741ea(_0x41eca7){return _0x41eca7['map'](_0x24b4fa=>String['fromCharCode'](_0x24b4fa))['join']('');}super(_0x3e4475),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x16a239,_0x3d0440,_0x1ac3ec,_0x44af0c)=>{this['_model']['change'](()=>{for(const _0x22287d of[..._0x44af0c,..._0x1ac3ec])this['_model']['markers']['has'](_0x22287d)&&_0x3e4475['editing']['reconvertMarker'](_0x22287d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3e4475['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(),_0x3e4475['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3e4475['config']['get']('trackChanges.trackFormatChanges'),_0x3e4475['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3e4475['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3e4475,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1741ea([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1741ea([0x34,0x30,0x34,0x38,0x31,0x38,0x32,0x36]);}['init'](){const _0x4227bb=this['editor'],_0x128679=(_0xd95e36,_0x116b03)=>{if('attribute'!=_0xd95e36)return'ck-suggestion-marker-'+_0xd95e36;const _0x7a7496=_0x116b03['split']('|')[0x0];return this['_isBlockAttribute'](_0x7a7496)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4227bb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x42c5ac=>{const {id:_0x3cace5,authorId:_0x9918a7,type:_0x2dda7c,subType:_0x257fbe}=this['_splitMarkerName'](_0x42c5ac['markerName']),_0x298842=['ck-suggestion-marker',_0x128679(_0x2dda7c,_0x257fbe)];let _0xc19e6d=0xbb8;return this['activeMarkers']['includes'](_0x42c5ac['markerName'])&&(_0x298842['push']('ck-suggestion-marker--active'),_0xc19e6d=0xbc2),'deletion'==_0x2dda7c&&(_0xc19e6d+=0x5),{'classes':_0x298842,'attributes':{'data-suggestion':_0x3cace5,'data-author-id':_0x9918a7},'priority':_0xc19e6d};}}),_0x4227bb['conversion']['for']('dataDowncast')['add'](_0x19d702=>{_0x19d702['on']('addMarker:suggestion',(_0x34fc2c,_0x2b34e3,_0x2ad31c)=>{if(!_0x2ad31c['options']['showSuggestionHighlights'])return;const _0x28cec6=_0x2b34e3['item'];if(!_0x28cec6)return;const _0x3f884d=_0x2ad31c['mapper']['toViewElement'](_0x28cec6);_0x4227bb['model']['schema']['isObject'](_0x28cec6)&&_0x3f884d&&!_0x3f884d['getCustomProperty']('widget')&&_0x3f884d['is']('containerElement')&&_0x444ef0(_0x3f884d,_0x2ad31c['writer']);},{'priority':'high'});}),_0x4227bb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4617b5,_0x3f515f)=>{if(!_0x3f515f['options']['showSuggestionHighlights'])return null;const {type:_0x4b1dd3,subType:_0x128643}=this['_splitMarkerName'](_0x4617b5['markerName']);return{'classes':['ck-suggestion-marker',_0x128679(_0x4b1dd3,_0x128643)],'priority':0xbb8};}});const _0x15321c=({showActiveMarkers:_0x517195=!0x0,isAttributeSuggestion:_0x2f3b40=!0x1}={})=>(_0x53b5fa,_0x28406e,_0x171ac1)=>{if(!_0x28406e['item'])return;const {id:_0xf81d92,authorId:_0x56e16f}=this['_splitMarkerName'](_0x28406e['markerName']);if(_0x2f3b40){const _0x256db7=this['_suggestions']['get'](_0xf81d92),_0x35858c=this['_getAttributeKey'](_0x256db7);if(!this['_isBlockAttribute'](_0x35858c))return;}if(_0x28406e['item']['is']('selection'))return void _0x171ac1['consumable']['consume'](_0x28406e['item'],_0x53b5fa['name']);const _0x10e131=_0x171ac1['mapper']['toViewElement'](_0x28406e['item']);if(_0x28406e['item']['is']('element')&&_0x4227bb['model']['schema']['isBlock'](_0x28406e['item'])&&!_0x10e131['getCustomProperty']('addHighlight')){_0x171ac1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x10e131),_0x171ac1['writer']['setAttribute']('data-suggestion',_0xf81d92,_0x10e131),_0x171ac1['writer']['setAttribute']('data-author-id',_0x56e16f,_0x10e131),_0x171ac1['mapper']['bindElementToMarker'](_0x10e131,_0x28406e['markerName']),_0x517195&&(this['activeMarkers']['includes'](_0x28406e['markerName'])?_0x171ac1['writer']['addClass']('ck-suggestion-marker--active',_0x10e131):_0x171ac1['writer']['removeClass']('ck-suggestion-marker--active',_0x10e131));for(const _0x55ce92 of _0x4227bb['model']['createRangeIn'](_0x28406e['item'])['getItems']())_0x171ac1['consumable']['consume'](_0x55ce92,_0x53b5fa['name']);_0x171ac1['consumable']['consume'](_0x28406e['item'],_0x53b5fa['name']);}};_0x4227bb['conversion']['for']('dataDowncast')['add'](_0x392590=>{_0x392590['on']('addMarker:suggestion:formatBlock',(_0x15f827,_0x4e2349,_0x5d5d27)=>{_0x5d5d27['options']['showSuggestionHighlights']&&_0x15321c({'showActiveMarkers':!0x1})(_0x15f827,_0x4e2349,_0x5d5d27);},{'priority':'highest'});}),_0x4227bb['conversion']['for']('dataDowncast')['add'](_0x321dd1=>{_0x321dd1['on']('addMarker:suggestion:attribute',(_0x39985b,_0x2e0971,_0x1fe9a7)=>{_0x1fe9a7['options']['showSuggestionHighlights']&&_0x15321c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39985b,_0x2e0971,_0x1fe9a7);},{'priority':'highest'});}),_0x4227bb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x371f4e,_0x2cc3fd)=>_0x2cc3fd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x371f4e['substr'](0xb)}}),_0x4227bb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4d7c65,{writer:_0x382fba})=>{let _0x3351b2='suggestion:'+_0x4d7c65['getAttribute']('suggestion-type')+':'+_0x4d7c65['getAttribute']('id');return _0x4d7c65['getAttribute']('marker-count')&&(_0x3351b2+=':'+_0x4d7c65['getAttribute']('marker-count')),_0x382fba['createElement']('$marker',{'data-name':_0x3351b2});}}),_0x4227bb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4227bb['conversion']['for']('editingDowncast')['add'](_0x260d13=>{_0x260d13['on']('addMarker:suggestion:formatBlock',_0x15321c(),{'priority':'high'});}),_0x4227bb['conversion']['for']('editingDowncast')['add'](_0x5a0b9a=>{_0x5a0b9a['on']('addMarker:suggestion:attribute',_0x15321c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4227bb['conversion']['for']('editingDowncast')['add'](_0x571e95=>{_0x571e95['on']('removeMarker:suggestion:formatBlock',(_0x132ec2,_0x3bfb63,_0x28bd36)=>{const _0x380251=_0x28bd36['mapper']['markerNameToElements'](_0x3bfb63['markerName']);if(_0x380251){for(const _0x5e145e of _0x380251)_0x5e145e['getCustomProperty']('addHighlight')||(_0x28bd36['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e145e),_0x28bd36['writer']['removeAttribute']('data-suggestion',_0x5e145e),_0x28bd36['writer']['removeAttribute']('data-author-id',_0x5e145e),_0x28bd36['mapper']['unbindElementFromMarkerName'](_0x5e145e,_0x3bfb63['markerName']));}},{'priority':'high'});}),_0x4227bb['conversion']['for']('editingDowncast')['add'](_0x42e76b=>{_0x42e76b['on']('removeMarker:suggestion:attribute',(_0x5579f8,_0x599f5b,_0x4d7056)=>{const _0x4152c9=_0x4d7056['mapper']['markerNameToElements'](_0x599f5b['markerName']);if(!_0x4152c9)return;const {id:_0x3bc49b}=this['_splitMarkerName'](_0x599f5b['markerName']),_0x60a709=this['_suggestions']['get'](_0x3bc49b),_0x147a46=this['_getAttributeKey'](_0x60a709);if(this['_isBlockAttribute'](_0x147a46)){for(const _0x59edc8 of _0x4152c9)_0x59edc8['getCustomProperty']('addHighlight')||(_0x4d7056['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59edc8),_0x4d7056['writer']['removeAttribute']('data-suggestion',_0x59edc8),_0x4d7056['writer']['removeAttribute']('data-author-id',_0x59edc8),_0x4d7056['mapper']['unbindElementFromMarkerName'](_0x59edc8,_0x599f5b['markerName']));}},{'priority':'high'});}),_0x4227bb['model']['document']['registerPostFixer'](_0xd66f12=>{let _0x27a200=!0x1;const _0x4ce060=Array['from'](_0x4227bb['model']['document']['differ']['getChangedMarkers']()),_0x35eca6=new Set();for(const {name:_0xb5b648,data:_0x4d09de}of _0x4ce060){const {group:_0x57c9e6,type:_0x155f90,subType:_0x36a43d,id:_0x24000c}=this['_splitMarkerName'](_0xb5b648);if('suggestion'!==_0x57c9e6)continue;const _0x45b4f5=this['_suggestions']['get'](_0x24000c);if(null!=_0x4d09de['newRange']){'formatInline'==_0x155f90&&(_0x27a200=_0x27a200||Ut(_0x4d09de['newRange'],_0xb5b648,_0xd66f12,_0x4227bb['model']['schema']));const _0x270e6a='attribute'==_0x155f90&&this['_isBlockAttribute'](_0x36a43d['split']('|')[0x0]);if(_0x4d09de['newRange']['isCollapsed']||'$graveyard'==_0x4d09de['newRange']['root']['rootName']||'formatBlock'==_0x155f90&&!Ft(_0x4d09de['newRange'])||_0x270e6a&&!Ft(_0x4d09de['newRange'])||'deletion'==_0x155f90&&!(!Vt(_0x3e9ae7=_0x4d09de['newRange'])&&!function(_0x55a338){return _0x55a338['start']['parent']==_0x55a338['end']['nodeBefore']&&_0x55a338['start']['isAtEnd'];}(_0x3e9ae7)))_0xd66f12['removeMarker'](_0xb5b648),_0x27a200=!0x0;else{if(!_0x45b4f5||!_0x45b4f5['isInContent'])continue;if(_0x4d09de['newRange']&&_0x4d09de['oldRange']&&_0x4d09de['newRange']['isEqual'](_0x4d09de['oldRange']))continue;_0x35eca6['add'](_0x45b4f5);}}}var _0x3e9ae7;return _0x35eca6['size']>0x0&&(_0x27a200=!!this['_joinWithAdjacentSuggestions'](_0x35eca6)||_0x27a200),_0x27a200;}),_0x4227bb['model']['document']['registerPostFixer'](_0x2d531f=>{let _0x4dcffc=!0x1;for(const _0x506459 of _0x4227bb['model']['document']['differ']['getChanges']())if('insert'==_0x506459['type'])for(const _0x49138b of this['_suggestions']['values']()){if(_0x49138b['isMultiRange']||!_0x49138b['isInContent'])continue;const _0x1527b9='formatBlock'==_0x49138b['type'],_0x44d377=this['_getAttributeKey'](_0x49138b),_0x21664d=_0x44d377&&this['_isBlockAttribute'](_0x44d377);if(!_0x1527b9&&!_0x21664d)continue;const _0x84c7ab=_0x49138b['getFirstRange']();if(_0x84c7ab['start']['parent']!=_0x84c7ab['end']['parent']&&!_0x84c7ab['end']['isAtEnd']){const _0x2b1d27=_0x4227bb['model']['createPositionAt'](_0x84c7ab['start']['nodeAfter'],'end'),_0x318899=_0x4227bb['model']['createRange'](_0x84c7ab['start'],_0x2b1d27);_0x2d531f['updateMarker'](_0x49138b['getFirstMarker'](),{'range':_0x318899}),_0x4dcffc=!0x0;}}return _0x4dcffc;}),_0x4227bb['model']['document']['registerPostFixer'](_0x191f2f=>this['_processAttributeChanges'](_0x191f2f)),_0x4227bb['model']['document']['registerPostFixer'](_0x14ffce=>!_0x14ffce['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x14ffce)),_0x4227bb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4227bb['model']['document']['on']('change:data',(_0x41fd4f,_0xeb4919)=>{if(!_0xeb4919['isLocal']||_0xeb4919['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2db9d6=_0x4227bb['model']['document']['differ']['getChanges']();if(0x0==_0x2db9d6['length'])return;const _0x2ad9a5=[],_0x444f8d=_0x2db9d6['filter'](_0x35cbee=>'attribute'==_0x35cbee['type']),_0x4a5f52=_0x2db9d6['filter'](_0x19a77c=>'insert'==_0x19a77c['type']&&'$text'!=_0x19a77c['name']);for(const _0x1ba8d3 of _0x444f8d)this['_isRegisteredAttribute'](_0x1ba8d3['attributeKey'])&&_0x2ad9a5['push']({'key':_0x1ba8d3['attributeKey'],'newValue':_0x1ba8d3['attributeNewValue'],'oldValue':_0x1ba8d3['attributeOldValue'],'range':Pt(_0x1ba8d3['range'],_0x4227bb['model'])});for(const _0x3e1e60 of _0x4a5f52){if('rename'!=_0x3e1e60['action']&&'refresh'!=_0x3e1e60['action'])continue;const _0x57744a=Lt(_0x3e1e60['position']['nodeAfter'],_0x4227bb['model']),_0xacaa6c=_0x3e1e60['before'];'rename'==_0x3e1e60['action']&&_0x2ad9a5['push']({'key':m,'newValue':_0x3e1e60['name'],'oldValue':_0xacaa6c['name'],'range':_0x57744a});for(const [_0x1f8ece,_0x4c2a55]of _0xacaa6c['attributes']){if(!this['_isRegisteredAttribute'](_0x1f8ece))continue;const _0x344aef=_0x3e1e60['attributes']['get'](_0x1f8ece);_0x4c2a55!==_0x344aef&&_0x2ad9a5['push']({'key':_0x1f8ece,'newValue':_0x344aef,'oldValue':_0x4c2a55,'range':_0x57744a});}for(const [_0x34510c,_0x1d3760]of _0x3e1e60['attributes'])this['_isRegisteredAttribute'](_0x34510c)&&(_0xacaa6c['attributes']['has'](_0x34510c)||_0x2ad9a5['push']({'key':_0x34510c,'newValue':_0x1d3760,'oldValue':null,'range':_0x57744a}));}0x0!=_0x2ad9a5['length']&&_0x4227bb['model']['enqueueChange'](_0xeb4919,_0x1265b1=>{const _0x3db8ba=_0x177e31();for(const {range:_0x3ebebd,key:_0x18671c,oldValue:_0x2303d7,newValue:_0xe25ee9}of _0x2ad9a5)this['markAttributeChange'](_0x3ebebd,_0x18671c,_0x2303d7,_0xe25ee9,{'groupId':_0x3db8ba});this['_reduceExistingSuggestions'](_0x1265b1,_0x2ad9a5);});},{'priority':'lowest'}),_0x4227bb['model']['markers']['on']('update:suggestion',(_0x3b3dff,_0x476434,_0x217dbd)=>{if(null==_0x217dbd){const {id:_0x287ab5}=this['_splitMarkerName'](_0x476434['name']),_0x1826b6=this['_suggestions']['get'](_0x287ab5);_0x1826b6&&_0x1826b6['addMarkerName'](_0x476434['name']);}}),_0x4227bb['model']['document']['on']('change:data',()=>{const _0x2d5bab=Array['from'](_0x4227bb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x19dba6=>'suggestion'===this['_splitMarkerName'](_0x19dba6['name'])['group']);if(0x0===_0x2d5bab['length'])return;_0x2d5bab['sort']((_0x1710bb,_0x595278)=>{const _0x365ee3=_0x1710bb['data']['oldRange'],_0x26ca10=_0x595278['data']['oldRange'];return null===_0x365ee3&&null===_0x26ca10?0x0:null===_0x365ee3&&null!==_0x26ca10?-0x1:null!==_0x365ee3&&null===_0x26ca10?0x1:_0x365ee3['start']['isBefore'](_0x26ca10['start'])?-0x1:0x1;});const _0x4db528=new Set(),_0x53c856=new Set();for(const {name:_0x708216,data:_0x25f4b6}of _0x2d5bab){const {id:_0xed49c9}=this['_splitMarkerName'](_0x708216);if(null===_0x25f4b6['oldRange']){const _0x427db2=this['_handleNewSuggestionMarker'](_0x708216);_0x53c856['add'](_0x427db2);}else{const _0x4ea99f=this['_suggestions']['get'](_0xed49c9);null!==_0x25f4b6['newRange']||_0x4ea99f['isInContent']?(_0x4db528['add'](_0x4ea99f['head']),_0x53c856['add'](_0x4ea99f)):this['_removeSuggestion'](_0x4ea99f);}}_0x53c856['size']>0x0&&this['_refreshSuggestionsChain'](_0x53c856);for(const _0x5c6681 of _0x4db528)this['fire']('suggestionChanged',_0x5c6681);}),_0x4227bb['model']['on']('applyOperation',(_0x3a421a,_0x45df41)=>{const _0x668aeb=_0x45df41[0x0];if(!this['_suggestions']['size'])return;if(!_0x668aeb['isDocumentOperation'])return;if(_0x668aeb['batch']['isUndo']||!_0x668aeb['batch']['isLocal'])return;let _0x19c24d,_0xe01392;switch(_0x668aeb['type']){case'insert':_0x19c24d=_0x4227bb['model']['createPositionAt'](_0x668aeb['position']),_0xe01392=_0x19c24d['getShiftedBy'](_0x668aeb['howMany']);break;case'split':_0x19c24d=_0x4227bb['model']['createPositionAt'](_0x668aeb['splitPosition']),_0xe01392=_0x4227bb['model']['createPositionAt'](_0x668aeb['moveTargetPosition']);break;case'move':_0x19c24d=_0x4227bb['model']['createPositionAt'](_0x668aeb['targetPosition']),_0xe01392=_0x19c24d['getShiftedBy'](_0x668aeb['howMany']);break;default:return;}const _0x4edb30=_0x4227bb['model']['createRange'](_0x19c24d,_0xe01392);_0x4227bb['model']['change'](()=>{for(const {suggestion:_0x446de1,meta:_0x4df9fe}of this['_findSuggestions'](_0x4edb30)){if(_0x446de1['isMultiRange'])continue;if('formatInline'==_0x446de1['type'])continue;const _0x2aee20=this['_getAttributeKey'](_0x446de1);if(_0x2aee20&&this['_isBlockAttribute'](_0x2aee20)&&'split'!=_0x668aeb['type'])continue;const _0x254da7=_0x446de1['data']&&_0x446de1['data']['multipleBlocks'];('formatBlock'!=_0x446de1['type']||'split'==_0x668aeb['type']&&!_0x254da7)&&(_0x4df9fe['containsRangeInObject']||'insertion'==_0x446de1['type']&&_0x4df9fe['isOwn']||_0x446de1['getFirstRange']()['containsRange'](_0x4edb30)&&this['_breakSuggestionMarker'](_0x446de1,_0x19c24d,_0xe01392));}});},{'priority':'lowest'}),_0x4227bb['model']['on']('deleteContent',(_0x4c040a,_0x8a3336)=>{const _0x54b69c=_0x8a3336[0x0],_0x35be49=_0x8a3336[0x1];if(_0x35be49&&_0x35be49['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x54b69c['isCollapsed'])return;const _0x3ff383=_0x4227bb['model']['schema'],{start:_0x1974fa,end:_0x3b3900}=_0x54b69c['getFirstRange'](),_0x3333cd=_0x1974fa['nodeAfter']&&_0x3ff383['isLimit'](_0x1974fa['nodeAfter'])?null:_0x3ff383['getNearestSelectionRange'](_0x1974fa,'forward'),_0x3e9127=_0x3b3900['nodeBefore']&&_0x3ff383['isLimit'](_0x3b3900['nodeBefore'])?null:_0x3ff383['getNearestSelectionRange'](_0x3b3900,'backward'),_0x14cae2=_0x4227bb['model']['createRange'](_0x3333cd?_0x3333cd['start']:_0x1974fa,_0x3e9127?_0x3e9127['end']:_0x3b3900);_0x4227bb['model']['change'](_0x179a40=>{this['markDeletion'](_0x14cae2);const _0x5de6c8=_0x4227bb['model']['schema']['getNearestSelectionRange'](_0x14cae2['start']);_0x54b69c['is']('documentSelection')?_0x179a40['setSelection'](_0x5de6c8):_0x54b69c['setTo'](_0x5de6c8);}),_0x4c040a['stop']();},{'priority':_0x2928f8['normal']+0xa}),_0x4227bb['model']['on']('insertContent',(_0x1fb430,_0x21a037)=>{const _0x50aaff=_0x21a037[_0x21a037['length']-0x1];_0x50aaff&&_0x50aaff['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4227bb['model']['change'](()=>{let _0x314903=_0x4227bb['model']['insertContent'](_0x21a037[0x0],_0x21a037[0x1],_0x21a037[0x2],{'forceDefaultExecution':!0x0});if(!_0x314903)return;_0x1fb430['return']=_0x314903['clone']();const _0x5986fc=_0x314903['end']['nodeBefore'],_0x4cad77=_0x4227bb['model']['schema'];_0x5986fc&&_0x4cad77['isBlock'](_0x5986fc)&&!_0x4cad77['isObject'](_0x5986fc)&&(_0x314903=_0x4227bb['model']['createRange'](_0x314903['start'],_0x4227bb['model']['createPositionAt'](_0x5986fc,'end'))),this['markInsertion'](_0x314903);}),_0x1fb430['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c63d4=new x(_0x4227bb,this['_suggestions']);_0x4227bb['commands']['add']('acceptSuggestion',_0x4c63d4),this['enableCommand']('acceptSuggestion');const _0x29019f=new R(_0x4227bb,this['_suggestions']);_0x4227bb['commands']['add']('discardSuggestion',_0x29019f),this['enableCommand']('discardSuggestion'),_0x4227bb['commands']['add']('acceptAllSuggestions',new E(_0x4227bb,_0x4c63d4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4227bb['commands']['add']('discardAllSuggestions',new E(_0x4227bb,_0x29019f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4227bb['commands']['add']('acceptSelectedSuggestions',new O(_0x4227bb,_0x4c63d4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4227bb['commands']['add']('discardSelectedSuggestions',new O(_0x4227bb,_0x29019f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x504b56=_0x4227bb['plugins']['get']('CommentsRepository');this['listenTo'](_0x504b56,'addComment',(_0x301552,{threadId:_0x4fc5d4})=>{const _0xf02ceb=this['_suggestions']['get'](_0x4fc5d4);_0xf02ceb&&_0xf02ceb['commentThread']&&0x1===_0xf02ceb['commentThread']['length']&&this['_updateSuggestionData'](_0x4fc5d4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x504b56,'removeComment',(_0x4a1b91,{threadId:_0x42d409})=>{const _0x4a588c=this['_suggestions']['get'](_0x42d409);_0x4a588c&&_0x4a588c['commentThread']&&!_0x4a588c['commentThread']['length']&&this['_updateSuggestionData'](_0x42d409,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x256130){if(this['_adapter'])throw new _0x43e970('track-changes-adapter-already-set',this);this['_adapter']=_0x256130;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5637fa=!0x1,toJSON:_0x23c26b=!0x1}={}){const _0x153f29=[];for(const _0xa21582 of this['_suggestions']['values']())_0x5637fa&&!_0xa21582['isInContent']||_0x153f29['push'](_0xa21582);return _0x23c26b?_0x153f29['map'](_0x38a357=>_0x38a357['toJSON']()):_0x153f29;}['getSuggestion'](_0x1ca58e){const _0x5ae0df=this['_suggestions']['get'](_0x1ca58e);if(!_0x5ae0df)throw new _0x43e970('track-changes-suggestion-not-found',this);return _0x5ae0df;}['hasSuggestion'](_0x2de794){return this['_suggestions']['has'](_0x2de794);}['addSuggestionData'](_0x21f199){const {authorId:_0x44ec98,id:_0x1ba5ee,attributes:_0x200375}=_0x21f199,[_0x54d485,_0x58a3c6]=_0x21f199['type']['split'](':'),_0x2ecbd2=this['_suggestions']['get'](_0x1ba5ee)||this['_createSuggestion'](_0x54d485,_0x58a3c6,_0x1ba5ee,_0x44ec98,_0x200375);if(this['_addThreadToSuggestion'](_0x2ecbd2),this['_checkSuggestionCorrectness'](_0x2ecbd2,_0x54d485,_0x58a3c6||null,_0x44ec98),_0x2ecbd2['createdAt']=_0x21f199['createdAt'],_0x2ecbd2['_isDataLoaded']=!0x0,_0x200375&&_0x200375['@external']){const _0x2be458=_0x200375['@external'],_0x31fcc6=this['_getExternalAuthor'](_0x2be458['authorName']);_0x2ecbd2['authoredAt']=_0x2be458['createdAt'],_0x2ecbd2['author']=_0x31fcc6,_0x2ecbd2['isExternal']=!0x0;}else _0x2ecbd2['authoredAt']=_0x21f199['createdAt'];switch(_0x21f199['data']&&(_0x2ecbd2['data']=_0x21f199['data']),_0x21f199['attributes']&&(_0x2ecbd2['attributes']=_0x21f199['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ecbd2['_saved']=!0x0),this['_suggestionState']['get'](_0x2ecbd2)){case'notReady':this['_suggestionState']['set'](_0x2ecbd2,'dataReady');break;case'markerReady':_0x2ecbd2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ecbd2])),this['_refreshSuggestionsChain'](new Set([_0x2ecbd2])),this['_suggestionState']['set'](_0x2ecbd2,'ready'),this['fire']('suggestionLoaded',_0x2ecbd2)):this['_suggestionState']['set'](_0x2ecbd2,'removed');}return _0x2ecbd2;}['acceptSuggestion'](_0x4ce2d0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12c159 of _0x4ce2d0['getAllAdjacentSuggestions']())_0x12c159['accept']();});});}['discardSuggestion'](_0x415f34){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56b6e9 of _0x415f34['getAllAdjacentSuggestions']())_0x56b6e9['discard']();});});}['enableCommand'](_0x2096aa,_0x561fb7){const _0x1a0727=this['editor']['commands']['get'](_0x2096aa);if(!_0x1a0727)throw new _0x43e970('track-changes-command-not-found',this,{'commandName':_0x2096aa});if(this['_enabledCommands']['has'](_0x1a0727))throw new _0x43e970('track-changes-enable-command-twice',this,{'commandName':_0x2096aa});this['_enabledCommands']['add'](_0x1a0727),_0x561fb7&&_0x1a0727['on']('execute',(_0x39d955,_0x369ea7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x369ea7['length']>0x0&&_0x369ea7[_0x369ea7['length']-0x1]&&_0x369ea7[_0x369ea7['length']-0x1]['forceDefaultExecution']?_0x369ea7['pop']():(_0x39d955['return']=_0x561fb7((..._0x8bcdae)=>_0x1a0727['execute'](..._0x8bcdae,{'forceDefaultExecution':!0x0}),..._0x369ea7),_0x39d955['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x189c91){let _0x2444a1,_0x4c70b8;const _0x544c3a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2444a1=_0x189c91();}catch(_0x275f42){_0x4c70b8=_0x275f42;}return _0x544c3a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c70b8&&_0x43e970['rethrowUnexpectedError'](_0x4c70b8,this),_0x2444a1;}['markInsertion'](_0x4aa9a4,_0x52aa71=null,_0x3e3d06={}){if(_0x4aa9a4['isCollapsed'])return null;const _0x235ce8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e7e8a,meta:_0x1a82db}of this['_findSuggestions'](_0x4aa9a4,'insertion'))if(_0x1a82db['isOwn']){if(!_0x1a82db['isNextTo']){if(_0x1a82db['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3e7e8a,_0x3e3d06))continue;return _0x3e7e8a;}if(qt(_0x3e7e8a,_0x3e3d06))return _0x3e7e8a;this['_breakSuggestionMarker'](_0x3e7e8a,_0x4aa9a4['start'],_0x4aa9a4['end']);break;}if(_0x52aa71==_0x3e7e8a['subType']&&qt(_0x3e7e8a,_0x3e3d06)){const _0x5eb482=_0x3e7e8a['getFirstRange']();return _0x5eb482['start']['isEqual'](_0x4aa9a4['end'])?this['_setSuggestionRange'](_0x3e7e8a,this['_model']['createRange'](_0x4aa9a4['start'],_0x5eb482['end'])):this['_setSuggestionRange'](_0x3e7e8a,this['_model']['createRange'](_0x5eb482['start'],_0x4aa9a4['end'])),_0x3e7e8a;}}const _0x3d8ae7=_0x177e31(),_0x82095a=_0x235ce8['id'],_0x33aceb=_0x52aa71?'insertion:'+_0x52aa71:'insertion',_0xfb732e=this['_setSuggestionData']({'id':_0x3d8ae7,'type':_0x33aceb,'createdAt':new Date(),'authorId':_0x82095a,'attributes':_0x3e3d06});return this['_addSuggestionMarker'](_0x33aceb,_0x3d8ae7,_0x82095a,_0x4aa9a4),_0xfb732e;}['markMultiRangeInsertion'](_0x239a83,_0x38e673='multi',_0x4a5205={}){const _0x3a1a10=this['editor']['plugins']['get']('Users')['me'],_0x2f761f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x38e673,'join');for(const _0x31c441 of this['getSuggestions']())if(_0x31c441['author']['id']==_0x3a1a10['id']&&'insertion'==_0x31c441['type']&&_0x31c441['subType']==_0x38e673&&qt(_0x31c441,_0x4a5205)&&(_0x2f761f(_0x31c441['getRanges'](),_0x239a83)||_0x2f761f(_0x239a83,_0x31c441['getRanges']()))){for(const _0x1f39a3 of _0x239a83)_0x31c441['addRange'](_0x1f39a3);return _0x31c441;}for(const {suggestion:_0x4baffe,meta:_0x334a8f}of this['_findSuggestions'](_0x239a83,'insertion')){if(!_0x334a8f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x334a8f['containsRangeInObject'])continue;if(!qt(_0x4baffe,_0x4a5205))continue;let _0x208fed=!0x0;for(const _0xee4fe of _0x4baffe['getRanges']())for(const _0x896d3f of _0x239a83)if(!_0xee4fe['containsRange'](_0x896d3f)){_0x208fed=!0x1;break;}if(_0x208fed)return _0x4baffe;}const _0x45e6eb=_0x177e31(),_0x2af294=_0x3a1a10['id'],_0x394a78='insertion:'+_0x38e673,_0x448904=this['_setSuggestionData']({'id':_0x45e6eb,'type':_0x394a78,'createdAt':new Date(),'authorId':_0x2af294,'attributes':_0x4a5205});for(const _0x550788 of _0x239a83)this['_addSuggestionMarker'](_0x394a78,_0x45e6eb,_0x2af294,_0x550788,u['getMultiRangeId']());return _0x448904;}['markInlineFormat'](_0x12ebcb,_0x7fffe,_0x1267c8=null,_0x18eb07={}){if(_0x1267c8=_0x1267c8||Gt(_0x7fffe),_0x12ebcb['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x356b92=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1267c8,'accept');return this['forceDefaultExecution'](()=>_0x356b92([_0x12ebcb],_0x7fffe,_0x18eb07)),null;}const _0x55853f=this['editor']['plugins']['get']('Users')['me'],_0x5e2f8b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fd6cd,meta:_0x2e849c}of this['_findSuggestions'](_0x12ebcb,'insertion'))_0x2e849c['isOwn']&&!_0x2e849c['isInsideObject']&&_0x5e2f8b['push'](..._0x3fd6cd['getRanges']());}const _0x30994a=function(_0x821b81,_0x45f10f){const _0x445ef9=[];for(const _0x6518ce of _0x45f10f){const _0x30b6c3=_0x821b81['getIntersection'](_0x6518ce);_0x30b6c3&&_0x445ef9['push'](_0x30b6c3);}return _0x445ef9;}(_0x12ebcb,_0x5e2f8b),_0x142558=function(_0x77db2c,_0x24beed){const _0x1d8831=[_0x77db2c];for(const _0x544496 of _0x24beed){let _0x36f62b=0x0;for(;_0x36f62b<_0x1d8831['length'];){const _0x565d6c=_0x1d8831[_0x36f62b]['getDifference'](_0x544496);_0x1d8831['splice'](_0x36f62b,0x1,..._0x565d6c),_0x36f62b+=_0x565d6c['length'];}}return _0x1d8831;}(_0x12ebcb,_0x5e2f8b);_0x30994a['length']&&this['_model']['change'](()=>{for(const _0x378512 of _0x30994a){const _0x44c8fe=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1267c8,'accept');this['forceDefaultExecution'](()=>_0x44c8fe([_0x378512],_0x7fffe,_0x18eb07));}});for(const _0x61a795 of _0x142558){let _0x5ba55e=null,_0x4accdc=_0x61a795['start'],_0x2996d1=_0x61a795['end'];for(const {suggestion:_0xd244c1,meta:_0x6d63c}of this['_findSuggestions'](_0x61a795,'formatInline')){if(!_0x6d63c['isOwn'])continue;if(_0xd244c1['subType']!=_0x1267c8)continue;if(!qt(_0xd244c1,_0x18eb07))continue;const _0x7415b3=_0xd244c1['getFirstRange']();if(_0x7415b3['containsRange'](_0x61a795,!0x0))return null;_0x4accdc=_0x4accdc['isBefore'](_0x7415b3['start'])?_0x4accdc:_0x7415b3['start'],_0x2996d1=_0x2996d1['isAfter'](_0x7415b3['end'])?_0x2996d1:_0x7415b3['end'],_0x5ba55e?_0x7415b3['start']['isBefore'](_0x5ba55e['getFirstRange']()['start'])?(_0x5ba55e['removeMarkers'](),_0x5ba55e=_0xd244c1):_0xd244c1['removeMarkers']():_0x5ba55e=_0xd244c1;}const _0x1ec03f=this['_model']['createRange'](_0x4accdc,_0x2996d1);if(_0x5ba55e)this['_setSuggestionRange'](_0x5ba55e,_0x1ec03f);else{const _0x5ee1ff=_0x177e31(),_0x5f5bb9=_0x55853f['id'];this['_setSuggestionData']({'id':_0x5ee1ff,'type':'formatInline:'+_0x1267c8,'data':_0x7fffe,'createdAt':new Date(),'authorId':_0x5f5bb9,'attributes':_0x18eb07}),this['_addSuggestionMarker']('formatInline:'+_0x1267c8,_0x5ee1ff,_0x5f5bb9,_0x1ec03f);}}return null;}['markBlockFormat'](_0x3bad28,_0x171e08,_0x5dfe64=[],_0x40c5e4=null,_0xc53f13={}){_0x171e08['formatGroupId']||(_0x171e08['formatGroupId']=_0x171e08['commandName']),_0x171e08['multipleBlocks']=_0x3bad28['is']('range'),_0x40c5e4=_0x40c5e4||Gt(_0x171e08);const _0x485e9c=_0x5dfe64['map'](_0xbde438=>Lt(_0xbde438,this['_model'])),_0x39b4a7=_0x3bad28['is']('range')?_0x3bad28:Lt(_0x3bad28,this['_model']);if('never'===this['_trackFormatChanges']){const _0x50c63a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c5e4,'accept');return this['forceDefaultExecution'](()=>_0x50c63a([_0x39b4a7],_0x171e08,_0xc53f13)),null;}_0x485e9c['push'](_0x39b4a7);let _0x123dc6=!0x0;for(const _0xfc614d of _0x485e9c)if(!this['_rangeIsInLocalUserInsertion'](_0xfc614d)){_0x123dc6=!0x1;break;}if(_0x123dc6&&'always'!==this['_trackFormatChanges']){const _0x392e62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40c5e4,'accept');return this['forceDefaultExecution'](()=>_0x392e62([_0x39b4a7],_0x171e08,_0xc53f13)),null;}let _0xa8c388=null,_0x5b95ae=_0x39b4a7['start'],_0x22c937=_0x39b4a7['end'];for(const {suggestion:_0x225c43,meta:_0x47750e}of this['_findSuggestions'](_0x39b4a7,'formatBlock')){if(!_0x47750e['isOwn'])continue;if(_0x47750e['isNextTo']||_0x47750e['containsRangeInObject']||_0x47750e['isInsideObject'])continue;if(_0x225c43['data']['formatGroupId']!=_0x171e08['formatGroupId'])continue;if(!qt(_0x225c43,_0xc53f13))continue;const _0xd37346=_0x225c43['getFirstRange']();if(_0x225c43['subType']==_0x40c5e4){if(_0xd37346['containsRange'](_0x39b4a7,!0x0))return null;_0x5b95ae=_0x5b95ae['isBefore'](_0xd37346['start'])?_0x5b95ae:_0xd37346['start'],_0x22c937=_0x22c937['isAfter'](_0xd37346['end'])?_0x22c937:_0xd37346['end'],_0xa8c388?_0xd37346['start']['isBefore'](_0xa8c388['getFirstRange']()['start'])?(_0xa8c388['removeMarkers'](),_0xa8c388=_0x225c43):_0x225c43['removeMarkers']():_0xa8c388=_0x225c43;}else{const _0x1b4b41=_0x39b4a7['getIntersection'](_0xd37346);this['_cutOutSuggestionMarker'](_0x225c43,_0x1b4b41);}}const _0x3c5cb2=this['editor']['plugins']['get']('Users')['me'],_0x40e316=_0x177e31(),_0x2cbbab=_0x3c5cb2['id'];if(_0xa8c388)return this['_setSuggestionRange'](_0xa8c388,this['_model']['createRange'](_0x5b95ae,_0x22c937)),_0xa8c388;{const _0x542381=this['_setSuggestionData']({'id':_0x40e316,'type':'formatBlock:'+_0x40c5e4,'data':_0x171e08,'createdAt':new Date(),'authorId':_0x2cbbab,'attributes':_0xc53f13});return this['_addSuggestionMarker']('formatBlock:'+_0x40c5e4,_0x40e316,_0x2cbbab,this['_model']['createRange'](_0x5b95ae,_0x22c937)),_0x542381;}}['markMultiRangeBlockFormat'](_0x5452c6,_0x9d6934,_0x5219c5=[],_0x4afe17=null,_0x432264={}){_0x9d6934['formatGroupId']||(_0x9d6934['formatGroupId']=_0x9d6934['commandName']);const _0x304012=_0x5452c6[0x0];_0x9d6934['multipleBlocks']=_0x304012['is']('range'),_0x4afe17=_0x4afe17||Gt(_0x9d6934);const _0x111eaf=_0x5219c5['map'](_0x1dc4e4=>Lt(_0x1dc4e4,this['_model'])),_0x3922dc=_0x304012['is']('range')?_0x5452c6:_0x5452c6['map'](_0x58aaad=>Lt(_0x58aaad,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4feee7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4afe17,'accept');return this['forceDefaultExecution'](()=>_0x4feee7(_0x3922dc,_0x9d6934,_0x432264)),null;}_0x111eaf['push'](..._0x3922dc);let _0x306cc8=!0x0;for(const _0x1d156f of _0x111eaf)if(!this['_rangeIsInLocalUserInsertion'](_0x1d156f)){_0x306cc8=!0x1;break;}if(_0x306cc8&&'always'!==this['_trackFormatChanges']){const _0x3a57bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4afe17,'accept');return this['forceDefaultExecution'](()=>_0x3a57bc(_0x3922dc,_0x9d6934,_0x432264)),null;}const _0x2529c2=this['editor']['plugins']['get']('Users')['me'];for(const _0x24d8a6 of this['getSuggestions']()){if(_0x24d8a6['author']['id']!=_0x2529c2['id'])continue;if('formatBlock'!=_0x24d8a6['type']||_0x24d8a6['data']['formatGroupId']!=_0x9d6934['formatGroupId'])continue;if(!qt(_0x24d8a6,_0x432264))continue;const _0x47aeb0=_0x24d8a6['subType']==_0x4afe17;for(let _0x2f74f1=0x0;_0x2f74f1<_0x3922dc['length'];_0x2f74f1++){const _0x5234d5=_0x3922dc[_0x2f74f1];for(const _0x437668 of _0x24d8a6['getMarkers']()){const _0x51b5e2=_0x437668['getRange']();if(_0x5234d5['isEqual'](_0x51b5e2)){_0x47aeb0?(_0x3922dc['splice'](_0x2f74f1,0x1),_0x2f74f1--):_0x24d8a6['removeMarker'](_0x437668['name']);break;}}}}if(0x0==_0x3922dc['length'])return null;const _0x401bdc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4afe17,'join');for(const _0x2fb19c of this['getSuggestions']())if(_0x2fb19c['author']['id']==_0x2529c2['id']&&'formatBlock'==_0x2fb19c['type']&&_0x2fb19c['data']['formatGroupId']==_0x9d6934['formatGroupId']&&_0x2fb19c['subType']==_0x4afe17&&qt(_0x2fb19c,_0x432264)&&(_0x401bdc(_0x2fb19c['getRanges'](),_0x3922dc)||_0x401bdc(_0x3922dc,_0x2fb19c['getRanges']()))){for(const _0x19a01e of _0x3922dc)_0x2fb19c['addRange'](_0x19a01e);return _0x2fb19c;}const _0x2113d8=_0x177e31(),_0x30d477=_0x2529c2['id'],_0x1054e9='formatBlock:'+_0x4afe17,_0xaed37f=this['_setSuggestionData']({'id':_0x2113d8,'type':_0x1054e9,'data':_0x9d6934,'createdAt':new Date(),'authorId':_0x30d477,'attributes':_0x432264});for(const _0x20a5bd of _0x3922dc)this['_addSuggestionMarker'](_0x1054e9,_0x2113d8,_0x30d477,_0x20a5bd,u['getMultiRangeId']());return _0xaed37f;}['markDeletion'](_0xc2cd0e,_0x927aaf=null,_0x595344={}){if(_0xc2cd0e['isCollapsed'])return null;const _0x520bf0=this['editor']['plugins']['get']('Users')['me'],_0xb2ecb9=new _0xb0a740(_0xc2cd0e['start'],_0xc2cd0e['end']);for(const {suggestion:_0x4cf42f,meta:_0x2290d3}of this['_findSuggestions'](_0xb2ecb9,'insertion'))if(_0x2290d3['isOwn']&&!_0x2290d3['isNextTo']){if(_0x4cf42f['isMultiRange']){const _0x13fe0b=_0x4cf42f['getRanges']()['filter'](_0x1b69bf=>'$graveyard'!=_0x1b69bf['root']['rootName']);_0x13fe0b['every'](_0x3d76d8=>_0xb2ecb9['containsRange'](_0x3d76d8,!0x0))&&_0x4cf42f['discard']();if(_0x13fe0b['some'](_0x108b50=>_0x108b50['containsRange'](_0xb2ecb9,!0x0))){const _0x19ad35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x927aaf,'accept');return this['forceDefaultExecution'](()=>_0x19ad35([_0xb2ecb9],null,_0x595344)),null;}}else{const _0x3ea364=_0xb2ecb9['getIntersection'](_0x4cf42f['getFirstRange']());null!==_0x3ea364&&_0x4cf42f['_onDiscard']([_0x3ea364],null,_0x595344);}}if(_0xb2ecb9['detach'](),_0xb2ecb9['isCollapsed']||'$graveyard'==_0xb2ecb9['root']['rootName'])return null;let _0x492933=null,_0x2dafaf=_0xb2ecb9['start'],_0x2ffddb=_0xb2ecb9['end'];const _0x36fe29=this['_findSuggestions'](_0xb2ecb9,'deletion');for(const {suggestion:_0x1c7a25,meta:_0x2d8c2f}of _0x36fe29){const _0x1ba987=this['_model']['createRange'](_0x2dafaf,_0x2ffddb);if(_0x2d8c2f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d8c2f['containsRangeInObject']&&!_0x2d8c2f['isInsideObject'])){if(_0x1c7a25['isMultiRange']){if(!qt(_0x1c7a25,_0x595344))continue;let _0x5b3967=!0x0;for(const _0xd0240c of _0x1c7a25['getRanges']()){if(_0xd0240c['containsRange'](_0x1ba987,!0x0))return _0x1c7a25;_0x1ba987['containsRange'](_0xd0240c)||(_0x5b3967=!0x1);}_0x5b3967&&_0x1c7a25['discard']();}else{const _0x538ce1=_0x1c7a25['getFirstRange']();if(_0x538ce1['containsRange'](_0x1ba987,!0x0))return _0x1c7a25;if(!qt(_0x1c7a25,_0x595344)){_0x1ba987['containsRange'](_0x538ce1)?_0x1c7a25['removeMarkers']():_0x538ce1['containsPosition'](_0x2dafaf)?_0x2dafaf=_0x538ce1['end']:_0x538ce1['containsPosition'](_0x2ffddb)&&(_0x2ffddb=_0x538ce1['start']);continue;}_0x2dafaf=_0x2dafaf['isBefore'](_0x538ce1['start'])?_0x2dafaf:_0x538ce1['start'],_0x2ffddb=_0x2ffddb['isAfter'](_0x538ce1['end'])?_0x2ffddb:_0x538ce1['end'],_0x595344=Object['assign']({},_0x1c7a25['attributes']),_0x492933?_0x538ce1['start']['isBefore'](_0x492933['getFirstRange']()['start'])?(_0x492933['removeMarkers'](),_0x492933=_0x1c7a25):_0x1c7a25['removeMarkers']():_0x492933=_0x1c7a25;}}}if(_0x492933)return this['_setSuggestionRange'](_0x492933,this['_model']['createRange'](_0x2dafaf,_0x2ffddb)),_0x492933;{const _0x52ca31=_0x177e31(),_0x411800=this['_model']['createRange'](_0x2dafaf,_0x2ffddb),_0x566081=_0x520bf0['id'],_0x476abc=_0x927aaf?'deletion:'+_0x927aaf:'deletion',_0x51d862=this['_setSuggestionData']({'id':_0x52ca31,'type':_0x476abc,'createdAt':new Date(),'authorId':_0x566081,'attributes':_0x595344});return this['_addSuggestionMarker'](_0x476abc,_0x52ca31,_0x566081,_0x411800),_0x51d862;}}['markMultiRangeDeletion'](_0x2a180a,_0x3a0591='multi',_0x40243d={}){const _0x3268f6=this['editor']['plugins']['get']('Users')['me'],_0x4d9a33=_0x2a180a['map'](_0x1cb107=>new _0xb0a740(_0x1cb107['start'],_0x1cb107['end'])),_0x291243=new Set();for(const {suggestion:_0x47934e,meta:_0x239e98}of this['_findSuggestions'](_0x4d9a33,'insertion'))_0x239e98['isOwn']&&!_0x239e98['isNextTo']&&_0x291243['add'](_0x47934e);for(const _0x2ad4ff of _0x291243)if(_0x2ad4ff['isMultiRange']){const _0x163461=_0x2ad4ff['getRanges']();(!_0x2ad4ff['attributes']||!_0x2ad4ff['attributes']['skipNestingCheck'])&&(_0x163461['every'](_0x5bad01=>_0x4d9a33['some'](_0x455d2f=>_0x455d2f['containsRange'](_0x5bad01,!0x0)))&&_0x2ad4ff['discard']());if(_0x4d9a33['every'](_0xd43884=>_0x163461['some'](_0x7e0ba=>_0x7e0ba['containsRange'](_0xd43884,!0x0)))){const _0x467cd3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a0591,'accept');return this['forceDefaultExecution'](()=>_0x467cd3(_0x2a180a,null,_0x40243d)),null;}}else{const _0x2536f2=_0x2ad4ff['getFirstRange']();_0x4d9a33['some'](_0x156dde=>_0x156dde['containsRange'](_0x2536f2,!0x0))&&_0x2ad4ff['discard']();if(_0x4d9a33['every'](_0x5a1e92=>_0x2536f2['containsRange'](_0x5a1e92,!0x0))){const _0x3844f1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a0591,'accept');return this['forceDefaultExecution'](()=>_0x3844f1(_0x4d9a33,null,_0x40243d)),null;}}const _0xd52f77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a0591,'join');let _0x3f9a2c=null;for(const _0x21cc5f of this['getSuggestions']())if(_0x21cc5f['author']['id']==_0x3268f6['id']&&_0x21cc5f['isInContent']&&'deletion'==_0x21cc5f['type']&&_0x21cc5f['subType']==_0x3a0591&&qt(_0x21cc5f,_0x40243d)&&(_0xd52f77(_0x21cc5f['getRanges'](),_0x4d9a33)||_0xd52f77(_0x4d9a33,_0x21cc5f['getRanges']()))){if(_0x3f9a2c){if(_0x21cc5f['commentThread']&&_0x21cc5f['commentThread']['length'])continue;for(const _0x10987d of _0x21cc5f['getRanges']())_0x3f9a2c['isIntersectingWithRange'](_0x10987d)||_0x3f9a2c['addRange'](_0x10987d);_0x21cc5f['removeMarkers']();}else{_0x3f9a2c=_0x21cc5f;for(const _0x3b3de8 of _0x4d9a33)_0x21cc5f['isIntersectingWithRange'](_0x3b3de8)||_0x21cc5f['addRange'](_0x3b3de8);}}if(_0x3f9a2c)return _0x3f9a2c;_0x291243['clear']();for(const {suggestion:_0x170697,meta:_0xbf6158}of this['_findSuggestions'](_0x4d9a33,'deletion'))_0xbf6158['isOwn']&&(this['_mergeNestedSuggestions']||!_0xbf6158['containsRangeInObject']&&!_0xbf6158['isInsideObject'])&&qt(_0x170697,_0x40243d)&&_0x291243['add'](_0x170697);for(const _0x331066 of _0x291243){const _0x57e131=_0x331066['getRanges']();if(!_0x40243d||!_0x40243d['skipNestingCheck']){if(_0x4d9a33['every'](_0xece772=>_0x57e131['some'](_0x248db9=>_0x248db9['containsRange'](_0xece772,!0x0))))return _0x331066;}(!_0x331066['attributes']||!_0x331066['attributes']['skipNestingCheck'])&&(_0x57e131['every'](_0x46a53c=>_0x4d9a33['some'](_0x725b5d=>_0x725b5d['containsRange'](_0x46a53c,!0x0)))&&_0x331066['discard']());}const _0x3d3fe1=_0x177e31(),_0x3b9541=_0x3268f6['id'],_0x32a35e='deletion:'+_0x3a0591,_0x542364=this['_setSuggestionData']({'id':_0x3d3fe1,'type':_0x32a35e,'createdAt':new Date(),'authorId':_0x3b9541,'attributes':_0x40243d});for(const _0xf75de9 of _0x4d9a33)_0xf75de9['detach'](),_0xf75de9['isCollapsed']||'$graveyard'==_0xf75de9['root']['rootName']||this['_addSuggestionMarker'](_0x32a35e,_0x3d3fe1,_0x3b9541,_0xf75de9,u['getMultiRangeId']());return _0x542364;}['markAttributeChange'](_0x18bf0b,_0x2f755f,_0x2fecf9,_0x3e8bfa,_0x5a1f65){if(_0x18bf0b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x100ae2=this['editor']['plugins']['get']('Users')['me']['id'],_0x1dd777=Array['from'](this['_suggestions']['values']())['filter'](_0x163a0c=>'attribute'==_0x163a0c['type']&&_0x163a0c['data']['key']==_0x2f755f&&_0x163a0c['isIntersectingWithRange'](_0x18bf0b));if('default'===this['_trackFormatChanges']){const _0x1d9763=this['_findSuggestions'](_0x18bf0b,'insertion')['filter'](({meta:_0x14cbe7})=>_0x14cbe7['isOwn']&&!_0x14cbe7['isInsideObject']&&!_0x14cbe7['isNextTo'])['map'](({suggestion:_0x5fbd42})=>_0x5fbd42);_0x1dd777['unshift'](..._0x1d9763);}const _0x57f708=new Map([[_0x18bf0b,_0x2fecf9]]);for(const _0x9d6d73 of _0x1dd777){const _0x457918='attribute'==_0x9d6d73['type']?_0x9d6d73['data']['oldValue']:void 0x0,_0x68d831=_0x9d6d73['getFirstRange'](),_0x29ff18=Array['from'](_0x57f708['keys']())['find'](_0xfb901c=>_0xfb901c['isIntersecting'](_0x68d831));if(!_0x29ff18)continue;const _0x51f75b=_0x29ff18['getDifference'](_0x68d831);this['_isBlockAttribute'](_0x2f755f)&&'insertion'==_0x9d6d73['type']&&0x0!=_0x51f75b['length']||(_0x57f708['delete'](_0x29ff18),_0x51f75b['forEach'](_0x1f6799=>{_0x57f708['set'](_0x1f6799,_0x2fecf9);}),'insertion'!=_0x9d6d73['type']&&_0x457918!=_0x3e8bfa&&_0x57f708['set'](_0x29ff18['getIntersection'](_0x68d831),_0x457918));}const _0xdaa34d=[];for(const [_0x475f2b,_0x37161e]of _0x57f708){const _0x306e05=_0x177e31(),_0x5be5c9={'key':_0x2f755f,'oldValue':_0x37161e,'newValue':_0x3e8bfa};_0x2f755f['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':_0x2f755f});const _0x94f793=('attribute:'+(_0x2f755f+'|'+Gt({'newValue':_0x3e8bfa})))['substring'](0x0,0x3c),_0x5096a0=this['_setSuggestionData']({'id':_0x306e05,'type':_0x94f793,'data':_0x5be5c9,'createdAt':new Date(),'authorId':_0x100ae2,'attributes':_0x5a1f65});_0xdaa34d['push'](_0x5096a0),this['_addSuggestionMarker'](_0x94f793,_0x306e05,_0x100ae2,_0x475f2b);}return _0xdaa34d;}['enableDefaultAttributesIntegration'](_0x4446db){this['enableCommand'](_0x4446db,(_0x125110,..._0x4f60f6)=>{this['_recordAttributeChanges'](()=>{_0x125110(..._0x4f60f6);});});}['registerBlockAttribute'](_0x1b4713){this['_blockAttributeKeys']['add'](_0x1b4713);}['registerInlineAttribute'](_0x2f6c4a){this['_inlineAttributeKeys']['add'](_0x2f6c4a);}['_getAttributeKey'](_0x5bd2bc){return'attribute'==_0x5bd2bc['type']?_0x5bd2bc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x384f14,_0x2f9a90){const _0x3e2175=_0x384f14['getFirstMarker']();this['_model']['change'](_0xb794b7=>{_0xb794b7['updateMarker'](_0x3e2175,{'range':_0x2f9a90});});}['_addThreadToSuggestion'](_0xc297df){const _0x51ed7f=_0xc297df['id'],_0x4c5ec0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x51ed7f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4c5ec0,'threadId':_0x51ed7f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4cdd03=this['_commentsRepository']['getCommentThread'](_0x51ed7f);_0x4cdd03['unbind']('isRemovable'),_0x4cdd03['isRemovable']=!0x1,_0xc297df['commentThread']=_0x4cdd03;}['_checkSuggestionCorrectness'](_0x38e481,_0x5caf1e,_0x3a4c8c,_0x3bbb37){if(_0x38e481['type']!=_0x5caf1e||_0x38e481['subType']!=_0x3a4c8c||_0x38e481['creator']['id']!=_0x3bbb37)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x43e970('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2475c0,_0xc80f2a){const _0xe7d5c0=_0x2475c0['getFirstRange']();if(_0xc80f2a['isEqual'](_0xe7d5c0))_0x2475c0['removeMarkers']();else{if(_0xe7d5c0['containsRange'](_0xc80f2a)){const _0x292c65=this['_model']['createPositionAt'](_0xc80f2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2475c0,this['_model']['createRange'](_0xe7d5c0['start'],_0x292c65));const _0x425d6e=_0x177e31(),_0xfa0b99=_0x2475c0['creator']['id'],_0x4edc21=_0x2475c0['type']+':'+_0x2475c0['subType'];this['_setSuggestionData']({'id':_0x425d6e,'type':_0x4edc21,'createdAt':new Date(),'authorId':_0xfa0b99,'data':_0x2475c0['data'],'attributes':_0x2475c0['attributes']});const _0x1aa79b=this['_model']['createPositionAt'](_0xc80f2a['end']['parent'],'after'),_0xeb84d6=this['_model']['createRange'](_0x1aa79b,_0xe7d5c0['end']);this['_addSuggestionMarker'](_0x4edc21,_0x425d6e,_0xfa0b99,_0xeb84d6);}else{if(_0xe7d5c0['containsPosition'](_0xc80f2a['start'])){const _0x2d20a4=this['_model']['createPositionAt'](_0xc80f2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2475c0,this['_model']['createRange'](_0xe7d5c0['start'],_0x2d20a4));}else{const _0x32ed0a=this['_model']['createPositionAt'](_0xc80f2a['end']['parent'],'after');this['_setSuggestionRange'](_0x2475c0,this['_model']['createRange'](_0x32ed0a,_0xe7d5c0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x12b3fb){for(const {suggestion:_0x3f5953,meta:_0xc6d14a}of this['_findSuggestions'](_0x12b3fb,'insertion')){if(!_0xc6d14a['isOwn'])continue;const _0x9283d3=_0x3f5953['getRanges']();for(const _0x5996c3 of _0x9283d3)if(!_0x12b3fb['getDifference'](_0x5996c3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b4d29){const _0x3962fe=this['editor']['plugins']['get']('Users')['getUser'](_0x4b4d29);if(!_0x3962fe)throw new _0x43e970('track-changes-user-not-found',this);return _0x3962fe;}['_getExternalAuthor'](_0x102f2e){const _0x13f187=this['editor']['plugins']['get']('Users'),_0x1ba269=_0x269fbe('external:'+_0x102f2e),_0x6ffb=_0x13f187['getUser'](_0x1ba269);return _0x6ffb||_0x13f187['addUser']({'id':_0x1ba269,'name':_0x102f2e});}['_createSuggestion'](_0x40f33c,_0x3881c5,_0x5e4250,_0x21a867,_0x112da6){const _0x52f172=this['_getAuthorFromId'](_0x21a867),_0x2f55fb=this['_suggestionFactory']['buildSuggestion'](_0x40f33c,_0x3881c5,_0x5e4250,_0x52f172,_0x112da6,_0x305ff3=>{this['_updateSuggestionData'](_0x5e4250,{'attributes':_0x305ff3});const _0x4648d9=this['getSuggestion'](_0x5e4250);this['_joinWithAdjacentSuggestions'](new Set([_0x4648d9])),this['_refreshSuggestionsChain'](new Set([_0x4648d9]));});return this['listenTo'](_0x2f55fb,'accept',()=>{this['_updateSuggestionData'](_0x5e4250,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2f55fb,'discard',()=>{this['_updateSuggestionData'](_0x5e4250,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5e4250,_0x2f55fb),this['_suggestionState']['set'](_0x2f55fb,'notReady'),_0x2f55fb;}['_splitMarkerName'](_0x4bb5db){const _0x1a7d9f=_0x4bb5db['split'](':');return{'group':_0x1a7d9f[0x0],'type':_0x1a7d9f[0x1],'subType':_0x1a7d9f['length']>=0x5?_0x1a7d9f[0x2]:null,'id':_0x1a7d9f['length']<0x5?_0x1a7d9f[0x2]:_0x1a7d9f[0x3],'authorId':_0x1a7d9f['length']<0x5?_0x1a7d9f[0x3]:_0x1a7d9f[0x4],'markerCount':0x6==_0x1a7d9f['length']?_0x1a7d9f[0x5]:null};}['_breakSuggestionMarker'](_0x5be795,_0x4890bb,_0xc3fca1){const _0x1fca26=_0x5be795['getFirstRange'](),_0x316c8f=_0x1fca26['start'],_0x26ece7=_0x1fca26['end'];this['_setSuggestionRange'](_0x5be795,this['_model']['createRange'](_0x316c8f,_0x4890bb));const _0x149afe=_0x177e31(),_0x182c6a=_0x5be795['creator']['id'],_0x35139c=_0x5be795['type']+(_0x5be795['subType']?':'+_0x5be795['subType']:'');this['_setSuggestionData']({'id':_0x149afe,'type':_0x35139c,'createdAt':new Date(),'authorId':_0x182c6a,'originalSuggestionId':_0x5be795['id'],'attributes':_0x5be795['attributes'],'data':_0x5be795['data']});const _0x50f4c2=this['_getAttributeKey'](_0x5be795);('formatBlock'==_0x5be795['type']||_0x50f4c2&&this['_isBlockAttribute'](_0x50f4c2))&&(_0xc3fca1=this['_model']['createPositionBefore'](_0xc3fca1['parent'])),this['_addSuggestionMarker'](_0x35139c,_0x149afe,_0x182c6a,this['_model']['createRange'](_0xc3fca1,_0x26ece7));}['_findSuggestions'](_0x11ef4b,_0xea6403=null){const _0x179632=[],_0x116c6f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11ef4b)||(_0x11ef4b=[_0x11ef4b]);for(const _0x320c2b of this['getSuggestions']()){if(!_0x320c2b['isInContent'])continue;if(_0xea6403&&_0x320c2b['type']!=_0xea6403)continue;let _0x7df4ea=!0x1;for(const _0x4dc1a5 of _0x320c2b['getRanges']()){for(const _0x53413b of _0x11ef4b){const _0x3bc209=_0x53413b['start']['isEqual'](_0x4dc1a5['end'])||_0x53413b['end']['isEqual'](_0x4dc1a5['start']);if(_0x3bc209||_0x53413b['getIntersection'](_0x4dc1a5)){const _0x886aeb=_0x53413b['containsRange'](_0x4dc1a5)&&Ot(this['_model']['schema'],_0x4dc1a5['start'],_0x53413b),_0x2fefed=_0x4dc1a5['containsRange'](_0x53413b)&&Ot(this['_model']['schema'],_0x53413b['start'],_0x4dc1a5);_0x179632['push']({'suggestion':_0x320c2b,'meta':{'isOwn':_0x116c6f==_0x320c2b['author'],'isNextTo':_0x3bc209,'isInsideObject':_0x886aeb,'containsRangeInObject':_0x2fefed}}),_0x7df4ea=!0x0;break;}}if(_0x7df4ea)break;}}return _0x179632;}['_addSuggestionMarker'](_0x1c8388,_0x43ba49,_0x3b0560,_0x31c109,_0x27af3b){this['_model']['change'](_0x36f494=>{let _0x2427bd='suggestion:'+_0x1c8388+':'+_0x43ba49+':'+_0x3b0560;_0x27af3b&&(_0x2427bd=_0x2427bd+':'+_0x27af3b),_0x36f494['addMarker'](_0x2427bd,{'range':_0x31c109,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x63912c){const _0x3ffb9c=_0x63912c['previous'],_0x2e9b0b=_0x63912c['next'];_0x63912c['previous']=null,_0x63912c['next']=null,null!=_0x3ffb9c&&_0x3ffb9c['next']==_0x63912c&&(_0x3ffb9c['next']=_0x2e9b0b),null!=_0x2e9b0b&&_0x2e9b0b['previous']==_0x63912c&&(_0x2e9b0b['previous']=_0x3ffb9c),'ready'==this['_suggestionState']['get'](_0x63912c)&&(this['_suggestionState']['set'](_0x63912c,'removed'),this['fire']('suggestionUnloaded',_0x63912c,_0x3ffb9c,_0x2e9b0b));}['_setSuggestionData'](_0x531527){const _0x418cf2=_0x531527['id'],_0x3bc623=this['addSuggestionData'](_0x531527);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x535c17=this['editor']['plugins']['get']('PendingActions'),_0x654d18=_0x3bc623['hasComments'],_0x5b5f63=_0x3bc623['subType']?_0x3bc623['type']+':'+_0x3bc623['subType']:_0x3bc623['type'],_0x1d795d=this['editor']['locale'],_0x14cea2=_0x535c17['add'](o(_0x1d795d,'PENDING_ACTION_SUGGESTION')),_0x217b54={'id':_0x418cf2,'type':_0x5b5f63,'hasComments':_0x654d18,'data':_0x531527['data']||null,'originalSuggestionId':_0x531527['originalSuggestionId']||null,'attributes':_0x3bc623['attributes']};this['_adapter']['addSuggestion'](_0x217b54)['then'](_0xd25b88=>{_0x3bc623['_saved']=!0x0,_0x535c17['remove'](_0x14cea2),_0xd25b88&&_0xd25b88['createdAt']&&(this['_suggestions']['get'](_0x418cf2)['createdAt']=_0xd25b88['createdAt']);})['catch'](_0x5a15c8=>{throw _0x1851d0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3bc623['discard']();}),_0x3bc623['stopListening'](),this['_suggestions']['delete'](_0x3bc623['id']),this['_suggestionState']['delete'](_0x3bc623),_0x5a15c8;});}return _0x3bc623;}['_isBlockAttribute'](_0x1eb2cd){return this['_blockAttributeKeys']['has'](_0x1eb2cd);}['_updateSuggestionData'](_0x1ec078,_0x25c229){const _0x5b259a=this['editor']['plugins']['get']('PendingActions'),_0x3b6eb2=this['getSuggestion'](_0x1ec078);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3b6eb2['_saved']){const _0x262296=_0x5b259a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1ec078,_0x25c229)['then'](()=>{_0x5b259a['remove'](_0x262296);});}else _0x3b6eb2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1ec078,_0x25c229);});}}['_getSuggestionData'](_0x5693de){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x43e970('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5693de);}['_handleNewSuggestionMarker'](_0x838271){const {id:_0x3858b0,type:_0x50252b,subType:_0x1a4c7b,authorId:_0x4e896b}=this['_splitMarkerName'](_0x838271),_0x1c7dc7=this['_suggestions']['get'](_0x3858b0)||this['_createSuggestion'](_0x50252b,_0x1a4c7b,_0x3858b0,_0x4e896b,{});switch(this['_checkSuggestionCorrectness'](_0x1c7dc7,_0x50252b,_0x1a4c7b,_0x4e896b),this['_suggestionState']['get'](_0x1c7dc7)){case'notReady':this['_getSuggestionData'](_0x3858b0)['then'](_0x3ee9e1=>{let _0x3bdbce=Promise['resolve']();_0x3ee9e1['hasComments']&&(_0x3bdbce=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3858b0})),_0x3bdbce['then'](()=>{this['addSuggestionData'](_0x3ee9e1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1c7dc7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3858b0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1c7dc7,'ready'),this['fire']('suggestionLoaded',_0x1c7dc7);break;case'ready':this['fire']('suggestionChanged',_0x1c7dc7);}return _0x1c7dc7['addMarkerName'](_0x838271),_0x1c7dc7;}['_refreshSuggestionsChain'](_0x3c8428){const _0x1f0703=Array['from'](_0x3c8428),_0x16c0f5=_0x1f0703['filter'](_0xedda3f=>'attribute'==_0xedda3f['type']);this['_refreshAttributeSuggestionsChain'](_0x16c0f5);const _0x2c6bae=_0x1f0703['filter'](_0x3c6760=>!_0x3c6760['isMultiRange']&&'attribute'!=_0x3c6760['type']),_0x2bcad1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46e5b6=>!_0x46e5b6['isMultiRange']&&'attribute'!=_0x46e5b6['type']),_0x37fb23=_0x2bcad1['filter'](_0x480949=>!_0x3c8428['has'](_0x480949)),_0x249333=new Map(_0x2bcad1['map'](_0x44d4be=>[_0x44d4be,this['_suggestionFactory']['getSuggestionCallback'](_0x44d4be['type'],_0x44d4be['subType'],'chain')])),_0x2a483c=new Map(_0x2bcad1['map'](_0xad0b90=>[_0xad0b90,_0xad0b90['getFirstRange']()])),_0x26222c=new Set(),_0x14ad38=new Set();for(let _0x5906e7=0x0;_0x5906e7<_0x2c6bae['length'];_0x5906e7++)_0x399beb(_0x2c6bae[_0x5906e7],_0x2c6bae,_0x5906e7+0x1);for(let _0x202fcd=0x0;_0x202fcd<_0x2c6bae['length'];_0x202fcd++)_0x399beb(_0x2c6bae[_0x202fcd],_0x37fb23,0x0);const _0xd55213=new Set();for(let _0x43beb2=0x0;_0x43beb2<_0x2c6bae['length'];_0x43beb2++){const _0x58bced=_0x2c6bae[_0x43beb2];!_0x14ad38['has'](_0x58bced)&&_0x58bced['previous']&&(_0xd55213['add'](_0x58bced['previous']),_0x58bced['previous']['next']===_0x58bced&&(_0x58bced['previous']['next']=null),_0x58bced['previous']=null),!_0x26222c['has'](_0x58bced)&&_0x58bced['next']&&(_0xd55213['add'](_0x58bced['next']),_0x58bced['next']['previous']===_0x58bced&&(_0x58bced['next']['previous']=null),_0x58bced['next']=null);}function _0x399beb(_0x2b7f02,_0x4bbb36,_0x5f36c0){for(let _0x4f9b54=_0x5f36c0;_0x4f9b54<_0x4bbb36['length'];_0x4f9b54++){const _0x41cde3=_0x2ac0eb(_0x2b7f02,_0x4bbb36[_0x4f9b54]);_0x41cde3&&(_0x41cde3[0x0]['next']=_0x41cde3[0x1],_0x41cde3[0x1]['previous']=_0x41cde3[0x0],_0x26222c['add'](_0x41cde3[0x0]),_0x14ad38['add'](_0x41cde3[0x1]));}}function _0x2ac0eb(_0x29a7aa,_0x2b9b10){if(_0x29a7aa['author']['id']!==_0x2b9b10['author']['id'])return null;const _0x269d25=_0x249333['get'](_0x29a7aa)(_0x29a7aa,_0x2b9b10,_0x2a483c['get'](_0x29a7aa),_0x2a483c['get'](_0x2b9b10));if(!_0x269d25)return null;return _0x249333['get'](_0x2b9b10)(_0x29a7aa,_0x2b9b10,_0x2a483c['get'](_0x29a7aa),_0x2a483c['get'](_0x2b9b10))?_0x269d25[0x1]['commentThread']&&_0x269d25[0x1]['commentThread']['length']?null:_0x269d25:null;}_0xd55213['size']&&this['_refreshSuggestionsChain'](_0xd55213);}['_refreshAttributeSuggestionsChain'](_0xd60d59){if(0x0==_0xd60d59['length'])return;const _0xf769d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57bee9=>'attribute'==_0x57bee9['type']&&_0x57bee9['_isDataLoaded']),_0x1a10f6=[],_0x31163d=new Map();for(const _0x362ae3 of _0xf769d2){const _0x3c34b0=_0x269fbe(_0x362ae3['attributes']);_0x31163d['has'](_0x3c34b0)||(_0x31163d['set'](_0x3c34b0,_0x1a10f6['length']),_0x1a10f6['push']([]));const _0x365ca6=_0x31163d['get'](_0x3c34b0);_0x1a10f6[_0x365ca6]['push'](_0x362ae3);}!(function(){_0x1a10f6['sort']((_0x5b3a03,_0x3f4230)=>{const _0x1ae870=_0x5b3a03[0x0]['createdAt'],_0x5078dc=_0x3f4230[0x0]['createdAt'];return _0x1ae870==_0x5078dc?_0x5b3a03[0x0]['attributes']['groupId']<_0x3f4230[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ae870<_0x5078dc?-0x1:0x1;});for(const _0x396a60 of _0x1a10f6)_0x396a60['sort']((_0x3b37b1,_0x2d7b04)=>_0x3b37b1['id']<_0x2d7b04['id']?-0x1:0x1);}());for(let _0x18c75f=0x0;_0x18c75f<_0x1a10f6['length'];_0x18c75f++){if(0x0==_0x1a10f6[_0x18c75f]['length'])continue;const _0x3e9da8=[];for(let _0x72ded0=_0x18c75f+0x1;_0x72ded0<_0x1a10f6['length'];_0x72ded0++)0x0!=_0x1a10f6[_0x72ded0]['length']&&_0x490779(_0x1a10f6[_0x18c75f],_0x1a10f6[_0x72ded0])&&_0x3e9da8['push'](_0x72ded0);for(const _0x321521 of _0x3e9da8)_0x1a10f6[_0x18c75f]=_0x1a10f6[_0x18c75f]['concat'](_0x1a10f6[_0x321521]),_0x1a10f6[_0x321521]=[];}for(const _0x1fcbe2 of _0x1a10f6)for(let _0x337739=0x0;_0x337739<_0x1fcbe2['length'];_0x337739++){const _0x3316d8=_0x1fcbe2[_0x337739+0x1]||null;_0x1fcbe2[_0x337739]['next']!==_0x3316d8&&(_0x1fcbe2[_0x337739]['next']=_0x3316d8);}for(const _0x1d3704 of _0x1a10f6)for(let _0x2b39e2=0x0;_0x2b39e2<_0x1d3704['length'];_0x2b39e2++){const _0x182ace=_0x1d3704[_0x2b39e2-0x1]||null;_0x1d3704[_0x2b39e2]['previous']!==_0x182ace&&(_0x1d3704[_0x2b39e2]['previous']=_0x182ace);}function _0x490779(_0x901635,_0x1ccb09){if(_0x901635[0x0]['attributes']['groupId']!==_0x1ccb09[0x0]['attributes']['groupId']&&_0x901635[0x0]['author']!==_0x1ccb09[0x0]['author'])return!0x1;if(!function(_0x2e120e,_0x177edb){if(!_0x2e120e['hasComments']&&!_0x177edb['hasComments'])return!0x0;if(_0x2e120e['hasComments']&&_0x177edb['hasComments'])return!0x1;if(_0x2e120e['hasComments']&&_0x177edb['createdAt']<_0x2e120e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x177edb['hasComments']&&_0x2e120e['createdAt']<_0x177edb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x901635[0x0],_0x1ccb09[0x0]))return!0x1;const _0x1aa876=Tt(_0x901635[0x0]['attributes'],'groupId'),_0x195d2d=Tt(_0x1ccb09[0x0]['attributes'],'groupId');if(!_0xcc9de1(_0x1aa876,_0x195d2d))return!0x1;return!!_0x901635['every'](_0x32bd04=>_0x1ccb09['some'](_0x374c8a=>_0x32bd04['getFirstRange']()['isEqual'](_0x374c8a['getFirstRange']())))&&_0x1ccb09['every'](_0xeca9db=>_0x901635['some'](_0x3de3ea=>_0xeca9db['getFirstRange']()['isEqual'](_0x3de3ea['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6a05cc){const _0x526d21=Array['from'](_0x6a05cc),_0x37b141=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3484c3=_0x37b141['filter'](_0x43a042=>!_0x6a05cc['has'](_0x43a042)),_0x1e8a7e=new Map(_0x526d21['map'](_0x231d49=>[_0x231d49,this['_suggestionFactory']['getSuggestionCallback'](_0x231d49['type'],_0x231d49['subType'],'join')])),_0x481fba=new Map(_0x37b141['map'](_0x4b14e7=>[_0x4b14e7,_0x4b14e7['getRanges']()]));for(let _0x13cbc5=0x0;_0x13cbc5<_0x526d21['length'];_0x13cbc5++){if(_0xb3b7b5(this,_0x526d21[_0x13cbc5],_0x526d21,_0x13cbc5+0x1))return!0x0;}for(let _0xcdf66c=0x0;_0xcdf66c<_0x526d21['length'];_0xcdf66c++){if(_0xb3b7b5(this,_0x526d21[_0xcdf66c],_0x3484c3,0x0))return!0x0;}return!0x1;function _0xb3b7b5(_0x21d0d9,_0xafad0,_0x4513ad,_0x29baf2){for(let _0x5d2613=_0x29baf2;_0x5d2613<_0x4513ad['length'];_0x5d2613++){const _0x27a7a6=_0x4513ad[_0x5d2613];if(_0x27a7a6['type']!==_0xafad0['type']||_0x27a7a6['author']['id']!==_0xafad0['author']['id']||_0x27a7a6['subType']!==_0xafad0['subType'])continue;if(!Jt(_0xafad0,_0x27a7a6))continue;if('attribute'==_0xafad0['type']&&_0xafad0['data']['oldValue']!=_0x27a7a6['data']['oldValue'])continue;if('attribute'==_0xafad0['type']&&_0x21d0d9['_isBlockAttribute'](_0xafad0['data']['key']))continue;if('formatBlock'==_0xafad0['type']){const _0x51a52d=_0x21d0d9['editor']['model'],_0x5a078c=_0xafad0['getContainedElement']();if(_0x5a078c&&(_0x51a52d['schema']['isObject'](_0x5a078c)||_0x51a52d['schema']['isLimit'](_0x5a078c)))continue;}const _0x1b236b=_0x1e8a7e['get'](_0xafad0),_0x1fd47b=_0x481fba['get'](_0xafad0),_0x3da7be=_0x481fba['get'](_0x27a7a6),_0x367d20=_0xafad0['commentThread']&&_0xafad0['commentThread']['length'],_0x5bb464=_0x27a7a6['commentThread']&&_0x27a7a6['commentThread']['length'];if(!_0x367d20&&_0x1b236b(_0x3da7be,_0x1fd47b))return _0x21d0d9['_joinSuggestions'](_0x27a7a6,_0xafad0),_0x481fba['delete'](_0xafad0),!0x0;if(!_0x5bb464&&_0x1b236b(_0x1fd47b,_0x3da7be))return _0x21d0d9['_joinSuggestions'](_0xafad0,_0x27a7a6),_0x481fba['delete'](_0x27a7a6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13faa4,_0x35820a){if(_0x13faa4['isMultiRange']){for(const _0x1aa157 of _0x35820a['getRanges']())_0x13faa4['addRange'](_0x1aa157);}else{const _0x2415f7=_0x35820a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13faa4,this['_model']['createRange'](_0x13faa4['getFirstRange']()['start'],_0x2415f7));}_0x35820a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3af904,_0x251f7d,_0x32ff98){const _0x192fe4=_0x3af904['startsWith']('format')||_0x3af904['startsWith']('attribute')?'FORMATTING':_0x3af904['toUpperCase']();return o(this['editor']['locale'],_0x251f7d+'_'+_0x192fe4+'_SUGGESTION_ANNOUNCEMENT',_0x32ff98);}['_initAriaMarkerChangeAnnouncements'](){const _0x1799d2=this['editor'];if(!_0x1799d2['ui'])return;const {ariaLiveAnnouncer:_0x616581}=_0x1799d2['ui'];_0x10fc5d(this['_model'],({left:_0xb7fa6a,entered:_0x113fc2})=>{for(const _0x35cd2c of _0xb7fa6a){const {group:_0xefa4b1,type:_0x39fcdb}=this['_splitMarkerName'](_0x35cd2c['name']);if('suggestion'===_0xefa4b1){_0x616581['announce'](this['_getMarkerAnnouncementText'](_0x39fcdb,'LEAVE'));break;}}for(const _0x1f7d81 of _0x113fc2){const {group:_0x537eff,type:_0x651399}=this['_splitMarkerName'](_0x1f7d81['name']);if('suggestion'===_0x537eff){_0x616581['announce'](this['_getMarkerAnnouncementText'](_0x651399,'ENTER',_0x424102(_0x5514eb)));break;}}});}['_processAttributeChanges'](_0x13c176){if(this['_recordAttributeSuggestions'])return!0x1;const _0x11d9ca=this['editor'],_0x10883f=_0x11d9ca['model']['document']['differ']['getChanges']();if(0x0==_0x10883f['length'])return!0x1;const _0x3af193=[],_0x5f534c=_0x10883f['filter'](_0x54bf04=>'attribute'==_0x54bf04['type']),_0x32d9aa=_0x10883f['filter'](_0xa52ba8=>'insert'==_0xa52ba8['type']&&'$text'!=_0xa52ba8['name']),_0x151aa6=_0x10883f['filter'](_0x3b5075=>'remove'==_0x3b5075['type']&&'$text'!=_0x3b5075['name']);for(const _0x3621c4 of _0x5f534c)_0x3af193['push']({'key':_0x3621c4['attributeKey'],'newValue':_0x3621c4['attributeNewValue'],'oldValue':_0x3621c4['attributeOldValue'],'range':Pt(_0x3621c4['range'],_0x11d9ca['model'])});for(const _0x91133c of _0x32d9aa){const _0x3c244a=_0x151aa6['find'](_0x4e9bbd=>_0x4e9bbd['position']['isEqual'](_0x91133c['position']));_0x3c244a&&_0x3af193['push']({'key':m,'newValue':_0x91133c['name'],'oldValue':_0x3c244a['name'],'range':_0x11d9ca['model']['createRangeOn'](_0x91133c['position']['nodeAfter'])});}return 0x0!=_0x3af193['length']&&this['_reduceExistingSuggestions'](_0x13c176,_0x3af193);}['_processAttributeSuggestions'](_0x1f9816){let _0xd2545a=!0x1;const _0x4e67ad=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x19932e=>_0x19932e['data']['newRange']&&_0x19932e['name']['startsWith']('suggestion:attribute:'));for(const _0x3ae775 of _0x4e67ad){const {subType:_0x4ce7d9,id:_0x401a39}=this['_splitMarkerName'](_0x3ae775['name']),_0xd9a0d6=_0x4ce7d9['split']('|')[0x0];for(const _0x5d8c34 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d8c34['id']!=_0x401a39&&'attribute'==_0x5d8c34['type']&&_0x5d8c34['data']&&_0x5d8c34['data']['key']==_0xd9a0d6&&_0x5d8c34['getFirstRange']()['isIntersecting'](_0x3ae775['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d8c34,_0x3ae775['data']['newRange'],_0x1f9816),_0xd2545a=!0x0);}return _0xd2545a;}['_recordAttributeChanges'](_0x2476a5){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2476a5();}['_isRegisteredAttribute'](_0x52d335){const _0x5aecf9=this['_isBlockAttribute'](_0x52d335),_0x9596bc=this['_inlineAttributeKeys']['has'](_0x52d335);return _0x5aecf9||_0x9596bc;}['_reduceExistingSuggestions'](_0xda2790,_0x561427){if(0x0==_0x561427['length'])return!0x1;let _0x4e5531=!0x1;for(const _0x4bfc28 of _0x561427){const _0x509bc9=this['_findSuggestions'](_0x4bfc28['range'],'attribute')['filter'](_0x5cc6ef=>!_0x5cc6ef['meta']['isNextTo'])['map'](_0x29aac0=>_0x29aac0['suggestion']),_0x2851d9=_0x269fbe({'newValue':_0x4bfc28['newValue']});_0x509bc9['filter'](_0x1c7066=>{const [_0xdb0643,_0x12d048]=_0x1c7066['subType']['split']('|');return _0xdb0643==_0x4bfc28['key']&&_0x12d048!=_0x2851d9;})['forEach'](_0x55264a=>{this['_reduceSuggestionAttributeRange'](_0x55264a,_0x4bfc28['range'],_0xda2790),_0x4e5531=!0x0;});}return _0x4e5531;}['_reduceSuggestionAttributeRange'](_0x49d14b,_0x53c936,_0x592fc1){const _0x40044e=_0x49d14b['getFirstRange']()['getDifference'](_0x53c936);0x0!==_0x40044e['length']?0x1!==_0x40044e['length']?this['_breakSuggestionMarker'](_0x49d14b,_0x53c936['start'],_0x53c936['end']):this['_setSuggestionRange'](_0x49d14b,_0x40044e[0x0]):_0x592fc1['removeMarker'](_0x49d14b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x31b4e7){this['_editor']=_0x31b4e7,this['_model']=_0x31b4e7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3cb12d,_0x2c2c49,_0x848b24,_0x5b1582,_0x3f7618,_0x272779){return new u(this['_model'],{'type':_0x3cb12d,'subType':_0x2c2c49,'id':_0x848b24,'author':_0x5b1582,'creator':_0x5b1582,'attributes':_0x3f7618,'onAttributesChange':_0x272779,'onAccept':(..._0x84e802)=>this['getSuggestionCallback'](_0x3cb12d,_0x2c2c49,'accept')(..._0x84e802),'onDiscard':(..._0x365d50)=>this['getSuggestionCallback'](_0x3cb12d,_0x2c2c49,'discard')(..._0x365d50)});}['registerCustomCallback'](_0x124f98,_0xd64beb,_0x57f993,_0x44d3e1){const _0x137e22=_0x124f98+':'+_0xd64beb+':'+_0x57f993;this['_customCallbacks']['set'](_0x137e22,_0x44d3e1);}['getSuggestionCallback'](_0x207ef1,_0xb22c74,_0x4dba4f){const _0x2bbfb4=_0x207ef1+':'+_0xb22c74+':'+_0x4dba4f;return this['_customCallbacks']['get'](_0x2bbfb4)||this['_defaultCallbacks']['get'](_0x207ef1+':'+_0x4dba4f);}['_registerDefaultCallbacks'](){const _0x16f80d=()=>!0x1,_0x337b56=_0x552ce7=>{_0x552ce7['sort']((_0x3cc9eb,_0x477465)=>_0x3cc9eb['start']['isBefore'](_0x477465['start'])?0x1:-0x1),this['_model']['change'](_0xa8c351=>{for(const _0x2e0acf of _0x552ce7){let _0x7b175d;_0x7b175d=_0x2e0acf['end']['isAtEnd']&&_0x2e0acf['end']['parent']==_0x2e0acf['start']['nodeAfter']?_0xa8c351['createSelection'](_0x2e0acf['start']['nodeAfter'],'on'):_0xa8c351['createSelection'](_0x2e0acf),this['_model']['deleteContent'](_0x7b175d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x58d556=(_0x1fca9d,_0x561b48)=>{_0x561b48&&this['_model']['change'](_0x3013ba=>{const {commandName:_0x1f5947,commandParams:_0x24df5b=[]}=_0x561b48,_0x4bfc4e=_0x1fca9d['map'](_0x4cca0f=>(Vt(_0x4cca0f)&&(_0x4cca0f=this['_model']['createRange'](_0x4cca0f['end'])),_0x4cca0f))['filter'](_0xb131d4=>'$graveyard'!==_0xb131d4['root']['rootName']);if(_0x4bfc4e['length']<0x1)return;const _0x172337=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bef87=>_0xb0a740['fromRange'](_0x5bef87));_0x3013ba['setSelection'](_0x4bfc4e);for(const _0xb3ef15 of this['_editor']['commands']['commands']())_0xb3ef15['refresh']();_0x24df5b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1f5947,..._0x24df5b);const _0x4122dd=_0x172337['filter'](_0x235fec=>'$graveyard'!=_0x235fec['root']['rootName']);_0x4122dd['length']>0x0&&_0x3013ba['setSelection'](_0x4122dd);for(const _0x4cd5dd of _0x172337)_0x4cd5dd['detach']();});},_0x310be4=(_0x265f77,_0x341fc7)=>0x1==_0x265f77['length']&&0x1==_0x341fc7['length']&&_0x265f77[0x0]['end']['isEqual'](_0x341fc7[0x0]['start']),_0x4f2831=(_0x5335c7,_0x4e0f15,_0x1c0f54,_0x3f6ff9)=>Ht(_0x5335c7,_0x4e0f15,_0x1c0f54,_0x3f6ff9,this['_model'])?[_0x5335c7,_0x4e0f15]:Ht(_0x4e0f15,_0x5335c7,_0x3f6ff9,_0x1c0f54,this['_model'])?[_0x4e0f15,_0x5335c7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x16f80d),this['_defaultCallbacks']['set']('insertion:discard',_0x337b56),this['_defaultCallbacks']['set']('insertion:join',_0x310be4),this['_defaultCallbacks']['set']('insertion:chain',_0x4f2831),this['_defaultCallbacks']['set']('deletion:accept',_0x337b56),this['_defaultCallbacks']['set']('deletion:discard',_0x16f80d),this['_defaultCallbacks']['set']('deletion:join',_0x310be4),this['_defaultCallbacks']['set']('deletion:chain',_0x4f2831),this['_defaultCallbacks']['set']('formatInline:accept',_0x58d556),this['_defaultCallbacks']['set']('formatInline:discard',_0x16f80d),this['_defaultCallbacks']['set']('formatInline:join',_0x310be4),this['_defaultCallbacks']['set']('formatInline:chain',_0x16f80d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x58d556),this['_defaultCallbacks']['set']('formatBlock:discard',_0x16f80d),this['_defaultCallbacks']['set']('formatBlock:join',_0x310be4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x16f80d),this['_defaultCallbacks']['set']('attribute:accept',_0x16f80d),this['_defaultCallbacks']['set']('attribute:discard',(_0x4c0589,_0x2165b3)=>{if(!_0x2165b3)return;const _0x4d1dd5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x614e3c=>{if(_0x2165b3['key']==m)for(const _0x1322fe of _0x4c0589){const _0x41f92d=_0x1322fe['start']['nodeAfter'],_0x28e922=_0x2165b3['oldValue'];_0x614e3c['rename'](_0x41f92d,_0x28e922);}else{if(_0x4d1dd5['_isBlockAttribute'](_0x2165b3['key'])){for(const _0x41862d of _0x4c0589)void 0x0!==_0x2165b3['oldValue']?_0x614e3c['setAttribute'](_0x2165b3['key'],_0x2165b3['oldValue'],_0x41862d['start']['nodeAfter']):_0x614e3c['removeAttribute'](_0x2165b3['key'],_0x41862d['start']['nodeAfter']);}else{for(const _0x3d676c of _0x4c0589)_0x2165b3['oldValue']?_0x614e3c['setAttribute'](_0x2165b3['key'],_0x2165b3['oldValue'],_0x3d676c):_0x614e3c['removeAttribute'](_0x2165b3['key'],_0x3d676c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x310be4);}}function Ot(_0x2e353e,_0x1df064,_0x1b23b5){for(const _0x48d132 of _0x1df064['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x48d132['root']==_0x48d132)return!0x1;if(!_0x1b23b5['containsItem'](_0x48d132))return!0x1;if(_0x2e353e['isObject'](_0x48d132)||_0x2e353e['isLimit'](_0x48d132))return!0x0;}return!0x1;}function Vt(_0x35a446){return _0x35a446['end']['parent']==_0x35a446['start']['nodeAfter']&&_0x35a446['end']['isAtStart'];}function Ut(_0x138ff7,_0x41f21d,_0x3fbe35,_0x4a95c7){const _0x24673d=_0x314c32=>!_0x314c32['item']['is']('$textProxy')&&!_0x4a95c7['isObject'](_0x314c32['item']),_0x482ec4=_0x138ff7['start']['getLastMatchingPosition'](_0x24673d),_0x2b0e63=_0x138ff7['end']['getLastMatchingPosition'](_0x24673d,{'direction':'backward'});return(!_0x138ff7['start']['isEqual'](_0x482ec4)||!_0x138ff7['end']['isEqual'](_0x2b0e63))&&(_0x482ec4['isBefore'](_0x2b0e63)?_0x3fbe35['updateMarker'](_0x41f21d,{'range':_0x3fbe35['createRange'](_0x482ec4,_0x2b0e63)}):_0x3fbe35['removeMarker'](_0x41f21d),!0x0);}function Gt(_0x2714cb){return _0x269fbe(_0x2714cb);}function Ft(_0x496268){const _0x4dad90=_0x496268['start']['nodeAfter'];return _0x4dad90&&_0x4dad90['is']('element');}function Pt(_0x32b8a4,_0x2cbf1f){return null==_0x32b8a4['end']['nodeBefore']&&_0x32b8a4['end']['parent']==_0x32b8a4['start']['nodeAfter']?Lt(_0x32b8a4['start']['nodeAfter'],_0x2cbf1f):_0x32b8a4;}function Lt(_0x2c6740,_0x242661){const _0x47eb01=_0x242661['schema']['isObject'](_0x2c6740)||_0x242661['schema']['isSelectable'](_0x2c6740);return _0x242661['createRange'](_0x242661['createPositionAt'](_0x2c6740,'before'),_0x47eb01?_0x242661['createPositionAfter'](_0x2c6740):_0x242661['createPositionAt'](_0x2c6740,'end'));}function Ht(_0x17c93f,_0x5d46e3,_0x227e25,_0x40b40e,_0x190d25){if(_0x17c93f['next'])return!0x1;if(!Jt(_0x17c93f,_0x5d46e3))return!0x1;if(_0x227e25['end']['isEqual'](_0x40b40e['start']))return!0x0;if(_0x17c93f['type']!=_0x5d46e3['type'])return!0x1;if(!_0x227e25['end']['isTouching'](_0x40b40e['start']))return!0x1;const _0x40cfa3=_0x190d25['createRange'](_0x227e25['end'],_0x40b40e['start'])['getWalker']();for(const _0x228494 of _0x40cfa3)if(['elementStart','elementEnd']['includes'](_0x228494['type'])&&_0x190d25['schema']['isLimit'](_0x228494['item']))return!0x1;return!0x0;}function Jt(_0x59e8f6,_0x226f71){if(!_0x59e8f6['_isDataLoaded']||!_0x226f71['_isDataLoaded'])return!0x1;const _0x168dee=new Set(Object['keys'](_0x59e8f6['attributes'])),_0x2189b7=new Set(Object['keys'](_0x226f71['attributes']));if(_0x168dee['delete']('groupId'),_0x2189b7['delete']('groupId'),0x0==_0x168dee['size']&&0x0==_0x2189b7['size'])return!0x0;if(_0x168dee['size']!=_0x2189b7['size'])return!0x1;const _0x5c729b={..._0x59e8f6['attributes']},_0x808cf9={..._0x226f71['attributes']};return delete _0x5c729b['groupId'],delete _0x808cf9['groupId'],JSON['stringify'](_0x5c729b)==JSON['stringify'](_0x808cf9);}function qt(_0x51d4f2,_0xfa14f2){const _0x24fbb5=zt(_0x51d4f2['attributes']),_0x55ae13=zt(_0xfa14f2);if(!_0x51d4f2['_isDataLoaded'])return!0x1;for(const _0x11e5f5 of Object['keys'](_0x55ae13))if(!_0xcc9de1(_0x24fbb5[_0x11e5f5],_0x55ae13[_0x11e5f5]))return!0x1;return!0x0;}function zt(_0x21a741){const _0x1847bf=Object['assign']({},_0x21a741);return delete _0x1847bf['skipNestingCheck'],delete _0x1847bf['tablePasteChainId'],_0x1847bf;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x259fbc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x9aad31,_0xc3b856,_0x458a14,_0x4129db){super(),this['model']=_0xc3b856,this['view']=_0x458a14,this['commentThreadController']=_0x4129db,this['_editor']=_0x9aad31,this['_acceptCommand']=_0x9aad31['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x9aad31['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4a4830,_0x2e0bf2)=>_0x4a4830||_0x2e0bf2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c57b1=>_0x2c57b1&&this['_editor']['model']['canEditAt'](_0xc3b856['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d79d8=>_0x5d79d8&&this['_editor']['model']['canEditAt'](_0xc3b856['getRanges']())),this['_pendingAction']=null,_0x458a14['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x458a14,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x458a14,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x458a14,'change:isDirty',()=>{_0x458a14['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 _0x3bc56d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3bc56d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x132716{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2ef5d8,_0x29f445,_0x4dfeee,_0x10c6c5){super(_0x2ef5d8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2825f0(_0x2ef5d8,o(_0x2ef5d8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x29f445['authoredAt']),this['bind']('authoredAt')['to'](_0x29f445),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',_0x29f445,'authoredAt',this,'descriptionParts',(_0x3141a6,_0x1b1439,_0x401f9b)=>{const _0x3b7685=_0x401f9b['map'](_0x1c682e=>ls(_0x1c682e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3141a6-0x1,_0x29f445['author']['name'],_0x1b1439?_0x10c6c5['formatDateTime'](_0x1b1439):'',new DOMParser()['parseFromString'](_0x3b7685,'text/html')['body']['textContent']]);}),this['focusables']=new _0x37e956(),this['focusTracker']=new _0x59c196(),this['keystrokes']=new _0x12a8cd(),this['focusCycler']=new _0x44c7c3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13b3f9=>_0x13b3f9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x29f445,this['_localUser']=_0x4dfeee,this['_config']=_0x10c6c5,_0x10c6c5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5f1100(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xb33f4b}=this['_config'];this['commentsListView']=new _0xb33f4b(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',_0x57889c=>_0x57889c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x224aac,_0x58e63f)=>_0x224aac||!!_0x58e63f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fec52}=this['_config'],_0x287983=new _0x2fec52(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3b6e4f=_0x287983['commentInputView'];return _0x287983['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3b6e4f,'value',(_0x4d8156,_0x40df8a,_0x15c4ea)=>!!_0x15c4ea||_0x4d8156&&!_0x40df8a),_0x3b6e4f['on']('submit',(_0x131c50,_0x11f273)=>{this['fire']('addComment',_0x11f273),_0x3b6e4f['editor']['setData']('');}),_0x3b6e4f['on']('cancel',()=>this['focus']()),_0x3b6e4f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x287983;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x97b01e,_0x37ffd7,_0x400f37,_0x1fa15c){super(_0x97b01e,_0x37ffd7,_0x400f37,_0x1fa15c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4eb3ae=>_0x4eb3ae&&_0x4eb3ae[0x0]?_0x4eb3ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b92c4,_0x2de98e)=>{let _0x2b6dad='';for(const _0xd3b9a9 of _0x2b92c4)_0x2b6dad+='<p>'+ls(_0xd3b9a9['content'],_0xd3b9a9['color'])+'</p>';return _0x2de98e?_0x2b6dad:_0x3f2fef(_0x2b6dad,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1fa15c['SuggestionView'](_0x97b01e,_0x37ffd7,{'formatDateTime':_0x1fa15c['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 _0x2e5f2d=this['bindTemplate'],_0x1babfc=[this['suggestionView']];return this['commentsListView']&&_0x1babfc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1babfc['push'](this['commentThreadInputView']),_0x1babfc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e5f2d['if']('isActive','ck-suggestion-wrapper--active'),_0x2e5f2d['to']('type',_0x508c94=>'ck-suggestion-'+_0x508c94),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':_0x2e5f2d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1babfc};}['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 ce extends _0x132716{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa9fd56,_0x46a0ab,_0x54bf22){super(_0xa9fd56),this['_model']=_0x46a0ab,this['_config']=_0x54bf22,this['set']('description',''),this['bind']('authoredAt')['to'](_0x46a0ab),this['acceptButton']=this['_createButton'](o(_0xa9fd56,'Accept\x20suggestion'),_0x41e326['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa9fd56,'Discard\x20suggestion'),_0x41e326['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x28ba27(_0xa9fd56,_0x46a0ab['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x37e956([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x59c196(),this['keystrokes']=new _0x12a8cd(),this['focusCycler']=new _0x44c7c3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x45784b=>_0x45784b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x54fcf9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x54fcf9['innerHTML']=this['description'],this['on']('change:description',(_0x31f7a4,_0x3a0d52,_0x533cae)=>{_0x54fcf9['innerHTML']=_0x533cae;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5a5f6a=this['bindTemplate'],_0x50fb3=[{'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']}},{'tag':'time','attributes':{'datetime':_0x5a5f6a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a5f6a['to']('authoredAt',_0x398aeb=>this['_config']['formatDateTime'](_0x398aeb))}]}]},{'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']&&_0x50fb3['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':_0x50fb3}]};}['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'](_0x5665b9,_0xda9fde,_0xc7c108,_0x36e0f6,_0x4cd91e){const _0x529603=new _0x2d82d4(this['locale']);return _0x529603['set']({'label':_0x5665b9,'icon':_0xda9fde,'tooltip':!0x0,'tooltipPosition':_0x4cd91e}),_0x529603['extendTemplate']({'attributes':{'class':_0xc7c108}}),_0x529603['on']('execute',()=>{this['fire'](_0x36e0f6,this['_model']['id']);}),_0x529603;}['_setupKeyboardNavigation'](){const _0x1be55e=this['element'];this['keystrokes']['listenTo'](_0x1be55e);for(const _0x52ccec of this['focusables'])this['focusTracker']['add'](_0x52ccec['element']),this['keystrokes']['listenTo'](_0x52ccec['element']);this['keystrokes']['set']('enter',(_0x1df16e,_0x53a7fa)=>{_0x1be55e===_0x1df16e['target']&&(this['focusCycler']['focusFirst'](),_0x53a7fa());}),this['keystrokes']['set']('esc',(_0xc8a3c,_0x6442e3)=>{_0x1be55e!==_0xc8a3c['target']&&(this['focus'](),_0x6442e3());});}}var he='<!--\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-2024,\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 _0x2271db{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1356f8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4ed21f){super(_0x4ed21f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x16b4b4=this['editor']['config'];_0x16b4b4['define']('trackChanges.SuggestionThreadView',re),_0x16b4b4['define']('trackChanges.SuggestionView',ce),_0x16b4b4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x16b4b4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54f7f4,_0x5dc8e9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5f1fb4,_0x4b2de0]of this['_handleControllerBuffer']){const _0x3bcbd8=this['_suggestionToController']['has'](_0x5f1fb4);_0x3bcbd8||_0x4b2de0?_0x3bcbd8&&_0x4b2de0&&this['_destroyController'](_0x5f1fb4):this['_initializeController'](_0x5f1fb4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54f7f4,_0x5dc8e9);}['init'](){const _0x1c4648=this['editor'],_0x8ba7d5=_0x1c4648['plugins']['get']('TrackChangesEditing'),_0x58cd4f=_0x1c4648['plugins']['get']('Annotations'),_0x4f2821=_0x1c4648['plugins']['get']('EditorAnnotations'),_0x5fcb56=_0x1c4648['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4f2821['addSourceCollector'](()=>{const _0x31d3a8=[];for(const [_0x480ce2,_0x29e17d]of Array['from'](this['_suggestionToController'])){const _0x4bb557=_0x480ce2['getAllAdjacentSuggestions'](),_0x4aea2a=[];for(const _0x4ed480 of _0x4bb557){if(!_0x4ed480['isInContent'])continue;if(_0x4ed480['isMultiRange']){_0x4aea2a['push'](..._0x4ed480['getRanges']());continue;}const _0x3a9afc=_0x4ed480['getFirstRange']();if(_0x4aea2a['length']>0x0){const _0x49a13f=_0x4aea2a[0x0]['getJoined'](_0x3a9afc);if(_0x49a13f){_0x4aea2a[0x0]=_0x49a13f;continue;}}_0x4aea2a['push'](_0x3a9afc);}_0x31d3a8['push']([_0x29e17d['view'],_0x4aea2a]);}return _0x31d3a8;}),this['listenTo'](_0x8ba7d5,'suggestionLoaded',(_0x165a45,_0x177fab)=>{this['listenTo'](_0x177fab,'change:previous',(_0x47c0ce,_0x2444f2,_0x40e39c,_0x100efa)=>{_0x177fab['isInContent']&&(null==_0x40e39c?(this['_updateController'](_0x100efa['head']),this['_handleSuggestionControllerDelayed'](_0x177fab,!0x1)):(this['_updateController'](_0x40e39c['head']),null==_0x100efa&&this['_handleSuggestionControllerDelayed'](_0x177fab,!0x0)));}),null!==_0x177fab['previous']?this['_updateController'](_0x177fab['head']):this['_handleSuggestionControllerDelayed'](_0x177fab,!0x1);}),this['listenTo'](_0x8ba7d5,'suggestionUnloaded',(_0xcd0ee1,_0x2a1f03,_0x5b13c0)=>{this['stopListening'](_0x2a1f03,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a1f03),this['_suggestionToController']['has'](_0x2a1f03)&&this['_destroyController'](_0x2a1f03),_0x5b13c0&&this['_updateController'](_0x5b13c0['head']);}),this['listenTo'](_0x8ba7d5,'suggestionChanged',(_0x5cda02,_0x38b9c0)=>{this['_updateController'](_0x38b9c0);}),this['listenTo'](_0x58cd4f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5fcb56,'addComment',(_0x3af5cf,{threadId:_0x3255d5,isFromAdapter:_0x2f0f7e})=>{if(_0x2f0f7e||!_0x8ba7d5['hasSuggestion'](_0x3255d5))return;const _0x2e82ef=_0x8ba7d5['getSuggestion'](_0x3255d5);this['_suggestionToController']['get'](_0x2e82ef)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x44ff6f=this['editor']['plugins']['get']('Annotations'),_0x546993=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9f2683=Array['from'](_0x44ff6f['activeAnnotations'],_0x349581=>_0x349581['innerView'])['filter'](_0x5c5e76=>this['_viewToController']['has'](_0x5c5e76)),_0x26fe4e=[];for(const _0x1aaf8f of _0x9f2683){const _0x7d75df=this['_viewToController']['get'](_0x1aaf8f)['model']['getAllAdjacentSuggestions']();_0x26fe4e['push'](..._0x7d75df['reduce']((_0x4547cd,_0x12c838)=>[..._0x4547cd,..._0x12c838['getMarkerNames']()],[]));}_0x546993['activeMarkers']=_0x26fe4e;}['_addUIComponentsToFactory'](){const _0xe177dd=this['editor'],_0x2e5d9f=_0xe177dd['locale'],_0x3cd3a8=o(_0x2e5d9f,'Track\x20changes'),_0xbd7fa=new Wt([{'type':'switchbutton','model':new _0x348614({'withText':!0x0,'isToggleable':!0x0,'label':_0x3cd3a8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x348614({'withText':!0x0,'label':o(_0x2e5d9f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x348614({'withText':!0x0,'label':o(_0x2e5d9f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x348614({'withText':!0x0,'label':o(_0x2e5d9f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x348614({'withText':!0x0,'label':o(_0x2e5d9f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4b4542 of _0xbd7fa)if(me(_0x4b4542)){const _0x19ed78=_0xe177dd['commands']['get'](_0x4b4542['model']['commandName']);_0x4b4542['model']['bind']('isOn','isEnabled')['to'](_0x19ed78,'value','isEnabled');}_0xe177dd['ui']['componentFactory']['add']('trackChanges',_0x3d47b3=>this['_createToolbarButton'](_0x3d47b3,_0xbd7fa,_0x3cd3a8)),_0xe177dd['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc2ed52=>this['_createMenuBarMenu'](_0xc2ed52,_0xbd7fa,_0x3cd3a8));}['_createToolbarButton'](_0x28763b,_0x4a3375,_0x4c5527){const _0x4a7f47=Qt(_0x28763b,_0x4c3f97),_0x9d22cd=this['editor']['commands']['get']('trackChanges');_0x4a7f47['buttonView']['set']({'tooltip':_0x4c5527,'label':_0x4c5527,'icon':he}),_0x4a7f47['buttonView']['bind']('isOn')['to'](_0x9d22cd,'value'),_0x4a7f47['buttonView']['on']('execute',()=>{_0x9d22cd['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x4a7f47,_0x4a3375,{'role':'menu'});const _0x313fb3=[];for(const _0x21e4d1 of _0x4a3375)me(_0x21e4d1)&&_0x313fb3['push'](this['editor']['commands']['get'](_0x21e4d1['model']['commandName']));const _0x321b2b=_0x4a7f47['buttonView'];return _0x321b2b['actionView']['unbind']('isEnabled'),_0x321b2b['arrowView']['unbind']('isEnabled'),_0x321b2b['actionView']['bind']('isEnabled')['to'](_0x9d22cd,'isEnabled'),_0x321b2b['arrowView']['bind']('isEnabled')['toMany'](_0x313fb3,'isEnabled',(..._0x179207)=>_0x179207['some'](_0x2740cd=>_0x2740cd)),_0x4a7f47['on']('execute',_0x3433ec=>{this['editor']['execute'](_0x3433ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4a7f47;}['_createMenuBarMenu'](_0x5e7096,_0x11642c,_0x383e9c){const _0x59f466=new Yt(_0x5e7096),_0x4feb4d=this['editor']['commands']['get']('trackChanges');_0x59f466['buttonView']['set']({'label':_0x383e9c,'icon':he});const _0x432d45=new Zt(_0x5e7096);for(const _0x33fe68 of _0x11642c){if('separator'==_0x33fe68['type']){_0x432d45['items']['add'](new Xt(_0x5e7096));continue;}const _0x37901a=new te(_0x5e7096,_0x59f466),_0x3f7407=new _0x5f4b83(_0x5e7096),_0x3604a6=_0x33fe68['model'];_0x3f7407['bind'](...Object['keys'](_0x3604a6))['to'](_0x3604a6),_0x3f7407['delegate']('execute')['to'](_0x59f466),_0x3f7407['on']('execute',()=>{this['editor']['execute'](_0x3604a6['commandName']),this['editor']['editing']['view']['focus']();}),_0x37901a['children']['add'](_0x3f7407),_0x432d45['items']['add'](_0x37901a);}return _0x59f466['bind']('isEnabled')['to'](_0x4feb4d,'isEnabled'),_0x59f466['panelView']['children']['add'](_0x432d45),_0x59f466;}['_initializeController'](_0x1eb035){const _0x330596=this['editor'],_0x14637d=_0x330596['config'],_0x3b23df=_0x330596['plugins']['get']('Annotations'),_0x1493e6=_0x330596['plugins']['get']('CommentsRepository'),_0x4901f4=_0x330596['plugins']['get']('EditorAnnotations'),_0x14d5ed=_0x330596['plugins']['get'](_0x1356f8)['me'],_0x43745d=_0x14637d['get']('trackChanges')['SuggestionThreadView'],_0x486c62=_0x14637d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b1670,CommentThreadInputView:_0x299d0b}=_0x330596['plugins']['get']('CommentsUI');let _0xb931c2,_0x340775,_0x532734;this['_annotationViews']['has'](_0x1eb035['id'])?(_0x340775=this['_annotationViews']['get'](_0x1eb035['id']),_0xb931c2=_0x340775['mainView']):(_0xb931c2=new _0x43745d(_0x330596['locale'],_0x1eb035,_0x14d5ed,{'disableComments':this['_disableComments'],'editorConfig':_0x14637d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x14637d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x14637d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x14637d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22b793(_0x14637d['get']('locale')),'CommentView':_0x14637d['get']('comments')['CommentView'],'CommentsListView':_0x2b1670,'CommentThreadInputView':_0x299d0b,'SuggestionView':_0x486c62}),_0xb931c2['suggestionView']['acceptButton']['on']('execute',()=>{_0x330596['editing']['view']['focus']();}),_0xb931c2['suggestionView']['discardButton']['on']('execute',()=>{_0x330596['editing']['view']['focus']();}),_0x340775=_0x3b23df['createAnnotationView'](this['editor']['locale'],_0xb931c2),_0x340775['bind']('isDirty')['to'](_0xb931c2,'isDirty'),_0x340775['bind']('length')['to'](_0xb931c2),_0x340775['bind']('type')['to'](_0xb931c2,'type',_0x5cb93a=>'suggestion-'+_0x5cb93a),_0xb931c2['on']('escape',()=>{_0x532734['fire']('escape');}),this['_annotationViews']['set'](_0x1eb035['id'],_0x340775));const _0xa29ff0=_0x1493e6['createCommentThreadController'](_0x1eb035['commentThread'],_0xb931c2),_0x42ee11=new ae(_0x330596,_0x1eb035,_0xb931c2,_0xa29ff0),_0x128934=_0x1eb035['getAllAdjacentSuggestions']()['filter'](_0xaac223=>_0xaac223['isInContent']);_0xb931c2['descriptionParts']=_0x330596['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x128934),this['_suggestionToController']['set'](_0x1eb035,_0x42ee11),this['_viewToController']['set'](_0xb931c2,_0x42ee11),_0x532734=_0x3b23df['createAnnotation']({'view':_0x340775,'target':()=>{const _0x3e3926=[],_0x694682=_0x1eb035['getAllAdjacentSuggestions']()['filter'](_0x2afed7=>_0x2afed7['isInContent']);for(const _0x302e8b of _0x694682)_0x3e3926['push'](..._0x302e8b['getMarkers']());return _0x1b79e2(_0x330596['editing'],_0x3e3926);},'type':()=>'suggestion-'+_0x42ee11['view']['type']}),_0x1493e6['_bindAnnotationToEditors'](_0xb931c2,_0x532734),_0x3b23df['add'](_0x532734),_0x4901f4['registerAnnotation'](_0x532734);}['_destroyController'](_0x1d77c0){const _0x9d30fb=this['editor']['plugins']['get']('CommentsRepository'),_0x513f94=this['editor']['plugins']['get']('Annotations'),_0x52ab41=this['_suggestionToController']['get'](_0x1d77c0),_0x2fd1af=_0x52ab41['view'],_0x4bb96f=_0x513f94['getByInnerView'](_0x2fd1af);_0x9d30fb['_unbindEditors'](_0x2fd1af),_0x4bb96f&&_0x513f94['remove'](_0x4bb96f),this['_suggestionToController']['delete'](_0x1d77c0),this['_viewToController']['delete'](_0x2fd1af),_0x52ab41['destroy']();}['_updateController'](_0x349be9){if(!_0x349be9['isInContent']||!this['_suggestionToController']['has'](_0x349be9))return;const _0x4dd2f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e518a=this['_suggestionToController']['get'](_0x349be9),_0x90c246=_0x349be9['getAllAdjacentSuggestions']();_0x1e518a['view']['descriptionParts']=_0x4dd2f9['descriptionFactory']['getDescriptions'](_0x90c246);}['destroy'](){for(const _0x6f4f0f of this['_suggestionToController']['keys']())this['_destroyController'](_0x6f4f0f);for(const _0x4e0f18 of this['_annotationViews']['values']())_0x4e0f18['mainView']['destroy']();super['destroy']();}}function me(_0x181744){return'model'in _0x181744;}class k extends _0x2271db{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x422421){this['editor']['plugins']['get'](p)['adapter']=_0x422421;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4c06ad){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4c06ad);}['getSuggestions']({skipNotAttached:_0x8a027f=!0x1,toJSON:_0x42b407=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x8a027f,'toJSON':_0x42b407});}['getSuggestion'](_0x5cbbe4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5cbbe4);}}const T=['Pagination'];class P extends _0x2271db{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1c257a=this['editor'];if(_0x1c257a['config']['define']('trackChangesData.editorCreator',_0x41bf76=>{const _0x4dc282=_0x1c257a['model']['document']['getRootNames']()['reduce']((_0x2bb766,_0x373cf0)=>(_0x2bb766[_0x373cf0]='',_0x2bb766),{});return _0x1c257a['constructor']['create'](_0x4dc282,_0x41bf76);}),'function'!=typeof _0x1c257a['config']['get']('trackChangesData')['editorCreator'])throw new _0x43e970('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x38a1cf){return N(this['editor'],!0x0,_0x38a1cf);}['getDataWithDiscardedSuggestions'](_0x2147f8){return N(this['editor'],!0x1,_0x2147f8);}}class D extends _0x2271db{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x401560){super(_0x401560),this['result']='end';}['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 v(_0x3f8ba4){return void 0x0!==_0x3f8ba4['getRootsAttributes'];}async function N(_0x563873,_0x10494f,_0x57274f){const _0x3708f2=_0x571cb1(_0x563873,T);_0x3708f2['plugins']['push'](p,D),_0x3708f2['rootsAttributes']=v(_0x563873)?_0x563873['getRootsAttributes']():void 0x0;const _0x2294bd=document['createDocumentFragment'](),_0x50a54a=_0x563873['config']['get']('trackChangesData')['editorCreator'],_0x38ff5b=await _0x50a54a(_0x3708f2,()=>function(_0x2b5477){const _0x375775=document['createElement']('div');return _0x2b5477['appendChild'](_0x375775),_0x375775;}(_0x2294bd));!function(_0x4a4142,_0xaca8f4){const _0x3190dc=_0x4a4142['model']['document']['getRootNames']()['reduce']((_0x2f03ed,_0x375e2f)=>(_0x2f03ed[_0x375e2f]=_0x4a4142['data']['get']({'rootName':_0x375e2f}),_0x2f03ed),{}),_0x555f9b=_0x4a4142['plugins']['get']('Users')['users']['map'](_0x97f59e=>({'id':_0x97f59e['id'],'name':_0x97f59e['name']})),_0x66eab1=_0x4a4142['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c0b4a=_0x4a4142['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19e53b=_0xaca8f4['plugins']['get']('Users'),_0x154276=_0xaca8f4['plugins']['get']('TrackChangesEditing'),_0x4f3f31=_0xaca8f4['plugins']['get']('CommentsRepository');for(const _0x5331f0 of _0x4f3f31['getCommentThreads']())_0x5331f0['remove']();for(const _0x3bebf0 of _0x555f9b)_0x19e53b['getUser'](_0x3bebf0['id'])||_0x19e53b['addUser'](_0x3bebf0);_0x19e53b['me']||_0x19e53b['useAnonymousUser']();for(const _0x4b4c3c of _0x4c0b4a)_0x4f3f31['addCommentThread'](_0x4b4c3c);for(const _0x30c13e of _0x66eab1)_0x154276['addSuggestionData'](_0x30c13e);_0xaca8f4['data']['set'](_0x3190dc);}(_0x563873,_0x38ff5b),_0x38ff5b['execute'](_0x10494f?'acceptAllSuggestions':'discardAllSuggestions');const _0x31743b=v(_0x38ff5b)?_0x38ff5b['getFullData'](_0x57274f):_0x38ff5b['data']['get'](_0x57274f);return await _0x38ff5b['destroy'](),_0x31743b;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x518f0a,PendingActions as _0x396d42,icons as _0x5a0fd5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5c8a3b,ObservableMixin as _0x3ba6c7,uid as _0x3946ed,insertToPriorityArray as _0x407d9c,priorities as _0x5c72d6,logWarning as _0x6401c7,getEnvKeystrokeText as _0x38b45d,FocusTracker as _0x268f1c,KeystrokeHandler as _0x5b8b4a,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x85ef21,View as _0x49e7c0,ViewCollection as _0x5ee3af,FocusCycler as _0x4f32f9,ViewModel as _0x2f3854,createDropdown as Qt,SplitButtonView as _0x4b90ec,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x303c1d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5b0384,hashObject as _0x5c5670,surroundingMarkersDetector as _0x3e6a68,FOCUS_ANNOTATION_KEYSTROKE as _0x32d54a,AriaDescriptionView as _0x43c01b,setupThreadKeyboardNavigation as _0x4794ab,trimHtml as _0x4e5b17,UserView as _0x2d83c0,LateFocusButtonView as _0x283895,getDateTimeFormatter as _0x4a4d8b,getAllMarkersDomElementsSorted as _0x32bcb9,sanitizeEditorConfig as _0x132793}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x43c364,LiveRange as _0x1b6799,LivePosition as _0x5b676b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x566013,toWidget as _0x39ccdb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x26648a,set as _0x240e4a,isEqual as _0x4b7432,unset as _0x2fcc25,omit as Tt}from'lodash-es';import{Delete as _0x80695c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x337a10,ShiftEnter as _0x1170b1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x46b23d,_0x5df367){super(_0x46b23d),this['_enabledCommands']=_0x5df367,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 _0x3fb0aa of this['editor']['commands']['commands']())_0x3fb0aa['affectsData']&&!this['_enabledCommands']['has'](_0x3fb0aa)&&_0x3fb0aa['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1a8205 of this['editor']['commands']['commands']())_0x1a8205['affectsData']&&!this['_enabledCommands']['has'](_0x1a8205)&&_0x1a8205['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x450c74,_0x35652f){super(_0x450c74),this['_suggestions']=_0x35652f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x476803){const _0x3b0668=this['_suggestions']['get'](_0x476803);if(!_0x3b0668)throw new _0x5c8a3b('track-changes-accept-suggestion-not-found',this);const _0x43148c=_0x3b0668['getRanges']();this['editor']['model']['canEditAt'](_0x43148c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b0668);}}class R extends ts{['_suggestions'];constructor(_0x842df3,_0xc76be3){super(_0x842df3),this['_suggestions']=_0xc76be3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x540a05){const _0x17e229=this['_suggestions']['get'](_0x540a05);if(!_0x17e229)throw new _0x5c8a3b('track-changes-discard-suggestion-not-found',this);const _0x26d489=_0x17e229['getRanges']();this['editor']['model']['canEditAt'](_0x26d489)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x17e229);}}function ls(_0x171f49,_0x451c07){let _0x312a9b='';return _0x312a9b+=_0x171f49['split']('*')['map']((_0x326f5c,_0x1b07e9)=>_0x1b07e9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x326f5c)+'</span>':nn(_0x326f5c))['join'](''),_0x451c07&&(_0x312a9b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x451c07['value']+'\x22\x20title=\x22'+_0x451c07['title']+'\x22></span>'),_0x312a9b;}function nn(_0x3fa1eb){const _0x132e1a=document['createElement']('span');return _0x132e1a['innerText']=_0x3fa1eb,_0x132e1a['innerHTML'];}function ss(_0x53d94f){return _0x53d94f['sort']((_0xdd3668,_0x20218b)=>'deletion'==_0xdd3668['type']&&'deletion'!=_0x20218b['type']?-0x1:'deletion'!=_0xdd3668['type']&&'deletion'==_0x20218b['type']?0x1:0x0);}function to(_0x10e51f,_0xf8ae8e){let _0x29c08a,_0x463878=0x0;const _0x503024=[],_0x9a1429=_0xf8ae8e['schema'];for(;_0x463878<_0x10e51f['length'];){const _0xdb5373=_0x10e51f[_0x463878],_0x244ae1=_0x10e51f[_0x463878+0x1];_0x29c08a||(_0x29c08a=_0xf8ae8e['createPositionBefore'](_0xdb5373)),on(_0xf8ae8e,_0xdb5373,_0x244ae1)||(_0x503024['push'](_0xf8ae8e['createRange'](_0x29c08a,_0x9a1429['isObject'](_0xdb5373)?_0xf8ae8e['createPositionAfter'](_0xdb5373):_0xf8ae8e['createPositionAt'](_0xdb5373,'end'))),_0x29c08a=null),_0x463878++;}return _0x503024;}function on(_0x462e03,_0x38e4e1,_0x21c2c8){if(!_0x21c2c8)return!0x1;const _0xfcb7ea=_0x462e03['createPositionAfter'](_0x38e4e1),_0x2b800a=_0x462e03['createPositionBefore'](_0x21c2c8);return _0xfcb7ea['isTouching'](_0x2b800a);}function rs(_0x543dda,_0x49ef5d,_0x215490){for(;_0x215490['length'];){const _0x18846e=_0x215490['splice'](0x0,0x64);_0x543dda['change'](()=>{for(const _0x2984e4 of _0x18846e)_0x2984e4['isInContent']&&_0x49ef5d['execute'](_0x2984e4['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0xb20c97,_0x3305f8,_0x1a5a34){super(_0xb20c97),this['_command']=_0x3305f8,this['_suggestions']=_0x1a5a34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5bae30=Array['from'](this['_suggestions']['values']())['some'](_0x49505a=>_0x49505a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5bae30;}['execute'](){const _0x152f18=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a6696 of _0x152f18){const _0x16a604=_0x3a6696['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16a604))return;}rs(this['editor']['model'],this['_command'],_0x152f18);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x38f458,_0x6c7f76,_0x7c4b93){super(_0x38f458),this['_command']=_0x6c7f76,this['_suggestions']=_0x7c4b93,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3de57e=this['editor']['model']['document']['selection'],_0x3e08ec=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40ceb2,_0x33d038){const _0x4a0498=Array['from'](_0x40ceb2['getRanges']()),_0x30ff3f=new Set();for(const _0x540359 of _0x33d038)if(_0x540359['isInContent']){for(const _0x2beed8 of _0x4a0498)for(const _0x3dc4cd of _0x540359['getRanges']())(_0x2beed8['isIntersecting'](_0x3dc4cd)||_0x40ceb2['isCollapsed']&&!_0x540359['isMultiRange']&&_0x540359['next']&&_0x3dc4cd['end']['isTouching'](_0x2beed8['start']))&&_0x30ff3f['add'](_0x540359);}return _0x30ff3f;}(_0x3de57e,_0x3e08ec),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x52551a=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2910fb of _0x52551a){const _0x1dee95=_0x2910fb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1dee95))return;}rs(this['editor']['model'],this['_command'],_0x52551a);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x3ba6c7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2edb11,_0x2f28da){super(),this['id']=_0x2f28da['id'],this['type']=_0x2f28da['type'],this['subType']=_0x2f28da['subType']||null,this['author']=_0x2f28da['author'],this['creator']=_0x2f28da['creator']||_0x2f28da['author'],this['isExternal']=Boolean(_0x2f28da['attributes']&&_0x2f28da['attributes']['@external']),this['data']=null,this['_model']=_0x2edb11,this['_onAccept']=_0x2f28da['onAccept'],this['_onDiscard']=_0x2f28da['onDiscard'],this['_onAttributesChange']=_0x2f28da['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f28da['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 _0x11128c=this;for(;_0x11128c['previous'];)_0x11128c=_0x11128c['previous'];return _0x11128c;}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'](_0x4158f2){this['_markerNames']['add'](_0x4158f2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42aeaa=>this['_model']['markers']['get'](_0x42aeaa))['filter'](_0x2f1b56=>_0x2f1b56);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xbe2ba8=>{for(const _0x4047e7 of this['getMarkers']())_0xbe2ba8['removeMarker'](_0x4047e7);}),this['_markerNames']['clear']();}['removeMarker'](_0x5b320e){this['_model']['change'](_0x431b57=>{_0x431b57['removeMarker'](_0x5b320e);}),this['_markerNames']['delete'](_0x5b320e);}['addRange'](_0x306498){const _0xfa85='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xfa85),this['_model']['change'](_0x127790=>{_0x127790['addMarker'](_0xfa85,{'range':_0x306498,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x13a1dd){for(const _0x48083c of this['getRanges']())if(_0x48083c['isIntersecting'](_0x13a1dd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x210c4a=>_0x210c4a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7f4ac0,_0x36d44d)=>[..._0x7f4ac0,..._0x36d44d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x517ab7=this['getRanges']();if(0x1!=_0x517ab7['length'])return null;const _0x25b960=_0x517ab7[0x0],_0x478c62=_0x25b960['start']['nodeAfter'],_0x590057=_0x25b960['end']['nodeBefore'];return _0x478c62 instanceof _0x43c364?_0x478c62!=_0x590057?null:_0x478c62: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 _0x4a0c1b=[];let _0x39e4dd=this['head'];for(;_0x39e4dd;)_0x4a0c1b['push'](_0x39e4dd),_0x39e4dd=_0x39e4dd['next'];return _0x4a0c1b;}['setAttribute'](_0x36a9ba,_0x1e1060){const _0x434db4=_0x26648a(this['attributes']);_0x240e4a(_0x434db4,_0x36a9ba,_0x1e1060),_0x4b7432(_0x434db4,this['attributes'])||(this['attributes']=_0x434db4,this['_onAttributesChange'](_0x434db4));}['removeAttribute'](_0x51ee06){const _0x7a5070=_0x26648a(this['attributes']);_0x2fcc25(_0x7a5070,_0x51ee06),_0x4b7432(_0x7a5070,this['attributes'])||(this['attributes']=_0x7a5070,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 _0x3946ed()['substr'](0x1,0x5);}}function o(_0x11933a,_0x3a6208,_0x142f86){const t=_0x11933a['t'];switch(_0x3a6208){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'*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',_0x142f86);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x142f86);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x142f86);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x142f86);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x142f86);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',_0x142f86);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x142f86);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x142f86);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x142f86);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x142f86);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x142f86);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x142f86);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x142f86);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x142f86);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x142f86);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x142f86);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x142f86);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x142f86);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x142f86);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x142f86);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x142f86);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x142f86);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x142f86);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'},_0x142f86);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x142f86);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x142f86);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x142f86);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x142f86);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x142f86);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'},_0x142f86);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x142f86);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x142f86);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x142f86);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x142f86);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'},_0x142f86);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x142f86);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'},_0x142f86);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'},_0x142f86);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x142f86);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'},_0x142f86);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x142f86);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'},_0x142f86);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x142f86);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x142f86);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'},_0x142f86);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x142f86);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x142f86);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x142f86);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'},_0x142f86);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'},_0x142f86);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'},_0x142f86);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3a6208;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1cfb30,_0x288598){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1cfb30,this['_locale']=_0x288598;}['getDescriptions'](_0x47c523){const _0x25433c=[],_0x3293e4=new Set(),_0x5f2746=new Set();for(let _0x15a2d0=0x0;_0x15a2d0<_0x47c523['length'];_0x15a2d0++){const _0x3a4c64=_0x47c523[_0x15a2d0];if(!_0x3a4c64['isInContent'])continue;const _0x29ceef=this['_handleCustomCallbackDescription'](_0x3a4c64);if(_0x29ceef){if(null!=_0x3a4c64['subType']){if(_0x3293e4['has'](_0x3a4c64['subType']))continue;_0x3293e4['add'](_0x3a4c64['subType']);}_0x25433c['push'](_0x29ceef);}else{if('attribute'!=_0x3a4c64['type'])'insertion'!=_0x3a4c64['type']&&'deletion'!=_0x3a4c64['type']||this['_handleInsertRemoveSuggestionDescription'](_0x25433c,_0x3a4c64,_0x47c523[_0x15a2d0+0x1]);else{const _0x3a73c5=_0x3a4c64['data']['key'];if(_0x5f2746['has'](_0x3a73c5))continue;_0x5f2746['add'](_0x3a4c64['data']['key']),_0x3a73c5==m?this['_handleRenameSuggestionDescription'](_0x25433c,_0x3a4c64):this['_handleAttributeSuggestionDescription'](_0x25433c,_0x3a4c64);}}}return this['_resolveDescriptionItems'](_0x25433c);}['registerDescriptionCallback'](_0x22415b){this['_customCallbacks']['push'](_0x22415b);}['registerElementLabel'](_0x42e4ea,_0x3ee299,_0x3bfc99=_0x5c72d6['normal']){'function'==typeof _0x42e4ea?_0x407d9c(this['_itemLabelsCallbacks'],{'matchingCallback':_0x42e4ea,'label':_0x3ee299,'priority':_0x3bfc99}):this['_itemLabels']['set'](_0x42e4ea,_0x3ee299);}['registerAttributeLabel'](_0x1ee308,_0x29a72f){this['_attributeLabels']['set'](_0x1ee308,_0x29a72f);}['getItemLabel'](_0x1bd583,_0xbdb8e2=0x1){let _0x29ba51;for(const _0x3fa42d of this['_itemLabelsCallbacks'])if(_0x3fa42d['matchingCallback'](_0x1bd583)){_0x29ba51=_0x3fa42d['label'];break;}return _0x29ba51||(_0x29ba51=this['_itemLabels']['get'](_0x1bd583['name'])),_0x29ba51?_0x29ba51(_0xbdb8e2):0x1!==_0xbdb8e2?_0xbdb8e2+'\x20'+_0x1bd583['name']+'s':''+_0x1bd583['name'];}['_addDescriptionItems'](_0x238c83,_0x2d4382){const _0x25ac5b=_0x2d4382['getFirstRange']()['getWalker'](),_0x2dc643='insertion'==_0x2d4382['type']?'add':'remove';for(const _0x1b4ef7 of _0x25ac5b){const _0x123aa8=_0x1b4ef7['item'],_0x355858=_0x238c83[_0x238c83['length']-0x1];if(_0x123aa8['is']('$textProxy'))_0x355858&&_0x355858['type']['indexOf']('Container')>-0x1&&_0x238c83['pop'](),_0x355858&&'text'==_0x355858['type']?_0x355858[_0x2dc643]+=_0x123aa8['data']:_0x238c83['push']({'type':'text','add':'add'==_0x2dc643?_0x123aa8['data']:'','remove':'remove'==_0x2dc643?_0x123aa8['data']:''});else{if(this['_schema']['isObject'](_0x123aa8)){const _0xdcbae4=_0x123aa8;if(_0x355858&&_0x355858['type']['indexOf']('Container')>-0x1&&_0x238c83['pop'](),'elementEnd'==_0x1b4ef7['type'])continue;_0x355858&&_0x355858['type']==_0x2dc643+'Object'&&_0x355858['element']['name']==_0xdcbae4['name']?_0x355858['quantity']++:_0x238c83['push']({'type':_0x2dc643+'Object','element':_0xdcbae4,'quantity':0x1}),_0x25ac5b['skip'](_0x33817a=>!('elementEnd'==_0x33817a['type']&&_0x33817a['item']==_0x123aa8));}else{if(this['_schema']['checkChild'](_0x123aa8,'$text')||_0x123aa8['is']('element','softBreak')){const _0x32dc08=_0x123aa8;if('add'==_0x2dc643&&'elementStart'==_0x1b4ef7['type']||'remove'==_0x2dc643&&'elementEnd'==_0x1b4ef7['type'])continue;if(_0x355858&&-0x1==_0x355858['type']['indexOf']('Container')){'text'==_0x355858['type']&&(_0x355858[_0x2dc643]+='\x0a');continue;}let _0x5bc5a4;if(_0x5bc5a4='add'==_0x2dc643?_0x32dc08['nextSibling']&&!this['_schema']['isObject'](_0x32dc08['nextSibling'])?_0x32dc08['nextSibling']:null:_0x32dc08['previousSibling']&&!this['_schema']['isObject'](_0x32dc08['previousSibling'])?_0x32dc08['previousSibling']:null,_0x32dc08['isEmpty']||_0x5bc5a4&&_0x5bc5a4['isEmpty']){const _0x11bd96=_0x5bc5a4&&_0x5bc5a4['isEmpty']?_0x5bc5a4:_0x32dc08;_0x355858&&_0x355858['type']==_0x2dc643+'EmptyContainer'&&_0x355858['element']['name']==_0x11bd96['name']?_0x355858['quantity']++:_0x238c83['push']({'type':_0x2dc643+'EmptyContainer','element':_0x11bd96,'quantity':0x1});}else _0x238c83['push']({'type':_0x2dc643+'Container','element':_0x32dc08});}}}}}['_resolveDescriptionItems'](_0x48b355){const _0x3d8c61=this['_locale'],_0x486b83=[],_0x135d72=[],_0x2bfe21=[];for(const _0x4a2e46 of _0x48b355)switch(_0x4a2e46['type']){case'text':if(_0x4a2e46['add']=_0x4a2e46['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a2e46['remove']=_0x4a2e46['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a2e46['add']&&''!=_0x4a2e46['remove']){_0x486b83['push']({'type':'replace','content':o(_0x3d8c61,'REPLACE_TEXT',['\x22'+_0x4a2e46['remove']+'\x22','\x22'+_0x4a2e46['add']+'\x22'])});continue;}if(null!=_0x4a2e46['add']['match'](/^ +$/)){_0x486b83['push']({'type':'insertion','content':o(_0x3d8c61,'*Insert:*\x20%0',o(_0x3d8c61,'ELEMENT_SPACE',_0x4a2e46['add']['length']))});continue;}if(null!=_0x4a2e46['remove']['match'](/^ +$/)){_0x486b83['push']({'type':'deletion','content':o(_0x3d8c61,'*Remove:*\x20%0',o(_0x3d8c61,'ELEMENT_SPACE',_0x4a2e46['remove']['length']))});continue;}if(''!=_0x4a2e46['add']){_0x486b83['push']({'type':'insertion','content':o(_0x3d8c61,'*Insert:*\x20%0','\x22'+_0x4a2e46['add']+'\x22')});continue;}_0x486b83['push']({'type':'deletion','content':o(_0x3d8c61,'*Remove:*\x20%0','\x22'+_0x4a2e46['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x486b83['push']({'type':'insertion','content':o(_0x3d8c61,'*Insert:*\x20%0',this['getItemLabel'](_0x4a2e46['element'],_0x4a2e46['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x486b83['push']({'type':'deletion','content':o(_0x3d8c61,'*Remove:*\x20%0',this['getItemLabel'](_0x4a2e46['element'],_0x4a2e46['quantity']))});continue;case'addContainer':_0x486b83['push']({'type':'insertion','content':o(_0x3d8c61,'*Split:*\x20%0',this['getItemLabel'](_0x4a2e46['element'],_0x4a2e46['quantity']))});continue;case'removeContainer':_0x486b83['push']({'type':'deletion','content':o(_0x3d8c61,'*Merge:*\x20%0',this['getItemLabel'](_0x4a2e46['element'],_0x4a2e46['quantity']))});continue;case'addFormat':_0x135d72['push'](_0x4a2e46['key']);continue;case'removeFormat':_0x2bfe21['push'](_0x4a2e46['key']);continue;default:_0x486b83['push'](_0x4a2e46);}if(_0x135d72['length']){const _0x324588=_0x135d72['map'](_0x321e10=>this['_attributeLabels']['has'](_0x321e10)?this['_attributeLabels']['get'](_0x321e10):_0x321e10)['join'](',\x20');_0x486b83['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x324588)});}if(_0x2bfe21['length']){const _0x1da984=_0x2bfe21['map'](_0x15d2fe=>this['_attributeLabels']['has'](_0x15d2fe)?this['_attributeLabels']['get'](_0x15d2fe):_0x15d2fe)['join'](',\x20');_0x486b83['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1da984)});}return _0x486b83;}['_handleCustomCallbackDescription'](_0x3d8ff6){for(const _0x4b597e of this['_customCallbacks']){const _0x2e8caf=_0x4b597e(_0x3d8ff6);if(_0x2e8caf&&'type'in _0x2e8caf)return _0x2e8caf;}}['_handleAttributeSuggestionDescription'](_0x360b74,_0x6c1bbd){const _0x278ee7=_0x6c1bbd['data'],_0x477753=void 0x0===_0x278ee7['newValue']?'removeFormat':'addFormat';_0x360b74['push']({'type':_0x477753,'key':_0x278ee7['key']});}['_handleRenameSuggestionDescription'](_0x4fe8f7,_0x1cbb89){_0x4fe8f7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1cbb89['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d7c82,_0x1e1fe6,_0x2d09d9){if(this['_addDescriptionItems'](_0x2d7c82,_0x1e1fe6),_0x2d09d9&&_0x2d09d9['getFirstRange']()&&!_0x1e1fe6['getFirstRange']()['end']['isEqual'](_0x2d09d9['getFirstRange']()['start'])){const _0x4c520a=_0x2d7c82[_0x2d7c82['length']-0x1],_0x1bc634='insertion'==_0x1e1fe6['type']?'add':'remove';_0x4c520a&&'text'==_0x4c520a['type']&&(_0x4c520a[_0x1bc634]+='\x0a');}}}class V extends _0x518f0a{['afterInit'](){const _0x22486d=this['editor'],_0x4857c4=_0x22486d['plugins']['get']('TrackChangesEditing');_0x22486d['commands']['get']('showAIAssistant')&&_0x4857c4['enableCommand']('showAIAssistant');}}class U extends _0x518f0a{['afterInit'](){const _0x7121fd=this['editor'],_0x3e47c4=_0x7121fd['locale'];if(!_0x7121fd['plugins']['has']('AlignmentEditing'))return;const _0x384fad=_0x7121fd['plugins']['get']('TrackChangesEditing');_0x384fad['enableDefaultAttributesIntegration']('alignment'),_0x384fad['registerBlockAttribute']('alignment'),_0x384fad['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3e47c4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26f67e=this['editor'],_0x39a239=_0x26f67e['locale'];_0x26f67e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cbf69=>{if('formatBlock'!=_0x3cbf69['type'])return;const {data:_0x12ef0d}=_0x3cbf69;if(_0x12ef0d&&'alignment'==_0x12ef0d['commandName']){const _0x2ee5b7=_0x12ef0d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x39a239,'*Format:*\x20%0',function(_0x17244c){switch(_0x17244c){case'left':return o(_0x39a239,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x39a239,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x39a239,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x39a239,'FORMAT_JUSTIFY_TEXT');}}(_0x2ee5b7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x518f0a{['afterInit'](){const _0x1bc458=this['editor'],_0x364854=_0x1bc458['plugins']['get']('TrackChangesEditing'),_0x1cc7c9=_0x1bc458['locale'];for(const _0x5e7dc6 of ti){if(!_0x1bc458['plugins']['has'](_0x5e7dc6))continue;const _0x5bb945=_0x5e7dc6['slice'](0x0,-0x7)['toLowerCase'](),_0x4fef1f='FORMAT_'+_0x5bb945['toUpperCase']();_0x364854['enableDefaultAttributesIntegration'](_0x5bb945),_0x364854['registerInlineAttribute'](_0x5bb945),_0x364854['descriptionFactory']['registerAttributeLabel'](_0x5bb945,o(_0x1cc7c9,_0x4fef1f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3759a2=this['editor'],_0x4be53a=_0x3759a2['locale'],_0x543f9b=_0x3759a2['plugins']['get']('TrackChangesEditing');function _0x5e479f(_0x29b3fd,_0x5a5e07){_0x543f9b['descriptionFactory']['registerDescriptionCallback'](_0x2779b9=>{if('formatInline'!=_0x2779b9['type'])return;const {data:_0x39e1d1}=_0x2779b9;return _0x39e1d1&&_0x39e1d1['commandName']===_0x29b3fd?_0x39e1d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4be53a,'*Format:*\x20%0',_0x5a5e07)}:{'type':'format','content':o(_0x4be53a,'*Remove\x20format:*\x20%0',_0x5a5e07)}:void 0x0;});}_0x5e479f('bold',o(_0x4be53a,'FORMAT_BOLD')),_0x5e479f('italic',o(_0x4be53a,'FORMAT_ITALIC')),_0x5e479f('underline',o(_0x4be53a,'FORMAT_UNDERLINE')),_0x5e479f('code',o(_0x4be53a,'FORMAT_CODE')),_0x5e479f('strikethrough',o(_0x4be53a,'FORMAT_STRIKETHROUGH')),_0x5e479f('subscript',o(_0x4be53a,'FORMAT_SUBSCRIPT')),_0x5e479f('superscript',o(_0x4be53a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x518f0a{['afterInit'](){const _0x3c72af=this['editor'],_0x15b357=_0x3c72af['locale'];if(!_0x3c72af['plugins']['has']('BlockQuoteEditing'))return;const _0x57c1ba=_0x3c72af['plugins']['get']('TrackChangesEditing'),_0xf64b07=this['editor']['commands']['get']('blockQuote');_0x57c1ba['enableCommand']('blockQuote',(_0x15d0fb,_0x5a0698={})=>{const _0x1954fa=this['editor']['model']['document']['selection'],_0x2e5a3b=_0x5a0698&&void 0x0!==_0x5a0698['forceValue']?_0x5a0698['forceValue']:!_0xf64b07['value'];let _0x11d0e1=[];if(_0x2e5a3b){const _0xa64744=Array['from'](_0x1954fa['getSelectedBlocks']())['filter'](_0x37db4e=>oo(_0x37db4e)||function(_0x22ef0d,_0x14238f){const _0x31361d=_0x14238f['checkChild'](_0x22ef0d['parent'],'blockQuote'),_0x47a12f=_0x14238f['checkChild'](['$root','blockQuote'],_0x22ef0d);return _0x31361d&&_0x47a12f;}(_0x37db4e,this['editor']['model']['schema']));_0x11d0e1=to(_0xa64744,_0x3c72af['model']);}else{const _0x8140cd=Array['from'](_0x1954fa['getSelectedBlocks']())['filter'](_0x3a27fa=>oo(_0x3a27fa));_0x11d0e1=to(_0x8140cd,_0x3c72af['model']);}_0x3c72af['model']['change'](()=>{for(const _0x501b9f of _0x11d0e1)_0x57c1ba['markBlockFormat'](_0x501b9f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2e5a3b}]});});}),_0x57c1ba['descriptionFactory']['registerDescriptionCallback'](_0x8fee3b=>{const {data:_0x82c4f6}=_0x8fee3b;if(_0x82c4f6&&'blockQuote'==_0x82c4f6['commandName']){const _0x5d6a30=o(_0x15b357,'ELEMENT_BLOCK_QUOTE');return _0x82c4f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15b357,'*Set\x20format:*\x20%0',_0x5d6a30)}:{'type':'format','content':o(_0x15b357,'*Remove\x20format:*\x20%0',_0x5d6a30)};}});}}function oo(_0x19af8f){return'blockQuote'==_0x19af8f['parent']['name'];}class L extends _0x518f0a{['afterInit'](){const _0x417f3b=this['editor'];_0x417f3b['plugins']['has']('CaseChange')&&(_0x417f3b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x417f3b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x417f3b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x518f0a{['afterInit'](){const _0x27ca3b=this['editor'];_0x27ca3b['commands']['get']('ckbox')&&_0x27ca3b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x518f0a{['afterInit'](){const _0x4ad483=this['editor'];if(!_0x4ad483['plugins']['has']('CodeBlock'))return;const _0x38284f=_0x4ad483['plugins']['get']('TrackChangesEditing'),_0x5804c5=_0x4ad483['locale'],_0x328d4c=_0x4ad483['config']['get']('codeBlock')['languages'],_0x6dab13=_0x4ad483['commands']['get']('codeBlock');_0x38284f['enableCommand']('indentCodeBlock'),_0x38284f['enableCommand']('outdentCodeBlock'),_0x38284f['enableCommand']('codeBlock',(_0x13b43b,_0x40eb20={})=>{const _0x4825de=_0x4ad483['model'],_0x22166b=_0x4ad483['model']['document']['selection'],_0x57291e=_0x40eb20&&void 0x0!==_0x40eb20['forceValue']?_0x40eb20['forceValue']:!_0x6dab13['value'];let _0x481e1f;_0x40eb20['language']||(_0x40eb20['language']=_0x328d4c[0x0]['language']),_0x481e1f=_0x57291e?Array['from'](_0x22166b['getSelectedBlocks']())['filter'](_0x4c792f=>eo(_0x4c792f)||function(_0x204c46,_0x31268e){if(_0x204c46['is']('rootElement')||_0x31268e['isLimit'](_0x204c46))return!0x1;return _0x31268e['checkChild'](_0x204c46['parent'],'codeBlock');}(_0x4c792f,_0x4825de['schema'])):Array['from'](_0x22166b['getSelectedBlocks']())['filter'](_0x1ba141=>eo(_0x1ba141));const _0x1c92f0=to(_0x481e1f,_0x4825de);_0x4825de['change'](()=>{for(const _0x48669f of _0x1c92f0)_0x38284f['markBlockFormat'](_0x48669f,{'commandName':'codeBlock','commandParams':[{..._0x40eb20,'forceValue':_0x57291e}],'formatGroupId':'blockName'});});}),(_0x38284f['descriptionFactory']['registerElementLabel']('codeBlock',_0x21b540=>o(_0x5804c5,'ELEMENT_CODE_BLOCK',_0x21b540)),_0x38284f['descriptionFactory']['registerDescriptionCallback'](_0x4c90a5=>{if('formatBlock'!=_0x4c90a5['type'])return;const _0x107639=_0x5804c5['t'],{data:_0x90806}=_0x4c90a5;if(!_0x90806||'codeBlock'!=_0x90806['commandName'])return;const _0x16c220=_0x90806['commandParams'][0x0]['language'],_0x167740=_0x107639(_0x328d4c['find'](_0x1c62ba=>_0x1c62ba['language']===_0x16c220)['label'])['toLowerCase']();return _0x90806['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5804c5,'*Set\x20format:*\x20%0',o(_0x5804c5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x167740+')')}:{'type':'format','content':o(_0x5804c5,'*Remove\x20format:*\x20%0',o(_0x5804c5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x57eb99){return'codeBlock'==_0x57eb99['name'];}class q extends _0x518f0a{['afterInit'](){const _0x115f88=this['editor'];if(!_0x115f88['plugins']['has']('CommentsEditing'))return;_0x115f88['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x274deb,_0x10274b,_0x4654a5){const _0x5eb7f5=[];for(const _0x1bc2d8 of _0x10274b['getItems']())_0x1bc2d8['hasAttribute'](_0x274deb)&&_0x5eb7f5['push'](_0x4654a5['createRangeOn'](_0x1bc2d8));return _0x5eb7f5;}function _e(_0x3f249d,_0x54802d,{showActiveMarker:_0x502d72=!0x0}={}){const _0x5f4cb5=_0x3f249d['plugins']['get']('TrackChangesEditing');return(_0x37d223,_0x364294,_0x30fc4c)=>{if(!_0x30fc4c['consumable']['test'](_0x364294['markerRange'],_0x37d223['name']))return;const _0x3f4c2a=_0x364294['markerRange']['getWalker'](),_0x52c641=_0x364294['markerRange']['start'],_0x1773b4=_0x3f249d['model']['schema'];let _0x1a96d3=null,_0x1b9d6e=null,_0x5a130b=!0x1,_0x58d37f=!0x1;for(const _0x23a6b5 of _0x3f4c2a){const _0x35074c=_0x23a6b5['item'];_0x5a130b=_0x5a130b||_0x1773b4['isContent'](_0x35074c);const _0x1dbb91=_0x30fc4c['mapper']['toViewElement'](_0x35074c);if(_0x1dbb91&&_0x1dbb91['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23a6b5['type']&&(_0x1773b4['isBlock'](_0x35074c)&&!_0x1773b4['isLimit'](_0x35074c)&&(_0x35074c['nextSibling']||_0x52c641['isAtEnd']?_0x1a96d3&&_0x1a96d3['parent']==_0x35074c||(_0x1a96d3=_0x35074c,_0xb6f911(_0x23a6b5['previousPosition']),_0x58d37f=!0x0):_0x1b9d6e=_0x1b9d6e||_0x23a6b5['previousPosition']));}function _0xb6f911(_0x4f2dbe){const {authorId:_0x3e2d10}=_0x5f4cb5['_splitMarkerName'](_0x364294['markerName']),_0x54c5b1=_0x30fc4c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54802d,'data-author-id':_0x3e2d10}),_0x57ecb5=_0x30fc4c['mapper']['toViewPosition'](_0x4f2dbe);_0x502d72&&_0x5f4cb5['activeMarkers']['includes'](_0x364294['markerName'])&&_0x30fc4c['writer']['addClass']('ck-suggestion-marker--active',_0x54c5b1),_0x30fc4c['writer']['insert'](_0x57ecb5,_0x54c5b1),_0x30fc4c['mapper']['bindElementToMarker'](_0x54c5b1,_0x364294['markerName']);}_0x5a130b||_0x58d37f||!_0x1b9d6e||_0xb6f911(_0x1b9d6e);};}class z extends _0x518f0a{static get['requires'](){return[_0x80695c];}['init'](){const _0x28bb62=this['editor'],_0xbd1123=_0x28bb62['plugins']['get']('TrackChangesEditing');_0xbd1123['enableCommand']('delete');const _0x452157=_0x28bb62['commands']['get']('deleteForward');_0xbd1123['enableCommand']('deleteForward',(_0x1772c1,_0x5a5a67={})=>{const _0x580748=_0x28bb62['model']['createSelection'](_0x28bb62['model']['document']['selection']);_0x580748['isCollapsed']&&_0x28bb62['model']['modifySelection'](_0x580748,{'direction':'forward','unit':_0x5a5a67['unit']});const _0x18370a=_0x580748['getFirstRange'](),_0x2f9b48=_0x1b6799['fromRange'](_0x18370a);let _0x3bf0de;_0x1772c1(_0x5a5a67),_0x3bf0de='$graveyard'==_0x2f9b48['root']['rootName']?_0x28bb62['model']['createRange'](_0x18370a['start']):_0x28bb62['model']['createRange'](_0x2f9b48['start'],_0x2f9b48['end']),_0x2f9b48['detach'](),_0x28bb62['model']['enqueueChange'](_0x452157['buffer']['batch'],_0x2cc29d=>{_0x452157['buffer']['lock'](),_0x2cc29d['setSelection'](_0x2cc29d['createRange'](_0x3bf0de['end'])),_0x452157['buffer']['unlock']();});}),_0x28bb62['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28bb62,'merge'),{'priority':'high'}),_0x28bb62['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5f160e,_0x576300,_0x2a4bc3)=>{_0x2a4bc3['options']['showSuggestionHighlights']&&_e(_0x28bb62,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5f160e,_0x576300,_0x2a4bc3);},{'priority':'high'}),_0x28bb62['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33d993,_0x4e2ab3,_0x3b5b56)=>{const _0x53c11c=_0x3b5b56['mapper']['markerNameToElements'](_0x4e2ab3['markerName']);if(_0x53c11c){for(const _0x2f09f8 of _0x53c11c)_0x2f09f8['is']('uiElement')&&(_0x3b5b56['mapper']['unbindElementFromMarkerName'](_0x2f09f8,_0x4e2ab3['markerName']),_0x3b5b56['writer']['remove'](_0x2f09f8));}},{'priority':'high'});}}class K extends _0x518f0a{['afterInit'](){const _0x3ef325=this['editor'];if(!_0x3ef325['plugins']['has']('ListEditing'))return;const _0x3f328a=_0x3ef325['locale'],_0x3de350=_0x3ef325['plugins']['get']('TrackChangesEditing'),_0x2381e9=_0x3ef325['plugins']['has']('TodoListEditing'),_0x349777=!!_0x3ef325['config']['get']('list.multiBlock');function _0x1e15fe(_0xe2123a){return{'type':'format','content':''+o(_0x3f328a,'*Set\x20format:*\x20%0',_0xe2123a)};}function _0x5e5a3b(_0x3630c9){return{'type':'format','content':''+o(_0x3f328a,'*Remove\x20format:*\x20%0',_0x3630c9)};}_0x3de350['enableDefaultAttributesIntegration']('numberedList'),_0x3de350['enableDefaultAttributesIntegration']('bulletedList'),_0x3de350['enableDefaultAttributesIntegration']('customNumberedList'),_0x3de350['enableDefaultAttributesIntegration']('customBulletedList'),_0x3de350['enableDefaultAttributesIntegration']('indentList'),_0x3de350['enableDefaultAttributesIntegration']('outdentList'),_0x3de350['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3de350['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3de350['registerBlockAttribute']('listItemId'),_0x3de350['registerBlockAttribute']('listType'),_0x3de350['registerBlockAttribute']('listIndent'),_0x349777&&(_0x3de350['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3de350['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2381e9&&(_0x3de350['enableDefaultAttributesIntegration']('todoList'),_0x3de350['enableDefaultAttributesIntegration']('checkTodoList'),_0x3de350['registerBlockAttribute']('todoListChecked'),_0x3de350['descriptionFactory']['registerDescriptionCallback'](_0x67febb=>{const {data:_0x22e54a}=_0x67febb;if(_0x22e54a&&'todoListChecked'==_0x22e54a['key'])return{'type':'format','content':_0x22e54a['newValue']?o(_0x3f328a,'*Check\x20item*'):o(_0x3f328a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x456895=>{if(_0x456895['batch']['isUndo'])return!0x1;let _0x40cefb=!0x1;const _0x14f8c5=_0x3de350['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x805383=>'todoListChecked'===_0x3de350['_getAttributeKey'](_0x805383));for(const _0x4bcba6 of _0x14f8c5){'todo'!=_0x4bcba6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3de350['_findSuggestions'](_0x4bcba6['getFirstRange'](),'attribute')['find'](_0x418e6d=>'listType'===_0x3de350['_getAttributeKey'](_0x418e6d['suggestion']))||(_0x456895['removeMarker'](_0x4bcba6['getFirstMarker']()),_0x40cefb=!0x0));}return _0x40cefb;})),_0x3de350['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3f328a,'FORMAT_INDENT'));const _0x577968={'type':'format','content':''};_0x3de350['descriptionFactory']['registerDescriptionCallback'](_0x12daff=>{const {data:_0x528566}=_0x12daff;if(!_0x528566||'listType'!=_0x528566['key'])return;let _0x2d4a14=_0x12daff['head'];for(;_0x2d4a14;){if(_0x2d4a14['data']&&(('listStyle'==_0x2d4a14['data']['key']||'listMarkerStyle'==_0x2d4a14['data']['key'])&&(_0x2d4a14['data']['newValue']&&'default'!=_0x2d4a14['data']['newValue']||'default'!=_0x2d4a14['data']['oldValue']&&!_0x528566['newValue'])||!_0x349777&&_0x2d4a14['data']['key']==m))return _0x577968;_0x2d4a14=_0x2d4a14['next'];}if(null==_0x528566['newValue'])switch(_0x528566['oldValue']){case'bulleted':return _0x5e5a3b(o(_0x3f328a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e5a3b(o(_0x3f328a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e5a3b(o(_0x3f328a,'ELEMENT_TODO_LIST'));}switch(_0x528566['newValue']){case'bulleted':return _0x1e15fe(o(_0x3f328a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e15fe(o(_0x3f328a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e15fe(o(_0x3f328a,'ELEMENT_TODO_LIST'));}}),_0x3de350['descriptionFactory']['registerDescriptionCallback'](_0x327441=>{const {data:_0x3dc8a9}=_0x327441;if(_0x3dc8a9&&'listIndent'==_0x3dc8a9['key'])return null==_0x3dc8a9['newValue']||null==_0x3dc8a9['oldValue']&&0x0==_0x3dc8a9['newValue']?_0x577968:void 0x0;}),_0x3de350['descriptionFactory']['registerDescriptionCallback'](_0x35883a=>{if('attribute'!=_0x35883a['type'])return;const {data:_0x7d93b1}=_0x35883a;if(!_0x7d93b1||'listItemId'!=_0x7d93b1['key'])return;const _0x188e73=Ee(_0x35883a);return'newValue'==_0x188e73?{'type':'format','content':o(_0x3f328a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x188e73?{'type':'format','content':o(_0x3f328a,'*Split:*\x20list\x20item')}:_0x577968;}),_0x3ef325['model']['document']['registerPostFixer'](_0x39a76e=>this['listItemIdFixer'](_0x39a76e)),_0x3ef325['model']['document']['registerPostFixer'](_0xa0edc5=>this['noTrackChangesFixer'](_0xa0edc5)),_0x3ef325['model']['document']['on']('change:data',(_0x5780ac,_0x5b701d)=>{if(_0x5b701d['isUndo']||!_0x5b701d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x373b47){if(_0x373b47['batch']['isUndo']||!_0x373b47['batch']['isLocal'])return!0x1;let _0x3d0e29=!0x1;const _0x522b79=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e2c0=>_0x45e2c0['data']&&'listItemId'==_0x45e2c0['data']['key'])['filter'](_0x47fdb0=>_0x47fdb0['data']['newValue']&&_0x47fdb0['data']['oldValue']);for(const _0x3472af of _0x522b79)Ee(_0x3472af)||(_0x373b47['removeMarker'](_0x3472af['getFirstMarker']()),_0x3d0e29=!0x0);return _0x3d0e29;}['noTrackChangesFixer'](_0x160c2b){if(_0x160c2b['batch']['isUndo']||!_0x160c2b['batch']['isLocal'])return!0x1;const _0x2a5808=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a5808['trackChangesCommand']['value'])return!0x1;let _0x1a4827=!0x1;const _0x57a52e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5dd5f5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5d6cb6=>'attribute'==_0x5d6cb6['type'])['filter'](_0xdb7263=>_0x57a52e['includes'](_0xdb7263['attributeKey']));if(0x0==_0x5dd5f5['length'])return _0x1a4827;for(const _0xa5c398 of _0x5dd5f5){const _0x13a5f5=_0x2a5808['_findSuggestions'](_0xa5c398['range'],'attribute')['filter'](_0x1ec86e=>!_0x1ec86e['meta']['isNextTo'])['map'](_0x519794=>_0x519794['suggestion'])['filter'](_0x586f9e=>{const _0x1a9ea9=_0x2a5808['_getAttributeKey'](_0x586f9e);return _0x57a52e['includes'](_0x1a9ea9);});if(_0x13a5f5['length']){for(const _0x42c42a of _0x13a5f5)_0x160c2b['removeMarker'](_0x42c42a['getFirstMarker']());_0x1a4827=!0x0;}}return _0x1a4827;}['assureChains'](){const _0x29446c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25cfa8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3df619;const _0x41aa35=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16ec68=>{if(_0x16ec68['data']['oldRange']||!_0x16ec68['data']['newRange'])return null;if(!_0x16ec68['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x216a22}=_0x29446c['_splitMarkerName'](_0x16ec68['name']);if(!_0x29446c['hasSuggestion'](_0x216a22))return null;const _0x2b3b3c=_0x29446c['getSuggestion'](_0x216a22);return _0x25cfa8['includes'](_0x2b3b3c['data']['key']);})['map'](_0x147860=>{const {id:_0x1524c9}=_0x29446c['_splitMarkerName'](_0x147860['name']),_0x2dfd90=_0x29446c['getSuggestion'](_0x1524c9);return _0x3df619=_0x2dfd90['attributes']['groupId'],_0x2dfd90['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x41aa35['size'])return;const _0x1a4c8d=_0x29446c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fbb7d=>'attribute'==_0x4fbb7d['type']&&_0x4fbb7d['data']&&_0x25cfa8['includes'](_0x4fbb7d['data']['key'])&&_0x4fbb7d['attributes']['groupId']!=_0x3df619)['map'](_0x3fa49e=>({'listItem':_0x3fa49e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3fa49e['attributes']['groupId']})),_0x4d1ca7=new Set();for(const {groupId:_0x4365b7,listItem:_0x1b93b1}of _0x1a4c8d)_0x41aa35['has'](_0x1b93b1)&&_0x4d1ca7['add'](_0x4365b7);for(const _0x250650 of _0x29446c['getSuggestions']())_0x4d1ca7['has'](_0x250650['attributes']['groupId'])&&_0x250650['setAttribute']('groupId',_0x3df619);}['_supportLegacySuggestions'](){const _0x45e80b=this['editor'],_0x18fb64=_0x45e80b['locale'],_0x2dea36=_0x45e80b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2dea36['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4183b5,_0x300983){const _0x1452d4=[];for(let _0x57b306 of _0x4183b5)_0x57b306['start']['nodeAfter']===_0x57b306['end']['parent']&&(_0x57b306=_0x45e80b['model']['createRange'](_0x45e80b['model']['createPositionAt'](_0x57b306['start']['nodeAfter'],0x0))),_0x1452d4['push'](_0x57b306);_0x45e80b['model']['change'](_0x1478a4=>{const _0x1815b8=_0x45e80b['model']['document']['selection'],_0x5363bc=Array['from'](_0x1815b8['getRanges']())['map'](_0x43d591=>_0x1b6799['fromRange'](_0x43d591));_0x1478a4['setSelection'](_0x1452d4),_0x45e80b['commands']['get'](_0x300983['commandName'])['refresh'](),_0x300983['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45e80b['execute'](_0x300983['commandName'],..._0x300983['commandParams']),_0x1478a4['setSelection'](_0x5363bc);for(const _0x520464 of _0x5363bc)_0x520464['detach']();});}),_0x2dea36['descriptionFactory']['registerElementLabel'](function(_0x2c4180){const _0x59dc44=!_0x45e80b['model']['schema']['isObject'](_0x2c4180),_0x409018=_0x2c4180['previousSibling'],_0x57e871=_0x2c4180['nextSibling'],_0x35bdee=_0x2c4180['getAttribute']('listItemId'),_0x1d003f=!_0x409018||_0x409018['getAttribute']('listItemId')!==_0x35bdee,_0x1a9cdc=!_0x57e871||_0x57e871['getAttribute']('listItemId')!==_0x35bdee;return _0x59dc44&&Boolean(_0x35bdee)&&_0x1d003f&&_0x1a9cdc;},_0x37e448=>o(_0x18fb64,'ELEMENT_LIST_ITEM',_0x37e448));}['_registerLegacyDescription'](){const _0x2909c7=this['editor'],_0x442350=_0x2909c7['locale'];function _0x258e0e(_0x33ffc9){const _0x1324cd=_0x2909c7['commands']['get']('bulletedList')['value'],_0x2da22a=_0x2909c7['commands']['get']('numberedList')['value'];return'numberedList'===_0x33ffc9?_0x1324cd:_0x2da22a;}_0x2909c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46102f){if('formatBlock'!=_0x46102f['type'])return;const {data:_0x25f3a9}=_0x46102f;if(!_0x25f3a9)return;let _0x39f017,_0x31f8ac,_0x14de77,_0x4e3f6d;switch(_0x25f3a9['commandName']){case'bulletedList':_0x14de77=_0x25f3a9['commandParams'][0x0]['forceValue'],_0x4e3f6d=_0x258e0e(_0x25f3a9['commandName']),_0x39f017=_0x14de77?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e3f6d&&_0x2909c7['config']['get']('list.multiBlock')||(_0x39f017='*Change\x20to:*\x20%0'),_0x31f8ac={'type':'format','content':o(_0x442350,_0x39f017,o(_0x442350,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x14de77=_0x25f3a9['commandParams'][0x0]['forceValue'],_0x4e3f6d=_0x258e0e(_0x25f3a9['commandName']),_0x39f017=_0x14de77?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e3f6d&&_0x2909c7['config']['get']('list.multiBlock')||(_0x39f017='*Change\x20to:*\x20%0'),_0x31f8ac={'type':'format','content':o(_0x442350,_0x39f017,o(_0x442350,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39f017='*Indent:*\x20%0',_0x31f8ac={'type':'format','content':o(_0x442350,_0x39f017,o(_0x442350,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39f017=function(_0x5ca3e8){const _0x32e13d=_0x5ca3e8['getFirstRange']();let _0x283480=_0x32e13d['start']['nodeAfter'];for(;_0x283480&&_0x32e13d['containsItem'](_0x283480);){if(_0x283480['getAttribute']('listIndent')>0x0)return!0x1;_0x283480=_0x283480['nextSibling'];}return!0x0;}(_0x46102f)?o(_0x442350,'*Format:*\x20remove\x20from\x20%0',o(_0x442350,function(_0x5197a7){return'ELEMENT_'+_0x5197a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46102f))):o(_0x442350,'*Outdent:*\x20%0',o(_0x442350,'ELEMENT_LIST_ITEM')),_0x31f8ac={'type':'format','content':_0x39f017};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x25f3a9['multipleBlocks']&&(_0x39f017='*Merge:*\x20%0',_0x31f8ac={'type':'deletion','content':o(_0x442350,_0x39f017,o(_0x442350,'ELEMENT_LIST_ITEM'))});}return _0x31f8ac;});}}function Ee(_0x319162){let _0x3c9a85=_0x319162['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3c9a85;){const _0x1167de=_0x3c9a85['getAttribute']('listItemId');if(!_0x1167de)return!0x1;if(_0x1167de==_0x319162['data']['newValue'])return'newValue';if(_0x1167de==_0x319162['data']['oldValue'])return'oldValue';_0x3c9a85=_0x3c9a85['previousSibling'];}return!0x1;}class pe extends _0x518f0a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x391ccc=this['editor']['config']['get']('list.properties'),_0x18de03=this['editor']['plugins']['get']('TrackChangesEditing');_0x391ccc['styles']&&(_0x18de03['enableDefaultAttributesIntegration']('listStyle'),_0x18de03['registerBlockAttribute']('listStyle')),_0x391ccc['reversed']&&(_0x18de03['enableDefaultAttributesIntegration']('listReversed'),_0x18de03['registerBlockAttribute']('listReversed')),_0x391ccc['startIndex']&&(_0x18de03['enableDefaultAttributesIntegration']('listStart'),_0x18de03['registerBlockAttribute']('listStart'));const _0x277391={'type':'format','content':''};_0x18de03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c15d6=this['editor']['locale'];_0x18de03['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c15d6,'FORMAT_LIST_REVERSED')),_0x18de03['descriptionFactory']['registerDescriptionCallback'](_0x143470=>{const {data:_0x5f22fd}=_0x143470;if(_0x5f22fd&&'listReversed'==_0x5f22fd['key'])return null==_0x5f22fd['newValue']||0x0==_0x5f22fd['newValue']&&null==_0x5f22fd['oldValue']?_0x277391:void 0x0;}),_0x18de03['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c15d6,'FORMAT_LIST_START')),_0x18de03['descriptionFactory']['registerDescriptionCallback'](_0x4f5f59=>{const {data:_0x255168}=_0x4f5f59;if(_0x255168&&'listStart'==_0x255168['key'])return null==_0x255168['newValue']||0x1==_0x255168['newValue']&&null==_0x255168['oldValue']?_0x277391:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x18dd6b=>{if(_0x18dd6b['batch']['isUndo'])return!0x1;let _0x3523ee=!0x1;const _0x11a2b7=_0x18de03['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb938ad=>{const _0x5d57db=_0x18de03['_getAttributeKey'](_0xb938ad);return'listStart'==_0x5d57db||'listReversed'==_0x5d57db;});for(const _0x5787ab of _0x11a2b7){const _0x2ef8b7=_0x5787ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ef8b7||'customNumbered'==_0x2ef8b7)continue;_0x18de03['_findSuggestions'](_0x5787ab['getFirstRange'](),'attribute')['find'](_0x43d6c0=>'listType'==_0x18de03['_getAttributeKey'](_0x43d6c0['suggestion']))||(_0x18dd6b['removeMarker'](_0x5787ab['getFirstMarker']()),_0x3523ee=!0x0);}return _0x3523ee;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d0c8d){const _0x17a2fb=this['editor']['locale'],{data:_0x45910e}=_0x2d0c8d,_0x73b5b2={'type':'format','content':''};if(!_0x45910e||'listStyle'!=_0x45910e['key'])return;if(!_0x45910e['oldValue'])return'default'==_0x45910e['newValue']?_0x73b5b2:{'type':'format','content':''+o(_0x17a2fb,'*Set\x20format:*\x20%0',o(_0x17a2fb,this['_getTranslationKeyForListStyle'](_0x45910e['newValue'])))};if(!_0x45910e['newValue']){if('default'==_0x45910e['oldValue'])return _0x73b5b2;let _0xecdac1=_0x2d0c8d['head'];for(;_0xecdac1;){if(_0xecdac1['data']&&'listType'==_0xecdac1['data']['key']&&_0xecdac1['data']['newValue'])return _0x73b5b2;_0xecdac1=_0xecdac1['next'];}return{'type':'format','content':''+o(_0x17a2fb,'*Remove\x20format:*\x20%0',o(_0x17a2fb,this['_getTranslationKeyForListStyle'](_0x45910e['oldValue'])))};}if('default'!=_0x45910e['newValue'])return{'type':'format','content':''+o(_0x17a2fb,'*Set\x20format:*\x20%0',o(_0x17a2fb,this['_getTranslationKeyForListStyle'](_0x45910e['newValue'])))};let _0x51943f=_0x2d0c8d['head'];for(;_0x51943f;){if(_0x51943f['data']&&'listType'==_0x51943f['data']['key']&&_0x51943f['data']['newValue']&&_0x51943f['data']['oldValue'])return _0x73b5b2;_0x51943f=_0x51943f['next'];}return{'type':'format','content':o(_0x17a2fb,'*Set\x20format:*\x20%0',o(_0x17a2fb,'ELEMENT_'+_0x2d0c8d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x183aa3=this['editor'],_0x4fb428=_0x183aa3['locale'];_0x183aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8c39c=>{if('formatBlock'!=_0xa8c39c['type'])return;const {data:_0x16d580}=_0xa8c39c;if(!_0x16d580)return;let _0x64f478,_0x4ce2f0;switch(_0x16d580['commandName']){case'listStyle':_0x64f478='*Change\x20to:*\x20%0',_0x4ce2f0={'type':'format','content':o(_0x4fb428,_0x64f478,o(_0x4fb428,this['_getTranslationKeyForListStyle'](_0x16d580['commandParams'][0x0]['type'])))};break;case'listReversed':_0x64f478=_0x16d580['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ce2f0={'type':'format','content':o(_0x4fb428,_0x64f478)};break;case'listStart':_0x64f478='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ce2f0={'type':'format','content':o(_0x4fb428,_0x64f478,_0x16d580['commandParams'][0x0]['startIndex'])};}return _0x4ce2f0;});}['_getTranslationKeyForListStyle'](_0x4c5ece){return'ELEMENT_'+function(_0xdb86a){if(ye['includes'](_0xdb86a))return'bulleted';if(Se['includes'](_0xdb86a))return'numbered';return null;}(_0x4c5ece)['toUpperCase']()+'_LIST_'+_0x4c5ece['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x518f0a{static get['requires'](){return[_0x337a10];}['init'](){const _0x2adc95=this['editor'],_0x22c172=_0x2adc95['plugins']['get']('TrackChangesEditing'),_0xb86137=_0x2adc95['commands']['get']('enter');_0x22c172['enableCommand']('enter',()=>{_0x2adc95['model']['change'](_0x397950=>{const _0x4d4fab=_0x2adc95['model']['document']['selection'],_0x37c274=_0x4d4fab['getFirstPosition'](),_0x268a2b=_0x1b6799['fromRange'](_0x4d4fab['getFirstRange']());if(_0xb86137['enterBlock'](_0x397950)){const _0x28328a=_0x2adc95['model']['createPositionAt'](_0x37c274['parent']['nextSibling'],0x0),_0x45ba27=_0x397950['createRange'](_0x37c274,_0x28328a);_0x22c172['markInsertion'](_0x45ba27);}else _0x397950['setSelection'](_0x397950['createRange'](_0x268a2b['end']));_0x268a2b['detach'](),_0xb86137['fire']('afterExecute',{'writer':_0x397950});});}),_0x2adc95['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2adc95,'split'),{'priority':'high'}),_0x2adc95['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x78ef79,_0x284040,_0x5ca4e4)=>{const _0x5e7bec=_0x5ca4e4['mapper']['markerNameToElements'](_0x284040['markerName']);if(_0x5e7bec){for(const _0x199b9a of _0x5e7bec)_0x199b9a['hasClass']('ck-suggestion-marker-split')&&(_0x5ca4e4['mapper']['unbindElementFromMarkerName'](_0x199b9a,_0x284040['markerName']),_0x5ca4e4['writer']['remove'](_0x199b9a));}},{'priority':'high'}),_0x2adc95['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x263be4,_0xbf7370,_0x2e3e5a)=>{_0x2e3e5a['options']['showSuggestionHighlights']&&_e(_0x2adc95,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x263be4,_0xbf7370,_0x2e3e5a);},{'priority':'high'});}}class X extends _0x518f0a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2e536c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e536c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2e536c['enableCommand']('findNext'),_0x2e536c['enableCommand']('findPrevious'),_0x2e536c['enableCommand']('replace'),_0x2e536c['enableCommand']('replaceAll');}['handleFindCommand'](_0xb70c08,_0xd93ca4,_0x165395={}){const _0x4803bc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xb70c08(_0x31b771=>{let _0x46fee7=('string'==typeof _0xd93ca4?_0x4803bc['findByTextCallback'](_0xd93ca4,_0x165395):_0xd93ca4)(_0x31b771);Array['isArray'](_0x46fee7)&&(_0x46fee7={'results':_0x46fee7,'searchText':'string'==typeof _0xd93ca4?_0xd93ca4:''});const _0x1f7d61=_0x46fee7['results']['filter'](_0x5a8704=>!0x1===this['_isInDeletionRange'](_0x5a8704,_0x31b771['item']));return{..._0x46fee7,'results':_0x1f7d61};},_0x165395);}['_isInDeletionRange'](_0x7a9672,_0x27b38a){const _0x5b3be3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27b38a,_0x7a9672['start']),this['editor']['model']['createPositionAt'](_0x27b38a,_0x7a9672['end']));for(const _0x256e56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b3be3['getIntersection'](_0x256e56['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x518f0a{['afterInit'](){const _0x20af9f=this['editor']['locale'],_0x247d5c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x8f0c08,commandName:_0x41856e}of ro)this['editor']['plugins']['has'](_0x8f0c08)&&(_0x247d5c['enableDefaultAttributesIntegration'](_0x41856e),_0x247d5c['registerInlineAttribute'](_0x41856e));_0x247d5c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20af9f,'FORMAT_FONT_SIZE')),_0x247d5c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20af9f,'FORMAT_FONT_FAMILY')),_0x247d5c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20af9f,'FORMAT_FONT_COLOR')),_0x247d5c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20af9f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a8c46=this['editor'],_0x1383bc=_0x1a8c46['locale'];_0x1a8c46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x336926=>{const _0x4ee31c=_0x1383bc['t'];if('formatInline'!=_0x336926['type'])return;const {data:_0x56d0da}=_0x336926;if(null!=_0x56d0da){if('fontSize'==_0x56d0da['commandName']){const _0x1821de=_0x56d0da['commandParams'][0x0]['value'];if(_0x1821de){const _0x56b3a3=_0x4ee31c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x450e33=>_0x450e33['model']==_0x1821de)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1383bc,'*Set\x20font\x20size:*\x20%0',_0x56b3a3)};}return{'type':'format','content':o(_0x1383bc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x56d0da['commandName']){const _0x54fa35=_0x56d0da['commandParams'][0x0]['value'];return _0x54fa35?{'type':'format','content':o(_0x1383bc,'*Set\x20font\x20family:*\x20%0',_0x54fa35)}:{'type':'format','content':o(_0x1383bc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x56d0da['commandName']){const _0x20341b=_0x56d0da['commandParams'][0x0]['value'];if(_0x20341b){const _0x1aa976=_0x85ef21(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2da72c=>_0x2da72c['model']==_0x20341b);let _0x59ecff=_0x20341b,_0x3c8078='';return _0x1aa976&&(_0x59ecff=_0x1aa976['label'],_0x3c8078=_0x4ee31c(_0x59ecff)['toLowerCase']()),{'type':'format','content':o(_0x1383bc,'*Set\x20font\x20color:*\x20%0',_0x3c8078)['trim'](),'color':{'value':_0x20341b,'title':_0x3c8078||_0x59ecff}};}return{'type':'format','content':o(_0x1383bc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x56d0da['commandName']){const _0x4a5d6f=_0x56d0da['commandParams'][0x0]['value'];if(_0x4a5d6f){const _0xfe9c44=_0x85ef21(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1b46cb=>_0x1b46cb['model']==_0x4a5d6f);let _0x498181=_0x4a5d6f,_0x26154d='';return _0xfe9c44&&(_0x498181=_0xfe9c44['label'],_0x26154d=_0x4ee31c(_0x498181)['toLowerCase']()),{'type':'format','content':o(_0x1383bc,'*Set\x20font\x20background\x20color:*\x20%0',_0x26154d)['trim'](),'color':{'value':_0x4a5d6f,'title':_0x26154d||_0x498181}};}return{'type':'format','content':o(_0x1383bc,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x518f0a{['afterInit'](){const _0x256160=this['editor'],_0x3f7e76=_0x256160['plugins']['get']('TrackChangesEditing'),_0x120294=_0x256160['commands']['get']('copyFormat'),_0x1e87d0=_0x256160['commands']['get']('pasteFormat');_0x120294&&_0x1e87d0&&(_0x3f7e76['enableDefaultAttributesIntegration']('pasteFormat'),_0x3f7e76['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe57307=this['editor'],_0x119fc9=_0xe57307['locale'];_0xe57307['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b667d=>{if('formatBlock'!=_0x2b667d['type']&&'formatInline'!=_0x2b667d['type'])return;const {data:_0x291224}=_0x2b667d;if(_0x291224&&'pasteFormat'===_0x291224['commandName']){const _0x971496=[],_0x2dcfa3=_0x291224['commandParams'][0x0];for(const [_0x95f16c,_0x58fb6c]of Object['entries'](_0x2dcfa3))_0x971496['push'](so(_0xe57307,_0x95f16c,_0x58fb6c));return _0x971496['length']?{'type':'format','content':o(_0x119fc9,'*Set\x20format\x20to:*\x20%0',_0x971496['join'](',\x20'))}:{'type':'format','content':o(_0x119fc9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x194d85,_0x58c4cc,_0x4f1c72){const _0x160ea7=_0x194d85['locale']['t'],_0x330103=_0x58c4cc['split'](/(?=[A-Z])/)['join']('\x20'),_0x3adda0=_0x160ea7(_0x330103['charAt'](0x0)['toUpperCase']()+_0x330103['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f1c72)return _0x3adda0;if('fontColor'===_0x58c4cc||'fontBackgroundColor'===_0x58c4cc){const _0x507fb8=_0x85ef21(_0x194d85['config']['get']('fontColor.colors'))['find'](_0x36fbca=>_0x36fbca['model']==_0x4f1c72);return _0x3adda0+'\x20('+(_0x507fb8?_0x160ea7(_0x507fb8['label'])['toLowerCase']():_0x4f1c72)+')';}if('fontSize'===_0x58c4cc&&isNaN(parseFloat(_0x4f1c72))){const _0xb40a85=_0x194d85['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x194d85['config']['get']('fontSize.options'))['find'](_0xe7ef29=>_0xe7ef29['model']==_0x4f1c72);return _0x3adda0+'\x20('+(_0xb40a85?_0x160ea7(_0xb40a85['title'])['toLowerCase']():_0x4f1c72)+')';}return _0x3adda0+'\x20('+_0x4f1c72+')';}class tt extends _0x518f0a{['_headingOptions'];['afterInit'](){const _0x2f6fe4=this['editor'];if(!_0x2f6fe4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f6fe4['config']['get']('heading.options');const _0xfdbdc6=_0x2f6fe4['locale'],_0x47a179=_0x2f6fe4['plugins']['get']('TrackChangesEditing');_0x47a179['enableDefaultAttributesIntegration']('heading');for(const _0x307e45 of this['_headingOptions'])'paragraph'!=_0x307e45['model']&&_0x47a179['descriptionFactory']['registerElementLabel'](_0x307e45['model'],_0x4ece83=>{const _0x13b69e=this['_getHeadingLevel'](_0x307e45['model']);return null!==_0x13b69e?_0x4a6972(_0x4ece83,_0x13b69e):_0x3d9bf5(_0x4ece83,_0x307e45['title']);});function _0x4a6972(_0xc44879,_0x5990a2){return o(_0xfdbdc6,'ELEMENT_HEADING',[_0xc44879,_0x5990a2]);}function _0x3d9bf5(_0x1bc3c2,_0x2a78a5){return o(_0xfdbdc6,'ELEMENT_HEADING_CUSTOM',[_0x1bc3c2,_0x2a78a5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x115eb4=this['editor'],_0x3705cd=_0x115eb4['locale'];function _0x5daa5e(_0x1fa4c3,_0x414e10){return o(_0x3705cd,'ELEMENT_HEADING_CUSTOM',[_0x1fa4c3,_0x414e10]);}_0x115eb4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26c8da=>{if('formatBlock'!=_0x26c8da['type'])return;const {data:_0x19051b}=_0x26c8da;if(_0x19051b&&'heading'==_0x19051b['commandName']){const _0x323360=_0x19051b['commandParams'][0x0]['value'],_0x3cdb00=this['_getHeadingLevel'](_0x323360);if(null!==_0x3cdb00)return{'type':'format','content':o(_0x3705cd,'*Change\x20to:*\x20%0',(_0x5bd5ec=0x1,_0x46c812=_0x3cdb00,o(_0x3705cd,'ELEMENT_HEADING',[_0x5bd5ec,_0x46c812])))};const _0x79016b=this['_headingOptions']['find'](_0x541e92=>_0x541e92['model']===_0x323360)['title'];return{'type':'format','content':o(_0x3705cd,'*Change\x20to:*\x20%0',_0x5daa5e(0x1,_0x79016b))};}var _0x5bd5ec,_0x46c812;});}['_getHeadingLevel'](_0x420c60){const _0x3af930=_0x420c60['match'](/^heading(\d+)/);if(_0x3af930)return _0x3af930[0x1];const _0x384f7c=this['_headingOptions']?.['find'](_0x3bc012=>_0x3bc012['model']==_0x420c60);if(_0x384f7c&&_0x384f7c['view']){const _0x1b28b9=_0x384f7c['view'],_0x2aae1b=(_0x1b28b9['name']??_0x1b28b9)['match'](/^h(\d+)/);if(_0x2aae1b)return _0x2aae1b[0x1];}return null;}}class et extends _0x518f0a{['afterInit'](){const _0x46e7e7=this['editor'];if(!_0x46e7e7['plugins']['has']('HighlightEditing'))return;const _0x5aca0c=_0x46e7e7['plugins']['get']('TrackChangesEditing'),_0x2d9fc3=_0x46e7e7['locale'];_0x5aca0c['enableDefaultAttributesIntegration']('highlight'),_0x5aca0c['registerInlineAttribute']('highlight'),_0x5aca0c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2d9fc3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x89b845=this['editor'],_0x410d0f=_0x89b845['locale'];_0x89b845['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16839c=>{if('formatInline'!=_0x16839c['type'])return;const {data:_0x36f343}=_0x16839c;if(_0x36f343&&'highlight'==_0x36f343['commandName']){const _0x7b654e=_0x410d0f['t'],_0x3c59f3=_0x36f343['commandParams'][0x0]['value'];if(_0x3c59f3){const _0x3e0da1=_0x89b845['config']['get']('highlight.options')['find'](_0x29f2f6=>_0x29f2f6['model']==_0x3c59f3),_0x57a334=_0x7b654e(_0x3e0da1['title'])['toLowerCase']();return{'type':'format','content':o(_0x410d0f,'*Set\x20highlight:*\x20%0',_0x57a334),'color':{'value':_0x3e0da1['color'],'title':_0x3e0da1['title']}};}return{'type':'format','content':o(_0x410d0f,'*Remove\x20highlight*',o(_0x410d0f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x518f0a{['afterInit'](){const _0x137102=this['editor'];if(!_0x137102['plugins']['has']('HorizontalLineEditing'))return;_0x137102['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x10b276=_0x137102['plugins']['get']('TrackChangesEditing'),_0x3eb154=_0x137102['locale'];_0x10b276['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3c0601=>o(_0x3eb154,'ELEMENT_HORIZONTAL_LINE',_0x3c0601)),_0x137102['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa10602,{writer:_0x3dc40f,options:_0x4260d1})=>{if(!_0x4260d1['showSuggestionHighlights'])return null;const _0x3d4eda=_0x3dc40f['createContainerElement']('div'),_0x55a68f=_0x3dc40f['createEmptyElement']('hr');return _0x3dc40f['addClass']('ck-horizontal-line',_0x3d4eda),_0x3dc40f['insert'](_0x3dc40f['createPositionAt'](_0x3d4eda,0x0),_0x55a68f),_0x3d4eda;},'converterPriority':'high'});}}class st extends _0x518f0a{['afterInit'](){const _0x249050=this['editor'];if(!_0x249050['plugins']['has']('HtmlEmbed'))return;const _0x742298=_0x249050['plugins']['get']('TrackChangesEditing'),_0x554b73=_0x249050['locale'];_0x742298['descriptionFactory']['registerElementLabel']('rawHtml',_0x57469e=>o(_0x554b73,'ELEMENT_HTML_EMBED',_0x57469e)),_0x742298['enableDefaultAttributesIntegration']('htmlEmbed'),_0x742298['registerBlockAttribute']('value'),_0x742298['descriptionFactory']['registerDescriptionCallback'](_0x1d54d3=>{if('attribute'!=_0x1d54d3['type'])return;const {data:_0x514aea}=_0x1d54d3;if(_0x514aea&&'value'==_0x514aea['key']&&_0x1d54d3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4f2c1e=o(_0x554b73,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x554b73,'*Change\x20%0\x20content*',_0x4f2c1e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a7ade=this['editor'],_0x4918cd=_0x2a7ade['locale'];_0x2a7ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x360257=>{if('formatBlock'!=_0x360257['type'])return;const {data:_0xb94da0}=_0x360257;if(_0xb94da0&&'htmlEmbed'==_0xb94da0['commandName']){const _0x1d184d=o(_0x4918cd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4918cd,'*Change\x20%0\x20content*',_0x1d184d)};}});}}class nt extends _0x518f0a{['afterInit'](){const _0x54ec8c=this['editor'];if(!_0x54ec8c['plugins']['has']('ImageEditing'))return;const _0x3b9e5d=_0x54ec8c['plugins']['get']('TrackChangesEditing'),_0x2cf0ce=_0x54ec8c['plugins']['get']('ImageUtils'),_0x315917=_0x54ec8c['locale'];_0x3b9e5d['enableCommand']('insertImage'),_0x3b9e5d['descriptionFactory']['registerElementLabel']('imageBlock',_0x5d53bd=>o(_0x315917,'ELEMENT_IMAGE',_0x5d53bd)),_0x3b9e5d['descriptionFactory']['registerElementLabel']('imageInline',_0x3e3b29=>o(_0x315917,'ELEMENT_INLINE_IMAGE',_0x3e3b29)),_0x3b9e5d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x315917,'ELEMENT_CAPTION')),_0x54ec8c['plugins']['has']('ImageUploadEditing')&&_0x3b9e5d['enableCommand']('uploadImage'),_0x54ec8c['plugins']['has']('ImageBlockEditing')&&_0x54ec8c['plugins']['has']('ImageInlineEditing')&&(_0x3b9e5d['enableCommand']('imageTypeInline',(_0x2f22e9,_0x29badc)=>{const _0x7b1c36=_0x2cf0ce['getClosestSelectedImageElement'](_0x54ec8c['model']['document']['selection']);_0x54ec8c['model']['change'](()=>{_0x3b9e5d['markBlockFormat'](_0x7b1c36,{'commandName':'imageTypeInline','commandParams':[_0x29badc]},[],'convertBlockImageToInline');});}),_0x3b9e5d['enableCommand']('imageTypeBlock',(_0x11bf2c,_0x5eaa49)=>{_0x54ec8c['model']['change'](_0x2d0528=>{let _0x29f179=_0x2cf0ce['getClosestSelectedImageElement'](_0x54ec8c['model']['document']['selection']),_0x479fea=_0x2d0528['createRangeOn'](_0x29f179);const _0x2dbe4e=_0x5b676b['fromPosition'](_0x479fea['start'],'toPrevious'),_0x4e034f=_0x5b676b['fromPosition'](_0x479fea['end'],'toNext');_0x3b9e5d['forceDefaultExecution'](()=>_0x11bf2c(_0x5eaa49)),_0x29f179=_0x2cf0ce['getClosestSelectedImageElement'](_0x54ec8c['model']['document']['selection']),_0x479fea=_0x2d0528['createRangeOn'](_0x29f179);const _0x24a02e=_0x2d0528['createRange'](_0x2dbe4e,_0x4e034f);_0x2dbe4e['detach'](),_0x4e034f['detach'](),_0x3b9e5d['markBlockFormat'](_0x29f179,{'commandName':'imageTypeInline','commandParams':[_0x5eaa49]},[],'convertInlineImageToBlock'),_0x24a02e['start']['isBefore'](_0x479fea['start'])&&_0x3b9e5d['markInsertion'](_0x2d0528['createRange'](_0x24a02e['start'],_0x479fea['start']),'convertInlineImageToBlock'),_0x479fea['end']['isBefore'](_0x24a02e['end'])&&_0x3b9e5d['markInsertion'](_0x2d0528['createRange'](_0x479fea['end'],_0x24a02e['end']),'convertInlineImageToBlock');});}),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3b9e5d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4ff985])=>{const _0x405f81=_0x3b9e5d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x576a6f=_0x4ff985['start'],_0x1cf89e=_0x4ff985['end'];const _0x25f5f8=_0x54ec8c['model']['schema']['getNearestSelectionRange'](_0x576a6f,'backward'),_0x29a120=_0x54ec8c['model']['schema']['getNearestSelectionRange'](_0x1cf89e,'forward');_0x25f5f8['isCollapsed']&&(_0x576a6f=_0x25f5f8['start']),_0x29a120['isCollapsed']&&(_0x1cf89e=_0x29a120['end']),_0x405f81([_0x54ec8c['model']['createRange'](_0x576a6f,_0x1cf89e)]);}),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2dc4e3),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2dc4e3)),_0x54ec8c['plugins']['has']('ImageCaptionEditing')&&(_0x3b9e5d['enableCommand']('toggleImageCaption',(_0x49cb5a,_0x16ee43)=>{const _0x6b1cc4=_0x54ec8c['plugins']['get']('ImageCaptionUtils');let _0x1c23a5=_0x2cf0ce['getClosestSelectedImageElement'](_0x54ec8c['model']['document']['selection']),_0x2464d3=_0x6b1cc4['getCaptionFromImageModelElement'](_0x1c23a5);_0x54ec8c['model']['change'](()=>{if(_0x2464d3)return void _0x3b9e5d['markDeletion'](_0x54ec8c['model']['createRangeOn'](_0x2464d3));const _0x4e1db8=_0x2cf0ce['isBlockImage'](_0x1c23a5);_0x49cb5a(_0x16ee43),_0x1c23a5=_0x2cf0ce['getClosestSelectedImageElement'](_0x54ec8c['model']['document']['selection']),_0x2464d3=_0x6b1cc4['getCaptionFromImageModelElement'](_0x1c23a5),_0x3b9e5d['markInsertion'](_0x54ec8c['model']['createRangeOn'](_0x2464d3),_0x4e1db8?null:'imageCaption');});}),_0x3b9e5d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2dc4e3));const _0x39480a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x265081(_0x424153,_0xbe17e7){const _0x460b0f=_0x39480a['findIndex'](({type:_0x12a983,subType:_0x3e8cfd})=>_0x424153['type']==_0x12a983&&_0x424153['subType']==_0x3e8cfd),_0x21fa0e=_0x39480a['findIndex'](({type:_0x519bf6,subType:_0xdd5330})=>_0xbe17e7['type']==_0x519bf6&&_0xbe17e7['subType']==_0xdd5330);if(_0x460b0f<0x0||_0x21fa0e<0x0)return!0x1;const _0x34241f=_0x424153['getFirstRange'](),_0x41375=_0xbe17e7['getFirstRange']();if((0x0==_0x460b0f||0x1==_0x460b0f)&&0x2==_0x21fa0e&&_0x34241f['isIntersecting'](_0x41375))return!0x0;if(0x2==_0x460b0f&&0x3==_0x21fa0e){const _0x49a9d1=_0x3b9e5d['_findSuggestions'](_0x34241f,'insertion')['filter'](({suggestion:_0x4cc200,meta:_0x4a63c1})=>_0x4a63c1['isOwn']&&'convertInlineImageToBlock'==_0x4cc200['subType']);if(_0x49a9d1['length']>0x1&&_0x41375['end']['isEqual'](_0x34241f['start']))return!0x0;if(0x1==_0x49a9d1['length']&&(_0x34241f['start']['isEqual'](_0x41375['end'])||_0x34241f['end']['isEqual'](_0x41375['start'])))return!0x0;}if(0x3==_0x460b0f&&0x3==_0x21fa0e&&_0x34241f['start']['isBefore'](_0x41375['start'])){const _0xb2b2c2=_0x34241f['end']['nodeAfter'],_0x4d225b=_0x41375['start']['nodeBefore'];return _0x2cf0ce['isBlockImage'](_0xb2b2c2)&&_0xb2b2c2===_0x4d225b;}return!0x1;}function _0x2dc4e3(_0x2ff611,_0x41f8b4){return _0x265081(_0x2ff611,_0x41f8b4)?[_0x2ff611,_0x41f8b4]:_0x265081(_0x41f8b4,_0x2ff611)?[_0x41f8b4,_0x2ff611]:null;}_0x54ec8c['plugins']['has']('ImageResize')&&(_0x3b9e5d['enableDefaultAttributesIntegration']('resizeImage'),_0x3b9e5d['registerBlockAttribute']('resizedWidth'),_0x3b9e5d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x315917,'FORMAT_IMAGE_SIZE'))),_0x54ec8c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3b9e5d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3b9e5d['registerBlockAttribute']('alt')),_0x3b9e5d['descriptionFactory']['registerDescriptionCallback'](_0x591f5a=>{if(!!_0x39480a['find'](({type:_0x3d1ba4,subType:_0x40241b})=>_0x591f5a['type']==_0x3d1ba4&&_0x591f5a['subType']==_0x40241b))return _0x591f5a['previous']?{}:void 0x0;}),_0x3b9e5d['descriptionFactory']['registerDescriptionCallback'](_0x3e3d38=>{if('insertion'==_0x3e3d38['type']||'deletion'==_0x3e3d38['type']){const _0x587a49=_0x3e3d38['getContainedElement']();if(_0x587a49&&_0x587a49['is']('element','caption'))return{'type':'insertion'==_0x3e3d38['type']?'addObject':'removeObject','element':_0x587a49,'quantity':0x1};}}),_0x3b9e5d['descriptionFactory']['registerDescriptionCallback'](_0x3bd188=>'formatBlock'==_0x3bd188['type']&&'convertInlineImageToBlock'==_0x3bd188['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3bd188['type']&&'convertBlockImageToInline'==_0x3bd188['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3b9e5d['descriptionFactory']['registerDescriptionCallback'](_0x1b0295=>{if('attribute'!=_0x1b0295['type'])return;const {data:_0x16985c}=_0x1b0295;if(!_0x16985c||'alt'!=_0x16985c['key'])return;const _0x2498e9=_0x16985c['newValue'];return _0x2498e9?{'type':'format','content':o(_0x315917,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2498e9+'\x22')}:{'type':'format','content':o(_0x315917,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3adffe=this['editor'],_0x4f55b0=_0x3adffe['locale'];_0x3adffe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc031=>{if('formatBlock'!=_0x5dc031['type']&&'formatInline'!=_0x5dc031['type'])return;const {data:_0x468f6e}=_0x5dc031;if(_0x468f6e){if('imageTextAlternative'==_0x468f6e['commandName']){const _0x266c9f=_0x468f6e['commandParams'][0x0]['newValue'];return _0x266c9f?{'type':'format','content':o(_0x4f55b0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x266c9f+'\x22')}:{'type':'format','content':o(_0x4f55b0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x468f6e['commandName']){const _0x4317a5=_0x468f6e['commandParams'][0x0]['width'];return _0x4317a5?{'type':'format','content':o(_0x4f55b0,'*Set\x20image\x20width:*\x20%0',_0x4317a5)}:{'type':'format','content':o(_0x4f55b0,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x518f0a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a7308=this['editor']['locale'],_0x253556=this['editor']['plugins']['get']('TrackChangesEditing');_0x253556['enableDefaultAttributesIntegration']('replaceImageSource'),_0x253556['registerBlockAttribute']('src'),_0x253556['descriptionFactory']['registerDescriptionCallback'](_0x361a24=>{if('attribute'!=_0x361a24['type'])return;const {data:_0x31f69b}=_0x361a24;return _0x31f69b&&'src'==_0x31f69b['key']?_0x31f69b['newValue']&&_0x31f69b['oldValue']?{'type':'format','content':o(_0x1a7308,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x363bab=this['editor']['plugins']['get']('TrackChangesEditing');_0x363bab['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x363bab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x363bab['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x363bab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42cd39=this['editor'],_0x5d1ade=_0x42cd39['locale'];_0x42cd39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd46f07=>{if('formatBlock'!=_0xd46f07['type']&&'formatInline'!=_0xd46f07['type'])return;const {data:_0x32640c}=_0xd46f07;if(!_0x32640c||'replaceImageSource'!=_0x32640c['commandName'])return;return{'type':'format','content':o(_0x5d1ade,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x518f0a{['afterInit'](){const _0x22fc0a=this['editor'];if(!_0x22fc0a['plugins']['has']('ImageStyleEditing'))return;const _0x5d738a=_0x22fc0a['plugins']['get']('TrackChangesEditing'),_0x2c555c=_0x22fc0a['plugins']['get']('ImageUtils'),_0x2917e8={};_0x5d738a['enableCommand']('imageStyle',(_0x285f7b,_0x5b5661)=>{const _0x79ac1a=_0x22fc0a['plugins']['get']('Users')['me'],_0x490778=_0x22fc0a['commands']['get']('imageStyle');let _0x12c691=_0x2c555c['getClosestSelectedImageElement'](_0x22fc0a['model']['document']['selection']),_0x536167=_0x22fc0a['model']['createRangeOn'](_0x12c691),_0x3783ce=_0x490778['value'];if(_0x3783ce==_0x5b5661['value'])return;const _0x3a42d4={'commandName':'imageStyle','commandParams':[_0x5b5661],'formatGroupId':_0x3946ed()};_0x22fc0a['model']['change'](()=>{if(_0x5d738a['getSuggestions']()['filter'](_0x4db540=>_0x4db540['isInContent']&&_0x79ac1a==_0x4db540['author']&&('formatBlock'==_0x4db540['type']||'formatInline'==_0x4db540['type'])&&('imageStylePreApply'==_0x4db540['subType']||'imageStylePostApply'==_0x4db540['subType'])&&_0x4db540['getFirstRange']()['isEqual'](_0x536167))['forEach'](_0x3b2f62=>_0x5d738a['discardSuggestion'](_0x3b2f62['head'])),_0x12c691=_0x2c555c['getClosestSelectedImageElement'](_0x22fc0a['model']['document']['selection']),_0x536167=_0x22fc0a['model']['createRangeOn'](_0x12c691),_0x490778['refresh'](),_0x22fc0a['commands']['get']('imageTypeInline')['refresh'](),_0x22fc0a['commands']['get']('imageTypeBlock')['refresh'](),_0x3783ce=_0x490778['value'],_0x3783ce!=_0x5b5661['value'])return _0x2c555c['isInlineImage'](_0x12c691)&&_0x490778['shouldConvertImageType'](_0x5b5661['value'],_0x12c691)?(_0x285f7b({..._0x5b5661,'setImageSizes':!0x1}),_0x12c691=_0x2c555c['getClosestSelectedImageElement'](_0x22fc0a['model']['document']['selection']),void _0x5d738a['markBlockFormat'](_0x12c691,{..._0x3a42d4,'commandReversedParams':[{'value':_0x3783ce||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c555c['isBlockImage'](_0x12c691)?_0x5d738a['markBlockFormat'](_0x12c691,_0x3a42d4,[],'imageStylePostApply'):_0x5d738a['markInlineFormat'](_0x536167,_0x3a42d4,'imageStylePostApply'));});});for(const _0x1f4b91 of _0x22fc0a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2917e8[_0x1f4b91['name']]=_0x1f4b91['title']['toLowerCase']();_0x5d738a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5d738a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5d738a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5d738a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ce817])=>{_0x2c555c['setImageNaturalSizeAttributes'](_0x4ce817['getContainedElement']());}),_0x5d738a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5ab23d,_0x1b9071)=>{_0x5d738a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5ab23d,{'commandName':_0x1b9071['commandName'],'commandParams':_0x1b9071['commandReversedParams']});}),_0x5d738a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3eb37f,_0x55f9a1){if(_0x3f7193(_0x3eb37f,_0x55f9a1))return[_0x3eb37f,_0x55f9a1];if(_0x3f7193(_0x55f9a1,_0x3eb37f))return[_0x55f9a1,_0x3eb37f];return null;});const _0x2f787d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f7193(_0x402557,_0x45fa9b){const _0x37791c=_0x2f787d['findIndex'](({type:_0x1e2e76,subType:_0x151a50})=>_0x402557['type']==_0x1e2e76&&_0x402557['subType']==_0x151a50),_0x2dde5c=_0x2f787d['findIndex'](({type:_0x4d3e3e,subType:_0x145658})=>_0x45fa9b['type']==_0x4d3e3e&&_0x45fa9b['subType']==_0x145658);if(_0x37791c<0x0||_0x2dde5c<0x0)return!0x1;const _0x3646d5=_0x402557['getFirstRange'](),_0x2d34c1=_0x45fa9b['getFirstRange']();if((0x0==_0x37791c||0x1==_0x37791c)&&0x2==_0x2dde5c&&_0x3646d5['isIntersecting'](_0x2d34c1))return!0x0;if(0x2==_0x37791c&&0x3==_0x2dde5c){const _0x3dabc7=_0x5d738a['_findSuggestions'](_0x3646d5,'insertion')['filter'](({suggestion:_0x4138eb,meta:_0x18283e})=>_0x18283e['isOwn']&&'convertInlineImageToBlock'==_0x4138eb['subType']);if(_0x3dabc7['length']>0x1&&_0x2d34c1['end']['isEqual'](_0x3646d5['start']))return!0x0;if(0x1==_0x3dabc7['length']&&(_0x3646d5['start']['isEqual'](_0x2d34c1['end'])||_0x3646d5['end']['isEqual'](_0x2d34c1['start'])))return!0x0;}if(0x3==_0x37791c&&0x3==_0x2dde5c&&_0x3646d5['start']['isBefore'](_0x2d34c1['start'])){const _0xc5ded9=_0x3646d5['end']['nodeAfter'],_0x4269dc=_0x2d34c1['start']['nodeBefore'];return _0x2c555c['isBlockImage'](_0xc5ded9)&&_0xc5ded9===_0x4269dc;}return!0x1;}_0x22fc0a['model']['document']['registerPostFixer'](()=>{let _0x7d8f1e=!0x1;const _0x1892c5=Array['from'](_0x22fc0a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1645e3,data:_0x10ec07}of _0x1892c5){const {group:_0xc645a6,type:_0x1cd4a8,subType:_0x3b3937,id:_0x28e740}=_0x5d738a['_splitMarkerName'](_0x1645e3);if('suggestion'==_0xc645a6&&_0x5d738a['hasSuggestion'](_0x28e740)){if('formatBlock'==_0x1cd4a8&&('imageStylePreApply'==_0x3b3937||'imageStylePostApply'==_0x3b3937)){const _0x478f95=_0x5d738a['getSuggestion'](_0x28e740);if(_0x10ec07['newRange']){const _0x596890=_0x478f95['getFirstRange']()['getContainedElement']();if(_0x2c555c['isBlockImage'](_0x596890))continue;_0x5d738a['discardSuggestion'](_0x478f95),_0x7d8f1e=!0x0;}}if('insertion'==_0x1cd4a8&&'imageCaption'==_0x3b3937&&!_0x10ec07['newRange']){const _0x5882ae=_0x5d738a['getSuggestion'](_0x28e740);_0x5882ae['next']&&_0x5882ae['next']['isInContent']&&(_0x5d738a['discardSuggestion'](_0x5882ae['next']),_0x7d8f1e=!0x0);}}}return _0x7d8f1e;}),this['_registerLegacyDescription'](_0x2917e8);}['_registerLegacyDescription'](_0x3b5afd){const _0x499334=this['editor'],_0x599193=_0x499334['locale'];_0x499334['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2297c7=>{if('formatBlock'!=_0x2297c7['type']&&'formatInline'!=_0x2297c7['type'])return;const {data:_0x39d5a8}=_0x2297c7;if(!_0x39d5a8||'imageStyle'!=_0x39d5a8['commandName'])return;const _0x86bc16=_0x39d5a8['commandParams'][0x0]['value'];return _0x46350b('side'===_0x86bc16?o(_0x599193,'FORMAT_SIDE_IMAGE'):_0x3b5afd[_0x86bc16]||_0x86bc16);function _0x46350b(_0x23812d){return{'type':'format','content':o(_0x599193,'*Format:*\x20%0',_0x23812d)};}});}}class at extends _0x518f0a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3aac94){super(_0x3aac94),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ed82a=this['editor'],_0x5b9856=_0x1ed82a['commands']['get']('importWord'),_0x614632=_0x1ed82a['commands']['get']('trackChanges');_0x5b9856&&(_0x5b9856['on']('execute',(_0x184e45,[,_0x455ea4])=>{this['_trackChangesValueDuringImport']=_0x614632['value'],_0x455ea4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b9856,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b9856,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x614632['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ed82a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4b7863,_0x4fdb22){const {suggestions:_0x337444}=_0x4fdb22,_0x181308=this['editor']['commands']['get']('trackChanges'),_0x5b136c=_0x181308['value'];this['_trackChangesValueDuringImport']!==_0x5b136c&&(_0x181308['execute'](),this['_trackChangesExecuted']=!0x0),_0x337444&&_0x337444['forEach'](({id:_0x4ff7e1,type:_0x4fc8f6,author:_0x437489,created_at:_0x3ab130})=>{const _0x23ff9a={'id':_0x4ff7e1,'type':_0x4fc8f6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x437489,'createdAt':_0x3ab130?new Date(_0x3ab130):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23ff9a);});}}class ct extends _0x518f0a{['afterInit'](){const _0x1cb645=this['editor'],_0x44bd35=_0x1cb645['plugins']['get']('TrackChangesEditing');if(_0x1cb645['plugins']['has']('IndentEditing')&&(_0x44bd35['enableCommand']('indent'),_0x44bd35['enableCommand']('outdent')),_0x1cb645['plugins']['has']('IndentBlock')){for(const _0x20a2dd of['indentBlock','outdentBlock'])_0x44bd35['enableDefaultAttributesIntegration'](_0x20a2dd);}const _0x947b9=_0x1cb645['locale'];_0x44bd35['registerBlockAttribute']('blockIndent'),_0x44bd35['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x947b9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b873e=this['editor'],_0x36822f=_0x5b873e['locale'],_0x559330=_0x5b873e['plugins']['get']('TrackChangesEditing');_0x559330['descriptionFactory']['registerDescriptionCallback'](_0x55dd59=>{if('formatBlock'!=_0x55dd59['type'])return;const {data:_0x2c6f11}=_0x55dd59;if(!_0x2c6f11)return;if('indentBlock'!=_0x2c6f11['commandName']&&'outdentBlock'!=_0x2c6f11['commandName'])return;const _0x391e90=_0x55dd59['getItems']()[0x0],_0x414cec=_0x559330['descriptionFactory']['getItemLabel'](_0x391e90);return'indentBlock'==_0x2c6f11['commandName']?{'type':'format','content':o(_0x36822f,'*Indent:*\x20%0',_0x414cec)}:'outdentBlock'==_0x2c6f11['commandName']?{'type':'format','content':o(_0x36822f,'*Outdent:*\x20%0',_0x414cec)}:void 0x0;});}}class ut extends _0x518f0a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x518f0a{['afterInit'](){const _0x4b2e9b=this['editor'];if(!_0x4b2e9b['plugins']['has']('LinkEditing'))return;const _0x3765d6=_0x4b2e9b['plugins']['get']('TrackChangesEditing'),_0x2031e3=_0x4b2e9b['commands']['get']('link');_0x3765d6['enableDefaultAttributesIntegration']('link'),_0x3765d6['enableDefaultAttributesIntegration']('unlink'),_0x3765d6['registerInlineAttribute']('linkHref');for(const _0x319407 of _0x2031e3['manualDecorators'])_0x3765d6['registerInlineAttribute'](_0x319407['id']),_0x3765d6['descriptionFactory']['registerAttributeLabel'](_0x319407['id'],'link\x20('+_0x319407['label']['toLowerCase']()+')');_0x3765d6['descriptionFactory']['registerDescriptionCallback'](_0x58ba95=>{if('attribute'!=_0x58ba95['type'])return;const {data:_0x393ca3}=_0x58ba95;if(!_0x393ca3||'linkHref'!=_0x393ca3['key'])return;const _0x5b30be=_0x393ca3['newValue'],_0x3c1844=_0x4b2e9b['locale'];return{'type':'format','content':null==_0x5b30be?o(_0x3c1844,'*Remove\x20link*'):o(_0x3c1844,'*Set\x20link:*\x20%0','\x22'+_0x5b30be+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae870=this['editor'],_0x3b2681=_0x5ae870['locale'];_0x5ae870['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475575=>{if('formatInline'!=_0x475575['type'])return;const {data:_0x2dd9fd}=_0x475575;if(_0x2dd9fd){if('link'==_0x2dd9fd['commandName']){const _0xd214b3=_0x2dd9fd['commandParams'][0x0];return{'type':'format','content':o(_0x3b2681,'*Set\x20link:*\x20%0','\x22'+_0xd214b3+'\x22')};}return'unlink'==_0x2dd9fd['commandName']?{'type':'format','content':o(_0x3b2681,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x518f0a{['afterInit'](){const _0x451926=this['editor'],_0x16c544=_0x451926['locale'];if(!_0x451926['plugins']['has']('LegacyListEditing'))return;const _0x344f98=_0x451926['plugins']['get']('TrackChangesEditing'),_0x3d928d=_0x451926['plugins']['has']('LegacyTodoListEditing');function _0x376ee0(_0x13e90b){return()=>{const _0x5cb90f=_0x451926['model']['document']['selection'],_0x4851af=_0x451926['commands']['get'](_0x13e90b);if(_0x4851af['value'])return void _0x451926['execute']('paragraph',{});const _0x5639bf=_0x13e90b['slice'](0x0,-0x4),_0x5ddebe=function(_0x1ffabc,_0x22f018,_0x49a2ff){let _0x5e9ecb=Array['from'](_0x1ffabc)['filter'](_0x412b02=>function(_0x420df1,_0x23bb91){return _0x23bb91['checkChild'](_0x420df1['parent'],'listItem')&&!_0x23bb91['isObject'](_0x420df1);}(_0x412b02,_0x49a2ff));_0x5e9ecb=_0x5e9ecb['filter'](_0x8dc6df=>!_0x8dc6df['is']('element','listItem')||_0x8dc6df['getAttribute']('listType')!=_0x22f018);const _0x1f66a8=new Set();for(const _0x2106d0 of _0x5e9ecb)_0x2106d0['is']('element','listItem')?_0x1f66a8['add'](fe(_0x2106d0)):_0x1f66a8['add'](_0x2106d0);return Array['from'](_0x1f66a8);}(_0x5cb90f['getSelectedBlocks'](),_0x5639bf,_0x451926['model']['schema']);_0x451926['model']['change'](()=>{for(const _0x299828 of _0x5ddebe)_0x344f98['markBlockFormat'](_0x299828,{'commandName':_0x13e90b,'commandParams':[{'forceValue':!_0x4851af['value']}],'formatGroupId':'blockName'},ue(_0x299828));});};}function _0x3a047e(_0x1f6857){return()=>{const _0x1ef78a=function(_0x4913be){let _0x4726e0=Array['from'](_0x4913be);const _0x304da2=_0x4726e0['findIndex'](_0x366cd4=>'listItem'!=_0x366cd4['name']);return _0x304da2>-0x1&&(_0x4726e0=_0x4726e0['slice'](0x0,_0x304da2)),_0x4726e0;}(_0x451926['model']['document']['selection']['getSelectedBlocks']()),_0x171b80=_0x451926['model']['createRange'](_0x451926['model']['createPositionAt'](_0x1ef78a[0x0],'before'),_0x451926['model']['createPositionAt'](_0x1ef78a[_0x1ef78a['length']-0x1],'end'));_0x451926['model']['change'](()=>{_0x344f98['markBlockFormat'](_0x171b80,{'commandName':_0x1f6857,'commandParams':[],'formatGroupId':'listIndent'},function(_0x15654c){const _0x39f318=new Set();for(const _0x666b27 of _0x15654c){let _0x55a25a=_0x666b27['nextSibling'];for(;_0x55a25a&&_0x55a25a['getAttribute']('listIndent')>_0x666b27['getAttribute']('listIndent');)_0x39f318['add'](_0x55a25a),_0x55a25a=_0x55a25a['nextSibling'];}return Array['from'](_0x39f318);}(_0x1ef78a));});};}_0x344f98['enableCommand']('numberedList',_0x376ee0('numberedList')),_0x344f98['enableCommand']('bulletedList',_0x376ee0('bulletedList')),_0x3d928d&&_0x344f98['enableCommand']('todoList',_0x376ee0('todoList')),_0x344f98['enableCommand']('indentList',_0x3a047e('indentList')),_0x344f98['enableCommand']('outdentList',_0x3a047e('outdentList')),_0x3d928d&&_0x344f98['enableCommand']('checkTodoList',()=>{const _0x33f8b6=_0x451926['commands']['get']('checkTodoList'),_0x879607=Array['from'](_0x33f8b6['_selectedElements']);_0x879607['filter'](_0x106668=>_0x106668['getAttribute']('todoListChecked')!=_0x33f8b6['value']),_0x451926['model']['change'](()=>{for(const _0x11b906 of _0x879607)_0x344f98['markBlockFormat'](_0x11b906,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x33f8b6['value']}]});});}),_0x344f98['descriptionFactory']['registerElementLabel']('listItem',_0x1db320=>o(_0x16c544,'ELEMENT_LIST_ITEM',_0x1db320)),_0x344f98['descriptionFactory']['registerDescriptionCallback'](_0x59bdf2=>{if('formatBlock'!=_0x59bdf2['type']&&'formatInline'!=_0x59bdf2['type'])return;const {data:_0x46aaa5}=_0x59bdf2;if(_0x46aaa5){if('numberedList'==_0x46aaa5['commandName']||'bulletedList'==_0x46aaa5['commandName']||'todoList'==_0x46aaa5['commandName'])switch(_0x46aaa5['commandName']['replace']('List','')){case'bulleted':return _0x1e3c32(o(_0x16c544,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e3c32(o(_0x16c544,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e3c32(o(_0x16c544,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46aaa5['commandName'])return{'type':'format','content':o(_0x16c544,'*Indent:*\x20%0',o(_0x16c544,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46aaa5['commandName'])return{'type':'format','content':o(_0x16c544,'*Outdent:*\x20%0',o(_0x16c544,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46aaa5['commandName'])return _0x46aaa5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16c544,'*Check\x20item*')}:{'type':'format','content':o(_0x16c544,'*Uncheck\x20item*')};}function _0x1e3c32(_0x4e46f6){return{'type':'format','content':o(_0x16c544,'*Change\x20to:*\x20%0',_0x4e46f6)};}});}}function fe(_0x513353){const _0x1107bf=_0x513353['getAttribute']('listIndent');if(0x0==_0x1107bf)return _0x513353;let _0x575edd=_0x513353;for(;_0x513353['previousSibling']&&_0x513353['previousSibling']['is']('element','listItem');){const _0x37773c=_0x513353['previousSibling']['getAttribute']('listIndent');if(_0x37773c==_0x1107bf)_0x575edd=_0x513353['previousSibling'];else{if(_0x37773c<_0x1107bf)break;}_0x513353=_0x513353['previousSibling'];}return _0x575edd;}function ue(_0x2a95d1){const _0x2213fe=[];if(_0x2a95d1['is']('element','listItem')&&_0x2a95d1['getAttribute']('listIndent')>0x0){let _0x5e7946=_0x2a95d1['nextSibling'];for(;_0x5e7946&&'listItem'==_0x5e7946['name']&&_0x5e7946['getAttribute']('listIndent')==_0x2a95d1['getAttribute']('listIndent');)_0x2213fe['push'](_0x5e7946),_0x5e7946=_0x5e7946['nextSibling'];}return _0x2213fe;}class W extends _0x518f0a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x93d6c1=this['editor']['config']['get']('list.properties'),_0x35f81f=this['editor']['plugins']['get']('TrackChangesEditing');_0x93d6c1['styles']&&_0x35f81f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x93d6c1['reversed']&&_0x35f81f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x93d6c1['startIndex']&&_0x35f81f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x35f81f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x15e2f2,_0x213128={}){const _0x5cdeae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ddeb5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5cdeae['markMultiRangeBlockFormat'](_0x1ddeb5,{'commandName':'listStyle','commandParams':[{'type':_0x213128['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4a0e7c,_0x597e53={}){const _0x136390=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30f68a=this['_getSuggestionBlocks'](_0x9ff7f9=>_0x9ff7f9['is']('element','listItem')&&'numbered'===_0x9ff7f9['getAttribute']('listType'));if(_0x30f68a['length']<0x1)return;const _0x34ae30=_0x30f68a['map'](_0x8c1a6e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8c1a6e,'before'),this['editor']['model']['createPositionAt'](_0x8c1a6e,0x0)));this['editor']['model']['change'](()=>{_0x136390['markMultiRangeBlockFormat'](_0x34ae30,{'commandName':'listReversed','commandParams':[{'reversed':_0x597e53['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x48d29e,_0x1f485f={}){const _0x3d7021=this['editor']['plugins']['get']('TrackChangesEditing'),_0x109e44=this['_getSuggestionBlocks'](_0x45b348=>_0x45b348['is']('element','listItem')&&'numbered'===_0x45b348['getAttribute']('listType'));if(_0x109e44['length']<0x1)return;const _0x1a3cc0=_0x109e44['map'](_0xb531cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb531cf,'before'),this['editor']['model']['createPositionAt'](_0xb531cf,0x0)));this['editor']['model']['change'](()=>{_0x3d7021['markMultiRangeBlockFormat'](_0x1a3cc0,{'commandName':'listStart','commandParams':[{'startIndex':_0x1f485f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x437ed6){if('formatBlock'!=_0x437ed6['type']&&'formatInline'!=_0x437ed6['type'])return;const _0x1310dd=this['editor']['locale'],{data:_0x2515ee}=_0x437ed6;if(!_0x2515ee)return;let _0x5e22a8,_0x3cdc11;switch(_0x2515ee['commandName']){case'listStyle':_0x5e22a8='*Change\x20to:*\x20%0',_0x3cdc11={'type':'format','content':o(_0x1310dd,_0x5e22a8,o(_0x1310dd,this['_getTranslationKeyForListStyle'](_0x2515ee['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e22a8=_0x2515ee['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cdc11={'type':'format','content':o(_0x1310dd,_0x5e22a8)};break;case'listStart':_0x5e22a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cdc11={'type':'format','content':o(_0x1310dd,_0x5e22a8,_0x2515ee['commandParams'][0x0]['startIndex'])};}return _0x3cdc11;}['_getSuggestionBlocksForListStyle'](){const _0x1ad695=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a765f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1a765f[0x0]?.['is']('element','listItem')&&_0x1a765f['unshift'](..._0x1ad695['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1a765f[_0x1a765f['length']-0x1]?.['is']('element','listItem')&&_0x1a765f['push'](..._0x1ad695['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1a765f=[...new Set(_0x1a765f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1a765f=_0x1a765f['filter'](_0x526ccf=>_0x526ccf['is']('element','listItem'))),_0x1a765f;}['_getSuggestionBlocks'](_0x5a5e33){const _0x178893=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ecca0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a5e33)['map'](_0x381420=>{const _0x21bc3b=this['editor']['model']['createPositionAt'](_0x381420,0x0);return[..._0x178893['getSiblingNodes'](_0x21bc3b,'backward'),..._0x178893['getSiblingNodes'](_0x21bc3b,'forward')];})['flat']();return _0x5ecca0=[...new Set(_0x5ecca0)],_0x5ecca0;}['_getTranslationKeyForListStyle'](_0x26a658){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x26a658)||'default')['toUpperCase']()+'_LIST_'+_0x26a658['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x518f0a{['afterInit'](){const _0x310b63=this['editor'];if(!_0x310b63['plugins']['has']('MediaEmbedEditing'))return;const _0x349cfa=_0x310b63['plugins']['get']('TrackChangesEditing'),_0x3ec186=_0x310b63['locale'];_0x349cfa['enableCommand']('mediaEmbed'),_0x349cfa['descriptionFactory']['registerElementLabel']('media',_0x29a502=>o(_0x3ec186,'ELEMENT_MEDIA',_0x29a502)),_0x310b63['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b2f8b,{writer:_0x3a35d7,options:_0x4543f6})=>{if(_0x4543f6['showSuggestionHighlights'])return _0x3a35d7['createEmptyElement']('div');},'converterPriority':'high'}),_0x310b63['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2e56c0,_0x3096cc,_0x5e07b7)=>{_0x5e07b7['options']['showSuggestionHighlights']&&_0x2e56c0['stop']();},{'priority':'high'});}}class mt extends _0x518f0a{['afterInit'](){const _0x6a97a4=this['editor'];_0x6a97a4['plugins']['has']('MentionEditing')&&_0x6a97a4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x518f0a{['afterInit'](){const _0x2f8995=this['editor'];if(!_0x2f8995['plugins']['has']('MergeFieldsEditing'))return;_0x2f8995['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x2f8995['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4c0111=_0x2f8995['plugins']['get']('TrackChangesEditing'),_0x525c93=_0x2f8995['locale'];_0x4c0111['descriptionFactory']['registerElementLabel']('mergeField',_0x4bb809=>o(_0x525c93,'ELEMENT_MERGE_FIELD',_0x4bb809)),_0x4c0111['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5d768b=>o(_0x525c93,'ELEMENT_MERGE_FIELD',_0x5d768b)),_0x4c0111['descriptionFactory']['registerDescriptionCallback'](_0x42a257=>{if('insertion'!=_0x42a257['type']&&'deletion'!=_0x42a257['type'])return;const _0x218a5f=_0x42a257['getContainedElement']();if(null==_0x218a5f)return;if(!_0x218a5f['is']('element','mergeField')&&!_0x218a5f['is']('element','mergeFieldBlock'))return;const _0x4eb137=_0x2f8995['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x218a5f['getAttribute']('id'));return'insertion'==_0x42a257['type']?{'type':'insertion','content':o(_0x525c93,'*Insert:*\x20%0','\x22'+_0x4eb137+'\x22\x20'+o(_0x525c93,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x525c93,'*Remove:*\x20%0','\x22'+_0x4eb137+'\x22\x20'+o(_0x525c93,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x518f0a{['afterInit'](){const _0x51b3b0=this['editor'],_0x325324=_0x51b3b0['plugins']['get']('TrackChangesEditing');_0x51b3b0['plugins']['has']('MultiLevelList')&&(_0x325324['enableDefaultAttributesIntegration']('multiLevelList'),_0x325324['registerBlockAttribute']('listMarkerStyle'),_0x325324['descriptionFactory']['registerDescriptionCallback'](_0x5101a1=>this['handleDescriptions'](_0x5101a1)));}['handleDescriptions'](_0x17c947){const _0x135181=this['editor']['locale'],{data:_0x4f0fb4}=_0x17c947,_0x333321={'type':'format','content':''};if(_0x4f0fb4&&'listMarkerStyle'==_0x4f0fb4['key']){if(!_0x4f0fb4['oldValue'])return{'type':'format','content':o(_0x135181,'*Set\x20format:*\x20%0',o(_0x135181,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f0fb4['newValue']+')'};if(!_0x4f0fb4['newValue']){let _0x2af14d=_0x17c947['head'];for(;_0x2af14d;){if(_0x2af14d['data']&&'listType'==_0x2af14d['data']['key']&&_0x2af14d['data']['newValue'])return _0x333321;_0x2af14d=_0x2af14d['next'];}return{'type':'format','content':o(_0x135181,'*Remove\x20format:*\x20%0',o(_0x135181,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f0fb4['oldValue']+')'};}}}}class kt extends _0x518f0a{['afterInit'](){const _0x2228f0=this['editor'];if(!_0x2228f0['plugins']['has']('PageBreakEditing'))return;_0x2228f0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x477f61=_0x2228f0['plugins']['get']('TrackChangesEditing'),_0xa7aae5=_0x2228f0['locale'];_0x477f61['descriptionFactory']['registerElementLabel']('pageBreak',_0x348bc2=>o(_0xa7aae5,'ELEMENT_PAGE_BREAK',_0x348bc2));}}class bt extends _0x518f0a{['afterInit'](){const _0x483981=this['editor'];if(!_0x483981['plugins']['has']('Paragraph'))return;const _0x54557d=_0x483981['locale'],_0x1d82ee=_0x483981['plugins']['get']('TrackChangesEditing');_0x1d82ee['descriptionFactory']['registerElementLabel']('paragraph',_0x4be2d7=>o(_0x54557d,'ELEMENT_PARAGRAPH',_0x4be2d7)),_0x1d82ee['enableDefaultAttributesIntegration']('paragraph'),_0x1d82ee['enableCommand']('insertParagraph'),_0x483981['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x483981),{'priority':'highest'}),_0x483981['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x167678,_0x3a5bab,_0x58f2d0)=>{_0x58f2d0['options']['showSuggestionHighlights']&&nr(_0x483981,{'showActiveMarker':!0x1})(_0x167678,_0x3a5bab,_0x58f2d0);},{'priority':'highest'});const _0x352dfe=_0x1d82ee['descriptionFactory'];_0x352dfe['registerDescriptionCallback'](_0x3ad8e3=>{if('insertion'!==_0x3ad8e3['type'])return;const {start:_0x32dc42,end:_0x1ee907}=_0x3ad8e3['getFirstRange']();if(!_0x32dc42['isTouching'](_0x1ee907)||!_0x32dc42['nodeAfter'])return;const _0x2f9e36=_0x483981['model']['schema'],_0x5e4956=_0x32dc42['nodeAfter'];return _0x2f9e36['isBlock'](_0x5e4956)&&!_0x2f9e36['isLimit'](_0x5e4956)&&_0x2f9e36['checkChild'](_0x5e4956,'$text')?{'type':'insertion','content':o(_0x54557d,'*Insert:*\x20%0',_0x352dfe['getItemLabel'](_0x5e4956,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a9eae=this['editor'],_0x3c12bf=_0x3a9eae['locale'];_0x3a9eae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9ad50e=>{if('formatBlock'!=_0x9ad50e['type'])return;const {data:_0x18baa6}=_0x9ad50e;return _0x18baa6&&'paragraph'==_0x18baa6['commandName']?{'type':'format','content':o(_0x3c12bf,'*Change\x20to:*\x20%0',o(_0x3c12bf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x309e4a,{showActiveMarker:_0x4d94e6=!0x0}={}){return(_0x37c739,_0x4e894b,_0xea074d)=>{const _0x12df6a=_0x309e4a['plugins']['get']('TrackChangesEditing'),_0x3fff3b=_0x4e894b['markerRange']['start'],_0x4b1446=_0x4e894b['markerRange']['end'],_0x3e0caa=_0x309e4a['model']['schema'];if(!_0x3fff3b['isTouching'](_0x4b1446)||!_0x3fff3b['nodeAfter'])return;const _0x1fa839=_0x3fff3b['nodeAfter'];if(_0x3e0caa['isBlock'](_0x1fa839)&&!_0x3e0caa['isLimit'](_0x1fa839)&&_0x3e0caa['checkChild'](_0x1fa839,'$text')){if(!_0xea074d['consumable']['consume'](_0x4e894b['markerRange'],_0x37c739['name']))return;const {authorId:_0x291f2d}=_0x12df6a['_splitMarkerName'](_0x4e894b['markerName']),_0x416aa6=_0xea074d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x291f2d}),_0x38a800=_0xea074d['mapper']['toViewPosition'](_0x4b1446);_0x4d94e6&&_0x12df6a['activeMarkers']['includes'](_0x4e894b['markerName'])&&_0xea074d['writer']['addClass']('ck-suggestion-marker--active',_0x416aa6),_0xea074d['writer']['insert'](_0x38a800,_0x416aa6),_0xea074d['mapper']['bindElementToMarker'](_0x416aa6,_0x4e894b['markerName']);}};}class wt extends _0x518f0a{['afterInit'](){const _0x2e8127=this['editor'];if(!_0x2e8127['plugins']['has']('RemoveFormatEditing'))return;_0x2e8127['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x172468=this['editor'];_0x172468['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7a7714=>{if('formatBlock'!=_0x7a7714['type']&&'formatInline'!=_0x7a7714['type'])return;const {data:_0x50c4b4}=_0x7a7714;return _0x50c4b4&&'removeFormat'==_0x50c4b4['commandName']?{'type':'format','content':o(_0x172468['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x518f0a{['afterInit'](){const _0x5c4287=this['editor'];if(!_0x5c4287['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5d4aa5=_0x5c4287['plugins']['get']('TrackChangesEditing');_0x5d4aa5['enableCommand']('goToPreviousRestrictedEditingException'),_0x5d4aa5['enableCommand']('goToNextRestrictedEditingException');const _0x368ea4=_0x5c4287['plugins']['get']('RestrictedEditingModeEditing');_0x368ea4['enableCommand']('trackChanges'),_0x368ea4['enableCommand']('acceptSuggestion'),_0x368ea4['enableCommand']('discardSuggestion'),_0x368ea4['enableCommand']('acceptAllSuggestions'),_0x368ea4['enableCommand']('discardAllSuggestions'),_0x368ea4['enableCommand']('acceptSelectedSuggestions'),_0x368ea4['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x518f0a{static get['requires'](){return[_0x1170b1];}['init'](){const _0x1276e7=this['editor'],_0xf733b5=_0x1276e7['plugins']['get']('TrackChangesEditing');_0xf733b5['enableCommand']('shiftEnter'),_0x1276e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x1276e7),{'priority':'high'}),_0x1276e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x1276e7),{'priority':'high'}),_0x1276e7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x167cac,_0x3b6f5c,_0x3879f1)=>{_0x3879f1['options']['showSuggestionHighlights']&&ge(_0x1276e7,{'showActiveMarker':!0x1})(_0x167cac,_0x3b6f5c,_0x3879f1);}),_0xf733b5['descriptionFactory']['registerElementLabel']('softBreak',_0x15e716=>o(_0x1276e7['locale'],'ELEMENT_LINE_BREAK',_0x15e716));}}function ge(_0x105ac2,{showActiveMarker:_0x2d6368=!0x0}={}){return(_0x5973ea,_0x3cfcb8,_0x34739e)=>{const _0x3b449c=_0x105ac2['plugins']['get']('TrackChangesEditing');if(!_0x34739e['consumable']['test'](_0x3cfcb8['markerRange'],_0x5973ea['name']))return;const _0x214e8a=_0x105ac2['model'];for(const _0x3dce00 of _0x3cfcb8['markerRange']['getItems']()){if(!_0x3dce00['is']('element','softBreak'))continue;const _0x51c659='deletion'==_0x3cfcb8['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x438109}=_0x3b449c['_splitMarkerName'](_0x3cfcb8['markerName']),_0x2e00b7=_0x34739e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51c659,'data-author-id':_0x438109}),_0x2f6b7d=_0x34739e['mapper']['toViewPosition'](_0x214e8a['createPositionBefore'](_0x3dce00));_0x2d6368&&_0x3b449c['activeMarkers']['includes'](_0x3cfcb8['markerName'])&&_0x34739e['writer']['addClass']('ck-suggestion-marker--active',_0x2e00b7),_0x34739e['writer']['insert'](_0x2f6b7d,_0x2e00b7),_0x34739e['mapper']['bindElementToMarker'](_0x2e00b7,_0x3cfcb8['markerName']);}};}class St extends _0x518f0a{['afterInit'](){const _0x5782f8=this['editor'],_0x55e045=_0x5782f8['model'],_0x4fd321=_0x5782f8['locale'];if(!_0x5782f8['plugins']['has']('StandardEditingModeEditing'))return;const _0x39193a=_0x5782f8['plugins']['get']('TrackChangesEditing'),_0x3d5544='restrictedEditingException',_0x22e27c=_0x5782f8['commands']['get'](_0x3d5544);_0x39193a['enableCommand'](_0x3d5544,(_0x4a68e1,_0x255b48={})=>{const _0x57cdb6=_0x55e045['document']['selection'];if(_0x57cdb6['isCollapsed'])return void _0x4a68e1(_0x255b48);const _0x55241f=void 0x0!==_0x255b48['forceValue']?_0x255b48['forceValue']:!_0x22e27c['value'];_0x55e045['change'](()=>{const _0x444d24=Array['from'](_0x57cdb6['getRanges']());for(const _0xf4342 of _0x444d24){const _0x504c0d=_0x55241f?[_0xf4342]:io(_0x3d5544,_0xf4342,_0x55e045);for(const _0x103650 of _0x504c0d)_0x39193a['markInlineFormat'](_0x103650,{'commandName':_0x3d5544,'commandParams':[{'forceValue':_0x55241f}]});}});}),_0x39193a['descriptionFactory']['registerDescriptionCallback'](_0x5c45a3=>{if('formatBlock'!=_0x5c45a3['type']&&'formatInline'!=_0x5c45a3['type'])return;const {data:_0x458751}=_0x5c45a3;return _0x458751&&_0x458751['commandName']==_0x3d5544?_0x458751['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fd321,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fd321,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x518f0a{['afterInit'](){const _0x1a0f88=this['editor'];if(!_0x1a0f88['plugins']['has']('Style')||!_0x1a0f88['plugins']['has']('DataSchema'))return;const _0x118697=_0x1a0f88['plugins']['get']('TrackChangesEditing'),_0x14ae0a=_0x1a0f88['locale'],_0x36e823=_0x1a0f88['config']['get']('style')||{},_0x5c8a18=_0x1a0f88['plugins']['get']('GeneralHtmlSupport'),_0x1c3fb4=_0x1a0f88['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1a0f88['plugins']['get']('DataSchema'),_0x36e823['definitions']);_0x118697['enableDefaultAttributesIntegration']('style');const _0x463b58=new Set();for(const _0x4adddf of _0x1c3fb4['block']){const _0x1153ae=_0x5c8a18['getGhsAttributeNameForElement'](_0x4adddf['element']);_0x463b58['add'](_0x1153ae);}const _0x232d70=new Set();for(const _0x119a93 of _0x1c3fb4['inline']){const _0x3582ae=_0x5c8a18['getGhsAttributeNameForElement'](_0x119a93['element']);_0x232d70['add'](_0x3582ae);for(const _0x56852b of _0x119a93['ghsAttributes'])_0x232d70['add'](_0x56852b);}for(const _0x1e11e9 of _0x463b58)_0x118697['registerBlockAttribute'](_0x1e11e9),_0x118697['descriptionFactory']['registerAttributeLabel'](_0x1e11e9,o(_0x14ae0a,'FORMAT_STYLE'));for(const _0x3bbf91 of _0x232d70)_0x118697['registerInlineAttribute'](_0x3bbf91),_0x118697['descriptionFactory']['registerAttributeLabel'](_0x3bbf91,o(_0x14ae0a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56ae8b=this['editor'],_0x46e0a9=_0x56ae8b['locale'];_0x56ae8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d1aa=>{if('formatBlock'!=_0x38d1aa['type']&&'formatInline'!=_0x38d1aa['type'])return;const {data:_0x7f06ab}=_0x38d1aa;return _0x7f06ab&&'style'===_0x7f06ab['commandName']?_0x7f06ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46e0a9,'*Set\x20format:*\x20%0',_0x7f06ab['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x46e0a9,'*Remove\x20format:*\x20%0',_0x7f06ab['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x518f0a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49b7f1){super(_0x49b7f1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1e9240=this['editor'],_0x18ba0e=_0x1e9240['model']['document']['selection'];if(!_0x1e9240['plugins']['has']('TableEditing'))return;const _0x25daa0=_0x1e9240['locale'],_0x54cf93=_0x1e9240['plugins']['get']('TrackChangesEditing'),_0x1f98be=_0x1e9240['plugins']['get']('TableUtils');_0x54cf93['descriptionFactory']['registerElementLabel']('table',_0x358734=>o(_0x25daa0,'ELEMENT_TABLE',_0x358734)),this['_setupColumnsRowsFixing'](),_0x54cf93['enableCommand']('insertTable'),_0x54cf93['enableCommand']('selectTableRow'),_0x54cf93['enableCommand']('selectTableColumn');for(const _0x5b04ad of['insertTableRowAbove','insertTableRowBelow']){const _0x14e1b8=_0x1e9240['commands']['get'](_0x5b04ad);_0x54cf93['enableCommand'](_0x5b04ad,_0x584651=>{_0x1e9240['model']['change'](_0x41b177=>{_0x584651();const _0x24731f='above'===_0x14e1b8['order'],_0x1a272d=_0x1f98be['getSelectionAffectedTableCells'](_0x18ba0e),_0x94f063=_0x1f98be['getRowIndexes'](_0x1a272d),_0x2982ce=_0x24731f?_0x94f063['first']-0x1:_0x94f063['last']+0x1,_0x2dede6=_0x1a272d[0x0]['findAncestor']('table'),_0x6b2a3f=_0x1f98be['createTableWalker'](_0x2dede6,{'startRow':_0x2982ce,'endRow':_0x2982ce}),_0x206ec8=Array['from'](_0x6b2a3f)['map'](_0x3f3257=>_0x41b177['createRangeOn'](_0x3f3257['cell']));_0x54cf93['markMultiRangeInsertion'](_0x206ec8,'tableRow');});});}for(const _0x5e410d of['insertTableColumnLeft','insertTableColumnRight']){const _0x462afa=_0x1e9240['commands']['get'](_0x5e410d);_0x54cf93['enableCommand'](_0x5e410d,_0x37666c=>{_0x1e9240['model']['change'](_0x5c6f3c=>{_0x37666c();const _0x35150a='left'===_0x462afa['order'],_0x174693=_0x1f98be['getSelectionAffectedTableCells'](_0x18ba0e),_0x241403=_0x1f98be['getColumnIndexes'](_0x174693),_0x2b0587=_0x35150a?_0x241403['first']-0x1:_0x241403['last']+0x1,_0x58265a=_0x174693[0x0]['findAncestor']('table'),_0x27b339=_0x1f98be['createTableWalker'](_0x58265a,{'startRow':0x0,'column':_0x2b0587,'includeAllSlots':!0x1}),_0xea4b74=Array['from'](_0x27b339)['map'](_0x3f2dac=>_0x5c6f3c['createRangeOn'](_0x3f2dac['cell']));_0x54cf93['markMultiRangeInsertion'](_0xea4b74,'tableColumn');});});}for(const _0xbc2f7 of['removeTableRow','removeTableColumn']){const _0x929110=_0xbc2f7['substr'](0xb),_0x19a1cf=_0x929110['toLowerCase'](),_0x242797=_0x19a1cf['substr'](0x0,0x3)+'span',_0xf59b5b='table'+_0x929110,_0x746d40='min'+_0x929110,_0x4f8bdd='max'+_0x929110;_0x54cf93['enableCommand'](_0xbc2f7,()=>{_0x1e9240['model']['change'](_0x4038cf=>{const _0xc6d8b9=_0x1f98be['getSelectionAffectedTableCells'](_0x18ba0e),_0x3fa90b=_0xc6d8b9[0x0]['findAncestor']('table');let _0x52a3b6;if('removeTableRow'==_0xbc2f7){const _0x57e12f=_0x1f98be['getRowIndexes'](_0xc6d8b9);_0x52a3b6={'startRow':_0x57e12f['first'],'endRow':_0x57e12f['last'],'includeAllSlots':!0x0};}else{const _0x1ab4c4=_0x1f98be['getColumnIndexes'](_0xc6d8b9);_0x52a3b6={'startColumn':_0x1ab4c4['first'],'endColumn':_0x1ab4c4['last'],'includeAllSlots':!0x0};}const _0x4f6094=_0x1f98be['createTableWalker'](_0x3fa90b,_0x52a3b6),_0x28208a=Array['from'](_0x4f6094)['map'](({cell:_0x3d23ac})=>_0x3d23ac),_0x2f368a=be(_0x28208a['filter'](_0x167dc1=>_0x167dc1['hasAttribute'](_0x242797))),_0xb0588e=be(_0x28208a['filter'](_0x4fe926=>!_0x4fe926['hasAttribute'](_0x242797)))['map'](_0x2ef82a=>_0x4038cf['createRangeOn'](_0x2ef82a)),_0x509504=_0x54cf93['markMultiRangeDeletion'](_0xb0588e,_0xf59b5b);if(_0x509504&&('tableRow'==_0x509504['subType']||'tableColumn'==_0x509504['subType'])){const _0x1f60d4=this['_getSuggestionCoords'](_0x509504);for(const _0xd39ae0 of _0x2f368a){const _0x5484cf=_0x4038cf['createRangeOn'](_0xd39ae0),_0x453293=_0x1f98be['getCellLocation'](_0xd39ae0),_0x315ddd=_0xd39ae0['getAttribute'](_0x242797)-0x1,_0xa55771=_0x1f60d4[_0x746d40],_0x10e1e8=_0x1f60d4[_0x4f8bdd];_0xa55771<=_0x453293[_0x19a1cf]&&_0x453293[_0x19a1cf]+_0x315ddd<=_0x10e1e8&&_0x509504['addRange'](_0x5484cf);}}});});}function _0x34c2b7(_0x3efe77){const _0x421a95=Array['from'](_0x18ba0e['getRanges']())['map'](_0x39df2a=>_0x1b6799['fromRange'](_0x39df2a));_0x1e9240['model']['change'](_0x8c6229=>{const _0x5463e9=_0x8c6229['batch'];_0x3efe77=_0x3efe77['filter'](_0x1432e7=>'$graveyard'!=_0x1432e7['root']['rootName']),_0x8c6229['setSelection'](_0x3efe77),_0x1e9240['commands']['get']('removeTableRow')['refresh'](),_0x1e9240['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e9240['model']['enqueueChange'](()=>{_0x1e9240['model']['enqueueChange'](_0x5463e9,_0x136cef=>{const _0x3fd80d=_0x421a95['filter'](_0x2ed306=>'$graveyard'!=_0x2ed306['root']['rootName']);_0x3fd80d['length']>0x0&&_0x136cef['setSelection'](_0x3fd80d);for(const _0x29e2f5 of _0x421a95)_0x29e2f5['detach']();});});});}function _0x1ce84e(_0x1497db){_0x1e9240['model']['change'](_0x1a33a4=>{const _0x23bfeb=Array['from'](_0x18ba0e['getRanges']())['map'](_0x3d6a2d=>_0x1b6799['fromRange'](_0x3d6a2d)),_0x2f3063=[];for(const _0x4fc05c of _0x1497db)for(const _0x74917a of _0x4fc05c['getItems']({'shallow':!0x0}))_0x2f3063['push'](_0x74917a);for(const _0x2aa85c of _0x2f3063)'$graveyard'!=_0x2aa85c['root']['rootName']&&(_0x1a33a4['setSelection'](_0x1a33a4['createPositionAt'](_0x2aa85c,0x0)),_0x1e9240['commands']['get']('removeTableColumn')['refresh'](),_0x1e9240['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c908f=_0x23bfeb['filter'](_0x5f544e=>'$graveyard'!=_0x5f544e['root']['rootName']);_0x5c908f['length']>0x0&&_0x1a33a4['setSelection'](_0x5c908f);for(const _0x200f8b of _0x23bfeb)_0x200f8b['detach']();});}function _0x93984(_0x141204,_0x3faa){return _0x3faa['every'](_0x2a099a=>_0x141204['some'](_0x52a72e=>_0x52a72e['end']['isEqual'](_0x2a099a['start'])||_0x2a099a['end']['isEqual'](_0x52a72e['start'])));}function _0x4db624(_0x233ec5,_0x56ec35){return!_0x233ec5['some'](_0x55968a=>_0x56ec35['some'](_0x14adf0=>_0x55968a['isIntersecting'](_0x14adf0)))&&_0x233ec5['some'](_0x41e54b=>_0x56ec35['some'](_0x153b75=>_0x41e54b['end']['isTouching'](_0x153b75['start'])));}_0x1e9240['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x564fb9,_0x3bdc19,_0x1a58f2)=>{if(!_0x1a58f2['options']['showSuggestionHighlights'])return;const _0x532d5e=_0x3bdc19['item'];if(!_0x532d5e)return;const _0x359eda=_0x1a58f2['mapper']['toViewElement'](_0x532d5e);function _0x1d066f(_0x4e20bb){return Array['isArray'](_0x4e20bb)?_0x4e20bb:[_0x4e20bb];}_0x359eda&&'tableCell'===_0x532d5e['name']&&_0x566013(_0x359eda,_0x1a58f2['writer'],(_0x108525,_0x1af8a8,_0x1badb8)=>_0x1badb8['addClass'](_0x1d066f(_0x1af8a8['classes']),_0x108525),(_0x37b9ed,_0x1bf258,_0x404cd2)=>_0x404cd2['removeClass'](_0x1d066f(_0x1bf258['classes']),_0x37b9ed));},{'priority':'highest'}),_0x54cf93['descriptionFactory']['registerDescriptionCallback'](_0x85340a=>{if('insertion'!=_0x85340a['type']&&'deletion'!=_0x85340a['type'])return;const _0x46c298=_0x85340a['getContainedElement']();if(null!=_0x46c298&&_0x46c298['is']('element','table')){if('insertion'==_0x85340a['type']){const _0x3f6b6f=_0x85340a['getItems']()['filter'](_0x5dca1c=>_0x5dca1c['is']('$textProxy'))['map'](_0x34e885=>_0x34e885['data']);if(_0x3f6b6f['length'])return{'type':'insertion','content':o(_0x25daa0,'*Insert:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f6b6f['join']('\x20')+'\x22'))};}if('deletion'==_0x85340a['type']){const _0x4d0613=_0x85340a['getItems']()['filter'](_0x24fa83=>_0x24fa83['is']('$textProxy'))['map'](_0x31579b=>_0x31579b['data']);if(_0x4d0613['length'])return{'type':'deletion','content':o(_0x25daa0,'*Remove:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d0613['join']('\x20')+'\x22'))};}}}),_0x54cf93['descriptionFactory']['registerDescriptionCallback'](_0x5bf146=>{if('tableRow'==_0x5bf146['subType']){const _0xa1c4be=_0x5bf146['getItems']()['filter'](_0x45739f=>_0x45739f['is']('$textProxy'))['map'](_0x2364c8=>_0x2364c8['data']),_0x5cd218=this['_getSuggestionCoords'](_0x5bf146),_0x1c3b4d=_0x5cd218['maxRow']-_0x5cd218['minRow']+0x1;if('insertion'==_0x5bf146['type'])return _0xa1c4be['length']?{'type':'insertion','content':o(_0x25daa0,'*Insert:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c3b4d,'\x22'+_0xa1c4be['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25daa0,'*Insert:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_ROW',_0x1c3b4d))};if('deletion'==_0x5bf146['type'])return _0xa1c4be['length']?{'type':'deletion','content':o(_0x25daa0,'*Remove:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c3b4d,'\x22'+_0xa1c4be['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25daa0,'*Remove:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_ROW',_0x1c3b4d))};}if('tableColumn'==_0x5bf146['subType']){const _0x4d3da3=_0x5bf146['getItems']()['filter'](_0x1e9479=>_0x1e9479['is']('$textProxy'))['map'](_0x1ee42c=>_0x1ee42c['data']),_0xbd40d2=this['_getSuggestionCoords'](_0x5bf146),_0x1b55c5=_0xbd40d2['maxColumn']-_0xbd40d2['minColumn']+0x1;if('insertion'==_0x5bf146['type'])return _0x4d3da3['length']?{'type':'insertion','content':o(_0x25daa0,'*Insert:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b55c5,'\x22'+_0x4d3da3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25daa0,'*Insert:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_COLUMN',_0x1b55c5))};if('deletion'==_0x5bf146['type'])return _0x4d3da3['length']?{'type':'deletion','content':o(_0x25daa0,'*Remove:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b55c5,'\x22'+_0x4d3da3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25daa0,'*Remove:*\x20%0',o(_0x25daa0,'ELEMENT_TABLE_COLUMN',_0x1b55c5))};}}),_0x54cf93['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34c2b7),_0x54cf93['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34c2b7),_0x54cf93['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ce84e),_0x54cf93['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ce84e),_0x54cf93['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x93984),_0x54cf93['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x93984),_0x54cf93['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4db624),_0x54cf93['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4db624);}['_acceptFormatSuggestionCallbackFactory'](){const _0x40f3c8=this['editor'],_0xd99a70=_0x40f3c8['model']['document']['selection'];return(_0xd8d2bf,_0x3d55a1)=>{_0x40f3c8['model']['change'](_0x41c86e=>{const {commandName:_0x3cba33,commandParams:_0x11c783}=_0x3d55a1;let _0x38c04a=_0xd8d2bf[0x0]['end']['nodeBefore'];_0x11c783&&_0x11c783[0x0]&&!0x1===_0x11c783[0x0]['forceValue']&&(_0x38c04a=_0xd8d2bf[0x0]['start']['nodeAfter']);const _0x1672c1=_0x41c86e['createRangeIn'](_0x38c04a);if('$graveyard'==_0x1672c1['root']['rootName'])return;const _0x57b787=Array['from'](_0xd99a70['getRanges']())['map'](_0x59d858=>_0x1b6799['fromRange'](_0x59d858));_0x41c86e['setSelection'](_0x1672c1),_0x40f3c8['commands']['get'](_0x3cba33)['refresh'](),_0x11c783['push']({'forceDefaultExecution':!0x0}),_0x40f3c8['execute'](_0x3cba33,..._0x11c783);const _0x1d53b2=_0x57b787['filter'](_0x43120b=>'$graveyard'!=_0x43120b['root']['rootName']);_0x1d53b2['length']>0x0&&_0x41c86e['setSelection'](_0x1d53b2);for(const _0x4ab397 of _0x57b787)_0x4ab397['detach']();});};}['_getCoordsForCells'](_0x387264){const _0x2b6aec=this['editor']['plugins']['get']('TableUtils');let _0x3b690e=Number['MAX_SAFE_INTEGER'],_0x3b867f=Number['MIN_SAFE_INTEGER'],_0x3cf238=Number['MAX_SAFE_INTEGER'],_0x4e13df=Number['MIN_SAFE_INTEGER'];for(const _0x477fee of _0x387264){if('$graveyard'==_0x477fee['root']['rootName'])continue;const {row:_0x51020d,column:_0x62952f}=_0x2b6aec['getCellLocation'](_0x477fee),_0x4d468e=_0x477fee['hasAttribute']('rowspan')?_0x477fee['getAttribute']('rowspan')-0x1:0x0,_0x1433f5=_0x477fee['hasAttribute']('colspan')?_0x477fee['getAttribute']('colspan')-0x1:0x0;_0x3b690e=_0x51020d<_0x3b690e?_0x51020d:_0x3b690e,_0x3b867f=_0x51020d+_0x4d468e>_0x3b867f?_0x51020d+_0x4d468e:_0x3b867f,_0x3cf238=_0x62952f<_0x3cf238?_0x62952f:_0x3cf238,_0x4e13df=_0x62952f+_0x1433f5>_0x4e13df?_0x62952f+_0x1433f5:_0x4e13df;}return{'minRow':_0x3b690e,'maxRow':_0x3b867f,'minColumn':_0x3cf238,'maxColumn':_0x4e13df};}['_setupColumnsRowsFixing'](){const _0x21694c=this['editor'],_0x157d92=_0x21694c['plugins']['get']('TrackChangesEditing'),_0x1306e7=_0x21694c['plugins']['get']('TableUtils');_0x21694c['model']['document']['on']('change:data',()=>{const _0x4a3f5c=Array['from'](_0x21694c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4018c8,data:_0xbc593a}of _0x4a3f5c){const {group:_0x234dd3,id:_0x4aad48,subType:_0x1db34b}=_0x157d92['_splitMarkerName'](_0x4018c8);if('suggestion'!=_0x234dd3)continue;if(null!=_0xbc593a['oldRange'])continue;const _0x353d59=_0x157d92['getSuggestion'](_0x4aad48);this['_tablePostFixingSubtypes']['includes'](_0x1db34b)&&this['_tableSuggestions']['add'](_0x353d59);}},{'priority':'low'});const _0xa837ca=(_0x2cca06,_0x34b055)=>{let _0x2a6cf8=!0x1;const _0x1191c5=_0x34b055['createRangeOn'](_0x2cca06),_0x578354=_0x2cca06['findAncestor']('table'),_0x4380b0=_0x1306e7['getCellLocation'](_0x2cca06);for(const _0xd8edd3 of this['_tableSuggestions']){const _0x3f8cb7=_0xd8edd3['subType'],_0xd7eb18=_0x3f8cb7['startsWith']('tablePaste'),_0x35cb54=_0x3f8cb7['substr'](_0xd7eb18?0xa:0x5),_0x1e4175=_0x35cb54['toLowerCase'](),_0x156f20=_0x1e4175['substr'](0x0,0x3)+'span',_0x3e7827='min'+_0x35cb54,_0x184f90='max'+_0x35cb54;if(!_0xd8edd3['isInContent'])continue;if(_0x578354!=_0xd8edd3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xd8edd3['isIntersectingWithRange'](_0x1191c5))continue;const _0x4fc3a2=_0x2cca06['hasAttribute'](_0x156f20)?_0x2cca06['getAttribute'](_0x156f20)-0x1:0x0,_0x4ec285=this['_getSuggestionCoords'](_0xd8edd3),_0x547b55=_0x4ec285[_0x3e7827],_0x5e5369=_0x4ec285[_0x184f90];_0x547b55<=_0x4380b0[_0x1e4175]&&_0x4380b0[_0x1e4175]+_0x4fc3a2<=_0x5e5369&&(_0xd8edd3['addRange'](_0x1191c5),_0x2a6cf8=!0x0);}return _0x2a6cf8;};_0x21694c['model']['document']['registerPostFixer'](_0x18c4c3=>{let _0xfa0e94=!0x1;for(const _0x9a438c of _0x21694c['model']['document']['differ']['getChanges']())if('insert'==_0x9a438c['type']){if('tableRow'==_0x9a438c['name']){for(const _0x133080 of _0x9a438c['position']['nodeAfter']['getChildren']())_0xfa0e94=_0xfa0e94||_0xa837ca(_0x133080,_0x18c4c3);}else'tableCell'==_0x9a438c['name']&&(_0xfa0e94=_0xfa0e94||_0xa837ca(_0x9a438c['position']['nodeAfter'],_0x18c4c3));}return _0xfa0e94;});}['_getSuggestionCoords'](_0x26d3cf){return this['_getCoordsForCells'](_0x26d3cf['getRanges']()['map'](_0x245660=>_0x245660['start']['nodeAfter']));}}function be(_0x23799e){return Array['from'](new Set(_0x23799e)['values']());}class vt extends _0x518f0a{static get['requires'](){return[It];}['afterInit'](){const _0x39eaac=this['editor'],_0x35a4e2=_0x39eaac['model']['document']['selection'],_0x2b9531=_0x39eaac['locale'];if(!_0x39eaac['plugins']['has']('TableEditing'))return;const _0x587539=_0x39eaac['plugins']['get']('TrackChangesEditing'),_0xef99b8=_0x39eaac['plugins']['get']('TableUtils'),_0x1b0260=_0x39eaac['plugins']['get'](It);_0x1b0260['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x587539['enableCommand']('mergeTableCells',()=>{const _0x552ffc=_0xef99b8['getSelectionAffectedTableCells'](_0x39eaac['model']['document']['selection']);_0x39eaac['model']['change'](()=>{_0x587539['markMultiRangeBlockFormat'](_0x552ffc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39eaac['commands']['get']('mergeTableCells')['on']('execute',(_0x37002d,_0x49d382)=>{_0x39eaac['commands']['get']('trackChanges')['value']&&(_0x49d382['length']>0x0&&_0x49d382[_0x49d382['length']-0x1]&&_0x49d382[_0x49d382['length']-0x1]['forceDefaultExecution']||_0x587539['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x37002d['stop']());},{'priority':'highest'});for(const _0x2a6b60 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x240a1b=_0x39eaac['commands']['get'](_0x2a6b60);_0x587539['enableCommand'](_0x2a6b60,()=>{const _0x31101c=_0x39eaac['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x597c0a=>_0x597c0a['is']('element','tableCell')),_0x7948a7=_0x240a1b['value'];_0x39eaac['model']['change'](()=>{_0x587539['markMultiRangeBlockFormat']([_0x31101c,_0x7948a7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f8701 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x45d22d=_0x39eaac['commands']['get'](_0x3f8701);_0x587539['enableCommand'](_0x3f8701,()=>{const _0x1b2482=_0xef99b8['getSelectionAffectedTableCells'](_0x39eaac['model']['document']['selection'])[0x0],_0x350208=_0x1b2482['findAncestor']('table'),{column:_0x555d5e,row:_0x2b6042}=_0xef99b8['getCellLocation'](_0x1b2482);let _0x5a6420=[];if('horizontally'==_0x45d22d['direction']){const _0x31ffaa=_0xef99b8['createTableWalker'](_0x350208,{'startRow':_0x2b6042,'endRow':_0x2b6042,'includeAllSlots':!0x0});_0x5a6420=Array['from'](_0x31ffaa)['map'](_0x177297=>_0x177297['cell']);}else{const _0x127589=_0xef99b8['createTableWalker'](_0x350208,{'column':_0x555d5e,'includeAllSlots':!0x0});_0x5a6420=Array['from'](_0x127589)['map'](_0x2c3ad6=>_0x2c3ad6['cell']);}_0x39eaac['model']['change'](_0x4e759d=>{_0x587539['markBlockFormat'](_0x4e759d['createRangeOn'](_0x1b2482),{'commandName':_0x3f8701,'commandParams':[]},_0x5a6420,_0x3f8701);});});}_0x587539['descriptionFactory']['registerDescriptionCallback'](_0x4ebe6c=>{if('formatBlock'!=_0x4ebe6c['type']&&'formatInline'!=_0x4ebe6c['type'])return;const {data:_0x11b591}=_0x4ebe6c;return _0x11b591&&'mergeTableCells'==_0x11b591['commandName']?{'type':'format','content':o(_0x2b9531,'*Merge\x20cells*')}:void 0x0;}),_0x587539['descriptionFactory']['registerDescriptionCallback'](_0x370569=>{if('formatBlock'!=_0x370569['type']&&'formatInline'!=_0x370569['type'])return;const {data:_0x42c38a}=_0x370569;return _0x42c38a?'splitTableCellVertically'==_0x42c38a['commandName']?{'type':'format','content':o(_0x2b9531,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x42c38a['commandName']?{'type':'format','content':o(_0x2b9531,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2ef78d=_0x1b0260['_acceptFormatSuggestionCallbackFactory']();for(const _0x572bc0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x587539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x572bc0,'accept',_0x2ef78d);for(const _0x21f06f of['splitTableCellVertically','splitTableCellHorizontally'])_0x587539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21f06f,'accept',_0x2ef78d);_0x587539['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x177069=>{_0x39eaac['model']['change'](_0xe295e7=>{const _0x56ca31=Array['from'](_0x35a4e2['getRanges']())['map'](_0x4b463b=>_0x1b6799['fromRange'](_0x4b463b));_0xe295e7['setSelection'](_0x177069),_0x39eaac['commands']['get']('mergeTableCells')['refresh'](),_0x39eaac['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3024ab=_0x56ca31['filter'](_0x5be218=>'$graveyard'!=_0x5be218['root']['rootName']);_0x3024ab['length']>0x0&&_0xe295e7['setSelection'](_0x3024ab);for(const _0x447682 of _0x56ca31)_0x447682['detach']();});});for(const _0x4fce2f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3faa65=_0x39eaac['commands']['get'](_0x4fce2f);_0x3faa65['on']('set:isEnabled',(_0x4cfa39,_0x14b5c1,_0x4d9995)=>{if(_0x4d9995){const _0x390d12=_0x39eaac['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57da1e=>_0x57da1e['is']('element','tableCell'));this['_areMergableCells'](_0x3faa65['value'],_0x390d12)||(_0x4cfa39['return']=!0x1,_0x4cfa39['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xecb96c=this['editor']['commands']['get']('mergeTableCells'),_0x347405=this['editor']['plugins']['get']('TableUtils');if(!_0xecb96c['isEnabled'])return!0x1;const _0x42898d=_0x347405['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x536340 of _0x42898d)for(const _0x160b09 of _0x42898d)if(_0x536340!=_0x160b09&&!this['_areMergableCells'](_0x536340,_0x160b09))return!0x1;return!0x0;}['_areMergableCells'](_0x4d60dc,_0x2084a3){const _0x15c3ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e4f4f=this['editor']['model']['createRangeOn'](_0x4d60dc),_0x47164c=this['editor']['model']['createRangeOn'](_0x2084a3),_0x505afa=new Set(),_0x1b63ef=new Set();for(const _0x2df7f8 of _0x15c3ba['getSuggestions']())if(('insertion'==_0x2df7f8['type']||'deletion'==_0x2df7f8['type']||'mergeTableCells'==_0x2df7f8['subType'])&&_0x2df7f8['isInContent']){for(const _0x1295d5 of _0x2df7f8['getRanges']())_0x1295d5['containsRange'](_0x4e4f4f,!0x0)&&_0x505afa['add'](_0x2df7f8['type']+':'+_0x2df7f8['author']['id']),_0x1295d5['containsRange'](_0x47164c,!0x0)&&_0x1b63ef['add'](_0x2df7f8['type']+':'+_0x2df7f8['author']['id']);}if(_0x505afa['size']!=_0x1b63ef['size'])return!0x1;for(const _0x1ae735 of _0x505afa)if(!_0x1b63ef['has'](_0x1ae735))return!0x1;return!0x0;}}class Ct extends _0x518f0a{static get['requires'](){return[It];}['afterInit'](){const _0x502125=this['editor'];if(!_0x502125['plugins']['has']('TableEditing'))return;const _0x1c9186=_0x502125['locale'],_0x119c18=_0x502125['plugins']['get']('TrackChangesEditing');_0x119c18['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x119c18['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x119c18['registerBlockAttribute']('headingRows'),_0x119c18['registerBlockAttribute']('headingColumns'),_0x119c18['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c9186,'FORMAT_HEADER_ROW')),_0x119c18['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c9186,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x28f723=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48e406=this['editor']['plugins']['get']('TableUtils'),_0x5b0f9b=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x39ad07({showActiveMarker:_0x38ec95=!0x0,setDataAttribute:_0x77221f=!0x0}={}){return(_0x2922ac,_0x9692a,_0x362c3e)=>{const {type:_0x4a5832,id:_0x33822f}=_0x28f723['_splitMarkerName'](_0x9692a['markerName']),_0x1c17f8=_0x28f723['getSuggestion'](_0x33822f),_0x21cba3=_0x1c17f8['data'];if('formatBlock'!=_0x1c17f8['type']||!_0x21cba3||'setTableColumnHeader'!=_0x21cba3['commandName'])return;if(_0x9692a['item'])return void _0x2922ac['stop']();if(!_0x362c3e['consumable']['consume'](_0x9692a['markerRange'],_0x2922ac['name']))return;const _0x493bca=_0x9692a['markerRange']['start']['nodeAfter'],_0x1bf34e=_0x9692a['markerRange']['end']['nodeBefore'],_0x2875b8=_0x493bca['parent']['parent'],{column:_0x12ac30}=_0x48e406['getCellLocation'](_0x493bca),{column:_0x105cd1}=_0x48e406['getCellLocation'](_0x1bf34e);for(let _0x22955f=_0x12ac30;_0x22955f<=_0x105cd1;_0x22955f++){const _0x3e4fce=_0x48e406['createTableWalker'](_0x2875b8,{'column':_0x22955f,'includeAllSlots':!0x1});for(const _0x334061 of _0x3e4fce){const _0x152eb5=_0x334061['cell'],_0x283532=_0x362c3e['mapper']['toViewElement'](_0x152eb5);_0x362c3e['writer']['addClass']('ck-suggestion-marker-'+_0x4a5832,_0x283532),_0x77221f&&_0x362c3e['writer']['setAttribute']('data-suggestion',_0x33822f,_0x283532),_0x362c3e['mapper']['bindElementToMarker'](_0x283532,_0x9692a['markerName']),_0x38ec95&&(_0x28f723['activeMarkers']['includes'](_0x9692a['markerName'])?_0x362c3e['writer']['addClass']('ck-suggestion-marker--active',_0x283532):_0x362c3e['writer']['removeClass']('ck-suggestion-marker--active',_0x283532));}}};}_0x28f723['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b0f9b),_0x28f723['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b0f9b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x39ad07(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x464180,_0x313d7a,_0x4ce4fe)=>{_0x4ce4fe['options']['showSuggestionHighlights']&&_0x39ad07({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x464180,_0x313d7a,_0x4ce4fe);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4883be,_0x66fc16,_0x55f80f)=>{const {type:_0x570a94,id:_0x37b5f7}=_0x28f723['_splitMarkerName'](_0x66fc16['markerName']),_0x15581c=_0x28f723['getSuggestion'](_0x37b5f7),_0x1b49f8=_0x15581c['data'];if('formatBlock'!=_0x15581c['type']||!_0x1b49f8||'setTableColumnHeader'!=_0x1b49f8['commandName'])return;const _0x4f1842=_0x55f80f['mapper']['markerNameToElements'](_0x66fc16['markerName']);if(_0x4f1842){for(const _0x3c9a30 of _0x4f1842)_0x55f80f['writer']['removeClass']('ck-suggestion-marker-'+_0x570a94,_0x3c9a30),_0x55f80f['writer']['removeClass']('ck-suggestion-marker--active',_0x3c9a30),_0x55f80f['writer']['removeAttribute']('data-suggestion',_0x3c9a30),_0x55f80f['mapper']['unbindElementFromMarkerName'](_0x3c9a30,_0x66fc16['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ff054=this['editor'],_0x21df48=_0x3ff054['locale'];function _0x1ec320(_0x48c6c5){return{'type':'format','content':o(_0x21df48,'*Format:*\x20%0',_0x48c6c5)};}_0x3ff054['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10e982=>{if('formatBlock'!=_0x10e982['type'])return;const {data:_0x4f3dab}=_0x10e982;if(_0x4f3dab){if('setTableRowHeader'==_0x4f3dab['commandName']){const _0x2270b6=_0x4f3dab['commandParams'][0x0]['forceValue'];return _0x1ec320(o(_0x21df48,_0x2270b6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4f3dab['commandName']){const _0x5ef200=_0x4f3dab['commandParams'][0x0]['forceValue'];return _0x1ec320(o(_0x21df48,_0x5ef200?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x25f2f6=>[_0x25f2f6,null]));class _t extends _0x518f0a{static get['requires'](){return[It];}['afterInit'](){const _0x2fbf06=this['editor'];if(!_0x2fbf06['plugins']['has']('TableClipboard'))return;const _0x206791=_0x2fbf06['plugins']['get']('TrackChangesEditing'),_0x32bac8=_0x2fbf06['plugins']['get']('TableUtils'),_0x5254f0=_0x2fbf06['plugins']['get'](It),_0x5b8c39=_0x2fbf06['plugins']['get']('TableClipboard');_0x5254f0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fbf06['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fbf06['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2974f2=null;_0x2fbf06['model']['on']('insertContent',(_0x2d610b,_0x5822bc)=>{const [_0x107d48,_0x26c0aa]=_0x5822bc,_0x5c9e99=_0x5822bc[_0x5822bc['length']-0x1];_0x5c9e99&&_0x5c9e99['forceDefaultExecution']||_0x206791['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x33ff2a,_0x4fbbf7,_0x454e81,_0x3632a2,_0x4f6977){if(_0x4fbbf7&&!_0x4fbbf7['is']('documentSelection'))return!0x1;const _0x1c88c4=_0x4f6977['getTableIfOnlyTableInContent'](_0x33ff2a,_0x454e81);if(!_0x1c88c4||!Re(_0x1c88c4,void 0x0,_0x3632a2))return!0x1;const _0x2b2835=_0x3632a2['getSelectionAffectedTableCells'](_0x454e81['document']['selection']);if(!_0x2b2835['length'])return!0x1;const _0x5134a4=_0x2b2835[0x0]['findAncestor']('table'),_0x14fd1c=_0x3632a2['getRowIndexes'](_0x2b2835),_0x5034fd=_0x3632a2['getColumnIndexes'](_0x2b2835),_0xc884ac={'startRow':_0x14fd1c['first'],'endRow':_0x14fd1c['last'],'startColumn':_0x5034fd['first'],'endColumn':_0x5034fd['last']};return 0x1==_0x2b2835['length']&&(_0xc884ac['endRow']+=_0x3632a2['getRows'](_0x1c88c4)-0x1,_0xc884ac['endColumn']+=_0x3632a2['getColumns'](_0x1c88c4)-0x1),Re(_0x5134a4,_0xc884ac,_0x3632a2);}(_0x107d48,_0x26c0aa,_0x2fbf06['model'],_0x32bac8,_0x5b8c39)&&(_0x2d610b['stop'](),_0x2974f2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fbf06['model']['change'](()=>{_0x2fbf06['model']['insertContent'](_0x5822bc[0x0],_0x5822bc[0x1],_0x5822bc[0x2],{'forceDefaultExecution':!0x0});const _0x350625=_0x3946ed(),{rowInsertionRanges:_0x545fc9,columnInsertionRanges:_0x45330a,insertionRanges:_0x46bb96,deletionRanges:_0x1b2131,cells:_0x51bbd4}=_0x2974f2;_0x545fc9['length']&&_0x206791['markMultiRangeInsertion'](_0x545fc9,'tablePasteRow',{'tablePasteChainId':_0x350625}),_0x45330a['length']&&_0x206791['markMultiRangeInsertion'](_0x45330a,'tablePasteColumn',{'tablePasteChainId':_0x350625}),_0x46bb96['length']&&(_0x206791['markMultiRangeInsertion'](_0x46bb96,'tablePaste',{'tablePasteChainId':_0x350625,'skipNestingCheck':!0x0}),_0x46bb96['forEach'](_0x5d64b6=>_0x5d64b6['detach']?.())),_0x1b2131['length']&&(_0x206791['markMultiRangeDeletion'](_0x1b2131,'tablePaste',{'tablePasteChainId':_0x350625,'skipNestingCheck':!0x0}),_0x1b2131['forEach'](_0x58c1f9=>_0x58c1f9['detach']?.()));const _0x4bb414=_0x206791['markMultiRangeBlockFormat'](_0x51bbd4['map'](({element:_0x1aef53})=>_0x1aef53),{'formatGroupId':_0x3946ed()},[],'tablePasteCell',{'tablePasteChainId':_0x350625});if(_0x4bb414){const _0x4f2da9=_0x4bb414['getMarkers'](),_0x5cc544=[];for(const {element:_0xfa7790,attributes:_0x11e7c1}of _0x51bbd4){if(!_0x11e7c1)continue;const _0x5b1249=_0x2fbf06['model']['createRangeOn'](_0xfa7790),_0x1f114f=_0x4f2da9['find'](_0x2da118=>_0x2da118['getRange']()['isEqual'](_0x5b1249));_0x1f114f&&_0x5cc544['push']([_0x1f114f['name'],_0x11e7c1]);}_0x5cc544['length']&&_0x4bb414['setAttribute']('markerAttributes',Object['fromEntries'](_0x5cc544));}_0x2974f2=null;}));},{'priority':_0x5c72d6['high']+0xa}),_0x2fbf06['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x256444,_0x400108)=>{const [_0x25299d,_0xd8cb2e,,_0x3499ca]=_0x400108;if(!_0x2974f2)return;_0x256444['stop']();const _0x345c94=_0x25299d['cell'],_0x26101e=_0xd8cb2e,_0x1fbedb=ke(_0x345c94),_0x2ce136=ke(_0x26101e);_0x256444['return']=_0x345c94;let _0x5f06b4=null,_0x519d45=null;if(_0x2ce136||_0x1fbedb){if(_0x1fbedb&&!_0x2ce136){_0x3499ca['remove'](_0x345c94['getChild'](0x0));for(const _0x3108e5 of Array['from'](_0x26101e['getChildren']()))_0x3499ca['insert'](_0x3108e5,_0x345c94,'end');const _0x4a461b=_0x2974f2['rowInsertionIndexes']['includes'](_0x25299d['row']),_0x537eed=_0x2974f2['columnInsertionIndexes']['includes'](_0x25299d['column']);_0x4a461b||_0x537eed||(_0x5f06b4=_0x1b6799['fromRange'](_0x3499ca['createRangeIn'](_0x345c94)));}else _0x2ce136&&!_0x1fbedb&&(_0x519d45=_0x3499ca['createRangeIn'](_0x345c94));}else{const _0x4be3ee=_0x3499ca['createElement']('tableCellSuggestion'),_0xf15eff=_0x3499ca['createElement']('tableCellSuggestion');_0x3499ca['wrap'](_0x3499ca['createRangeIn'](_0x345c94),_0xf15eff),_0x3499ca['insert'](_0x4be3ee,_0x345c94,0x0);for(const _0x52e68f of Array['from'](_0x26101e['getChildren']()))_0x3499ca['insert'](_0x52e68f,_0x4be3ee,'end');_0x5f06b4=_0x1b6799['fromRange'](_0x3499ca['createRangeOn'](_0x4be3ee)),_0x519d45=_0x1b6799['fromRange'](_0x3499ca['createRangeOn'](_0xf15eff));}const _0x492fab=Array['from'](_0x26101e['getAttributes']())['filter'](([_0x44dc43])=>Pe['includes'](_0x44dc43));_0x2974f2['cells']['push']({'element':_0x345c94,'attributes':_0x492fab['length']?Object['fromEntries'](_0x492fab):null}),_0x5f06b4&&_0x2974f2['insertionRanges']['push'](_0x5f06b4),_0x519d45&&_0x2974f2['deletionRanges']['push'](_0x519d45);},{'priority':'high'}),_0x32bac8['on']('insertColumns',(_0x5ddab6,_0x3a33a6)=>{const [_0x17ac9f,_0x585841={}]=_0x3a33a6;if(!_0x2974f2)return;const _0x30bfb6=_0x585841['at']||0x0,_0x135681=_0x585841['columns']||0x1;_0x2974f2['columnInsertionIndexes']=new Array(_0x135681)['fill'](_0x30bfb6)['map']((_0xedb58,_0x5c59db)=>_0xedb58+_0x5c59db);for(const {cell:_0x33c800}of _0x32bac8['createTableWalker'](_0x17ac9f,{'startColumn':_0x30bfb6,'endColumn':_0x30bfb6+_0x135681-0x1}))_0x2974f2['columnInsertionRanges']['push'](_0x2fbf06['model']['createRangeOn'](_0x33c800));},{'priority':'low'}),_0x32bac8['on']('insertRows',(_0x583f12,_0x2de899)=>{const [_0x4bd507,_0x317c3c={}]=_0x2de899;if(!_0x2974f2)return;const _0x454076=_0x317c3c['at']||0x0,_0x36f771=_0x317c3c['rows']||0x1;_0x2974f2['rowInsertionIndexes']=new Array(_0x36f771)['fill'](_0x454076)['map']((_0x436dbe,_0x5dbc14)=>_0x436dbe+_0x5dbc14);for(const {cell:_0x468885}of _0x32bac8['createTableWalker'](_0x4bd507,{'startRow':_0x454076,'endRow':_0x454076+_0x36f771-0x1}))_0x2974f2['rowInsertionRanges']['push'](_0x2fbf06['model']['createRangeOn'](_0x468885));},{'priority':'low'}),_0x206791['descriptionFactory']['registerDescriptionCallback'](_0x51f523=>{if(_0x51f523['subType']&&_0x51f523['subType']['startsWith']('tablePaste'))return _0x51f523['previous']?{}:{'type':'insertion','content':o(_0x2fbf06['locale'],'*Replace\x20table\x20cells*')};});const _0x3e6b61=()=>!0x1;for(const _0x335aeb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x206791['_suggestionFactory']['registerCustomCallback']('insertion',_0x335aeb,'join',_0x3e6b61),_0x206791['_suggestionFactory']['registerCustomCallback']('deletion',_0x335aeb,'join',_0x3e6b61),_0x206791['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x335aeb,'join',_0x3e6b61);_0x206791['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e6b61),_0x206791['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1477c0,_0x366dc6,_0x536f9b)=>{const _0x53b8e4=_0x1477c0['map'](_0x2a9579=>_0x2a9579['getContainedElement']())['filter'](_0x273814=>_0x273814),_0x55af60=new Map(_0x53b8e4['map'](_0x4ab956=>[_0x4ab956,null]));if(_0x2974f2){for(const {element:_0x3ec16d,attributes:_0x2ed52d}of _0x2974f2['cells'])_0x2ed52d&&_0x55af60['set'](_0x3ec16d,_0x2ed52d);}else{if(_0x536f9b&&_0x536f9b['markerAttributes'])for(const [_0x2d3309,_0x3987bc]of Object['entries'](_0x536f9b['markerAttributes'])){const _0x3bf624=_0x2fbf06['model']['markers']['get'](_0x2d3309),_0x449c1d=_0x3bf624?_0x3bf624['getRange']()['getContainedElement']():null;_0x449c1d&&_0x55af60['set'](_0x449c1d,_0x3987bc);}}_0x2fbf06['model']['change'](_0x281923=>{for(const [_0x3f72a5,_0x4c8e31]of _0x55af60)_0x281923['setAttributes']({...we,..._0x4c8e31},_0x3f72a5);});});const _0x27f2c6=(_0x162704,_0x52b7c5)=>{_0x206791['_suggestionFactory']['registerCustomCallback'](_0x162704,'tablePaste',_0x52b7c5,(_0x3d87cd,_0x18349b,_0x255b88)=>{_0x2fbf06['model']['change'](_0x4a34b1=>{const _0x2836e3=[];for(const _0x575c2d of _0x3d87cd){const _0x3927e7=_0x575c2d['start']['nodeAfter'];_0x3927e7['is']('element','tableCellSuggestion')&&_0x2836e3['push'](_0x3927e7);}_0x206791['_suggestionFactory']['getSuggestionCallback'](_0x162704,null,_0x52b7c5)(_0x3d87cd,_0x18349b,_0x255b88);for(const _0x51816b of _0x2836e3)'$graveyard'!=_0x51816b['root']['rootName']&&_0x4a34b1['unwrap'](_0x51816b);});});};_0x27f2c6('insertion','accept'),_0x27f2c6('insertion','discard'),_0x27f2c6('deletion','accept'),_0x27f2c6('deletion','discard'),_0x206791['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x387bba=>{const _0x3fb1f8=_0x387bba['map'](_0x7628da=>_0x7628da['getContainedElement']()),_0x452570=_0x3fb1f8[0x0]['findAncestor']('table'),{minRow:_0x17279d,maxRow:_0x161a8c}=_0x5254f0['_getCoordsForCells'](_0x3fb1f8);_0x32bac8['removeRows'](_0x452570,{'at':_0x17279d,'rows':_0x161a8c-_0x17279d+0x1});}),_0x206791['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x144286=>{const _0x5d11bc=_0x144286['map'](_0x46b297=>_0x46b297['getContainedElement']()),_0x40fb24=_0x5d11bc[0x0]['findAncestor']('table'),{minColumn:_0x35b718,maxColumn:_0xe0a7db}=_0x5254f0['_getCoordsForCells'](_0x5d11bc);_0x32bac8['removeColumns'](_0x40fb24,{'at':_0x35b718,'columns':_0xe0a7db-_0x35b718+0x1});});const _0x8b2236=(_0x1517aa,_0x286016)=>{if(!_0x286016['subType']||!_0x286016['subType']['startsWith']('tablePaste'))return;const _0x40f6fc=_0x286016['attributes']['tablePasteChainId'],_0x4a1e70=_0x206791['getSuggestions']()['filter'](_0x1f46c8=>_0x1f46c8['isInContent']&&_0x1f46c8['attributes']&&_0x1f46c8['attributes']['tablePasteChainId']==_0x40f6fc);_0x4a1e70['length']&&_0x286016['getAllAdjacentSuggestions']()['length']!=_0x4a1e70['length']&&_0x4a1e70['reduce']((_0x2bfce8,_0x242684)=>(_0x2bfce8['next']=_0x242684,_0x242684['previous']=_0x2bfce8,_0x242684));};function _0x100956(_0x6f3352,_0x59da6c=!0x0){const {id:_0x2f6aaa,authorId:_0x393fed}=_0x206791['_splitMarkerName'](_0x6f3352['markerName']),_0x9cc422=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x15a4cf=_0x206791['activeMarkers']['includes'](_0x6f3352['markerName']);return _0x15a4cf&&_0x9cc422['push']('ck-suggestion-marker--active'),{'classes':_0x9cc422,'attributes':{'data-suggestion':_0x2f6aaa,'data-author-id':_0x393fed},'priority':_0x15a4cf&&_0x59da6c?0xbc2:0xbb8};}_0x206791['on']('suggestionLoaded',_0x8b2236,{'priority':'high'}),_0x206791['on']('suggestionUnloaded',_0x8b2236,{'priority':'high'}),_0x2fbf06['model']['document']['registerPostFixer'](()=>{let _0x9af6d9=!0x1;const _0x3fe0fa=Array['from'](_0x2fbf06['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb07ea1,data:_0x2f2f0d}of _0x3fe0fa){const {group:_0x4ef849,type:_0x3dabb9,id:_0x1e5e76}=_0x206791['_splitMarkerName'](_0xb07ea1);if('suggestion'!=_0x4ef849||'deletion'!=_0x3dabb9||_0x2f2f0d['oldRange'])continue;if(!_0x206791['hasSuggestion'](_0x1e5e76))continue;const _0x121daf=_0x206791['getSuggestion'](_0x1e5e76)['getRanges'](),_0x3669ca=_0x2fbf06['plugins']['get']('Users')['me'];for(const _0x27dd29 of _0x206791['getSuggestions']()){if(!_0x27dd29['isInContent']||_0x27dd29['author']!=_0x3669ca)continue;if('formatBlock'!=_0x27dd29['type']||'tablePasteCell'!=_0x27dd29['subType'])continue;if(_0x27dd29['getRanges']()['every'](_0x270aaa=>_0x121daf['some'](_0x46315a=>_0x46315a['containsRange'](_0x270aaa,!0x0)))){for(const _0x12581a of _0x27dd29['getAllAdjacentSuggestions']())_0x12581a['isInContent']&&(_0x12581a['discard'](),_0x9af6d9=!0x0);}}}return _0x9af6d9;}),_0x2fbf06['model']['document']['registerPostFixer'](_0x293a3c=>{const _0x5e1148=_0x2fbf06['commands']['get']('redo');if(!_0x5e1148||!_0x5e1148['_createdBatches']['has'](_0x293a3c['batch']))return!0x1;let _0x34c8f8=!0x1;const _0x89da70=_0x2fbf06['plugins']['get']('Users')['me'],_0xe63f6f=_0x2fbf06['model']['document']['differ']['getChanges'](),_0x317149=Array['from'](_0x2fbf06['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31449c,data:_0x147922})=>{const {group:_0xaf4ba1,subType:_0x15c775,authorId:_0x503aca}=_0x206791['_splitMarkerName'](_0x31449c);return'suggestion'==_0xaf4ba1&&'tablePaste'==_0x15c775&&_0x503aca==_0x89da70['id']&&!_0x147922['oldRange'];});for(const _0xd38c72 of _0xe63f6f){if('insert'!=_0xd38c72['type']||'tableCellSuggestion'!=_0xd38c72['name']||0x1!=_0xd38c72['length'])continue;const _0x2c94f6=_0x293a3c['createRange'](_0xd38c72['position'],_0xd38c72['position']['getShiftedBy'](0x1));if(!_0x317149['find'](({data:_0x828332})=>_0x828332['newRange']['isEqual'](_0x2c94f6))){for(const {name:_0x79b18d,data:_0x435b27}of _0x317149)if(_0x2c94f6['containsRange'](_0x435b27['newRange'])){_0x293a3c['updateMarker'](_0x79b18d,{'range':_0x2c94f6}),_0x34c8f8=!0x0;break;}}}return _0x34c8f8;}),_0x2fbf06['model']['document']['registerPostFixer'](_0x5e908f=>{let _0x54fc0e=!0x1;const _0x1e9bb4=_0x2fbf06['plugins']['get']('Users')['me'],_0x67da28=_0x206791['getSuggestions']()['filter'](_0x5a943f=>_0x5a943f['isInContent']&&_0x5a943f['author']==_0x1e9bb4),_0x421c73=new Set(),_0x3066e1=new Set();for(const _0x44362e of _0x67da28)if('tablePaste'==_0x44362e['subType'])for(const _0x1522e6 of _0x44362e['getMarkers']()){const _0x1b0994=_0x1522e6['getRange']()['getContainedElement']();if(_0x1b0994){if(_0x1b0994['is']('element','tableCellSuggestion')&&ke(_0x1b0994)){_0x44362e['removeMarker'](_0x1522e6['name']),_0x421c73['add'](_0x1b0994),_0x54fc0e=!0x0;const _0xdf0988=_0x1b0994['nextSibling'],_0x3d66fd=_0x1b0994['previousSibling'],_0x21cf88=_0xdf0988&&_0xdf0988['is']('element','tableCellSuggestion'),_0x3362e0=_0x3d66fd&&_0x3d66fd['is']('element','tableCellSuggestion');_0x21cf88&&!_0x421c73['has'](_0xdf0988)&&_0x3066e1['add'](_0xdf0988),_0x3362e0&&!_0x421c73['has'](_0x3d66fd)&&_0x3066e1['add'](_0x3d66fd);}else _0x1b0994['is']('element','paragraph')&&_0x1b0994['isEmpty']&&(_0x44362e['removeMarker'](_0x1522e6['name']),_0x54fc0e=!0x0);}}else{if('tablePasteCell'==_0x44362e['subType']){if(!_0x44362e['attributes']||!_0x44362e['attributes']['tablePasteChainId'])continue;const _0x195335=_0x44362e['attributes']['markerAttributes'];if(_0x195335&&Object['keys'](_0x195335)['length'])continue;const _0x439be2=_0x44362e['attributes']['tablePasteChainId'];let _0x4ca70e=!0x0,_0x5d1570=!0x0;for(const _0x2d6b16 of _0x67da28)if(_0x2d6b16['subType']&&_0x2d6b16['subType']['startsWith']('tablePaste')){if(!_0x2d6b16['attributes']['tablePasteChainId']){_0x5d1570=!0x1;break;}if(_0x2d6b16['id']!=_0x44362e['id']&&_0x2d6b16['attributes']['tablePasteChainId']==_0x439be2){_0x4ca70e=!0x1;break;}}_0x5d1570&&_0x4ca70e&&(_0x44362e['removeMarkers'](),_0x54fc0e=!0x0);}}for(const _0x3d5279 of _0x421c73)_0x5e908f['remove'](_0x3d5279);for(const _0x58cea6 of _0x3066e1)_0x5e908f['unwrap'](_0x58cea6);return _0x54fc0e;}),_0x2fbf06['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x565b51,_0x316a67)=>_0x100956(_0x565b51),'converterPriority':'high'}),_0x2fbf06['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5811bc,_0x2ec30c)=>_0x2ec30c['options']['showSuggestionHighlights']?_0x100956(_0x5811bc,!0x1):null,'converterPriority':'high'});const _0x17e5bc=_0x2fbf06['editing']['view'];this['listenTo'](_0x17e5bc['document'],'clipboardOutput',(_0x3a0f8c,_0xfe7774)=>{const _0x4839a8=[];for(const _0x2aa6e4 of _0x17e5bc['createRangeIn'](_0xfe7774['content'])['getItems']())_0x2aa6e4['is']('element','suggestion-td')&&_0x4839a8['push'](_0x2aa6e4);_0x17e5bc['change'](_0x395019=>{for(const _0x2eb575 of _0x4839a8)_0x395019['move'](_0x395019['createRangeIn'](_0x2eb575),_0x395019['createPositionBefore'](_0x2eb575)),_0x395019['remove'](_0x2eb575);});});}}function ke(_0x993ad8){if(_0x993ad8['isEmpty'])return!0x0;const _0x3fc6fa=_0x993ad8['getChild'](0x0);return _0x3fc6fa['is']('element','paragraph')&&_0x3fc6fa['isEmpty'];}function Re(_0x2ffceb,_0x1089dd={},_0x479081){for(const {isAnchor:_0x16dd24,cellHeight:_0x2f1d92,cellWidth:_0x49926c}of _0x479081['createTableWalker'](_0x2ffceb,{'includeAllSlots':!0x0,..._0x1089dd}))if(!_0x16dd24||0x1!=_0x2f1d92||0x1!=_0x49926c)return!0x1;return!0x0;}class Nt extends _0x518f0a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x996392=this['editor']['plugins']['get']('TrackChangesEditing');_0x996392['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x996392['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x996392['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x996392['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x996392['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x996392['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x40eaf2,_0xaff1bf){const _0x1aa454=this['editor']['plugins']['get']('TrackChangesEditing'),_0x269c89=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x169205=_0xaff1bf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x27988b=_0x269c89['getColumnGroupElement'](_0x169205);let _0x12800e=_0x27988b?_0x269c89['getTableColumnsWidths'](_0x27988b):null,_0x54a42f=_0x169205['getAttribute']('tableWidth')||null;const _0x48fb9e=_0xaff1bf['tableWidth']||_0x54a42f,_0x280e52=_0xaff1bf['columnWidths']||_0x12800e,_0x294068=this['editor']['plugins']['get']('Users')['me'];for(const _0x516d50 of _0x1aa454['getSuggestions']()){const _0x1515dc=_0x516d50['getContainedElement']();if('resizeTable'===_0x516d50['subType']&&_0x1515dc===_0x169205){_0x516d50['author']!==_0x294068&&_0x516d50['discard']();const _0x33352f=_0x516d50['data']['commandParams'];_0x54a42f=_0x33352f[0x0]['tableWidth'],_0x12800e=_0x33352f[0x0]['columnWidths'];break;}}_0x40eaf2({'table':_0x169205,'tableWidth':_0x48fb9e,'columnWidths':_0x280e52}),_0x1aa454['markBlockFormat'](_0x169205,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x54a42f,'columnWidths':_0x12800e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b2193){if('formatBlock'!=_0x4b2193['type']&&'formatInline'!=_0x4b2193['type'])return;const {data:_0x15416e}=_0x4b2193;if(_0x15416e&&'resizeTable'===_0x15416e['formatGroupId']){const _0x2e3bd7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2e3bd7)};}}}class Dt extends _0x518f0a{['afterInit'](){const _0x30e652=this['editor'];_0x30e652['plugins']['has']('Template')&&_0x30e652['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x518f0a{['afterInit'](){const _0x3e1bb4=this['editor'];if(!_0x3e1bb4['commands']['get']('insertTableOfContents'))return;_0x3e1bb4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x23c0d7=_0x3e1bb4['plugins']['get']('TrackChangesEditing'),_0x267070=_0x3e1bb4['locale'];_0x23c0d7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c2b95=>o(_0x267070,'ELEMENT_TABLE_OF_CONTENTS',_0x5c2b95));}}class $t extends _0x518f0a{['afterInit'](){const _0x2a58e4=this['editor'];if(!_0x2a58e4['plugins']['has']('Title'))return;const _0xf71863=_0x2a58e4['plugins']['get']('TrackChangesEditing');_0xf71863['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2a58e4['locale'],'ELEMENT_TITLE')),_0x2a58e4['model']['document']['registerPostFixer'](_0x5d9921=>{let _0x5f28fb=!0x1;const _0x3cf7f9=Array['from'](_0x2a58e4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e3301,data:_0x2a3959}of _0x3cf7f9){const {group:_0x247c44}=_0xf71863['_splitMarkerName'](_0x4e3301);if('suggestion'!==_0x247c44||!_0x2a3959['newRange'])continue;const _0x47d5f8=_0x2a3959['newRange'],_0x49bd7a=_0x47d5f8['end']['nodeBefore'];if(!_0x49bd7a||!_0x49bd7a['is']('element','title-content'))continue;if(!_0x47d5f8['start']['isTouching'](_0x47d5f8['end']))continue;const _0x1d310b=_0x2a58e4['model']['schema']['getNearestSelectionRange'](_0x47d5f8['end'],'forward');if(_0x1d310b&&_0x1d310b['isCollapsed']){const _0x25068d=_0x5d9921['createRange'](_0x47d5f8['start'],_0x1d310b['start']);_0x25068d['isEqual'](_0x47d5f8)||(_0x5d9921['updateMarker'](_0x4e3301,{'range':_0x25068d}),_0x5f28fb=!0x0);}_0x5f28fb||(_0x5d9921['removeMarker'](_0x4e3301),_0x5f28fb=!0x0);}return _0x5f28fb;});}}class Bt extends _0x518f0a{['afterInit'](){const _0x3102f0=this['editor'],_0x4c3ac7=_0x3102f0['plugins']['get']('TrackChangesEditing');_0x3102f0['plugins']['has']('UndoEditing')&&(_0x4c3ac7['enableCommand']('undo'),_0x4c3ac7['enableCommand']('redo'));}}class xt extends _0x518f0a{static get['requires'](){return[It];}['afterInit'](){const _0x14f7e6=this['editor'];if(!_0x14f7e6['plugins']['has']('TableCaptionEditing'))return;_0x14f7e6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x518f0a{['tableProperties'];['tableCellProperties'];constructor(_0x2935f3){super(_0x2935f3),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';}['afterInit'](){const _0x37d355=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3476be of this['tableProperties'])_0x37d355['enableCommand'](_0x3476be,(_0x406d58,_0x17f62f)=>{const _0x44159f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3476be,[_0x44159f],this['tableProperties'],'tableProperties',_0x406d58,_0x17f62f);});_0x37d355['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x37d355['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37d355['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47ddb4,_0x315d02)=>this['handleDiscardAction'](this['tableProperties'],_0x47ddb4,_0x315d02)),_0x37d355['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x228916 of this['tableCellProperties'])_0x37d355['enableCommand'](_0x228916,(_0x40ab7b,_0x361ce3)=>{const _0x28733c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x228916,_0x28733c,this['tableCellProperties'],'tableCellProperties',_0x40ab7b,_0x361ce3);});_0x37d355['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x37d355['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37d355['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5af460,_0x2bb27f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5af460,_0x2bb27f)),_0x37d355['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x37d355['descriptionFactory']['registerDescriptionCallback'](_0x2c95b3=>this['handleSuggestionDescription'](_0x2c95b3));}['_handlePropertyChange'](_0x4c76cc,_0x1a914,_0x20a800,_0x200975,_0x6779fe,_0x105f4c){const _0x3e4e84=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x105f4c['batch'],()=>{for(const _0x3937a5 of _0x1a914){if(this['_getSuggestion'](_0x3937a5,_0x200975))_0x6779fe(_0x105f4c);else{const _0x3f9d4b={};for(const _0x12959b of _0x20a800){const _0x33ddf6=_0x3937a5['getAttribute'](_0x12959b);void 0x0!==_0x33ddf6&&(_0x3f9d4b[_0x12959b]=_0x33ddf6);}_0x6779fe(_0x105f4c),_0x3e4e84['markBlockFormat'](_0x3937a5,{'commandParams':[_0x3f9d4b]},[],_0x200975);}}});}['handleDiscardAction'](_0x145c22,_0x39367b,_0x99ce8c){const _0xa0ff1d=_0x39367b[0x0]['start']['nodeAfter'],_0x49c24f=_0x99ce8c['commandParams'][0x0];this['editor']['model']['change'](_0x2a50c8=>{for(const _0x195d53 of _0x145c22)void 0x0!==_0x49c24f[_0x195d53]?_0x2a50c8['setAttribute'](_0x195d53,_0x49c24f[_0x195d53],_0xa0ff1d):_0x2a50c8['removeAttribute'](_0x195d53,_0xa0ff1d);});}['handleSuggestionDescription'](_0x35eac6){if(_0x35eac6['data'])switch(_0x35eac6['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'](_0x220538,_0x2c48a8){const _0x962757=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x456b17 of _0x962757['getSuggestions']({'skipNotAttached':!0x0})){const _0x39beb5=_0x456b17['getContainedElement']();if(_0x456b17['subType']===_0x2c48a8&&_0x39beb5===_0x220538)return _0x456b17;}return null;}}const m='$elementName';class p extends _0x518f0a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5b0384,_0x396d42,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1d7309){function _0x3b9021(_0x5ddd8a){return _0x5ddd8a['map'](_0x1bcfe5=>String['fromCharCode'](_0x1bcfe5))['join']('');}super(_0x1d7309),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x44954b,_0x5d41ba,_0x17bf53,_0x59d87b)=>{this['_model']['change'](()=>{for(const _0x19f414 of[..._0x59d87b,..._0x17bf53])this['_model']['markers']['has'](_0x19f414)&&_0x1d7309['editing']['reconvertMarker'](_0x19f414);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1d7309['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(),_0x1d7309['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d7309['config']['get']('trackChanges.trackFormatChanges'),_0x1d7309['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d7309['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d7309,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3b9021([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3b9021([0x34,0x30,0x34,0x38,0x31,0x38,0x33,0x30]);}['init'](){const _0x246f01=this['editor'],_0x7cdb77=(_0x344cfc,_0x121fcc)=>{if('attribute'!=_0x344cfc)return'ck-suggestion-marker-'+_0x344cfc;const _0xc78c81=_0x121fcc['split']('|')[0x0];return this['_isBlockAttribute'](_0xc78c81)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x246f01['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x48d6a1=>{const {id:_0xb4caa1,authorId:_0x5045ce,type:_0x400663,subType:_0xe3b615}=this['_splitMarkerName'](_0x48d6a1['markerName']),_0x258345=['ck-suggestion-marker',_0x7cdb77(_0x400663,_0xe3b615)];let _0x19fa66=0xbb8;return this['activeMarkers']['includes'](_0x48d6a1['markerName'])&&(_0x258345['push']('ck-suggestion-marker--active'),_0x19fa66=0xbc2),'deletion'==_0x400663&&(_0x19fa66+=0x5),{'classes':_0x258345,'attributes':{'data-suggestion':_0xb4caa1,'data-author-id':_0x5045ce},'priority':_0x19fa66};}}),_0x246f01['conversion']['for']('dataDowncast')['add'](_0x10c05f=>{_0x10c05f['on']('addMarker:suggestion',(_0x3ae5e5,_0x45a5ae,_0x21479f)=>{if(!_0x21479f['options']['showSuggestionHighlights'])return;const _0xa56399=_0x45a5ae['item'];if(!_0xa56399)return;const _0x5afb1e=_0x21479f['mapper']['toViewElement'](_0xa56399);_0x246f01['model']['schema']['isObject'](_0xa56399)&&_0x5afb1e&&!_0x5afb1e['getCustomProperty']('widget')&&_0x5afb1e['is']('containerElement')&&_0x39ccdb(_0x5afb1e,_0x21479f['writer']);},{'priority':'high'});}),_0x246f01['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2104bf,_0xe773cd)=>{if(!_0xe773cd['options']['showSuggestionHighlights'])return null;const {type:_0x5efb44,subType:_0x57ff72}=this['_splitMarkerName'](_0x2104bf['markerName']);return{'classes':['ck-suggestion-marker',_0x7cdb77(_0x5efb44,_0x57ff72)],'priority':0xbb8};}});const _0x1b09d6=({showActiveMarkers:_0x438f20=!0x0,isAttributeSuggestion:_0x47cbd2=!0x1}={})=>(_0x31229e,_0x547385,_0x29ecc6)=>{if(!_0x547385['item'])return;const {id:_0x4ddc61,authorId:_0x322bea}=this['_splitMarkerName'](_0x547385['markerName']);if(_0x47cbd2){const _0x1f4e2f=this['_suggestions']['get'](_0x4ddc61),_0x47cbc6=this['_getAttributeKey'](_0x1f4e2f);if(!this['_isBlockAttribute'](_0x47cbc6))return;}if(_0x547385['item']['is']('selection'))return void _0x29ecc6['consumable']['consume'](_0x547385['item'],_0x31229e['name']);const _0x2cc3fa=_0x29ecc6['mapper']['toViewElement'](_0x547385['item']);if(_0x547385['item']['is']('element')&&_0x246f01['model']['schema']['isBlock'](_0x547385['item'])&&!_0x2cc3fa['getCustomProperty']('addHighlight')){_0x29ecc6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2cc3fa),_0x29ecc6['writer']['setAttribute']('data-suggestion',_0x4ddc61,_0x2cc3fa),_0x29ecc6['writer']['setAttribute']('data-author-id',_0x322bea,_0x2cc3fa),_0x29ecc6['mapper']['bindElementToMarker'](_0x2cc3fa,_0x547385['markerName']),_0x438f20&&(this['activeMarkers']['includes'](_0x547385['markerName'])?_0x29ecc6['writer']['addClass']('ck-suggestion-marker--active',_0x2cc3fa):_0x29ecc6['writer']['removeClass']('ck-suggestion-marker--active',_0x2cc3fa));for(const _0x1dfafe of _0x246f01['model']['createRangeIn'](_0x547385['item'])['getItems']())_0x29ecc6['consumable']['consume'](_0x1dfafe,_0x31229e['name']);_0x29ecc6['consumable']['consume'](_0x547385['item'],_0x31229e['name']);}};_0x246f01['conversion']['for']('dataDowncast')['add'](_0x2c38d6=>{_0x2c38d6['on']('addMarker:suggestion:formatBlock',(_0xfd17bf,_0x2107f7,_0x436b3b)=>{_0x436b3b['options']['showSuggestionHighlights']&&_0x1b09d6({'showActiveMarkers':!0x1})(_0xfd17bf,_0x2107f7,_0x436b3b);},{'priority':'highest'});}),_0x246f01['conversion']['for']('dataDowncast')['add'](_0x28bc4c=>{_0x28bc4c['on']('addMarker:suggestion:attribute',(_0x2dcc1d,_0x2b9441,_0x589f67)=>{_0x589f67['options']['showSuggestionHighlights']&&_0x1b09d6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2dcc1d,_0x2b9441,_0x589f67);},{'priority':'highest'});}),_0x246f01['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x161bdc,_0x4f5279)=>_0x4f5279['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x161bdc['substr'](0xb)}}),_0x246f01['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c4e7f,{writer:_0x427bbf})=>{let _0x47fed4='suggestion:'+_0x5c4e7f['getAttribute']('suggestion-type')+':'+_0x5c4e7f['getAttribute']('id');return _0x5c4e7f['getAttribute']('marker-count')&&(_0x47fed4+=':'+_0x5c4e7f['getAttribute']('marker-count')),_0x427bbf['createElement']('$marker',{'data-name':_0x47fed4});}}),_0x246f01['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x246f01['conversion']['for']('editingDowncast')['add'](_0x53eb77=>{_0x53eb77['on']('addMarker:suggestion:formatBlock',_0x1b09d6(),{'priority':'high'});}),_0x246f01['conversion']['for']('editingDowncast')['add'](_0x58a04d=>{_0x58a04d['on']('addMarker:suggestion:attribute',_0x1b09d6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x246f01['conversion']['for']('editingDowncast')['add'](_0x1c5024=>{_0x1c5024['on']('removeMarker:suggestion:formatBlock',(_0x312a2c,_0x2d22cb,_0x1efb52)=>{const _0xadeb7c=_0x1efb52['mapper']['markerNameToElements'](_0x2d22cb['markerName']);if(_0xadeb7c){for(const _0x5ceefe of _0xadeb7c)_0x5ceefe['getCustomProperty']('addHighlight')||(_0x1efb52['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5ceefe),_0x1efb52['writer']['removeAttribute']('data-suggestion',_0x5ceefe),_0x1efb52['writer']['removeAttribute']('data-author-id',_0x5ceefe),_0x1efb52['mapper']['unbindElementFromMarkerName'](_0x5ceefe,_0x2d22cb['markerName']));}},{'priority':'high'});}),_0x246f01['conversion']['for']('editingDowncast')['add'](_0x34f586=>{_0x34f586['on']('removeMarker:suggestion:attribute',(_0x2e293c,_0x1b7b6a,_0x465488)=>{const _0x562d79=_0x465488['mapper']['markerNameToElements'](_0x1b7b6a['markerName']);if(!_0x562d79)return;const {id:_0x160a09}=this['_splitMarkerName'](_0x1b7b6a['markerName']),_0x4882bf=this['_suggestions']['get'](_0x160a09),_0x5d0f45=this['_getAttributeKey'](_0x4882bf);if(this['_isBlockAttribute'](_0x5d0f45)){for(const _0x6cbcf6 of _0x562d79)_0x6cbcf6['getCustomProperty']('addHighlight')||(_0x465488['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x6cbcf6),_0x465488['writer']['removeAttribute']('data-suggestion',_0x6cbcf6),_0x465488['writer']['removeAttribute']('data-author-id',_0x6cbcf6),_0x465488['mapper']['unbindElementFromMarkerName'](_0x6cbcf6,_0x1b7b6a['markerName']));}},{'priority':'high'});}),_0x246f01['model']['document']['registerPostFixer'](_0x51097c=>{let _0x3982a2=!0x1;const _0x5f310f=Array['from'](_0x246f01['model']['document']['differ']['getChangedMarkers']()),_0x5cb65f=new Set();for(const {name:_0x1cd0cb,data:_0x30a81d}of _0x5f310f){const {group:_0x15a1c3,type:_0x412ba0,subType:_0x3e3291,id:_0x51abdb}=this['_splitMarkerName'](_0x1cd0cb);if('suggestion'!==_0x15a1c3)continue;const _0x17be57=this['_suggestions']['get'](_0x51abdb);if(null!=_0x30a81d['newRange']){'formatInline'==_0x412ba0&&(_0x3982a2=_0x3982a2||Ut(_0x30a81d['newRange'],_0x1cd0cb,_0x51097c,_0x246f01['model']['schema']));const _0x197111='attribute'==_0x412ba0&&this['_isBlockAttribute'](_0x3e3291['split']('|')[0x0]);if(_0x30a81d['newRange']['isCollapsed']||'$graveyard'==_0x30a81d['newRange']['root']['rootName']||'formatBlock'==_0x412ba0&&!Ft(_0x30a81d['newRange'])||_0x197111&&!Ft(_0x30a81d['newRange'])||'deletion'==_0x412ba0&&!(!Vt(_0x41c228=_0x30a81d['newRange'])&&!function(_0x2c8d0f){return _0x2c8d0f['start']['parent']==_0x2c8d0f['end']['nodeBefore']&&_0x2c8d0f['start']['isAtEnd'];}(_0x41c228)))_0x51097c['removeMarker'](_0x1cd0cb),_0x3982a2=!0x0;else{if(!_0x17be57||!_0x17be57['isInContent'])continue;if(_0x30a81d['newRange']&&_0x30a81d['oldRange']&&_0x30a81d['newRange']['isEqual'](_0x30a81d['oldRange']))continue;_0x5cb65f['add'](_0x17be57);}}}var _0x41c228;return _0x5cb65f['size']>0x0&&(_0x3982a2=!!this['_joinWithAdjacentSuggestions'](_0x5cb65f)||_0x3982a2),_0x3982a2;}),_0x246f01['model']['document']['registerPostFixer'](_0x594d25=>{let _0x35dfbb=!0x1;for(const _0x1e7909 of _0x246f01['model']['document']['differ']['getChanges']())if('insert'==_0x1e7909['type'])for(const _0x5731e4 of this['_suggestions']['values']()){if(_0x5731e4['isMultiRange']||!_0x5731e4['isInContent'])continue;const _0x2c15c='formatBlock'==_0x5731e4['type'],_0x4b4b7e=this['_getAttributeKey'](_0x5731e4),_0x4b0120=_0x4b4b7e&&this['_isBlockAttribute'](_0x4b4b7e);if(!_0x2c15c&&!_0x4b0120)continue;const _0x12677d=_0x5731e4['getFirstRange']();if(_0x12677d['start']['parent']!=_0x12677d['end']['parent']&&!_0x12677d['end']['isAtEnd']){const _0x45e92b=_0x246f01['model']['createPositionAt'](_0x12677d['start']['nodeAfter'],'end'),_0x4dce4f=_0x246f01['model']['createRange'](_0x12677d['start'],_0x45e92b);_0x594d25['updateMarker'](_0x5731e4['getFirstMarker'](),{'range':_0x4dce4f}),_0x35dfbb=!0x0;}}return _0x35dfbb;}),_0x246f01['model']['document']['registerPostFixer'](_0x2fe040=>this['_processAttributeChanges'](_0x2fe040)),_0x246f01['model']['document']['registerPostFixer'](_0x274026=>!_0x274026['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x274026)),_0x246f01['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x246f01['model']['document']['on']('change:data',(_0x375982,_0xbde9b7)=>{if(!_0xbde9b7['isLocal']||_0xbde9b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xe6f5d8=_0x246f01['model']['document']['differ']['getChanges']();if(0x0==_0xe6f5d8['length'])return;const _0x5d23f3=[],_0x1d4cbf=_0xe6f5d8['filter'](_0xa58e2f=>'attribute'==_0xa58e2f['type']),_0x14d5e0=_0xe6f5d8['filter'](_0x22edc9=>'insert'==_0x22edc9['type']&&'$text'!=_0x22edc9['name']);for(const _0x18b3b1 of _0x1d4cbf)this['_isRegisteredAttribute'](_0x18b3b1['attributeKey'])&&_0x5d23f3['push']({'key':_0x18b3b1['attributeKey'],'newValue':_0x18b3b1['attributeNewValue'],'oldValue':_0x18b3b1['attributeOldValue'],'range':Pt(_0x18b3b1['range'],_0x246f01['model'])});for(const _0x8a8452 of _0x14d5e0){if('rename'!=_0x8a8452['action']&&'refresh'!=_0x8a8452['action'])continue;const _0x55bde5=Lt(_0x8a8452['position']['nodeAfter'],_0x246f01['model']),_0x44c403=_0x8a8452['before'];'rename'==_0x8a8452['action']&&_0x5d23f3['push']({'key':m,'newValue':_0x8a8452['name'],'oldValue':_0x44c403['name'],'range':_0x55bde5});for(const [_0x4621f8,_0x51a5b1]of _0x44c403['attributes']){if(!this['_isRegisteredAttribute'](_0x4621f8))continue;const _0x3cc773=_0x8a8452['attributes']['get'](_0x4621f8);_0x51a5b1!==_0x3cc773&&_0x5d23f3['push']({'key':_0x4621f8,'newValue':_0x3cc773,'oldValue':_0x51a5b1,'range':_0x55bde5});}for(const [_0x386d0a,_0x14b1f0]of _0x8a8452['attributes'])this['_isRegisteredAttribute'](_0x386d0a)&&(_0x44c403['attributes']['has'](_0x386d0a)||_0x5d23f3['push']({'key':_0x386d0a,'newValue':_0x14b1f0,'oldValue':null,'range':_0x55bde5}));}0x0!=_0x5d23f3['length']&&_0x246f01['model']['enqueueChange'](_0xbde9b7,_0x52ab3b=>{const _0x51dbea=_0x3946ed();for(const {range:_0x3665cf,key:_0x2d16df,oldValue:_0x43b17f,newValue:_0x3545b0}of _0x5d23f3)this['markAttributeChange'](_0x3665cf,_0x2d16df,_0x43b17f,_0x3545b0,{'groupId':_0x51dbea});this['_reduceExistingSuggestions'](_0x52ab3b,_0x5d23f3);});},{'priority':'lowest'}),_0x246f01['model']['markers']['on']('update:suggestion',(_0x4c1a30,_0x3ae03e,_0x4e285d)=>{if(null==_0x4e285d){const {id:_0x4a75ec}=this['_splitMarkerName'](_0x3ae03e['name']),_0x3fe683=this['_suggestions']['get'](_0x4a75ec);_0x3fe683&&_0x3fe683['addMarkerName'](_0x3ae03e['name']);}}),_0x246f01['model']['document']['on']('change:data',()=>{const _0x575db2=Array['from'](_0x246f01['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35ba22=>'suggestion'===this['_splitMarkerName'](_0x35ba22['name'])['group']);if(0x0===_0x575db2['length'])return;_0x575db2['sort']((_0x287e6d,_0x1bf4f0)=>{const _0xa29b64=_0x287e6d['data']['oldRange'],_0x170cdd=_0x1bf4f0['data']['oldRange'];return null===_0xa29b64&&null===_0x170cdd?0x0:null===_0xa29b64&&null!==_0x170cdd?-0x1:null!==_0xa29b64&&null===_0x170cdd?0x1:_0xa29b64['start']['isBefore'](_0x170cdd['start'])?-0x1:0x1;});const _0x2b18d1=new Set(),_0x3f1339=new Set();for(const {name:_0x40bc35,data:_0xa9a8bb}of _0x575db2){const {id:_0x26d455}=this['_splitMarkerName'](_0x40bc35);if(null===_0xa9a8bb['oldRange']){const _0x58ea2f=this['_handleNewSuggestionMarker'](_0x40bc35);_0x3f1339['add'](_0x58ea2f);}else{const _0x2c706c=this['_suggestions']['get'](_0x26d455);null!==_0xa9a8bb['newRange']||_0x2c706c['isInContent']?(_0x2b18d1['add'](_0x2c706c['head']),_0x3f1339['add'](_0x2c706c)):this['_removeSuggestion'](_0x2c706c);}}_0x3f1339['size']>0x0&&this['_refreshSuggestionsChain'](_0x3f1339);for(const _0x1a02c6 of _0x2b18d1)this['fire']('suggestionChanged',_0x1a02c6);}),_0x246f01['model']['on']('applyOperation',(_0x10eb5d,_0x35d501)=>{const _0x321e2f=_0x35d501[0x0];if(!this['_suggestions']['size'])return;if(!_0x321e2f['isDocumentOperation'])return;if(_0x321e2f['batch']['isUndo']||!_0x321e2f['batch']['isLocal'])return;let _0x1d745e,_0x5779e6;switch(_0x321e2f['type']){case'insert':_0x1d745e=_0x246f01['model']['createPositionAt'](_0x321e2f['position']),_0x5779e6=_0x1d745e['getShiftedBy'](_0x321e2f['howMany']);break;case'split':_0x1d745e=_0x246f01['model']['createPositionAt'](_0x321e2f['splitPosition']),_0x5779e6=_0x246f01['model']['createPositionAt'](_0x321e2f['moveTargetPosition']);break;case'move':_0x1d745e=_0x246f01['model']['createPositionAt'](_0x321e2f['targetPosition']),_0x5779e6=_0x1d745e['getShiftedBy'](_0x321e2f['howMany']);break;default:return;}const _0x5bd7af=_0x246f01['model']['createRange'](_0x1d745e,_0x5779e6);_0x246f01['model']['change'](()=>{for(const {suggestion:_0x49a2ad,meta:_0x24064c}of this['_findSuggestions'](_0x5bd7af)){if(_0x49a2ad['isMultiRange'])continue;if('formatInline'==_0x49a2ad['type'])continue;const _0x59c510=this['_getAttributeKey'](_0x49a2ad);if(_0x59c510&&this['_isBlockAttribute'](_0x59c510)&&'split'!=_0x321e2f['type'])continue;const _0x43aef0=_0x49a2ad['data']&&_0x49a2ad['data']['multipleBlocks'];('formatBlock'!=_0x49a2ad['type']||'split'==_0x321e2f['type']&&!_0x43aef0)&&(_0x24064c['containsRangeInObject']||'insertion'==_0x49a2ad['type']&&_0x24064c['isOwn']||_0x49a2ad['getFirstRange']()['containsRange'](_0x5bd7af)&&this['_breakSuggestionMarker'](_0x49a2ad,_0x1d745e,_0x5779e6));}});},{'priority':'lowest'}),_0x246f01['model']['on']('deleteContent',(_0x9a7338,_0xf770e1)=>{const _0x2c5cb7=_0xf770e1[0x0],_0x1223fd=_0xf770e1[0x1];if(_0x1223fd&&_0x1223fd['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2c5cb7['isCollapsed'])return;const _0x34a0ac=_0x246f01['model']['schema'],{start:_0x2cd33b,end:_0x5c9fa6}=_0x2c5cb7['getFirstRange'](),_0x34252d=_0x2cd33b['nodeAfter']&&_0x34a0ac['isLimit'](_0x2cd33b['nodeAfter'])?null:_0x34a0ac['getNearestSelectionRange'](_0x2cd33b,'forward'),_0x27b9b8=_0x5c9fa6['nodeBefore']&&_0x34a0ac['isLimit'](_0x5c9fa6['nodeBefore'])?null:_0x34a0ac['getNearestSelectionRange'](_0x5c9fa6,'backward'),_0x310fe2=_0x246f01['model']['createRange'](_0x34252d?_0x34252d['start']:_0x2cd33b,_0x27b9b8?_0x27b9b8['end']:_0x5c9fa6);_0x246f01['model']['change'](_0x1f8d85=>{this['markDeletion'](_0x310fe2);const _0xaa1efa=_0x246f01['model']['schema']['getNearestSelectionRange'](_0x310fe2['start']);_0x2c5cb7['is']('documentSelection')?_0x1f8d85['setSelection'](_0xaa1efa):_0x2c5cb7['setTo'](_0xaa1efa);}),_0x9a7338['stop']();},{'priority':_0x5c72d6['normal']+0xa}),_0x246f01['model']['on']('insertContent',(_0x5253e3,_0x51c1ca)=>{const _0x15810d=_0x51c1ca[_0x51c1ca['length']-0x1];_0x15810d&&_0x15810d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x246f01['model']['change'](()=>{let _0x5be946=_0x246f01['model']['insertContent'](_0x51c1ca[0x0],_0x51c1ca[0x1],_0x51c1ca[0x2],{'forceDefaultExecution':!0x0});if(!_0x5be946)return;_0x5253e3['return']=_0x5be946['clone']();const _0x4c16c6=_0x5be946['end']['nodeBefore'],_0x321b85=_0x246f01['model']['schema'];_0x4c16c6&&_0x321b85['isBlock'](_0x4c16c6)&&!_0x321b85['isObject'](_0x4c16c6)&&(_0x5be946=_0x246f01['model']['createRange'](_0x5be946['start'],_0x246f01['model']['createPositionAt'](_0x4c16c6,'end'))),this['markInsertion'](_0x5be946);}),_0x5253e3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x399ba0=new x(_0x246f01,this['_suggestions']);_0x246f01['commands']['add']('acceptSuggestion',_0x399ba0),this['enableCommand']('acceptSuggestion');const _0x253ecf=new R(_0x246f01,this['_suggestions']);_0x246f01['commands']['add']('discardSuggestion',_0x253ecf),this['enableCommand']('discardSuggestion'),_0x246f01['commands']['add']('acceptAllSuggestions',new E(_0x246f01,_0x399ba0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x246f01['commands']['add']('discardAllSuggestions',new E(_0x246f01,_0x253ecf,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x246f01['commands']['add']('acceptSelectedSuggestions',new O(_0x246f01,_0x399ba0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x246f01['commands']['add']('discardSelectedSuggestions',new O(_0x246f01,_0x253ecf,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbe2117=_0x246f01['plugins']['get']('CommentsRepository');this['listenTo'](_0xbe2117,'addComment',(_0x453b81,{threadId:_0x32611f})=>{const _0x405eff=this['_suggestions']['get'](_0x32611f);_0x405eff&&_0x405eff['commentThread']&&0x1===_0x405eff['commentThread']['length']&&this['_updateSuggestionData'](_0x32611f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbe2117,'removeComment',(_0x362d26,{threadId:_0x395f2d})=>{const _0x780f18=this['_suggestions']['get'](_0x395f2d);_0x780f18&&_0x780f18['commentThread']&&!_0x780f18['commentThread']['length']&&this['_updateSuggestionData'](_0x395f2d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x30757){if(this['_adapter'])throw new _0x5c8a3b('track-changes-adapter-already-set',this);this['_adapter']=_0x30757;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xed7208=!0x1,toJSON:_0x2b1872=!0x1}={}){const _0x63848a=[];for(const _0x3ab0cb of this['_suggestions']['values']())_0xed7208&&!_0x3ab0cb['isInContent']||_0x63848a['push'](_0x3ab0cb);return _0x2b1872?_0x63848a['map'](_0x2ad839=>_0x2ad839['toJSON']()):_0x63848a;}['getSuggestion'](_0x1b0cec){const _0x184bbc=this['_suggestions']['get'](_0x1b0cec);if(!_0x184bbc)throw new _0x5c8a3b('track-changes-suggestion-not-found',this);return _0x184bbc;}['hasSuggestion'](_0x261d1f){return this['_suggestions']['has'](_0x261d1f);}['addSuggestionData'](_0x31bd46){const {authorId:_0x2af31c,id:_0x2f8ecb,attributes:_0x58b49d}=_0x31bd46,[_0x7e61cd,_0x4ccb55]=_0x31bd46['type']['split'](':'),_0x23ed8d=this['_suggestions']['get'](_0x2f8ecb)||this['_createSuggestion'](_0x7e61cd,_0x4ccb55,_0x2f8ecb,_0x2af31c,_0x58b49d);if(this['_addThreadToSuggestion'](_0x23ed8d),this['_checkSuggestionCorrectness'](_0x23ed8d,_0x7e61cd,_0x4ccb55||null,_0x2af31c),_0x23ed8d['createdAt']=_0x31bd46['createdAt'],_0x23ed8d['_isDataLoaded']=!0x0,_0x58b49d&&_0x58b49d['@external']){const _0x5dca2c=_0x58b49d['@external'],_0xef917c=this['_getExternalAuthor'](_0x5dca2c['authorName']);_0x23ed8d['authoredAt']=_0x5dca2c['createdAt'],_0x23ed8d['author']=_0xef917c,_0x23ed8d['isExternal']=!0x0;}else _0x23ed8d['authoredAt']=_0x31bd46['createdAt'];switch(_0x31bd46['data']&&(_0x23ed8d['data']=_0x31bd46['data']),_0x31bd46['attributes']&&(_0x23ed8d['attributes']=_0x31bd46['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23ed8d['_saved']=!0x0),this['_suggestionState']['get'](_0x23ed8d)){case'notReady':this['_suggestionState']['set'](_0x23ed8d,'dataReady');break;case'markerReady':_0x23ed8d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23ed8d])),this['_refreshSuggestionsChain'](new Set([_0x23ed8d])),this['_suggestionState']['set'](_0x23ed8d,'ready'),this['fire']('suggestionLoaded',_0x23ed8d)):this['_suggestionState']['set'](_0x23ed8d,'removed');}return _0x23ed8d;}['acceptSuggestion'](_0x3f73e3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2112db of _0x3f73e3['getAllAdjacentSuggestions']())_0x2112db['accept']();});});}['discardSuggestion'](_0x1da9f7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3dbbda of _0x1da9f7['getAllAdjacentSuggestions']())_0x3dbbda['discard']();});});}['enableCommand'](_0x168709,_0x4b933a){const _0x2fe622=this['editor']['commands']['get'](_0x168709);if(!_0x2fe622)throw new _0x5c8a3b('track-changes-command-not-found',this,{'commandName':_0x168709});if(this['_enabledCommands']['has'](_0x2fe622))throw new _0x5c8a3b('track-changes-enable-command-twice',this,{'commandName':_0x168709});this['_enabledCommands']['add'](_0x2fe622),_0x4b933a&&_0x2fe622['on']('execute',(_0x2be8cc,_0x1bac5e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1bac5e['length']>0x0&&_0x1bac5e[_0x1bac5e['length']-0x1]&&_0x1bac5e[_0x1bac5e['length']-0x1]['forceDefaultExecution']?_0x1bac5e['pop']():(_0x2be8cc['return']=_0x4b933a((..._0x476665)=>_0x2fe622['execute'](..._0x476665,{'forceDefaultExecution':!0x0}),..._0x1bac5e),_0x2be8cc['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x54422b){let _0x25b851,_0x10bc6a;const _0x38656f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x25b851=_0x54422b();}catch(_0x387b95){_0x10bc6a=_0x387b95;}return _0x38656f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10bc6a&&_0x5c8a3b['rethrowUnexpectedError'](_0x10bc6a,this),_0x25b851;}['markInsertion'](_0x1ccae5,_0x1088d6=null,_0x41341a={}){if(_0x1ccae5['isCollapsed'])return null;const _0x40272c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5d6012,meta:_0x476f3a}of this['_findSuggestions'](_0x1ccae5,'insertion'))if(_0x476f3a['isOwn']){if(!_0x476f3a['isNextTo']){if(_0x476f3a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5d6012,_0x41341a))continue;return _0x5d6012;}if(qt(_0x5d6012,_0x41341a))return _0x5d6012;this['_breakSuggestionMarker'](_0x5d6012,_0x1ccae5['start'],_0x1ccae5['end']);break;}if(_0x1088d6==_0x5d6012['subType']&&qt(_0x5d6012,_0x41341a)){const _0x2fb034=_0x5d6012['getFirstRange']();return _0x2fb034['start']['isEqual'](_0x1ccae5['end'])?this['_setSuggestionRange'](_0x5d6012,this['_model']['createRange'](_0x1ccae5['start'],_0x2fb034['end'])):this['_setSuggestionRange'](_0x5d6012,this['_model']['createRange'](_0x2fb034['start'],_0x1ccae5['end'])),_0x5d6012;}}const _0x356fe4=_0x3946ed(),_0x1e1201=_0x40272c['id'],_0x34517c=_0x1088d6?'insertion:'+_0x1088d6:'insertion',_0x379054=this['_setSuggestionData']({'id':_0x356fe4,'type':_0x34517c,'createdAt':new Date(),'authorId':_0x1e1201,'attributes':_0x41341a});return this['_addSuggestionMarker'](_0x34517c,_0x356fe4,_0x1e1201,_0x1ccae5),_0x379054;}['markMultiRangeInsertion'](_0x1e6fac,_0x2bbbdb='multi',_0x4e058b={}){const _0x10fcf8=this['editor']['plugins']['get']('Users')['me'],_0x2053f0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2bbbdb,'join');for(const _0x2d26ba of this['getSuggestions']())if(_0x2d26ba['author']['id']==_0x10fcf8['id']&&'insertion'==_0x2d26ba['type']&&_0x2d26ba['subType']==_0x2bbbdb&&qt(_0x2d26ba,_0x4e058b)&&(_0x2053f0(_0x2d26ba['getRanges'](),_0x1e6fac)||_0x2053f0(_0x1e6fac,_0x2d26ba['getRanges']()))){for(const _0x38412c of _0x1e6fac)_0x2d26ba['addRange'](_0x38412c);return _0x2d26ba;}for(const {suggestion:_0x18f9cc,meta:_0x33182b}of this['_findSuggestions'](_0x1e6fac,'insertion')){if(!_0x33182b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x33182b['containsRangeInObject'])continue;if(!qt(_0x18f9cc,_0x4e058b))continue;let _0xe872e8=!0x0;for(const _0x165680 of _0x18f9cc['getRanges']())for(const _0x461e73 of _0x1e6fac)if(!_0x165680['containsRange'](_0x461e73)){_0xe872e8=!0x1;break;}if(_0xe872e8)return _0x18f9cc;}const _0x48f005=_0x3946ed(),_0x5c9833=_0x10fcf8['id'],_0x1c3e3c='insertion:'+_0x2bbbdb,_0x36ce62=this['_setSuggestionData']({'id':_0x48f005,'type':_0x1c3e3c,'createdAt':new Date(),'authorId':_0x5c9833,'attributes':_0x4e058b});for(const _0x59f761 of _0x1e6fac)this['_addSuggestionMarker'](_0x1c3e3c,_0x48f005,_0x5c9833,_0x59f761,u['getMultiRangeId']());return _0x36ce62;}['markInlineFormat'](_0x4a2f7b,_0x5d12aa,_0x4fb16d=null,_0x56f9f4={}){if(_0x4fb16d=_0x4fb16d||Gt(_0x5d12aa),_0x4a2f7b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4ebf4c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fb16d,'accept');return this['forceDefaultExecution'](()=>_0x4ebf4c([_0x4a2f7b],_0x5d12aa,_0x56f9f4)),null;}const _0x5cafb7=this['editor']['plugins']['get']('Users')['me'],_0x4e5904=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23246b,meta:_0x190e35}of this['_findSuggestions'](_0x4a2f7b,'insertion'))_0x190e35['isOwn']&&!_0x190e35['isInsideObject']&&_0x4e5904['push'](..._0x23246b['getRanges']());}const _0x14d595=function(_0x3aedad,_0xadcbb){const _0x1d574c=[];for(const _0x1528a3 of _0xadcbb){const _0x148224=_0x3aedad['getIntersection'](_0x1528a3);_0x148224&&_0x1d574c['push'](_0x148224);}return _0x1d574c;}(_0x4a2f7b,_0x4e5904),_0x2ad9f2=function(_0xf79256,_0x51367f){const _0x23cb46=[_0xf79256];for(const _0x43651b of _0x51367f){let _0x13c209=0x0;for(;_0x13c209<_0x23cb46['length'];){const _0x2a1d93=_0x23cb46[_0x13c209]['getDifference'](_0x43651b);_0x23cb46['splice'](_0x13c209,0x1,..._0x2a1d93),_0x13c209+=_0x2a1d93['length'];}}return _0x23cb46;}(_0x4a2f7b,_0x4e5904);_0x14d595['length']&&this['_model']['change'](()=>{for(const _0x5b1454 of _0x14d595){const _0x39bbe4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fb16d,'accept');this['forceDefaultExecution'](()=>_0x39bbe4([_0x5b1454],_0x5d12aa,_0x56f9f4));}});for(const _0x474d64 of _0x2ad9f2){let _0x427a28=null,_0x37d883=_0x474d64['start'],_0x204222=_0x474d64['end'];for(const {suggestion:_0x277dde,meta:_0x4c49e3}of this['_findSuggestions'](_0x474d64,'formatInline')){if(!_0x4c49e3['isOwn'])continue;if(_0x277dde['subType']!=_0x4fb16d)continue;if(!qt(_0x277dde,_0x56f9f4))continue;const _0x98fb39=_0x277dde['getFirstRange']();if(_0x98fb39['containsRange'](_0x474d64,!0x0))return null;_0x37d883=_0x37d883['isBefore'](_0x98fb39['start'])?_0x37d883:_0x98fb39['start'],_0x204222=_0x204222['isAfter'](_0x98fb39['end'])?_0x204222:_0x98fb39['end'],_0x427a28?_0x98fb39['start']['isBefore'](_0x427a28['getFirstRange']()['start'])?(_0x427a28['removeMarkers'](),_0x427a28=_0x277dde):_0x277dde['removeMarkers']():_0x427a28=_0x277dde;}const _0xb751b0=this['_model']['createRange'](_0x37d883,_0x204222);if(_0x427a28)this['_setSuggestionRange'](_0x427a28,_0xb751b0);else{const _0xcc49bc=_0x3946ed(),_0xdd3c37=_0x5cafb7['id'];this['_setSuggestionData']({'id':_0xcc49bc,'type':'formatInline:'+_0x4fb16d,'data':_0x5d12aa,'createdAt':new Date(),'authorId':_0xdd3c37,'attributes':_0x56f9f4}),this['_addSuggestionMarker']('formatInline:'+_0x4fb16d,_0xcc49bc,_0xdd3c37,_0xb751b0);}}return null;}['markBlockFormat'](_0x39c04f,_0x3f255c,_0x243a57=[],_0x1d303e=null,_0x1c1a4f={}){_0x3f255c['formatGroupId']||(_0x3f255c['formatGroupId']=_0x3f255c['commandName']),_0x3f255c['multipleBlocks']=_0x39c04f['is']('range'),_0x1d303e=_0x1d303e||Gt(_0x3f255c);const _0x2565a8=_0x243a57['map'](_0x5f584a=>Lt(_0x5f584a,this['_model'])),_0x5a49b4=_0x39c04f['is']('range')?_0x39c04f:Lt(_0x39c04f,this['_model']);if('never'===this['_trackFormatChanges']){const _0xc8a4eb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d303e,'accept');return this['forceDefaultExecution'](()=>_0xc8a4eb([_0x5a49b4],_0x3f255c,_0x1c1a4f)),null;}_0x2565a8['push'](_0x5a49b4);let _0x508b31=!0x0;for(const _0x5c6573 of _0x2565a8)if(!this['_rangeIsInLocalUserInsertion'](_0x5c6573)){_0x508b31=!0x1;break;}if(_0x508b31&&'always'!==this['_trackFormatChanges']){const _0x102174=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d303e,'accept');return this['forceDefaultExecution'](()=>_0x102174([_0x5a49b4],_0x3f255c,_0x1c1a4f)),null;}let _0x18cade=null,_0x370cdf=_0x5a49b4['start'],_0x573763=_0x5a49b4['end'];for(const {suggestion:_0x4649d2,meta:_0x1e3012}of this['_findSuggestions'](_0x5a49b4,'formatBlock')){if(!_0x1e3012['isOwn'])continue;if(_0x1e3012['isNextTo']||_0x1e3012['containsRangeInObject']||_0x1e3012['isInsideObject'])continue;if(_0x4649d2['data']['formatGroupId']!=_0x3f255c['formatGroupId'])continue;if(!qt(_0x4649d2,_0x1c1a4f))continue;const _0x130696=_0x4649d2['getFirstRange']();if(_0x4649d2['subType']==_0x1d303e){if(_0x130696['containsRange'](_0x5a49b4,!0x0))return null;_0x370cdf=_0x370cdf['isBefore'](_0x130696['start'])?_0x370cdf:_0x130696['start'],_0x573763=_0x573763['isAfter'](_0x130696['end'])?_0x573763:_0x130696['end'],_0x18cade?_0x130696['start']['isBefore'](_0x18cade['getFirstRange']()['start'])?(_0x18cade['removeMarkers'](),_0x18cade=_0x4649d2):_0x4649d2['removeMarkers']():_0x18cade=_0x4649d2;}else{const _0x3c9dd8=_0x5a49b4['getIntersection'](_0x130696);this['_cutOutSuggestionMarker'](_0x4649d2,_0x3c9dd8);}}const _0x3f2e87=this['editor']['plugins']['get']('Users')['me'],_0x4accfa=_0x3946ed(),_0x70b502=_0x3f2e87['id'];if(_0x18cade)return this['_setSuggestionRange'](_0x18cade,this['_model']['createRange'](_0x370cdf,_0x573763)),_0x18cade;{const _0x11c521=this['_setSuggestionData']({'id':_0x4accfa,'type':'formatBlock:'+_0x1d303e,'data':_0x3f255c,'createdAt':new Date(),'authorId':_0x70b502,'attributes':_0x1c1a4f});return this['_addSuggestionMarker']('formatBlock:'+_0x1d303e,_0x4accfa,_0x70b502,this['_model']['createRange'](_0x370cdf,_0x573763)),_0x11c521;}}['markMultiRangeBlockFormat'](_0x7dfeb3,_0x9fffd7,_0x3c0593=[],_0x48af12=null,_0x79b52a={}){_0x9fffd7['formatGroupId']||(_0x9fffd7['formatGroupId']=_0x9fffd7['commandName']);const _0x58cfa8=_0x7dfeb3[0x0];_0x9fffd7['multipleBlocks']=_0x58cfa8['is']('range'),_0x48af12=_0x48af12||Gt(_0x9fffd7);const _0x36d460=_0x3c0593['map'](_0x2983bb=>Lt(_0x2983bb,this['_model'])),_0x5110cf=_0x58cfa8['is']('range')?_0x7dfeb3:_0x7dfeb3['map'](_0x149b96=>Lt(_0x149b96,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2678fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48af12,'accept');return this['forceDefaultExecution'](()=>_0x2678fb(_0x5110cf,_0x9fffd7,_0x79b52a)),null;}_0x36d460['push'](..._0x5110cf);let _0x3bfc8a=!0x0;for(const _0x509377 of _0x36d460)if(!this['_rangeIsInLocalUserInsertion'](_0x509377)){_0x3bfc8a=!0x1;break;}if(_0x3bfc8a&&'always'!==this['_trackFormatChanges']){const _0x544358=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48af12,'accept');return this['forceDefaultExecution'](()=>_0x544358(_0x5110cf,_0x9fffd7,_0x79b52a)),null;}const _0x6c4356=this['editor']['plugins']['get']('Users')['me'];for(const _0x137a31 of this['getSuggestions']()){if(_0x137a31['author']['id']!=_0x6c4356['id'])continue;if('formatBlock'!=_0x137a31['type']||_0x137a31['data']['formatGroupId']!=_0x9fffd7['formatGroupId'])continue;if(!qt(_0x137a31,_0x79b52a))continue;const _0x303e2d=_0x137a31['subType']==_0x48af12;for(let _0x5199b0=0x0;_0x5199b0<_0x5110cf['length'];_0x5199b0++){const _0x4b5467=_0x5110cf[_0x5199b0];for(const _0x416870 of _0x137a31['getMarkers']()){const _0x2591ca=_0x416870['getRange']();if(_0x4b5467['isEqual'](_0x2591ca)){_0x303e2d?(_0x5110cf['splice'](_0x5199b0,0x1),_0x5199b0--):_0x137a31['removeMarker'](_0x416870['name']);break;}}}}if(0x0==_0x5110cf['length'])return null;const _0x1fe305=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48af12,'join');for(const _0x22d5c1 of this['getSuggestions']())if(_0x22d5c1['author']['id']==_0x6c4356['id']&&'formatBlock'==_0x22d5c1['type']&&_0x22d5c1['data']['formatGroupId']==_0x9fffd7['formatGroupId']&&_0x22d5c1['subType']==_0x48af12&&qt(_0x22d5c1,_0x79b52a)&&(_0x1fe305(_0x22d5c1['getRanges'](),_0x5110cf)||_0x1fe305(_0x5110cf,_0x22d5c1['getRanges']()))){for(const _0x3aecc7 of _0x5110cf)_0x22d5c1['addRange'](_0x3aecc7);return _0x22d5c1;}const _0x33da3f=_0x3946ed(),_0xcaa345=_0x6c4356['id'],_0x3c41bb='formatBlock:'+_0x48af12,_0x22a921=this['_setSuggestionData']({'id':_0x33da3f,'type':_0x3c41bb,'data':_0x9fffd7,'createdAt':new Date(),'authorId':_0xcaa345,'attributes':_0x79b52a});for(const _0x32faa9 of _0x5110cf)this['_addSuggestionMarker'](_0x3c41bb,_0x33da3f,_0xcaa345,_0x32faa9,u['getMultiRangeId']());return _0x22a921;}['markDeletion'](_0xcb0ca8,_0x323a74=null,_0x328a95={}){if(_0xcb0ca8['isCollapsed'])return null;const _0xda768b=this['editor']['plugins']['get']('Users')['me'],_0xa9fc1d=new _0x1b6799(_0xcb0ca8['start'],_0xcb0ca8['end']);for(const {suggestion:_0x1f162d,meta:_0x23e95b}of this['_findSuggestions'](_0xa9fc1d,'insertion'))if(_0x23e95b['isOwn']&&!_0x23e95b['isNextTo']){if(_0x1f162d['isMultiRange']){const _0x19cd4e=_0x1f162d['getRanges']()['filter'](_0x8d49ef=>'$graveyard'!=_0x8d49ef['root']['rootName']);_0x19cd4e['every'](_0x1b9a8c=>_0xa9fc1d['containsRange'](_0x1b9a8c,!0x0))&&_0x1f162d['discard']();if(_0x19cd4e['some'](_0x3e181c=>_0x3e181c['containsRange'](_0xa9fc1d,!0x0))){const _0x1f8894=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x323a74,'accept');return this['forceDefaultExecution'](()=>_0x1f8894([_0xa9fc1d],null,_0x328a95)),null;}}else{const _0x2ef067=_0xa9fc1d['getIntersection'](_0x1f162d['getFirstRange']());null!==_0x2ef067&&_0x1f162d['_onDiscard']([_0x2ef067],null,_0x328a95);}}if(_0xa9fc1d['detach'](),_0xa9fc1d['isCollapsed']||'$graveyard'==_0xa9fc1d['root']['rootName'])return null;let _0x3c08c2=null,_0x497a86=_0xa9fc1d['start'],_0x280ee7=_0xa9fc1d['end'];const _0x422033=this['_findSuggestions'](_0xa9fc1d,'deletion');for(const {suggestion:_0x550816,meta:_0x2dfd02}of _0x422033){const _0xff5f97=this['_model']['createRange'](_0x497a86,_0x280ee7);if(_0x2dfd02['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2dfd02['containsRangeInObject']&&!_0x2dfd02['isInsideObject'])){if(_0x550816['isMultiRange']){if(!qt(_0x550816,_0x328a95))continue;let _0x47a6e2=!0x0;for(const _0x4177d0 of _0x550816['getRanges']()){if(_0x4177d0['containsRange'](_0xff5f97,!0x0))return _0x550816;_0xff5f97['containsRange'](_0x4177d0)||(_0x47a6e2=!0x1);}_0x47a6e2&&_0x550816['discard']();}else{const _0x12615b=_0x550816['getFirstRange']();if(_0x12615b['containsRange'](_0xff5f97,!0x0))return _0x550816;if(!qt(_0x550816,_0x328a95)){_0xff5f97['containsRange'](_0x12615b)?_0x550816['removeMarkers']():_0x12615b['containsPosition'](_0x497a86)?_0x497a86=_0x12615b['end']:_0x12615b['containsPosition'](_0x280ee7)&&(_0x280ee7=_0x12615b['start']);continue;}_0x497a86=_0x497a86['isBefore'](_0x12615b['start'])?_0x497a86:_0x12615b['start'],_0x280ee7=_0x280ee7['isAfter'](_0x12615b['end'])?_0x280ee7:_0x12615b['end'],_0x328a95=Object['assign']({},_0x550816['attributes']),_0x3c08c2?_0x12615b['start']['isBefore'](_0x3c08c2['getFirstRange']()['start'])?(_0x3c08c2['removeMarkers'](),_0x3c08c2=_0x550816):_0x550816['removeMarkers']():_0x3c08c2=_0x550816;}}}if(_0x3c08c2)return this['_setSuggestionRange'](_0x3c08c2,this['_model']['createRange'](_0x497a86,_0x280ee7)),_0x3c08c2;{const _0x13a1b8=_0x3946ed(),_0x3e98e6=this['_model']['createRange'](_0x497a86,_0x280ee7),_0x59082d=_0xda768b['id'],_0xb0b642=_0x323a74?'deletion:'+_0x323a74:'deletion',_0x42a5bf=this['_setSuggestionData']({'id':_0x13a1b8,'type':_0xb0b642,'createdAt':new Date(),'authorId':_0x59082d,'attributes':_0x328a95});return this['_addSuggestionMarker'](_0xb0b642,_0x13a1b8,_0x59082d,_0x3e98e6),_0x42a5bf;}}['markMultiRangeDeletion'](_0xc1a58c,_0x492dbc='multi',_0x4ff052={}){const _0xae42c4=this['editor']['plugins']['get']('Users')['me'],_0x2049ef=_0xc1a58c['map'](_0x273373=>new _0x1b6799(_0x273373['start'],_0x273373['end'])),_0x1dc3d4=new Set();for(const {suggestion:_0x3b0612,meta:_0x63eac}of this['_findSuggestions'](_0x2049ef,'insertion'))_0x63eac['isOwn']&&!_0x63eac['isNextTo']&&_0x1dc3d4['add'](_0x3b0612);for(const _0x441cfe of _0x1dc3d4)if(_0x441cfe['isMultiRange']){const _0x25c503=_0x441cfe['getRanges']();(!_0x441cfe['attributes']||!_0x441cfe['attributes']['skipNestingCheck'])&&(_0x25c503['every'](_0x580f25=>_0x2049ef['some'](_0x2167b3=>_0x2167b3['containsRange'](_0x580f25,!0x0)))&&_0x441cfe['discard']());if(_0x2049ef['every'](_0x1ca2d4=>_0x25c503['some'](_0xef9731=>_0xef9731['containsRange'](_0x1ca2d4,!0x0)))){const _0x13d6ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x492dbc,'accept');return this['forceDefaultExecution'](()=>_0x13d6ea(_0xc1a58c,null,_0x4ff052)),null;}}else{const _0x42526a=_0x441cfe['getFirstRange']();_0x2049ef['some'](_0x46af1f=>_0x46af1f['containsRange'](_0x42526a,!0x0))&&_0x441cfe['discard']();if(_0x2049ef['every'](_0x445731=>_0x42526a['containsRange'](_0x445731,!0x0))){const _0x2b11f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x492dbc,'accept');return this['forceDefaultExecution'](()=>_0x2b11f3(_0x2049ef,null,_0x4ff052)),null;}}const _0x153cce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x492dbc,'join');let _0x167184=null;for(const _0x13bb53 of this['getSuggestions']())if(_0x13bb53['author']['id']==_0xae42c4['id']&&_0x13bb53['isInContent']&&'deletion'==_0x13bb53['type']&&_0x13bb53['subType']==_0x492dbc&&qt(_0x13bb53,_0x4ff052)&&(_0x153cce(_0x13bb53['getRanges'](),_0x2049ef)||_0x153cce(_0x2049ef,_0x13bb53['getRanges']()))){if(_0x167184){if(_0x13bb53['commentThread']&&_0x13bb53['commentThread']['length'])continue;for(const _0x125ee1 of _0x13bb53['getRanges']())_0x167184['isIntersectingWithRange'](_0x125ee1)||_0x167184['addRange'](_0x125ee1);_0x13bb53['removeMarkers']();}else{_0x167184=_0x13bb53;for(const _0x1bb63a of _0x2049ef)_0x13bb53['isIntersectingWithRange'](_0x1bb63a)||_0x13bb53['addRange'](_0x1bb63a);}}if(_0x167184)return _0x167184;_0x1dc3d4['clear']();for(const {suggestion:_0xd98765,meta:_0x322ce1}of this['_findSuggestions'](_0x2049ef,'deletion'))_0x322ce1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x322ce1['containsRangeInObject']&&!_0x322ce1['isInsideObject'])&&qt(_0xd98765,_0x4ff052)&&_0x1dc3d4['add'](_0xd98765);for(const _0x494948 of _0x1dc3d4){const _0x40286c=_0x494948['getRanges']();if(!_0x4ff052||!_0x4ff052['skipNestingCheck']){if(_0x2049ef['every'](_0x2fca07=>_0x40286c['some'](_0x18a9d4=>_0x18a9d4['containsRange'](_0x2fca07,!0x0))))return _0x494948;}(!_0x494948['attributes']||!_0x494948['attributes']['skipNestingCheck'])&&(_0x40286c['every'](_0x32cae8=>_0x2049ef['some'](_0x1d595b=>_0x1d595b['containsRange'](_0x32cae8,!0x0)))&&_0x494948['discard']());}const _0x846904=_0x3946ed(),_0x35c333=_0xae42c4['id'],_0x4dcbfe='deletion:'+_0x492dbc,_0x3d19ea=this['_setSuggestionData']({'id':_0x846904,'type':_0x4dcbfe,'createdAt':new Date(),'authorId':_0x35c333,'attributes':_0x4ff052});for(const _0x53169f of _0x2049ef)_0x53169f['detach'](),_0x53169f['isCollapsed']||'$graveyard'==_0x53169f['root']['rootName']||this['_addSuggestionMarker'](_0x4dcbfe,_0x846904,_0x35c333,_0x53169f,u['getMultiRangeId']());return _0x3d19ea;}['markAttributeChange'](_0x54d5b1,_0x3aa836,_0x298561,_0x1eb5e1,_0x3636fd){if(_0x54d5b1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3388a1=this['editor']['plugins']['get']('Users')['me']['id'],_0x3913b5=Array['from'](this['_suggestions']['values']())['filter'](_0x295bfc=>'attribute'==_0x295bfc['type']&&_0x295bfc['data']['key']==_0x3aa836&&_0x295bfc['isIntersectingWithRange'](_0x54d5b1));if('default'===this['_trackFormatChanges']){const _0xdd9127=this['_findSuggestions'](_0x54d5b1,'insertion')['filter'](({meta:_0x508d7f})=>_0x508d7f['isOwn']&&!_0x508d7f['isInsideObject']&&!_0x508d7f['isNextTo'])['map'](({suggestion:_0x43d586})=>_0x43d586);_0x3913b5['unshift'](..._0xdd9127);}const _0x316cac=new Map([[_0x54d5b1,_0x298561]]);for(const _0x47535b of _0x3913b5){const _0xcdad50='attribute'==_0x47535b['type']?_0x47535b['data']['oldValue']:void 0x0,_0x285d62=_0x47535b['getFirstRange'](),_0x4ee5e1=Array['from'](_0x316cac['keys']())['find'](_0x4c0546=>_0x4c0546['isIntersecting'](_0x285d62));if(!_0x4ee5e1)continue;const _0x59b590=_0x4ee5e1['getDifference'](_0x285d62);this['_isBlockAttribute'](_0x3aa836)&&'insertion'==_0x47535b['type']&&0x0!=_0x59b590['length']||(_0x316cac['delete'](_0x4ee5e1),_0x59b590['forEach'](_0x29dbed=>{_0x316cac['set'](_0x29dbed,_0x298561);}),'insertion'!=_0x47535b['type']&&_0xcdad50!=_0x1eb5e1&&_0x316cac['set'](_0x4ee5e1['getIntersection'](_0x285d62),_0xcdad50));}const _0x432d7d=[];for(const [_0x1ea639,_0xa7de39]of _0x316cac){const _0x559535=_0x3946ed(),_0x1ee78a={'key':_0x3aa836,'oldValue':_0xa7de39,'newValue':_0x1eb5e1};_0x3aa836['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':_0x3aa836});const _0xaab7f1=('attribute:'+(_0x3aa836+'|'+Gt({'newValue':_0x1eb5e1})))['substring'](0x0,0x3c),_0x1cff3a=this['_setSuggestionData']({'id':_0x559535,'type':_0xaab7f1,'data':_0x1ee78a,'createdAt':new Date(),'authorId':_0x3388a1,'attributes':_0x3636fd});_0x432d7d['push'](_0x1cff3a),this['_addSuggestionMarker'](_0xaab7f1,_0x559535,_0x3388a1,_0x1ea639);}return _0x432d7d;}['enableDefaultAttributesIntegration'](_0x1921ec){this['enableCommand'](_0x1921ec,(_0x228f01,..._0x284690)=>{this['_recordAttributeChanges'](()=>{_0x228f01(..._0x284690);});});}['registerBlockAttribute'](_0x2b5ef9){this['_blockAttributeKeys']['add'](_0x2b5ef9);}['registerInlineAttribute'](_0x398798){this['_inlineAttributeKeys']['add'](_0x398798);}['_getAttributeKey'](_0x133bca){return'attribute'==_0x133bca['type']?_0x133bca['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x8b7b6c,_0x15e952){const _0x141671=_0x8b7b6c['getFirstMarker']();this['_model']['change'](_0x5f3d9c=>{_0x5f3d9c['updateMarker'](_0x141671,{'range':_0x15e952});});}['_addThreadToSuggestion'](_0x445553){const _0x1d52df=_0x445553['id'],_0x5de802=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1d52df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5de802,'threadId':_0x1d52df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d3069=this['_commentsRepository']['getCommentThread'](_0x1d52df);_0x1d3069['unbind']('isRemovable'),_0x1d3069['isRemovable']=!0x1,_0x445553['commentThread']=_0x1d3069;}['_checkSuggestionCorrectness'](_0x51279f,_0x1a6851,_0x12a04a,_0x1508d7){if(_0x51279f['type']!=_0x1a6851||_0x51279f['subType']!=_0x12a04a||_0x51279f['creator']['id']!=_0x1508d7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5c8a3b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a2c23,_0x43e8a){const _0x550958=_0x1a2c23['getFirstRange']();if(_0x43e8a['isEqual'](_0x550958))_0x1a2c23['removeMarkers']();else{if(_0x550958['containsRange'](_0x43e8a)){const _0xa7d8b6=this['_model']['createPositionAt'](_0x43e8a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a2c23,this['_model']['createRange'](_0x550958['start'],_0xa7d8b6));const _0x5344df=_0x3946ed(),_0x5ecb8b=_0x1a2c23['creator']['id'],_0x4f9c26=_0x1a2c23['type']+':'+_0x1a2c23['subType'];this['_setSuggestionData']({'id':_0x5344df,'type':_0x4f9c26,'createdAt':new Date(),'authorId':_0x5ecb8b,'data':_0x1a2c23['data'],'attributes':_0x1a2c23['attributes']});const _0x3da2eb=this['_model']['createPositionAt'](_0x43e8a['end']['parent'],'after'),_0x4fb095=this['_model']['createRange'](_0x3da2eb,_0x550958['end']);this['_addSuggestionMarker'](_0x4f9c26,_0x5344df,_0x5ecb8b,_0x4fb095);}else{if(_0x550958['containsPosition'](_0x43e8a['start'])){const _0x2182d0=this['_model']['createPositionAt'](_0x43e8a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a2c23,this['_model']['createRange'](_0x550958['start'],_0x2182d0));}else{const _0x528a22=this['_model']['createPositionAt'](_0x43e8a['end']['parent'],'after');this['_setSuggestionRange'](_0x1a2c23,this['_model']['createRange'](_0x528a22,_0x550958['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x249057){for(const {suggestion:_0xb97031,meta:_0x1ae6cd}of this['_findSuggestions'](_0x249057,'insertion')){if(!_0x1ae6cd['isOwn'])continue;const _0x39f019=_0xb97031['getRanges']();for(const _0x3e60b1 of _0x39f019)if(!_0x249057['getDifference'](_0x3e60b1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x261c45){const _0x4d477f=this['editor']['plugins']['get']('Users')['getUser'](_0x261c45);if(!_0x4d477f)throw new _0x5c8a3b('track-changes-user-not-found',this);return _0x4d477f;}['_getExternalAuthor'](_0x3a5b8b){const _0x386d59=this['editor']['plugins']['get']('Users'),_0x5db486=_0x5c5670('external:'+_0x3a5b8b),_0x41d1f6=_0x386d59['getUser'](_0x5db486);return _0x41d1f6||_0x386d59['addUser']({'id':_0x5db486,'name':_0x3a5b8b});}['_createSuggestion'](_0x14a7bd,_0x2683fb,_0x62e74e,_0x702c43,_0x3a170d){const _0x2443d7=this['_getAuthorFromId'](_0x702c43),_0xdb0000=this['_suggestionFactory']['buildSuggestion'](_0x14a7bd,_0x2683fb,_0x62e74e,_0x2443d7,_0x3a170d,_0x55cb92=>{this['_updateSuggestionData'](_0x62e74e,{'attributes':_0x55cb92});const _0x34d8b1=this['getSuggestion'](_0x62e74e);this['_joinWithAdjacentSuggestions'](new Set([_0x34d8b1])),this['_refreshSuggestionsChain'](new Set([_0x34d8b1]));});return this['listenTo'](_0xdb0000,'accept',()=>{this['_updateSuggestionData'](_0x62e74e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xdb0000,'discard',()=>{this['_updateSuggestionData'](_0x62e74e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x62e74e,_0xdb0000),this['_suggestionState']['set'](_0xdb0000,'notReady'),_0xdb0000;}['_splitMarkerName'](_0x43b449){const _0x3659a7=_0x43b449['split'](':');return{'group':_0x3659a7[0x0],'type':_0x3659a7[0x1],'subType':_0x3659a7['length']>=0x5?_0x3659a7[0x2]:null,'id':_0x3659a7['length']<0x5?_0x3659a7[0x2]:_0x3659a7[0x3],'authorId':_0x3659a7['length']<0x5?_0x3659a7[0x3]:_0x3659a7[0x4],'markerCount':0x6==_0x3659a7['length']?_0x3659a7[0x5]:null};}['_breakSuggestionMarker'](_0x52b7e5,_0xbd4884,_0x1ec0f1){const _0x5f56f7=_0x52b7e5['getFirstRange'](),_0x5bf66a=_0x5f56f7['start'],_0x152d39=_0x5f56f7['end'];this['_setSuggestionRange'](_0x52b7e5,this['_model']['createRange'](_0x5bf66a,_0xbd4884));const _0x5b7254=_0x3946ed(),_0x4cba63=_0x52b7e5['creator']['id'],_0x70a906=_0x52b7e5['type']+(_0x52b7e5['subType']?':'+_0x52b7e5['subType']:'');this['_setSuggestionData']({'id':_0x5b7254,'type':_0x70a906,'createdAt':new Date(),'authorId':_0x4cba63,'originalSuggestionId':_0x52b7e5['id'],'attributes':_0x52b7e5['attributes'],'data':_0x52b7e5['data']});const _0x5a45f7=this['_getAttributeKey'](_0x52b7e5);('formatBlock'==_0x52b7e5['type']||_0x5a45f7&&this['_isBlockAttribute'](_0x5a45f7))&&(_0x1ec0f1=this['_model']['createPositionBefore'](_0x1ec0f1['parent'])),this['_addSuggestionMarker'](_0x70a906,_0x5b7254,_0x4cba63,this['_model']['createRange'](_0x1ec0f1,_0x152d39));}['_findSuggestions'](_0x1e423f,_0x2eb57e=null){const _0xfb67a8=[],_0x554e22=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e423f)||(_0x1e423f=[_0x1e423f]);for(const _0x300573 of this['getSuggestions']()){if(!_0x300573['isInContent'])continue;if(_0x2eb57e&&_0x300573['type']!=_0x2eb57e)continue;let _0x24a26a=!0x1;for(const _0x395392 of _0x300573['getRanges']()){for(const _0x388fc9 of _0x1e423f){const _0x7e4eb1=_0x388fc9['start']['isEqual'](_0x395392['end'])||_0x388fc9['end']['isEqual'](_0x395392['start']);if(_0x7e4eb1||_0x388fc9['getIntersection'](_0x395392)){const _0x426aff=_0x388fc9['containsRange'](_0x395392)&&Ot(this['_model']['schema'],_0x395392['start'],_0x388fc9),_0x2c6f87=_0x395392['containsRange'](_0x388fc9)&&Ot(this['_model']['schema'],_0x388fc9['start'],_0x395392);_0xfb67a8['push']({'suggestion':_0x300573,'meta':{'isOwn':_0x554e22==_0x300573['author'],'isNextTo':_0x7e4eb1,'isInsideObject':_0x426aff,'containsRangeInObject':_0x2c6f87}}),_0x24a26a=!0x0;break;}}if(_0x24a26a)break;}}return _0xfb67a8;}['_addSuggestionMarker'](_0x1acf08,_0x332f3a,_0x2c18aa,_0x2bbb48,_0x31b04c){this['_model']['change'](_0x6ea9db=>{let _0x457ca2='suggestion:'+_0x1acf08+':'+_0x332f3a+':'+_0x2c18aa;_0x31b04c&&(_0x457ca2=_0x457ca2+':'+_0x31b04c),_0x6ea9db['addMarker'](_0x457ca2,{'range':_0x2bbb48,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4076a1){const _0x1403bb=_0x4076a1['previous'],_0x5d0ccf=_0x4076a1['next'];_0x4076a1['previous']=null,_0x4076a1['next']=null,null!=_0x1403bb&&_0x1403bb['next']==_0x4076a1&&(_0x1403bb['next']=_0x5d0ccf),null!=_0x5d0ccf&&_0x5d0ccf['previous']==_0x4076a1&&(_0x5d0ccf['previous']=_0x1403bb),'ready'==this['_suggestionState']['get'](_0x4076a1)&&(this['_suggestionState']['set'](_0x4076a1,'removed'),this['fire']('suggestionUnloaded',_0x4076a1,_0x1403bb,_0x5d0ccf));}['_setSuggestionData'](_0x14f640){const _0x45144c=_0x14f640['id'],_0x58ffc5=this['addSuggestionData'](_0x14f640);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x49145e=this['editor']['plugins']['get']('PendingActions'),_0x57d77e=_0x58ffc5['hasComments'],_0xc110e6=_0x58ffc5['subType']?_0x58ffc5['type']+':'+_0x58ffc5['subType']:_0x58ffc5['type'],_0x714a86=this['editor']['locale'],_0x25ad14=_0x49145e['add'](o(_0x714a86,'PENDING_ACTION_SUGGESTION')),_0x235153={'id':_0x45144c,'type':_0xc110e6,'hasComments':_0x57d77e,'data':_0x14f640['data']||null,'originalSuggestionId':_0x14f640['originalSuggestionId']||null,'attributes':_0x58ffc5['attributes']};this['_adapter']['addSuggestion'](_0x235153)['then'](_0x12b986=>{_0x58ffc5['_saved']=!0x0,_0x49145e['remove'](_0x25ad14),_0x12b986&&_0x12b986['createdAt']&&(this['_suggestions']['get'](_0x45144c)['createdAt']=_0x12b986['createdAt']);})['catch'](_0x5b9e7d=>{throw _0x6401c7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58ffc5['discard']();}),_0x58ffc5['stopListening'](),this['_suggestions']['delete'](_0x58ffc5['id']),this['_suggestionState']['delete'](_0x58ffc5),_0x5b9e7d;});}return _0x58ffc5;}['_isBlockAttribute'](_0x59d82a){return this['_blockAttributeKeys']['has'](_0x59d82a);}['_updateSuggestionData'](_0x2f2782,_0x25730d){const _0x2cb727=this['editor']['plugins']['get']('PendingActions'),_0x43583a=this['getSuggestion'](_0x2f2782);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x43583a['_saved']){const _0x1c9446=_0x2cb727['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2f2782,_0x25730d)['then'](()=>{_0x2cb727['remove'](_0x1c9446);});}else _0x43583a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2f2782,_0x25730d);});}}['_getSuggestionData'](_0x338e00){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5c8a3b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x338e00);}['_handleNewSuggestionMarker'](_0x8f5265){const {id:_0x1360ff,type:_0x573e27,subType:_0x8c5d7a,authorId:_0x41c6d2}=this['_splitMarkerName'](_0x8f5265),_0x22241e=this['_suggestions']['get'](_0x1360ff)||this['_createSuggestion'](_0x573e27,_0x8c5d7a,_0x1360ff,_0x41c6d2,{});switch(this['_checkSuggestionCorrectness'](_0x22241e,_0x573e27,_0x8c5d7a,_0x41c6d2),this['_suggestionState']['get'](_0x22241e)){case'notReady':this['_getSuggestionData'](_0x1360ff)['then'](_0x21468b=>{let _0x532bdb=Promise['resolve']();_0x21468b['hasComments']&&(_0x532bdb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1360ff})),_0x532bdb['then'](()=>{this['addSuggestionData'](_0x21468b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x22241e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1360ff,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x22241e,'ready'),this['fire']('suggestionLoaded',_0x22241e);break;case'ready':this['fire']('suggestionChanged',_0x22241e);}return _0x22241e['addMarkerName'](_0x8f5265),_0x22241e;}['_refreshSuggestionsChain'](_0x67aaee){const _0x1ef02e=Array['from'](_0x67aaee),_0x1974d8=_0x1ef02e['filter'](_0x390f21=>'attribute'==_0x390f21['type']);this['_refreshAttributeSuggestionsChain'](_0x1974d8);const _0x4739be=_0x1ef02e['filter'](_0x25d5c3=>!_0x25d5c3['isMultiRange']&&'attribute'!=_0x25d5c3['type']),_0x2fc8bb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d2707=>!_0x2d2707['isMultiRange']&&'attribute'!=_0x2d2707['type']),_0x561cfb=_0x2fc8bb['filter'](_0x1a84b5=>!_0x67aaee['has'](_0x1a84b5)),_0x3acbb2=new Map(_0x2fc8bb['map'](_0x39ed32=>[_0x39ed32,this['_suggestionFactory']['getSuggestionCallback'](_0x39ed32['type'],_0x39ed32['subType'],'chain')])),_0x297ad3=new Map(_0x2fc8bb['map'](_0x405b96=>[_0x405b96,_0x405b96['getFirstRange']()])),_0x4ae5fe=new Set(),_0x5da8c7=new Set();for(let _0x4a3dc2=0x0;_0x4a3dc2<_0x4739be['length'];_0x4a3dc2++)_0x2e22a3(_0x4739be[_0x4a3dc2],_0x4739be,_0x4a3dc2+0x1);for(let _0x52b642=0x0;_0x52b642<_0x4739be['length'];_0x52b642++)_0x2e22a3(_0x4739be[_0x52b642],_0x561cfb,0x0);const _0x1904df=new Set();for(let _0x53cef1=0x0;_0x53cef1<_0x4739be['length'];_0x53cef1++){const _0x46bd82=_0x4739be[_0x53cef1];!_0x5da8c7['has'](_0x46bd82)&&_0x46bd82['previous']&&(_0x1904df['add'](_0x46bd82['previous']),_0x46bd82['previous']['next']===_0x46bd82&&(_0x46bd82['previous']['next']=null),_0x46bd82['previous']=null),!_0x4ae5fe['has'](_0x46bd82)&&_0x46bd82['next']&&(_0x1904df['add'](_0x46bd82['next']),_0x46bd82['next']['previous']===_0x46bd82&&(_0x46bd82['next']['previous']=null),_0x46bd82['next']=null);}function _0x2e22a3(_0x2a2b03,_0x143eaf,_0x243570){for(let _0x35c56b=_0x243570;_0x35c56b<_0x143eaf['length'];_0x35c56b++){const _0x529087=_0x35b599(_0x2a2b03,_0x143eaf[_0x35c56b]);_0x529087&&(_0x529087[0x0]['next']=_0x529087[0x1],_0x529087[0x1]['previous']=_0x529087[0x0],_0x4ae5fe['add'](_0x529087[0x0]),_0x5da8c7['add'](_0x529087[0x1]));}}function _0x35b599(_0x3ab363,_0x19f182){if(_0x3ab363['author']['id']!==_0x19f182['author']['id'])return null;const _0x15cf71=_0x3acbb2['get'](_0x3ab363)(_0x3ab363,_0x19f182,_0x297ad3['get'](_0x3ab363),_0x297ad3['get'](_0x19f182));if(!_0x15cf71)return null;return _0x3acbb2['get'](_0x19f182)(_0x3ab363,_0x19f182,_0x297ad3['get'](_0x3ab363),_0x297ad3['get'](_0x19f182))?_0x15cf71[0x1]['commentThread']&&_0x15cf71[0x1]['commentThread']['length']?null:_0x15cf71:null;}_0x1904df['size']&&this['_refreshSuggestionsChain'](_0x1904df);}['_refreshAttributeSuggestionsChain'](_0x555f5b){if(0x0==_0x555f5b['length'])return;const _0x4ef1f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c968a=>'attribute'==_0x4c968a['type']&&_0x4c968a['_isDataLoaded']),_0x52f96d=[],_0x54b0c5=new Map();for(const _0x50a3a6 of _0x4ef1f6){const _0x171c1d=_0x5c5670(_0x50a3a6['attributes']);_0x54b0c5['has'](_0x171c1d)||(_0x54b0c5['set'](_0x171c1d,_0x52f96d['length']),_0x52f96d['push']([]));const _0x1cde32=_0x54b0c5['get'](_0x171c1d);_0x52f96d[_0x1cde32]['push'](_0x50a3a6);}!(function(){_0x52f96d['sort']((_0x4fcbae,_0x2ea755)=>{const _0x39a504=_0x4fcbae[0x0]['createdAt'],_0x13bc93=_0x2ea755[0x0]['createdAt'];return _0x39a504==_0x13bc93?_0x4fcbae[0x0]['attributes']['groupId']<_0x2ea755[0x0]['attributes']['groupId']?-0x1:0x1:_0x39a504<_0x13bc93?-0x1:0x1;});for(const _0x2fd7e6 of _0x52f96d)_0x2fd7e6['sort']((_0x60d6e8,_0x2218c1)=>_0x60d6e8['id']<_0x2218c1['id']?-0x1:0x1);}());for(let _0xeb8cb9=0x0;_0xeb8cb9<_0x52f96d['length'];_0xeb8cb9++){if(0x0==_0x52f96d[_0xeb8cb9]['length'])continue;const _0x35b0e5=[];for(let _0x346cf7=_0xeb8cb9+0x1;_0x346cf7<_0x52f96d['length'];_0x346cf7++)0x0!=_0x52f96d[_0x346cf7]['length']&&_0x1c6e3d(_0x52f96d[_0xeb8cb9],_0x52f96d[_0x346cf7])&&_0x35b0e5['push'](_0x346cf7);for(const _0x5ee9ef of _0x35b0e5)_0x52f96d[_0xeb8cb9]=_0x52f96d[_0xeb8cb9]['concat'](_0x52f96d[_0x5ee9ef]),_0x52f96d[_0x5ee9ef]=[];}for(const _0xc6b39e of _0x52f96d)for(let _0x57c78a=0x0;_0x57c78a<_0xc6b39e['length'];_0x57c78a++){const _0x4bf08a=_0xc6b39e[_0x57c78a+0x1]||null;_0xc6b39e[_0x57c78a]['next']!==_0x4bf08a&&(_0xc6b39e[_0x57c78a]['next']=_0x4bf08a);}for(const _0x32a46b of _0x52f96d)for(let _0x2a13fb=0x0;_0x2a13fb<_0x32a46b['length'];_0x2a13fb++){const _0x40a2d4=_0x32a46b[_0x2a13fb-0x1]||null;_0x32a46b[_0x2a13fb]['previous']!==_0x40a2d4&&(_0x32a46b[_0x2a13fb]['previous']=_0x40a2d4);}function _0x1c6e3d(_0x17ce41,_0x3f1e07){if(_0x17ce41[0x0]['attributes']['groupId']!==_0x3f1e07[0x0]['attributes']['groupId']&&_0x17ce41[0x0]['author']!==_0x3f1e07[0x0]['author'])return!0x1;if(!function(_0x460c44,_0x39c0f1){if(!_0x460c44['hasComments']&&!_0x39c0f1['hasComments'])return!0x0;if(_0x460c44['hasComments']&&_0x39c0f1['hasComments'])return!0x1;if(_0x460c44['hasComments']&&_0x39c0f1['createdAt']<_0x460c44['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x39c0f1['hasComments']&&_0x460c44['createdAt']<_0x39c0f1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17ce41[0x0],_0x3f1e07[0x0]))return!0x1;const _0x653bbb=Tt(_0x17ce41[0x0]['attributes'],'groupId'),_0x138e11=Tt(_0x3f1e07[0x0]['attributes'],'groupId');if(!_0x4b7432(_0x653bbb,_0x138e11))return!0x1;return!!_0x17ce41['every'](_0x5b1fc5=>_0x3f1e07['some'](_0x26b99e=>_0x5b1fc5['getFirstRange']()['isEqual'](_0x26b99e['getFirstRange']())))&&_0x3f1e07['every'](_0x2efc1a=>_0x17ce41['some'](_0x173d73=>_0x2efc1a['getFirstRange']()['isEqual'](_0x173d73['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a9ebd){const _0x38993b=Array['from'](_0x3a9ebd),_0xafd06e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x302dfa=_0xafd06e['filter'](_0x5879bb=>!_0x3a9ebd['has'](_0x5879bb)),_0xb1e25c=new Map(_0x38993b['map'](_0x120c5b=>[_0x120c5b,this['_suggestionFactory']['getSuggestionCallback'](_0x120c5b['type'],_0x120c5b['subType'],'join')])),_0x300fb2=new Map(_0xafd06e['map'](_0x549029=>[_0x549029,_0x549029['getRanges']()]));for(let _0x311aa9=0x0;_0x311aa9<_0x38993b['length'];_0x311aa9++){if(_0x3f89d5(this,_0x38993b[_0x311aa9],_0x38993b,_0x311aa9+0x1))return!0x0;}for(let _0x271f64=0x0;_0x271f64<_0x38993b['length'];_0x271f64++){if(_0x3f89d5(this,_0x38993b[_0x271f64],_0x302dfa,0x0))return!0x0;}return!0x1;function _0x3f89d5(_0x35a298,_0x41f758,_0x186d7b,_0x4d570e){for(let _0x1bb244=_0x4d570e;_0x1bb244<_0x186d7b['length'];_0x1bb244++){const _0x56de9c=_0x186d7b[_0x1bb244];if(_0x56de9c['type']!==_0x41f758['type']||_0x56de9c['author']['id']!==_0x41f758['author']['id']||_0x56de9c['subType']!==_0x41f758['subType'])continue;if(!Jt(_0x41f758,_0x56de9c))continue;if('attribute'==_0x41f758['type']&&_0x41f758['data']['oldValue']!=_0x56de9c['data']['oldValue'])continue;if('attribute'==_0x41f758['type']&&_0x35a298['_isBlockAttribute'](_0x41f758['data']['key']))continue;if('formatBlock'==_0x41f758['type']){const _0x25d9de=_0x35a298['editor']['model'],_0x204656=_0x41f758['getContainedElement']();if(_0x204656&&(_0x25d9de['schema']['isObject'](_0x204656)||_0x25d9de['schema']['isLimit'](_0x204656)))continue;}const _0x2aebd2=_0xb1e25c['get'](_0x41f758),_0x44829e=_0x300fb2['get'](_0x41f758),_0xd7c5a4=_0x300fb2['get'](_0x56de9c),_0x318b2a=_0x41f758['commentThread']&&_0x41f758['commentThread']['length'],_0x216772=_0x56de9c['commentThread']&&_0x56de9c['commentThread']['length'];if(!_0x318b2a&&_0x2aebd2(_0xd7c5a4,_0x44829e))return _0x35a298['_joinSuggestions'](_0x56de9c,_0x41f758),_0x300fb2['delete'](_0x41f758),!0x0;if(!_0x216772&&_0x2aebd2(_0x44829e,_0xd7c5a4))return _0x35a298['_joinSuggestions'](_0x41f758,_0x56de9c),_0x300fb2['delete'](_0x56de9c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4d2880,_0xc89926){if(_0x4d2880['isMultiRange']){for(const _0x22b898 of _0xc89926['getRanges']())_0x4d2880['addRange'](_0x22b898);}else{const _0x456e58=_0xc89926['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4d2880,this['_model']['createRange'](_0x4d2880['getFirstRange']()['start'],_0x456e58));}_0xc89926['removeMarkers']();}['_getMarkerAnnouncementText'](_0x80b092,_0x113381,_0x337ff7){const _0x12631f=_0x80b092['startsWith']('format')||_0x80b092['startsWith']('attribute')?'FORMATTING':_0x80b092['toUpperCase']();return o(this['editor']['locale'],_0x113381+'_'+_0x12631f+'_SUGGESTION_ANNOUNCEMENT',_0x337ff7);}['_initAriaMarkerChangeAnnouncements'](){const _0x5ab368=this['editor'];if(!_0x5ab368['ui'])return;const {ariaLiveAnnouncer:_0x291d56}=_0x5ab368['ui'];_0x3e6a68(this['_model'],({left:_0x54af95,entered:_0x6c6757})=>{for(const _0x44a02e of _0x54af95){const {group:_0x2e9e30,type:_0x3448fa}=this['_splitMarkerName'](_0x44a02e['name']);if('suggestion'===_0x2e9e30){_0x291d56['announce'](this['_getMarkerAnnouncementText'](_0x3448fa,'LEAVE'));break;}}for(const _0xbee00e of _0x6c6757){const {group:_0xaf2630,type:_0x3ebcbf}=this['_splitMarkerName'](_0xbee00e['name']);if('suggestion'===_0xaf2630){_0x291d56['announce'](this['_getMarkerAnnouncementText'](_0x3ebcbf,'ENTER',_0x38b45d(_0x32d54a)));break;}}});}['_processAttributeChanges'](_0x2a36ea){if(this['_recordAttributeSuggestions'])return!0x1;const _0x74306e=this['editor'],_0x13d8c9=_0x74306e['model']['document']['differ']['getChanges']();if(0x0==_0x13d8c9['length'])return!0x1;const _0x35141f=[],_0x127053=_0x13d8c9['filter'](_0x3847cc=>'attribute'==_0x3847cc['type']),_0x37847a=_0x13d8c9['filter'](_0x5582c0=>'insert'==_0x5582c0['type']&&'$text'!=_0x5582c0['name']),_0x1fe286=_0x13d8c9['filter'](_0x4fc95a=>'remove'==_0x4fc95a['type']&&'$text'!=_0x4fc95a['name']);for(const _0xab25df of _0x127053)_0x35141f['push']({'key':_0xab25df['attributeKey'],'newValue':_0xab25df['attributeNewValue'],'oldValue':_0xab25df['attributeOldValue'],'range':Pt(_0xab25df['range'],_0x74306e['model'])});for(const _0x577caa of _0x37847a){const _0x32e714=_0x1fe286['find'](_0x4a46cd=>_0x4a46cd['position']['isEqual'](_0x577caa['position']));_0x32e714&&_0x35141f['push']({'key':m,'newValue':_0x577caa['name'],'oldValue':_0x32e714['name'],'range':_0x74306e['model']['createRangeOn'](_0x577caa['position']['nodeAfter'])});}return 0x0!=_0x35141f['length']&&this['_reduceExistingSuggestions'](_0x2a36ea,_0x35141f);}['_processAttributeSuggestions'](_0x9580da){let _0x3c6594=!0x1;const _0x8a28f1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x250f6e=>_0x250f6e['data']['newRange']&&_0x250f6e['name']['startsWith']('suggestion:attribute:'));for(const _0x5d7323 of _0x8a28f1){const {subType:_0x1c39ae,id:_0x193c60}=this['_splitMarkerName'](_0x5d7323['name']),_0x2c5ca2=_0x1c39ae['split']('|')[0x0];for(const _0xf796ed of this['getSuggestions']({'skipNotAttached':!0x0}))_0xf796ed['id']!=_0x193c60&&'attribute'==_0xf796ed['type']&&_0xf796ed['data']&&_0xf796ed['data']['key']==_0x2c5ca2&&_0xf796ed['getFirstRange']()['isIntersecting'](_0x5d7323['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xf796ed,_0x5d7323['data']['newRange'],_0x9580da),_0x3c6594=!0x0);}return _0x3c6594;}['_recordAttributeChanges'](_0xf1ffa1){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0xf1ffa1();}['_isRegisteredAttribute'](_0x1ec39a){const _0x357351=this['_isBlockAttribute'](_0x1ec39a),_0xfa220f=this['_inlineAttributeKeys']['has'](_0x1ec39a);return _0x357351||_0xfa220f;}['_reduceExistingSuggestions'](_0x5503eb,_0x306a85){if(0x0==_0x306a85['length'])return!0x1;let _0x42dea4=!0x1;for(const _0x4c4bd7 of _0x306a85){const _0x3f3c02=this['_findSuggestions'](_0x4c4bd7['range'],'attribute')['filter'](_0x4aaca6=>!_0x4aaca6['meta']['isNextTo'])['map'](_0x449b74=>_0x449b74['suggestion']),_0x555976=_0x5c5670({'newValue':_0x4c4bd7['newValue']});_0x3f3c02['filter'](_0x479ebb=>{const [_0x36c985,_0x26f40c]=_0x479ebb['subType']['split']('|');return _0x36c985==_0x4c4bd7['key']&&_0x26f40c!=_0x555976;})['forEach'](_0x102bc0=>{this['_reduceSuggestionAttributeRange'](_0x102bc0,_0x4c4bd7['range'],_0x5503eb),_0x42dea4=!0x0;});}return _0x42dea4;}['_reduceSuggestionAttributeRange'](_0x32340f,_0x19af6c,_0x38cb65){const _0x27fdea=_0x32340f['getFirstRange']()['getDifference'](_0x19af6c);0x0!==_0x27fdea['length']?0x1!==_0x27fdea['length']?this['_breakSuggestionMarker'](_0x32340f,_0x19af6c['start'],_0x19af6c['end']):this['_setSuggestionRange'](_0x32340f,_0x27fdea[0x0]):_0x38cb65['removeMarker'](_0x32340f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a6db2){this['_editor']=_0x4a6db2,this['_model']=_0x4a6db2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3dfb5e,_0x3495f5,_0xc88ba2,_0x1b6a51,_0x3d95ba,_0x57bee8){return new u(this['_model'],{'type':_0x3dfb5e,'subType':_0x3495f5,'id':_0xc88ba2,'author':_0x1b6a51,'creator':_0x1b6a51,'attributes':_0x3d95ba,'onAttributesChange':_0x57bee8,'onAccept':(..._0x40ab5b)=>this['getSuggestionCallback'](_0x3dfb5e,_0x3495f5,'accept')(..._0x40ab5b),'onDiscard':(..._0x4025d8)=>this['getSuggestionCallback'](_0x3dfb5e,_0x3495f5,'discard')(..._0x4025d8)});}['registerCustomCallback'](_0x496ebd,_0xeb7cc4,_0x2d5c46,_0x5ad569){const _0x23a294=_0x496ebd+':'+_0xeb7cc4+':'+_0x2d5c46;this['_customCallbacks']['set'](_0x23a294,_0x5ad569);}['getSuggestionCallback'](_0x32ffe4,_0x5b98dc,_0x4b2930){const _0x5d08a9=_0x32ffe4+':'+_0x5b98dc+':'+_0x4b2930;return this['_customCallbacks']['get'](_0x5d08a9)||this['_defaultCallbacks']['get'](_0x32ffe4+':'+_0x4b2930);}['_registerDefaultCallbacks'](){const _0x1ce57d=()=>!0x1,_0x1765e2=_0x441492=>{_0x441492['sort']((_0x5f1617,_0x54a483)=>_0x5f1617['start']['isBefore'](_0x54a483['start'])?0x1:-0x1),this['_model']['change'](_0x3ca1da=>{for(const _0x2282cf of _0x441492){let _0x414b71;_0x414b71=_0x2282cf['end']['isAtEnd']&&_0x2282cf['end']['parent']==_0x2282cf['start']['nodeAfter']?_0x3ca1da['createSelection'](_0x2282cf['start']['nodeAfter'],'on'):_0x3ca1da['createSelection'](_0x2282cf),this['_model']['deleteContent'](_0x414b71,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xceef99=(_0x1e9c69,_0xf8f5ea)=>{_0xf8f5ea&&this['_model']['change'](_0x1cceb6=>{const {commandName:_0x369797,commandParams:_0xf07218=[]}=_0xf8f5ea,_0x551d2e=_0x1e9c69['map'](_0x4730f2=>(Vt(_0x4730f2)&&(_0x4730f2=this['_model']['createRange'](_0x4730f2['end'])),_0x4730f2))['filter'](_0x3fe703=>'$graveyard'!==_0x3fe703['root']['rootName']);if(_0x551d2e['length']<0x1)return;const _0x47a2c0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x17283a=>_0x1b6799['fromRange'](_0x17283a));_0x1cceb6['setSelection'](_0x551d2e);for(const _0x153470 of this['_editor']['commands']['commands']())_0x153470['refresh']();_0xf07218['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x369797,..._0xf07218);const _0x3b2bf3=_0x47a2c0['filter'](_0x2f6eb1=>'$graveyard'!=_0x2f6eb1['root']['rootName']);_0x3b2bf3['length']>0x0&&_0x1cceb6['setSelection'](_0x3b2bf3);for(const _0x90e6c5 of _0x47a2c0)_0x90e6c5['detach']();});},_0x52d7ad=(_0x321a6e,_0x821ae3)=>0x1==_0x321a6e['length']&&0x1==_0x821ae3['length']&&_0x321a6e[0x0]['end']['isEqual'](_0x821ae3[0x0]['start']),_0x49ec9=(_0x15ad14,_0x42491c,_0x5f26bc,_0x5d93c3)=>Ht(_0x15ad14,_0x42491c,_0x5f26bc,_0x5d93c3,this['_model'])?[_0x15ad14,_0x42491c]:Ht(_0x42491c,_0x15ad14,_0x5d93c3,_0x5f26bc,this['_model'])?[_0x42491c,_0x15ad14]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1ce57d),this['_defaultCallbacks']['set']('insertion:discard',_0x1765e2),this['_defaultCallbacks']['set']('insertion:join',_0x52d7ad),this['_defaultCallbacks']['set']('insertion:chain',_0x49ec9),this['_defaultCallbacks']['set']('deletion:accept',_0x1765e2),this['_defaultCallbacks']['set']('deletion:discard',_0x1ce57d),this['_defaultCallbacks']['set']('deletion:join',_0x52d7ad),this['_defaultCallbacks']['set']('deletion:chain',_0x49ec9),this['_defaultCallbacks']['set']('formatInline:accept',_0xceef99),this['_defaultCallbacks']['set']('formatInline:discard',_0x1ce57d),this['_defaultCallbacks']['set']('formatInline:join',_0x52d7ad),this['_defaultCallbacks']['set']('formatInline:chain',_0x1ce57d),this['_defaultCallbacks']['set']('formatBlock:accept',_0xceef99),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1ce57d),this['_defaultCallbacks']['set']('formatBlock:join',_0x52d7ad),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1ce57d),this['_defaultCallbacks']['set']('attribute:accept',_0x1ce57d),this['_defaultCallbacks']['set']('attribute:discard',(_0x20f510,_0x394d39)=>{if(!_0x394d39)return;const _0x19616e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x19dd98=>{if(_0x394d39['key']==m)for(const _0x12b1df of _0x20f510){const _0x58021a=_0x12b1df['start']['nodeAfter'],_0x1c65e5=_0x394d39['oldValue'];_0x19dd98['rename'](_0x58021a,_0x1c65e5);}else{if(_0x19616e['_isBlockAttribute'](_0x394d39['key'])){for(const _0x1da75e of _0x20f510)void 0x0!==_0x394d39['oldValue']?_0x19dd98['setAttribute'](_0x394d39['key'],_0x394d39['oldValue'],_0x1da75e['start']['nodeAfter']):_0x19dd98['removeAttribute'](_0x394d39['key'],_0x1da75e['start']['nodeAfter']);}else{for(const _0x2e494f of _0x20f510)_0x394d39['oldValue']?_0x19dd98['setAttribute'](_0x394d39['key'],_0x394d39['oldValue'],_0x2e494f):_0x19dd98['removeAttribute'](_0x394d39['key'],_0x2e494f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52d7ad);}}function Ot(_0x65dc77,_0x210794,_0x3c100d){for(const _0xe22e2b of _0x210794['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe22e2b['root']==_0xe22e2b)return!0x1;if(!_0x3c100d['containsItem'](_0xe22e2b))return!0x1;if(_0x65dc77['isObject'](_0xe22e2b)||_0x65dc77['isLimit'](_0xe22e2b))return!0x0;}return!0x1;}function Vt(_0x1bf670){return _0x1bf670['end']['parent']==_0x1bf670['start']['nodeAfter']&&_0x1bf670['end']['isAtStart'];}function Ut(_0x4f9ed1,_0x5a9db7,_0x2d5cac,_0x20ef4f){const _0x12ed7d=_0x2b5849=>!_0x2b5849['item']['is']('$textProxy')&&!_0x20ef4f['isObject'](_0x2b5849['item']),_0xffc266=_0x4f9ed1['start']['getLastMatchingPosition'](_0x12ed7d),_0x467dcc=_0x4f9ed1['end']['getLastMatchingPosition'](_0x12ed7d,{'direction':'backward'});return(!_0x4f9ed1['start']['isEqual'](_0xffc266)||!_0x4f9ed1['end']['isEqual'](_0x467dcc))&&(_0xffc266['isBefore'](_0x467dcc)?_0x2d5cac['updateMarker'](_0x5a9db7,{'range':_0x2d5cac['createRange'](_0xffc266,_0x467dcc)}):_0x2d5cac['removeMarker'](_0x5a9db7),!0x0);}function Gt(_0xe31c70){return _0x5c5670(_0xe31c70);}function Ft(_0x4a60aa){const _0x4f9018=_0x4a60aa['start']['nodeAfter'];return _0x4f9018&&_0x4f9018['is']('element');}function Pt(_0x48dbd5,_0x3289aa){return null==_0x48dbd5['end']['nodeBefore']&&_0x48dbd5['end']['parent']==_0x48dbd5['start']['nodeAfter']?Lt(_0x48dbd5['start']['nodeAfter'],_0x3289aa):_0x48dbd5;}function Lt(_0x4855ae,_0x157490){const _0x2751f=_0x157490['schema']['isObject'](_0x4855ae)||_0x157490['schema']['isSelectable'](_0x4855ae);return _0x157490['createRange'](_0x157490['createPositionAt'](_0x4855ae,'before'),_0x2751f?_0x157490['createPositionAfter'](_0x4855ae):_0x157490['createPositionAt'](_0x4855ae,'end'));}function Ht(_0x21bf86,_0x37f5d3,_0x5c965a,_0x5213a8,_0x2bbe6b){if(_0x21bf86['next'])return!0x1;if(!Jt(_0x21bf86,_0x37f5d3))return!0x1;if(_0x5c965a['end']['isEqual'](_0x5213a8['start']))return!0x0;if(_0x21bf86['type']!=_0x37f5d3['type'])return!0x1;if(!_0x5c965a['end']['isTouching'](_0x5213a8['start']))return!0x1;const _0x3e602f=_0x2bbe6b['createRange'](_0x5c965a['end'],_0x5213a8['start'])['getWalker']();for(const _0x21108a of _0x3e602f)if(['elementStart','elementEnd']['includes'](_0x21108a['type'])&&_0x2bbe6b['schema']['isLimit'](_0x21108a['item']))return!0x1;return!0x0;}function Jt(_0x343076,_0x2e3716){if(!_0x343076['_isDataLoaded']||!_0x2e3716['_isDataLoaded'])return!0x1;const _0x434e30=new Set(Object['keys'](_0x343076['attributes'])),_0x486f38=new Set(Object['keys'](_0x2e3716['attributes']));if(_0x434e30['delete']('groupId'),_0x486f38['delete']('groupId'),0x0==_0x434e30['size']&&0x0==_0x486f38['size'])return!0x0;if(_0x434e30['size']!=_0x486f38['size'])return!0x1;const _0x12fc6c={..._0x343076['attributes']},_0x436a31={..._0x2e3716['attributes']};return delete _0x12fc6c['groupId'],delete _0x436a31['groupId'],JSON['stringify'](_0x12fc6c)==JSON['stringify'](_0x436a31);}function qt(_0x57d418,_0x2c485d){const _0x5691e6=zt(_0x57d418['attributes']),_0x14f591=zt(_0x2c485d);if(!_0x57d418['_isDataLoaded'])return!0x1;for(const _0x2301f6 of Object['keys'](_0x14f591))if(!_0x4b7432(_0x5691e6[_0x2301f6],_0x14f591[_0x2301f6]))return!0x1;return!0x0;}function zt(_0x499700){const _0x1e7686=Object['assign']({},_0x499700);return delete _0x1e7686['skipNestingCheck'],delete _0x1e7686['tablePasteChainId'],_0x1e7686;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x3ba6c7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x141843,_0x3cf82c,_0x5e349e,_0x24530d){super(),this['model']=_0x3cf82c,this['view']=_0x5e349e,this['commentThreadController']=_0x24530d,this['_editor']=_0x141843,this['_acceptCommand']=_0x141843['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x141843['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49c4fc,_0x3039f5)=>_0x49c4fc||_0x3039f5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1acc4f=>_0x1acc4f&&this['_editor']['model']['canEditAt'](_0x3cf82c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x36bf7d=>_0x36bf7d&&this['_editor']['model']['canEditAt'](_0x3cf82c['getRanges']())),this['_pendingAction']=null,_0x5e349e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5e349e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5e349e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5e349e,'change:isDirty',()=>{_0x5e349e['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 _0x82444a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x82444a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x49e7c0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x10c849,_0x28dd27,_0x4683ef,_0x4adf30){super(_0x10c849),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x43c01b(_0x10c849,o(_0x10c849,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28dd27['authoredAt']),this['bind']('authoredAt')['to'](_0x28dd27),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',_0x28dd27,'authoredAt',this,'descriptionParts',(_0x5c2295,_0x45f89e,_0x30acb1)=>{const _0x586d6d=_0x30acb1['map'](_0x18bf44=>ls(_0x18bf44['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5c2295-0x1,_0x28dd27['author']['name'],_0x45f89e?_0x4adf30['formatDateTime'](_0x45f89e):'',new DOMParser()['parseFromString'](_0x586d6d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ee3af(),this['focusTracker']=new _0x268f1c(),this['keystrokes']=new _0x5b8b4a(),this['focusCycler']=new _0x4f32f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x53a2ef=>_0x53a2ef['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28dd27,this['_localUser']=_0x4683ef,this['_config']=_0x4adf30,_0x4adf30['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4794ab(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3c2a69}=this['_config'];this['commentsListView']=new _0x3c2a69(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',_0x33513f=>_0x33513f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x20dc3d,_0x44e662)=>_0x20dc3d||!!_0x44e662);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x577660}=this['_config'],_0x52c359=new _0x577660(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x394619=_0x52c359['commentInputView'];return _0x52c359['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x394619,'value',(_0x4644fb,_0x5e77e6,_0x5d8928)=>!!_0x5d8928||_0x4644fb&&!_0x5e77e6),_0x394619['on']('submit',(_0x4fa881,_0x5bc9a5)=>{this['fire']('addComment',_0x5bc9a5),_0x394619['editor']['setData']('');}),_0x394619['on']('cancel',()=>this['focus']()),_0x394619['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x52c359;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x11d404,_0xaa3fc2,_0x5c7dcf,_0x549465){super(_0x11d404,_0xaa3fc2,_0x5c7dcf,_0x549465),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5d9b97=>_0x5d9b97&&_0x5d9b97[0x0]?_0x5d9b97[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25492a,_0x425090)=>{let _0x38076e='';for(const _0x35a02a of _0x25492a)_0x38076e+='<p>'+ls(_0x35a02a['content'],_0x35a02a['color'])+'</p>';return _0x425090?_0x38076e:_0x4e5b17(_0x38076e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x549465['SuggestionView'](_0x11d404,_0xaa3fc2,{'formatDateTime':_0x549465['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 _0x254c3f=this['bindTemplate'],_0x8fd40e=[this['suggestionView']];return this['commentsListView']&&_0x8fd40e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x8fd40e['push'](this['commentThreadInputView']),_0x8fd40e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x254c3f['if']('isActive','ck-suggestion-wrapper--active'),_0x254c3f['to']('type',_0x5b629b=>'ck-suggestion-'+_0x5b629b),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':_0x254c3f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x8fd40e};}['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 ce extends _0x49e7c0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x233652,_0x18f21a,_0x26b462){super(_0x233652),this['_model']=_0x18f21a,this['_config']=_0x26b462,this['set']('description',''),this['bind']('authoredAt')['to'](_0x18f21a),this['acceptButton']=this['_createButton'](o(_0x233652,'Accept\x20suggestion'),_0x5a0fd5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x233652,'Discard\x20suggestion'),_0x5a0fd5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2d83c0(_0x233652,_0x18f21a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ee3af([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x268f1c(),this['keystrokes']=new _0x5b8b4a(),this['focusCycler']=new _0x4f32f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55f2b7=>_0x55f2b7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2f523c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2f523c['innerHTML']=this['description'],this['on']('change:description',(_0x39d5dd,_0x31c9a3,_0x31a088)=>{_0x2f523c['innerHTML']=_0x31a088;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c4736=this['bindTemplate'],_0x4f8964=[{'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']}},{'tag':'time','attributes':{'datetime':_0x2c4736['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c4736['to']('authoredAt',_0x41a2cb=>this['_config']['formatDateTime'](_0x41a2cb))}]}]},{'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']&&_0x4f8964['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':_0x4f8964}]};}['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'](_0x301f0d,_0x19a654,_0x4971b6,_0x21ae72,_0x37a539){const _0x34815c=new _0x283895(this['locale']);return _0x34815c['set']({'label':_0x301f0d,'icon':_0x19a654,'tooltip':!0x0,'tooltipPosition':_0x37a539}),_0x34815c['extendTemplate']({'attributes':{'class':_0x4971b6}}),_0x34815c['on']('execute',()=>{this['fire'](_0x21ae72,this['_model']['id']);}),_0x34815c;}['_setupKeyboardNavigation'](){const _0x41d6bb=this['element'];this['keystrokes']['listenTo'](_0x41d6bb);for(const _0x424580 of this['focusables'])this['focusTracker']['add'](_0x424580['element']),this['keystrokes']['listenTo'](_0x424580['element']);this['keystrokes']['set']('enter',(_0x116d91,_0x4f43be)=>{_0x41d6bb===_0x116d91['target']&&(this['focusCycler']['focusFirst'](),_0x4f43be());}),this['keystrokes']['set']('esc',(_0x38469d,_0x1fcccb)=>{_0x41d6bb!==_0x38469d['target']&&(this['focus'](),_0x1fcccb());});}}var he='<!--\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-2024,\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 _0x518f0a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5b0384,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x311a11){super(_0x311a11),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x31403b=this['editor']['config'];_0x31403b['define']('trackChanges.SuggestionThreadView',re),_0x31403b['define']('trackChanges.SuggestionView',ce),_0x31403b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x31403b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x412cdc,_0x147657){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45042a,_0x40cb7b]of this['_handleControllerBuffer']){const _0x32418b=this['_suggestionToController']['has'](_0x45042a);_0x32418b||_0x40cb7b?_0x32418b&&_0x40cb7b&&this['_destroyController'](_0x45042a):this['_initializeController'](_0x45042a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x412cdc,_0x147657);}['init'](){const _0x50e5a0=this['editor'],_0x567176=_0x50e5a0['plugins']['get']('TrackChangesEditing'),_0x2a68c2=_0x50e5a0['plugins']['get']('Annotations'),_0x1a464e=_0x50e5a0['plugins']['get']('EditorAnnotations'),_0x24b6bb=_0x50e5a0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1a464e['addSourceCollector'](()=>{const _0x33e0f6=[];for(const [_0x3760dc,_0x90b7ba]of Array['from'](this['_suggestionToController'])){const _0x1ad3dd=_0x3760dc['getAllAdjacentSuggestions'](),_0xe5ffc0=[];for(const _0x37d33e of _0x1ad3dd){if(!_0x37d33e['isInContent'])continue;if(_0x37d33e['isMultiRange']){_0xe5ffc0['push'](..._0x37d33e['getRanges']());continue;}const _0x3a6467=_0x37d33e['getFirstRange']();if(_0xe5ffc0['length']>0x0){const _0x18b875=_0xe5ffc0[0x0]['getJoined'](_0x3a6467);if(_0x18b875){_0xe5ffc0[0x0]=_0x18b875;continue;}}_0xe5ffc0['push'](_0x3a6467);}_0x33e0f6['push']([_0x90b7ba['view'],_0xe5ffc0]);}return _0x33e0f6;}),this['listenTo'](_0x567176,'suggestionLoaded',(_0x179b68,_0x90284f)=>{this['listenTo'](_0x90284f,'change:previous',(_0x2b4ff4,_0x467c36,_0x9f88d9,_0x23bb7b)=>{_0x90284f['isInContent']&&(null==_0x9f88d9?(this['_updateController'](_0x23bb7b['head']),this['_handleSuggestionControllerDelayed'](_0x90284f,!0x1)):(this['_updateController'](_0x9f88d9['head']),null==_0x23bb7b&&this['_handleSuggestionControllerDelayed'](_0x90284f,!0x0)));}),null!==_0x90284f['previous']?this['_updateController'](_0x90284f['head']):this['_handleSuggestionControllerDelayed'](_0x90284f,!0x1);}),this['listenTo'](_0x567176,'suggestionUnloaded',(_0x1cec30,_0x149e36,_0x455419)=>{this['stopListening'](_0x149e36,'change:previous'),this['_handleControllerBuffer']['delete'](_0x149e36),this['_suggestionToController']['has'](_0x149e36)&&this['_destroyController'](_0x149e36),_0x455419&&this['_updateController'](_0x455419['head']);}),this['listenTo'](_0x567176,'suggestionChanged',(_0x35a44e,_0x17fe0c)=>{this['_updateController'](_0x17fe0c);}),this['listenTo'](_0x2a68c2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x24b6bb,'addComment',(_0xace743,{threadId:_0x149797,isFromAdapter:_0x6f55c7})=>{if(_0x6f55c7||!_0x567176['hasSuggestion'](_0x149797))return;const _0x2aee5e=_0x567176['getSuggestion'](_0x149797);this['_suggestionToController']['get'](_0x2aee5e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x768186=this['editor']['plugins']['get']('Annotations'),_0x4c6c71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cdb76=Array['from'](_0x768186['activeAnnotations'],_0x1ef14b=>_0x1ef14b['innerView'])['filter'](_0x4e54d7=>this['_viewToController']['has'](_0x4e54d7)),_0x38416b=[];for(const _0x2825ac of _0x3cdb76){const _0x14cb3c=this['_viewToController']['get'](_0x2825ac)['model']['getAllAdjacentSuggestions']();_0x38416b['push'](..._0x14cb3c['reduce']((_0x19b74d,_0x1b73b6)=>[..._0x19b74d,..._0x1b73b6['getMarkerNames']()],[]));}_0x4c6c71['activeMarkers']=_0x38416b;}['_addUIComponentsToFactory'](){const _0x33704c=this['editor'],_0x450aff=_0x33704c['locale'],_0x3ba2aa=o(_0x450aff,'Track\x20changes'),_0x4c5611=new Wt([{'type':'switchbutton','model':new _0x2f3854({'withText':!0x0,'isToggleable':!0x0,'label':_0x3ba2aa,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2f3854({'withText':!0x0,'label':o(_0x450aff,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2f3854({'withText':!0x0,'label':o(_0x450aff,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2f3854({'withText':!0x0,'label':o(_0x450aff,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2f3854({'withText':!0x0,'label':o(_0x450aff,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5cd019 of _0x4c5611)if(me(_0x5cd019)){const _0x1e4062=_0x33704c['commands']['get'](_0x5cd019['model']['commandName']);_0x5cd019['model']['bind']('isOn','isEnabled')['to'](_0x1e4062,'value','isEnabled');}_0x33704c['ui']['componentFactory']['add']('trackChanges',_0xc2faa2=>this['_createToolbarButton'](_0xc2faa2,_0x4c5611,_0x3ba2aa)),_0x33704c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a32ab=>this['_createMenuBarMenu'](_0x3a32ab,_0x4c5611,_0x3ba2aa));}['_createToolbarButton'](_0x4a38a4,_0x5a511d,_0x3b5cd6){const _0x5b2d51=Qt(_0x4a38a4,_0x4b90ec),_0x2296c2=this['editor']['commands']['get']('trackChanges');_0x5b2d51['buttonView']['set']({'tooltip':_0x3b5cd6,'label':_0x3b5cd6,'icon':he}),_0x5b2d51['buttonView']['bind']('isOn')['to'](_0x2296c2,'value'),_0x5b2d51['buttonView']['on']('execute',()=>{_0x2296c2['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x5b2d51,_0x5a511d,{'role':'menu'});const _0x2d3401=[];for(const _0x29deaa of _0x5a511d)me(_0x29deaa)&&_0x2d3401['push'](this['editor']['commands']['get'](_0x29deaa['model']['commandName']));const _0x5b2b36=_0x5b2d51['buttonView'];return _0x5b2b36['actionView']['unbind']('isEnabled'),_0x5b2b36['arrowView']['unbind']('isEnabled'),_0x5b2b36['actionView']['bind']('isEnabled')['to'](_0x2296c2,'isEnabled'),_0x5b2b36['arrowView']['bind']('isEnabled')['toMany'](_0x2d3401,'isEnabled',(..._0x1f66b3)=>_0x1f66b3['some'](_0xe91b38=>_0xe91b38)),_0x5b2d51['on']('execute',_0x4335d3=>{this['editor']['execute'](_0x4335d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5b2d51;}['_createMenuBarMenu'](_0x1e7be7,_0x53fd28,_0x3ad53f){const _0x22072c=new Yt(_0x1e7be7),_0x488670=this['editor']['commands']['get']('trackChanges');_0x22072c['buttonView']['set']({'label':_0x3ad53f,'icon':he});const _0x26fabb=new Zt(_0x1e7be7);for(const _0x54d60f of _0x53fd28){if('separator'==_0x54d60f['type']){_0x26fabb['items']['add'](new Xt(_0x1e7be7));continue;}const _0x1b2706=new te(_0x1e7be7,_0x22072c),_0x1357b3=new _0x303c1d(_0x1e7be7),_0x5e30cc=_0x54d60f['model'];_0x1357b3['bind'](...Object['keys'](_0x5e30cc))['to'](_0x5e30cc),_0x1357b3['delegate']('execute')['to'](_0x22072c),_0x1357b3['on']('execute',()=>{this['editor']['execute'](_0x5e30cc['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b2706['children']['add'](_0x1357b3),_0x26fabb['items']['add'](_0x1b2706);}return _0x22072c['bind']('isEnabled')['to'](_0x488670,'isEnabled'),_0x22072c['panelView']['children']['add'](_0x26fabb),_0x22072c;}['_initializeController'](_0x2b930f){const _0xc29970=this['editor'],_0x19bb6b=_0xc29970['config'],_0x5cf73a=_0xc29970['plugins']['get']('Annotations'),_0x129e94=_0xc29970['plugins']['get']('CommentsRepository'),_0x555608=_0xc29970['plugins']['get']('EditorAnnotations'),_0x24c75b=_0xc29970['plugins']['get'](_0x5b0384)['me'],_0x1a5216=_0x19bb6b['get']('trackChanges')['SuggestionThreadView'],_0xca9330=_0x19bb6b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x27841b,CommentThreadInputView:_0x22841a}=_0xc29970['plugins']['get']('CommentsUI');let _0x3195ac,_0x4b1c2b,_0x203ff6;this['_annotationViews']['has'](_0x2b930f['id'])?(_0x4b1c2b=this['_annotationViews']['get'](_0x2b930f['id']),_0x3195ac=_0x4b1c2b['mainView']):(_0x3195ac=new _0x1a5216(_0xc29970['locale'],_0x2b930f,_0x24c75b,{'disableComments':this['_disableComments'],'editorConfig':_0x19bb6b['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x19bb6b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x19bb6b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x19bb6b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4a4d8b(_0x19bb6b['get']('locale')),'CommentView':_0x19bb6b['get']('comments')['CommentView'],'CommentsListView':_0x27841b,'CommentThreadInputView':_0x22841a,'SuggestionView':_0xca9330}),_0x3195ac['suggestionView']['acceptButton']['on']('execute',()=>{_0xc29970['editing']['view']['focus']();}),_0x3195ac['suggestionView']['discardButton']['on']('execute',()=>{_0xc29970['editing']['view']['focus']();}),_0x4b1c2b=_0x5cf73a['createAnnotationView'](this['editor']['locale'],_0x3195ac),_0x4b1c2b['bind']('isDirty')['to'](_0x3195ac,'isDirty'),_0x4b1c2b['bind']('length')['to'](_0x3195ac),_0x4b1c2b['bind']('type')['to'](_0x3195ac,'type',_0x3862b5=>'suggestion-'+_0x3862b5),_0x3195ac['on']('escape',()=>{_0x203ff6['fire']('escape');}),this['_annotationViews']['set'](_0x2b930f['id'],_0x4b1c2b));const _0x43ec8e=_0x129e94['createCommentThreadController'](_0x2b930f['commentThread'],_0x3195ac),_0xbd00f6=new ae(_0xc29970,_0x2b930f,_0x3195ac,_0x43ec8e),_0x4b308f=_0x2b930f['getAllAdjacentSuggestions']()['filter'](_0x14d9a1=>_0x14d9a1['isInContent']);_0x3195ac['descriptionParts']=_0xc29970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b308f),this['_suggestionToController']['set'](_0x2b930f,_0xbd00f6),this['_viewToController']['set'](_0x3195ac,_0xbd00f6),_0x203ff6=_0x5cf73a['createAnnotation']({'view':_0x4b1c2b,'target':()=>{const _0x5414d3=[],_0x18de32=_0x2b930f['getAllAdjacentSuggestions']()['filter'](_0x48ff6f=>_0x48ff6f['isInContent']);for(const _0x3dd6fb of _0x18de32)_0x5414d3['push'](..._0x3dd6fb['getMarkers']());return _0x32bcb9(_0xc29970['editing'],_0x5414d3);},'type':()=>'suggestion-'+_0xbd00f6['view']['type']}),_0x129e94['_bindAnnotationToEditors'](_0x3195ac,_0x203ff6),_0x5cf73a['add'](_0x203ff6),_0x555608['registerAnnotation'](_0x203ff6);}['_destroyController'](_0x4b7108){const _0x254e43=this['editor']['plugins']['get']('CommentsRepository'),_0x38ba75=this['editor']['plugins']['get']('Annotations'),_0x5b8671=this['_suggestionToController']['get'](_0x4b7108),_0x10ca65=_0x5b8671['view'],_0x4f4c9f=_0x38ba75['getByInnerView'](_0x10ca65);_0x254e43['_unbindEditors'](_0x10ca65),_0x4f4c9f&&_0x38ba75['remove'](_0x4f4c9f),this['_suggestionToController']['delete'](_0x4b7108),this['_viewToController']['delete'](_0x10ca65),_0x5b8671['destroy']();}['_updateController'](_0x316036){if(!_0x316036['isInContent']||!this['_suggestionToController']['has'](_0x316036))return;const _0x56a9fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f375e=this['_suggestionToController']['get'](_0x316036),_0xc960f4=_0x316036['getAllAdjacentSuggestions']();_0x2f375e['view']['descriptionParts']=_0x56a9fc['descriptionFactory']['getDescriptions'](_0xc960f4);}['destroy'](){for(const _0x2e8edb of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e8edb);for(const _0x1b40c6 of this['_annotationViews']['values']())_0x1b40c6['mainView']['destroy']();super['destroy']();}}function me(_0x84eb33){return'model'in _0x84eb33;}class k extends _0x518f0a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x189137){this['editor']['plugins']['get'](p)['adapter']=_0x189137;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x189631){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x189631);}['getSuggestions']({skipNotAttached:_0x4c297e=!0x1,toJSON:_0x416df4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c297e,'toJSON':_0x416df4});}['getSuggestion'](_0xa649ed){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa649ed);}}const T=['Pagination'];class P extends _0x518f0a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x37145b=this['editor'];if(_0x37145b['config']['define']('trackChangesData.editorCreator',_0x5198e9=>{const _0x556afc=_0x37145b['model']['document']['getRootNames']()['reduce']((_0x469b2e,_0x20a1b1)=>(_0x469b2e[_0x20a1b1]='',_0x469b2e),{});return _0x37145b['constructor']['create'](_0x556afc,_0x5198e9);}),'function'!=typeof _0x37145b['config']['get']('trackChangesData')['editorCreator'])throw new _0x5c8a3b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x56c435){return N(this['editor'],!0x0,_0x56c435);}['getDataWithDiscardedSuggestions'](_0x1dba3f){return N(this['editor'],!0x1,_0x1dba3f);}}class D extends _0x518f0a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x5ae7c8){super(_0x5ae7c8),this['result']='end';}['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 v(_0x2337f6){return void 0x0!==_0x2337f6['getRootsAttributes'];}async function N(_0xd3bfa,_0x4d0bd3,_0x345a73){const _0x5dfeb9=_0x132793(_0xd3bfa,T);_0x5dfeb9['plugins']['push'](p,D),_0x5dfeb9['rootsAttributes']=v(_0xd3bfa)?_0xd3bfa['getRootsAttributes']():void 0x0;const _0x22dde9=document['createDocumentFragment'](),_0x41a9fd=_0xd3bfa['config']['get']('trackChangesData')['editorCreator'],_0x113c14=await _0x41a9fd(_0x5dfeb9,()=>function(_0x1a528f){const _0x11bd6f=document['createElement']('div');return _0x1a528f['appendChild'](_0x11bd6f),_0x11bd6f;}(_0x22dde9));!function(_0x315329,_0x591cfe){const _0x3c00b8=_0x315329['model']['document']['getRootNames']()['reduce']((_0x31329e,_0x2db406)=>(_0x31329e[_0x2db406]=_0x315329['data']['get']({'rootName':_0x2db406}),_0x31329e),{}),_0xc03bde=_0x315329['plugins']['get']('Users')['users']['map'](_0xf92cb9=>({'id':_0xf92cb9['id'],'name':_0xf92cb9['name']})),_0x448044=_0x315329['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41007b=_0x315329['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52e3bd=_0x591cfe['plugins']['get']('Users'),_0x2ae89a=_0x591cfe['plugins']['get']('TrackChangesEditing'),_0x215629=_0x591cfe['plugins']['get']('CommentsRepository');for(const _0x51157d of _0x215629['getCommentThreads']())_0x51157d['remove']();for(const _0x2a1cf4 of _0xc03bde)_0x52e3bd['getUser'](_0x2a1cf4['id'])||_0x52e3bd['addUser'](_0x2a1cf4);_0x52e3bd['me']||_0x52e3bd['useAnonymousUser']();for(const _0xc9ba5e of _0x41007b)_0x215629['addCommentThread'](_0xc9ba5e);for(const _0x4dab6b of _0x448044)_0x2ae89a['addSuggestionData'](_0x4dab6b);_0x591cfe['data']['set'](_0x3c00b8);}(_0xd3bfa,_0x113c14),_0x113c14['execute'](_0x4d0bd3?'acceptAllSuggestions':'discardAllSuggestions');const _0x58969e=v(_0x113c14)?_0x113c14['getFullData'](_0x345a73):_0x113c14['data']['get'](_0x345a73);return await _0x113c14['destroy'](),_0x58969e;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};