@ckeditor/ckeditor5-track-changes 45.1.0-alpha.6 → 45.1.0-alpha.7

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 _0x2731a5,Plugin as _0x3ff648,PendingActions as _0x3e9f68}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x328969,ObservableMixin as _0x1a7ad4,uid as _0x65b9b5,priorities as _0x1fc7e0,insertToPriorityArray as _0x4d5741,toArray as _0x1eedfa,logWarning as _0x406a97,getEnvKeystrokeText as _0x599e40,FocusTracker as _0x2d2a08,KeystrokeHandler as _0x2868fa,Collection as _0x443155}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x527c88,IconCancel as _0xf1864a,IconTrackChanges as _0x3d38d9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x241c56,View as _0x192474,ViewCollection as _0x192394,FocusCycler as _0x362be6,ViewModel as _0x1a2bb5,createDropdown as _0x7654e1,SplitButtonView as _0x160840,addListToDropdown as _0x3042ec,MenuBarMenuView as _0x4dafe0,MenuBarMenuListView as _0x3cdbbe,ListSeparatorView as _0x26cbfd,MenuBarMenuListItemView as _0x404883,MenuBarMenuListItemButtonView as _0x23f794,BodyCollection as _0x3ea2d3,Dialog as _0x3d53d1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3da637,hashObject as _0x4ad782,surroundingMarkersDetector as _0x155b57,FOCUS_ANNOTATION_KEYSTROKE as _0xb4b862,AriaDescriptionView as _0x2bb02c,setupThreadKeyboardNavigation as _0x540acf,trimHtml as ti,UserView as _0x2515a5,LateFocusButtonView as _0x586f95,getDateTimeFormatter as _0x5ded0e,getAllMarkersDomElementsSorted as _0x1e08c5,sanitizeEditorConfig as _0x515678}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1e913c,LiveRange as _0xc48f37,LivePosition as _0x123968,DowncastWriter as _0x2b6151}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x469766,toWidget as _0x4e4d73}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xadd145,set as _0x7a0bc9,isEqual as _0x36734a,unset as _0x21e2bf,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5ef8aa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x455c9b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2c909b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x2731a5{['_enabledCommands'];constructor(_0x6872dd,_0x549fe5){super(_0x6872dd),this['_enabledCommands']=_0x549fe5,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 _0x1cbec7 of this['editor']['commands']['commands']())_0x1cbec7['affectsData']&&!this['_enabledCommands']['has'](_0x1cbec7)&&_0x1cbec7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x11b0f0 of this['editor']['commands']['commands']())_0x11b0f0['affectsData']&&!this['_enabledCommands']['has'](_0x11b0f0)&&_0x11b0f0['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x2731a5{['_suggestions'];constructor(_0x4aca65,_0x1b2735){super(_0x4aca65),this['_suggestions']=_0x1b2735,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x439b36){const _0x3f79bc=this['_suggestions']['get'](_0x439b36);if(!_0x3f79bc)throw new _0x328969('track-changes-accept-suggestion-not-found',this);const _0x512d48=_0x3f79bc['getRanges']();this['editor']['model']['canEditAt'](_0x512d48)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f79bc);}}class O extends _0x2731a5{['_suggestions'];constructor(_0x56bc88,_0x565d72){super(_0x56bc88),this['_suggestions']=_0x565d72,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x372f65){const _0x3f9c7e=this['_suggestions']['get'](_0x372f65);if(!_0x3f9c7e)throw new _0x328969('track-changes-discard-suggestion-not-found',this);const _0xfd855a=_0x3f9c7e['getRanges']();this['editor']['model']['canEditAt'](_0xfd855a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3f9c7e);}}function ls(_0x1c9077,_0x42b500){let _0x4ec534='';return _0x4ec534+=_0x1c9077['split']('*')['map']((_0x43cccc,_0x44a2e8)=>_0x44a2e8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x43cccc)+'</span>':nn(_0x43cccc))['join'](''),_0x42b500&&(_0x4ec534+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x42b500['value']+'\x22\x20title=\x22'+_0x42b500['title']+'\x22></span>'),_0x4ec534;}function nn(_0x550a2a){const _0x22c430=document['createElement']('span');return _0x22c430['innerText']=_0x550a2a,_0x22c430['innerHTML'];}function ts(_0x10456f){return _0x10456f['sort']((_0x2a87c2,_0x4dc72c)=>'deletion'==_0x2a87c2['type']&&'deletion'!=_0x4dc72c['type']?-0x1:'deletion'!=_0x2a87c2['type']&&'deletion'==_0x4dc72c['type']?0x1:0x0);}function to(_0x20a9ed,_0x26411b){let _0x126679,_0x44690f=0x0;const _0x4e44e6=[],_0x58ee57=_0x26411b['schema'];for(;_0x44690f<_0x20a9ed['length'];){const _0x9797cb=_0x20a9ed[_0x44690f],_0xa8efd4=_0x20a9ed[_0x44690f+0x1];_0x126679||(_0x126679=_0x26411b['createPositionBefore'](_0x9797cb)),on(_0x26411b,_0x9797cb,_0xa8efd4)||(_0x4e44e6['push'](_0x26411b['createRange'](_0x126679,_0x58ee57['isObject'](_0x9797cb)?_0x26411b['createPositionAfter'](_0x9797cb):_0x26411b['createPositionAt'](_0x9797cb,'end'))),_0x126679=null),_0x44690f++;}return _0x4e44e6;}function on(_0xdf3dde,_0x1d1596,_0xf3a297){if(!_0xf3a297)return!0x1;const _0x267334=_0xdf3dde['createPositionAfter'](_0x1d1596),_0x1751d8=_0xdf3dde['createPositionBefore'](_0xf3a297);return _0x267334['isTouching'](_0x1751d8);}function rs(_0x1f1466,_0x2035bd,_0x591795){for(;_0x591795['length'];){const _0x4e61d4=_0x591795['splice'](0x0,0x64);_0x1f1466['change'](()=>{for(const _0x2d578e of _0x4e61d4)_0x2d578e['isInContent']&&_0x2035bd['execute'](_0x2d578e['id']);});}}class R extends _0x2731a5{['_command'];['_suggestions'];constructor(_0x1f13af,_0x10aa74,_0x57af48){super(_0x1f13af),this['_command']=_0x10aa74,this['_suggestions']=_0x57af48,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3dcdfc=Array['from'](this['_suggestions']['values']())['some'](_0x1b48ec=>_0x1b48ec['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3dcdfc;}['execute'](){const _0x11a7ff=ts(Array['from'](this['_suggestions']['values']()));for(const _0x131b2e of _0x11a7ff){const _0x2e2ec3=_0x131b2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e2ec3))return;}rs(this['editor']['model'],this['_command'],_0x11a7ff);}}class E extends _0x2731a5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f3d0a,_0x2728a8,_0x40f326){super(_0x4f3d0a),this['_command']=_0x2728a8,this['_suggestions']=_0x40f326,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a5f82=this['editor']['model']['document']['selection'],_0x56faba=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x399ae3,_0x10024c){const _0x1dda02=Array['from'](_0x399ae3['getRanges']()),_0x6a4b47=new Set();for(const _0xedfcf3 of _0x10024c)if(_0xedfcf3['isInContent']){for(const _0x5aca73 of _0x1dda02)for(const _0x3b88c3 of _0xedfcf3['getRanges']())(_0x5aca73['isIntersecting'](_0x3b88c3)||_0x399ae3['isCollapsed']&&!_0xedfcf3['isMultiRange']&&_0xedfcf3['next']&&_0x3b88c3['end']['isTouching'](_0x5aca73['start']))&&_0x6a4b47['add'](_0xedfcf3);}return _0x6a4b47;}(_0x3a5f82,_0x56faba),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xf3dd90=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4ee184 of _0xf3dd90){const _0x1aeb92=_0x4ee184['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1aeb92))return;}rs(this['editor']['model'],this['_command'],_0xf3dd90);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x1a7ad4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x538c0a,_0x3cb6d8){super(),this['id']=_0x3cb6d8['id'],this['type']=_0x3cb6d8['type'],this['subType']=_0x3cb6d8['subType']||null,this['author']=_0x3cb6d8['author'],this['creator']=_0x3cb6d8['creator']||_0x3cb6d8['author'],this['isExternal']=Boolean(_0x3cb6d8['attributes']&&_0x3cb6d8['attributes']['@external']),this['data']=null,this['_model']=_0x538c0a,this['_onAccept']=_0x3cb6d8['onAccept'],this['_onDiscard']=_0x3cb6d8['onDiscard'],this['_onAttributesChange']=_0x3cb6d8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3cb6d8['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 _0x2d49cf=this;for(;_0x2d49cf['previous'];)_0x2d49cf=_0x2d49cf['previous'];return _0x2d49cf;}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'](_0x4ff4ca){this['_markerNames']['add'](_0x4ff4ca);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x117920=>this['_model']['markers']['get'](_0x117920))['filter'](_0x3b426b=>_0x3b426b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1b41f1=>{for(const _0x3736d3 of this['getMarkers']())_0x1b41f1['removeMarker'](_0x3736d3);}),this['_markerNames']['clear']();}['removeMarker'](_0x35308c){this['_model']['change'](_0x3a14b6=>{_0x3a14b6['removeMarker'](_0x35308c);}),this['_markerNames']['delete'](_0x35308c);}['addRange'](_0x349144){const _0x2cf36d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2cf36d),this['_model']['change'](_0x4ca2b9=>{_0x4ca2b9['addMarker'](_0x2cf36d,{'range':_0x349144,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a729e){for(const _0x4d3d32 of this['getRanges']())if(_0x4d3d32['isIntersecting'](_0x3a729e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57da97=>_0x57da97['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fa062,_0x12386c)=>[..._0x2fa062,..._0x12386c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xeed8dc=this['getRanges']();if(0x1!=_0xeed8dc['length'])return null;const _0x3084ae=_0xeed8dc[0x0],_0xd910bd=_0x3084ae['start']['nodeAfter'],_0x3be69c=_0x3084ae['end']['nodeBefore'];return _0xd910bd instanceof _0x1e913c?_0xd910bd!=_0x3be69c?null:_0xd910bd: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 _0x438147=[];let _0x29a065=this['head'];for(;_0x29a065;)_0x438147['push'](_0x29a065),_0x29a065=_0x29a065['next'];return _0x438147;}['setAttribute'](_0x3c9b36,_0x1ba4a9){const _0x8f1bc=_0xadd145(this['attributes']);_0x7a0bc9(_0x8f1bc,_0x3c9b36,_0x1ba4a9),_0x36734a(_0x8f1bc,this['attributes'])||(this['attributes']=_0x8f1bc,this['_onAttributesChange'](_0x8f1bc));}['removeAttribute'](_0x15032f){const _0x294cbb=_0xadd145(this['attributes']);_0x21e2bf(_0x294cbb,_0x15032f),_0x36734a(_0x294cbb,this['attributes'])||(this['attributes']=_0x294cbb,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 _0x65b9b5()['substr'](0x1,0x5);}}function c(_0x1f990a,_0x10e442,_0x3dd996){const _0x49b60d=_0x1f990a['t'],t=_0x1f990a['t'];switch(_0x10e442){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3dd996);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3dd996);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3dd996);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3dd996);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3dd996);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',_0x3dd996);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3dd996);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3dd996);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3dd996);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3dd996);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3dd996);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3dd996);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3dd996);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3dd996);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3dd996);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3dd996);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3dd996);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3dd996);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3dd996);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3dd996);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3dd996);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3dd996);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3dd996);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3dd996);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3dd996);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'},_0x3dd996);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3dd996);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3dd996);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3dd996);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3dd996);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3dd996);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3dd996);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3dd996);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3dd996);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3dd996);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3dd996);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'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3dd996);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3dd996);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'},_0x3dd996);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3dd996);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 _0x49b60d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3dd996);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x49b60d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3dd996);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3dd996);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'},_0x3dd996);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'},_0x3dd996);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'},_0x3dd996);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x10e442;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38d2ae,_0x4e73c1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38d2ae,this['_locale']=_0x4e73c1;}['getDescriptions'](_0x21d1f9){const _0x502d67=[],_0x2080e6=new Set(),_0x19f187=new Set();for(let _0x307cd7=0x0;_0x307cd7<_0x21d1f9['length'];_0x307cd7++){const _0x1d87c2=_0x21d1f9[_0x307cd7];if(!_0x1d87c2['isInContent'])continue;const _0x519ad8=this['_handleCustomCallbackDescription'](_0x1d87c2);if(_0x519ad8){if(null!=_0x1d87c2['subType']){if(_0x2080e6['has'](_0x1d87c2['subType']))continue;_0x2080e6['add'](_0x1d87c2['subType']);}_0x502d67['push'](_0x519ad8);}else{if('attribute'!=_0x1d87c2['type'])'insertion'!=_0x1d87c2['type']&&'deletion'!=_0x1d87c2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x502d67,_0x1d87c2,_0x21d1f9[_0x307cd7+0x1]);else{const _0xd4498e=_0x1d87c2['data']['key'];if(_0x19f187['has'](_0xd4498e))continue;_0x19f187['add'](_0x1d87c2['data']['key']),_0xd4498e==u?this['_handleRenameSuggestionDescription'](_0x502d67,_0x1d87c2):this['_handleAttributeSuggestionDescription'](_0x502d67,_0x1d87c2);}}}return this['_resolveDescriptionItems'](_0x502d67);}['registerDescriptionCallback'](_0x3d78b0){this['_customCallbacks']['push'](_0x3d78b0);}['registerElementLabel'](_0x1d45e9,_0x500c62,_0x2e9e49=_0x1fc7e0['normal']){'function'==typeof _0x1d45e9?_0x4d5741(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1d45e9,'label':_0x500c62,'priority':_0x2e9e49}):this['_itemLabels']['set'](_0x1d45e9,_0x500c62);}['registerAttributeLabel'](_0x5d60cf,_0x11ee79){this['_attributeLabels']['set'](_0x5d60cf,_0x11ee79);}['getItemLabel'](_0x5befd0,_0x364e37=0x1){let _0x3ee685;for(const _0x5239ab of this['_itemLabelsCallbacks'])if(_0x5239ab['matchingCallback'](_0x5befd0)){_0x3ee685=_0x5239ab['label'];break;}return _0x3ee685||(_0x3ee685=this['_itemLabels']['get'](_0x5befd0['name'])),_0x3ee685?_0x3ee685(_0x364e37):0x1!==_0x364e37?_0x364e37+'\x20'+_0x5befd0['name']+'s':''+_0x5befd0['name'];}['_addDescriptionItems'](_0xb3162,_0x18a70){const _0x3319be=_0x18a70['getFirstRange']()['getWalker'](),_0x34b965='insertion'==_0x18a70['type']?'add':'remove';for(const _0x2fa43a of _0x3319be){const _0x52a8e1=_0x2fa43a['item'],_0x5d5253=_0xb3162[_0xb3162['length']-0x1];if(_0x52a8e1['is']('$textProxy'))_0x5d5253&&_0x5d5253['type']['indexOf']('Container')>-0x1&&_0xb3162['pop'](),_0x5d5253&&'text'==_0x5d5253['type']?_0x5d5253[_0x34b965]+=_0x52a8e1['data']:_0xb3162['push']({'type':'text','add':'add'==_0x34b965?_0x52a8e1['data']:'','remove':'remove'==_0x34b965?_0x52a8e1['data']:''});else{if(this['_schema']['isObject'](_0x52a8e1)){const _0x502b11=_0x52a8e1;if(_0x5d5253&&_0x5d5253['type']['indexOf']('Container')>-0x1&&_0xb3162['pop'](),'elementEnd'==_0x2fa43a['type'])continue;_0x5d5253&&_0x5d5253['type']==_0x34b965+'Object'&&_0x5d5253['element']['name']==_0x502b11['name']?_0x5d5253['quantity']++:_0xb3162['push']({'type':_0x34b965+'Object','element':_0x502b11,'quantity':0x1}),_0x3319be['skip'](_0x3b0376=>!('elementEnd'==_0x3b0376['type']&&_0x3b0376['item']==_0x52a8e1));}else{if(this['_schema']['checkChild'](_0x52a8e1,'$text')||_0x52a8e1['is']('element','softBreak')){const _0x1be362=_0x52a8e1;if('add'==_0x34b965&&'elementStart'==_0x2fa43a['type']||'remove'==_0x34b965&&'elementEnd'==_0x2fa43a['type'])continue;if(_0x5d5253&&-0x1==_0x5d5253['type']['indexOf']('Container')){'text'==_0x5d5253['type']&&(_0x5d5253[_0x34b965]+='\x0a');continue;}let _0x406009;if(_0x406009='add'==_0x34b965?_0x1be362['nextSibling']&&!this['_schema']['isObject'](_0x1be362['nextSibling'])?_0x1be362['nextSibling']:null:_0x1be362['previousSibling']&&!this['_schema']['isObject'](_0x1be362['previousSibling'])?_0x1be362['previousSibling']:null,_0x1be362['isEmpty']||_0x406009&&_0x406009['isEmpty']){const _0x494472=_0x406009&&_0x406009['isEmpty']?_0x406009:_0x1be362;_0x5d5253&&_0x5d5253['type']==_0x34b965+'EmptyContainer'&&_0x5d5253['element']['name']==_0x494472['name']?_0x5d5253['quantity']++:_0xb3162['push']({'type':_0x34b965+'EmptyContainer','element':_0x494472,'quantity':0x1});}else _0xb3162['push']({'type':_0x34b965+'Container','element':_0x1be362});}}}}}['_resolveDescriptionItems'](_0x2537a9){const _0x11f26c=this['_locale'],_0x2cd2ee=[],_0x9f1e52=[],_0x42db7f=[];for(const _0x5b067f of _0x2537a9)switch(_0x5b067f['type']){case'text':if(_0x5b067f['add']=_0x5b067f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b067f['remove']=_0x5b067f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b067f['add']&&''!=_0x5b067f['remove']){_0x2cd2ee['push']({'type':'replace','content':c(_0x11f26c,'REPLACE_TEXT',['\x22'+_0x5b067f['remove']+'\x22','\x22'+_0x5b067f['add']+'\x22'])});continue;}if(null!=_0x5b067f['add']['match'](/^ +$/)){_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Insert:*\x20%0',c(_0x11f26c,'ELEMENT_SPACE',_0x5b067f['add']['length']))});continue;}if(null!=_0x5b067f['remove']['match'](/^ +$/)){_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Remove:*\x20%0',c(_0x11f26c,'ELEMENT_SPACE',_0x5b067f['remove']['length']))});continue;}if(''!=_0x5b067f['add']){_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Insert:*\x20%0','\x22'+_0x5b067f['add']+'\x22')});continue;}_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Remove:*\x20%0','\x22'+_0x5b067f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Insert:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Remove:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'addContainer':_0x2cd2ee['push']({'type':'insertion','content':c(_0x11f26c,'*Split:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'removeContainer':_0x2cd2ee['push']({'type':'deletion','content':c(_0x11f26c,'*Merge:*\x20%0',this['getItemLabel'](_0x5b067f['element'],_0x5b067f['quantity']))});continue;case'addFormat':_0x9f1e52['push'](_0x5b067f['key']);continue;case'removeFormat':_0x42db7f['push'](_0x5b067f['key']);continue;default:_0x2cd2ee['push'](_0x5b067f);}if(_0x9f1e52['length']){const _0x394730=_0x9f1e52['map'](_0x9eff42=>this['_attributeLabels']['has'](_0x9eff42)?this['_attributeLabels']['get'](_0x9eff42):_0x9eff42)['join'](',\x20');_0x2cd2ee['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x394730)});}if(_0x42db7f['length']){const _0x1883f7=_0x42db7f['map'](_0x32592f=>this['_attributeLabels']['has'](_0x32592f)?this['_attributeLabels']['get'](_0x32592f):_0x32592f)['join'](',\x20');_0x2cd2ee['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1883f7)});}return _0x2cd2ee;}['_handleCustomCallbackDescription'](_0x51c4e6){for(const _0x5cd9f7 of this['_customCallbacks']){const _0x172420=_0x5cd9f7(_0x51c4e6);if(_0x172420&&'type'in _0x172420)return _0x172420;}}['_handleAttributeSuggestionDescription'](_0x22e74e,_0x1c62eb){const _0x40c85f=_0x1c62eb['data'],_0x3207a1=void 0x0===_0x40c85f['newValue']?'removeFormat':'addFormat';_0x22e74e['push']({'type':_0x3207a1,'key':_0x40c85f['key']});}['_handleRenameSuggestionDescription'](_0x532d38,_0x2a7947){_0x532d38['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2a7947['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4788ba,_0x22c470,_0x510346){if(this['_addDescriptionItems'](_0x4788ba,_0x22c470),_0x510346&&_0x510346['getFirstRange']()&&!_0x22c470['getFirstRange']()['end']['isEqual'](_0x510346['getFirstRange']()['start'])){const _0x1c52b0=_0x4788ba[_0x4788ba['length']-0x1],_0x14f28b='insertion'==_0x22c470['type']?'add':'remove';_0x1c52b0&&'text'==_0x1c52b0['type']&&(_0x1c52b0[_0x14f28b]+='\x0a');}}}class U extends _0x3ff648{['afterInit'](){const _0x12d234=this['editor'],_0x4d051b=_0x12d234['plugins']['get']('TrackChangesEditing');_0x12d234['commands']['get']('showAIAssistant')&&_0x4d051b['enableCommand']('showAIAssistant');}}class V extends _0x3ff648{['afterInit'](){const _0x23534d=this['editor'],_0x4f43cb=_0x23534d['locale'];if(!_0x23534d['plugins']['has']('AlignmentEditing'))return;const _0x314d15=_0x23534d['plugins']['get']('TrackChangesEditing');_0x314d15['enableDefaultAttributesIntegration']('alignment'),_0x314d15['registerBlockAttribute']('alignment'),_0x314d15['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4f43cb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dacea=this['editor'],_0x5705ef=_0x1dacea['locale'];_0x1dacea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55efc3=>{if('formatBlock'!=_0x55efc3['type'])return;const {data:_0xe6fdac}=_0x55efc3;if(_0xe6fdac&&'alignment'==_0xe6fdac['commandName']){const _0x24dc73=_0xe6fdac['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5705ef,'*Format:*\x20%0',function(_0x280d66){switch(_0x280d66){case'left':return c(_0x5705ef,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5705ef,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5705ef,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5705ef,'FORMAT_JUSTIFY_TEXT');}}(_0x24dc73))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x3ff648{['afterInit'](){const _0x9fe393=this['editor'],_0x629e84=_0x9fe393['plugins']['get']('TrackChangesEditing'),_0xf4b1a3=_0x9fe393['locale'];for(const _0x4e54d5 of Zt){if(!_0x9fe393['plugins']['has'](_0x4e54d5))continue;const _0x2ad4b1=_0x4e54d5['slice'](0x0,-0x7)['toLowerCase'](),_0x4184e1='FORMAT_'+_0x2ad4b1['toUpperCase']();_0x629e84['enableDefaultAttributesIntegration'](_0x2ad4b1),_0x629e84['registerInlineAttribute'](_0x2ad4b1),_0x629e84['descriptionFactory']['registerAttributeLabel'](_0x2ad4b1,c(_0xf4b1a3,_0x4184e1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22d8e2=this['editor'],_0x3d7d63=_0x22d8e2['locale'],_0x434abd=_0x22d8e2['plugins']['get']('TrackChangesEditing');function _0x3e033a(_0x15b2b7,_0x24785a){_0x434abd['descriptionFactory']['registerDescriptionCallback'](_0x3e7fb4=>{if('formatInline'!=_0x3e7fb4['type'])return;const {data:_0x4a928f}=_0x3e7fb4;return _0x4a928f&&_0x4a928f['commandName']===_0x15b2b7?_0x4a928f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d7d63,'*Format:*\x20%0',_0x24785a)}:{'type':'format','content':c(_0x3d7d63,'*Remove\x20format:*\x20%0',_0x24785a)}:void 0x0;});}_0x3e033a('bold',c(_0x3d7d63,'FORMAT_BOLD')),_0x3e033a('italic',c(_0x3d7d63,'FORMAT_ITALIC')),_0x3e033a('underline',c(_0x3d7d63,'FORMAT_UNDERLINE')),_0x3e033a('code',c(_0x3d7d63,'FORMAT_CODE')),_0x3e033a('strikethrough',c(_0x3d7d63,'FORMAT_STRIKETHROUGH')),_0x3e033a('subscript',c(_0x3d7d63,'FORMAT_SUBSCRIPT')),_0x3e033a('superscript',c(_0x3d7d63,'FORMAT_SUPERSCRIPT'));}}class G extends _0x3ff648{['afterInit'](){const _0x3adf33=this['editor'],_0x14fa59=_0x3adf33['locale'];if(!_0x3adf33['plugins']['has']('BlockQuoteEditing'))return;const _0x55e94e=_0x3adf33['plugins']['get']('TrackChangesEditing'),_0x62295=this['editor']['commands']['get']('blockQuote');_0x55e94e['enableCommand']('blockQuote',(_0x17a10d,_0x381f42={})=>{const _0x5de693=this['editor']['model']['document']['selection'],_0xcb45d2=_0x381f42&&void 0x0!==_0x381f42['forceValue']?_0x381f42['forceValue']:!_0x62295['value'];let _0x28ff3c=[];if(_0xcb45d2){const _0x355687=Array['from'](_0x5de693['getSelectedBlocks']())['filter'](_0x5a74ee=>oo(_0x5a74ee)||function(_0x148ca1,_0x3cd269){const _0x3661f2=_0x3cd269['checkChild'](_0x148ca1['parent'],'blockQuote'),_0x3bf1c9=_0x3cd269['checkChild'](['$root','blockQuote'],_0x148ca1);return _0x3661f2&&_0x3bf1c9;}(_0x5a74ee,this['editor']['model']['schema']));_0x28ff3c=to(_0x355687,_0x3adf33['model']);}else{const _0x32c980=Array['from'](_0x5de693['getSelectedBlocks']())['filter'](_0x220aaa=>oo(_0x220aaa));_0x28ff3c=to(_0x32c980,_0x3adf33['model']);}_0x3adf33['model']['change'](()=>{for(const _0x5bf649 of _0x28ff3c)_0x55e94e['markBlockFormat'](_0x5bf649,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xcb45d2}]});});}),_0x55e94e['descriptionFactory']['registerDescriptionCallback'](_0x50b4e2=>{const {data:_0x5d6bb4}=_0x50b4e2;if(_0x5d6bb4&&'blockQuote'==_0x5d6bb4['commandName']){const _0x388301=c(_0x14fa59,'ELEMENT_BLOCK_QUOTE');return _0x5d6bb4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14fa59,'*Set\x20format:*\x20%0',_0x388301)}:{'type':'format','content':c(_0x14fa59,'*Remove\x20format:*\x20%0',_0x388301)};}});}}function oo(_0x15b64b){return'blockQuote'==_0x15b64b['parent']['name'];}class L extends _0x3ff648{['afterInit'](){const _0x5c1642=this['editor'],_0x3b5771=_0x5c1642['locale'],_0x16952a=_0x5c1642['plugins']['get']('TrackChangesEditing');_0x5c1642['plugins']['has']('BookmarkEditing')&&(_0x16952a['enableCommand']('insertBookmark'),_0x16952a['enableDefaultAttributesIntegration']('updateBookmark'),_0x16952a['registerBlockAttribute']('bookmarkId'),_0x16952a['descriptionFactory']['registerDescriptionCallback'](_0x5f57de=>{if('insertion'!=_0x5f57de['type']&&'deletion'!=_0x5f57de['type']&&'attribute'!=_0x5f57de['type'])return;const _0x318590=_0x5f57de['getContainedElement']();if(null==_0x318590)return;if(!_0x318590['is']('element','bookmark'))return;const _0x318a98=_0x318590['getAttribute']('bookmarkId');if('insertion'==_0x5f57de['type'])return{'type':'insertion','content':c(_0x3b5771,'*Insert:*\x20%0','\x22'+_0x318a98+'\x22\x20'+c(_0x3b5771,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5f57de['type'])return{'type':'deletion','content':c(_0x3b5771,'*Remove:*\x20%0','\x22'+_0x318a98+'\x22\x20'+c(_0x3b5771,'ELEMENT_BOOKMARK'))};const {data:_0x5f4757}=_0x5f57de;if(!_0x5f4757||'bookmarkId'!=_0x5f4757['key'])return;return{'type':'format','content':c(_0x3b5771,'*Set\x20bookmark:*\x20%0','\x22'+_0x5f4757['newValue']+'\x22')};}));}}class J extends _0x3ff648{['afterInit'](){const _0x450042=this['editor'];_0x450042['plugins']['has']('CaseChange')&&(_0x450042['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x450042['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x450042['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3ff648{['afterInit'](){const _0x30004d=this['editor'];_0x30004d['commands']['get']('ckbox')&&_0x30004d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x3ff648{['afterInit'](){const _0x3f6c80=this['editor'];if(!_0x3f6c80['plugins']['has']('CodeBlock'))return;const _0x108e41=_0x3f6c80['plugins']['get']('TrackChangesEditing'),_0x57d0c7=_0x3f6c80['locale'],_0x31ccea=_0x3f6c80['config']['get']('codeBlock')['languages'],_0x16d45e=_0x3f6c80['commands']['get']('codeBlock');_0x108e41['enableCommand']('indentCodeBlock'),_0x108e41['enableCommand']('outdentCodeBlock'),_0x108e41['enableCommand']('codeBlock',(_0x463074,_0x147e72={})=>{const _0x21645c=_0x3f6c80['model'],_0x136cf3=_0x3f6c80['model']['document']['selection'],_0x50ee07=_0x147e72&&void 0x0!==_0x147e72['forceValue']?_0x147e72['forceValue']:!_0x16d45e['value'];let _0x59a173;_0x147e72['language']||(_0x147e72['language']=_0x31ccea[0x0]['language']),_0x59a173=_0x50ee07?Array['from'](_0x136cf3['getSelectedBlocks']())['filter'](_0x4e405d=>eo(_0x4e405d)||function(_0x921d8,_0x57cc86){if(_0x921d8['is']('rootElement')||_0x57cc86['isLimit'](_0x921d8))return!0x1;return _0x57cc86['checkChild'](_0x921d8['parent'],'codeBlock');}(_0x4e405d,_0x21645c['schema'])):Array['from'](_0x136cf3['getSelectedBlocks']())['filter'](_0x26798b=>eo(_0x26798b));const _0x4efee9=to(_0x59a173,_0x21645c);_0x21645c['change'](()=>{for(const _0x3aaca8 of _0x4efee9)_0x108e41['markBlockFormat'](_0x3aaca8,{'commandName':'codeBlock','commandParams':[{..._0x147e72,'forceValue':_0x50ee07}],'formatGroupId':'blockName'});});}),(_0x108e41['descriptionFactory']['registerElementLabel']('codeBlock',_0x4889c2=>c(_0x57d0c7,'ELEMENT_CODE_BLOCK',_0x4889c2)),_0x108e41['descriptionFactory']['registerDescriptionCallback'](_0x41fdef=>{if('formatBlock'!=_0x41fdef['type'])return;const _0x5a926a=_0x57d0c7['t'],{data:_0x2c7ba5}=_0x41fdef;if(!_0x2c7ba5||'codeBlock'!=_0x2c7ba5['commandName'])return;const _0x9894f6=_0x2c7ba5['commandParams'][0x0]['language'],_0x40f853=_0x5a926a(_0x31ccea['find'](_0x1901d8=>_0x1901d8['language']===_0x9894f6)['label'])['toLowerCase']();return _0x2c7ba5['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x57d0c7,'*Set\x20format:*\x20%0',c(_0x57d0c7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40f853+')')}:{'type':'format','content':c(_0x57d0c7,'*Remove\x20format:*\x20%0',c(_0x57d0c7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3502f1){return'codeBlock'==_0x3502f1['name'];}class q extends _0x3ff648{['afterInit'](){const _0x54c6fb=this['editor'];if(!_0x54c6fb['plugins']['has']('CommentsEditing'))return;_0x54c6fb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xfcfd8a,_0x3000e4,_0x289ab7){const _0x109e76=[];for(const _0x570abe of _0x3000e4['getItems']())_0x570abe['hasAttribute'](_0xfcfd8a)&&_0x109e76['push'](_0x289ab7['createRangeOn'](_0x570abe));return _0x109e76;}function Fe(_0x417799,_0x38b87a,{showActiveMarker:_0x46334c=!0x0}={}){const _0x281bdd=_0x417799['plugins']['get']('TrackChangesEditing');return(_0x415191,_0x13445e,_0x42591b)=>{if(!_0x42591b['consumable']['test'](_0x13445e['markerRange'],_0x415191['name']))return;const _0x47ff54=_0x13445e['markerRange']['getWalker'](),_0x3bc2a4=_0x13445e['markerRange']['start'],_0x46ebb6=_0x417799['model']['schema'];let _0xe14fd1=null,_0x5da1f6=null,_0x4f4b11=!0x1,_0x45c49e=!0x1;for(const _0x10858d of _0x47ff54){const _0x2385c1=_0x10858d['item'];_0x4f4b11=_0x4f4b11||_0x46ebb6['isContent'](_0x2385c1);const _0x1616d7=_0x42591b['mapper']['toViewElement'](_0x2385c1);if(_0x1616d7&&_0x1616d7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x10858d['type']&&(_0x46ebb6['isBlock'](_0x2385c1)&&!_0x46ebb6['isLimit'](_0x2385c1)&&(_0x2385c1['nextSibling']||_0x3bc2a4['isAtEnd']?_0xe14fd1&&_0xe14fd1['parent']==_0x2385c1||(_0xe14fd1=_0x2385c1,_0x4c40af(_0x10858d['previousPosition']),_0x45c49e=!0x0):_0x5da1f6=_0x5da1f6||_0x10858d['previousPosition']));}function _0x4c40af(_0x314d24){const {id:_0x16be52,authorId:_0x5eb2a0}=_0x281bdd['_splitMarkerName'](_0x13445e['markerName']),_0x85157e=_0x42591b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38b87a,'data-suggestion':_0x16be52,'data-author-id':_0x5eb2a0}),_0x4b4542=_0x42591b['mapper']['toViewPosition'](_0x314d24);_0x46334c&&_0x281bdd['activeMarkers']['includes'](_0x13445e['markerName'])&&_0x42591b['writer']['addClass']('ck-suggestion-marker--active',_0x85157e),_0x42591b['writer']['insert'](_0x4b4542,_0x85157e),_0x42591b['mapper']['bindElementToMarker'](_0x85157e,_0x13445e['markerName']);}_0x4f4b11||_0x45c49e||!_0x5da1f6||_0x4c40af(_0x5da1f6);};}class z extends _0x3ff648{static get['requires'](){return[_0x5ef8aa];}['init'](){const _0x227cef=this['editor'],_0x38c913=_0x227cef['plugins']['get']('TrackChangesEditing');_0x38c913['enableCommand']('delete');const _0x21cc2f=_0x227cef['commands']['get']('deleteForward');_0x38c913['enableCommand']('deleteForward',(_0x2a2eb5,_0x319eda={})=>{const _0x1049bf=_0x227cef['model']['createSelection'](_0x227cef['model']['document']['selection']);_0x1049bf['isCollapsed']&&_0x227cef['model']['modifySelection'](_0x1049bf,{'direction':'forward','unit':_0x319eda['unit']});const _0x31f0d3=_0x1049bf['getFirstRange'](),_0x4088c5=_0xc48f37['fromRange'](_0x31f0d3);let _0xd5a614;_0x2a2eb5(_0x319eda),_0xd5a614='$graveyard'==_0x4088c5['root']['rootName']?_0x227cef['model']['createRange'](_0x31f0d3['start']):_0x227cef['model']['createRange'](_0x4088c5['start'],_0x4088c5['end']),_0x4088c5['detach'](),_0x227cef['model']['enqueueChange'](_0x21cc2f['buffer']['batch'],_0x5aa17f=>{_0x21cc2f['buffer']['lock'](),_0x5aa17f['setSelection'](_0x5aa17f['createRange'](_0xd5a614['end'])),_0x21cc2f['buffer']['unlock']();});}),_0x227cef['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x227cef,'merge'),{'priority':'high'}),_0x227cef['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xa18463,_0x2332d7,_0x20f1eb)=>{_0x20f1eb['options']['showSuggestionHighlights']&&Fe(_0x227cef,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xa18463,_0x2332d7,_0x20f1eb);},{'priority':'high'}),_0x227cef['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1de0ae,_0x31a5b8,_0x27ad65)=>{const _0x53c57d=_0x27ad65['mapper']['markerNameToElements'](_0x31a5b8['markerName']);if(_0x53c57d){for(const _0x15c2eb of _0x53c57d)_0x15c2eb['is']('uiElement')&&(_0x27ad65['mapper']['unbindElementFromMarkerName'](_0x15c2eb,_0x31a5b8['markerName']),_0x27ad65['writer']['remove'](_0x15c2eb));}},{'priority':'high'});}}class W extends _0x3ff648{['afterInit'](){const _0x424f0a=this['editor'];if(!_0x424f0a['plugins']['has']('ListEditing'))return;const _0x2e68fe=_0x424f0a['locale'],_0x4c0bf7=_0x424f0a['plugins']['get']('TrackChangesEditing'),_0x36467b=_0x424f0a['plugins']['has']('TodoListEditing'),_0x1054a7=!!_0x424f0a['config']['get']('list.multiBlock');function _0xcdbf3(_0x1cdc31){return{'type':'format','content':''+c(_0x2e68fe,'*Set\x20format:*\x20%0',_0x1cdc31)};}function _0x194d5e(_0x2066ef){return{'type':'format','content':''+c(_0x2e68fe,'*Remove\x20format:*\x20%0',_0x2066ef)};}_0x4c0bf7['enableDefaultAttributesIntegration']('numberedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('bulletedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('customNumberedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('customBulletedList'),_0x4c0bf7['enableDefaultAttributesIntegration']('indentList'),_0x4c0bf7['enableDefaultAttributesIntegration']('outdentList'),_0x4c0bf7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4c0bf7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4c0bf7['registerBlockAttribute']('listItemId'),_0x4c0bf7['registerBlockAttribute']('listType'),_0x4c0bf7['registerBlockAttribute']('listIndent'),_0x1054a7&&(_0x4c0bf7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4c0bf7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36467b&&(_0x4c0bf7['enableDefaultAttributesIntegration']('todoList'),_0x4c0bf7['enableDefaultAttributesIntegration']('checkTodoList'),_0x4c0bf7['registerBlockAttribute']('todoListChecked'),_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x1bc57e=>{const {data:_0x149d81}=_0x1bc57e;if(_0x149d81&&'todoListChecked'==_0x149d81['key'])return{'type':'format','content':_0x149d81['newValue']?c(_0x2e68fe,'*Check\x20item*'):c(_0x2e68fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42cb0c=>{if(_0x42cb0c['batch']['isUndo'])return!0x1;let _0x220e12=!0x1;const _0x4e067f=_0x4c0bf7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20b54f=>'todoListChecked'===_0x4c0bf7['_getAttributeKey'](_0x20b54f));for(const _0xab973e of _0x4e067f){'todo'!=_0xab973e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4c0bf7['_findSuggestions'](_0xab973e['getFirstRange'](),'attribute')['find'](_0x5a9ee3=>'listType'===_0x4c0bf7['_getAttributeKey'](_0x5a9ee3['suggestion']))||(_0x42cb0c['removeMarker'](_0xab973e['getFirstMarker']()),_0x220e12=!0x0));}return _0x220e12;})),_0x4c0bf7['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2e68fe,'FORMAT_INDENT'));const _0x40fa3b={'type':'format','content':''};_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x28df03=>{const {data:_0x1b2724}=_0x28df03;if(!_0x1b2724||'listType'!=_0x1b2724['key'])return;let _0xd1c6e7=_0x28df03['head'];for(;_0xd1c6e7;){if(_0xd1c6e7['data']&&(('listStyle'==_0xd1c6e7['data']['key']||'listMarkerStyle'==_0xd1c6e7['data']['key'])&&(_0xd1c6e7['data']['newValue']&&'default'!=_0xd1c6e7['data']['newValue']||'default'!=_0xd1c6e7['data']['oldValue']&&!_0x1b2724['newValue'])||!_0x1054a7&&_0xd1c6e7['data']['key']==u))return _0x40fa3b;_0xd1c6e7=_0xd1c6e7['next'];}if(null==_0x1b2724['newValue'])switch(_0x1b2724['oldValue']){case'bulleted':return _0x194d5e(c(_0x2e68fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x194d5e(c(_0x2e68fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x194d5e(c(_0x2e68fe,'ELEMENT_TODO_LIST'));}switch(_0x1b2724['newValue']){case'bulleted':return _0xcdbf3(c(_0x2e68fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xcdbf3(c(_0x2e68fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xcdbf3(c(_0x2e68fe,'ELEMENT_TODO_LIST'));}}),_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x37cce3=>{const {data:_0x5ed924}=_0x37cce3;if(_0x5ed924&&'listIndent'==_0x5ed924['key'])return null==_0x5ed924['newValue']||null==_0x5ed924['oldValue']&&0x0==_0x5ed924['newValue']?_0x40fa3b:void 0x0;}),_0x4c0bf7['descriptionFactory']['registerDescriptionCallback'](_0x11d517=>{if('attribute'!=_0x11d517['type'])return;const {data:_0x573b46}=_0x11d517;if(!_0x573b46||'listItemId'!=_0x573b46['key'])return;const _0x102cb0=Te(_0x11d517);return'newValue'==_0x102cb0?{'type':'format','content':c(_0x2e68fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0x102cb0?{'type':'format','content':c(_0x2e68fe,'*Split:*\x20list\x20item')}:_0x40fa3b;}),_0x424f0a['model']['document']['registerPostFixer'](_0x4307c7=>this['listItemIdFixer'](_0x4307c7)),_0x424f0a['model']['document']['registerPostFixer'](_0x5c13aa=>this['noTrackChangesFixer'](_0x5c13aa)),_0x424f0a['model']['document']['on']('change:data',(_0xcd3423,_0x982982)=>{if(_0x982982['isUndo']||!_0x982982['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5927a2){if(_0x5927a2['batch']['isUndo']||!_0x5927a2['batch']['isLocal'])return!0x1;let _0x150ee8=!0x1;const _0x56689a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f0a63=>_0x5f0a63['data']&&'listItemId'==_0x5f0a63['data']['key'])['filter'](_0x2cc4b5=>_0x2cc4b5['data']['newValue']&&_0x2cc4b5['data']['oldValue']);for(const _0x5f014f of _0x56689a)Te(_0x5f014f)||(_0x5927a2['removeMarker'](_0x5f014f['getFirstMarker']()),_0x150ee8=!0x0);return _0x150ee8;}['noTrackChangesFixer'](_0x21831b){if(_0x21831b['batch']['isUndo']||!_0x21831b['batch']['isLocal'])return!0x1;const _0xfcdb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xfcdb['trackChangesCommand']['value'])return!0x1;let _0x1b79c3=!0x1;const _0x4acc84=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb753c2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x356423=>'attribute'==_0x356423['type'])['filter'](_0x173358=>_0x4acc84['includes'](_0x173358['attributeKey']));if(0x0==_0xb753c2['length'])return _0x1b79c3;for(const _0x1c2989 of _0xb753c2){const _0x3b0cdd=_0xfcdb['_findSuggestions'](_0x1c2989['range'],'attribute')['filter'](_0x473d46=>!_0x473d46['meta']['isNextTo'])['map'](_0x5d3337=>_0x5d3337['suggestion'])['filter'](_0x1e64e5=>{const _0xee305b=_0xfcdb['_getAttributeKey'](_0x1e64e5);return _0x4acc84['includes'](_0xee305b);});if(_0x3b0cdd['length']){for(const _0x3379d1 of _0x3b0cdd)_0x21831b['removeMarker'](_0x3379d1['getFirstMarker']());_0x1b79c3=!0x0;}}return _0x1b79c3;}['assureChains'](){const _0x3d771b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a83c9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1d20e7;const _0xc343c6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d7e1a=>{if(_0x2d7e1a['data']['oldRange']||!_0x2d7e1a['data']['newRange'])return null;if(!_0x2d7e1a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1aeacb}=_0x3d771b['_splitMarkerName'](_0x2d7e1a['name']);if(!_0x3d771b['hasSuggestion'](_0x1aeacb))return null;const _0x1c0dcc=_0x3d771b['getSuggestion'](_0x1aeacb);return _0x1a83c9['includes'](_0x1c0dcc['data']['key']);})['map'](_0x23769e=>{const {id:_0xa8959c}=_0x3d771b['_splitMarkerName'](_0x23769e['name']),_0x52615b=_0x3d771b['getSuggestion'](_0xa8959c);return _0x1d20e7=_0x52615b['attributes']['groupId'],_0x52615b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xc343c6['size'])return;const _0x780334=_0x3d771b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a541f=>'attribute'==_0x2a541f['type']&&_0x2a541f['data']&&_0x1a83c9['includes'](_0x2a541f['data']['key'])&&_0x2a541f['attributes']['groupId']!=_0x1d20e7)['map'](_0x16cf98=>({'listItem':_0x16cf98['getFirstRange']()['start']['nodeAfter'],'groupId':_0x16cf98['attributes']['groupId']})),_0x1182a1=new Set();for(const {groupId:_0x3a7417,listItem:_0x4f2748}of _0x780334)_0xc343c6['has'](_0x4f2748)&&_0x1182a1['add'](_0x3a7417);for(const _0xa0d856 of _0x3d771b['getSuggestions']())_0x1182a1['has'](_0xa0d856['attributes']['groupId'])&&_0xa0d856['setAttribute']('groupId',_0x1d20e7);}['_supportLegacySuggestions'](){const _0x438bf2=this['editor'],_0x5db4a8=_0x438bf2['locale'],_0x399428=_0x438bf2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x399428['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x22dccf,_0x39a018){const _0x5c02b9=[];for(let _0x433701 of _0x22dccf)_0x433701['start']['nodeAfter']===_0x433701['end']['parent']&&(_0x433701=_0x438bf2['model']['createRange'](_0x438bf2['model']['createPositionAt'](_0x433701['start']['nodeAfter'],0x0))),_0x5c02b9['push'](_0x433701);_0x438bf2['model']['change'](_0x3c856e=>{const _0x2b5fb7=_0x438bf2['model']['document']['selection'],_0x5df561=Array['from'](_0x2b5fb7['getRanges']())['map'](_0x395461=>_0xc48f37['fromRange'](_0x395461));_0x3c856e['setSelection'](_0x5c02b9),_0x438bf2['commands']['get'](_0x39a018['commandName'])['refresh'](),_0x39a018['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x438bf2['execute'](_0x39a018['commandName'],..._0x39a018['commandParams']),_0x3c856e['setSelection'](_0x5df561);for(const _0x4d6f0c of _0x5df561)_0x4d6f0c['detach']();});}),_0x399428['descriptionFactory']['registerElementLabel'](function(_0x3cc967){const _0x4122f9=!_0x438bf2['model']['schema']['isObject'](_0x3cc967),_0x46db88=_0x3cc967['previousSibling'],_0x215b42=_0x3cc967['nextSibling'],_0x4e5958=_0x3cc967['getAttribute']('listItemId'),_0x3bd4ed=!_0x46db88||_0x46db88['getAttribute']('listItemId')!==_0x4e5958,_0x6547de=!_0x215b42||_0x215b42['getAttribute']('listItemId')!==_0x4e5958;return _0x4122f9&&Boolean(_0x4e5958)&&_0x3bd4ed&&_0x6547de;},_0x515608=>c(_0x5db4a8,'ELEMENT_LIST_ITEM',_0x515608));}['_registerLegacyDescription'](){const _0x573076=this['editor'],_0x45bd9f=_0x573076['locale'];function _0x38f4a5(_0x247222){const _0x410ee5=_0x573076['commands']['get']('bulletedList')['value'],_0x1f0a07=_0x573076['commands']['get']('numberedList')['value'];return'numberedList'===_0x247222?_0x410ee5:_0x1f0a07;}_0x573076['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x59831c){if('formatBlock'!=_0x59831c['type'])return;const {data:_0x37baa5}=_0x59831c;if(!_0x37baa5)return;let _0x2e9e8f,_0x4cc55e,_0x54a735,_0x1c16e3;switch(_0x37baa5['commandName']){case'bulletedList':_0x54a735=_0x37baa5['commandParams'][0x0]['forceValue'],_0x1c16e3=_0x38f4a5(_0x37baa5['commandName']),_0x2e9e8f=_0x54a735?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c16e3&&_0x573076['config']['get']('list.multiBlock')||(_0x2e9e8f='*Change\x20to:*\x20%0'),_0x4cc55e={'type':'format','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x54a735=_0x37baa5['commandParams'][0x0]['forceValue'],_0x1c16e3=_0x38f4a5(_0x37baa5['commandName']),_0x2e9e8f=_0x54a735?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c16e3&&_0x573076['config']['get']('list.multiBlock')||(_0x2e9e8f='*Change\x20to:*\x20%0'),_0x4cc55e={'type':'format','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e9e8f='*Indent:*\x20%0',_0x4cc55e={'type':'format','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e9e8f=function(_0x4eb218){const _0x517098=_0x4eb218['getFirstRange']();let _0x282074=_0x517098['start']['nodeAfter'];for(;_0x282074&&_0x517098['containsItem'](_0x282074);){if(_0x282074['getAttribute']('listIndent')>0x0)return!0x1;_0x282074=_0x282074['nextSibling'];}return!0x0;}(_0x59831c)?c(_0x45bd9f,'*Format:*\x20remove\x20from\x20%0',c(_0x45bd9f,function(_0x4ecc8a){return'ELEMENT_'+_0x4ecc8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x59831c))):c(_0x45bd9f,'*Outdent:*\x20%0',c(_0x45bd9f,'ELEMENT_LIST_ITEM')),_0x4cc55e={'type':'format','content':_0x2e9e8f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37baa5['multipleBlocks']&&(_0x2e9e8f='*Merge:*\x20%0',_0x4cc55e={'type':'deletion','content':c(_0x45bd9f,_0x2e9e8f,c(_0x45bd9f,'ELEMENT_LIST_ITEM'))});}return _0x4cc55e;});}}function Te(_0x12d2f9){let _0x2745f0=_0x12d2f9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2745f0;){const _0x36a3d7=_0x2745f0['getAttribute']('listItemId');if(!_0x36a3d7)return!0x1;if(_0x36a3d7==_0x12d2f9['data']['newValue'])return'newValue';if(_0x36a3d7==_0x12d2f9['data']['oldValue'])return'oldValue';_0x2745f0=_0x2745f0['previousSibling'];}return!0x1;}class Se extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f44aa=this['editor']['config']['get']('list.properties'),_0x2d1102=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f44aa['styles']&&(_0x2d1102['enableDefaultAttributesIntegration']('listStyle'),_0x2d1102['registerBlockAttribute']('listStyle')),_0x5f44aa['reversed']&&(_0x2d1102['enableDefaultAttributesIntegration']('listReversed'),_0x2d1102['registerBlockAttribute']('listReversed')),_0x5f44aa['startIndex']&&(_0x2d1102['enableDefaultAttributesIntegration']('listStart'),_0x2d1102['registerBlockAttribute']('listStart'));const _0x2eb55b={'type':'format','content':''};_0x2d1102['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x370176=this['editor']['locale'];_0x2d1102['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x370176,'FORMAT_LIST_REVERSED')),_0x2d1102['descriptionFactory']['registerDescriptionCallback'](_0x41f161=>{const {data:_0xf3fa11}=_0x41f161;if(_0xf3fa11&&'listReversed'==_0xf3fa11['key'])return null==_0xf3fa11['newValue']||0x0==_0xf3fa11['newValue']&&null==_0xf3fa11['oldValue']?_0x2eb55b:void 0x0;}),_0x2d1102['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x370176,'FORMAT_LIST_START')),_0x2d1102['descriptionFactory']['registerDescriptionCallback'](_0x217ac5=>{const {data:_0x21f54a}=_0x217ac5;if(_0x21f54a&&'listStart'==_0x21f54a['key'])return null==_0x21f54a['newValue']||0x1==_0x21f54a['newValue']&&null==_0x21f54a['oldValue']?_0x2eb55b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ccf62=>{if(_0x2ccf62['batch']['isUndo'])return!0x1;let _0x444a60=!0x1;const _0x516bda=_0x2d1102['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cfe8a=>{const _0x2313ce=_0x2d1102['_getAttributeKey'](_0x1cfe8a);return'listStart'==_0x2313ce||'listReversed'==_0x2313ce;});for(const _0x20196a of _0x516bda){const _0x490ce2=_0x20196a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x490ce2||'customNumbered'==_0x490ce2)continue;_0x2d1102['_findSuggestions'](_0x20196a['getFirstRange'](),'attribute')['find'](_0x3710b7=>'listType'==_0x2d1102['_getAttributeKey'](_0x3710b7['suggestion']))||(_0x2ccf62['removeMarker'](_0x20196a['getFirstMarker']()),_0x444a60=!0x0);}return _0x444a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1735b5){const _0x31df02=this['editor']['locale'],{data:_0x28dddf}=_0x1735b5,_0x581955={'type':'format','content':''};if(!_0x28dddf||'listStyle'!=_0x28dddf['key'])return;if(!_0x28dddf['oldValue'])return'default'==_0x28dddf['newValue']?_0x581955:{'type':'format','content':''+c(_0x31df02,'*Set\x20format:*\x20%0',c(_0x31df02,this['_getTranslationKeyForListStyle'](_0x28dddf['newValue'])))};if(!_0x28dddf['newValue']){if('default'==_0x28dddf['oldValue'])return _0x581955;let _0x2f6b6d=_0x1735b5['head'];for(;_0x2f6b6d;){if(_0x2f6b6d['data']&&'listType'==_0x2f6b6d['data']['key']&&_0x2f6b6d['data']['newValue'])return _0x581955;_0x2f6b6d=_0x2f6b6d['next'];}return{'type':'format','content':''+c(_0x31df02,'*Remove\x20format:*\x20%0',c(_0x31df02,this['_getTranslationKeyForListStyle'](_0x28dddf['oldValue'])))};}if('default'!=_0x28dddf['newValue'])return{'type':'format','content':''+c(_0x31df02,'*Set\x20format:*\x20%0',c(_0x31df02,this['_getTranslationKeyForListStyle'](_0x28dddf['newValue'])))};let _0x583996=_0x1735b5['head'];for(;_0x583996;){if(_0x583996['data']&&'listType'==_0x583996['data']['key']&&_0x583996['data']['newValue']&&_0x583996['data']['oldValue'])return _0x581955;_0x583996=_0x583996['next'];}return{'type':'format','content':c(_0x31df02,'*Set\x20format:*\x20%0',c(_0x31df02,'ELEMENT_'+_0x1735b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48771a=this['editor'],_0x39e588=_0x48771a['locale'];_0x48771a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b21d=>{if('formatBlock'!=_0x46b21d['type'])return;const {data:_0x230c7d}=_0x46b21d;if(!_0x230c7d)return;let _0x5adf78,_0x56b854;switch(_0x230c7d['commandName']){case'listStyle':_0x5adf78='*Change\x20to:*\x20%0',_0x56b854={'type':'format','content':c(_0x39e588,_0x5adf78,c(_0x39e588,this['_getTranslationKeyForListStyle'](_0x230c7d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5adf78=_0x230c7d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56b854={'type':'format','content':c(_0x39e588,_0x5adf78)};break;case'listStart':_0x5adf78='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56b854={'type':'format','content':c(_0x39e588,_0x5adf78,_0x230c7d['commandParams'][0x0]['startIndex'])};}return _0x56b854;});}['_getTranslationKeyForListStyle'](_0x722ebb){return'ELEMENT_'+function(_0x2c8d2c){if(_e['includes'](_0x2c8d2c))return'bulleted';if(Re['includes'](_0x2c8d2c))return'numbered';return null;}(_0x722ebb)['toUpperCase']()+'_LIST_'+_0x722ebb['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3ff648{['afterInit'](){const _0x5a0b4a=this['editor'];_0x5a0b4a['commands']['get']('emoji')&&_0x5a0b4a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3ff648{static get['requires'](){return[_0x455c9b];}['init'](){const _0x5711eb=this['editor'],_0x5b4b6e=_0x5711eb['plugins']['get']('TrackChangesEditing'),_0x2e01b3=_0x5711eb['commands']['get']('enter');_0x5b4b6e['enableCommand']('enter',()=>{_0x5711eb['model']['change'](_0x117966=>{const _0x5e4303=_0x5711eb['model']['document']['selection'],_0x5bc655=_0x5e4303['getFirstPosition'](),_0xdb1898=_0xc48f37['fromRange'](_0x5e4303['getFirstRange']());if(_0x2e01b3['enterBlock'](_0x117966)){const _0x26b230=_0x5711eb['model']['createPositionAt'](_0x5bc655['parent']['nextSibling'],0x0),_0x22084a=_0x117966['createRange'](_0x5bc655,_0x26b230);_0x5b4b6e['markInsertion'](_0x22084a);}else _0x117966['setSelection'](_0x117966['createRange'](_0xdb1898['end']));_0xdb1898['detach'](),_0x2e01b3['fire']('afterExecute',{'writer':_0x117966});});}),_0x5711eb['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x5711eb,'split'),{'priority':'high'}),_0x5711eb['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3dcc9c,_0x40e8d8,_0xe09dd8)=>{const _0x155e6c=_0xe09dd8['mapper']['markerNameToElements'](_0x40e8d8['markerName']);if(_0x155e6c){for(const _0x5f264c of _0x155e6c)_0x5f264c['hasClass']('ck-suggestion-marker-split')&&(_0xe09dd8['mapper']['unbindElementFromMarkerName'](_0x5f264c,_0x40e8d8['markerName']),_0xe09dd8['writer']['remove'](_0x5f264c));}},{'priority':'high'}),_0x5711eb['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10cbe6,_0x474492,_0x421802)=>{_0x421802['options']['showSuggestionHighlights']&&Fe(_0x5711eb,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x10cbe6,_0x474492,_0x421802);},{'priority':'high'});}}class Z extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4a5074=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a5074['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4a5074['enableCommand']('findNext'),_0x4a5074['enableCommand']('findPrevious'),_0x4a5074['enableCommand']('replace'),_0x4a5074['enableCommand']('replaceAll');}['handleFindCommand'](_0x45dbe9,_0x445465,_0xf51122={}){const _0x479f18=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x45dbe9(_0x505f95=>{let _0x5512a7=('string'==typeof _0x445465?_0x479f18['findByTextCallback'](_0x445465,_0xf51122):_0x445465)(_0x505f95);Array['isArray'](_0x5512a7)&&(_0x5512a7={'results':_0x5512a7,'searchText':'string'==typeof _0x445465?_0x445465:''});const _0x142cca=_0x5512a7['results']['filter'](_0x2ca1fb=>!0x1===this['_isInDeletionRange'](_0x2ca1fb,_0x505f95['item']));return{..._0x5512a7,'results':_0x142cca};},_0xf51122);}['_isInDeletionRange'](_0x456df1,_0x4d24ce){const _0x152a99=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d24ce,_0x456df1['start']),this['editor']['model']['createPositionAt'](_0x4d24ce,_0x456df1['end']));for(const _0x8d5f79 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x152a99['getIntersection'](_0x8d5f79['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x3ff648{['afterInit'](){const _0x47a894=this['editor']['locale'],_0x372f18=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x23a14b,commandName:_0x56fd36}of ro)this['editor']['plugins']['has'](_0x23a14b)&&(_0x372f18['enableDefaultAttributesIntegration'](_0x56fd36),_0x372f18['registerInlineAttribute'](_0x56fd36));_0x372f18['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x47a894,'FORMAT_FONT_SIZE')),_0x372f18['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x47a894,'FORMAT_FONT_FAMILY')),_0x372f18['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x47a894,'FORMAT_FONT_COLOR')),_0x372f18['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x47a894,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9c9d6=this['editor'],_0x1ebee2=_0xa9c9d6['locale'];_0xa9c9d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49e1a5=>{const _0x2bd868=_0x1ebee2['t'];if('formatInline'!=_0x49e1a5['type'])return;const {data:_0x235df9}=_0x49e1a5;if(null!=_0x235df9){if('fontSize'==_0x235df9['commandName']){const _0x4fa94e=_0x235df9['commandParams'][0x0]['value'];if(_0x4fa94e){const _0x1b4566=_0x2bd868(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3c79fd=>_0x3c79fd['model']==_0x4fa94e)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20size:*\x20%0',_0x1b4566)};}return{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x235df9['commandName']){const _0x596323=_0x235df9['commandParams'][0x0]['value'];return _0x596323?{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20family:*\x20%0',_0x596323)}:{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x235df9['commandName']){const _0x109649=_0x235df9['commandParams'][0x0]['value'];if(_0x109649){const _0xcee86e=_0x241c56(this['editor']['config']['get']('fontColor.colors'))['find'](_0x525f39=>_0x525f39['model']==_0x109649);let _0x1347ce=_0x109649,_0x4e0747='';return _0xcee86e&&(_0x1347ce=_0xcee86e['label'],_0x4e0747=_0x2bd868(_0x1347ce)['toLowerCase']()),{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20color:*\x20%0',_0x4e0747)['trim'](),'color':{'value':_0x109649,'title':_0x4e0747||_0x1347ce}};}return{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x235df9['commandName']){const _0x3ce207=_0x235df9['commandParams'][0x0]['value'];if(_0x3ce207){const _0x717458=_0x241c56(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49af43=>_0x49af43['model']==_0x3ce207);let _0x248d24=_0x3ce207,_0x29d40a='';return _0x717458&&(_0x248d24=_0x717458['label'],_0x29d40a=_0x2bd868(_0x248d24)['toLowerCase']()),{'type':'format','content':c(_0x1ebee2,'*Set\x20font\x20background\x20color:*\x20%0',_0x29d40a)['trim'](),'color':{'value':_0x3ce207,'title':_0x29d40a||_0x248d24}};}return{'type':'format','content':c(_0x1ebee2,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x3ff648{['afterInit'](){const _0x106dce=this['editor'],_0x1a4e26=_0x106dce['plugins']['get']('TrackChangesEditing'),_0xa9fcd5=_0x106dce['commands']['get']('copyFormat'),_0x534733=_0x106dce['commands']['get']('pasteFormat');_0xa9fcd5&&_0x534733&&(_0x1a4e26['enableDefaultAttributesIntegration']('pasteFormat'),_0x1a4e26['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f2bad=this['editor'],_0x419383=_0x3f2bad['locale'];_0x3f2bad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b7a3d=>{if('formatBlock'!=_0x3b7a3d['type']&&'formatInline'!=_0x3b7a3d['type'])return;const {data:_0x5108f8}=_0x3b7a3d;if(_0x5108f8&&'pasteFormat'===_0x5108f8['commandName']){const _0x4aaacc=[],_0x11fd37=_0x5108f8['commandParams'][0x0];for(const [_0x42f175,_0x3ece1d]of Object['entries'](_0x11fd37))_0x4aaacc['push'](so(_0x3f2bad,_0x42f175,_0x3ece1d));return _0x4aaacc['length']?{'type':'format','content':c(_0x419383,'*Set\x20format\x20to:*\x20%0',_0x4aaacc['join'](',\x20'))}:{'type':'format','content':c(_0x419383,'*Remove\x20all\x20formatting*')};}});}}function so(_0x10d831,_0x2561d6,_0xc53ef){const _0x1f21ed=_0x10d831['locale']['t'],_0x565c6c=_0x2561d6['split'](/(?=[A-Z])/)['join']('\x20'),_0xf402c1=_0x1f21ed(_0x565c6c['charAt'](0x0)['toUpperCase']()+_0x565c6c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc53ef)return _0xf402c1;if('fontColor'===_0x2561d6||'fontBackgroundColor'===_0x2561d6){const _0x53dd64=_0x241c56(_0x10d831['config']['get']('fontColor.colors'))['find'](_0x55a561=>_0x55a561['model']==_0xc53ef);return _0xf402c1+'\x20('+(_0x53dd64?_0x1f21ed(_0x53dd64['label'])['toLowerCase']():_0xc53ef)+')';}if('fontSize'===_0x2561d6&&isNaN(parseFloat(_0xc53ef))){const _0x1641be=_0x10d831['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x10d831['config']['get']('fontSize.options'))['find'](_0x63dde5=>_0x63dde5['model']==_0xc53ef);return _0xf402c1+'\x20('+(_0x1641be?_0x1f21ed(_0x1641be['title'])['toLowerCase']():_0xc53ef)+')';}return _0xf402c1+'\x20('+_0xc53ef+')';}class et extends _0x3ff648{['_headingOptions'];['afterInit'](){const _0x59a97f=this['editor'];if(!_0x59a97f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x59a97f['config']['get']('heading.options');const _0x121b51=_0x59a97f['locale'],_0x47571e=_0x59a97f['plugins']['get']('TrackChangesEditing');_0x47571e['enableDefaultAttributesIntegration']('heading');for(const _0x59e452 of this['_headingOptions'])'paragraph'!=_0x59e452['model']&&_0x47571e['descriptionFactory']['registerElementLabel'](_0x59e452['model'],_0x5caa42=>{const _0x18fe39=this['_getHeadingLevel'](_0x59e452['model']);return null!==_0x18fe39?_0x4c0780(_0x5caa42,_0x18fe39):_0x4597a8(_0x5caa42,_0x59e452['title']);});function _0x4c0780(_0x14c927,_0x1b1f4a){return c(_0x121b51,'ELEMENT_HEADING',[_0x14c927,_0x1b1f4a]);}function _0x4597a8(_0xbd7a4e,_0x5b10aa){return c(_0x121b51,'ELEMENT_HEADING_CUSTOM',[_0xbd7a4e,_0x5b10aa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234b18=this['editor'],_0x870a7c=_0x234b18['locale'];function _0x1a1550(_0x52396a,_0x2b6580){return c(_0x870a7c,'ELEMENT_HEADING_CUSTOM',[_0x52396a,_0x2b6580]);}_0x234b18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c80c9=>{if('formatBlock'!=_0x5c80c9['type'])return;const {data:_0xc730b7}=_0x5c80c9;if(_0xc730b7&&'heading'==_0xc730b7['commandName']){const _0x9332da=_0xc730b7['commandParams'][0x0]['value'],_0x445f22=this['_getHeadingLevel'](_0x9332da);if(null!==_0x445f22)return{'type':'format','content':c(_0x870a7c,'*Change\x20to:*\x20%0',(_0x22bb9a=0x1,_0x31542c=_0x445f22,c(_0x870a7c,'ELEMENT_HEADING',[_0x22bb9a,_0x31542c])))};const _0x49bebe=this['_headingOptions']['find'](_0xd52391=>_0xd52391['model']===_0x9332da)['title'];return{'type':'format','content':c(_0x870a7c,'*Change\x20to:*\x20%0',_0x1a1550(0x1,_0x49bebe))};}var _0x22bb9a,_0x31542c;});}['_getHeadingLevel'](_0x2e1379){const _0x354e65=_0x2e1379['match'](/^heading(\d+)/);if(_0x354e65)return _0x354e65[0x1];const _0x19d338=this['_headingOptions']?.['find'](_0x45a66c=>_0x45a66c['model']==_0x2e1379);if(_0x19d338&&_0x19d338['view']){const _0xf48ed2=_0x19d338['view'],_0x2ee77f=(_0xf48ed2['name']??_0xf48ed2)['match'](/^h(\d+)/);if(_0x2ee77f)return _0x2ee77f[0x1];}return null;}}class nt extends _0x3ff648{['afterInit'](){const _0x35fa07=this['editor'];if(!_0x35fa07['plugins']['has']('HighlightEditing'))return;const _0x55998e=_0x35fa07['plugins']['get']('TrackChangesEditing'),_0x1b213b=_0x35fa07['locale'];_0x55998e['enableDefaultAttributesIntegration']('highlight'),_0x55998e['registerInlineAttribute']('highlight'),_0x55998e['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1b213b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cef61=this['editor'],_0x2d3386=_0x2cef61['locale'];_0x2cef61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5c24=>{if('formatInline'!=_0x2b5c24['type'])return;const {data:_0x2e4aad}=_0x2b5c24;if(_0x2e4aad&&'highlight'==_0x2e4aad['commandName']){const _0x368385=_0x2d3386['t'],_0x36ef40=_0x2e4aad['commandParams'][0x0]['value'];if(_0x36ef40){const _0x57d918=_0x2cef61['config']['get']('highlight.options')['find'](_0x3d4c1b=>_0x3d4c1b['model']==_0x36ef40),_0x2ba264=_0x368385(_0x57d918['title'])['toLowerCase']();return{'type':'format','content':c(_0x2d3386,'*Set\x20highlight:*\x20%0',_0x2ba264),'color':{'value':_0x57d918['color'],'title':_0x57d918['title']}};}return{'type':'format','content':c(_0x2d3386,'*Remove\x20highlight*',c(_0x2d3386,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3ff648{['afterInit'](){const _0x2d7db5=this['editor'];if(!_0x2d7db5['plugins']['has']('HorizontalLineEditing'))return;_0x2d7db5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe0c6ae=_0x2d7db5['plugins']['get']('TrackChangesEditing'),_0x510f26=_0x2d7db5['locale'];_0xe0c6ae['descriptionFactory']['registerElementLabel']('horizontalLine',_0x128e3f=>c(_0x510f26,'ELEMENT_HORIZONTAL_LINE',_0x128e3f)),_0x2d7db5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xc79c9e,{writer:_0x22a9ba,options:_0x98ac77})=>{if(!_0x98ac77['showSuggestionHighlights'])return null;const _0x4146d4=_0x22a9ba['createContainerElement']('div'),_0x43a29c=_0x22a9ba['createEmptyElement']('hr');return _0x22a9ba['addClass']('ck-horizontal-line',_0x4146d4),_0x22a9ba['insert'](_0x22a9ba['createPositionAt'](_0x4146d4,0x0),_0x43a29c),_0x4146d4;},'converterPriority':'high'});}}class ot extends _0x3ff648{['afterInit'](){const _0x389d07=this['editor'];if(!_0x389d07['plugins']['has']('HtmlEmbed'))return;const _0x314b16=_0x389d07['plugins']['get']('TrackChangesEditing'),_0x5a2fff=_0x389d07['locale'];_0x314b16['descriptionFactory']['registerElementLabel']('rawHtml',_0x392159=>c(_0x5a2fff,'ELEMENT_HTML_EMBED',_0x392159)),_0x314b16['enableDefaultAttributesIntegration']('htmlEmbed'),_0x314b16['registerBlockAttribute']('value'),_0x314b16['descriptionFactory']['registerDescriptionCallback'](_0x131f7f=>{if('attribute'!=_0x131f7f['type'])return;const {data:_0x1337c8}=_0x131f7f;if(_0x1337c8&&'value'==_0x1337c8['key']&&_0x131f7f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x14a44f=c(_0x5a2fff,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5a2fff,'*Change\x20%0\x20content*',_0x14a44f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x82f60f=this['editor'],_0x507820=_0x82f60f['locale'];_0x82f60f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5479c9=>{if('formatBlock'!=_0x5479c9['type'])return;const {data:_0x2b33ba}=_0x5479c9;if(_0x2b33ba&&'htmlEmbed'==_0x2b33ba['commandName']){const _0x2afb69=c(_0x507820,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x507820,'*Change\x20%0\x20content*',_0x2afb69)};}});}}class rt extends _0x3ff648{['afterInit'](){const _0x31bb3f=this['editor'];if(!_0x31bb3f['plugins']['has']('ImageEditing'))return;const _0x1bc566=_0x31bb3f['plugins']['get']('TrackChangesEditing'),_0x569a85=_0x31bb3f['plugins']['get']('ImageUtils'),_0x2557c6=_0x31bb3f['locale'];_0x1bc566['enableCommand']('insertImage'),_0x1bc566['descriptionFactory']['registerElementLabel']('imageBlock',_0x21f6ca=>c(_0x2557c6,'ELEMENT_IMAGE',_0x21f6ca)),_0x1bc566['descriptionFactory']['registerElementLabel']('imageInline',_0x2b4c13=>c(_0x2557c6,'ELEMENT_INLINE_IMAGE',_0x2b4c13)),_0x1bc566['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2557c6,'ELEMENT_CAPTION')),_0x31bb3f['plugins']['has']('ImageUploadEditing')&&_0x1bc566['enableCommand']('uploadImage'),_0x31bb3f['plugins']['has']('ImageBlockEditing')&&_0x31bb3f['plugins']['has']('ImageInlineEditing')&&(_0x1bc566['enableCommand']('imageTypeInline',(_0x1bdc57,_0x8280e7)=>{const _0x6664dc=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']);_0x31bb3f['model']['change'](()=>{_0x1bc566['markBlockFormat'](_0x6664dc,{'commandName':'imageTypeInline','commandParams':[_0x8280e7]},[],'convertBlockImageToInline');});}),_0x1bc566['enableCommand']('imageTypeBlock',(_0x41a42b,_0x10506e)=>{_0x31bb3f['model']['change'](_0x48240d=>{let _0x5707a2=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x572bc4=_0x48240d['createRangeOn'](_0x5707a2);const _0x3896d6=_0x123968['fromPosition'](_0x572bc4['start'],'toPrevious'),_0x34bcd6=_0x123968['fromPosition'](_0x572bc4['end'],'toNext');_0x1bc566['forceDefaultExecution'](()=>_0x41a42b(_0x10506e)),_0x5707a2=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x572bc4=_0x48240d['createRangeOn'](_0x5707a2);const _0x428086=_0x48240d['createRange'](_0x3896d6,_0x34bcd6);_0x3896d6['detach'](),_0x34bcd6['detach'](),_0x1bc566['markBlockFormat'](_0x5707a2,{'commandName':'imageTypeInline','commandParams':[_0x10506e]},[],'convertInlineImageToBlock'),_0x428086['start']['isBefore'](_0x572bc4['start'])&&_0x1bc566['markInsertion'](_0x48240d['createRange'](_0x428086['start'],_0x572bc4['start']),'convertInlineImageToBlock'),_0x572bc4['end']['isBefore'](_0x428086['end'])&&_0x1bc566['markInsertion'](_0x48240d['createRange'](_0x572bc4['end'],_0x428086['end']),'convertInlineImageToBlock');});}),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1bc566['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x43f42c])=>{const _0x459fdc=_0x1bc566['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x215431=_0x43f42c['start'],_0x114275=_0x43f42c['end'];const _0x2d9b19=_0x31bb3f['model']['schema']['getNearestSelectionRange'](_0x215431,'backward'),_0x43860b=_0x31bb3f['model']['schema']['getNearestSelectionRange'](_0x114275,'forward');_0x2d9b19['isCollapsed']&&(_0x215431=_0x2d9b19['start']),_0x43860b['isCollapsed']&&(_0x114275=_0x43860b['end']),_0x459fdc([_0x31bb3f['model']['createRange'](_0x215431,_0x114275)]);}),_0x1bc566['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3621f9),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3621f9)),_0x31bb3f['plugins']['has']('ImageCaptionEditing')&&(_0x1bc566['enableCommand']('toggleImageCaption',(_0x33d384,_0x470861)=>{const _0x13b1b2=_0x31bb3f['plugins']['get']('ImageCaptionUtils');let _0x4ba220=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x4b9bfd=_0x13b1b2['getCaptionFromImageModelElement'](_0x4ba220);_0x31bb3f['model']['change'](()=>{if(_0x4b9bfd)return void _0x1bc566['markDeletion'](_0x31bb3f['model']['createRangeOn'](_0x4b9bfd));const _0x42f27c=_0x569a85['isBlockImage'](_0x4ba220);_0x33d384(_0x470861),_0x4ba220=_0x569a85['getClosestSelectedImageElement'](_0x31bb3f['model']['document']['selection']),_0x4b9bfd=_0x13b1b2['getCaptionFromImageModelElement'](_0x4ba220),_0x1bc566['markInsertion'](_0x31bb3f['model']['createRangeOn'](_0x4b9bfd),_0x42f27c?null:'imageCaption');});}),_0x1bc566['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3621f9));const _0x4fd82c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x430670(_0x7673e3,_0x3e2734){const _0x525d75=_0x4fd82c['findIndex'](({type:_0x1b5060,subType:_0x32c824})=>_0x7673e3['type']==_0x1b5060&&_0x7673e3['subType']==_0x32c824),_0x3c9964=_0x4fd82c['findIndex'](({type:_0x498ae5,subType:_0x2ed845})=>_0x3e2734['type']==_0x498ae5&&_0x3e2734['subType']==_0x2ed845);if(_0x525d75<0x0||_0x3c9964<0x0)return!0x1;const _0x5d3568=_0x7673e3['getFirstRange'](),_0x27df27=_0x3e2734['getFirstRange']();if((0x0==_0x525d75||0x1==_0x525d75)&&0x2==_0x3c9964&&_0x5d3568['isIntersecting'](_0x27df27))return!0x0;if(0x2==_0x525d75&&0x3==_0x3c9964){const _0x4449d5=_0x1bc566['_findSuggestions'](_0x5d3568,'insertion')['filter'](({suggestion:_0x50c20f,meta:_0x15dd6e})=>_0x15dd6e['isOwn']&&'convertInlineImageToBlock'==_0x50c20f['subType']);if(_0x4449d5['length']>0x1&&_0x27df27['end']['isEqual'](_0x5d3568['start']))return!0x0;if(0x1==_0x4449d5['length']&&(_0x5d3568['start']['isEqual'](_0x27df27['end'])||_0x5d3568['end']['isEqual'](_0x27df27['start'])))return!0x0;}if(0x3==_0x525d75&&0x3==_0x3c9964&&_0x5d3568['start']['isBefore'](_0x27df27['start'])){const _0x5607f0=_0x5d3568['end']['nodeAfter'],_0x43a9dc=_0x27df27['start']['nodeBefore'];return _0x569a85['isBlockImage'](_0x5607f0)&&_0x5607f0===_0x43a9dc;}return!0x1;}function _0x3621f9(_0x284c57,_0x1438fa){return _0x430670(_0x284c57,_0x1438fa)?[_0x284c57,_0x1438fa]:_0x430670(_0x1438fa,_0x284c57)?[_0x1438fa,_0x284c57]:null;}_0x31bb3f['plugins']['has']('ImageResize')&&(_0x1bc566['enableDefaultAttributesIntegration']('resizeImage'),_0x1bc566['registerBlockAttribute']('resizedWidth'),_0x1bc566['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2557c6,'FORMAT_IMAGE_SIZE'))),_0x31bb3f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1bc566['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1bc566['registerBlockAttribute']('alt')),_0x31bb3f['plugins']['has']('PictureEditing')&&(_0x1bc566['registerBlockAttribute']('sources'),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x1861ed=>{if('attribute'!=_0x1861ed['type'])return;const {data:_0x273e5b}=_0x1861ed;return _0x273e5b&&'sources'==_0x273e5b['key']?{'type':'format','content':''}:void 0x0;})),_0x31bb3f['plugins']['has']('ImageSizeAttributes')&&(_0x1bc566['registerBlockAttribute']('width'),_0x1bc566['registerBlockAttribute']('height'),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x240e03=>{if('attribute'!=_0x240e03['type'])return;const {data:_0x37fb84}=_0x240e03;return!_0x37fb84||'width'!=_0x37fb84['key']&&'height'!=_0x37fb84['key']?void 0x0:{'type':'format','content':''};})),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x1e3586=>{if(!!_0x4fd82c['find'](({type:_0x4f0101,subType:_0x912232})=>_0x1e3586['type']==_0x4f0101&&_0x1e3586['subType']==_0x912232))return _0x1e3586['previous']?{}:void 0x0;}),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x5d34d8=>{if('insertion'==_0x5d34d8['type']||'deletion'==_0x5d34d8['type']){const _0x2ac16f=_0x5d34d8['getContainedElement']();if(_0x2ac16f&&_0x2ac16f['is']('element','caption'))return{'type':'insertion'==_0x5d34d8['type']?'addObject':'removeObject','element':_0x2ac16f,'quantity':0x1};}}),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x433d9e=>'formatBlock'==_0x433d9e['type']&&'convertInlineImageToBlock'==_0x433d9e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x433d9e['type']&&'convertBlockImageToInline'==_0x433d9e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1bc566['descriptionFactory']['registerDescriptionCallback'](_0x2e00f7=>{if('attribute'!=_0x2e00f7['type'])return;const {data:_0x1ff8f1}=_0x2e00f7;if(!_0x1ff8f1||'alt'!=_0x1ff8f1['key'])return;const _0x5570b3=_0x1ff8f1['newValue'];return _0x5570b3?{'type':'format','content':c(_0x2557c6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5570b3+'\x22')}:{'type':'format','content':c(_0x2557c6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdde934=this['editor'],_0x5af1ce=_0xdde934['locale'];_0xdde934['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17e76e=>{if('formatBlock'!=_0x17e76e['type']&&'formatInline'!=_0x17e76e['type'])return;const {data:_0x3b7906}=_0x17e76e;if(_0x3b7906){if('imageTextAlternative'==_0x3b7906['commandName']){const _0x444973=_0x3b7906['commandParams'][0x0]['newValue'];return _0x444973?{'type':'format','content':c(_0x5af1ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x444973+'\x22')}:{'type':'format','content':c(_0x5af1ce,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b7906['commandName']){const _0x57582c=_0x3b7906['commandParams'][0x0]['width'];return _0x57582c?{'type':'format','content':c(_0x5af1ce,'*Set\x20image\x20width:*\x20%0',_0x57582c)}:{'type':'format','content':c(_0x5af1ce,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3d5ded=this['editor']['locale'],_0x4eb15b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eb15b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4eb15b['registerBlockAttribute']('src'),_0x4eb15b['descriptionFactory']['registerDescriptionCallback'](_0x16af78=>{if('attribute'!=_0x16af78['type'])return;const {data:_0x414aa4}=_0x16af78;return _0x414aa4&&'src'==_0x414aa4['key']?_0x414aa4['newValue']&&_0x414aa4['oldValue']?{'type':'format','content':c(_0x3d5ded,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x210b92=this['editor']['plugins']['get']('TrackChangesEditing');_0x210b92['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x210b92['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x210b92['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x210b92['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11dda1=this['editor'],_0x3ef685=_0x11dda1['locale'];_0x11dda1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b1a9=>{if('formatBlock'!=_0x47b1a9['type']&&'formatInline'!=_0x47b1a9['type'])return;const {data:_0x2349a4}=_0x47b1a9;if(!_0x2349a4||'replaceImageSource'!=_0x2349a4['commandName'])return;return{'type':'format','content':c(_0x3ef685,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3ff648{['afterInit'](){const _0x8937e=this['editor'];if(!_0x8937e['plugins']['has']('ImageStyleEditing'))return;const _0x200bb5=_0x8937e['plugins']['get']('TrackChangesEditing'),_0x4de9e7=_0x8937e['plugins']['get']('ImageUtils'),_0x57be97={};_0x200bb5['enableCommand']('imageStyle',(_0x1c3d8e,_0x3e5cbc)=>{const _0x4cd89b=_0x8937e['plugins']['get']('Users')['me'],_0x6a5af7=_0x8937e['commands']['get']('imageStyle');let _0x2cd41a=_0x4de9e7['getClosestSelectedImageElement'](_0x8937e['model']['document']['selection']),_0x209f5f=_0x8937e['model']['createRangeOn'](_0x2cd41a),_0x2e103c=_0x6a5af7['value'];if(_0x2e103c==_0x3e5cbc['value'])return;const _0x48eedf={'commandName':'imageStyle','commandParams':[_0x3e5cbc],'formatGroupId':_0x65b9b5()};_0x8937e['model']['change'](()=>{if(_0x200bb5['getSuggestions']()['filter'](_0x44183f=>_0x44183f['isInContent']&&_0x4cd89b==_0x44183f['author']&&('formatBlock'==_0x44183f['type']||'formatInline'==_0x44183f['type'])&&('imageStylePreApply'==_0x44183f['subType']||'imageStylePostApply'==_0x44183f['subType'])&&_0x44183f['getFirstRange']()['isEqual'](_0x209f5f))['forEach'](_0x44b0d4=>_0x200bb5['discardSuggestion'](_0x44b0d4['head'])),_0x2cd41a=_0x4de9e7['getClosestSelectedImageElement'](_0x8937e['model']['document']['selection']),_0x209f5f=_0x8937e['model']['createRangeOn'](_0x2cd41a),_0x6a5af7['refresh'](),_0x8937e['commands']['get']('imageTypeInline')['refresh'](),_0x8937e['commands']['get']('imageTypeBlock')['refresh'](),_0x2e103c=_0x6a5af7['value'],_0x2e103c!=_0x3e5cbc['value'])return _0x4de9e7['isInlineImage'](_0x2cd41a)&&_0x6a5af7['shouldConvertImageType'](_0x3e5cbc['value'],_0x2cd41a)?(_0x1c3d8e({..._0x3e5cbc,'setImageSizes':!0x1}),_0x2cd41a=_0x4de9e7['getClosestSelectedImageElement'](_0x8937e['model']['document']['selection']),void _0x200bb5['markBlockFormat'](_0x2cd41a,{..._0x48eedf,'commandReversedParams':[{'value':_0x2e103c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4de9e7['isBlockImage'](_0x2cd41a)?_0x200bb5['markBlockFormat'](_0x2cd41a,_0x48eedf,[],'imageStylePostApply'):_0x200bb5['markInlineFormat'](_0x209f5f,_0x48eedf,'imageStylePostApply'));});});for(const _0x2d76a6 of _0x8937e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x57be97[_0x2d76a6['name']]=_0x2d76a6['title']['toLowerCase']();_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b53f6])=>{_0x4de9e7['setImageNaturalSizeAttributes'](_0x1b53f6['getContainedElement']());}),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c67bc,_0x503a6)=>{_0x200bb5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c67bc,{'commandName':_0x503a6['commandName'],'commandParams':_0x503a6['commandReversedParams']});}),_0x200bb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5c3480,_0x5dcc8d){if(_0x3d439e(_0x5c3480,_0x5dcc8d))return[_0x5c3480,_0x5dcc8d];if(_0x3d439e(_0x5dcc8d,_0x5c3480))return[_0x5dcc8d,_0x5c3480];return null;});const _0x2b46cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d439e(_0x82f81f,_0x24f195){const _0x403958=_0x2b46cd['findIndex'](({type:_0x5c4a18,subType:_0x241430})=>_0x82f81f['type']==_0x5c4a18&&_0x82f81f['subType']==_0x241430),_0x1507fe=_0x2b46cd['findIndex'](({type:_0x53c1c9,subType:_0x328045})=>_0x24f195['type']==_0x53c1c9&&_0x24f195['subType']==_0x328045);if(_0x403958<0x0||_0x1507fe<0x0)return!0x1;const _0x3eee95=_0x82f81f['getFirstRange'](),_0x93403d=_0x24f195['getFirstRange']();if((0x0==_0x403958||0x1==_0x403958)&&0x2==_0x1507fe&&_0x3eee95['isIntersecting'](_0x93403d))return!0x0;if(0x2==_0x403958&&0x3==_0x1507fe){const _0x59c5d8=_0x200bb5['_findSuggestions'](_0x3eee95,'insertion')['filter'](({suggestion:_0x4451b5,meta:_0x37598e})=>_0x37598e['isOwn']&&'convertInlineImageToBlock'==_0x4451b5['subType']);if(_0x59c5d8['length']>0x1&&_0x93403d['end']['isEqual'](_0x3eee95['start']))return!0x0;if(0x1==_0x59c5d8['length']&&(_0x3eee95['start']['isEqual'](_0x93403d['end'])||_0x3eee95['end']['isEqual'](_0x93403d['start'])))return!0x0;}if(0x3==_0x403958&&0x3==_0x1507fe&&_0x3eee95['start']['isBefore'](_0x93403d['start'])){const _0x13b9ee=_0x3eee95['end']['nodeAfter'],_0x45c462=_0x93403d['start']['nodeBefore'];return _0x4de9e7['isBlockImage'](_0x13b9ee)&&_0x13b9ee===_0x45c462;}return!0x1;}_0x8937e['model']['document']['registerPostFixer'](()=>{let _0x442b22=!0x1;const _0x561a49=Array['from'](_0x8937e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a4b3b,data:_0x45f047}of _0x561a49){const {group:_0x2b4fc,type:_0x5b2bf6,subType:_0x48b600,id:_0x3fc1b7}=_0x200bb5['_splitMarkerName'](_0x2a4b3b);if('suggestion'==_0x2b4fc&&_0x200bb5['hasSuggestion'](_0x3fc1b7)){if('formatBlock'==_0x5b2bf6&&('imageStylePreApply'==_0x48b600||'imageStylePostApply'==_0x48b600)){const _0x4e3acc=_0x200bb5['getSuggestion'](_0x3fc1b7);if(_0x45f047['newRange']){const _0x21be72=_0x4e3acc['getFirstRange']()['getContainedElement']();if(_0x4de9e7['isBlockImage'](_0x21be72))continue;_0x200bb5['discardSuggestion'](_0x4e3acc),_0x442b22=!0x0;}}if('insertion'==_0x5b2bf6&&'imageCaption'==_0x48b600&&!_0x45f047['newRange']){const _0x41ad55=_0x200bb5['getSuggestion'](_0x3fc1b7);_0x41ad55['next']&&_0x41ad55['next']['isInContent']&&(_0x200bb5['discardSuggestion'](_0x41ad55['next']),_0x442b22=!0x0);}}}return _0x442b22;}),this['_registerLegacyDescription'](_0x57be97);}['_registerLegacyDescription'](_0x2b1a67){const _0x4eecda=this['editor'],_0x2e0780=_0x4eecda['locale'];_0x4eecda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29dbac=>{if('formatBlock'!=_0x29dbac['type']&&'formatInline'!=_0x29dbac['type'])return;const {data:_0x118464}=_0x29dbac;if(!_0x118464||'imageStyle'!=_0x118464['commandName'])return;const _0x2f221e=_0x118464['commandParams'][0x0]['value'];return _0x2c69ac('side'===_0x2f221e?c(_0x2e0780,'FORMAT_SIDE_IMAGE'):_0x2b1a67[_0x2f221e]||_0x2f221e);function _0x2c69ac(_0x121290){return{'type':'format','content':c(_0x2e0780,'*Format:*\x20%0',_0x121290)};}});}}class ut extends _0x3ff648{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e4a03){super(_0x1e4a03),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x331071=this['editor'],_0x13229d=_0x331071['commands']['get']('importWord'),_0x5d0c89=_0x331071['commands']['get']('trackChanges');_0x13229d&&(_0x13229d['on']('execute',(_0xdfbe2e,[,_0x5f457b])=>{this['_trackChangesValueDuringImport']=_0x5d0c89['value'],_0x5f457b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13229d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13229d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d0c89['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x331071['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5d57ea,_0x3cbf52){const {suggestions:_0x3d25cb}=_0x3cbf52,_0x386e90=this['editor']['commands']['get']('trackChanges'),_0x521985=_0x386e90['value'];this['_trackChangesValueDuringImport']!==_0x521985&&(_0x386e90['execute'](),this['_trackChangesExecuted']=!0x0),_0x3d25cb&&_0x3d25cb['forEach'](({id:_0x1041cb,type:_0x54002a,author:_0x15baa2,created_at:_0x7a9d8c})=>{const _0x48ed61={'id':_0x1041cb,'type':_0x54002a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15baa2,'createdAt':_0x7a9d8c?new Date(_0x7a9d8c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x48ed61);});}}class ft extends _0x3ff648{['afterInit'](){const _0x3dc9c9=this['editor'],_0x30dbe6=_0x3dc9c9['plugins']['get']('TrackChangesEditing');if(_0x3dc9c9['plugins']['has']('IndentEditing')&&(_0x30dbe6['enableCommand']('indent'),_0x30dbe6['enableCommand']('outdent')),_0x3dc9c9['plugins']['has']('IndentBlock')){for(const _0x641ea1 of['indentBlock','outdentBlock'])_0x30dbe6['enableDefaultAttributesIntegration'](_0x641ea1);}const _0x5d7aee=_0x3dc9c9['locale'];_0x30dbe6['registerBlockAttribute']('blockIndent'),_0x30dbe6['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5d7aee,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe3dd0c=this['editor'],_0x3234f3=_0xe3dd0c['locale'],_0x16f02b=_0xe3dd0c['plugins']['get']('TrackChangesEditing');_0x16f02b['descriptionFactory']['registerDescriptionCallback'](_0x701581=>{if('formatBlock'!=_0x701581['type'])return;const {data:_0x2905ac}=_0x701581;if(!_0x2905ac)return;if('indentBlock'!=_0x2905ac['commandName']&&'outdentBlock'!=_0x2905ac['commandName'])return;const _0x115e60=_0x701581['getItems']()[0x0],_0x45414d=_0x16f02b['descriptionFactory']['getItemLabel'](_0x115e60);return'indentBlock'==_0x2905ac['commandName']?{'type':'format','content':c(_0x3234f3,'*Indent:*\x20%0',_0x45414d)}:'outdentBlock'==_0x2905ac['commandName']?{'type':'format','content':c(_0x3234f3,'*Outdent:*\x20%0',_0x45414d)}:void 0x0;});}}class ht extends _0x3ff648{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3ff648{['afterInit'](){const _0x32a6e6=this['editor'];if(!_0x32a6e6['plugins']['has']('LinkEditing'))return;const _0x29feac=_0x32a6e6['plugins']['get']('TrackChangesEditing'),_0x13653d=_0x32a6e6['commands']['get']('link');_0x29feac['enableDefaultAttributesIntegration']('link'),_0x29feac['enableDefaultAttributesIntegration']('unlink'),_0x29feac['registerInlineAttribute']('linkHref');for(const _0x56a26e of _0x13653d['manualDecorators'])_0x29feac['registerInlineAttribute'](_0x56a26e['id']),_0x29feac['descriptionFactory']['registerAttributeLabel'](_0x56a26e['id'],'link\x20('+_0x56a26e['label']['toLowerCase']()+')');_0x29feac['descriptionFactory']['registerDescriptionCallback'](_0xcbb67f=>{if('attribute'!=_0xcbb67f['type'])return;const {data:_0x5d6cfd}=_0xcbb67f;if(!_0x5d6cfd||'linkHref'!=_0x5d6cfd['key'])return;const _0x172698=_0x5d6cfd['newValue'],_0x5d35a0=_0x32a6e6['locale'];return{'type':'format','content':null==_0x172698?c(_0x5d35a0,'*Remove\x20link*'):c(_0x5d35a0,'*Set\x20link:*\x20%0','\x22'+_0x172698+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20a0f4=this['editor'],_0x331c90=_0x20a0f4['locale'];_0x20a0f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b79bb=>{if('formatInline'!=_0x1b79bb['type'])return;const {data:_0x39cd1a}=_0x1b79bb;if(_0x39cd1a){if('link'==_0x39cd1a['commandName']){const _0x4f9fc2=_0x39cd1a['commandParams'][0x0];return{'type':'format','content':c(_0x331c90,'*Set\x20link:*\x20%0','\x22'+_0x4f9fc2+'\x22')};}return'unlink'==_0x39cd1a['commandName']?{'type':'format','content':c(_0x331c90,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3ff648{['afterInit'](){const _0x765cb=this['editor'],_0x43e819=_0x765cb['locale'];if(!_0x765cb['plugins']['has']('LegacyListEditing'))return;const _0x291d8c=_0x765cb['plugins']['get']('TrackChangesEditing'),_0xc41639=_0x765cb['plugins']['has']('LegacyTodoListEditing');function _0x34f278(_0x1a555e){return()=>{const _0x516703=_0x765cb['model']['document']['selection'],_0x26b6c7=_0x765cb['commands']['get'](_0x1a555e);if(_0x26b6c7['value'])return void _0x765cb['execute']('paragraph',{});const _0x5b2510=_0x1a555e['slice'](0x0,-0x4),_0x286569=function(_0x430a15,_0x31200a,_0x103e6e){let _0x11c3ab=Array['from'](_0x430a15)['filter'](_0x50785b=>function(_0x428600,_0x4fd8ec){return _0x4fd8ec['checkChild'](_0x428600['parent'],'listItem')&&!_0x4fd8ec['isObject'](_0x428600);}(_0x50785b,_0x103e6e));_0x11c3ab=_0x11c3ab['filter'](_0x3cf547=>!_0x3cf547['is']('element','listItem')||_0x3cf547['getAttribute']('listType')!=_0x31200a);const _0x18a2a7=new Set();for(const _0x59491b of _0x11c3ab)_0x59491b['is']('element','listItem')?_0x18a2a7['add'](Le(_0x59491b)):_0x18a2a7['add'](_0x59491b);return Array['from'](_0x18a2a7);}(_0x516703['getSelectedBlocks'](),_0x5b2510,_0x765cb['model']['schema']);_0x765cb['model']['change'](()=>{for(const _0x5b278b of _0x286569)_0x291d8c['markBlockFormat'](_0x5b278b,{'commandName':_0x1a555e,'commandParams':[{'forceValue':!_0x26b6c7['value']}],'formatGroupId':'blockName'},Ee(_0x5b278b));});};}function _0x4c1759(_0x55edf2){return()=>{const _0x56d7d1=function(_0x1c24b4){let _0x6acc7d=Array['from'](_0x1c24b4);const _0xa4f3af=_0x6acc7d['findIndex'](_0x25212f=>'listItem'!=_0x25212f['name']);return _0xa4f3af>-0x1&&(_0x6acc7d=_0x6acc7d['slice'](0x0,_0xa4f3af)),_0x6acc7d;}(_0x765cb['model']['document']['selection']['getSelectedBlocks']()),_0x548160=_0x765cb['model']['createRange'](_0x765cb['model']['createPositionAt'](_0x56d7d1[0x0],'before'),_0x765cb['model']['createPositionAt'](_0x56d7d1[_0x56d7d1['length']-0x1],'end'));_0x765cb['model']['change'](()=>{_0x291d8c['markBlockFormat'](_0x548160,{'commandName':_0x55edf2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3dffe7){const _0x1ff064=new Set();for(const _0x239495 of _0x3dffe7){let _0x44b199=_0x239495['nextSibling'];for(;_0x44b199&&_0x44b199['getAttribute']('listIndent')>_0x239495['getAttribute']('listIndent');)_0x1ff064['add'](_0x44b199),_0x44b199=_0x44b199['nextSibling'];}return Array['from'](_0x1ff064);}(_0x56d7d1));});};}_0x291d8c['enableCommand']('numberedList',_0x34f278('numberedList')),_0x291d8c['enableCommand']('bulletedList',_0x34f278('bulletedList')),_0xc41639&&_0x291d8c['enableCommand']('todoList',_0x34f278('todoList')),_0x291d8c['enableCommand']('indentList',_0x4c1759('indentList')),_0x291d8c['enableCommand']('outdentList',_0x4c1759('outdentList')),_0xc41639&&_0x291d8c['enableCommand']('checkTodoList',()=>{const _0xf687f9=_0x765cb['commands']['get']('checkTodoList'),_0x43f3ac=Array['from'](_0xf687f9['_selectedElements']);_0x43f3ac['filter'](_0x102493=>_0x102493['getAttribute']('todoListChecked')!=_0xf687f9['value']),_0x765cb['model']['change'](()=>{for(const _0x47753e of _0x43f3ac)_0x291d8c['markBlockFormat'](_0x47753e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xf687f9['value']}]});});}),_0x291d8c['descriptionFactory']['registerElementLabel']('listItem',_0x1e506e=>c(_0x43e819,'ELEMENT_LIST_ITEM',_0x1e506e)),_0x291d8c['descriptionFactory']['registerDescriptionCallback'](_0x163a32=>{if('formatBlock'!=_0x163a32['type']&&'formatInline'!=_0x163a32['type'])return;const {data:_0x2f9fe7}=_0x163a32;if(_0x2f9fe7){if('numberedList'==_0x2f9fe7['commandName']||'bulletedList'==_0x2f9fe7['commandName']||'todoList'==_0x2f9fe7['commandName'])switch(_0x2f9fe7['commandName']['replace']('List','')){case'bulleted':return _0x36ef29(c(_0x43e819,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36ef29(c(_0x43e819,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36ef29(c(_0x43e819,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f9fe7['commandName'])return{'type':'format','content':c(_0x43e819,'*Indent:*\x20%0',c(_0x43e819,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f9fe7['commandName'])return{'type':'format','content':c(_0x43e819,'*Outdent:*\x20%0',c(_0x43e819,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f9fe7['commandName'])return _0x2f9fe7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x43e819,'*Check\x20item*')}:{'type':'format','content':c(_0x43e819,'*Uncheck\x20item*')};}function _0x36ef29(_0x5a4e48){return{'type':'format','content':c(_0x43e819,'*Change\x20to:*\x20%0',_0x5a4e48)};}});}}function Le(_0x360d84){const _0x2f8c24=_0x360d84['getAttribute']('listIndent');if(0x0==_0x2f8c24)return _0x360d84;let _0x138c7d=_0x360d84;for(;_0x360d84['previousSibling']&&_0x360d84['previousSibling']['is']('element','listItem');){const _0xa25477=_0x360d84['previousSibling']['getAttribute']('listIndent');if(_0xa25477==_0x2f8c24)_0x138c7d=_0x360d84['previousSibling'];else{if(_0xa25477<_0x2f8c24)break;}_0x360d84=_0x360d84['previousSibling'];}return _0x138c7d;}function Ee(_0x40a53c){const _0x3c56a3=[];if(_0x40a53c['is']('element','listItem')&&_0x40a53c['getAttribute']('listIndent')>0x0){let _0x37aeaf=_0x40a53c['nextSibling'];for(;_0x37aeaf&&'listItem'==_0x37aeaf['name']&&_0x37aeaf['getAttribute']('listIndent')==_0x40a53c['getAttribute']('listIndent');)_0x3c56a3['push'](_0x37aeaf),_0x37aeaf=_0x37aeaf['nextSibling'];}return _0x3c56a3;}class Q extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x58a528=this['editor']['config']['get']('list.properties'),_0x56511c=this['editor']['plugins']['get']('TrackChangesEditing');_0x58a528['styles']&&_0x56511c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x58a528['reversed']&&_0x56511c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x58a528['startIndex']&&_0x56511c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x56511c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x20667d,_0x140966={}){const _0x5df3ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44c6c5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5df3ec['markMultiRangeBlockFormat'](_0x44c6c5,{'commandName':'listStyle','commandParams':[{'type':_0x140966['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5a2024,_0x3fbc31={}){const _0x49c6ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d0d6d=this['_getSuggestionBlocks'](_0x5d81df=>_0x5d81df['is']('element','listItem')&&'numbered'===_0x5d81df['getAttribute']('listType'));if(_0x3d0d6d['length']<0x1)return;const _0x124225=_0x3d0d6d['map'](_0x2a519d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a519d,'before'),this['editor']['model']['createPositionAt'](_0x2a519d,0x0)));this['editor']['model']['change'](()=>{_0x49c6ab['markMultiRangeBlockFormat'](_0x124225,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fbc31['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b5181,_0x920b25={}){const _0xaa0250=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e50e1=this['_getSuggestionBlocks'](_0x478e52=>_0x478e52['is']('element','listItem')&&'numbered'===_0x478e52['getAttribute']('listType'));if(_0x2e50e1['length']<0x1)return;const _0x26ba12=_0x2e50e1['map'](_0x244a61=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244a61,'before'),this['editor']['model']['createPositionAt'](_0x244a61,0x0)));this['editor']['model']['change'](()=>{_0xaa0250['markMultiRangeBlockFormat'](_0x26ba12,{'commandName':'listStart','commandParams':[{'startIndex':_0x920b25['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a8582){if('formatBlock'!=_0x5a8582['type']&&'formatInline'!=_0x5a8582['type'])return;const _0xcbd673=this['editor']['locale'],{data:_0x4434d6}=_0x5a8582;if(!_0x4434d6)return;let _0x2fc5a8,_0x180e5e;switch(_0x4434d6['commandName']){case'listStyle':_0x2fc5a8='*Change\x20to:*\x20%0',_0x180e5e={'type':'format','content':c(_0xcbd673,_0x2fc5a8,c(_0xcbd673,this['_getTranslationKeyForListStyle'](_0x4434d6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fc5a8=_0x4434d6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x180e5e={'type':'format','content':c(_0xcbd673,_0x2fc5a8)};break;case'listStart':_0x2fc5a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x180e5e={'type':'format','content':c(_0xcbd673,_0x2fc5a8,_0x4434d6['commandParams'][0x0]['startIndex'])};}return _0x180e5e;}['_getSuggestionBlocksForListStyle'](){const _0x15949a=this['editor']['plugins']['get']('LegacyListUtils');let _0x3d8e4c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3d8e4c[0x0]?.['is']('element','listItem')&&_0x3d8e4c['unshift'](..._0x15949a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3d8e4c[_0x3d8e4c['length']-0x1]?.['is']('element','listItem')&&_0x3d8e4c['push'](..._0x15949a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3d8e4c=[...new Set(_0x3d8e4c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3d8e4c=_0x3d8e4c['filter'](_0x38b564=>_0x38b564['is']('element','listItem'))),_0x3d8e4c;}['_getSuggestionBlocks'](_0x3808e4){const _0x43ace6=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d1cd2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3808e4)['map'](_0x30f38a=>{const _0x24e6f5=this['editor']['model']['createPositionAt'](_0x30f38a,0x0);return[..._0x43ace6['getSiblingNodes'](_0x24e6f5,'backward'),..._0x43ace6['getSiblingNodes'](_0x24e6f5,'forward')];})['flat']();return _0x1d1cd2=[...new Set(_0x1d1cd2)],_0x1d1cd2;}['_getTranslationKeyForListStyle'](_0x12e041){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x12e041)||'default')['toUpperCase']()+'_LIST_'+_0x12e041['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x3ff648{['afterInit'](){const _0x2490dc=this['editor'];if(!_0x2490dc['plugins']['has']('MediaEmbedEditing'))return;const _0x36f2d0=_0x2490dc['plugins']['get']('TrackChangesEditing'),_0x120308=_0x2490dc['locale'];_0x36f2d0['enableCommand']('mediaEmbed'),_0x36f2d0['descriptionFactory']['registerElementLabel']('media',_0x2b7731=>c(_0x120308,'ELEMENT_MEDIA',_0x2b7731)),_0x2490dc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3f3a40,{writer:_0x34a374,options:_0x86b24d})=>{if(_0x86b24d['showSuggestionHighlights'])return _0x34a374['createEmptyElement']('div');},'converterPriority':'high'}),_0x2490dc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x310dca,_0x423ff9,_0x124ad2)=>{_0x124ad2['options']['showSuggestionHighlights']&&_0x310dca['stop']();},{'priority':'high'});}}class pt extends _0x3ff648{['afterInit'](){const _0x1d1463=this['editor'];_0x1d1463['plugins']['has']('MentionEditing')&&_0x1d1463['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x3ff648{['afterInit'](){const _0x493a24=this['editor'];if(!_0x493a24['plugins']['has']('MergeFieldsEditing'))return;const _0x2c1088=_0x493a24['plugins']['get']('TrackChangesEditing'),_0x3f1bb6=_0x493a24['locale'];_0x2c1088['enableCommand']('insertMergeField'),_0x2c1088['enableCommand']('insertMergeFieldBlock'),_0x2c1088['enableCommand']('insertMergeFieldImage'),_0x2c1088['descriptionFactory']['registerElementLabel']('mergeField',_0x18c938=>c(_0x3f1bb6,'ELEMENT_MERGE_FIELD',_0x18c938)),_0x2c1088['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26b6ac=>c(_0x3f1bb6,'ELEMENT_MERGE_FIELD',_0x26b6ac)),_0x2c1088['descriptionFactory']['registerDescriptionCallback'](_0xb8768b=>{if('insertion'!=_0xb8768b['type']&&'deletion'!=_0xb8768b['type'])return;const _0xb295a=_0xb8768b['getContainedElement']();if(null==_0xb295a)return;const _0x5e2ebc=_0x493a24['plugins']['get']('MergeFieldsEditing');let _0x3485fc;switch(_0x5e2ebc['getMergeFieldType'](_0xb295a)){case null:return;case'image':{const _0x4034a7=_0x5e2ebc['unwrapAffixes'](_0xb295a['getAttribute']('src'));_0x3485fc=_0x5e2ebc['getLabel'](_0x4034a7)||_0x4034a7;break;}default:{const _0x29d6ca=_0xb295a['getAttribute']('id');_0x3485fc=_0x5e2ebc['getLabel'](_0x29d6ca)||_0x29d6ca;break;}}return'insertion'==_0xb8768b['type']?{'type':'insertion','content':c(_0x3f1bb6,'*Insert:*\x20%0','\x22'+_0x3485fc+'\x22\x20'+c(_0x3f1bb6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3f1bb6,'*Remove:*\x20%0','\x22'+_0x3485fc+'\x22\x20'+c(_0x3f1bb6,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x3ff648{['afterInit'](){const _0x2facc7=this['editor'],_0x481872=_0x2facc7['plugins']['get']('TrackChangesEditing');_0x2facc7['plugins']['has']('MultiLevelList')&&(_0x481872['enableDefaultAttributesIntegration']('multiLevelList'),_0x481872['registerBlockAttribute']('listMarkerStyle'),_0x481872['descriptionFactory']['registerDescriptionCallback'](_0x33f12c=>this['handleDescriptions'](_0x33f12c)));}['handleDescriptions'](_0x5c034a){const _0x2d3ec3=this['editor']['locale'],{data:_0x4f27c0}=_0x5c034a,_0x3eef8d={'type':'format','content':''};if(_0x4f27c0&&'listMarkerStyle'==_0x4f27c0['key']){if(!_0x4f27c0['oldValue'])return{'type':'format','content':c(_0x2d3ec3,'*Set\x20format:*\x20%0',c(_0x2d3ec3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f27c0['newValue']+')'};if(!_0x4f27c0['newValue']){let _0x219b5c=_0x5c034a['head'];for(;_0x219b5c;){if(_0x219b5c['data']&&'listType'==_0x219b5c['data']['key']&&_0x219b5c['data']['newValue'])return _0x3eef8d;_0x219b5c=_0x219b5c['next'];}return{'type':'format','content':c(_0x2d3ec3,'*Remove\x20format:*\x20%0',c(_0x2d3ec3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f27c0['oldValue']+')'};}}}}class bt extends _0x3ff648{['afterInit'](){const _0xea10ad=this['editor'];if(!_0xea10ad['plugins']['has']('PageBreakEditing'))return;_0xea10ad['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1f35be=_0xea10ad['plugins']['get']('TrackChangesEditing'),_0x3b76c8=_0xea10ad['locale'];_0x1f35be['descriptionFactory']['registerElementLabel']('pageBreak',_0x47fb2d=>c(_0x3b76c8,'ELEMENT_PAGE_BREAK',_0x47fb2d));}}class yt extends _0x3ff648{['afterInit'](){const _0x95c4aa=this['editor'];if(!_0x95c4aa['plugins']['has']('Paragraph'))return;const _0x1258c4=_0x95c4aa['locale'],_0x154127=_0x95c4aa['plugins']['get']('TrackChangesEditing');_0x154127['descriptionFactory']['registerElementLabel']('paragraph',_0x33b3ff=>c(_0x1258c4,'ELEMENT_PARAGRAPH',_0x33b3ff)),_0x154127['enableDefaultAttributesIntegration']('paragraph'),_0x154127['enableCommand']('insertParagraph'),_0x95c4aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x95c4aa),{'priority':'highest'}),_0x95c4aa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42f710,_0x266f8d,_0x1fe43e)=>{_0x1fe43e['options']['showSuggestionHighlights']&&nr(_0x95c4aa,{'showActiveMarker':!0x1})(_0x42f710,_0x266f8d,_0x1fe43e);},{'priority':'highest'});const _0x3a36a0=_0x154127['descriptionFactory'];_0x3a36a0['registerDescriptionCallback'](_0x241b96=>{if('insertion'!==_0x241b96['type'])return;const {start:_0x507bef,end:_0x503f24}=_0x241b96['getFirstRange']();if(!_0x507bef['isTouching'](_0x503f24)||!_0x507bef['nodeAfter'])return;const _0x7ec85=_0x95c4aa['model']['schema'],_0x46700c=_0x507bef['nodeAfter'];return _0x7ec85['isBlock'](_0x46700c)&&!_0x7ec85['isLimit'](_0x46700c)&&_0x7ec85['checkChild'](_0x46700c,'$text')?{'type':'insertion','content':c(_0x1258c4,'*Insert:*\x20%0',_0x3a36a0['getItemLabel'](_0x46700c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dba9c=this['editor'],_0x251862=_0x3dba9c['locale'];_0x3dba9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150f33=>{if('formatBlock'!=_0x150f33['type'])return;const {data:_0x48a7c1}=_0x150f33;return _0x48a7c1&&'paragraph'==_0x48a7c1['commandName']?{'type':'format','content':c(_0x251862,'*Change\x20to:*\x20%0',c(_0x251862,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x28647f,{showActiveMarker:_0x25d450=!0x0}={}){return(_0x1d8f19,_0x1b8f85,_0x4882ac)=>{const _0x27ef11=_0x28647f['plugins']['get']('TrackChangesEditing'),_0x1b6d3d=_0x1b8f85['markerRange']['start'],_0x50be75=_0x1b8f85['markerRange']['end'],_0x504ce7=_0x28647f['model']['schema'];if(!_0x1b6d3d['isTouching'](_0x50be75)||!_0x1b6d3d['nodeAfter'])return;const _0x36c96a=_0x1b6d3d['nodeAfter'];if(_0x504ce7['isBlock'](_0x36c96a)&&!_0x504ce7['isLimit'](_0x36c96a)&&_0x504ce7['checkChild'](_0x36c96a,'$text')){if(!_0x4882ac['consumable']['consume'](_0x1b8f85['markerRange'],_0x1d8f19['name']))return;const {id:_0x24e008,authorId:_0x2ff46d}=_0x27ef11['_splitMarkerName'](_0x1b8f85['markerName']),_0x23c9b4=_0x4882ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x24e008,'data-author-id':_0x2ff46d}),_0x2eb983=_0x4882ac['mapper']['toViewPosition'](_0x50be75);_0x25d450&&_0x27ef11['activeMarkers']['includes'](_0x1b8f85['markerName'])&&_0x4882ac['writer']['addClass']('ck-suggestion-marker--active',_0x23c9b4),_0x4882ac['writer']['insert'](_0x2eb983,_0x23c9b4),_0x4882ac['mapper']['bindElementToMarker'](_0x23c9b4,_0x1b8f85['markerName']);}};}class jt extends _0x3ff648{['afterInit'](){const _0x328371=this['editor'];_0x328371['commands']['get']('replaceSource')&&_0x328371['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3ff648{['afterInit'](){const _0x261961=this['editor'];if(!_0x261961['plugins']['has']('RemoveFormatEditing'))return;_0x261961['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18bf36=this['editor'];_0x18bf36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9f21dd=>{if('formatBlock'!=_0x9f21dd['type']&&'formatInline'!=_0x9f21dd['type'])return;const {data:_0x5c3840}=_0x9f21dd;return _0x5c3840&&'removeFormat'==_0x5c3840['commandName']?{'type':'format','content':c(_0x18bf36['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3ff648{['afterInit'](){const _0x47afa4=this['editor'];if(!_0x47afa4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3ee766=_0x47afa4['plugins']['get']('TrackChangesEditing');_0x3ee766['enableCommand']('goToPreviousRestrictedEditingException'),_0x3ee766['enableCommand']('goToNextRestrictedEditingException');const _0x8d2939=_0x47afa4['plugins']['get']('RestrictedEditingModeEditing');_0x8d2939['enableCommand']('trackChanges'),_0x8d2939['enableCommand']('acceptSuggestion'),_0x8d2939['enableCommand']('discardSuggestion'),_0x8d2939['enableCommand']('acceptAllSuggestions'),_0x8d2939['enableCommand']('discardAllSuggestions'),_0x8d2939['enableCommand']('acceptSelectedSuggestions'),_0x8d2939['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3ff648{['afterInit'](){const _0x102e0c=this['editor'];if(!_0x102e0c['plugins']['has']('ShiftEnter'))return;const _0x1f708a=_0x102e0c['plugins']['get']('TrackChangesEditing');_0x1f708a['enableCommand']('shiftEnter'),_0x102e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x102e0c),{'priority':'high'}),_0x102e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x102e0c),{'priority':'high'}),_0x102e0c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x31ade8,_0xcb5d0a,_0x51cad1)=>{_0x51cad1['options']['showSuggestionHighlights']&&je(_0x102e0c,{'showActiveMarker':!0x1})(_0x31ade8,_0xcb5d0a,_0x51cad1);}),_0x1f708a['descriptionFactory']['registerElementLabel']('softBreak',_0x1b274b=>c(_0x102e0c['locale'],'ELEMENT_LINE_BREAK',_0x1b274b));}}function je(_0x1499e2,{showActiveMarker:_0xc560cc=!0x0}={}){return(_0x58e678,_0x2d8bf4,_0x2d713e)=>{const _0x458904=_0x1499e2['plugins']['get']('TrackChangesEditing');if(!_0x2d713e['consumable']['test'](_0x2d8bf4['markerRange'],_0x58e678['name']))return;const _0xb47f4c=_0x1499e2['model'];for(const _0x549ff2 of _0x2d8bf4['markerRange']['getItems']()){if(!_0x549ff2['is']('element','softBreak'))continue;const _0x13371e='deletion'==_0x2d8bf4['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x366add,authorId:_0x55ec23}=_0x458904['_splitMarkerName'](_0x2d8bf4['markerName']),_0x41dd58=_0x2d713e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13371e,'data-suggestion':_0x366add,'data-author-id':_0x55ec23}),_0x4edd1d=_0x2d713e['mapper']['toViewPosition'](_0xb47f4c['createPositionBefore'](_0x549ff2));_0xc560cc&&_0x458904['activeMarkers']['includes'](_0x2d8bf4['markerName'])&&_0x2d713e['writer']['addClass']('ck-suggestion-marker--active',_0x41dd58),_0x2d713e['writer']['insert'](_0x4edd1d,_0x41dd58),_0x2d713e['mapper']['bindElementToMarker'](_0x41dd58,_0x2d8bf4['markerName']);}};}class _t extends _0x3ff648{['afterInit'](){const _0x46d621=this['editor'],_0x36f168=_0x46d621['model'],_0x2101d9=_0x46d621['locale'];if(!_0x46d621['plugins']['has']('StandardEditingModeEditing'))return;const _0x1a24f3=_0x46d621['plugins']['get']('TrackChangesEditing'),_0x191ce1='restrictedEditingException',_0x55e2be=_0x46d621['commands']['get'](_0x191ce1);_0x1a24f3['enableCommand'](_0x191ce1,(_0x5d69d7,_0xb83f37={})=>{const _0x51b68a=_0x36f168['document']['selection'];if(_0x51b68a['isCollapsed'])return void _0x5d69d7(_0xb83f37);const _0x50f51c=void 0x0!==_0xb83f37['forceValue']?_0xb83f37['forceValue']:!_0x55e2be['value'];_0x36f168['change'](()=>{const _0x5a2b11=Array['from'](_0x51b68a['getRanges']());for(const _0x3f0f0b of _0x5a2b11){const _0xc1d369=_0x50f51c?[_0x3f0f0b]:io(_0x191ce1,_0x3f0f0b,_0x36f168);for(const _0x53ec8a of _0xc1d369)_0x1a24f3['markInlineFormat'](_0x53ec8a,{'commandName':_0x191ce1,'commandParams':[{'forceValue':_0x50f51c}]});}});}),_0x1a24f3['descriptionFactory']['registerDescriptionCallback'](_0x1e2f6e=>{if('formatBlock'!=_0x1e2f6e['type']&&'formatInline'!=_0x1e2f6e['type'])return;const {data:_0x4e9128}=_0x1e2f6e;return _0x4e9128&&_0x4e9128['commandName']==_0x191ce1?_0x4e9128['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2101d9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2101d9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x3ff648{['afterInit'](){const _0x2fa21b=this['editor'];if(!_0x2fa21b['plugins']['has']('Style')||!_0x2fa21b['plugins']['has']('DataSchema'))return;const _0x107dea=_0x2fa21b['plugins']['get']('TrackChangesEditing'),_0x5b5273=_0x2fa21b['locale'],_0x453792=_0x2fa21b['config']['get']('style')||{},_0x33650a=_0x2fa21b['plugins']['get']('GeneralHtmlSupport'),_0x354ddb=_0x2fa21b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fa21b['plugins']['get']('DataSchema'),_0x453792['definitions']);_0x107dea['enableDefaultAttributesIntegration']('style');const _0x5bd931=new Set();for(const _0x3a8f34 of _0x354ddb['block']){const _0x2c0119=_0x33650a['getGhsAttributeNameForElement'](_0x3a8f34['element']);_0x5bd931['add'](_0x2c0119);}const _0x24bb2d=new Set();for(const _0x3b8857 of _0x354ddb['inline']){const _0x319d87=_0x33650a['getGhsAttributeNameForElement'](_0x3b8857['element']);_0x24bb2d['add'](_0x319d87);for(const _0x5e82af of _0x3b8857['ghsAttributes'])_0x24bb2d['add'](_0x5e82af);}for(const _0x497462 of _0x5bd931)_0x107dea['registerBlockAttribute'](_0x497462),_0x107dea['descriptionFactory']['registerAttributeLabel'](_0x497462,c(_0x5b5273,'FORMAT_STYLE'));for(const _0xe547 of _0x24bb2d)_0x107dea['registerInlineAttribute'](_0xe547),_0x107dea['descriptionFactory']['registerAttributeLabel'](_0xe547,c(_0x5b5273,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cbc6f=this['editor'],_0x50330d=_0x4cbc6f['locale'];_0x4cbc6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150d56=>{if('formatBlock'!=_0x150d56['type']&&'formatInline'!=_0x150d56['type'])return;const {data:_0x113820}=_0x150d56;return _0x113820&&'style'===_0x113820['commandName']?_0x113820['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x50330d,'*Set\x20format:*\x20%0',_0x113820['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x50330d,'*Remove\x20format:*\x20%0',_0x113820['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3ff648{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x52d630){super(_0x52d630),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x64c584=this['editor'],_0x4f7911=_0x64c584['model']['document']['selection'];if(!_0x64c584['plugins']['has']('TableEditing'))return;const _0x2efb38=_0x64c584['locale'],_0x36b1b0=_0x64c584['plugins']['get']('TrackChangesEditing'),_0x37bcfb=_0x64c584['plugins']['get']('TableUtils');_0x36b1b0['descriptionFactory']['registerElementLabel']('table',_0x10a068=>c(_0x2efb38,'ELEMENT_TABLE',_0x10a068)),this['_setupColumnsRowsFixing'](),_0x36b1b0['enableCommand']('insertTable'),_0x36b1b0['enableCommand']('selectTableRow'),_0x36b1b0['enableCommand']('selectTableColumn');for(const _0x269ee2 of['insertTableRowAbove','insertTableRowBelow']){const _0x31dd21=_0x64c584['commands']['get'](_0x269ee2);_0x36b1b0['enableCommand'](_0x269ee2,_0x4cb7c3=>{_0x64c584['model']['change'](_0x43829a=>{_0x4cb7c3();const _0x2ed4e9='above'===_0x31dd21['order'],_0x40c737=_0x37bcfb['getSelectionAffectedTableCells'](_0x4f7911),_0x346657=_0x37bcfb['getRowIndexes'](_0x40c737),_0x137775=_0x2ed4e9?_0x346657['first']-0x1:_0x346657['last']+0x1,_0x2ed4a7=_0x40c737[0x0]['findAncestor']('table'),_0x36b10d=_0x37bcfb['createTableWalker'](_0x2ed4a7,{'startRow':_0x137775,'endRow':_0x137775}),_0x5a1281=Array['from'](_0x36b10d)['map'](_0x4e2339=>_0x43829a['createRangeOn'](_0x4e2339['cell']));_0x36b1b0['markMultiRangeInsertion'](_0x5a1281,'tableRow');});});}for(const _0x3aa372 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1fec27=_0x64c584['commands']['get'](_0x3aa372);_0x36b1b0['enableCommand'](_0x3aa372,_0x54252c=>{_0x64c584['model']['change'](_0xdb041f=>{_0x54252c();const _0x9ba032='left'===_0x1fec27['order'],_0x10cc39=_0x37bcfb['getSelectionAffectedTableCells'](_0x4f7911),_0x656901=_0x37bcfb['getColumnIndexes'](_0x10cc39),_0x507b87=_0x9ba032?_0x656901['first']-0x1:_0x656901['last']+0x1,_0x3de50f=_0x10cc39[0x0]['findAncestor']('table'),_0x5e6a29=_0x37bcfb['createTableWalker'](_0x3de50f,{'startRow':0x0,'column':_0x507b87,'includeAllSlots':!0x1}),_0x33f911=Array['from'](_0x5e6a29)['map'](_0x1a9a78=>_0xdb041f['createRangeOn'](_0x1a9a78['cell']));_0x36b1b0['markMultiRangeInsertion'](_0x33f911,'tableColumn');});});}for(const _0x3d5e59 of['removeTableRow','removeTableColumn']){const _0x465287=_0x3d5e59['substr'](0xb),_0x1338bb=_0x465287['toLowerCase'](),_0x25424e=_0x1338bb['substr'](0x0,0x3)+'span',_0x3524e0='table'+_0x465287,_0x22ed02='min'+_0x465287,_0xb5de89='max'+_0x465287;_0x36b1b0['enableCommand'](_0x3d5e59,()=>{_0x64c584['model']['change'](_0x180771=>{const _0x515683=_0x37bcfb['getSelectionAffectedTableCells'](_0x4f7911),_0x32eab7=_0x515683[0x0]['findAncestor']('table');let _0x4d0198;if('removeTableRow'==_0x3d5e59){const _0x4a368a=_0x37bcfb['getRowIndexes'](_0x515683);_0x4d0198={'startRow':_0x4a368a['first'],'endRow':_0x4a368a['last'],'includeAllSlots':!0x0};}else{const _0x3d75d3=_0x37bcfb['getColumnIndexes'](_0x515683);_0x4d0198={'startColumn':_0x3d75d3['first'],'endColumn':_0x3d75d3['last'],'includeAllSlots':!0x0};}const _0x3d61f4=_0x37bcfb['createTableWalker'](_0x32eab7,_0x4d0198),_0x5a4bfb=Array['from'](_0x3d61f4)['map'](({cell:_0x30c5af})=>_0x30c5af),_0x44b366=xe(_0x5a4bfb['filter'](_0x215673=>_0x215673['hasAttribute'](_0x25424e))),_0x3fc4d3=xe(_0x5a4bfb['filter'](_0x49783c=>!_0x49783c['hasAttribute'](_0x25424e)))['map'](_0x4e8a52=>_0x180771['createRangeOn'](_0x4e8a52)),_0x36329d=_0x36b1b0['markMultiRangeDeletion'](_0x3fc4d3,_0x3524e0);if(_0x36329d&&('tableRow'==_0x36329d['subType']||'tableColumn'==_0x36329d['subType'])){const _0xb9e0a5=this['_getSuggestionCoords'](_0x36329d);for(const _0x1bd09c of _0x44b366){const _0x3fde4d=_0x180771['createRangeOn'](_0x1bd09c),_0x52e699=_0x37bcfb['getCellLocation'](_0x1bd09c),_0x347b6e=_0x1bd09c['getAttribute'](_0x25424e)-0x1,_0x481863=_0xb9e0a5[_0x22ed02],_0x3ca51a=_0xb9e0a5[_0xb5de89];_0x481863<=_0x52e699[_0x1338bb]&&_0x52e699[_0x1338bb]+_0x347b6e<=_0x3ca51a&&_0x36329d['addRange'](_0x3fde4d);}}});});}function _0x1623e6(_0x4b40a6){const _0x1239a3=Array['from'](_0x4f7911['getRanges']())['map'](_0x82644c=>_0xc48f37['fromRange'](_0x82644c));_0x64c584['model']['change'](_0x37c0b8=>{const _0x289232=_0x37c0b8['batch'];_0x4b40a6=_0x4b40a6['filter'](_0x3cd0bc=>'$graveyard'!=_0x3cd0bc['root']['rootName']),_0x37c0b8['setSelection'](_0x4b40a6),_0x64c584['commands']['get']('removeTableRow')['refresh'](),_0x64c584['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x64c584['model']['enqueueChange'](()=>{_0x64c584['model']['enqueueChange'](_0x289232,_0x4acaee=>{const _0x4a0d7d=_0x1239a3['filter'](_0x3ada1d=>'$graveyard'!=_0x3ada1d['root']['rootName']);_0x4a0d7d['length']>0x0&&_0x4acaee['setSelection'](_0x4a0d7d);for(const _0xd1d49f of _0x1239a3)_0xd1d49f['detach']();});});});}function _0x199238(_0x77d316){_0x64c584['model']['change'](_0x370857=>{const _0x2961ac=Array['from'](_0x4f7911['getRanges']())['map'](_0x751f45=>_0xc48f37['fromRange'](_0x751f45)),_0x33c455=[];for(const _0x79c463 of _0x77d316)for(const _0x4acd35 of _0x79c463['getItems']({'shallow':!0x0}))_0x33c455['push'](_0x4acd35);for(const _0x4b77f7 of _0x33c455)'$graveyard'!=_0x4b77f7['root']['rootName']&&(_0x370857['setSelection'](_0x370857['createPositionAt'](_0x4b77f7,0x0)),_0x64c584['commands']['get']('removeTableColumn')['refresh'](),_0x64c584['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47fd85=_0x2961ac['filter'](_0xd35aa=>'$graveyard'!=_0xd35aa['root']['rootName']);_0x47fd85['length']>0x0&&_0x370857['setSelection'](_0x47fd85);for(const _0x68b3f8 of _0x2961ac)_0x68b3f8['detach']();});}function _0xe2e1ca(_0x56c2f2,_0x3f6aaa){return _0x3f6aaa['every'](_0x379497=>_0x56c2f2['some'](_0x3337d5=>_0x3337d5['end']['isEqual'](_0x379497['start'])||_0x379497['end']['isEqual'](_0x3337d5['start'])));}function _0x217d5e(_0x4d8004,_0x3da7b6){return!_0x4d8004['some'](_0x2d9e14=>_0x3da7b6['some'](_0x327bd3=>_0x2d9e14['isIntersecting'](_0x327bd3)))&&_0x4d8004['some'](_0x383787=>_0x3da7b6['some'](_0x54fac6=>_0x383787['end']['isTouching'](_0x54fac6['start'])));}_0x64c584['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6f4b2e,_0xf4fee2,_0x2bc32b)=>{if(!_0x2bc32b['options']['showSuggestionHighlights'])return;const _0x136ec3=_0xf4fee2['item'];if(!_0x136ec3||!_0x136ec3['is']('element','tableCell'))return;const _0x18bd9f=_0x2bc32b['mapper']['toViewElement'](_0x136ec3);if(_0x18bd9f){const {id:_0x188c4a,authorId:_0x7ce211}=_0x36b1b0['_splitMarkerName'](_0xf4fee2['markerName']);_0x469766(_0x18bd9f,_0x2bc32b['writer'],(_0x2bf937,_0x54840d,_0x3cfcb8)=>{_0x3cfcb8['addClass'](_0x1eedfa(_0x54840d['classes']),_0x2bf937),_0x3cfcb8['setAttribute']('data-suggestion-id',_0x188c4a,_0x2bf937),_0x3cfcb8['setAttribute']('data-author-id',_0x7ce211,_0x2bf937);},(_0x1a6aa1,_0x48ace,_0x277f51)=>{_0x277f51['removeClass'](_0x1eedfa(_0x48ace['classes']),_0x1a6aa1),_0x277f51['removeAttribute']('data-suggestion-id',_0x1a6aa1),_0x277f51['removeAttribute']('data-author-id',_0x1a6aa1);});}},{'priority':'highest'}),_0x36b1b0['descriptionFactory']['registerDescriptionCallback'](_0x3c8aef=>{if('insertion'!=_0x3c8aef['type']&&'deletion'!=_0x3c8aef['type'])return;const _0x2f2d05=_0x3c8aef['getContainedElement']();if(null!=_0x2f2d05&&_0x2f2d05['is']('element','table')){if('insertion'==_0x3c8aef['type']){const _0x19abc3=_0x3c8aef['getItems']()['filter'](_0x568625=>_0x568625['is']('$textProxy'))['map'](_0x3c06b3=>_0x3c06b3['data']);if(_0x19abc3['length'])return{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19abc3['join']('\x20')+'\x22'))};}if('deletion'==_0x3c8aef['type']){const _0x464cf7=_0x3c8aef['getItems']()['filter'](_0x349cd4=>_0x349cd4['is']('$textProxy'))['map'](_0xdcd087=>_0xdcd087['data']);if(_0x464cf7['length'])return{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x464cf7['join']('\x20')+'\x22'))};}}}),_0x36b1b0['descriptionFactory']['registerDescriptionCallback'](_0x481c7b=>{if('tableRow'==_0x481c7b['subType']){const _0x1ddf9e=_0x481c7b['getItems']()['filter'](_0x4d1c69=>_0x4d1c69['is']('$textProxy'))['map'](_0x4d415b=>_0x4d415b['data']),_0x1a3662=this['_getSuggestionCoords'](_0x481c7b),_0x1f39da=_0x1a3662['maxRow']-_0x1a3662['minRow']+0x1;if('insertion'==_0x481c7b['type'])return _0x1ddf9e['length']?{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f39da,'\x22'+_0x1ddf9e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW',_0x1f39da))};if('deletion'==_0x481c7b['type'])return _0x1ddf9e['length']?{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f39da,'\x22'+_0x1ddf9e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_ROW',_0x1f39da))};}if('tableColumn'==_0x481c7b['subType']){const _0x5a3a9a=_0x481c7b['getItems']()['filter'](_0x290b0a=>_0x290b0a['is']('$textProxy'))['map'](_0x2143d0=>_0x2143d0['data']),_0x2a84d2=this['_getSuggestionCoords'](_0x481c7b),_0x2fca0d=_0x2a84d2['maxColumn']-_0x2a84d2['minColumn']+0x1;if('insertion'==_0x481c7b['type'])return _0x5a3a9a['length']?{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2fca0d,'\x22'+_0x5a3a9a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2efb38,'*Insert:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN',_0x2fca0d))};if('deletion'==_0x481c7b['type'])return _0x5a3a9a['length']?{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2fca0d,'\x22'+_0x5a3a9a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2efb38,'*Remove:*\x20%0',c(_0x2efb38,'ELEMENT_TABLE_COLUMN',_0x2fca0d))};}}),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1623e6),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1623e6),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x199238),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x199238),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe2e1ca),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe2e1ca),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x217d5e),_0x36b1b0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x217d5e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3f1b47=this['editor'],_0x7d3e9d=_0x3f1b47['model']['document']['selection'];return(_0x39e8ac,_0x485e9f)=>{_0x3f1b47['model']['change'](_0x35fe60=>{const {commandName:_0x4e4f25,commandParams:_0x521594}=_0x485e9f;let _0x5ca7e4=_0x39e8ac[0x0]['end']['nodeBefore'];_0x521594&&_0x521594[0x0]&&!0x1===_0x521594[0x0]['forceValue']&&(_0x5ca7e4=_0x39e8ac[0x0]['start']['nodeAfter']);const _0x5cd015=_0x35fe60['createRangeIn'](_0x5ca7e4);if('$graveyard'==_0x5cd015['root']['rootName'])return;const _0x356037=Array['from'](_0x7d3e9d['getRanges']())['map'](_0x52bcb9=>_0xc48f37['fromRange'](_0x52bcb9));_0x35fe60['setSelection'](_0x5cd015),_0x3f1b47['commands']['get'](_0x4e4f25)['refresh'](),_0x521594['push']({'forceDefaultExecution':!0x0}),_0x3f1b47['execute'](_0x4e4f25,..._0x521594);const _0x384f8a=_0x356037['filter'](_0x187230=>'$graveyard'!=_0x187230['root']['rootName']);_0x384f8a['length']>0x0&&_0x35fe60['setSelection'](_0x384f8a);for(const _0x156d7d of _0x356037)_0x156d7d['detach']();});};}['_getCoordsForCells'](_0x1021bb){const _0x2f9600=this['editor']['plugins']['get']('TableUtils');let _0x1f14cb=Number['MAX_SAFE_INTEGER'],_0x5ef58f=Number['MIN_SAFE_INTEGER'],_0x4f0146=Number['MAX_SAFE_INTEGER'],_0x21a641=Number['MIN_SAFE_INTEGER'];for(const _0x4a301a of _0x1021bb){if('$graveyard'==_0x4a301a['root']['rootName'])continue;const {row:_0x3f24e3,column:_0x8cb402}=_0x2f9600['getCellLocation'](_0x4a301a),_0x45e9f=_0x4a301a['hasAttribute']('rowspan')?_0x4a301a['getAttribute']('rowspan')-0x1:0x0,_0x1d67e0=_0x4a301a['hasAttribute']('colspan')?_0x4a301a['getAttribute']('colspan')-0x1:0x0;_0x1f14cb=_0x3f24e3<_0x1f14cb?_0x3f24e3:_0x1f14cb,_0x5ef58f=_0x3f24e3+_0x45e9f>_0x5ef58f?_0x3f24e3+_0x45e9f:_0x5ef58f,_0x4f0146=_0x8cb402<_0x4f0146?_0x8cb402:_0x4f0146,_0x21a641=_0x8cb402+_0x1d67e0>_0x21a641?_0x8cb402+_0x1d67e0:_0x21a641;}return{'minRow':_0x1f14cb,'maxRow':_0x5ef58f,'minColumn':_0x4f0146,'maxColumn':_0x21a641};}['_setupColumnsRowsFixing'](){const _0x2517f1=this['editor'],_0x16e22f=_0x2517f1['plugins']['get']('TrackChangesEditing'),_0x11a51a=_0x2517f1['plugins']['get']('TableUtils');_0x2517f1['model']['document']['on']('change:data',()=>{const _0x5a96a9=Array['from'](_0x2517f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x474bed,data:_0x4d1f61}of _0x5a96a9){const {group:_0x18dd07,id:_0x534f35,subType:_0xc7ef12}=_0x16e22f['_splitMarkerName'](_0x474bed);if('suggestion'!=_0x18dd07)continue;if(null!=_0x4d1f61['oldRange'])continue;const _0x31257f=_0x16e22f['getSuggestion'](_0x534f35);this['_tablePostFixingSubtypes']['includes'](_0xc7ef12)&&this['_tableSuggestions']['add'](_0x31257f);}},{'priority':'low'});const _0x4f85fa=(_0x126d8b,_0x36d34c)=>{let _0x4240c5=!0x1;const _0xfd1680=_0x36d34c['createRangeOn'](_0x126d8b),_0x3bf268=_0x126d8b['findAncestor']('table'),_0x4f1f10=_0x11a51a['getCellLocation'](_0x126d8b);for(const _0x28b9eb of this['_tableSuggestions']){const _0x35dfdb=_0x28b9eb['subType'],_0x18585e=_0x35dfdb['startsWith']('tablePaste'),_0xe8733=_0x35dfdb['substr'](_0x18585e?0xa:0x5),_0x31ec71=_0xe8733['toLowerCase'](),_0x4cd126=_0x31ec71['substr'](0x0,0x3)+'span',_0x415ef2='min'+_0xe8733,_0x1c4cb7='max'+_0xe8733;if(!_0x28b9eb['isInContent'])continue;if(_0x3bf268!=_0x28b9eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28b9eb['isIntersectingWithRange'](_0xfd1680))continue;const _0x42a039=_0x126d8b['hasAttribute'](_0x4cd126)?_0x126d8b['getAttribute'](_0x4cd126)-0x1:0x0,_0x2a3f4a=this['_getSuggestionCoords'](_0x28b9eb),_0x19f963=_0x2a3f4a[_0x415ef2],_0x4be9ba=_0x2a3f4a[_0x1c4cb7];_0x19f963<=_0x4f1f10[_0x31ec71]&&_0x4f1f10[_0x31ec71]+_0x42a039<=_0x4be9ba&&(_0x28b9eb['addRange'](_0xfd1680),_0x4240c5=!0x0);}return _0x4240c5;};_0x2517f1['model']['document']['registerPostFixer'](_0x116665=>{let _0x2e8c3e=!0x1;for(const _0xc8c4cc of _0x2517f1['model']['document']['differ']['getChanges']())if('insert'==_0xc8c4cc['type']){if('tableRow'==_0xc8c4cc['name']){for(const _0x483771 of _0xc8c4cc['position']['nodeAfter']['getChildren']())_0x2e8c3e=_0x2e8c3e||_0x4f85fa(_0x483771,_0x116665);}else'tableCell'==_0xc8c4cc['name']&&(_0x2e8c3e=_0x2e8c3e||_0x4f85fa(_0xc8c4cc['position']['nodeAfter'],_0x116665));}return _0x2e8c3e;});}['_getSuggestionCoords'](_0x17a796){return this['_getCoordsForCells'](_0x17a796['getRanges']()['map'](_0x22fe1b=>_0x22fe1b['start']['nodeAfter']));}}function xe(_0x4fc665){return Array['from'](new Set(_0x4fc665)['values']());}class Nt extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x1de40e=this['editor'],_0x453ec2=_0x1de40e['model']['document']['selection'],_0x6bcb9f=_0x1de40e['locale'];if(!_0x1de40e['plugins']['has']('TableEditing'))return;const _0x4f8145=_0x1de40e['plugins']['get']('TrackChangesEditing'),_0x4bc0a9=_0x1de40e['plugins']['get']('TableUtils'),_0x63a8fd=_0x1de40e['plugins']['get'](Ct);_0x63a8fd['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4f8145['enableCommand']('mergeTableCells',()=>{const _0x13f570=_0x4bc0a9['getSelectionAffectedTableCells'](_0x1de40e['model']['document']['selection']);_0x1de40e['model']['change'](()=>{_0x4f8145['markMultiRangeBlockFormat'](_0x13f570,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1de40e['commands']['get']('mergeTableCells')['on']('execute',(_0x40a9e5,_0xc3ba5c)=>{_0x1de40e['commands']['get']('trackChanges')['value']&&(_0xc3ba5c['length']>0x0&&_0xc3ba5c[_0xc3ba5c['length']-0x1]&&_0xc3ba5c[_0xc3ba5c['length']-0x1]['forceDefaultExecution']||_0x4f8145['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40a9e5['stop']());},{'priority':'highest'});for(const _0x388074 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b0858=_0x1de40e['commands']['get'](_0x388074);_0x4f8145['enableCommand'](_0x388074,()=>{const _0x362ce5=_0x1de40e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x183588=>_0x183588['is']('element','tableCell')),_0x5b35c8=_0x5b0858['value'];_0x1de40e['model']['change'](()=>{_0x4f8145['markMultiRangeBlockFormat']([_0x362ce5,_0x5b35c8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x6b4a3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1e0d6d=_0x1de40e['commands']['get'](_0x6b4a3);_0x4f8145['enableCommand'](_0x6b4a3,()=>{const _0x272c13=_0x4bc0a9['getSelectionAffectedTableCells'](_0x1de40e['model']['document']['selection'])[0x0],_0x343765=_0x272c13['findAncestor']('table'),{column:_0xcc9e54,row:_0x4fbf04}=_0x4bc0a9['getCellLocation'](_0x272c13);let _0x31eb95=[];if('horizontally'==_0x1e0d6d['direction']){const _0x2804c6=_0x4bc0a9['createTableWalker'](_0x343765,{'startRow':_0x4fbf04,'endRow':_0x4fbf04,'includeAllSlots':!0x0});_0x31eb95=Array['from'](_0x2804c6)['map'](_0x2e1bb8=>_0x2e1bb8['cell']);}else{const _0x5e34ad=_0x4bc0a9['createTableWalker'](_0x343765,{'column':_0xcc9e54,'includeAllSlots':!0x0});_0x31eb95=Array['from'](_0x5e34ad)['map'](_0xc7d382=>_0xc7d382['cell']);}_0x1de40e['model']['change'](_0x57c0f5=>{_0x4f8145['markBlockFormat'](_0x57c0f5['createRangeOn'](_0x272c13),{'commandName':_0x6b4a3,'commandParams':[]},_0x31eb95,_0x6b4a3);});});}_0x4f8145['descriptionFactory']['registerDescriptionCallback'](_0xb98072=>{if('formatBlock'!=_0xb98072['type']&&'formatInline'!=_0xb98072['type'])return;const {data:_0x1088a5}=_0xb98072;return _0x1088a5&&'mergeTableCells'==_0x1088a5['commandName']?{'type':'format','content':c(_0x6bcb9f,'*Merge\x20cells*')}:void 0x0;}),_0x4f8145['descriptionFactory']['registerDescriptionCallback'](_0x15191d=>{if('formatBlock'!=_0x15191d['type']&&'formatInline'!=_0x15191d['type'])return;const {data:_0x109973}=_0x15191d;return _0x109973?'splitTableCellVertically'==_0x109973['commandName']?{'type':'format','content':c(_0x6bcb9f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x109973['commandName']?{'type':'format','content':c(_0x6bcb9f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x179abd=_0x63a8fd['_acceptFormatSuggestionCallbackFactory']();for(const _0x329128 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4f8145['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x329128,'accept',_0x179abd);for(const _0x3667ab of['splitTableCellVertically','splitTableCellHorizontally'])_0x4f8145['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3667ab,'accept',_0x179abd);_0x4f8145['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f24e8=>{_0x1de40e['model']['change'](_0x1c421e=>{const _0x113fd6=Array['from'](_0x453ec2['getRanges']())['map'](_0x486f43=>_0xc48f37['fromRange'](_0x486f43));_0x1c421e['setSelection'](_0x4f24e8),_0x1de40e['commands']['get']('mergeTableCells')['refresh'](),_0x1de40e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x46dcf0=_0x113fd6['filter'](_0x3fa2b6=>'$graveyard'!=_0x3fa2b6['root']['rootName']);_0x46dcf0['length']>0x0&&_0x1c421e['setSelection'](_0x46dcf0);for(const _0x5603c3 of _0x113fd6)_0x5603c3['detach']();});});for(const _0x432197 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1854d9=_0x1de40e['commands']['get'](_0x432197);_0x1854d9['on']('set:isEnabled',(_0x5bd6be,_0x47c0b1,_0x233118)=>{if(_0x233118){const _0xa63f5c=_0x1de40e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf4f65a=>_0xf4f65a['is']('element','tableCell'));this['_areMergableCells'](_0x1854d9['value'],_0xa63f5c)||(_0x5bd6be['return']=!0x1,_0x5bd6be['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1da63b=this['editor']['commands']['get']('mergeTableCells'),_0x5aaa04=this['editor']['plugins']['get']('TableUtils');if(!_0x1da63b['isEnabled'])return!0x1;const _0x4bb7f5=_0x5aaa04['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x303979 of _0x4bb7f5)for(const _0x49e0b3 of _0x4bb7f5)if(_0x303979!=_0x49e0b3&&!this['_areMergableCells'](_0x303979,_0x49e0b3))return!0x1;return!0x0;}['_areMergableCells'](_0x22a555,_0x33c6b9){const _0x21db14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11ea0b=this['editor']['model']['createRangeOn'](_0x22a555),_0x362bdc=this['editor']['model']['createRangeOn'](_0x33c6b9),_0x5ebd8b=new Set(),_0x18a30b=new Set();for(const _0x11bfdd of _0x21db14['getSuggestions']())if(('insertion'==_0x11bfdd['type']||'deletion'==_0x11bfdd['type']||'mergeTableCells'==_0x11bfdd['subType'])&&_0x11bfdd['isInContent']){for(const _0x1fd2e1 of _0x11bfdd['getRanges']())_0x1fd2e1['containsRange'](_0x11ea0b,!0x0)&&_0x5ebd8b['add'](_0x11bfdd['type']+':'+_0x11bfdd['author']['id']),_0x1fd2e1['containsRange'](_0x362bdc,!0x0)&&_0x18a30b['add'](_0x11bfdd['type']+':'+_0x11bfdd['author']['id']);}if(_0x5ebd8b['size']!=_0x18a30b['size'])return!0x1;for(const _0x4f99e8 of _0x5ebd8b)if(!_0x18a30b['has'](_0x4f99e8))return!0x1;return!0x0;}}class Dt extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x2ab237=this['editor'];if(!_0x2ab237['plugins']['has']('TableEditing'))return;const _0x132669=_0x2ab237['locale'],_0x34f2e0=_0x2ab237['plugins']['get']('TrackChangesEditing');_0x34f2e0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x34f2e0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x34f2e0['registerBlockAttribute']('headingRows'),_0x34f2e0['registerBlockAttribute']('headingColumns'),_0x34f2e0['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x132669,'FORMAT_HEADER_ROW')),_0x34f2e0['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x132669,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48d55f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414c3d=this['editor']['plugins']['get']('TableUtils'),_0x539f74=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5169cb({showActiveMarker:_0x13cd35=!0x0,setDataAttribute:_0x1032ed=!0x0}={}){return(_0x230e78,_0x14a819,_0x25b13c)=>{const {type:_0x5c1184,id:_0x50f3aa}=_0x48d55f['_splitMarkerName'](_0x14a819['markerName']),_0x26ca0d=_0x48d55f['getSuggestion'](_0x50f3aa),_0x52ba74=_0x26ca0d['data'];if('formatBlock'!=_0x26ca0d['type']||!_0x52ba74||'setTableColumnHeader'!=_0x52ba74['commandName'])return;if(_0x14a819['item'])return void _0x230e78['stop']();if(!_0x25b13c['consumable']['consume'](_0x14a819['markerRange'],_0x230e78['name']))return;const _0x5f45c9=_0x14a819['markerRange']['start']['nodeAfter'],_0x1d0e1e=_0x14a819['markerRange']['end']['nodeBefore'],_0xc11180=_0x5f45c9['parent']['parent'],{column:_0x51bcae}=_0x414c3d['getCellLocation'](_0x5f45c9),{column:_0x1ba70e}=_0x414c3d['getCellLocation'](_0x1d0e1e);for(let _0x1df12e=_0x51bcae;_0x1df12e<=_0x1ba70e;_0x1df12e++){const _0x32499c=_0x414c3d['createTableWalker'](_0xc11180,{'column':_0x1df12e,'includeAllSlots':!0x1});for(const _0x2a626f of _0x32499c){const _0x24cab1=_0x2a626f['cell'],_0x2cbbd4=_0x25b13c['mapper']['toViewElement'](_0x24cab1);_0x25b13c['writer']['addClass']('ck-suggestion-marker-'+_0x5c1184,_0x2cbbd4),_0x1032ed&&_0x25b13c['writer']['setAttribute']('data-suggestion',_0x50f3aa,_0x2cbbd4),_0x25b13c['mapper']['bindElementToMarker'](_0x2cbbd4,_0x14a819['markerName']),_0x13cd35&&(_0x48d55f['activeMarkers']['includes'](_0x14a819['markerName'])?_0x25b13c['writer']['addClass']('ck-suggestion-marker--active',_0x2cbbd4):_0x25b13c['writer']['removeClass']('ck-suggestion-marker--active',_0x2cbbd4));}}};}_0x48d55f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x539f74),_0x48d55f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x539f74),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5169cb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4fffb8,_0x5136e4,_0x47d59c)=>{_0x47d59c['options']['showSuggestionHighlights']&&_0x5169cb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4fffb8,_0x5136e4,_0x47d59c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x56af29,_0x5063c2,_0x35f2d1)=>{const {type:_0x2ab463,id:_0x231727}=_0x48d55f['_splitMarkerName'](_0x5063c2['markerName']),_0x502ef9=_0x48d55f['getSuggestion'](_0x231727),_0x8cc0a=_0x502ef9['data'];if('formatBlock'!=_0x502ef9['type']||!_0x8cc0a||'setTableColumnHeader'!=_0x8cc0a['commandName'])return;const _0x3ecd3d=_0x35f2d1['mapper']['markerNameToElements'](_0x5063c2['markerName']);if(_0x3ecd3d){for(const _0x4dc3bf of _0x3ecd3d)_0x35f2d1['writer']['removeClass']('ck-suggestion-marker-'+_0x2ab463,_0x4dc3bf),_0x35f2d1['writer']['removeClass']('ck-suggestion-marker--active',_0x4dc3bf),_0x35f2d1['writer']['removeAttribute']('data-suggestion',_0x4dc3bf),_0x35f2d1['mapper']['unbindElementFromMarkerName'](_0x4dc3bf,_0x5063c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd9d98=this['editor'],_0x2bab7c=_0xd9d98['locale'];function _0x1233f4(_0x5ae0a1){return{'type':'format','content':c(_0x2bab7c,'*Format:*\x20%0',_0x5ae0a1)};}_0xd9d98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xad44de=>{if('formatBlock'!=_0xad44de['type'])return;const {data:_0x2f80f0}=_0xad44de;if(_0x2f80f0){if('setTableRowHeader'==_0x2f80f0['commandName']){const _0x44a1cd=_0x2f80f0['commandParams'][0x0]['forceValue'];return _0x1233f4(c(_0x2bab7c,_0x44a1cd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2f80f0['commandName']){const _0x15b2a8=_0x2f80f0['commandParams'][0x0]['forceValue'];return _0x1233f4(c(_0x2bab7c,_0x15b2a8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x3ff648{['afterInit'](){const _0x4c8788=this['editor'],_0x213f1b=_0x4c8788['locale'],_0x10f3ce=_0x4c8788['plugins']['get']('TrackChangesEditing');function _0x1cd4a1(_0x4ed8e3){return{'type':'format','content':''+c(_0x213f1b,'*Set\x20table\x20type:*\x20%0',_0x4ed8e3)};}_0x4c8788['plugins']['has']('TableLayout')&&(_0x10f3ce['enableCommand']('insertTableLayout'),_0x10f3ce['enableDefaultAttributesIntegration']('tableType'),_0x10f3ce['registerBlockAttribute']('tableType'),_0x10f3ce['descriptionFactory']['registerElementLabel'](_0x1749b2=>_0x1749b2['is']('element','table')&&'layout'===_0x1749b2['getAttribute']('tableType'),_0x6e88f3=>c(_0x213f1b,'ELEMENT_LAYOUT_TABLE',_0x6e88f3)),_0x10f3ce['descriptionFactory']['registerDescriptionCallback'](_0x32a167=>{const {data:_0x2b5bfb}=_0x32a167;if(_0x2b5bfb&&'tableType'==_0x2b5bfb['key'])switch(_0x2b5bfb['newValue']){case'layout':return _0x1cd4a1(c(_0x213f1b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1cd4a1(c(_0x213f1b,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x2698bb=>[_0x2698bb,null]));class $t extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x860bb5=this['editor'];if(!_0x860bb5['plugins']['has']('TableClipboard'))return;const _0x45d72d=_0x860bb5['plugins']['get']('TrackChangesEditing'),_0x1dc0d2=_0x860bb5['plugins']['get']('TableUtils'),_0x19a66d=_0x860bb5['plugins']['get'](Ct),_0x1a0893=_0x860bb5['plugins']['get']('TableClipboard'),_0xe4800f=_0x860bb5['plugins']['get']('TableSelection'),_0x3d2068=_0x860bb5['plugins']['get'](_0x2c909b);_0x19a66d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x860bb5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x860bb5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x45338c=null,_0xba80d7=!0x1;_0x3d2068['on']('contentInsertion',(_0x397a9a,_0x168a73)=>{_0xba80d7='paste'===_0x168a73['method'];}),_0x860bb5['model']['on']('insertContent',(_0x51968d,_0x49dbde)=>{if(!_0xba80d7&&null===_0xe4800f['getSelectedTableCells']())return;const [_0x3d09d5,_0x288e48]=_0x49dbde,_0x1b1327=_0x49dbde[_0x49dbde['length']-0x1];_0x1b1327&&_0x1b1327['forceDefaultExecution']||_0x45d72d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xaf83d,_0x1d15bb,_0x309109,_0x9ce5f4,_0x279a55){if(_0x1d15bb&&!_0x1d15bb['is']('documentSelection'))return!0x1;const _0xeefc5c=_0x279a55['getTableIfOnlyTableInContent'](_0xaf83d,_0x309109);if(!_0xeefc5c||!He(_0xeefc5c,void 0x0,_0x9ce5f4))return!0x1;const _0x6cdd24=_0x9ce5f4['getSelectionAffectedTableCells'](_0x309109['document']['selection']);if(!_0x6cdd24['length'])return!0x1;const _0x42e592=_0x6cdd24[0x0]['findAncestor']('table'),_0x564584=_0x9ce5f4['getRowIndexes'](_0x6cdd24),_0x4a6526=_0x9ce5f4['getColumnIndexes'](_0x6cdd24),_0x401f1f={'startRow':_0x564584['first'],'endRow':_0x564584['last'],'startColumn':_0x4a6526['first'],'endColumn':_0x4a6526['last']};return 0x1==_0x6cdd24['length']&&(_0x401f1f['endRow']+=_0x9ce5f4['getRows'](_0xeefc5c)-0x1,_0x401f1f['endColumn']+=_0x9ce5f4['getColumns'](_0xeefc5c)-0x1),He(_0x42e592,_0x401f1f,_0x9ce5f4);}(_0x3d09d5,_0x288e48,_0x860bb5['model'],_0x1dc0d2,_0x1a0893)&&(_0x51968d['stop'](),_0x45338c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x860bb5['model']['change'](()=>{_0x860bb5['model']['insertContent'](_0x49dbde[0x0],_0x49dbde[0x1],_0x49dbde[0x2],{'forceDefaultExecution':!0x0});const _0x1e267e=_0x65b9b5(),{rowInsertionRanges:_0x20b831,columnInsertionRanges:_0x5a2890,insertionRanges:_0x313f97,deletionRanges:_0xc5e25e,cells:_0x1da548}=_0x45338c;_0x20b831['length']&&_0x45d72d['markMultiRangeInsertion'](_0x20b831,'tablePasteRow',{'tablePasteChainId':_0x1e267e}),_0x5a2890['length']&&_0x45d72d['markMultiRangeInsertion'](_0x5a2890,'tablePasteColumn',{'tablePasteChainId':_0x1e267e}),_0x313f97['length']&&(_0x45d72d['markMultiRangeInsertion'](_0x313f97,'tablePaste',{'tablePasteChainId':_0x1e267e,'skipNestingCheck':!0x0}),_0x313f97['forEach'](_0x438641=>_0x438641['detach']?.())),_0xc5e25e['length']&&(_0x45d72d['markMultiRangeDeletion'](_0xc5e25e,'tablePaste',{'tablePasteChainId':_0x1e267e,'skipNestingCheck':!0x0}),_0xc5e25e['forEach'](_0x41d3f7=>_0x41d3f7['detach']?.()));const _0x7fa8bf=_0x45d72d['markMultiRangeBlockFormat'](_0x1da548['map'](({element:_0x4d3e2d})=>_0x4d3e2d),{'formatGroupId':_0x65b9b5()},[],'tablePasteCell',{'tablePasteChainId':_0x1e267e});if(_0x7fa8bf){const _0x463342=_0x7fa8bf['getMarkers'](),_0x25d43a=[];for(const {element:_0x4e1e08,attributes:_0x5d9a72}of _0x1da548){if(!_0x5d9a72)continue;const _0x1f2256=_0x860bb5['model']['createRangeOn'](_0x4e1e08),_0x573d61=_0x463342['find'](_0x4817f5=>_0x4817f5['getRange']()['isEqual'](_0x1f2256));_0x573d61&&_0x25d43a['push']([_0x573d61['name'],_0x5d9a72]);}_0x25d43a['length']&&_0x7fa8bf['setAttribute']('markerAttributes',Object['fromEntries'](_0x25d43a));}_0x45338c=null;}));},{'priority':_0x1fc7e0['high']+0xa}),_0x3d2068['on']('contentInsertion',()=>{_0xba80d7=!0x1;},{'priority':'lowest'}),_0x860bb5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f329c,_0xa68621)=>{const [_0x4d0021,_0x38eee5,,_0x49594d]=_0xa68621;if(!_0x45338c)return;_0x3f329c['stop']();const _0x1dc390=_0x4d0021['cell'],_0x295d8e=_0x38eee5,_0x38f7e5=De(_0x1dc390),_0x3459d1=De(_0x295d8e);_0x3f329c['return']=_0x1dc390;let _0x14a886=null,_0x4ecf00=null;if(_0x3459d1||_0x38f7e5){if(_0x38f7e5&&!_0x3459d1){_0x49594d['remove'](_0x1dc390['getChild'](0x0));for(const _0x5bf02f of Array['from'](_0x295d8e['getChildren']()))_0x49594d['insert'](_0x5bf02f,_0x1dc390,'end');const _0x10a75d=_0x45338c['rowInsertionIndexes']['includes'](_0x4d0021['row']),_0x103bee=_0x45338c['columnInsertionIndexes']['includes'](_0x4d0021['column']);_0x10a75d||_0x103bee||(_0x14a886=_0xc48f37['fromRange'](_0x49594d['createRangeIn'](_0x1dc390)));}else _0x3459d1&&!_0x38f7e5&&(_0x4ecf00=_0x49594d['createRangeIn'](_0x1dc390));}else{const _0x52cf=_0x49594d['createElement']('tableCellSuggestion'),_0x80bf33=_0x49594d['createElement']('tableCellSuggestion');_0x49594d['wrap'](_0x49594d['createRangeIn'](_0x1dc390),_0x80bf33),_0x49594d['insert'](_0x52cf,_0x1dc390,0x0);for(const _0x4d4e3a of Array['from'](_0x295d8e['getChildren']()))_0x49594d['insert'](_0x4d4e3a,_0x52cf,'end');_0x14a886=_0xc48f37['fromRange'](_0x49594d['createRangeOn'](_0x52cf)),_0x4ecf00=_0xc48f37['fromRange'](_0x49594d['createRangeOn'](_0x80bf33));}const _0x192770=Array['from'](_0x295d8e['getAttributes']())['filter'](([_0x4208bb])=>Oe['includes'](_0x4208bb));_0x45338c['cells']['push']({'element':_0x1dc390,'attributes':_0x192770['length']?Object['fromEntries'](_0x192770):null}),_0x14a886&&_0x45338c['insertionRanges']['push'](_0x14a886),_0x4ecf00&&_0x45338c['deletionRanges']['push'](_0x4ecf00);},{'priority':'high'}),_0x1dc0d2['on']('insertColumns',(_0x30882c,_0x16a6ce)=>{const [_0x52d839,_0x3db6fc={}]=_0x16a6ce;if(!_0x45338c)return;const _0x41d2f4=_0x3db6fc['at']||0x0,_0x522275=_0x3db6fc['columns']||0x1;_0x45338c['columnInsertionIndexes']=new Array(_0x522275)['fill'](_0x41d2f4)['map']((_0x198c5a,_0x146718)=>_0x198c5a+_0x146718);for(const {cell:_0x5937cf}of _0x1dc0d2['createTableWalker'](_0x52d839,{'startColumn':_0x41d2f4,'endColumn':_0x41d2f4+_0x522275-0x1}))_0x45338c['columnInsertionRanges']['push'](_0x860bb5['model']['createRangeOn'](_0x5937cf));},{'priority':'low'}),_0x1dc0d2['on']('insertRows',(_0x3917cc,_0x4b247a)=>{const [_0x5ab15a,_0xb7d6d0={}]=_0x4b247a;if(!_0x45338c)return;const _0x4f90bc=_0xb7d6d0['at']||0x0,_0x58d58b=_0xb7d6d0['rows']||0x1;_0x45338c['rowInsertionIndexes']=new Array(_0x58d58b)['fill'](_0x4f90bc)['map']((_0x235209,_0x59fef4)=>_0x235209+_0x59fef4);for(const {cell:_0x2936f3}of _0x1dc0d2['createTableWalker'](_0x5ab15a,{'startRow':_0x4f90bc,'endRow':_0x4f90bc+_0x58d58b-0x1}))_0x45338c['rowInsertionRanges']['push'](_0x860bb5['model']['createRangeOn'](_0x2936f3));},{'priority':'low'}),_0x45d72d['descriptionFactory']['registerDescriptionCallback'](_0x261d8f=>{if(_0x261d8f['subType']&&_0x261d8f['subType']['startsWith']('tablePaste'))return _0x261d8f['previous']?{}:{'type':'insertion','content':c(_0x860bb5['locale'],'*Replace\x20table\x20cells*')};});const _0xf5e6bf=()=>!0x1;for(const _0x14ad5e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x45d72d['_suggestionFactory']['registerCustomCallback']('insertion',_0x14ad5e,'join',_0xf5e6bf),_0x45d72d['_suggestionFactory']['registerCustomCallback']('deletion',_0x14ad5e,'join',_0xf5e6bf),_0x45d72d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14ad5e,'join',_0xf5e6bf);_0x45d72d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf5e6bf),_0x45d72d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5092db,_0x2b437e,_0x3212c9)=>{const _0x5813fe=_0x5092db['map'](_0xc99875=>_0xc99875['getContainedElement']())['filter'](_0x342f98=>_0x342f98),_0x16b27d=new Map(_0x5813fe['map'](_0x5d605b=>[_0x5d605b,null]));if(_0x45338c){for(const {element:_0x1e750a,attributes:_0x3ba4fd}of _0x45338c['cells'])_0x3ba4fd&&_0x16b27d['set'](_0x1e750a,_0x3ba4fd);}else{if(_0x3212c9&&_0x3212c9['markerAttributes'])for(const [_0x50dc20,_0x536475]of Object['entries'](_0x3212c9['markerAttributes'])){const _0x547934=_0x860bb5['model']['markers']['get'](_0x50dc20),_0x5cf4c9=_0x547934?_0x547934['getRange']()['getContainedElement']():null;_0x5cf4c9&&_0x16b27d['set'](_0x5cf4c9,_0x536475);}}_0x860bb5['model']['change'](_0x529414=>{for(const [_0x4741a5,_0x1e59c1]of _0x16b27d)_0x529414['setAttributes']({...Ue,..._0x1e59c1},_0x4741a5);});});const _0x19d5a7=(_0x51ae00,_0x22a37c)=>{_0x45d72d['_suggestionFactory']['registerCustomCallback'](_0x51ae00,'tablePaste',_0x22a37c,(_0xd802c5,_0x2ff198,_0x317f69)=>{_0x860bb5['model']['change'](_0x591a58=>{const _0x5ebd04=[];for(const _0x3028fa of _0xd802c5){const _0x2e9f00=_0x3028fa['start']['nodeAfter'];_0x2e9f00['is']('element','tableCellSuggestion')&&_0x5ebd04['push'](_0x2e9f00);}_0x45d72d['_suggestionFactory']['getSuggestionCallback'](_0x51ae00,null,_0x22a37c)(_0xd802c5,_0x2ff198,_0x317f69);for(const _0x52d119 of _0x5ebd04)'$graveyard'!=_0x52d119['root']['rootName']&&_0x591a58['unwrap'](_0x52d119);});});};_0x19d5a7('insertion','accept'),_0x19d5a7('insertion','discard'),_0x19d5a7('deletion','accept'),_0x19d5a7('deletion','discard'),_0x45d72d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x52ab45=>{const _0x53f646=_0x52ab45['map'](_0x30b55f=>_0x30b55f['getContainedElement']()),_0x5161a6=_0x53f646[0x0]['findAncestor']('table'),{minRow:_0x152ddb,maxRow:_0x15c232}=_0x19a66d['_getCoordsForCells'](_0x53f646);_0x1dc0d2['removeRows'](_0x5161a6,{'at':_0x152ddb,'rows':_0x15c232-_0x152ddb+0x1});}),_0x45d72d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5388bc=>{const _0xeb0f88=_0x5388bc['map'](_0x46c1da=>_0x46c1da['getContainedElement']()),_0x839110=_0xeb0f88[0x0]['findAncestor']('table'),{minColumn:_0x1bf488,maxColumn:_0x238c4b}=_0x19a66d['_getCoordsForCells'](_0xeb0f88);_0x1dc0d2['removeColumns'](_0x839110,{'at':_0x1bf488,'columns':_0x238c4b-_0x1bf488+0x1});});const _0x2de46e=(_0x2bf170,_0x102146)=>{if(!_0x102146['subType']||!_0x102146['subType']['startsWith']('tablePaste'))return;const _0x34a380=_0x102146['attributes']['tablePasteChainId'],_0x3ebe3c=_0x45d72d['getSuggestions']()['filter'](_0x3fd88a=>_0x3fd88a['isInContent']&&_0x3fd88a['attributes']&&_0x3fd88a['attributes']['tablePasteChainId']==_0x34a380);_0x3ebe3c['length']&&_0x102146['getAllAdjacentSuggestions']()['length']!=_0x3ebe3c['length']&&_0x3ebe3c['reduce']((_0x5cd7cf,_0x3df6c4)=>(_0x5cd7cf['next']=_0x3df6c4,_0x3df6c4['previous']=_0x5cd7cf,_0x3df6c4));};function _0x50994c(_0x184ff2,_0x26f63e=!0x0){const {id:_0x1d4ece,authorId:_0x1b4be3}=_0x45d72d['_splitMarkerName'](_0x184ff2['markerName']),_0x40fb22=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x47eeb1=_0x45d72d['activeMarkers']['includes'](_0x184ff2['markerName']);return _0x47eeb1&&_0x40fb22['push']('ck-suggestion-marker--active'),{'classes':_0x40fb22,'attributes':{'data-suggestion':_0x1d4ece,'data-author-id':_0x1b4be3},'priority':_0x47eeb1&&_0x26f63e?0xbc2:0xbb8};}_0x45d72d['on']('suggestionLoaded',_0x2de46e,{'priority':'high'}),_0x45d72d['on']('suggestionUnloaded',_0x2de46e,{'priority':'high'}),_0x860bb5['model']['document']['registerPostFixer'](()=>{let _0x4f6101=!0x1;const _0x552671=Array['from'](_0x860bb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4532f9,data:_0x20969e}of _0x552671){const {group:_0x19cdf4,type:_0x5ea96a,id:_0xa0e9c9}=_0x45d72d['_splitMarkerName'](_0x4532f9);if('suggestion'!=_0x19cdf4||'deletion'!=_0x5ea96a||_0x20969e['oldRange'])continue;if(!_0x45d72d['hasSuggestion'](_0xa0e9c9))continue;const _0x13160a=_0x45d72d['getSuggestion'](_0xa0e9c9)['getRanges'](),_0x3e7854=_0x860bb5['plugins']['get']('Users')['me'];for(const _0x4e7bff of _0x45d72d['getSuggestions']()){if(!_0x4e7bff['isInContent']||_0x4e7bff['author']!=_0x3e7854)continue;if('formatBlock'!=_0x4e7bff['type']||'tablePasteCell'!=_0x4e7bff['subType'])continue;if(_0x4e7bff['getRanges']()['every'](_0x3b5636=>_0x13160a['some'](_0x49ff37=>_0x49ff37['containsRange'](_0x3b5636,!0x0)))){for(const _0x141dff of _0x4e7bff['getAllAdjacentSuggestions']())_0x141dff['isInContent']&&(_0x141dff['discard'](),_0x4f6101=!0x0);}}}return _0x4f6101;}),_0x860bb5['model']['document']['registerPostFixer'](_0x46f5ac=>{const _0xf40064=_0x860bb5['commands']['get']('redo');if(!_0xf40064||!_0xf40064['_createdBatches']['has'](_0x46f5ac['batch']))return!0x1;let _0x4b111f=!0x1;const _0x5462c6=_0x860bb5['plugins']['get']('Users')['me'],_0x32c551=_0x860bb5['model']['document']['differ']['getChanges'](),_0x6c6d3f=Array['from'](_0x860bb5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x392ff2,data:_0x3c745e})=>{const {group:_0x4e295a,subType:_0x461359,authorId:_0x20ae92}=_0x45d72d['_splitMarkerName'](_0x392ff2);return'suggestion'==_0x4e295a&&'tablePaste'==_0x461359&&_0x20ae92==_0x5462c6['id']&&!_0x3c745e['oldRange'];});for(const _0x3caa4c of _0x32c551){if('insert'!=_0x3caa4c['type']||'tableCellSuggestion'!=_0x3caa4c['name']||0x1!=_0x3caa4c['length'])continue;const _0x43ec68=_0x46f5ac['createRange'](_0x3caa4c['position'],_0x3caa4c['position']['getShiftedBy'](0x1));if(!_0x6c6d3f['find'](({data:_0x1bee9b})=>_0x1bee9b['newRange']['isEqual'](_0x43ec68))){for(const {name:_0x15bf1c,data:_0x32dfc6}of _0x6c6d3f)if(_0x43ec68['containsRange'](_0x32dfc6['newRange'])){_0x46f5ac['updateMarker'](_0x15bf1c,{'range':_0x43ec68}),_0x4b111f=!0x0;break;}}}return _0x4b111f;}),_0x860bb5['model']['document']['registerPostFixer'](_0x4f33df=>{let _0x30e45f=!0x1;const _0x530610=_0x860bb5['plugins']['get']('Users')['me'],_0x4b3a80=_0x45d72d['getSuggestions']()['filter'](_0x166c60=>_0x166c60['isInContent']&&_0x166c60['author']==_0x530610),_0x31479d=new Set(),_0x28521d=new Set();for(const _0x52b602 of _0x4b3a80)if('tablePaste'==_0x52b602['subType'])for(const _0xacffc2 of _0x52b602['getMarkers']()){const _0x1fe45e=_0xacffc2['getRange']()['getContainedElement']();if(_0x1fe45e){if(_0x1fe45e['is']('element','tableCellSuggestion')&&De(_0x1fe45e)){_0x52b602['removeMarker'](_0xacffc2['name']),_0x31479d['add'](_0x1fe45e),_0x30e45f=!0x0;const _0x24e1e7=_0x1fe45e['nextSibling'],_0x26ccb8=_0x1fe45e['previousSibling'],_0x5bdb64=_0x24e1e7&&_0x24e1e7['is']('element','tableCellSuggestion'),_0x404373=_0x26ccb8&&_0x26ccb8['is']('element','tableCellSuggestion');_0x5bdb64&&!_0x31479d['has'](_0x24e1e7)&&_0x28521d['add'](_0x24e1e7),_0x404373&&!_0x31479d['has'](_0x26ccb8)&&_0x28521d['add'](_0x26ccb8);}else _0x1fe45e['is']('element','paragraph')&&_0x1fe45e['isEmpty']&&(_0x52b602['removeMarker'](_0xacffc2['name']),_0x30e45f=!0x0);}}else{if('tablePasteCell'==_0x52b602['subType']){if(!_0x52b602['attributes']||!_0x52b602['attributes']['tablePasteChainId'])continue;const _0x1bc2c5=_0x52b602['attributes']['markerAttributes'];if(_0x1bc2c5&&Object['keys'](_0x1bc2c5)['length'])continue;const _0x549ce5=_0x52b602['attributes']['tablePasteChainId'];let _0x5b857c=!0x0,_0x31d184=!0x0;for(const _0x3a758b of _0x4b3a80)if(_0x3a758b['subType']&&_0x3a758b['subType']['startsWith']('tablePaste')){if(!_0x3a758b['attributes']['tablePasteChainId']){_0x31d184=!0x1;break;}if(_0x3a758b['id']!=_0x52b602['id']&&_0x3a758b['attributes']['tablePasteChainId']==_0x549ce5){_0x5b857c=!0x1;break;}}_0x31d184&&_0x5b857c&&(_0x52b602['removeMarkers'](),_0x30e45f=!0x0);}}for(const _0x483804 of _0x31479d)_0x4f33df['remove'](_0x483804);for(const _0x4cfea1 of _0x28521d)_0x4f33df['unwrap'](_0x4cfea1);return _0x30e45f;}),_0x860bb5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1c6ff1=>_0x50994c(_0x1c6ff1),'converterPriority':'high'}),_0x860bb5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e3123,_0x30f30d)=>_0x30f30d['options']['showSuggestionHighlights']?_0x50994c(_0x4e3123,!0x1):null,'converterPriority':'high'});const _0x3f055a=_0x860bb5['editing']['view'];this['listenTo'](_0x3f055a['document'],'clipboardOutput',(_0x7b1c5d,_0x1a77aa)=>{const _0x31df5f=[];for(const _0x5a77da of _0x3f055a['createRangeIn'](_0x1a77aa['content'])['getItems']())_0x5a77da['is']('element','suggestion-td')&&_0x31df5f['push'](_0x5a77da);_0x3f055a['change'](_0x52ee5a=>{for(const _0x58404a of _0x31df5f)_0x52ee5a['move'](_0x52ee5a['createRangeIn'](_0x58404a),_0x52ee5a['createPositionBefore'](_0x58404a)),_0x52ee5a['remove'](_0x58404a);});});}}function De(_0xf5d7ec){if(_0xf5d7ec['isEmpty'])return!0x0;const _0x27242a=_0xf5d7ec['getChild'](0x0);return _0x27242a['is']('element','paragraph')&&_0x27242a['isEmpty'];}function He(_0x593350,_0x23769d={},_0x276cd2){for(const {isAnchor:_0x1c3f23,cellHeight:_0x3f1d8d,cellWidth:_0x5f40fb}of _0x276cd2['createTableWalker'](_0x593350,{'includeAllSlots':!0x0,..._0x23769d}))if(!_0x1c3f23||0x1!=_0x3f1d8d||0x1!=_0x5f40fb)return!0x1;return!0x0;}class Bt extends _0x3ff648{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x161148=this['editor']['plugins']['get']('TrackChangesEditing');_0x161148['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x161148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x161148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x161148['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x161148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x161148['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x545f3f,_0x5cfea1){const _0x39dadf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47f4ee=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ce4b7=_0x5cfea1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7dff15=_0x47f4ee['getColumnGroupElement'](_0x5ce4b7);let _0x2fd8b3=_0x7dff15?_0x47f4ee['getTableColumnsWidths'](_0x7dff15):null,_0x28909b=_0x5ce4b7['getAttribute']('tableWidth')||null;const _0x99c0ef=_0x5cfea1['tableWidth']||_0x28909b,_0x5a1fa0=_0x5cfea1['columnWidths']||_0x2fd8b3,_0x36b512=this['editor']['plugins']['get']('Users')['me'];for(const _0x145ac1 of _0x39dadf['getSuggestions']()){const _0x2280f7=_0x145ac1['getContainedElement']();if('resizeTable'===_0x145ac1['subType']&&_0x2280f7===_0x5ce4b7){_0x145ac1['author']!==_0x36b512&&_0x145ac1['discard']();const _0x25d513=_0x145ac1['data']['commandParams'];_0x28909b=_0x25d513[0x0]['tableWidth'],_0x2fd8b3=_0x25d513[0x0]['columnWidths'];break;}}_0x545f3f({'table':_0x5ce4b7,'tableWidth':_0x99c0ef,'columnWidths':_0x5a1fa0}),_0x39dadf['markBlockFormat'](_0x5ce4b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x28909b,'columnWidths':_0x2fd8b3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1b408d){if('formatBlock'!=_0x1b408d['type']&&'formatInline'!=_0x1b408d['type'])return;const {data:_0xfb67c6}=_0x1b408d;if(_0xfb67c6&&'resizeTable'===_0xfb67c6['formatGroupId']){const _0x153233='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x153233)};}}}class xt extends _0x3ff648{['afterInit'](){const _0x3d9468=this['editor'];_0x3d9468['plugins']['has']('Template')&&_0x3d9468['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3ff648{['afterInit'](){const _0x65f88a=this['editor'];if(!_0x65f88a['commands']['get']('insertTableOfContents'))return;_0x65f88a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7ba23a=_0x65f88a['plugins']['get']('TrackChangesEditing'),_0x47b626=_0x65f88a['locale'];_0x7ba23a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53dfba=>c(_0x47b626,'ELEMENT_TABLE_OF_CONTENTS',_0x53dfba));}}class Rt extends _0x3ff648{['afterInit'](){const _0x5f6bd8=this['editor'];if(!_0x5f6bd8['plugins']['has']('Title'))return;const _0x56909d=_0x5f6bd8['plugins']['get']('TrackChangesEditing');_0x56909d['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5f6bd8['locale'],'ELEMENT_TITLE')),_0x5f6bd8['model']['document']['registerPostFixer'](_0x2bfa2b=>{let _0x3a5d48=!0x1;const _0x30e5cc=Array['from'](_0x5f6bd8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bcd63,data:_0x5b3d57}of _0x30e5cc){const {group:_0x148681}=_0x56909d['_splitMarkerName'](_0x2bcd63);if('suggestion'!==_0x148681||!_0x5b3d57['newRange'])continue;const _0x2c3302=_0x5b3d57['newRange'],_0x15b54c=_0x2c3302['end']['nodeBefore'];if(!_0x15b54c||!_0x15b54c['is']('element','title-content'))continue;if(!_0x2c3302['start']['isTouching'](_0x2c3302['end']))continue;const _0x4bc3f2=_0x5f6bd8['model']['schema']['getNearestSelectionRange'](_0x2c3302['end'],'forward');if(_0x4bc3f2&&_0x4bc3f2['isCollapsed']){const _0x1efe2d=_0x2bfa2b['createRange'](_0x2c3302['start'],_0x4bc3f2['start']);_0x1efe2d['isEqual'](_0x2c3302)||(_0x2bfa2b['updateMarker'](_0x2bcd63,{'range':_0x1efe2d}),_0x3a5d48=!0x0);}_0x3a5d48||(_0x2bfa2b['removeMarker'](_0x2bcd63),_0x3a5d48=!0x0);}return _0x3a5d48;});}}class Tt extends _0x3ff648{['afterInit'](){const _0x2e02ce=this['editor'],_0x3a877e=_0x2e02ce['plugins']['get']('TrackChangesEditing');_0x2e02ce['plugins']['has']('Uploadcare')&&(_0x3a877e['enableCommand']('uploadcare'),_0x2e02ce['plugins']['has']('UploadcareImageEdit')&&(_0x3a877e['enableCommand']('uploadcareImageEdit'),_0x3a877e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3a877e['registerBlockAttribute']('uploadcareImageId'),_0x3a877e['descriptionFactory']['registerDescriptionCallback'](_0x5dc9f8=>{if('attribute'!=_0x5dc9f8['type'])return;const {data:_0x348369}=_0x5dc9f8;return _0x348369&&'uploadcareImageId'==_0x348369['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x3ff648{['afterInit'](){const _0x54c9a6=this['editor'],_0x5c9a9a=_0x54c9a6['plugins']['get']('TrackChangesEditing');_0x54c9a6['plugins']['has']('UndoEditing')&&(_0x5c9a9a['enableCommand']('undo'),_0x5c9a9a['enableCommand']('redo'));}}class Ut extends _0x3ff648{static get['requires'](){return[Ct];}['afterInit'](){const _0x193246=this['editor'];if(!_0x193246['plugins']['has']('TableCaptionEditing'))return;_0x193246['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x3ff648{['tableProperties'];['tableCellProperties'];constructor(_0x1cd692){super(_0x1cd692),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5231de=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6acd47 of this['tableProperties'])_0x5231de['enableCommand'](_0x6acd47,(_0x5988c9,_0x8bff1)=>{const _0x42100a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6acd47,[_0x42100a],this['tableProperties'],'tableProperties',_0x5988c9,_0x8bff1);});_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5231de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4fb31e,_0x2acfbf)=>this['handleDiscardAction'](this['tableProperties'],_0x4fb31e,_0x2acfbf)),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x28ffc2 of this['tableCellProperties'])_0x5231de['enableCommand'](_0x28ffc2,(_0x491fb3,_0x349056)=>{const _0x282efe=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x28ffc2,_0x282efe,this['tableCellProperties'],'tableCellProperties',_0x491fb3,_0x349056);});_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5231de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33bee6,_0x13ce05)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33bee6,_0x13ce05)),_0x5231de['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5231de['descriptionFactory']['registerDescriptionCallback'](_0x231d45=>this['handleSuggestionDescription'](_0x231d45));}['_handlePropertyChange'](_0xecb885,_0x1aa89b,_0x334320,_0x237577,_0x559f1,_0x3e0dca){const _0x34a8eb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e0dca['batch'],()=>{for(const _0x5eb49e of _0x1aa89b){if(this['_getSuggestion'](_0x5eb49e,_0x237577))_0x559f1(_0x3e0dca);else{const _0x83833={};for(const _0x444410 of _0x334320){const _0xc106e8=_0x5eb49e['getAttribute'](_0x444410);void 0x0!==_0xc106e8&&(_0x83833[_0x444410]=_0xc106e8);}_0x559f1(_0x3e0dca),_0x34a8eb['markBlockFormat'](_0x5eb49e,{'commandParams':[_0x83833]},[],_0x237577);}}});}['handleDiscardAction'](_0x2bffdd,_0x5f23e3,_0x3b39af){const _0x89f253=_0x5f23e3[0x0]['start']['nodeAfter'],_0x269a53=_0x3b39af['commandParams'][0x0];this['editor']['model']['change'](_0x160e41=>{for(const _0x522547 of _0x2bffdd)void 0x0!==_0x269a53[_0x522547]?_0x160e41['setAttribute'](_0x522547,_0x269a53[_0x522547],_0x89f253):_0x160e41['removeAttribute'](_0x522547,_0x89f253);});}['handleSuggestionDescription'](_0x2c54ac){if(_0x2c54ac['data'])switch(_0x2c54ac['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x42c1d4,_0x26a473){const _0x31a09d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ec972 of _0x31a09d['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ad36f=_0x2ec972['getContainedElement']();if(_0x2ec972['subType']===_0x26a473&&_0x1ad36f===_0x42c1d4)return _0x2ec972;}return null;}}const u='$elementName';class p extends _0x3ff648{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3da637,_0x3e9f68,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb3650){super(_0xeb3650),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xa0a406,_0x44792e,_0x14084e,_0x4dac92)=>{this['_model']['change'](()=>{for(const _0xd0558 of[..._0x4dac92,..._0x14084e])this['_model']['markers']['has'](_0xd0558)&&_0xeb3650['editing']['reconvertMarker'](_0xd0558);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xeb3650['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0xeb3650['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xeb3650['config']['get']('trackChanges.trackFormatChanges'),_0xeb3650['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xeb3650['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xeb3650,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x39d9c2=this['editor'],_0x11837e=(_0x488f88,_0x5f241a)=>{if('attribute'!=_0x488f88)return'ck-suggestion-marker-'+_0x488f88;const _0x355b7e=_0x5f241a['split']('|')[0x0];return this['_isBlockAttribute'](_0x355b7e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x39d9c2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x57af02=>{const {id:_0x1fa66a,authorId:_0x145546,type:_0x98c964,subType:_0x701ccf}=this['_splitMarkerName'](_0x57af02['markerName']),_0x44450d=['ck-suggestion-marker',_0x11837e(_0x98c964,_0x701ccf)];let _0x321b05=0xbb8;return this['activeMarkers']['includes'](_0x57af02['markerName'])&&(_0x44450d['push']('ck-suggestion-marker--active'),_0x321b05=0xbc2),'deletion'==_0x98c964&&(_0x321b05+=0x5),{'classes':_0x44450d,'attributes':{'data-suggestion':_0x1fa66a,'data-author-id':_0x145546},'priority':_0x321b05};}}),_0x39d9c2['conversion']['for']('dataDowncast')['add'](_0x3a6391=>{_0x3a6391['on']('addMarker:suggestion',(_0x3220e1,_0x551202,_0x15351f)=>{if(!_0x15351f['options']['showSuggestionHighlights'])return;const _0x39621f=_0x551202['item'];if(!_0x39621f)return;const _0x49cbe0=_0x15351f['mapper']['toViewElement'](_0x39621f);_0x39d9c2['model']['schema']['isObject'](_0x39621f)&&_0x49cbe0&&!_0x49cbe0['getCustomProperty']('widget')&&_0x49cbe0['is']('containerElement')&&_0x4e4d73(_0x49cbe0,_0x15351f['writer']);},{'priority':'high'});}),_0x39d9c2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2351d7,_0xd3a31c)=>{if(!_0xd3a31c['options']['showSuggestionHighlights'])return null;const {id:_0x116d3b,authorId:_0x45eb10,type:_0x580118,subType:_0x3bd7f6}=this['_splitMarkerName'](_0x2351d7['markerName']);return{'classes':['ck-suggestion-marker',_0x11837e(_0x580118,_0x3bd7f6)],'priority':0xbb8,'attributes':{'data-suggestion':_0x116d3b,'data-author-id':_0x45eb10}};}});const _0x16031a=({showActiveMarkers:_0x1340b9=!0x0,isAttributeSuggestion:_0xd06f16=!0x1}={})=>(_0x23b6a6,_0x37685c,_0x36db6c)=>{if(!_0x37685c['item'])return;const {id:_0x2130c3,authorId:_0x566f99}=this['_splitMarkerName'](_0x37685c['markerName']);if(_0xd06f16){const _0xe5610=this['_suggestions']['get'](_0x2130c3),_0x47349c=this['_getAttributeKey'](_0xe5610);if(!this['_isBlockAttribute'](_0x47349c))return;}if(_0x37685c['item']['is']('selection'))return void _0x36db6c['consumable']['consume'](_0x37685c['item'],_0x23b6a6['name']);const _0x2cd923=_0x36db6c['mapper']['toViewElement'](_0x37685c['item']);if(_0x37685c['item']['is']('element')&&_0x39d9c2['model']['schema']['isBlock'](_0x37685c['item'])&&!_0x2cd923['getCustomProperty']('addHighlight')){_0x36db6c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2cd923),_0x36db6c['writer']['setAttribute']('data-suggestion',_0x2130c3,_0x2cd923),_0x36db6c['writer']['setAttribute']('data-author-id',_0x566f99,_0x2cd923),_0x36db6c['mapper']['bindElementToMarker'](_0x2cd923,_0x37685c['markerName']),_0x1340b9&&(this['activeMarkers']['includes'](_0x37685c['markerName'])?_0x36db6c['writer']['addClass']('ck-suggestion-marker--active',_0x2cd923):_0x36db6c['writer']['removeClass']('ck-suggestion-marker--active',_0x2cd923));for(const _0x3d8023 of _0x39d9c2['model']['createRangeIn'](_0x37685c['item'])['getItems']())_0x36db6c['consumable']['consume'](_0x3d8023,_0x23b6a6['name']);_0x36db6c['consumable']['consume'](_0x37685c['item'],_0x23b6a6['name']);}};_0x39d9c2['conversion']['for']('dataDowncast')['add'](_0x382010=>{_0x382010['on']('addMarker:suggestion:formatBlock',(_0x294bca,_0x267239,_0x31fb24)=>{_0x31fb24['options']['showSuggestionHighlights']&&_0x16031a({'showActiveMarkers':!0x1})(_0x294bca,_0x267239,_0x31fb24);},{'priority':'highest'});}),_0x39d9c2['conversion']['for']('dataDowncast')['add'](_0x31ddf6=>{_0x31ddf6['on']('addMarker:suggestion:attribute',(_0xa32ba4,_0x453268,_0x30ae45)=>{_0x30ae45['options']['showSuggestionHighlights']&&_0x16031a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xa32ba4,_0x453268,_0x30ae45);},{'priority':'highest'});}),_0x39d9c2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x402384,_0x37d8d7)=>{if(_0x37d8d7['options']['showSuggestionHighlights']){const {id:_0x4925a5,authorId:_0x256e44}=this['_splitMarkerName'](_0x402384);return _0x402384['includes'](':split')||_0x402384['includes'](':merge')?{'group':'suggestion','name':_0x402384['substr'](0xb),'attributes':{'data-suggestion':_0x4925a5,'data-author-id':_0x256e44}}:null;}return{'group':'suggestion','name':_0x402384['substr'](0xb)};}}),_0x39d9c2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23693a,{writer:_0x131aa1})=>{let _0x5cda99='suggestion:'+_0x23693a['getAttribute']('suggestion-type')+':'+_0x23693a['getAttribute']('id');return _0x23693a['getAttribute']('marker-count')&&(_0x5cda99+=':'+_0x23693a['getAttribute']('marker-count')),_0x131aa1['createElement']('$marker',{'data-name':_0x5cda99});}}),_0x39d9c2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x35640e=>{_0x35640e['on']('addMarker:suggestion:formatBlock',_0x16031a(),{'priority':'high'});}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x3be8c5=>{_0x3be8c5['on']('addMarker:suggestion:attribute',_0x16031a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x2148fa=>{_0x2148fa['on']('removeMarker:suggestion:formatBlock',(_0x706d55,_0x576549,_0x4a8841)=>{const _0x42046d=_0x4a8841['mapper']['markerNameToElements'](_0x576549['markerName']);if(_0x42046d){for(const _0x4932aa of _0x42046d)_0x4932aa['getCustomProperty']('addHighlight')||(_0x4a8841['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4932aa),_0x4a8841['writer']['removeAttribute']('data-suggestion',_0x4932aa),_0x4a8841['writer']['removeAttribute']('data-author-id',_0x4932aa),_0x4a8841['mapper']['unbindElementFromMarkerName'](_0x4932aa,_0x576549['markerName']));}},{'priority':'high'});}),_0x39d9c2['conversion']['for']('editingDowncast')['add'](_0x5cc019=>{_0x5cc019['on']('removeMarker:suggestion:attribute',(_0x37e3e3,_0x2503a0,_0x630884)=>{const _0x531acf=_0x630884['mapper']['markerNameToElements'](_0x2503a0['markerName']);if(!_0x531acf)return;const {id:_0x20a0f6}=this['_splitMarkerName'](_0x2503a0['markerName']),_0xf54fc=this['_suggestions']['get'](_0x20a0f6),_0x1e4898=this['_getAttributeKey'](_0xf54fc);if(this['_isBlockAttribute'](_0x1e4898)){for(const _0x46f2a3 of _0x531acf)_0x46f2a3['getCustomProperty']('addHighlight')||(_0x630884['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46f2a3),_0x630884['writer']['removeAttribute']('data-suggestion',_0x46f2a3),_0x630884['writer']['removeAttribute']('data-author-id',_0x46f2a3),_0x630884['mapper']['unbindElementFromMarkerName'](_0x46f2a3,_0x2503a0['markerName']));}},{'priority':'high'});}),_0x39d9c2['model']['document']['registerPostFixer'](_0x3dd743=>{let _0x1a7798=!0x1;const _0x2e8643=Array['from'](_0x39d9c2['model']['document']['differ']['getChangedMarkers']()),_0x4661c9=new Set();for(const {name:_0x46452d,data:_0x1e9f21}of _0x2e8643){const {group:_0x48c31e,type:_0x1c7c61,subType:_0x4b6104,id:_0x41d14a}=this['_splitMarkerName'](_0x46452d);if('suggestion'!==_0x48c31e)continue;const _0x10e3b0=this['_suggestions']['get'](_0x41d14a);if(null!=_0x1e9f21['newRange']){'formatInline'==_0x1c7c61&&(_0x1a7798=_0x1a7798||Jt(_0x1e9f21['newRange'],_0x46452d,_0x3dd743,_0x39d9c2['model']['schema']));const _0x1844a4='attribute'==_0x1c7c61&&this['_isBlockAttribute'](_0x4b6104['split']('|')[0x0]);if(_0x1e9f21['newRange']['isCollapsed']||'$graveyard'==_0x1e9f21['newRange']['root']['rootName']||'formatBlock'==_0x1c7c61&&!Ht(_0x1e9f21['newRange'])||_0x1844a4&&!Ht(_0x1e9f21['newRange'])||'deletion'==_0x1c7c61&&!(!Lt(_0x378f7f=_0x1e9f21['newRange'])&&!function(_0x3c1a51){return _0x3c1a51['start']['parent']==_0x3c1a51['end']['nodeBefore']&&_0x3c1a51['start']['isAtEnd'];}(_0x378f7f)))_0x3dd743['removeMarker'](_0x46452d),_0x1a7798=!0x0;else{if(!_0x10e3b0||!_0x10e3b0['isInContent'])continue;if(_0x1e9f21['newRange']&&_0x1e9f21['oldRange']&&_0x1e9f21['newRange']['isEqual'](_0x1e9f21['oldRange']))continue;_0x4661c9['add'](_0x10e3b0);}}}var _0x378f7f;return _0x4661c9['size']>0x0&&(_0x1a7798=!!this['_joinWithAdjacentSuggestions'](_0x4661c9)||_0x1a7798),_0x1a7798;}),_0x39d9c2['model']['document']['registerPostFixer'](_0x9bdf7d=>{let _0x2119a1=!0x1;for(const _0x9df9db of _0x39d9c2['model']['document']['differ']['getChanges']())if('insert'==_0x9df9db['type'])for(const _0x4de615 of this['_suggestions']['values']()){if(_0x4de615['isMultiRange']||!_0x4de615['isInContent'])continue;const _0x4b3c23='formatBlock'==_0x4de615['type'],_0x7ce9e6=this['_getAttributeKey'](_0x4de615),_0x145ac3=_0x7ce9e6&&this['_isBlockAttribute'](_0x7ce9e6);if(!_0x4b3c23&&!_0x145ac3)continue;const _0x4d44f1=_0x4de615['getFirstRange']();if(_0x4d44f1['start']['parent']!=_0x4d44f1['end']['parent']&&!_0x4d44f1['end']['isAtEnd']){const _0x3f5879=_0x39d9c2['model']['createPositionAt'](_0x4d44f1['start']['nodeAfter'],'end'),_0x567ed3=_0x39d9c2['model']['createRange'](_0x4d44f1['start'],_0x3f5879);_0x9bdf7d['updateMarker'](_0x4de615['getFirstMarker'](),{'range':_0x567ed3}),_0x2119a1=!0x0;}}return _0x2119a1;}),_0x39d9c2['model']['document']['registerPostFixer'](_0x1f4ad9=>this['_processAttributeChanges'](_0x1f4ad9)),_0x39d9c2['model']['document']['registerPostFixer'](_0x4b547e=>!_0x4b547e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4b547e)),_0x39d9c2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x39d9c2['model']['document']['on']('change:data',(_0x13d059,_0x4969f5)=>{if(!_0x4969f5['isLocal']||_0x4969f5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4cf692=_0x39d9c2['model']['document']['differ']['getChanges']();if(0x0==_0x4cf692['length'])return;const _0x3fd37f=[],_0x4f8cd2=_0x4cf692['filter'](_0x4ee451=>'attribute'==_0x4ee451['type']),_0x5f3125=_0x4cf692['filter'](_0x34881a=>'insert'==_0x34881a['type']&&'$text'!=_0x34881a['name']);for(const _0x274b52 of _0x4f8cd2)this['_isRegisteredAttribute'](_0x274b52['attributeKey'])&&_0x3fd37f['push']({'key':_0x274b52['attributeKey'],'newValue':_0x274b52['attributeNewValue'],'oldValue':_0x274b52['attributeOldValue'],'range':qt(_0x274b52['range'],_0x39d9c2['model'])});for(const _0x2f89e9 of _0x5f3125){if('rename'!=_0x2f89e9['action']&&'refresh'!=_0x2f89e9['action'])continue;const _0x3a7981=zt(_0x2f89e9['position']['nodeAfter'],_0x39d9c2['model']),_0xe2edd=_0x2f89e9['before'];'rename'==_0x2f89e9['action']&&_0x3fd37f['push']({'key':u,'newValue':_0x2f89e9['name'],'oldValue':_0xe2edd['name'],'range':_0x3a7981});for(const [_0x46c623,_0xc7c2d1]of _0xe2edd['attributes']){if(!this['_isRegisteredAttribute'](_0x46c623))continue;const _0x2921da=_0x2f89e9['attributes']['get'](_0x46c623);_0xc7c2d1!==_0x2921da&&_0x3fd37f['push']({'key':_0x46c623,'newValue':_0x2921da,'oldValue':_0xc7c2d1,'range':_0x3a7981});}for(const [_0x2ae33d,_0x5f2f19]of _0x2f89e9['attributes'])this['_isRegisteredAttribute'](_0x2ae33d)&&(_0xe2edd['attributes']['has'](_0x2ae33d)||_0x3fd37f['push']({'key':_0x2ae33d,'newValue':_0x5f2f19,'oldValue':null,'range':_0x3a7981}));}0x0!=_0x3fd37f['length']&&_0x39d9c2['model']['enqueueChange'](_0x4969f5,_0x4e5239=>{const _0x3264c9=_0x65b9b5();for(const {range:_0x3acc2b,key:_0x4e0e36,oldValue:_0x3c7fde,newValue:_0x3b10c6}of _0x3fd37f)this['markAttributeChange'](_0x3acc2b,_0x4e0e36,_0x3c7fde,_0x3b10c6,{'groupId':_0x3264c9});this['_reduceExistingSuggestions'](_0x4e5239,_0x3fd37f);});},{'priority':'lowest'}),_0x39d9c2['model']['markers']['on']('update:suggestion',(_0x4c639f,_0x53b120,_0x1dde3b)=>{if(null==_0x1dde3b){const {id:_0x4394e6}=this['_splitMarkerName'](_0x53b120['name']),_0x1db269=this['_suggestions']['get'](_0x4394e6);_0x1db269&&_0x1db269['addMarkerName'](_0x53b120['name']);}}),_0x39d9c2['model']['document']['on']('change:data',()=>{const _0x133fdc=Array['from'](_0x39d9c2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x25a425=>'suggestion'===this['_splitMarkerName'](_0x25a425['name'])['group']);if(0x0===_0x133fdc['length'])return;_0x133fdc['sort']((_0x371e20,_0xd7b9dc)=>{const _0x194eeb=_0x371e20['data']['oldRange'],_0x26fd68=_0xd7b9dc['data']['oldRange'];return null===_0x194eeb&&null===_0x26fd68?0x0:null===_0x194eeb&&null!==_0x26fd68?-0x1:null!==_0x194eeb&&null===_0x26fd68?0x1:_0x194eeb['start']['isBefore'](_0x26fd68['start'])?-0x1:0x1;});const _0x426cb2=new Set(),_0x2d3a74=new Set();for(const {name:_0xc1922d,data:_0x56b3ff}of _0x133fdc){const {id:_0x2ef239}=this['_splitMarkerName'](_0xc1922d);if(null===_0x56b3ff['oldRange']){const _0x146979=this['_handleNewSuggestionMarker'](_0xc1922d);_0x2d3a74['add'](_0x146979);}else{const _0x868671=this['_suggestions']['get'](_0x2ef239);null!==_0x56b3ff['newRange']||_0x868671['isInContent']?(_0x426cb2['add'](_0x868671['head']),_0x2d3a74['add'](_0x868671)):this['_removeSuggestion'](_0x868671);}}_0x2d3a74['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d3a74);for(const _0x404b18 of _0x426cb2)this['fire']('suggestionChanged',_0x404b18);}),_0x39d9c2['model']['on']('applyOperation',(_0x1451c6,_0x1c7840)=>{const _0xfe58f4=_0x1c7840[0x0];if(!this['_suggestions']['size'])return;if(!_0xfe58f4['isDocumentOperation'])return;if(_0xfe58f4['batch']['isUndo']||!_0xfe58f4['batch']['isLocal'])return;let _0xdec246,_0x54b4b2;switch(_0xfe58f4['type']){case'insert':_0xdec246=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['position']),_0x54b4b2=_0xdec246['getShiftedBy'](_0xfe58f4['howMany']);break;case'split':_0xdec246=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['splitPosition']),_0x54b4b2=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['moveTargetPosition']);break;case'move':_0xdec246=_0x39d9c2['model']['createPositionAt'](_0xfe58f4['targetPosition']),_0x54b4b2=_0xdec246['getShiftedBy'](_0xfe58f4['howMany']);break;default:return;}const _0x1e83ca=_0x39d9c2['model']['createRange'](_0xdec246,_0x54b4b2);_0x39d9c2['model']['change'](()=>{for(const {suggestion:_0x3d0c9e,meta:_0x4166f5}of this['_findSuggestions'](_0x1e83ca)){if(_0x3d0c9e['isMultiRange'])continue;if('formatInline'==_0x3d0c9e['type'])continue;const _0x4319e=this['_getAttributeKey'](_0x3d0c9e);if(_0x4319e&&this['_isBlockAttribute'](_0x4319e)&&'split'!=_0xfe58f4['type'])continue;const _0x25cd5c=_0x3d0c9e['data']&&_0x3d0c9e['data']['multipleBlocks'];('formatBlock'!=_0x3d0c9e['type']||'split'==_0xfe58f4['type']&&!_0x25cd5c)&&(_0x4166f5['containsRangeInObject']||'insertion'==_0x3d0c9e['type']&&_0x4166f5['isOwn']||_0x3d0c9e['getFirstRange']()['containsRange'](_0x1e83ca)&&this['_breakSuggestionMarker'](_0x3d0c9e,_0xdec246,_0x54b4b2));}});},{'priority':'lowest'}),_0x39d9c2['model']['on']('deleteContent',(_0x193e47,_0x520d18)=>{const _0x4b4c37=_0x520d18[0x0],_0x4c4c62=_0x520d18[0x1];if(_0x4c4c62&&_0x4c4c62['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b4c37['isCollapsed'])return;const _0x35a1ad=_0x39d9c2['model']['schema'],{start:_0x39edff,end:_0x27a1ac}=_0x4b4c37['getFirstRange'](),_0x4760ea=_0x39edff['nodeAfter']&&_0x35a1ad['isLimit'](_0x39edff['nodeAfter'])?null:_0x35a1ad['getNearestSelectionRange'](_0x39edff,'forward'),_0x5115fb=_0x27a1ac['nodeBefore']&&_0x35a1ad['isLimit'](_0x27a1ac['nodeBefore'])?null:_0x35a1ad['getNearestSelectionRange'](_0x27a1ac,'backward'),_0x50d710=_0x39d9c2['model']['createRange'](_0x4760ea?_0x4760ea['start']:_0x39edff,_0x5115fb?_0x5115fb['end']:_0x27a1ac);_0x39d9c2['model']['change'](_0x1dd8f7=>{this['markDeletion'](_0x50d710);const _0x3e0641=_0x39d9c2['model']['schema']['getNearestSelectionRange'](_0x50d710['start']);_0x4b4c37['is']('documentSelection')?_0x1dd8f7['setSelection'](_0x3e0641):_0x4b4c37['setTo'](_0x3e0641);}),_0x193e47['stop']();},{'priority':_0x1fc7e0['normal']+0xa}),_0x39d9c2['model']['on']('insertContent',(_0x2bd932,_0x53649d)=>{const _0x551739=_0x53649d[_0x53649d['length']-0x1];_0x551739&&_0x551739['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x39d9c2['model']['change'](()=>{let _0x23d906=_0x39d9c2['model']['insertContent'](_0x53649d[0x0],_0x53649d[0x1],_0x53649d[0x2],{'forceDefaultExecution':!0x0});if(!_0x23d906)return;_0x2bd932['return']=_0x23d906['clone']();const _0x7aab06=_0x23d906['end']['nodeBefore'],_0x1e63de=_0x39d9c2['model']['schema'];_0x7aab06&&_0x1e63de['isBlock'](_0x7aab06)&&!_0x1e63de['isObject'](_0x7aab06)&&(_0x23d906=_0x39d9c2['model']['createRange'](_0x23d906['start'],_0x39d9c2['model']['createPositionAt'](_0x7aab06,'end'))),this['markInsertion'](_0x23d906);}),_0x2bd932['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2924ea=new x(_0x39d9c2,this['_suggestions']);_0x39d9c2['commands']['add']('acceptSuggestion',_0x2924ea),this['enableCommand']('acceptSuggestion');const _0x244c04=new O(_0x39d9c2,this['_suggestions']);_0x39d9c2['commands']['add']('discardSuggestion',_0x244c04),this['enableCommand']('discardSuggestion'),_0x39d9c2['commands']['add']('acceptAllSuggestions',new R(_0x39d9c2,_0x2924ea,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x39d9c2['commands']['add']('discardAllSuggestions',new R(_0x39d9c2,_0x244c04,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x39d9c2['commands']['add']('acceptSelectedSuggestions',new E(_0x39d9c2,_0x2924ea,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x39d9c2['commands']['add']('discardSelectedSuggestions',new E(_0x39d9c2,_0x244c04,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3c5397=_0x39d9c2['plugins']['get']('CommentsRepository');this['listenTo'](_0x3c5397,'addComment',(_0x467c79,{threadId:_0x166ddf})=>{const _0x2b1a4c=this['_suggestions']['get'](_0x166ddf);_0x2b1a4c&&_0x2b1a4c['commentThread']&&0x1===_0x2b1a4c['commentThread']['length']&&this['_updateSuggestionData'](_0x166ddf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3c5397,'removeComment',(_0x2d9909,{threadId:_0x3cb5f6})=>{const _0x353e86=this['_suggestions']['get'](_0x3cb5f6);_0x353e86&&_0x353e86['commentThread']&&!_0x353e86['commentThread']['length']&&this['_updateSuggestionData'](_0x3cb5f6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x20ac91){const _0x45c913=_0x5b5215([0x34,0x4b,0x37,0x75,0x56,0x51,0x6f,0x33,0x45,0x4e,0x46,0x5a,0x72,0x70,0x6c,0x48,0x30,0x57,0x35,0x6b,0x74,0x49,0x78,0x7a,0x65,0x6d,0x52,0x6a,0x47,0x64,0x43,0x71,0x69,0x44,0x32,0x38,0x62,0x59,0x61,0x4c,0x66,0x4f,0x39,0x63,0x42,0x68,0x36,0x50,0x76,0x77,0x79,0x41,0x58,0x4a,0x55,0x54,0x31,0x6e,0x67,0x73,0x53,0x4d]),_0x57a6dd=0x42dadd73,_0x4069db=0x42ddbacb^_0x57a6dd,_0x548c7d=window[_0x5b5215([0x44,0x61,0x74,0x65])][_0x5b5215([0x6e,0x6f,0x77])](),_0x5d5652=_0x20ac91[_0x5b5215([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e86e0=new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a8d19=>{_0x5d5652[_0x5b5215([0x6f,0x6e,0x63,0x65])](_0x5b5215([0x72,0x65,0x61,0x64,0x79]),_0x5a8d19);}),_0x583f92={[_0x5b5215([0x6b,0x74,0x79])]:_0x5b5215([0x45,0x43]),[_0x5b5215([0x75,0x73,0x65])]:_0x5b5215([0x73,0x69,0x67]),[_0x5b5215([0x63,0x72,0x76])]:_0x5b5215([0x50,0x2d,0x32,0x35,0x36]),[_0x5b5215([0x78])]:_0x5b5215([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5b5215([0x79])]:_0x5b5215([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5b5215([0x61,0x6c,0x67])]:_0x5b5215([0x45,0x53,0x32,0x35,0x36])},_0x4d7b9f=_0x5d5652[_0x5b5215([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b5215([0x67,0x65,0x74])](_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x274bdb(){let _0x17a821,_0x820161=null,_0x143834=null;try{if(_0x4d7b9f==_0x5b5215([0x47,0x50,0x4c]))return _0x5b5215([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a821=_0x3f5bb2(),!_0x17a821)return _0x5b5215([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a821[_0x5b5215([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x143834=_0x34662a(_0x17a821[_0x5b5215([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a821[_0x5b5215([0x6a,0x74,0x69])])),await _0x26abbc()?_0x1c981e()?_0x385d3a()?_0x5b5215([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a27a3()?(_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b5215([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x820161=_0xf9df77(_0x5b5215([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b5215([0x74,0x72,0x69,0x61,0x6c])&&(_0x820161=_0xf9df77(_0x5b5215([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x350c66()):_0x5b5215([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b5215([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b5215([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f860b){return _0x5b5215([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x385d3a(){const _0x401fd9=[_0x5b5215([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b5215([0x74,0x72,0x69,0x61,0x6c])][_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x548c7d/0x3e8:0xe10*_0x4069db;return _0x17a821[_0x5b5215([0x65,0x78,0x70])]<_0x401fd9;}function _0x1c981e(){const _0xe8ee84=_0x17a821[_0x5b5215([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xe8ee84)return!0x1;if(_0xe8ee84[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x2a])))return!0x0;if(_0xe8ee84[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x54,0x43])))return!0x0;if(_0xe8ee84[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x52,0x54,0x43]))){if(_0x13e3e2())return!0x0;if(_0x43fd89()||_0x55a775())return!0x0;}return!0x1;}function _0x5a27a3(){const _0xe8fe1f=_0x17a821[_0x5b5215([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe8fe1f||0x0==_0xe8fe1f[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52b620}=new URL(window[_0x5b5215([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe8fe1f[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52b620))return!0x0;const _0xb88ce=_0x52b620[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e]));return _0xe8fe1f[_0x5b5215([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33200e=>_0x33200e[_0x5b5215([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5215([0x2a])))[_0x5b5215([0x6d,0x61,0x70])](_0x410b57=>_0x410b57[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e])))[_0x5b5215([0x73,0x6f,0x6d,0x65])](_0x7c97e4=>_0xb88ce[_0x5b5215([0x65,0x76,0x65,0x72,0x79])]((_0x688b30,_0x621372)=>_0x7c97e4[_0x621372]===_0x688b30||_0x7c97e4[_0x621372]===_0x5b5215([0x2a])));}function _0x350c66(){return _0x820161&&_0x143834?new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283b3d,_0x74da13)=>{_0x820161[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x283b3d,_0x74da13),_0x143834[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x1b2b59=>{_0x1b2b59!=_0x5b5215([0x56,0x61,0x6c,0x69,0x64])&&_0x283b3d(_0x1b2b59);},_0x74da13);}):_0x820161||_0x143834||_0x5b5215([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34662a(_0x16a589,_0x5a6bed){return new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x593117=>{if(_0x1617a8())return _0x593117(_0x5b5215([0x56,0x61,0x6c,0x69,0x64]));_0x34b03a(),_0x5d5652[_0x5b5215([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b5215([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xdbedcc=!0x1;const _0x3ba30e=_0x65b9b5();function _0x229fe4(_0x5a9015){return!!_0x5a9015&&(typeof _0x5a9015===_0x5b5215([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a9015===_0x5b5215([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a9015[_0x5b5215([0x74,0x68,0x65,0x6e])]===_0x5b5215([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a9015[_0x5b5215([0x63,0x61,0x74,0x63,0x68])]===_0x5b5215([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1244fd(_0x120e0c){_0x12c68a(_0x120e0c)[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x453c81=>{if(!_0x453c81||_0x453c81[_0x5b5215([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b5215([0x6f,0x6b]))return _0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9282c0(_0x1aa657(_0x3ba30e+_0x5a6bed))!=_0x453c81[_0x5b5215([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b5215([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x56d225=>(_0x3be06a(),_0x56d225),()=>{const _0x59a42c=_0x4a59fb();return null==_0x59a42c?(_0x3be06a(),_0x5b5215([0x56,0x61,0x6c,0x69,0x64])):_0x5b5215(_0x548c7d-_0x59a42c>(0x66d65973^_0x57a6dd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x593117)[_0x5b5215([0x63,0x61,0x74,0x63,0x68])](()=>{_0x593117(_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59c91d=0x42ec33f3^_0x57a6dd;function _0x3be06a(){const _0x433a2b=_0x5b5215([0x6c,0x6c,0x63,0x74,0x2d])+_0x9282c0(_0x1aa657(_0x16a589)),_0x22f91f=_0x2f1172(_0x9282c0(window[_0x5b5215([0x4d,0x61,0x74,0x68])][_0x5b5215([0x63,0x65,0x69,0x6c])](_0x548c7d/_0x59c91d)));window[_0x5b5215([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b5215([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x433a2b,_0x22f91f);}function _0x4a59fb(){const _0x15b621=_0x5b5215([0x6c,0x6c,0x63,0x74,0x2d])+_0x9282c0(_0x1aa657(_0x16a589)),_0x30e33c=window[_0x5b5215([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b5215([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b621);return _0x30e33c?window[_0x5b5215([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f1172(_0x30e33c),0x10)*_0x59c91d:null;}function _0x12c68a(_0x20e722){return new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e4b2,_0xaaea4c)=>{_0x20e722[_0x5b5215([0x74,0x68,0x65,0x6e])](_0x22e4b2,_0xaaea4c),window[_0x5b5215([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaaea4c,0x42db09b3^_0x57a6dd);});}}_0x5d5652[_0x5b5215([0x6f,0x6e])](_0x5b5215([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd0145e,_0x5eb045)=>{if(_0x5eb045[0x0]!=_0x16a589)return _0x593117(_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5eb045[0x1]={..._0x5eb045[0x1],[_0x5b5215([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ba30e};},{[_0x5b5215([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b5215([0x68,0x69,0x67,0x68])}),_0x5d5652[_0x5b5215([0x6f,0x6e])](_0x5b5215([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4afb9b=>{_0x229fe4(_0x4afb9b[_0x5b5215([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xdbedcc=!0x0,_0x1244fd(_0x4afb9b[_0x5b5215([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b5215([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b5215([0x6c,0x6f,0x77])}),_0x5e86e0[_0x5b5215([0x74,0x68,0x65,0x6e])](()=>{_0xdbedcc||_0x593117(_0x5b5215([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1617a8(){return _0x5d5652[_0x5b5215([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b5215([0x76,0x69,0x65,0x77])][_0x5b5215([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b5215([0x61,0x75,0x74,0x6f]);}function _0x34b03a(){_0x5d5652[_0x5b5215([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b5215([0x76,0x69,0x65,0x77])][_0x5b5215([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b5215([0x61,0x75,0x74,0x6f]);}}function _0xf9df77(_0x3f9332){const _0x5f5262=[new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b0e2=>setTimeout(_0x39b0e2,0x42d3e3bf^_0x57a6dd)),_0x5e86e0[_0x5b5215([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e48ab=>{let _0x4254b3=0x0;_0x5d5652[_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b5215([0x6f,0x6e])](_0x5b5215([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x574b7d,_0x14716c)=>{_0x14716c[0x0][_0x5b5215([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4254b3++,_0x4254b3==(0x42dadc8b^_0x57a6dd)&&(_0x3e48ab(),_0x574b7d[_0x5b5215([0x6f,0x66,0x66])]());});}))];return window[_0x5b5215([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b5215([0x72,0x61,0x63,0x65])](_0x5f5262)[_0x5b5215([0x74,0x68,0x65,0x6e])](()=>_0x3f9332);}async function _0x2e666a(){await _0x5e86e0,_0x5d5652[_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b5215([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ddaba,_0x5d5652[_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b5215([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ddaba,_0x5d5652[_0x5b5215([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b5215([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13e3e2(){return _0x1d3117(_0x5b5215([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x12fe12(_0x5b5215([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b5215([0x73,0x74,0x61,0x74,0x65])]==_0x5b5215([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43fd89(){return _0x1d3117(_0x5b5215([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x55a775(){return _0x1d3117(_0x5b5215([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2cc07e(_0xf06fd9){const _0x1d096f=_0x436396();_0x5d5652[_0x1d096f]=_0x5b5215([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf06fd9,_0xf06fd9!=_0x5b5215([0x56,0x61,0x6c,0x69,0x64])&&_0x2e666a();}function _0x436396(){const _0x283ab2=window[_0x5b5215([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b5215([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b5215([0x6e,0x6f,0x77])]())[_0x5b5215([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b5215([0x2e]),'');let _0x8434da=_0x5b5215([0x4b]);for(let _0x20a501=0x0;_0x20a501<_0x283ab2[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20a501+=0x2){let _0x41d679=window[_0x5b5215([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x283ab2[_0x5b5215([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20a501,_0x20a501+0x2));_0x41d679>=_0x45c913[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41d679-=_0x45c913[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8434da+=_0x45c913[_0x41d679];}return _0x8434da;}function _0x3f5bb2(){const _0x34d87e=_0x4d7b9f[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e]));if(0x3!=_0x34d87e[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x33040e(_0x34d87e[0x1]);function _0x33040e(_0x226190){const _0x9bfeec=_0x379bb5(_0x226190);return _0x9bfeec&&_0x21adb4()?_0x9bfeec:null;function _0x21adb4(){const _0x5bffb6=_0x9bfeec[_0x5b5215([0x6a,0x74,0x69])],_0x4ee662=window[_0x5b5215([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bffb6[_0x5b5215([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bffb6[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5874f1={..._0x9bfeec,[_0x5b5215([0x6a,0x74,0x69])]:_0x5bffb6[_0x5b5215([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bffb6[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5874f1[_0x5b5215([0x76,0x63])],_0x1aa657(_0x5874f1)==_0x4ee662;}}}async function _0x26abbc(){let _0x2247e5=!0x0;try{const _0x57bd78=_0x4d7b9f[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])](_0x5b5215([0x2e])),[_0x29c7f8,_0x14d868,_0x5acb2]=_0x57bd78;return _0x310756(_0x29c7f8),await _0x2ee2d2(_0x29c7f8,_0x14d868,_0x5acb2),_0x2247e5;}catch(_0x179423){return!0x1;}function _0x310756(_0x4db37d){const _0x5139b4=_0x379bb5(_0x4db37d);_0x5139b4&&_0x5139b4[_0x5b5215([0x61,0x6c,0x67])]==_0x5b5215([0x45,0x53,0x32,0x35,0x36])||(_0x2247e5=!0x1);}async function _0x2ee2d2(_0xb61b78,_0x4af776,_0x7a4351){const _0x225a6c=window[_0x5b5215([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b5215([0x66,0x72,0x6f,0x6d])](_0x39fb6(_0x7a4351),_0x304dda=>_0x304dda[_0x5b5215([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47923f=new window[(_0x5b5215([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b5215([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb61b78+_0x5b5215([0x2e])+_0x4af776),_0x15ab21=window[_0x5b5215([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b5215([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15ab21)return;const _0x9fe1c5=await _0x15ab21[_0x5b5215([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b5215([0x6a,0x77,0x6b]),_0x583f92,{[_0x5b5215([0x6e,0x61,0x6d,0x65])]:_0x5b5215([0x45,0x43,0x44,0x53,0x41]),[_0x5b5215([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b5215([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b5215([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15ab21[_0x5b5215([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b5215([0x6e,0x61,0x6d,0x65])]:_0x5b5215([0x45,0x43,0x44,0x53,0x41]),[_0x5b5215([0x68,0x61,0x73,0x68])]:{[_0x5b5215([0x6e,0x61,0x6d,0x65])]:_0x5b5215([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9fe1c5,_0x225a6c,_0x47923f)||(_0x2247e5=!0x1);}}function _0x379bb5(_0x59209f){return _0x59209f[_0x5b5215([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b5215([0x65,0x79]))?JSON[_0x5b5215([0x70,0x61,0x72,0x73,0x65])](_0x39fb6(_0x59209f)):null;}function _0x39fb6(_0x1b87a1){return window[_0x5b5215([0x61,0x74,0x6f,0x62])](_0x1b87a1[_0x5b5215([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b5215([0x2b]))[_0x5b5215([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b5215([0x2f])));}function _0x1aa657(_0x545090){let _0x19f3a1=0x1505;function _0x290714(_0x25a9d7){for(let _0x24653a=0x0;_0x24653a<_0x25a9d7[_0x5b5215([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24653a++){const _0x38178f=_0x25a9d7[_0x5b5215([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24653a);_0x19f3a1=(_0x19f3a1<<0x5)+_0x19f3a1+_0x38178f,_0x19f3a1&=_0x19f3a1;}}function _0x47a3c3(_0x4f7542){Array[_0x5b5215([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f7542)?_0x4f7542[_0x5b5215([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47a3c3):_0x4f7542&&typeof _0x4f7542==_0x5b5215([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b5215([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f7542)[_0x5b5215([0x73,0x6f,0x72,0x74])]()[_0x5b5215([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x351783,_0x308927])=>{_0x290714(_0x351783),_0x47a3c3(_0x308927);}):_0x290714(window[_0x5b5215([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f7542));}return _0x47a3c3(_0x545090),_0x19f3a1>>>0x0;}function _0x9282c0(_0x5a8f7d){return _0x5a8f7d[_0x5b5215([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b5215([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b5215([0x30]));}function _0x2f1172(_0x580deb){return _0x580deb[_0x5b5215([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b5215([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b5215([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d3117(_0x32c7ad){return _0x5d5652[_0x5b5215([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b5215([0x68,0x61,0x73])](_0x32c7ad);}function _0x12fe12(_0x26abe3){return _0x5d5652[_0x5b5215([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b5215([0x67,0x65,0x74])](_0x26abe3);}function _0x3ddaba(){}function _0x5b5215(_0x4477ca){return _0x4477ca['map'](_0x478d82=>String['fromCharCode'](_0x478d82))['join']('');}_0x2cc07e(await _0x274bdb());}(this);}set['adapter'](_0xc7a08){if(this['_adapter'])throw new _0x328969('track-changes-adapter-already-set',this);this['_adapter']=_0xc7a08;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3bf280=!0x1,toJSON:_0x32ad6f=!0x1}={}){const _0x47b360=[];for(const _0x19c2d7 of this['_suggestions']['values']())_0x3bf280&&!_0x19c2d7['isInContent']||_0x47b360['push'](_0x19c2d7);return _0x32ad6f?_0x47b360['map'](_0x32e0d2=>_0x32e0d2['toJSON']()):_0x47b360;}['getSuggestion'](_0x2f0222){const _0x41b938=this['_suggestions']['get'](_0x2f0222);if(!_0x41b938)throw new _0x328969('track-changes-suggestion-not-found',this);return _0x41b938;}['hasSuggestion'](_0x56451c){return this['_suggestions']['has'](_0x56451c);}['addSuggestionData'](_0x4fa29a){const {authorId:_0x334556,id:_0x399e3f,attributes:_0x41fb4c}=_0x4fa29a,[_0x3ed59f,_0x446626]=_0x4fa29a['type']['split'](':'),_0x39a456=this['_suggestions']['get'](_0x399e3f)||this['_createSuggestion'](_0x3ed59f,_0x446626,_0x399e3f,_0x334556,_0x41fb4c);if(this['_addThreadToSuggestion'](_0x39a456),this['_checkSuggestionCorrectness'](_0x39a456,_0x3ed59f,_0x446626||null,_0x334556),_0x39a456['createdAt']=_0x4fa29a['createdAt'],_0x39a456['_isDataLoaded']=!0x0,_0x41fb4c&&_0x41fb4c['@external']){const _0x45ed29=_0x41fb4c['@external'],_0x29e55a=this['_getExternalAuthor'](_0x45ed29['authorName']);_0x39a456['authoredAt']=_0x45ed29['createdAt'],_0x39a456['author']=_0x29e55a,_0x39a456['isExternal']=!0x0;}else _0x39a456['authoredAt']=_0x4fa29a['createdAt'];switch(_0x4fa29a['data']&&(_0x39a456['data']=_0x4fa29a['data']),_0x4fa29a['attributes']&&(_0x39a456['attributes']=_0x4fa29a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x39a456['_saved']=!0x0),this['_suggestionState']['get'](_0x39a456)){case'notReady':this['_suggestionState']['set'](_0x39a456,'dataReady');break;case'markerReady':_0x39a456['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x39a456])),this['_refreshSuggestionsChain'](new Set([_0x39a456])),this['_suggestionState']['set'](_0x39a456,'ready'),this['fire']('suggestionLoaded',_0x39a456)):this['_suggestionState']['set'](_0x39a456,'removed');}return _0x39a456;}['acceptSuggestion'](_0x9229b5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43c142 of _0x9229b5['getAllAdjacentSuggestions']())_0x43c142['accept']();});});}['discardSuggestion'](_0xb974d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d519 of _0xb974d6['getAllAdjacentSuggestions']())_0x58d519['discard']();});});}['enableCommand'](_0x91bd59,_0x4dcb81){const _0x24c894=this['editor']['commands']['get'](_0x91bd59);if(!_0x24c894)throw new _0x328969('track-changes-command-not-found',this,{'commandName':_0x91bd59});if(this['_enabledCommands']['has'](_0x24c894))throw new _0x328969('track-changes-enable-command-twice',this,{'commandName':_0x91bd59});this['_enabledCommands']['add'](_0x24c894),_0x4dcb81&&_0x24c894['on']('execute',(_0x43f3b5,_0x4bae8a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4bae8a['length']>0x0&&_0x4bae8a[_0x4bae8a['length']-0x1]&&_0x4bae8a[_0x4bae8a['length']-0x1]['forceDefaultExecution']?_0x4bae8a['pop']():(_0x43f3b5['return']=_0x4dcb81((..._0x5d4270)=>_0x24c894['execute'](..._0x5d4270,{'forceDefaultExecution':!0x0}),..._0x4bae8a),_0x43f3b5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8d5263){let _0x181eac,_0x2c15aa;const _0x304873=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x181eac=_0x8d5263();}catch(_0x5a88c6){_0x2c15aa=_0x5a88c6;}return _0x304873||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c15aa&&_0x328969['rethrowUnexpectedError'](_0x2c15aa,this),_0x181eac;}['markInsertion'](_0x2c34d7,_0x3a61e5=null,_0x41d604={}){if(_0x2c34d7['isCollapsed'])return null;const _0x4444a1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x41d604['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x30cb57,meta:_0x10c038}of this['_findSuggestions'](_0x2c34d7,'insertion'))if(_0x10c038['isOwn']){if(!_0x10c038['isNextTo']){if(_0x10c038['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x30cb57,_0x41d604))continue;return _0x30cb57;}if(Xt(_0x30cb57,_0x41d604))return _0x30cb57;this['_breakSuggestionMarker'](_0x30cb57,_0x2c34d7['start'],_0x2c34d7['end']);break;}if(_0x3a61e5==_0x30cb57['subType']&&Xt(_0x30cb57,_0x41d604)){const _0x344ef1=_0x30cb57['getFirstRange']();return _0x344ef1['start']['isEqual'](_0x2c34d7['end'])?this['_setSuggestionRange'](_0x30cb57,this['_model']['createRange'](_0x2c34d7['start'],_0x344ef1['end'])):this['_setSuggestionRange'](_0x30cb57,this['_model']['createRange'](_0x344ef1['start'],_0x2c34d7['end'])),_0x30cb57;}}const _0x451c60=_0x65b9b5(),_0x498a94=_0x4444a1['id'],_0x134831=_0x3a61e5?'insertion:'+_0x3a61e5:'insertion',_0x53d103=this['_setSuggestionData']({'id':_0x451c60,'type':_0x134831,'createdAt':new Date(),'authorId':_0x498a94,'attributes':_0x41d604});return this['_addSuggestionMarker'](_0x134831,_0x451c60,_0x498a94,_0x2c34d7),_0x53d103;}['markMultiRangeInsertion'](_0x345278,_0x48e706='multi',_0x2aa12e={}){const _0x1c11d1=this['editor']['plugins']['get']('Users')['me'],_0x580115=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x48e706,'join');this['_trackingSessionId']&&(_0x2aa12e['trackingSessionId']=this['_trackingSessionId']);for(const _0x130c24 of this['getSuggestions']())if(_0x130c24['author']['id']==_0x1c11d1['id']&&'insertion'==_0x130c24['type']&&_0x130c24['subType']==_0x48e706&&Xt(_0x130c24,_0x2aa12e)&&(_0x580115(_0x130c24['getRanges'](),_0x345278)||_0x580115(_0x345278,_0x130c24['getRanges']()))){for(const _0x17cfe4 of _0x345278)_0x130c24['addRange'](_0x17cfe4);return _0x130c24;}for(const {suggestion:_0x530577,meta:_0x21bfa2}of this['_findSuggestions'](_0x345278,'insertion')){if(!_0x21bfa2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x21bfa2['containsRangeInObject'])continue;if(!Xt(_0x530577,_0x2aa12e))continue;let _0x19d694=!0x0;for(const _0x2603fc of _0x530577['getRanges']())for(const _0x1b4c53 of _0x345278)if(!_0x2603fc['containsRange'](_0x1b4c53)){_0x19d694=!0x1;break;}if(_0x19d694)return _0x530577;}const _0x190528=_0x65b9b5(),_0x2dd243=_0x1c11d1['id'],_0x4be03f='insertion:'+_0x48e706,_0x38a5ee=this['_setSuggestionData']({'id':_0x190528,'type':_0x4be03f,'createdAt':new Date(),'authorId':_0x2dd243,'attributes':_0x2aa12e});for(const _0x11adaf of _0x345278)this['_addSuggestionMarker'](_0x4be03f,_0x190528,_0x2dd243,_0x11adaf,o['getMultiRangeId']());return _0x38a5ee;}['markInlineFormat'](_0x477583,_0x3c0196,_0x11cfd1=null,_0x349d00={}){if(_0x11cfd1=_0x11cfd1||Kt(_0x3c0196),_0x477583['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x349d00['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa928bf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11cfd1,'accept');return this['forceDefaultExecution'](()=>_0xa928bf([_0x477583],_0x3c0196,_0x349d00)),null;}const _0x55c8c4=this['editor']['plugins']['get']('Users')['me'],_0x11b12c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x43589a,meta:_0x2f82b8}of this['_findSuggestions'](_0x477583,'insertion'))_0x2f82b8['isOwn']&&!_0x2f82b8['isInsideObject']&&_0x11b12c['push'](..._0x43589a['getRanges']());}const _0x46b8a7=function(_0x1c07b7,_0x297414){const _0x2e71c6=[];for(const _0x3580a0 of _0x297414){const _0x3a107f=_0x1c07b7['getIntersection'](_0x3580a0);_0x3a107f&&_0x2e71c6['push'](_0x3a107f);}return _0x2e71c6;}(_0x477583,_0x11b12c),_0x28b8fe=function(_0x295be5,_0x25a388){const _0x2dd5a8=[_0x295be5];for(const _0x577c7a of _0x25a388){let _0x5dfda5=0x0;for(;_0x5dfda5<_0x2dd5a8['length'];){const _0x4da86f=_0x2dd5a8[_0x5dfda5]['getDifference'](_0x577c7a);_0x2dd5a8['splice'](_0x5dfda5,0x1,..._0x4da86f),_0x5dfda5+=_0x4da86f['length'];}}return _0x2dd5a8;}(_0x477583,_0x11b12c);_0x46b8a7['length']&&this['_model']['change'](()=>{for(const _0x302e46 of _0x46b8a7){const _0x3ba541=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11cfd1,'accept');this['forceDefaultExecution'](()=>_0x3ba541([_0x302e46],_0x3c0196,_0x349d00));}});for(const _0x15981d of _0x28b8fe){let _0x47b784=null,_0x59183=_0x15981d['start'],_0x572ef3=_0x15981d['end'];for(const {suggestion:_0x236ca1,meta:_0x142f75}of this['_findSuggestions'](_0x15981d,'formatInline')){if(!_0x142f75['isOwn'])continue;if(_0x236ca1['subType']!=_0x11cfd1)continue;if(!Xt(_0x236ca1,_0x349d00))continue;const _0x5ea3dc=_0x236ca1['getFirstRange']();if(_0x5ea3dc['containsRange'](_0x15981d,!0x0))return null;_0x59183=_0x59183['isBefore'](_0x5ea3dc['start'])?_0x59183:_0x5ea3dc['start'],_0x572ef3=_0x572ef3['isAfter'](_0x5ea3dc['end'])?_0x572ef3:_0x5ea3dc['end'],_0x47b784?_0x5ea3dc['start']['isBefore'](_0x47b784['getFirstRange']()['start'])?(_0x47b784['removeMarkers'](),_0x47b784=_0x236ca1):_0x236ca1['removeMarkers']():_0x47b784=_0x236ca1;}const _0x1134e0=this['_model']['createRange'](_0x59183,_0x572ef3);if(_0x47b784)this['_setSuggestionRange'](_0x47b784,_0x1134e0);else{const _0x1b080c=_0x65b9b5(),_0x4bca64=_0x55c8c4['id'];this['_setSuggestionData']({'id':_0x1b080c,'type':'formatInline:'+_0x11cfd1,'data':_0x3c0196,'createdAt':new Date(),'authorId':_0x4bca64,'attributes':_0x349d00}),this['_addSuggestionMarker']('formatInline:'+_0x11cfd1,_0x1b080c,_0x4bca64,_0x1134e0);}}return null;}['markBlockFormat'](_0x3f088f,_0x1fa039,_0x4bdf84=[],_0x1d2dca=null,_0x183e9a={}){_0x1fa039['formatGroupId']||(_0x1fa039['formatGroupId']=_0x1fa039['commandName']),_0x1fa039['multipleBlocks']=_0x3f088f['is']('range'),_0x1d2dca=_0x1d2dca||Kt(_0x1fa039);const _0x3ba1a1=_0x4bdf84['map'](_0x24ee48=>zt(_0x24ee48,this['_model'])),_0x49264a=_0x3f088f['is']('range')?_0x3f088f:zt(_0x3f088f,this['_model']);if(this['_trackingSessionId']&&(_0x183e9a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40b6fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d2dca,'accept');return this['forceDefaultExecution'](()=>_0x40b6fb([_0x49264a],_0x1fa039,_0x183e9a)),null;}_0x3ba1a1['push'](_0x49264a);let _0x2992a2=!0x0;for(const _0xd73b36 of _0x3ba1a1)if(!this['_rangeIsInLocalUserInsertion'](_0xd73b36)){_0x2992a2=!0x1;break;}if(_0x2992a2&&'always'!==this['_trackFormatChanges']){const _0x8126c7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d2dca,'accept');return this['forceDefaultExecution'](()=>_0x8126c7([_0x49264a],_0x1fa039,_0x183e9a)),null;}let _0x4c2b29=null,_0x1c8d42=_0x49264a['start'],_0x5e158d=_0x49264a['end'];for(const {suggestion:_0x372e07,meta:_0x25eb5b}of this['_findSuggestions'](_0x49264a,'formatBlock')){if(!_0x25eb5b['isOwn'])continue;if(_0x25eb5b['isNextTo']||_0x25eb5b['containsRangeInObject']||_0x25eb5b['isInsideObject'])continue;if(_0x372e07['data']['formatGroupId']!=_0x1fa039['formatGroupId'])continue;if(!Xt(_0x372e07,_0x183e9a))continue;const _0x58c861=_0x372e07['getFirstRange']();if(_0x372e07['subType']==_0x1d2dca){if(_0x58c861['containsRange'](_0x49264a,!0x0))return null;_0x1c8d42=_0x1c8d42['isBefore'](_0x58c861['start'])?_0x1c8d42:_0x58c861['start'],_0x5e158d=_0x5e158d['isAfter'](_0x58c861['end'])?_0x5e158d:_0x58c861['end'],_0x4c2b29?_0x58c861['start']['isBefore'](_0x4c2b29['getFirstRange']()['start'])?(_0x4c2b29['removeMarkers'](),_0x4c2b29=_0x372e07):_0x372e07['removeMarkers']():_0x4c2b29=_0x372e07;}else{const _0x23e7ac=_0x49264a['getIntersection'](_0x58c861);this['_cutOutSuggestionMarker'](_0x372e07,_0x23e7ac);}}const _0x57dc80=this['editor']['plugins']['get']('Users')['me'],_0x1677a2=_0x65b9b5(),_0x519ade=_0x57dc80['id'];if(_0x4c2b29)return this['_setSuggestionRange'](_0x4c2b29,this['_model']['createRange'](_0x1c8d42,_0x5e158d)),_0x4c2b29;{const _0xfe8bcf=this['_setSuggestionData']({'id':_0x1677a2,'type':'formatBlock:'+_0x1d2dca,'data':_0x1fa039,'createdAt':new Date(),'authorId':_0x519ade,'attributes':_0x183e9a});return this['_addSuggestionMarker']('formatBlock:'+_0x1d2dca,_0x1677a2,_0x519ade,this['_model']['createRange'](_0x1c8d42,_0x5e158d)),_0xfe8bcf;}}['markMultiRangeBlockFormat'](_0xb9c954,_0x3f77f3,_0x400443=[],_0x4b122f=null,_0x279476={}){_0x3f77f3['formatGroupId']||(_0x3f77f3['formatGroupId']=_0x3f77f3['commandName']);const _0x35f868=_0xb9c954[0x0];_0x3f77f3['multipleBlocks']=_0x35f868['is']('range'),_0x4b122f=_0x4b122f||Kt(_0x3f77f3);const _0x207308=_0x400443['map'](_0x1042bb=>zt(_0x1042bb,this['_model'])),_0x10afee=_0x35f868['is']('range')?_0xb9c954:_0xb9c954['map'](_0x284e5e=>zt(_0x284e5e,this['_model']));if(this['_trackingSessionId']&&(_0x279476['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e6d2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b122f,'accept');return this['forceDefaultExecution'](()=>_0x2e6d2f(_0x10afee,_0x3f77f3,_0x279476)),null;}_0x207308['push'](..._0x10afee);let _0x42b41f=!0x0;for(const _0x211d20 of _0x207308)if(!this['_rangeIsInLocalUserInsertion'](_0x211d20)){_0x42b41f=!0x1;break;}if(_0x42b41f&&'always'!==this['_trackFormatChanges']){const _0x3c49c6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b122f,'accept');return this['forceDefaultExecution'](()=>_0x3c49c6(_0x10afee,_0x3f77f3,_0x279476)),null;}const _0x55dbac=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c840d of this['getSuggestions']()){if(_0x3c840d['author']['id']!=_0x55dbac['id'])continue;if('formatBlock'!=_0x3c840d['type']||_0x3c840d['data']['formatGroupId']!=_0x3f77f3['formatGroupId'])continue;if(!Xt(_0x3c840d,_0x279476))continue;const _0x77dc9b=_0x3c840d['subType']==_0x4b122f;for(let _0x23dec8=0x0;_0x23dec8<_0x10afee['length'];_0x23dec8++){const _0x3e8568=_0x10afee[_0x23dec8];for(const _0x5b992d of _0x3c840d['getMarkers']()){const _0x7f0408=_0x5b992d['getRange']();if(_0x3e8568['isEqual'](_0x7f0408)){_0x77dc9b?(_0x10afee['splice'](_0x23dec8,0x1),_0x23dec8--):_0x3c840d['removeMarker'](_0x5b992d['name']);break;}}}}if(0x0==_0x10afee['length'])return null;const _0x3160d3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b122f,'join');for(const _0x188a60 of this['getSuggestions']())if(_0x188a60['author']['id']==_0x55dbac['id']&&'formatBlock'==_0x188a60['type']&&_0x188a60['data']['formatGroupId']==_0x3f77f3['formatGroupId']&&_0x188a60['subType']==_0x4b122f&&Xt(_0x188a60,_0x279476)&&(_0x3160d3(_0x188a60['getRanges'](),_0x10afee)||_0x3160d3(_0x10afee,_0x188a60['getRanges']()))){for(const _0x11b949 of _0x10afee)_0x188a60['addRange'](_0x11b949);return _0x188a60;}const _0x126c4d=_0x65b9b5(),_0x312350=_0x55dbac['id'],_0x576285='formatBlock:'+_0x4b122f,_0x287d65=this['_setSuggestionData']({'id':_0x126c4d,'type':_0x576285,'data':_0x3f77f3,'createdAt':new Date(),'authorId':_0x312350,'attributes':_0x279476});for(const _0x946efa of _0x10afee)this['_addSuggestionMarker'](_0x576285,_0x126c4d,_0x312350,_0x946efa,o['getMultiRangeId']());return _0x287d65;}['markDeletion'](_0x33bd56,_0x19ce7d=null,_0x22a56e={}){if(_0x33bd56['isCollapsed'])return null;const _0x3e5af1=this['editor']['plugins']['get']('Users')['me'],_0x113dab=new _0xc48f37(_0x33bd56['start'],_0x33bd56['end']);this['_trackingSessionId']&&(_0x22a56e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ff0dc,meta:_0x54922a}of this['_findSuggestions'](_0x113dab,'insertion'))if(_0x54922a['isOwn']&&!_0x54922a['isNextTo']){if(_0x3ff0dc['isMultiRange']){const _0x11a45f=_0x3ff0dc['getRanges']()['filter'](_0x440851=>'$graveyard'!=_0x440851['root']['rootName']);_0x11a45f['every'](_0x1e22f2=>_0x113dab['containsRange'](_0x1e22f2,!0x0))&&_0x3ff0dc['discard']();if(_0x11a45f['some'](_0x1841ca=>_0x1841ca['containsRange'](_0x113dab,!0x0))){const _0x339ef2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19ce7d,'accept');return this['forceDefaultExecution'](()=>_0x339ef2([_0x113dab],null,_0x22a56e)),null;}}else{const _0x53a33d=_0x113dab['getIntersection'](_0x3ff0dc['getFirstRange']());null!==_0x53a33d&&_0x3ff0dc['_onDiscard']([_0x53a33d],null,_0x22a56e);}}if(_0x113dab['detach'](),_0x113dab['isCollapsed']||'$graveyard'==_0x113dab['root']['rootName'])return null;let _0x56b27d=null,_0x41f139=_0x113dab['start'],_0x4c37d2=_0x113dab['end'];const _0x8dcc0d=this['_findSuggestions'](_0x113dab,'deletion');for(const {suggestion:_0x2e4adc,meta:_0x4a6f12}of _0x8dcc0d){const _0x23e102=this['_model']['createRange'](_0x41f139,_0x4c37d2);if(_0x4a6f12['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6f12['containsRangeInObject']&&!_0x4a6f12['isInsideObject'])){if(_0x2e4adc['isMultiRange']){if(!Xt(_0x2e4adc,_0x22a56e))continue;let _0x4a1eb9=!0x0;for(const _0x1d3d30 of _0x2e4adc['getRanges']()){if(_0x1d3d30['containsRange'](_0x23e102,!0x0))return _0x2e4adc;_0x23e102['containsRange'](_0x1d3d30)||(_0x4a1eb9=!0x1);}_0x4a1eb9&&_0x2e4adc['discard']();}else{const _0x5345e4=_0x2e4adc['getFirstRange']();if(_0x5345e4['containsRange'](_0x23e102,!0x0))return _0x2e4adc;if(!Xt(_0x2e4adc,_0x22a56e)){_0x23e102['containsRange'](_0x5345e4)?_0x2e4adc['removeMarkers']():_0x5345e4['containsPosition'](_0x41f139)?_0x41f139=_0x5345e4['end']:_0x5345e4['containsPosition'](_0x4c37d2)&&(_0x4c37d2=_0x5345e4['start']);continue;}_0x41f139=_0x41f139['isBefore'](_0x5345e4['start'])?_0x41f139:_0x5345e4['start'],_0x4c37d2=_0x4c37d2['isAfter'](_0x5345e4['end'])?_0x4c37d2:_0x5345e4['end'],_0x22a56e=Object['assign']({},_0x2e4adc['attributes']),_0x56b27d?_0x5345e4['start']['isBefore'](_0x56b27d['getFirstRange']()['start'])?(_0x56b27d['removeMarkers'](),_0x56b27d=_0x2e4adc):_0x2e4adc['removeMarkers']():_0x56b27d=_0x2e4adc;}}}if(_0x56b27d)return this['_setSuggestionRange'](_0x56b27d,this['_model']['createRange'](_0x41f139,_0x4c37d2)),_0x56b27d;{const _0x3df2ee=_0x65b9b5(),_0x460a8c=this['_model']['createRange'](_0x41f139,_0x4c37d2),_0x2cbec8=_0x3e5af1['id'],_0x619b90=_0x19ce7d?'deletion:'+_0x19ce7d:'deletion',_0x38726a=this['_setSuggestionData']({'id':_0x3df2ee,'type':_0x619b90,'createdAt':new Date(),'authorId':_0x2cbec8,'attributes':_0x22a56e});return this['_addSuggestionMarker'](_0x619b90,_0x3df2ee,_0x2cbec8,_0x460a8c),_0x38726a;}}['markMultiRangeDeletion'](_0x2b54a3,_0x32fb4e='multi',_0x92c8a4={}){const _0x44d306=this['editor']['plugins']['get']('Users')['me'],_0x4df6a3=_0x2b54a3['map'](_0x2a6baf=>new _0xc48f37(_0x2a6baf['start'],_0x2a6baf['end'])),_0x131961=new Set();this['_trackingSessionId']&&(_0x92c8a4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x40f36c,meta:_0x2077b6}of this['_findSuggestions'](_0x4df6a3,'insertion'))_0x2077b6['isOwn']&&!_0x2077b6['isNextTo']&&_0x131961['add'](_0x40f36c);for(const _0x557447 of _0x131961)if(_0x557447['isMultiRange']){const _0x1bfdfe=_0x557447['getRanges']();(!_0x557447['attributes']||!_0x557447['attributes']['skipNestingCheck'])&&(_0x1bfdfe['every'](_0xd05e35=>_0x4df6a3['some'](_0x1a2897=>_0x1a2897['containsRange'](_0xd05e35,!0x0)))&&_0x557447['discard']());if(_0x4df6a3['every'](_0x512eb0=>_0x1bfdfe['some'](_0x55df6f=>_0x55df6f['containsRange'](_0x512eb0,!0x0)))){const _0x2e21ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32fb4e,'accept');return this['forceDefaultExecution'](()=>_0x2e21ba(_0x2b54a3,null,_0x92c8a4)),null;}}else{const _0xd0b90c=_0x557447['getFirstRange']();_0x4df6a3['some'](_0x18f99b=>_0x18f99b['containsRange'](_0xd0b90c,!0x0))&&_0x557447['discard']();if(_0x4df6a3['every'](_0x2e419d=>_0xd0b90c['containsRange'](_0x2e419d,!0x0))){const _0x3a61d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32fb4e,'accept');return this['forceDefaultExecution'](()=>_0x3a61d6(_0x4df6a3,null,_0x92c8a4)),null;}}const _0x4200c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32fb4e,'join');let _0x15cb6b=null;for(const _0x5c5ef5 of this['getSuggestions']())if(_0x5c5ef5['author']['id']==_0x44d306['id']&&_0x5c5ef5['isInContent']&&'deletion'==_0x5c5ef5['type']&&_0x5c5ef5['subType']==_0x32fb4e&&Xt(_0x5c5ef5,_0x92c8a4)&&(_0x4200c3(_0x5c5ef5['getRanges'](),_0x4df6a3)||_0x4200c3(_0x4df6a3,_0x5c5ef5['getRanges']()))){if(_0x15cb6b){if(_0x5c5ef5['commentThread']&&_0x5c5ef5['commentThread']['length'])continue;for(const _0xa62a0f of _0x5c5ef5['getRanges']())_0x15cb6b['isIntersectingWithRange'](_0xa62a0f)||_0x15cb6b['addRange'](_0xa62a0f);_0x5c5ef5['removeMarkers']();}else{_0x15cb6b=_0x5c5ef5;for(const _0x206c37 of _0x4df6a3)_0x5c5ef5['isIntersectingWithRange'](_0x206c37)||_0x5c5ef5['addRange'](_0x206c37);}}if(_0x15cb6b)return _0x15cb6b;_0x131961['clear']();for(const {suggestion:_0x5de1f5,meta:_0x478cee}of this['_findSuggestions'](_0x4df6a3,'deletion'))_0x478cee['isOwn']&&(this['_mergeNestedSuggestions']||!_0x478cee['containsRangeInObject']&&!_0x478cee['isInsideObject'])&&Xt(_0x5de1f5,_0x92c8a4)&&_0x131961['add'](_0x5de1f5);for(const _0x2d9a54 of _0x131961){const _0x3792ce=_0x2d9a54['getRanges']();if(!_0x92c8a4||!_0x92c8a4['skipNestingCheck']){if(_0x4df6a3['every'](_0x37959a=>_0x3792ce['some'](_0x525ee8=>_0x525ee8['containsRange'](_0x37959a,!0x0))))return _0x2d9a54;}(!_0x2d9a54['attributes']||!_0x2d9a54['attributes']['skipNestingCheck'])&&(_0x3792ce['every'](_0x509a4f=>_0x4df6a3['some'](_0x178c5a=>_0x178c5a['containsRange'](_0x509a4f,!0x0)))&&_0x2d9a54['discard']());}const _0x4d826a=_0x65b9b5(),_0x46c2db=_0x44d306['id'],_0x4535bc='deletion:'+_0x32fb4e,_0x10994f=this['_setSuggestionData']({'id':_0x4d826a,'type':_0x4535bc,'createdAt':new Date(),'authorId':_0x46c2db,'attributes':_0x92c8a4});for(const _0x29a969 of _0x4df6a3)_0x29a969['detach'](),_0x29a969['isCollapsed']||'$graveyard'==_0x29a969['root']['rootName']||this['_addSuggestionMarker'](_0x4535bc,_0x4d826a,_0x46c2db,_0x29a969,o['getMultiRangeId']());return _0x10994f;}['markAttributeChange'](_0x55da2c,_0x32d3e7,_0x568444,_0x1c5dad,_0x1731ef){if(_0x55da2c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x564bf8=this['editor']['plugins']['get']('Users')['me']['id'],_0x1befe4=Array['from'](this['_suggestions']['values']())['filter'](_0x2528b9=>'attribute'==_0x2528b9['type']&&_0x2528b9['data']['key']==_0x32d3e7&&_0x2528b9['isIntersectingWithRange'](_0x55da2c));if(this['_trackingSessionId']&&(_0x1731ef['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x488393=this['_findSuggestions'](_0x55da2c,'insertion')['filter'](({meta:_0x316cf5})=>_0x316cf5['isOwn']&&!_0x316cf5['isInsideObject']&&!_0x316cf5['isNextTo'])['map'](({suggestion:_0x21bcb4})=>_0x21bcb4);_0x1befe4['unshift'](..._0x488393);}const _0x328998=new Map([[_0x55da2c,_0x568444]]);for(const _0x172f4d of _0x1befe4){const _0x5f6581='attribute'==_0x172f4d['type']?_0x172f4d['data']['oldValue']:void 0x0,_0x20b0dc=_0x172f4d['getFirstRange'](),_0x41f902=Array['from'](_0x328998['keys']())['find'](_0x3113dc=>_0x3113dc['isIntersecting'](_0x20b0dc));if(!_0x41f902)continue;const _0x16b7e3=_0x41f902['getDifference'](_0x20b0dc);this['_isBlockAttribute'](_0x32d3e7)&&'insertion'==_0x172f4d['type']&&0x0!=_0x16b7e3['length']||(_0x328998['delete'](_0x41f902),_0x16b7e3['forEach'](_0xb24d93=>{_0x328998['set'](_0xb24d93,_0x568444);}),'insertion'!=_0x172f4d['type']&&_0x5f6581!=_0x1c5dad&&_0x328998['set'](_0x41f902['getIntersection'](_0x20b0dc),_0x5f6581));}const _0x4e8599=[];for(const [_0x4757e9,_0x266f68]of _0x328998){const _0x528951=_0x65b9b5(),_0x25ea29={'key':_0x32d3e7,'oldValue':_0x266f68,'newValue':_0x1c5dad};_0x32d3e7['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':_0x32d3e7});const _0x593945=('attribute:'+(_0x32d3e7+'|'+Kt({'newValue':_0x1c5dad})))['substring'](0x0,0x3c),_0x5d4ef1=this['_setSuggestionData']({'id':_0x528951,'type':_0x593945,'data':_0x25ea29,'createdAt':new Date(),'authorId':_0x564bf8,'attributes':_0x1731ef});_0x4e8599['push'](_0x5d4ef1),this['_addSuggestionMarker'](_0x593945,_0x528951,_0x564bf8,_0x4757e9);}return _0x4e8599;}['enableDefaultAttributesIntegration'](_0x174d01){this['enableCommand'](_0x174d01,(_0x2ac230,..._0xbb18e2)=>{this['_recordAttributeChanges'](()=>{_0x2ac230(..._0xbb18e2);});});}['registerBlockAttribute'](_0x49eb8c){this['_blockAttributeKeys']['add'](_0x49eb8c);}['registerInlineAttribute'](_0x7b967a){this['_inlineAttributeKeys']['add'](_0x7b967a);}['startTrackingSession'](_0x93a546){return this['_trackingSessionId']=void 0x0!==_0x93a546?_0x93a546:_0x65b9b5(),this['_trackingSessionId'];}['_getAttributeKey'](_0x37d710){return'attribute'==_0x37d710['type']?_0x37d710['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x203a8a,_0xf6e6a6){const _0x23344b=_0x203a8a['getFirstMarker']();this['_model']['change'](_0x3076ae=>{_0x3076ae['updateMarker'](_0x23344b,{'range':_0xf6e6a6});});}['_addThreadToSuggestion'](_0x282a61){const _0x2bf9ac=_0x282a61['id'],_0xb0b7f9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2bf9ac)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb0b7f9,'threadId':_0x2bf9ac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x17142a=this['_commentsRepository']['getCommentThread'](_0x2bf9ac);_0x17142a['unbind']('isRemovable'),_0x17142a['isRemovable']=!0x1,_0x282a61['commentThread']=_0x17142a;}['_checkSuggestionCorrectness'](_0xd79194,_0x1b5cf0,_0x57ceaf,_0x1311a8){if(_0xd79194['type']!=_0x1b5cf0||_0xd79194['subType']!=_0x57ceaf||_0xd79194['creator']['id']!=_0x1311a8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x328969('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x691d4,_0x4f3bb7){const _0x11a6c5=_0x691d4['getFirstRange']();if(_0x4f3bb7['isEqual'](_0x11a6c5))_0x691d4['removeMarkers']();else{if(_0x11a6c5['containsRange'](_0x4f3bb7)){const _0x3b7f40=this['_model']['createPositionAt'](_0x4f3bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x691d4,this['_model']['createRange'](_0x11a6c5['start'],_0x3b7f40));const _0x24eacc=_0x65b9b5(),_0x4a5760=_0x691d4['creator']['id'],_0x147a4a=_0x691d4['type']+':'+_0x691d4['subType'];this['_setSuggestionData']({'id':_0x24eacc,'type':_0x147a4a,'createdAt':new Date(),'authorId':_0x4a5760,'data':_0x691d4['data'],'attributes':_0x691d4['attributes']});const _0x4dd01e=this['_model']['createPositionAt'](_0x4f3bb7['end']['parent'],'after'),_0x333b2c=this['_model']['createRange'](_0x4dd01e,_0x11a6c5['end']);this['_addSuggestionMarker'](_0x147a4a,_0x24eacc,_0x4a5760,_0x333b2c);}else{if(_0x11a6c5['containsPosition'](_0x4f3bb7['start'])){const _0x471baa=this['_model']['createPositionAt'](_0x4f3bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x691d4,this['_model']['createRange'](_0x11a6c5['start'],_0x471baa));}else{const _0x170c63=this['_model']['createPositionAt'](_0x4f3bb7['end']['parent'],'after');this['_setSuggestionRange'](_0x691d4,this['_model']['createRange'](_0x170c63,_0x11a6c5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2e2f28){for(const {suggestion:_0xfeda77,meta:_0x363f21}of this['_findSuggestions'](_0x2e2f28,'insertion')){if(!_0x363f21['isOwn'])continue;const _0x39842f=_0xfeda77['getRanges']();for(const _0x3fad75 of _0x39842f)if(!_0x2e2f28['getDifference'](_0x3fad75)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b4078){const _0x3cbaa1=this['editor']['plugins']['get']('Users')['getUser'](_0x4b4078);if(!_0x3cbaa1)throw new _0x328969('track-changes-user-not-found',this);return _0x3cbaa1;}['_getExternalAuthor'](_0x5da9d8){const _0x47efb6=this['editor']['plugins']['get']('Users'),_0x494865=_0x4ad782('external:'+_0x5da9d8),_0x3cd301=_0x47efb6['getUser'](_0x494865);return _0x3cd301||_0x47efb6['addUser']({'id':_0x494865,'name':_0x5da9d8});}['_createSuggestion'](_0x5c3ea3,_0x31298b,_0x305b3d,_0x157bfc,_0x2a7952){const _0x1ab7db=this['_getAuthorFromId'](_0x157bfc),_0xb07e94=this['_suggestionFactory']['buildSuggestion'](_0x5c3ea3,_0x31298b,_0x305b3d,_0x1ab7db,_0x2a7952,_0x190b61=>{this['_updateSuggestionData'](_0x305b3d,{'attributes':_0x190b61});const _0x4e860f=this['getSuggestion'](_0x305b3d);this['_joinWithAdjacentSuggestions'](new Set([_0x4e860f])),this['_refreshSuggestionsChain'](new Set([_0x4e860f]));});return this['listenTo'](_0xb07e94,'accept',()=>{this['_updateSuggestionData'](_0x305b3d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb07e94,'discard',()=>{this['_updateSuggestionData'](_0x305b3d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x305b3d,_0xb07e94),this['_suggestionState']['set'](_0xb07e94,'notReady'),_0xb07e94;}['_splitMarkerName'](_0x4681aa){const _0x42fdc5=_0x4681aa['split'](':');return{'group':_0x42fdc5[0x0],'type':_0x42fdc5[0x1],'subType':_0x42fdc5['length']>=0x5?_0x42fdc5[0x2]:null,'id':_0x42fdc5['length']<0x5?_0x42fdc5[0x2]:_0x42fdc5[0x3],'authorId':_0x42fdc5['length']<0x5?_0x42fdc5[0x3]:_0x42fdc5[0x4],'markerCount':0x6==_0x42fdc5['length']?_0x42fdc5[0x5]:null};}['_breakSuggestionMarker'](_0x23dd09,_0x2fdf26,_0x1bf356){const _0x19b7b4=_0x23dd09['getFirstRange'](),_0x1a770f=_0x19b7b4['start'],_0x55938f=_0x19b7b4['end'];this['_setSuggestionRange'](_0x23dd09,this['_model']['createRange'](_0x1a770f,_0x2fdf26));const _0x2bcc7c=_0x65b9b5(),_0x12b094=_0x23dd09['creator']['id'],_0x377472=_0x23dd09['type']+(_0x23dd09['subType']?':'+_0x23dd09['subType']:'');this['_setSuggestionData']({'id':_0x2bcc7c,'type':_0x377472,'createdAt':new Date(),'authorId':_0x12b094,'originalSuggestionId':_0x23dd09['id'],'attributes':_0x23dd09['attributes'],'data':_0x23dd09['data']});const _0x462553=this['_getAttributeKey'](_0x23dd09);('formatBlock'==_0x23dd09['type']||_0x462553&&this['_isBlockAttribute'](_0x462553))&&(_0x1bf356=this['_model']['createPositionBefore'](_0x1bf356['parent'])),this['_addSuggestionMarker'](_0x377472,_0x2bcc7c,_0x12b094,this['_model']['createRange'](_0x1bf356,_0x55938f));}['_findSuggestions'](_0x4eef03,_0x5eb856=null){const _0x51c7d1=[],_0x4295fa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4eef03)||(_0x4eef03=[_0x4eef03]);for(const _0x1ad9a9 of this['getSuggestions']()){if(!_0x1ad9a9['isInContent'])continue;if(_0x5eb856&&_0x1ad9a9['type']!=_0x5eb856)continue;let _0x4023ac=!0x1;for(const _0x1a58e8 of _0x1ad9a9['getRanges']()){for(const _0x43594a of _0x4eef03){const _0x20cd4a=_0x43594a['start']['isEqual'](_0x1a58e8['end'])||_0x43594a['end']['isEqual'](_0x1a58e8['start']);if(_0x20cd4a||_0x43594a['getIntersection'](_0x1a58e8)){const _0x3f2c6d=_0x43594a['containsRange'](_0x1a58e8)&&Gt(this['_model']['schema'],_0x1a58e8['start'],_0x43594a),_0x50ca9d=_0x1a58e8['containsRange'](_0x43594a)&&Gt(this['_model']['schema'],_0x43594a['start'],_0x1a58e8);_0x51c7d1['push']({'suggestion':_0x1ad9a9,'meta':{'isOwn':_0x4295fa==_0x1ad9a9['author'],'isNextTo':_0x20cd4a,'isInsideObject':_0x3f2c6d,'containsRangeInObject':_0x50ca9d}}),_0x4023ac=!0x0;break;}}if(_0x4023ac)break;}}return _0x51c7d1;}['_addSuggestionMarker'](_0xcfc5d0,_0x279ad7,_0x3a60f3,_0x2205c9,_0x1f83c5){this['_model']['change'](_0x275f32=>{let _0x519102='suggestion:'+_0xcfc5d0+':'+_0x279ad7+':'+_0x3a60f3;_0x1f83c5&&(_0x519102=_0x519102+':'+_0x1f83c5),_0x275f32['addMarker'](_0x519102,{'range':_0x2205c9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51b99f){const _0x32504a=_0x51b99f['previous'],_0x5e0e2b=_0x51b99f['next'];_0x51b99f['previous']=null,_0x51b99f['next']=null,null!=_0x32504a&&_0x32504a['next']==_0x51b99f&&(_0x32504a['next']=_0x5e0e2b),null!=_0x5e0e2b&&_0x5e0e2b['previous']==_0x51b99f&&(_0x5e0e2b['previous']=_0x32504a),'ready'==this['_suggestionState']['get'](_0x51b99f)&&(this['_suggestionState']['set'](_0x51b99f,'removed'),this['fire']('suggestionUnloaded',_0x51b99f,_0x32504a,_0x5e0e2b));}['_setSuggestionData'](_0x13522d){const _0x1b8888=_0x13522d['id'],_0x1f56f3=this['addSuggestionData'](_0x13522d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5af287=this['editor']['plugins']['get']('PendingActions'),_0x5ef9b8=_0x1f56f3['hasComments'],_0x5945a5=_0x1f56f3['subType']?_0x1f56f3['type']+':'+_0x1f56f3['subType']:_0x1f56f3['type'],_0xfb829f=this['editor']['locale'],_0x10fa3e=_0x5af287['add'](c(_0xfb829f,'PENDING_ACTION_SUGGESTION')),_0x4b284b={'id':_0x1b8888,'type':_0x5945a5,'hasComments':_0x5ef9b8,'data':_0x13522d['data']||null,'originalSuggestionId':_0x13522d['originalSuggestionId']||null,'attributes':_0x1f56f3['attributes']};this['_adapter']['addSuggestion'](_0x4b284b)['then'](_0x80d5c3=>{_0x1f56f3['_saved']=!0x0,_0x5af287['remove'](_0x10fa3e),_0x80d5c3&&_0x80d5c3['createdAt']&&(this['_suggestions']['get'](_0x1b8888)['createdAt']=_0x80d5c3['createdAt']);})['catch'](_0x2aa22b=>{throw _0x406a97('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1f56f3['discard']();}),_0x1f56f3['stopListening'](),this['_suggestions']['delete'](_0x1f56f3['id']),this['_suggestionState']['delete'](_0x1f56f3),_0x2aa22b;});}return _0x1f56f3;}['_isBlockAttribute'](_0x1b0a50){return this['_blockAttributeKeys']['has'](_0x1b0a50);}['_updateSuggestionData'](_0xafc84d,_0x3b1086){const _0x37767d=this['editor']['plugins']['get']('PendingActions'),_0x1b3f6d=this['getSuggestion'](_0xafc84d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1b3f6d['_saved']){const _0x314917=_0x37767d['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xafc84d,_0x3b1086)['then'](()=>{_0x37767d['remove'](_0x314917);});}else _0x1b3f6d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xafc84d,_0x3b1086);});}}['_getSuggestionData'](_0x56acde){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x328969('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x56acde);}['_handleNewSuggestionMarker'](_0x4a2083){const {id:_0x4301cd,type:_0x5267d0,subType:_0x2260bc,authorId:_0x6e3da4}=this['_splitMarkerName'](_0x4a2083),_0x45dc32=this['_suggestions']['get'](_0x4301cd)||this['_createSuggestion'](_0x5267d0,_0x2260bc,_0x4301cd,_0x6e3da4,{});switch(this['_checkSuggestionCorrectness'](_0x45dc32,_0x5267d0,_0x2260bc,_0x6e3da4),this['_suggestionState']['get'](_0x45dc32)){case'notReady':this['_getSuggestionData'](_0x4301cd)['then'](_0x2abdbe=>{let _0x430fb0=Promise['resolve']();_0x2abdbe['hasComments']&&(_0x430fb0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4301cd})),_0x430fb0['then'](()=>{this['addSuggestionData'](_0x2abdbe)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x45dc32,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4301cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x45dc32,'ready'),this['fire']('suggestionLoaded',_0x45dc32);break;case'ready':this['fire']('suggestionChanged',_0x45dc32);}return _0x45dc32['addMarkerName'](_0x4a2083),_0x45dc32;}['_refreshSuggestionsChain'](_0x14da5d){const _0x57b97f=Array['from'](_0x14da5d),_0x25dfae=_0x57b97f['filter'](_0x28744c=>'attribute'==_0x28744c['type']);this['_refreshAttributeSuggestionsChain'](_0x25dfae);const _0x29694c=_0x57b97f['filter'](_0x4320f8=>!_0x4320f8['isMultiRange']&&'attribute'!=_0x4320f8['type']),_0x13f720=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20153f=>!_0x20153f['isMultiRange']&&'attribute'!=_0x20153f['type']),_0x4a5e19=_0x13f720['filter'](_0x3512fe=>!_0x14da5d['has'](_0x3512fe)),_0x1ab8a4=new Map(_0x13f720['map'](_0xefc519=>[_0xefc519,this['_suggestionFactory']['getSuggestionCallback'](_0xefc519['type'],_0xefc519['subType'],'chain')])),_0x584d09=new Map(_0x13f720['map'](_0x419e6f=>[_0x419e6f,_0x419e6f['getFirstRange']()])),_0x1470b0=new Set(),_0x2e5888=new Set();for(let _0x5a6b38=0x0;_0x5a6b38<_0x29694c['length'];_0x5a6b38++)_0xecde67(_0x29694c[_0x5a6b38],_0x29694c,_0x5a6b38+0x1);for(let _0x5a8034=0x0;_0x5a8034<_0x29694c['length'];_0x5a8034++)_0xecde67(_0x29694c[_0x5a8034],_0x4a5e19,0x0);const _0x2ea7e2=new Set();for(let _0x51fb5e=0x0;_0x51fb5e<_0x29694c['length'];_0x51fb5e++){const _0x106a71=_0x29694c[_0x51fb5e];!_0x2e5888['has'](_0x106a71)&&_0x106a71['previous']&&(_0x2ea7e2['add'](_0x106a71['previous']),_0x106a71['previous']['next']===_0x106a71&&(_0x106a71['previous']['next']=null),_0x106a71['previous']=null),!_0x1470b0['has'](_0x106a71)&&_0x106a71['next']&&(_0x2ea7e2['add'](_0x106a71['next']),_0x106a71['next']['previous']===_0x106a71&&(_0x106a71['next']['previous']=null),_0x106a71['next']=null);}function _0xecde67(_0x56ba8a,_0x2132b4,_0x4f82db){for(let _0x1f4865=_0x4f82db;_0x1f4865<_0x2132b4['length'];_0x1f4865++){const _0x2657f1=_0x59900f(_0x56ba8a,_0x2132b4[_0x1f4865]);_0x2657f1&&(_0x2657f1[0x0]['next']=_0x2657f1[0x1],_0x2657f1[0x1]['previous']=_0x2657f1[0x0],_0x1470b0['add'](_0x2657f1[0x0]),_0x2e5888['add'](_0x2657f1[0x1]));}}function _0x59900f(_0x251c4d,_0x5b3941){if(_0x251c4d['author']['id']!==_0x5b3941['author']['id'])return null;const _0x2f4a4a=_0x1ab8a4['get'](_0x251c4d)(_0x251c4d,_0x5b3941,_0x584d09['get'](_0x251c4d),_0x584d09['get'](_0x5b3941));if(!_0x2f4a4a)return null;return _0x1ab8a4['get'](_0x5b3941)(_0x251c4d,_0x5b3941,_0x584d09['get'](_0x251c4d),_0x584d09['get'](_0x5b3941))?_0x2f4a4a[0x1]['commentThread']&&_0x2f4a4a[0x1]['commentThread']['length']?null:_0x2f4a4a:null;}_0x2ea7e2['size']&&this['_refreshSuggestionsChain'](_0x2ea7e2);}['_refreshAttributeSuggestionsChain'](_0xa3aa46){if(0x0==_0xa3aa46['length'])return;const _0x136522=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4900af=>'attribute'==_0x4900af['type']&&_0x4900af['_isDataLoaded']),_0x24be8d=[],_0x469e14=new Map();for(const _0x2b6bf4 of _0x136522){const _0x247338=_0x4ad782(_0x2b6bf4['attributes']);_0x469e14['has'](_0x247338)||(_0x469e14['set'](_0x247338,_0x24be8d['length']),_0x24be8d['push']([]));const _0x2c84d1=_0x469e14['get'](_0x247338);_0x24be8d[_0x2c84d1]['push'](_0x2b6bf4);}!(function(){_0x24be8d['sort']((_0x24e413,_0x449021)=>{const _0x226fa5=_0x24e413[0x0]['createdAt'],_0x5894fd=_0x449021[0x0]['createdAt'];return _0x226fa5==_0x5894fd?_0x24e413[0x0]['attributes']['groupId']<_0x449021[0x0]['attributes']['groupId']?-0x1:0x1:_0x226fa5<_0x5894fd?-0x1:0x1;});for(const _0x5769e0 of _0x24be8d)_0x5769e0['sort']((_0x145723,_0x11694e)=>_0x145723['id']<_0x11694e['id']?-0x1:0x1);}());for(let _0x356192=0x0;_0x356192<_0x24be8d['length'];_0x356192++){if(0x0==_0x24be8d[_0x356192]['length'])continue;const _0x5c3875=[];for(let _0x298208=_0x356192+0x1;_0x298208<_0x24be8d['length'];_0x298208++)0x0!=_0x24be8d[_0x298208]['length']&&_0x3a8ab5(_0x24be8d[_0x356192],_0x24be8d[_0x298208])&&_0x5c3875['push'](_0x298208);for(const _0x1042fa of _0x5c3875)_0x24be8d[_0x356192]=_0x24be8d[_0x356192]['concat'](_0x24be8d[_0x1042fa]),_0x24be8d[_0x1042fa]=[];}for(const _0x547e0f of _0x24be8d)for(let _0x2bdea1=0x0;_0x2bdea1<_0x547e0f['length'];_0x2bdea1++){const _0x558219=_0x547e0f[_0x2bdea1+0x1]||null;_0x547e0f[_0x2bdea1]['next']!==_0x558219&&(_0x547e0f[_0x2bdea1]['next']=_0x558219);}for(const _0x353ad9 of _0x24be8d)for(let _0xeaaa0c=0x0;_0xeaaa0c<_0x353ad9['length'];_0xeaaa0c++){const _0x2f9626=_0x353ad9[_0xeaaa0c-0x1]||null;_0x353ad9[_0xeaaa0c]['previous']!==_0x2f9626&&(_0x353ad9[_0xeaaa0c]['previous']=_0x2f9626);}function _0x3a8ab5(_0x17ccda,_0x2b893c){if(_0x17ccda[0x0]['attributes']['groupId']!==_0x2b893c[0x0]['attributes']['groupId']&&_0x17ccda[0x0]['author']!==_0x2b893c[0x0]['author'])return!0x1;if(!function(_0x44dfbb,_0xa72bd7){if(!_0x44dfbb['hasComments']&&!_0xa72bd7['hasComments'])return!0x0;if(_0x44dfbb['hasComments']&&_0xa72bd7['hasComments'])return!0x1;if(_0x44dfbb['hasComments']&&_0xa72bd7['createdAt']<_0x44dfbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xa72bd7['hasComments']&&_0x44dfbb['createdAt']<_0xa72bd7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17ccda[0x0],_0x2b893c[0x0]))return!0x1;const _0x762ffb=Ft(_0x17ccda[0x0]['attributes'],['groupId','trackingSessionId']),_0x5150a0=Ft(_0x2b893c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x36734a(_0x762ffb,_0x5150a0))return!0x1;if(_0x17ccda[0x0]['attributes']['groupId']==_0x2b893c[0x0]['attributes']['groupId'])return!0x0;if(_0x17ccda[0x0]['attributes']['trackingSessionId']!==_0x2b893c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x17ccda['every'](_0x427f60=>_0x2b893c['some'](_0xaec0f3=>_0x427f60['getFirstRange']()['isEqual'](_0xaec0f3['getFirstRange']())))&&_0x2b893c['every'](_0x695bc0=>_0x17ccda['some'](_0x4e37dd=>_0x695bc0['getFirstRange']()['isEqual'](_0x4e37dd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c73cb){const _0x16ad3f=Array['from'](_0x5c73cb),_0x30d146=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24c7c6=_0x30d146['filter'](_0x56d97b=>!_0x5c73cb['has'](_0x56d97b)),_0x371e1f=new Map(_0x16ad3f['map'](_0x386b68=>[_0x386b68,this['_suggestionFactory']['getSuggestionCallback'](_0x386b68['type'],_0x386b68['subType'],'join')])),_0xcd4915=new Map(_0x30d146['map'](_0x3dd1c3=>[_0x3dd1c3,_0x3dd1c3['getRanges']()]));for(let _0x1a2eb1=0x0;_0x1a2eb1<_0x16ad3f['length'];_0x1a2eb1++){if(_0x2eaeb5(this,_0x16ad3f[_0x1a2eb1],_0x16ad3f,_0x1a2eb1+0x1))return!0x0;}for(let _0x2a16bf=0x0;_0x2a16bf<_0x16ad3f['length'];_0x2a16bf++){if(_0x2eaeb5(this,_0x16ad3f[_0x2a16bf],_0x24c7c6,0x0))return!0x0;}return!0x1;function _0x2eaeb5(_0x11feb1,_0x22f604,_0x364db6,_0x17d178){for(let _0xadc69b=_0x17d178;_0xadc69b<_0x364db6['length'];_0xadc69b++){const _0x3a51f0=_0x364db6[_0xadc69b];if(_0x3a51f0['type']!==_0x22f604['type']||_0x3a51f0['author']['id']!==_0x22f604['author']['id']||_0x3a51f0['subType']!==_0x22f604['subType'])continue;if(!Qt(_0x22f604,_0x3a51f0))continue;if('attribute'==_0x22f604['type']&&_0x22f604['data']['oldValue']!=_0x3a51f0['data']['oldValue'])continue;if('attribute'==_0x22f604['type']&&_0x11feb1['_isBlockAttribute'](_0x22f604['data']['key']))continue;if('formatBlock'==_0x22f604['type']){const _0x59b75b=_0x11feb1['editor']['model'],_0xb9b11d=_0x22f604['getContainedElement']();if(_0xb9b11d&&(_0x59b75b['schema']['isObject'](_0xb9b11d)||_0x59b75b['schema']['isLimit'](_0xb9b11d)))continue;}const _0x2b31a6=_0x371e1f['get'](_0x22f604),_0x25774c=_0xcd4915['get'](_0x22f604),_0x28b912=_0xcd4915['get'](_0x3a51f0),_0x25f6ee=_0x22f604['commentThread']&&_0x22f604['commentThread']['length'],_0x28fe37=_0x3a51f0['commentThread']&&_0x3a51f0['commentThread']['length'];if(!_0x25f6ee&&_0x2b31a6(_0x28b912,_0x25774c))return _0x11feb1['_joinSuggestions'](_0x3a51f0,_0x22f604),_0xcd4915['delete'](_0x22f604),!0x0;if(!_0x28fe37&&_0x2b31a6(_0x25774c,_0x28b912))return _0x11feb1['_joinSuggestions'](_0x22f604,_0x3a51f0),_0xcd4915['delete'](_0x3a51f0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c556b,_0x298b9b){if(_0x2c556b['isMultiRange']){for(const _0x347f4e of _0x298b9b['getRanges']())_0x2c556b['addRange'](_0x347f4e);}else{const _0x35b5c0=_0x298b9b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c556b,this['_model']['createRange'](_0x2c556b['getFirstRange']()['start'],_0x35b5c0));}_0x298b9b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e5b1a,_0x4e768d,_0x43acf8){const _0x3b3a87=_0x5e5b1a['startsWith']('format')||_0x5e5b1a['startsWith']('attribute')?'FORMATTING':_0x5e5b1a['toUpperCase']();return c(this['editor']['locale'],_0x4e768d+'_'+_0x3b3a87+'_SUGGESTION_ANNOUNCEMENT',_0x43acf8);}['_initAriaMarkerChangeAnnouncements'](){const _0x3d4ac2=this['editor'];if(!_0x3d4ac2['ui'])return;const {ariaLiveAnnouncer:_0x5e1ff5}=_0x3d4ac2['ui'];_0x155b57(this['_model'],({left:_0x1dbcef,entered:_0x10b99c})=>{for(const _0x308dad of _0x1dbcef){const {group:_0x2c5fa4,type:_0x2c8c8d}=this['_splitMarkerName'](_0x308dad['name']);if('suggestion'===_0x2c5fa4){_0x5e1ff5['announce'](this['_getMarkerAnnouncementText'](_0x2c8c8d,'LEAVE'));break;}}for(const _0x2b0ca7 of _0x10b99c){const {group:_0x28c5fb,type:_0x2a909d}=this['_splitMarkerName'](_0x2b0ca7['name']);if('suggestion'===_0x28c5fb){_0x5e1ff5['announce'](this['_getMarkerAnnouncementText'](_0x2a909d,'ENTER',_0x599e40(_0xb4b862)));break;}}});}['_processAttributeChanges'](_0x4d82a0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f257a=this['editor'],_0x51cd05=_0x3f257a['model']['document']['differ']['getChanges']();if(0x0==_0x51cd05['length'])return!0x1;const _0x3999df=[],_0x15f80a=_0x51cd05['filter'](_0x46630e=>'attribute'==_0x46630e['type']),_0x3dc56c=_0x51cd05['filter'](_0x4727ad=>'insert'==_0x4727ad['type']&&'$text'!=_0x4727ad['name']),_0x26a4d2=_0x51cd05['filter'](_0x1fe3cf=>'remove'==_0x1fe3cf['type']&&'$text'!=_0x1fe3cf['name']);for(const _0x57cca8 of _0x15f80a)_0x3999df['push']({'key':_0x57cca8['attributeKey'],'newValue':_0x57cca8['attributeNewValue'],'oldValue':_0x57cca8['attributeOldValue'],'range':qt(_0x57cca8['range'],_0x3f257a['model'])});for(const _0x3b814d of _0x3dc56c){const _0x4cddbc=_0x26a4d2['find'](_0x3cd61b=>_0x3cd61b['position']['isEqual'](_0x3b814d['position']));_0x4cddbc&&_0x3999df['push']({'key':u,'newValue':_0x3b814d['name'],'oldValue':_0x4cddbc['name'],'range':_0x3f257a['model']['createRangeOn'](_0x3b814d['position']['nodeAfter'])});}return 0x0!=_0x3999df['length']&&this['_reduceExistingSuggestions'](_0x4d82a0,_0x3999df);}['_processAttributeSuggestions'](_0x800e64){let _0x23b1dd=!0x1;const _0x3f43ce=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3a6da3=>_0x3a6da3['data']['newRange']&&_0x3a6da3['name']['startsWith']('suggestion:attribute:'));for(const _0x5de58a of _0x3f43ce){const {subType:_0x459ad0,id:_0x354d6f}=this['_splitMarkerName'](_0x5de58a['name']),_0xc16f3a=_0x459ad0['split']('|')[0x0];for(const _0x250642 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x250642['id']!=_0x354d6f&&'attribute'==_0x250642['type']&&_0x250642['data']&&_0x250642['data']['key']==_0xc16f3a&&_0x250642['getFirstRange']()['isIntersecting'](_0x5de58a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x250642,_0x5de58a['data']['newRange'],_0x800e64),_0x23b1dd=!0x0);}return _0x23b1dd;}['_recordAttributeChanges'](_0x31c6f8){this['_recordAttributeSuggestions']=!0x0,_0x31c6f8();}['_isRegisteredAttribute'](_0x3d3115){const _0x4c87d8=this['_isBlockAttribute'](_0x3d3115),_0x2a2d25=this['_inlineAttributeKeys']['has'](_0x3d3115);return _0x4c87d8||_0x2a2d25;}['_reduceExistingSuggestions'](_0x276fba,_0x318012){if(0x0==_0x318012['length'])return!0x1;let _0x1d3d4e=!0x1;for(const _0x1881e9 of _0x318012){const _0x17ff11=this['_findSuggestions'](_0x1881e9['range'],'attribute')['filter'](_0x336766=>!_0x336766['meta']['isNextTo'])['map'](_0x56642a=>_0x56642a['suggestion']),_0x3f5c48=_0x4ad782({'newValue':_0x1881e9['newValue']});_0x17ff11['filter'](_0x2a6f6b=>{const [_0x4dd1ea,_0x45df5f]=_0x2a6f6b['subType']['split']('|');return _0x4dd1ea==_0x1881e9['key']&&_0x45df5f!=_0x3f5c48;})['forEach'](_0x1208a6=>{this['_reduceSuggestionAttributeRange'](_0x1208a6,_0x1881e9['range'],_0x276fba),_0x1d3d4e=!0x0;});}return _0x1d3d4e;}['_reduceSuggestionAttributeRange'](_0x403ba0,_0x279bc3,_0x5ae1bb){const _0xc8713b=_0x403ba0['getFirstRange']()['getDifference'](_0x279bc3);0x0!==_0xc8713b['length']?0x1!==_0xc8713b['length']?this['_breakSuggestionMarker'](_0x403ba0,_0x279bc3['start'],_0x279bc3['end']):this['_setSuggestionRange'](_0x403ba0,_0xc8713b[0x0]):_0x5ae1bb['removeMarker'](_0x403ba0['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x511946){this['_editor']=_0x511946,this['_model']=_0x511946['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54be64,_0x653a84,_0x1932b4,_0x345008,_0x5c2956,_0x29cea7){return new o(this['_model'],{'type':_0x54be64,'subType':_0x653a84,'id':_0x1932b4,'author':_0x345008,'creator':_0x345008,'attributes':_0x5c2956,'onAttributesChange':_0x29cea7,'onAccept':(..._0x39e3c9)=>this['getSuggestionCallback'](_0x54be64,_0x653a84,'accept')(..._0x39e3c9),'onDiscard':(..._0x14c9e7)=>this['getSuggestionCallback'](_0x54be64,_0x653a84,'discard')(..._0x14c9e7)});}['registerCustomCallback'](_0x15601c,_0x424c15,_0x4de42c,_0x2808ef){const _0x5dfb80=_0x15601c+':'+_0x424c15+':'+_0x4de42c;this['_customCallbacks']['set'](_0x5dfb80,_0x2808ef);}['getSuggestionCallback'](_0x5c6167,_0x575fc4,_0x371754){const _0x2b130e=_0x5c6167+':'+_0x575fc4+':'+_0x371754;return this['_customCallbacks']['get'](_0x2b130e)||this['_defaultCallbacks']['get'](_0x5c6167+':'+_0x371754);}['_registerDefaultCallbacks'](){const _0x1015e0=()=>!0x1,_0x540871=_0x476161=>{_0x476161['sort']((_0x2c4946,_0x22e836)=>_0x2c4946['start']['isBefore'](_0x22e836['start'])?0x1:-0x1),this['_model']['change'](_0x1bf67a=>{for(const _0x5891ec of _0x476161){let _0x21b475;_0x21b475=_0x5891ec['end']['isAtEnd']&&_0x5891ec['end']['parent']==_0x5891ec['start']['nodeAfter']?_0x1bf67a['createSelection'](_0x5891ec['start']['nodeAfter'],'on'):_0x1bf67a['createSelection'](_0x5891ec),this['_model']['deleteContent'](_0x21b475,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4aa553=(_0x3abcda,_0x36edaa)=>{_0x36edaa&&this['_model']['change'](_0x4fcc67=>{const {commandName:_0x1be808,commandParams:_0x4858d3=[]}=_0x36edaa,_0x380383=_0x3abcda['map'](_0x4c0868=>(Lt(_0x4c0868)&&(_0x4c0868=this['_model']['createRange'](_0x4c0868['end'])),_0x4c0868))['filter'](_0x45d933=>'$graveyard'!==_0x45d933['root']['rootName']);if(_0x380383['length']<0x1)return;const _0x5ae5f7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5928dd=>_0xc48f37['fromRange'](_0x5928dd));_0x4fcc67['setSelection'](_0x380383);for(const _0x131cb2 of this['_editor']['commands']['commands']())_0x131cb2['refresh']();_0x4858d3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1be808,..._0x4858d3);const _0x14e026=_0x5ae5f7['filter'](_0x13dadc=>'$graveyard'!=_0x13dadc['root']['rootName']);_0x14e026['length']>0x0&&_0x4fcc67['setSelection'](_0x14e026);for(const _0x2503e0 of _0x5ae5f7)_0x2503e0['detach']();});},_0x5dcef4=(_0x2768d6,_0x1ddb65)=>0x1==_0x2768d6['length']&&0x1==_0x1ddb65['length']&&_0x2768d6[0x0]['end']['isEqual'](_0x1ddb65[0x0]['start']),_0x5df3a6=(_0x3a3b6a,_0x1bb361,_0x563815,_0x5c01df)=>Wt(_0x3a3b6a,_0x1bb361,_0x563815,_0x5c01df)?[_0x3a3b6a,_0x1bb361]:Wt(_0x1bb361,_0x3a3b6a,_0x5c01df,_0x563815)?[_0x1bb361,_0x3a3b6a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1015e0),this['_defaultCallbacks']['set']('insertion:discard',_0x540871),this['_defaultCallbacks']['set']('insertion:join',_0x5dcef4),this['_defaultCallbacks']['set']('insertion:chain',_0x5df3a6),this['_defaultCallbacks']['set']('deletion:accept',_0x540871),this['_defaultCallbacks']['set']('deletion:discard',_0x1015e0),this['_defaultCallbacks']['set']('deletion:join',_0x5dcef4),this['_defaultCallbacks']['set']('deletion:chain',_0x5df3a6),this['_defaultCallbacks']['set']('formatInline:accept',_0x4aa553),this['_defaultCallbacks']['set']('formatInline:discard',_0x1015e0),this['_defaultCallbacks']['set']('formatInline:join',_0x5dcef4),this['_defaultCallbacks']['set']('formatInline:chain',_0x1015e0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4aa553),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1015e0),this['_defaultCallbacks']['set']('formatBlock:join',_0x5dcef4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1015e0),this['_defaultCallbacks']['set']('attribute:accept',_0x1015e0),this['_defaultCallbacks']['set']('attribute:discard',(_0x48c4b4,_0x44f65f)=>{if(!_0x44f65f)return;const _0x5acbe0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3bca49=>{if(_0x44f65f['key']==u)for(const _0x5c8be4 of _0x48c4b4){const _0xac3ed6=_0x5c8be4['start']['nodeAfter'],_0x206e8d=_0x44f65f['oldValue'];_0x3bca49['rename'](_0xac3ed6,_0x206e8d);}else{if(_0x5acbe0['_isBlockAttribute'](_0x44f65f['key'])){for(const _0x3d3eb1 of _0x48c4b4)void 0x0!==_0x44f65f['oldValue']?_0x3bca49['setAttribute'](_0x44f65f['key'],_0x44f65f['oldValue'],_0x3d3eb1['start']['nodeAfter']):_0x3bca49['removeAttribute'](_0x44f65f['key'],_0x3d3eb1['start']['nodeAfter']);}else{for(const _0x2ff56c of _0x48c4b4)_0x44f65f['oldValue']?_0x3bca49['setAttribute'](_0x44f65f['key'],_0x44f65f['oldValue'],_0x2ff56c):_0x3bca49['removeAttribute'](_0x44f65f['key'],_0x2ff56c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5dcef4);}}function Gt(_0x7ba680,_0x892721,_0x2d7208){for(const _0x43ec42 of _0x892721['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ec42['root']==_0x43ec42)return!0x1;if(!_0x2d7208['containsItem'](_0x43ec42))return!0x1;if(_0x7ba680['isObject'](_0x43ec42)||_0x7ba680['isLimit'](_0x43ec42))return!0x0;}return!0x1;}function Lt(_0x6f5db0){return _0x6f5db0['end']['parent']==_0x6f5db0['start']['nodeAfter']&&_0x6f5db0['end']['isAtStart'];}function Jt(_0x58fed9,_0x470e1b,_0x6c4167,_0x2a364f){const _0x46dc8a=_0x5f5acb=>!_0x5f5acb['item']['is']('$textProxy')&&!_0x2a364f['isObject'](_0x5f5acb['item']),_0x431166=_0x58fed9['start']['getLastMatchingPosition'](_0x46dc8a),_0x4ac2a9=_0x58fed9['end']['getLastMatchingPosition'](_0x46dc8a,{'direction':'backward'});return(!_0x58fed9['start']['isEqual'](_0x431166)||!_0x58fed9['end']['isEqual'](_0x4ac2a9))&&(_0x431166['isBefore'](_0x4ac2a9)?_0x6c4167['updateMarker'](_0x470e1b,{'range':_0x6c4167['createRange'](_0x431166,_0x4ac2a9)}):_0x6c4167['removeMarker'](_0x470e1b),!0x0);}function Kt(_0x496c08){return _0x4ad782(_0x496c08);}function Ht(_0x4476dd){const _0x493537=_0x4476dd['start']['nodeAfter'];return _0x493537&&_0x493537['is']('element');}function qt(_0x4655a9,_0x165a67){return null==_0x4655a9['end']['nodeBefore']&&_0x4655a9['end']['parent']==_0x4655a9['start']['nodeAfter']?zt(_0x4655a9['start']['nodeAfter'],_0x165a67):_0x4655a9;}function zt(_0x390612,_0x4c3458){const _0x51b000=_0x4c3458['schema']['isObject'](_0x390612)||_0x4c3458['schema']['isSelectable'](_0x390612);return _0x4c3458['createRange'](_0x4c3458['createPositionAt'](_0x390612,'before'),_0x51b000?_0x4c3458['createPositionAfter'](_0x390612):_0x4c3458['createPositionAt'](_0x390612,'end'));}function Wt(_0x55511b,_0x314128,_0x5f1f09,_0x4b3f3f){return!!Qt(_0x55511b,_0x314128)&&_0x5f1f09['end']['isEqual'](_0x4b3f3f['start']);}function Qt(_0x4e0b0b,_0x70bbf8){if(!_0x4e0b0b['_isDataLoaded']||!_0x70bbf8['_isDataLoaded'])return!0x1;const _0x95f147=new Set(Object['keys'](_0x4e0b0b['attributes'])),_0x35e282=new Set(Object['keys'](_0x70bbf8['attributes']));if(_0x95f147['delete']('groupId'),_0x35e282['delete']('groupId'),0x0==_0x95f147['size']&&0x0==_0x35e282['size'])return!0x0;if(_0x95f147['size']!=_0x35e282['size'])return!0x1;const _0x435b41={..._0x4e0b0b['attributes']},_0x5e86cb={..._0x70bbf8['attributes']};return delete _0x435b41['groupId'],delete _0x5e86cb['groupId'],JSON['stringify'](_0x435b41)==JSON['stringify'](_0x5e86cb);}function Xt(_0x18f9d9,_0x3c212a){const _0x5386dc=Yt(_0x18f9d9['attributes']),_0x539e93=Yt(_0x3c212a);if(!_0x18f9d9['_isDataLoaded'])return!0x1;for(const _0x14aaea of Object['keys'](_0x539e93))if(!_0x36734a(_0x5386dc[_0x14aaea],_0x539e93[_0x14aaea]))return!0x1;return!0x0;}function Yt(_0x11e418){const _0x2d3ecb=Object['assign']({},_0x11e418);return delete _0x2d3ecb['skipNestingCheck'],delete _0x2d3ecb['tablePasteChainId'],_0x2d3ecb;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x1a7ad4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5c3c59,_0x33c663,_0x26abfb,_0xc9bffa){super(),this['model']=_0x33c663,this['view']=_0x26abfb,this['commentThreadController']=_0xc9bffa,this['_editor']=_0x5c3c59,this['_acceptCommand']=_0x5c3c59['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5c3c59['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36c754,_0x3b92bd)=>_0x36c754||_0x3b92bd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xa1383c=>_0xa1383c&&this['_editor']['model']['canEditAt'](_0x33c663['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x170f53=>_0x170f53&&this['_editor']['model']['canEditAt'](_0x33c663['getRanges']())),this['_pendingAction']=null,_0x26abfb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26abfb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26abfb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26abfb,'change:isDirty',()=>{_0x26abfb['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 _0x4a6bfb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a6bfb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x192474{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x568fb0,_0x137934,_0x122f3f,_0x59e229){super(_0x568fb0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2bb02c(_0x568fb0,c(_0x568fb0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x137934['authoredAt']),this['bind']('authoredAt')['to'](_0x137934),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',_0x137934,'authoredAt',this,'descriptionParts',(_0x8e9b06,_0x25cb4f,_0x1a968d)=>{const _0x4020f8=_0x1a968d['map'](_0x39b005=>ls(_0x39b005['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x8e9b06-0x1,_0x137934['author']['name'],_0x25cb4f?_0x59e229['formatDateTime'](_0x25cb4f):'',new DOMParser()['parseFromString'](_0x4020f8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x192394(),this['focusTracker']=new _0x2d2a08(),this['keystrokes']=new _0x2868fa(),this['focusCycler']=new _0x362be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a71ca=>_0x3a71ca['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x137934,this['_localUser']=_0x122f3f,this['_config']=_0x59e229,_0x59e229['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x540acf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2ddea3}=this['_config'];this['commentsListView']=new _0x2ddea3(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',_0x3c2d64=>_0x3c2d64+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1b4282,_0x5e3ed9)=>_0x1b4282||!!_0x5e3ed9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1baa7e}=this['_config'],_0x4b2294=new _0x1baa7e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15b1a3=_0x4b2294['commentInputView'];return _0x4b2294['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15b1a3,'value',(_0xc9a59a,_0x51abb1,_0x3ce3a8)=>!!_0x3ce3a8||_0xc9a59a&&!_0x51abb1),_0x15b1a3['on']('submit',(_0x4aab33,_0x2ddf3f)=>{this['fire']('addComment',_0x2ddf3f),_0x15b1a3['editor']['setData']('');}),_0x15b1a3['on']('cancel',()=>this['focus']()),_0x15b1a3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b2294;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x59e1a3,_0xba0c9a,_0x1895dc,_0x1f4d23){super(_0x59e1a3,_0xba0c9a,_0x1895dc,_0x1f4d23),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1507f8=>_0x1507f8&&_0x1507f8[0x0]?_0x1507f8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x47a425,_0x32170f)=>{let _0x31d7f9='';for(const _0x4b2f0b of _0x47a425)_0x31d7f9+='<p>'+ls(_0x4b2f0b['content'],_0x4b2f0b['color'])+'</p>';return _0x32170f?_0x31d7f9:ti(_0x31d7f9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1f4d23['SuggestionView'](_0x59e1a3,_0xba0c9a,{'formatDateTime':_0x1f4d23['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 _0x8b9192=this['bindTemplate'],_0xa2a076=[this['suggestionView']];return this['commentsListView']&&_0xa2a076['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa2a076['push'](this['commentThreadInputView']),_0xa2a076['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x8b9192['if']('isActive','ck-suggestion-wrapper--active'),_0x8b9192['to']('type',_0x5562da=>'ck-suggestion-'+_0x5562da),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':_0x8b9192['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa2a076};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x192474{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49d955,_0x4dd143,_0x21a4dd){super(_0x49d955),this['_model']=_0x4dd143,this['_config']=_0x21a4dd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4dd143),this['acceptButton']=this['_createButton'](c(_0x49d955,'Accept\x20suggestion'),_0x527c88,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x49d955,'Discard\x20suggestion'),_0xf1864a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2515a5(_0x49d955,_0x4dd143['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x192394([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2d2a08(),this['keystrokes']=new _0x2868fa(),this['focusCycler']=new _0x362be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x255121=>_0x255121['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x336e9d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x336e9d['innerHTML']=this['description'],this['on']('change:description',(_0x1e3312,_0x19953c,_0x4c48fe)=>{_0x336e9d['innerHTML']=_0x4c48fe;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2eeda9=this['bindTemplate'],_0x2abf0e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2eeda9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2eeda9['to']('authoredAt',_0x109ab5=>this['_config']['formatDateTime'](_0x109ab5))}]}]},{'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']&&_0x2abf0e['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':_0x2abf0e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4dfdeb,_0x5c259e,_0x1e971b,_0x2a217f,_0x3d0a75){const _0x2b293f=new _0x586f95(this['locale']);return _0x2b293f['set']({'label':_0x4dfdeb,'icon':_0x5c259e,'tooltip':!0x0,'tooltipPosition':_0x3d0a75}),_0x2b293f['extendTemplate']({'attributes':{'class':_0x1e971b}}),_0x2b293f['on']('execute',()=>{this['fire'](_0x2a217f,this['_model']['id']);}),_0x2b293f;}['_setupKeyboardNavigation'](){const _0x31a6bd=this['element'];this['keystrokes']['listenTo'](_0x31a6bd);for(const _0x20cb06 of this['focusables'])this['focusTracker']['add'](_0x20cb06['element']),this['keystrokes']['listenTo'](_0x20cb06['element']);this['keystrokes']['set']('enter',(_0x112ed7,_0x5c3d50)=>{_0x31a6bd===_0x112ed7['target']&&(this['focusCycler']['focusFirst'](),_0x5c3d50());}),this['keystrokes']['set']('esc',(_0x3018fd,_0x1da55e)=>{_0x31a6bd!==_0x3018fd['target']&&(this['focus'](),_0x1da55e());});}}class d extends _0x3ff648{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3da637,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42d5a3){super(_0x42d5a3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c8b7e=this['editor']['config'];_0x3c8b7e['define']('trackChanges.SuggestionThreadView',fe),_0x3c8b7e['define']('trackChanges.SuggestionView',we),_0x3c8b7e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c8b7e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4a5f9d,_0x3e0d4d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47100b,_0x4b591c]of this['_handleControllerBuffer']){const _0x5f258f=this['_suggestionToController']['has'](_0x47100b);_0x5f258f||_0x4b591c?_0x5f258f&&_0x4b591c&&this['_destroyController'](_0x47100b):this['_initializeController'](_0x47100b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a5f9d,_0x3e0d4d);}['init'](){const _0x26f190=this['editor'],_0x35d525=_0x26f190['plugins']['get']('TrackChangesEditing'),_0x3c2838=_0x26f190['plugins']['get']('Annotations'),_0x232bb6=_0x26f190['plugins']['get']('EditorAnnotations'),_0x36d84e=_0x26f190['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x232bb6['addSourceCollector'](()=>{const _0x2e1363=[];for(const [_0x14fbd2,_0x54e558]of Array['from'](this['_suggestionToController'])){const _0x5ace27=_0x14fbd2['getAllAdjacentSuggestions'](),_0x1d25b9=[];for(const _0x49b071 of _0x5ace27){if(!_0x49b071['isInContent'])continue;if(_0x49b071['isMultiRange']){_0x1d25b9['push'](..._0x49b071['getRanges']());continue;}const _0xe5f531=_0x49b071['getFirstRange']();if(_0x1d25b9['length']>0x0){const _0x293ddb=_0x1d25b9[0x0]['getJoined'](_0xe5f531);if(_0x293ddb){_0x1d25b9[0x0]=_0x293ddb;continue;}}_0x1d25b9['push'](_0xe5f531);}_0x2e1363['push']([_0x54e558['view'],_0x1d25b9]);}return _0x2e1363;}),this['listenTo'](_0x35d525,'suggestionLoaded',(_0x2d5af7,_0x288200)=>{this['listenTo'](_0x288200,'change:previous',(_0x5ed02c,_0x346708,_0x22c28e,_0x33c9d9)=>{_0x288200['isInContent']&&(null==_0x22c28e?(this['_updateController'](_0x33c9d9['head']),this['_handleSuggestionControllerDelayed'](_0x288200,!0x1)):(this['_updateController'](_0x22c28e['head']),null==_0x33c9d9&&this['_handleSuggestionControllerDelayed'](_0x288200,!0x0)));}),null!==_0x288200['previous']?this['_updateController'](_0x288200['head']):this['_handleSuggestionControllerDelayed'](_0x288200,!0x1);}),this['listenTo'](_0x35d525,'suggestionUnloaded',(_0x31f6e6,_0x31a456,_0x26afe1)=>{this['stopListening'](_0x31a456,'change:previous'),this['_handleControllerBuffer']['delete'](_0x31a456),this['_suggestionToController']['has'](_0x31a456)&&this['_destroyController'](_0x31a456),_0x26afe1&&this['_updateController'](_0x26afe1['head']);}),this['listenTo'](_0x35d525,'suggestionChanged',(_0xec410d,_0x3b7682)=>{this['_updateController'](_0x3b7682);}),this['listenTo'](_0x3c2838,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x36d84e,'addComment',(_0x2c2a6d,{threadId:_0x25fac3,isFromAdapter:_0x188978})=>{if(_0x188978||!_0x35d525['hasSuggestion'](_0x25fac3))return;const _0x499b7b=_0x35d525['getSuggestion'](_0x25fac3);this['_suggestionToController']['get'](_0x499b7b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x477715=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42d827;for(const _0x4d5e04 in _0x477715){const _0x8b08b3=_0x4d5e04,_0x467e43=_0x477715[_0x8b08b3];if('trackChangesLicenseKeyValid'==_0x467e43||'trackChangesLicenseKeyInvalid'==_0x467e43||'trackChangesLicenseKeyExpired'==_0x467e43||'trackChangesLicenseKeyDomainLimit'==_0x467e43||'trackChangesLicenseKeyNotAllowed'==_0x467e43||'trackChangesLicenseKeyEvaluationLimit'==_0x467e43||'trackChangesLicenseKeyTrialLimit'==_0x467e43||'trackChangesLicenseKeyUsageLimit'==_0x467e43){delete _0x477715[_0x8b08b3],_0x42d827=_0x467e43,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x42d827&&_0x477715['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x42d827&&_0x477715['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x42d827&&_0x477715['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x42d827&&_0x477715['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x42d827&&_0x477715['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x42d827&&_0x477715['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x42d827&&_0x477715['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xa2674e=this['editor']['plugins']['get']('Annotations'),_0x41e8ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187c7d=Array['from'](_0xa2674e['activeAnnotations'],_0x4d4221=>_0x4d4221['innerView'])['filter'](_0x47aaf8=>this['_viewToController']['has'](_0x47aaf8)),_0x254781=[];for(const _0x647f06 of _0x187c7d){const _0x217474=this['_viewToController']['get'](_0x647f06)['model']['getAllAdjacentSuggestions']();_0x254781['push'](..._0x217474['reduce']((_0x2bf942,_0x1f68b6)=>[..._0x2bf942,..._0x1f68b6['getMarkerNames']()],[]));}_0x41e8ce['activeMarkers']=_0x254781;}['_addUIComponentsToFactory'](){const _0x5395c7=this['editor'],_0x35104d=_0x5395c7['locale'],_0x299815=c(_0x35104d,'Track\x20changes'),_0x54148d=new _0x443155([{'type':'switchbutton','model':new _0x1a2bb5({'withText':!0x0,'isToggleable':!0x0,'label':_0x299815,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5395c7['plugins']['has']('TrackChangesPreview')&&_0x54148d['addMany']([{'type':'separator'},{'type':'button','model':new _0x1a2bb5({'withText':!0x0,'label':c(_0x35104d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19a87a of _0x54148d)if(ke(_0x19a87a)){const _0x34e591=_0x5395c7['commands']['get'](_0x19a87a['model']['commandName']);_0x19a87a['model']['bind']('isOn','isEnabled')['to'](_0x34e591,'value','isEnabled');}_0x5395c7['ui']['componentFactory']['add']('trackChanges',_0x1b77e3=>this['_createToolbarButton'](_0x1b77e3,_0x54148d,_0x299815)),_0x5395c7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x979ec8=>this['_createMenuBarMenu'](_0x979ec8,_0x54148d,_0x299815));}['_createToolbarButton'](_0x22d554,_0x2be98b,_0x349336){const _0x166332=_0x7654e1(_0x22d554,_0x160840),_0x4c0aa4=this['editor']['commands']['get']('trackChanges');_0x166332['buttonView']['set']({'tooltip':_0x349336,'label':_0x349336,'icon':_0x3d38d9}),_0x166332['buttonView']['bind']('isOn')['to'](_0x4c0aa4,'value'),_0x166332['buttonView']['on']('execute',()=>{_0x4c0aa4['execute'](),this['editor']['editing']['view']['focus']();}),_0x3042ec(_0x166332,_0x2be98b,{'role':'menu'});const _0x8a7d55=[];for(const _0x16c05e of _0x2be98b)ke(_0x16c05e)&&_0x8a7d55['push'](this['editor']['commands']['get'](_0x16c05e['model']['commandName']));const _0x4b33c6=_0x166332['buttonView'];return _0x4b33c6['actionView']['unbind']('isEnabled'),_0x4b33c6['arrowView']['unbind']('isEnabled'),_0x4b33c6['actionView']['bind']('isEnabled')['to'](_0x4c0aa4,'isEnabled'),_0x4b33c6['arrowView']['bind']('isEnabled')['toMany'](_0x8a7d55,'isEnabled',(..._0x17444d)=>_0x17444d['some'](_0x5ec9c8=>_0x5ec9c8)),_0x166332['on']('execute',_0x4b12ec=>{this['editor']['execute'](_0x4b12ec['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x166332;}['_createMenuBarMenu'](_0x468c9c,_0x163f59,_0x24b7ba){const _0x46a763=new _0x4dafe0(_0x468c9c),_0x2f32ee=this['editor']['commands']['get']('trackChanges');_0x46a763['buttonView']['set']({'label':_0x24b7ba,'icon':_0x3d38d9});const _0x25846a=new _0x3cdbbe(_0x468c9c);for(const _0x247dbe of _0x163f59){if('separator'==_0x247dbe['type']){_0x25846a['items']['add'](new _0x26cbfd(_0x468c9c));continue;}const _0x4e9646=new _0x404883(_0x468c9c,_0x46a763),_0x1f6f61=new _0x23f794(_0x468c9c),_0x1c6b92=_0x247dbe['model'];_0x1f6f61['bind'](...Object['keys'](_0x1c6b92))['to'](_0x1c6b92),_0x1f6f61['delegate']('execute')['to'](_0x46a763),_0x1f6f61['on']('execute',()=>{this['editor']['execute'](_0x1c6b92['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e9646['children']['add'](_0x1f6f61),_0x25846a['items']['add'](_0x4e9646);}return _0x46a763['bind']('isEnabled')['to'](_0x2f32ee,'isEnabled'),_0x46a763['panelView']['children']['add'](_0x25846a),_0x46a763;}['_initializeController'](_0x330893){const _0x27d910=this['editor'],_0x25c46d=_0x27d910['config'],_0x50bbda=_0x27d910['plugins']['get']('Annotations'),_0x5d359f=_0x27d910['plugins']['get']('CommentsRepository'),_0x30cd03=_0x27d910['plugins']['get']('EditorAnnotations'),_0x1b8559=_0x27d910['plugins']['get'](_0x3da637)['me'],_0x4bb0a=_0x25c46d['get']('trackChanges')['SuggestionThreadView'],_0x5bc8a9=_0x25c46d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a0755,CommentThreadInputView:_0xacd357}=_0x27d910['plugins']['get']('CommentsUI');let _0x4b4c9e,_0x58f728,_0x3596c7;this['_annotationViews']['has'](_0x330893['id'])?(_0x58f728=this['_annotationViews']['get'](_0x330893['id']),_0x4b4c9e=_0x58f728['mainView']):(_0x4b4c9e=new _0x4bb0a(_0x27d910['locale'],_0x330893,_0x1b8559,{'disableComments':this['_disableComments'],'editorConfig':{..._0x25c46d['get']('comments.editorConfig'),'licenseKey':_0x25c46d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x25c46d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x25c46d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x25c46d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ded0e(_0x25c46d['get']('locale'),_0x27d910['locale']),'CommentView':_0x25c46d['get']('comments')['CommentView'],'CommentsListView':_0x2a0755,'CommentThreadInputView':_0xacd357,'SuggestionView':_0x5bc8a9}),_0x4b4c9e['suggestionView']['acceptButton']['on']('execute',()=>{_0x27d910['editing']['view']['focus']();}),_0x4b4c9e['suggestionView']['discardButton']['on']('execute',()=>{_0x27d910['editing']['view']['focus']();}),_0x58f728=_0x50bbda['createAnnotationView'](this['editor']['locale'],_0x4b4c9e),_0x58f728['bind']('isDirty')['to'](_0x4b4c9e,'isDirty'),_0x58f728['bind']('length')['to'](_0x4b4c9e),_0x58f728['bind']('type')['to'](_0x4b4c9e,'type',_0x170e9a=>'suggestion-'+_0x170e9a),_0x4b4c9e['on']('escape',()=>{_0x3596c7['fire']('escape');}),this['_annotationViews']['set'](_0x330893['id'],_0x58f728));const _0x39f950=_0x5d359f['createCommentThreadController'](_0x330893['commentThread'],_0x4b4c9e),_0x1bee6b=new pe(_0x27d910,_0x330893,_0x4b4c9e,_0x39f950),_0x1d09b4=_0x330893['getAllAdjacentSuggestions']()['filter'](_0x827f3f=>_0x827f3f['isInContent']);_0x4b4c9e['descriptionParts']=_0x27d910['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1d09b4),this['_suggestionToController']['set'](_0x330893,_0x1bee6b),this['_viewToController']['set'](_0x4b4c9e,_0x1bee6b),_0x3596c7=_0x50bbda['createAnnotation']({'view':_0x58f728,'target':()=>{const _0x294ead=[],_0x3a40b2=_0x330893['getAllAdjacentSuggestions']()['filter'](_0x1e589f=>_0x1e589f['isInContent']);for(const _0x35e8f0 of _0x3a40b2)_0x294ead['push'](..._0x35e8f0['getMarkers']());return _0x1e08c5(_0x27d910['editing'],_0x294ead);},'type':()=>'suggestion-'+_0x1bee6b['view']['type']}),_0x5d359f['_bindAnnotationToEditors'](_0x4b4c9e,_0x3596c7),_0x50bbda['add'](_0x3596c7),_0x30cd03['registerAnnotation'](_0x3596c7);}['_destroyController'](_0x44eeca){const _0x5bb929=this['editor']['plugins']['get']('CommentsRepository'),_0x3682e8=this['editor']['plugins']['get']('Annotations'),_0x94d08c=this['_suggestionToController']['get'](_0x44eeca),_0xbc4566=_0x94d08c['view'],_0x42f8e4=_0x3682e8['getByInnerView'](_0xbc4566);_0x5bb929['_unbindEditors'](_0xbc4566),_0x42f8e4&&_0x3682e8['remove'](_0x42f8e4),this['_suggestionToController']['delete'](_0x44eeca),this['_viewToController']['delete'](_0xbc4566),_0x94d08c['destroy']();}['_updateController'](_0x3a5ece){if(!_0x3a5ece['isInContent']||!this['_suggestionToController']['has'](_0x3a5ece))return;const _0x3e00f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x241de9=this['_suggestionToController']['get'](_0x3a5ece),_0x54ca30=_0x3a5ece['getAllAdjacentSuggestions']();_0x241de9['view']['descriptionParts']=_0x3e00f1['descriptionFactory']['getDescriptions'](_0x54ca30);}['destroy'](){for(const _0x54bc20 of this['_suggestionToController']['keys']())this['_destroyController'](_0x54bc20);for(const _0x58fc2c of this['_annotationViews']['values']())_0x58fc2c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x34de17){return'model'in _0x34de17;}class k extends _0x3ff648{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x195a33){this['editor']['plugins']['get'](p)['adapter']=_0x195a33;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x47e97a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x47e97a);}['getSuggestions']({skipNotAttached:_0xfe048=!0x1,toJSON:_0xe9853d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xfe048,'toJSON':_0xe9853d});}['getSuggestion'](_0x8da12e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x8da12e);}}const w=['Pagination'];class T extends _0x3ff648{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x446f7a=this['editor'];if(_0x446f7a['config']['define']('trackChangesData.editorCreator',_0x1f46d7=>{const _0x209382=_0x446f7a['model']['document']['getRootNames']()['reduce']((_0x3a92b0,_0xd327a6)=>(_0x3a92b0[_0xd327a6]='',_0x3a92b0),{});return _0x446f7a['constructor']['create'](_0x209382,_0x1f46d7);}),'function'!=typeof _0x446f7a['config']['get']('trackChangesData')['editorCreator'])throw new _0x328969('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28dabc){return N(this['editor'],!0x0,_0x28dabc);}['getDataWithDiscardedSuggestions'](_0x5c8bef){return N(this['editor'],!0x1,_0x5c8bef);}}class D extends _0x3ff648{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c150d){function _0xa70a50(_0x2cf6af){return _0x2cf6af['map'](_0x2e7ce2=>String['fromCharCode'](_0x2e7ce2))['join']('');}super(_0x5c150d),this['result']='end',_0x5c150d[_0xa70a50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa70a50([0x76,0x69,0x65,0x77])][_0xa70a50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa70a50([0x61,0x75,0x74,0x6f]),_0x5c150d[_0xa70a50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa70a50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa70a50([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa70a50([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa70a50([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x4ef584){return void 0x0!==_0x4ef584['getRootsAttributes'];}async function N(_0x10f29e,_0x5a390c,_0x839626){const _0x41a91b=_0x515678(_0x10f29e,w);_0x41a91b['plugins']['push'](p,D),_0x41a91b['rootsAttributes']=Ge(_0x10f29e)?_0x10f29e['getRootsAttributes']():void 0x0;const _0x4b87c0=document['createDocumentFragment'](),_0xd8be4a=_0x10f29e['config']['get']('trackChangesData')['editorCreator'],_0x3a280c=await _0xd8be4a(_0x41a91b,()=>function(_0x3cdd15){const _0x397edd=document['createElement']('div');return _0x3cdd15['appendChild'](_0x397edd),_0x397edd;}(_0x4b87c0));!function(_0x4b6318,_0x34adeb){const _0xac1d21=_0x4b6318['model']['document']['getRootNames']()['reduce']((_0x53c93d,_0x3e215e)=>(_0x53c93d[_0x3e215e]=_0x4b6318['data']['get']({'rootName':_0x3e215e}),_0x53c93d),{}),_0x1a187d=_0x4b6318['plugins']['get']('Users')['users']['map'](_0x481065=>({'id':_0x481065['id'],'name':_0x481065['name']})),_0x259d71=_0x4b6318['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x13c86d=_0x4b6318['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a8a28=_0x34adeb['plugins']['get']('Users'),_0xe1f655=_0x34adeb['plugins']['get']('TrackChangesEditing'),_0x257baa=_0x34adeb['plugins']['get']('CommentsRepository');for(const _0x562b35 of _0x257baa['getCommentThreads']())_0x562b35['remove']();for(const _0x48d350 of _0x1a187d)_0x4a8a28['getUser'](_0x48d350['id'])||_0x4a8a28['addUser'](_0x48d350);_0x4a8a28['me']||_0x4a8a28['useAnonymousUser']();for(const _0x19ad88 of _0x13c86d)_0x257baa['addCommentThread'](_0x19ad88);for(const _0x4e05d8 of _0x259d71)_0xe1f655['addSuggestionData'](_0x4e05d8);_0x34adeb['data']['set'](_0xac1d21);}(_0x10f29e,_0x3a280c),_0x3a280c['execute'](_0x5a390c?'acceptAllSuggestions':'discardAllSuggestions');const _0x203500=Ge(_0x3a280c)?_0x3a280c['getFullData'](_0x839626):_0x3a280c['data']['get'](_0x839626);return await _0x3a280c['destroy'](),_0x203500;}class Me extends _0x192474{['options'];constructor(_0x5859c9,_0x33bd79){super(_0x5859c9),this['options']=_0x33bd79,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2476cf,_0x51b6eb){if(!this['element'])return;const _0x425fc6=[];for(const [_0x2d371c,_0x512fc5]of _0x2476cf){const _0x54a290=document['createElement']('div');_0x54a290['setAttribute']('data-ck-root-name',_0x2d371c),_0x54a290['className']=_0x512fc5['classes']+'\x20ck-track-changes-preview__root-container',_0x54a290['innerHTML']=_0x512fc5['content'],_0x425fc6['push'](_0x54a290);}_0x51b6eb(this['element'],_0x425fc6),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2731a5{constructor(_0x1cdefd){super(_0x1cdefd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x50b615=this['editor'],_0x33c3d3=_0x50b615['locale'],_0x1c1953=_0x50b615['plugins']['get']('Dialog');let _0x467a94;const _0x1f7613=function(_0x8f4a24){const _0x3f916f={};if('editables'in _0x8f4a24['ui']['view']){for(const [_0x8c0a2b,_0x26cc1a]of Object['entries'](_0x8f4a24['ui']['view']['editables']))_0x3f916f[_0x8c0a2b]=_0x26cc1a['element'];}else _0x3f916f[_0x8f4a24['model']['document']['getRootNames']()[0x0]]=_0x8f4a24['ui']['view']['editable']['element'];return _0x3f916f;}(_0x50b615),_0xe9bee8=function(_0xb9f70a){let _0x3c238e=0x0;for(const _0x2d7535 of Object['values'](_0xb9f70a))_0x3c238e=Math['max'](_0x3c238e,_0x2d7535['getBoundingClientRect']()['width']);let _0x1ca5b0=0x0;for(const _0x5df2e1 of Object['values'](_0xb9f70a))_0x1ca5b0+=_0x5df2e1['getBoundingClientRect']()['height'];const _0x2cf11b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3c8aba=Math['min'](_0x1ca5b0,_0x2cf11b);return{'width':_0x3c238e,'height':_0x3c8aba};}(_0x1f7613);_0x1c1953['show']({'id':'finalContentPreview','title':c(_0x33c3d3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x33c3d3,{'dialogRects':_0xe9bee8}),'onHide':()=>{_0x467a94['detachFromDom']();},'onShow':()=>{_0x50b615['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f948b=>{const _0x22af83=this['_standarizeRootsData'](_0x4f948b,_0x50b615,_0x1f7613);_0x1c1953['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x22af83,_0x50b615['config']['get']('trackChanges.preview.renderFunction'));}),_0x467a94=new _0x3ea2d3(_0x33c3d3,[_0x1c1953['view']]),_0x467a94['attachToDom'](),_0x467a94['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x50b615['once']('destroy',()=>{_0x467a94['detachFromDom']();});const _0x2eceac=_0x1c1953['view']['headerView']['class'];_0x1c1953['view']['headerView']['class']=_0x2eceac?_0x2eceac+'\x20ck-reset_all':'ck-reset_all',_0x1c1953['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1c1953['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x25d12e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57adb8=_0x25d12e['previewMode'],_0x362df6={};if('$labels'===_0x57adb8){for(const _0x21eed6 of _0x25d12e['getMergeFieldsIds']())_0x362df6[_0x21eed6]=_0x25d12e['getLabel'](_0x21eed6)||_0x21eed6;}else{const _0x3110a2='$defaultValues'===_0x57adb8?_0x25d12e['getDefaultValues']():_0x25d12e['getDataSetValues'](_0x57adb8,!0x0);for(const _0x191627 of Object['entries'](_0x3110a2)){const [_0x498334,_0x4563c6]=_0x191627;_0x362df6[_0x498334]=null!==_0x4563c6?_0x4563c6:_0x25d12e['getLabel'](_0x498334)||_0x498334;}}return{'mergeFieldsData':_0x362df6};}['_standarizeRootsData'](_0x5caca7,_0x11b113,_0x569c38){let _0x1d0d18;if('string'==typeof _0x5caca7){const _0x21fdb8=_0x11b113['model']['document']['getRootNames']()[0x0];_0x1d0d18={[_0x21fdb8]:_0x5caca7};}else _0x1d0d18=_0x5caca7;const _0x3d27a6=this['_fixMediaEmbeds'](_0x1d0d18,_0x11b113),_0xf0ceaa=function(_0x310884,_0x2ea97c){for(const [_0x324806,_0x1f75ee]of _0x310884)_0x1f75ee['classes']=_0x2ea97c[_0x324806]['classList']['value']['replace']('ck-focused','');return _0x310884;}(this['_sortRoots'](_0x11b113)['reduce']((_0x1a59d7,_0x1ebe66)=>(_0x1a59d7['push']([_0x1ebe66,{'content':_0x3d27a6[_0x1ebe66],'classes':''}]),_0x1a59d7),[]),_0x569c38);return _0xf0ceaa;}['_fixMediaEmbeds'](_0x2fb5ba,_0x1e7829){if(!_0x1e7829['plugins']['has']('MediaEmbedEditing'))return _0x2fb5ba;const _0x18d9dd=_0x1e7829['plugins']['get']('MediaEmbedEditing');for(const [_0x5285c8,_0x497f1e]of Object['entries'](_0x2fb5ba)){const _0x45ac21=document['createElement']('div');_0x45ac21['innerHTML']=_0x497f1e,(_0x45ac21['querySelectorAll']('figure.media')['forEach'](_0x16a632=>{const _0xb633dc=_0x16a632['querySelector']('oembed');if(_0xb633dc){const _0x252b0e=_0xb633dc['getAttribute']('url');if(_0x252b0e){const _0x28006c=_0x18d9dd['registry']['getMediaViewElement'](new _0x2b6151(_0x1e7829['editing']['view']['document']),_0x252b0e,{'elementName':'','renderForEditingView':!0x0}),_0x24667f=document['createElement']('div');_0x24667f['classList']['add']('ck-media__wrapper'),_0x28006c['render'](_0x24667f,_0x1e7829['editing']['view']['domConverter']),_0xb633dc['replaceWith'](_0x24667f);}}}),_0x2fb5ba[_0x5285c8]=_0x45ac21['innerHTML']);}return _0x2fb5ba;}['_sortRoots'](_0x2d7840){if(!function(_0x5a9310){return void 0x0!==_0x5a9310['getRootsAttributes'];}(_0x2d7840))return _0x2d7840['model']['document']['getRootNames']();const _0x2f94dc=[],_0x1b41c5=new Map();for(const _0xe25a5f of _0x2d7840['model']['document']['getRootNames']()){const _0x17c25f=_0x2d7840['editing']['view']['getDomRoot'](_0xe25a5f)['getClientRects']()['item'](0x0);_0x2f94dc['push'](_0xe25a5f),_0x1b41c5['set'](_0xe25a5f,_0x17c25f);}return _0x2f94dc['sort']((_0xa49452,_0x3e8fe1)=>{const _0x409b54=_0x1b41c5['get'](_0xa49452),_0x551b5e=_0x1b41c5['get'](_0x3e8fe1);return _0x409b54['y']-_0x551b5e['y']||_0x409b54['x']-_0x551b5e['x'];}),_0x2f94dc;}}class te extends _0x3ff648{static get['requires'](){return[T,_0x3d53d1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa0885d){super(_0xa0885d),_0xa0885d['commands']['add']('previewFinalContent',new re(this['editor'])),_0xa0885d['config']['define']('trackChanges.preview.renderFunction',(_0x5150cd,_0x1f77d1)=>{for(const _0x558040 of _0x1f77d1)_0x5150cd['appendChild'](_0x558040);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x5b3981,Plugin as _0x21f549,PendingActions as _0x2d5dff}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2eced8,ObservableMixin as _0x536dd9,uid as _0x4822d2,priorities as _0x305e67,insertToPriorityArray as _0x594b85,toArray as _0x14e6e3,logWarning as _0x3773ca,getEnvKeystrokeText as _0x993eff,FocusTracker as _0x5b9090,KeystrokeHandler as _0x2ac736,Collection as _0x2f6ded}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4d888c,IconCancel as _0x1ad73f,IconTrackChanges as _0x539c6c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x442021,View as _0x3afef1,ViewCollection as _0xf36bc3,FocusCycler as _0x23e90e,ViewModel as _0x1bfaa9,createDropdown as _0xf68bc3,SplitButtonView as _0x193005,addListToDropdown as _0xd2bb20,MenuBarMenuView as _0x24fbad,MenuBarMenuListView as _0x339e92,ListSeparatorView as _0x7772b9,MenuBarMenuListItemView as _0xce36a1,MenuBarMenuListItemButtonView as _0xe58be,BodyCollection as _0x124206,Dialog as _0x497261}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x65df82,hashObject as _0x39e88f,surroundingMarkersDetector as _0x508fbc,FOCUS_ANNOTATION_KEYSTROKE as _0xabbc6a,AriaDescriptionView as _0x1d65da,setupThreadKeyboardNavigation as _0x315c46,trimHtml as ti,UserView as _0x4f77c0,LateFocusButtonView as _0x42b75f,getDateTimeFormatter as _0x2e0130,getAllMarkersDomElementsSorted as _0x56d440,sanitizeEditorConfig as _0x5a7a39}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x37c8f0,LiveRange as _0x5818a9,LivePosition as _0x46dfbf,DowncastWriter as _0x345d5f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2c9885,toWidget as _0x2fc5ab}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3bb821,set as _0x1cf24d,isEqual as _0x4ef645,unset as _0x5029a1,omit as Ft}from'es-toolkit/compat';import{Delete as _0x105ebf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3beece}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x445a80}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5b3981{['_enabledCommands'];constructor(_0x31db1c,_0x4fdd6d){super(_0x31db1c),this['_enabledCommands']=_0x4fdd6d,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 _0x4eeabf of this['editor']['commands']['commands']())_0x4eeabf['affectsData']&&!this['_enabledCommands']['has'](_0x4eeabf)&&_0x4eeabf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2df77d of this['editor']['commands']['commands']())_0x2df77d['affectsData']&&!this['_enabledCommands']['has'](_0x2df77d)&&_0x2df77d['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x5b3981{['_suggestions'];constructor(_0x19aa20,_0x3c9f84){super(_0x19aa20),this['_suggestions']=_0x3c9f84,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x200070){const _0x40da4a=this['_suggestions']['get'](_0x200070);if(!_0x40da4a)throw new _0x2eced8('track-changes-accept-suggestion-not-found',this);const _0x2ecce4=_0x40da4a['getRanges']();this['editor']['model']['canEditAt'](_0x2ecce4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x40da4a);}}class O extends _0x5b3981{['_suggestions'];constructor(_0x48d1fb,_0x2e81b3){super(_0x48d1fb),this['_suggestions']=_0x2e81b3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17ed39){const _0x430015=this['_suggestions']['get'](_0x17ed39);if(!_0x430015)throw new _0x2eced8('track-changes-discard-suggestion-not-found',this);const _0x5cc9ed=_0x430015['getRanges']();this['editor']['model']['canEditAt'](_0x5cc9ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x430015);}}function ls(_0x5bc3a6,_0x535db7){let _0x58f2af='';return _0x58f2af+=_0x5bc3a6['split']('*')['map']((_0x3ff304,_0xce8437)=>_0xce8437%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3ff304)+'</span>':nn(_0x3ff304))['join'](''),_0x535db7&&(_0x58f2af+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x535db7['value']+'\x22\x20title=\x22'+_0x535db7['title']+'\x22></span>'),_0x58f2af;}function nn(_0x155791){const _0x3c4bbc=document['createElement']('span');return _0x3c4bbc['innerText']=_0x155791,_0x3c4bbc['innerHTML'];}function ts(_0x613060){return _0x613060['sort']((_0x4aa7f0,_0x268cb1)=>'deletion'==_0x4aa7f0['type']&&'deletion'!=_0x268cb1['type']?-0x1:'deletion'!=_0x4aa7f0['type']&&'deletion'==_0x268cb1['type']?0x1:0x0);}function to(_0xea5dfa,_0x93bf01){let _0x4da4ba,_0x35246e=0x0;const _0x5ebe85=[],_0x47cbd2=_0x93bf01['schema'];for(;_0x35246e<_0xea5dfa['length'];){const _0x5b8baa=_0xea5dfa[_0x35246e],_0x3db0f2=_0xea5dfa[_0x35246e+0x1];_0x4da4ba||(_0x4da4ba=_0x93bf01['createPositionBefore'](_0x5b8baa)),on(_0x93bf01,_0x5b8baa,_0x3db0f2)||(_0x5ebe85['push'](_0x93bf01['createRange'](_0x4da4ba,_0x47cbd2['isObject'](_0x5b8baa)?_0x93bf01['createPositionAfter'](_0x5b8baa):_0x93bf01['createPositionAt'](_0x5b8baa,'end'))),_0x4da4ba=null),_0x35246e++;}return _0x5ebe85;}function on(_0x4e9477,_0x385875,_0x91356b){if(!_0x91356b)return!0x1;const _0x3c6304=_0x4e9477['createPositionAfter'](_0x385875),_0x4241fd=_0x4e9477['createPositionBefore'](_0x91356b);return _0x3c6304['isTouching'](_0x4241fd);}function rs(_0x16d4f2,_0x10a734,_0x28154d){for(;_0x28154d['length'];){const _0x522e7b=_0x28154d['splice'](0x0,0x64);_0x16d4f2['change'](()=>{for(const _0x146bfe of _0x522e7b)_0x146bfe['isInContent']&&_0x10a734['execute'](_0x146bfe['id']);});}}class R extends _0x5b3981{['_command'];['_suggestions'];constructor(_0x128e70,_0x51d4db,_0x235c4e){super(_0x128e70),this['_command']=_0x51d4db,this['_suggestions']=_0x235c4e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3134fc=Array['from'](this['_suggestions']['values']())['some'](_0x1bfbdb=>_0x1bfbdb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3134fc;}['execute'](){const _0x5d32c8=ts(Array['from'](this['_suggestions']['values']()));for(const _0x584c24 of _0x5d32c8){const _0x5562f8=_0x584c24['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5562f8))return;}rs(this['editor']['model'],this['_command'],_0x5d32c8);}}class E extends _0x5b3981{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xc977a9,_0x5dc89d,_0x350bdb){super(_0xc977a9),this['_command']=_0x5dc89d,this['_suggestions']=_0x350bdb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1a0d6e=this['editor']['model']['document']['selection'],_0x2d69d8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x47bb36,_0x48d1ab){const _0x2d73da=Array['from'](_0x47bb36['getRanges']()),_0x240690=new Set();for(const _0xd099c6 of _0x48d1ab)if(_0xd099c6['isInContent']){for(const _0x2ece17 of _0x2d73da)for(const _0x365977 of _0xd099c6['getRanges']())(_0x2ece17['isIntersecting'](_0x365977)||_0x47bb36['isCollapsed']&&!_0xd099c6['isMultiRange']&&_0xd099c6['next']&&_0x365977['end']['isTouching'](_0x2ece17['start']))&&_0x240690['add'](_0xd099c6);}return _0x240690;}(_0x1a0d6e,_0x2d69d8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x7955a8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x36964f of _0x7955a8){const _0x30f4c3=_0x36964f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30f4c3))return;}rs(this['editor']['model'],this['_command'],_0x7955a8);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x536dd9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4380ca,_0xc97fb4){super(),this['id']=_0xc97fb4['id'],this['type']=_0xc97fb4['type'],this['subType']=_0xc97fb4['subType']||null,this['author']=_0xc97fb4['author'],this['creator']=_0xc97fb4['creator']||_0xc97fb4['author'],this['isExternal']=Boolean(_0xc97fb4['attributes']&&_0xc97fb4['attributes']['@external']),this['data']=null,this['_model']=_0x4380ca,this['_onAccept']=_0xc97fb4['onAccept'],this['_onDiscard']=_0xc97fb4['onDiscard'],this['_onAttributesChange']=_0xc97fb4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc97fb4['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 _0x4b7098=this;for(;_0x4b7098['previous'];)_0x4b7098=_0x4b7098['previous'];return _0x4b7098;}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'](_0x7bdbd5){this['_markerNames']['add'](_0x7bdbd5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1398ea=>this['_model']['markers']['get'](_0x1398ea))['filter'](_0x4b09e4=>_0x4b09e4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x849b81=>{for(const _0x3b902f of this['getMarkers']())_0x849b81['removeMarker'](_0x3b902f);}),this['_markerNames']['clear']();}['removeMarker'](_0x3af90d){this['_model']['change'](_0x48d8ff=>{_0x48d8ff['removeMarker'](_0x3af90d);}),this['_markerNames']['delete'](_0x3af90d);}['addRange'](_0x47af80){const _0x20436='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x20436),this['_model']['change'](_0x5e9dfd=>{_0x5e9dfd['addMarker'](_0x20436,{'range':_0x47af80,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x302b68){for(const _0x18fe0e of this['getRanges']())if(_0x18fe0e['isIntersecting'](_0x302b68))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x16dece=>_0x16dece['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5c09ca,_0x44cf5b)=>[..._0x5c09ca,..._0x44cf5b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x31cf55=this['getRanges']();if(0x1!=_0x31cf55['length'])return null;const _0x2e2ac9=_0x31cf55[0x0],_0x45424b=_0x2e2ac9['start']['nodeAfter'],_0x503dbb=_0x2e2ac9['end']['nodeBefore'];return _0x45424b instanceof _0x37c8f0?_0x45424b!=_0x503dbb?null:_0x45424b: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 _0x379137=[];let _0x44af3d=this['head'];for(;_0x44af3d;)_0x379137['push'](_0x44af3d),_0x44af3d=_0x44af3d['next'];return _0x379137;}['setAttribute'](_0x4647c4,_0x41a622){const _0x4f05f7=_0x3bb821(this['attributes']);_0x1cf24d(_0x4f05f7,_0x4647c4,_0x41a622),_0x4ef645(_0x4f05f7,this['attributes'])||(this['attributes']=_0x4f05f7,this['_onAttributesChange'](_0x4f05f7));}['removeAttribute'](_0x1008b5){const _0x1bc948=_0x3bb821(this['attributes']);_0x5029a1(_0x1bc948,_0x1008b5),_0x4ef645(_0x1bc948,this['attributes'])||(this['attributes']=_0x1bc948,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 _0x4822d2()['substr'](0x1,0x5);}}function c(_0x9b1f7b,_0x13df72,_0x36a597){const _0x53b47d=_0x9b1f7b['t'],t=_0x9b1f7b['t'];switch(_0x13df72){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x36a597);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36a597);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36a597);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36a597);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36a597);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',_0x36a597);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36a597);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36a597);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36a597);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36a597);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36a597);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36a597);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36a597);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36a597);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36a597);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36a597);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36a597);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36a597);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36a597);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36a597);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36a597);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36a597);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36a597);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36a597);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x36a597);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'},_0x36a597);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x36a597);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x36a597);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36a597);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36a597);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36a597);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36a597);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36a597);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'},_0x36a597);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36a597);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36a597);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36a597);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36a597);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'},_0x36a597);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36a597);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'},_0x36a597);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'},_0x36a597);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36a597);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'},_0x36a597);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36a597);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'},_0x36a597);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36a597);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36a597);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'},_0x36a597);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36a597);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 _0x53b47d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36a597);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x53b47d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36a597);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36a597);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'},_0x36a597);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'},_0x36a597);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'},_0x36a597);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x13df72;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29e5c4,_0x369351){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29e5c4,this['_locale']=_0x369351;}['getDescriptions'](_0xcdca89){const _0x506beb=[],_0xd17b46=new Set(),_0x222846=new Set();for(let _0x23ddab=0x0;_0x23ddab<_0xcdca89['length'];_0x23ddab++){const _0x328219=_0xcdca89[_0x23ddab];if(!_0x328219['isInContent'])continue;const _0x178b5b=this['_handleCustomCallbackDescription'](_0x328219);if(_0x178b5b){if(null!=_0x328219['subType']){if(_0xd17b46['has'](_0x328219['subType']))continue;_0xd17b46['add'](_0x328219['subType']);}_0x506beb['push'](_0x178b5b);}else{if('attribute'!=_0x328219['type'])'insertion'!=_0x328219['type']&&'deletion'!=_0x328219['type']||this['_handleInsertRemoveSuggestionDescription'](_0x506beb,_0x328219,_0xcdca89[_0x23ddab+0x1]);else{const _0x1cfafb=_0x328219['data']['key'];if(_0x222846['has'](_0x1cfafb))continue;_0x222846['add'](_0x328219['data']['key']),_0x1cfafb==u?this['_handleRenameSuggestionDescription'](_0x506beb,_0x328219):this['_handleAttributeSuggestionDescription'](_0x506beb,_0x328219);}}}return this['_resolveDescriptionItems'](_0x506beb);}['registerDescriptionCallback'](_0x7b009f){this['_customCallbacks']['push'](_0x7b009f);}['registerElementLabel'](_0x409cc0,_0x23fba9,_0x166885=_0x305e67['normal']){'function'==typeof _0x409cc0?_0x594b85(this['_itemLabelsCallbacks'],{'matchingCallback':_0x409cc0,'label':_0x23fba9,'priority':_0x166885}):this['_itemLabels']['set'](_0x409cc0,_0x23fba9);}['registerAttributeLabel'](_0x503c2a,_0x3a9b4a){this['_attributeLabels']['set'](_0x503c2a,_0x3a9b4a);}['getItemLabel'](_0x1a02b8,_0x5a465f=0x1){let _0x30750b;for(const _0x47c643 of this['_itemLabelsCallbacks'])if(_0x47c643['matchingCallback'](_0x1a02b8)){_0x30750b=_0x47c643['label'];break;}return _0x30750b||(_0x30750b=this['_itemLabels']['get'](_0x1a02b8['name'])),_0x30750b?_0x30750b(_0x5a465f):0x1!==_0x5a465f?_0x5a465f+'\x20'+_0x1a02b8['name']+'s':''+_0x1a02b8['name'];}['_addDescriptionItems'](_0x47942a,_0x22cd8d){const _0x30da84=_0x22cd8d['getFirstRange']()['getWalker'](),_0x450da8='insertion'==_0x22cd8d['type']?'add':'remove';for(const _0x281fb8 of _0x30da84){const _0x16e3dd=_0x281fb8['item'],_0x296c57=_0x47942a[_0x47942a['length']-0x1];if(_0x16e3dd['is']('$textProxy'))_0x296c57&&_0x296c57['type']['indexOf']('Container')>-0x1&&_0x47942a['pop'](),_0x296c57&&'text'==_0x296c57['type']?_0x296c57[_0x450da8]+=_0x16e3dd['data']:_0x47942a['push']({'type':'text','add':'add'==_0x450da8?_0x16e3dd['data']:'','remove':'remove'==_0x450da8?_0x16e3dd['data']:''});else{if(this['_schema']['isObject'](_0x16e3dd)){const _0x223dd0=_0x16e3dd;if(_0x296c57&&_0x296c57['type']['indexOf']('Container')>-0x1&&_0x47942a['pop'](),'elementEnd'==_0x281fb8['type'])continue;_0x296c57&&_0x296c57['type']==_0x450da8+'Object'&&_0x296c57['element']['name']==_0x223dd0['name']?_0x296c57['quantity']++:_0x47942a['push']({'type':_0x450da8+'Object','element':_0x223dd0,'quantity':0x1}),_0x30da84['skip'](_0x4d0685=>!('elementEnd'==_0x4d0685['type']&&_0x4d0685['item']==_0x16e3dd));}else{if(this['_schema']['checkChild'](_0x16e3dd,'$text')||_0x16e3dd['is']('element','softBreak')){const _0x541d8a=_0x16e3dd;if('add'==_0x450da8&&'elementStart'==_0x281fb8['type']||'remove'==_0x450da8&&'elementEnd'==_0x281fb8['type'])continue;if(_0x296c57&&-0x1==_0x296c57['type']['indexOf']('Container')){'text'==_0x296c57['type']&&(_0x296c57[_0x450da8]+='\x0a');continue;}let _0x5c3a7e;if(_0x5c3a7e='add'==_0x450da8?_0x541d8a['nextSibling']&&!this['_schema']['isObject'](_0x541d8a['nextSibling'])?_0x541d8a['nextSibling']:null:_0x541d8a['previousSibling']&&!this['_schema']['isObject'](_0x541d8a['previousSibling'])?_0x541d8a['previousSibling']:null,_0x541d8a['isEmpty']||_0x5c3a7e&&_0x5c3a7e['isEmpty']){const _0x44e1a9=_0x5c3a7e&&_0x5c3a7e['isEmpty']?_0x5c3a7e:_0x541d8a;_0x296c57&&_0x296c57['type']==_0x450da8+'EmptyContainer'&&_0x296c57['element']['name']==_0x44e1a9['name']?_0x296c57['quantity']++:_0x47942a['push']({'type':_0x450da8+'EmptyContainer','element':_0x44e1a9,'quantity':0x1});}else _0x47942a['push']({'type':_0x450da8+'Container','element':_0x541d8a});}}}}}['_resolveDescriptionItems'](_0x45e295){const _0x537e4b=this['_locale'],_0x2d1d9d=[],_0x1f7f90=[],_0x3bd324=[];for(const _0x533a95 of _0x45e295)switch(_0x533a95['type']){case'text':if(_0x533a95['add']=_0x533a95['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x533a95['remove']=_0x533a95['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x533a95['add']&&''!=_0x533a95['remove']){_0x2d1d9d['push']({'type':'replace','content':c(_0x537e4b,'REPLACE_TEXT',['\x22'+_0x533a95['remove']+'\x22','\x22'+_0x533a95['add']+'\x22'])});continue;}if(null!=_0x533a95['add']['match'](/^ +$/)){_0x2d1d9d['push']({'type':'insertion','content':c(_0x537e4b,'*Insert:*\x20%0',c(_0x537e4b,'ELEMENT_SPACE',_0x533a95['add']['length']))});continue;}if(null!=_0x533a95['remove']['match'](/^ +$/)){_0x2d1d9d['push']({'type':'deletion','content':c(_0x537e4b,'*Remove:*\x20%0',c(_0x537e4b,'ELEMENT_SPACE',_0x533a95['remove']['length']))});continue;}if(''!=_0x533a95['add']){_0x2d1d9d['push']({'type':'insertion','content':c(_0x537e4b,'*Insert:*\x20%0','\x22'+_0x533a95['add']+'\x22')});continue;}_0x2d1d9d['push']({'type':'deletion','content':c(_0x537e4b,'*Remove:*\x20%0','\x22'+_0x533a95['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2d1d9d['push']({'type':'insertion','content':c(_0x537e4b,'*Insert:*\x20%0',this['getItemLabel'](_0x533a95['element'],_0x533a95['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2d1d9d['push']({'type':'deletion','content':c(_0x537e4b,'*Remove:*\x20%0',this['getItemLabel'](_0x533a95['element'],_0x533a95['quantity']))});continue;case'addContainer':_0x2d1d9d['push']({'type':'insertion','content':c(_0x537e4b,'*Split:*\x20%0',this['getItemLabel'](_0x533a95['element'],_0x533a95['quantity']))});continue;case'removeContainer':_0x2d1d9d['push']({'type':'deletion','content':c(_0x537e4b,'*Merge:*\x20%0',this['getItemLabel'](_0x533a95['element'],_0x533a95['quantity']))});continue;case'addFormat':_0x1f7f90['push'](_0x533a95['key']);continue;case'removeFormat':_0x3bd324['push'](_0x533a95['key']);continue;default:_0x2d1d9d['push'](_0x533a95);}if(_0x1f7f90['length']){const _0x3feecc=_0x1f7f90['map'](_0x47f47c=>this['_attributeLabels']['has'](_0x47f47c)?this['_attributeLabels']['get'](_0x47f47c):_0x47f47c)['join'](',\x20');_0x2d1d9d['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3feecc)});}if(_0x3bd324['length']){const _0x3bc12d=_0x3bd324['map'](_0x3f01c0=>this['_attributeLabels']['has'](_0x3f01c0)?this['_attributeLabels']['get'](_0x3f01c0):_0x3f01c0)['join'](',\x20');_0x2d1d9d['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3bc12d)});}return _0x2d1d9d;}['_handleCustomCallbackDescription'](_0x246beb){for(const _0x22d380 of this['_customCallbacks']){const _0x315d81=_0x22d380(_0x246beb);if(_0x315d81&&'type'in _0x315d81)return _0x315d81;}}['_handleAttributeSuggestionDescription'](_0x3105af,_0x3cc56a){const _0x3487ab=_0x3cc56a['data'],_0x1a1244=void 0x0===_0x3487ab['newValue']?'removeFormat':'addFormat';_0x3105af['push']({'type':_0x1a1244,'key':_0x3487ab['key']});}['_handleRenameSuggestionDescription'](_0x533351,_0x451743){_0x533351['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x451743['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e5f42,_0x54e272,_0x5da59d){if(this['_addDescriptionItems'](_0x3e5f42,_0x54e272),_0x5da59d&&_0x5da59d['getFirstRange']()&&!_0x54e272['getFirstRange']()['end']['isEqual'](_0x5da59d['getFirstRange']()['start'])){const _0x1f44e9=_0x3e5f42[_0x3e5f42['length']-0x1],_0x5a192f='insertion'==_0x54e272['type']?'add':'remove';_0x1f44e9&&'text'==_0x1f44e9['type']&&(_0x1f44e9[_0x5a192f]+='\x0a');}}}class U extends _0x21f549{['afterInit'](){const _0x5d89e4=this['editor'],_0x1fd5a4=_0x5d89e4['plugins']['get']('TrackChangesEditing');_0x5d89e4['commands']['get']('showAIAssistant')&&_0x1fd5a4['enableCommand']('showAIAssistant');}}class V extends _0x21f549{['afterInit'](){const _0x520797=this['editor'],_0x4883ba=_0x520797['locale'];if(!_0x520797['plugins']['has']('AlignmentEditing'))return;const _0x47011e=_0x520797['plugins']['get']('TrackChangesEditing');_0x47011e['enableDefaultAttributesIntegration']('alignment'),_0x47011e['registerBlockAttribute']('alignment'),_0x47011e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4883ba,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x438505=this['editor'],_0xf050b8=_0x438505['locale'];_0x438505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b376b=>{if('formatBlock'!=_0x2b376b['type'])return;const {data:_0x4113d8}=_0x2b376b;if(_0x4113d8&&'alignment'==_0x4113d8['commandName']){const _0x482480=_0x4113d8['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xf050b8,'*Format:*\x20%0',function(_0x4cce8c){switch(_0x4cce8c){case'left':return c(_0xf050b8,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xf050b8,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xf050b8,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xf050b8,'FORMAT_JUSTIFY_TEXT');}}(_0x482480))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x21f549{['afterInit'](){const _0x4361a0=this['editor'],_0x6c275c=_0x4361a0['plugins']['get']('TrackChangesEditing'),_0x181fa2=_0x4361a0['locale'];for(const _0x141619 of Zt){if(!_0x4361a0['plugins']['has'](_0x141619))continue;const _0x1bd8f0=_0x141619['slice'](0x0,-0x7)['toLowerCase'](),_0x3efbc0='FORMAT_'+_0x1bd8f0['toUpperCase']();_0x6c275c['enableDefaultAttributesIntegration'](_0x1bd8f0),_0x6c275c['registerInlineAttribute'](_0x1bd8f0),_0x6c275c['descriptionFactory']['registerAttributeLabel'](_0x1bd8f0,c(_0x181fa2,_0x3efbc0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1204e5=this['editor'],_0x571008=_0x1204e5['locale'],_0x8ec425=_0x1204e5['plugins']['get']('TrackChangesEditing');function _0x3f2552(_0x574498,_0x380d24){_0x8ec425['descriptionFactory']['registerDescriptionCallback'](_0x528db3=>{if('formatInline'!=_0x528db3['type'])return;const {data:_0x2801bc}=_0x528db3;return _0x2801bc&&_0x2801bc['commandName']===_0x574498?_0x2801bc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x571008,'*Format:*\x20%0',_0x380d24)}:{'type':'format','content':c(_0x571008,'*Remove\x20format:*\x20%0',_0x380d24)}:void 0x0;});}_0x3f2552('bold',c(_0x571008,'FORMAT_BOLD')),_0x3f2552('italic',c(_0x571008,'FORMAT_ITALIC')),_0x3f2552('underline',c(_0x571008,'FORMAT_UNDERLINE')),_0x3f2552('code',c(_0x571008,'FORMAT_CODE')),_0x3f2552('strikethrough',c(_0x571008,'FORMAT_STRIKETHROUGH')),_0x3f2552('subscript',c(_0x571008,'FORMAT_SUBSCRIPT')),_0x3f2552('superscript',c(_0x571008,'FORMAT_SUPERSCRIPT'));}}class G extends _0x21f549{['afterInit'](){const _0x4ba083=this['editor'],_0x3866e5=_0x4ba083['locale'];if(!_0x4ba083['plugins']['has']('BlockQuoteEditing'))return;const _0xc66432=_0x4ba083['plugins']['get']('TrackChangesEditing'),_0x53f0db=this['editor']['commands']['get']('blockQuote');_0xc66432['enableCommand']('blockQuote',(_0x3af1cd,_0x5d8e78={})=>{const _0x46865b=this['editor']['model']['document']['selection'],_0x365275=_0x5d8e78&&void 0x0!==_0x5d8e78['forceValue']?_0x5d8e78['forceValue']:!_0x53f0db['value'];let _0x41c5bb=[];if(_0x365275){const _0x20b110=Array['from'](_0x46865b['getSelectedBlocks']())['filter'](_0x2d5e23=>oo(_0x2d5e23)||function(_0xd617d4,_0x1c2680){const _0x11cf08=_0x1c2680['checkChild'](_0xd617d4['parent'],'blockQuote'),_0x415473=_0x1c2680['checkChild'](['$root','blockQuote'],_0xd617d4);return _0x11cf08&&_0x415473;}(_0x2d5e23,this['editor']['model']['schema']));_0x41c5bb=to(_0x20b110,_0x4ba083['model']);}else{const _0x16b6fe=Array['from'](_0x46865b['getSelectedBlocks']())['filter'](_0x46a007=>oo(_0x46a007));_0x41c5bb=to(_0x16b6fe,_0x4ba083['model']);}_0x4ba083['model']['change'](()=>{for(const _0x18fe08 of _0x41c5bb)_0xc66432['markBlockFormat'](_0x18fe08,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x365275}]});});}),_0xc66432['descriptionFactory']['registerDescriptionCallback'](_0x3f74cc=>{const {data:_0x131a23}=_0x3f74cc;if(_0x131a23&&'blockQuote'==_0x131a23['commandName']){const _0xb13a6f=c(_0x3866e5,'ELEMENT_BLOCK_QUOTE');return _0x131a23['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3866e5,'*Set\x20format:*\x20%0',_0xb13a6f)}:{'type':'format','content':c(_0x3866e5,'*Remove\x20format:*\x20%0',_0xb13a6f)};}});}}function oo(_0x3e5b1c){return'blockQuote'==_0x3e5b1c['parent']['name'];}class L extends _0x21f549{['afterInit'](){const _0x351f8a=this['editor'],_0x4cee5e=_0x351f8a['locale'],_0x47046d=_0x351f8a['plugins']['get']('TrackChangesEditing');_0x351f8a['plugins']['has']('BookmarkEditing')&&(_0x47046d['enableCommand']('insertBookmark'),_0x47046d['enableDefaultAttributesIntegration']('updateBookmark'),_0x47046d['registerBlockAttribute']('bookmarkId'),_0x47046d['descriptionFactory']['registerDescriptionCallback'](_0x4fa3a2=>{if('insertion'!=_0x4fa3a2['type']&&'deletion'!=_0x4fa3a2['type']&&'attribute'!=_0x4fa3a2['type'])return;const _0x1ca311=_0x4fa3a2['getContainedElement']();if(null==_0x1ca311)return;if(!_0x1ca311['is']('element','bookmark'))return;const _0x15014d=_0x1ca311['getAttribute']('bookmarkId');if('insertion'==_0x4fa3a2['type'])return{'type':'insertion','content':c(_0x4cee5e,'*Insert:*\x20%0','\x22'+_0x15014d+'\x22\x20'+c(_0x4cee5e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4fa3a2['type'])return{'type':'deletion','content':c(_0x4cee5e,'*Remove:*\x20%0','\x22'+_0x15014d+'\x22\x20'+c(_0x4cee5e,'ELEMENT_BOOKMARK'))};const {data:_0x47d4e6}=_0x4fa3a2;if(!_0x47d4e6||'bookmarkId'!=_0x47d4e6['key'])return;return{'type':'format','content':c(_0x4cee5e,'*Set\x20bookmark:*\x20%0','\x22'+_0x47d4e6['newValue']+'\x22')};}));}}class J extends _0x21f549{['afterInit'](){const _0x4fcfe7=this['editor'];_0x4fcfe7['plugins']['has']('CaseChange')&&(_0x4fcfe7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4fcfe7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4fcfe7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x21f549{['afterInit'](){const _0x1a5876=this['editor'];_0x1a5876['commands']['get']('ckbox')&&_0x1a5876['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x21f549{['afterInit'](){const _0x515d79=this['editor'];if(!_0x515d79['plugins']['has']('CodeBlock'))return;const _0x39accd=_0x515d79['plugins']['get']('TrackChangesEditing'),_0x5d3eee=_0x515d79['locale'],_0x8fb38b=_0x515d79['config']['get']('codeBlock')['languages'],_0x2ae585=_0x515d79['commands']['get']('codeBlock');_0x39accd['enableCommand']('indentCodeBlock'),_0x39accd['enableCommand']('outdentCodeBlock'),_0x39accd['enableCommand']('codeBlock',(_0x2a4cff,_0x1e21dc={})=>{const _0xd6b4f2=_0x515d79['model'],_0x1b36d5=_0x515d79['model']['document']['selection'],_0x298716=_0x1e21dc&&void 0x0!==_0x1e21dc['forceValue']?_0x1e21dc['forceValue']:!_0x2ae585['value'];let _0x46c0da;_0x1e21dc['language']||(_0x1e21dc['language']=_0x8fb38b[0x0]['language']),_0x46c0da=_0x298716?Array['from'](_0x1b36d5['getSelectedBlocks']())['filter'](_0x34548a=>eo(_0x34548a)||function(_0x1a14a5,_0x5e85ce){if(_0x1a14a5['is']('rootElement')||_0x5e85ce['isLimit'](_0x1a14a5))return!0x1;return _0x5e85ce['checkChild'](_0x1a14a5['parent'],'codeBlock');}(_0x34548a,_0xd6b4f2['schema'])):Array['from'](_0x1b36d5['getSelectedBlocks']())['filter'](_0x382fb8=>eo(_0x382fb8));const _0x5e4306=to(_0x46c0da,_0xd6b4f2);_0xd6b4f2['change'](()=>{for(const _0xcf9ac7 of _0x5e4306)_0x39accd['markBlockFormat'](_0xcf9ac7,{'commandName':'codeBlock','commandParams':[{..._0x1e21dc,'forceValue':_0x298716}],'formatGroupId':'blockName'});});}),(_0x39accd['descriptionFactory']['registerElementLabel']('codeBlock',_0x2d470f=>c(_0x5d3eee,'ELEMENT_CODE_BLOCK',_0x2d470f)),_0x39accd['descriptionFactory']['registerDescriptionCallback'](_0x1fb9c8=>{if('formatBlock'!=_0x1fb9c8['type'])return;const _0x1b292f=_0x5d3eee['t'],{data:_0x850c0c}=_0x1fb9c8;if(!_0x850c0c||'codeBlock'!=_0x850c0c['commandName'])return;const _0x4330c6=_0x850c0c['commandParams'][0x0]['language'],_0x5d5535=_0x1b292f(_0x8fb38b['find'](_0x10b52b=>_0x10b52b['language']===_0x4330c6)['label'])['toLowerCase']();return _0x850c0c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5d3eee,'*Set\x20format:*\x20%0',c(_0x5d3eee,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5d5535+')')}:{'type':'format','content':c(_0x5d3eee,'*Remove\x20format:*\x20%0',c(_0x5d3eee,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3643ca){return'codeBlock'==_0x3643ca['name'];}class q extends _0x21f549{['afterInit'](){const _0x2a1985=this['editor'];if(!_0x2a1985['plugins']['has']('CommentsEditing'))return;_0x2a1985['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x550c7f,_0x1895e1,_0x578c81){const _0x1006c=[];for(const _0x798eae of _0x1895e1['getItems']())_0x798eae['hasAttribute'](_0x550c7f)&&_0x1006c['push'](_0x578c81['createRangeOn'](_0x798eae));return _0x1006c;}function Fe(_0x3a28cb,_0x1d5985,{showActiveMarker:_0x1262a4=!0x0}={}){const _0x2ec2d7=_0x3a28cb['plugins']['get']('TrackChangesEditing');return(_0x2fd31e,_0x2ac4de,_0x2ad66d)=>{if(!_0x2ad66d['consumable']['test'](_0x2ac4de['markerRange'],_0x2fd31e['name']))return;const _0x3b94e3=_0x2ac4de['markerRange']['getWalker'](),_0x1ba436=_0x2ac4de['markerRange']['start'],_0x14dd9a=_0x3a28cb['model']['schema'];let _0x24c317=null,_0x274b0c=null,_0xfd35f6=!0x1,_0x117463=!0x1;for(const _0x306e72 of _0x3b94e3){const _0x472334=_0x306e72['item'];_0xfd35f6=_0xfd35f6||_0x14dd9a['isContent'](_0x472334);const _0x398bff=_0x2ad66d['mapper']['toViewElement'](_0x472334);if(_0x398bff&&_0x398bff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x306e72['type']&&(_0x14dd9a['isBlock'](_0x472334)&&!_0x14dd9a['isLimit'](_0x472334)&&(_0x472334['nextSibling']||_0x1ba436['isAtEnd']?_0x24c317&&_0x24c317['parent']==_0x472334||(_0x24c317=_0x472334,_0x225c2c(_0x306e72['previousPosition']),_0x117463=!0x0):_0x274b0c=_0x274b0c||_0x306e72['previousPosition']));}function _0x225c2c(_0x51e5b0){const {id:_0x2005dc,authorId:_0x263df4}=_0x2ec2d7['_splitMarkerName'](_0x2ac4de['markerName']),_0x57274c=_0x2ad66d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d5985,'data-suggestion':_0x2005dc,'data-author-id':_0x263df4}),_0x487c3a=_0x2ad66d['mapper']['toViewPosition'](_0x51e5b0);_0x1262a4&&_0x2ec2d7['activeMarkers']['includes'](_0x2ac4de['markerName'])&&_0x2ad66d['writer']['addClass']('ck-suggestion-marker--active',_0x57274c),_0x2ad66d['writer']['insert'](_0x487c3a,_0x57274c),_0x2ad66d['mapper']['bindElementToMarker'](_0x57274c,_0x2ac4de['markerName']);}_0xfd35f6||_0x117463||!_0x274b0c||_0x225c2c(_0x274b0c);};}class z extends _0x21f549{static get['requires'](){return[_0x105ebf];}['init'](){const _0x4e8279=this['editor'],_0x324ab7=_0x4e8279['plugins']['get']('TrackChangesEditing');_0x324ab7['enableCommand']('delete');const _0x469298=_0x4e8279['commands']['get']('deleteForward');_0x324ab7['enableCommand']('deleteForward',(_0x3d4074,_0x454b7e={})=>{const _0x493c6e=_0x4e8279['model']['createSelection'](_0x4e8279['model']['document']['selection']);_0x493c6e['isCollapsed']&&_0x4e8279['model']['modifySelection'](_0x493c6e,{'direction':'forward','unit':_0x454b7e['unit']});const _0x788af0=_0x493c6e['getFirstRange'](),_0x10a7c7=_0x5818a9['fromRange'](_0x788af0);let _0x4b0da4;_0x3d4074(_0x454b7e),_0x4b0da4='$graveyard'==_0x10a7c7['root']['rootName']?_0x4e8279['model']['createRange'](_0x788af0['start']):_0x4e8279['model']['createRange'](_0x10a7c7['start'],_0x10a7c7['end']),_0x10a7c7['detach'](),_0x4e8279['model']['enqueueChange'](_0x469298['buffer']['batch'],_0x1e098a=>{_0x469298['buffer']['lock'](),_0x1e098a['setSelection'](_0x1e098a['createRange'](_0x4b0da4['end'])),_0x469298['buffer']['unlock']();});}),_0x4e8279['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x4e8279,'merge'),{'priority':'high'}),_0x4e8279['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x7dc1cf,_0x2f0b4d,_0x42d156)=>{_0x42d156['options']['showSuggestionHighlights']&&Fe(_0x4e8279,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x7dc1cf,_0x2f0b4d,_0x42d156);},{'priority':'high'}),_0x4e8279['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1d140c,_0x13af20,_0x14c80c)=>{const _0x185032=_0x14c80c['mapper']['markerNameToElements'](_0x13af20['markerName']);if(_0x185032){for(const _0x1d5edf of _0x185032)_0x1d5edf['is']('uiElement')&&(_0x14c80c['mapper']['unbindElementFromMarkerName'](_0x1d5edf,_0x13af20['markerName']),_0x14c80c['writer']['remove'](_0x1d5edf));}},{'priority':'high'});}}class W extends _0x21f549{['afterInit'](){const _0x233638=this['editor'];if(!_0x233638['plugins']['has']('ListEditing'))return;const _0x4f7dcc=_0x233638['locale'],_0x28fc51=_0x233638['plugins']['get']('TrackChangesEditing'),_0x38b28d=_0x233638['plugins']['has']('TodoListEditing'),_0x479ac6=!!_0x233638['config']['get']('list.multiBlock');function _0x561dcf(_0x286cb4){return{'type':'format','content':''+c(_0x4f7dcc,'*Set\x20format:*\x20%0',_0x286cb4)};}function _0x51be9f(_0x5a16d0){return{'type':'format','content':''+c(_0x4f7dcc,'*Remove\x20format:*\x20%0',_0x5a16d0)};}_0x28fc51['enableDefaultAttributesIntegration']('numberedList'),_0x28fc51['enableDefaultAttributesIntegration']('bulletedList'),_0x28fc51['enableDefaultAttributesIntegration']('customNumberedList'),_0x28fc51['enableDefaultAttributesIntegration']('customBulletedList'),_0x28fc51['enableDefaultAttributesIntegration']('indentList'),_0x28fc51['enableDefaultAttributesIntegration']('outdentList'),_0x28fc51['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x28fc51['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x28fc51['registerBlockAttribute']('listItemId'),_0x28fc51['registerBlockAttribute']('listType'),_0x28fc51['registerBlockAttribute']('listIndent'),_0x479ac6&&(_0x28fc51['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x28fc51['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x38b28d&&(_0x28fc51['enableDefaultAttributesIntegration']('todoList'),_0x28fc51['enableDefaultAttributesIntegration']('checkTodoList'),_0x28fc51['registerBlockAttribute']('todoListChecked'),_0x28fc51['descriptionFactory']['registerDescriptionCallback'](_0x5b2a70=>{const {data:_0xe360aa}=_0x5b2a70;if(_0xe360aa&&'todoListChecked'==_0xe360aa['key'])return{'type':'format','content':_0xe360aa['newValue']?c(_0x4f7dcc,'*Check\x20item*'):c(_0x4f7dcc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x355b24=>{if(_0x355b24['batch']['isUndo'])return!0x1;let _0x762ed9=!0x1;const _0x14e398=_0x28fc51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eed3e=>'todoListChecked'===_0x28fc51['_getAttributeKey'](_0x3eed3e));for(const _0x45af63 of _0x14e398){'todo'!=_0x45af63['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x28fc51['_findSuggestions'](_0x45af63['getFirstRange'](),'attribute')['find'](_0x284cfe=>'listType'===_0x28fc51['_getAttributeKey'](_0x284cfe['suggestion']))||(_0x355b24['removeMarker'](_0x45af63['getFirstMarker']()),_0x762ed9=!0x0));}return _0x762ed9;})),_0x28fc51['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4f7dcc,'FORMAT_INDENT'));const _0x174ed2={'type':'format','content':''};_0x28fc51['descriptionFactory']['registerDescriptionCallback'](_0x3bb47d=>{const {data:_0x13fa6c}=_0x3bb47d;if(!_0x13fa6c||'listType'!=_0x13fa6c['key'])return;let _0xb5a433=_0x3bb47d['head'];for(;_0xb5a433;){if(_0xb5a433['data']&&(('listStyle'==_0xb5a433['data']['key']||'listMarkerStyle'==_0xb5a433['data']['key'])&&(_0xb5a433['data']['newValue']&&'default'!=_0xb5a433['data']['newValue']||'default'!=_0xb5a433['data']['oldValue']&&!_0x13fa6c['newValue'])||!_0x479ac6&&_0xb5a433['data']['key']==u))return _0x174ed2;_0xb5a433=_0xb5a433['next'];}if(null==_0x13fa6c['newValue'])switch(_0x13fa6c['oldValue']){case'bulleted':return _0x51be9f(c(_0x4f7dcc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51be9f(c(_0x4f7dcc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51be9f(c(_0x4f7dcc,'ELEMENT_TODO_LIST'));}switch(_0x13fa6c['newValue']){case'bulleted':return _0x561dcf(c(_0x4f7dcc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x561dcf(c(_0x4f7dcc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x561dcf(c(_0x4f7dcc,'ELEMENT_TODO_LIST'));}}),_0x28fc51['descriptionFactory']['registerDescriptionCallback'](_0x22c724=>{const {data:_0x5ab938}=_0x22c724;if(_0x5ab938&&'listIndent'==_0x5ab938['key'])return null==_0x5ab938['newValue']||null==_0x5ab938['oldValue']&&0x0==_0x5ab938['newValue']?_0x174ed2:void 0x0;}),_0x28fc51['descriptionFactory']['registerDescriptionCallback'](_0x8df92f=>{if('attribute'!=_0x8df92f['type'])return;const {data:_0x262e7f}=_0x8df92f;if(!_0x262e7f||'listItemId'!=_0x262e7f['key'])return;const _0x3b210e=Te(_0x8df92f);return'newValue'==_0x3b210e?{'type':'format','content':c(_0x4f7dcc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3b210e?{'type':'format','content':c(_0x4f7dcc,'*Split:*\x20list\x20item')}:_0x174ed2;}),_0x233638['model']['document']['registerPostFixer'](_0x4e2b2b=>this['listItemIdFixer'](_0x4e2b2b)),_0x233638['model']['document']['registerPostFixer'](_0x51eddb=>this['noTrackChangesFixer'](_0x51eddb)),_0x233638['model']['document']['on']('change:data',(_0x350dcc,_0x37458c)=>{if(_0x37458c['isUndo']||!_0x37458c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x53de97){if(_0x53de97['batch']['isUndo']||!_0x53de97['batch']['isLocal'])return!0x1;let _0x4d24e1=!0x1;const _0x5a1c71=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7b669c=>_0x7b669c['data']&&'listItemId'==_0x7b669c['data']['key'])['filter'](_0x456215=>_0x456215['data']['newValue']&&_0x456215['data']['oldValue']);for(const _0x4b08b6 of _0x5a1c71)Te(_0x4b08b6)||(_0x53de97['removeMarker'](_0x4b08b6['getFirstMarker']()),_0x4d24e1=!0x0);return _0x4d24e1;}['noTrackChangesFixer'](_0x36d4c6){if(_0x36d4c6['batch']['isUndo']||!_0x36d4c6['batch']['isLocal'])return!0x1;const _0x372772=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x372772['trackChangesCommand']['value'])return!0x1;let _0x3f729e=!0x1;const _0x47358d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e469e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x15cd17=>'attribute'==_0x15cd17['type'])['filter'](_0x9baeb1=>_0x47358d['includes'](_0x9baeb1['attributeKey']));if(0x0==_0x3e469e['length'])return _0x3f729e;for(const _0x1a31a4 of _0x3e469e){const _0xdf4755=_0x372772['_findSuggestions'](_0x1a31a4['range'],'attribute')['filter'](_0x48781b=>!_0x48781b['meta']['isNextTo'])['map'](_0x1213c7=>_0x1213c7['suggestion'])['filter'](_0x3b131b=>{const _0x3ca372=_0x372772['_getAttributeKey'](_0x3b131b);return _0x47358d['includes'](_0x3ca372);});if(_0xdf4755['length']){for(const _0xfd44e3 of _0xdf4755)_0x36d4c6['removeMarker'](_0xfd44e3['getFirstMarker']());_0x3f729e=!0x0;}}return _0x3f729e;}['assureChains'](){const _0x521429=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e25da=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x51d298;const _0x38e2f1=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2eea05=>{if(_0x2eea05['data']['oldRange']||!_0x2eea05['data']['newRange'])return null;if(!_0x2eea05['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3d8538}=_0x521429['_splitMarkerName'](_0x2eea05['name']);if(!_0x521429['hasSuggestion'](_0x3d8538))return null;const _0x595c91=_0x521429['getSuggestion'](_0x3d8538);return _0x1e25da['includes'](_0x595c91['data']['key']);})['map'](_0xfc85de=>{const {id:_0x1b5c43}=_0x521429['_splitMarkerName'](_0xfc85de['name']),_0x456f7d=_0x521429['getSuggestion'](_0x1b5c43);return _0x51d298=_0x456f7d['attributes']['groupId'],_0x456f7d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x38e2f1['size'])return;const _0x1bd194=_0x521429['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c326d=>'attribute'==_0x3c326d['type']&&_0x3c326d['data']&&_0x1e25da['includes'](_0x3c326d['data']['key'])&&_0x3c326d['attributes']['groupId']!=_0x51d298)['map'](_0x2d82b4=>({'listItem':_0x2d82b4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2d82b4['attributes']['groupId']})),_0x3a1ca9=new Set();for(const {groupId:_0x374cba,listItem:_0x142ac3}of _0x1bd194)_0x38e2f1['has'](_0x142ac3)&&_0x3a1ca9['add'](_0x374cba);for(const _0x319c25 of _0x521429['getSuggestions']())_0x3a1ca9['has'](_0x319c25['attributes']['groupId'])&&_0x319c25['setAttribute']('groupId',_0x51d298);}['_supportLegacySuggestions'](){const _0xf070a8=this['editor'],_0x3ed026=_0xf070a8['locale'],_0x57fd94=_0xf070a8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x57fd94['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d3472,_0x480199){const _0x2c54cb=[];for(let _0x27cb30 of _0x4d3472)_0x27cb30['start']['nodeAfter']===_0x27cb30['end']['parent']&&(_0x27cb30=_0xf070a8['model']['createRange'](_0xf070a8['model']['createPositionAt'](_0x27cb30['start']['nodeAfter'],0x0))),_0x2c54cb['push'](_0x27cb30);_0xf070a8['model']['change'](_0xf1289f=>{const _0x37ceaf=_0xf070a8['model']['document']['selection'],_0x2b4e1e=Array['from'](_0x37ceaf['getRanges']())['map'](_0x16bd7e=>_0x5818a9['fromRange'](_0x16bd7e));_0xf1289f['setSelection'](_0x2c54cb),_0xf070a8['commands']['get'](_0x480199['commandName'])['refresh'](),_0x480199['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xf070a8['execute'](_0x480199['commandName'],..._0x480199['commandParams']),_0xf1289f['setSelection'](_0x2b4e1e);for(const _0x2cdc4e of _0x2b4e1e)_0x2cdc4e['detach']();});}),_0x57fd94['descriptionFactory']['registerElementLabel'](function(_0x374a84){const _0x267054=!_0xf070a8['model']['schema']['isObject'](_0x374a84),_0x2ff024=_0x374a84['previousSibling'],_0x40fd27=_0x374a84['nextSibling'],_0x2b812e=_0x374a84['getAttribute']('listItemId'),_0x159d3d=!_0x2ff024||_0x2ff024['getAttribute']('listItemId')!==_0x2b812e,_0x5c314c=!_0x40fd27||_0x40fd27['getAttribute']('listItemId')!==_0x2b812e;return _0x267054&&Boolean(_0x2b812e)&&_0x159d3d&&_0x5c314c;},_0x2ae490=>c(_0x3ed026,'ELEMENT_LIST_ITEM',_0x2ae490));}['_registerLegacyDescription'](){const _0xb4ea4=this['editor'],_0x2fd367=_0xb4ea4['locale'];function _0x14a1af(_0x5ae8a7){const _0x5da1fa=_0xb4ea4['commands']['get']('bulletedList')['value'],_0x5d86cf=_0xb4ea4['commands']['get']('numberedList')['value'];return'numberedList'===_0x5ae8a7?_0x5da1fa:_0x5d86cf;}_0xb4ea4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c01ff){if('formatBlock'!=_0x2c01ff['type'])return;const {data:_0x19cacd}=_0x2c01ff;if(!_0x19cacd)return;let _0x27ae46,_0x18ee6e,_0x4790be,_0x3358de;switch(_0x19cacd['commandName']){case'bulletedList':_0x4790be=_0x19cacd['commandParams'][0x0]['forceValue'],_0x3358de=_0x14a1af(_0x19cacd['commandName']),_0x27ae46=_0x4790be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3358de&&_0xb4ea4['config']['get']('list.multiBlock')||(_0x27ae46='*Change\x20to:*\x20%0'),_0x18ee6e={'type':'format','content':c(_0x2fd367,_0x27ae46,c(_0x2fd367,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4790be=_0x19cacd['commandParams'][0x0]['forceValue'],_0x3358de=_0x14a1af(_0x19cacd['commandName']),_0x27ae46=_0x4790be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3358de&&_0xb4ea4['config']['get']('list.multiBlock')||(_0x27ae46='*Change\x20to:*\x20%0'),_0x18ee6e={'type':'format','content':c(_0x2fd367,_0x27ae46,c(_0x2fd367,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27ae46='*Indent:*\x20%0',_0x18ee6e={'type':'format','content':c(_0x2fd367,_0x27ae46,c(_0x2fd367,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27ae46=function(_0x174cbb){const _0x1c85bd=_0x174cbb['getFirstRange']();let _0x5efdef=_0x1c85bd['start']['nodeAfter'];for(;_0x5efdef&&_0x1c85bd['containsItem'](_0x5efdef);){if(_0x5efdef['getAttribute']('listIndent')>0x0)return!0x1;_0x5efdef=_0x5efdef['nextSibling'];}return!0x0;}(_0x2c01ff)?c(_0x2fd367,'*Format:*\x20remove\x20from\x20%0',c(_0x2fd367,function(_0x39f2b8){return'ELEMENT_'+_0x39f2b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c01ff))):c(_0x2fd367,'*Outdent:*\x20%0',c(_0x2fd367,'ELEMENT_LIST_ITEM')),_0x18ee6e={'type':'format','content':_0x27ae46};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19cacd['multipleBlocks']&&(_0x27ae46='*Merge:*\x20%0',_0x18ee6e={'type':'deletion','content':c(_0x2fd367,_0x27ae46,c(_0x2fd367,'ELEMENT_LIST_ITEM'))});}return _0x18ee6e;});}}function Te(_0xc86014){let _0x3c1f62=_0xc86014['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3c1f62;){const _0x2bf974=_0x3c1f62['getAttribute']('listItemId');if(!_0x2bf974)return!0x1;if(_0x2bf974==_0xc86014['data']['newValue'])return'newValue';if(_0x2bf974==_0xc86014['data']['oldValue'])return'oldValue';_0x3c1f62=_0x3c1f62['previousSibling'];}return!0x1;}class Se extends _0x21f549{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a354f=this['editor']['config']['get']('list.properties'),_0x14a8f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a354f['styles']&&(_0x14a8f6['enableDefaultAttributesIntegration']('listStyle'),_0x14a8f6['registerBlockAttribute']('listStyle')),_0x2a354f['reversed']&&(_0x14a8f6['enableDefaultAttributesIntegration']('listReversed'),_0x14a8f6['registerBlockAttribute']('listReversed')),_0x2a354f['startIndex']&&(_0x14a8f6['enableDefaultAttributesIntegration']('listStart'),_0x14a8f6['registerBlockAttribute']('listStart'));const _0xe1a36c={'type':'format','content':''};_0x14a8f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3396cb=this['editor']['locale'];_0x14a8f6['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3396cb,'FORMAT_LIST_REVERSED')),_0x14a8f6['descriptionFactory']['registerDescriptionCallback'](_0x3367fc=>{const {data:_0x16096c}=_0x3367fc;if(_0x16096c&&'listReversed'==_0x16096c['key'])return null==_0x16096c['newValue']||0x0==_0x16096c['newValue']&&null==_0x16096c['oldValue']?_0xe1a36c:void 0x0;}),_0x14a8f6['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3396cb,'FORMAT_LIST_START')),_0x14a8f6['descriptionFactory']['registerDescriptionCallback'](_0x19f9ae=>{const {data:_0x1e1a88}=_0x19f9ae;if(_0x1e1a88&&'listStart'==_0x1e1a88['key'])return null==_0x1e1a88['newValue']||0x1==_0x1e1a88['newValue']&&null==_0x1e1a88['oldValue']?_0xe1a36c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15dddf=>{if(_0x15dddf['batch']['isUndo'])return!0x1;let _0x29f2bd=!0x1;const _0x1a7497=_0x14a8f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a89b0=>{const _0x1f5913=_0x14a8f6['_getAttributeKey'](_0x1a89b0);return'listStart'==_0x1f5913||'listReversed'==_0x1f5913;});for(const _0x5e713d of _0x1a7497){const _0x3fb243=_0x5e713d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3fb243||'customNumbered'==_0x3fb243)continue;_0x14a8f6['_findSuggestions'](_0x5e713d['getFirstRange'](),'attribute')['find'](_0x571f46=>'listType'==_0x14a8f6['_getAttributeKey'](_0x571f46['suggestion']))||(_0x15dddf['removeMarker'](_0x5e713d['getFirstMarker']()),_0x29f2bd=!0x0);}return _0x29f2bd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x748397){const _0x3d6dbc=this['editor']['locale'],{data:_0x293a8e}=_0x748397,_0x3c5c97={'type':'format','content':''};if(!_0x293a8e||'listStyle'!=_0x293a8e['key'])return;if(!_0x293a8e['oldValue'])return'default'==_0x293a8e['newValue']?_0x3c5c97:{'type':'format','content':''+c(_0x3d6dbc,'*Set\x20format:*\x20%0',c(_0x3d6dbc,this['_getTranslationKeyForListStyle'](_0x293a8e['newValue'])))};if(!_0x293a8e['newValue']){if('default'==_0x293a8e['oldValue'])return _0x3c5c97;let _0x15d8aa=_0x748397['head'];for(;_0x15d8aa;){if(_0x15d8aa['data']&&'listType'==_0x15d8aa['data']['key']&&_0x15d8aa['data']['newValue'])return _0x3c5c97;_0x15d8aa=_0x15d8aa['next'];}return{'type':'format','content':''+c(_0x3d6dbc,'*Remove\x20format:*\x20%0',c(_0x3d6dbc,this['_getTranslationKeyForListStyle'](_0x293a8e['oldValue'])))};}if('default'!=_0x293a8e['newValue'])return{'type':'format','content':''+c(_0x3d6dbc,'*Set\x20format:*\x20%0',c(_0x3d6dbc,this['_getTranslationKeyForListStyle'](_0x293a8e['newValue'])))};let _0x1f909f=_0x748397['head'];for(;_0x1f909f;){if(_0x1f909f['data']&&'listType'==_0x1f909f['data']['key']&&_0x1f909f['data']['newValue']&&_0x1f909f['data']['oldValue'])return _0x3c5c97;_0x1f909f=_0x1f909f['next'];}return{'type':'format','content':c(_0x3d6dbc,'*Set\x20format:*\x20%0',c(_0x3d6dbc,'ELEMENT_'+_0x748397['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48a508=this['editor'],_0x3aafb4=_0x48a508['locale'];_0x48a508['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440a77=>{if('formatBlock'!=_0x440a77['type'])return;const {data:_0x2c3201}=_0x440a77;if(!_0x2c3201)return;let _0x36bff0,_0x56a88e;switch(_0x2c3201['commandName']){case'listStyle':_0x36bff0='*Change\x20to:*\x20%0',_0x56a88e={'type':'format','content':c(_0x3aafb4,_0x36bff0,c(_0x3aafb4,this['_getTranslationKeyForListStyle'](_0x2c3201['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36bff0=_0x2c3201['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56a88e={'type':'format','content':c(_0x3aafb4,_0x36bff0)};break;case'listStart':_0x36bff0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56a88e={'type':'format','content':c(_0x3aafb4,_0x36bff0,_0x2c3201['commandParams'][0x0]['startIndex'])};}return _0x56a88e;});}['_getTranslationKeyForListStyle'](_0x31f1c9){return'ELEMENT_'+function(_0x41b0ca){if(_e['includes'](_0x41b0ca))return'bulleted';if(Re['includes'](_0x41b0ca))return'numbered';return null;}(_0x31f1c9)['toUpperCase']()+'_LIST_'+_0x31f1c9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x21f549{['afterInit'](){const _0x4489b8=this['editor'];_0x4489b8['commands']['get']('emoji')&&_0x4489b8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x21f549{static get['requires'](){return[_0x3beece];}['init'](){const _0x14aecd=this['editor'],_0x171bdf=_0x14aecd['plugins']['get']('TrackChangesEditing'),_0x20a228=_0x14aecd['commands']['get']('enter');_0x171bdf['enableCommand']('enter',()=>{_0x14aecd['model']['change'](_0x1c1c32=>{const _0x29741a=_0x14aecd['model']['document']['selection'],_0x5280dc=_0x29741a['getFirstPosition'](),_0x2de4cb=_0x5818a9['fromRange'](_0x29741a['getFirstRange']());if(_0x20a228['enterBlock'](_0x1c1c32)){const _0x577fa3=_0x14aecd['model']['createPositionAt'](_0x5280dc['parent']['nextSibling'],0x0),_0xf96ea9=_0x1c1c32['createRange'](_0x5280dc,_0x577fa3);_0x171bdf['markInsertion'](_0xf96ea9);}else _0x1c1c32['setSelection'](_0x1c1c32['createRange'](_0x2de4cb['end']));_0x2de4cb['detach'](),_0x20a228['fire']('afterExecute',{'writer':_0x1c1c32});});}),_0x14aecd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x14aecd,'split'),{'priority':'high'}),_0x14aecd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x234f53,_0x10b0a0,_0x3be9dc)=>{const _0x411d8b=_0x3be9dc['mapper']['markerNameToElements'](_0x10b0a0['markerName']);if(_0x411d8b){for(const _0x228915 of _0x411d8b)_0x228915['hasClass']('ck-suggestion-marker-split')&&(_0x3be9dc['mapper']['unbindElementFromMarkerName'](_0x228915,_0x10b0a0['markerName']),_0x3be9dc['writer']['remove'](_0x228915));}},{'priority':'high'}),_0x14aecd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b53b1,_0x55ffa5,_0x340d99)=>{_0x340d99['options']['showSuggestionHighlights']&&Fe(_0x14aecd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3b53b1,_0x55ffa5,_0x340d99);},{'priority':'high'});}}class Z extends _0x21f549{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x421677=this['editor']['plugins']['get']('TrackChangesEditing');_0x421677['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x421677['enableCommand']('findNext'),_0x421677['enableCommand']('findPrevious'),_0x421677['enableCommand']('replace'),_0x421677['enableCommand']('replaceAll');}['handleFindCommand'](_0xbbc833,_0x235fd9,_0x994b00={}){const _0x2698d7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xbbc833(_0x35d5a9=>{let _0x26a6b6=('string'==typeof _0x235fd9?_0x2698d7['findByTextCallback'](_0x235fd9,_0x994b00):_0x235fd9)(_0x35d5a9);Array['isArray'](_0x26a6b6)&&(_0x26a6b6={'results':_0x26a6b6,'searchText':'string'==typeof _0x235fd9?_0x235fd9:''});const _0xfd7494=_0x26a6b6['results']['filter'](_0x40f972=>!0x1===this['_isInDeletionRange'](_0x40f972,_0x35d5a9['item']));return{..._0x26a6b6,'results':_0xfd7494};},_0x994b00);}['_isInDeletionRange'](_0x1953a2,_0x2593e0){const _0x1026d9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2593e0,_0x1953a2['start']),this['editor']['model']['createPositionAt'](_0x2593e0,_0x1953a2['end']));for(const _0x381753 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1026d9['getIntersection'](_0x381753['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x21f549{['afterInit'](){const _0x4c7c42=this['editor']['locale'],_0x21a84f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x456297,commandName:_0xe83113}of ro)this['editor']['plugins']['has'](_0x456297)&&(_0x21a84f['enableDefaultAttributesIntegration'](_0xe83113),_0x21a84f['registerInlineAttribute'](_0xe83113));_0x21a84f['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x4c7c42,'FORMAT_FONT_SIZE')),_0x21a84f['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x4c7c42,'FORMAT_FONT_FAMILY')),_0x21a84f['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x4c7c42,'FORMAT_FONT_COLOR')),_0x21a84f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x4c7c42,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc66ee6=this['editor'],_0x253243=_0xc66ee6['locale'];_0xc66ee6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27e53c=>{const _0x28c851=_0x253243['t'];if('formatInline'!=_0x27e53c['type'])return;const {data:_0x4e26fa}=_0x27e53c;if(null!=_0x4e26fa){if('fontSize'==_0x4e26fa['commandName']){const _0x5d215e=_0x4e26fa['commandParams'][0x0]['value'];if(_0x5d215e){const _0x4c08b4=_0x28c851(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f7d49=>_0x2f7d49['model']==_0x5d215e)['title'])['toLowerCase']();return{'type':'format','content':c(_0x253243,'*Set\x20font\x20size:*\x20%0',_0x4c08b4)};}return{'type':'format','content':c(_0x253243,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e26fa['commandName']){const _0x49c60d=_0x4e26fa['commandParams'][0x0]['value'];return _0x49c60d?{'type':'format','content':c(_0x253243,'*Set\x20font\x20family:*\x20%0',_0x49c60d)}:{'type':'format','content':c(_0x253243,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e26fa['commandName']){const _0x5f5cdc=_0x4e26fa['commandParams'][0x0]['value'];if(_0x5f5cdc){const _0x9e9a2=_0x442021(this['editor']['config']['get']('fontColor.colors'))['find'](_0xdaf20e=>_0xdaf20e['model']==_0x5f5cdc);let _0x5aaf8f=_0x5f5cdc,_0x316a59='';return _0x9e9a2&&(_0x5aaf8f=_0x9e9a2['label'],_0x316a59=_0x28c851(_0x5aaf8f)['toLowerCase']()),{'type':'format','content':c(_0x253243,'*Set\x20font\x20color:*\x20%0',_0x316a59)['trim'](),'color':{'value':_0x5f5cdc,'title':_0x316a59||_0x5aaf8f}};}return{'type':'format','content':c(_0x253243,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e26fa['commandName']){const _0x3d6591=_0x4e26fa['commandParams'][0x0]['value'];if(_0x3d6591){const _0xecb3b4=_0x442021(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x243c72=>_0x243c72['model']==_0x3d6591);let _0x266700=_0x3d6591,_0x539ef0='';return _0xecb3b4&&(_0x266700=_0xecb3b4['label'],_0x539ef0=_0x28c851(_0x266700)['toLowerCase']()),{'type':'format','content':c(_0x253243,'*Set\x20font\x20background\x20color:*\x20%0',_0x539ef0)['trim'](),'color':{'value':_0x3d6591,'title':_0x539ef0||_0x266700}};}return{'type':'format','content':c(_0x253243,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x21f549{['afterInit'](){const _0x329fdc=this['editor'],_0x28d842=_0x329fdc['plugins']['get']('TrackChangesEditing'),_0x3cd4fa=_0x329fdc['commands']['get']('copyFormat'),_0x3f208d=_0x329fdc['commands']['get']('pasteFormat');_0x3cd4fa&&_0x3f208d&&(_0x28d842['enableDefaultAttributesIntegration']('pasteFormat'),_0x28d842['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x300035=this['editor'],_0x173a68=_0x300035['locale'];_0x300035['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6a6d49=>{if('formatBlock'!=_0x6a6d49['type']&&'formatInline'!=_0x6a6d49['type'])return;const {data:_0x321aef}=_0x6a6d49;if(_0x321aef&&'pasteFormat'===_0x321aef['commandName']){const _0x59e9b1=[],_0x37f293=_0x321aef['commandParams'][0x0];for(const [_0x4b28b6,_0x281087]of Object['entries'](_0x37f293))_0x59e9b1['push'](so(_0x300035,_0x4b28b6,_0x281087));return _0x59e9b1['length']?{'type':'format','content':c(_0x173a68,'*Set\x20format\x20to:*\x20%0',_0x59e9b1['join'](',\x20'))}:{'type':'format','content':c(_0x173a68,'*Remove\x20all\x20formatting*')};}});}}function so(_0xea11cc,_0x5a7f32,_0x813a6a){const _0x306e94=_0xea11cc['locale']['t'],_0x312c7a=_0x5a7f32['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d4dca=_0x306e94(_0x312c7a['charAt'](0x0)['toUpperCase']()+_0x312c7a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x813a6a)return _0x1d4dca;if('fontColor'===_0x5a7f32||'fontBackgroundColor'===_0x5a7f32){const _0x3db602=_0x442021(_0xea11cc['config']['get']('fontColor.colors'))['find'](_0x1c83ef=>_0x1c83ef['model']==_0x813a6a);return _0x1d4dca+'\x20('+(_0x3db602?_0x306e94(_0x3db602['label'])['toLowerCase']():_0x813a6a)+')';}if('fontSize'===_0x5a7f32&&isNaN(parseFloat(_0x813a6a))){const _0xd31b75=_0xea11cc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xea11cc['config']['get']('fontSize.options'))['find'](_0x5c1519=>_0x5c1519['model']==_0x813a6a);return _0x1d4dca+'\x20('+(_0xd31b75?_0x306e94(_0xd31b75['title'])['toLowerCase']():_0x813a6a)+')';}return _0x1d4dca+'\x20('+_0x813a6a+')';}class et extends _0x21f549{['_headingOptions'];['afterInit'](){const _0x3ec042=this['editor'];if(!_0x3ec042['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3ec042['config']['get']('heading.options');const _0x3fa051=_0x3ec042['locale'],_0x3e6d99=_0x3ec042['plugins']['get']('TrackChangesEditing');_0x3e6d99['enableDefaultAttributesIntegration']('heading');for(const _0x22a3c2 of this['_headingOptions'])'paragraph'!=_0x22a3c2['model']&&_0x3e6d99['descriptionFactory']['registerElementLabel'](_0x22a3c2['model'],_0x1f50df=>{const _0x5100d2=this['_getHeadingLevel'](_0x22a3c2['model']);return null!==_0x5100d2?_0x31ecb0(_0x1f50df,_0x5100d2):_0x141bf2(_0x1f50df,_0x22a3c2['title']);});function _0x31ecb0(_0x599fec,_0x572331){return c(_0x3fa051,'ELEMENT_HEADING',[_0x599fec,_0x572331]);}function _0x141bf2(_0x17667f,_0x3ffa17){return c(_0x3fa051,'ELEMENT_HEADING_CUSTOM',[_0x17667f,_0x3ffa17]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36a19c=this['editor'],_0x5b68cc=_0x36a19c['locale'];function _0x585de5(_0x4de6c7,_0x59f0ba){return c(_0x5b68cc,'ELEMENT_HEADING_CUSTOM',[_0x4de6c7,_0x59f0ba]);}_0x36a19c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2defa9=>{if('formatBlock'!=_0x2defa9['type'])return;const {data:_0x158784}=_0x2defa9;if(_0x158784&&'heading'==_0x158784['commandName']){const _0xdb2399=_0x158784['commandParams'][0x0]['value'],_0x183d65=this['_getHeadingLevel'](_0xdb2399);if(null!==_0x183d65)return{'type':'format','content':c(_0x5b68cc,'*Change\x20to:*\x20%0',(_0x138278=0x1,_0x43e82f=_0x183d65,c(_0x5b68cc,'ELEMENT_HEADING',[_0x138278,_0x43e82f])))};const _0x525f6a=this['_headingOptions']['find'](_0x3b25fa=>_0x3b25fa['model']===_0xdb2399)['title'];return{'type':'format','content':c(_0x5b68cc,'*Change\x20to:*\x20%0',_0x585de5(0x1,_0x525f6a))};}var _0x138278,_0x43e82f;});}['_getHeadingLevel'](_0x178b71){const _0x10169d=_0x178b71['match'](/^heading(\d+)/);if(_0x10169d)return _0x10169d[0x1];const _0x4bc82f=this['_headingOptions']?.['find'](_0x3277e2=>_0x3277e2['model']==_0x178b71);if(_0x4bc82f&&_0x4bc82f['view']){const _0x47d3b4=_0x4bc82f['view'],_0x63ce5=(_0x47d3b4['name']??_0x47d3b4)['match'](/^h(\d+)/);if(_0x63ce5)return _0x63ce5[0x1];}return null;}}class nt extends _0x21f549{['afterInit'](){const _0x5225aa=this['editor'];if(!_0x5225aa['plugins']['has']('HighlightEditing'))return;const _0x5b77fc=_0x5225aa['plugins']['get']('TrackChangesEditing'),_0x1dbea4=_0x5225aa['locale'];_0x5b77fc['enableDefaultAttributesIntegration']('highlight'),_0x5b77fc['registerInlineAttribute']('highlight'),_0x5b77fc['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1dbea4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50642f=this['editor'],_0x1c58aa=_0x50642f['locale'];_0x50642f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3767c5=>{if('formatInline'!=_0x3767c5['type'])return;const {data:_0x1a4224}=_0x3767c5;if(_0x1a4224&&'highlight'==_0x1a4224['commandName']){const _0x149486=_0x1c58aa['t'],_0x2505cd=_0x1a4224['commandParams'][0x0]['value'];if(_0x2505cd){const _0x3aa487=_0x50642f['config']['get']('highlight.options')['find'](_0x40a1f3=>_0x40a1f3['model']==_0x2505cd),_0x2fac38=_0x149486(_0x3aa487['title'])['toLowerCase']();return{'type':'format','content':c(_0x1c58aa,'*Set\x20highlight:*\x20%0',_0x2fac38),'color':{'value':_0x3aa487['color'],'title':_0x3aa487['title']}};}return{'type':'format','content':c(_0x1c58aa,'*Remove\x20highlight*',c(_0x1c58aa,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x21f549{['afterInit'](){const _0x14f12f=this['editor'];if(!_0x14f12f['plugins']['has']('HorizontalLineEditing'))return;_0x14f12f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3e4eef=_0x14f12f['plugins']['get']('TrackChangesEditing'),_0x582725=_0x14f12f['locale'];_0x3e4eef['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33973f=>c(_0x582725,'ELEMENT_HORIZONTAL_LINE',_0x33973f)),_0x14f12f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x308ed0,{writer:_0x17484f,options:_0x317815})=>{if(!_0x317815['showSuggestionHighlights'])return null;const _0x1aee3f=_0x17484f['createContainerElement']('div'),_0x4b9107=_0x17484f['createEmptyElement']('hr');return _0x17484f['addClass']('ck-horizontal-line',_0x1aee3f),_0x17484f['insert'](_0x17484f['createPositionAt'](_0x1aee3f,0x0),_0x4b9107),_0x1aee3f;},'converterPriority':'high'});}}class ot extends _0x21f549{['afterInit'](){const _0x15e2b4=this['editor'];if(!_0x15e2b4['plugins']['has']('HtmlEmbed'))return;const _0x5adbb3=_0x15e2b4['plugins']['get']('TrackChangesEditing'),_0x26e557=_0x15e2b4['locale'];_0x5adbb3['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d0393=>c(_0x26e557,'ELEMENT_HTML_EMBED',_0x5d0393)),_0x5adbb3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5adbb3['registerBlockAttribute']('value'),_0x5adbb3['descriptionFactory']['registerDescriptionCallback'](_0x303d09=>{if('attribute'!=_0x303d09['type'])return;const {data:_0x16c6bd}=_0x303d09;if(_0x16c6bd&&'value'==_0x16c6bd['key']&&_0x303d09['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59a38d=c(_0x26e557,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x26e557,'*Change\x20%0\x20content*',_0x59a38d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d6cd=this['editor'],_0x44d0af=_0x16d6cd['locale'];_0x16d6cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4234a2=>{if('formatBlock'!=_0x4234a2['type'])return;const {data:_0x1387dd}=_0x4234a2;if(_0x1387dd&&'htmlEmbed'==_0x1387dd['commandName']){const _0x52a393=c(_0x44d0af,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x44d0af,'*Change\x20%0\x20content*',_0x52a393)};}});}}class rt extends _0x21f549{['afterInit'](){const _0x3c1e6e=this['editor'];if(!_0x3c1e6e['plugins']['has']('ImageEditing'))return;const _0x4d078b=_0x3c1e6e['plugins']['get']('TrackChangesEditing'),_0x51c9c6=_0x3c1e6e['plugins']['get']('ImageUtils'),_0x2c4973=_0x3c1e6e['locale'];_0x4d078b['enableCommand']('insertImage'),_0x4d078b['descriptionFactory']['registerElementLabel']('imageBlock',_0x28aeee=>c(_0x2c4973,'ELEMENT_IMAGE',_0x28aeee)),_0x4d078b['descriptionFactory']['registerElementLabel']('imageInline',_0x4de0b3=>c(_0x2c4973,'ELEMENT_INLINE_IMAGE',_0x4de0b3)),_0x4d078b['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2c4973,'ELEMENT_CAPTION')),_0x3c1e6e['plugins']['has']('ImageUploadEditing')&&_0x4d078b['enableCommand']('uploadImage'),_0x3c1e6e['plugins']['has']('ImageBlockEditing')&&_0x3c1e6e['plugins']['has']('ImageInlineEditing')&&(_0x4d078b['enableCommand']('imageTypeInline',(_0x10dbdc,_0x51f9e4)=>{const _0x51bc21=_0x51c9c6['getClosestSelectedImageElement'](_0x3c1e6e['model']['document']['selection']);_0x3c1e6e['model']['change'](()=>{_0x4d078b['markBlockFormat'](_0x51bc21,{'commandName':'imageTypeInline','commandParams':[_0x51f9e4]},[],'convertBlockImageToInline');});}),_0x4d078b['enableCommand']('imageTypeBlock',(_0x44d530,_0x33776c)=>{_0x3c1e6e['model']['change'](_0xeb1b46=>{let _0x353437=_0x51c9c6['getClosestSelectedImageElement'](_0x3c1e6e['model']['document']['selection']),_0x43769a=_0xeb1b46['createRangeOn'](_0x353437);const _0x479532=_0x46dfbf['fromPosition'](_0x43769a['start'],'toPrevious'),_0x2b2c4f=_0x46dfbf['fromPosition'](_0x43769a['end'],'toNext');_0x4d078b['forceDefaultExecution'](()=>_0x44d530(_0x33776c)),_0x353437=_0x51c9c6['getClosestSelectedImageElement'](_0x3c1e6e['model']['document']['selection']),_0x43769a=_0xeb1b46['createRangeOn'](_0x353437);const _0x1e0ff1=_0xeb1b46['createRange'](_0x479532,_0x2b2c4f);_0x479532['detach'](),_0x2b2c4f['detach'](),_0x4d078b['markBlockFormat'](_0x353437,{'commandName':'imageTypeInline','commandParams':[_0x33776c]},[],'convertInlineImageToBlock'),_0x1e0ff1['start']['isBefore'](_0x43769a['start'])&&_0x4d078b['markInsertion'](_0xeb1b46['createRange'](_0x1e0ff1['start'],_0x43769a['start']),'convertInlineImageToBlock'),_0x43769a['end']['isBefore'](_0x1e0ff1['end'])&&_0x4d078b['markInsertion'](_0xeb1b46['createRange'](_0x43769a['end'],_0x1e0ff1['end']),'convertInlineImageToBlock');});}),_0x4d078b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d078b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d078b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d078b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d078b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d078b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x114165])=>{const _0x99327e=_0x4d078b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x7c682f=_0x114165['start'],_0x157d29=_0x114165['end'];const _0xc3b7dd=_0x3c1e6e['model']['schema']['getNearestSelectionRange'](_0x7c682f,'backward'),_0x1717fd=_0x3c1e6e['model']['schema']['getNearestSelectionRange'](_0x157d29,'forward');_0xc3b7dd['isCollapsed']&&(_0x7c682f=_0xc3b7dd['start']),_0x1717fd['isCollapsed']&&(_0x157d29=_0x1717fd['end']),_0x99327e([_0x3c1e6e['model']['createRange'](_0x7c682f,_0x157d29)]);}),_0x4d078b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2698b3),_0x4d078b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2698b3)),_0x3c1e6e['plugins']['has']('ImageCaptionEditing')&&(_0x4d078b['enableCommand']('toggleImageCaption',(_0x36ece9,_0x23c0f8)=>{const _0x5cbd45=_0x3c1e6e['plugins']['get']('ImageCaptionUtils');let _0x26f539=_0x51c9c6['getClosestSelectedImageElement'](_0x3c1e6e['model']['document']['selection']),_0x284e2b=_0x5cbd45['getCaptionFromImageModelElement'](_0x26f539);_0x3c1e6e['model']['change'](()=>{if(_0x284e2b)return void _0x4d078b['markDeletion'](_0x3c1e6e['model']['createRangeOn'](_0x284e2b));const _0x2cbb48=_0x51c9c6['isBlockImage'](_0x26f539);_0x36ece9(_0x23c0f8),_0x26f539=_0x51c9c6['getClosestSelectedImageElement'](_0x3c1e6e['model']['document']['selection']),_0x284e2b=_0x5cbd45['getCaptionFromImageModelElement'](_0x26f539),_0x4d078b['markInsertion'](_0x3c1e6e['model']['createRangeOn'](_0x284e2b),_0x2cbb48?null:'imageCaption');});}),_0x4d078b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2698b3));const _0x36dc82=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b7aa2(_0x18f1e0,_0x3ad52e){const _0x156bb2=_0x36dc82['findIndex'](({type:_0x386d2e,subType:_0x5103c5})=>_0x18f1e0['type']==_0x386d2e&&_0x18f1e0['subType']==_0x5103c5),_0x55a354=_0x36dc82['findIndex'](({type:_0x5de800,subType:_0x337a20})=>_0x3ad52e['type']==_0x5de800&&_0x3ad52e['subType']==_0x337a20);if(_0x156bb2<0x0||_0x55a354<0x0)return!0x1;const _0x564400=_0x18f1e0['getFirstRange'](),_0x41546a=_0x3ad52e['getFirstRange']();if((0x0==_0x156bb2||0x1==_0x156bb2)&&0x2==_0x55a354&&_0x564400['isIntersecting'](_0x41546a))return!0x0;if(0x2==_0x156bb2&&0x3==_0x55a354){const _0x34cfcf=_0x4d078b['_findSuggestions'](_0x564400,'insertion')['filter'](({suggestion:_0x4789b5,meta:_0x5d4a6f})=>_0x5d4a6f['isOwn']&&'convertInlineImageToBlock'==_0x4789b5['subType']);if(_0x34cfcf['length']>0x1&&_0x41546a['end']['isEqual'](_0x564400['start']))return!0x0;if(0x1==_0x34cfcf['length']&&(_0x564400['start']['isEqual'](_0x41546a['end'])||_0x564400['end']['isEqual'](_0x41546a['start'])))return!0x0;}if(0x3==_0x156bb2&&0x3==_0x55a354&&_0x564400['start']['isBefore'](_0x41546a['start'])){const _0x5e9133=_0x564400['end']['nodeAfter'],_0x1ee27e=_0x41546a['start']['nodeBefore'];return _0x51c9c6['isBlockImage'](_0x5e9133)&&_0x5e9133===_0x1ee27e;}return!0x1;}function _0x2698b3(_0x14a7f4,_0x4f43b3){return _0x1b7aa2(_0x14a7f4,_0x4f43b3)?[_0x14a7f4,_0x4f43b3]:_0x1b7aa2(_0x4f43b3,_0x14a7f4)?[_0x4f43b3,_0x14a7f4]:null;}_0x3c1e6e['plugins']['has']('ImageResize')&&(_0x4d078b['enableDefaultAttributesIntegration']('resizeImage'),_0x4d078b['registerBlockAttribute']('resizedWidth'),_0x4d078b['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2c4973,'FORMAT_IMAGE_SIZE'))),_0x3c1e6e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d078b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d078b['registerBlockAttribute']('alt')),_0x3c1e6e['plugins']['has']('PictureEditing')&&(_0x4d078b['registerBlockAttribute']('sources'),_0x4d078b['descriptionFactory']['registerDescriptionCallback'](_0x2340a1=>{if('attribute'!=_0x2340a1['type'])return;const {data:_0xc28d6b}=_0x2340a1;return _0xc28d6b&&'sources'==_0xc28d6b['key']?{'type':'format','content':''}:void 0x0;})),_0x3c1e6e['plugins']['has']('ImageSizeAttributes')&&(_0x4d078b['registerBlockAttribute']('width'),_0x4d078b['registerBlockAttribute']('height'),_0x4d078b['descriptionFactory']['registerDescriptionCallback'](_0x23c845=>{if('attribute'!=_0x23c845['type'])return;const {data:_0x47be58}=_0x23c845;return!_0x47be58||'width'!=_0x47be58['key']&&'height'!=_0x47be58['key']?void 0x0:{'type':'format','content':''};})),_0x4d078b['descriptionFactory']['registerDescriptionCallback'](_0x328b49=>{if(!!_0x36dc82['find'](({type:_0x40ce22,subType:_0x57ff88})=>_0x328b49['type']==_0x40ce22&&_0x328b49['subType']==_0x57ff88))return _0x328b49['previous']?{}:void 0x0;}),_0x4d078b['descriptionFactory']['registerDescriptionCallback'](_0x39c074=>{if('insertion'==_0x39c074['type']||'deletion'==_0x39c074['type']){const _0x126f05=_0x39c074['getContainedElement']();if(_0x126f05&&_0x126f05['is']('element','caption'))return{'type':'insertion'==_0x39c074['type']?'addObject':'removeObject','element':_0x126f05,'quantity':0x1};}}),_0x4d078b['descriptionFactory']['registerDescriptionCallback'](_0xa9b4e4=>'formatBlock'==_0xa9b4e4['type']&&'convertInlineImageToBlock'==_0xa9b4e4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xa9b4e4['type']&&'convertBlockImageToInline'==_0xa9b4e4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d078b['descriptionFactory']['registerDescriptionCallback'](_0x2216c5=>{if('attribute'!=_0x2216c5['type'])return;const {data:_0x4fef82}=_0x2216c5;if(!_0x4fef82||'alt'!=_0x4fef82['key'])return;const _0x4ebf99=_0x4fef82['newValue'];return _0x4ebf99?{'type':'format','content':c(_0x2c4973,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ebf99+'\x22')}:{'type':'format','content':c(_0x2c4973,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x318b8c=this['editor'],_0x42fa10=_0x318b8c['locale'];_0x318b8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11f4e4=>{if('formatBlock'!=_0x11f4e4['type']&&'formatInline'!=_0x11f4e4['type'])return;const {data:_0x3b83af}=_0x11f4e4;if(_0x3b83af){if('imageTextAlternative'==_0x3b83af['commandName']){const _0x3418fa=_0x3b83af['commandParams'][0x0]['newValue'];return _0x3418fa?{'type':'format','content':c(_0x42fa10,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3418fa+'\x22')}:{'type':'format','content':c(_0x42fa10,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b83af['commandName']){const _0x531239=_0x3b83af['commandParams'][0x0]['width'];return _0x531239?{'type':'format','content':c(_0x42fa10,'*Set\x20image\x20width:*\x20%0',_0x531239)}:{'type':'format','content':c(_0x42fa10,'*Reset\x20image\x20width*')};}}});}}class at extends _0x21f549{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27fef7=this['editor']['locale'],_0x2574af=this['editor']['plugins']['get']('TrackChangesEditing');_0x2574af['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2574af['registerBlockAttribute']('src'),_0x2574af['descriptionFactory']['registerDescriptionCallback'](_0x3cb244=>{if('attribute'!=_0x3cb244['type'])return;const {data:_0x364e01}=_0x3cb244;return _0x364e01&&'src'==_0x364e01['key']?_0x364e01['newValue']&&_0x364e01['oldValue']?{'type':'format','content':c(_0x27fef7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9d1fd4=this['editor']['plugins']['get']('TrackChangesEditing');_0x9d1fd4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x9d1fd4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9d1fd4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x9d1fd4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47b800=this['editor'],_0xcddbb=_0x47b800['locale'];_0x47b800['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26e1d8=>{if('formatBlock'!=_0x26e1d8['type']&&'formatInline'!=_0x26e1d8['type'])return;const {data:_0xfb348}=_0x26e1d8;if(!_0xfb348||'replaceImageSource'!=_0xfb348['commandName'])return;return{'type':'format','content':c(_0xcddbb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x21f549{['afterInit'](){const _0x5c11d3=this['editor'];if(!_0x5c11d3['plugins']['has']('ImageStyleEditing'))return;const _0x4994ed=_0x5c11d3['plugins']['get']('TrackChangesEditing'),_0x1f21a6=_0x5c11d3['plugins']['get']('ImageUtils'),_0x3dbd19={};_0x4994ed['enableCommand']('imageStyle',(_0xd4ee79,_0x2e9be9)=>{const _0x3cc48e=_0x5c11d3['plugins']['get']('Users')['me'],_0x34c9aa=_0x5c11d3['commands']['get']('imageStyle');let _0x4e4269=_0x1f21a6['getClosestSelectedImageElement'](_0x5c11d3['model']['document']['selection']),_0x251983=_0x5c11d3['model']['createRangeOn'](_0x4e4269),_0x422924=_0x34c9aa['value'];if(_0x422924==_0x2e9be9['value'])return;const _0x4c09d0={'commandName':'imageStyle','commandParams':[_0x2e9be9],'formatGroupId':_0x4822d2()};_0x5c11d3['model']['change'](()=>{if(_0x4994ed['getSuggestions']()['filter'](_0x3edaa8=>_0x3edaa8['isInContent']&&_0x3cc48e==_0x3edaa8['author']&&('formatBlock'==_0x3edaa8['type']||'formatInline'==_0x3edaa8['type'])&&('imageStylePreApply'==_0x3edaa8['subType']||'imageStylePostApply'==_0x3edaa8['subType'])&&_0x3edaa8['getFirstRange']()['isEqual'](_0x251983))['forEach'](_0x85ae96=>_0x4994ed['discardSuggestion'](_0x85ae96['head'])),_0x4e4269=_0x1f21a6['getClosestSelectedImageElement'](_0x5c11d3['model']['document']['selection']),_0x251983=_0x5c11d3['model']['createRangeOn'](_0x4e4269),_0x34c9aa['refresh'](),_0x5c11d3['commands']['get']('imageTypeInline')['refresh'](),_0x5c11d3['commands']['get']('imageTypeBlock')['refresh'](),_0x422924=_0x34c9aa['value'],_0x422924!=_0x2e9be9['value'])return _0x1f21a6['isInlineImage'](_0x4e4269)&&_0x34c9aa['shouldConvertImageType'](_0x2e9be9['value'],_0x4e4269)?(_0xd4ee79({..._0x2e9be9,'setImageSizes':!0x1}),_0x4e4269=_0x1f21a6['getClosestSelectedImageElement'](_0x5c11d3['model']['document']['selection']),void _0x4994ed['markBlockFormat'](_0x4e4269,{..._0x4c09d0,'commandReversedParams':[{'value':_0x422924||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1f21a6['isBlockImage'](_0x4e4269)?_0x4994ed['markBlockFormat'](_0x4e4269,_0x4c09d0,[],'imageStylePostApply'):_0x4994ed['markInlineFormat'](_0x251983,_0x4c09d0,'imageStylePostApply'));});});for(const _0xb52ed3 of _0x5c11d3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3dbd19[_0xb52ed3['name']]=_0xb52ed3['title']['toLowerCase']();_0x4994ed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4994ed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4994ed['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4994ed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x113548])=>{_0x1f21a6['setImageNaturalSizeAttributes'](_0x113548['getContainedElement']());}),_0x4994ed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1a99ea,_0x30c15f)=>{_0x4994ed['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1a99ea,{'commandName':_0x30c15f['commandName'],'commandParams':_0x30c15f['commandReversedParams']});}),_0x4994ed['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38ebb7,_0x17eaa1){if(_0x27d4bd(_0x38ebb7,_0x17eaa1))return[_0x38ebb7,_0x17eaa1];if(_0x27d4bd(_0x17eaa1,_0x38ebb7))return[_0x17eaa1,_0x38ebb7];return null;});const _0x1ad2f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27d4bd(_0x2ad841,_0xbb0dab){const _0x2741e4=_0x1ad2f7['findIndex'](({type:_0x4f24b5,subType:_0x10e8bd})=>_0x2ad841['type']==_0x4f24b5&&_0x2ad841['subType']==_0x10e8bd),_0x435c96=_0x1ad2f7['findIndex'](({type:_0x5f052f,subType:_0x100e04})=>_0xbb0dab['type']==_0x5f052f&&_0xbb0dab['subType']==_0x100e04);if(_0x2741e4<0x0||_0x435c96<0x0)return!0x1;const _0x1ddd99=_0x2ad841['getFirstRange'](),_0xa260f7=_0xbb0dab['getFirstRange']();if((0x0==_0x2741e4||0x1==_0x2741e4)&&0x2==_0x435c96&&_0x1ddd99['isIntersecting'](_0xa260f7))return!0x0;if(0x2==_0x2741e4&&0x3==_0x435c96){const _0x37c920=_0x4994ed['_findSuggestions'](_0x1ddd99,'insertion')['filter'](({suggestion:_0x4150e3,meta:_0x4772bc})=>_0x4772bc['isOwn']&&'convertInlineImageToBlock'==_0x4150e3['subType']);if(_0x37c920['length']>0x1&&_0xa260f7['end']['isEqual'](_0x1ddd99['start']))return!0x0;if(0x1==_0x37c920['length']&&(_0x1ddd99['start']['isEqual'](_0xa260f7['end'])||_0x1ddd99['end']['isEqual'](_0xa260f7['start'])))return!0x0;}if(0x3==_0x2741e4&&0x3==_0x435c96&&_0x1ddd99['start']['isBefore'](_0xa260f7['start'])){const _0x4b74d1=_0x1ddd99['end']['nodeAfter'],_0xc725f5=_0xa260f7['start']['nodeBefore'];return _0x1f21a6['isBlockImage'](_0x4b74d1)&&_0x4b74d1===_0xc725f5;}return!0x1;}_0x5c11d3['model']['document']['registerPostFixer'](()=>{let _0x449122=!0x1;const _0x37daa8=Array['from'](_0x5c11d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47594c,data:_0x7e01e9}of _0x37daa8){const {group:_0x5f16fb,type:_0x239175,subType:_0x38bd8d,id:_0x4f74f3}=_0x4994ed['_splitMarkerName'](_0x47594c);if('suggestion'==_0x5f16fb&&_0x4994ed['hasSuggestion'](_0x4f74f3)){if('formatBlock'==_0x239175&&('imageStylePreApply'==_0x38bd8d||'imageStylePostApply'==_0x38bd8d)){const _0x324dc2=_0x4994ed['getSuggestion'](_0x4f74f3);if(_0x7e01e9['newRange']){const _0x5b3b17=_0x324dc2['getFirstRange']()['getContainedElement']();if(_0x1f21a6['isBlockImage'](_0x5b3b17))continue;_0x4994ed['discardSuggestion'](_0x324dc2),_0x449122=!0x0;}}if('insertion'==_0x239175&&'imageCaption'==_0x38bd8d&&!_0x7e01e9['newRange']){const _0x35434f=_0x4994ed['getSuggestion'](_0x4f74f3);_0x35434f['next']&&_0x35434f['next']['isInContent']&&(_0x4994ed['discardSuggestion'](_0x35434f['next']),_0x449122=!0x0);}}}return _0x449122;}),this['_registerLegacyDescription'](_0x3dbd19);}['_registerLegacyDescription'](_0x5de0bf){const _0x357b80=this['editor'],_0x4666dc=_0x357b80['locale'];_0x357b80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9c964a=>{if('formatBlock'!=_0x9c964a['type']&&'formatInline'!=_0x9c964a['type'])return;const {data:_0x5cb34b}=_0x9c964a;if(!_0x5cb34b||'imageStyle'!=_0x5cb34b['commandName'])return;const _0x4da0ba=_0x5cb34b['commandParams'][0x0]['value'];return _0x28599b('side'===_0x4da0ba?c(_0x4666dc,'FORMAT_SIDE_IMAGE'):_0x5de0bf[_0x4da0ba]||_0x4da0ba);function _0x28599b(_0x377bd0){return{'type':'format','content':c(_0x4666dc,'*Format:*\x20%0',_0x377bd0)};}});}}class ut extends _0x21f549{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x82accb){super(_0x82accb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b5569=this['editor'],_0x3f876c=_0x4b5569['commands']['get']('importWord'),_0x46d9a6=_0x4b5569['commands']['get']('trackChanges');_0x3f876c&&(_0x3f876c['on']('execute',(_0x2c73db,[,_0x246a55])=>{this['_trackChangesValueDuringImport']=_0x46d9a6['value'],_0x246a55['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3f876c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3f876c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x46d9a6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b5569['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3b43e5,_0x49b143){const {suggestions:_0x38c940}=_0x49b143,_0x59c1dd=this['editor']['commands']['get']('trackChanges'),_0x122921=_0x59c1dd['value'];this['_trackChangesValueDuringImport']!==_0x122921&&(_0x59c1dd['execute'](),this['_trackChangesExecuted']=!0x0),_0x38c940&&_0x38c940['forEach'](({id:_0x1e02c0,type:_0x2f2fea,author:_0xd5fe34,created_at:_0xed6c33})=>{const _0x2d27ac={'id':_0x1e02c0,'type':_0x2f2fea,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xd5fe34,'createdAt':_0xed6c33?new Date(_0xed6c33):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2d27ac);});}}class ft extends _0x21f549{['afterInit'](){const _0x37273e=this['editor'],_0x11b57b=_0x37273e['plugins']['get']('TrackChangesEditing');if(_0x37273e['plugins']['has']('IndentEditing')&&(_0x11b57b['enableCommand']('indent'),_0x11b57b['enableCommand']('outdent')),_0x37273e['plugins']['has']('IndentBlock')){for(const _0x202d7b of['indentBlock','outdentBlock'])_0x11b57b['enableDefaultAttributesIntegration'](_0x202d7b);}const _0x296c46=_0x37273e['locale'];_0x11b57b['registerBlockAttribute']('blockIndent'),_0x11b57b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x296c46,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a2c7=this['editor'],_0x4dac17=_0x32a2c7['locale'],_0x5c326f=_0x32a2c7['plugins']['get']('TrackChangesEditing');_0x5c326f['descriptionFactory']['registerDescriptionCallback'](_0x51c232=>{if('formatBlock'!=_0x51c232['type'])return;const {data:_0x682229}=_0x51c232;if(!_0x682229)return;if('indentBlock'!=_0x682229['commandName']&&'outdentBlock'!=_0x682229['commandName'])return;const _0x140213=_0x51c232['getItems']()[0x0],_0x1a0101=_0x5c326f['descriptionFactory']['getItemLabel'](_0x140213);return'indentBlock'==_0x682229['commandName']?{'type':'format','content':c(_0x4dac17,'*Indent:*\x20%0',_0x1a0101)}:'outdentBlock'==_0x682229['commandName']?{'type':'format','content':c(_0x4dac17,'*Outdent:*\x20%0',_0x1a0101)}:void 0x0;});}}class ht extends _0x21f549{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x21f549{['afterInit'](){const _0x55de37=this['editor'];if(!_0x55de37['plugins']['has']('LinkEditing'))return;const _0x41c430=_0x55de37['plugins']['get']('TrackChangesEditing'),_0x4740ef=_0x55de37['commands']['get']('link');_0x41c430['enableDefaultAttributesIntegration']('link'),_0x41c430['enableDefaultAttributesIntegration']('unlink'),_0x41c430['registerInlineAttribute']('linkHref');for(const _0x3fc072 of _0x4740ef['manualDecorators'])_0x41c430['registerInlineAttribute'](_0x3fc072['id']),_0x41c430['descriptionFactory']['registerAttributeLabel'](_0x3fc072['id'],'link\x20('+_0x3fc072['label']['toLowerCase']()+')');_0x41c430['descriptionFactory']['registerDescriptionCallback'](_0x47b67b=>{if('attribute'!=_0x47b67b['type'])return;const {data:_0x15733a}=_0x47b67b;if(!_0x15733a||'linkHref'!=_0x15733a['key'])return;const _0x15e44f=_0x15733a['newValue'],_0x1c0231=_0x55de37['locale'];return{'type':'format','content':null==_0x15e44f?c(_0x1c0231,'*Remove\x20link*'):c(_0x1c0231,'*Set\x20link:*\x20%0','\x22'+_0x15e44f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d15ee=this['editor'],_0x3fc8e0=_0x6d15ee['locale'];_0x6d15ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a884d=>{if('formatInline'!=_0x3a884d['type'])return;const {data:_0x2a91f4}=_0x3a884d;if(_0x2a91f4){if('link'==_0x2a91f4['commandName']){const _0x4b2cd5=_0x2a91f4['commandParams'][0x0];return{'type':'format','content':c(_0x3fc8e0,'*Set\x20link:*\x20%0','\x22'+_0x4b2cd5+'\x22')};}return'unlink'==_0x2a91f4['commandName']?{'type':'format','content':c(_0x3fc8e0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x21f549{['afterInit'](){const _0x2ee16d=this['editor'],_0x33ecf9=_0x2ee16d['locale'];if(!_0x2ee16d['plugins']['has']('LegacyListEditing'))return;const _0x1b8d4c=_0x2ee16d['plugins']['get']('TrackChangesEditing'),_0x2fb71e=_0x2ee16d['plugins']['has']('LegacyTodoListEditing');function _0x168ca5(_0x2e7bb0){return()=>{const _0x5ec481=_0x2ee16d['model']['document']['selection'],_0x559f09=_0x2ee16d['commands']['get'](_0x2e7bb0);if(_0x559f09['value'])return void _0x2ee16d['execute']('paragraph',{});const _0x2713c7=_0x2e7bb0['slice'](0x0,-0x4),_0x273fc2=function(_0x3ae201,_0x5509d2,_0x49b234){let _0x3f5744=Array['from'](_0x3ae201)['filter'](_0x4e8ef8=>function(_0x394cb5,_0x3b8cdb){return _0x3b8cdb['checkChild'](_0x394cb5['parent'],'listItem')&&!_0x3b8cdb['isObject'](_0x394cb5);}(_0x4e8ef8,_0x49b234));_0x3f5744=_0x3f5744['filter'](_0x104934=>!_0x104934['is']('element','listItem')||_0x104934['getAttribute']('listType')!=_0x5509d2);const _0x19fb59=new Set();for(const _0x19f988 of _0x3f5744)_0x19f988['is']('element','listItem')?_0x19fb59['add'](Le(_0x19f988)):_0x19fb59['add'](_0x19f988);return Array['from'](_0x19fb59);}(_0x5ec481['getSelectedBlocks'](),_0x2713c7,_0x2ee16d['model']['schema']);_0x2ee16d['model']['change'](()=>{for(const _0x48c3f3 of _0x273fc2)_0x1b8d4c['markBlockFormat'](_0x48c3f3,{'commandName':_0x2e7bb0,'commandParams':[{'forceValue':!_0x559f09['value']}],'formatGroupId':'blockName'},Ee(_0x48c3f3));});};}function _0x3071d2(_0x4d542a){return()=>{const _0x5b2eb6=function(_0x4d291f){let _0x9ed55a=Array['from'](_0x4d291f);const _0x20dbc3=_0x9ed55a['findIndex'](_0x410238=>'listItem'!=_0x410238['name']);return _0x20dbc3>-0x1&&(_0x9ed55a=_0x9ed55a['slice'](0x0,_0x20dbc3)),_0x9ed55a;}(_0x2ee16d['model']['document']['selection']['getSelectedBlocks']()),_0x4aaa61=_0x2ee16d['model']['createRange'](_0x2ee16d['model']['createPositionAt'](_0x5b2eb6[0x0],'before'),_0x2ee16d['model']['createPositionAt'](_0x5b2eb6[_0x5b2eb6['length']-0x1],'end'));_0x2ee16d['model']['change'](()=>{_0x1b8d4c['markBlockFormat'](_0x4aaa61,{'commandName':_0x4d542a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1e52d0){const _0x1fe092=new Set();for(const _0x43d58d of _0x1e52d0){let _0x121beb=_0x43d58d['nextSibling'];for(;_0x121beb&&_0x121beb['getAttribute']('listIndent')>_0x43d58d['getAttribute']('listIndent');)_0x1fe092['add'](_0x121beb),_0x121beb=_0x121beb['nextSibling'];}return Array['from'](_0x1fe092);}(_0x5b2eb6));});};}_0x1b8d4c['enableCommand']('numberedList',_0x168ca5('numberedList')),_0x1b8d4c['enableCommand']('bulletedList',_0x168ca5('bulletedList')),_0x2fb71e&&_0x1b8d4c['enableCommand']('todoList',_0x168ca5('todoList')),_0x1b8d4c['enableCommand']('indentList',_0x3071d2('indentList')),_0x1b8d4c['enableCommand']('outdentList',_0x3071d2('outdentList')),_0x2fb71e&&_0x1b8d4c['enableCommand']('checkTodoList',()=>{const _0x286ba2=_0x2ee16d['commands']['get']('checkTodoList'),_0x144f78=Array['from'](_0x286ba2['_selectedElements']);_0x144f78['filter'](_0x43bcfe=>_0x43bcfe['getAttribute']('todoListChecked')!=_0x286ba2['value']),_0x2ee16d['model']['change'](()=>{for(const _0x1c13f0 of _0x144f78)_0x1b8d4c['markBlockFormat'](_0x1c13f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x286ba2['value']}]});});}),_0x1b8d4c['descriptionFactory']['registerElementLabel']('listItem',_0x4bc1cf=>c(_0x33ecf9,'ELEMENT_LIST_ITEM',_0x4bc1cf)),_0x1b8d4c['descriptionFactory']['registerDescriptionCallback'](_0x3d64bc=>{if('formatBlock'!=_0x3d64bc['type']&&'formatInline'!=_0x3d64bc['type'])return;const {data:_0x36e2be}=_0x3d64bc;if(_0x36e2be){if('numberedList'==_0x36e2be['commandName']||'bulletedList'==_0x36e2be['commandName']||'todoList'==_0x36e2be['commandName'])switch(_0x36e2be['commandName']['replace']('List','')){case'bulleted':return _0x38116d(c(_0x33ecf9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38116d(c(_0x33ecf9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38116d(c(_0x33ecf9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x36e2be['commandName'])return{'type':'format','content':c(_0x33ecf9,'*Indent:*\x20%0',c(_0x33ecf9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x36e2be['commandName'])return{'type':'format','content':c(_0x33ecf9,'*Outdent:*\x20%0',c(_0x33ecf9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x36e2be['commandName'])return _0x36e2be['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x33ecf9,'*Check\x20item*')}:{'type':'format','content':c(_0x33ecf9,'*Uncheck\x20item*')};}function _0x38116d(_0x45ffb4){return{'type':'format','content':c(_0x33ecf9,'*Change\x20to:*\x20%0',_0x45ffb4)};}});}}function Le(_0x1cb437){const _0x3bbee3=_0x1cb437['getAttribute']('listIndent');if(0x0==_0x3bbee3)return _0x1cb437;let _0x1fe318=_0x1cb437;for(;_0x1cb437['previousSibling']&&_0x1cb437['previousSibling']['is']('element','listItem');){const _0x367a6a=_0x1cb437['previousSibling']['getAttribute']('listIndent');if(_0x367a6a==_0x3bbee3)_0x1fe318=_0x1cb437['previousSibling'];else{if(_0x367a6a<_0x3bbee3)break;}_0x1cb437=_0x1cb437['previousSibling'];}return _0x1fe318;}function Ee(_0x393263){const _0x56e9e3=[];if(_0x393263['is']('element','listItem')&&_0x393263['getAttribute']('listIndent')>0x0){let _0x655e88=_0x393263['nextSibling'];for(;_0x655e88&&'listItem'==_0x655e88['name']&&_0x655e88['getAttribute']('listIndent')==_0x393263['getAttribute']('listIndent');)_0x56e9e3['push'](_0x655e88),_0x655e88=_0x655e88['nextSibling'];}return _0x56e9e3;}class Q extends _0x21f549{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x48aa8d=this['editor']['config']['get']('list.properties'),_0x19b43b=this['editor']['plugins']['get']('TrackChangesEditing');_0x48aa8d['styles']&&_0x19b43b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x48aa8d['reversed']&&_0x19b43b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x48aa8d['startIndex']&&_0x19b43b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x19b43b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x124a50,_0x4a0934={}){const _0x15d53e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18427f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15d53e['markMultiRangeBlockFormat'](_0x18427f,{'commandName':'listStyle','commandParams':[{'type':_0x4a0934['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x56ecfe,_0x122959={}){const _0x2e6a8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5792a3=this['_getSuggestionBlocks'](_0x36fcb8=>_0x36fcb8['is']('element','listItem')&&'numbered'===_0x36fcb8['getAttribute']('listType'));if(_0x5792a3['length']<0x1)return;const _0x3101b2=_0x5792a3['map'](_0x3bf99a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bf99a,'before'),this['editor']['model']['createPositionAt'](_0x3bf99a,0x0)));this['editor']['model']['change'](()=>{_0x2e6a8b['markMultiRangeBlockFormat'](_0x3101b2,{'commandName':'listReversed','commandParams':[{'reversed':_0x122959['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x54be43,_0x1d5abb={}){const _0x31244a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x589954=this['_getSuggestionBlocks'](_0x11b28d=>_0x11b28d['is']('element','listItem')&&'numbered'===_0x11b28d['getAttribute']('listType'));if(_0x589954['length']<0x1)return;const _0x23dde4=_0x589954['map'](_0x4767c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4767c1,'before'),this['editor']['model']['createPositionAt'](_0x4767c1,0x0)));this['editor']['model']['change'](()=>{_0x31244a['markMultiRangeBlockFormat'](_0x23dde4,{'commandName':'listStart','commandParams':[{'startIndex':_0x1d5abb['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2c1716){if('formatBlock'!=_0x2c1716['type']&&'formatInline'!=_0x2c1716['type'])return;const _0x3eed37=this['editor']['locale'],{data:_0x47a2c0}=_0x2c1716;if(!_0x47a2c0)return;let _0x1def72,_0x5ec87c;switch(_0x47a2c0['commandName']){case'listStyle':_0x1def72='*Change\x20to:*\x20%0',_0x5ec87c={'type':'format','content':c(_0x3eed37,_0x1def72,c(_0x3eed37,this['_getTranslationKeyForListStyle'](_0x47a2c0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1def72=_0x47a2c0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ec87c={'type':'format','content':c(_0x3eed37,_0x1def72)};break;case'listStart':_0x1def72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ec87c={'type':'format','content':c(_0x3eed37,_0x1def72,_0x47a2c0['commandParams'][0x0]['startIndex'])};}return _0x5ec87c;}['_getSuggestionBlocksForListStyle'](){const _0x8d3936=this['editor']['plugins']['get']('LegacyListUtils');let _0x33629c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x33629c[0x0]?.['is']('element','listItem')&&_0x33629c['unshift'](..._0x8d3936['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x33629c[_0x33629c['length']-0x1]?.['is']('element','listItem')&&_0x33629c['push'](..._0x8d3936['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x33629c=[...new Set(_0x33629c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x33629c=_0x33629c['filter'](_0x15ec63=>_0x15ec63['is']('element','listItem'))),_0x33629c;}['_getSuggestionBlocks'](_0x555d9e){const _0x3623e7=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d0a3d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x555d9e)['map'](_0x5f56fc=>{const _0x22ecac=this['editor']['model']['createPositionAt'](_0x5f56fc,0x0);return[..._0x3623e7['getSiblingNodes'](_0x22ecac,'backward'),..._0x3623e7['getSiblingNodes'](_0x22ecac,'forward')];})['flat']();return _0x2d0a3d=[...new Set(_0x2d0a3d)],_0x2d0a3d;}['_getTranslationKeyForListStyle'](_0x22cf1d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x22cf1d)||'default')['toUpperCase']()+'_LIST_'+_0x22cf1d['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x21f549{['afterInit'](){const _0x146991=this['editor'];if(!_0x146991['plugins']['has']('MediaEmbedEditing'))return;const _0x4e75fd=_0x146991['plugins']['get']('TrackChangesEditing'),_0x1a7725=_0x146991['locale'];_0x4e75fd['enableCommand']('mediaEmbed'),_0x4e75fd['descriptionFactory']['registerElementLabel']('media',_0x33ca96=>c(_0x1a7725,'ELEMENT_MEDIA',_0x33ca96)),_0x146991['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1969f0,{writer:_0x5ed233,options:_0xe4876a})=>{if(_0xe4876a['showSuggestionHighlights'])return _0x5ed233['createEmptyElement']('div');},'converterPriority':'high'}),_0x146991['data']['downcastDispatcher']['on']('attribute:url:media',(_0x518252,_0x452422,_0x124b09)=>{_0x124b09['options']['showSuggestionHighlights']&&_0x518252['stop']();},{'priority':'high'});}}class pt extends _0x21f549{['afterInit'](){const _0x4d582a=this['editor'];_0x4d582a['plugins']['has']('MentionEditing')&&_0x4d582a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x21f549{['afterInit'](){const _0x4d6323=this['editor'];if(!_0x4d6323['plugins']['has']('MergeFieldsEditing'))return;const _0x4dcb16=_0x4d6323['plugins']['get']('TrackChangesEditing'),_0x2e83e4=_0x4d6323['locale'];_0x4dcb16['enableCommand']('insertMergeField'),_0x4dcb16['enableCommand']('insertMergeFieldBlock'),_0x4dcb16['enableCommand']('insertMergeFieldImage'),_0x4dcb16['descriptionFactory']['registerElementLabel']('mergeField',_0x24e87d=>c(_0x2e83e4,'ELEMENT_MERGE_FIELD',_0x24e87d)),_0x4dcb16['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3cb015=>c(_0x2e83e4,'ELEMENT_MERGE_FIELD',_0x3cb015)),_0x4dcb16['descriptionFactory']['registerDescriptionCallback'](_0x27526d=>{if('insertion'!=_0x27526d['type']&&'deletion'!=_0x27526d['type'])return;const _0x2a61b7=_0x27526d['getContainedElement']();if(null==_0x2a61b7)return;const _0x142a74=_0x4d6323['plugins']['get']('MergeFieldsEditing');let _0x40035e;switch(_0x142a74['getMergeFieldType'](_0x2a61b7)){case null:return;case'image':{const _0x4da43e=_0x142a74['unwrapAffixes'](_0x2a61b7['getAttribute']('src'));_0x40035e=_0x142a74['getLabel'](_0x4da43e)||_0x4da43e;break;}default:{const _0x3d3577=_0x2a61b7['getAttribute']('id');_0x40035e=_0x142a74['getLabel'](_0x3d3577)||_0x3d3577;break;}}return'insertion'==_0x27526d['type']?{'type':'insertion','content':c(_0x2e83e4,'*Insert:*\x20%0','\x22'+_0x40035e+'\x22\x20'+c(_0x2e83e4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2e83e4,'*Remove:*\x20%0','\x22'+_0x40035e+'\x22\x20'+c(_0x2e83e4,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x21f549{['afterInit'](){const _0x59024c=this['editor'],_0x2d73e4=_0x59024c['plugins']['get']('TrackChangesEditing');_0x59024c['plugins']['has']('MultiLevelList')&&(_0x2d73e4['enableDefaultAttributesIntegration']('multiLevelList'),_0x2d73e4['registerBlockAttribute']('listMarkerStyle'),_0x2d73e4['descriptionFactory']['registerDescriptionCallback'](_0x1b5b70=>this['handleDescriptions'](_0x1b5b70)));}['handleDescriptions'](_0x1fa2a1){const _0x2ea50d=this['editor']['locale'],{data:_0x392e3f}=_0x1fa2a1,_0x2a02a9={'type':'format','content':''};if(_0x392e3f&&'listMarkerStyle'==_0x392e3f['key']){if(!_0x392e3f['oldValue'])return{'type':'format','content':c(_0x2ea50d,'*Set\x20format:*\x20%0',c(_0x2ea50d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x392e3f['newValue']+')'};if(!_0x392e3f['newValue']){let _0x2deeb3=_0x1fa2a1['head'];for(;_0x2deeb3;){if(_0x2deeb3['data']&&'listType'==_0x2deeb3['data']['key']&&_0x2deeb3['data']['newValue'])return _0x2a02a9;_0x2deeb3=_0x2deeb3['next'];}return{'type':'format','content':c(_0x2ea50d,'*Remove\x20format:*\x20%0',c(_0x2ea50d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x392e3f['oldValue']+')'};}}}}class bt extends _0x21f549{['afterInit'](){const _0x18fc5d=this['editor'];if(!_0x18fc5d['plugins']['has']('PageBreakEditing'))return;_0x18fc5d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40f1b1=_0x18fc5d['plugins']['get']('TrackChangesEditing'),_0x4a58b4=_0x18fc5d['locale'];_0x40f1b1['descriptionFactory']['registerElementLabel']('pageBreak',_0x84960f=>c(_0x4a58b4,'ELEMENT_PAGE_BREAK',_0x84960f));}}class yt extends _0x21f549{['afterInit'](){const _0xbb1171=this['editor'];if(!_0xbb1171['plugins']['has']('Paragraph'))return;const _0x22e220=_0xbb1171['locale'],_0x46d90f=_0xbb1171['plugins']['get']('TrackChangesEditing');_0x46d90f['descriptionFactory']['registerElementLabel']('paragraph',_0x3e010b=>c(_0x22e220,'ELEMENT_PARAGRAPH',_0x3e010b)),_0x46d90f['enableDefaultAttributesIntegration']('paragraph'),_0x46d90f['enableCommand']('insertParagraph'),_0xbb1171['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xbb1171),{'priority':'highest'}),_0xbb1171['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xed3c21,_0x478623,_0x4f4c59)=>{_0x4f4c59['options']['showSuggestionHighlights']&&nr(_0xbb1171,{'showActiveMarker':!0x1})(_0xed3c21,_0x478623,_0x4f4c59);},{'priority':'highest'});const _0x98e82f=_0x46d90f['descriptionFactory'];_0x98e82f['registerDescriptionCallback'](_0x1fcc22=>{if('insertion'!==_0x1fcc22['type'])return;const {start:_0x2299f8,end:_0x4fb392}=_0x1fcc22['getFirstRange']();if(!_0x2299f8['isTouching'](_0x4fb392)||!_0x2299f8['nodeAfter'])return;const _0xda30ee=_0xbb1171['model']['schema'],_0xe48d6e=_0x2299f8['nodeAfter'];return _0xda30ee['isBlock'](_0xe48d6e)&&!_0xda30ee['isLimit'](_0xe48d6e)&&_0xda30ee['checkChild'](_0xe48d6e,'$text')?{'type':'insertion','content':c(_0x22e220,'*Insert:*\x20%0',_0x98e82f['getItemLabel'](_0xe48d6e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50db62=this['editor'],_0x487fc3=_0x50db62['locale'];_0x50db62['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b3748=>{if('formatBlock'!=_0x4b3748['type'])return;const {data:_0x553235}=_0x4b3748;return _0x553235&&'paragraph'==_0x553235['commandName']?{'type':'format','content':c(_0x487fc3,'*Change\x20to:*\x20%0',c(_0x487fc3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x31c507,{showActiveMarker:_0x4b5e89=!0x0}={}){return(_0x527f11,_0xb4f074,_0x470d46)=>{const _0x341646=_0x31c507['plugins']['get']('TrackChangesEditing'),_0x184fd8=_0xb4f074['markerRange']['start'],_0x4fd478=_0xb4f074['markerRange']['end'],_0x1eb43b=_0x31c507['model']['schema'];if(!_0x184fd8['isTouching'](_0x4fd478)||!_0x184fd8['nodeAfter'])return;const _0x5982eb=_0x184fd8['nodeAfter'];if(_0x1eb43b['isBlock'](_0x5982eb)&&!_0x1eb43b['isLimit'](_0x5982eb)&&_0x1eb43b['checkChild'](_0x5982eb,'$text')){if(!_0x470d46['consumable']['consume'](_0xb4f074['markerRange'],_0x527f11['name']))return;const {id:_0x11b885,authorId:_0x319a72}=_0x341646['_splitMarkerName'](_0xb4f074['markerName']),_0x3d2058=_0x470d46['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x11b885,'data-author-id':_0x319a72}),_0x382c60=_0x470d46['mapper']['toViewPosition'](_0x4fd478);_0x4b5e89&&_0x341646['activeMarkers']['includes'](_0xb4f074['markerName'])&&_0x470d46['writer']['addClass']('ck-suggestion-marker--active',_0x3d2058),_0x470d46['writer']['insert'](_0x382c60,_0x3d2058),_0x470d46['mapper']['bindElementToMarker'](_0x3d2058,_0xb4f074['markerName']);}};}class jt extends _0x21f549{['afterInit'](){const _0x822ec1=this['editor'];_0x822ec1['commands']['get']('replaceSource')&&_0x822ec1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x21f549{['afterInit'](){const _0x4b79d8=this['editor'];if(!_0x4b79d8['plugins']['has']('RemoveFormatEditing'))return;_0x4b79d8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5fec05=this['editor'];_0x5fec05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f712c=>{if('formatBlock'!=_0x2f712c['type']&&'formatInline'!=_0x2f712c['type'])return;const {data:_0x4ea1d6}=_0x2f712c;return _0x4ea1d6&&'removeFormat'==_0x4ea1d6['commandName']?{'type':'format','content':c(_0x5fec05['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x21f549{['afterInit'](){const _0x210b97=this['editor'];if(!_0x210b97['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xb69874=_0x210b97['plugins']['get']('TrackChangesEditing');_0xb69874['enableCommand']('goToPreviousRestrictedEditingException'),_0xb69874['enableCommand']('goToNextRestrictedEditingException');const _0x16cfc7=_0x210b97['plugins']['get']('RestrictedEditingModeEditing');_0x16cfc7['enableCommand']('trackChanges'),_0x16cfc7['enableCommand']('acceptSuggestion'),_0x16cfc7['enableCommand']('discardSuggestion'),_0x16cfc7['enableCommand']('acceptAllSuggestions'),_0x16cfc7['enableCommand']('discardAllSuggestions'),_0x16cfc7['enableCommand']('acceptSelectedSuggestions'),_0x16cfc7['enableCommand']('discardSelectedSuggestions');}}class It extends _0x21f549{['afterInit'](){const _0x5ef058=this['editor'];if(!_0x5ef058['plugins']['has']('ShiftEnter'))return;const _0x39c5d6=_0x5ef058['plugins']['get']('TrackChangesEditing');_0x39c5d6['enableCommand']('shiftEnter'),_0x5ef058['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5ef058),{'priority':'high'}),_0x5ef058['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5ef058),{'priority':'high'}),_0x5ef058['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e8b7c,_0x5b879c,_0x33e201)=>{_0x33e201['options']['showSuggestionHighlights']&&je(_0x5ef058,{'showActiveMarker':!0x1})(_0x4e8b7c,_0x5b879c,_0x33e201);}),_0x39c5d6['descriptionFactory']['registerElementLabel']('softBreak',_0x42f3c5=>c(_0x5ef058['locale'],'ELEMENT_LINE_BREAK',_0x42f3c5));}}function je(_0x42b954,{showActiveMarker:_0x576f0f=!0x0}={}){return(_0x1b97b2,_0x359a99,_0x5259b8)=>{const _0x47782f=_0x42b954['plugins']['get']('TrackChangesEditing');if(!_0x5259b8['consumable']['test'](_0x359a99['markerRange'],_0x1b97b2['name']))return;const _0xcab885=_0x42b954['model'];for(const _0xd3f08e of _0x359a99['markerRange']['getItems']()){if(!_0xd3f08e['is']('element','softBreak'))continue;const _0xc69c='deletion'==_0x359a99['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4ba440,authorId:_0x39e294}=_0x47782f['_splitMarkerName'](_0x359a99['markerName']),_0x444a4a=_0x5259b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc69c,'data-suggestion':_0x4ba440,'data-author-id':_0x39e294}),_0x329e33=_0x5259b8['mapper']['toViewPosition'](_0xcab885['createPositionBefore'](_0xd3f08e));_0x576f0f&&_0x47782f['activeMarkers']['includes'](_0x359a99['markerName'])&&_0x5259b8['writer']['addClass']('ck-suggestion-marker--active',_0x444a4a),_0x5259b8['writer']['insert'](_0x329e33,_0x444a4a),_0x5259b8['mapper']['bindElementToMarker'](_0x444a4a,_0x359a99['markerName']);}};}class _t extends _0x21f549{['afterInit'](){const _0x34dc18=this['editor'],_0x521f78=_0x34dc18['model'],_0x13b056=_0x34dc18['locale'];if(!_0x34dc18['plugins']['has']('StandardEditingModeEditing'))return;const _0x4fb445=_0x34dc18['plugins']['get']('TrackChangesEditing'),_0x3eef09='restrictedEditingException',_0x101d32=_0x34dc18['commands']['get'](_0x3eef09);_0x4fb445['enableCommand'](_0x3eef09,(_0x86b992,_0x3541c5={})=>{const _0x2d14b0=_0x521f78['document']['selection'];if(_0x2d14b0['isCollapsed'])return void _0x86b992(_0x3541c5);const _0x12587d=void 0x0!==_0x3541c5['forceValue']?_0x3541c5['forceValue']:!_0x101d32['value'];_0x521f78['change'](()=>{const _0x537fe0=Array['from'](_0x2d14b0['getRanges']());for(const _0x28cfb4 of _0x537fe0){const _0x224351=_0x12587d?[_0x28cfb4]:io(_0x3eef09,_0x28cfb4,_0x521f78);for(const _0x574f7e of _0x224351)_0x4fb445['markInlineFormat'](_0x574f7e,{'commandName':_0x3eef09,'commandParams':[{'forceValue':_0x12587d}]});}});}),_0x4fb445['descriptionFactory']['registerDescriptionCallback'](_0x46d0d2=>{if('formatBlock'!=_0x46d0d2['type']&&'formatInline'!=_0x46d0d2['type'])return;const {data:_0x2f11f8}=_0x46d0d2;return _0x2f11f8&&_0x2f11f8['commandName']==_0x3eef09?_0x2f11f8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x13b056,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x13b056,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x21f549{['afterInit'](){const _0x51811c=this['editor'];if(!_0x51811c['plugins']['has']('Style')||!_0x51811c['plugins']['has']('DataSchema'))return;const _0x4d4351=_0x51811c['plugins']['get']('TrackChangesEditing'),_0x4063e4=_0x51811c['locale'],_0x409d77=_0x51811c['config']['get']('style')||{},_0x2409d0=_0x51811c['plugins']['get']('GeneralHtmlSupport'),_0x2b6090=_0x51811c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51811c['plugins']['get']('DataSchema'),_0x409d77['definitions']);_0x4d4351['enableDefaultAttributesIntegration']('style');const _0x356196=new Set();for(const _0x2bafed of _0x2b6090['block']){const _0x4222b1=_0x2409d0['getGhsAttributeNameForElement'](_0x2bafed['element']);_0x356196['add'](_0x4222b1);}const _0x3ee59b=new Set();for(const _0x1d4840 of _0x2b6090['inline']){const _0x51bd80=_0x2409d0['getGhsAttributeNameForElement'](_0x1d4840['element']);_0x3ee59b['add'](_0x51bd80);for(const _0x55c3b6 of _0x1d4840['ghsAttributes'])_0x3ee59b['add'](_0x55c3b6);}for(const _0x5d440a of _0x356196)_0x4d4351['registerBlockAttribute'](_0x5d440a),_0x4d4351['descriptionFactory']['registerAttributeLabel'](_0x5d440a,c(_0x4063e4,'FORMAT_STYLE'));for(const _0x31296a of _0x3ee59b)_0x4d4351['registerInlineAttribute'](_0x31296a),_0x4d4351['descriptionFactory']['registerAttributeLabel'](_0x31296a,c(_0x4063e4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b4187=this['editor'],_0x538a06=_0x1b4187['locale'];_0x1b4187['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56342c=>{if('formatBlock'!=_0x56342c['type']&&'formatInline'!=_0x56342c['type'])return;const {data:_0x1dac65}=_0x56342c;return _0x1dac65&&'style'===_0x1dac65['commandName']?_0x1dac65['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x538a06,'*Set\x20format:*\x20%0',_0x1dac65['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x538a06,'*Remove\x20format:*\x20%0',_0x1dac65['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x21f549{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x598a1b){super(_0x598a1b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x254ffb=this['editor'],_0x45a26e=_0x254ffb['model']['document']['selection'];if(!_0x254ffb['plugins']['has']('TableEditing'))return;const _0x21e0db=_0x254ffb['locale'],_0x264692=_0x254ffb['plugins']['get']('TrackChangesEditing'),_0x53909a=_0x254ffb['plugins']['get']('TableUtils');_0x264692['descriptionFactory']['registerElementLabel']('table',_0xf71135=>c(_0x21e0db,'ELEMENT_TABLE',_0xf71135)),this['_setupColumnsRowsFixing'](),_0x264692['enableCommand']('insertTable'),_0x264692['enableCommand']('selectTableRow'),_0x264692['enableCommand']('selectTableColumn');for(const _0x1ced88 of['insertTableRowAbove','insertTableRowBelow']){const _0x5b6f52=_0x254ffb['commands']['get'](_0x1ced88);_0x264692['enableCommand'](_0x1ced88,_0x7da3a9=>{_0x254ffb['model']['change'](_0x5831bb=>{_0x7da3a9();const _0x3ba7c0='above'===_0x5b6f52['order'],_0x29c061=_0x53909a['getSelectionAffectedTableCells'](_0x45a26e),_0x39bdcc=_0x53909a['getRowIndexes'](_0x29c061),_0x1a11fe=_0x3ba7c0?_0x39bdcc['first']-0x1:_0x39bdcc['last']+0x1,_0x1ca155=_0x29c061[0x0]['findAncestor']('table'),_0x2cf937=_0x53909a['createTableWalker'](_0x1ca155,{'startRow':_0x1a11fe,'endRow':_0x1a11fe}),_0xc1ac07=Array['from'](_0x2cf937)['map'](_0x5318fa=>_0x5831bb['createRangeOn'](_0x5318fa['cell']));_0x264692['markMultiRangeInsertion'](_0xc1ac07,'tableRow');});});}for(const _0xf9e58e of['insertTableColumnLeft','insertTableColumnRight']){const _0x597d15=_0x254ffb['commands']['get'](_0xf9e58e);_0x264692['enableCommand'](_0xf9e58e,_0x1bf6aa=>{_0x254ffb['model']['change'](_0x3ae635=>{_0x1bf6aa();const _0x36d7bb='left'===_0x597d15['order'],_0xf9eafb=_0x53909a['getSelectionAffectedTableCells'](_0x45a26e),_0x4154a1=_0x53909a['getColumnIndexes'](_0xf9eafb),_0x4fc390=_0x36d7bb?_0x4154a1['first']-0x1:_0x4154a1['last']+0x1,_0x237673=_0xf9eafb[0x0]['findAncestor']('table'),_0x46a9af=_0x53909a['createTableWalker'](_0x237673,{'startRow':0x0,'column':_0x4fc390,'includeAllSlots':!0x1}),_0x64aead=Array['from'](_0x46a9af)['map'](_0x11865f=>_0x3ae635['createRangeOn'](_0x11865f['cell']));_0x264692['markMultiRangeInsertion'](_0x64aead,'tableColumn');});});}for(const _0x45bb39 of['removeTableRow','removeTableColumn']){const _0x15eb10=_0x45bb39['substr'](0xb),_0x63013f=_0x15eb10['toLowerCase'](),_0x549485=_0x63013f['substr'](0x0,0x3)+'span',_0x548468='table'+_0x15eb10,_0x2a58b7='min'+_0x15eb10,_0x52efaf='max'+_0x15eb10;_0x264692['enableCommand'](_0x45bb39,()=>{_0x254ffb['model']['change'](_0x498083=>{const _0x2b65ef=_0x53909a['getSelectionAffectedTableCells'](_0x45a26e),_0x539320=_0x2b65ef[0x0]['findAncestor']('table');let _0x4df452;if('removeTableRow'==_0x45bb39){const _0x60baa5=_0x53909a['getRowIndexes'](_0x2b65ef);_0x4df452={'startRow':_0x60baa5['first'],'endRow':_0x60baa5['last'],'includeAllSlots':!0x0};}else{const _0xc4e8d4=_0x53909a['getColumnIndexes'](_0x2b65ef);_0x4df452={'startColumn':_0xc4e8d4['first'],'endColumn':_0xc4e8d4['last'],'includeAllSlots':!0x0};}const _0x190e4b=_0x53909a['createTableWalker'](_0x539320,_0x4df452),_0x5085ec=Array['from'](_0x190e4b)['map'](({cell:_0x4c3d4b})=>_0x4c3d4b),_0x4852f6=xe(_0x5085ec['filter'](_0x1e35b3=>_0x1e35b3['hasAttribute'](_0x549485))),_0x4ade21=xe(_0x5085ec['filter'](_0x2de078=>!_0x2de078['hasAttribute'](_0x549485)))['map'](_0x2e434d=>_0x498083['createRangeOn'](_0x2e434d)),_0x2083ab=_0x264692['markMultiRangeDeletion'](_0x4ade21,_0x548468);if(_0x2083ab&&('tableRow'==_0x2083ab['subType']||'tableColumn'==_0x2083ab['subType'])){const _0x2cab65=this['_getSuggestionCoords'](_0x2083ab);for(const _0x4f27d7 of _0x4852f6){const _0x105c38=_0x498083['createRangeOn'](_0x4f27d7),_0x2abf3b=_0x53909a['getCellLocation'](_0x4f27d7),_0x57b0de=_0x4f27d7['getAttribute'](_0x549485)-0x1,_0xbd5490=_0x2cab65[_0x2a58b7],_0x23039d=_0x2cab65[_0x52efaf];_0xbd5490<=_0x2abf3b[_0x63013f]&&_0x2abf3b[_0x63013f]+_0x57b0de<=_0x23039d&&_0x2083ab['addRange'](_0x105c38);}}});});}function _0x1af409(_0x382c70){const _0x414fd9=Array['from'](_0x45a26e['getRanges']())['map'](_0x3993e2=>_0x5818a9['fromRange'](_0x3993e2));_0x254ffb['model']['change'](_0x465d2e=>{const _0x47d8a4=_0x465d2e['batch'];_0x382c70=_0x382c70['filter'](_0x24b2dd=>'$graveyard'!=_0x24b2dd['root']['rootName']),_0x465d2e['setSelection'](_0x382c70),_0x254ffb['commands']['get']('removeTableRow')['refresh'](),_0x254ffb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x254ffb['model']['enqueueChange'](()=>{_0x254ffb['model']['enqueueChange'](_0x47d8a4,_0x47b114=>{const _0x41efad=_0x414fd9['filter'](_0x3375e8=>'$graveyard'!=_0x3375e8['root']['rootName']);_0x41efad['length']>0x0&&_0x47b114['setSelection'](_0x41efad);for(const _0x3c9e62 of _0x414fd9)_0x3c9e62['detach']();});});});}function _0x378f06(_0x329888){_0x254ffb['model']['change'](_0x19bcd2=>{const _0x5c23f9=Array['from'](_0x45a26e['getRanges']())['map'](_0x4fd6a9=>_0x5818a9['fromRange'](_0x4fd6a9)),_0x36d35b=[];for(const _0x4ff9a5 of _0x329888)for(const _0x2e6284 of _0x4ff9a5['getItems']({'shallow':!0x0}))_0x36d35b['push'](_0x2e6284);for(const _0x352e4a of _0x36d35b)'$graveyard'!=_0x352e4a['root']['rootName']&&(_0x19bcd2['setSelection'](_0x19bcd2['createPositionAt'](_0x352e4a,0x0)),_0x254ffb['commands']['get']('removeTableColumn')['refresh'](),_0x254ffb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x39eddf=_0x5c23f9['filter'](_0xded8e5=>'$graveyard'!=_0xded8e5['root']['rootName']);_0x39eddf['length']>0x0&&_0x19bcd2['setSelection'](_0x39eddf);for(const _0x24d1c1 of _0x5c23f9)_0x24d1c1['detach']();});}function _0x3f8986(_0x5042e3,_0x2fbd65){return _0x2fbd65['every'](_0x4189d6=>_0x5042e3['some'](_0x19f34f=>_0x19f34f['end']['isEqual'](_0x4189d6['start'])||_0x4189d6['end']['isEqual'](_0x19f34f['start'])));}function _0x5ba8be(_0x3c9e34,_0x2f4c26){return!_0x3c9e34['some'](_0x239489=>_0x2f4c26['some'](_0x54959d=>_0x239489['isIntersecting'](_0x54959d)))&&_0x3c9e34['some'](_0x593f3f=>_0x2f4c26['some'](_0x1c4d74=>_0x593f3f['end']['isTouching'](_0x1c4d74['start'])));}_0x254ffb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a3539,_0x315d20,_0xaa3d03)=>{if(!_0xaa3d03['options']['showSuggestionHighlights'])return;const _0x53de1c=_0x315d20['item'];if(!_0x53de1c||!_0x53de1c['is']('element','tableCell'))return;const _0x50bcf5=_0xaa3d03['mapper']['toViewElement'](_0x53de1c);if(_0x50bcf5){const {id:_0x11c6f1,authorId:_0x17cfd5}=_0x264692['_splitMarkerName'](_0x315d20['markerName']);_0x2c9885(_0x50bcf5,_0xaa3d03['writer'],(_0x229cea,_0xaae023,_0x5519fb)=>{_0x5519fb['addClass'](_0x14e6e3(_0xaae023['classes']),_0x229cea),_0x5519fb['setAttribute']('data-suggestion-id',_0x11c6f1,_0x229cea),_0x5519fb['setAttribute']('data-author-id',_0x17cfd5,_0x229cea);},(_0x30f885,_0x2b10e9,_0x24e35a)=>{_0x24e35a['removeClass'](_0x14e6e3(_0x2b10e9['classes']),_0x30f885),_0x24e35a['removeAttribute']('data-suggestion-id',_0x30f885),_0x24e35a['removeAttribute']('data-author-id',_0x30f885);});}},{'priority':'highest'}),_0x264692['descriptionFactory']['registerDescriptionCallback'](_0x1f4d4c=>{if('insertion'!=_0x1f4d4c['type']&&'deletion'!=_0x1f4d4c['type'])return;const _0x57be22=_0x1f4d4c['getContainedElement']();if(null!=_0x57be22&&_0x57be22['is']('element','table')){if('insertion'==_0x1f4d4c['type']){const _0x41fed3=_0x1f4d4c['getItems']()['filter'](_0x348a8c=>_0x348a8c['is']('$textProxy'))['map'](_0x360a6e=>_0x360a6e['data']);if(_0x41fed3['length'])return{'type':'insertion','content':c(_0x21e0db,'*Insert:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41fed3['join']('\x20')+'\x22'))};}if('deletion'==_0x1f4d4c['type']){const _0x2f4ada=_0x1f4d4c['getItems']()['filter'](_0xd47904=>_0xd47904['is']('$textProxy'))['map'](_0x4912e8=>_0x4912e8['data']);if(_0x2f4ada['length'])return{'type':'deletion','content':c(_0x21e0db,'*Remove:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2f4ada['join']('\x20')+'\x22'))};}}}),_0x264692['descriptionFactory']['registerDescriptionCallback'](_0x4dc984=>{if('tableRow'==_0x4dc984['subType']){const _0xf78405=_0x4dc984['getItems']()['filter'](_0x1d249=>_0x1d249['is']('$textProxy'))['map'](_0x39dfbd=>_0x39dfbd['data']),_0x4ddf34=this['_getSuggestionCoords'](_0x4dc984),_0x2958dd=_0x4ddf34['maxRow']-_0x4ddf34['minRow']+0x1;if('insertion'==_0x4dc984['type'])return _0xf78405['length']?{'type':'insertion','content':c(_0x21e0db,'*Insert:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2958dd,'\x22'+_0xf78405['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x21e0db,'*Insert:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_ROW',_0x2958dd))};if('deletion'==_0x4dc984['type'])return _0xf78405['length']?{'type':'deletion','content':c(_0x21e0db,'*Remove:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2958dd,'\x22'+_0xf78405['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x21e0db,'*Remove:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_ROW',_0x2958dd))};}if('tableColumn'==_0x4dc984['subType']){const _0x3bd4f9=_0x4dc984['getItems']()['filter'](_0x2bba4f=>_0x2bba4f['is']('$textProxy'))['map'](_0x1b4e34=>_0x1b4e34['data']),_0x4d47e1=this['_getSuggestionCoords'](_0x4dc984),_0xff63=_0x4d47e1['maxColumn']-_0x4d47e1['minColumn']+0x1;if('insertion'==_0x4dc984['type'])return _0x3bd4f9['length']?{'type':'insertion','content':c(_0x21e0db,'*Insert:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xff63,'\x22'+_0x3bd4f9['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x21e0db,'*Insert:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_COLUMN',_0xff63))};if('deletion'==_0x4dc984['type'])return _0x3bd4f9['length']?{'type':'deletion','content':c(_0x21e0db,'*Remove:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xff63,'\x22'+_0x3bd4f9['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x21e0db,'*Remove:*\x20%0',c(_0x21e0db,'ELEMENT_TABLE_COLUMN',_0xff63))};}}),_0x264692['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1af409),_0x264692['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1af409),_0x264692['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x378f06),_0x264692['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x378f06),_0x264692['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f8986),_0x264692['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f8986),_0x264692['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ba8be),_0x264692['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ba8be);}['_acceptFormatSuggestionCallbackFactory'](){const _0x550504=this['editor'],_0x4c20af=_0x550504['model']['document']['selection'];return(_0x1a9817,_0x1f4ab6)=>{_0x550504['model']['change'](_0x3a91fd=>{const {commandName:_0x2d6a2e,commandParams:_0x179761}=_0x1f4ab6;let _0x3a81a8=_0x1a9817[0x0]['end']['nodeBefore'];_0x179761&&_0x179761[0x0]&&!0x1===_0x179761[0x0]['forceValue']&&(_0x3a81a8=_0x1a9817[0x0]['start']['nodeAfter']);const _0x4846aa=_0x3a91fd['createRangeIn'](_0x3a81a8);if('$graveyard'==_0x4846aa['root']['rootName'])return;const _0x5f4830=Array['from'](_0x4c20af['getRanges']())['map'](_0xc7db8c=>_0x5818a9['fromRange'](_0xc7db8c));_0x3a91fd['setSelection'](_0x4846aa),_0x550504['commands']['get'](_0x2d6a2e)['refresh'](),_0x179761['push']({'forceDefaultExecution':!0x0}),_0x550504['execute'](_0x2d6a2e,..._0x179761);const _0x525c6e=_0x5f4830['filter'](_0x88f618=>'$graveyard'!=_0x88f618['root']['rootName']);_0x525c6e['length']>0x0&&_0x3a91fd['setSelection'](_0x525c6e);for(const _0x2b1f03 of _0x5f4830)_0x2b1f03['detach']();});};}['_getCoordsForCells'](_0x4a08aa){const _0x475493=this['editor']['plugins']['get']('TableUtils');let _0x3b88f6=Number['MAX_SAFE_INTEGER'],_0x265146=Number['MIN_SAFE_INTEGER'],_0x58bec1=Number['MAX_SAFE_INTEGER'],_0x1aec52=Number['MIN_SAFE_INTEGER'];for(const _0x2baf1d of _0x4a08aa){if('$graveyard'==_0x2baf1d['root']['rootName'])continue;const {row:_0x5cc949,column:_0x446ae3}=_0x475493['getCellLocation'](_0x2baf1d),_0x17baf5=_0x2baf1d['hasAttribute']('rowspan')?_0x2baf1d['getAttribute']('rowspan')-0x1:0x0,_0x57d491=_0x2baf1d['hasAttribute']('colspan')?_0x2baf1d['getAttribute']('colspan')-0x1:0x0;_0x3b88f6=_0x5cc949<_0x3b88f6?_0x5cc949:_0x3b88f6,_0x265146=_0x5cc949+_0x17baf5>_0x265146?_0x5cc949+_0x17baf5:_0x265146,_0x58bec1=_0x446ae3<_0x58bec1?_0x446ae3:_0x58bec1,_0x1aec52=_0x446ae3+_0x57d491>_0x1aec52?_0x446ae3+_0x57d491:_0x1aec52;}return{'minRow':_0x3b88f6,'maxRow':_0x265146,'minColumn':_0x58bec1,'maxColumn':_0x1aec52};}['_setupColumnsRowsFixing'](){const _0x46d82b=this['editor'],_0x22b981=_0x46d82b['plugins']['get']('TrackChangesEditing'),_0x3e7ce9=_0x46d82b['plugins']['get']('TableUtils');_0x46d82b['model']['document']['on']('change:data',()=>{const _0x50d73f=Array['from'](_0x46d82b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16ff60,data:_0xd3a917}of _0x50d73f){const {group:_0x533a93,id:_0x75decd,subType:_0x32d351}=_0x22b981['_splitMarkerName'](_0x16ff60);if('suggestion'!=_0x533a93)continue;if(null!=_0xd3a917['oldRange'])continue;const _0xb8b0b2=_0x22b981['getSuggestion'](_0x75decd);this['_tablePostFixingSubtypes']['includes'](_0x32d351)&&this['_tableSuggestions']['add'](_0xb8b0b2);}},{'priority':'low'});const _0x7064c3=(_0x22f8e9,_0xb298dd)=>{let _0x3c2f2c=!0x1;const _0x144bd2=_0xb298dd['createRangeOn'](_0x22f8e9),_0x1ac1fa=_0x22f8e9['findAncestor']('table'),_0x40a51a=_0x3e7ce9['getCellLocation'](_0x22f8e9);for(const _0x2fbe1a of this['_tableSuggestions']){const _0x3e159d=_0x2fbe1a['subType'],_0xc462b9=_0x3e159d['startsWith']('tablePaste'),_0x2aa477=_0x3e159d['substr'](_0xc462b9?0xa:0x5),_0x136001=_0x2aa477['toLowerCase'](),_0x3cc840=_0x136001['substr'](0x0,0x3)+'span',_0x4392a8='min'+_0x2aa477,_0x18f793='max'+_0x2aa477;if(!_0x2fbe1a['isInContent'])continue;if(_0x1ac1fa!=_0x2fbe1a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2fbe1a['isIntersectingWithRange'](_0x144bd2))continue;const _0x3bbcfa=_0x22f8e9['hasAttribute'](_0x3cc840)?_0x22f8e9['getAttribute'](_0x3cc840)-0x1:0x0,_0xdabde3=this['_getSuggestionCoords'](_0x2fbe1a),_0x200c81=_0xdabde3[_0x4392a8],_0x4065dd=_0xdabde3[_0x18f793];_0x200c81<=_0x40a51a[_0x136001]&&_0x40a51a[_0x136001]+_0x3bbcfa<=_0x4065dd&&(_0x2fbe1a['addRange'](_0x144bd2),_0x3c2f2c=!0x0);}return _0x3c2f2c;};_0x46d82b['model']['document']['registerPostFixer'](_0x34e2cf=>{let _0x441e1b=!0x1;for(const _0x2b8c58 of _0x46d82b['model']['document']['differ']['getChanges']())if('insert'==_0x2b8c58['type']){if('tableRow'==_0x2b8c58['name']){for(const _0x1d0d97 of _0x2b8c58['position']['nodeAfter']['getChildren']())_0x441e1b=_0x441e1b||_0x7064c3(_0x1d0d97,_0x34e2cf);}else'tableCell'==_0x2b8c58['name']&&(_0x441e1b=_0x441e1b||_0x7064c3(_0x2b8c58['position']['nodeAfter'],_0x34e2cf));}return _0x441e1b;});}['_getSuggestionCoords'](_0x3edf12){return this['_getCoordsForCells'](_0x3edf12['getRanges']()['map'](_0xfc6008=>_0xfc6008['start']['nodeAfter']));}}function xe(_0x7be60b){return Array['from'](new Set(_0x7be60b)['values']());}class Nt extends _0x21f549{static get['requires'](){return[Ct];}['afterInit'](){const _0x3209fd=this['editor'],_0x491d8d=_0x3209fd['model']['document']['selection'],_0x598e1e=_0x3209fd['locale'];if(!_0x3209fd['plugins']['has']('TableEditing'))return;const _0x8312a2=_0x3209fd['plugins']['get']('TrackChangesEditing'),_0xc7cf16=_0x3209fd['plugins']['get']('TableUtils'),_0x112d9d=_0x3209fd['plugins']['get'](Ct);_0x112d9d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8312a2['enableCommand']('mergeTableCells',()=>{const _0x5e4a15=_0xc7cf16['getSelectionAffectedTableCells'](_0x3209fd['model']['document']['selection']);_0x3209fd['model']['change'](()=>{_0x8312a2['markMultiRangeBlockFormat'](_0x5e4a15,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3209fd['commands']['get']('mergeTableCells')['on']('execute',(_0x46862d,_0x1a6de2)=>{_0x3209fd['commands']['get']('trackChanges')['value']&&(_0x1a6de2['length']>0x0&&_0x1a6de2[_0x1a6de2['length']-0x1]&&_0x1a6de2[_0x1a6de2['length']-0x1]['forceDefaultExecution']||_0x8312a2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x46862d['stop']());},{'priority':'highest'});for(const _0xf4b1ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4a94d7=_0x3209fd['commands']['get'](_0xf4b1ed);_0x8312a2['enableCommand'](_0xf4b1ed,()=>{const _0x1b9a1a=_0x3209fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x116f79=>_0x116f79['is']('element','tableCell')),_0x204a6e=_0x4a94d7['value'];_0x3209fd['model']['change'](()=>{_0x8312a2['markMultiRangeBlockFormat']([_0x1b9a1a,_0x204a6e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x348dd4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x16bef0=_0x3209fd['commands']['get'](_0x348dd4);_0x8312a2['enableCommand'](_0x348dd4,()=>{const _0xfa7c0c=_0xc7cf16['getSelectionAffectedTableCells'](_0x3209fd['model']['document']['selection'])[0x0],_0x33fc13=_0xfa7c0c['findAncestor']('table'),{column:_0x4b9637,row:_0x28c4b4}=_0xc7cf16['getCellLocation'](_0xfa7c0c);let _0x8d20e3=[];if('horizontally'==_0x16bef0['direction']){const _0x590a2a=_0xc7cf16['createTableWalker'](_0x33fc13,{'startRow':_0x28c4b4,'endRow':_0x28c4b4,'includeAllSlots':!0x0});_0x8d20e3=Array['from'](_0x590a2a)['map'](_0x3c657b=>_0x3c657b['cell']);}else{const _0x32416c=_0xc7cf16['createTableWalker'](_0x33fc13,{'column':_0x4b9637,'includeAllSlots':!0x0});_0x8d20e3=Array['from'](_0x32416c)['map'](_0x2b99f0=>_0x2b99f0['cell']);}_0x3209fd['model']['change'](_0x22f9b9=>{_0x8312a2['markBlockFormat'](_0x22f9b9['createRangeOn'](_0xfa7c0c),{'commandName':_0x348dd4,'commandParams':[]},_0x8d20e3,_0x348dd4);});});}_0x8312a2['descriptionFactory']['registerDescriptionCallback'](_0x838017=>{if('formatBlock'!=_0x838017['type']&&'formatInline'!=_0x838017['type'])return;const {data:_0x555fab}=_0x838017;return _0x555fab&&'mergeTableCells'==_0x555fab['commandName']?{'type':'format','content':c(_0x598e1e,'*Merge\x20cells*')}:void 0x0;}),_0x8312a2['descriptionFactory']['registerDescriptionCallback'](_0x1274b4=>{if('formatBlock'!=_0x1274b4['type']&&'formatInline'!=_0x1274b4['type'])return;const {data:_0x309534}=_0x1274b4;return _0x309534?'splitTableCellVertically'==_0x309534['commandName']?{'type':'format','content':c(_0x598e1e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x309534['commandName']?{'type':'format','content':c(_0x598e1e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x34f11d=_0x112d9d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ca2ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8312a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ca2ad,'accept',_0x34f11d);for(const _0x204f2b of['splitTableCellVertically','splitTableCellHorizontally'])_0x8312a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x204f2b,'accept',_0x34f11d);_0x8312a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x263455=>{_0x3209fd['model']['change'](_0x2d869b=>{const _0x5e90f4=Array['from'](_0x491d8d['getRanges']())['map'](_0x24a967=>_0x5818a9['fromRange'](_0x24a967));_0x2d869b['setSelection'](_0x263455),_0x3209fd['commands']['get']('mergeTableCells')['refresh'](),_0x3209fd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x237598=_0x5e90f4['filter'](_0x5288c9=>'$graveyard'!=_0x5288c9['root']['rootName']);_0x237598['length']>0x0&&_0x2d869b['setSelection'](_0x237598);for(const _0x3515bd of _0x5e90f4)_0x3515bd['detach']();});});for(const _0x3687b5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c3342=_0x3209fd['commands']['get'](_0x3687b5);_0x5c3342['on']('set:isEnabled',(_0x53c748,_0x35d63b,_0x108b58)=>{if(_0x108b58){const _0x38391f=_0x3209fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38125e=>_0x38125e['is']('element','tableCell'));this['_areMergableCells'](_0x5c3342['value'],_0x38391f)||(_0x53c748['return']=!0x1,_0x53c748['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31205e=this['editor']['commands']['get']('mergeTableCells'),_0x516c76=this['editor']['plugins']['get']('TableUtils');if(!_0x31205e['isEnabled'])return!0x1;const _0x1891ca=_0x516c76['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a8ae1 of _0x1891ca)for(const _0x43c3f1 of _0x1891ca)if(_0x1a8ae1!=_0x43c3f1&&!this['_areMergableCells'](_0x1a8ae1,_0x43c3f1))return!0x1;return!0x0;}['_areMergableCells'](_0x3c03b1,_0x4ad94b){const _0x12d561=this['editor']['plugins']['get']('TrackChangesEditing'),_0x140720=this['editor']['model']['createRangeOn'](_0x3c03b1),_0x136800=this['editor']['model']['createRangeOn'](_0x4ad94b),_0x4dc749=new Set(),_0x539ef3=new Set();for(const _0x17658f of _0x12d561['getSuggestions']())if(('insertion'==_0x17658f['type']||'deletion'==_0x17658f['type']||'mergeTableCells'==_0x17658f['subType'])&&_0x17658f['isInContent']){for(const _0x206978 of _0x17658f['getRanges']())_0x206978['containsRange'](_0x140720,!0x0)&&_0x4dc749['add'](_0x17658f['type']+':'+_0x17658f['author']['id']),_0x206978['containsRange'](_0x136800,!0x0)&&_0x539ef3['add'](_0x17658f['type']+':'+_0x17658f['author']['id']);}if(_0x4dc749['size']!=_0x539ef3['size'])return!0x1;for(const _0x447cbe of _0x4dc749)if(!_0x539ef3['has'](_0x447cbe))return!0x1;return!0x0;}}class Dt extends _0x21f549{static get['requires'](){return[Ct];}['afterInit'](){const _0x28a989=this['editor'];if(!_0x28a989['plugins']['has']('TableEditing'))return;const _0x4d5bc0=_0x28a989['locale'],_0x362971=_0x28a989['plugins']['get']('TrackChangesEditing');_0x362971['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x362971['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x362971['registerBlockAttribute']('headingRows'),_0x362971['registerBlockAttribute']('headingColumns'),_0x362971['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4d5bc0,'FORMAT_HEADER_ROW')),_0x362971['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4d5bc0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c46f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x680ffc=this['editor']['plugins']['get']('TableUtils'),_0x36b45b=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x17c253({showActiveMarker:_0x501875=!0x0,setDataAttribute:_0x1111d6=!0x0}={}){return(_0x5c51eb,_0x18a373,_0x44849f)=>{const {type:_0x3324c7,id:_0x5cec90}=_0x5c46f1['_splitMarkerName'](_0x18a373['markerName']),_0x5cf5b8=_0x5c46f1['getSuggestion'](_0x5cec90),_0x284340=_0x5cf5b8['data'];if('formatBlock'!=_0x5cf5b8['type']||!_0x284340||'setTableColumnHeader'!=_0x284340['commandName'])return;if(_0x18a373['item'])return void _0x5c51eb['stop']();if(!_0x44849f['consumable']['consume'](_0x18a373['markerRange'],_0x5c51eb['name']))return;const _0x27b18f=_0x18a373['markerRange']['start']['nodeAfter'],_0x220a71=_0x18a373['markerRange']['end']['nodeBefore'],_0x572ad5=_0x27b18f['parent']['parent'],{column:_0x5a541e}=_0x680ffc['getCellLocation'](_0x27b18f),{column:_0x4d56eb}=_0x680ffc['getCellLocation'](_0x220a71);for(let _0x169601=_0x5a541e;_0x169601<=_0x4d56eb;_0x169601++){const _0x2efb9e=_0x680ffc['createTableWalker'](_0x572ad5,{'column':_0x169601,'includeAllSlots':!0x1});for(const _0x4d2ad8 of _0x2efb9e){const _0x169c20=_0x4d2ad8['cell'],_0xe1da5c=_0x44849f['mapper']['toViewElement'](_0x169c20);_0x44849f['writer']['addClass']('ck-suggestion-marker-'+_0x3324c7,_0xe1da5c),_0x1111d6&&_0x44849f['writer']['setAttribute']('data-suggestion',_0x5cec90,_0xe1da5c),_0x44849f['mapper']['bindElementToMarker'](_0xe1da5c,_0x18a373['markerName']),_0x501875&&(_0x5c46f1['activeMarkers']['includes'](_0x18a373['markerName'])?_0x44849f['writer']['addClass']('ck-suggestion-marker--active',_0xe1da5c):_0x44849f['writer']['removeClass']('ck-suggestion-marker--active',_0xe1da5c));}}};}_0x5c46f1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36b45b),_0x5c46f1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36b45b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17c253(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2510c2,_0x11a9c5,_0x33f9af)=>{_0x33f9af['options']['showSuggestionHighlights']&&_0x17c253({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2510c2,_0x11a9c5,_0x33f9af);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xc21ae,_0x1b8d09,_0x9eb44b)=>{const {type:_0x5dbbf2,id:_0x1795c2}=_0x5c46f1['_splitMarkerName'](_0x1b8d09['markerName']),_0x3a6ae1=_0x5c46f1['getSuggestion'](_0x1795c2),_0x54a29d=_0x3a6ae1['data'];if('formatBlock'!=_0x3a6ae1['type']||!_0x54a29d||'setTableColumnHeader'!=_0x54a29d['commandName'])return;const _0x379aed=_0x9eb44b['mapper']['markerNameToElements'](_0x1b8d09['markerName']);if(_0x379aed){for(const _0x1e6827 of _0x379aed)_0x9eb44b['writer']['removeClass']('ck-suggestion-marker-'+_0x5dbbf2,_0x1e6827),_0x9eb44b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e6827),_0x9eb44b['writer']['removeAttribute']('data-suggestion',_0x1e6827),_0x9eb44b['mapper']['unbindElementFromMarkerName'](_0x1e6827,_0x1b8d09['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5191c6=this['editor'],_0x32952f=_0x5191c6['locale'];function _0xf95d52(_0x547d13){return{'type':'format','content':c(_0x32952f,'*Format:*\x20%0',_0x547d13)};}_0x5191c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d13f7=>{if('formatBlock'!=_0x4d13f7['type'])return;const {data:_0x1c1998}=_0x4d13f7;if(_0x1c1998){if('setTableRowHeader'==_0x1c1998['commandName']){const _0x26d625=_0x1c1998['commandParams'][0x0]['forceValue'];return _0xf95d52(c(_0x32952f,_0x26d625?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c1998['commandName']){const _0x1b9bbe=_0x1c1998['commandParams'][0x0]['forceValue'];return _0xf95d52(c(_0x32952f,_0x1b9bbe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x21f549{['afterInit'](){const _0x4d2608=this['editor'],_0x118350=_0x4d2608['locale'],_0x3a4d2b=_0x4d2608['plugins']['get']('TrackChangesEditing');function _0x1ef16c(_0x5747c1){return{'type':'format','content':''+c(_0x118350,'*Set\x20table\x20type:*\x20%0',_0x5747c1)};}_0x4d2608['plugins']['has']('TableLayout')&&(_0x3a4d2b['enableCommand']('insertTableLayout'),_0x3a4d2b['enableDefaultAttributesIntegration']('tableType'),_0x3a4d2b['registerBlockAttribute']('tableType'),_0x3a4d2b['descriptionFactory']['registerElementLabel'](_0x1c0095=>_0x1c0095['is']('element','table')&&'layout'===_0x1c0095['getAttribute']('tableType'),_0x2f97c4=>c(_0x118350,'ELEMENT_LAYOUT_TABLE',_0x2f97c4)),_0x3a4d2b['descriptionFactory']['registerDescriptionCallback'](_0x5ba264=>{const {data:_0x2b90bf}=_0x5ba264;if(_0x2b90bf&&'tableType'==_0x2b90bf['key'])switch(_0x2b90bf['newValue']){case'layout':return _0x1ef16c(c(_0x118350,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1ef16c(c(_0x118350,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x57bd89=>[_0x57bd89,null]));class $t extends _0x21f549{static get['requires'](){return[Ct];}['afterInit'](){const _0x5b08c1=this['editor'];if(!_0x5b08c1['plugins']['has']('TableClipboard'))return;const _0x4433c6=_0x5b08c1['plugins']['get']('TrackChangesEditing'),_0x2e4142=_0x5b08c1['plugins']['get']('TableUtils'),_0x456c95=_0x5b08c1['plugins']['get'](Ct),_0x4db644=_0x5b08c1['plugins']['get']('TableClipboard'),_0x307ce6=_0x5b08c1['plugins']['get']('TableSelection'),_0x344b89=_0x5b08c1['plugins']['get'](_0x445a80);_0x456c95['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b08c1['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b08c1['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5665f7=null,_0xbe63df=!0x1;_0x344b89['on']('contentInsertion',(_0x49b7dc,_0x2afe70)=>{_0xbe63df='paste'===_0x2afe70['method'];}),_0x5b08c1['model']['on']('insertContent',(_0x157536,_0x57a0c3)=>{if(!_0xbe63df&&null===_0x307ce6['getSelectedTableCells']())return;const [_0x410cbd,_0x5e451d]=_0x57a0c3,_0x24d392=_0x57a0c3[_0x57a0c3['length']-0x1];_0x24d392&&_0x24d392['forceDefaultExecution']||_0x4433c6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d8673,_0x23f9df,_0x5989ca,_0x3ba1ff,_0x146734){if(_0x23f9df&&!_0x23f9df['is']('documentSelection'))return!0x1;const _0x27c69e=_0x146734['getTableIfOnlyTableInContent'](_0x2d8673,_0x5989ca);if(!_0x27c69e||!He(_0x27c69e,void 0x0,_0x3ba1ff))return!0x1;const _0x7d645d=_0x3ba1ff['getSelectionAffectedTableCells'](_0x5989ca['document']['selection']);if(!_0x7d645d['length'])return!0x1;const _0x26c4e7=_0x7d645d[0x0]['findAncestor']('table'),_0x4dfde4=_0x3ba1ff['getRowIndexes'](_0x7d645d),_0x3e5ccd=_0x3ba1ff['getColumnIndexes'](_0x7d645d),_0x56ec1f={'startRow':_0x4dfde4['first'],'endRow':_0x4dfde4['last'],'startColumn':_0x3e5ccd['first'],'endColumn':_0x3e5ccd['last']};return 0x1==_0x7d645d['length']&&(_0x56ec1f['endRow']+=_0x3ba1ff['getRows'](_0x27c69e)-0x1,_0x56ec1f['endColumn']+=_0x3ba1ff['getColumns'](_0x27c69e)-0x1),He(_0x26c4e7,_0x56ec1f,_0x3ba1ff);}(_0x410cbd,_0x5e451d,_0x5b08c1['model'],_0x2e4142,_0x4db644)&&(_0x157536['stop'](),_0x5665f7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b08c1['model']['change'](()=>{_0x5b08c1['model']['insertContent'](_0x57a0c3[0x0],_0x57a0c3[0x1],_0x57a0c3[0x2],{'forceDefaultExecution':!0x0});const _0x42c0d7=_0x4822d2(),{rowInsertionRanges:_0x4dfb11,columnInsertionRanges:_0xea7f02,insertionRanges:_0x1d72bd,deletionRanges:_0x425a53,cells:_0x4b295b}=_0x5665f7;_0x4dfb11['length']&&_0x4433c6['markMultiRangeInsertion'](_0x4dfb11,'tablePasteRow',{'tablePasteChainId':_0x42c0d7}),_0xea7f02['length']&&_0x4433c6['markMultiRangeInsertion'](_0xea7f02,'tablePasteColumn',{'tablePasteChainId':_0x42c0d7}),_0x1d72bd['length']&&(_0x4433c6['markMultiRangeInsertion'](_0x1d72bd,'tablePaste',{'tablePasteChainId':_0x42c0d7,'skipNestingCheck':!0x0}),_0x1d72bd['forEach'](_0x357c38=>_0x357c38['detach']?.())),_0x425a53['length']&&(_0x4433c6['markMultiRangeDeletion'](_0x425a53,'tablePaste',{'tablePasteChainId':_0x42c0d7,'skipNestingCheck':!0x0}),_0x425a53['forEach'](_0x1ec5de=>_0x1ec5de['detach']?.()));const _0x108bd0=_0x4433c6['markMultiRangeBlockFormat'](_0x4b295b['map'](({element:_0x3ad603})=>_0x3ad603),{'formatGroupId':_0x4822d2()},[],'tablePasteCell',{'tablePasteChainId':_0x42c0d7});if(_0x108bd0){const _0x65c430=_0x108bd0['getMarkers'](),_0x379598=[];for(const {element:_0x42a467,attributes:_0x279940}of _0x4b295b){if(!_0x279940)continue;const _0x27e04f=_0x5b08c1['model']['createRangeOn'](_0x42a467),_0x1951ea=_0x65c430['find'](_0x1caa44=>_0x1caa44['getRange']()['isEqual'](_0x27e04f));_0x1951ea&&_0x379598['push']([_0x1951ea['name'],_0x279940]);}_0x379598['length']&&_0x108bd0['setAttribute']('markerAttributes',Object['fromEntries'](_0x379598));}_0x5665f7=null;}));},{'priority':_0x305e67['high']+0xa}),_0x344b89['on']('contentInsertion',()=>{_0xbe63df=!0x1;},{'priority':'lowest'}),_0x5b08c1['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x352596,_0x5bdb1c)=>{const [_0x197240,_0x2a2a7f,,_0x45cd9c]=_0x5bdb1c;if(!_0x5665f7)return;_0x352596['stop']();const _0x5c46d2=_0x197240['cell'],_0x2b484b=_0x2a2a7f,_0x5b1f0e=De(_0x5c46d2),_0x3761f8=De(_0x2b484b);_0x352596['return']=_0x5c46d2;let _0x2055ea=null,_0x3a7641=null;if(_0x3761f8||_0x5b1f0e){if(_0x5b1f0e&&!_0x3761f8){_0x45cd9c['remove'](_0x5c46d2['getChild'](0x0));for(const _0x36d9b1 of Array['from'](_0x2b484b['getChildren']()))_0x45cd9c['insert'](_0x36d9b1,_0x5c46d2,'end');const _0x2d3379=_0x5665f7['rowInsertionIndexes']['includes'](_0x197240['row']),_0xf4c7f9=_0x5665f7['columnInsertionIndexes']['includes'](_0x197240['column']);_0x2d3379||_0xf4c7f9||(_0x2055ea=_0x5818a9['fromRange'](_0x45cd9c['createRangeIn'](_0x5c46d2)));}else _0x3761f8&&!_0x5b1f0e&&(_0x3a7641=_0x45cd9c['createRangeIn'](_0x5c46d2));}else{const _0x4e69e3=_0x45cd9c['createElement']('tableCellSuggestion'),_0x49f827=_0x45cd9c['createElement']('tableCellSuggestion');_0x45cd9c['wrap'](_0x45cd9c['createRangeIn'](_0x5c46d2),_0x49f827),_0x45cd9c['insert'](_0x4e69e3,_0x5c46d2,0x0);for(const _0x4ae243 of Array['from'](_0x2b484b['getChildren']()))_0x45cd9c['insert'](_0x4ae243,_0x4e69e3,'end');_0x2055ea=_0x5818a9['fromRange'](_0x45cd9c['createRangeOn'](_0x4e69e3)),_0x3a7641=_0x5818a9['fromRange'](_0x45cd9c['createRangeOn'](_0x49f827));}const _0x550ad1=Array['from'](_0x2b484b['getAttributes']())['filter'](([_0x1e87db])=>Oe['includes'](_0x1e87db));_0x5665f7['cells']['push']({'element':_0x5c46d2,'attributes':_0x550ad1['length']?Object['fromEntries'](_0x550ad1):null}),_0x2055ea&&_0x5665f7['insertionRanges']['push'](_0x2055ea),_0x3a7641&&_0x5665f7['deletionRanges']['push'](_0x3a7641);},{'priority':'high'}),_0x2e4142['on']('insertColumns',(_0x423a4a,_0xca9cdc)=>{const [_0xf7a038,_0xa65975={}]=_0xca9cdc;if(!_0x5665f7)return;const _0x120efc=_0xa65975['at']||0x0,_0x1628b7=_0xa65975['columns']||0x1;_0x5665f7['columnInsertionIndexes']=new Array(_0x1628b7)['fill'](_0x120efc)['map']((_0x2c4fa7,_0x334464)=>_0x2c4fa7+_0x334464);for(const {cell:_0x347f75}of _0x2e4142['createTableWalker'](_0xf7a038,{'startColumn':_0x120efc,'endColumn':_0x120efc+_0x1628b7-0x1}))_0x5665f7['columnInsertionRanges']['push'](_0x5b08c1['model']['createRangeOn'](_0x347f75));},{'priority':'low'}),_0x2e4142['on']('insertRows',(_0x3fd887,_0x50f108)=>{const [_0x25fbfb,_0x75073={}]=_0x50f108;if(!_0x5665f7)return;const _0x2e64b8=_0x75073['at']||0x0,_0x51bc7b=_0x75073['rows']||0x1;_0x5665f7['rowInsertionIndexes']=new Array(_0x51bc7b)['fill'](_0x2e64b8)['map']((_0x4f0083,_0x18559b)=>_0x4f0083+_0x18559b);for(const {cell:_0x2d5b0d}of _0x2e4142['createTableWalker'](_0x25fbfb,{'startRow':_0x2e64b8,'endRow':_0x2e64b8+_0x51bc7b-0x1}))_0x5665f7['rowInsertionRanges']['push'](_0x5b08c1['model']['createRangeOn'](_0x2d5b0d));},{'priority':'low'}),_0x4433c6['descriptionFactory']['registerDescriptionCallback'](_0x12cf33=>{if(_0x12cf33['subType']&&_0x12cf33['subType']['startsWith']('tablePaste'))return _0x12cf33['previous']?{}:{'type':'insertion','content':c(_0x5b08c1['locale'],'*Replace\x20table\x20cells*')};});const _0x1a1f66=()=>!0x1;for(const _0x322d2a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4433c6['_suggestionFactory']['registerCustomCallback']('insertion',_0x322d2a,'join',_0x1a1f66),_0x4433c6['_suggestionFactory']['registerCustomCallback']('deletion',_0x322d2a,'join',_0x1a1f66),_0x4433c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x322d2a,'join',_0x1a1f66);_0x4433c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a1f66),_0x4433c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x95a9c7,_0x355b84,_0x3415b2)=>{const _0x4ebb6a=_0x95a9c7['map'](_0x3bd08a=>_0x3bd08a['getContainedElement']())['filter'](_0x2d4789=>_0x2d4789),_0x36666b=new Map(_0x4ebb6a['map'](_0x4d6a50=>[_0x4d6a50,null]));if(_0x5665f7){for(const {element:_0x549428,attributes:_0x209954}of _0x5665f7['cells'])_0x209954&&_0x36666b['set'](_0x549428,_0x209954);}else{if(_0x3415b2&&_0x3415b2['markerAttributes'])for(const [_0x2df0ea,_0x12eea4]of Object['entries'](_0x3415b2['markerAttributes'])){const _0xbe3daa=_0x5b08c1['model']['markers']['get'](_0x2df0ea),_0x449a3a=_0xbe3daa?_0xbe3daa['getRange']()['getContainedElement']():null;_0x449a3a&&_0x36666b['set'](_0x449a3a,_0x12eea4);}}_0x5b08c1['model']['change'](_0x43d6cc=>{for(const [_0x20189a,_0x575d1a]of _0x36666b)_0x43d6cc['setAttributes']({...Ue,..._0x575d1a},_0x20189a);});});const _0x10ec58=(_0x28f74a,_0x1f3f0e)=>{_0x4433c6['_suggestionFactory']['registerCustomCallback'](_0x28f74a,'tablePaste',_0x1f3f0e,(_0x43f70b,_0x2b5210,_0x460611)=>{_0x5b08c1['model']['change'](_0x451fe5=>{const _0x246268=[];for(const _0x217ffe of _0x43f70b){const _0x12f09a=_0x217ffe['start']['nodeAfter'];_0x12f09a['is']('element','tableCellSuggestion')&&_0x246268['push'](_0x12f09a);}_0x4433c6['_suggestionFactory']['getSuggestionCallback'](_0x28f74a,null,_0x1f3f0e)(_0x43f70b,_0x2b5210,_0x460611);for(const _0x3bba5a of _0x246268)'$graveyard'!=_0x3bba5a['root']['rootName']&&_0x451fe5['unwrap'](_0x3bba5a);});});};_0x10ec58('insertion','accept'),_0x10ec58('insertion','discard'),_0x10ec58('deletion','accept'),_0x10ec58('deletion','discard'),_0x4433c6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x36b2e4=>{const _0x3c7d57=_0x36b2e4['map'](_0x6d8eab=>_0x6d8eab['getContainedElement']()),_0x5513b4=_0x3c7d57[0x0]['findAncestor']('table'),{minRow:_0x43ae86,maxRow:_0x290cdd}=_0x456c95['_getCoordsForCells'](_0x3c7d57);_0x2e4142['removeRows'](_0x5513b4,{'at':_0x43ae86,'rows':_0x290cdd-_0x43ae86+0x1});}),_0x4433c6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x361cc1=>{const _0x47cad9=_0x361cc1['map'](_0xef91e8=>_0xef91e8['getContainedElement']()),_0x52665e=_0x47cad9[0x0]['findAncestor']('table'),{minColumn:_0x211607,maxColumn:_0x2216e5}=_0x456c95['_getCoordsForCells'](_0x47cad9);_0x2e4142['removeColumns'](_0x52665e,{'at':_0x211607,'columns':_0x2216e5-_0x211607+0x1});});const _0x2a3f6e=(_0x242a78,_0x310464)=>{if(!_0x310464['subType']||!_0x310464['subType']['startsWith']('tablePaste'))return;const _0x3f5c60=_0x310464['attributes']['tablePasteChainId'],_0x173a25=_0x4433c6['getSuggestions']()['filter'](_0x5d9d55=>_0x5d9d55['isInContent']&&_0x5d9d55['attributes']&&_0x5d9d55['attributes']['tablePasteChainId']==_0x3f5c60);_0x173a25['length']&&_0x310464['getAllAdjacentSuggestions']()['length']!=_0x173a25['length']&&_0x173a25['reduce']((_0x3a5716,_0x35a92b)=>(_0x3a5716['next']=_0x35a92b,_0x35a92b['previous']=_0x3a5716,_0x35a92b));};function _0x38031d(_0x182f74,_0x3460aa=!0x0){const {id:_0x2d58fc,authorId:_0x2e342d}=_0x4433c6['_splitMarkerName'](_0x182f74['markerName']),_0x30cdb8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe7d491=_0x4433c6['activeMarkers']['includes'](_0x182f74['markerName']);return _0xe7d491&&_0x30cdb8['push']('ck-suggestion-marker--active'),{'classes':_0x30cdb8,'attributes':{'data-suggestion':_0x2d58fc,'data-author-id':_0x2e342d},'priority':_0xe7d491&&_0x3460aa?0xbc2:0xbb8};}_0x4433c6['on']('suggestionLoaded',_0x2a3f6e,{'priority':'high'}),_0x4433c6['on']('suggestionUnloaded',_0x2a3f6e,{'priority':'high'}),_0x5b08c1['model']['document']['registerPostFixer'](()=>{let _0x1bc4ba=!0x1;const _0x2798b3=Array['from'](_0x5b08c1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x204750,data:_0x1ca6f9}of _0x2798b3){const {group:_0x403da1,type:_0x2a6a7c,id:_0x1f38fa}=_0x4433c6['_splitMarkerName'](_0x204750);if('suggestion'!=_0x403da1||'deletion'!=_0x2a6a7c||_0x1ca6f9['oldRange'])continue;if(!_0x4433c6['hasSuggestion'](_0x1f38fa))continue;const _0x20feba=_0x4433c6['getSuggestion'](_0x1f38fa)['getRanges'](),_0x4496f0=_0x5b08c1['plugins']['get']('Users')['me'];for(const _0x493aee of _0x4433c6['getSuggestions']()){if(!_0x493aee['isInContent']||_0x493aee['author']!=_0x4496f0)continue;if('formatBlock'!=_0x493aee['type']||'tablePasteCell'!=_0x493aee['subType'])continue;if(_0x493aee['getRanges']()['every'](_0x552ed2=>_0x20feba['some'](_0x247e8b=>_0x247e8b['containsRange'](_0x552ed2,!0x0)))){for(const _0x1bfd1 of _0x493aee['getAllAdjacentSuggestions']())_0x1bfd1['isInContent']&&(_0x1bfd1['discard'](),_0x1bc4ba=!0x0);}}}return _0x1bc4ba;}),_0x5b08c1['model']['document']['registerPostFixer'](_0x11a66f=>{const _0x4822cb=_0x5b08c1['commands']['get']('redo');if(!_0x4822cb||!_0x4822cb['_createdBatches']['has'](_0x11a66f['batch']))return!0x1;let _0x582cba=!0x1;const _0x55adc2=_0x5b08c1['plugins']['get']('Users')['me'],_0x237f17=_0x5b08c1['model']['document']['differ']['getChanges'](),_0x4cdd30=Array['from'](_0x5b08c1['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2b8e56,data:_0x484a21})=>{const {group:_0x12a867,subType:_0x261d34,authorId:_0x5bd499}=_0x4433c6['_splitMarkerName'](_0x2b8e56);return'suggestion'==_0x12a867&&'tablePaste'==_0x261d34&&_0x5bd499==_0x55adc2['id']&&!_0x484a21['oldRange'];});for(const _0x3157f6 of _0x237f17){if('insert'!=_0x3157f6['type']||'tableCellSuggestion'!=_0x3157f6['name']||0x1!=_0x3157f6['length'])continue;const _0x35657a=_0x11a66f['createRange'](_0x3157f6['position'],_0x3157f6['position']['getShiftedBy'](0x1));if(!_0x4cdd30['find'](({data:_0x2ed21f})=>_0x2ed21f['newRange']['isEqual'](_0x35657a))){for(const {name:_0x887291,data:_0x4b91b1}of _0x4cdd30)if(_0x35657a['containsRange'](_0x4b91b1['newRange'])){_0x11a66f['updateMarker'](_0x887291,{'range':_0x35657a}),_0x582cba=!0x0;break;}}}return _0x582cba;}),_0x5b08c1['model']['document']['registerPostFixer'](_0x14173e=>{let _0x5111a7=!0x1;const _0x30dcea=_0x5b08c1['plugins']['get']('Users')['me'],_0x4567ca=_0x4433c6['getSuggestions']()['filter'](_0x4d370b=>_0x4d370b['isInContent']&&_0x4d370b['author']==_0x30dcea),_0x30ffee=new Set(),_0x1999bc=new Set();for(const _0x744d9c of _0x4567ca)if('tablePaste'==_0x744d9c['subType'])for(const _0x293a20 of _0x744d9c['getMarkers']()){const _0x43bb4c=_0x293a20['getRange']()['getContainedElement']();if(_0x43bb4c){if(_0x43bb4c['is']('element','tableCellSuggestion')&&De(_0x43bb4c)){_0x744d9c['removeMarker'](_0x293a20['name']),_0x30ffee['add'](_0x43bb4c),_0x5111a7=!0x0;const _0x19175a=_0x43bb4c['nextSibling'],_0x5937e8=_0x43bb4c['previousSibling'],_0x3596ae=_0x19175a&&_0x19175a['is']('element','tableCellSuggestion'),_0x269885=_0x5937e8&&_0x5937e8['is']('element','tableCellSuggestion');_0x3596ae&&!_0x30ffee['has'](_0x19175a)&&_0x1999bc['add'](_0x19175a),_0x269885&&!_0x30ffee['has'](_0x5937e8)&&_0x1999bc['add'](_0x5937e8);}else _0x43bb4c['is']('element','paragraph')&&_0x43bb4c['isEmpty']&&(_0x744d9c['removeMarker'](_0x293a20['name']),_0x5111a7=!0x0);}}else{if('tablePasteCell'==_0x744d9c['subType']){if(!_0x744d9c['attributes']||!_0x744d9c['attributes']['tablePasteChainId'])continue;const _0xbf35dc=_0x744d9c['attributes']['markerAttributes'];if(_0xbf35dc&&Object['keys'](_0xbf35dc)['length'])continue;const _0x214236=_0x744d9c['attributes']['tablePasteChainId'];let _0x45d1d6=!0x0,_0x5d4881=!0x0;for(const _0x1eecde of _0x4567ca)if(_0x1eecde['subType']&&_0x1eecde['subType']['startsWith']('tablePaste')){if(!_0x1eecde['attributes']['tablePasteChainId']){_0x5d4881=!0x1;break;}if(_0x1eecde['id']!=_0x744d9c['id']&&_0x1eecde['attributes']['tablePasteChainId']==_0x214236){_0x45d1d6=!0x1;break;}}_0x5d4881&&_0x45d1d6&&(_0x744d9c['removeMarkers'](),_0x5111a7=!0x0);}}for(const _0x2f0dbb of _0x30ffee)_0x14173e['remove'](_0x2f0dbb);for(const _0x4ba7b0 of _0x1999bc)_0x14173e['unwrap'](_0x4ba7b0);return _0x5111a7;}),_0x5b08c1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x229869=>_0x38031d(_0x229869),'converterPriority':'high'}),_0x5b08c1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x64bff5,_0x5a4cb6)=>_0x5a4cb6['options']['showSuggestionHighlights']?_0x38031d(_0x64bff5,!0x1):null,'converterPriority':'high'});const _0x2476e6=_0x5b08c1['editing']['view'];this['listenTo'](_0x2476e6['document'],'clipboardOutput',(_0xf0f13c,_0x383838)=>{const _0x7bcc00=[];for(const _0x52b718 of _0x2476e6['createRangeIn'](_0x383838['content'])['getItems']())_0x52b718['is']('element','suggestion-td')&&_0x7bcc00['push'](_0x52b718);_0x2476e6['change'](_0x2122ea=>{for(const _0xf1473e of _0x7bcc00)_0x2122ea['move'](_0x2122ea['createRangeIn'](_0xf1473e),_0x2122ea['createPositionBefore'](_0xf1473e)),_0x2122ea['remove'](_0xf1473e);});});}}function De(_0x1fc532){if(_0x1fc532['isEmpty'])return!0x0;const _0x3ddce3=_0x1fc532['getChild'](0x0);return _0x3ddce3['is']('element','paragraph')&&_0x3ddce3['isEmpty'];}function He(_0x8c0461,_0x1ada43={},_0x2e2342){for(const {isAnchor:_0x377424,cellHeight:_0x15a3c5,cellWidth:_0x398413}of _0x2e2342['createTableWalker'](_0x8c0461,{'includeAllSlots':!0x0,..._0x1ada43}))if(!_0x377424||0x1!=_0x15a3c5||0x1!=_0x398413)return!0x1;return!0x0;}class Bt extends _0x21f549{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2290b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x2290b9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2290b9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2290b9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2290b9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2290b9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2290b9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x535da3,_0x303b94){const _0x21fece=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d9cca=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5a3244=_0x303b94['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x52a6b0=_0x2d9cca['getColumnGroupElement'](_0x5a3244);let _0x130bc3=_0x52a6b0?_0x2d9cca['getTableColumnsWidths'](_0x52a6b0):null,_0x3f941e=_0x5a3244['getAttribute']('tableWidth')||null;const _0x136444=_0x303b94['tableWidth']||_0x3f941e,_0xc402c3=_0x303b94['columnWidths']||_0x130bc3,_0x324079=this['editor']['plugins']['get']('Users')['me'];for(const _0x5633fc of _0x21fece['getSuggestions']()){const _0xd97cb9=_0x5633fc['getContainedElement']();if('resizeTable'===_0x5633fc['subType']&&_0xd97cb9===_0x5a3244){_0x5633fc['author']!==_0x324079&&_0x5633fc['discard']();const _0x35f7e5=_0x5633fc['data']['commandParams'];_0x3f941e=_0x35f7e5[0x0]['tableWidth'],_0x130bc3=_0x35f7e5[0x0]['columnWidths'];break;}}_0x535da3({'table':_0x5a3244,'tableWidth':_0x136444,'columnWidths':_0xc402c3}),_0x21fece['markBlockFormat'](_0x5a3244,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3f941e,'columnWidths':_0x130bc3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x319b12){if('formatBlock'!=_0x319b12['type']&&'formatInline'!=_0x319b12['type'])return;const {data:_0x4ca1ff}=_0x319b12;if(_0x4ca1ff&&'resizeTable'===_0x4ca1ff['formatGroupId']){const _0x32a631='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x32a631)};}}}class xt extends _0x21f549{['afterInit'](){const _0x2b63ea=this['editor'];_0x2b63ea['plugins']['has']('Template')&&_0x2b63ea['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x21f549{['afterInit'](){const _0x19e558=this['editor'];if(!_0x19e558['commands']['get']('insertTableOfContents'))return;_0x19e558['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x615153=_0x19e558['plugins']['get']('TrackChangesEditing'),_0x47a3ce=_0x19e558['locale'];_0x615153['descriptionFactory']['registerElementLabel']('tableOfContents',_0x348bce=>c(_0x47a3ce,'ELEMENT_TABLE_OF_CONTENTS',_0x348bce));}}class Rt extends _0x21f549{['afterInit'](){const _0x246854=this['editor'];if(!_0x246854['plugins']['has']('Title'))return;const _0x3b7457=_0x246854['plugins']['get']('TrackChangesEditing');_0x3b7457['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x246854['locale'],'ELEMENT_TITLE')),_0x246854['model']['document']['registerPostFixer'](_0x3fe3f8=>{let _0x421ccf=!0x1;const _0x48ade5=Array['from'](_0x246854['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b2388,data:_0x2c334b}of _0x48ade5){const {group:_0xd8440a}=_0x3b7457['_splitMarkerName'](_0x5b2388);if('suggestion'!==_0xd8440a||!_0x2c334b['newRange'])continue;const _0x14c947=_0x2c334b['newRange'],_0xcea91d=_0x14c947['end']['nodeBefore'];if(!_0xcea91d||!_0xcea91d['is']('element','title-content'))continue;if(!_0x14c947['start']['isTouching'](_0x14c947['end']))continue;const _0x21e25b=_0x246854['model']['schema']['getNearestSelectionRange'](_0x14c947['end'],'forward');if(_0x21e25b&&_0x21e25b['isCollapsed']){const _0x198069=_0x3fe3f8['createRange'](_0x14c947['start'],_0x21e25b['start']);_0x198069['isEqual'](_0x14c947)||(_0x3fe3f8['updateMarker'](_0x5b2388,{'range':_0x198069}),_0x421ccf=!0x0);}_0x421ccf||(_0x3fe3f8['removeMarker'](_0x5b2388),_0x421ccf=!0x0);}return _0x421ccf;});}}class Tt extends _0x21f549{['afterInit'](){const _0x6ed44e=this['editor'],_0x58aa25=_0x6ed44e['plugins']['get']('TrackChangesEditing');_0x6ed44e['plugins']['has']('Uploadcare')&&(_0x58aa25['enableCommand']('uploadcare'),_0x6ed44e['plugins']['has']('UploadcareImageEdit')&&(_0x58aa25['enableCommand']('uploadcareImageEdit'),_0x58aa25['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x58aa25['registerBlockAttribute']('uploadcareImageId'),_0x58aa25['descriptionFactory']['registerDescriptionCallback'](_0x32feec=>{if('attribute'!=_0x32feec['type'])return;const {data:_0x588d2c}=_0x32feec;return _0x588d2c&&'uploadcareImageId'==_0x588d2c['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x21f549{['afterInit'](){const _0x28c609=this['editor'],_0x2f4dc6=_0x28c609['plugins']['get']('TrackChangesEditing');_0x28c609['plugins']['has']('UndoEditing')&&(_0x2f4dc6['enableCommand']('undo'),_0x2f4dc6['enableCommand']('redo'));}}class Ut extends _0x21f549{static get['requires'](){return[Ct];}['afterInit'](){const _0x20ec0e=this['editor'];if(!_0x20ec0e['plugins']['has']('TableCaptionEditing'))return;_0x20ec0e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x21f549{['tableProperties'];['tableCellProperties'];constructor(_0x2fc9ef){super(_0x2fc9ef),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x510482=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4e1da6 of this['tableProperties'])_0x510482['enableCommand'](_0x4e1da6,(_0x4e1864,_0x170d2e)=>{const _0x4cf2c3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4e1da6,[_0x4cf2c3],this['tableProperties'],'tableProperties',_0x4e1864,_0x170d2e);});_0x510482['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x510482['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x510482['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa0290c,_0x1bf45b)=>this['handleDiscardAction'](this['tableProperties'],_0xa0290c,_0x1bf45b)),_0x510482['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x137898 of this['tableCellProperties'])_0x510482['enableCommand'](_0x137898,(_0x4906f6,_0x2fa714)=>{const _0x37d39a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x137898,_0x37d39a,this['tableCellProperties'],'tableCellProperties',_0x4906f6,_0x2fa714);});_0x510482['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x510482['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x510482['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f6b79,_0x19ca76)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f6b79,_0x19ca76)),_0x510482['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x510482['descriptionFactory']['registerDescriptionCallback'](_0x3e5e34=>this['handleSuggestionDescription'](_0x3e5e34));}['_handlePropertyChange'](_0x149c69,_0x1a55ee,_0x2c0a76,_0x102df6,_0x286970,_0x2ab7f2){const _0x40661f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ab7f2['batch'],()=>{for(const _0x485512 of _0x1a55ee){if(this['_getSuggestion'](_0x485512,_0x102df6))_0x286970(_0x2ab7f2);else{const _0x1beca9={};for(const _0x393f89 of _0x2c0a76){const _0x179daa=_0x485512['getAttribute'](_0x393f89);void 0x0!==_0x179daa&&(_0x1beca9[_0x393f89]=_0x179daa);}_0x286970(_0x2ab7f2),_0x40661f['markBlockFormat'](_0x485512,{'commandParams':[_0x1beca9]},[],_0x102df6);}}});}['handleDiscardAction'](_0x437af2,_0x1df44f,_0x18606d){const _0x588c8e=_0x1df44f[0x0]['start']['nodeAfter'],_0x2a352d=_0x18606d['commandParams'][0x0];this['editor']['model']['change'](_0xe49b0b=>{for(const _0xe53ea0 of _0x437af2)void 0x0!==_0x2a352d[_0xe53ea0]?_0xe49b0b['setAttribute'](_0xe53ea0,_0x2a352d[_0xe53ea0],_0x588c8e):_0xe49b0b['removeAttribute'](_0xe53ea0,_0x588c8e);});}['handleSuggestionDescription'](_0x10a4e2){if(_0x10a4e2['data'])switch(_0x10a4e2['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x171b51,_0x47134c){const _0x2e46ce=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x59ad23 of _0x2e46ce['getSuggestions']({'skipNotAttached':!0x0})){const _0x423f03=_0x59ad23['getContainedElement']();if(_0x59ad23['subType']===_0x47134c&&_0x423f03===_0x171b51)return _0x59ad23;}return null;}}const u='$elementName';class p extends _0x21f549{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x65df82,_0x2d5dff,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,wt,lt,W,Se,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52c866){super(_0x52c866),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x14d453,_0x4a69b1,_0x2c2aa4,_0x228174)=>{this['_model']['change'](()=>{for(const _0x4e91a4 of[..._0x228174,..._0x2c2aa4])this['_model']['markers']['has'](_0x4e91a4)&&_0x52c866['editing']['reconvertMarker'](_0x4e91a4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x52c866['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x52c866['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x52c866['config']['get']('trackChanges.trackFormatChanges'),_0x52c866['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x52c866['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x52c866,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x37726e=this['editor'],_0x15a594=(_0x462cc3,_0x266d31)=>{if('attribute'!=_0x462cc3)return'ck-suggestion-marker-'+_0x462cc3;const _0x16bf89=_0x266d31['split']('|')[0x0];return this['_isBlockAttribute'](_0x16bf89)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x37726e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3fa608=>{const {id:_0x4b706a,authorId:_0x56ad58,type:_0x31091e,subType:_0x507dab}=this['_splitMarkerName'](_0x3fa608['markerName']),_0x472594=['ck-suggestion-marker',_0x15a594(_0x31091e,_0x507dab)];let _0x29833e=0xbb8;return this['activeMarkers']['includes'](_0x3fa608['markerName'])&&(_0x472594['push']('ck-suggestion-marker--active'),_0x29833e=0xbc2),'deletion'==_0x31091e&&(_0x29833e+=0x5),{'classes':_0x472594,'attributes':{'data-suggestion':_0x4b706a,'data-author-id':_0x56ad58},'priority':_0x29833e};}}),_0x37726e['conversion']['for']('dataDowncast')['add'](_0x70d784=>{_0x70d784['on']('addMarker:suggestion',(_0x8578a4,_0x553873,_0x4c562c)=>{if(!_0x4c562c['options']['showSuggestionHighlights'])return;const _0x40b380=_0x553873['item'];if(!_0x40b380)return;const _0x544f86=_0x4c562c['mapper']['toViewElement'](_0x40b380);_0x37726e['model']['schema']['isObject'](_0x40b380)&&_0x544f86&&!_0x544f86['getCustomProperty']('widget')&&_0x544f86['is']('containerElement')&&_0x2fc5ab(_0x544f86,_0x4c562c['writer']);},{'priority':'high'});}),_0x37726e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x24f9b8,_0x3c6fce)=>{if(!_0x3c6fce['options']['showSuggestionHighlights'])return null;const {id:_0x51cfd1,authorId:_0x253f15,type:_0x264a52,subType:_0x255f12}=this['_splitMarkerName'](_0x24f9b8['markerName']);return{'classes':['ck-suggestion-marker',_0x15a594(_0x264a52,_0x255f12)],'priority':0xbb8,'attributes':{'data-suggestion':_0x51cfd1,'data-author-id':_0x253f15}};}});const _0x54800c=({showActiveMarkers:_0x57bbbe=!0x0,isAttributeSuggestion:_0xd56792=!0x1}={})=>(_0x371b26,_0x2c94e2,_0x39798d)=>{if(!_0x2c94e2['item'])return;const {id:_0x571d39,authorId:_0x12cfae}=this['_splitMarkerName'](_0x2c94e2['markerName']);if(_0xd56792){const _0x444714=this['_suggestions']['get'](_0x571d39),_0x222fc2=this['_getAttributeKey'](_0x444714);if(!this['_isBlockAttribute'](_0x222fc2))return;}if(_0x2c94e2['item']['is']('selection'))return void _0x39798d['consumable']['consume'](_0x2c94e2['item'],_0x371b26['name']);const _0xedf72c=_0x39798d['mapper']['toViewElement'](_0x2c94e2['item']);if(_0x2c94e2['item']['is']('element')&&_0x37726e['model']['schema']['isBlock'](_0x2c94e2['item'])&&!_0xedf72c['getCustomProperty']('addHighlight')){_0x39798d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xedf72c),_0x39798d['writer']['setAttribute']('data-suggestion',_0x571d39,_0xedf72c),_0x39798d['writer']['setAttribute']('data-author-id',_0x12cfae,_0xedf72c),_0x39798d['mapper']['bindElementToMarker'](_0xedf72c,_0x2c94e2['markerName']),_0x57bbbe&&(this['activeMarkers']['includes'](_0x2c94e2['markerName'])?_0x39798d['writer']['addClass']('ck-suggestion-marker--active',_0xedf72c):_0x39798d['writer']['removeClass']('ck-suggestion-marker--active',_0xedf72c));for(const _0x23817a of _0x37726e['model']['createRangeIn'](_0x2c94e2['item'])['getItems']())_0x39798d['consumable']['consume'](_0x23817a,_0x371b26['name']);_0x39798d['consumable']['consume'](_0x2c94e2['item'],_0x371b26['name']);}};_0x37726e['conversion']['for']('dataDowncast')['add'](_0xff0d7=>{_0xff0d7['on']('addMarker:suggestion:formatBlock',(_0x578a9f,_0x5cb52f,_0x4ba33b)=>{_0x4ba33b['options']['showSuggestionHighlights']&&_0x54800c({'showActiveMarkers':!0x1})(_0x578a9f,_0x5cb52f,_0x4ba33b);},{'priority':'highest'});}),_0x37726e['conversion']['for']('dataDowncast')['add'](_0x518531=>{_0x518531['on']('addMarker:suggestion:attribute',(_0x2d864f,_0x45de7c,_0xa914a1)=>{_0xa914a1['options']['showSuggestionHighlights']&&_0x54800c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d864f,_0x45de7c,_0xa914a1);},{'priority':'highest'});}),_0x37726e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5288cc,_0xb01c46)=>{if(_0xb01c46['options']['showSuggestionHighlights']){const {id:_0x5f4096,authorId:_0x157925}=this['_splitMarkerName'](_0x5288cc);return _0x5288cc['includes'](':split')||_0x5288cc['includes'](':merge')?{'group':'suggestion','name':_0x5288cc['substr'](0xb),'attributes':{'data-suggestion':_0x5f4096,'data-author-id':_0x157925}}:null;}return{'group':'suggestion','name':_0x5288cc['substr'](0xb)};}}),_0x37726e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5f5cc3,{writer:_0x21fd16})=>{let _0x23ce50='suggestion:'+_0x5f5cc3['getAttribute']('suggestion-type')+':'+_0x5f5cc3['getAttribute']('id');return _0x5f5cc3['getAttribute']('marker-count')&&(_0x23ce50+=':'+_0x5f5cc3['getAttribute']('marker-count')),_0x21fd16['createElement']('$marker',{'data-name':_0x23ce50});}}),_0x37726e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x37726e['conversion']['for']('editingDowncast')['add'](_0x1ed285=>{_0x1ed285['on']('addMarker:suggestion:formatBlock',_0x54800c(),{'priority':'high'});}),_0x37726e['conversion']['for']('editingDowncast')['add'](_0x28b21e=>{_0x28b21e['on']('addMarker:suggestion:attribute',_0x54800c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x37726e['conversion']['for']('editingDowncast')['add'](_0xa67f91=>{_0xa67f91['on']('removeMarker:suggestion:formatBlock',(_0x2e972c,_0xb81c43,_0x5a2c5d)=>{const _0x252ef1=_0x5a2c5d['mapper']['markerNameToElements'](_0xb81c43['markerName']);if(_0x252ef1){for(const _0x4662aa of _0x252ef1)_0x4662aa['getCustomProperty']('addHighlight')||(_0x5a2c5d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4662aa),_0x5a2c5d['writer']['removeAttribute']('data-suggestion',_0x4662aa),_0x5a2c5d['writer']['removeAttribute']('data-author-id',_0x4662aa),_0x5a2c5d['mapper']['unbindElementFromMarkerName'](_0x4662aa,_0xb81c43['markerName']));}},{'priority':'high'});}),_0x37726e['conversion']['for']('editingDowncast')['add'](_0x2f757a=>{_0x2f757a['on']('removeMarker:suggestion:attribute',(_0x981c47,_0x391017,_0x332962)=>{const _0x4765b3=_0x332962['mapper']['markerNameToElements'](_0x391017['markerName']);if(!_0x4765b3)return;const {id:_0x266f32}=this['_splitMarkerName'](_0x391017['markerName']),_0x544685=this['_suggestions']['get'](_0x266f32),_0x91a344=this['_getAttributeKey'](_0x544685);if(this['_isBlockAttribute'](_0x91a344)){for(const _0x472a62 of _0x4765b3)_0x472a62['getCustomProperty']('addHighlight')||(_0x332962['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x472a62),_0x332962['writer']['removeAttribute']('data-suggestion',_0x472a62),_0x332962['writer']['removeAttribute']('data-author-id',_0x472a62),_0x332962['mapper']['unbindElementFromMarkerName'](_0x472a62,_0x391017['markerName']));}},{'priority':'high'});}),_0x37726e['model']['document']['registerPostFixer'](_0x4e1c14=>{let _0x5bf5c7=!0x1;const _0x5a48c5=Array['from'](_0x37726e['model']['document']['differ']['getChangedMarkers']()),_0x460759=new Set();for(const {name:_0x38d544,data:_0x4c4de3}of _0x5a48c5){const {group:_0x1ee7dc,type:_0x9099ff,subType:_0x4e8769,id:_0x1ca037}=this['_splitMarkerName'](_0x38d544);if('suggestion'!==_0x1ee7dc)continue;const _0xfae41f=this['_suggestions']['get'](_0x1ca037);if(null!=_0x4c4de3['newRange']){'formatInline'==_0x9099ff&&(_0x5bf5c7=_0x5bf5c7||Jt(_0x4c4de3['newRange'],_0x38d544,_0x4e1c14,_0x37726e['model']['schema']));const _0x5acf93='attribute'==_0x9099ff&&this['_isBlockAttribute'](_0x4e8769['split']('|')[0x0]);if(_0x4c4de3['newRange']['isCollapsed']||'$graveyard'==_0x4c4de3['newRange']['root']['rootName']||'formatBlock'==_0x9099ff&&!Ht(_0x4c4de3['newRange'])||_0x5acf93&&!Ht(_0x4c4de3['newRange'])||'deletion'==_0x9099ff&&!(!Lt(_0x1a1038=_0x4c4de3['newRange'])&&!function(_0x2df59a){return _0x2df59a['start']['parent']==_0x2df59a['end']['nodeBefore']&&_0x2df59a['start']['isAtEnd'];}(_0x1a1038)))_0x4e1c14['removeMarker'](_0x38d544),_0x5bf5c7=!0x0;else{if(!_0xfae41f||!_0xfae41f['isInContent'])continue;if(_0x4c4de3['newRange']&&_0x4c4de3['oldRange']&&_0x4c4de3['newRange']['isEqual'](_0x4c4de3['oldRange']))continue;_0x460759['add'](_0xfae41f);}}}var _0x1a1038;return _0x460759['size']>0x0&&(_0x5bf5c7=!!this['_joinWithAdjacentSuggestions'](_0x460759)||_0x5bf5c7),_0x5bf5c7;}),_0x37726e['model']['document']['registerPostFixer'](_0x342f71=>{let _0x40fe62=!0x1;for(const _0xc859fc of _0x37726e['model']['document']['differ']['getChanges']())if('insert'==_0xc859fc['type'])for(const _0x493a9b of this['_suggestions']['values']()){if(_0x493a9b['isMultiRange']||!_0x493a9b['isInContent'])continue;const _0x2234d7='formatBlock'==_0x493a9b['type'],_0x11f9b2=this['_getAttributeKey'](_0x493a9b),_0x25d41e=_0x11f9b2&&this['_isBlockAttribute'](_0x11f9b2);if(!_0x2234d7&&!_0x25d41e)continue;const _0x193000=_0x493a9b['getFirstRange']();if(_0x193000['start']['parent']!=_0x193000['end']['parent']&&!_0x193000['end']['isAtEnd']){const _0x5c1374=_0x37726e['model']['createPositionAt'](_0x193000['start']['nodeAfter'],'end'),_0x15c00d=_0x37726e['model']['createRange'](_0x193000['start'],_0x5c1374);_0x342f71['updateMarker'](_0x493a9b['getFirstMarker'](),{'range':_0x15c00d}),_0x40fe62=!0x0;}}return _0x40fe62;}),_0x37726e['model']['document']['registerPostFixer'](_0x1be180=>this['_processAttributeChanges'](_0x1be180)),_0x37726e['model']['document']['registerPostFixer'](_0x368609=>!_0x368609['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x368609)),_0x37726e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x37726e['model']['document']['on']('change:data',(_0x553cd8,_0x54d822)=>{if(!_0x54d822['isLocal']||_0x54d822['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dbcf4=_0x37726e['model']['document']['differ']['getChanges']();if(0x0==_0x5dbcf4['length'])return;const _0xb2b923=[],_0x2ce82c=_0x5dbcf4['filter'](_0x27fb33=>'attribute'==_0x27fb33['type']),_0x48d099=_0x5dbcf4['filter'](_0x2af5e7=>'insert'==_0x2af5e7['type']&&'$text'!=_0x2af5e7['name']);for(const _0x187ac3 of _0x2ce82c)this['_isRegisteredAttribute'](_0x187ac3['attributeKey'])&&_0xb2b923['push']({'key':_0x187ac3['attributeKey'],'newValue':_0x187ac3['attributeNewValue'],'oldValue':_0x187ac3['attributeOldValue'],'range':qt(_0x187ac3['range'],_0x37726e['model'])});for(const _0x4dea98 of _0x48d099){if('rename'!=_0x4dea98['action']&&'refresh'!=_0x4dea98['action'])continue;const _0x4a1e5a=zt(_0x4dea98['position']['nodeAfter'],_0x37726e['model']),_0x45dc9b=_0x4dea98['before'];'rename'==_0x4dea98['action']&&_0xb2b923['push']({'key':u,'newValue':_0x4dea98['name'],'oldValue':_0x45dc9b['name'],'range':_0x4a1e5a});for(const [_0x4e70d0,_0x34b9a1]of _0x45dc9b['attributes']){if(!this['_isRegisteredAttribute'](_0x4e70d0))continue;const _0x357feb=_0x4dea98['attributes']['get'](_0x4e70d0);_0x34b9a1!==_0x357feb&&_0xb2b923['push']({'key':_0x4e70d0,'newValue':_0x357feb,'oldValue':_0x34b9a1,'range':_0x4a1e5a});}for(const [_0xd1221b,_0xcc8b25]of _0x4dea98['attributes'])this['_isRegisteredAttribute'](_0xd1221b)&&(_0x45dc9b['attributes']['has'](_0xd1221b)||_0xb2b923['push']({'key':_0xd1221b,'newValue':_0xcc8b25,'oldValue':null,'range':_0x4a1e5a}));}0x0!=_0xb2b923['length']&&_0x37726e['model']['enqueueChange'](_0x54d822,_0x52387a=>{const _0x303a63=_0x4822d2();for(const {range:_0x2b8a88,key:_0x58b296,oldValue:_0x324d91,newValue:_0x228a9a}of _0xb2b923)this['markAttributeChange'](_0x2b8a88,_0x58b296,_0x324d91,_0x228a9a,{'groupId':_0x303a63});this['_reduceExistingSuggestions'](_0x52387a,_0xb2b923);});},{'priority':'lowest'}),_0x37726e['model']['markers']['on']('update:suggestion',(_0x299e1b,_0x1434e2,_0x448438)=>{if(null==_0x448438){const {id:_0x532f76}=this['_splitMarkerName'](_0x1434e2['name']),_0x3da569=this['_suggestions']['get'](_0x532f76);_0x3da569&&_0x3da569['addMarkerName'](_0x1434e2['name']);}}),_0x37726e['model']['document']['on']('change:data',()=>{const _0x198027=Array['from'](_0x37726e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x28dcb5=>'suggestion'===this['_splitMarkerName'](_0x28dcb5['name'])['group']);if(0x0===_0x198027['length'])return;_0x198027['sort']((_0x294287,_0x1b99f8)=>{const _0x30cbca=_0x294287['data']['oldRange'],_0x4973cc=_0x1b99f8['data']['oldRange'];return null===_0x30cbca&&null===_0x4973cc?0x0:null===_0x30cbca&&null!==_0x4973cc?-0x1:null!==_0x30cbca&&null===_0x4973cc?0x1:_0x30cbca['start']['isBefore'](_0x4973cc['start'])?-0x1:0x1;});const _0x272e34=new Set(),_0xe98365=new Set();for(const {name:_0x154df9,data:_0x4df541}of _0x198027){const {id:_0x576a71}=this['_splitMarkerName'](_0x154df9);if(null===_0x4df541['oldRange']){const _0x17330b=this['_handleNewSuggestionMarker'](_0x154df9);_0xe98365['add'](_0x17330b);}else{const _0x1ae836=this['_suggestions']['get'](_0x576a71);null!==_0x4df541['newRange']||_0x1ae836['isInContent']?(_0x272e34['add'](_0x1ae836['head']),_0xe98365['add'](_0x1ae836)):this['_removeSuggestion'](_0x1ae836);}}_0xe98365['size']>0x0&&this['_refreshSuggestionsChain'](_0xe98365);for(const _0x36bb8c of _0x272e34)this['fire']('suggestionChanged',_0x36bb8c);}),_0x37726e['model']['on']('applyOperation',(_0x4770b2,_0x16f116)=>{const _0x1ada5f=_0x16f116[0x0];if(!this['_suggestions']['size'])return;if(!_0x1ada5f['isDocumentOperation'])return;if(_0x1ada5f['batch']['isUndo']||!_0x1ada5f['batch']['isLocal'])return;let _0x5129be,_0x2f3672;switch(_0x1ada5f['type']){case'insert':_0x5129be=_0x37726e['model']['createPositionAt'](_0x1ada5f['position']),_0x2f3672=_0x5129be['getShiftedBy'](_0x1ada5f['howMany']);break;case'split':_0x5129be=_0x37726e['model']['createPositionAt'](_0x1ada5f['splitPosition']),_0x2f3672=_0x37726e['model']['createPositionAt'](_0x1ada5f['moveTargetPosition']);break;case'move':_0x5129be=_0x37726e['model']['createPositionAt'](_0x1ada5f['targetPosition']),_0x2f3672=_0x5129be['getShiftedBy'](_0x1ada5f['howMany']);break;default:return;}const _0x42ab90=_0x37726e['model']['createRange'](_0x5129be,_0x2f3672);_0x37726e['model']['change'](()=>{for(const {suggestion:_0x306b6e,meta:_0x255dd6}of this['_findSuggestions'](_0x42ab90)){if(_0x306b6e['isMultiRange'])continue;if('formatInline'==_0x306b6e['type'])continue;const _0x24074a=this['_getAttributeKey'](_0x306b6e);if(_0x24074a&&this['_isBlockAttribute'](_0x24074a)&&'split'!=_0x1ada5f['type'])continue;const _0x39b232=_0x306b6e['data']&&_0x306b6e['data']['multipleBlocks'];('formatBlock'!=_0x306b6e['type']||'split'==_0x1ada5f['type']&&!_0x39b232)&&(_0x255dd6['containsRangeInObject']||'insertion'==_0x306b6e['type']&&_0x255dd6['isOwn']||_0x306b6e['getFirstRange']()['containsRange'](_0x42ab90)&&this['_breakSuggestionMarker'](_0x306b6e,_0x5129be,_0x2f3672));}});},{'priority':'lowest'}),_0x37726e['model']['on']('deleteContent',(_0x5cf209,_0x232eab)=>{const _0x233b87=_0x232eab[0x0],_0x490ff4=_0x232eab[0x1];if(_0x490ff4&&_0x490ff4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x233b87['isCollapsed'])return;const _0x141e45=_0x37726e['model']['schema'],{start:_0x5d9658,end:_0x3021be}=_0x233b87['getFirstRange'](),_0x38cfd3=_0x5d9658['nodeAfter']&&_0x141e45['isLimit'](_0x5d9658['nodeAfter'])?null:_0x141e45['getNearestSelectionRange'](_0x5d9658,'forward'),_0x19e1f8=_0x3021be['nodeBefore']&&_0x141e45['isLimit'](_0x3021be['nodeBefore'])?null:_0x141e45['getNearestSelectionRange'](_0x3021be,'backward'),_0x16cf95=_0x37726e['model']['createRange'](_0x38cfd3?_0x38cfd3['start']:_0x5d9658,_0x19e1f8?_0x19e1f8['end']:_0x3021be);_0x37726e['model']['change'](_0x1e3f1d=>{this['markDeletion'](_0x16cf95);const _0x2a34e7=_0x37726e['model']['schema']['getNearestSelectionRange'](_0x16cf95['start']);_0x233b87['is']('documentSelection')?_0x1e3f1d['setSelection'](_0x2a34e7):_0x233b87['setTo'](_0x2a34e7);}),_0x5cf209['stop']();},{'priority':_0x305e67['normal']+0xa}),_0x37726e['model']['on']('insertContent',(_0x44ec69,_0xa8150)=>{const _0x23a199=_0xa8150[_0xa8150['length']-0x1];_0x23a199&&_0x23a199['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x37726e['model']['change'](()=>{let _0x4c1d34=_0x37726e['model']['insertContent'](_0xa8150[0x0],_0xa8150[0x1],_0xa8150[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c1d34)return;_0x44ec69['return']=_0x4c1d34['clone']();const _0x250069=_0x4c1d34['end']['nodeBefore'],_0x4f0544=_0x37726e['model']['schema'];_0x250069&&_0x4f0544['isBlock'](_0x250069)&&!_0x4f0544['isObject'](_0x250069)&&(_0x4c1d34=_0x37726e['model']['createRange'](_0x4c1d34['start'],_0x37726e['model']['createPositionAt'](_0x250069,'end'))),this['markInsertion'](_0x4c1d34);}),_0x44ec69['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d254e=new x(_0x37726e,this['_suggestions']);_0x37726e['commands']['add']('acceptSuggestion',_0x5d254e),this['enableCommand']('acceptSuggestion');const _0x3cfaf3=new O(_0x37726e,this['_suggestions']);_0x37726e['commands']['add']('discardSuggestion',_0x3cfaf3),this['enableCommand']('discardSuggestion'),_0x37726e['commands']['add']('acceptAllSuggestions',new R(_0x37726e,_0x5d254e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x37726e['commands']['add']('discardAllSuggestions',new R(_0x37726e,_0x3cfaf3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x37726e['commands']['add']('acceptSelectedSuggestions',new E(_0x37726e,_0x5d254e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x37726e['commands']['add']('discardSelectedSuggestions',new E(_0x37726e,_0x3cfaf3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4de8b3=_0x37726e['plugins']['get']('CommentsRepository');this['listenTo'](_0x4de8b3,'addComment',(_0x890ede,{threadId:_0x185467})=>{const _0x2cafba=this['_suggestions']['get'](_0x185467);_0x2cafba&&_0x2cafba['commentThread']&&0x1===_0x2cafba['commentThread']['length']&&this['_updateSuggestionData'](_0x185467,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4de8b3,'removeComment',(_0xc024f1,{threadId:_0x174930})=>{const _0x1b5ee2=this['_suggestions']['get'](_0x174930);_0x1b5ee2&&_0x1b5ee2['commentThread']&&!_0x1b5ee2['commentThread']['length']&&this['_updateSuggestionData'](_0x174930,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ab72c){const _0x592219=_0x2e9176([0x38,0x45,0x50,0x43,0x46,0x6a,0x4f,0x57,0x6c,0x30,0x6b,0x66,0x41,0x4a,0x35,0x5a,0x67,0x65,0x32,0x4b,0x48,0x64,0x34,0x72,0x58,0x61,0x71,0x53,0x55,0x52,0x47,0x39,0x7a,0x77,0x6f,0x54,0x73,0x44,0x4d,0x62,0x6d,0x75,0x70,0x59,0x56,0x31,0x36,0x37,0x78,0x51,0x49,0x68,0x33,0x6e,0x4c,0x69,0x79,0x42,0x63,0x76,0x4e,0x74]),_0x2476b6=0x63315197,_0x45cd9a=0x63363647^_0x2476b6,_0x396ced=window[_0x2e9176([0x44,0x61,0x74,0x65])][_0x2e9176([0x6e,0x6f,0x77])](),_0x4bcbb3=_0x4ab72c[_0x2e9176([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x431ddc=new window[(_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1276=>{_0x4bcbb3[_0x2e9176([0x6f,0x6e,0x63,0x65])](_0x2e9176([0x72,0x65,0x61,0x64,0x79]),_0x2a1276);}),_0x3ac408={[_0x2e9176([0x6b,0x74,0x79])]:_0x2e9176([0x45,0x43]),[_0x2e9176([0x75,0x73,0x65])]:_0x2e9176([0x73,0x69,0x67]),[_0x2e9176([0x63,0x72,0x76])]:_0x2e9176([0x50,0x2d,0x32,0x35,0x36]),[_0x2e9176([0x78])]:_0x2e9176([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2e9176([0x79])]:_0x2e9176([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2e9176([0x61,0x6c,0x67])]:_0x2e9176([0x45,0x53,0x32,0x35,0x36])},_0x3ed234=_0x4bcbb3[_0x2e9176([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e9176([0x67,0x65,0x74])](_0x2e9176([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b97ae(){let _0x2d9e9c,_0x3baf85=null,_0x5cd0dc=null;try{if(_0x3ed234==_0x2e9176([0x47,0x50,0x4c]))return _0x2e9176([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d9e9c=_0x59c83a(),!_0x2d9e9c)return _0x2e9176([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d9e9c[_0x2e9176([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5cd0dc=_0x34df5e(_0x2d9e9c[_0x2e9176([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d9e9c[_0x2e9176([0x6a,0x74,0x69])])),await _0x54254d()?_0xd5516d()?_0x3ef51a()?_0x2e9176([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x107a0d()?(_0x2d9e9c[_0x2e9176([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e9176([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3baf85=_0x30f8ee(_0x2e9176([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d9e9c[_0x2e9176([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e9176([0x74,0x72,0x69,0x61,0x6c])&&(_0x3baf85=_0x30f8ee(_0x2e9176([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24353d()):_0x2e9176([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e9176([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e9176([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x453de6){return _0x2e9176([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ef51a(){const _0x3e31d5=[_0x2e9176([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e9176([0x74,0x72,0x69,0x61,0x6c])][_0x2e9176([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9e9c[_0x2e9176([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x396ced/0x3e8:0xe10*_0x45cd9a;return _0x2d9e9c[_0x2e9176([0x65,0x78,0x70])]<_0x3e31d5;}function _0xd5516d(){const _0x4f61ed=_0x2d9e9c[_0x2e9176([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4f61ed)return!0x1;if(_0x4f61ed[_0x2e9176([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e9176([0x2a])))return!0x0;if(_0x4f61ed[_0x2e9176([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e9176([0x54,0x43])))return!0x0;if(_0x4f61ed[_0x2e9176([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e9176([0x52,0x54,0x43]))){if(_0x4be30e())return!0x0;if(_0x508df7()||_0x23f951())return!0x0;}return!0x1;}function _0x107a0d(){const _0x32c7b7=_0x2d9e9c[_0x2e9176([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32c7b7||0x0==_0x32c7b7[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2dfa50}=new URL(window[_0x2e9176([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32c7b7[_0x2e9176([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dfa50))return!0x0;const _0x3bf422=_0x2dfa50[_0x2e9176([0x73,0x70,0x6c,0x69,0x74])](_0x2e9176([0x2e]));return _0x32c7b7[_0x2e9176([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30ecb0=>_0x30ecb0[_0x2e9176([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e9176([0x2a])))[_0x2e9176([0x6d,0x61,0x70])](_0x6d7bef=>_0x6d7bef[_0x2e9176([0x73,0x70,0x6c,0x69,0x74])](_0x2e9176([0x2e])))[_0x2e9176([0x73,0x6f,0x6d,0x65])](_0x24e4bf=>_0x3bf422[_0x2e9176([0x65,0x76,0x65,0x72,0x79])]((_0x4d8749,_0x59f96b)=>_0x24e4bf[_0x59f96b]===_0x4d8749||_0x24e4bf[_0x59f96b]===_0x2e9176([0x2a])));}function _0x24353d(){return _0x3baf85&&_0x5cd0dc?new window[(_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581ec1,_0x51c8d2)=>{_0x3baf85[_0x2e9176([0x74,0x68,0x65,0x6e])](_0x581ec1,_0x51c8d2),_0x5cd0dc[_0x2e9176([0x74,0x68,0x65,0x6e])](_0x22e982=>{_0x22e982!=_0x2e9176([0x56,0x61,0x6c,0x69,0x64])&&_0x581ec1(_0x22e982);},_0x51c8d2);}):_0x3baf85||_0x5cd0dc||_0x2e9176([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34df5e(_0x59d1cd,_0x1b596f){return new window[(_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e112b=>{if(_0xb5fb5c())return _0x1e112b(_0x2e9176([0x56,0x61,0x6c,0x69,0x64]));_0x2221d1(),_0x4bcbb3[_0x2e9176([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e9176([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a4cdc=!0x1;const _0x522c6f=_0x4822d2();function _0x4ea19e(_0xaf04cd){return!!_0xaf04cd&&(typeof _0xaf04cd===_0x2e9176([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xaf04cd===_0x2e9176([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xaf04cd[_0x2e9176([0x74,0x68,0x65,0x6e])]===_0x2e9176([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xaf04cd[_0x2e9176([0x63,0x61,0x74,0x63,0x68])]===_0x2e9176([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x255ed3(_0x5105b0){_0x5c7c0b(_0x5105b0)[_0x2e9176([0x74,0x68,0x65,0x6e])](_0x285b91=>{if(!_0x285b91||_0x285b91[_0x2e9176([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e9176([0x6f,0x6b]))return _0x2e9176([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5909aa(_0x3c6d46(_0x522c6f+_0x1b596f))!=_0x285b91[_0x2e9176([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e9176([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e9176([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e9176([0x74,0x68,0x65,0x6e])](_0x16b843=>(_0x57bdf7(),_0x16b843),()=>{const _0x3f908d=_0x49b81e();return null==_0x3f908d?(_0x57bdf7(),_0x2e9176([0x56,0x61,0x6c,0x69,0x64])):_0x2e9176(_0x396ced-_0x3f908d>(0x473dd597^_0x2476b6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e9176([0x74,0x68,0x65,0x6e])](_0x1e112b)[_0x2e9176([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e112b(_0x2e9176([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x803d09=0x6307bf17^_0x2476b6;function _0x57bdf7(){const _0x3922e1=_0x2e9176([0x6c,0x6c,0x63,0x74,0x2d])+_0x5909aa(_0x3c6d46(_0x59d1cd)),_0x3bd4a2=_0x76f658(_0x5909aa(window[_0x2e9176([0x4d,0x61,0x74,0x68])][_0x2e9176([0x63,0x65,0x69,0x6c])](_0x396ced/_0x803d09)));window[_0x2e9176([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e9176([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3922e1,_0x3bd4a2);}function _0x49b81e(){const _0x536f22=_0x2e9176([0x6c,0x6c,0x63,0x74,0x2d])+_0x5909aa(_0x3c6d46(_0x59d1cd)),_0xbe4cf0=window[_0x2e9176([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e9176([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x536f22);return _0xbe4cf0?window[_0x2e9176([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x76f658(_0xbe4cf0),0x10)*_0x803d09:null;}function _0x5c7c0b(_0x1322a8){return new window[(_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fbaf1,_0xcba9d2)=>{_0x1322a8[_0x2e9176([0x74,0x68,0x65,0x6e])](_0x1fbaf1,_0xcba9d2),window[_0x2e9176([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcba9d2,0x63308557^_0x2476b6);});}}_0x4bcbb3[_0x2e9176([0x6f,0x6e])](_0x2e9176([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55576b,_0x3f4a22)=>{if(_0x3f4a22[0x0]!=_0x59d1cd)return _0x1e112b(_0x2e9176([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f4a22[0x1]={..._0x3f4a22[0x1],[_0x2e9176([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x522c6f};},{[_0x2e9176([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e9176([0x68,0x69,0x67,0x68])}),_0x4bcbb3[_0x2e9176([0x6f,0x6e])](_0x2e9176([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c6c6f=>{_0x4ea19e(_0x3c6c6f[_0x2e9176([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a4cdc=!0x0,_0x255ed3(_0x3c6c6f[_0x2e9176([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e9176([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e9176([0x6c,0x6f,0x77])}),_0x431ddc[_0x2e9176([0x74,0x68,0x65,0x6e])](()=>{_0x4a4cdc||_0x1e112b(_0x2e9176([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb5fb5c(){return _0x4bcbb3[_0x2e9176([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e9176([0x76,0x69,0x65,0x77])][_0x2e9176([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e9176([0x61,0x75,0x74,0x6f]);}function _0x2221d1(){_0x4bcbb3[_0x2e9176([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e9176([0x76,0x69,0x65,0x77])][_0x2e9176([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e9176([0x61,0x75,0x74,0x6f]);}}function _0x30f8ee(_0x5f2512){const _0x5e228f=[new window[(_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403916=>setTimeout(_0x403916,0x63386f5b^_0x2476b6)),_0x431ddc[_0x2e9176([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f9cc8=>{let _0x4dcbdd=0x0;_0x4bcbb3[_0x2e9176([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e9176([0x6f,0x6e])](_0x2e9176([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e9d7d,_0x5ca31b)=>{_0x5ca31b[0x0][_0x2e9176([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4dcbdd++,_0x4dcbdd==(0x6331506f^_0x2476b6)&&(_0x1f9cc8(),_0x4e9d7d[_0x2e9176([0x6f,0x66,0x66])]());});}))];return window[_0x2e9176([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e9176([0x72,0x61,0x63,0x65])](_0x5e228f)[_0x2e9176([0x74,0x68,0x65,0x6e])](()=>_0x5f2512);}async function _0x281bb9(){await _0x431ddc,_0x4bcbb3[_0x2e9176([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e9176([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30a21b,_0x4bcbb3[_0x2e9176([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e9176([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30a21b,_0x4bcbb3[_0x2e9176([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e9176([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4be30e(){return _0x3b9dac(_0x2e9176([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52b116(_0x2e9176([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e9176([0x73,0x74,0x61,0x74,0x65])]==_0x2e9176([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x508df7(){return _0x3b9dac(_0x2e9176([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x23f951(){return _0x3b9dac(_0x2e9176([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c82b1(_0x5f44ba){const _0x3d3ea8=_0x3e5c36();_0x4bcbb3[_0x3d3ea8]=_0x2e9176([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f44ba,_0x5f44ba!=_0x2e9176([0x56,0x61,0x6c,0x69,0x64])&&_0x281bb9();}function _0x3e5c36(){const _0x5c6541=window[_0x2e9176([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e9176([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e9176([0x6e,0x6f,0x77])]())[_0x2e9176([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e9176([0x2e]),'');let _0x4bd199=_0x2e9176([0x45]);for(let _0x40e19b=0x0;_0x40e19b<_0x5c6541[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e19b+=0x2){let _0x3ca276=window[_0x2e9176([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c6541[_0x2e9176([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e19b,_0x40e19b+0x2));_0x3ca276>=_0x592219[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ca276-=_0x592219[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bd199+=_0x592219[_0x3ca276];}return _0x4bd199;}function _0x59c83a(){const _0x3dc22e=_0x3ed234[_0x2e9176([0x73,0x70,0x6c,0x69,0x74])](_0x2e9176([0x2e]));if(0x3!=_0x3dc22e[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ef1b6(_0x3dc22e[0x1]);function _0x4ef1b6(_0x280014){const _0x1ea0fb=_0xffc26e(_0x280014);return _0x1ea0fb&&_0x57c4ff()?_0x1ea0fb:null;function _0x57c4ff(){const _0x511173=_0x1ea0fb[_0x2e9176([0x6a,0x74,0x69])],_0x8bc252=window[_0x2e9176([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x511173[_0x2e9176([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x511173[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x512f84={..._0x1ea0fb,[_0x2e9176([0x6a,0x74,0x69])]:_0x511173[_0x2e9176([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x511173[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x512f84[_0x2e9176([0x76,0x63])],_0x3c6d46(_0x512f84)==_0x8bc252;}}}async function _0x54254d(){let _0x47a6df=!0x0;try{const _0x3c7595=_0x3ed234[_0x2e9176([0x73,0x70,0x6c,0x69,0x74])](_0x2e9176([0x2e])),[_0x43f1d6,_0x3ef0e9,_0x29c5c5]=_0x3c7595;return _0x403d1e(_0x43f1d6),await _0x3b29ac(_0x43f1d6,_0x3ef0e9,_0x29c5c5),_0x47a6df;}catch(_0x4ae7c1){return!0x1;}function _0x403d1e(_0x56ae9e){const _0x216c80=_0xffc26e(_0x56ae9e);_0x216c80&&_0x216c80[_0x2e9176([0x61,0x6c,0x67])]==_0x2e9176([0x45,0x53,0x32,0x35,0x36])||(_0x47a6df=!0x1);}async function _0x3b29ac(_0x171f41,_0x592135,_0xae4821){const _0x3f74fa=window[_0x2e9176([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e9176([0x66,0x72,0x6f,0x6d])](_0x5c9b88(_0xae4821),_0x373e30=>_0x373e30[_0x2e9176([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x371c6e=new window[(_0x2e9176([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e9176([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x171f41+_0x2e9176([0x2e])+_0x592135),_0x1be2c3=window[_0x2e9176([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e9176([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1be2c3)return;const _0x543086=await _0x1be2c3[_0x2e9176([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e9176([0x6a,0x77,0x6b]),_0x3ac408,{[_0x2e9176([0x6e,0x61,0x6d,0x65])]:_0x2e9176([0x45,0x43,0x44,0x53,0x41]),[_0x2e9176([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e9176([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e9176([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1be2c3[_0x2e9176([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e9176([0x6e,0x61,0x6d,0x65])]:_0x2e9176([0x45,0x43,0x44,0x53,0x41]),[_0x2e9176([0x68,0x61,0x73,0x68])]:{[_0x2e9176([0x6e,0x61,0x6d,0x65])]:_0x2e9176([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x543086,_0x3f74fa,_0x371c6e)||(_0x47a6df=!0x1);}}function _0xffc26e(_0x142b39){return _0x142b39[_0x2e9176([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e9176([0x65,0x79]))?JSON[_0x2e9176([0x70,0x61,0x72,0x73,0x65])](_0x5c9b88(_0x142b39)):null;}function _0x5c9b88(_0x29ea24){return window[_0x2e9176([0x61,0x74,0x6f,0x62])](_0x29ea24[_0x2e9176([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e9176([0x2b]))[_0x2e9176([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e9176([0x2f])));}function _0x3c6d46(_0x28641e){let _0x4d104b=0x1505;function _0x4b6dd6(_0x57d098){for(let _0x4b8706=0x0;_0x4b8706<_0x57d098[_0x2e9176([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b8706++){const _0x1fe93a=_0x57d098[_0x2e9176([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b8706);_0x4d104b=(_0x4d104b<<0x5)+_0x4d104b+_0x1fe93a,_0x4d104b&=_0x4d104b;}}function _0x356949(_0x5810a5){Array[_0x2e9176([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5810a5)?_0x5810a5[_0x2e9176([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x356949):_0x5810a5&&typeof _0x5810a5==_0x2e9176([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e9176([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5810a5)[_0x2e9176([0x73,0x6f,0x72,0x74])]()[_0x2e9176([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2576ee,_0x318070])=>{_0x4b6dd6(_0x2576ee),_0x356949(_0x318070);}):_0x4b6dd6(window[_0x2e9176([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5810a5));}return _0x356949(_0x28641e),_0x4d104b>>>0x0;}function _0x5909aa(_0x1b3782){return _0x1b3782[_0x2e9176([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e9176([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e9176([0x30]));}function _0x76f658(_0x21f984){return _0x21f984[_0x2e9176([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e9176([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e9176([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b9dac(_0x5bfb97){return _0x4bcbb3[_0x2e9176([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e9176([0x68,0x61,0x73])](_0x5bfb97);}function _0x52b116(_0x5b9f8a){return _0x4bcbb3[_0x2e9176([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e9176([0x67,0x65,0x74])](_0x5b9f8a);}function _0x30a21b(){}function _0x2e9176(_0x4105a3){return _0x4105a3['map'](_0x3aa70a=>String['fromCharCode'](_0x3aa70a))['join']('');}_0x2c82b1(await _0x5b97ae());}(this);}set['adapter'](_0x55f14d){if(this['_adapter'])throw new _0x2eced8('track-changes-adapter-already-set',this);this['_adapter']=_0x55f14d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33ab53=!0x1,toJSON:_0x1192da=!0x1}={}){const _0x322730=[];for(const _0x5572e7 of this['_suggestions']['values']())_0x33ab53&&!_0x5572e7['isInContent']||_0x322730['push'](_0x5572e7);return _0x1192da?_0x322730['map'](_0x4e5690=>_0x4e5690['toJSON']()):_0x322730;}['getSuggestion'](_0x406e9a){const _0x1fdb9c=this['_suggestions']['get'](_0x406e9a);if(!_0x1fdb9c)throw new _0x2eced8('track-changes-suggestion-not-found',this);return _0x1fdb9c;}['hasSuggestion'](_0x2e7ce7){return this['_suggestions']['has'](_0x2e7ce7);}['addSuggestionData'](_0x397e34){const {authorId:_0x370b60,id:_0x24eb1c,attributes:_0x5db79a}=_0x397e34,[_0x4c35ec,_0x2ab206]=_0x397e34['type']['split'](':'),_0x523c07=this['_suggestions']['get'](_0x24eb1c)||this['_createSuggestion'](_0x4c35ec,_0x2ab206,_0x24eb1c,_0x370b60,_0x5db79a);if(this['_addThreadToSuggestion'](_0x523c07),this['_checkSuggestionCorrectness'](_0x523c07,_0x4c35ec,_0x2ab206||null,_0x370b60),_0x523c07['createdAt']=_0x397e34['createdAt'],_0x523c07['_isDataLoaded']=!0x0,_0x5db79a&&_0x5db79a['@external']){const _0x4d3534=_0x5db79a['@external'],_0x27c0a4=this['_getExternalAuthor'](_0x4d3534['authorName']);_0x523c07['authoredAt']=_0x4d3534['createdAt'],_0x523c07['author']=_0x27c0a4,_0x523c07['isExternal']=!0x0;}else _0x523c07['authoredAt']=_0x397e34['createdAt'];switch(_0x397e34['data']&&(_0x523c07['data']=_0x397e34['data']),_0x397e34['attributes']&&(_0x523c07['attributes']=_0x397e34['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x523c07['_saved']=!0x0),this['_suggestionState']['get'](_0x523c07)){case'notReady':this['_suggestionState']['set'](_0x523c07,'dataReady');break;case'markerReady':_0x523c07['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x523c07])),this['_refreshSuggestionsChain'](new Set([_0x523c07])),this['_suggestionState']['set'](_0x523c07,'ready'),this['fire']('suggestionLoaded',_0x523c07)):this['_suggestionState']['set'](_0x523c07,'removed');}return _0x523c07;}['acceptSuggestion'](_0x431c9e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a268f of _0x431c9e['getAllAdjacentSuggestions']())_0x2a268f['accept']();});});}['discardSuggestion'](_0x3d61a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54ede3 of _0x3d61a5['getAllAdjacentSuggestions']())_0x54ede3['discard']();});});}['enableCommand'](_0x182431,_0x3331f7){const _0x54c887=this['editor']['commands']['get'](_0x182431);if(!_0x54c887)throw new _0x2eced8('track-changes-command-not-found',this,{'commandName':_0x182431});if(this['_enabledCommands']['has'](_0x54c887))throw new _0x2eced8('track-changes-enable-command-twice',this,{'commandName':_0x182431});this['_enabledCommands']['add'](_0x54c887),_0x3331f7&&_0x54c887['on']('execute',(_0x58ade2,_0x2cb05a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2cb05a['length']>0x0&&_0x2cb05a[_0x2cb05a['length']-0x1]&&_0x2cb05a[_0x2cb05a['length']-0x1]['forceDefaultExecution']?_0x2cb05a['pop']():(_0x58ade2['return']=_0x3331f7((..._0x11ee42)=>_0x54c887['execute'](..._0x11ee42,{'forceDefaultExecution':!0x0}),..._0x2cb05a),_0x58ade2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x444b7f){let _0x2070dc,_0x3b6215;const _0x4af42e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2070dc=_0x444b7f();}catch(_0x126de0){_0x3b6215=_0x126de0;}return _0x4af42e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3b6215&&_0x2eced8['rethrowUnexpectedError'](_0x3b6215,this),_0x2070dc;}['markInsertion'](_0x26347e,_0x218245=null,_0x67239a={}){if(_0x26347e['isCollapsed'])return null;const _0x10e6b3=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x67239a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x181b3b,meta:_0x53d976}of this['_findSuggestions'](_0x26347e,'insertion'))if(_0x53d976['isOwn']){if(!_0x53d976['isNextTo']){if(_0x53d976['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x181b3b,_0x67239a))continue;return _0x181b3b;}if(Xt(_0x181b3b,_0x67239a))return _0x181b3b;this['_breakSuggestionMarker'](_0x181b3b,_0x26347e['start'],_0x26347e['end']);break;}if(_0x218245==_0x181b3b['subType']&&Xt(_0x181b3b,_0x67239a)){const _0xf4c9ed=_0x181b3b['getFirstRange']();return _0xf4c9ed['start']['isEqual'](_0x26347e['end'])?this['_setSuggestionRange'](_0x181b3b,this['_model']['createRange'](_0x26347e['start'],_0xf4c9ed['end'])):this['_setSuggestionRange'](_0x181b3b,this['_model']['createRange'](_0xf4c9ed['start'],_0x26347e['end'])),_0x181b3b;}}const _0x4b56de=_0x4822d2(),_0x264434=_0x10e6b3['id'],_0x5d7354=_0x218245?'insertion:'+_0x218245:'insertion',_0xc1562e=this['_setSuggestionData']({'id':_0x4b56de,'type':_0x5d7354,'createdAt':new Date(),'authorId':_0x264434,'attributes':_0x67239a});return this['_addSuggestionMarker'](_0x5d7354,_0x4b56de,_0x264434,_0x26347e),_0xc1562e;}['markMultiRangeInsertion'](_0x50f244,_0x4204a4='multi',_0x2c5fa4={}){const _0x47e84b=this['editor']['plugins']['get']('Users')['me'],_0x27a841=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4204a4,'join');this['_trackingSessionId']&&(_0x2c5fa4['trackingSessionId']=this['_trackingSessionId']);for(const _0x145291 of this['getSuggestions']())if(_0x145291['author']['id']==_0x47e84b['id']&&'insertion'==_0x145291['type']&&_0x145291['subType']==_0x4204a4&&Xt(_0x145291,_0x2c5fa4)&&(_0x27a841(_0x145291['getRanges'](),_0x50f244)||_0x27a841(_0x50f244,_0x145291['getRanges']()))){for(const _0x10054d of _0x50f244)_0x145291['addRange'](_0x10054d);return _0x145291;}for(const {suggestion:_0x1974fc,meta:_0x56179a}of this['_findSuggestions'](_0x50f244,'insertion')){if(!_0x56179a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x56179a['containsRangeInObject'])continue;if(!Xt(_0x1974fc,_0x2c5fa4))continue;let _0x77be7a=!0x0;for(const _0x3f7083 of _0x1974fc['getRanges']())for(const _0x41ddbc of _0x50f244)if(!_0x3f7083['containsRange'](_0x41ddbc)){_0x77be7a=!0x1;break;}if(_0x77be7a)return _0x1974fc;}const _0x537545=_0x4822d2(),_0x4a6b35=_0x47e84b['id'],_0x1c75cb='insertion:'+_0x4204a4,_0xa96de7=this['_setSuggestionData']({'id':_0x537545,'type':_0x1c75cb,'createdAt':new Date(),'authorId':_0x4a6b35,'attributes':_0x2c5fa4});for(const _0x52dbd8 of _0x50f244)this['_addSuggestionMarker'](_0x1c75cb,_0x537545,_0x4a6b35,_0x52dbd8,o['getMultiRangeId']());return _0xa96de7;}['markInlineFormat'](_0x10fee0,_0x3d213b,_0x4d3c4d=null,_0x21a4f8={}){if(_0x4d3c4d=_0x4d3c4d||Kt(_0x3d213b),_0x10fee0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x21a4f8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37c8b6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d3c4d,'accept');return this['forceDefaultExecution'](()=>_0x37c8b6([_0x10fee0],_0x3d213b,_0x21a4f8)),null;}const _0x46815e=this['editor']['plugins']['get']('Users')['me'],_0xadff79=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x37e8fe,meta:_0x18780d}of this['_findSuggestions'](_0x10fee0,'insertion'))_0x18780d['isOwn']&&!_0x18780d['isInsideObject']&&_0xadff79['push'](..._0x37e8fe['getRanges']());}const _0x284fea=function(_0x1a1676,_0x2b23cd){const _0x2a6bd2=[];for(const _0x475033 of _0x2b23cd){const _0x45a608=_0x1a1676['getIntersection'](_0x475033);_0x45a608&&_0x2a6bd2['push'](_0x45a608);}return _0x2a6bd2;}(_0x10fee0,_0xadff79),_0x502619=function(_0x55201e,_0x3474b5){const _0x3c0ff2=[_0x55201e];for(const _0x3f195d of _0x3474b5){let _0xcc62c4=0x0;for(;_0xcc62c4<_0x3c0ff2['length'];){const _0x5827b3=_0x3c0ff2[_0xcc62c4]['getDifference'](_0x3f195d);_0x3c0ff2['splice'](_0xcc62c4,0x1,..._0x5827b3),_0xcc62c4+=_0x5827b3['length'];}}return _0x3c0ff2;}(_0x10fee0,_0xadff79);_0x284fea['length']&&this['_model']['change'](()=>{for(const _0x5c0a3e of _0x284fea){const _0xdfdc11=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d3c4d,'accept');this['forceDefaultExecution'](()=>_0xdfdc11([_0x5c0a3e],_0x3d213b,_0x21a4f8));}});for(const _0x3c5e89 of _0x502619){let _0x3c484d=null,_0x4f4339=_0x3c5e89['start'],_0x1acee1=_0x3c5e89['end'];for(const {suggestion:_0x4ccd87,meta:_0x14c571}of this['_findSuggestions'](_0x3c5e89,'formatInline')){if(!_0x14c571['isOwn'])continue;if(_0x4ccd87['subType']!=_0x4d3c4d)continue;if(!Xt(_0x4ccd87,_0x21a4f8))continue;const _0x523dc6=_0x4ccd87['getFirstRange']();if(_0x523dc6['containsRange'](_0x3c5e89,!0x0))return null;_0x4f4339=_0x4f4339['isBefore'](_0x523dc6['start'])?_0x4f4339:_0x523dc6['start'],_0x1acee1=_0x1acee1['isAfter'](_0x523dc6['end'])?_0x1acee1:_0x523dc6['end'],_0x3c484d?_0x523dc6['start']['isBefore'](_0x3c484d['getFirstRange']()['start'])?(_0x3c484d['removeMarkers'](),_0x3c484d=_0x4ccd87):_0x4ccd87['removeMarkers']():_0x3c484d=_0x4ccd87;}const _0x5b137d=this['_model']['createRange'](_0x4f4339,_0x1acee1);if(_0x3c484d)this['_setSuggestionRange'](_0x3c484d,_0x5b137d);else{const _0x324aae=_0x4822d2(),_0x14d085=_0x46815e['id'];this['_setSuggestionData']({'id':_0x324aae,'type':'formatInline:'+_0x4d3c4d,'data':_0x3d213b,'createdAt':new Date(),'authorId':_0x14d085,'attributes':_0x21a4f8}),this['_addSuggestionMarker']('formatInline:'+_0x4d3c4d,_0x324aae,_0x14d085,_0x5b137d);}}return null;}['markBlockFormat'](_0x182c4,_0xd52e09,_0x37b5a6=[],_0x1bdaab=null,_0x1c83c1={}){_0xd52e09['formatGroupId']||(_0xd52e09['formatGroupId']=_0xd52e09['commandName']),_0xd52e09['multipleBlocks']=_0x182c4['is']('range'),_0x1bdaab=_0x1bdaab||Kt(_0xd52e09);const _0x854b1a=_0x37b5a6['map'](_0x46aa9a=>zt(_0x46aa9a,this['_model'])),_0x4593b1=_0x182c4['is']('range')?_0x182c4:zt(_0x182c4,this['_model']);if(this['_trackingSessionId']&&(_0x1c83c1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x51d4cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bdaab,'accept');return this['forceDefaultExecution'](()=>_0x51d4cb([_0x4593b1],_0xd52e09,_0x1c83c1)),null;}_0x854b1a['push'](_0x4593b1);let _0x5c7718=!0x0;for(const _0x1b5d47 of _0x854b1a)if(!this['_rangeIsInLocalUserInsertion'](_0x1b5d47)){_0x5c7718=!0x1;break;}if(_0x5c7718&&'always'!==this['_trackFormatChanges']){const _0xad20e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1bdaab,'accept');return this['forceDefaultExecution'](()=>_0xad20e5([_0x4593b1],_0xd52e09,_0x1c83c1)),null;}let _0x3a4657=null,_0x2c20eb=_0x4593b1['start'],_0x4049c8=_0x4593b1['end'];for(const {suggestion:_0x3f93d8,meta:_0x48651e}of this['_findSuggestions'](_0x4593b1,'formatBlock')){if(!_0x48651e['isOwn'])continue;if(_0x48651e['isNextTo']||_0x48651e['containsRangeInObject']||_0x48651e['isInsideObject'])continue;if(_0x3f93d8['data']['formatGroupId']!=_0xd52e09['formatGroupId'])continue;if(!Xt(_0x3f93d8,_0x1c83c1))continue;const _0x451f27=_0x3f93d8['getFirstRange']();if(_0x3f93d8['subType']==_0x1bdaab){if(_0x451f27['containsRange'](_0x4593b1,!0x0))return null;_0x2c20eb=_0x2c20eb['isBefore'](_0x451f27['start'])?_0x2c20eb:_0x451f27['start'],_0x4049c8=_0x4049c8['isAfter'](_0x451f27['end'])?_0x4049c8:_0x451f27['end'],_0x3a4657?_0x451f27['start']['isBefore'](_0x3a4657['getFirstRange']()['start'])?(_0x3a4657['removeMarkers'](),_0x3a4657=_0x3f93d8):_0x3f93d8['removeMarkers']():_0x3a4657=_0x3f93d8;}else{const _0x53fa27=_0x4593b1['getIntersection'](_0x451f27);this['_cutOutSuggestionMarker'](_0x3f93d8,_0x53fa27);}}const _0x273004=this['editor']['plugins']['get']('Users')['me'],_0x82331c=_0x4822d2(),_0x4b200b=_0x273004['id'];if(_0x3a4657)return this['_setSuggestionRange'](_0x3a4657,this['_model']['createRange'](_0x2c20eb,_0x4049c8)),_0x3a4657;{const _0x48fee4=this['_setSuggestionData']({'id':_0x82331c,'type':'formatBlock:'+_0x1bdaab,'data':_0xd52e09,'createdAt':new Date(),'authorId':_0x4b200b,'attributes':_0x1c83c1});return this['_addSuggestionMarker']('formatBlock:'+_0x1bdaab,_0x82331c,_0x4b200b,this['_model']['createRange'](_0x2c20eb,_0x4049c8)),_0x48fee4;}}['markMultiRangeBlockFormat'](_0x5f27ac,_0x21b9f9,_0x1f898c=[],_0xa53af7=null,_0x350232={}){_0x21b9f9['formatGroupId']||(_0x21b9f9['formatGroupId']=_0x21b9f9['commandName']);const _0x4a3633=_0x5f27ac[0x0];_0x21b9f9['multipleBlocks']=_0x4a3633['is']('range'),_0xa53af7=_0xa53af7||Kt(_0x21b9f9);const _0x5f17a3=_0x1f898c['map'](_0x264b11=>zt(_0x264b11,this['_model'])),_0x596da6=_0x4a3633['is']('range')?_0x5f27ac:_0x5f27ac['map'](_0x2536ee=>zt(_0x2536ee,this['_model']));if(this['_trackingSessionId']&&(_0x350232['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2f5654=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa53af7,'accept');return this['forceDefaultExecution'](()=>_0x2f5654(_0x596da6,_0x21b9f9,_0x350232)),null;}_0x5f17a3['push'](..._0x596da6);let _0x6cb6ac=!0x0;for(const _0x21ce4a of _0x5f17a3)if(!this['_rangeIsInLocalUserInsertion'](_0x21ce4a)){_0x6cb6ac=!0x1;break;}if(_0x6cb6ac&&'always'!==this['_trackFormatChanges']){const _0x1a7cb5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa53af7,'accept');return this['forceDefaultExecution'](()=>_0x1a7cb5(_0x596da6,_0x21b9f9,_0x350232)),null;}const _0x2a953b=this['editor']['plugins']['get']('Users')['me'];for(const _0x471cef of this['getSuggestions']()){if(_0x471cef['author']['id']!=_0x2a953b['id'])continue;if('formatBlock'!=_0x471cef['type']||_0x471cef['data']['formatGroupId']!=_0x21b9f9['formatGroupId'])continue;if(!Xt(_0x471cef,_0x350232))continue;const _0x331cac=_0x471cef['subType']==_0xa53af7;for(let _0xc0a543=0x0;_0xc0a543<_0x596da6['length'];_0xc0a543++){const _0x4cbabb=_0x596da6[_0xc0a543];for(const _0x137b52 of _0x471cef['getMarkers']()){const _0x2dfd65=_0x137b52['getRange']();if(_0x4cbabb['isEqual'](_0x2dfd65)){_0x331cac?(_0x596da6['splice'](_0xc0a543,0x1),_0xc0a543--):_0x471cef['removeMarker'](_0x137b52['name']);break;}}}}if(0x0==_0x596da6['length'])return null;const _0x1546f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa53af7,'join');for(const _0x38d32d of this['getSuggestions']())if(_0x38d32d['author']['id']==_0x2a953b['id']&&'formatBlock'==_0x38d32d['type']&&_0x38d32d['data']['formatGroupId']==_0x21b9f9['formatGroupId']&&_0x38d32d['subType']==_0xa53af7&&Xt(_0x38d32d,_0x350232)&&(_0x1546f2(_0x38d32d['getRanges'](),_0x596da6)||_0x1546f2(_0x596da6,_0x38d32d['getRanges']()))){for(const _0x11faf0 of _0x596da6)_0x38d32d['addRange'](_0x11faf0);return _0x38d32d;}const _0x228e9e=_0x4822d2(),_0x50af0e=_0x2a953b['id'],_0x41f967='formatBlock:'+_0xa53af7,_0x5348ec=this['_setSuggestionData']({'id':_0x228e9e,'type':_0x41f967,'data':_0x21b9f9,'createdAt':new Date(),'authorId':_0x50af0e,'attributes':_0x350232});for(const _0x67b105 of _0x596da6)this['_addSuggestionMarker'](_0x41f967,_0x228e9e,_0x50af0e,_0x67b105,o['getMultiRangeId']());return _0x5348ec;}['markDeletion'](_0x3bf72e,_0x5cd682=null,_0x3ebcdd={}){if(_0x3bf72e['isCollapsed'])return null;const _0x39e984=this['editor']['plugins']['get']('Users')['me'],_0x2101c3=new _0x5818a9(_0x3bf72e['start'],_0x3bf72e['end']);this['_trackingSessionId']&&(_0x3ebcdd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x8c1c98,meta:_0x27fcc9}of this['_findSuggestions'](_0x2101c3,'insertion'))if(_0x27fcc9['isOwn']&&!_0x27fcc9['isNextTo']){if(_0x8c1c98['isMultiRange']){const _0x307852=_0x8c1c98['getRanges']()['filter'](_0x4bf9c8=>'$graveyard'!=_0x4bf9c8['root']['rootName']);_0x307852['every'](_0x2d3dae=>_0x2101c3['containsRange'](_0x2d3dae,!0x0))&&_0x8c1c98['discard']();if(_0x307852['some'](_0x3acd28=>_0x3acd28['containsRange'](_0x2101c3,!0x0))){const _0x276fc5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cd682,'accept');return this['forceDefaultExecution'](()=>_0x276fc5([_0x2101c3],null,_0x3ebcdd)),null;}}else{const _0x109678=_0x2101c3['getIntersection'](_0x8c1c98['getFirstRange']());null!==_0x109678&&_0x8c1c98['_onDiscard']([_0x109678],null,_0x3ebcdd);}}if(_0x2101c3['detach'](),_0x2101c3['isCollapsed']||'$graveyard'==_0x2101c3['root']['rootName'])return null;let _0x2d6813=null,_0x4ff633=_0x2101c3['start'],_0x58bfae=_0x2101c3['end'];const _0x34d26b=this['_findSuggestions'](_0x2101c3,'deletion');for(const {suggestion:_0x1266fb,meta:_0x547ff1}of _0x34d26b){const _0x3ed7db=this['_model']['createRange'](_0x4ff633,_0x58bfae);if(_0x547ff1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x547ff1['containsRangeInObject']&&!_0x547ff1['isInsideObject'])){if(_0x1266fb['isMultiRange']){if(!Xt(_0x1266fb,_0x3ebcdd))continue;let _0x11de3b=!0x0;for(const _0x52ddb9 of _0x1266fb['getRanges']()){if(_0x52ddb9['containsRange'](_0x3ed7db,!0x0))return _0x1266fb;_0x3ed7db['containsRange'](_0x52ddb9)||(_0x11de3b=!0x1);}_0x11de3b&&_0x1266fb['discard']();}else{const _0x49f5d4=_0x1266fb['getFirstRange']();if(_0x49f5d4['containsRange'](_0x3ed7db,!0x0))return _0x1266fb;if(!Xt(_0x1266fb,_0x3ebcdd)){_0x3ed7db['containsRange'](_0x49f5d4)?_0x1266fb['removeMarkers']():_0x49f5d4['containsPosition'](_0x4ff633)?_0x4ff633=_0x49f5d4['end']:_0x49f5d4['containsPosition'](_0x58bfae)&&(_0x58bfae=_0x49f5d4['start']);continue;}_0x4ff633=_0x4ff633['isBefore'](_0x49f5d4['start'])?_0x4ff633:_0x49f5d4['start'],_0x58bfae=_0x58bfae['isAfter'](_0x49f5d4['end'])?_0x58bfae:_0x49f5d4['end'],_0x3ebcdd=Object['assign']({},_0x1266fb['attributes']),_0x2d6813?_0x49f5d4['start']['isBefore'](_0x2d6813['getFirstRange']()['start'])?(_0x2d6813['removeMarkers'](),_0x2d6813=_0x1266fb):_0x1266fb['removeMarkers']():_0x2d6813=_0x1266fb;}}}if(_0x2d6813)return this['_setSuggestionRange'](_0x2d6813,this['_model']['createRange'](_0x4ff633,_0x58bfae)),_0x2d6813;{const _0x188dfe=_0x4822d2(),_0x543619=this['_model']['createRange'](_0x4ff633,_0x58bfae),_0x371e05=_0x39e984['id'],_0x5a6bed=_0x5cd682?'deletion:'+_0x5cd682:'deletion',_0x5a1fda=this['_setSuggestionData']({'id':_0x188dfe,'type':_0x5a6bed,'createdAt':new Date(),'authorId':_0x371e05,'attributes':_0x3ebcdd});return this['_addSuggestionMarker'](_0x5a6bed,_0x188dfe,_0x371e05,_0x543619),_0x5a1fda;}}['markMultiRangeDeletion'](_0x2b5de9,_0x508c93='multi',_0x128167={}){const _0x1438eb=this['editor']['plugins']['get']('Users')['me'],_0x5ac639=_0x2b5de9['map'](_0x9e8b0e=>new _0x5818a9(_0x9e8b0e['start'],_0x9e8b0e['end'])),_0x161cf9=new Set();this['_trackingSessionId']&&(_0x128167['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x254bb2,meta:_0x57b818}of this['_findSuggestions'](_0x5ac639,'insertion'))_0x57b818['isOwn']&&!_0x57b818['isNextTo']&&_0x161cf9['add'](_0x254bb2);for(const _0xa8e0d2 of _0x161cf9)if(_0xa8e0d2['isMultiRange']){const _0x2d3bd2=_0xa8e0d2['getRanges']();(!_0xa8e0d2['attributes']||!_0xa8e0d2['attributes']['skipNestingCheck'])&&(_0x2d3bd2['every'](_0x465cb5=>_0x5ac639['some'](_0x4f3a5c=>_0x4f3a5c['containsRange'](_0x465cb5,!0x0)))&&_0xa8e0d2['discard']());if(_0x5ac639['every'](_0x5b578e=>_0x2d3bd2['some'](_0x3ae061=>_0x3ae061['containsRange'](_0x5b578e,!0x0)))){const _0x124aef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x508c93,'accept');return this['forceDefaultExecution'](()=>_0x124aef(_0x2b5de9,null,_0x128167)),null;}}else{const _0x29b5a2=_0xa8e0d2['getFirstRange']();_0x5ac639['some'](_0x35f3af=>_0x35f3af['containsRange'](_0x29b5a2,!0x0))&&_0xa8e0d2['discard']();if(_0x5ac639['every'](_0x33cf3a=>_0x29b5a2['containsRange'](_0x33cf3a,!0x0))){const _0x4e3024=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x508c93,'accept');return this['forceDefaultExecution'](()=>_0x4e3024(_0x5ac639,null,_0x128167)),null;}}const _0x110f6f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x508c93,'join');let _0x376ba9=null;for(const _0x175c1a of this['getSuggestions']())if(_0x175c1a['author']['id']==_0x1438eb['id']&&_0x175c1a['isInContent']&&'deletion'==_0x175c1a['type']&&_0x175c1a['subType']==_0x508c93&&Xt(_0x175c1a,_0x128167)&&(_0x110f6f(_0x175c1a['getRanges'](),_0x5ac639)||_0x110f6f(_0x5ac639,_0x175c1a['getRanges']()))){if(_0x376ba9){if(_0x175c1a['commentThread']&&_0x175c1a['commentThread']['length'])continue;for(const _0x570777 of _0x175c1a['getRanges']())_0x376ba9['isIntersectingWithRange'](_0x570777)||_0x376ba9['addRange'](_0x570777);_0x175c1a['removeMarkers']();}else{_0x376ba9=_0x175c1a;for(const _0x4e11e9 of _0x5ac639)_0x175c1a['isIntersectingWithRange'](_0x4e11e9)||_0x175c1a['addRange'](_0x4e11e9);}}if(_0x376ba9)return _0x376ba9;_0x161cf9['clear']();for(const {suggestion:_0x1af571,meta:_0x50881f}of this['_findSuggestions'](_0x5ac639,'deletion'))_0x50881f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50881f['containsRangeInObject']&&!_0x50881f['isInsideObject'])&&Xt(_0x1af571,_0x128167)&&_0x161cf9['add'](_0x1af571);for(const _0x43af82 of _0x161cf9){const _0x1a4147=_0x43af82['getRanges']();if(!_0x128167||!_0x128167['skipNestingCheck']){if(_0x5ac639['every'](_0x22e887=>_0x1a4147['some'](_0x3e3020=>_0x3e3020['containsRange'](_0x22e887,!0x0))))return _0x43af82;}(!_0x43af82['attributes']||!_0x43af82['attributes']['skipNestingCheck'])&&(_0x1a4147['every'](_0x139238=>_0x5ac639['some'](_0x529e46=>_0x529e46['containsRange'](_0x139238,!0x0)))&&_0x43af82['discard']());}const _0x243cfb=_0x4822d2(),_0x2b3ab9=_0x1438eb['id'],_0x29eb5d='deletion:'+_0x508c93,_0x2b2316=this['_setSuggestionData']({'id':_0x243cfb,'type':_0x29eb5d,'createdAt':new Date(),'authorId':_0x2b3ab9,'attributes':_0x128167});for(const _0xfe2fd5 of _0x5ac639)_0xfe2fd5['detach'](),_0xfe2fd5['isCollapsed']||'$graveyard'==_0xfe2fd5['root']['rootName']||this['_addSuggestionMarker'](_0x29eb5d,_0x243cfb,_0x2b3ab9,_0xfe2fd5,o['getMultiRangeId']());return _0x2b2316;}['markAttributeChange'](_0x494787,_0x136606,_0x2509f8,_0x1c1e19,_0x4c50aa){if(_0x494787['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3bbc41=this['editor']['plugins']['get']('Users')['me']['id'],_0x27ac40=Array['from'](this['_suggestions']['values']())['filter'](_0x87a4af=>'attribute'==_0x87a4af['type']&&_0x87a4af['data']['key']==_0x136606&&_0x87a4af['isIntersectingWithRange'](_0x494787));if(this['_trackingSessionId']&&(_0x4c50aa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d78f5=this['_findSuggestions'](_0x494787,'insertion')['filter'](({meta:_0x22ac29})=>_0x22ac29['isOwn']&&!_0x22ac29['isInsideObject']&&!_0x22ac29['isNextTo'])['map'](({suggestion:_0x54a2f9})=>_0x54a2f9);_0x27ac40['unshift'](..._0x3d78f5);}const _0x509c03=new Map([[_0x494787,_0x2509f8]]);for(const _0x2c4477 of _0x27ac40){const _0x50f1e2='attribute'==_0x2c4477['type']?_0x2c4477['data']['oldValue']:void 0x0,_0x2441fe=_0x2c4477['getFirstRange'](),_0x456ce0=Array['from'](_0x509c03['keys']())['find'](_0x37973e=>_0x37973e['isIntersecting'](_0x2441fe));if(!_0x456ce0)continue;const _0x48c816=_0x456ce0['getDifference'](_0x2441fe);this['_isBlockAttribute'](_0x136606)&&'insertion'==_0x2c4477['type']&&0x0!=_0x48c816['length']||(_0x509c03['delete'](_0x456ce0),_0x48c816['forEach'](_0x35fc8a=>{_0x509c03['set'](_0x35fc8a,_0x2509f8);}),'insertion'!=_0x2c4477['type']&&_0x50f1e2!=_0x1c1e19&&_0x509c03['set'](_0x456ce0['getIntersection'](_0x2441fe),_0x50f1e2));}const _0x544604=[];for(const [_0xcaab88,_0x4bf470]of _0x509c03){const _0xba32f0=_0x4822d2(),_0x544a10={'key':_0x136606,'oldValue':_0x4bf470,'newValue':_0x1c1e19};_0x136606['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':_0x136606});const _0x26ca38=('attribute:'+(_0x136606+'|'+Kt({'newValue':_0x1c1e19})))['substring'](0x0,0x3c),_0x34b28b=this['_setSuggestionData']({'id':_0xba32f0,'type':_0x26ca38,'data':_0x544a10,'createdAt':new Date(),'authorId':_0x3bbc41,'attributes':_0x4c50aa});_0x544604['push'](_0x34b28b),this['_addSuggestionMarker'](_0x26ca38,_0xba32f0,_0x3bbc41,_0xcaab88);}return _0x544604;}['enableDefaultAttributesIntegration'](_0x4c14c3){this['enableCommand'](_0x4c14c3,(_0x330f41,..._0x55aceb)=>{this['_recordAttributeChanges'](()=>{_0x330f41(..._0x55aceb);});});}['registerBlockAttribute'](_0x7cae40){this['_blockAttributeKeys']['add'](_0x7cae40);}['registerInlineAttribute'](_0x4c4f4a){this['_inlineAttributeKeys']['add'](_0x4c4f4a);}['startTrackingSession'](_0x3b881a){return this['_trackingSessionId']=void 0x0!==_0x3b881a?_0x3b881a:_0x4822d2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2532c3){return'attribute'==_0x2532c3['type']?_0x2532c3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x415d9a,_0x583acf){const _0x4c7339=_0x415d9a['getFirstMarker']();this['_model']['change'](_0x33bd65=>{_0x33bd65['updateMarker'](_0x4c7339,{'range':_0x583acf});});}['_addThreadToSuggestion'](_0x426528){const _0xe14775=_0x426528['id'],_0xef9520=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xe14775)||this['_commentsRepository']['addCommentThread']({'channelId':_0xef9520,'threadId':_0xe14775,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x592669=this['_commentsRepository']['getCommentThread'](_0xe14775);_0x592669['unbind']('isRemovable'),_0x592669['isRemovable']=!0x1,_0x426528['commentThread']=_0x592669;}['_checkSuggestionCorrectness'](_0x46d8e8,_0xff28f,_0x5ec15b,_0x211e98){if(_0x46d8e8['type']!=_0xff28f||_0x46d8e8['subType']!=_0x5ec15b||_0x46d8e8['creator']['id']!=_0x211e98)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2eced8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x31c992,_0x2255b4){const _0x32536e=_0x31c992['getFirstRange']();if(_0x2255b4['isEqual'](_0x32536e))_0x31c992['removeMarkers']();else{if(_0x32536e['containsRange'](_0x2255b4)){const _0x22d80d=this['_model']['createPositionAt'](_0x2255b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31c992,this['_model']['createRange'](_0x32536e['start'],_0x22d80d));const _0x2f3652=_0x4822d2(),_0x52ed25=_0x31c992['creator']['id'],_0x5fe77a=_0x31c992['type']+':'+_0x31c992['subType'];this['_setSuggestionData']({'id':_0x2f3652,'type':_0x5fe77a,'createdAt':new Date(),'authorId':_0x52ed25,'data':_0x31c992['data'],'attributes':_0x31c992['attributes']});const _0x429816=this['_model']['createPositionAt'](_0x2255b4['end']['parent'],'after'),_0x3cf236=this['_model']['createRange'](_0x429816,_0x32536e['end']);this['_addSuggestionMarker'](_0x5fe77a,_0x2f3652,_0x52ed25,_0x3cf236);}else{if(_0x32536e['containsPosition'](_0x2255b4['start'])){const _0x59e4c5=this['_model']['createPositionAt'](_0x2255b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31c992,this['_model']['createRange'](_0x32536e['start'],_0x59e4c5));}else{const _0x362f81=this['_model']['createPositionAt'](_0x2255b4['end']['parent'],'after');this['_setSuggestionRange'](_0x31c992,this['_model']['createRange'](_0x362f81,_0x32536e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x31d7dd){for(const {suggestion:_0x46bed2,meta:_0x245018}of this['_findSuggestions'](_0x31d7dd,'insertion')){if(!_0x245018['isOwn'])continue;const _0x38a3cb=_0x46bed2['getRanges']();for(const _0x4a374a of _0x38a3cb)if(!_0x31d7dd['getDifference'](_0x4a374a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x8810ce){const _0x28d685=this['editor']['plugins']['get']('Users')['getUser'](_0x8810ce);if(!_0x28d685)throw new _0x2eced8('track-changes-user-not-found',this);return _0x28d685;}['_getExternalAuthor'](_0x168c9a){const _0x493186=this['editor']['plugins']['get']('Users'),_0x4d2361=_0x39e88f('external:'+_0x168c9a),_0x2af97c=_0x493186['getUser'](_0x4d2361);return _0x2af97c||_0x493186['addUser']({'id':_0x4d2361,'name':_0x168c9a});}['_createSuggestion'](_0x56e244,_0x4915c5,_0x410cdb,_0xbadd62,_0x34c7ae){const _0x1824a5=this['_getAuthorFromId'](_0xbadd62),_0x558d86=this['_suggestionFactory']['buildSuggestion'](_0x56e244,_0x4915c5,_0x410cdb,_0x1824a5,_0x34c7ae,_0x2d2666=>{this['_updateSuggestionData'](_0x410cdb,{'attributes':_0x2d2666});const _0x18e7b4=this['getSuggestion'](_0x410cdb);this['_joinWithAdjacentSuggestions'](new Set([_0x18e7b4])),this['_refreshSuggestionsChain'](new Set([_0x18e7b4]));});return this['listenTo'](_0x558d86,'accept',()=>{this['_updateSuggestionData'](_0x410cdb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x558d86,'discard',()=>{this['_updateSuggestionData'](_0x410cdb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x410cdb,_0x558d86),this['_suggestionState']['set'](_0x558d86,'notReady'),_0x558d86;}['_splitMarkerName'](_0x4bf9fe){const _0x19b08f=_0x4bf9fe['split'](':');return{'group':_0x19b08f[0x0],'type':_0x19b08f[0x1],'subType':_0x19b08f['length']>=0x5?_0x19b08f[0x2]:null,'id':_0x19b08f['length']<0x5?_0x19b08f[0x2]:_0x19b08f[0x3],'authorId':_0x19b08f['length']<0x5?_0x19b08f[0x3]:_0x19b08f[0x4],'markerCount':0x6==_0x19b08f['length']?_0x19b08f[0x5]:null};}['_breakSuggestionMarker'](_0x33dffb,_0x4503e5,_0x403c90){const _0x2372ca=_0x33dffb['getFirstRange'](),_0x38e6fe=_0x2372ca['start'],_0x16677f=_0x2372ca['end'];this['_setSuggestionRange'](_0x33dffb,this['_model']['createRange'](_0x38e6fe,_0x4503e5));const _0x2d376b=_0x4822d2(),_0xe18f16=_0x33dffb['creator']['id'],_0x43cc87=_0x33dffb['type']+(_0x33dffb['subType']?':'+_0x33dffb['subType']:'');this['_setSuggestionData']({'id':_0x2d376b,'type':_0x43cc87,'createdAt':new Date(),'authorId':_0xe18f16,'originalSuggestionId':_0x33dffb['id'],'attributes':_0x33dffb['attributes'],'data':_0x33dffb['data']});const _0x207d35=this['_getAttributeKey'](_0x33dffb);('formatBlock'==_0x33dffb['type']||_0x207d35&&this['_isBlockAttribute'](_0x207d35))&&(_0x403c90=this['_model']['createPositionBefore'](_0x403c90['parent'])),this['_addSuggestionMarker'](_0x43cc87,_0x2d376b,_0xe18f16,this['_model']['createRange'](_0x403c90,_0x16677f));}['_findSuggestions'](_0x3c1549,_0x2c5130=null){const _0x510003=[],_0x119806=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c1549)||(_0x3c1549=[_0x3c1549]);for(const _0x22fe72 of this['getSuggestions']()){if(!_0x22fe72['isInContent'])continue;if(_0x2c5130&&_0x22fe72['type']!=_0x2c5130)continue;let _0x1dc0c8=!0x1;for(const _0x141fbe of _0x22fe72['getRanges']()){for(const _0xbaae5e of _0x3c1549){const _0x1aff66=_0xbaae5e['start']['isEqual'](_0x141fbe['end'])||_0xbaae5e['end']['isEqual'](_0x141fbe['start']);if(_0x1aff66||_0xbaae5e['getIntersection'](_0x141fbe)){const _0x185402=_0xbaae5e['containsRange'](_0x141fbe)&&Gt(this['_model']['schema'],_0x141fbe['start'],_0xbaae5e),_0x354d44=_0x141fbe['containsRange'](_0xbaae5e)&&Gt(this['_model']['schema'],_0xbaae5e['start'],_0x141fbe);_0x510003['push']({'suggestion':_0x22fe72,'meta':{'isOwn':_0x119806==_0x22fe72['author'],'isNextTo':_0x1aff66,'isInsideObject':_0x185402,'containsRangeInObject':_0x354d44}}),_0x1dc0c8=!0x0;break;}}if(_0x1dc0c8)break;}}return _0x510003;}['_addSuggestionMarker'](_0x327c59,_0x58df68,_0x31a4d1,_0x30b896,_0x36c2c7){this['_model']['change'](_0x4d3be2=>{let _0x2b7a72='suggestion:'+_0x327c59+':'+_0x58df68+':'+_0x31a4d1;_0x36c2c7&&(_0x2b7a72=_0x2b7a72+':'+_0x36c2c7),_0x4d3be2['addMarker'](_0x2b7a72,{'range':_0x30b896,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1004fc){const _0x2c29d8=_0x1004fc['previous'],_0x197904=_0x1004fc['next'];_0x1004fc['previous']=null,_0x1004fc['next']=null,null!=_0x2c29d8&&_0x2c29d8['next']==_0x1004fc&&(_0x2c29d8['next']=_0x197904),null!=_0x197904&&_0x197904['previous']==_0x1004fc&&(_0x197904['previous']=_0x2c29d8),'ready'==this['_suggestionState']['get'](_0x1004fc)&&(this['_suggestionState']['set'](_0x1004fc,'removed'),this['fire']('suggestionUnloaded',_0x1004fc,_0x2c29d8,_0x197904));}['_setSuggestionData'](_0x3dc6f6){const _0x4139bb=_0x3dc6f6['id'],_0x2e136f=this['addSuggestionData'](_0x3dc6f6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x498477=this['editor']['plugins']['get']('PendingActions'),_0x418fe5=_0x2e136f['hasComments'],_0x3e6f5b=_0x2e136f['subType']?_0x2e136f['type']+':'+_0x2e136f['subType']:_0x2e136f['type'],_0x3a8cb0=this['editor']['locale'],_0x3ae063=_0x498477['add'](c(_0x3a8cb0,'PENDING_ACTION_SUGGESTION')),_0x5906a3={'id':_0x4139bb,'type':_0x3e6f5b,'hasComments':_0x418fe5,'data':_0x3dc6f6['data']||null,'originalSuggestionId':_0x3dc6f6['originalSuggestionId']||null,'attributes':_0x2e136f['attributes']};this['_adapter']['addSuggestion'](_0x5906a3)['then'](_0x152d00=>{_0x2e136f['_saved']=!0x0,_0x498477['remove'](_0x3ae063),_0x152d00&&_0x152d00['createdAt']&&(this['_suggestions']['get'](_0x4139bb)['createdAt']=_0x152d00['createdAt']);})['catch'](_0x3c2f60=>{throw _0x3773ca('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e136f['discard']();}),_0x2e136f['stopListening'](),this['_suggestions']['delete'](_0x2e136f['id']),this['_suggestionState']['delete'](_0x2e136f),_0x3c2f60;});}return _0x2e136f;}['_isBlockAttribute'](_0x4b2b16){return this['_blockAttributeKeys']['has'](_0x4b2b16);}['_updateSuggestionData'](_0x1c1ec5,_0x50f9bc){const _0x4a065c=this['editor']['plugins']['get']('PendingActions'),_0x55a4a7=this['getSuggestion'](_0x1c1ec5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x55a4a7['_saved']){const _0x128173=_0x4a065c['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1c1ec5,_0x50f9bc)['then'](()=>{_0x4a065c['remove'](_0x128173);});}else _0x55a4a7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1c1ec5,_0x50f9bc);});}}['_getSuggestionData'](_0xbbbda8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2eced8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xbbbda8);}['_handleNewSuggestionMarker'](_0x3064b0){const {id:_0x3ee610,type:_0x4a63ba,subType:_0x543120,authorId:_0x5be2cd}=this['_splitMarkerName'](_0x3064b0),_0x4ea1b2=this['_suggestions']['get'](_0x3ee610)||this['_createSuggestion'](_0x4a63ba,_0x543120,_0x3ee610,_0x5be2cd,{});switch(this['_checkSuggestionCorrectness'](_0x4ea1b2,_0x4a63ba,_0x543120,_0x5be2cd),this['_suggestionState']['get'](_0x4ea1b2)){case'notReady':this['_getSuggestionData'](_0x3ee610)['then'](_0x3e4167=>{let _0x3a902c=Promise['resolve']();_0x3e4167['hasComments']&&(_0x3a902c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ee610})),_0x3a902c['then'](()=>{this['addSuggestionData'](_0x3e4167)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ea1b2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ee610,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ea1b2,'ready'),this['fire']('suggestionLoaded',_0x4ea1b2);break;case'ready':this['fire']('suggestionChanged',_0x4ea1b2);}return _0x4ea1b2['addMarkerName'](_0x3064b0),_0x4ea1b2;}['_refreshSuggestionsChain'](_0x371fda){const _0x49b731=Array['from'](_0x371fda),_0x4958bf=_0x49b731['filter'](_0x170707=>'attribute'==_0x170707['type']);this['_refreshAttributeSuggestionsChain'](_0x4958bf);const _0x5de355=_0x49b731['filter'](_0x4b51d7=>!_0x4b51d7['isMultiRange']&&'attribute'!=_0x4b51d7['type']),_0x4c18b4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f8af2=>!_0x3f8af2['isMultiRange']&&'attribute'!=_0x3f8af2['type']),_0x5e617e=_0x4c18b4['filter'](_0x387deb=>!_0x371fda['has'](_0x387deb)),_0x3151e7=new Map(_0x4c18b4['map'](_0x53dc4f=>[_0x53dc4f,this['_suggestionFactory']['getSuggestionCallback'](_0x53dc4f['type'],_0x53dc4f['subType'],'chain')])),_0x4dc62c=new Map(_0x4c18b4['map'](_0xaaf631=>[_0xaaf631,_0xaaf631['getFirstRange']()])),_0x29aa18=new Set(),_0x48e5c0=new Set();for(let _0x32e955=0x0;_0x32e955<_0x5de355['length'];_0x32e955++)_0x3ce148(_0x5de355[_0x32e955],_0x5de355,_0x32e955+0x1);for(let _0x32b90a=0x0;_0x32b90a<_0x5de355['length'];_0x32b90a++)_0x3ce148(_0x5de355[_0x32b90a],_0x5e617e,0x0);const _0x597df5=new Set();for(let _0x1a951e=0x0;_0x1a951e<_0x5de355['length'];_0x1a951e++){const _0x16dedf=_0x5de355[_0x1a951e];!_0x48e5c0['has'](_0x16dedf)&&_0x16dedf['previous']&&(_0x597df5['add'](_0x16dedf['previous']),_0x16dedf['previous']['next']===_0x16dedf&&(_0x16dedf['previous']['next']=null),_0x16dedf['previous']=null),!_0x29aa18['has'](_0x16dedf)&&_0x16dedf['next']&&(_0x597df5['add'](_0x16dedf['next']),_0x16dedf['next']['previous']===_0x16dedf&&(_0x16dedf['next']['previous']=null),_0x16dedf['next']=null);}function _0x3ce148(_0x1b22e8,_0x290b3b,_0x42e95d){for(let _0x2f7f71=_0x42e95d;_0x2f7f71<_0x290b3b['length'];_0x2f7f71++){const _0x3545c7=_0x43eb82(_0x1b22e8,_0x290b3b[_0x2f7f71]);_0x3545c7&&(_0x3545c7[0x0]['next']=_0x3545c7[0x1],_0x3545c7[0x1]['previous']=_0x3545c7[0x0],_0x29aa18['add'](_0x3545c7[0x0]),_0x48e5c0['add'](_0x3545c7[0x1]));}}function _0x43eb82(_0x4bc18c,_0x1caeef){if(_0x4bc18c['author']['id']!==_0x1caeef['author']['id'])return null;const _0x4ec00c=_0x3151e7['get'](_0x4bc18c)(_0x4bc18c,_0x1caeef,_0x4dc62c['get'](_0x4bc18c),_0x4dc62c['get'](_0x1caeef));if(!_0x4ec00c)return null;return _0x3151e7['get'](_0x1caeef)(_0x4bc18c,_0x1caeef,_0x4dc62c['get'](_0x4bc18c),_0x4dc62c['get'](_0x1caeef))?_0x4ec00c[0x1]['commentThread']&&_0x4ec00c[0x1]['commentThread']['length']?null:_0x4ec00c:null;}_0x597df5['size']&&this['_refreshSuggestionsChain'](_0x597df5);}['_refreshAttributeSuggestionsChain'](_0x46be4c){if(0x0==_0x46be4c['length'])return;const _0x3b74a8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ae11a=>'attribute'==_0x3ae11a['type']&&_0x3ae11a['_isDataLoaded']),_0x80ed0d=[],_0x5e6e8c=new Map();for(const _0x5371f5 of _0x3b74a8){const _0x552e5b=_0x39e88f(_0x5371f5['attributes']);_0x5e6e8c['has'](_0x552e5b)||(_0x5e6e8c['set'](_0x552e5b,_0x80ed0d['length']),_0x80ed0d['push']([]));const _0x240ee2=_0x5e6e8c['get'](_0x552e5b);_0x80ed0d[_0x240ee2]['push'](_0x5371f5);}!(function(){_0x80ed0d['sort']((_0x167d69,_0x35b4f1)=>{const _0x1f3fb5=_0x167d69[0x0]['createdAt'],_0x561832=_0x35b4f1[0x0]['createdAt'];return _0x1f3fb5==_0x561832?_0x167d69[0x0]['attributes']['groupId']<_0x35b4f1[0x0]['attributes']['groupId']?-0x1:0x1:_0x1f3fb5<_0x561832?-0x1:0x1;});for(const _0x72072d of _0x80ed0d)_0x72072d['sort']((_0x40a16e,_0x2d4748)=>_0x40a16e['id']<_0x2d4748['id']?-0x1:0x1);}());for(let _0x2fea76=0x0;_0x2fea76<_0x80ed0d['length'];_0x2fea76++){if(0x0==_0x80ed0d[_0x2fea76]['length'])continue;const _0x3f314a=[];for(let _0x3668a3=_0x2fea76+0x1;_0x3668a3<_0x80ed0d['length'];_0x3668a3++)0x0!=_0x80ed0d[_0x3668a3]['length']&&_0x497287(_0x80ed0d[_0x2fea76],_0x80ed0d[_0x3668a3])&&_0x3f314a['push'](_0x3668a3);for(const _0x2a49d8 of _0x3f314a)_0x80ed0d[_0x2fea76]=_0x80ed0d[_0x2fea76]['concat'](_0x80ed0d[_0x2a49d8]),_0x80ed0d[_0x2a49d8]=[];}for(const _0x545b46 of _0x80ed0d)for(let _0x728b7b=0x0;_0x728b7b<_0x545b46['length'];_0x728b7b++){const _0x5967f3=_0x545b46[_0x728b7b+0x1]||null;_0x545b46[_0x728b7b]['next']!==_0x5967f3&&(_0x545b46[_0x728b7b]['next']=_0x5967f3);}for(const _0x3cbbab of _0x80ed0d)for(let _0x40abb2=0x0;_0x40abb2<_0x3cbbab['length'];_0x40abb2++){const _0x3eda92=_0x3cbbab[_0x40abb2-0x1]||null;_0x3cbbab[_0x40abb2]['previous']!==_0x3eda92&&(_0x3cbbab[_0x40abb2]['previous']=_0x3eda92);}function _0x497287(_0x5ae1ef,_0x42f1c3){if(_0x5ae1ef[0x0]['attributes']['groupId']!==_0x42f1c3[0x0]['attributes']['groupId']&&_0x5ae1ef[0x0]['author']!==_0x42f1c3[0x0]['author'])return!0x1;if(!function(_0xa729d1,_0x529ac1){if(!_0xa729d1['hasComments']&&!_0x529ac1['hasComments'])return!0x0;if(_0xa729d1['hasComments']&&_0x529ac1['hasComments'])return!0x1;if(_0xa729d1['hasComments']&&_0x529ac1['createdAt']<_0xa729d1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x529ac1['hasComments']&&_0xa729d1['createdAt']<_0x529ac1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5ae1ef[0x0],_0x42f1c3[0x0]))return!0x1;const _0x2265a3=Ft(_0x5ae1ef[0x0]['attributes'],['groupId','trackingSessionId']),_0x57f8bb=Ft(_0x42f1c3[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4ef645(_0x2265a3,_0x57f8bb))return!0x1;if(_0x5ae1ef[0x0]['attributes']['groupId']==_0x42f1c3[0x0]['attributes']['groupId'])return!0x0;if(_0x5ae1ef[0x0]['attributes']['trackingSessionId']!==_0x42f1c3[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5ae1ef['every'](_0x3ceeb6=>_0x42f1c3['some'](_0x57f156=>_0x3ceeb6['getFirstRange']()['isEqual'](_0x57f156['getFirstRange']())))&&_0x42f1c3['every'](_0x241e96=>_0x5ae1ef['some'](_0x269346=>_0x241e96['getFirstRange']()['isEqual'](_0x269346['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c5bad){const _0xb978b7=Array['from'](_0x5c5bad),_0x4599b5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a09b8=_0x4599b5['filter'](_0x116893=>!_0x5c5bad['has'](_0x116893)),_0xb05c99=new Map(_0xb978b7['map'](_0x500b70=>[_0x500b70,this['_suggestionFactory']['getSuggestionCallback'](_0x500b70['type'],_0x500b70['subType'],'join')])),_0x63c18=new Map(_0x4599b5['map'](_0x222ee4=>[_0x222ee4,_0x222ee4['getRanges']()]));for(let _0x171c83=0x0;_0x171c83<_0xb978b7['length'];_0x171c83++){if(_0x3944b7(this,_0xb978b7[_0x171c83],_0xb978b7,_0x171c83+0x1))return!0x0;}for(let _0x4ad41c=0x0;_0x4ad41c<_0xb978b7['length'];_0x4ad41c++){if(_0x3944b7(this,_0xb978b7[_0x4ad41c],_0x4a09b8,0x0))return!0x0;}return!0x1;function _0x3944b7(_0x5df3e9,_0x12d4f7,_0x3906e7,_0x233d7b){for(let _0x21c799=_0x233d7b;_0x21c799<_0x3906e7['length'];_0x21c799++){const _0x266f5d=_0x3906e7[_0x21c799];if(_0x266f5d['type']!==_0x12d4f7['type']||_0x266f5d['author']['id']!==_0x12d4f7['author']['id']||_0x266f5d['subType']!==_0x12d4f7['subType'])continue;if(!Qt(_0x12d4f7,_0x266f5d))continue;if('attribute'==_0x12d4f7['type']&&_0x12d4f7['data']['oldValue']!=_0x266f5d['data']['oldValue'])continue;if('attribute'==_0x12d4f7['type']&&_0x5df3e9['_isBlockAttribute'](_0x12d4f7['data']['key']))continue;if('formatBlock'==_0x12d4f7['type']){const _0x24be26=_0x5df3e9['editor']['model'],_0x51caf0=_0x12d4f7['getContainedElement']();if(_0x51caf0&&(_0x24be26['schema']['isObject'](_0x51caf0)||_0x24be26['schema']['isLimit'](_0x51caf0)))continue;}const _0xb68383=_0xb05c99['get'](_0x12d4f7),_0x36bfd9=_0x63c18['get'](_0x12d4f7),_0x5d4318=_0x63c18['get'](_0x266f5d),_0x504ad1=_0x12d4f7['commentThread']&&_0x12d4f7['commentThread']['length'],_0x44327a=_0x266f5d['commentThread']&&_0x266f5d['commentThread']['length'];if(!_0x504ad1&&_0xb68383(_0x5d4318,_0x36bfd9))return _0x5df3e9['_joinSuggestions'](_0x266f5d,_0x12d4f7),_0x63c18['delete'](_0x12d4f7),!0x0;if(!_0x44327a&&_0xb68383(_0x36bfd9,_0x5d4318))return _0x5df3e9['_joinSuggestions'](_0x12d4f7,_0x266f5d),_0x63c18['delete'](_0x266f5d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3a2ad3,_0x2ecd7b){if(_0x3a2ad3['isMultiRange']){for(const _0x2cde85 of _0x2ecd7b['getRanges']())_0x3a2ad3['addRange'](_0x2cde85);}else{const _0x260943=_0x2ecd7b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3a2ad3,this['_model']['createRange'](_0x3a2ad3['getFirstRange']()['start'],_0x260943));}_0x2ecd7b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5105ae,_0x3f1726,_0x12b0d8){const _0x32ad53=_0x5105ae['startsWith']('format')||_0x5105ae['startsWith']('attribute')?'FORMATTING':_0x5105ae['toUpperCase']();return c(this['editor']['locale'],_0x3f1726+'_'+_0x32ad53+'_SUGGESTION_ANNOUNCEMENT',_0x12b0d8);}['_initAriaMarkerChangeAnnouncements'](){const _0xa698c1=this['editor'];if(!_0xa698c1['ui'])return;const {ariaLiveAnnouncer:_0x3b5e42}=_0xa698c1['ui'];_0x508fbc(this['_model'],({left:_0x4fa9d5,entered:_0x9a7259})=>{for(const _0x28cf23 of _0x4fa9d5){const {group:_0x2d0520,type:_0x127e78}=this['_splitMarkerName'](_0x28cf23['name']);if('suggestion'===_0x2d0520){_0x3b5e42['announce'](this['_getMarkerAnnouncementText'](_0x127e78,'LEAVE'));break;}}for(const _0xd3db5f of _0x9a7259){const {group:_0x87f9c1,type:_0xcfd57f}=this['_splitMarkerName'](_0xd3db5f['name']);if('suggestion'===_0x87f9c1){_0x3b5e42['announce'](this['_getMarkerAnnouncementText'](_0xcfd57f,'ENTER',_0x993eff(_0xabbc6a)));break;}}});}['_processAttributeChanges'](_0x23c831){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3874e7=this['editor'],_0x34ecd8=_0x3874e7['model']['document']['differ']['getChanges']();if(0x0==_0x34ecd8['length'])return!0x1;const _0x3f3e76=[],_0xaf9038=_0x34ecd8['filter'](_0x4390fb=>'attribute'==_0x4390fb['type']),_0x30482d=_0x34ecd8['filter'](_0xb1da4c=>'insert'==_0xb1da4c['type']&&'$text'!=_0xb1da4c['name']),_0xa99d77=_0x34ecd8['filter'](_0x4b0ff9=>'remove'==_0x4b0ff9['type']&&'$text'!=_0x4b0ff9['name']);for(const _0x40abce of _0xaf9038)_0x3f3e76['push']({'key':_0x40abce['attributeKey'],'newValue':_0x40abce['attributeNewValue'],'oldValue':_0x40abce['attributeOldValue'],'range':qt(_0x40abce['range'],_0x3874e7['model'])});for(const _0x45ff68 of _0x30482d){const _0x232fe5=_0xa99d77['find'](_0x590788=>_0x590788['position']['isEqual'](_0x45ff68['position']));_0x232fe5&&_0x3f3e76['push']({'key':u,'newValue':_0x45ff68['name'],'oldValue':_0x232fe5['name'],'range':_0x3874e7['model']['createRangeOn'](_0x45ff68['position']['nodeAfter'])});}return 0x0!=_0x3f3e76['length']&&this['_reduceExistingSuggestions'](_0x23c831,_0x3f3e76);}['_processAttributeSuggestions'](_0x57b34e){let _0x43ddc4=!0x1;const _0x56d135=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47e294=>_0x47e294['data']['newRange']&&_0x47e294['name']['startsWith']('suggestion:attribute:'));for(const _0x8b8f20 of _0x56d135){const {subType:_0xa7f0e1,id:_0xcc4ad9}=this['_splitMarkerName'](_0x8b8f20['name']),_0x38a53e=_0xa7f0e1['split']('|')[0x0];for(const _0x21ab23 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21ab23['id']!=_0xcc4ad9&&'attribute'==_0x21ab23['type']&&_0x21ab23['data']&&_0x21ab23['data']['key']==_0x38a53e&&_0x21ab23['getFirstRange']()['isIntersecting'](_0x8b8f20['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21ab23,_0x8b8f20['data']['newRange'],_0x57b34e),_0x43ddc4=!0x0);}return _0x43ddc4;}['_recordAttributeChanges'](_0x7f1b90){this['_recordAttributeSuggestions']=!0x0,_0x7f1b90();}['_isRegisteredAttribute'](_0x3c48b7){const _0x26a915=this['_isBlockAttribute'](_0x3c48b7),_0x1fc841=this['_inlineAttributeKeys']['has'](_0x3c48b7);return _0x26a915||_0x1fc841;}['_reduceExistingSuggestions'](_0xdba65d,_0x3b9c65){if(0x0==_0x3b9c65['length'])return!0x1;let _0x1f84fb=!0x1;for(const _0x2d4bc9 of _0x3b9c65){const _0x237bf3=this['_findSuggestions'](_0x2d4bc9['range'],'attribute')['filter'](_0x3a53f9=>!_0x3a53f9['meta']['isNextTo'])['map'](_0x5d79fc=>_0x5d79fc['suggestion']),_0x2f01ed=_0x39e88f({'newValue':_0x2d4bc9['newValue']});_0x237bf3['filter'](_0x57559e=>{const [_0x260aa8,_0xaec255]=_0x57559e['subType']['split']('|');return _0x260aa8==_0x2d4bc9['key']&&_0xaec255!=_0x2f01ed;})['forEach'](_0x56872e=>{this['_reduceSuggestionAttributeRange'](_0x56872e,_0x2d4bc9['range'],_0xdba65d),_0x1f84fb=!0x0;});}return _0x1f84fb;}['_reduceSuggestionAttributeRange'](_0x250d4a,_0x15dd35,_0xb6d64d){const _0x3ce94f=_0x250d4a['getFirstRange']()['getDifference'](_0x15dd35);0x0!==_0x3ce94f['length']?0x1!==_0x3ce94f['length']?this['_breakSuggestionMarker'](_0x250d4a,_0x15dd35['start'],_0x15dd35['end']):this['_setSuggestionRange'](_0x250d4a,_0x3ce94f[0x0]):_0xb6d64d['removeMarker'](_0x250d4a['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5e74f2){this['_editor']=_0x5e74f2,this['_model']=_0x5e74f2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x413352,_0x1e253c,_0x20c489,_0x328598,_0x42696d,_0x526307){return new o(this['_model'],{'type':_0x413352,'subType':_0x1e253c,'id':_0x20c489,'author':_0x328598,'creator':_0x328598,'attributes':_0x42696d,'onAttributesChange':_0x526307,'onAccept':(..._0x32bc5e)=>this['getSuggestionCallback'](_0x413352,_0x1e253c,'accept')(..._0x32bc5e),'onDiscard':(..._0x2bc9e9)=>this['getSuggestionCallback'](_0x413352,_0x1e253c,'discard')(..._0x2bc9e9)});}['registerCustomCallback'](_0x17d8e2,_0x497346,_0x3c4d21,_0x53489e){const _0x4f7695=_0x17d8e2+':'+_0x497346+':'+_0x3c4d21;this['_customCallbacks']['set'](_0x4f7695,_0x53489e);}['getSuggestionCallback'](_0x327c35,_0x30a37f,_0x31144f){const _0x475eba=_0x327c35+':'+_0x30a37f+':'+_0x31144f;return this['_customCallbacks']['get'](_0x475eba)||this['_defaultCallbacks']['get'](_0x327c35+':'+_0x31144f);}['_registerDefaultCallbacks'](){const _0x51f514=()=>!0x1,_0x72c58c=_0x200ae2=>{_0x200ae2['sort']((_0x5be1e7,_0x185f46)=>_0x5be1e7['start']['isBefore'](_0x185f46['start'])?0x1:-0x1),this['_model']['change'](_0x3c3a45=>{for(const _0x1b4a46 of _0x200ae2){let _0x45cd13;_0x45cd13=_0x1b4a46['end']['isAtEnd']&&_0x1b4a46['end']['parent']==_0x1b4a46['start']['nodeAfter']?_0x3c3a45['createSelection'](_0x1b4a46['start']['nodeAfter'],'on'):_0x3c3a45['createSelection'](_0x1b4a46),this['_model']['deleteContent'](_0x45cd13,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x22ac7a=(_0x278572,_0x140297)=>{_0x140297&&this['_model']['change'](_0x305cca=>{const {commandName:_0x1fc360,commandParams:_0x52c17c=[]}=_0x140297,_0x27f488=_0x278572['map'](_0x39c2b0=>(Lt(_0x39c2b0)&&(_0x39c2b0=this['_model']['createRange'](_0x39c2b0['end'])),_0x39c2b0))['filter'](_0x48e07f=>'$graveyard'!==_0x48e07f['root']['rootName']);if(_0x27f488['length']<0x1)return;const _0x2baa5b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x485a0e=>_0x5818a9['fromRange'](_0x485a0e));_0x305cca['setSelection'](_0x27f488);for(const _0x24f8a9 of this['_editor']['commands']['commands']())_0x24f8a9['refresh']();_0x52c17c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1fc360,..._0x52c17c);const _0x3cf165=_0x2baa5b['filter'](_0x4078cf=>'$graveyard'!=_0x4078cf['root']['rootName']);_0x3cf165['length']>0x0&&_0x305cca['setSelection'](_0x3cf165);for(const _0x1aa77b of _0x2baa5b)_0x1aa77b['detach']();});},_0x4020bf=(_0x1c7d3a,_0x4b97dc)=>0x1==_0x1c7d3a['length']&&0x1==_0x4b97dc['length']&&_0x1c7d3a[0x0]['end']['isEqual'](_0x4b97dc[0x0]['start']),_0x4984d8=(_0x5c05f4,_0x1c9721,_0x161517,_0x4555e2)=>Wt(_0x5c05f4,_0x1c9721,_0x161517,_0x4555e2)?[_0x5c05f4,_0x1c9721]:Wt(_0x1c9721,_0x5c05f4,_0x4555e2,_0x161517)?[_0x1c9721,_0x5c05f4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x51f514),this['_defaultCallbacks']['set']('insertion:discard',_0x72c58c),this['_defaultCallbacks']['set']('insertion:join',_0x4020bf),this['_defaultCallbacks']['set']('insertion:chain',_0x4984d8),this['_defaultCallbacks']['set']('deletion:accept',_0x72c58c),this['_defaultCallbacks']['set']('deletion:discard',_0x51f514),this['_defaultCallbacks']['set']('deletion:join',_0x4020bf),this['_defaultCallbacks']['set']('deletion:chain',_0x4984d8),this['_defaultCallbacks']['set']('formatInline:accept',_0x22ac7a),this['_defaultCallbacks']['set']('formatInline:discard',_0x51f514),this['_defaultCallbacks']['set']('formatInline:join',_0x4020bf),this['_defaultCallbacks']['set']('formatInline:chain',_0x51f514),this['_defaultCallbacks']['set']('formatBlock:accept',_0x22ac7a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x51f514),this['_defaultCallbacks']['set']('formatBlock:join',_0x4020bf),this['_defaultCallbacks']['set']('formatBlock:chain',_0x51f514),this['_defaultCallbacks']['set']('attribute:accept',_0x51f514),this['_defaultCallbacks']['set']('attribute:discard',(_0x399149,_0x24e7ba)=>{if(!_0x24e7ba)return;const _0x3a1ce7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2b2f2b=>{if(_0x24e7ba['key']==u)for(const _0x15fcb1 of _0x399149){const _0x1efe11=_0x15fcb1['start']['nodeAfter'],_0x119a34=_0x24e7ba['oldValue'];_0x2b2f2b['rename'](_0x1efe11,_0x119a34);}else{if(_0x3a1ce7['_isBlockAttribute'](_0x24e7ba['key'])){for(const _0x2c1679 of _0x399149)void 0x0!==_0x24e7ba['oldValue']?_0x2b2f2b['setAttribute'](_0x24e7ba['key'],_0x24e7ba['oldValue'],_0x2c1679['start']['nodeAfter']):_0x2b2f2b['removeAttribute'](_0x24e7ba['key'],_0x2c1679['start']['nodeAfter']);}else{for(const _0x58669d of _0x399149)_0x24e7ba['oldValue']?_0x2b2f2b['setAttribute'](_0x24e7ba['key'],_0x24e7ba['oldValue'],_0x58669d):_0x2b2f2b['removeAttribute'](_0x24e7ba['key'],_0x58669d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4020bf);}}function Gt(_0x19f802,_0x4c583b,_0x343572){for(const _0x1c1b4c of _0x4c583b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c1b4c['root']==_0x1c1b4c)return!0x1;if(!_0x343572['containsItem'](_0x1c1b4c))return!0x1;if(_0x19f802['isObject'](_0x1c1b4c)||_0x19f802['isLimit'](_0x1c1b4c))return!0x0;}return!0x1;}function Lt(_0x458ad0){return _0x458ad0['end']['parent']==_0x458ad0['start']['nodeAfter']&&_0x458ad0['end']['isAtStart'];}function Jt(_0x18c52b,_0x595182,_0x541ef9,_0x23a686){const _0x48faa1=_0x2d2ff1=>!_0x2d2ff1['item']['is']('$textProxy')&&!_0x23a686['isObject'](_0x2d2ff1['item']),_0x47e18e=_0x18c52b['start']['getLastMatchingPosition'](_0x48faa1),_0x1dcb6e=_0x18c52b['end']['getLastMatchingPosition'](_0x48faa1,{'direction':'backward'});return(!_0x18c52b['start']['isEqual'](_0x47e18e)||!_0x18c52b['end']['isEqual'](_0x1dcb6e))&&(_0x47e18e['isBefore'](_0x1dcb6e)?_0x541ef9['updateMarker'](_0x595182,{'range':_0x541ef9['createRange'](_0x47e18e,_0x1dcb6e)}):_0x541ef9['removeMarker'](_0x595182),!0x0);}function Kt(_0x42c59d){return _0x39e88f(_0x42c59d);}function Ht(_0x4a13cd){const _0x1d51fd=_0x4a13cd['start']['nodeAfter'];return _0x1d51fd&&_0x1d51fd['is']('element');}function qt(_0x4be8a7,_0x5245ec){return null==_0x4be8a7['end']['nodeBefore']&&_0x4be8a7['end']['parent']==_0x4be8a7['start']['nodeAfter']?zt(_0x4be8a7['start']['nodeAfter'],_0x5245ec):_0x4be8a7;}function zt(_0x3eed54,_0x32c21b){const _0x1acf09=_0x32c21b['schema']['isObject'](_0x3eed54)||_0x32c21b['schema']['isSelectable'](_0x3eed54);return _0x32c21b['createRange'](_0x32c21b['createPositionAt'](_0x3eed54,'before'),_0x1acf09?_0x32c21b['createPositionAfter'](_0x3eed54):_0x32c21b['createPositionAt'](_0x3eed54,'end'));}function Wt(_0x293ff0,_0x343c5b,_0x41bd07,_0x55b825){return!!Qt(_0x293ff0,_0x343c5b)&&_0x41bd07['end']['isEqual'](_0x55b825['start']);}function Qt(_0x4394c2,_0x45f865){if(!_0x4394c2['_isDataLoaded']||!_0x45f865['_isDataLoaded'])return!0x1;const _0x2745ee=new Set(Object['keys'](_0x4394c2['attributes'])),_0x145e6e=new Set(Object['keys'](_0x45f865['attributes']));if(_0x2745ee['delete']('groupId'),_0x145e6e['delete']('groupId'),0x0==_0x2745ee['size']&&0x0==_0x145e6e['size'])return!0x0;if(_0x2745ee['size']!=_0x145e6e['size'])return!0x1;const _0x269347={..._0x4394c2['attributes']},_0x419435={..._0x45f865['attributes']};return delete _0x269347['groupId'],delete _0x419435['groupId'],JSON['stringify'](_0x269347)==JSON['stringify'](_0x419435);}function Xt(_0x22f91d,_0x58dcf2){const _0x3ae667=Yt(_0x22f91d['attributes']),_0x5ddb88=Yt(_0x58dcf2);if(!_0x22f91d['_isDataLoaded'])return!0x1;for(const _0x55e6a6 of Object['keys'](_0x5ddb88))if(!_0x4ef645(_0x3ae667[_0x55e6a6],_0x5ddb88[_0x55e6a6]))return!0x1;return!0x0;}function Yt(_0x2bddbc){const _0xd86396=Object['assign']({},_0x2bddbc);return delete _0xd86396['skipNestingCheck'],delete _0xd86396['tablePasteChainId'],_0xd86396;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x536dd9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5852b5,_0x3a996c,_0x2c407a,_0x21e60b){super(),this['model']=_0x3a996c,this['view']=_0x2c407a,this['commentThreadController']=_0x21e60b,this['_editor']=_0x5852b5,this['_acceptCommand']=_0x5852b5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5852b5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ae7cd,_0x2ff3c6)=>_0x2ae7cd||_0x2ff3c6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b8ffd=>_0x3b8ffd&&this['_editor']['model']['canEditAt'](_0x3a996c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x314025=>_0x314025&&this['_editor']['model']['canEditAt'](_0x3a996c['getRanges']())),this['_pendingAction']=null,_0x2c407a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2c407a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2c407a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2c407a,'change:isDirty',()=>{_0x2c407a['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 _0x366d95=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x366d95);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3afef1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1b9f3c,_0x20ac91,_0x397afe,_0x18f2dc){super(_0x1b9f3c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1d65da(_0x1b9f3c,c(_0x1b9f3c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20ac91['authoredAt']),this['bind']('authoredAt')['to'](_0x20ac91),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',_0x20ac91,'authoredAt',this,'descriptionParts',(_0x21a6f0,_0x19179c,_0x12d392)=>{const _0x41f23e=_0x12d392['map'](_0x50b91b=>ls(_0x50b91b['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x21a6f0-0x1,_0x20ac91['author']['name'],_0x19179c?_0x18f2dc['formatDateTime'](_0x19179c):'',new DOMParser()['parseFromString'](_0x41f23e,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf36bc3(),this['focusTracker']=new _0x5b9090(),this['keystrokes']=new _0x2ac736(),this['focusCycler']=new _0x23e90e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x18e049=>_0x18e049['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20ac91,this['_localUser']=_0x397afe,this['_config']=_0x18f2dc,_0x18f2dc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x315c46(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x53bd49}=this['_config'];this['commentsListView']=new _0x53bd49(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',_0xe3fc38=>_0xe3fc38+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x217195,_0x494055)=>_0x217195||!!_0x494055);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xec26a8}=this['_config'],_0x27a200=new _0xec26a8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6d40e9=_0x27a200['commentInputView'];return _0x27a200['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6d40e9,'value',(_0x3fd2ec,_0x384ed3,_0x4f3978)=>!!_0x4f3978||_0x3fd2ec&&!_0x384ed3),_0x6d40e9['on']('submit',(_0x2025b1,_0x2c8a02)=>{this['fire']('addComment',_0x2c8a02),_0x6d40e9['editor']['setData']('');}),_0x6d40e9['on']('cancel',()=>this['focus']()),_0x6d40e9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27a200;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x506faa,_0xa1fca,_0x7abe73,_0x4333a1){super(_0x506faa,_0xa1fca,_0x7abe73,_0x4333a1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4b9095=>_0x4b9095&&_0x4b9095[0x0]?_0x4b9095[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5e5053,_0x1d5584)=>{let _0x48db38='';for(const _0x36339b of _0x5e5053)_0x48db38+='<p>'+ls(_0x36339b['content'],_0x36339b['color'])+'</p>';return _0x1d5584?_0x48db38:ti(_0x48db38,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4333a1['SuggestionView'](_0x506faa,_0xa1fca,{'formatDateTime':_0x4333a1['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 _0x33ffda=this['bindTemplate'],_0x374e9f=[this['suggestionView']];return this['commentsListView']&&_0x374e9f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x374e9f['push'](this['commentThreadInputView']),_0x374e9f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x33ffda['if']('isActive','ck-suggestion-wrapper--active'),_0x33ffda['to']('type',_0x4d0a35=>'ck-suggestion-'+_0x4d0a35),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':_0x33ffda['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x374e9f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3afef1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3b3fcd,_0x398851,_0x46dbe2){super(_0x3b3fcd),this['_model']=_0x398851,this['_config']=_0x46dbe2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x398851),this['acceptButton']=this['_createButton'](c(_0x3b3fcd,'Accept\x20suggestion'),_0x4d888c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x3b3fcd,'Discard\x20suggestion'),_0x1ad73f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4f77c0(_0x3b3fcd,_0x398851['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf36bc3([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b9090(),this['keystrokes']=new _0x2ac736(),this['focusCycler']=new _0x23e90e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4dfa56=>_0x4dfa56['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50beb4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50beb4['innerHTML']=this['description'],this['on']('change:description',(_0x45fcc8,_0x4d28d4,_0x463565)=>{_0x50beb4['innerHTML']=_0x463565;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x47e600=this['bindTemplate'],_0x209216=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x47e600['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x47e600['to']('authoredAt',_0x5e693c=>this['_config']['formatDateTime'](_0x5e693c))}]}]},{'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']&&_0x209216['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':_0x209216}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x538441,_0x2fcd38,_0x5badfe,_0x501c0c,_0x53a806){const _0x2357dd=new _0x42b75f(this['locale']);return _0x2357dd['set']({'label':_0x538441,'icon':_0x2fcd38,'tooltip':!0x0,'tooltipPosition':_0x53a806}),_0x2357dd['extendTemplate']({'attributes':{'class':_0x5badfe}}),_0x2357dd['on']('execute',()=>{this['fire'](_0x501c0c,this['_model']['id']);}),_0x2357dd;}['_setupKeyboardNavigation'](){const _0x40b89e=this['element'];this['keystrokes']['listenTo'](_0x40b89e);for(const _0x4c7980 of this['focusables'])this['focusTracker']['add'](_0x4c7980['element']),this['keystrokes']['listenTo'](_0x4c7980['element']);this['keystrokes']['set']('enter',(_0x12e203,_0x578016)=>{_0x40b89e===_0x12e203['target']&&(this['focusCycler']['focusFirst'](),_0x578016());}),this['keystrokes']['set']('esc',(_0x22432a,_0x4443e9)=>{_0x40b89e!==_0x22432a['target']&&(this['focus'](),_0x4443e9());});}}class d extends _0x21f549{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x65df82,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25606a){super(_0x25606a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1794c9=this['editor']['config'];_0x1794c9['define']('trackChanges.SuggestionThreadView',fe),_0x1794c9['define']('trackChanges.SuggestionView',we),_0x1794c9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1794c9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x155def,_0x242377){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3dadde,_0x36aa16]of this['_handleControllerBuffer']){const _0x512891=this['_suggestionToController']['has'](_0x3dadde);_0x512891||_0x36aa16?_0x512891&&_0x36aa16&&this['_destroyController'](_0x3dadde):this['_initializeController'](_0x3dadde);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x155def,_0x242377);}['init'](){const _0x3c6ff3=this['editor'],_0x41c575=_0x3c6ff3['plugins']['get']('TrackChangesEditing'),_0x2395ba=_0x3c6ff3['plugins']['get']('Annotations'),_0x41caff=_0x3c6ff3['plugins']['get']('EditorAnnotations'),_0x1b0e55=_0x3c6ff3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41caff['addSourceCollector'](()=>{const _0x508112=[];for(const [_0x283ae1,_0x69818a]of Array['from'](this['_suggestionToController'])){const _0x196c4c=_0x283ae1['getAllAdjacentSuggestions'](),_0x2d4a7b=[];for(const _0x450886 of _0x196c4c){if(!_0x450886['isInContent'])continue;if(_0x450886['isMultiRange']){_0x2d4a7b['push'](..._0x450886['getRanges']());continue;}const _0x39882a=_0x450886['getFirstRange']();if(_0x2d4a7b['length']>0x0){const _0x2f8690=_0x2d4a7b[0x0]['getJoined'](_0x39882a);if(_0x2f8690){_0x2d4a7b[0x0]=_0x2f8690;continue;}}_0x2d4a7b['push'](_0x39882a);}_0x508112['push']([_0x69818a['view'],_0x2d4a7b]);}return _0x508112;}),this['listenTo'](_0x41c575,'suggestionLoaded',(_0x165f02,_0x347c05)=>{this['listenTo'](_0x347c05,'change:previous',(_0x448fff,_0x51c1a1,_0x2da095,_0x32d95d)=>{_0x347c05['isInContent']&&(null==_0x2da095?(this['_updateController'](_0x32d95d['head']),this['_handleSuggestionControllerDelayed'](_0x347c05,!0x1)):(this['_updateController'](_0x2da095['head']),null==_0x32d95d&&this['_handleSuggestionControllerDelayed'](_0x347c05,!0x0)));}),null!==_0x347c05['previous']?this['_updateController'](_0x347c05['head']):this['_handleSuggestionControllerDelayed'](_0x347c05,!0x1);}),this['listenTo'](_0x41c575,'suggestionUnloaded',(_0x17dbea,_0x3fee85,_0x5c6160)=>{this['stopListening'](_0x3fee85,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3fee85),this['_suggestionToController']['has'](_0x3fee85)&&this['_destroyController'](_0x3fee85),_0x5c6160&&this['_updateController'](_0x5c6160['head']);}),this['listenTo'](_0x41c575,'suggestionChanged',(_0x294687,_0xf1e64)=>{this['_updateController'](_0xf1e64);}),this['listenTo'](_0x2395ba,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b0e55,'addComment',(_0x4fbadb,{threadId:_0x3c2ab2,isFromAdapter:_0x25b589})=>{if(_0x25b589||!_0x41c575['hasSuggestion'](_0x3c2ab2))return;const _0x4c98d7=_0x41c575['getSuggestion'](_0x3c2ab2);this['_suggestionToController']['get'](_0x4c98d7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b72d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35c894;for(const _0x4b7929 in _0x2b72d6){const _0x246e59=_0x4b7929,_0x3be0e2=_0x2b72d6[_0x246e59];if('trackChangesLicenseKeyValid'==_0x3be0e2||'trackChangesLicenseKeyInvalid'==_0x3be0e2||'trackChangesLicenseKeyExpired'==_0x3be0e2||'trackChangesLicenseKeyDomainLimit'==_0x3be0e2||'trackChangesLicenseKeyNotAllowed'==_0x3be0e2||'trackChangesLicenseKeyEvaluationLimit'==_0x3be0e2||'trackChangesLicenseKeyTrialLimit'==_0x3be0e2||'trackChangesLicenseKeyUsageLimit'==_0x3be0e2){delete _0x2b72d6[_0x246e59],_0x35c894=_0x3be0e2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x35c894&&_0x2b72d6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x35c894&&_0x2b72d6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x35c894&&_0x2b72d6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x35c894&&_0x2b72d6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x35c894&&_0x2b72d6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x35c894&&_0x2b72d6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x35c894&&_0x2b72d6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x59c11f=this['editor']['plugins']['get']('Annotations'),_0x4e48c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7e2f6b=Array['from'](_0x59c11f['activeAnnotations'],_0x1a65f5=>_0x1a65f5['innerView'])['filter'](_0x58b7f3=>this['_viewToController']['has'](_0x58b7f3)),_0x603996=[];for(const _0x2f58e5 of _0x7e2f6b){const _0x350e97=this['_viewToController']['get'](_0x2f58e5)['model']['getAllAdjacentSuggestions']();_0x603996['push'](..._0x350e97['reduce']((_0x5a7c55,_0x369052)=>[..._0x5a7c55,..._0x369052['getMarkerNames']()],[]));}_0x4e48c0['activeMarkers']=_0x603996;}['_addUIComponentsToFactory'](){const _0x330bbe=this['editor'],_0x379312=_0x330bbe['locale'],_0xf5e623=c(_0x379312,'Track\x20changes'),_0x5b3294=new _0x2f6ded([{'type':'switchbutton','model':new _0x1bfaa9({'withText':!0x0,'isToggleable':!0x0,'label':_0xf5e623,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bfaa9({'withText':!0x0,'label':c(_0x379312,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bfaa9({'withText':!0x0,'label':c(_0x379312,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bfaa9({'withText':!0x0,'label':c(_0x379312,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bfaa9({'withText':!0x0,'label':c(_0x379312,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x330bbe['plugins']['has']('TrackChangesPreview')&&_0x5b3294['addMany']([{'type':'separator'},{'type':'button','model':new _0x1bfaa9({'withText':!0x0,'label':c(_0x379312,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x255cc7 of _0x5b3294)if(ke(_0x255cc7)){const _0xcca96a=_0x330bbe['commands']['get'](_0x255cc7['model']['commandName']);_0x255cc7['model']['bind']('isOn','isEnabled')['to'](_0xcca96a,'value','isEnabled');}_0x330bbe['ui']['componentFactory']['add']('trackChanges',_0x5811fb=>this['_createToolbarButton'](_0x5811fb,_0x5b3294,_0xf5e623)),_0x330bbe['ui']['componentFactory']['add']('menuBar:trackChanges',_0x303bcd=>this['_createMenuBarMenu'](_0x303bcd,_0x5b3294,_0xf5e623));}['_createToolbarButton'](_0x15e43f,_0x429530,_0x49fd7a){const _0x25f1d7=_0xf68bc3(_0x15e43f,_0x193005),_0x592e1c=this['editor']['commands']['get']('trackChanges');_0x25f1d7['buttonView']['set']({'tooltip':_0x49fd7a,'label':_0x49fd7a,'icon':_0x539c6c}),_0x25f1d7['buttonView']['bind']('isOn')['to'](_0x592e1c,'value'),_0x25f1d7['buttonView']['on']('execute',()=>{_0x592e1c['execute'](),this['editor']['editing']['view']['focus']();}),_0xd2bb20(_0x25f1d7,_0x429530,{'role':'menu'});const _0x40e175=[];for(const _0x33a717 of _0x429530)ke(_0x33a717)&&_0x40e175['push'](this['editor']['commands']['get'](_0x33a717['model']['commandName']));const _0xe6b949=_0x25f1d7['buttonView'];return _0xe6b949['actionView']['unbind']('isEnabled'),_0xe6b949['arrowView']['unbind']('isEnabled'),_0xe6b949['actionView']['bind']('isEnabled')['to'](_0x592e1c,'isEnabled'),_0xe6b949['arrowView']['bind']('isEnabled')['toMany'](_0x40e175,'isEnabled',(..._0x3e8329)=>_0x3e8329['some'](_0x27eda1=>_0x27eda1)),_0x25f1d7['on']('execute',_0x5b36a6=>{this['editor']['execute'](_0x5b36a6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x25f1d7;}['_createMenuBarMenu'](_0x33e472,_0x6cc060,_0x28dd15){const _0x45c416=new _0x24fbad(_0x33e472),_0x375956=this['editor']['commands']['get']('trackChanges');_0x45c416['buttonView']['set']({'label':_0x28dd15,'icon':_0x539c6c});const _0x467d59=new _0x339e92(_0x33e472);for(const _0x898e5f of _0x6cc060){if('separator'==_0x898e5f['type']){_0x467d59['items']['add'](new _0x7772b9(_0x33e472));continue;}const _0x12d5c8=new _0xce36a1(_0x33e472,_0x45c416),_0x4b9652=new _0xe58be(_0x33e472),_0x430cbf=_0x898e5f['model'];_0x4b9652['bind'](...Object['keys'](_0x430cbf))['to'](_0x430cbf),_0x4b9652['delegate']('execute')['to'](_0x45c416),_0x4b9652['on']('execute',()=>{this['editor']['execute'](_0x430cbf['commandName']),this['editor']['editing']['view']['focus']();}),_0x12d5c8['children']['add'](_0x4b9652),_0x467d59['items']['add'](_0x12d5c8);}return _0x45c416['bind']('isEnabled')['to'](_0x375956,'isEnabled'),_0x45c416['panelView']['children']['add'](_0x467d59),_0x45c416;}['_initializeController'](_0x95f005){const _0x4110a7=this['editor'],_0x34b68c=_0x4110a7['config'],_0x179b81=_0x4110a7['plugins']['get']('Annotations'),_0x468b8c=_0x4110a7['plugins']['get']('CommentsRepository'),_0x41adc1=_0x4110a7['plugins']['get']('EditorAnnotations'),_0x2351c0=_0x4110a7['plugins']['get'](_0x65df82)['me'],_0x33ab4c=_0x34b68c['get']('trackChanges')['SuggestionThreadView'],_0x4e00f0=_0x34b68c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x41a6d8,CommentThreadInputView:_0x5d8c23}=_0x4110a7['plugins']['get']('CommentsUI');let _0x3cbf3c,_0xce4299,_0x191ad6;this['_annotationViews']['has'](_0x95f005['id'])?(_0xce4299=this['_annotationViews']['get'](_0x95f005['id']),_0x3cbf3c=_0xce4299['mainView']):(_0x3cbf3c=new _0x33ab4c(_0x4110a7['locale'],_0x95f005,_0x2351c0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x34b68c['get']('comments.editorConfig'),'licenseKey':_0x34b68c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x34b68c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x34b68c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x34b68c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2e0130(_0x34b68c['get']('locale'),_0x4110a7['locale']),'CommentView':_0x34b68c['get']('comments')['CommentView'],'CommentsListView':_0x41a6d8,'CommentThreadInputView':_0x5d8c23,'SuggestionView':_0x4e00f0}),_0x3cbf3c['suggestionView']['acceptButton']['on']('execute',()=>{_0x4110a7['editing']['view']['focus']();}),_0x3cbf3c['suggestionView']['discardButton']['on']('execute',()=>{_0x4110a7['editing']['view']['focus']();}),_0xce4299=_0x179b81['createAnnotationView'](this['editor']['locale'],_0x3cbf3c),_0xce4299['bind']('isDirty')['to'](_0x3cbf3c,'isDirty'),_0xce4299['bind']('length')['to'](_0x3cbf3c),_0xce4299['bind']('type')['to'](_0x3cbf3c,'type',_0x381686=>'suggestion-'+_0x381686),_0x3cbf3c['on']('escape',()=>{_0x191ad6['fire']('escape');}),this['_annotationViews']['set'](_0x95f005['id'],_0xce4299));const _0x5ee397=_0x468b8c['createCommentThreadController'](_0x95f005['commentThread'],_0x3cbf3c),_0x559dc4=new pe(_0x4110a7,_0x95f005,_0x3cbf3c,_0x5ee397),_0x388712=_0x95f005['getAllAdjacentSuggestions']()['filter'](_0x3141fb=>_0x3141fb['isInContent']);_0x3cbf3c['descriptionParts']=_0x4110a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x388712),this['_suggestionToController']['set'](_0x95f005,_0x559dc4),this['_viewToController']['set'](_0x3cbf3c,_0x559dc4),_0x191ad6=_0x179b81['createAnnotation']({'view':_0xce4299,'target':()=>{const _0x1f5b9f=[],_0x3b10c5=_0x95f005['getAllAdjacentSuggestions']()['filter'](_0x4fec6e=>_0x4fec6e['isInContent']);for(const _0x41d0da of _0x3b10c5)_0x1f5b9f['push'](..._0x41d0da['getMarkers']());return _0x56d440(_0x4110a7['editing'],_0x1f5b9f);},'type':()=>'suggestion-'+_0x559dc4['view']['type']}),_0x468b8c['_bindAnnotationToEditors'](_0x3cbf3c,_0x191ad6),_0x179b81['add'](_0x191ad6),_0x41adc1['registerAnnotation'](_0x191ad6);}['_destroyController'](_0x5b1abc){const _0x483bcc=this['editor']['plugins']['get']('CommentsRepository'),_0x290722=this['editor']['plugins']['get']('Annotations'),_0x2a41ef=this['_suggestionToController']['get'](_0x5b1abc),_0x54a3b4=_0x2a41ef['view'],_0x1da2d2=_0x290722['getByInnerView'](_0x54a3b4);_0x483bcc['_unbindEditors'](_0x54a3b4),_0x1da2d2&&_0x290722['remove'](_0x1da2d2),this['_suggestionToController']['delete'](_0x5b1abc),this['_viewToController']['delete'](_0x54a3b4),_0x2a41ef['destroy']();}['_updateController'](_0x25a9e3){if(!_0x25a9e3['isInContent']||!this['_suggestionToController']['has'](_0x25a9e3))return;const _0x55c8c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x927aee=this['_suggestionToController']['get'](_0x25a9e3),_0x4d0568=_0x25a9e3['getAllAdjacentSuggestions']();_0x927aee['view']['descriptionParts']=_0x55c8c5['descriptionFactory']['getDescriptions'](_0x4d0568);}['destroy'](){for(const _0x3c4a45 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c4a45);for(const _0x196552 of this['_annotationViews']['values']())_0x196552['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x11c725){return'model'in _0x11c725;}class k extends _0x21f549{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2b978d){this['editor']['plugins']['get'](p)['adapter']=_0x2b978d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x470cf0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x470cf0);}['getSuggestions']({skipNotAttached:_0x6d472a=!0x1,toJSON:_0x9f7d05=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x6d472a,'toJSON':_0x9f7d05});}['getSuggestion'](_0x1bba04){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1bba04);}}const w=['Pagination'];class T extends _0x21f549{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2fb51f=this['editor'];if(_0x2fb51f['config']['define']('trackChangesData.editorCreator',_0x41d059=>{const _0x13d947=_0x2fb51f['model']['document']['getRootNames']()['reduce']((_0x23cdb9,_0x3520e4)=>(_0x23cdb9[_0x3520e4]='',_0x23cdb9),{});return _0x2fb51f['constructor']['create'](_0x13d947,_0x41d059);}),'function'!=typeof _0x2fb51f['config']['get']('trackChangesData')['editorCreator'])throw new _0x2eced8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x575aa7){return N(this['editor'],!0x0,_0x575aa7);}['getDataWithDiscardedSuggestions'](_0x2feded){return N(this['editor'],!0x1,_0x2feded);}}class D extends _0x21f549{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x280b08){function _0x10040a(_0x44a42e){return _0x44a42e['map'](_0x54b397=>String['fromCharCode'](_0x54b397))['join']('');}super(_0x280b08),this['result']='end',_0x280b08[_0x10040a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10040a([0x76,0x69,0x65,0x77])][_0x10040a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10040a([0x61,0x75,0x74,0x6f]),_0x280b08[_0x10040a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10040a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10040a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10040a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10040a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0xdace1d){return void 0x0!==_0xdace1d['getRootsAttributes'];}async function N(_0x31f823,_0x44d35a,_0x18b3a8){const _0x25376d=_0x5a7a39(_0x31f823,w);_0x25376d['plugins']['push'](p,D),_0x25376d['rootsAttributes']=Ge(_0x31f823)?_0x31f823['getRootsAttributes']():void 0x0;const _0x96f19f=document['createDocumentFragment'](),_0x721f5d=_0x31f823['config']['get']('trackChangesData')['editorCreator'],_0x305d3c=await _0x721f5d(_0x25376d,()=>function(_0x3fcc5a){const _0x5c7297=document['createElement']('div');return _0x3fcc5a['appendChild'](_0x5c7297),_0x5c7297;}(_0x96f19f));!function(_0x4ddd1a,_0x3c9f1a){const _0x3718ed=_0x4ddd1a['model']['document']['getRootNames']()['reduce']((_0x3572d,_0xe04166)=>(_0x3572d[_0xe04166]=_0x4ddd1a['data']['get']({'rootName':_0xe04166}),_0x3572d),{}),_0x245e7b=_0x4ddd1a['plugins']['get']('Users')['users']['map'](_0x3ddf0a=>({'id':_0x3ddf0a['id'],'name':_0x3ddf0a['name']})),_0x179d3d=_0x4ddd1a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f5df5=_0x4ddd1a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4db487=_0x3c9f1a['plugins']['get']('Users'),_0xe10ac1=_0x3c9f1a['plugins']['get']('TrackChangesEditing'),_0x531d52=_0x3c9f1a['plugins']['get']('CommentsRepository');for(const _0x3f0b65 of _0x531d52['getCommentThreads']())_0x3f0b65['remove']();for(const _0x21259d of _0x245e7b)_0x4db487['getUser'](_0x21259d['id'])||_0x4db487['addUser'](_0x21259d);_0x4db487['me']||_0x4db487['useAnonymousUser']();for(const _0x20935b of _0x3f5df5)_0x531d52['addCommentThread'](_0x20935b);for(const _0x302aaa of _0x179d3d)_0xe10ac1['addSuggestionData'](_0x302aaa);_0x3c9f1a['data']['set'](_0x3718ed);}(_0x31f823,_0x305d3c),_0x305d3c['execute'](_0x44d35a?'acceptAllSuggestions':'discardAllSuggestions');const _0x8fd4a=Ge(_0x305d3c)?_0x305d3c['getFullData'](_0x18b3a8):_0x305d3c['data']['get'](_0x18b3a8);return await _0x305d3c['destroy'](),_0x8fd4a;}class Me extends _0x3afef1{['options'];constructor(_0x12ba19,_0x5f5022){super(_0x12ba19),this['options']=_0x5f5022,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2a7462,_0x32bfde){if(!this['element'])return;const _0x308f4c=[];for(const [_0x50cfa1,_0x179d35]of _0x2a7462){const _0x3267ca=document['createElement']('div');_0x3267ca['setAttribute']('data-ck-root-name',_0x50cfa1),_0x3267ca['className']=_0x179d35['classes']+'\x20ck-track-changes-preview__root-container',_0x3267ca['innerHTML']=_0x179d35['content'],_0x308f4c['push'](_0x3267ca);}_0x32bfde(this['element'],_0x308f4c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5b3981{constructor(_0x2a2690){super(_0x2a2690),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xd8c0c4=this['editor'],_0xbae3f6=_0xd8c0c4['locale'],_0x4a22dc=_0xd8c0c4['plugins']['get']('Dialog');let _0x1fa819;const _0x19b097=function(_0x2aa23a){const _0xa06cbe={};if('editables'in _0x2aa23a['ui']['view']){for(const [_0x5cd5c4,_0x1f5cd4]of Object['entries'](_0x2aa23a['ui']['view']['editables']))_0xa06cbe[_0x5cd5c4]=_0x1f5cd4['element'];}else _0xa06cbe[_0x2aa23a['model']['document']['getRootNames']()[0x0]]=_0x2aa23a['ui']['view']['editable']['element'];return _0xa06cbe;}(_0xd8c0c4),_0x2c5c8c=function(_0x558a4a){let _0x423bbb=0x0;for(const _0x58fc51 of Object['values'](_0x558a4a))_0x423bbb=Math['max'](_0x423bbb,_0x58fc51['getBoundingClientRect']()['width']);let _0x12a18b=0x0;for(const _0xb9c3e3 of Object['values'](_0x558a4a))_0x12a18b+=_0xb9c3e3['getBoundingClientRect']()['height'];const _0x440131=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4cc06f=Math['min'](_0x12a18b,_0x440131);return{'width':_0x423bbb,'height':_0x4cc06f};}(_0x19b097);_0x4a22dc['show']({'id':'finalContentPreview','title':c(_0xbae3f6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xbae3f6,{'dialogRects':_0x2c5c8c}),'onHide':()=>{_0x1fa819['detachFromDom']();},'onShow':()=>{_0xd8c0c4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d7396=>{const _0x463327=this['_standarizeRootsData'](_0x4d7396,_0xd8c0c4,_0x19b097);_0x4a22dc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x463327,_0xd8c0c4['config']['get']('trackChanges.preview.renderFunction'));}),_0x1fa819=new _0x124206(_0xbae3f6,[_0x4a22dc['view']]),_0x1fa819['attachToDom'](),_0x1fa819['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xd8c0c4['once']('destroy',()=>{_0x1fa819['detachFromDom']();});const _0x1179e8=_0x4a22dc['view']['headerView']['class'];_0x4a22dc['view']['headerView']['class']=_0x1179e8?_0x1179e8+'\x20ck-reset_all':'ck-reset_all',_0x4a22dc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4a22dc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x422580=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x968ca9=_0x422580['previewMode'],_0x2b2cd2={};if('$labels'===_0x968ca9){for(const _0x51340b of _0x422580['getMergeFieldsIds']())_0x2b2cd2[_0x51340b]=_0x422580['getLabel'](_0x51340b)||_0x51340b;}else{const _0x1bf040='$defaultValues'===_0x968ca9?_0x422580['getDefaultValues']():_0x422580['getDataSetValues'](_0x968ca9,!0x0);for(const _0x4f678c of Object['entries'](_0x1bf040)){const [_0x1f53d6,_0x3202d1]=_0x4f678c;_0x2b2cd2[_0x1f53d6]=null!==_0x3202d1?_0x3202d1:_0x422580['getLabel'](_0x1f53d6)||_0x1f53d6;}}return{'mergeFieldsData':_0x2b2cd2};}['_standarizeRootsData'](_0x1def3e,_0x23339a,_0x108260){let _0x14c28;if('string'==typeof _0x1def3e){const _0x2484ea=_0x23339a['model']['document']['getRootNames']()[0x0];_0x14c28={[_0x2484ea]:_0x1def3e};}else _0x14c28=_0x1def3e;const _0x47f544=this['_fixMediaEmbeds'](_0x14c28,_0x23339a),_0x581bbe=function(_0x16ad5d,_0x301ccd){for(const [_0x312487,_0x3dcf38]of _0x16ad5d)_0x3dcf38['classes']=_0x301ccd[_0x312487]['classList']['value']['replace']('ck-focused','');return _0x16ad5d;}(this['_sortRoots'](_0x23339a)['reduce']((_0x5b8f0b,_0x3e4630)=>(_0x5b8f0b['push']([_0x3e4630,{'content':_0x47f544[_0x3e4630],'classes':''}]),_0x5b8f0b),[]),_0x108260);return _0x581bbe;}['_fixMediaEmbeds'](_0x4a2f3c,_0x38c678){if(!_0x38c678['plugins']['has']('MediaEmbedEditing'))return _0x4a2f3c;const _0x4658e9=_0x38c678['plugins']['get']('MediaEmbedEditing');for(const [_0x571e3b,_0x52c4b5]of Object['entries'](_0x4a2f3c)){const _0x5a03b4=document['createElement']('div');_0x5a03b4['innerHTML']=_0x52c4b5,(_0x5a03b4['querySelectorAll']('figure.media')['forEach'](_0x25c957=>{const _0x2515a9=_0x25c957['querySelector']('oembed');if(_0x2515a9){const _0x43c1ca=_0x2515a9['getAttribute']('url');if(_0x43c1ca){const _0x2ef291=_0x4658e9['registry']['getMediaViewElement'](new _0x345d5f(_0x38c678['editing']['view']['document']),_0x43c1ca,{'elementName':'','renderForEditingView':!0x0}),_0x2fb8bf=document['createElement']('div');_0x2fb8bf['classList']['add']('ck-media__wrapper'),_0x2ef291['render'](_0x2fb8bf,_0x38c678['editing']['view']['domConverter']),_0x2515a9['replaceWith'](_0x2fb8bf);}}}),_0x4a2f3c[_0x571e3b]=_0x5a03b4['innerHTML']);}return _0x4a2f3c;}['_sortRoots'](_0x4d4b7d){if(!function(_0x52448c){return void 0x0!==_0x52448c['getRootsAttributes'];}(_0x4d4b7d))return _0x4d4b7d['model']['document']['getRootNames']();const _0x608266=[],_0x352b86=new Map();for(const _0x5c14f4 of _0x4d4b7d['model']['document']['getRootNames']()){const _0x4c9fad=_0x4d4b7d['editing']['view']['getDomRoot'](_0x5c14f4)['getClientRects']()['item'](0x0);_0x608266['push'](_0x5c14f4),_0x352b86['set'](_0x5c14f4,_0x4c9fad);}return _0x608266['sort']((_0x28f9b9,_0x35255c)=>{const _0x897d46=_0x352b86['get'](_0x28f9b9),_0x25bba2=_0x352b86['get'](_0x35255c);return _0x897d46['y']-_0x25bba2['y']||_0x897d46['x']-_0x25bba2['x'];}),_0x608266;}}class te extends _0x21f549{static get['requires'](){return[T,_0x497261];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xffe606){super(_0xffe606),_0xffe606['commands']['add']('previewFinalContent',new re(this['editor'])),_0xffe606['config']['define']('trackChanges.preview.renderFunction',(_0x462d55,_0x4b4da2)=>{for(const _0x55abef of _0x4b4da2)_0x462d55['appendChild'](_0x55abef);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};